* symtab.h: Include minsyms.h.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-12-21  Tom Tromey  <tromey@redhat.com>
2
3         * symtab.h: Include minsyms.h.
4         (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
5         (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
6         (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
7         (lookup_minimal_symbol, lookup_minimal_symbol_text)
8         (lookup_minimal_symbol_solib_trampoline)
9         (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
10         (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
11         (lookup_minimal_symbol_by_pc_section)
12         (lookup_solib_trampoline_symbol_by_pc)
13         (init_minimal_symbol_collection)
14         (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
15         (msymbols_sort): Move to minsyms.h.
16         * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
17         * minsyms.c (terminate_minimal_symbol_table): Move from
18         objfiles.c.
19         * minsyms.h: New file.
20
21 2011-12-21  Tom Tromey  <tromey@redhat.com>
22
23         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
24         ALL_OBJFILE_MSYMBOLS.
25         (hppa_hpux_find_dummy_bpaddr): Likewise.
26         * jit.c (jit_object_close_impl): Use
27         terminate_minimal_symbol_table.
28
29 2011-12-21  Tom Tromey  <tromey@redhat.com>
30
31         * elfread.c (elf_symtab_read): Put the filename in the filename
32         bcache.
33
34 2011-12-21  Tom Tromey  <tromey@redhat.com>
35
36         * symtab.h (struct minimal_symbol) <filename>: Now const.
37
38 2011-12-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
39
40         PR tdep/12797
41         * arm-tdep.c (arm_return_value): Handle complex types.
42
43 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
44
45         * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
46         watchpoints when supported.
47
48 2011-12-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
49
50         * symfile.c (objfilep): New typedef and new DEF_VEC_P.
51         (reread_symbols): Remove variable reread_one, new variables
52         new_objfiles, all_cleanups and ix.  Use new_objfiles instead of
53         reread_one.  Push changed objfiles to new_objfiles, call
54         observer_notify_new_objfile for them later.
55
56 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
57
58         * psymtab.c (expand_symtabs_matching_via_partial): Match
59         the partial symbols using their SYMBOL_SEARCH_NAME.
60         * symfile.h (struct quick_symbol_functions): Udate the
61         documentation of expand_symtabs_matching.
62         * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
63         of SYMBOL_NATURAL_NAME in index entry.
64
65 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
66
67         * linespec.c (locate_first_half): Add handling of Ada operators
68         when the current language is Ada.
69
70 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
71
72         * objfiles.c (insert_section_p): Do not detect overlay sections
73         if overlay debugging is off.
74
75 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
76
77         * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
78         Update function documentation.
79         * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
80         computation.
81
82 2011-12-20  Pedro Alves  <alves.ped@gmail.com>
83             Jan Kratochvil  <jan.kratochvil@redhat.com>
84
85         * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
86         first LWP.
87         * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
88         `lwp->arch_private' if NULL.
89         (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
90         is NULL.
91         * i386-linux-nat.c (update_debug_registers_callback): Instantiate
92         `lwp->arch_private' if NULL.
93         (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
94         is NULL.
95
96 2011-12-19  Doug Evans  <dje@google.com>
97
98         * python/py-auto-load.c (info_auto_load_scripts): Pass address of
99         scripts vector to collect_matching_scripts.
100         (collect_matching_scripts): Update.
101
102 2011-12-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
103
104         * symfile.c (reread_symbols): Move free_objfile_separate_debug,
105         preserve_values, sym_finish and clear_objfile_data calls before BFD
106         close.  Move free_objfile_separate_debug as the very first call.  New
107         comment on the ordering.
108
109 2011-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
110
111         * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
112         in return PSWA.
113
114 2011-12-19  Tom Tromey  <tromey@redhat.com>
115
116         * symtab.h (add_minsym_to_hash_table): Don't declare.
117         * minsyms.c (add_minsym_to_hash_table): Now static.
118
119 2011-12-19  Joel Brobecker  <brobecker@adacore.com>
120
121         * elfread.c (elf_symtab_read): Ignore undefined symbols with
122         nonzero addresses if they do not correspond to a .plt section
123         when one is available in the objfile.
124
125 2011-12-17  Andreas Schwab  <schwab@linux-m68k.org>
126
127         * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
128         obstack_empty_p.
129
130 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
131
132         * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
133         regset_from_core_section.
134         (amd64obsd_core_init_abi): New function that sets
135         regset_from_core_section.
136         (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
137         traditional core dumps.
138
139 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
140
141         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
142         trampoline to be introduced in OpenBSD 5.0.
143
144 2011-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
145
146         Fix build regression from the PR threads/10729 fix.
147         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
148         not LP->PTID.
149
150 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
151
152         * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
153         `optarg' to `oind' and `oarg', respectively(-Wshadow).
154         (mi_cmd_data_read_memory): Ditto.
155         (mi_cmd_data_read_memory_bytes): Ditto.
156         (mi_cmd_data_write_memory): Ditto.
157
158 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
159
160         * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
161         `oind' and `oarg', respectively(-Wshadow).
162         (mi_valid_noargs): Ditto.
163
164 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
165
166         * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
167         `oind' and `oarg', respectively(-Wshadow).
168
169 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
170
171         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
172         `optarg' to `oind' and `oarg', respectively(-Wshadow).
173         (mi_cmd_target_file_put): Ditto.
174         (mi_cmd_target_file_delete): Ditto.
175
176 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
177
178         * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
179         `optarg' to `oind' and `oarg', respectively(-Wshadow).
180         (mi_cmd_env_dir): Ditto.
181
182 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
183
184         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
185         `optarg' to `oind' and `oarg', respectively(-Wshadow).
186
187 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
188
189         * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
190         `optparg' to `oind' and `oarg', respectively(-Wshadow).
191         (mi_cmd_break_watch): Ditto.
192
193 2011-12-16  Tom Tromey  <tromey@redhat.com>
194
195         * linespec.c (collect_symbols): Call maybe_add_address after
196         calling symbol_to_sal.
197         (minsym_found): Call maybe_add_address here.
198         (search_minsyms_for_name): Don't call maybe_add_address.
199
200 2011-12-16  Tom Tromey  <tromey@redhat.com>
201
202         * linespec.c (struct collect_info) <objfile>: Remove field.
203         (decode_objc): Update.
204         (find_method): Update.
205         (decode_variable): Update.
206         (struct minsym_and_objfile): New.
207         (struct collect_minsyms): New.
208         (classify_mtype): New function.
209         (compare_msyms): Likewise.
210         (add_minsym): Likewise.
211         (check_minsym): Remove.
212         (search_minsyms_for_name): Sort minsyms and apply only those with
213         top priority.
214
215 2011-12-16  Tom Tromey  <tromey@redhat.com>
216
217         * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
218
219 2011-12-16  Pedro Alves  <pedro@codesourcery.com>
220
221         * inf-loop.c: Include top.h.
222         (inferior_event_handler): Call check_frame_language.
223         * top.c (check_frame_language_change): New, factored out from ...
224         (execute_command): ... this.  Use check_frame_language_change.
225         * top.h (check_frame_language_change): Declare.
226
227 2011-12-16  asmwarrior  <asmwarrior@gmail.com>  (obvious fix)
228
229         * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
230         prototypes.
231
232 2011-12-16  Doug Evans  <dje@google.com>
233
234         * NEWS: Add entry for stdio gdbserver.
235
236 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
237
238         * python/python.c: Define python_excp_enums.
239         (eval_python_from_control_command): Do not call gdbpy_print_stack.
240         (python_command): Ditto.
241         (gdbpy_print_stack): Rewrite to use new enum constants.
242         (maint_set_python): Remove function.
243         (maint_show_python): Ditto.
244         (_initialize_python): Do not add "maint" commands.  Add "set/show
245         python print-stack commands".
246         * NEWS: Update to reflect removal for "maint set/show
247         print-stack"
248
249 2011-12-15  Doug Evans  <dje@google.com>
250
251         * exceptions.c (catcher_list_size): New function.
252         (last_message): Delete.
253         (exception_messages, exception_messages_size): New static globals.
254         (throw_it): Use exception_messages array to handle nested calls.
255
256 2011-12-15  Tom Tromey  <tromey@redhat.com>
257
258         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
259         do_cleanups call.
260
261 2011-12-14  Doug Evans  <dje@google.com>
262
263         * defs.h (wait_to_die_with_timeout): Declare.
264         * utils.c: #include "gdb_wait.h".
265         (sigalrm_handler, wait_to_die_with_timeout): New functions.
266         * ser-pipe.c: Don't #include "gdb_wait.h".
267         (pipe_close): Give child a chance to die on its own after closing
268         its stdin before SIGTERM'ing it.
269
270 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
271             Tom Tromey  <tromey@redhat.com>
272
273         * ada-lang.c (add_nonlocal_symbols): Initialize data to
274         all zeros.  Remove setting of data.arg_sym to NULL.
275
276 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
277
278         PR threads/10729
279
280         * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
281         pointer.
282         (linux_nat_prepare_to_resume): New global.
283         (lwp_free): New.
284         (purge_lwp_list): Use it.
285         (add_lwp): Call linux_nat_new_thread even on the first LWP.
286         Adjust to interface change.
287         (delete_lwp): Call lwp_free instead of xfree.
288         (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
289         (linux_handle_syscall_trap, linux_handle_extended_wait)
290         (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
291         linux_nat_prepare_to_resume before resuming.
292         (linux_stop_lwp): New.
293         (linux_nat_set_new_thread): Adjust.
294         (linux_nat_set_prepare_to_resume): New.
295         * linux-nat.h (struct arch_lwp_info): Forward declare.
296         (struct lwp_info) <arch_private>: New field.
297         (linux_stop_lwp): Declare.
298         (linux_nat_set_new_thread): Adjust.
299         (linux_nat_set_prepare_to_resume): New.
300
301         * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
302         (struct i386_debug_reg_state): Move to i386-nat.h.
303         (dr_mirror): Comment.
304         (i386_debug_reg_state): New.
305         (i386_update_inferior_debug_regs): Simplify.
306         (i386_stopped_data_address): Use the debug register state from the
307         inferior, not from the local cache.
308         * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
309         unset_status fields.  New get_addr and get_control fields.
310         (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
311         (DR_NADDR, DR_STATUS): New.
312         (struct i386_debug_reg_state): Moved from i386-nat.c.
313
314         * amd64-linux-nat.c (struct arch_lwp_info): New.
315         (amd64_linux_dr): Delete global.
316         (amd64_linux_dr_get_addr): New.
317         (amd64_linux_dr_get_control): New.
318         (amd64_linux_dr_unset_status): Delete.
319         (amd64_linux_dr_set_addr): Reimplement.
320         (amd64_linux_dr_reset_addr): Delete.
321         (update_debug_registers_callback): New.
322         (amd64_linux_dr_set_control): Reimplement.
323         (amd64_linux_dr_set_addr): Reimplement.
324         (amd64_linux_prepare_to_resume): New.
325         (amd64_linux_new_thread): Change parameter to an lwp pointer.
326         Reimplement.
327         (_initialize_amd64_linux_nat): No longer install
328         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
329         amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
330         amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
331         amd64_linux_prepare_to_resume.
332         * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
333         (DR_CONTROL): Delete.
334         (struct arch_lwp_info): New.
335         (i386_linux_dr): Delete global.
336         (i386_linux_dr_set_control): Reimplement.
337         (i386_linux_dr_get_addr): New.
338         (i386_linux_dr_set_addr): Reimplement.
339         (i386_linux_dr_get_control): New.
340         (update_debug_registers_callback): New.
341         (i386_linux_dr_unset_status): Delete.
342         (i386_linux_dr_set_addr): Reimplement.
343         (i386_linux_prepare_to_resume): New.
344         (i386_linux_new_thread): Change parameter to an lwp pointer.
345         Reimplement.
346         (_initialize_i386_linux_nat): No longer install
347         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
348         i386_linux_dr_get_control as i386_dr_low.get_control.  Install
349         i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
350         i386_linux_prepare_to_resume.
351
352         * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
353         lwp pointer.  Adjust.
354         * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
355         * mips-linux-nat.c (mips_linux_new_thread): Likewise.
356         * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
357         * s390-nat.c (s390_fix_watch_points): Likewise.
358
359         * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
360         (DR_CONTROL): Delete.
361         (i386_darwin_dr_reset_addr): Delete.
362         (i386_darwin_dr_get_addr): New.
363         (i386_darwin_dr_get_control): New.
364         * go32-nat.c
365         (go32_get_dr7, go32_get_dr): New.
366         (init_go32_ops): No longer install i386_dr_low.reset_addr.
367         Install go32_get_dr7 as i386_dr_low.get_control.  Install
368         go32_get_dr as i386_dr_low.get_addr.
369         * i386bsd-nat.c (i386bsd_dr_get): New.
370         (i386bsd_dr_reset_addr): Delete.
371         (i386bsd_dr_get_addr): New.
372         (i386bsd_dr_get_status): Use i386bsd_dr_get.
373         (i386bsd_dr_get_control): New.
374         * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
375         (i386bsd_dr_get_addr): New.
376         (i386bsd_dr_get_control): New.
377         * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
378         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
379         i386bsd_dr_get_control as i386_dr_low.get_control.  Install
380         i386bsd_dr_get_addr as i386_dr_low.get_addr.
381         * windows-nat.c (init_windows_ops): No longer install
382         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
383         cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
384         as i386_dr_low.get_addr.
385         (cygwin_get_dr): New.
386         (cygwin_get_dr7): New.
387
388 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
389
390         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
391         target_write_raw_memory.
392         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
393         target_write_raw_memory.
394         * microblaze-linux-tdep.c
395         (microblaze_linux_memory_remove_breakpoint): Use
396         target_write_raw_memory.
397         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
398         target_write_raw_memory.
399
400 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
401
402         * linespec.c (decode_line_internal): Make static.
403
404 2011-12-14  Yao Qi  <yao@codesourcery.com>
405
406         * breakpoint.c (create_breakpoint): Set canonical.addr_string
407         for static tracepoint.
408
409 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
410
411         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
412         * version.in: Bump version to 7.4.50.20111213-cvs.
413
414 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
415
416         * NEWS: Create a new section for the next release branch.
417         Rename the section of the current branch, now that it has
418         been cut.
419
420 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
421
422         * ada-lang.c (ada_exception_support_info_sniffer): Improve
423         error message.
424
425 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
426
427         * ada-lang.c (struct ada_inferior_data) [exception_info]:
428         New field.
429         (exception_info): Delete.
430         (ada_exception_support_info_sniffer): Get exception_support_info
431         data from our per-inferior data.  Adjust code accordingly.
432         (ada_unhandled_exception_name_addr_from_raise): Likewise.
433         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
434         (ada_executable_changed_observer): Delete.
435         (_initialize_ada_language): Remove call to
436         observer_attach_executable_changed.
437
438 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
439
440         * ada-lang.c (ada_has_this_exception_support): Raise an error
441         if we could find the Ada exception hook in the Ada runtime,
442         but no debugging info for that hook.
443
444 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
445
446         * ada-lang.c (ada_has_this_exception_support): New function,
447         extracted out of ada_exception_sal and ada_exception_sal.
448         (ada_exception_support_info_sniffer): Simplify by using
449         ada_has_this_exception_support.
450         (ada_exception_sal): Replace unnecessary checks by assertions.
451         Minor simplifications.
452
453 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
454
455         * breakpoint.c (update_global_location_list): Remove nested
456         definition of `b'(-Wshadow).
457
458 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
459
460         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
461         `error_flag'(-Wshadow).
462
463 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
464
465         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
466         `abfd'(-Wshadow).
467
468 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
469
470         * annotate.c (annotate_array_section_begin): Rename `index' to
471         `idx'(-Wshadow).
472
473 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
474
475         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
476         `idx'(-Wshadow).
477
478 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
479
480         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
481         `syscall' to `syscall_number'(-Wshadow).
482
483 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
484
485         * ada-lang.c (remove_extra_symbols): Rename `remove' to
486         `remove_p'(-Wshadow).
487
488 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
489
490         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
491         `ren_sym'(-Wshadow).
492
493 2011-12-10  Doug Evans  <dje@google.com>
494
495         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
496         debug_types_section.  All uses updated.
497         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
498         to is_debug_types_section.
499
500         * python/py-auto-load.c (source_section_scripts): Call xfree
501         instead of free.
502
503 2011-12-10  Hui Zhu  <teawater@gmail.com>
504             Yao Qi  <yao@codesourcery.com>
505
506         * tracepoint.c (start_tracing): Clear `inserted' flag.
507
508 2011-12-10  Hui Zhu  <teawater@gmail.com>
509
510         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
511
512 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
513
514         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
515         `bpoint'(-Wshadow).
516
517 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
518
519         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
520         `marker' variables to `sal2' and `tpmarker' respectively
521         (-Wshadow).
522
523 2011-12-09  Andrew Pinski  <apinski@cavium.com>
524
525         * linespec.c (hash_address_entry): Use iterative_hash_object on each
526         field rather than the struct itself.
527
528 2011-12-09  Tom Tromey  <tromey@redhat.com>
529
530         * breakpoint.c (compare_breakpoints): New function.
531         (clear_command): Remove duplicate breakpoints.  Properly clean
532         up.
533
534 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
535             Maciej W. Rozycki  <macro@codesourcery.com>
536
537         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
538         address chunks retrieved from decoded lui/addiu pairs.
539
540 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
541
542         * mips-tdep.c (extended_offset): Correct calculation.
543         (unpack_mips16): Correct bitfield positions used for extraction
544         of the immediate argument; fix sign-extension of same.
545         (extended_mips16_next_pc): Correct B instruction's offset
546         calculation.  Correct register decoding of the BEQZ and BNEZ
547         as well as jump-register instructions.  Handle compact jumps.
548
549 2011-12-08  Tom Tromey  <tromey@redhat.com>
550
551         * objfiles.h (struct objfile): Remove obsolete comment.
552         * objfiles.c (build_objfile_section_table): Remove obsolete
553         comment.
554
555 2011-12-07  Stan Shebs  <stan@codesourcery.com>
556
557         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
558         maintainer of the tic6x target.
559
560 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
561
562         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
563         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
564         (arm_deal_with_atomic_sequence_raw): Likewise.
565         (arm_deal_with_atomic_sequence): Likewise.
566         (arm_software_single_step): Call it.
567         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
568
569 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
570
571         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
572         where appropriate.
573         * s390-tdep.h: Likewise.
574
575 2011-12-07  Tristan Gingold  <gingold@adacore.com>
576
577         * machoread.c (macho_symtab_read): Do not consider N_OPT as
578         a debugging stab.  Improve complaint message.
579
580 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
581
582         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
583         load adjustment if still within the prologue.
584
585 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
586
587         * mips-tdep.c (mips32_next_pc): Fix floating point condition
588         code mask.
589
590 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
591
592         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
593         of BLTZ* and BGEZ* instructions.
594
595 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
596
597         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
598         performed to determine whether an address refers to standard
599         MIPS or MIPS16 code.
600         (mips16_next_pc): Use mips_pc_is_mips16 instead of
601         is_mips16_addr.
602
603 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
604
605         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
606         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
607         memory writes too.
608         * breakpoint.h (breakpoint_restore_shadows): Delete.
609         (breakpoint_xfer_memory): Declare.
610         * mem-break.c (default_memory_insert_breakpoint)
611         (default_memory_remove_breakpoint): Use target_write_raw_memory.
612         (memory_xfer_partial): Rename to ...
613         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
614         here.
615         (memory_xfer_partial): New.
616         (target_write_raw_memory): New.
617         * target.h (target_write_raw_memory): New.
618
619 2011-12-06  Doug Evans  <dje@google.com>
620
621         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
622
623 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
624
625         * language.h (struct language_defn): Add new component
626         la_symbol_name_compare.
627         * symfile.h (struct quick_symbol_functions): Update the profile
628         of parameter "name_matcher" for the expand_symtabs_matching
629         method.  Update the documentation accordingly.
630         * ada-lang.h (ada_name_for_lookup): Add declaration.
631         * ada-lang.c (ada_name_for_lookup): New function, extracted out
632         from ada_iterate_over_symbols.
633         (ada_iterate_over_symbols): Do not encode symbol name anymore.
634         (ada_expand_partial_symbol_name): Adjust profile.
635         (ada_language_defn): Add value for la_symbol_name_compare field.
636         * linespec.c: #include "ada-lang.h".
637         (iterate_name_matcher): Add language parameter. Replace call
638         to strcmp_iw by call to language->la_symbol_name_compare.
639         (decode_variable): Encode COPY if current language is Ada.
640         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
641         of name_matcher parameter.  Adjust call to name_matcher.
642         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
643         (expand_partial_symbol_names): Update profile of parameter "fun".
644         * psymtab.h (expand_partial_symbol_names): Update profile of
645         parameter "fun".
646         * symtab.c (demangle_for_lookup): Update function documentation.
647         (search_symbols_name_matches): Add language parameter.
648         (expand_partial_symbol_name): Likewise.
649         * c-lang.c (c_language_defn, cplus_language_defn)
650         (asm_language_defn, minimal_language_defn): Add value for
651         la_symbol_name_compare field.
652         * d-lang.c (d_language_defn): Likewise.
653         * f-lang.c (f_language_defn): Ditto.
654         * jv-lang.c (java_language_defn): Ditto.
655         * m2-lang.c (m2_language_defn): Ditto.
656         * objc-lang.c (objc_language_defn): Ditto.
657         * opencl-lang.c (opencl_language_defn): Ditto.
658         * p-lang.c (pascal_language_defn): Ditto.
659         * language.c (unknown_language_defn, auto_language_defn)
660         (local_language_defn): Ditto.
661
662 2011-12-06  Tom Tromey  <tromey@redhat.com>
663
664         * linespec.c (iterate_over_all_matching_symtabs): Use
665         LA_ITERATE_OVER_SYMBOLS.
666         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
667         (find_function_symbols, decode_variable): Remove Ada special
668         case.
669         * language.h (struct language_defn) <la_iterate_over_symbols>: New
670         field.
671         (LA_ITERATE_OVER_SYMBOLS): New macro.
672         * language.c (unknown_language_defn, auto_language_defn)
673         (local_language_defn): Update.
674         * c-lang.c (c_language_defn, cplus_language_defn)
675         (asm_language_defn, minimal_language_defn): Update.
676         * d-lang.c (d_language_defn): Update.
677         * f-lang.c (f_language_defn): Update.
678         * jv-lang.c (java_language_defn): Update.
679         * m2-lang.c (m2_language_defn): Update.
680         * objc-lang.c (objc_language_defn): Update.
681         * opencl-lang.c (opencl_language_defn): Update.
682         * p-lang.c (pascal_language_defn): Update.
683         * ada-lang.c (ada_iterate_over_symbols): New function.
684         (ada_language_defn): Update.
685
686 2011-12-06  Tom Tromey  <tromey@redhat.com>
687             Joel Brobecker  <brobecker@acacore.com>
688
689         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
690         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
691         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
692         PR shlibs/8929, PR shlibs/7393:
693         * python/py-type.c (compare_maybe_null_strings): Rename from
694         compare_strings.
695         (check_types_equal): Update.
696         * utils.c (compare_strings): New function.
697         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
698         location changes.
699         * tracepoint.c (scope_info): Update.
700         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
701         * symtab.h (iterate_over_minimal_symbols)
702         (iterate_over_some_symtabs, iterate_over_symtabs)
703         (find_pcs_for_symtab_line, iterate_over_symbols)
704         (demangle_for_lookup): Declare.
705         (expand_line_sal): Remove.
706         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
707         (lookup_symtab_callback): New functions.
708         (lookup_symtab): Rewrite.
709         (demangle_for_lookup): New function, extract from
710         lookup_symbol_in_language.
711         (lookup_symbol_in_language): Use it.
712         (iterate_over_symbols): New function.
713         (find_line_symtab): Update.
714         (find_pcs_for_symtab_line): New functions.
715         (find_line_common): Add 'start' argument.
716         (decode_line_spec): Update.  Change argument to 'flags', change
717         interpretation.
718         (append_expanded_sal): Remove.
719         (append_exact_match_to_sals): Remove.
720         (expand_line_sal): Remove.
721         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
722         Remove.
723         <map_symtabs_matching_filename>: New field.
724         * stack.c (func_command): Only look in the current program space.
725         Use DECODE_LINE_FUNFIRSTLINE.
726         * source.c (line_info): Set pspace on sal.  Check program space in
727         the loop.  Use DECODE_LINE_LIST_MODE.
728         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
729         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
730         * python/python.c (gdbpy_decode_line): Update.
731         * psymtab.c (partial_map_expand_apply): New function.
732         (partial_map_symtabs_matching_filename): Rename from
733         lookup_partial_symbol.  Update arguments.
734         (lookup_symtab_via_partial_symtab): Remove.
735         (psym_functions): Update.
736         * objc-lang.h (parse_selector, parse_method): Don't declare.
737         (find_imps): Update.
738         * objc-lang.c (parse_selector, parse_method): Now static.
739         (find_methods): Change arguments.  Fill in a vector of symbol
740         names.
741         (uniquify_strings): New function.
742         (find_imps): Change arguments.
743         * minsyms.c (iterate_over_minimal_symbols): New function.
744         * linespec.h (enum decode_line_flags): New.
745         (struct linespec_sals): New.
746         (struct linespec_result) <canonical>: Remove.
747         <pre_expanded, addr_string, sals>: New fields.
748         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
749         (decode_line_full): Declare.
750         (decode_line_1): Update.
751         * linespec.c (struct address_entry, struct linespec_state, struct
752         collect_info): New types.
753         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
754         (eq_address_entry, maybe_add_address): New functions.
755         (total_number_of_methods): Remove.
756         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
757         functions.
758         (find_methods): Change arguments.  Don't canonicalize input.
759         Simplify logic.
760         (add_matching_methods, add_constructors)
761         (build_canonical_line_spec): Remove.
762         (filter_results, convert_results_to_lsals): New functions.
763         (decode_line_2): Change arguments.  Rewrite for new data
764         structures.
765         (decode_line_internal): Rename from decode_line_1.  Change
766         arguments.  Add cleanups.  Update for new data structures.
767         (linespec_state_constructor, linespec_state_destructor)
768         (decode_line_full, decode_line_1): New functions.
769         (decode_indirect): Change arguments.  Update.
770         (locate_first_half): Use skip_spaces.
771         (decode_objc): Change arguments.  Update for new data structures.
772         Simplify logic.
773         (decode_compound): Change arguments.  Add cleanups.  Remove
774         fallback code, replace with error.
775         (struct decode_compound_collector): New type.
776         (collect_one_symbol): New function.
777         (lookup_prefix_sym): Change arguments.  Update.
778         (compare_symbol_name, add_all_symbol_names_from_pspace)
779         (find_superclass_methods ): New functions.
780         (find_method): Rewrite.
781         (struct symtab_collector): New type.
782         (add_symtabs_to_list, collect_symtabs_from_filename): New
783         functions.
784         (symtabs_from_filename): Change API.  Rename from
785         symtab_from_filename.
786         (collect_function_symbols): New function.
787         (find_function_symbols): Change API.  Rename from
788         find_function_symbol.  Rewrite.
789         (decode_all_digits): Change arguments.  Rewrite.
790         (decode_dollar): Change arguments.  Use decode_variable.
791         (decode_label): Change arguments.  Rewrite.
792         (collect_symbols): New function.
793         (minsym_found): Change arguments.  Rewrite.
794         (check_minsym, search_minsyms_for_name)
795         (add_matching_symbols_to_info): New function.
796         (decode_variable): Change arguments.  Iterate over all symbols.
797         (symbol_found): Remove.
798         (symbol_to_sal): New function.
799         (init_linespec_result, destroy_linespec_result)
800         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
801         New functions.
802         (decode_digits_list_mode, decode_digits_ordinary): New functions.
803         * dwarf2read.c (dw2_map_expand_apply): New function.
804         (dw2_map_symtabs_matching_filename): Rename from
805         dw2_lookup_symtab.  Change arguments.
806         (dwarf2_gdb_index_functions): Update.
807         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
808         * defs.h (compare_strings): Declare.
809         * cli/cli-cmds.c (compare_strings): Move to utils.c.
810         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
811         filter_sals.
812         (compare_symtabs, filter_sals): New functions.
813         * breakpoint.h (struct bp_location) <line_number, source_file>:
814         New fields.
815         (struct breakpoint) <line_number, source_file>: Remove.
816         <filter>: New field.
817         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
818         (momentary_breakpoint_from_master, add_location_to_breakpoint):
819         Update for changes to locations.
820         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
821         breakpoint.
822         (create_breakpoint_sal): Add 'filter' argument.
823         (remove_sal, expand_line_sal_maybe): Remove.
824         (create_breakpoints_sal): Remove 'sals' argument.  Handle
825         pre-expanded sals and the filter.
826         (parse_breakpoint_sals): Use decode_line_full.
827         (check_fast_tracepoint_sals): Use get_sal_arch.
828         (create_breakpoint): Create a linespec_sals.  Update.
829         (break_range_command): Use decode_line_full.  Update.
830         (until_break_command): Update.
831         (clear_command): Update match conditions for linespec.c changes.
832         Use DECODE_LINE_LIST_MODE.
833         (say_where): Update for changes to locations.
834         (bp_location_dtor): Free 'source_file'.
835         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
836         (update_static_tracepoint): Update for changes to locations.
837         (update_breakpoint_locations): Disable ranged breakpoint if too
838         many locations match.  Update.
839         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
840         PCs.
841         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
842         (decode_line_spec_1): Update.  Change argument name to 'flags',
843         change interpretation.
844         * block.h (block_containing_function): Declare.
845         * block.c (block_containing_function): New function.
846         * skip.c (skip_function_command): Update.
847         (skip_re_set): Update.
848         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
849         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
850         * NEWS: Add entry.
851
852 2011-12-06  Tom Tromey  <tromey@redhat.com>
853
854         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
855         breakpoint's pspace to be NULL.
856         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
857         * breakpoint.c (init_raw_breakpoint): Conditionally set
858         breakpoint's pspace.
859         (init_breakpoint_sal): Don't set breakpoint's pspace.
860         (prepare_re_set_context): Conditionally switch program space.
861         (addr_string_to_sals): Check executing_startup on location's
862         program space.
863
864 2011-12-06  Tom Tromey  <tromey@redhat.com>
865
866         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
867         * breakpoint.c (should_be_inserted): Explicitly check if program
868         space is executing startup.
869         (describe_other_breakpoints): Update.
870         (disable_breakpoints_before_startup): Change executing_startup
871         earlier.  Remove loop.
872         (enable_breakpoints_after_startup): Likewise.
873         (init_breakpoint_sal): Don't use bp_startup_disabled.
874         (create_breakpoint): Don't use bp_startup_disabled.
875         (update_global_location_list): Use should_be_inserted.
876         (bkpt_re_set): Update.
877
878 2011-12-06  Tom Tromey  <tromey@redhat.com>
879
880         * python/lib/gdb/command/pretty_printers.py
881         (InfoPrettyPrinter.invoke1): Remove extra double quote.
882
883 2011-12-06  Tom Tromey  <tromey@redhat.com>
884
885         * NEWS: Add MI news.
886
887 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
888
889         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
890         (S390_LAST_BREAK_REGNUM): Likewise.
891         (S390_SYSTEM_CALL_REGNUM): Likewise.
892         (S390_NUM_REGS): Update.
893
894         (s390_regmap_last_break): Add declaration.
895         (s390x_regmap_last_break): Likewise.
896         (s390_regmap_system_call): Likewise.
897
898         (tdesc_s390_linux32v1): Add declaration.
899         (tdesc_s390_linux32v2): Likewise.
900         (tdesc_s390_linux64v1): Likewise.
901         (tdesc_s390_linux64v2): Likewise.
902         (tdesc_s390x_linux64v1): Likewise.
903         (tdesc_s390x_linux64v2): Likewise.
904
905         * s390-tdep.c: Include new target description files
906         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
907         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
908         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
909         (s390_cannot_store_register): New function.
910         (s390_write_pc): Likewise.
911         (s390_dwarf_regmap): Add fields for new registers.
912         (s390_regmap_gregset): Likewise.
913         (s390x_regmap_gregset): Likewise.
914         (s390_regmap_fpregset): Likewise.
915         (s390_regmap_upper): Likewise.
916         (s390_regmap_last_break): New variable.
917         (s390x_regmap_last_break): Likewise.
918         (s390_regmap_system_call): Likewise.
919         (s390_last_break_regset): Likewise.
920         (s390x_last_break_regset): Likewise.
921         (s390_system_call_regset): Likewise.
922         (s390_upper_regset_sections): Rename to ...
923         (s390_linux64_regset_sections): ... this.
924         (s390_linux32_regset_sections): New variable.
925         (s390x_linux64_regset_sections): Likewise.
926         (s390_linux32v1_regset_sections): Likewise.
927         (s390_linux32v2_regset_sections): Likewise.
928         (s390_linux64v1_regset_sections): Likewise.
929         (s390_linux64v2_regset_sections): Likewise.
930         (s390x_linux64v1_regset_sections): Likewise.
931         (s390x_linux64v2_regset_sections): Likewise.
932         (s390_regset_from_core_section): Handle .reg-s390-last-break and
933         .reg-s390-system-call core file sections.
934         (s390_core_read_description): Check for presence of
935         .reg-s390-last-break and .reg-s390-system-call core file
936         sections and return appropriate target description.
937         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
938         "last_break" and "system_call" in target description.  Install
939         appropriate gdbarch_core_regset_sections array.
940         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
941         (_initialize_s390_tdep): Initialize additional target descriptions.
942
943         * s390-nat.c: Include "elf/common.h".
944         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
945         (have_regset_last_break): New static variable.
946         (have_regset_system_call): Likewise.
947         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
948         (s390_native_collect): Likewise.
949         (fetch_regset, store_regset, check_regset): New functions.
950         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
951         and S390_SYSTEM_CALL_REGNUM.
952         (s390_linux_store_inferior_registers): Likewise.
953         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
954         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
955
956         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
957         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
958         (s390-linux32v1-expedite): Define.
959         (s390-linux32v2-expedite): Likewise.
960         (s390-linux64v1-expedite): Likewise.
961         (s390-linux64v2-expedite): Likewise.
962         (s390x-linux64v1-expedite): Likewise.
963         (s390x-linux64v2-expedite): Likewise.
964
965         * features/s390-linux32.xml: Add orig_r2 register.
966         * features/s390-linux64.xml: Likewise.
967         * features/s390x-linux64.xml: Likewise.
968         * features/s390-linux32v1.xml: New file.
969         * features/s390-linux32v2.xml: Likewise.
970         * features/s390-linux64v1.xml: Likewise.
971         * features/s390-linux64v2.xml: Likewise.
972         * features/s390x-linux64v1.xml: Likewise.
973         * features/s390x-linux64v2.xml: Likewise.
974
975         * features/s390-linux32.c: Regenerate.
976         * features/s390-linux64.c: Likewise.
977         * features/s390x-linux64.c: Likewise.
978         * features/s390-linux32v1.c: New generated file.
979         * features/s390-linux32v2.c: Likewise.
980         * features/s390-linux64v1.c: Likewise.
981         * features/s390-linux64v2.c: Likewise.
982         * features/s390x-linux64v1.c: Likewise.
983         * features/s390x-linux64v2.c: Likewise.
984
985         * regformats/s390-linux32.dat: Regenerate.
986         * regformats/s390-linux64.dat: Regenerate.
987         * regformats/s390x-linux64.dat: Regenerate.
988         * regformats/s390-linux32v1.dat: New generated file.
989         * regformats/s390-linux32v2.dat: Likewise.
990         * regformats/s390-linux64v1.dat: Likewise.
991         * regformats/s390-linux64v2.dat: Likewise.
992         * regformats/s390x-linux64v1.dat: Likewise.
993         * regformats/s390x-linux64v2.dat: Likewise.
994
995 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
996
997         * linux-nat.c (resume_stopped_resumed_lwps): Call
998         registers_changed.
999
1000 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1001
1002         * breakpoint.c: Include record.h.
1003         (breakpoints_always_inserted_mode): Return false when the record
1004         target is in use.
1005
1006 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1007
1008         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1009         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
1010         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1011         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1012
1013 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1014
1015         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1016         `i'(-Wshadow).
1017
1018 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1019
1020         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1021
1022 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1023
1024         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1025         of `tdep'(-Wshadow).
1026
1027 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1028
1029         Fix compilation --without-expat.
1030         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1031         from ...
1032         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1033
1034 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1035             Jan Kratochvil  <jan.kratochvil@redhat.com>
1036
1037         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1038         * features/library-list-svr4.dtd: New file.
1039         * remote.c (PACKET_qXfer_libraries_svr4): New.
1040         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1041         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1042         * solib-svr4.c (struct svr4_library_list): New.
1043         [HAVE_LIBEXPAT]: Include xml-support.h.
1044         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1045         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1046         [HAVE_LIBEXPAT] (svr4_library_list_children)
1047         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1048         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1049         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1050         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1051         (svr4_read_so_list): Extend the corruption message by addresses.
1052         (svr4_current_sos): New variable library_list, call
1053         svr4_current_sos_via_xfer_libraries.
1054         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1055
1056 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1057
1058         PR threads/13448
1059         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1060         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1061
1062 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1063
1064         PR breakpoints/13346
1065         * dwarf2read.c (process_psymtab_comp_unit): Set
1066         PSYMTABS_ADDRMAP_SUPPORTED.
1067         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1068         validity.  New field psymtabs_addrmap_supported.
1069         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1070         psymtabs_addrmap_supported.
1071         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1072         !PSYMTABS_ADDRMAP_SUPPORTED.
1073         (dump_psymtab, maintenance_info_psymtabs): Print also
1074         psymtabs_addrmap_supported.
1075
1076 2011-12-01  Doug Evans  <dje@google.com>
1077
1078         * python/py-type.c (type_object_methods): Fix "array" doc string.
1079
1080 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
1081
1082         * source.c (print_source_lines_base): Fix missing braces on else
1083         clause leading to additional output.
1084
1085 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1086
1087         * s390-nat.c (SUBOFF): Remove.
1088         (s390_native_supply, s390_native_collect): New functions.
1089         (supply_gregset, supply_fpregset): Use s390_native_supply.
1090         (fill_gregset, fill_fpregset): Use s390_native_collect.
1091
1092         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1093         (s390_unwind_pseudo_register): New function.
1094         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1095         registers instead of PC and CC.
1096         (s390_backchain_frame_unwind_cache): Likewise.
1097         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1098         full GPR pseudos.
1099         (s390_trad_frame_prev_register): New function.
1100         (s390_frame_prev_register): Use it.
1101         (s390_sigtramp_frame_prev_register): Likewise.
1102         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1103         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
1104         special callback to unwind any pseudo.
1105
1106         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1107         * features/s390-core64.xml: Likewise.
1108         * features/s390x-core64.xml: Likewise.
1109         * features/s390-linux32.c: Regenerate.
1110         * features/s390-linux64.c: Likewise.
1111         * features/s390x-linux64.c: Likewise.
1112
1113 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1114
1115         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1116
1117 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1118
1119         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1120         instruction.  Add more diagnostic output.
1121
1122 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
1123
1124         * MAINTAINERS (Write After Approval): Add myself to the list.
1125
1126 2011-11-29  Sanjoy Das  <sdas@igalia.com>
1127
1128         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1129         (jit_bfd_try_read_symtab): Fix comments.
1130
1131 2011-11-28  DJ Delorie  <dj@redhat.com>
1132
1133         * NEWS: Mention RL78 simulator.
1134
1135 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1136
1137         * symfile.h (struct quick_symbol_functions): Fix the documentation
1138         of field map_matching_symbols, as symbols are sorted using
1139         strcmp_iw_ordered, not strcmp_iw.
1140
1141 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
1142
1143         * symfile.h (struct quick_symbol_functions): Update the
1144         documentation for field map_matching_symbols.
1145
1146 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1147
1148         * ada-lang.c (compare_names): Fix wrong return value in case
1149         string1 starts with the same contents as string2, followed
1150         by an underscore that do not start a symbol name suffix.
1151
1152 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
1153
1154         PR python/13369
1155         PR python/13374
1156
1157         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1158         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1159         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1160         exceptions.
1161         * python/py-type.c (typy_strip_typedefs): Ditto.
1162         (typy_legacy_template_argument): Ditto.
1163         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1164         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1165
1166 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
1167
1168         * remote.c (remote_get_tracepoint_status): Delete addrbuf
1169         local variable.  Avoid use of sprintf_vma.
1170
1171 2011-11-27  Sanjoy Das  <sdas@igalia.com>
1172
1173         Fix regression in jit.exp.
1174         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1175         (jit_register_code): Set the jit_objfile_data field to the correct
1176         value.
1177
1178 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
1179
1180         * alpha-tdep.c (br_opcode): New.
1181         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1182         (alpha_deal_with_atomic_sequence): New function.
1183         (alpha_gdbarch_init): Handle single stepping of atomic sequences
1184         with alpha_deal_with_atomic_sequence.
1185
1186 2011-11-24  Tristan Gingold  <gingold@adacore.com>
1187
1188         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1189         fields.  Add oso_sym, end_sym and nbr_syms.
1190         (macho_register_oso): Change interface.
1191         (macho_symtab_add_minsym): New function.
1192         (macho_symtab_read): Rewritten.
1193         (get_archive_prefix_len): Remove trailing blanks.
1194         (oso_el_compare_name): Add comment.
1195         (struct macho_sym_hash_entry): New structure.
1196         (macho_relocate_common_syms): Remove.
1197         (macho_sym_hash_newfunc): New function.
1198         (macho_resolve_oso_sym_with_minsym): Likewise.
1199         (macho_add_oso_symfile): Rewritten.
1200         (macho_symfile_read_all_oso): Remove trailing blanks.
1201         Adjust code to free oso vector.
1202         (macho_symfile_read): Likewise.
1203         Move code to initialize minimal symbol
1204
1205 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
1206
1207         * mips-tdep.c (extended_offset): Fix formatting.
1208
1209 2011-11-23  Doug Evans  <dje@google.com>
1210
1211         * dwarf2read.c (dw2_lookup_symtab): Add comment.
1212         (dw2_expand_symtabs_with_filename): Ditto.
1213         (dw2_expand_symtabs_matching): Ditto.
1214         (dw2_map_symbol_filenames): Ditto.
1215
1216 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1217
1218         * ada-lang.c (assign_aggregate): Minor reformatting.
1219
1220 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1221
1222         * ada-lang.c (assign_aggregate): Remove declaration of local
1223         variable `i' which is shadowing another variable with the same
1224         name declared in the outer scope.
1225
1226 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1227
1228         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
1229         calls throughout this file.
1230
1231 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1232
1233         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1234         FormatMessage.
1235
1236 2011-11-22  Tom Tromey  <tromey@redhat.com>
1237
1238         PR mi/8444:
1239         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1240         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1241         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1242         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1243         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1244         (print_it_catch_syscall, print_it_catch_exec)
1245         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1246         (bpstat_print): Add 'kind' argument.  Handle
1247         TARGET_WAITKIND_LOADED.
1248         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1249         handle TARGET_WAITKIND_LOADED here.
1250         * breakpoint.h (bpstat_print): Update.
1251
1252 2011-11-22  Tom Tromey  <tromey@redhat.com>
1253
1254         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1255
1256 2011-11-22  Tom Tromey  <tromey@redhat.com>
1257
1258         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1259         Use static_assert to check the size of
1260         async_reason_string_lookup.
1261         * common/gdb_assert.h (static_assert): New macro.
1262
1263 2011-11-22  Alan Modra  <amodra@gmail.com>
1264
1265         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1266         destination calculation.  Don't expect >> to sign extend.  Don't
1267         add a break if branch lands inside the sequence anywhere.
1268
1269 2011-11-21  Keith Seitz  <keiths@redhat.com>
1270
1271         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1272         -var-evaluate-expression of an enumeration and fix expected result.
1273         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1274
1275 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1276
1277         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1278         the case where osdata->items is empty.  Rename column names to a
1279         canonical form to avoid problems with unusual column names.
1280
1281 2011-11-21  Yao Qi  <yao@codesourcery.com>
1282
1283         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1284
1285 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1286
1287         * NEWS: Mention tracepoint additions.
1288         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1289         * breakpoint.c (print_one_breakpoint_location): Identify
1290         tracepoints as such when reporting hit counts, report
1291         trace buffer usage.
1292         (create_tracepoint_from_upload): Copy status info.
1293         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1294         add fields user_name, notes, start_time, stop_time.
1295         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1296         * tracepoint.c (trace_user): New global.
1297         (trace_notes): New global.
1298         (trace_stop_notes): New global.
1299         (start_tracing): Add argument and trace note handling.
1300         (stop_tracing): Ditto.
1301         (trace_start_command): Add notes argument.
1302         (trace_stop_command): Ditto.
1303         (trace_status_command): Report additional status info.
1304         (trace_status_mi): Similarly.
1305         (trace_save): Update, record tracepoint status.
1306         (set_disconnected_tracing): Call target method directly.
1307         (send_disconnected_tracing_value): Remove.
1308         (set_trace_user): New function.
1309         (set_trace_notes): New function.
1310         (set_trace_stop_notes): New function.
1311         (parse_trace_status): Handle additional status.
1312         (parse_tracepoint_status): New function.
1313         (parse_tracepoint_definition): Call it.
1314         (tfile_get_tracepoint_status): New function.
1315         (init_tfile_ops): Use it.
1316         (_initialize_tracepoint): Add new setshows.
1317         * target.h (struct target_ops): New methods to_get_tracepoint_status
1318         and to_set_trace_notes.
1319         (target_get_tracepoint_status): New macro.
1320         (target_set_trace_notes): New macro.
1321         * target.c (update_current_target): Add new methods.
1322         * remote.c (remote_get_tracepoint_status): New function.
1323         (remote_set_trace_notes): New function.
1324         (init_remote_ops): Add them.
1325         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1326         (mi_cmd_trace_stop): Ditto.
1327
1328 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1329
1330         * jit.c: Include regcache.h.
1331         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1332         (jit_unwind_reg_set_impl, free_reg_value_impl)
1333         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1334         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1335         (jit_frame_prev_register, jit_dealloc_cache)
1336         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1337         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1338         jit_prepend_unwinder.
1339         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1340
1341 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1342
1343         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1344         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1345         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1346         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1347         (finalize_symtab, jit_object_close_impl)
1348         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1349         (free_objfile_data): New functions.
1350         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1351         function.
1352
1353 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1354
1355         * jit.c: Include gdb-dlfcn.h.
1356         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1357         (jit_reader_load, jit_reader_load_command)
1358         (jit_reader_unload_command): New functions.
1359         (_initialize_jit): Add commands "jit-reader-load" and
1360         "jit-reader-unload".
1361
1362 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1363
1364         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1365         * config.in: Add new #define HAVE_LIBDL.
1366         * configure.ac: Add check for -ldl.
1367         * configure: Re-generated by autoconf.
1368         * gdb-dlfcn.c: New file.
1369         * gdb-dlfcn.h: New file.
1370
1371 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1372
1373         * config.in: Add new #defines: JIT_READER_DIR and
1374         JIT_READER_DIR_RELOCATABLE.
1375         * configure.ac: New GDB directory entry for jit-reader-dir.
1376         * configure: Re-generated by autoconf.
1377         * jit.c: New static variable: const char *jit_reader_dir.
1378         (_initialize_jit): Relocate jit_reader_dir.
1379
1380 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1381
1382         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1383         $(includedir)/gdb.
1384         * configure.ac: Generate a correct value for TARGET_PTR for
1385         jit-reader.h.  Tell configure to generate jit-reader.h from
1386         jit-reader.in.
1387         * configure: Re-generated by autoconf.
1388         * jit-reader.in: New file.
1389         * jit.c: Include jit-reader.h.
1390
1391 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1392
1393         * MAINTAINERS (Write After Approval): Add myself to the list.
1394
1395 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1396
1397         * findvar.c (read_frame_register_value): Respect value_offset
1398         of the register value.  Remove big-endian special case.
1399
1400 2011-11-18  Tom Tromey  <tromey@redhat.com>
1401
1402         PR build/7196:
1403         * remote.c (putpkt_for_catch_errors): New function.
1404         (remote_kill): Use it.
1405
1406 2011-11-18  Yao Qi  <yao@codesourcery.com>
1407
1408         * breakpoint.c (create_breakpoint): Produce query message according to
1409         breakpoint's type.
1410         Allocate tracepoint per correct type.
1411         Don't check SALs for pending fast tracepoints.
1412         * tracepoint.c (process_tracepoint_on_disconnect): New.
1413         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1414
1415 2011-11-18  Yao Qi  <yao@codesourcery.com>
1416
1417         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1418         update_global_location_list is called conditionally.
1419         (create_fork_vfork_event_catchpoint): Update.
1420         (create_syscall_event_catchpoint): Update.
1421         (create_breakpoint_sal): Update.
1422         (create_breakpoint_sal): Update. Call do_cleanups before
1423         install_breakpoint.
1424         * ada-lang.c (create_ada_exception_catchpoint): Update.
1425         * breakpoint.h (install_breakpoint): Update declaration.
1426
1427 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1428
1429         * spu-tdep.c (spu_return_value): Fix handling of
1430         TYPE_CALLING_CONVENTION annotation.
1431
1432 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1433
1434         * skip.c (skip_function_command): Work around uninitialized
1435         variable warning.
1436
1437 2011-11-16  David S. Miller  <davem@davemloft.net>
1438
1439         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1440         'tv_usec' to long for printf since these fields have a type which
1441         varies.
1442
1443 2011-11-15  Doug Evans  <dje@google.com>
1444
1445         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1446
1447 2011-11-15  Paul Koning  <paul_koning@dell.com>
1448
1449         * python/py-type.c (typy_get_composite): New function.
1450         (typy_nonzero): New function.
1451         (typy_values): Rename from typy_fields.
1452         (typy_fields): New function.
1453         (typy_length): Raise exception if not struct, union, or enum type.
1454         (typy_getitem): Ditto.
1455         (typy_has_key): Ditto.
1456         (typy_make_iter): Ditto.
1457
1458 2011-11-15  Doug Evans  <dje@google.com>
1459
1460         PR gdb/8367
1461         * NEWS: Mention new parameter basenames-may-differ.
1462         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1463         ! basenames_may_differ.
1464         * psymtab.c (lookup_partial_symtab): Ditto.
1465         * symtab.c (lookup_symtab): Ditto.
1466         (basenames_may_differ): New global.
1467         (_initialize_symtab): New parameter basenames-may-differ.
1468         * symtab.h (basenames_may_differ): Declare.
1469
1470 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1471             Luis Machado  <lgustavo@codesourcery.com>
1472
1473         * auxv.c: Include observer.h.
1474         (auxv_inferior_data_cleanup): New.
1475         (invalidate_auxv_cache_inf): New.
1476         (invalidate_auxv_cache): New.
1477         (get_auxv_inferior_data): New.
1478         (auxv_inferior_data): New static global.
1479         (auxv_info): New structure.
1480         (target_auxv_search): Use get_auxv_inferior_data instead of
1481         target_read_alloc and don't free cached buffers.
1482         (fprint_target_auxv): Likewise
1483         (_initialize_auxv): Register per-inferior auxv cache and register
1484         observers to invalidate auxv cache when needed.
1485
1486 2011-11-14  Doug Evans  <dje@google.com>
1487
1488         PR gdb/7200 Make "!" an alias for "shell".
1489         * NEWS: Add mention.
1490         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1491         adding "!" command, always add it.
1492         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1493         command of length one.
1494
1495 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1496             Kwok Cheung Yeung  <kcy@codesourcery.com>
1497
1498         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1499         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1500         the minimum instruction size for fast tracepoints.
1501         * target.h (struct target_ops): Add new method
1502         to_get_min_fast_tracepoint_insn_len.
1503         (target_get_min_fast_tracepoint_insn_len): New.
1504         * target.c (update_current_target): Set up new target operation.
1505         * remote.c (remote_write_bytes_aux): Fix typo.
1506         (remote_get_min_fast_tracepoint_insn_len): New.
1507         (init_remote_ops): Initialize new field.
1508
1509 2011-11-14  Tom Tromey  <tromey@redhat.com>
1510
1511         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1512         (encode_actions): Likewise.
1513
1514 2011-11-14  Yao Qi  <yao@codesourcery.com>
1515
1516         * remote.c (struct remote_state): <install_in_trace> new field.
1517         (PACKET_InstallInTrace): New enum value.
1518         (remote_install_in_trace_feature): Support InstallInTrace.
1519         (remote_supports_install_in_trace): Likewise.
1520         (remote_protocol_features): Likewise.
1521         (_initialize_remote): Likewise.
1522         (remote_can_download_tracepoint): New.
1523         * target.h (struct target): New field
1524         `to_can_download_tracepoint'.
1525         (target_can_download_tracepoint): New macro.
1526         * target.c (update_current_target): Update.
1527         * breakpoint.h (struct bp_location): Add comment on field
1528         `duplicate'.
1529         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1530         and tracepoint.
1531         (remove_breakpoints): Don't remove tracepoints.
1532         (tracepoint_locations_match ): New.
1533         (breakpoint_locations_match): Call it.
1534         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1535         (download_tracepoint_locations): New.
1536         (update_global_location_list): Call it.
1537         * tracepoint.c (find_matching_tracepoint): Delete.
1538         (find_matching_tracepoint_location): Renamed from
1539         find_matching_tracepoint.  Return bp_location rather than
1540         tracepoint.
1541         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1542         tracepoint is found.
1543
1544 2011-11-14  Yao Qi  <yao@codesourcery.com>
1545
1546         * target.h (struct target): <to_download_tracepoint> Change type
1547         of parameter from tracepoint to bp_location.
1548         * target.c (update_current_target): Update.
1549         * tracepoint.c (start_tracing): Update.
1550         * remote.c (remote_download_tracepoint): Remove loop for each location
1551         of a tracepoint.
1552
1553 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1554
1555         * i386-nat.c (i386_insert_hw_breakpoint): Call
1556         i386_update_inferior_debug_regs.
1557         (i386_remove_hw_breakpoint): Likewise.
1558
1559 2011-11-14  Yao Qi  <yao@codesourcery.com>
1560
1561         * breakpoint.c (init_raw_breakpoint): Call
1562         add_location_to_breakpoint to replace duplicated code.
1563         (add_location_to_breakpoint): Adjust the breakpoint's
1564         address prior to allocating a location.
1565
1566 2011-11-12  Matt Rice  <ratmice@gmail.com>
1567
1568         * macrocmd.c (macro_no_macro_info): New function.
1569         (macro_expand_command): Use macro_no_macro_info.
1570         (macro_expand_once_command): Ditto.
1571         (info_macro_command): Add argument processing,
1572         move info_definitions_command here.
1573         (_initialize_macrocmd): Remove info definitions command.
1574         Add arguments to info macro help text.
1575         * NEWS: Replace info definitions command with new info macro options.
1576
1577 2011-11-11  Keith Seitz  <keiths@redhat.com>
1578
1579         PR gdb/12843
1580         * linespec.c (locate_first_half): Keep ':' if it looks
1581         like it could be part of a Windows path starting with
1582         a drive letter.
1583
1584 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1585
1586         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1587         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1588
1589 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1590
1591         * target.c (target_waitstatus_to_string): Handle
1592         TARGET_WAITKIND_NO_RESUMED.
1593
1594 2011-11-10  Doug Evans  <dje@google.com>
1595
1596         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1597         `need_fullname'.
1598         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1599         (map_partial_symbol_filenames): Ditto.  All callers updated.
1600         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1601         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1602         parameter need_fullname.
1603
1604         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1605         * source.c (symtab_to_fullname): Ditto.
1606
1607         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1608         * gdb-demangle.h: ... here.  New file.
1609         * demangle.c: #include "gdb-demangle.h".
1610         (_initialize_demangler): Use initialize_file_ftype for prototype.
1611         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1612         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1613         from utils.c
1614         * utils.c: Update. #include "gdb-demangle.h".
1615         * symtab.h (asm_demangle): Delete.
1616         (demangle): Move declaration next to use.
1617         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1618         * dwarf2read.c: #include "gdb-demangle.h".
1619         * gnu-v2-abi.c: Ditto.
1620         * jv-typeprint.c: Ditto.
1621         * mdebugread.c: Ditto.
1622         * p-typeprint.c: Ditto.
1623         * stabsread.c: Ditto.
1624         * printcmd.c: Ditto.
1625         (asm_demangle): Delete declaration.
1626         * tui/tui-stack.c: #include "gdb-demangle.h".
1627
1628         * python/py-type.c (typy_fields_items): Call check_typedef.
1629
1630 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1631
1632         * findvar.c (read_frame_register_value): Read the correct bytes
1633         from registers on big-endian architectures.
1634
1635 2011-11-10  Tom Tromey  <tromey@redhat.com>
1636
1637         * procfs.c (load_syscalls): Make a cleanup.
1638         (open_procinfo_files): fd==0 is ok.
1639
1640 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1641
1642         * procfs.c (iterate_over_mappings): Call do_cleanups before
1643         returning.
1644
1645 2011-11-09  Doug Evans  <dje@google.com>
1646
1647         * gdbtypes.c (check_typedef): Document that this function can
1648         throw an exception.
1649
1650 2011-11-09  Tom Tromey  <tromey@redhat.com>
1651
1652         PR c++/13342:
1653         * valops.c (value_full_object): Return early if real type is
1654         smaller than the enclosing type.
1655
1656 2011-11-08  Yao Qi  <yao@codesourcery.com>
1657
1658         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1659
1660 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1661
1662         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1663         register when the frame can't be determined.
1664         * arm-tdep.c (arm_analyze_prologue): Ditto.
1665
1666 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1667
1668         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1669
1670 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1671
1672         * infrun.c (handle_inferior_event): Minor reformatting.
1673
1674 2011-11-05  Doug Evans  <dje@google.com>
1675
1676         * source.c (forget_cached_source_info_for_objfile): Move call to
1677         objfile->sf->qf->forget_cached_source_info outside of
1678         ALL_OBJFILE_SYMTABS loop.
1679         (forget_cached_source_info): Delete unused variable `s'.
1680
1681 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1682
1683         * i386-nat.c (dr_ref_count): Remove unused variable.
1684
1685 2011-11-05  Doug Evans  <dje@google.com>
1686
1687         * main.c (captured_main): Set lim_at_start before calling
1688         make_command_stats_cleanup.
1689
1690 2011-11-04  Doug Evans  <dje@google.com>
1691
1692         * utils.c: #include "timeval-utils.h".
1693         (cmd_stats): Rename start_time to start_cpu_time.
1694         New member start_wall_time.
1695         (report_command_stats): Report wall time.
1696         (make_command_stats_cleanup): Record start wall time.
1697
1698 2011-11-04  Tom Tromey  <tromey@redhat.com>
1699
1700         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1701
1702 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1703
1704         * coff-pe-read.c: Include defs.h before bfd.h.
1705
1706 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1707
1708         PR Python/13345
1709
1710         * python/python.c (python_run_simple_file): Expand tilde in path.
1711
1712 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1713
1714         PR Python/13363
1715
1716         * python/py-type.c (typy_lookup_type): Do not return a type in
1717           an exception handler.
1718
1719 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1720             Eli Zaretskii  <eliz@gnu.org>
1721
1722         * linux-nat.c (_initialize_linux_nat): Improve help
1723         for `info proc stat', `info proc status', `info proc cwd',
1724         `info proc cmdline' and `info proc exe'.
1725
1726 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1727
1728         String collection for tracepoints.
1729         * NEWS: Mention string collection.
1730         * common/ax.def (tracenz): New bytecode.
1731         * ax-gdb.h (trace_string_kludge): Declare.
1732         * ax-gdb.c: Include valprint.h and c-lang.h.
1733         (trace_string_kludge): New global.
1734         (gen_traced_pop): Add string case.
1735         (agent_command): Add string case.
1736         * tracepoint.h (decode_agent_options): Declare.
1737         * tracepoint.c: Include cli-utils.h.
1738         (decode_agent_options): New function.
1739         (validate_actionline): Call it.
1740         (encode_actions_1): Ditto.
1741         * target.h (struct target_ops): New method to_supports_string_tracing.
1742         (target_supports_string_tracing): New macro.
1743         * target.c (update_current_target): Add to_supports_string_tracing.
1744         * remote.c (struct remote_state): New field string_tracing.
1745         (remote_string_tracing_feature): New function.
1746         (remote_protocol_features): New feature tracenz.
1747         (remote_supports_string_tracing): New function.
1748         (init_remote_ops): Set to_supports_string_tracing.
1749
1750 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1751             Jan Kratochvil  <jan.kratochvil@redhat.com>
1752
1753         * linux-nat.c: Include cli/cli-utils.h.
1754         (enum info_proc_what): New.
1755         (linux_nat_info_proc_cmd): Rename to ...
1756         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1757         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1758         status_f and stat_f from WHAT.  Throw error on extra parameters.
1759         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1760         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1761         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1762         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1763         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1764         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1765         `info proc cmdline', `info proc exe' and `info proc all' as real
1766         subcommands of `info proc'.
1767
1768 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1769
1770         * Makefile.in: (SFILES): Add skip.c.
1771         (HFILES_NO_SRCDIR): Add skip.h.
1772         (COMMON_OBS): Add skip.o.
1773         * skip.h, skip.c: New.
1774         * breakpoint.h (set_default_breakpoint): Remove.
1775         (get_sal_arch): Declare.
1776         * breakpoint.c: Remove default_breakpoint_valid,
1777         default_breakpoint_address, default_breakpoint_symtab,
1778         default_breakpoint_line, default_breakpoint_pspace variables.
1779         (get_sal_arch): Make public.
1780         (set_default_breakpoint): Remove.
1781         (parse_breakpoint_sals, create_breakpoint, clear_command,
1782         decode_line_spec_1): Remove uses of default_breakpoint variables;
1783         replaced with function calls into stack.c.
1784         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1785         * cli/cli-cmds.c: Add skiplist.
1786         (init_cmd_lists): Initialize skiplist.
1787         (init_cli_cmds): Fix comment (classes of commands appear in
1788         alphabetical order).
1789         * infrun.c (handle_inferior_event): Add check that we don't step into
1790         a function whose pc is marked for skip.
1791         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1792         last_displayed_addr, last_displayed_symtab, last_displayed_line
1793         variables.
1794         (set_last_displayed_sal): New static function.
1795         (print_frame_info): Switch call to set_default_breakpoint to call to
1796         set_last_displayed_sal.
1797         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1798         get_last_displayed_pspace, get_last_displayed_addr,
1799         get_last_displayed_symtab, get_last_displayed_line,
1800         get_last_displayed_sal): New public functions.
1801         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1802         get_last_displayed_pspace, get_last_displayed_addr,
1803         get_last_displayed_symtab, get_last_displayed_line,
1804         get_last_displayed_sal): Declare.
1805
1806 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1807
1808         * MAINTAINERS (Write After Approval): Add myself to the list.
1809
1810 2011-10-29  Yao Qi  <yao@codesourcery.com>
1811
1812         * infcmd.c (disconnect_command): Call disconnect_tracing.
1813
1814 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1815
1816         Code cleanup.
1817         * symtab.c (skip_prologue_sal): Code reformatting.
1818
1819 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1820
1821         PR symtab/13208
1822         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1823         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1824         SAI.
1825
1826 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1827
1828         * linux-nat.c (linux_nat_filter_event): Remove `options'
1829         parameter, and dead code that used it.  If we're handling a
1830         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1831         in our lwp list, re-add it.
1832         (check_zombie_leaders): New.
1833         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1834         wait for children with WNOHANG, and always wait for all children.
1835         Don't check for no resumed children upfront.  Simplify wait loop.
1836         Check for zombie thread group leaders after handling all wait
1837         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1838         unwaited-for children left.
1839         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1840         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1841         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1842         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1843
1844 2011-10-28  Sterling Augustine  <saugustine@google.com>
1845
1846         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1847         * symtab.c (free_completion_list): New function.
1848         (do_free_completion_list): Likewise.
1849         (default_make_symbol_completion_list_break_on): New variable
1850         back_to. Call make_cleanup and discard_cleanups.
1851         (make_source_files_completion_list): Likewise.
1852
1853 2011-10-28  Paul Koning  <paul_koning@dell.com>
1854
1855         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1856         * NEWS: Mention deep_items.
1857
1858 2011-10-28  Alen Skondro  <askondro@gmail.com>
1859
1860         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1861         defined.
1862
1863 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1864
1865         * MAINTAINERS (Write After Approval): Add myself to the list.
1866
1867 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1868
1869         * value.h (read_frame_register_value): Add declaration.
1870         * findvar.c (read_frame_register_value): New function.
1871         (value_from_register): Use read_frame_register_value
1872         instead of get_frame_register_value + value_contents_copy
1873         to get value contents.
1874
1875 2011-10-27  Doug Evans  <dje@google.com>
1876
1877         * cli/cli-cmds.c (source_script_with_search): Pass full path to
1878         source_script_from_stream if it may have been found on the search path.
1879         * python/py-auto-load.c (source_section_scripts): Pass full path to
1880         source_python_script_for_objfile.
1881         * python/python.c (source_python_script): Delete stream parameter.
1882         All callers updated.
1883         (source_python_script_for_objfile): Ditto.
1884         * python/python-internal.h (source_python_script_for_objfile): Update.
1885         * python/python.h (source_python_script): Update.
1886
1887 2011-10-27  Tom Tromey  <tromey@redhat.com>
1888
1889         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1890         (ada_sals_for_line): Remove declarations.
1891
1892 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
1893
1894         Move unwind reasons to an external .def file
1895         * frame.c (frame_stop_reason_string): Rewrite using
1896         unwind_stop_reasons.def.
1897         * frame.h (enum unwind_stop_reason): Likewise.
1898         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1899         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1900         constants for bound-checking.
1901         * unwind_stop_reasons.def: New file.
1902         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1903         instead of a distinct value.
1904
1905 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1906
1907         PR python/13331
1908
1909         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1910         (convert_values_to_python): Return on Python tuple allocation
1911         failure.  Return NULL on value conversion error.
1912
1913 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1914
1915         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1916         (bppy_set_task): Ditto.
1917         (bppy_delete_breakpoint): Ditto.
1918         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1919         (gdbpy_lookup_global_symbol): Ditto.
1920         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1921         * python/py-frame.c (frapy_is_valid): Ditto.
1922         (frame_info_to_frame_object): Ditto.
1923         * python/py-type.c (typy_lookup_type): Ditto.
1924         (typy_getitem): Ditto.
1925         (typy_has_key): Ditto.
1926         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
1927
1928 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
1929
1930         * gdbarch.h: Regenerate.
1931
1932 2011-10-26  Meador Inge  <meadori@codesourcery.com>
1933
1934         * gdbarch.sh (function_list): Use 'pstring' when printing
1935         'gcore_bfd_target'.
1936         * gdbarch.c: Regenerate.
1937
1938 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1939
1940         * regcache.c (registers_changed_ptid): Invalidate thread architecture
1941         and frame caches if PTID refers to all threads of a process.
1942
1943 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1944
1945         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1946         to create_breakpoint.
1947
1948 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1949
1950         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1951         (ppc_sysv_abi_push_dummy_call): Use it.
1952         (do_ppc_sysv_return_value): Likewise.
1953         (ppc64_sysv_abi_push_dummy_call): Likewise.
1954         (ppc64_sysv_abi_return_value): Likewise.
1955
1956 2011-10-26  Paul Koning  <paul_koning@dell.com>
1957
1958         * python/lib/gdb/types.py (deepitems): New function.
1959         
1960 2011-10-25  Paul Koning  <paul_koning@dell.com>
1961
1962         PR python/13327
1963         
1964         * python/py-value.c (value_to_value_object): Remove fetching of
1965         the value if it was lazy.
1966         (valpy_get_is_lazy): New function.
1967         (valpy_fetch_lazy): New function.
1968
1969 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
1970
1971         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1972         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1973
1974 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1975
1976         * linux-nat.c (linux_handle_extended_wait): When handling a clone
1977         event, in non-stop, if not stopping, make sure the new lwp has
1978         last_resume_kind set to resume_continue.  Assert that when we're
1979         resuming the new lwp, its last_resume_kind is resume_continue.
1980
1981 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1982
1983         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1984         already set when marking the event thread as not executing in
1985         non-stop mode.
1986
1987 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1988
1989         * infrun.c (handle_inferior_event): Add debug output for
1990         TARGET_WAITKIND_NO_HISTORY.
1991
1992 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1993
1994         * NEWS: Move set/show extended-prompt to "New Options". Expand
1995         description. Fix typos.
1996
1997 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1998
1999         PR python/13310
2000
2001         * python/py-param.c (call_doc_function): Correctly deference on
2002         function exit.
2003
2004 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
2005
2006         * ada-tasks.c (print_ada_task_info): Fix computation of
2007         number of tasks displayed in command output.
2008
2009 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2010             Ulrich Weigand  <uweigand@de.ibm.com>
2011
2012         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2013         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2014         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
2015         gdbarch_pc_regnum and frame_unwind_register_unsigned by
2016         gdbarch_unwind_pc.
2017
2018 2011-10-20  Cary Coutant  <ccoutant@google.com>
2019
2020         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2021         section to...
2022         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
2023         flag.  Adjust all callers.
2024         (process_psymtab_comp_unit): Remove adjustment for type section.
2025
2026 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
2027
2028         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2029         arguments by adding OBJFILE.  Instead of getting objfile from
2030         symbol's symtab, use new argument OBJFILE.
2031         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2032         arguments by adding OBJFILE.
2033         * gdb/dwarf2read.c (new_symbol_full): Change call to
2034         cp_scan_for_anonymous_namespaces to match new signature.
2035         * gdb/stabsread.c (define_symbol): Change call to
2036         cp_scan_for_anonymous_namespaces to match new signature.
2037
2038 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2039
2040         PR python/13308
2041         PR python/13309
2042
2043         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2044         leak.
2045         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2046         leak.  Delete unused variables.
2047
2048 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2049
2050         PR python/12656
2051
2052         * python/py-frame.c (frapy_read_var): Use const struct *block.
2053         * python/py-type.c (typy_lookup_typename): Likewise.
2054         (typy_lookup_type): Likewise.
2055         (typy_legacy_template_argument): Likewise.
2056         (typy_template_argument): Likewise.
2057         (gdbpy_lookup_type): Likewise.
2058         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2059         * python/py-block.c (blpy_block_object): Likewise.
2060         (blpy_iter): Likewise.
2061         (blpy_get_start): Likewise.
2062         (blpy_get_end): Likewise.
2063         (blpy_get_function): Likewise.
2064         (blpy_get_superblock): Likewise.
2065         (set_block):  Likewise.
2066         (block_to_block_object): Likewise.
2067         (block_object_to_block): Likewise.
2068         (blpy_is_valid): Likewise.
2069         (blpy_get_global_block): New function.
2070         (blpy_get_static_block): New function.
2071         (blpy_is_global): New function.
2072         (blpy_is_static): New function.
2073         * blockframe.c (block_innermost_frame): Likewise.
2074         * valops.c (value_of_variable): Likewise.
2075         * frame.h: Update prototypes.
2076         * python/python-internal.h: Likewise.
2077         * value.h: Likewise.
2078
2079 2011-10-19  Cary Coutant  <ccoutant@google.com>
2080
2081         * dwarf2read.c (create_debug_types_hash_table): Fix size of
2082         type_offset field.
2083
2084 2011-10-19  Cary Coutant  <ccoutant@google.com>
2085
2086         * dwarf2read.c (peek_abbrev_code): New function.
2087         (dw2_get_file_names): Check for dummy compilation units.
2088         (create_debug_types_hash_table): Likewise.
2089         (process_psymtab_comp_unit): Likewise.
2090         (load_partial_comp_unit): Likewise.
2091         (load_full_comp_unit): Likewise.
2092
2093 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
2094
2095         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2096         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2097         pt_phdr if PT_PHDR was found.
2098
2099 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
2100
2101         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2102         type or "<unnamed type"> when there is no name assigned.
2103         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2104         avoid a sigint when no name is assigned.
2105
2106 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2107
2108         Revert:
2109         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2110         * dwarf2expr.c (ctx_no_read_reg): New function.
2111         * dwarf2expr.h (ctx_no_read_reg): New declaration.
2112         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2113         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2114         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2115
2116 2011-10-16  Doug Evans  <dje@google.com>
2117
2118         * NEWS: Document python gdb.printing.register_pretty_printer's new
2119         `replace' parameter.
2120
2121 2011-10-14  Keith Seitz  <keiths@redhat.com>
2122
2123         PR c++/13225
2124         * eval.c (evaluate_subexp_standard): Do not construct
2125         an array of types; pass the value array directly to
2126         find_overload_match.
2127         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2128         (rank_function): Take an array of values instead of types.
2129         (rank_one_type): Add struct value * parameter.
2130         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2131         (rank_function): For each argument, pass the argument's
2132         value to rank_one_type.
2133         (rank_one_type): Add VALUE parameter.
2134         If the parameter type is a pointer and the argument type
2135         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2136         VALUE is zero.
2137         Update all calls to rank_one_type, passing NULL for new
2138         VALUE parameter.
2139         * valarith.c (value_user_defined_cpp_op): Do not construct
2140         an array of types; pass the value array directly to
2141         find_overload_match.
2142         * valops.c (find_overload_method_list): Take an array of
2143         values instead of types.
2144         Save the type of OBJP for later use.
2145         Update calls to find_oload_champ, and find_oload_champ_namespace.
2146         (find_oload_champ_namespace): Take an array of values instead
2147         of types.
2148         (find_oload_champ_namespace_loop): Likewise.
2149         (find_oload_champ): Likewise.
2150         (classify_oload_match): Inspect all arguments
2151         until INCOMPATIBLE is found. Return the worst badness found
2152         otherwise.
2153         (compare_parameters): Update call to rank_one_type.
2154         * value.h (find_overload_match): Take an array of values instead
2155         of types.
2156
2157 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2158
2159         Drop lazy lm_info reading.
2160         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
2161         l_addr_inferior, l_ld, l_next, l_prev and l_name.
2162         (lm_info_read): New function.
2163         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2164         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
2165         lm_dynamic_from_link_map.
2166         (lm_next, lm_prev, lm_name): Remove.
2167         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2168         initialization incl. read_memory.  No longer use lm_name.
2169         (svr4_free_so): Drop lm_info->lm freeing.
2170         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
2171         explicit lm_addr and lm initialization.
2172         (svr4_read_so_list): Use lm_info_read, drop the initailization of
2173         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
2174         lm_name.
2175
2176 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2177             Paul Pluzhnikov  <ppluzhnikov@google.com>
2178
2179         * defs.h (struct so_list): New forward declaration.
2180         (make_cleanup_free_so): New declaration.
2181         * solib-svr4.c (ignore_first_link_map_entry): Remove.
2182         (svr4_free_so): Move the function here from downwards.  Handle NULL
2183         so->lm_info.
2184         (svr4_free_library_list): New.
2185         (svr4_read_so_list): New, moved here code from svr4_current_sos.
2186         Use more cleanups.  Use new parameter ignore_first instead of
2187         ignore_first_link_map_entry.
2188         (svr4_current_sos): New variable ignore_first, initialize it.  New
2189         variable back_to, use it for svr4_free_library_list protection.
2190         (svr4_free_so): Remove - move upwards.
2191         * utils.c: Include solist.h.
2192         (do_free_so, make_cleanup_free_so): New functions.
2193
2194 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2195
2196         Fix internal error regression.
2197         * value.c (value_primitive_field): Handle value_optimized_out.  Move
2198         packed bitfields comment.
2199
2200 2011-10-13  Tom Tromey  <tromey@redhat.com>
2201
2202         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2203         always released.
2204
2205 2011-10-13  Tom Tromey  <tromey@redhat.com>
2206
2207         * python/py-type.c (typy_has_key): Make 'field' const.
2208
2209 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2210
2211         * remote.c (remote_save_trace_data): Invert comparison.
2212
2213 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2214
2215         * tracepoint.c (trace_save_command): Use filename instead of
2216         args when printing.
2217
2218 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2219
2220         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2221         if .size is 0.
2222
2223 2011-10-13  Yao Qi  <yao@codesourcery.com>
2224
2225         PR gdb/12703
2226         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2227         whether insn is a 32-bit Thumb-2 instruction.
2228         (thumb_in_function_epilogue_p): Likewise.
2229         (thumb_get_next_pc_raw): Likewise.
2230         (arm_breakpoint_from_pc): Likewise.
2231
2232 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2233
2234         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2235         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2236         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2237         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2238         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2239         zero DATA.
2240         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2241         validity.
2242         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2243         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2244         clear DATA on zero SIZE.
2245
2246 2011-10-12  Doug Evans  <dje@google.com>
2247
2248         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2249         header->first_die_offset here.  All callers updated.
2250
2251 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2252
2253         Fix compatibility with texinfo versions older than 4.12.
2254         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2255         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2256         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2257         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2258         * configure: Regenerate.
2259         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2260         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2261         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2262
2263 2011-10-12  Gary Benson  <gbenson@redhat.com>
2264
2265         * breakpoint.h (pc_at_non_inline_function): Declare.
2266         * breakpoint.c (is_non_inline_function,
2267         pc_at_non_inline_function): New functions.
2268         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2269         if the stop is at a location where functions cannot be inlined.
2270
2271 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2272
2273         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2274         the core wanted them stopped, or if they now have a pending event
2275         to report.
2276         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2277         down to stop_and_resume_callback.
2278         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2279         having new pending events after calling linux_nat_filter_event.
2280
2281 2011-10-11  Sterling Augustine  <saugustine@google.com>
2282
2283         * dwarf2read.c: Undo inadvertent changes in previous commit.
2284
2285 2011-10-11  Sterling Augustine  <saugustine@google.com>
2286
2287         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2288         logic.
2289
2290 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2291
2292         * symfile.c (separate_debug_file_exists): Fix condition.
2293
2294 2011-10-11  David S. Miller  <davem@davemloft.net>
2295
2296         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2297         static.
2298         * regcache.h (regcache_restore): Remove declaration.
2299
2300         * gdbarch.sh: New field 'long_long_align_bit'.
2301         * gdbarch.c, gdbarch.h: Regenerate.
2302         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2303         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2304
2305 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2306
2307         Revert this part of:
2308         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2309         Support @entry in input expressions.
2310         * c-exp.y (ENTRY, unknown_cpp_name): New.
2311         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2312         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2313         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2314         (name_not_typename: ENTRY): New.
2315         (yylex): Recognize ENTRY.
2316
2317         Reimplement @entry in input expressions.
2318         * c-exp.y (ENTRY): New.
2319         (variable: name_not_typename ENTRY): New.
2320         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2321
2322 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2323
2324         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2325         parent and child's pids as soon as we detect a clone event.
2326         Adjust another debug message.
2327
2328 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2329
2330         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2331         not zombie instead of reading the whole file.
2332
2333 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2334
2335         Fix separate debuginfo warning with "remote:" access.
2336         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2337         * symfile.c (get_file_crc): New function with the code moved from ...
2338         (separate_debug_file_exists): ... this function, specifically variables
2339         buffer and count.  New variable verified_as_different, set it.  Remove
2340         file_crc initialization.  Verify also if both files are not the same
2341         manually, if needed.
2342
2343 2011-10-11  Yao Qi  <yao@codesourcery.com>
2344
2345         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2346         to get address.
2347
2348 2011-10-10  Doug Evans  <dje@google.com>
2349
2350         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2351         libthread_db when we load libpthread or the main symbol file.
2352         (thread_db_inferior_created): New function.
2353         (_initialize_thread_db): Attach inferior_created observer.
2354         * linux-nat.c (linux_child_post_attach): Remove call to
2355         check_for_thread_db.
2356         (linux_child_post_startup_inferior): Ditto.
2357         * objfiles.h (OBJF_MAINLINE): Define.
2358         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2359         allocate_objfile when appropriate.
2360
2361 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2362
2363         PR gdb/13218
2364         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2365         Remove unused variables.
2366         (get_linux_version): Remove function.
2367         (_initialize_arm_linux_nat): Do not call it.
2368
2369 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2370
2371         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2372         new clone lwp if the core asked it to stop.  Don't pass on
2373         unexpected signals to the new clone; leave them pending instead.
2374
2375 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2376
2377         * linux-nat.c (resume_lwp): Remove redundant debug output.
2378
2379 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2380
2381         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2382         last_resume_kind before clearing it, and use the copy instead to
2383         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2384         resume_clear_callback in the non-stop path too.
2385
2386 2011-10-09  Yao Qi  <yao@codesourcery.com>
2387
2388         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2389         Honor OPTIONS and VAL's type.
2390         (common_val_print, value_print): Update to pass one more parameter.
2391
2392 2011-10-09  Doug Evans  <dje@google.com>
2393
2394         Add new "alias" command.
2395         * NEWS: Mention new command.
2396         * command.h (valid_user_defined_cmd_name_p): Declare.
2397         * defs.h (make_cleanup_dyn_string_delete): Declare.
2398         * utils.c: #include "dyn-string.h".
2399         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2400         * cli/cli-cmds.c: #include "dyn-string.h".
2401         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2402         (init_cli_cmds): Add new command.
2403         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2404
2405 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2406
2407         Fix compatibility with older GCCs.
2408         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2409         * stack.c (read_frame_arg): Initialize val_deref.
2410
2411 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2412
2413         Entry values NEWS entries, DWARF disassembly support.
2414         * NEWS: New entry values entry.
2415         (set print entry-values, show print entry-values)
2416         (set debug entry-values, show debug entry-values): New entries.
2417         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2418         indent.  Remove variable start.  Move header printing out.  Respect
2419         INDENT.  Support DW_OP_GNU_entry_value.
2420         (locexpr_describe_location_1): Move the header printing here, extend
2421         the disassemble_dwarf_expression passed parameters.
2422
2423 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2424
2425         Display @entry parameter values even for references.
2426         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2427         coerce_ref_if_computed.
2428         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2429         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2430         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2431         existing push_dwarf_reg_entry_value call.  Add new detection calling
2432         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2433         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2434         * dwarf2expr.h
2435         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2436         parameter deref_size, describe it in the comment.
2437         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2438         (dwarf_block_to_dwarf_reg_deref): New declaration.
2439         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2440         deref_size, describe it in the function comment.  New variables
2441         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2442         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2443         describe it in the function comment.  Fetch the alternative block
2444         accoring to DEREF_SIZE.
2445         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2446         (entry_data_value_free_closure, entry_data_value_funcs): New.
2447         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2448         outer_val, target_val, val and addr.  Try to fetch and create also
2449         referenced value content.
2450         (pieced_value_funcs): NULL value for coerce_ref.
2451         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2452         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2453         coerce_ref_if_computed.
2454         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2455         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2456         * stack.c (read_frame_arg): Compare also dereferenced values.
2457         * value.c (value_computed_funcs): Make the parameter v const, use
2458         value_lval_const for it.
2459         (value_lval_const, coerce_ref_if_computed): New function.
2460         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2461         * value.h (struct lval_funcs): New field coerce_ref.
2462         (value_computed_funcs): Make the parameter v const.
2463         (value_lval_const, coerce_ref_if_computed): New declarations.
2464
2465 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2466
2467         Support @entry in input expressions.
2468         * c-exp.y (ENTRY, unknown_cpp_name): New.
2469         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2470         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2471         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2472         (name_not_typename: ENTRY): New.
2473         (yylex): Recognize ENTRY.
2474         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2475         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2476         Likewise.
2477         * parse.c (operator_length_standard): Likewise.
2478         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2479
2480 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2481
2482         Display referenced values in backtraces.
2483         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2484         * stack.c (print_frame_arg): Likewise.
2485
2486 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2487
2488         Make some lval_funcs methods to default on NULL.
2489         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2490         NULL.
2491         (value_assign): Check if lval_computed write method is NULL.
2492         * value.h (struct lval_funcs): Comment NULL values for read and write
2493         methods.
2494
2495 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2496
2497         Display @entry parameter values (without references).
2498         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2499         New functions.
2500         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2501         New declarations.
2502         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2503         entry record.
2504         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2505         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2506         functions.
2507         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2508         (loclist_read_variable_at_entry): New function.
2509         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2510         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2511         DW_AT_location, call dwarf_block_to_sp_offset for it.
2512         * frame.h (print_entry_values_no, print_entry_values_only)
2513         (print_entry_values_preferred, print_entry_values_if_needed)
2514         (print_entry_values_both, print_entry_values_compact)
2515         (print_entry_values_default, print_entry_values): New declarations.
2516         (struct frame_arg): New field entry_kind.
2517         (read_frame_arg): New parameter entryargp.
2518         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2519         arg->entry_kind.  Optionally print the `@entry' suffix.
2520         (list_args_or_locals): New variable entryarg, initialize it.
2521         Initialize also entry_kind of arg and entryarg.  Conditionalize
2522         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2523         xfree for entryarg.error.
2524         * stack.c (print_entry_values_no, print_entry_values_only)
2525         (print_entry_values_preferred, print_entry_values_if_needed)
2526         (print_entry_values_both, print_entry_values_compact)
2527         (print_entry_values_default, print_entry_values_choices)
2528         (print_entry_values): New variables.
2529         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2530         print the `@entry' suffix, possibly in combination for
2531         print_entry_values_compact.
2532         (read_frame_arg): New parameter entryargp, new variables entryval,
2533         entryval_error and val_equal.  Read in also entryargp, respect
2534         print_entry_values, compare the values using val_equal, fill in also
2535         argp->entry_kind (together with entryargp->entry_kind).
2536         (print_frame_args): New variable entryarg, initialize it.
2537         Conditionalize print_frame_arg for arg, add print_frame_arg for
2538         entryarg.  Call xfree for entryarg.error.
2539         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2540         * symtab.h (struct symbol_computed_ops): New field
2541         read_variable_at_entry.
2542
2543 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2544
2545         Code reshuffle.
2546         * frame.h (struct frame_arg): New definition.
2547         (read_frame_arg): New declaration.
2548         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2549         (list_args_or_locals): ... the code here.  New variable arg, call
2550         read_frame_arg and list_arg_or_local with it.  Unify the
2551         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2552         arg.error.
2553         * stack.c (print_frame_arg): New functiom from the code of
2554         print_frame_args.
2555         (read_frame_arg): New function.
2556         (print_frame_args): Remove variable val.  New variable arg, call
2557         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2558
2559 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2560
2561         Protect entry values against self tail calls.
2562         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2563         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2564
2565 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2566
2567         Recognize virtual tail call frames.
2568         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2569         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2570         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2571         * dwarf2-frame-tailcall.c: New file.
2572         * dwarf2-frame-tailcall.h: New file.
2573         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2574         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2575         REGS.PREV only after CIE execution.
2576         (struct dwarf2_frame_cache): New field tailcall_cache.
2577         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2578         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2579         parts, try to find entry_cfa_sp_offset.  Call
2580         dwarf2_tailcall_sniffer_first.
2581         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2582         when appropriate.
2583         (dwarf2_frame_dealloc_cache): New function.
2584         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2585         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2586         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2587         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2588         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2589         * dwarf2loc.c (func_addr_to_tail_call_list)
2590         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2591         (call_site_find_chain_1, call_site_find_chain): New.
2592         * dwarf2loc.h (struct call_site_chain): New.
2593         (call_site_find_chain): New declaration.
2594         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2595         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2596         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2597         * stack.c (frame_info): Support also TAILCALL_FRAME.
2598
2599 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2600
2601         Tail call sites reader implementation.
2602         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2603         fill in TYPE_TAIL_CALL_LIST.
2604         * gdbtypes.h (struct func_type): New field tail_call_list.
2605         (struct call_site): New field tail_call_next.
2606         (TYPE_TAIL_CALL_LIST): New definition.
2607
2608 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2609
2610         Implement basic support for DW_TAG_GNU_call_site.
2611         * block.c: Include gdbtypes.h and exceptions.h.
2612         (call_site_for_pc): New function.
2613         * block.h (call_site_for_pc): New declaration.
2614         * defs.h: Include hashtab.h.
2615         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2616         declarations.
2617         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2618         ctx_no_push_dwarf_reg_entry_value.
2619         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2620         (dwarf_block_to_dwarf_reg): New function.
2621         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2622         (ctx_no_push_dwarf_reg_entry_value): New function.
2623         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2624         push_dwarf_reg_entry_value.
2625         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2626         declarations.
2627         * dwarf2loc.c: Include gdbcmd.h.
2628         (dwarf_expr_ctx_funcs): New forward declaration.
2629         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2630         (dwarf_expr_reg_to_entry_parameter)
2631         (dwarf_expr_push_dwarf_reg_entry_value): New.
2632         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2633         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2634         (needs_dwarf_reg_entry_value): New function.
2635         (needs_frame_ctx_funcs): Install it.
2636         (_initialize_dwarf2loc): New function.
2637         * dwarf2loc.h (entry_values_debug): New declaration.
2638         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2639         (read_call_site_scope): New forward declaration.
2640         (process_full_comp_unit): Copy call_site_htab.
2641         (process_die): Support DW_TAG_GNU_call_site.
2642         (read_call_site_scope): New function.
2643         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2644         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2645         (cleanup_htab): Delete.
2646         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2647         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2648         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2649         FIELD_LOC_KIND_DWARF_BLOCK.
2650         * gdbtypes.h (enum field_loc_kind): New entry
2651         FIELD_LOC_KIND_DWARF_BLOCK.
2652         (struct main_type): New loc entry dwarf_block.
2653         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2654         (TYPE_FIELD_DWARF_BLOCK): New.
2655         * python/py-type.c: Include dwarf2loc.h.
2656         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2657         internal_error call on unknown FIELD_LOC_KIND.
2658         * symtab.h (struct symtab): New field call_site_htab.
2659         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2660         (core_addr_hash, core_addr_eq): New functions.
2661
2662 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2663
2664         Code reshuffle.
2665         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2666         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2667         calling_convention under func_stuff there.
2668         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2669         (init_type) <TYPE_CODE_FUNC>: Likewise.
2670         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2671         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2672         * gdbtypes.h (enum type_specific_kind): Change
2673         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2674         (struct main_type) <type_specific>: Change calling_convention to
2675         func_stuff.  Move calling_convention to ...
2676         (struct func_type): ... this new struct.
2677         (INIT_FUNC_SPECIFIC): New #define.
2678         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2679
2680 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2681
2682         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2683         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2684         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2685         ctx->ref_addr_size.  Handle its invalid value.
2686         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2687         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2688         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2689         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2690         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2691         (dwarf2_per_cu_ref_addr_size): New function.
2692
2693 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2694
2695         Code cleanup.
2696         * dwarf2read.c (per_cu_header_read_in): New function.
2697         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2698         variables cu_header_local and cu_headerp.
2699
2700 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2701
2702         Fix initial language detection with -readnow.
2703         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2704         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2705         searches only for global symbols.
2706
2707 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2708
2709         Fix printed anonymous struct name.
2710         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2711         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2712         (anonymous_struct_prefix): New function.
2713         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2714         (dwarf2_name): Strip for anonymous structs any prefixes.
2715
2716 2011-10-07  Doug Evans  <dje@google.com>
2717
2718         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2719         `replace'.
2720
2721         * python/lib/gdb/printing.py: Whitespace cleanup.
2722
2723         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2724         warning.
2725
2726 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2727
2728         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2729         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2730         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2731         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2732         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2733         (arm_linux_remove_watchpoint): Adjust.
2734         * i386-linux-nat.c (i386_linux_dr_set_control)
2735         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2736         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2737         (ia64_linux_remove_watchpoint): Adjust.
2738         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2739         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2740         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2741         (ppc_linux_insert_mask_watchpoint)
2742         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2743         (ppc_linux_remove_watchpoint): Adjust.
2744         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2745         Adjust.
2746
2747 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2748
2749         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2750         (clear_win32_environment): New function for Cygwin to clear out
2751         Win32 environment.
2752         (windows_create_inferior): Prepare new environment from in_env
2753         for Cygwin, too.
2754
2755 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2756
2757         PR python/13264
2758         * python/py-value.c (valpy_call): Check that arguments are
2759         a tuple.
2760         (is_intlike): Remove call to CHECK_TYPEDEF.
2761         (valpy_nonzero): Catch GDB exceptions.
2762         (valpy_absolute): Ditto.
2763         (valpy_lazy_string): Ditto.
2764         (valpy_call): Ditto.
2765         (valpy_get_is_optimized_out): Ditto.
2766         (valpy_long): Ditto.
2767         (valpy_float): Ditto.
2768         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2769         (valpy_richcompare): Ditto.
2770
2771 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2772
2773         * inferior.h (disable_randomization): Declare.
2774         * infrun.c (disable_randomization): New global variable.
2775         (show_disable_randomization): New function.
2776         (set_disable_randomization): Likewise.
2777         (_initialize_infrun): Install set/show disable-randomization
2778         commands.
2779         * linux-nat.c (disable_randomization): Remove.
2780         (show_disable_randomization): Likewise.
2781         (set_disable_randomization): Likewise.
2782         (_initialize_linux_nat): No longer install set/show
2783         disable-randomization commands here.
2784         (linux_nat_supports_disable_randomization): New function.
2785         (linux_nat_add_target): Install it.
2786         * remote.c (PACKET_QDisableRandomization): New enum value.
2787         (remote_protocol_packets): Support QDisableRandomization.
2788         (_initialize_remote): Likewise.
2789         (remote_supports_disable_randomization): New function.
2790         (init_remote_ops): Install it.
2791         (extended_remote_supports_disable_randomization): New function.
2792         (init_extended_remote_ops): Install it.
2793         (extended_remote_disable_randomization): New function.
2794         (extended_remote_create_inferior_1): Call it.
2795         * target.h (struct target_ops): Add to_supports_disable_randomization.
2796         (target_supports_disable_randomization): Add prototype.
2797         * target.c (target_supports_disable_randomization): New function.
2798         (find_default_supports_disable_randomization): Likewise.
2799         (init_dummy_target): Install it.
2800
2801 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2802
2803         Allow Python notification of new object-file loadings.
2804         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2805         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2806         Add build rule for this file.
2807         * python/py-event.h (emit_new_objfile_event): New prototype.
2808         (newobjfile): New Python event emitter.
2809         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2810         Python event registry.
2811         * python/py-inferior.c: Include objfiles.h
2812         (python_new_objfile): New function.
2813         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2814         observers.
2815         * python/py-newobjfileevent.c: New file.
2816         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2817         prototype.
2818         * python/python.c (_initialize_python): Add 
2819         gdbpy_initialize_new_objfile_event call.
2820         * NEWS: Add item for new Python event "gdb.newobjfile"
2821
2822 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2823
2824         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2825         Extract the ravenscar task name from the symbol for the atcb.
2826
2827 2011-10-04  Paul Koning  <paul_koning@dell.com>
2828
2829         * python/py-type.c (typy_make_iter): Add forward declaration.
2830         (typy_fields_items):  Use the gdb.Type iterator.
2831
2832 2011-10-04  Paul Koning  <paul_koning@dell.com>
2833
2834         * NEWS: Add entry for Python gdb.Type mapping methods.
2835
2836 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2837
2838         PR python/12691: Add the inferior to Python exited event
2839         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2840         to exited_event.
2841         * python/py-event.h (emit_exited_event): Likewise
2842         * python/-inferior.c (python_inferior_exit): Likewise
2843
2844 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2845
2846         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2847         in output of -ada-task-info GDB/MI command.
2848
2849 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2850
2851         * ada-lang.h (struct inferior): Declare.
2852         (print_ada_task_info): Add declaration.
2853         * ada-tasks.c (print_ada_task_info): Make non-static.
2854         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2855         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2856         * mi/mi-main.c: #include "ada-lang.h".
2857         (mi_cmd_list_features): Add "ada-task-info" to the list
2858         of supported features.
2859         (mi_cmd_ada_task_info): New function.
2860
2861 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2862
2863         * python/python.c (python_run_simple_file): New function.
2864         (source_python_script, source_python_script_for_objfile):
2865         Replace call to PyRun_SimpleFile by call to
2866         python_run_simple_file.
2867
2868 2011-10-03  Paul Koning  <paul_koning@dell.com>
2869
2870         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2871         (value_to_value_object): Fetch value if it was lazy.
2872
2873 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2874
2875         Code cleanup.
2876         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
2877         Rearrange the code for it.
2878
2879 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
2880
2881         * breakpoint.c (bkpt_print_recreate): Add call to
2882         print_recreate_thread.
2883
2884 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
2885
2886         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2887         PTRACE_GETFDPIC_INTERP): Define.
2888
2889 2011-09-28  Yao Qi  <yao@codesourcery.com>
2890
2891         * symfile.c (add_symbol_file_command): Update message on usage.
2892
2893 2011-09-28  Paul Koning  <paul_koning@dell.com>
2894
2895         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2896         (typy_length, typy_get, typy_has_key, typy_make_iter)
2897         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2898         (typy_iterator_iter, typy_iterator_iternext)
2899         (typy_iterator_dealloc): New functions to implement standard
2900         Python mapping methods on gdb.Type object.
2901         (gdb.TypeIterator): New Python type.
2902         * python/python-internal.h (gdbpy_iter_kind): New enum.
2903
2904 2011-09-28  David S. Miller  <davem@davemloft.net>
2905
2906         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2907         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2908         * sparc-tdep.c (sparc_complex_floating_p): New function.
2909         (sparc32_store_arguments): Handle complex floats.
2910         (sparc32_extract_return_value): Likewise.
2911         (sparc32_store_return_value): Likewise.
2912         (sparc32_stabs_argument_has_addr): Likewise.
2913         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2914         (sparc64_store_floating_fields): Handle complex floats.
2915         (sparc64_store_arguments): Likewise.
2916         (sparc64_store_return_value): Likewise.
2917
2918 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
2919
2920         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2921         before the change on 2006-12-09.
2922         (windows_create_inferior) [!__CYGWIN__]: Restore code that
2923         generates the environment block for CreateProcessA, modulo the
2924         Cygwin-specific parts that are not needed here.
2925
2926 2011-09-27  Tristan Gingold  <gingold@adacore.com>
2927
2928         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2929         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2930         (darwin_solib_get_all_image_info_addr_at_init): New function.
2931         (darwin_solib_read_all_image_info_addr): Likewise.
2932         (darwin_solib_create_inferior_hook): Use the above two functions.
2933         * darwin-nat.c (darwin_execvp): Renames retval to res.
2934         (darwin_read_write_inferior): Update comment.
2935         (darwin_read_dyld_info): New function.
2936         (darwin_xfer_partial): Handle DYLD_INFO.
2937
2938 2011-09-27  Stan Shebs  <stan@codesourcery.com>
2939
2940         Add return address collection for tracepoints.
2941         * tracepoint.c (encode_actions_1): Add case for $_ret.
2942         (validate_actionline): Check for $_ret.
2943         (trace_dump_actions): Ditto.
2944         * ax-gdb.h (gen_trace_for_return_address): Declare.
2945         * ax-gdb.c: Include arch-utils.h.
2946         (gen_trace_for_return_address): New function.
2947         (agent_command): Add return address special case.
2948         * amd64-tdep.c: Include ax.h and ax-gdb.h.
2949         (amd64_gen_return_address): New function.
2950         (amd64_init_abi): Call it.
2951         * i386-tdep.c: Include ax.h and ax-gdb.h.
2952         (i386_gen_return_address): New function.
2953         (i386_init_abi): Call it.
2954         * arch-utils.h (default_gen_return_address): Declare.
2955         * arch-utils.c (default_gen_return_address): New function.
2956         * gdbarch.sh (gen_return_address): New method.
2957         * gdbarch.h, gdbarch.c: Regenerate.
2958
2959 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
2960
2961         PR gdb/13079
2962         * i386-tdep.c (i386_frame_align): New.
2963         (i386_gdbarch_init): Use i386_frame_align.
2964
2965 2011-09-23  Yao Qi  <yao@codesourcery.com>
2966
2967         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2968         to get address.
2969
2970 2011-09-22  Tristan Gingold  <gingold@adacore.com>
2971
2972         * fork-child.c (fork_inferior): Add exec_fun parameter.
2973         Call exec_fun or execvp.
2974         * inferior.h: Adjust prototype.
2975         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2976         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2977         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2978         * procfs.c (procfs_create_inferior): Ditto.
2979         * darwin-nat.c (darwin_execvp): New function.
2980         (darwin_create_inferior): Use it.
2981
2982 2011-09-22  Yao Qi  <yao@codesourcery.com>
2983
2984         * infrun.c (context_switch): Print debug message when switching to
2985         a different thread.
2986
2987 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
2988
2989         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2990         complex and vector types.
2991         (s390_return_value_convention): Likewise.
2992
2993         (s390_value_from_register): Call check_typedef.
2994         (extend_simple_arg): Likewise.
2995         (alignment_of): Likewise.
2996         (s390_push_dummy_call): Likewise.
2997         (s390_return_value): Likewise.
2998
2999 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
3000
3001         * event-top.c (async_disconnect): If an exception is thrown from
3002         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
3003         catch_errors.
3004         * top.c (quit_cover): Return void and take no arguments.
3005         * top.h (quit_cover): Update prototype.
3006
3007 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
3008
3009         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3010         current_uiout, not uiout.
3011
3012 2011-09-19  Doug Evans  <dje@google.com>
3013
3014         * python/py-auto-load.c (source_section_scripts): Fix file
3015         descriptor leak.
3016         * python/python.c (source_python_script_for_objfile): Tweak comments.
3017
3018 2011-09-18  Yao Qi  <yao@codesourcery.com>
3019             Ulrich Weigand  <ulrich.weigand@linaro.org>
3020
3021         Support displaced stepping for Thumb 16-bit insns.
3022         * arm-tdep.c (THUMB_NOP) Define.
3023         (thumb_copy_unmodified_16bit): New.
3024         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3025         (thumb_copy_alu_reg): New.
3026         (arm_copy_svc): Move some common code to ...
3027         (install_svc): ... here.  New.
3028         (thumb_copy_svc): New.
3029         (install_pc_relative): New.
3030         (thumb_copy_pc_relative_16bit): New.
3031         (thumb_decode_pc_relative_16bit): New.
3032         (thumb_copy_16bit_ldr_literal): New.
3033         (thumb_copy_cbnz_cbz): New.
3034         (cleanup_pop_pc_16bit_all): New.
3035         (thumb_copy_pop_pc_16bit): New.
3036         (thumb_process_displaced_16bit_insn): New.
3037         (thumb_process_displaced_32bit_insn): New.
3038         (thumb_process_displaced_insn): process thumb instruction.
3039
3040         Support displaced stepping for Thumb 32-bit insns.
3041         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3042         (thumb2_copy_preload): New.
3043         (thumb2_copy_copro_load_store): New.
3044         (thumb2_copy_b_bl_blx): New.
3045         (thumb2_copy_alu_imm): New.
3046         (thumb2_copy_load_reg_imm): New.
3047         (thumb2_copy_load_literal): New
3048         (thumb2_copy_block_xfer): New.
3049         (thumb_32bit_copy_undef): New.
3050         (thumb_32bit_copy_unpred): New.
3051         (thumb2_decode_ext_reg_ld_st): New.
3052         (thumb2_decode_svc_copro): New.
3053         (decode_thumb_32bit_store_single_data_item): New.
3054         (thumb_copy_pc_relative_32bit): New.
3055         (thumb_decode_pc_relative_32bit): New.
3056         (decode_thumb_32bit_ld_mem_hints): New.
3057         (thumb2_copy_table_branch): New
3058         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3059         instructions.
3060
3061 2011-09-18  Yao Qi  <yao@codesourcery.com>
3062
3063         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3064         (install_b_bl_blx): Likewise.
3065
3066 2011-09-17  Yao Qi  <yao@codesourcery.com>
3067
3068         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3069         (install_load_store): ... this.  New.
3070         Change parameter BYTE to SIZE.
3071         (arm_copy_ldr_str_ldrb_strb): Update caller.
3072         (arm_decode_ld_st_word_ubyte): Update caller.
3073
3074 2011-09-17  Yao Qi  <yao@codesourcery.com>
3075
3076         * infrun.c (displaced_step_fixup): Move some code ...
3077         (displaced_step_restore): ... here.  New function.
3078         (handle_inferior_event): Cleanup displaced stepping state for both
3079         child and parent when get forked or vforked event.
3080         * regcache.c (get_thread_arch_aspace_regcache): New function.
3081         get_thread_arch_regcache (): Call it.
3082
3083 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3084
3085         * ada-tasks.c (print_ada_task_info): New function, merging
3086         short_task_info and info_tasks together.  Reimplement using
3087         ui-out instead of printing to stdout directly.  Move the code
3088         building and checking the task list here, instead of leaving it
3089         in info_tasks_command.
3090         (info_task): Move the code building and checking the task
3091         list here, instead of leaving it in info_tasks_command.
3092         (info_tasks_command): Delete code building and checking
3093         the task list - moved elsewhere.  Update calls to info_tasks
3094         and info_task.
3095
3096 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3097
3098         * ada-tasks.c (info_task): Delete parameter `from_tty'.
3099
3100 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3101
3102         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3103
3104 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3105
3106         * ada-lang.h (ada_build_task_list): Remove parameter
3107         `warn_if_null'.
3108         * ada-tasks.c (ada_build_task_list): Remove parameter
3109         `warn_if_null'.  Adjust implementation and documentation.
3110         (valid_task_id, ada_get_environment_task)
3111         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3112         (info_tasks_command): Adjust implementation.
3113         (task_command): Likewise.
3114         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3115         to ada_build_task_list.
3116
3117 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3118
3119         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3120         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3121         (ada_tasks_inferior_data_handle): New static global.
3122         (get_ada_tasks_inferior_data): New function.
3123         (ada_get_task_number, get_task_number_from_id, valid_task_id)
3124         (ada_get_environment_task, iterate_over_live_ada_tasks)
3125         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3126         Adjust.
3127         (ada_set_current_inferior_known_tasks_addr): New function.
3128         (read_known_tasks, ada_build_task_list, short_task_info)
3129         (info_tasks, info_task, info_tasks_command, task_command_1)
3130         (task_command, ada_task_list_changed): Adjust.
3131         (ada_tasks_invalidate_inferior_data): New function.
3132         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3133         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3134         * ada-lang.h (struct inferior): Add declaration.
3135         (ada_task_list_changed): Update profile.
3136         * remote-wtx-pd.c: #include "inferior.h".
3137         (switch_to_pd_internal): Update call to ada_task_list_changed.
3138
3139 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3140
3141         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3142         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3143         (atcb_fieldno): Delete these static globals.
3144         (struct ada_tasks_pspace_data): New struct.
3145         (ada_tasks_pspace_data_handle): New static global.
3146         (get_ada_tasks_pspace_data): New function.
3147         (ada_tasks_invalidate_pspace_data): New function.
3148         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3149         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3150         (_initialize_tasks): Create this module's per-progspace
3151         data handle.
3152
3153 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3154
3155         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3156
3157 2011-09-16  Tristan Gingold  <gingold@adacore.com>
3158
3159         * fork-child.c (fork_inferior): Update comment.  Use alloca
3160         instead of xmalloc for argv.  Move len and shell_command
3161         declarations in the block where they are used.
3162         Only call execvp.  Factorize failure code.
3163
3164 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
3165
3166         Code cleanup.
3167         * parse.c (write_exp_elt): Change argument to pass a pointer of union
3168         `exp_element' instead of an element of the same and make the function
3169         static.
3170         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3171         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3172         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3173         Change argument of `write_exp_elt' function call.
3174         Remove extra spaces from comments.
3175         * parser-defs.h (write_exp_elt): Remove prototype.
3176
3177 2011-09-15  Paul Koning  <paul_koning@dell.com>
3178
3179         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3180         count of item appended to list.
3181         * python/py-type.c (typy_fields): Likewise.
3182
3183 2011-09-15  Paul Koning  <paul_koning@dell.com>
3184
3185         * MAINTAINERS (Write After Approval): Add myself to the list.
3186
3187 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3188
3189         PR threads/12628
3190         * linux-fork.c (checkpoint_command): Disallow checkpointing of
3191         processes with multiple threads.
3192         (inf_has_multiple_thread_cb): New function.
3193         (inf_has_multiple_threads): New function.
3194
3195 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3196
3197         PR Python/12692 Add gdb.selected_inferior() to Python interface.
3198         * python/py-inferior.c (GdbMethods): New Python method definition.
3199
3200 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3201
3202         Handle multiple breakpoint hits in Python interface:
3203         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3204         variable to breakpoints.
3205         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3206         bps instead of single breakpoint. Fix some space typos.
3207         * python/py-stopevent.c (create_breakpoint_event_object): Rename
3208         variable to breakpoints.
3209
3210 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3211
3212         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3213         note if the breakpoint is internal.
3214
3215 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3216
3217         * MAINTAINERS (Write After Approval): Add myself to the list
3218
3219 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
3220
3221         * infrun.c (prepare_for_detach, wait_for_inferior)
3222         (fetch_inferior_event): Don't flush the register cache.
3223         * remote.c (struct stop_reply) <regcache>: Add comment.
3224
3225 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3226
3227         Remove excessive DWARF expressions memory duplication.
3228         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3229         for block.data.
3230         (indirect_pieced_value): Remove variable result.  Remove variable
3231         back_to and its use for baton.data.
3232         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3233         block.data.
3234         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3235         Update the function comment.
3236
3237 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3238
3239         * inferior.h (ALL_INFERIORS): New.
3240         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3241         for a stopped thread.
3242         (thread_db_find_new_threads): Look for threads in all inferiors.
3243
3244 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3245
3246         * breakpoint.c (update_watchpoint): Handle the case of the
3247         watchpoint to update not being in the breakpoint list yet.
3248         (hw_watchpoint_use_count): New, factored out from
3249         hw_watchpoint_used_count.
3250         (hw_watchpoint_used_count): Rename to ...
3251         (hw_watchpoint_used_count_others): ... this.  Add `except'
3252         parameter.  Don't count resources of `except'.  Use
3253         hw_watchpoint_use_count.
3254
3255 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3256
3257         * gdbthread.h (enum thread_state): Moved here.
3258         (struct thread_info): Rename `executing_' field to `executing' and
3259         `state_' to `state'.
3260         * thread.c (enum thread_state): Moved to gdbthread.h.
3261         (new_thread, add_thread_silent, delete_thread_1)
3262         (any_live_thread_of_process, thread_alive, set_running)
3263         (set_running, is_thread_state, any_running, is_executing)
3264         (set_executing, finish_thread_state, print_thread_info)
3265         (do_captured_thread_select): Adjust.
3266
3267 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3268
3269         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3270         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3271
3272 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3273             Matt Rice  <ratmice@gmail.com>
3274
3275         PR gdb/13175
3276
3277         * interps.c (struct interp) <interpreter_out>: Delete field.
3278         (interp_new): Remove the data and uiout parameters and adjust.
3279         (interp_set): Only set the current_uiout from the interpreter's
3280         uiout after initializing the interpreter.  Adjust call to
3281         init_proc.
3282         (interp_ui_out): Adjust to call procs->ui_out_proc.
3283         (interp_data, interp_name): New.
3284         * interps.h (interp_init_ftype): Add `self' parameter.
3285         (interp_ui_out_ftype): New typedef.
3286         (struct interp_procs) <ui_out_proc>: New method pointer.
3287         (interp_new): Remove the data and uiout parameters.
3288         (interp_data, interp_name): Declare.
3289         * tui/tui-interp.c (tui_init): Adjust prototype.
3290         (tui_ui_out): New.
3291         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3292         tui_out here.  Adjust call to interp_new.
3293         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3294         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3295         (cli_ui_out): New.
3296         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3297         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3298         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3299         Initialize mi->uiout depending on the mi_version as extracted from
3300         the interpreter's name.
3301         (mi_ui_out): New.
3302         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3303         interp_new.  Don't allocate the ui_out's of the interpreters here.
3304
3305 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3306
3307         * solib.c (solib_used): New function.
3308         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3309         by another so_list object before freeing it.
3310
3311 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3312
3313         Code cleanup.
3314         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3315         values.
3316
3317 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3318
3319         Code cleanup.
3320         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3321         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3322         parameters.  No longer use amd64_prologue_line_bug.
3323         * defs.h (producer_is_gcc_ge_4): New declaration.
3324         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3325         (process_full_comp_unit): Update its caller.  Remove
3326         amd64_prologue_line_bug initialization.
3327         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3328         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3329
3330 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3331
3332         * linux-nat.h (enum resume_kind): New.
3333         (struct lwp_info) <last_resume_kind>: New field.
3334         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3335         resume_stop on the new lwp.
3336         (add_lwp): Set last_resume_kind as resume_continue by default.
3337         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3338         (resume_lwp): New, factored out from resume_callback.  Also check
3339         for pending status in lp->waitstatus.
3340         (resume_callback): Reimplement.
3341         (resume_clear_callback): Set last_resume_kind as resume_stop.
3342         (resume_set_callback): Set last_resume_kind as resume_continue.
3343         (linux_nat_resume, linux_handle_extended_wait): Set
3344         last_resume_kind.
3345         (running_callback): Also check lp->waitstatus for pending events.
3346         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3347         is resume_step.
3348         (stop_and_resume_callback): Don't re-resume if the core wanted the
3349         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3350         using an invalidated pointer.
3351         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3352         SIGSTOPs if the core wanted the LWP to stop.
3353         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3354         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3355         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3356         of TARGET_SIGNAL_STOP.
3357         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3358         here.  Instead, signal the lwp, and set the last_resume_kind to
3359         resume_stop.
3360
3361 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3362
3363         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3364         -1 (error), if the lwp exits right after attaching.
3365
3366 2011-09-08  Doug Evans  <dje@google.com>
3367
3368         * py-cmd.c: Some minor formatting fixes.
3369         (gdbpy_parse_command_name): Rename text arg to name, make const.
3370         All callers updated.
3371         * python-internal.h (gdbpy_parse_command_name): Update.
3372
3373         * cli/cli-decode.c (add_cmd): Add comment.
3374
3375 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3376
3377         PR breakpoints/12435
3378         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3379         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3380         * dwarf2read.c (process_full_comp_unit): Initialize
3381         amd64_prologue_line_bug.
3382         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3383
3384 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3385
3386         Fix TUI screen corruption.
3387         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3388         batch_flag.
3389
3390 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3391
3392         * findvar.c (read_var_value): Never return NULL, throw an error
3393         instead.  Update the function comment.  State symbol name in the error
3394         messages.
3395         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3396         read_var_value.
3397         * stack.c (print_frame_args): Likewise.
3398         * valops.c (value_of_variable): Likewise.
3399
3400 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3401
3402         * stack.c (print_frame_args): New variable except.  Wrap
3403         read_var_value and common_val_print into TRY_CATCH.
3404
3405 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3406
3407         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3408         caller to value_of_this.
3409         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3410         Twice.
3411         * valops.c (value_of_this): Remove parameter complain and variable ret.
3412         Update function comment.  Never return NULL by this code.
3413         (value_of_this_silent): New function.
3414         * value.h (value_of_this): Remove parameter complain.
3415         (value_of_this_silent): New declaration.
3416
3417 2011-09-07  Yao Qi  <yao@codesourcery.com>
3418
3419         * gdbthread.h (struct thread_info): Remove fields
3420         `stepping_through_solib_after_catch' and
3421         `stepping_through_solib_catchpoints'.
3422         * infrun.c (init_thread_stepping_state): Update.
3423         (process_event_stop_test, currently_stepping): Update.
3424         (currently_stepping_or_nexting_callback): Update.
3425
3426 2011-09-07  Yao Qi  <yao@codesourcery.com>
3427
3428         * gdbthread.h (struct thread_info): Comment on field
3429         `step_after_step_resume_breakpoint'.
3430
3431 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3432
3433         * remote.c (remote_console_output): Reindent.
3434
3435 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3436
3437         * frame.c (has_stack_frames): Check for currently selected
3438         traceframe.
3439
3440 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3441
3442         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3443         (set_async_annotation_level, set_async_prompt, pop_prompt)
3444         (push_prompt, new_async_prompt): Delete declarations.
3445         * top.h (get_prompt, set_prompt): Change prototype.
3446         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3447         declarations.
3448         * top.c (command_loop):
3449         (top_prompt): New global.
3450         (get_prefix, set_prefix, get_suffix, ): Delete.
3451         (get_prompt, set_prompt): Rewrite.
3452         (show_new_async_prompt): Rename to ...
3453         (show_prompt): ... this.
3454         (init_main): Adjust.  Don't handle --annotate=2 here.
3455         * event-top.c (new_async_prompt): Delete.
3456         (the_prompts): Delete.
3457         (more_to_come): Make static.
3458         (display_gdb_prompt): Use top_level_prompt() to compute the top
3459         level prompt, and don't notify the before_prompt observers
3460         directly here.  Always trick readline into not trying to display
3461         the prompt if sync_execution and displaying the primary prompt.
3462         If displaying a local/secondary prompt, always show it, even if
3463         sync_execution is set.
3464         (change_annotation_level): Delete.
3465         (top_level_prompt): New, based on change_annotation_level.
3466         (push_prompt, pop_prompt): Delete.
3467         (async_disable_stdin): No longer pushes prompt.
3468         (command_line_handler): No longer pushes or pops prompt.  If more
3469         input is expected, call display_gdb_prompt with an explicit empty
3470         prompt.
3471         (async_stop_sig): Adjust.
3472         (set_async_annotation_level, set_async_prompt): Delete.
3473         * python/python.c (before_prompt_hook): Adjust.
3474
3475 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3476
3477         PR cli/13110
3478
3479         * infrun.c (fetch_inferior_event): Check if there's a selected
3480         thread before checking if the selected thread is executing.
3481
3482 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3483
3484         * inf-loop.c (execute_command): Don't check if the current thread
3485         if running before synchronously waiting for command completion.
3486         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3487         here.
3488         (normal_stop): Call async_enable_stdin here.
3489         * inf-loop.c (inferior_event_handler): Don't call
3490         async_enable_stdin, nor handle "set exec-done-display" here.
3491
3492 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3493
3494         GDB 7.3.1 released.
3495
3496 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3497
3498         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3499
3500 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3501
3502         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3503
3504 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3505
3506         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3507
3508 2011-09-02  Matt Rice  <ratmice@gmail.com>
3509
3510         PR gdb/10720
3511         * event-top.c (cli_command_loop): Replace readline setup with
3512         direct call to display_gdb_prompt.
3513         (display_gdb_prompt): Do not call observer mechanism during
3514         synchronous execution.
3515
3516 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3517
3518         * linux-nat.c (in_pid_list_p): New.
3519         (linux_record_stopped_pid): Delete.
3520         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3521         already attached to the LWP.  Return an indication if so.
3522         (linux_nat_filter_event): Adjust.
3523         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3524         returning an indication to ignore this thread.
3525
3526 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3527
3528         * top.c: Include interps.h.
3529         (execute_command): If the target can async, but the interpreter is
3530         in sync mode, synchronously wait for the command to finish before
3531         returning.
3532         (execute_command_to_string): Force the interpreter to sync mode.
3533         * infrun.c: Include interps.h.
3534         (fetch_inferior_event): Don't restore the prompt yet if the
3535         interpreter is in sync mode.
3536         * interps.c (interpreter_async): New global.
3537         * interps.h (interpreter_async): Declare.
3538         * inf-loop.c: Include interps.h.
3539         (inferior_event_handler): Don't print the language change or run
3540         breakpoint commands yet if the interpreter in is sync mode.
3541         * main.c (captured_command_loop): Flip the interpreter to async
3542         mode.
3543         * cli/cli-script.c: Include interps.h.
3544         (execute_user_command, while_command, if_command): Force the
3545         interpreter to sync mode.
3546         * python/python.c: Include interps.h.
3547         (python_command, execute_gdb_command): Force the interpreter to
3548         sync mode.
3549
3550 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3551
3552         * value.c (show_convenience): Catch errors thrown while printing
3553         each internal variable.
3554         * infrun.c (validate_siginfo_access): New function.
3555         (siginfo_value_read, siginfo_value_write): Call it.
3556
3557 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3558
3559         Revert:
3560         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3561         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3562         attribute.
3563
3564 2011-08-29  Yao Qi  <yao@codesourcery.com>
3565
3566         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3567         (cmp_name): New.
3568         (enable_break2): Update caller.
3569         * solib-frv.c (bfd_lookup_symbol): Removed.
3570         (cmp_name): New.
3571         (enable_break2): Update caller.
3572         * solib-pa64.c (bfd_lookup_symbol): Removed.
3573         (cmp_name): New.
3574         * solib-svr4.c (bfd_lookup_symbol): Removed.
3575         (cmp_name_and_sec_flags): New.
3576         (enable_break): Update caller.
3577         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3578         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3579         (gdb_bfd_lookup_symbol): New.
3580         * solib.h: Functions declarations.
3581
3582 2011-08-29  Yao Qi  <yao@codesourcery.com>
3583
3584         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3585         and solib-dsbt.o.
3586
3587 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3588
3589         Fix TUI stepi on code without symbols.
3590         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3591         current PC instead.
3592
3593 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3594
3595         Code cleanup.
3596         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3597         and the static keyword.
3598         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3599         Make prefix an array.
3600         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3601         * mi/mi-main.c (get_register): Remove stb initialization and the static
3602         keyword.
3603
3604 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         Code cleanup - make mi_opt const.
3607         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3608         opts const.
3609         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3610         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3611         (mi_cmd_env_dir): Likewise.
3612         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3613         (mi_cmd_target_file_put): Likewise.
3614         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3615         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3616         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3617         (mi_valid_noargs): Make opts const.
3618         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3619         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3620         (mi_cmd_data_read_memory): Likewise.
3621         (mi_cmd_data_read_memory_bytes): Likewise.
3622         (mi_cmd_data_write_memory): Likewise.
3623
3624 2011-08-26  Matt Rice  <ratmice@gmail.com>
3625
3626         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3627         bcache_xmalloc,  replace bcache_xmalloc with call to
3628         psymbol_bcache_init for psymbol_cache.
3629         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3630
3631 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3632
3633         * inf-loop.c (inferior_event_handler): Add exception_print in
3634         INF_EXEC_COMPLETE.
3635
3636 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3637
3638         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3639         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3640         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3641         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3642         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3643         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3644         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3645         * infrun.c (fetch_inferior_event): Call
3646         make_bpstat_clear_actions_cleanup.
3647         * top.c (execute_command): New variable cleanup_if_error, call
3648         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3649         * utils.c (do_bpstat_clear_actions_cleanup)
3650         (make_bpstat_clear_actions_cleanup): New functions.
3651
3652 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3653
3654         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3655         either the parent or the child forks.  Rename a couple locals.
3656
3657 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3658
3659         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3660         library call.  Avoid reading the `status' local if all waitpid
3661         calls failed.
3662
3663 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3664
3665         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3666         opening /proc/PID/task always succeeds.
3667
3668 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3669
3670         * linespec.c (symtab_from_filename): Check for the end of string.
3671
3672 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3673
3674         PR mi/11912
3675         * varobj.c (cplus_describe_child): Add the keyword
3676         'class' to the output of the method when dealing 
3677         with a cast to a base class.
3678
3679 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3680
3681         No functionality change.
3682         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3683         function comment a reference, new variables tp and bs, move here code
3684         from throw_exception.
3685         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3686         describe it in the comment.
3687         * exceptions.c (throw_exception): Remove variable tp, move the code for
3688         bpstat_clear_actions to bpstat_clear_actions.
3689
3690 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3691
3692         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3693         * linux-nat.c: Include linux-procfs.h.
3694         (linux_proc_get_tgid): Move to ...
3695         * common/linux-procfs.c: ... here. New file.
3696         * common/linux-procfs.h: New file.
3697         * linux-thread-db.c: Include linux-procfs.h.
3698         * Makefile.in: Update dependencies.
3699         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3700         * config/arm/linux.mh: Likewise.
3701         * config/i386/linux.mh: Likewise.
3702         * config/i386/linux64.mh: Likewise.
3703         * config/ia64/linux.mh: Likewise.
3704         * config/m32r/linux.mh: Likewise.
3705         * config/m68k/linux.mh: Likewise.
3706         * config/mips/linux.mh: Likewise.
3707         * config/pa/linux.mh: Likewise.
3708         * config/pa/linux.mh: Likewise.
3709         * config/powerpc/linux.mh: Likewise.
3710         * config/powerpc/ppc64-linux.mh: Likewise.
3711         * config/powerpc/spu-linux.mh: Likewise.
3712         * config/sparc/linux.mh: Likewise.
3713         * config/sparc/linux64.mh: Likewise.
3714         * config/xtensa/linux.mh: Likewise.
3715
3716 2011-08-24  Hui Zhu  <teawater@gmail.com>
3717
3718         * tracepoint.c (cond_string_is_same): New function.
3719         (find_matching_tracepoint): Add condition check
3720         by cond_string_is_same.
3721
3722 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3723
3724         Fix build error in Darwin port.
3725         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3726
3727 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3728
3729         Code cleanup.
3730         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3731         (command_line_is_silent): New function.
3732         (bpstat_do_actions_1): No longer use commands_left, use
3733         command_line_is_silent for commands.
3734         (bpstat_alloc): Remove clearing of commands_left.
3735         (bpstat_stop_status): Remove initialization of commands_left, use
3736         command_line_is_silent.
3737         * breakpoint.h (struct bpstats): Remove commands_left.
3738
3739 2011-08-18  Keith Seitz  <keiths@redhat.com>
3740
3741         PR c++/12266
3742         * cp-name-parser.y (struct demangle_info): Remove unused
3743         member PREV.
3744         (d_grab): Likewise.
3745         (allocate_info): Change return type to struct demangle_info *.
3746         Always allocate a new demangle_info.
3747         Remove unused PREV pointer.
3748         (cp_new_demangle_parse_info): New function.
3749         (cp_demangled_name_parse_free): New function.
3750         (do_demangled_name_parse_free_cleanup): New function.
3751         (make_cleanup_cp_demangled_name_parse_free): New function.
3752         (cp_demangled_name_to_comp): Change return type to
3753         struct demangle_parse_info *.
3754         Allocate a new storage for each call.
3755         (main): Update usage for cp_demangled_name_to_comp
3756         API change.
3757         * cp-support.h (struct demangle_parse_info): New structure.
3758         (cp_demangled_name_to_comp): Update API change for
3759         return type.
3760         (cp_new_demangle_parse_info): Declare.
3761         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3762         (cp_demangled_name_parse_free): Declare.
3763         * cp-support.c (cp_canonicalize_string): Update API
3764         change for cp_demangled_name_to_comp.
3765         (mangled_name_to_comp): Likewise.
3766         Return struct demangle_parse_info, too.
3767         (cp_class_name_from_physname): Update mangled_name_to_comp
3768         API change.
3769         (method_name_from_physname): Likewise.
3770         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3771         (cp_remove_params): Likewise.
3772         * python/py-type.c (typy_legacy_template_argument): Likewise.
3773
3774         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3775         (cp_merge_demangle_parse_infos): Declare.
3776         * cp-support.c (ignore_typedefs): New file global.
3777         (copy_string_to_obstack): New function.
3778         (inspect_type): New function.
3779         (replace_typedefs): New function.
3780         (replace_typedefs_qualified_name): New function.
3781         (cp_canonicalize_string_no_typedefs): New function.
3782         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3783         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3784         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3785         instead of cp_canonicalize_string.
3786         (find_method): Likewise.
3787         (decode_compound): Before looking up the name, call
3788         cp_canonicalize_string_no_typedefs.
3789         (decode_variable): Likewise.
3790
3791 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3792             Tom Tromey  <tromey@redhat.com>
3793             Matt Rice <ratmice@gmail.com>
3794
3795         * python/lib/gdb/prompt.py: New file.
3796         * python/lib/gdb/command/prompt.py: New file.
3797         * NEWS: Document set extended-prompt and gdb.prompt library
3798
3799 2011-08-16  Yao Qi  <yao@codesourcery.com>
3800
3801         * tic6x-linux-tdep.c: Move const arrays definition from here...
3802         * tic6x-tdep.c: to here ...
3803
3804 2011-08-14  Yao Qi  <yao@codesourcery.com>
3805
3806         * NEWS: New port to Texas Instruments TMS320C6x.
3807
3808 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3809             Bernd Schmidt  <bernds@codesourcery.com>
3810             Yao Qi  <yao@codesourcery.com>
3811
3812         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3813         * solib-dsbt.c: New file.  Support DSBT shared object.
3814         * tic6x-linux-tdep.c: New file.
3815         * tic6x-tdep.c: New file.
3816         * tic6x-tdep.h: New file.
3817
3818 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3819             Yao Qi  <yao@codesourcery.com>
3820
3821         * remote.c (PACKET_qXfer_fdpic): New enum value.
3822         (remote_protocol_features): Add qXfer:fdpic:read packet.
3823         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3824         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3825         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3826
3827 2011-08-14  Yao Qi  <yao@codesourcery.com>
3828
3829         Target description for tic6x.
3830         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3831         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3832         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3833         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3834         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3835         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3836         * features/tic6x-c64xp-linux.xml: New.
3837         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3838         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3839         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3840         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3841         * regformats/tic6x-c64xp.dat,
3842         regformats/tic6x-c62x-linux.dat: Generated.
3843         * regformats/tic6x-c64x-linux.dat,
3844         regformats/tic6x-c64xp-linux.dat: Generated.
3845         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3846         features/tic6x-*.c files.
3847         Add regformats/tic6x-*.dat files.
3848
3849 2011-08-12  Doug Evans  <dje@google.com>
3850
3851         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3852         * python/py-symbol.c (sympy_get_type): New function.
3853         (symbol_object_getset): Add "type".
3854
3855 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3856
3857         PR tui/13073
3858
3859         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3860         empty name.
3861         (tui_show_register_group): Don't store a byte buffer in the data
3862         element's value.
3863         (tui_register_format): Skip registers with an empty name.
3864         (tui_get_register): Store a struct value in the data element's
3865         value field instead of a byte buffer holding the raw register
3866         contents.  Account for optimized-out and unavailable registers
3867         when comparing register contents.
3868
3869 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3870
3871         * printcmd.c (current_display_number): Update comment.
3872         (disable_current_display_cleanup): Delete.
3873         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
3874         catch errors thrown while evaluating and printing the display.
3875
3876 2011-08-09  Tom Tromey  <tromey@redhat.com>
3877
3878         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3879
3880 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3881
3882         * elfread.c (elf_symtab_read): Rework comments.
3883         * maint.c (maintenance_command): Ditto.
3884         * somread.c (som_symtab_read): Ditto.
3885         * solib.c (solib_find, solib_map_sections, update_solib_list)
3886         (solib_add, info_sharedlibrary_command, solib_name_from_address)
3887         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3888         (sharedlibrary_command, no_shared_libraries): Ditto.
3889         * solib-irix.c (locate_base, disable_break, enable_break)
3890         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3891         (irix_current_sos, irix_open_symbol_file_object)
3892         (irix_special_symbol_handling): Ditto.
3893         * solib-sunos.c (locate_base, first_link_map_member)
3894         (sunos_current_sos, disable_break, enable_break)
3895         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3896         Ditto.
3897         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3898         (open_symbol_file_object, svr4_current_sos, enable_break)
3899         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3900         Ditto.
3901         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3902         (frv_current_sos, enable_break, frv_special_symbol_handling)
3903         (frv_solib_create_inferior_hook): Ditto.
3904         * solist.h (struct target_so_ops): Extend the comments of the
3905         special_symbol_handling, current_sos and open_symbol_file_object
3906         methods.
3907
3908 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
3909
3910         * python/lib/gdb/__init__.py: Auto-load files in command and
3911         function directories.
3912         * python/python.c (finish_python_initialization): Use
3913         os.path.join.
3914         * python/lib/gdb/command/pretty_printers.py: Self register
3915         command.
3916         * NEWS: Document auto-loading.
3917
3918 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3919
3920         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3921         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3922         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
3923
3924 2011-08-08  Tom Tromey  <tromey@redhat.com>
3925
3926         * breakpoint.c (clean_up_filters): Remove.
3927         (catch_syscall_split_args): Use VEC_cleanup.
3928
3929 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3930
3931         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3932         (main): Uncomment "Demangling error\n".
3933
3934 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3935
3936         * solib-target.c (segment_attributes): Make them static.
3937         (section_attributes, library_children, library_attributes): Likewise.
3938         (library_list_children, library_list_attributes): Likesise.
3939         (library_list_elements): Likewise.
3940
3941 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
3942
3943         * exceptions.c (throw_exception): Don't disable the current
3944         display.
3945         * printcmd.c (disable_current_display_cleanup): New function.
3946         (do_one_display): Install a cleanup to disable the current display
3947         if doing the display throws.
3948
3949 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
3950
3951         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3952         initialization of the tp_new member to the corresponding
3953         gdbpy_initialize_* function.
3954         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3955         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3956         * python/py-function.c (gdbpy_initialize_functions): Likewise.
3957         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3958         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3959
3960 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3961
3962         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3963         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3964         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3965         references to current_uiout.
3966
3967 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3968
3969         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3970         (start_event_loop): Use TRY_CATCH instead of catch_errors.
3971         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3972         * top.c (gdb_readline_wrapper): Adjust.
3973         * tui/tui-interp.c (tui_command_loop):
3974         (_initialize_tui_interp): Don't install it.
3975
3976 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3977
3978         * ui-out.h (uiout): Rename to ...
3979         (current_uiout): ... this.
3980         * ui-out.c (uiout): Rename to ...
3981         (current_uiout): ... this.
3982         * ada-lang.c (print_it_exception, print_one_exception)
3983         (print_mention_exception): Adjust.
3984         * breakpoint.c (watchpoint_check): Adjust.
3985         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3986         (default_collect_info, watchpoints_info, print_one_catch_fork)
3987         (print_one_catch_vfork, print_one_catch_syscall)
3988         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3989         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3990         (print_it_watchpoint, print_mention_watchpoint)
3991         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3992         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3993         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3994         (bkpt_print_mention, momentary_bkpt_print_it)
3995         (tracepoint_print_mention, update_static_tracepoint)
3996         (tracepoints_info, save_breakpoints): Adjust.
3997         * cli-out.c (field_separator): Adjust.
3998         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3999         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4000         * frame.c (get_current_frame): Adjust.
4001         * infcmd.c (run_command_1, print_return_value): Adjust.
4002         * inferior.c (inferior_command, info_inferiors_command): Adjust.
4003         * infrun.c (print_end_stepping_range_reason): Adjust.
4004         (print_signal_exited_reason, print_exited_reason): Adjust.
4005         (print_signal_received_reason, print_no_history_reason): Adjust.
4006         * interps.c (interp_set): Adjust.
4007         * osdata.c (info_osdata_command): Adjust.
4008         * progspace.c (maintenance_info_program_spaces_command): Adjust.
4009         * remote-fileio.c (remote_fileio_request): Adjust.
4010         * remote.c (show_remote_cmd): Adjust.
4011         * solib.c (info_sharedlibrary_command): Adjust.
4012         * source.c (print_source_lines_base): Adjust.
4013         * stack.c (print_stack_frame): Adjust.
4014         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4015         * symfile-mem.c (add_vsyscall_page): Adjust.
4016         * symfile.c (load_progress, generic_load)
4017         (print_transfer_performance): Adjust.
4018         * thread.c (info_threads_command, restore_selected_frame)
4019         (thread_command): Adjust.
4020         * top.c (make_cleanup_restore_ui_file): Adjust.
4021         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4022         (print_one_static_tracepoint_marker): Adjust.
4023         * cli/cli-cmds.c (print_disassembly): Adjust.
4024         * cli/cli-decode.c (print_doc_line): Adjust.
4025         * cli/cli-interp.c (safe_execute_command): Adjust.
4026         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4027         (handle_redirections): Adjust.
4028         * cli/cli-script.c (show_user_1): Adjust.
4029         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4030         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4031         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4032         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4033         (mi_cmd_env_dir): Adjust.
4034         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4035         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4036         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4037         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4038         (list_args_or_locals): Adjust.
4039         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4040         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4041         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4042         (mi_cmd_var_list_children, mi_cmd_var_info_type)
4043         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4044         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4045         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4046         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4047         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4048         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4049         (list_available_thread_groups, mi_cmd_list_thread_groups)
4050         (mi_cmd_data_list_register_names)
4051         (mi_cmd_data_list_changed_registers)
4052         (mi_cmd_data_list_register_values, get_register)
4053         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4054         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4055         (mi_cmd_list_target_features, mi_cmd_add_inferior)
4056         (mi_execute_command, mi_load_progress): Adjust.
4057         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4058         * python/py-auto-load.c (print_script, info_auto_load_scripts):
4059         Adjust.
4060         * python/py-breakpoint.c (bppy_get_commands): Adjust.
4061         * tui/tui-interp.c (tui_command_loop): Adjust.
4062         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4063
4064 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4065
4066         * exceptions.c (struct catcher): Remove saved_uiout field.
4067         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4068         no longer save/resvore the global ui_out builder.
4069         (catch_exceptions_with_msg): Save/override/restore the global
4070         ui_out builder manually instead of relying on TRY_CATCH to do it.
4071         (catch_errors): Save/restore the global ui_out builder manually
4072         instead of relying on TRY_CATCH to do it.
4073         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4074         parameter.
4075         (TRY_CATCH): Adjust.
4076         * cli/cli-interp.c (safe_execute_command): Save/override/restore
4077         the global ui_out builder manually instead of relying on TRY_CATCH
4078         to do it.
4079
4080 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4081
4082         * breakpoint.c (update_global_location_list): Ensure
4083         invariant 'first loc marked not duplicated and inserted,
4084         following locs marked duplicated/not inserted' is respected
4085         for multiple locations at the same address.
4086         (unduplicated_should_be_inserted) New function.
4087         (swap_insertion) New function.
4088
4089 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4090
4091         * stack.c (print_frame_arguments_choices): Comment typo fix.
4092
4093 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4094
4095         Revert:
4096         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4097         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4098         argument.  Update callers.
4099
4100 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4101
4102         PR gdb/13045
4103         * doublest.c (convert_doublest_to_floatformat): Pass correct
4104         mantissa length to put_field.
4105
4106 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4107
4108         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4109         exception_print code path.
4110         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
4111         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
4112         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
4113
4114 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4115
4116         Code cleanup.
4117         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4118         Remove, merge them into ...
4119         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
4120         variable args and its initialization.
4121         (struct print_args_args, print_args_stub): Remove, merge them into
4122         print_frame.
4123         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4124         them into ...
4125         (do_gdb_disassembly): ... here.  Remove variable args and its
4126         initialization.
4127         (print_frame): Remove variable args and its initialization, new
4128         variable gdbarch and numargs (from print_args_stub), inline here
4129         print_args_stub with a TRY_CATCH.
4130         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4131         them into ...
4132         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4133         New variable e, remove variable btargs and its initialization.
4134
4135 2011-08-01  Tristan Gingold  <gingold@adacore.com>
4136
4137         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4138
4139 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4140
4141         * breakpoint.c (insert_bp_location): Document return value.
4142         (insert_breakpoint_locations): Fix documentation.
4143         (remove_breakpoints): Add documentation.
4144
4145 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4146
4147         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4148         argument.  Update callers.
4149
4150 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4151
4152         * stack.c (print_frame_info): Comment typo fix.
4153
4154 2011-07-29  Sterling Augustine  <saugustine@google.com>
4155
4156         * MAINTAINERS (Write After Approval): Add myself to the list.
4157
4158 2011-07-29  Tom Tromey  <tromey@redhat.com>
4159
4160         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4161         (library_list_start_segment): Update.
4162         (library_list_start_section): Update.
4163
4164 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
4165
4166         * varobj.c (value_get_print_value): Move hint check later into the
4167         function.  Comment function.  Free thevalue before reusing it.
4168
4169 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4170             Pedro Alves  <pedro@codesourcery.com>
4171
4172         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4173         value_one.
4174         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
4175         Assert the result kind.
4176         * value.h (value_one): Remove parameter lv.
4177
4178 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4179
4180         Fix crash on lval_computed values.
4181         * valops.c (value_zero): Use not_lval for lval_computed.
4182
4183 2011-07-27  Tom Tromey  <tromey@redhat.com>
4184
4185         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4186         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4187
4188 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4189
4190         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4191         "ptype" by their typedefs difference.
4192
4193 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4194
4195         * dwarf2expr.c (ctx_no_read_reg): New function.
4196         * dwarf2expr.h (ctx_no_read_reg): New declaration.
4197         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4198         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4199         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4200
4201 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4202
4203         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4204         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4205         file.
4206         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4207         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4208         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4209         (ctx_no_get_base_type): Move the functions here.
4210         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4211         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4212         (ctx_no_get_base_type): New declarations.
4213
4214 2011-07-27  Tom Tromey  <tromey@redhat.com>
4215
4216         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4217         entries.
4218         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4219         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4220
4221 2011-07-26  Sterling Augustine  <saugustine@google.com>
4222
4223         * cli/cli-dump.c (dump_binary_file): Change parameter type to
4224         ULONGEST.
4225         (dump_bfd_file): Likewise.
4226
4227 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4228
4229         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4230         (remote_hw_watchpoint_length_limit): New variable.
4231         (_initialize_remote) add set,show cmds for this new variable.
4232         * gdb.texinfo: document these new commands.
4233         * NEWS: Mention these new commands.
4234
4235 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4236
4237         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4238         true for software watchpoints.
4239
4240 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4241
4242         GDB 7.3 released.
4243
4244 2011-07-26  Tom Tromey  <tromey@redhat.com>
4245
4246         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4247         * dwarf2read.c (read_indirect_string_at_offset): New function.
4248         (read_indirect_string): Use it.
4249         (dwarf_decode_macro_bytes): New function, taken from
4250         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4251         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4252         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4253         New functions.
4254         (struct dwarf2_per_objfile) <macro>: New field.
4255         (dwarf2_elf_names): Add .debug_macro.
4256         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4257         (dwarf2_locate_sections): Handle new section.
4258         (read_file_scope): Handle DW_AT_GNU_macros.
4259         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4260
4261 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4262
4263         * NEWS: Mention dcache configuration.
4264         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4265         (dcache_size, dcache_line_size): New variables.
4266         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4267         (struct dcache_block): Make it expandable.
4268         (struct dcache_struct): New field.
4269         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4270         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4271         (dcache_poke_byte, dcache_print_line): Adjust.
4272         (set_dcache_size, set_dcache_line_size): New functions.
4273         (set_dcache_command, show_dcache_command): New functions.
4274         (_initialize_dcache): Add new commands.
4275
4276 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4277
4278         * progspace.h (struct program_space): Add solib_add_generation.
4279         * infcmd.c (post_create_inferior): Only call solib_add if not
4280         already done.
4281         * solib.c (solib_add): Increment solib_add_generation.
4282
4283 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4284
4285         Fix implicit pointer offsets.
4286         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4287         ptr.OFFSET.
4288
4289 2011-07-25  Tom Tromey  <tromey@redhat.com>
4290
4291         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4292         const.
4293         (ada_exception_sal): Make 'ops' const.
4294         (ada_decode_exception_location): Likewise.
4295         (ada_decode_assert_location): Likewise.
4296         (catch_assert_command): Update.
4297         (catch_ada_exception_command): Update.
4298         (create_ada_exception_catchpoint): Make 'ops' const.
4299         * breakpoint.c (set_raw_breakpoint_without_location)
4300         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4301         const.
4302         (create_internal_breakpoint): Update.
4303         (init_raw_breakpoint_without_location): Make 'ops' const.
4304         (init_raw_breakpoint, init_catchpoint)
4305         (create_fork_vfork_event_catchpoint)
4306         (create_syscall_event_catchpoint, init_breakpoint_sal)
4307         (create_breakpoint_sal, create_breakpoints_sal)
4308         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4309         * breakpoint.h (struct breakpoint) <ops>: Now const.
4310         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4311         const.
4312
4313 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4314
4315         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4316
4317 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4318
4319         * breakpoint.h (print_recreate_thread): Declare.
4320         (struct breakpoint): Move step_count, pass_count,
4321         number_on_target, static_trace_marker_id,
4322         static_trace_marker_id_idx ...
4323         (struct tracepoint): ... to this new struct.
4324         (get_tracepoint, get_tracepoint_by_number_on_target)
4325         (get_tracepoint_by_number): Change return type to struct
4326         tracepoint pointer.
4327         * breakpoint.c (is_tracepoint_type): New, factored out from
4328         is_tracepoint.
4329         (is_tracepoint): Adjust.
4330         (print_one_breakpoint_location): Cast to struct tracepoint as
4331         necessary, and adjust.
4332         (print_recreate_catch_fork, print_recreate_catch_vfork)
4333         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4334         print_recreate_thread.
4335         (init_breakpoint_sal): New, factored out from
4336         create_breakpoint_sal.
4337         (create_breakpoint_sal): Reimplement.
4338         (create_breakpoint): Allocate a struct tracecepoint if the caller
4339         wanted a tracepoint.  Use init_breakpoint_sal and
4340         install_breakpoint.
4341         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4342         (print_recreate_masked_watchpoint)
4343         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4344         (tracepoint_print_one_detail): Adjust.
4345         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4346         Dump the pass count here.
4347         (update_static_tracepoint): Adjust.
4348         (addr_string_to_sals): Adjust.
4349         (create_tracepoint_from_upload): Adjust.  Change return type to
4350         struct tracepoint pointer.
4351         (trace_pass_set_count): Change parameter type to struct tracepoint
4352         pointer, and adjust.
4353         (trace_pass_command): Adjust.
4354         (get_tracepoint, get_tracepoint_by_number_on_target)
4355         (get_tracepoint_by_number): Change return type to struct
4356         tracepoint pointer, and adjust.
4357         (print_recreate_thread): New, factored out from save_breakpoints.
4358         (save_breakpoints): Don't print thread and task and passcount
4359         recreation here.
4360         * remote.c (remote_download_tracepoint): Adjust.
4361         * tracepoint.c (trace_actions_command, validate_actionline)
4362         (start_tracing, tfind_1, trace_find_tracepoint_command)
4363         (trace_dump_command): Adjust.
4364         (find_matching_tracepoint): Change return type to struct
4365         tracepoint pointer, and adjust.
4366         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4367         (tfile_trace_find, tfile_fetch_registers): Adjust.
4368         * tracepoint.h (create_tracepoint_from_upload): Change return type
4369         to struct tracepoint pointer.
4370         * ada-lang.c (print_recreate_exception): Call
4371         print_recreate_thread.
4372         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4373
4374 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4375
4376         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4377         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4378         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4379         watchpoint_thread, watchpoint_triggered ...
4380         (struct watchpoint): ... to this new struct.
4381         (is_watchpoint): Declare.
4382         (install_breakpoint): Add new `internal' parameter.
4383         * breakpoint.c (is_watchpoint): Delete declaration.
4384         (set_breakpoint_condition): Handle watchpoints.
4385         (is_watchpoint): Make public.
4386         (watchpoint_in_thread_scope): Change parameter type to struct
4387         watchpoint.
4388         (watchpoint_del_at_next_stop): Change parameter type to struct
4389         watchpoint.  Remove assertion.  Adjust.
4390         (update_watchpoint): Ditto.
4391         (insert_breakpoints, breakpoint_init_inferior)
4392         (watchpoints_triggered, watchpoint_check)
4393         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4394         (bpstat_stop_status, print_one_breakpoint_location)
4395         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4396         to struct watchpoint as necessary, and adjust.
4397         (install_breakpoint): Add `internal' argument.  If true, don't
4398         mention the new breakpoint.  Use set_breakpoint_number.
4399         (create_fork_vfork_event_catchpoint)
4400         (create_syscall_event_catchpoint): Adjust.
4401         (dtor_watchpoint): New.
4402         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4403         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4404         (print_it_watchpoint, print_mention_watchpoint)
4405         (print_recreate_watchpoint, insert_masked_watchpoint)
4406         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4407         (print_one_detail_masked_watchpoint)
4408         (print_mention_masked_watchpoint)
4409         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4410         necessary, and adjust.
4411         (watch_command_1): Allocate and initialize a struct watchpoint
4412         instead of a struct breakpoint.  Use install_breakpoint.
4413         (catch_exec_command_1): Adjust.
4414         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4415         fields.
4416         (delete_breakpoint, enable_breakpoint_disp)
4417         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4418         as necessary, and adjust.
4419         (initialize_breakpoint_ops): Install dtor_watchpoint as
4420         watchpoints' dtor method.
4421         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4422         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4423         to struct watchpoint as necessary, and adjust.
4424
4425 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4426
4427         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4428         the the base class ops table.
4429         (catch_exception_breakpoint_ops)
4430         (catch_exception_unhandled_breakpoint_ops)
4431         (catch_assert_breakpoint_ops): Don't statically initialize.
4432         (initialize_ada_catchpoint_ops): New.
4433         (_initialize_ada_language): Call it.
4434         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4435         (bkpt_breakpoint_ops): Forward declare.
4436         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4437         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4438         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4439         (masked_watchpoint_breakpoint_ops)
4440         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4441         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4442         base class ops table.
4443         (null_re_set, null_check_status, null_works_in_software_mode)
4444         (null_resources_needed, null_print_one_detail): Delete.
4445         (bkpt_dtor): Rename to ...
4446         (base_breakpoint_dtor): ... this.  Make static.
4447         (bkpt_allocate_location): Rename to ...
4448         (base_breakpoint_allocate_location): ... this.  Make static.
4449         (base_breakpoint_re_set): New.
4450         (internal_error_pure_virtual_called): New.
4451         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4452         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4453         (base_breakpoint_works_in_software_mode)
4454         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4455         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4456         (base_breakpoint_print_recreate): New functions.
4457         (base_breakpoint_ops): New global.
4458         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4459         (bkpt_breakpoint_hit): Make static.
4460         (bkpt_check_status): Delete.
4461         (bkpt_resources_needed): Make static.
4462         (bkpt_works_in_software_mode): Delete.
4463         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4464         static.
4465         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4466         (momentary_breakpoint_ops): Don't statically initialize.
4467         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4468         Delete.
4469         (tracepoint_insert_location, tracepoint_remove_location)
4470         (tracepoint_check_status, tracepoint_works_in_software_mode)
4471         (tracepoint_print_it): Delete.
4472         (tracepoint_breakpoint_ops): Don't statically initialize.
4473         (initialize_breakpoint_ops): New.
4474         (_initialize_breakpoint): Call it.
4475         * breakpoint.h (null_re_set, null_works_in_software_mode)
4476         (null_resources_needed, null_check_status, null_print_one_detail):
4477         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4478         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4479         (bkpt_check_status, bkpt_resources_needed)
4480         (bkpt_works_in_software_mode, bkpt_print_it)
4481         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4482         Delete declarations.
4483         (initialize_breakpoint_ops): Declare.
4484
4485 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4486
4487         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4488         (momentary_bkpt_print_it): Simplify.
4489
4490 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4491
4492         Split internal, momentary and user breakpoints breakpoint_ops
4493         tables.
4494
4495         * breakpoint.c (internal_breakpoint_ops)
4496         (momentary_breakpoint_ops): Forward declare.
4497         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4498         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4499         (create_overlay_event_breakpoint)
4500         (create_std_terminate_master_breakpoint)
4501         (create_exception_master_breakpoint): Create breakpoints with
4502         internal_breakpoint_ops vtable.
4503         (set_longjmp_breakpoint): Create momentary breakpoints with
4504         momentary_breakpoint_ops vtable, using
4505         momentary_breakpoint_from_master.
4506         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4507         (create_solib_event_breakpoint): Create breakpoints with
4508         internal_breakpoint_ops vtable.
4509         (set_momentary_breakpoint): Create breakpoints with
4510         momentary_breakpoint_ops vtable.
4511         (momentary_breakpoint_from_master): New, factored out from
4512         clone_momentary_breakpoint.
4513         (clone_momentary_breakpoint): Adjust.
4514         (watch_command_1): Create scope breakpoints with
4515         momentary_breakpoint_ops vtable.
4516         (bkpt_re_set): Remove handling of internal and momentary
4517         breakpoints.
4518         (bkpt_print_mention, bkpt_print_recreate): New.
4519         (bkpt_breakpoint_ops): Adjust.
4520         (internal_bkpt_re_set, internal_bkpt_check_status)
4521         (internal_bkpt_print_it, internal_bkpt_print_mention)
4522         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4523         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4524         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4525         (momentary_bkpt_print_recreate): New.
4526         (momentary_breakpoint_ops): New.
4527
4528 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4529
4530         Implement most breakpoint_ops methods for all breakpoint types,
4531         and move the default handlings to the proper callbacks.
4532
4533         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4534         works_in_software_mode method.
4535         (insert_bp_location): Go through breakpoint_ops->insert_location
4536         for software and hardware watchpoints.
4537         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4538         breakpoint_ops.
4539         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4540         for software and hardware watchpoints.
4541         (print_it_typical): Delete.
4542         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4543         method.
4544         (watchpoint_check): Adjust comment.
4545         (bpstat_check_location): Simply always call the breakpoint's
4546         breakpoint_hit method.
4547         (bpstat_stop_status): Always call the breakpoint's check_status
4548         method.  Remove special cases for watchpoints and internal event
4549         breakpoints from here (moved to the check_status implementations).
4550         (print_one_breakpoint_location): Assume b->ops is never NULL.
4551         Remove static tracepoint marker id printing from here (moved to
4552         the print_one_detail callback implementation of tracepoints).
4553         (init_bp_location): Assert OPS is never NULL.
4554         (allocate_bp_location): Always call the breakpoint's
4555         allocate_location method, and remove the default code from here.
4556         (free_bp_location): Always call the location's dtor method, and
4557         remove the default code from here.
4558         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4559         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4560         parameter.  Pass it down.
4561         (set_raw_breakpoint): Ditto.
4562         (print_it_catch_fork): Adjust to take a bpstat as argument.
4563         (catch_fork_breakpoint_ops): Install methods.
4564         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4565         (catch_vfork_breakpoint_ops): Install methods.
4566         (dtor_catch_syscall): Call the base dtor.
4567         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4568         (catch_syscall_breakpoint_ops): Install methods.
4569         (dtor_catch_exec): Call the base dtor.
4570         (print_it_catch_exec): Adjust to take a bpstat as argument.
4571         (catch_exec_breakpoint_ops): Install methods.
4572         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4573         the breakpoint's resources_needed method, and remove the default
4574         code from here.
4575         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4576         breakpoint_ops.
4577         (clone_momentary_breakpoint): Clone the original's ops.
4578         (mention): Always call the breakpoint's print_mention method, and
4579         remove the default code from here.
4580         (create_breakpoint_sal): Adjust to pass the ops to
4581         set_raw_breakpoint rather than setting it manually.
4582         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4583         ops to set_raw_breakpoint_without_location rather than setting it
4584         manually.
4585         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4586         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4587         (ranged_breakpoint_ops): Install methods.
4588         (break_range_command): Adjust to pass the ops to
4589         set_raw_breakpoint rather than setting it manually.
4590         (re_set_watchpoint, breakpoint_hit_watchpoint)
4591         (check_status_watchpoint, resources_needed_watchpoint)
4592         (works_in_software_mode_watchpoint, print_it_watchpoint)
4593         (print_mention_watchpoint, print_recreate_watchpoint): New
4594         functions.
4595         (watchpoint_breakpoint_ops): Install new methods.
4596         (print_it_masked_watchpoint): New function.
4597         (masked_watchpoint_breakpoint_ops): Install new methods.
4598         (watch_command_1): Adjust to pass the right breakpoint_ops to
4599         set_raw_breakpoint_without_location rather than setting it
4600         manually later.  Record the current pspace.
4601         (print_it_exception_catchpoint): Adjust to take a bpstat as
4602         argument.
4603         (gnu_v3_exception_catchpoint_ops): Install new methods.
4604         (say_where): New function.
4605         (null_re_set, null_check_status, null_works_in_software_mode)
4606         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4607         New functions.
4608         (bp_location_ops): New global.
4609         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4610         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4611         (bkpt_check_status, bkpt_resources_needed)
4612         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4613         (bkpt_print_recreate): New functions.
4614         (bkpt_breakpoint_ops): New global.
4615         (tracepoint_re_set, tracepoint_insert_location)
4616         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4617         (tracepoint_check_status, tracepoint_works_in_software_mode)
4618         (tracepoint_print_it, tracepoint_print_one_detail)
4619         (tracepoint_print_mention, tracepoint_print_recreate): New
4620         functions.
4621         (tracepoint_breakpoint_ops): New global.
4622         (delete_breakpoint): Always call the breakpoint's dtor method, and
4623         remove the default handling from here.
4624         (breakpoint_re_set_default): Make static.
4625         (breakpoint_re_set_one): Always call the breakpoints re_set
4626         method, and remove the default handling from here.
4627         (trace_command, ftrace_command, strace_command)
4628         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4629         to create_breakpoint.
4630         (save_breakpoints): Always call the breakpoint's print_recreate
4631         method, and remove the default handling from here.
4632
4633         * ada-lang.c (dtor_exception): Call the base dtor.
4634         (re_set_exception): Call the base method.
4635         (print_it_exception, print_it_catch_exception): Adjust to take a
4636         bpstat as argument.
4637         (catch_exception_breakpoint_ops): Install methods.
4638         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4639         argument.
4640         (catch_exception_unhandled_breakpoint_ops): Install methods.
4641         (print_it_catch_assert): Adjust to take a bpstat as argument.
4642         (catch_assert_breakpoint_ops): Install methods.
4643
4644         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4645         to take a bpstat as argument.
4646         (enum print_stop_action): Add describing comments to each enum
4647         value.
4648         (breakpoint_re_set_default): Delete declaration.
4649         (null_re_set, null_works_in_software_mode, null_resources_needed)
4650         (null_check_status, null_print_one_detail): Declare.
4651         (bkpt_breakpoint_ops): Declare.
4652         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4653         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4654         (bkpt_check_status, bkpt_resources_needed)
4655         (bkpt_works_in_software_mode, bkpt_print_it)
4656         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4657         Declare.
4658
4659         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4660         bkpt_breakpoint_ops.
4661         * python/py-breakpoint.c (bppy_init): Ditto.
4662
4663 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4664
4665         * MAINTAINERS (Write After Approval): Add myself to the list.
4666
4667 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4668
4669         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4670
4671 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4672
4673         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4674         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4675         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4676         adjust.
4677         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4678         (struct i386_debug_reg_state): New.
4679         (i386_init_dregs): New.
4680         (dr_mirror): New.
4681         (i386_cleanup_dregs): Use i386_init_dregs.
4682         (i386_show_dr): Add state parameter and adjust.
4683         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4684         the inferior here.
4685         (i386_remove_aligned_watchpoint): Likewise.
4686         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4687         (i386_update_inferior_debug_regs): New.
4688         (i386_insert_watchpoint): Work on a local mirror of the debug
4689         registers, and only update the inferior on success.
4690         (i386_remove_watchpoint): Ditto.
4691         (i386_region_ok_for_watchpoint): Adjust.
4692         (i386_stopped_data_address): Adjust.
4693         (i386_insert_hw_breakpoint): Adjust.
4694         (i386_remove_hw_breakpoint): Adjust.
4695
4696 2011-07-22  Tom Tromey  <tromey@redhat.com>
4697
4698         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4699         from amd64_pseudo_register_read.  Change arguments.  Call
4700         mark_value_bytes_unavailable when needed.
4701         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4702         set_gdbarch_pseudo_register_read.
4703         * sentinel-frame.c (sentinel_frame_prev_register): Use
4704         regcache_cooked_read_value.
4705         * regcache.h (regcache_cooked_read_value): Declare.
4706         * regcache.c (regcache_cooked_read_value): New function.
4707         (regcache_cooked_read): Call
4708         gdbarch_pseudo_register_read_value if available.
4709         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4710         (i386_pseudo_register_read): Remove.
4711         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4712         i386_pseudo_register_read.  Change arguments.  Call
4713         mark_value_bytes_unavailable when needed.
4714         (i386_pseudo_register_read_value): New function.
4715         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4716         not set_gdbarch_pseudo_register_read.
4717         * gdbarch.sh (pseudo_register_read_value): New method.
4718         * gdbarch.c, gdbarch.h: Rebuild.
4719         * findvar.c (value_from_register): Call get_frame_register_value.
4720
4721 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4722
4723         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4724         get_prefix.
4725         (display_gdb_prompt): Likewise.
4726         (change_annotation_level): Likewise.
4727         (push_prompt): Likewise.
4728         (pop_prompt): Likewise.
4729         (handle_stop_sig): Use get_prompt with a level.
4730         * top.c (command_loop): Use get_prompt with a level.
4731         (set_async_annotation_level): Use set_prompt with a level.
4732         (get_prefix): New function.
4733         (set_prefix): Ditto.
4734         (set_suffix): Ditto.
4735         (get_suffix): Ditto.
4736         (get_prompt): Accept a level argument.
4737         (set_prompt): Accept a level argument.  Free old prompts.  Set
4738         new_async_prompt if level is 0.
4739         (init_main): Use set_prompt with a level.  Do not set
4740         new_async_prompt.
4741         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4742         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4743         Modify set_prompt, get_prompt to account for levels.
4744         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4745         level.
4746         * python/python.c (before_prompt_hook): Use set_prompt.
4747         
4748 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4749
4750         * defs.h: Add guard against inclusion in gdbserver.
4751         (struct ptid, ptid_t): Move to common/ptid.h.
4752         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4753         xsnprintf, internal_error): Move to common/common-utils.h.
4754         (nomem): Delete.
4755         * gdb_assert.h: Move into common/ sub-directory.
4756         * gdb_locale.h: Ditto.
4757         * gdb_dirent.h: Ditto.
4758         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4759         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4760         Move into common/ptid.h.
4761         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4762         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4763         Change nomem to malloc_failure.
4764         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4765         * utils.c (nomem): Rename to malloc_failure.
4766         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4767         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4768         (gdb_buildargv): Change nomem to malloc_failure.
4769         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4770         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4771         ptid_is_pid): Move into common/ptid.c.
4772         (initialize_infrun): Delete initialization of null_ptid and
4773         minus_one_ptid.
4774         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4775         linux_common_xfer_osdata.
4776         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4777         common/ptid.c and common/buffer.c.
4778         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4779         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4780         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4781         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4782         rules.
4783         * common/gdb_assert.h: New.
4784         * common/gdb_dirent.h: New.
4785         * common/gdb_locale.h: New.
4786         * common/buffer.c: New.
4787         * common/buffer.h: New.
4788         * common/ptid.c: New.
4789         * common/ptid.h: New.
4790         * common/xml-utils.c: New.
4791         * common/xml-utils.h: New.
4792         * common/common-utils.c: New.
4793         * common/common-utils.h: New.
4794         * common/linux-osdata.c: New.
4795         * common/linux-osdata.h: New.
4796         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4797         * config/arm/linux.mh (NATDEPFILES): Ditto.
4798         * config/i386/linux.mh (NATDEPFILES): Ditto.
4799         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4800         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4801         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4802         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4803         * config/mips/linux.mh (NATDEPFILES): Ditto.
4804         * config/pa/linux.mh (NATDEPFILES): Ditto.
4805         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4806         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4807         * config/s390/s390.mh (NATDEPFILES): Ditto.
4808         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4809         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4810         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4811
4812 2011-07-21  Matt Rice  <ratmice@gmail.com>
4813
4814         * NEWS: Add info macros and info definitions commands.
4815
4816 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4817
4818         * NEWS: Document Python prompt substitution hook.
4819
4820 2011-07-18  Matt Rice  <ratmice@gmail.com>
4821
4822         PR macros/12999
4823         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4824         * macrotab.c (foreach_macro): Ditto.
4825         (foreach_macro_in_scope): Ditto.
4826         * macrocmd.c (print_macro_callback): New function.
4827         (info_macro_command): Move some code to print_macro_definition.
4828         (print_macro_definition): New function.
4829         (print_one_macro): Add new arguments to callback.
4830         (info_definitions_command): New function.
4831         (info_macros_command): Ditto.
4832         (_initialize_macrocmd): Add info macros and info definitions commands.
4833         * symtab.c (add_macro_name): Add new arguments to callback.
4834
4835 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4836             Tom Tromey  <tromey@redhat.com>
4837
4838         * top.c (set_prompt): Rewrite to free previous prompt, free
4839         asynch_new_prompt and set both on new prompts.
4840         * event-top.c (display_gdb_prompt): Add prompt substitution
4841         logic.
4842         * python/python.c (before_prompt_hook): New function.
4843
4844 2011-07-20  Matt Rice  <ratmice@gmail.com>
4845
4846         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4847         arguments to store_unsigned_integer.
4848
4849 2011-07-20  Tom Tromey  <tromey@redhat.com>
4850
4851         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4852         in some declaration-only cases.
4853
4854 2011-07-18  Tom Tromey  <tromey@redhat.com>
4855
4856         PR symtab/12984:
4857         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4858         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4859         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4860         <debug_type_section>: New field.
4861         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4862         (load_cu): Use appropriate section.
4863         (create_signatured_type_table_from_index): Add 'section'
4864         argument.
4865         (dwarf2_read_index): Only allow a single .debug_types section.
4866         (dw2_get_file_names): Use appropriate section.
4867         (read_type_comp_unit_head): Add 'section' argument.
4868         (create_debug_types_hash_table): Loop over all .debug_types
4869         sections.
4870         (init_cu_die_reader): Use appropriate section.
4871         (process_psymtab_comp_unit, load_partial_comp_unit)
4872         (load_full_comp_unit, read_die_and_children, find_partial_die)
4873         (lookup_die_type, determine_prefix, follow_die_offset): Update.
4874         (lookup_signatured_type_at_offset): Add 'section' argument.
4875         (read_signatured_type_at_offset): Add 'sect' argument.
4876         (read_signatured_type): Use appropriate section.
4877         (set_die_type, get_die_type_at_offset): Update.
4878         (dwarf2_per_objfile_free): Free all .debug_types sections, and
4879         VEC.
4880         (write_psymtabs_to_index): Don't allow index with more than one
4881         .debug_types section.
4882
4883 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4884
4885         Fix crash if referenced CU is aged out.
4886         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4887         xfree of block.data.
4888         (indirect_pieced_value): New variable back_to, use to for xfree of
4889         baton.data.
4890         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4891         block.data.
4892         * dwarf2read.c (dwarf2_find_base_address): New prototype.
4893         (load_cu): New function from ...
4894         (dw2_do_instantiate_symtab): ... the code here ...
4895         (process_full_comp_unit): ... and here.
4896         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
4897         retval.data.
4898
4899 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4900
4901         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4902         type.
4903
4904 2011-07-19  Gary Benson  <gbenson@redhat.com>
4905
4906         * infrun.c (struct execution_control_state): New member
4907         stop_func_filled_in.
4908         (clear_stop_func, fill_in_stop_func): New functions.
4909         (handle_inferior_event): Call clear_stop_func rather than
4910         manipulating the execution control state directly.
4911         Call fill_in_stop_func lazily as required rather than
4912         directly calling find_pc_partial_function in all cases.
4913
4914 2011-07-18  Tom Tromey  <tromey@redhat.com>
4915
4916         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4917         checking for variable-sized array.
4918
4919 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
4920
4921         * varobj.h (varobj_languages): Add vlang_ada definition to the list
4922         of supported languages.
4923         * varobj.c: Add top definitions and basic implementation of the
4924         following callbacks: ada_number_of_children, ada_name_of_variable,
4925         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4926         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4927         (languages): Register Ada-specific callbacks.
4928         (variable_language): Add the Ada case in the language setter switch.
4929
4930 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4931
4932         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4933
4934 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4935
4936         Code cleanup.
4937         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4938         (execute_stack_op): Use dwarf2_frame_ctx_funcs
4939         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4940         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4941         get_frame_cfa, get_tls_address and dwarf_call via funcs.
4942         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4943         (struct dwarf_expr_context_funcs): New, move here methods from ...
4944         (struct dwarf_expr_context): ... here.  New fields funcs.
4945         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4946         (dwarf_expr_ctx_funcs): New.
4947         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4948         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4949         (needs_frame_ctx_funcs): New.
4950         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4951
4952 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4953
4954         * MAINTAINERS (Write After Approval): Add myself to the list.
4955
4956 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4957
4958         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4959         that CIE pointer of an FDE really points to a CIE .
4960
4961 2011-07-15  Hui Zhu  <teawater@gmail.com>
4962
4963         * remote.c (remote_get_trace_status): Add comments.
4964
4965 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4966
4967         Code cleanup - constify struct lval_funcs.
4968         * dwarf2loc.c (pieced_value_funcs): Make it const.
4969         * infrun.c (siginfo_value_funcs): Likewise.
4970         * opencl-lang.c (opencl_value_funcs): Likewise.
4971         * valops.c (value_assign, value_ind): Make the funcs variable const.
4972         * value.c (struct value): Make location.computed.funcs target const.
4973         Rearrange the comments.
4974         (allocate_computed_value): Make the funcs parameter target const.
4975         (value_computed_funcs): Return the funcs target const.
4976         (value_free, value_copy, set_value_component_location): Make the funcs
4977         variable const.
4978         * value.h (allocate_computed_value): Make the funcs parameter target
4979         const.
4980         (value_computed_funcs): Return the funcs target const.
4981         * windows-tdep.c (tlb_value_funcs): Make it const.
4982
4983 2011-07-14  Hui Zhu  <teawater@gmail.com>
4984
4985         * remote.c (remote_get_trace_status): Initialize p.
4986
4987 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4988
4989         Work around kgdb.
4990         * remote.c (remote_get_trace_status): New variable ex.  Put
4991         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
4992
4993 2011-07-13  Tom Tromey  <tromey@redhat.com>
4994
4995         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4996         value_from_contents for final conversion.
4997
4998 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4999
5000         Code cleanup.
5001         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5002         Indent prototypes so they do not get into tags.
5003
5004 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5005
5006         Code cleanup making also optimized out values lazy.
5007         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5008         allocate_optimized_out_value.  Twice.
5009         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
5010         * findvar.c (read_var_value): Likewise.
5011         * value.c (allocate_optimized_out_value): New function.
5012         * value.h (allocate_optimized_out_value): New declaration.
5013
5014 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5015
5016         Fix occasional crash of CTRL-C during DWARF read in.
5017         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5018
5019 2011-07-11  Tom Tromey  <tromey@redhat.com>
5020
5021         * regcache.c (struct regcache_descr): Fix typo.
5022         * i387-tdep.c (i387_supply_xsave): Fix typo.
5023
5024 2011-07-11  Tom Tromey  <tromey@redhat.com>
5025
5026         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5027         (read_file_scope, read_type_unit_scope): Use it.
5028
5029 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5030
5031         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5032         `int'.
5033
5034 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5035
5036         PR python/12438
5037         * python/python.c: Set gdbpy_should_print_stack default to off.
5038         (set_python): Deprecate maint set python print-stack to
5039         class_deprecate.
5040         (_initialize_python): Deprecate maint set/show python print-stack.
5041         Add new prefix command, python.  Add new setting, print-backtrace.
5042         * NEWS: Document set python print-stack.  Document default change.
5043
5044 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5045
5046         * python/py-inferior.c (infpy_dealloc): New function.
5047         (inferior_to_inferior_object): Return a new object, or a
5048         new reference to the existing object.
5049         (find_thread_object): Cleanup references to inferior.
5050         (delete_thread_object): Ditto.
5051         * python/py-infthread.c (create_thread_object): Do not increment
5052         inferior reference count.
5053
5054 2011-07-08  Tom Tromey  <tromey@redhat.com>
5055
5056         * dwarf2loc.c (locexpr_regname): New function.
5057         (locexpr_describe_location_piece): Use it.
5058         (disassemble_dwarf_expression): Add per_cu argument.  Use
5059         locexpr_regname.
5060         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5061         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5062         New cases.
5063         (locexpr_describe_location_1): Add per_cu argument.
5064         (locexpr_describe_location): Update.
5065         (loclist_describe_location): Update.
5066
5067 2011-07-08  Tom Tromey  <tromey@redhat.com>
5068
5069         * dwarf2expr.c (execute_stack_op): Add QUIT.
5070
5071 2011-07-07  Hui Zhu  <teawater@gmail.com>
5072
5073         Revert:
5074         2011-07-06  Hui Zhu  <teawater@gmail.com>
5075         * remote.c (remote_start_remote): Add TRY_CATCH for
5076         remote_get_trace_status.
5077         * tracepoint.c (disconnect_tracing): Ditto.
5078
5079 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
5080
5081         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5082         variables as signed, not unsigned.
5083
5084 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
5085
5086         * jit.c (jit_inferior_init): Reformat forward declaration.
5087
5088 2011-07-06  Matt Rice  <ratmice@gmail.com>
5089
5090         * MAINTAINERS (Write After Approval): Add myself to the list.
5091
5092 2011-07-06  Hui Zhu  <teawater@gmail.com>
5093
5094         * remote.c (remote_start_remote): Add TRY_CATCH for
5095         remote_get_trace_status.
5096         * tracepoint.c (disconnect_tracing): Ditto.
5097
5098 2011-07-05  Tom Tromey  <tromey@redhat.com>
5099
5100         * symtab.c (operator_chars): Now static.
5101         * linespec.c (operator_chars): Don't declare.
5102
5103 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5104
5105         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5106
5107 2011-07-05  Tom Tromey  <tromey@redhat.com>
5108
5109         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5110         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5111         (TYPE_CPLUS_REALLY_JAVA): New macro.
5112         * dwarf2read.c (process_structure_scope): Set
5113         TYPE_CPLUS_REALLY_JAVA.
5114
5115 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5116
5117         * ada-lang.c: Fix typos.
5118         * amd64-tdep.c: Likewise.
5119         * breakpoint.c: Likewise.
5120         * cli/cli-decode.c: Likewise.
5121         * findcmd.c: Likewise.
5122         * inline-frame.c: Likewise.
5123         * mi/mi-main.c: Likewise.
5124         * minsyms.c: Likewise.
5125         * monitor.c: Likewise.
5126         * monitor.h: Likewise.
5127         * prologue-value.c: Likewise.
5128         * reverse.c: Likewise.
5129         * s390-tdep.c: Likewise.
5130
5131 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5132
5133         * jit.c (jit_inferior_init): Forward declare.
5134         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5135
5136 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5137
5138         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5139
5140 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5141
5142         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5143         (tcb_fieldno): Add activation_link field.
5144         (get_known_tasks_addr): Moved and rewritten.
5145         (get_tcb_types_info): Set activation_link field.
5146         (read_known_tasks_array): Add parameter.  Rewritten.
5147         (read_known_tasks_list): New function.
5148         (read_known_tasks): New function.
5149         (ada_build_task_list): Call read_known_tasks instead of
5150         read_known_tasks_array.
5151         * ravenscar-thread.c: Add first_task_name constant.
5152         (has_ravenscar_runtime): Check for task list too.
5153
5154 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5155
5156         * ada-tasks.c: Renames fieldno to actb_fieldno.
5157         (ada_get_task_number): Indentation.
5158         (get_tcb_types_info): Remove all parameters.  Write directly
5159         the globals.
5160         (ptid_from_atcb_common): Adjust.
5161         (read_atcb): Adjust.
5162
5163 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5164
5165         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5166
5167 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5168
5169         * ui-out.c (ui_out_field_core_addr): Mention that the function
5170         description is in the header file.
5171         * ui-out.h (ui_out_field_core_addr): Document function.
5172
5173 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5174
5175         * ui-out.c (ui_out_get_field_separator): Remove unused function.
5176         * ui-out.h (ui_out_get_field_separator): Remove prototype.
5177
5178 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5179
5180         * symtab.c (expand_line_sal): Remove empty line.
5181
5182 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
5183
5184         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5185         same way as ELFOSABI_NONE.
5186         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5187
5188 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5189
5190         * breakpoint.c: Fix typos in comments.
5191         * linespec.c: Likewise.
5192         * symtab.c: Likewise.
5193
5194 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5195
5196         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5197         section in separate object files.
5198
5199 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5200
5201         Fix false GCC warning.
5202         * linespec.c (decode_line_1): Initialize values.
5203
5204 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5205
5206         * linespec.c (find_method): Accept the function type automatically only
5207         if it was specified with parameter types.
5208
5209 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5210
5211         Stop on first linespec terminator instead of eating what we can.
5212         * linespec.c (is_linespec_boundary): New function.
5213         (name_end): Remove function.
5214         (keep_name_info): New parameter on_boundary, replace the body.
5215         (decode_line_1): Provide the parameter to keep_name_info.
5216         (decode_compound): Likewise.  Drop the trailing java return type
5217         handling.  Twice.
5218
5219 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5220
5221         Fall back linespec to minimal symbols.
5222         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
5223         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5224         (find_method, symbol_found): Change error to cplusplus_error.
5225
5226 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5227
5228         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5229
5230 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5231             Tom Tromey  <tromey@redhat.com>
5232
5233         * dwarf2read.c (check_physname): New variable.
5234         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5235         (show_check_physname): New function.
5236         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5237
5238 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5239
5240         * machoread.c (macho_symfile_read): Delete OBE comment.
5241
5242 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5243
5244         * machoread.c (struct macho_oso_data): Delete.
5245         (current_oso): Delete.
5246         (macho_relocate_common_syms): New function, mostly extracted
5247         out of
5248         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5249         Remove code that sets and unset current_oso.
5250         (macho_symfile_relocate): Delete handling of common symbols,
5251         now moved to macho_relocate_common_syms.
5252
5253 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5254
5255         * darwin-nat.c (darwin_ptrace): Add documentation.
5256         Set errno to zero before calling ptrace.  If ptrace returns
5257         -1 and errno is zero, then change then return zero.
5258         (darwin_kill_inferior): Issue a warning instead of triggering
5259         a failed assertion when the PT_KILL ptrace operations returned
5260         nonzero.
5261
5262 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5263
5264         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5265         only when inf->private->no_ptrace.
5266
5267 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5268
5269         * ada-lang.c (print_it_exception): Print temporary catchpoints
5270         as "Temporary catchpoint".
5271         (print_mention_exception): Likewise.
5272
5273 2011-07-01  Tom Tromey  <tromey@redhat.com>
5274
5275         * jv-lang.c (java_language_defn): Use java_printchar,
5276         java_printstr.
5277         (java_get_encoding): New function.
5278         (java_emit_char): Use generic_emit_char.
5279         (java_printchar): New function.
5280         (java_printstr): Likewise.
5281
5282 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5283
5284         * ada-typeprint.c (print_record_type): If unable to decode
5285         the name of the parent type, use the encoded name.
5286
5287 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5288
5289         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5290         pointer to constrained packed array type output.
5291         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5292         packed array output.
5293
5294 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5295
5296         * ada-typeprint.c (print_array_type): removed if condition on show
5297         being negative for bounds printing.
5298
5299 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5300
5301         * ada-lang.c (ada_identical_enum_types_p): New function.
5302         (symbols_are_identical_enums): New function.
5303         (remove_extra_symbols): Do nothing if NSYMS < 2.
5304         Use symbols_are_identical_enums.
5305
5306 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5307
5308         * ada-valprint.c (ada_value_print): Handle typedefs.
5309
5310 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5311
5312         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5313
5314 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5315
5316         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5317         (decode_constrained_packed_array): Likewise.
5318         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5319
5320 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5321
5322         * ada-exp.y (convert_char_literal): Handle typedef types.
5323
5324 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5325
5326         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5327
5328 2011-06-30  Tom Tromey  <tromey@redhat.com>
5329
5330         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5331         * valops.c (find_overload_match): Call do_cleanups on early exit
5332         path.
5333         * solib.c (solib_find): Call do_cleanups on early exit path.
5334
5335 2011-06-30  Tom Tromey  <tromey@redhat.com>
5336
5337         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5338         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5339         return paths.  Defer final do_cleanups until last return.
5340         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5341         early return.
5342
5343 2011-06-30  Tom Tromey  <tromey@redhat.com>
5344
5345         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5346
5347 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5348
5349         * MAINTAINERS (Write After Approval): Add myself to the list.
5350
5351 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5352
5353         Disable epilogue unwinders on recent GCCs.
5354         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5355         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5356         * dwarf2read.c (process_full_comp_unit): Initialize
5357         EPILOGUE_UNWIND_VALID.
5358         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5359         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5360         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5361
5362 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5363
5364         Code cleanup - reformatting.
5365         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5366         (producer_is_gcc_ge_4): ... here, change the return value.
5367         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5368         interpretation.
5369
5370 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5371
5372         Fix non-only rename list for Fortran modules import.
5373         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5374         cp_add_using_directive caller.
5375         (cp_add_using_directive): New parameter excludes, describe it.  New
5376         variables ix and param.  Compare if also excludes match.  Allocate NEW
5377         with variable size, initialize EXCLUDES there.
5378         (cp_lookup_symbol_imports): New variable excludep, test
5379         current->EXCLUDES with it.
5380         * cp-support.h: Include vec.h.
5381         (struct using_direct): New field excludes, describe it.
5382         (DEF_VEC_P (const_char_ptr)): New.
5383         (cp_add_using_directive): New parameter excludes.
5384         * defs.h (const_char_ptr): New typedef.
5385         * dwarf2read.c (read_import_statement): New variables child_die,
5386         excludes and cleanups, read in excludes.
5387         (read_namespace): Adjust the cp_add_using_directive caller.
5388
5389 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5390
5391         Code cleanup.
5392         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5393         negative comparisons.
5394
5395 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5396
5397         * mi/mi-main.c (mi_cmd_list_features): Emit
5398         breakpoint-notifications.
5399
5400 2011-06-29  Tom Tromey  <tromey@redhat.com>
5401
5402         PR fortran/10036:
5403         * valprint.h (generic_emit_char, generic_printstr): Declare.
5404         * valprint.c (wchar_printable, append_string_as_wide)
5405         (print_wchar): Move from c-lang.c.
5406         (generic_emit_char): New function; mostly taken from c_emit_char.
5407         (generic_printstr): New function; mostly taken from c_printstr.
5408         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5409         represented as arrays.
5410         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5411         type.
5412         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5413         identically to TYPE_CODE_INT.
5414         * f-lang.c (f_get_encoding): New function.
5415         (f_emit_char): Use generic_emit_char.
5416         (f_printchar): Replace comment.
5417         (f_printstr): Use generic_printstr.
5418         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5419         "character" types specially.
5420         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5421         for Fortran.
5422         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5423         Move to valprint.c
5424         (c_emit_char): Call generic_emit_char.
5425         (c_printstr): Call generic_printstr.
5426
5427 2011-06-29  Gary Benson  <gbenson@redhat.com>
5428
5429         * breakpoint.c (bpstat_what): Removed duplicated case.
5430
5431 2011-06-28  Tom Tromey  <tromey@redhat.com>
5432
5433         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5434
5435 2011-06-27  Tom Tromey  <tromey@redhat.com>
5436
5437         * valops.c (find_overload_match): Call do_cleanups before early
5438         return.
5439         * top.c (execute_command): Call do_cleanups before early return.
5440         (command_loop): Likewise.
5441         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5442         conditionally call do_cleanups.
5443         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5444         TRY_CATCH.
5445         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5446         so cleanups are always run.
5447         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5448         * findcmd.c (parse_find_args): Call do_cleanups on early return
5449         path.
5450         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5451         Don't conditionally call do_cleanups.
5452         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5453         later.
5454
5455 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5456
5457         * MAINTAINERS (Write After Approval): Use default email address.
5458
5459 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5460
5461         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5462
5463 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5464
5465         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5466         saved_regs_mask and copied_regs_mask fields.
5467         (sparc_record_save_insn): New prototype.
5468         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5469         (sparc_record_save_insn): New function.
5470         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5471         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5472         frames and cache their settings.
5473         (sparc32_skip_prologue): Handle flat frames.
5474         (sparc_frame_cache): Add frame_offset to the base address.
5475         (sparc32_frame_cache): Adjust to new frame description.
5476         (sparc32_frame_prev_register): Likewise.
5477         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5478         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5479         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5480         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5481         frame by calling sparc_record_save_insn.
5482         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5483         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5484         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5485
5486 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5487
5488         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5489         field by map_addr and map_len.
5490         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5491         (munmap_section_buffer): Likewise.
5492
5493 2011-06-24  Tom Tromey  <tromey@redhat.com>
5494
5495         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5496         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5497         * python/python.c (gdbpy_parameter): Make 'arg' const.
5498         (execute_gdb_command): Likewise.
5499         (gdbpy_decode_line): Likewise.  Copy it.
5500         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5501         (gdbpy_write): Make 'arg' const.
5502         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5503         const.
5504         (gdbpy_lookup_type): Likewise.
5505         * python/py-prettyprint.c (print_children): Make 'name' const.
5506         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5507         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5508         Py_ssize_t.
5509         * python/py-function.c (fnpy_init): Make 'name' const.
5510         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5511         (gdbpy_string_to_argv): Make 'input' const.
5512         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5513         it.
5514         * gdbtypes.h (lookup_typename): Update.
5515         * gdbtypes.c (lookup_typename): Make 'name' const.
5516         (lookup_struct): Likewise.
5517         (lookup_union): Likewise.
5518         (lookup_enum): Likewise.
5519
5520 2011-06-24  Tom Tromey  <tromey@redhat.com>
5521
5522         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5523         gdb_thread_db.h.  Move all common/ entries to be together.
5524         (TAGS): Don't depend on DEPFILES.
5525
5526 2011-06-23  Yao Qi  <yao@codesourcery.com>
5527
5528         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5529         * remote.c (remote_start_remote): ... here.
5530         * monitor.c (monitor_open): ... here.
5531
5532 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5533
5534         * gdbtypes.c (append_composite_type_field_aligned): Fix
5535         calculation of bit position based on alignment.
5536
5537 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5538
5539         * breakpoint.c (bpstat_stop_status): Call the check_status
5540         breakpoint_ops method.
5541         (print_one_breakpoint_location): Also print the condition for Ada
5542         exception catchpoints.
5543         (allocate_bp_location): New, factored out from
5544         allocate_bp_location.
5545         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5546         allocate_location method, if there is one.
5547         (free_bp_location): Call the locations's dtor method, if there is
5548         one.
5549         (init_raw_breakpoint_without_location): New breakpoint_ops
5550         parameter.  Use it.
5551         (set_raw_breakpoint_without_location): Adjust.
5552         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5553         (set_raw_breakpoint): Adjust.
5554         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5555         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5556         re_set and check_status methods.
5557         (init_catchpoint): Don't memset, initialize thread, addr_string
5558         and enable_state.  Pass the ops down to init_raw_breakpoint.
5559         (install_catchpoint): Rename to ...
5560         (install_breakpoint): ... this, and make extern.
5561         (create_fork_vfork_event_catchpoint): Adjust.
5562         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5563         re_set and check_status methods.
5564         (create_syscall_event_catchpoint): Adjust.
5565         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5566         (masked_watchpoint_breakpoint_ops): Install NULL
5567         allocate_location, re_set and check_status methods.
5568         (catch_exec_command_1): Adjust.
5569         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5570         re_set and check_status methods.
5571         (create_ada_exception_breakpoint): Rename to ...
5572         (init_ada_exception_breakpoint): ... this.  Add a struct
5573         breakpoint parameter, and delete the exp_string, cond_string and
5574         cond parameters.  Use init_raw_breakpoint, and don't install or
5575         mention the breakpoint yet.  Don't clear breakpoint fields that
5576         init_raw_breakpoint already clears.
5577         (re_set_breakpoint): Delete, split into ...
5578         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5579         functions.
5580         (breakpoint_re_set_one): Call the breakpoint's
5581         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5582         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5583         (struct bp_location_ops): New type.
5584         (struct bp_location): New field `ops'.
5585         (struct breakpoint_ops): New `allocate_location', `re_set' and
5586         `check_status' fields.  Make `breakpoint_hit''s description match
5587         reality.
5588         (init_bp_location): Declare.
5589         (breakpoint_re_set_default): Declare.
5590         (create_ada_exception_breakpoint): Rename to ...
5591         (init_ada_exception_breakpoint): ... this.  Add a struct
5592         breakpoint parameter, and delete the exp_string, cond_string and
5593         cond parameters.
5594         (install_breakpoint): Declare.
5595         * ada-lang.c: Include exceptions.h.
5596         <Ada exceptions description>: Update.
5597         (struct ada_catchpoint_location): New type.
5598         (ada_catchpoint_location_dtor): New function.
5599         (ada_catchpoint_location_ops): New global.
5600         (ada_catchpoint): New type.
5601         (create_excep_cond_exprs): New function.
5602         (dtor_exception, allocate_location_exception, re_set_exception)
5603         (should_stop_exception, check_status_exception): New functions.
5604         (print_one_exception, print_mention_exception)
5605         (print_recreate_exception): Adjust.
5606         (dtor_catch_exception, allocate_location_catch_exception)
5607         (re_set_catch_exception, check_status_catch_exception): New
5608         functions.
5609         (catch_exception_breakpoint_ops): Install them.
5610         (dtor_catch_exception_unhandled)
5611         (allocate_location_catch_exception_unhandled)
5612         (re_set_catch_exception_unhandled)
5613         (check_status_catch_exception_unhandled): New functions.
5614         (catch_exception_unhandled_breakpoint_ops): Install them.
5615         (dtor_catch_assert, allocate_location_catch_assert)
5616         (re_set_catch_assert, check_status_catch_assert): New functions.
5617         (catch_assert_breakpoint_ops): Install them.
5618         (ada_exception_catchpoint_p): Delete.
5619         (catch_ada_exception_command_split)
5620         (ada_exception_catchpoint_cond_string): Rename exp_string
5621         parameter to excep_string.  Adjust.
5622         (ada_parse_catchpoint_condition): Delete.
5623         (ada_exception_sal): Rename the exp_string parameter to
5624         excep_string.  Delete the cond_string and cond parameters.
5625         Adjust.
5626         (ada_decode_exception_location): Rename the exp_string parameter
5627         to excep_string.  Delete the cond_string and cond parameters.
5628         Adjust.
5629         (create_ada_exception_catchpoint): New function.
5630         (catch_ada_exception_command, ada_decode_assert_location)
5631         (catch_assert_command): Adjust.
5632         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5633
5634 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5635
5636         * ada-lang.c: Include arch-utils.h.
5637         (ada_decode_exception_location): Make static.
5638         (catch_ada_exception_command): Moved here from breakpoint.c.
5639         (ada_decode_assert_location): Make static.
5640         (catch_assert_command): Moved here from breakpoint.c.
5641         (_initialize_ada_lang): Install the exception and assert
5642         catchpoint commands here.
5643         * ada-lang.h (ada_decode_exception_location)
5644         (ada_decode_assert_location): Delete declarations.
5645         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5646         breakpoint.h.
5647         (create_ada_exception_breakpoint): Make extern.
5648         (catch_ada_exception_command, catch_assert_command): Moved to
5649         ada-lang.c.
5650         (add_catch_command): Make extern.
5651         (_initilize_breakpoint): Don't install the exception and assert
5652         catchpoint commands here.
5653         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5654         breakpoint.c
5655         (add_catch_command, create_ada_exception_breakpoint): Declare.
5656
5657 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5658
5659         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5660         the breakpoint to the breakpoint chain here.
5661         (set_raw_breakpoint_without_location): Add the breakpoint to the
5662         breakpoint chain here.
5663         (init_raw_breakpoint): Adjust comments.
5664         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5665         here.
5666         (init_catchpoint): Don't set the catchpoint's breakpoint number
5667         here.
5668         (install_catchpoint): New function.
5669         (create_fork_vfork_event_catchpoint)
5670         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5671         use install_catchpoint.
5672
5673 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5674
5675         * breakpoint.c (create_catchpoint_without_mention)
5676         (create_catchpoint): Delete.
5677
5678 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5679
5680         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5681         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5682         reference to exec_pathname.
5683         (struct exec_catchpoint): New type.
5684         (dtor_catch_exec): New function.
5685         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5686         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5687         (catch_exec_command_1): Adjust to use init_catchpoint.
5688         (delete_breakpoint): Remove reference to exec_pathname.
5689
5690 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5691
5692         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5693         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5694         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5695         reference to syscalls_to_be_caught.
5696         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5697         NULL `dtor'.
5698         (struct syscall_catchpoint): New type.
5699         (dtor_catch_syscall): New function.
5700         (insert_catch_syscall, remove_catch_syscall)
5701         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5702         (print_recreate_catch_syscall): Adjust.
5703         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5704         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5705         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5706         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5707         (masked_watchpoint_breakpoint_ops)
5708         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5709         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5710         there is one.  Remove references to syscalls_to_be_caught.
5711         (catching_syscall_number): Adjust.
5712         * ada-lang.c (catch_exception_breakpoint_ops)
5713         (catch_exception_unhandled_breakpoint_ops)
5714         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5715
5716 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5717
5718         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5719         field.
5720         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5721         reference to forked_inferior_pid.
5722         (struct fork_catchpoint): New type.
5723         (breakpoint_hit_catch_fork, print_it_catch_fork)
5724         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5725         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5726         (create_fork_vfork_event_catchpoint): Adjust to use
5727         init_catchpoint.
5728
5729 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5730
5731         * breakpoint.c (add_to_breakpoint_chain)
5732         (init_raw_breakpoint_without_location): New functions, factored
5733         out from ...
5734         (set_raw_breakpoint_without_location): ... this one.
5735         (init_raw_breakpoint): New function, factored out from
5736         set_raw_breakpoint and adjusted to use
5737         init_raw_breakpoint_without_location.
5738         (set_raw_breakpoint): Adjust.
5739         (init_catchpoint): New function, factored out from
5740         create_catchpoint_without_mention and adjusted to use
5741         init_raw_breakpoint.
5742         (create_catchpoint_without_mention): Adjust.
5743
5744 2011-06-22  Tom Tromey  <tromey@redhat.com>
5745
5746         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5747         argument of 0 specially.
5748
5749 2011-06-22  Yao Qi  <yao@codesourcery.com>
5750
5751         * infrun.c (handle_inferior_event): Remove write-only local variable
5752         `sw_single_step_trap_p'.
5753
5754 2011-06-20  Tom Tromey  <tromey@redhat.com>
5755
5756         * symtab.c (lookup_language_this): End loop if block is NULL.
5757
5758 2011-06-17  Tom Tromey  <tromey@redhat.com>
5759
5760         * valops.c (value_of_this): Use lookup_language_this.
5761         * symtab.h (lookup_language_this): Declare.
5762         * symtab.c (lookup_language_this): New function.
5763         (lookup_symbol_aux): Use lookup_language_this.
5764         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5765
5766 2011-06-17  Tom Tromey  <tromey@redhat.com>
5767
5768         * value.h (value_of_this): Update.
5769         (value_of_local): Remove.
5770         * valops.c (value_of_this): Rename from value_of_local.  Change
5771         parameters.
5772         * p-exp.y (exp): Update.
5773         (variable): Likewise.
5774         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5775
5776 2011-06-17  Tom Tromey  <tromey@redhat.com>
5777
5778         * valops.c (value_of_local): Complain if NAME is NULL.
5779         * std-operator.def (OP_OBJC_SELF): Remove.
5780         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5781         * objc-exp.y (name_not_typename): Use OP_THIS.
5782         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5783         name for "this".
5784         <OP_OBJC_SELF>: Remove.
5785         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5786
5787 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5788
5789         * python/py-events.h (gdb_py_events): Make it extern.
5790         * python/py-evtregistry.c (gdb_py_events): Declare.
5791
5792 2011-06-16  Hui Zhu  <teawater@gmail.com>
5793
5794         * remote.c (remote_trace_set_readonly_regions): Add check for
5795         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5796         output warning.
5797
5798 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5799
5800         * arm-linux-tdep.c: Include "auxv.h".
5801         (AT_HWCAP): Define.
5802         (ARM_LINUX_SIZEOF_VFP): Define.
5803         (arm_linux_supply_vfp): New function.
5804         (arm_linux_collect_vfp): Likewise.
5805         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5806         (arm_linux_fpa_regset_sections): New variable.
5807         (arm_linux_vfp_regset_sections): Likewise.
5808         (arm_linux_core_read_description): New function.
5809         (arm_linux_init_abi): Install arm_linux_core_read_description and
5810         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5811         appropriate for the architecture.
5812         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5813         (tdesc_arm_with_m): Declare.
5814         (tdesc_arm_with_iwmmxt): Likewise.
5815         (tdesc_arm_with_vfpv2): Likewise.
5816         (tdesc_arm_with_vfpv3): Likewise.
5817         (tdesc_arm_with_neon): Likewise.
5818         * arm-linux-nat.c: Move features/*.c includes ...
5819         * arm-tdep.c: ... here.
5820         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5821         target description data structures ...
5822         * arm-tdep.c (_initialize_arm_tdep): ... here.
5823         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5824         HWCAP_VFPv3D16): Move definitions ...
5825         * arm-linux-tdep.h: ... here.
5826
5827 2011-06-15  Hui Zhu  <teawater@gmail.com>
5828
5829         * remote.c (remote_trace_set_readonly_regions): Add a check for
5830         target_buf_size.
5831
5832 2011-06-14  Tom Tromey  <tromey@redhat.com>
5833
5834         * coffread.c (coffread_objfile): Rename from current_objfile.
5835         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5836         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5837
5838 2011-06-14  Tom Tromey  <tromey@redhat.com>
5839
5840         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5841         (class_symtab): Remove.
5842         (jv_dynamics_progspace_key): New global.
5843         (jv_per_objfile_free): Reset program space data.  Update assert.
5844         Don't clear globals.
5845         (get_dynamics_objfile): Use and set program space data.
5846         (get_java_class_symtab): Use get_dynamics_objfile.
5847         (add_class_symbol): Likewise.
5848         (java_link_class_type): Likewise.
5849         (java_object_type, jv_clear_object_type, set_java_object_type):
5850         Remove.
5851         (get_java_object_type): Update.  Don't cache result.
5852         (is_object_type): Don't call set_java_object_type.
5853         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5854         initialize jv_dynamics_progspace_key.
5855
5856 2011-06-14  Tom Tromey  <tromey@redhat.com>
5857
5858         * symtab.h (current_objfile): Don't declare.
5859         * objfiles.h (current_objfile): Don't declare.
5860         * objfiles.c (current_objfile): Remove.
5861         * mdebugread.c (current_objfile): New file-scope global.
5862         * dbxread.c (current_objfile): New file-scope global.
5863         * coffread.c (current_objfile): New file-scope global.
5864
5865 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5866
5867         * top.h (line): Rename to ...
5868         (saved_command_line): ... this.
5869         (linesize): Rename to ...
5870         (saved_command_line_size): ... this.
5871         * top.c (line): Rename to ...
5872         (saved_command_line): ... this.
5873         (linesize): Rename to ...
5874         (saved_command_line_size): ... this.
5875         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5876         * event-top.c (command_line_handler): Adjust.
5877         * main.c (captured_main): Adjust.
5878
5879 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5880
5881         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
5882         get_frame_func instead of get_frame_pc to determine the code
5883         address used to construct the frame ID.
5884         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5885         (i386_epilogue_frame_this_id): Likewise.
5886         (i386_epilogue_frame_prev_register): New function.
5887         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5888         (i386_stack_tramp_frame_sniffer): Fix coding style.
5889         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5890         (i386_gdbarch_init): Fix comments.
5891
5892 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5893
5894         * i386-tdep.c (i386_match_insn_block): Use length of the proper
5895         instruction when walking back through the instruction stream.
5896
5897 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5898
5899         * symtab.c (output_partial_symbol_filename): Exchange the filename and
5900         fullname parameters order.
5901
5902 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5903
5904         Code cleanup.
5905         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5906         for fun.
5907         * psymtab.c (map_symbol_filenames_psymtab)
5908         (map_partial_symbol_filenames): Likewise.
5909         * psymtab.h: Include symfile.h.
5910         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5911         * symfile.h (symbol_filename_ftype): New.
5912         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5913         map_symbol_filenames, clarify more the naming in comment.
5914
5915 2011-06-07  Doug Evans  <dje@google.com>
5916
5917         * cc-with-index.sh: Fix typos in comment.
5918         Look for ../../gdb, for fullname.exp.
5919
5920 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5921             Pedro Alves  <pedro@codesourcery.com>
5922
5923         * cli/cli-cmds.c (shell_escape): Use waitpid.
5924         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5925
5926 2011-06-07  Tristan Gingold  <gingold@adacore.com>
5927
5928         * xcoffread.c (dwarf2_xcoff_names): New variable.
5929         (aix_process_linenos): Add a guard.
5930         (xcoff_symfile_finish): Free dwarf2.
5931         (xcoff_initial_scan): Add dwarf2 support.
5932
5933 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
5934
5935         * infcall.c (run_inferior_call): Don't mask async.  Instead force
5936         a synchronous wait, if the target can async.
5937
5938         * target.h (struct target_ops): Delete to_async_mask.
5939         (target_async_mask): Delete.
5940         * target.c (update_current_target): Delete references to to_async_mask.
5941         * linux-nat.c (linux_nat_async_mask_value): Delete.
5942         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5943         to linux_nat_async_mask_value.
5944         (linux_nat_async_mask): Delete.
5945         (linux_nat_async, linux_nat_close): Remove references to
5946         linux_nat_async_mask_value.
5947         * record.c (record_async_mask_value): Delete.
5948         (record_async): Remove references to record_async_mask_value.
5949         (record_async_mask): Delete.
5950         (record_can_async_p, record_is_async_p): Remove references to
5951         record_async_mask_value.
5952         (init_record_ops, init_record_core_ops): Remove references to
5953         record_async_mask.
5954         * remote.c (remote_async_mask_value): Delete.
5955         (init_remote_ops): Remove reference to remote_async_mask.
5956         (remote_can_async_p, remote_is_async_p): Remove references to
5957         remote_async_mask_value.
5958         (remote_async): Remove references to remote_async_mask_value.
5959         (remote_async_mask): Delete.
5960
5961         * infrun.c (fetch_inferior_event): Don't claim registers changed
5962         if the current thread is already not executing.
5963
5964 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
5965
5966         From Stephen Kitt  <steve@sk2.org>
5967         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5968         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5969
5970 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
5971
5972         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5973         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5974
5975 2011-06-03  Tom Tromey  <tromey@redhat.com>
5976
5977         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5978         code fields.
5979         * python/py-exitedevent.c (create_exited_event_object): Change
5980         type of 'exit_code'.  Optionally add exit_code attribute.
5981         (emit_exited_event): Change type of 'exit_code'.
5982         * python/py-event.h (emit_exited_event): Update.
5983         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5984         * infrun.c (handle_inferior_event): Set exit code fields on
5985         inferior.
5986         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5987         fields.
5988         * inferior.c (exit_inferior_1): Initialize new fields.
5989
5990 2011-06-03  Tom Tromey  <tromey@redhat.com>
5991
5992         * dwarf2expr.c (get_signed_type): New function.
5993         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5994
5995 2011-06-02  Keith Seitz  <keiths@redhat.com>
5996
5997         * objc-lang.c (find_methods): Increment objfile_csym earlier.
5998
5999 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
6000
6001         * top.h (simplified_command_loop): Delete declaration.
6002
6003 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
6004
6005         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6006         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
6007
6008 2011-06-01  Yao Qi  <yao@codesourcery.com>
6009
6010         * objfiles.h (obj_section_addr): Update reference to objfile from
6011         `abfd' to `obfd'.
6012         (obj_section_endaddr): Likewise.
6013
6014 2011-06-01  Daniel Jacobowitz  <drow@false.org>
6015
6016         * MAINTAINERS: Update my email address and affiliation.  Also
6017         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
6018
6019 2010-05-31  Keith Seitz  <keiths@redhat.com>
6020
6021         PR c++/12750
6022         * linespec.c (get_search_block): New function.
6023         (find_methods): Add FILE_SYMTATB parameter and use it and
6024         get_search_block to pass an appropriate block to
6025         lookup_symbol_in_namespace.
6026         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6027         Check if *ARGPTR starts with a filename first.
6028         If it does, call locate_first_half again to locate the next
6029         "first half" of the linespec.
6030         Pass FILE_SYMTATB to decode_objc and decode_compound.
6031         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6032         (locate_first_half): Stop on the first colon seen.
6033         (decode_compound): Add FILE_SYMTAB parameter.
6034         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6035         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6036         get_search_block with lookup_symbol.
6037         (find_method): Add FILE_SYMTAB parameter and pass it to
6038         find_methods.
6039         (decode_objc): Use get_search_block.
6040
6041 2010-05-31  Keith Seitz  <keiths@redhat.com>
6042
6043         PR symtab/12704
6044         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6045         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6046         and CP_ANONYMOUS_NAMESPACE_LEN.
6047         (cp_is_anonymous): Likewise.
6048         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6049         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6050         * dwarf2read.c (namespace_name): Likewise.
6051         (fixup_partial_die): Likewise.
6052         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6053         seen in the input, keep it.
6054
6055 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6056
6057         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6058         * inf-loop.h (inferior_event_handler_wrapper): Delete.
6059         * inf-loop.c (inferior_event_handler_wrapper): Delete.
6060         (inferior_event_handler): Don't handle INF_QUIT_REQ.
6061         * remote.c (_initialize_remote): Register
6062         async_remote_interrupt_twice directly as
6063         sigint_remote_twice_token event.
6064
6065 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6066
6067         * target.h (enum inferior_event_type): Delete INF_ERROR.
6068         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6069
6070 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6071
6072         * interps.c (interp_set): Don't cancel continuations.
6073
6074 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
6075
6076         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6077
6078 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6079
6080         * continuations.h (continuation_ftype): Add `err' parameter.
6081         Document parameters.
6082         (do_all_continuations, do_all_continuations_thread)
6083         (do_all_intermediate_continuations)
6084         (do_all_intermediate_continuations_thread)
6085         (do_all_inferior_continuations): Add `err' parameter.
6086         * continuations.c (do_my_continuations_1, do_my_continuations)
6087         (do_all_inferior_continuations, do_all_continuations_ptid)
6088         (do_all_continuations_thread_callback)
6089         (do_all_continuations_thread, do_all_continuations)
6090         (do_all_intermediate_continuations_thread_callback)
6091         (do_all_intermediate_continuations_thread)
6092         (do_all_intermediate_continuations): Add `err' parameter, and pass
6093         it down all the way to the continuations proper.
6094         * inf-loop.c (inferior_event_handler): If fetching an inferior
6095         event throws an error, don't pop the target, and still call the
6096         continuations, but with `err' set.  Adjust all other continuation
6097         calls.
6098         * breakpoint.c (until_break_command_continuation): Add `err'
6099         parameter.
6100         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
6101         issue another step if `err' is set.
6102         (struct until_next_continuation_args): New.
6103         (until_next_continuation): Add `err' parameter.  Adjust.
6104         (until_next_command): Adjust.
6105         (struct finish_command_continuation_args): Add `thread' field.
6106         (finish_command_continuation): Add `err' parameter.  Handle it.
6107         (finish_forward): Adjust.
6108         (attach_command_continuation): Add `err' parameter.  Handle it.
6109         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6110         cancel the continuations.
6111         * interps.c (interp_set): Adjust to cancel the continuations.
6112         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6113         continuations rather than discarding.
6114         (free_thread): Don't clear thread inferior resources here.
6115         (delete_thread_1): Do it here instead.  And do it before removing
6116         the thread from the threads list.  Tag the thread as exited before
6117         clearing thread inferior resources.
6118
6119 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
6120
6121         * infcall.c (call_function_by_hand): Rephrase error message.
6122
6123 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6124
6125         * defs.h (struct thread_info, struct inferior): Delete forward
6126         declarations.
6127         * breakpoint.h (struct thread_info): New forward declaration.
6128         * observer.sh (struct inferior): New forward declaration.
6129         * python/python-internal.h (struct inferior): New forward
6130         declaration.
6131
6132 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6133
6134         * defs.h (struct continuation, continuation_ftype)
6135         (continuation_free_arg_ftype, add_continuation)
6136         (do_all_continuations, do_all_continuations_thread)
6137         (discard_all_continuations, discard_all_continuations_thread)
6138         (add_intermediate_continuation, do_all_intermediate_continuations)
6139         (do_all_intermediate_continuations_thread)
6140         (discard_all_intermediate_continuations)
6141         (discard_all_intermediate_continuations_thread)
6142         (add_inferior_continuation, do_all_inferior_continuations)
6143         (discard_all_inferior_continuations): Move to ...
6144         * continuations.h: ... this new file.
6145         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6146         infcmd.c, inferior.c, infrun.c, interps.c: Include
6147         continuations.h.
6148
6149 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6150             Doug Evans  <dje@google.com>
6151
6152         Fix PR 10970, PR 12702.
6153         * linux-nat.c (linux_lwp_is_zombie): New function.
6154         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
6155         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
6156
6157 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6158
6159         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6160         typedefs.
6161         (add_continuation, add_intermediate_continuation)
6162         (add_inferior_continuation): Use them.
6163         * continuations.c (struct continuation): Use them.
6164         (make_continuation_ftype): Delete.
6165         (make_continuation, add_inferior_continuation, add_continuation)
6166         (add_intermediate_continuation): Use continuation_ftype and
6167         continuation_free_arg_ftype.  Rename parameters to shorter names.
6168
6169 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6170
6171         * continuations.c (make_continuation): Make it return void.
6172         (do_my_continuations): Rename to ...
6173         (do_my_continuations_1): ... this.  Remove old_chain parameter and
6174         adjust.
6175         (do_my_continuations): New.
6176         (discard_my_continuations): Rename to ...
6177         (discard_my_continuations_1): ... this.  Remove old_chain
6178         parameter and adjust.
6179         (discard_my_continuations): New.
6180         (add_inferior_continuation): Simplify.
6181         (do_all_inferior_continuations): Reimplement on top
6182         do_my_continuations.
6183         (discard_all_inferior_continuations): Simplify.
6184         (add_continuation): Simplify.
6185         (do_all_continuations_ptid): Simplify.
6186         (discard_all_continuations_thread_callback): Simplify.
6187         (add_intermediate_continuation): Simplify.
6188         (discard_all_intermediate_continuations_thread_callback):
6189         Simplify.
6190
6191 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6192
6193         * utils.c (struct continuation, add_continuation)
6194         (add_inferior_continuation)
6195         (do_all_inferior_continuations, discard_all_inferior_continuations)
6196         (restore_thread_cleanup, do_all_continuations_ptid)
6197         (do_all_continuations_thread_callback)
6198         (do_all_continuations_thread, do_all_continuations)
6199         (discard_all_continuations_thread_callback)
6200         (discard_all_continuations_thread, discard_all_continuations)
6201         (add_intermediate_continuation)
6202         (do_all_intermediate_continuations_thread_callback)
6203         (do_all_intermediate_continuations_thread)
6204         (do_all_intermediate_continuations)
6205         (discard_all_intermediate_continuations_thread_callback)
6206         (discard_all_intermediate_continuations_thread)
6207         (discard_all_intermediate_continuations): Move to ...
6208         * continuations.c: ... this new file, and adjust to no longer
6209         implement continuations on top of cleanups.
6210         * Makefile.in (SFILES): Add continuations.c.
6211         (COMMON_OBS): Add continuations.o.
6212
6213 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6214
6215         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6216         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6217         Internal error on invalid values.
6218         * reverse.c: Don't handle EXEC_ERROR.
6219         * mi/mi-main.c: Don't handle EXEC_ERROR.
6220
6221 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6222
6223         * record.c: Include event-loop.h, inf-loop.h.
6224         (record_beneath_to_async): New global.
6225         (tmp_to_async): New global.
6226         (record_async_inferior_event_token): New global.
6227         (record_open_1): Don't error out if async is enabled.
6228         (record_open): Handle to_async.  Create an async event source in
6229         the event loop.
6230         (record_close): Delete the async event source.
6231         (record_resumed): New global.
6232         (record_execution_dir): New global.
6233         (record_resume, record_core_resume): Set them.  Register the
6234         target on the event loop.
6235         (record_wait): Rename to ...
6236         (record_wait_1): ... this.  Add more debug output.  Handle
6237         TARGET_WNOHANG, and the target beneath returning
6238         TARGET_WAITKIND_IGNORE.
6239         (record_wait): Reimplement on top of record_wait_1.
6240         (record_async_mask_value): New global.
6241         (record_async, record_async_mask, record_can_async_p)
6242         (record_is_async_p, record_execution_direction): New functions.
6243         (init_record_ops, init_record_core_ops): Install new methods.
6244         * infrun.c (fetch_inferior_event): Temporarily switch the global
6245         execution direction to the direction the target was going.
6246         (execution_direction): Change type to int.
6247         * target.c (default_execution_direction): New function.
6248         (update_current_target): Inherit and de_fault
6249         to_execution_direction.
6250         * target.h (struct target_ops) <to_execution_direction>: New
6251         field.
6252         (target_execution_direction): New macro.
6253         * inferior.h (execution_direction): Change type to int.
6254
6255 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6256
6257         * infcall.c (call_function_by_hand): Don't allow calling functions
6258         in reverse execution mode.
6259
6260 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6261
6262         * infcmd.c (finish_command): Allow async finish in reverse.
6263
6264 2011-05-26  Yao Qi  <yao@codesourcery.com>
6265
6266         * gdb_thread_db.h: Delete.  Move to ...
6267         * common/gdb_thread_db.h: ... here.
6268
6269 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6270
6271         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6272         function's entry point instead of a manually managed momentary
6273         breakpoint, and only ever issue one proceed call.
6274         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6275         doing a reverse-finish, switch to stepi mode, to do another step.
6276         (insert_step_resume_breakpoint_at_sal): Make public.
6277         (normal_stop): No need to save function value return registers if
6278         going reverse.
6279         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6280
6281 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6282
6283         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6284         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6285         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6286         at the end.
6287         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6288         step-resume breakpoints.
6289         (print_it_typical): Handle bp_hp_step_resume.
6290         (bpstat_what): Ditto.
6291         (bptype_string): Ditto.
6292         (print_one_breakpoint_location): Ditto.
6293         (allocate_bp_location): Ditto.
6294         (mention): Ditto.
6295         (breakpoint_re_set_one): Ditto.
6296         * infrun.c (handle_inferior_event): Adjust.  Split
6297         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6298         BPSTAT_WHAT_HP_STEP_RESUME.
6299         (insert_step_resume_breakpoint_at_sal): Rename to ...
6300         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6301         parameter.  Handle it.
6302         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6303         insert_step_resume_breakpoint_at_sal_1.
6304         (insert_step_resume_breakpoint_at_frame): Rename to ...
6305         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6306         set a high-priority step-resume breakpoint.
6307         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6308         (insert_step_resume_breakpoint_at_caller): Ditto.
6309
6310 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6311
6312         * breakpoint.c (iterate_over_related_breakpoints): New.
6313         (do_map_delete_breakpoint): New.
6314         (delete_command): Pass do_map_delete_breakpoint to
6315         map_breakpoint_numbers.
6316         (do_disable_breakpoint): New.
6317         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6318         breakpoints.
6319         (do_enable_breakpoint): Rename to ...
6320         (enable_breakpoint_disp): ... this.
6321         (enable_breakpoint): Adjust.
6322         (do_enable_breakpoint): New.
6323         (enable_once_breakpoint): Delete.
6324         (do_map_enable_breakpoint): New.
6325         (do_map_enable_once_breakpoint): New.
6326         (enable_once_command, enable_delete_command)
6327         (delete_trace_command): Iterate over the breakpoint's related
6328         breakpoints.
6329
6330 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6331
6332         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6333         for ALPHA_ZERO_REGNUM.
6334         (alpha_supply_int_regs): Explicitly supply zero as the value for
6335         ALPHA_ZERO_REGNUM in the register cache.
6336         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6337
6338 2011-05-26  Yao Qi  <yao@codesourcery.com>
6339
6340         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6341
6342 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6343
6344         * symfile.h (struct dwarf2_section_names): New type.
6345         (struct dwarf2_debug_sections): New type.
6346         (dwarf2_has_info): Add parameter.
6347         * dwarf2read.c (dwarf2_elf_names): New variable.
6348         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6349         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6350         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6351         (dwarf2_has_info): Add names parameter.  Pass names
6352         to dwarf2_locate_sections.
6353         (section_is_p): Rewrite using the names parameter.
6354         (dwarf2_locate_sections): Use section names from the names parameter.
6355         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6356         * elfread.c (read_psyms): Ditto.
6357         * machoread.c (macho_symfile_read): Ditto.
6358
6359 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6360
6361         PR gdb/8677
6362         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6363
6364 2011-05-24  Keith Seitz  <keiths@redhat.com>
6365
6366         PR breakpoint/12803
6367         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6368         (decode_compound): Unconditionally call keep_name_info.
6369
6370 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6371
6372         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6373         scope, clear its command list.
6374         (map_breakpoint_numbers): Don't walk the related breakpoints list
6375         of each breakpoint.
6376
6377 2011-05-24  Tom Tromey  <tromey@redhat.com>
6378
6379         * MAINTAINERS: Move Jim Blandy to past maintainers.
6380
6381 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6382
6383         * symfile.h (enum dwarf2_section_enum): New type.
6384         (dwarf2_get_section_info): New prototype.
6385         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6386         section_name by sect.  Use a switch to select the info.
6387         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6388         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6389
6390 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6391
6392         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6393         shared library event breakpoint if there's no execution.
6394
6395 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6396
6397         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6398         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6399
6400 2011-05-23  Tom Tromey  <tromey@redhat.com>
6401
6402         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6403         NULL.
6404
6405 2011-05-23  Doug Evans  <dje@google.com>
6406
6407         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6408         entry for RuntimeError to doc string.
6409
6410 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6411
6412         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6413         sequence for probing loops.
6414
6415 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6416
6417         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6418         comment.
6419
6420 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6421
6422         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6423         zero as the value for %g0 in the register cache.
6424         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6425         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6426
6427 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6428
6429         * infrun.c (proceed): Set previous_inferior_ptid here.
6430         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6431         inferior_ptid, not null_ptid.
6432         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6433         (fetch_inferior_event): Nor here.
6434
6435 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6436
6437         * inf-loop.c (inferior_event_handler): Only output a message if
6438         verbose.
6439
6440 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6441
6442         * MAINTAINERS: Update my e-mail address.
6443
6444 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6445
6446         * infrun.c (proceed): Switch the inferior event loop to
6447         INF_EXEC_COMPLETE if the target refused to resume from a
6448         vfork/fork.
6449
6450 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6451
6452         * infcmd.c: Include "inf-loop.h".
6453         (step_once): When stepping into an inline subroutine, pretend the
6454         target has run.  If the target can async, switch the inferior
6455         event loop to INF_EXEC_COMPLETE.
6456         * inferior.h (user_visible_resume_ptid): Declare.
6457         * infrun.c (user_visible_resume_ptid): New function, factored out
6458         from `resume'.
6459         (resume): Use it.
6460         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6461         that the current thread is running.  Merge async and sync
6462         branches.
6463
6464 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6465
6466         * infcmd.c (step_1): Simplify synchronous case.
6467
6468 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6469
6470         * tracepoint.c: Include exceptions.h.
6471         (TFILE_PID): Move higher in file.
6472         (tfile_open): Delay pushing the tfile target until we're assured
6473         the tfile header is present in the file.  Wrap reading the initial
6474         newline-terminated lines in TRY_CATCH.  Pop the target if the
6475         initial setup failed.  Add the tfile's thread immediately
6476         aftwards, before any non-essential setup.  Don't skip
6477         post_create_inferior if there are no traceframes present in the
6478         file.
6479         (tfile_close): Remove redundant check for null before xfree call.
6480         (tfile_thread_alive): New function.
6481         (init_tfile_ops): Register it as to_thread_alive callback.
6482
6483 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6484
6485         * tracepoint.c (tfile_open): Delete #if 0'd code.
6486
6487 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6488
6489         Fix -readnow for -gdwarf-4 unused type units.
6490         * dwarf2read.c (struct signatured_type): Remove the field offset.
6491         (create_signatured_type_table_from_index): Remove its initialization.
6492         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6493         instead.  Add a complaint call.
6494         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6495         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6496         (lookup_signatured_type_at_offset, read_signatured_type)
6497         (write_one_signatured_type): Update the field for per_cu.
6498
6499 2011-05-19  Tom Tromey  <tromey@redhat.com>
6500
6501         * python/py-inferior.c (python_inferior_exit): Use
6502         target_gdbarch.
6503         (python_on_resume): Likewise.
6504
6505 2011-05-19  Matt Rice  <ratmice@gmail.com>
6506
6507         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6508
6509 2011-05-19  Hui Zhu  <teawater@gmail.com>
6510
6511         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6512
6513 2011-05-19  Hui Zhu  <teawater@gmail.com>
6514
6515         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6516
6517 2011-05-18  Tom Tromey  <tromey@redhat.com>
6518
6519         * dwarf2read.c (dwarf2_add_field): Constify.
6520         * value.c (value_static_field): Constify.
6521         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6522         Now const.
6523         * ax-gdb.c (gen_static_field): Constify
6524
6525 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6526
6527         * linux-nat.c (kill_callback): Use SIGKILL first.
6528
6529 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6530
6531         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6532
6533 2011-05-18  Tom Tromey  <tromey@redhat.com>
6534
6535         * value.c (value_fn_field): Constify.
6536         * symtab.c (gdb_mangle_name): Constify.
6537         * stabsread.c (update_method_name_from_physname): Make 'physname'
6538         argument const.
6539         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6540         const.  Use explicit fputc_filtered loop.
6541         (pascal_type_print_base): Constify.
6542         * p-lang.h (pascal_type_print_method_args): Update.
6543         * linespec.c (add_matching_methods): Constify.
6544         (add_constructors): Likewise.
6545         * jv-typeprint.c (java_type_print_base): Constify.
6546         * gdbtypes.h (struct cplus_struct_type)
6547         <fn_fieldlist.fn_field.physname>: Now const.
6548         * dwarf2read.c (compute_delayed_physnames): Constify.
6549         (dwarf2_add_member_fn): Likewise.
6550         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6551
6552 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6553
6554         * infrun.c (resume): Mention which is the current thread, and its
6555         current PC in debug output.
6556         (prepare_to_proceed): Mention the thread switching in debug
6557         output.
6558
6559 2011-05-18  Tom Tromey  <tromey@redhat.com>
6560
6561         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6562         path check.  Use xmalloc and cleanups.
6563         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6564
6565 2011-05-17  Tom Tromey  <tromey@redhat.com>
6566
6567         * cp-valprint.c (cp_print_value_fields): Catch errors from
6568         value_static_field.
6569
6570 2011-05-17  Tom Tromey  <tromey@redhat.com>
6571
6572         * dwarf2read.c (dwarf2_get_die_type): Call
6573         get_die_type_at_offset.
6574         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6575         get_base_type function.
6576
6577 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6578
6579         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6580         trap_expected.
6581
6582 2011-05-16  Doug Evans  <dje@google.com>
6583
6584         * python/py-auto-load.c (source_section_scripts): Mention objfile
6585         name in warning.
6586
6587 2011-05-15  Doug Evans  <dje@google.com>
6588
6589         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6590         (try_thread_db_load_from_pdir): Call it.  If unable to find
6591         libthread_db in directory of libpthread, see if we're looking at
6592         the separate-debug-info copy.
6593
6594         * python/py-autoload.c (print_script): Print "Missing" instead of
6595         "No" for missing scripts.
6596         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6597
6598 2011-05-13  Doug Evans  <dje@google.com>
6599
6600         * ui-file.c (stdio_file_write_async_safe): Add comment.
6601
6602 2011-05-14  Hui Zhu  <teawater@gmail.com>
6603
6604         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6605
6606 2011-05-13  Doug Evans  <dje@google.com>
6607
6608         Support $pdir and $sdir in libthread-db-search-path.
6609         * NEWS: Mention $sdir,$pdir.
6610         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6611         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6612         (try_thread_db_load_from_sdir): New function.
6613         (try_thread_db_load_from_dir): New function.
6614         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6615         system directories if search of libthread-db-search-path fails,
6616         that is now done via $sdir.
6617         (has_libpthread): New function.
6618         (thread_db_load): Remove search for libthread_db in directory of
6619         libpthread, that is now done via $pdir.
6620
6621         * NEWS: Mention "info auto-load-scripts".
6622         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6623         script_not_found_warning_printed.
6624         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6625         all callers updated.  Initialize script_not_found_warning_printed.
6626         (get_auto_load_pspace_data_for_loading): New function.
6627         (maybe_add_script): New function.
6628         (source_section_scripts): Simplify.  Only print one warning regardless
6629         of the number of auto-load scripts not found.
6630         (clear_section_scripts): Clear script_not_found_warning_printed.
6631         (auto_load_objfile_script): Record script in hash table.
6632         (count_matching_scripts): New function.
6633         (maybe_print_script): Renamed from maybe_print_section_script, all
6634         callers updated.  Rewrite to use ui_out_*.
6635         (info_auto_load_scripts): Renamed from
6636         maintenance_print_section_scripts, all callers updated.
6637         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6638         renamed as "info auto-load-scripts".
6639
6640 2011-05-13  Tom Tromey  <tromey@redhat.com>
6641
6642         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6643         (read_sleb128): Likewise.
6644
6645 2011-05-13  Tom Tromey  <tromey@redhat.com>
6646
6647         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6648         offset display.
6649
6650 2011-05-13  Doug Evans  <dje@google.com>
6651
6652         * linux-nat.c (debug_linux_nat_async): Delete.
6653         Replace all references to use debug_linux_nat instead.
6654         (show_debug_linux_nat_async): Delete.
6655         (sigchld_handler): Call ui_file_write_async_safe instead of
6656         fprintf_unfiltered.
6657         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6658         * ui-file.c (struct ui_file): New member to_write_async_safe.
6659         (null_file_write_async_safe): New function.
6660         (ui_file_write_async_safe): New function.
6661         (set_ui_file_write_async_safe): New function.
6662         (ui_file_new): Initialize to_write_async_safe.
6663         (stdio_file_write_async_safe): New function.
6664         (struct stdio_file): New member fd.
6665         (stdio_file_new): Initialize to_write_async_safe, fd.
6666         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6667         fileno.
6668         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6669         (set_ui_file_write_async_safe): Declare.
6670         (ui_file_write_async_safe): Declare.
6671
6672 2011-05-13  Tom Tromey  <tromey@redhat.com>
6673
6674         * utils.c (do_value_free): New function.
6675         (make_cleanup_value_free): Likewise.
6676         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6677         freeing correctly.
6678         (dwarf2_loc_desc_needs_frame): Call
6679         make_cleanup_value_free_to_mark.
6680         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6681         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6682         value_free_to_mark.
6683         (new_dwarf_expr_context): Don't call value_mark.
6684         * dwarf2-frame.c (execute_stack_op): Call
6685         make_cleanup_value_free_to_mark.
6686         * defs.h (make_cleanup_value_free): Declare.
6687
6688 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6689
6690         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6691         prepare_execute_command.
6692         * top.c (prepare_execute_command): Return cleanup.
6693         (execute_command): Use cleanup from prepare_execute_command.
6694         * top.h (prepare_execute_command): Change prototype to return
6695         cleanup.
6696         * defs.h (struct value): Add opaque declaration.
6697         (make_cleanup_value_free_to_mark): Add prototype.
6698         * utils.c (do_value_free_to_mark): New function.
6699         (make_cleanup_value_free_to_mark): Likewise.
6700
6701 2011-05-12  Tom Tromey  <tromey@redhat.com>
6702
6703         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6704         cast left-hand-side to unsigned.
6705
6706 2011-05-12  Tom Tromey  <tromey@redhat.com>
6707
6708         PR gdb/12617:
6709         * value.h (value_from_contents): Declare.
6710         * value.c (value_from_contents): New function.
6711         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6712         (dwarf2_get_die_type): New function.
6713         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6714         (allocate_piece_closure): Acquire reference to values.
6715         (read_pieced_value): Update for value-based expressions.
6716         (write_pieced_value): Likewise.
6717         (free_pieced_value_closure): Call value_free as needed.
6718         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6719         Update for value-based expressions.
6720         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6721         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6722         <get_base_type>: New field.
6723         (struct dwarf_expr_piece) <v.value>: Change type.
6724         <v.regno>: New field.
6725         (struct dwarf_expr_context) <mark>: New field.
6726         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6727         (dwarf_expr_pop, dwarf_expr_push): Remove.
6728         (dwarf_expr_push_address): Declare.
6729         * dwarf2expr.c (dwarf_arch_cookie): New global.
6730         (struct dwarf_gdbarch_types): New.
6731         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6732         functions.
6733         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6734         static.
6735         (dwarf_expr_push_address): New function.
6736         (dwarf_expr_pop): Now static.
6737         (dwarf_expr_fetch): Change return type.
6738         (dwarf_require_integral): New function.
6739         (dwarf_expr_fetch): Simplify.
6740         (add_piece): Update.
6741         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6742         functions.
6743         (execute_stack_op) <sign_ext>: Remove.
6744         Use values for DWARF stack.
6745         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6746         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6747         New cases.
6748         (_initialize_dwarf2expr): New function.
6749         (add_piece): Update.
6750         (new_dwarf_expr_context): Set new field.
6751         (free_dwarf_expr_context): Call value_free_to_mark.
6752         * dwarf2-frame.c (no_base_type): New function.
6753         (execute_stack_op): Set get_base_type field.  Update.
6754
6755 2011-05-12  Tom Tromey  <tromey@redhat.com>
6756
6757         * dwarf2read.c (read_common_block): Fix formatting.
6758
6759 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6760
6761         * breakpoint.c (disable_breakpoint): Disable all locations
6762         associated with a tracepoint on target if a trace experiment is
6763         running.
6764         (disable_command): Disable a specific tracepoint location on target if
6765         a trace experiment is running.
6766         (do_enable_breakpoint): Enable all locations associated with a
6767         tracepoint on target if a trace experiment is running.
6768         (enable_command) Enable a specific tracepoint location on target if a
6769         trace experiment is running.
6770         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6771         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6772         to_disable_tracepoint.
6773         * target.h: Add declaration of struct bp_location.
6774         (struct target_ops): Add new functions
6775         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6776         to_disable_tracepoint to target operations.
6777         (target_supports_enable_disable_tracepoint): New macro.
6778         (target_enable_tracepoint): New macro.
6779         (target_disable_tracepoint): New macro.
6780         * remote.c (struct remote_state): Add new field.
6781         (remote_enable_disable_tracepoint_feature): New.
6782         (remote_protocol_features): Add new entry.
6783         (remote_supports_enable_disable_tracepoint): New.
6784         (remote_enable_tracepoint): New.
6785         (remote_disable_tracepoint): New.
6786         (init_remote_ops): Add remote_enable_tracepoint,
6787         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6788         to remote operations.
6789         * tracepoint.c (start_tracing): Allow tracing to start without any
6790         tracepoints enabled with just a warning if they can be re-enabled
6791         later.
6792         * NEWS: Add news item for the new behaviour of the enable and disable
6793         GDB commands when applied to tracepoints.
6794         Add news items for the new remote packets QTEnable and QTDisable.
6795
6796 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6797
6798         * config.in: Regenerate.
6799         * configure: Regenerate.
6800         * configure.ac <--with-system-readline> (for readline_echoing_p):
6801         Remove the test.
6802         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6803         (tui_old_rl_echoing_p): ... here.
6804         (tui_setup_io): Rename extern declaration readline_echoing_p to
6805         _rl_echoing_p.  Adjust assignments for the both renames.
6806
6807 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6808
6809         * symtab.c (lookup_symtab): Run cleanup before returning.
6810
6811 2011-05-11  Tom Tromey  <tromey@redhat.com>
6812
6813         * dwarf2read.c (handle_data_member_location): New function.
6814         (dwarf2_add_field): Use it.
6815         (read_common_block): Likewise.
6816
6817 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6818
6819         Make addrs->SECTINDEX always defined.
6820         * symfile.c (relative_addr_info_to_section_offsets): Check for
6821         SECTINDEX -1, not for zero ADDR.
6822         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6823         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6824         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6825         on its validity.
6826
6827 2011-05-10  Doug Evans  <dje@google.com>
6828
6829         * linux-thread-db.c: Whitespace cleanup.
6830         (try_thread_db_load_1): Fix comment.
6831
6832         * linux-thread-db.c (set_libthread_db_search_path): New function.
6833         (_initialize_thread_db): Add setter for libthread-db-search-path.
6834
6835 2011-05-09  Doug Evans  <dje@google.com>
6836
6837         * NEWS: Mention --with-iconv-bin.
6838         * configure.ac: New option --with-iconv-bin.
6839         * configure: Regenerate.
6840         * config.in: Regenerate.
6841         * defs.h (relocate_gdb_directory): Declare.
6842         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6843         removed progname parameter, and exported.  All callers updated.
6844         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6845
6846         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6847         adding missing call to restore_child_signals_mask.
6848
6849 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6850
6851         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6852         parameter.
6853         * infrun.c (proceed, start_remote): Adjust.
6854         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6855         and adjust to not handle it.
6856         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6857         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6858         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6859         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6860         * windows-nat.c (do_initial_windows_stuff): Adjust.
6861         * infcmd.c (attach_command): Adjust.
6862         (notice_new_inferior): Adjust.
6863
6864 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6865
6866         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6867         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6868         * spu-tdep.c (op_selb): Use correct value.
6869
6870 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6871
6872         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6873         "parent" parameter to symbol_file_add_from_bfd call.
6874
6875 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6876             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6877
6878         Implement support for PowerPC BookE masked watchpoints.
6879         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
6880         section.
6881         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6882         method.  Initialize to NULL in all existing breakpoint_ops instances.
6883         (struct breakpoint) <hw_wp_mask>: New field.
6884         * breakpoint.c (is_masked_watchpoint): Add prototype.
6885         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
6886         breakpoint's breakpoint_ops.works_in_software_mode if available.
6887         (watchpoints_triggered): Handle the case of a hardware masked
6888         watchpoint trigger.
6889         (watchpoint_check): Likewise.
6890         (works_in_software_mode_watchpoint): New function.
6891         (insert_masked_watchpoint, remove_masked_watchpoint)
6892         (resources_needed_masked_watchpoint)
6893         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6894         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6895         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6896         functions.
6897         (masked_watchpoint_breakpoint_ops): New structure.
6898         (watch_command_1): Check for the existence of the `mask' parameter.
6899         Set b->ops according to the type of hardware watchpoint being created.
6900         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6901         (ppc_linux_remove_mask_watchpoint)
6902         (ppc_linux_masked_watch_num_registers): New functions.
6903         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6904         to_remove_mask_watchpoint and to_masked_watch_num_registers.
6905         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6906         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6907         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6908         (target_masked_watch_num_registers): New functions.
6909         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6910         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6911         methods.
6912         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6913         (target_masked_watch_num_registers): Add prototypes.
6914
6915 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6916
6917         PR 12573
6918         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6919         (producer_is_gcc_ge_4_0): New function.
6920         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
6921         symtab->language code.
6922         (var_decode_location): Set cu->has_loclist.
6923         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6924         skip.  Intialize force_skip from locations_valid.  Move the prologue
6925         skipping code into two passes.
6926         * symtab.h (struct symtab): Make the primary field a bitfield.  New
6927         field locations_valid.
6928
6929 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6930
6931         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6932         (classify_inner_name): Call cp_lookup_nested_type with
6933         yylval.tsym.type.
6934         * cp-namespace.c (cp_lookup_nested_type): New variable
6935         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
6936         type_name_no_tag_or_error with saved_parent_type.
6937         * dwarf2read.c (load_partial_dies): Read in any children of
6938         DW_TAG_typedef with complaint in such case.
6939         * gdbtypes.c (type_name_no_tag_or_error): New function.
6940         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6941         * valops.c (destructor_name_p): New comment for parameter type.  Remove
6942         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
6943         * value.h (destructor_name_p): Remove type const.
6944
6945 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6946
6947         * symtab.c (compare_symbol_name): New function.
6948         (completion_list_add_name, expand_partial_symbol_name): Call it,
6949         remove the variable ncmp.
6950         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6951         gdb_assert it.
6952
6953 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6954
6955         Demote to sw watchpoint only in update_watchpoint.
6956         * breakpoint.c (update_watchpoint): Change between software and
6957         hardware watchpoint for all kinds of watchpoints, not just
6958         read/write ones.  Determine b->exact value here instead of
6959         in watch_command_1.  Error out if there are not enough resources
6960         for a read or access hardware watchpoint.
6961         (watch_command_1): Remove logic of checking whether there are
6962         enough resources available, since update_watchpoint will do that
6963         work now.  Don't set b->exact here.  Catch exceptions thrown by
6964         update_watchpoint and delete the watchpoint.
6965         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6966         Use target_exact_watchpoints instead.
6967         (delete_breakpoint): Notify observers only if deleted watchpoint
6968         has a breakpoint number assigned to it.
6969
6970 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
6971
6972         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6973
6974 2011-05-05  Jerome Guitton  <guitton@adacore.com>
6975
6976         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6977         New functions.
6978         (i386_stack_tramp_frame_unwind): New static global.
6979         (i386_match_pattern): New function, extracted from i386_match_insn.
6980         (i386_match_insn): Use i386_match_pattern.
6981         (i386_match_insn_block): New function.
6982         (i386_tramp_chain_in_reg_insns)
6983         (i386_tramp_chain_on_stack_insns): New static variables.
6984         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6985         of unwinders.
6986
6987 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
6988
6989         * configure.host (xscale*): Don't handle target.
6990         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6991         handle targets.
6992
6993 2011-05-04  Yao Qi  <yao@codesourcery.com>
6994
6995         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6996
6997 2011-05-03  Joel Brobecker <brobecker@adacore.com>
6998
6999         Revert:
7000         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
7001         | * elfread.c (elf_symtab_read): Stop memory leak.
7002
7003 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7004
7005         * nto-tdep.c (nto_target): Replace deprecated call to
7006         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7007
7008 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7009
7010         Fix false GCC warning.
7011         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7012
7013 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7014
7015         * breakpoint.c (update_watchpoint): Move code to change
7016         the enable state of breakpoint from here ...
7017         (do_enable_breakpoint): ... to here.
7018
7019 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
7020
7021         * valprint.c (val_print_array_elements): Fixed poor performance
7022         of printing very large arrays with repeat_count_threshold set
7023         to unlimited.  New comment.
7024
7025 2011-04-29  Tom Tromey  <tromey@redhat.com>
7026
7027         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7028         (mi_parse): Likewise.
7029         * breakpoint.c (break_range_command): Use sizeof char*, not
7030         char**.
7031         (create_breakpoint): Likewise.
7032         (parse_breakpoint_sals): Likewise.
7033
7034 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
7035
7036         * linux-nat.c (linux_child_remove_fork_catchpoint)
7037         (linux_child_remove_vfork_catchpoint)
7038         (linux_child_remove_exec_catchpoint): New functions.
7039         (linux_target_install_ops): Install them.
7040
7041 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
7042
7043         PR mi/12531
7044
7045         * varobj.c (install_default_visualizer): Do not install a
7046         visualizer if the varobj is CPLUS_FAKE_CHILD.
7047         (construct_visualizer): Likewise.
7048
7049 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7050
7051         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
7052         case insensitive comparison.
7053
7054 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
7055
7056         * infrun.c (proceed): Revert previous change.
7057         (resume): Instead, handle the case of signal delivery while stepping
7058         off a breakpoint location here, and only if software single-stepping
7059         is used.  Handle nested signals.
7060
7061 2011-04-28  Yao Qi  <yao@codesourcery.com>
7062
7063         * arm-tdep.c (copy_unmodified): Rename to ...
7064         (arm_copy_unmodified): .. this.  New.
7065         (copy_preload): Move common part to ...
7066         (install_preload): .. this.  New.
7067         (arm_copy_preload): New.
7068         (copy_preload_reg): Move common part to ...
7069         (install_preload_reg): ... this.  New.
7070         (arm_copy_preload_reg): New.
7071         (copy_b_bl_blx): Move common part to ...
7072         (install_b_bl_blx): .. this.  New.
7073         (arm_copy_b_bl_blx): New.
7074         (copy_bx_blx_reg): Move common part to ...
7075         (install_bx_blx_reg): ... this. New.
7076         (arm_copy_bx_blx_reg): New.
7077         (copy_alu_reg): Move common part to ...
7078         (install_alu_reg): ... this.  New.
7079         (arm_copy_alu_reg): New.
7080         (copy_alu_shifted_reg): Move common part to ...
7081         (install_alu_shifted_reg): ... this.  New.
7082         (copy_ldr_str_ldrb_strb): Move common part to ...
7083         (install_ldr_str_ldrb_strb): ... this.  New.
7084         (arm_copy_ldr_str_ldrb_strb): New.
7085         (copy_copro_load_store): Move some common part to ...
7086         (install_copy_copro_load_store): ... this.  New.
7087         (arm_copy_copro_load_store): New.
7088         (copy_svc): Delete.
7089         (arm_copy_svc): Renamed from copy_svc.
7090         (copy_undef): Delete.
7091         (arm_copy_undef): Renamed from copy_undef.
7092         (decode_ext_reg_ld_st): Delete.
7093         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7094         (decode_svc_copro): Delete.
7095         (arm_decode_svc_copro): Renamed from decode_svc_copro.
7096         (copy_copro_load_store, copy_alu_imm): update callers.
7097         (copy_extra_ld_st, copy_block_xfer): Likewise.
7098         (decode_misc_memhint_neon, decode_unconditional): Likewise.
7099         (decode_miscellaneous, decode_dp_misc): Likewise.
7100         (decode_ld_st_word_ubyte, decode_media): Likewise.
7101         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7102         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7103         (decode_unconditional, decode_miscellaneous): Likewise.
7104         (decode_media, decode_b_bl_ldmstm): Likewise.
7105         (arm_process_displaced_insn): Likewise..
7106         (decode_misc_memhint_neon): Delete.
7107         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7108         (decode_miscellaneous): Delete.
7109         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7110         (decode_dp_misc): Delete.
7111         (arm_decode_dp_misc): Renamed from decode_dp_misc.
7112         (decode_ld_st_word_ubyte): Delete.
7113         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7114         (decode_media): Delete.
7115         (arm_decode_media): Renamed from decode_media.
7116         (decode_b_bl_ldmstm): Delete.
7117         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7118         (decode_ext_reg_ld_st): Delete.
7119         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7120         (decode_unconditional): Delete.
7121         (arm_decode_unconditional): Renamed from decode_unconditional.
7122
7123 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7124
7125         Case insensitive lookups implementation.
7126         * dwarf2read.c: Include ctype.h.
7127         (struct mapped_index): New field version.
7128         (mapped_index_string_hash): New parameter index_version.  New comment
7129         for it.  Call tolower appropriately.
7130         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7131         Choose the right index version for mapped_index_string_hash.
7132         (dwarf2_read_index): Support also the index version 5.  Initialize the
7133         new struct mapped_index field version.
7134         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7135         (find_slot): Explain the version needs.  Pass INT_MAX for the new
7136         parameter.
7137         (write_psymtabs_to_index): Produce version 5.
7138         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7139         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
7140         * psymtab.c (lookup_partial_symbol): Find the
7141         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7142         entries.
7143         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7144         NAME lowercasing.
7145         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7146         (completion_list_add_name): New variable ncmp, initialize it, use it.
7147         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7148         * utils.c (strcmp_iw): Support case_sensitive_off.
7149         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7150         New function comment part.  New variables saved_string1,
7151         saved_string2 and case_pass.  Add a proper second pass.
7152
7153 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7154
7155         Replace re_comp/re_exec by regcomp/regexec.
7156         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7157         (search_symbols_name_matches): Use them, use regexec.
7158         (search_symbols): New variable retval_chain, adjust the use of
7159         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
7160         search_symbols_data fields, use regexec instead of re_exec.
7161
7162 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7163
7164         Format the code for the next patch.
7165         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7166         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7167         New variables c1 and c2.
7168
7169 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7170
7171         * infrun.c (proceed): Do not single-step into signal delivery
7172         when stepping off a breakpoint location.
7173         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7174         (insert_step_resume_breakpoint_at_caller): Likewise.
7175         (insert_step_resume_breakpoint_at_sal): Likewise.
7176         (insert_longjmp_resume_breakpoint): Likewise.
7177
7178 2011-04-27  Yao Qi  <yao@codesourcery.com>
7179
7180         * common/linux-ptrace.h: Remove include <sys/wait.h>.
7181
7182 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
7183
7184         * procfs.c (procfs_pass_signals): Fix advance declaration.
7185
7186 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7187
7188         * target.h (struct target_ops): Remove to_notice_signals;
7189         add to_pass_signals.
7190         (target_notice_signals): Remove.
7191         (target_pass_signals): Add prototype.
7192         * target.c (update_current_target): Remove to_notice_signals;
7193         mention to_pass_signals.
7194         (target_pass_signals): New function.
7195         (debug_to_notice_signals): Remove.
7196         (setup_target_debug): Do not install debug_to_notice_signals.
7197
7198         * infrun.c (signal_pass): New global.
7199         (resume): Call target_pass_signals.
7200         (handle_inferior_event): Report all signals while stepping over
7201         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
7202         are re-inserted when stepping over a signal handler.
7203         (signal_cache_update): New function.
7204         (signal_stop_update): Call it.
7205         (signal_print_update): Likewise.
7206         (signal_pass_update): Likewise.
7207         (handle_command): Call signal_cache_update and target_pass_signals
7208         instead of target_notice_signals.
7209         (_initialize_infrun): Initialize signal_pass.
7210
7211         * linux-nat.c (pass_mask): New global.
7212         (linux_nat_pass_signals): New function.
7213         (linux_nat_create_inferior): Report all signals initially.
7214         (linux_nat_attach): Likewise.
7215         (linux_nat_resume): Use pass_mask to decide whether to directly
7216         handle an inferior signal.
7217         (linux_nat_wait_1): Likewise.
7218         (linux_nat_add_target): Install to_pass_signals callback.
7219
7220         * nto-procfs.c (notice_signals): Remove.
7221         (procfs_resume): Do not call notice_signals.
7222         (procfs_notice_signals): Remove.
7223         (procfs_pass_signals): New function.
7224         (init_procfs_ops): Install to_pass_signals callback instead of
7225         to_notice_signals callback.
7226         (_initialize_procfs): Report all signals initially.
7227
7228         * procfs.c (procfs_notice_signals): Remove.
7229         (procfs_pass_signals): New function.
7230         (procfs_target): Install to_pass_signals callback instead of
7231         to_notice_signals callback.
7232         (register_gdb_signals): Remove.
7233         (procfs_debug_inferior): Report all signals initially.
7234         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7235
7236         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7237         parameters; use them instead of calling signal_..._state routines.
7238         (remote_notice_signals): Remove.
7239         (remote_start_remote): Report all signals initially.
7240         (remote_resume): Do not call remote_pass_signals.
7241         (_initialize_remote): Install to_pass_signals callback instead of
7242         to_notice_signals callback.
7243
7244 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7245
7246         * breakpoint.c (user_settable_breakpoint): Delete.
7247         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7248         (delete_command): Check user_breakpoint_p instead of looking at
7249         the breakpoint's type.
7250         (disable_command): Ditto.
7251         (enable_command): Ditto.
7252         (delete_trace_command): Use user_breakpoint_p instead of looking
7253         at the breakpoint number directly.  When checking if there are
7254         user visible tracepoints, in order to know whether to ask the user
7255         for confirmation, check whether the breakpoint is actually a
7256         tracepoint.
7257
7258 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7259
7260         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7261         compilation.
7262
7263 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7264
7265         MI breakpoint notifications.
7266
7267         * annotate.c (breakpoint_changed): Adjust parameter type.
7268         * breakpoint.c (set_breakpoint_condition): Adjust to change
7269         in breakpoint_modified type.
7270         (breakpoint_set_commands): Likewise.
7271         (do_map_commands_command): Likewise.
7272         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7273         changed after bumping hit count.
7274         (bpstat_stop_status): Likewise.
7275         (print_one_breakpoint_location): Don't wrap in tuple here.
7276         (print_one_breakpoint): Always print individual locations.
7277         For locations, use unnamed tuple.
7278         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7279         has changed.
7280         (create_catchpoint, create_syscall_event_catchpoint): Call
7281         breakpoint_created obsever.
7282         (mention): Don't call breakpoint_created observer.
7283         (create_breakpoint_sal): Call breakpoint_created observer.
7284         (create_breakpoint, watch_command_1): Likewise.
7285         (create_ada_exception_breakpoint): Likewise.
7286         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7287         (locations_are_equal): New.
7288         (update_breakpoint_locations): If locations were changed, notify.
7289         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7290         Call breakpoint_modified observer.
7291
7292         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7293         (mi_cmd_break_insert): Don't set observers for modify and delete.
7294         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7295         (mi_breakpoint_created, mi_breakpoint_deleted)
7296         (mi_breakpoint_modified): New.
7297         (mi_interpreter_init): Hook the above.
7298         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7299         while -break-* commands are executing.
7300         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7301         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7302         (mi_redirect): New.
7303         (mi_ui_out_impl): Hook in mi_redirect.
7304         (mi_field_skip): True to the name, skip the field, don't output
7305         a field with an empty value.
7306
7307         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7308         (gdbpy_breakpoint_deleted): Adjust.
7309         * tui/tui-hooks.c (tui_event_create_breakpoint)
7310         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7311
7312 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7313
7314         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7315         (procfs_remove_hw_watchpoint): Likewise.
7316
7317 2011-04-26  Michael Walle  <michael@walle.cc>
7318
7319         * remote.c (remote_start_remote): Ack packet after sending the
7320         interrupt sequence.
7321
7322 2011-04-26  Yao Qi  <yao@codesourcery.com>
7323
7324         * linux-nat.c: Move common macros to ...
7325         Include linux-ptrace.h.
7326         * common/linux-ptrace.h: ... here.  New.
7327
7328 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7329
7330         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7331         !objfile_has_partial_symbols.  New comment.
7332         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7333         SYM_READ_PSYMBOLS is not present. Extend the comment.
7334         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7335
7336 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7337
7338         * defs.h (ENUM_BITFIELD): Remove.
7339
7340 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7341             Eli Zaretskii  <eliz@gnu.org>
7342
7343         * NEWS: Document the new gdbserver --once option.
7344
7345 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7346
7347         * MAINTAINERS: Update my email address.
7348
7349 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7350
7351         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7352         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7353         function call if __STDC_ISO_10646__ macro is defined.
7354         (intermediate_encoding): New prototype.
7355         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7356         to generate compile time error for unsupported gdb_wchar_t size.
7357         (ENDIAN_SUFFIX): New macro.
7358         (intermediate_encoding): New function.
7359
7360 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7361
7362         * ada-lang.c (struct add_partial_datum): Update the comment for
7363         expand_partial_symbol_name.
7364         (ada_add_partial_symbol_completions): Rename to ...
7365         (ada_expand_partial_symbol_name): ... here, change return type, update
7366         function comment, call symbol_completion_match instead of
7367         symbol_completion_add.
7368         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7369         and ada_expand_partial_symbol_name.
7370         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7371         FILE_MATCHER.
7372         (dw2_map_symbol_names): Remove.
7373         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7374         * psymtab.c (map_symbol_names_psymtab): Remove.
7375         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7376         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7377         order.
7378         (psym_functions): Unlist map_symbol_names_psymtab.
7379         (map_partial_symbol_names): Rename to ...
7380         (expand_partial_symbol_names): ... here, change the FUN type, call
7381         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7382         * psymtab.h (map_partial_symbol_names): Rename to ...
7383         (expand_partial_symbol_names): ... here, change the FUN type.
7384         * symfile.h (struct quick_symbol_functions): Update the description of
7385         expand_symtabs_matching.  Remove map_symbol_names.
7386         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7387         (struct add_name_data): Update the comment for
7388         expand_partial_symbol_name.
7389         (add_partial_symbol_name): Rename to ...
7390         (expand_partial_symbol_name): ... here.  Replace
7391         completion_list_add_name call by strncmp.
7392         (default_make_symbol_completion_list_break_on): Use now
7393         expand_partial_symbol_names and expand_partial_symbol_name.
7394         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7395
7396 2011-04-20  Tom Tromey  <tromey@redhat.com>
7397
7398         * dwarf2read.c (save_gdb_index_command): Replace format
7399         documentation with a pointer to the manual.
7400
7401 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7402
7403         * regcache.c: Include remote.h.
7404         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7405         (regcache_dump): Handle regcache_dump_remote.
7406         (maintenance_print_remote_registers): New function.
7407         (_initialize_regcache): Install "maint print remote-registers"
7408         command.
7409         * remote.c (map_regcache_remote_table): New function, factored out
7410         from ...
7411         (init_remote_state): ... here.
7412         (remote_register_number_and_offset): New.
7413         * remote.h (remote_register_number_and_offset): Declare.
7414
7415 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7416
7417         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7418         null_ptid, assume and allow a NULL address space, instead of
7419         asking the target for the ptid's address space.
7420         * infrun.c (ptid_is_pid): Remove assertion.
7421
7422 2011-04-19  Tom Tromey  <tromey@redhat.com>
7423
7424         * windows-tdep.c (windows_xfer_shared_library):
7425         * windows-nat.c (get_module_name, windows_make_so):
7426         * v850-tdep.c (v850_handle_pushm):
7427         * utils.c (null_cleanup, gdb_realpath):
7428         * ui-out.c (get_next_header):
7429         * tracepoint.c (clear_traceframe_info):
7430         * symtab.c (lookup_symtab):
7431         * serial.h (struct serial_ops):
7432         * mipsread.c (read_alphacoff_dynamic_symtab):
7433         * infcmd.c (print_return_value):
7434         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7435         * f-exp.y (parse_number):
7436         * exceptions.c (catch_exceptions):
7437         * dummy-frame.c (dummy_frame_this_id):
7438         * defs.h (struct cleanup):
7439         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7440         * arm-tdep.c (arm_push_dummy_call):
7441         * amd64-tdep.h (amd64_collect_xsave):
7442         * amd64-tdep.c (amd64_collect_xsave):
7443         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7444         * README (typing): Remove duplicate words.
7445         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7446         * infrun.c (siginfo_value_read): Fix typo.
7447         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7448         * top.c (source_line_number): Add comma.
7449
7450 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7451
7452         * thread.c (any_live_thread_of_process): Prioritize threads
7453         that are not executing.
7454         * gdbthread.h (any_live_thread_of_process): Update comment
7455         as per above change.
7456
7457 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7458
7459         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7460         (scan_xcoff_symtab): Likewise.
7461
7462 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7463
7464         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7465         inside if clause.
7466
7467 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7468             Pedro Alves  <pedro@codesourcery.com>
7469
7470         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7471         variables to simplify code and avoid == operator at end of
7472         line as this is against GNU coding standards.
7473
7474 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7475
7476         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7477         lm_name to name_lm to avoid conflict with lm_name function.
7478
7479 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7480
7481         ARI fixes: Use only lowercase function name for static functions.
7482         * nto-tdep.c (LM_ADDR): Rename to...
7483         (lm_addr): New function name.
7484         (nto_relocate_section_addresses): Adapt to change above.
7485         * solib-sunos.c (LM_ADDR): Rename to...
7486         (lm_addr): New function name.
7487         (LM_NEXT): Rename to...
7488         (lm_next): New function name.
7489         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7490         function name changes above.
7491         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7492         (lm_addr_from_link_map): New function name.
7493         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7494         (has_lm_dynamic_from_link_map): New function name.
7495         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7496         (lm_dynamic_from_link_map): New function name.
7497         (LM_ADDR_CHECK): Rename to...
7498         (lm_addr_check): New function name.
7499         (LM_NEXT): Rename to...
7500         (lm_next): New function name.
7501         (LM_PREV): Rename to...
7502         (lm_prev): New function name.
7503         (LM_NAME): Rename to...
7504         (lm_name): New function name.
7505         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7506         (ignore_first_link_map_entry): New function name.
7507         (svr4_keep_data_in_core): Adapt to function name changes above.
7508         (svr4_current_sos): Likewise.
7509         (enable_break): Likewise.
7510         (svr4_relocate_section_addresses): Likewise.
7511
7512 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7513
7514         ARI cleanup.
7515         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7516         sprintf. Simplify code and avoid loosing memory.
7517         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7518         (call0_frame_cache): Remove && operator from end of line.
7519
7520 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7521
7522         Fix libraries displacement if they change whether they were prelinked.
7523         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7524         does not match.  Comment why.
7525
7526 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7527
7528         * corelow.c: Include wrapper.h.
7529         (core_open): Call now gdb_target_find_new_threads.
7530         * wrapper.c: Include target.h.
7531         (gdb_target_find_new_threads): New.
7532         * wrapper.h (gdb_target_find_new_threads): New declaration.
7533
7534 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7535
7536         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7537         even if !TARGET_HAS_EXECUTION.
7538
7539 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7540
7541         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7542         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7543         bfd_get_synthetic_symtab.
7544         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7545         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7546         parameter parent, remove the call to add_separate_debug_objfile.
7547         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7548         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7549         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7550         parent, new comment for it, call add_separate_debug_objfile for it.
7551         (symbol_file_add_separate): Pass objfile as the parameter parent,
7552         remove the call to add_separate_debug_objfile.
7553         (symbol_file_add_from_bfd): New parameter parent, pass it.
7554         (symbol_file_add): Pass NULL to the new parameter parent.
7555         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7556
7557 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7558
7559         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7560         BSF_SYNTHETIC.
7561
7562 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7563
7564         Fix Python access to inlined frames.
7565         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7566         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7567
7568 2011-04-15  Tom Tromey  <tromey@redhat.com>
7569
7570         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7571
7572 2011-04-15  Gary Benson  <gbenson@redhat.com>
7573
7574         * MAINTAINERS: Add myself to write-after-approval section.
7575
7576 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7577
7578         * remote-sim.c (sim_command_completer): New function.
7579         (_initialize_remote_sim): Set completer to sim_command_completer.
7580
7581 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7582
7583         * breakpoint.c (print_exception_catchpoint): Rename to ...
7584         (print_it_exception_catchpoint): ... this.
7585         (gnu_v3_exception_catchpoint_ops): Update with new name
7586         for print_it_exception_catchpoint.
7587
7588 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7589
7590         * MAINTAINERS: Add myself for write after approval privileges.
7591
7592 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7593
7594         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7595
7596 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7597
7598         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7599
7600 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7601
7602         * breakpoint.c (save_breakpoints): Verify whether
7603         breakpoint_ops.print_recreate is defined before calling it.
7604
7605 2011-04-11  Gary Benson  <gbenson@redhat.com>
7606
7607         Fix failure with --enable-maintainer-mode.
7608         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7609
7610 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7611
7612         Code cleanup.
7613         * symtab.c (search_symbols): Reorder the KIND description in the
7614         function comment.  Remove the unused 4th element of types, types2,
7615         types3 and types4.  New gdb_assert on KIND.
7616         (symtab_symbol_info): Remove the unused 4th element of classnames.
7617         New gdb_assert on KIND.
7618         * symtab.h (enum search_domain): New warning in the enum comment.
7619         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7620         TYPES_DOMAIN.
7621
7622 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7623
7624         Fix crash of gdb save-index on a STABS file.
7625         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7626         PSYMTABS_ADDRMAP.
7627
7628 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7629
7630         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7631         * dwarf2read.c: Include ctype.h.
7632         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7633         functions.
7634         (dwarf2_add_field): Fix new_field->accessibility by calling
7635         dwarf2_default_access_attribute.  Restructure setting accessibility
7636         vs. virtuality.
7637         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7638         is_private and is_protected by calling
7639         dwarf2_default_access_attribute.
7640
7641 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7642
7643         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7644         to the initialization.
7645
7646 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7647
7648         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7649         initalization.
7650
7651 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7652
7653         Remove support for old Cygwin 1.5 versions.
7654         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7655         function on old Cygwin version.
7656         * windows-nat.c: Remove cygwin version check and always define
7657         __USEWIDE for Cygwin compilation.
7658
7659 2011-04-07  Yao Qi  <yao@codesourcery.com>
7660
7661         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7662         and TO.
7663         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7664         (arm_copy_svc): Remove parameters INSN and TO.
7665         (decode_svc_copro): Update caller.
7666         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7667         from function pointer `copy_svc_os'.
7668
7669 2011-04-07  Yao Qi  <yao@codesourcery.com>
7670
7671         * arm-tdep.c (cleanup_branch): Set a correct return address in
7672         LR for ARM and Thumb.
7673
7674 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7675
7676         Code cleanup.
7677         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7678         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7679         in the function comment, a new note on values compatibility.
7680         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7681         * symtab.h (SYMBOL_HASH_NEXT): New.
7682
7683 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7684
7685         * ppc-linux-nat.c (check_condition): Add len output parameter.
7686         Set it based on the memory region referenced in the condition
7687         expression.  Update all callers.
7688
7689 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7690
7691         Fix crash regression on systems featuring .gdb_index.
7692         * objfiles.c (free_objfile): Move the
7693         forget_cached_source_info_for_objfile call earlier.  Comment it.
7694         Extend the comment for objfile_free_data.
7695
7696 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7697
7698         Fix regression of displaying the debug format.
7699         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7700         subfile.
7701
7702 2011-04-04  Tom Tromey  <tromey@redhat.com>
7703
7704         * cli/cli-interp.c (struct captured_execute_command_args):
7705         Remove.
7706         (do_captured_execute_command): Remove.
7707         (safe_execute_command): Use TRY_CATCH.
7708         * cli/cli-script.c (struct wrapped_read_command_file_args):
7709         Remove.
7710         (wrapped_read_command_file): Remove.
7711         (script_from_file): Use TRY_CATCH.
7712         * exceptions.c (catch_exception): Remove.
7713         * exceptions.h (catch_exception): Remove.
7714         (deprecated_throw_reason): Update comment.
7715         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7716         argument to 'context'.
7717         (mi_execute_command): Use TRY_CATCH.
7718         * remote.c (struct start_remote_args): Remove.
7719         (remote_start_remote): Update; change arguments.
7720         (remote_open_1): Use TRY_CATCH.
7721
7722 2011-04-04  Tom Tromey  <tromey@redhat.com>
7723
7724         * tracepoint.c (scope_info): Update.
7725         * symtab.c (decode_line_spec): Update.
7726         * python/python.c (gdbpy_decode_line): Update.
7727         * linespec.h (decode_line_1): Update.
7728         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7729         (decode_compound, find_method, symtab_from_filename)
7730         (decode_variable): Likewise.
7731         * cli/cli-cmds.c (edit_command): Update.
7732         (list_command): Update.
7733         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7734         argument.
7735         (create_breakpoint): Update.
7736         (until_break_command): Update.
7737         (addr_string_to_sals): Update.
7738         (decode_line_spec_1): Update.
7739
7740 2011-04-04  Tom Tromey  <tromey@redhat.com>
7741
7742         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7743         (do_captured_parse_breakpoint): Remove.
7744         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7745         Use TRY_CATCH directly.
7746
7747 2011-04-04  Tom Tromey  <tromey@redhat.com>
7748
7749         * symtab.h (free_symtab): Remove.
7750         (forget_cached_source_info_for_objfile): Declare.
7751         * symmisc.c (free_symtab): Remove.
7752         * source.c (forget_cached_source_info_for_objfile): New function.
7753         (forget_cached_source_info): Use it.
7754         * objfiles.c (free_objfile): Simplify check before calling
7755         clear_current_source_symtab_and_line.  Call
7756         forget_cached_source_info_for_objfile.
7757
7758 2011-04-04  Tom Tromey  <tromey@redhat.com>
7759
7760         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7761         (new_symtab): Don't set `free_code' on symtab.
7762         (new_linetable): Properly handle size==0.
7763         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7764         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7765         free_func.
7766         * jv-lang.c (struct jv_per_objfile_data): New.
7767         (jv_per_objfile_free): Free the data.
7768         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7769         (get_java_class_symtab): Set the `dict' field on the
7770         jv_per_objfile_data.
7771         (free_class_block): Remove.
7772         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7773         the symtab.
7774
7775 2011-04-04  Tom Tromey  <tromey@redhat.com>
7776
7777         * symfile.c (reread_symbols): Update.
7778         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7779         field.
7780         * objfiles.c (allocate_objfile): Update.
7781         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7782         declare.
7783         * cp-namespace.c (lookup_symbol_file): Don't call
7784         lookup_possible_namespace_symbol.
7785         (initialize_namespace_symtab, get_possible_namespace_block)
7786         (free_namespace_block, cp_check_possible_namespace_symbols)
7787         (check_possible_namespace_symbols_loop)
7788         (check_one_possible_namespace_symbol)
7789         (lookup_possible_namespace_symbol): Remove.
7790         (maintenance_cplus_namespace): Replace with notice.
7791         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7792
7793 2011-04-04  Tom Tromey  <tromey@redhat.com>
7794
7795         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7796         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7797         * symmisc.c (free_symtab): Don't free debugformat.
7798         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7799         (record_debugformat, record_producer): Document.
7800         * buildsym.c (end_symtab): Don't save debugformat and producer
7801         names on obstack.
7802         (end_symtab): Don't free debugformat and producer fields.
7803         (record_debugformat): Don't call xstrdup.
7804         (record_producer): Likewise.
7805
7806 2011-04-04  Tom Tromey  <tromey@redhat.com>
7807
7808         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7809         (source_line_charpos, source_charpos_line): Remove.
7810
7811 2011-04-04  Tom Tromey  <tromey@redhat.com>
7812
7813         * symtab.h (domain_enum): Split in two...
7814         (enum search_domain): New.
7815         (search_symbols): Update.
7816         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7817         redundant declarations.
7818         (search_symbols): Change 'kind' argument to search_domain.
7819         Update.
7820         (print_symbol_info): Likewise.
7821         (symtab_symbol_info): Likewise.
7822         * symfile.h (struct quick_symbol_functions)
7823         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7824         <expand_symtabs_matching>: Likewise.
7825         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7826         (expand_symtabs_matching_via_partial): Update.
7827         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7828         (dw2_expand_symtabs_for_function): Update.
7829         * block.h: Moved anonymous enum...
7830         * defs.h (enum block_enum): ... here.  Now named.
7831
7832 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7833
7834         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7835         * version.in: Bump version to 7.3.50.20110403-cvs.
7836
7837 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7838
7839         * NEWS: Create a new section for the next release branch.
7840         Rename the section of the current branch, now that it has
7841         been cut.
7842
7843 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7844
7845         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7846         for "fpscr" in target description.
7847
7848 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7849
7850         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7851         initialize it.  Delay HASH initialization.  Strip the part after open
7852         parenthesis for languages with qualifiers.  Call do_cleanups.
7853
7854 2011-04-01  Tom Tromey  <tromey@redhat.com>
7855
7856         * utils.c (report_command_stats): Don't print `-' for negative
7857         number.
7858
7859 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7860
7861         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7862         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7863         typedefs.
7864
7865 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7866
7867         * breakpoint.h (bpdisp_text): Add declaration.
7868         * breakpoint.c (bpdisp_text): Make non-static.
7869         * ada-lang.c: #include "mi/mi-common.h".
7870         (print_it_exception): Rewrite to improve GDB/MI output.
7871
7872 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
7873
7874         * arm-tdep.h (struct address_space): Add forward declaration.
7875
7876 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7877
7878         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7879         * arm-tdep.c (arm_override_mode): New global.
7880         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
7881         execution mode heuristics.
7882         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7883         second single-step breakpoint if needed, using
7884         arm_insert_single_step_breakpoint.
7885         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
7886         ARM execution mode, do not call thumb_get_next_pc_raw.
7887         (arm_get_next_pc): Encode execution mode in return value.  Call
7888         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7889         (arm_insert_single_step_breakpoint): New function.
7890         (arm_software_single_step): Call it.
7891         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7892         argument to return execution mode of sigreturn target.
7893         (arm_linux_syscall_next_pc): Use it.
7894         (arm_linux_copy_svc): Update call.
7895         (arm_linux_software_single_step): Call
7896         arm_insert_single_step_breakpoint.
7897
7898 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7899
7900         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7901         the comment.
7902
7903 2011-03-31  Tom Tromey  <tromey@redhat.com>
7904
7905         * varobj.c (update_dynamic_varobj_children): Properly handle
7906         errors from iterator.
7907
7908 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7909
7910         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
7911         struct linkage name twice.
7912
7913 2011-03-31  Tom Tromey  <tromey@redhat.com>
7914
7915         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7916         missing ">" to message.
7917
7918 2011-03-31  Tom Tromey  <tromey@redhat.com>
7919
7920         * varobj.c (instantiate_pretty_printer): Remove duplicate
7921         'return'.
7922
7923 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
7924
7925         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7926         if neither saved value nor register available (e.g. signal frame).
7927
7928 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7929
7930         * macroexp.c (expand): Avoid uninitialized variable
7931         compiler warning.
7932
7933 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7934
7935         * breakpoint.c (break_range_command): Fix typo in comment.
7936
7937 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7938             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7939
7940         Implement support for PowerPC BookE ranged breakpoints.
7941         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7942         * breakpoint.h (struct bp_target_info) <length>: New member
7943         variable.
7944         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7945         instead of struct breakpoint as argument, and also add ASPACE
7946         and BP_ADDR arguments.  Update all callers.
7947         (struct breakpoint_ops) <print_one_detail>: New method.
7948         (struct breakpoint) <addr_string_range_end>: New member variable.
7949         * breakpoint.c (breakpoint_location_address_match): Add function
7950         prototype.
7951         (insert_bp_location): Set bl->target_info.length.
7952         (breakpoint_here_p): Call breakpoint_location_address_match.
7953         (moribund_breakpoint_here_p): Likewise.
7954         (regular_breakpoint_inserted_here_p): Likewise.
7955         (breakpoint_thread_match): Likewise.
7956         (bpstat_stop_status): Likewise.
7957         (bpstat_check_location): Move call to
7958         breakpoint_ops.breakpoint_hit to the top.
7959         (print_one_breakpoint_location): Call
7960         breakpoint_ops.print_one_detail if available.
7961         (breakpoint_address_match_range): New function.
7962         (breakpoint_location_address_match): Likewise.
7963         (breakpoint_locations_match): Compare the length field of the
7964         locations too.
7965         (hw_breakpoint_used_count): Count resources used by all locations
7966         in a breakpoint, and use breakpoint_ops.resources_needed if
7967         available.
7968         (breakpoint_hit_ranged_breakpoint): New function.
7969         (resources_needed_ranged_breakpoint): Likewise.
7970         (print_it_ranged_breakpoint): Likewise.
7971         (print_one_ranged_breakpoint): Likewise.
7972         (print_one_detail_ranged_breakpoint): Likewise.
7973         (print_mention_ranged_breakpoint): Likewise.
7974         (print_recreate_ranged_breakpoint): Likewise.
7975         (ranged_breakpoint_ops): New structure.
7976         (find_breakpoint_range_end): New function.
7977         (break_range_command): Likewise.
7978         (delete_breakpoint): Free addr_string_range_end.
7979         (update_breakpoint_locations): Add SALS_END argument.  Update
7980         all callers.  Calculate breakpoint length if a non-zero SALS_END
7981         is given.  Call breakpoint_locations_match instead of
7982         breakpoint_address_match.
7983         (reset_breakpoint): Find SaL of the end of the range if B is a
7984         ranged breakpoint.
7985         (_initialize_breakpoint): Register break-range command.
7986         * defs.h (print_core_address): Add function prototype.
7987         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7988         function.
7989         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7990         (ppc_linux_remove_hw_breakpoint): Likewise.
7991         (_initialize_ppc_linux_nat): Initialize
7992         to_ranged_break_num_registers.
7993         * target.c (update_current_target): Add comment about
7994         to_ranged_break_num_registers.
7995         (target_ranged_break_num_registers): New function.
7996         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7997         New method.
7998         (target_ranged_break_num_registers): Add function prototype.
7999         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8000         * utils.c (print_core_address): ... here.
8001
8002 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
8003
8004         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8005         variable compiler warning.
8006
8007 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8008
8009         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8010         code from here ...
8011         (re_set_breakpoint): ... to here ...
8012         (addr_string_to_sals): ... and here.
8013
8014 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8015
8016         * Makefile.in (SFILES): Add missing C sources.
8017         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8018         Add missing headers.
8019
8020 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8021
8022         * .gitignore: New file.
8023
8024 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8025
8026         * NEWS: Mention new cfi device simulation.
8027
8028 2011-03-29  Tom Tromey  <tromey@redhat.com>
8029
8030         * dwarf2read.c (fixup_partial_die): Handle linkage name on
8031         otherwise anonymous types.
8032         (dwarf2_name): Likewise.
8033         * valops.c (value_struct_elt_for_reference): Refine artificial
8034         type logic.  Call error if j==-1.
8035
8036 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
8037
8038         Fix false GCC warning.
8039         * infcall.c (find_function_addr): Initialize funaddr.
8040
8041 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8042
8043         Fix mingw compilation with --enable-targets=all.
8044         * remote-mips.c (gdb_usleep.h): Include header.
8045         (mips_enter_debug): Use gdb_usleep instead of sleep.
8046
8047 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8048
8049         Support resolution of STT_GNU_IFUNC via breakpoints.
8050         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8051         bp_gnu_ifunc_resolver_return.
8052         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8053         the loop.  Support bp_gnu_ifunc_resolver and
8054         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
8055         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8056         breakpoints.
8057         (bptype_string, print_one_breakpoint_location): Support
8058         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8059         (user_settable_breakpoint): Return true also for
8060         bp_gnu_ifunc_resolver.
8061         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8062         bp_gnu_ifunc_resolver_return.
8063         (set_breakpoint_location_function): New parameter explicit_loc,
8064         describe it.  Call find_pc_partial_function_gnu_ifunc with new
8065         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8066         EXPLICIT_LOC is not set.
8067         (set_raw_breakpoint): Set EXPLICIT_LOC for
8068         set_breakpoint_location_function.
8069         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8070         set_breakpoint_location_function.
8071         (mention): Support bp_gnu_ifunc_resolver and
8072         bp_gnu_ifunc_resolver_return.
8073         (add_location_to_breakpoint): Set EXPLICIT_LOC for
8074         set_breakpoint_location_function.
8075         (update_breakpoint_locations): Remove static.
8076         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8077         bp_gnu_ifunc_resolver_return.
8078         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8079         bp_gnu_ifunc_resolver_return.
8080         (update_breakpoint_locations): New declaration.
8081         * elfread.c: Include gdbthread.h and regcache.h.
8082         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8083         functions.
8084         (elf_gnu_ifunc_fns): Install them.
8085         * minsyms.c (stub_gnu_ifunc_resolver_stop)
8086         (stub_gnu_ifunc_resolver_return_stop): New functions.
8087         (stub_gnu_ifunc_fns): Install them.
8088         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8089         and gnu_ifunc_resolver_return_stop.
8090         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8091
8092 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8093
8094         STT_GNU_IFUNC reader implementation.
8095         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8096         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8097         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8098         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8099         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8100         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8101         (elf_gnu_ifunc_resolve_addr): New.
8102         (elf_symfile_read): Call elf_rel_plt_read.
8103         (elf_gnu_ifunc_fns): New.
8104         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8105         Install elf_gnu_ifunc_fns.
8106         * infcall.c (find_function_return_type): New function.
8107         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8108         * minsyms.c (stub_gnu_ifunc_resolve_addr)
8109         (stub_gnu_ifunc_resolve_name): New functions.
8110         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8111         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8112         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8113
8114 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8115
8116         Code cleanup for later STT_GNU_IFUNC support.
8117         * infcall.c (find_function_addr): Remove variable code, use explicit
8118         dereferences for it.  Move VALUE_TYPE initialization later.
8119
8120 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8121
8122         GDB find_pc_partial_function support for STT_GNU_IFUNC.
8123         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8124         (clear_pc_function_cache): Clear it.
8125         (find_pc_partial_function): Rename to ...
8126         (find_pc_partial_function_gnu_ifunc): ... this function.  New
8127         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
8128         (find_pc_partial_function): New wrapper for this function.
8129         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8130
8131 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8132
8133         GDB internal type support for STT_GNU_IFUNC.
8134         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8135         (elf_symtab_read): Set mst_text_gnu_ifunc for
8136         BSF_GNU_INDIRECT_FUNCTION.
8137         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8138         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8139         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8140         nodebug_got_plt_symbol.
8141         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8142         (TYPE_GNU_IFUNC): New.
8143         (struct main_type): New field flag_gnu_ifunc.
8144         (struct builtin_type): New field builtin_func_func.
8145         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8146         nodebug_got_plt_symbol.
8147         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8148         (in_gnu_ifunc_stub): New.
8149         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8150         mst_text_gnu_ifunc.
8151         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
8152         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
8153         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8154         in_gnu_ifunc_stub.
8155         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8156         * symtab.c (search_symbols): Likewise.
8157         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8158         and mst_slot_got_plt.
8159         (in_gnu_ifunc_stub): New declaration.
8160
8161 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8162
8163         Support a ring of related breakpoints.
8164         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8165         other functions, add gdb_assert.
8166         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
8167         watchpoint_del_at_next_stop.
8168         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8169         (bpstat_stop_status): Handle ring in related_breakpoint.
8170         (set_raw_breakpoint_without_location): Initialize ring in
8171         related_breakpoint.
8172         (delete_breakpoint): Handle ring in related_breakpoint, use
8173         watchpoint_del_at_next_stop.
8174         (map_breakpoint_numbers): Handle ring in related_breakpoint.
8175
8176 2011-03-28  Tom Tromey  <tromey@redhat.com>
8177
8178         PR symtab/12441:
8179         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8180         with `language_minimal'.
8181
8182 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
8183
8184         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8185         instead of checking for STT_ARM_TFUNC symbol type.
8186
8187 2011-03-25  Tom Tromey  <tromey@redhat.com>
8188
8189         * linespec.c (symbol_found): Restore line-based result for
8190         non-LOC_LABEL symbols.
8191
8192 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8193
8194         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8195         instead of strcmp for comparison.
8196         (tui_source_is_displayed): Likewise.
8197         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8198
8199 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8200
8201         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8202         complaint.
8203         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8204         (find_partial_die_in_comp_unit): Likewise in comment.
8205         (read_attribute_value): Likewise.
8206         (lookup_die_type): Likewise.
8207         (dwarf_form_name): Likewise.
8208         (dump_die_shallow): Likewise.
8209         (follow_die_ref_or_sig): Likewise.
8210
8211 2011-03-24  Tom Tromey  <tromey@redhat.com>
8212
8213         PR breakpoints/11816:
8214         * linespec.c (decode_line_1): Parse `function:label' linespecs.
8215         (decode_compound): Update.
8216         (find_function_symbol): New function.
8217         (decode_dollar): Update.
8218         (decode_label): Add 'function_symbol' parameter.  Handle
8219         function-relative labels.
8220         (decode_variable): Update.
8221         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
8222         not its line.  Set `special_display' and canonical name for
8223         labels.
8224
8225 2011-03-24  Tom Tromey  <tromey@redhat.com>
8226
8227         * linespec.h (struct linespec_result) <special_display>: New
8228         field.
8229         * breakpoint.h (struct breakpoint) <display_canonical>: New
8230         field.
8231         * breakpoint.c (print_breakpoint_location): Respect
8232         display_canonical.
8233         (create_breakpoint_sal): Add 'display_canonical' parameter.
8234         (create_breakpoints_sal): Update.
8235         (create_breakpoint): Update.
8236
8237 2011-03-24  Tom Tromey  <tromey@redhat.com>
8238
8239         * symtab.c (decode_line_spec): Update.
8240         * linespec.c (build_canonical_line_spec): Change type of
8241         'canonical'.
8242         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8243         (find_method, decode_all_digits, decode_dollar, decode_label)
8244         (symbol_found): Likewise.
8245         (init_linespec_result): New function.
8246         * breakpoint.c (struct captured_parse_breakpoint_args)
8247         <canonical_p>: New field, replaces addr_string_p.
8248         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8249         'addr_string'.
8250         (parse_breakpoint_sals): Likewise.
8251         (do_captured_parse_breakpoint): Update.
8252         (create_breakpoint): Use struct linespec_result.
8253         (until_break_command): Update.
8254         (breakpoint_re_set_one): Update.
8255         (decode_line_spec_1): Update.
8256         * linespec.h (struct linespec_result): New.
8257         (init_linespec_result): Declare.
8258
8259 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8260
8261         * regcache.c (regcache_raw_read): If the target didn't supply a
8262         given raw register, mark it as unavailable.
8263
8264 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8265
8266         * breakpoint.c (clear_command): Use filename_cmp
8267         instead of strcmp for comparison.
8268         * buildsym.c (watch_main_source_file_lossage): Likewise.
8269         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8270         checking just for slash.
8271         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8272         strrchr and filename_cmp instead of strcmp for filenames.
8273         (add_old_header_file): Use filename_cmp
8274         instead of strcmp for comparison.
8275         * exec.c (exec_set_section_address): Likewise.
8276         * macrotab.c (macro_lookup_inclusion): Likewise.
8277         (macro_lookup_inclusion): Likewise.
8278         * elfread.c (_initialize_elfread): Likewise.
8279         (elfstab_offset_sections): Likewise.
8280         (elfstab_offset_sections): Use lbasename instead of
8281         strrchr.
8282         * mdebugread.c (parse_partial_symbols): Likewise.
8283         (arse_partial_symbols): Use filename_(n)cmp instead of
8284         str(n)cmp for comparison.
8285         * minsyms.c (lookup_minimal_symbol): Likewise.
8286         * psymtab.c (read_psymtabs_with_filename): Likewise.
8287         * solib.c (solib_read_symbols): Likewise.
8288         (reload_shared_libraries_1): Likewise.
8289         * symmisc.c (maintenance_print_symbols): Likewise.
8290         * symfile.c (separate_debug_file_exists): Likewise.
8291         (reread_symbols): Likewise.
8292         (find_separate_debug_file_by_debuglink): Likewise.
8293         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8294         * source.c (add_path): Likewise.
8295         * symtab.c (filename_seen): Likewise.
8296         (file_matches): Likewise.
8297         (print_symbol_info): Likewise.
8298         (maybe_add_partial_symtab_filename): Likewise.
8299         (make_source_files_completion_list): Likewise.
8300         * xml-syscall.c (init_sysinfo): Likewise.
8301         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8302         IS_DIR_SEPARATOR for checking for trailing path separator.
8303
8304 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8305
8306         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8307         label abort_expression.
8308         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8309         DWARF_VALUE_OPTIMIZED_OUT.
8310
8311 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8312
8313         Code cleanup.
8314         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8315         to linkage_name.  Invert its value.  Update the function comment.
8316         (c_type_print_varspec_suffix): Invert it at the caller.
8317         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8318
8319 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8320
8321         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8322         errors when reading the `stop_pc'.
8323         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8324         get_frame_pc.
8325
8326 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8327
8328         * NEWS: Document gdb.Write stream keyword.
8329
8330 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8331
8332         Revert:
8333         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8334         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8335         (dwarf2_add_field): Fix new_field->accessibility for
8336         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8337
8338 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8339
8340         PR python/12183
8341
8342         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8343         other error classes.  Do not print stack trace.
8344
8345 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8346
8347         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8348         (dwarf2_add_field): Fix new_field->accessibility for
8349         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8350
8351 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8352
8353         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8354         encountering a load via a non-SP register.
8355
8356 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8357
8358         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8359         field in returned unwinder.
8360
8361 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8362
8363         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8364
8365 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8366
8367         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8368         of xmalloc.
8369
8370 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8371
8372         * frame.c (frame_unwind_register): Throw an error if unwinding the
8373         register failed.
8374         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8375         an unwind stop reason.
8376         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8377         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8378         UNWIND_UNAVAILABLE>: New.
8379         * inline-frame.c (inline_frame_unwind): Install
8380         default_frame_unwind_stop_reason.
8381         * frame-unwind.c: Include "exceptions.h".
8382         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8383         (default_frame_unwind_stop_reason): New.
8384         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8385         (default_frame_unwind_stop_reason): Declare.
8386         (struct frame_unwind) <stop_reason>: New function pointer.
8387
8388         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8389         * dwarf2-frame.c: Include exceptions.h.
8390         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8391         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8392         computing the CFA.  If such an error was thrown, set
8393         unavailable_retaddr.
8394         (dwarf2_frame_unwind_stop_reason): New.
8395         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8396         unavailable.
8397         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8398         (dwarf2_signal_frame_unwind): Ditto.
8399
8400         * amd64-tdep.c: Include "exceptions.h".
8401         (struct amd64_frame_cache): New field "base_p".
8402         (amd64_init_frame_cache): Clear it.
8403         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8404         Avoid reading registers with functions that throw if the register
8405         is not necessary to compute the frame base.
8406         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8407         swallowing NOT_AVAILABLE_ERROR.
8408         (amd64_frame_unwind_stop_reason): New.
8409         (amd64_frame_this_id): Don't build a frame id if the frame base
8410         was unavailable.
8411         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8412         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8413         base_p if the frame base was computable.
8414         (amd64_sigtramp_frame_unwind_stop_reason): New.
8415         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8416         frame base was unavailable.
8417         (amd64_sigtramp_frame_unwind): Install
8418         amd64_sigtramp_frame_unwind_stop_reason.
8419         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8420         base_p if the frame base was computable.
8421         (amd64_epilogue_frame_unwind_stop_reason): New.
8422         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8423         frame base was unavailable.
8424         (amd64_epilogue_frame_unwind): Install
8425         amd64_epilogue_frame_unwind_stop_reason.
8426         * i386-tdep.c: Include "exceptions.h".
8427         (struct i386_frame_cache): New field "base_p".
8428         (i386_init_frame_cache): Clear it.
8429         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8430         Avoid reading registers with functions that throw if the register
8431         is not necessary to compute the frame base.
8432         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8433         swallowing NOT_AVAILABLE_ERROR.
8434         (i386_frame_unwind_stop_reason): New.
8435         (i386_frame_this_id): Don't build a frame id if the frame base was
8436         unavailable.
8437         (i386_frame_prev_register): Handle unavailable SP.
8438         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8439         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8440         base_p if the frame base was computable.
8441         (i386_epilogue_frame_unwind_stop_reason): New.
8442         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8443         base was unavailable.
8444         (i386_epilogue_frame_unwind): Install
8445         i386_epilogue_frame_unwind_stop_reason.
8446         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8447         base_p if the frame base was computable.
8448         (i386_sigtramp_frame_unwind_stop_reason): New.
8449         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8450         base was unavailable.
8451         (i386_sigtramp_frame_unwind): Install
8452         i386_sigtramp_frame_unwind_stop_reason.
8453         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8454         type's size, not the register's.
8455         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8456
8457         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8458         default_frame_unwind_stop_reason.
8459         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8460         (alpha_heuristic_frame_unwind): Ditto.
8461         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8462         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8463         * avr-tdep.c (avr_frame_unwind): Ditto.
8464         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8465         Ditto.
8466         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8467         * frv-tdep.c (frv_frame_unwind): Ditto.
8468         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8469         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8470         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8471         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8472         (hppa_stub_frame_unwind): Ditto.
8473         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8474         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8475         (ia64_libunwind_frame_unwind)
8476         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8477         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8478         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8479         * m32c-tdep.c (m32c_unwind): Ditto.
8480         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8481         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8482         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8483         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8484         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8485         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8486         * mep-tdep.c (mep_frame_unwind): Ditto.
8487         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8488         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8489         (mips_stub_frame_unwind): Ditto.
8490         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8491         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8492         * mt-tdep.c (mt_frame_unwind): Ditto.
8493         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8494         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8495         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8496         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8497         (s390_sigtramp_frame_unwind): Ditto.
8498         * score-tdep.c (score_prologue_unwind): Ditto.
8499         * sh-tdep.c (sh_frame_unwind): Ditto.
8500         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8501         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8502         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8503         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8504         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8505         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8506         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8507         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8508         (sparc64obsd_trapframe_unwind): Ditto.
8509         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8510         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8511         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8512         * v850-tdep.c (v850_frame_unwind): Ditto.
8513         * vax-tdep.c (vax_frame_unwind): Ditto.
8514         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8515         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8516         * xtensa-tdep.c (xtensa_unwind): Ditto.
8517
8518 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8519
8520         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8521         there's always a frame.  Use get_frame_pc_if_available instead of
8522         get_frame_pc, and if there's no PC available, don't look up a
8523         symtab.
8524
8525 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8526
8527         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8528         unavailable PC.
8529
8530 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8531
8532         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8533         gracefully.
8534
8535 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8536
8537         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8538         * frame.c (frame_unwind_caller_pc_if_available): New.
8539         * stack.c (frame_info): Handle unavailable PC.
8540
8541 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8542
8543         * frame.c (frame_unwind_pc): Rename to ...
8544         (frame_unwind_pc_if_available): ... this.  New `pc' output
8545         parameter.  Change return type to int.  Gracefully handle
8546         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8547         happened, or 1 otherwise.
8548         (frame_unwind_pc): Reimplement on top of
8549         frame_unwind_pc_if_available.
8550         (get_frame_func): Rename to ...
8551         (get_frame_func_if_available): New `pc' output parameter.  Change
8552         return type to int.  Gracefully handle the PC not being available.
8553         (get_frame_func): Reimplement on top of
8554         get_frame_func_if_available.
8555         (select_frame): Handle the PC being unavailable.
8556         (get_prev_frame): Handle the PC being unavailable.
8557         (get_frame_pc_if_available): New.
8558         (get_frame_address_in_block_if_available): New.
8559         (find_frame_sal): Handle the frame PC not being available.
8560         * frame.h (get_frame_pc_if_available): Declare.
8561         (get_frame_address_in_block_if_available): Declare.
8562         (get_frame_func_if_available): Declare.
8563         * stack.c (print_frame_info): Handle the PC being unavailable.
8564         (find_frame_funname): Ditto.
8565         (print_frame): Handle the PC being unavailable.
8566         (get_frame_language): Ditto.
8567         * blockframe.c (get_frame_block): Ditto.
8568         * macroscope.c (default_macro_scope): Ditto.
8569         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8570
8571 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8572
8573         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8574         NOT_AVAILABLE_ERROR when evaluating the location expression.
8575
8576 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8577
8578         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8579         returning that the register piece is unavailable/optimized out.
8580         (write_pieced_value): Handle get_frame_register_bytes returning
8581         that the register piece is unavailable/optimized out when doing a
8582         read-modify write of a bitfield.
8583         * findvar.c (value_from_register): Handle get_frame_register_bytes
8584         returning that the register piece is unavailable/optimized out.
8585         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8586         and `unavailablep'.  Throw error on bad debug info.  Use
8587         frame_register instead of frame_register_read, to fill in the new
8588         arguments.
8589         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8590         and `unavailablep'.
8591         * valops.c: (value_assign): Adjust, and handle
8592         get_frame_register_bytes failing.
8593         * spu-tdep.c: Include exceptions.h.
8594         (spu_software_single_step): Adjust, and handle
8595         get_frame_register_bytes failing.
8596         (spu_get_longjmp_target): Ditto.
8597         * gdbarch.sh (register_to_value): Change to return int.  New
8598         parameters `optimizedp' and `unavailablep'.
8599         * gdbarch.h, gdbarch.c: Regenerate.
8600         * i386-tdep.c (i386_register_to_value): Adjust to new
8601         gdbarch_register_to_value interface.
8602         * i387-tdep.c (i387_register_to_value): Ditto.
8603         * i387-tdep.h (i387_register_to_value): Ditto.
8604         * alpha-tdep.c (alpha_register_to_value): Ditto.
8605         * ia64-tdep.c (ia64_register_to_value): Ditto.
8606         * m68k-tdep.c (m68k_register_to_value): Ditto.
8607         * mips-tdep.c (mips_register_to_value): Ditto.
8608         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8609
8610 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8611
8612         * findvar.c (value_of_register): Mark the value as unavailable, if
8613         the register is unavailable.
8614         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8615         (frame_register): New `unavailablep' parameter.
8616         (frame_register_read): Update comment.
8617         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8618         Set it if the register is unavailable.  If the register is
8619         unavailable, clear the output buffer.
8620         (frame_register): New `unavailablep' parameter.  Pass it down.
8621         (frame_unwind_register): Adjust.
8622         (put_frame_register): Adjust.
8623         (frame_register_read): Adjust.  Also return false if the register
8624         is not available.
8625         (frame_register_unwind_location): Adjust.
8626         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8627         is unavailable, mark the value accordingly.
8628         * stack.c (frame_info): Handle unavailable registers.
8629
8630 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8631
8632         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8633         simplify, using regcache_cooked_read.
8634
8635 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8636
8637         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8638         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8639         (regcache_raw_read_unsigned, regcache_raw_read_part)
8640         (regcache_cooked_read, regcache_cooked_read_signed)
8641         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8642         (regcache_cooked_read_ftype): Change return to enum
8643         register_status.
8644         * regcache.c: Include exceptions.h
8645         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8646         (do_cooked_read): Change return to enum register_status.  Always
8647         forward to regcache_cooked_read.
8648         (regcache_raw_read): Change return to enum register_status.  If
8649         the register is not REG_VALID, memset the buffer.  Return the
8650         register's status.
8651         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8652         return the register's status.
8653         (regcache_raw_read_unsigned): Ditto.
8654         (regcache_cooked_read): Change return to enum register_status.
8655         Assert that with read-only regcaches, the register's status must
8656         be known.  If the regcache is read-only, and the register is not
8657         REG_VALID, memset the buffer.  Return the register's status.
8658         (regcache_cooked_read_signed): Change return to enum
8659         register_status.  Handle non-REG_VALID registers and return the
8660         register's status.
8661         (regcache_cooked_read_unsigned): Change return to enum
8662         register_status.  Handle non-REG_VALID registers and return the
8663         register's status.
8664         (regcache_xfer_part, regcache_raw_read_part)
8665         (regcache_cooked_read_part): Change return to enum
8666         register_status.  Return the register's status.
8667         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8668         unavailable.
8669         (regcache_dump): Handle unavailable cooked registers.
8670         * frame.c (do_frame_register_read): Adjust interface to match
8671         regcache_cooked_read_ftype.
8672         * gdbarch.sh (pseudo_register_read): Change return to enum
8673         register_status.
8674         * gdbarch.h, gdbarch.c: Regenerate.
8675
8676         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8677         register_status.
8678         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8679         register_status.  If reading a raw register indicates the raw
8680         register is not valid, return the raw register's status,
8681         otherwise, return REG_VALID.
8682         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8683         register_status.  Handle non-REG_VALID raw registers and return
8684         the register's status.
8685         * arm-tdep.c (arm_neon_quad_read)
8686         (arm_pseudo_read): Change return to enum register_status.  Handle
8687         non-REG_VALID raw registers and return the register's status.
8688         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8689         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8690         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8691         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8692         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8693         register_status.
8694         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8695         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8696         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8697         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8698         (m32c_pseudo_register_read): Change return to enum
8699         register_status.  Adjust.
8700         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8701         enum register_status.  Return the register's status.
8702         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8703         register_status.  Return the register's status.
8704         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8705         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8706         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8707         * rs6000-tdep.c (move_ev_register_func): New typedef.
8708         (e500_move_ev_register): Use it.  Change return to enum
8709         register_status.  Return the register's status.
8710         (do_regcache_raw_read): New function.
8711         (do_regcache_raw_write): New function.
8712         (e500_pseudo_register_read): Change return to enum
8713         register_status.  Return the register's status.  Use
8714         do_regcache_raw_read.
8715         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8716         (dfp_pseudo_register_read): Change return to enum register_status.
8717         Return the register's status.
8718         (vsx_pseudo_register_read): Ditto.
8719         (efpr_pseudo_register_read): Ditto.
8720         (rs6000_pseudo_register_read): Ditto.
8721         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8722         register_status.  Return the register's status.
8723         * sh64-tdep.c (pseudo_register_read_portions): New function.
8724         (sh64_pseudo_register_read): Change return to enum
8725         register_status.  Use pseudo_register_read_portions.  Return the
8726         register's status.
8727         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8728         register_status.  Return the register's status.
8729         * sh-tdep.c (pseudo_register_read_portions): New function.
8730         (sh_pseudo_register_read): Change return to enum register_status.
8731         Use pseudo_register_read_portions.  Return the register's status.
8732         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8733         enum register_status.  Return the register's status.
8734         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8735         * spu-tdep.c (spu_pseudo_register_read_spu)
8736         (spu_pseudo_register_read): Ditto.
8737         * xtensa-tdep.c (xtensa_register_read_masked)
8738         (xtensa_pseudo_register_read): Ditto.
8739         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8740
8741 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8742
8743         * python/py-value.c (valpy_getitem): Fix formatting of error function
8744         call.
8745
8746 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8747
8748         ARI fixes: Add missing internationalization markups throughout
8749         C source files.
8750         * darwin-nat-info.c: Ditto.
8751         * record.c: Ditto.
8752         * remote.c: Ditto.
8753         * mi/mi-main.c: Ditto.
8754
8755 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8756
8757         ARI fixes: Add missing internationalization markups throughout
8758         yacc files.
8759         * c-exp.y: Ditto.
8760         * cp-name-parser.y: Ditto.
8761         * f-exp.y: Ditto.
8762         * m2-exp.y: Ditto.
8763         * objc-exp.y: Ditto.
8764         * p-exp.y: Ditto.
8765
8766 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8767
8768         ARI fixes: Messages should have no trailing new lines.
8769         * darwin-nat.c (mach_check_error): Remove trailing new line from
8770         warning function call message.
8771         * record.c (bfdcore_read): Idem for error call.
8772
8773 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8774
8775         * common/signals.c (target_signal_from_host): Add _ markup to error
8776         function call message.
8777         (target_signal_to_host): Add _ markup and remove trailing new line
8778         from warning call message.
8779         (target_signal_from_command): Add _ markup to error function call
8780         message.
8781
8782 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8783
8784         PR python/12149
8785
8786         * python/python.c (gdbpy_write): Accept a stream argument and
8787         operate to the appropriate stream.
8788         (gdbpy_flush): Likewise.
8789         (_initialize_python): Add stream constants.
8790         (finish_python_initialization): Add GdbOutputErrorFile class.
8791
8792 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8793
8794         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8795
8796 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8797
8798         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8799         to store_signed_integer.  Add debug message when relocating CALL
8800         instructions.  Fix formatting of debug message.
8801         * i386-tdep.c (i386_relocate_instruction): Ditto.
8802
8803 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8804
8805         * target.h (struct target_ops): Remove to_lookup_symbol field.
8806         (target_lookup_symbol): Delete macro.
8807         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8808         (update_current_target, setup_target_debug): Remove handling
8809         of to_lookup_symbol target_ops field.
8810         * ada-tasks.c (get_known_tasks_addr): Remove use of
8811         target_lookup_symbol.
8812         * coffread.c (coff_symtab_read): Likewise.
8813         * dbxread.c (read_dbx_symtab): Ditto.
8814
8815 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8816
8817         PR gdb/12116:
8818         * configure.ac: Add getthrds declaration check.
8819         * configure, config.in: Regenerate.
8820         * aix-thread.c (getthrds): Declare only if not already declared
8821         in procinfo.h.  More declaration out of get_signaled_thread to
8822         global scope.
8823
8824 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8825
8826         * python/py-symtab.c: Populate symtab_object_methods,
8827         sal_object_methods.
8828         (stpy_is_valid): New function.
8829         (salpy_is_valid): Ditto.
8830         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8831         (sympy_is_valid): New function.
8832         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8833         (objfpy_is_valid): New function.
8834         * python/py-inferior.c: Populate inferior_object_methods.
8835         (infpy_is_valid): New function.
8836         * python/py-infthread.c: Populate thread_object_methods.
8837         (thpy_is_valid): New function.
8838         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8839         block_iterator_object_methods.  Populate.
8840         (blpy_is_valid): New function.
8841         (blpy_iter_is_valid): Ditto.
8842
8843 2011-03-16  Keith Seitz  <keiths@redhat.com>
8844
8845         * linespec.c (find_methods): Canonicalize NAME before looking
8846         up the symbol.
8847         (name_end): New function.
8848         (keep_name_info): New function.
8849         (decode_line_1): Use keep_name_info.
8850         (decode_compound): Likewise.
8851         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8852         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8853
8854         PR c++/12273
8855         * linespec.c (locate_first_half): Keep overload information, too.
8856         (decode_compound): Use a string to represent break characters
8857         to escape the loop.
8858         If P points to a break character, do not increment it.
8859         For C++ and Java, keep overload information and relevant keywords.
8860         If we cannot find a symbol, search the minimal symbols.
8861
8862         PR c++/11734
8863         * linespec.c (decode_compound): Rename SAVED_ARG to
8864         THE_REAL_SAVED_ARG.
8865         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8866         single-quotes.
8867         Pass a valid block to lookup_symbol.
8868         (lookup_prefix_sym): Likewise.
8869         (find_method): Construct search name based on SYM_CLASS instead
8870         of SAVED_ARG.
8871         * psymtab.c (lookup_partial_symbol): Add language parameter.
8872         (lookup_symbol_aux_psymtabs): Likewise.
8873         Don't assume that the psymtab we found was the right one. Search
8874         for the desired symbol in the symtab to be certain.
8875         (psymtab_search_name): New function.
8876         (lookup_partial_symbol): Use psymtab_search_name.
8877         Add language parameter.
8878         (read_symtabs_for_function): Add language parameter and pass to
8879         lookup_partial_symbol.
8880         (find_symbol_file_from_partial): Likewise.
8881
8882 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8883
8884         PR gdb/12528
8885         * dwarf2read.c (noop_record_line): New function.
8886         (dwarf_decode_lines): Ignore line tables for GCd functions.
8887
8888 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8889
8890         Fix ARI warnings about new lines at the end of messages, which
8891         are unneeded as there is a new line added at the end of the message
8892         automatically.
8893         * darwin-nat.c (darwin_stop_inferior): Ditto.
8894         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8895         * dfp.c (decimal_to_number): Ditto.
8896         * exec.c (print_section_info): Ditto.
8897         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8898         * osdata.c (get_osdata): Ditto.
8899         * record.c (bfdcore_write): Ditto.
8900         * remote-mips.c (mips_readchar): Ditto.
8901         * remote.c (read_ptid): Ditto.
8902         * ser-mingw.c (ser_windows_raw): Ditto.
8903         * tracepoint.c (add_local_symbols): Ditto.
8904         * windows-nat.c (fake_create_process): Ditto.
8905
8906 2011-03-16  Tom Tromey  <tromey@redhat.com>
8907
8908         * tracepoint.c (stop_tracing): Don't declare.
8909         * event-top.c (after_char_processing_hook): Add `(void)'.
8910
8911 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
8912
8913         * NEWS: Add Parameter sub-classing description.
8914
8915 2011-03-16  Kai Tietz  <ktietz@redhat.com>
8916
8917         * MAINTAINERS: Update my e-mail address.
8918
8919 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
8920
8921         * MAINTAINERS: Add myself for write after approval privileges.
8922
8923 2011-03-15  Michael Snyder  <msnyder@vmware.com>
8924
8925         * frame.c (find_frame_sal): Assert sym is not null.
8926
8927         * dbxread.c (process_one_symbol): Assert 'name' is not null.
8928
8929         * objc-lang.c (selectors_info): Check strchr for null result.
8930
8931         * stabsread.c (define_symbol): Guard against bad stabstring input.
8932
8933 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8934
8935         Remove trailing spaces and tabulations from pascal language
8936         support sources.
8937         p-exp.y: Ditto.
8938         p-lang.c: Ditto.
8939         p-lang.h: Ditto.
8940         p-valprint.c: Ditto.
8941
8942 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8943
8944         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8945         than LOW.  Comment it.
8946         (read_partial_die): Call complaint for inappropriate zero LOWPC or
8947         HIGHPC not strictly higher than LOWPC.
8948
8949 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8950
8951         Fix formatting of function declarations returning a pointer in
8952         previous commit.
8953         * varobj.c (varobj_add_child): Ditto.
8954         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8955         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8956
8957 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8958
8959         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8960         for the "generic" vector ABI used with GCC 4.3 and later.
8961         (ppc64_sysv_abi_return_value): Likewise.
8962
8963 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8964
8965         * infcall.c (call_function_by_hand): Function return value is
8966         always a non_lval, even when using struct_return.
8967
8968 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
8969
8970         * printcmd.c (ALL_DISPLAYS_SAFE): New.
8971         (map_display_numbers): New.
8972         (do_delete_display): New.
8973         (undisplay_command): Use map_display_numbers.
8974         (do_enable_disable_display): New.
8975         (enable_disable_display_command): New function.
8976         (enable_display): Delete.
8977         (enable_display_command): New.
8978         (disable_display_command): Reimplement.
8979         (_initialize_printcmd): Adjust "enable display" command to use
8980         `enable_display_command' as callback.
8981
8982 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8983
8984         * NEWS: Add Python breakpoint 'stop' operation.
8985
8986 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8987
8988         * NEWS: Delete duplicate entry. Fix typo.
8989
8990 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8991
8992         Fix ARI warning about function names in first column.
8993         Put prototype declaration on same line as return type.
8994         * objc-exp.y: Ditto.
8995         * p-exp.y: Ditto.
8996         * python/py-stopevent.h: Ditto.
8997         For long function names, split parameters to
8998         allow function name on same line as return type.
8999         * solib-pa64.c: Ditto.
9000         * varobj.c: Ditto.
9001         * varobj.h: Ditto.
9002         For long function declaration, use single line.
9003         * hppa-tdep.h: Ditto.
9004         * inferior.h: Ditto.
9005
9006 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9007
9008         * python/python.h: Declare gdbpy_should_stop and
9009         gdbpy_breakpoint_has_py_cond.
9010         * python/python.c: Add python.h to includes.  Remove python.h from
9011         HAVE_PYTHON definition
9012         (gdbpy_should_stop): New dummy function.
9013         (gdbpy_breakpoint_has_py_cond): New dummy function.
9014         * python/py-breakpoint.c (bppy_init): Rewrite to allow
9015         sub-classing capabilities.
9016         (gdbpy_should_stop): New function.
9017         (gdbpy_breakpoint_has_py_cond): New function.
9018         (local_setattro): New function.
9019         * breakpoint.c (condition_command): Add check for Python 'stop'
9020         operation.
9021         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9022         operation function as part of stop/continue tests.
9023
9024 2011-03-14  Tom Tromey  <tromey@redhat.com>
9025
9026         PR gdb/12576:
9027         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9028         (needs_frame_dwarf_call): Likewise.
9029
9030 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9031
9032         Fix ARI warning about functions without parameters that do not
9033         use (void).
9034         * breakpoint.c (all_tracepoints): Replace () by (void).
9035         * f-exp.y (match_string_literal): Ditto.
9036         (yylex): Ditto.
9037         * m2-exp.y (yylex): Ditto.
9038         * mep-tdep.c (current_me_module): Ditto.
9039         (current_options): Ditto.
9040         (current_cop_data_bus_width): Ditto.
9041         (current_cr_names): Ditto.
9042         (current_cr_is_float): Ditto.
9043         (current_ccr_names): Ditto.
9044         * objc-exp.y (yylex): Ditto.
9045         * p-exp.y (yylex): Ditto.
9046         * remote.c (send_interrupt_sequence): Ditto.
9047         * tracepoint.c (current_trace_status): Ditto.
9048         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9049         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9050
9051 2011-03-11  Michael Snyder  <msnyder@vmware.com>
9052
9053         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9054         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9055         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9056         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9057         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9058
9059         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9060         (delete_async_event_handler): Ditto.
9061
9062         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9063
9064         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9065
9066         * top.c (set_verbose): Assert showcmd was found.
9067
9068 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
9069
9070         * xtensa-tdep.c (warning_once): Correct style issues.
9071
9072 2011-03-11  Yao Qi  <yao@codesourcery.com>
9073
9074         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9075
9076 2011-03-11  Andreas Schwab  <schwab@redhat.com>
9077
9078         * common/aclocal.m4: Remove.
9079
9080 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9081
9082         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9083         (xtensa_write_register, xtensa_read_register): Likewise.
9084         (xtensa_hextochar): Removed.
9085         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9086
9087 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9088
9089         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9090         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
9091         (xtensa_alloc_frame_cache): Add initialization for new fields.
9092         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9093         (warning_once): New function.
9094         (xtensa_insn_kind): New item c0opc_and.
9095         (call0_classify_opcode): Add the case for AND instruction.
9096         (call0_track_op): Change arguments.  New local variable litbase.
9097         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
9098         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9099         in the prologue.
9100         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9101         (call0_analyze_prologue): Update the comments.  Change arguments.
9102         Add the variety of updates to handle extended prologues, which now can
9103         conduct dynamic stack adjustments.
9104         (call0_frame_cache): Likewise.
9105         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9106         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9107
9108 2011-03-10  Michael Snyder  <msnyder@vmware.com>
9109
9110         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9111         (cmd_qtframe): Ditto.
9112         (cmd_qtbuffer): Ditto.
9113         (cmd_bigqtbuffer): Ditto.
9114
9115 2011-03-10  Tom Tromey  <tromey@redhat.com>
9116
9117         * tracepoint.c (trace_actions_command): Update.
9118         * thread.c (thread_apply_command): Update.
9119         * reverse.c (delete_bookmark_command): Update.
9120         (bookmarks_info): Update.
9121         * printcmd.c (undisplay_command): Update.
9122         * memattr.c (mem_enable_command): Update.
9123         (mem_disable_command): Update.
9124         (mem_delete_command): Update.
9125         * inferior.c (detach_inferior_command): Update.
9126         (kill_inferior_command): Update.
9127         (remove_inferior_command): Update.
9128         * cli/cli-utils.h (struct get_number_or_range_state): New.
9129         (init_number_or_range): Declare.
9130         (get_number_or_range): Update.
9131         * cli/cli-utils.c (init_number_or_range): New function.
9132         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
9133         static variables.
9134         (number_is_in_list): Update.
9135         * breakpoint.h (get_tracepoint_by_number): Update.
9136         * breakpoint.c (map_breakpoint_numbers): Update for change to
9137         get_number_or_range.
9138         (find_location_by_number): Use get_number, not
9139         get_number_or_range.
9140         (trace_pass_set_count): New function.
9141         (trace_pass_command): Update for change to get_number_or_range.
9142         Rework loop logic.
9143         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9144         'state' parameter.
9145
9146 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
9147
9148         * python/py-param.c (add_setshow_generic): Add set/show callback
9149         parameters.  Register Python object context.
9150         (get_show_value): New function.
9151         (get_set_value): New function.
9152         (call_doc_function): New function.
9153         (get_doc_string): Move behind get_show_value/get_set_value.
9154
9155 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
9156
9157         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9158
9159 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
9160
9161         * xtensa-tdep.c (xtensa_read_register): Add comment.
9162         (xtensa_write_register): Likewise.
9163         (xtensa_hextochar): Add comment and update to match coding conventions.
9164         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9165         (execute_l32e, execute_s32e, execute_code): Update comments.
9166         (xtensa_exception_handler_t): Update to match coding conventions.
9167         (xtensa_insn_kind): Likewise.
9168
9169 2011-03-09  Michael Snyder  <msnyder@vmware.com>
9170
9171         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9172
9173 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9174
9175         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9176
9177 2011-03-09  Tom Tromey  <tromey@redhat.com>
9178
9179         * thread.c (restore_selected_frame): Handle frame_level == -1.
9180         (make_cleanup_restore_current_thread): Use
9181         get_selected_frame_if_set.
9182         * frame.h (get_selected_frame_if_set): Declare.
9183         * frame.c (get_selected_frame_if_set): New function.
9184
9185 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9186
9187         * cli/cli-cmds.c (shell_escape): Use lbasename.
9188         * coffread.c (coff_start_symtab): Constify parameter.
9189         (complete_symtab): Constify `name' parameter.
9190         (coff_symtab_read): Constify `filestring' local.
9191         (coff_getfilename): Constify return and `result' local.
9192         Use lbasename.
9193         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9194         * linux-fork.c (info_checkpoints_command): Use lbasename.
9195         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9196         * minsyms.c (lookup_minimal_symbol): Use lbasename.
9197         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9198         * procfs.c (procfs_make_note_section): Use lbasename.
9199         * tui/tui-io.c (printable_part): Constity return and parameter.
9200         Use lbasename.
9201         (print_filename): Constify parameters, and local `s'.
9202         (tui_rl_display_match_list): Constify local `temp'.
9203
9204 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9205
9206         Revert:
9207         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9208         Fix DWARF-3+ DW_AT_accessibility default assumption.
9209         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9210         cu->header.version >= 3.
9211
9212 2011-03-09  Yao Qi  <yao@codesourcery.com>
9213
9214         * common/Makefile.in: Remove.
9215         * common/configure: Remove.
9216         * common/configure.ac: Remove.
9217
9218 2011-03-09  Yao Qi  <yao@codesourcery.com>
9219
9220         Revert:
9221         2011-02-11  Yao Qi  <yao@codesourcery.com>
9222
9223         * common/Makefile.in: Add copyright header.
9224
9225         2011-02-11  Yao Qi  <yao@codesourcery.com>
9226
9227         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9228         libcommon.a.
9229         * configure.ac: Add common to sub dir.
9230         * configure: Regenerate.
9231
9232 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9233
9234         * xtensa-tdep.c (call0_ret): New function.
9235         (xtensa_skip_prologue): Speed up analysis.
9236
9237 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9238
9239         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9240         while executing MI command -data-list-changed-registers.
9241
9242 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9243
9244         * xtensa-tdep.c (xtensa_read_register): New function.
9245         (xtensa_write_register): New function.
9246         (xtensa_find_register_by_name): New function.
9247         (xtensa_windowed_frame_cache): Update comments in type description.
9248         (xtensa_frame_cache): Likewise.
9249         (xtensa_window_interrupt_insn): New function.
9250         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9251         (xtensa_insn_kind): Add new instructions.
9252         (rwx_special_register): New function.
9253         (call0_classify_opcode): Add new instructions to the analysis.
9254         (a0_saved, a7_saved, a11_saved): New variables.
9255         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9256         (execute_l32e): New function.
9257         (execute_s32e): New function.
9258         (xtensa_exception_handler_t): New type.
9259         (execute_code): New function.
9260         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9261         analysis for Xtensa Window Exception handlers.
9262
9263 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9264
9265         * xtensa-tdep.c (TX_PS): New.
9266         (windowing_enabled): Update to count for Call0 ABI.
9267         (xtensa_hextochar): New.
9268         (xtensa_init_reggroups): Make algorithm generic.
9269         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9270
9271 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9272
9273         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9274
9275 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9276
9277         * i386-tdep.c (i386_follow_jump): Check return value of
9278         target_read_memory.
9279         (i386_analyze_struct_return): Ditto.
9280         (i386_skip_probe): Ditto.
9281         (i386_match_insn): Ditto.
9282         (i386_skip_noop): Ditto.
9283         (i386_analyze_frame_setup): Ditto.
9284         (i386_analyze_register_saves): Ditto.
9285         (i386_skip_prologue): Ditto.
9286         (i386_skip_main_prologue): Ditto.
9287
9288         * target.c (read_whatever_is_readable): Fix memory leak.
9289
9290         * i386-tdep.c (i386_process_record): Document fall through.
9291
9292 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9293
9294         Fix DWARF-3+ DW_AT_accessibility default assumption.
9295         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9296         cu->header.version >= 3.
9297
9298 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9299
9300         * remote.c (remote_check_symbols): Skip if the target has no
9301         execution.
9302
9303 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9304
9305         * target.c (read_whatever_is_readable): Reformat comment,
9306         with a minor typo fix. Minor reformatting of the code.
9307
9308 2011-03-08  Yao Qi  <yao@codesourcery.com>
9309
9310         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9311         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9312         Use cached result instead of calling displaced_in_arm_mode again.
9313         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9314         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9315         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9316         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9317         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9318         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9319         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9320         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9321         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9322         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9323         (arm_catch_kernel_helper_return): Likewise.
9324         * gdb/arm-tdep.h : Update function declarations.
9325
9326 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9327
9328         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9329
9330         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9331
9332         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9333
9334         * elfread.c (elf_symtab_read): Stop memory leak.
9335
9336         * main.c (captured_main): Fix memory leak.
9337
9338 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9339
9340         * ada-lang.c (compare_names): Call is_name_suffix with string1
9341         instead of string2.
9342
9343 2011-03-07  Tom Tromey  <tromey@redhat.com>
9344
9345         * xcoffread.c (xcoff_sym_fns): Update.
9346         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9347         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9348         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9349         (symbol_file_add_with_addrs_or_offsets): Likewise.
9350         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9351         * somread.c (som_sym_fns): Update.
9352         * psymtab.h (require_partial_symbols): Declare.
9353         * psymtab.c (require_partial_symbols): New function.
9354         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9355         (ALL_OBJFILE_PSYMTABS): Undef.
9356         (ALL_PSYMTABS): Move from psympriv.h.
9357         (lookup_partial_symtab, find_pc_sect_psymtab)
9358         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9359         (find_last_source_symtab_from_partial)
9360         (forget_cached_source_info_partial)
9361         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9362         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9363         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9364         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9365         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9366         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9367         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9368         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9369         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9370         psymtabs.
9371         * mipsread.c (ecoff_sym_fns): Update.
9372         * machoread.c (macho_sym_fns): Update.
9373         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9374         (read_psyms): New function.
9375         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9376         (elf_sym_fns_lazy_psyms): New global.
9377         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9378         dwarf2_build_psymtabs.
9379         * dbxread.c (aout_sym_fns): Update.
9380         * coffread.c (coff_sym_fns): Update.
9381
9382 2011-03-07  Tom Tromey  <tromey@redhat.com>
9383
9384         * infrun.c (print_exited_reason): Include inferior id and pid in
9385         message.
9386
9387 2011-03-07  Tom Tromey  <tromey@redhat.com>
9388
9389         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9390         parameter.
9391         (target_has_execution_1): Update.
9392         (target_has_execution_current): Declare.
9393         (target_has_execution): Call target_has_execution_current.
9394         (default_child_has_execution): Update.
9395         * target.c (default_child_has_execution): Add 'the_ptid'
9396         parameter.
9397         (target_has_execution_1): Likewise.
9398         (target_has_execution_current): New function.
9399         (add_target): Update.
9400         (init_dummy_target): Update.
9401         * remote-m32r-sdi.c (m32r_has_execution): New function.
9402         (init_m32r_ops): Use it.
9403         * record.c (record_core_has_execution): Now static.  Add
9404         'the_ptid' parameter.
9405         * inferior.c (have_live_inferiors): Don't save current thread.
9406         Use target_has_execution_1.
9407
9408 2011-03-07  Yao Qi  <yao@codesourcery.com>
9409
9410         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9411
9412 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9413
9414         * elfread.c (elf_symtab_read): Minor reformatting.
9415
9416 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9417
9418         * objc-lang.c (selectors_info): Minor reformatting.
9419
9420 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9421
9422         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9423
9424 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9425             Michael Snyder  <msnyder@vmware.com>
9426
9427         * ada-valprint.c (ada_val_print_array): Move the declaration of
9428         "byte_order" and "elttype" inside the block where these variables
9429         are actually used.  Remove some special handling for the case
9430         where "elttype" and "eltlen" are null.  Replace by a comment
9431         and a couple of assertion checks.
9432
9433 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9434
9435         * source.c (add_path): Replace semicolon at end of block.
9436         * dwarf2expr.c (execute_stack_op): Ditto.
9437
9438 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9439
9440         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9441         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9442         (bfin-*-*): Likewise.
9443
9444 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9445
9446         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9447         * mdebugread.c (parse_symbol): Ditto.
9448         * parse.c (parse_exp_in_context): Ditto.
9449         * source.c (add_path): Ditto.
9450         * utils.c (gnu_debuglink_crc32): Ditto.
9451         * varobj.c (variable_language): Ditto.
9452
9453         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9454
9455 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9456
9457         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9458
9459         * symfile.c (simple_overlay_update): Check for null return value
9460         from lookup_minimal_symbol.
9461
9462         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9463
9464 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9465
9466         * eval.c (parse_and_eval_address_1): Remove function.
9467         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9468         instead of parse_and_eval_address_1.
9469         * value.h (parse_and_eval_address_1): Remove prototype.
9470
9471 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9472
9473         * remote.c (putpkt_binary): Document that case stmt falls through.
9474
9475 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9476
9477         * breakpointc (print_it_typical): Move NULL check from here...
9478         (print_bp_stop_message): ... to here.
9479
9480 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9481
9482         * breakpoint.c (enable_command): Use break instead of continue,
9483         and fill in a missing break.
9484         (disable_command): Ditto.
9485
9486 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9487
9488         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9489         (terminal_save_ours): Remove misleading comment.
9490         (inflow_inferior_data_cleanup): Free ttystate.
9491         (inflow_inferior_exit): Likewise.
9492         (copy_terminal_info): Copy ttystate.
9493
9494         * serial.c (serial_copy_tty_state): New function.
9495         * serial.h (serial_copy_tty_state): Add prototype.
9496         (struct serial_ops): Add copy_tty_state callback.
9497         * ser-base.c (ser_base_copy_tty_state): New function.
9498         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9499         * ser-go32.c (dos_copy_tty_state): New function.
9500         (dos_ops): Install copy_tty_state callback.
9501         * ser-mingw.c (_initialize_ser_windows): Likewise.
9502         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9503         * ser-unix.c (hardwire_copy_tty_state): New function.
9504         (_initialize_ser_hardwire): Install it.
9505
9506 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9507
9508         * breakpoint.c (create_breakpoint): Add missing break statement.
9509
9510         Reverting this patch:
9511         * infcall.c (call_function_by_hand): Add break statements for lint.
9512
9513         Reverting this patch:
9514         * cli/cli-script.c (script_from_file): Add break for lint.
9515
9516 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9517
9518         * solib.c (reload_shared_libraries_1): Close memory leak.
9519
9520 2011-03-03  Tom Tromey  <tromey@redhat.com>
9521
9522         PR gdb/12538:
9523         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9524         DW_STRING is NULL.
9525
9526 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9527
9528         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9529         fields of struct 'st' to zero.
9530
9531         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9532         sal.pspace before calling set_current_source_symtab_and_line.
9533
9534 2011-03-03  Yao Qi  <yao@codesourcery.com>
9535
9536         * Makefile.in (configure-common): Remove.  Let Makefile
9537         in dir common to rebuild itself.
9538         (common/Makefile): Likewise.
9539
9540 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9541
9542         * utils.c (parse_escape): Add i18n markup in error message.
9543
9544 2011-03-03  Yao Qi  <yao@codesourcery.com>
9545
9546         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9547         ARM_PC_REGNUM.
9548         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9549         (displaced_write_reg, displaced_read_reg): Likewise.
9550         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9551         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9552         (cleanup_branch): Replace magic number 14 and 15 with
9553         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9554
9555 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9556
9557         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9558
9559         * cli/cli-script.c (script_from_file): Add break for lint.
9560
9561         * mdebugread.c (parse_partial_symbols): Fix indent.
9562
9563         * target-descriptions.c (tdesc_gdb_type): No need to call
9564         xstrdup, callee saves a copy.
9565
9566         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9567
9568         * infcall.c (call_function_by_hand): Add break statements for lint.
9569
9570         * utils.c (parse_escape): Escape the escape char.
9571
9572         * python/py-inferior.c (build_inferior_list): Error out if
9573         PyList_Append fails.
9574         (gdbpy_inferiors): Error out if build_inferior_list fails.
9575
9576         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9577         a function call.
9578
9579         * record.c (record_restore): Move printf to before error return.
9580
9581 2011-03-02  Yao Qi  <yao@codesourcery.com>
9582
9583         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9584         is_thumb and insn_size.
9585         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9586         on both ARM and Thumb mode.
9587         (arm_process_displaced_insn): Set is_thumb and insn_size.
9588         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9589         (arm_displaced_step_fixup): Likewise.
9590
9591 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9592
9593         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9594
9595         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9596
9597         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9598
9599         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9600
9601         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9602         with xmalloc.
9603
9604         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9605         which shadows function parameter.
9606
9607         * tracepoint.c (create_tsv_from_upload): Superfluous call
9608         to xstrdup.  Callee already calls xstrdup.
9609
9610         * linespec.c (decode_line_1): Remove unnecessary null check.
9611
9612         * tracepoint.c (scope_info): Fix mem leak, remove underused
9613         variable.
9614
9615         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9616         superfluous null check.
9617
9618         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9619         (value_of_builtin_frame_fp_reg): Ditto.
9620
9621         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9622
9623         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9624         be null.
9625
9626         * linespec.c (decode_line_1): Check for null before dereference.
9627
9628         * reverse.c (record_restore): Move null-check to before pointer
9629         dereference.
9630
9631         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9632
9633         * objc-lang.c (selectors_info): Add explanitory comment.
9634         (classes_info): Ditto.
9635
9636 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9637
9638         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9639         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9640         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9641         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9642         (arm_linux_init_abi): Install it.
9643         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9644         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9645
9646 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9647
9648         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9649         a little bigger, to avoid possibility of an overflow.
9650
9651         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9652         buffers a little bigger, to avoid possibility of an overflow.
9653
9654         * coffread.c (coff_getfilename): Add check to avoid overflow.
9655
9656         * objc-lang.c (selectors_info): Add a small safety margin to
9657         avoid overflow.
9658         (classes_info): Error out on too long REGEXP.
9659
9660         * infrun.c (handle_inferior_event): Remove unused function call.
9661
9662         * fork-child.c (fork_inferior): Remove ifdef'd code and
9663         unused variable.
9664
9665         * linux-thread-db.c (attach_thread): Discard unused value.
9666
9667         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9668
9669         * remote.c (remote_get_noisy_reply): Discard unused value.
9670         (remote_vcont_resume): Ditto.
9671         (remote_stop_ns): Ditto.
9672
9673         * linespec.c (decode_objc): Delete unused variable.
9674
9675         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9676
9677         * dwarf2read.c (add_partial_symbol): Discard unused values.
9678         (read_base_type): Delete unused variable.
9679
9680         * dbxread.c (read_dbx_symtab): Discard unused value.
9681
9682         * eval.c (evaluate_subexp_standard): Delete unused variable,
9683         and discard unused values.
9684
9685         * infcmd.c (_initialize_infcmd): Discard unused values.
9686
9687         * stabsread.c (rs6000_builtin_type): Missing break statement.
9688
9689         * dbxread.c (process_one_symbol): Discard unused value.
9690
9691         * coffread.c (coff_end_symtab): Delete unused variable.
9692
9693         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9694         (dwarf2_add_typedef): Delete unused variable.
9695         (read_namespace): Ditto.
9696         (dwarf_decode_macros): Ditto.
9697
9698         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9699
9700         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9701
9702         * p-valprint.c (pascal_val_print): Discard unused value.
9703
9704         * utils.c (nquery): Call va_end before return;
9705         (yquery): Ditto.
9706         (query): Ditto.
9707
9708         * proc-service.c (ps_plog): Call va_end before return.
9709
9710 2011-02-28  Tom Tromey  <tromey@redhat.com>
9711
9712         * python/python.c (gdbpy_value_cst): New global.
9713         (_initialize_python): Initialize it.
9714         * python/python-internal.h (gdbpy_value_cst): Declare.
9715         * python/py-value.c (convert_value_from_python): Use
9716         gdbpy_value_cst.
9717
9718 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9719
9720         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9721
9722         * breakpoint.c (catch_syscall_completer): Free malloced list.
9723
9724         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9725
9726         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9727         (lval_func_check_synthetic_pointer): Ditto.
9728         (lval_func_free_closure): Fix use-after-free.
9729
9730 2011-02-28  Tom Tromey  <tromey@redhat.com>
9731
9732         * psymtab.c (expand_partial_symbol_tables): Use
9733         ALL_OBJFILE_PSYMTABS.
9734
9735 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9736
9737         * objc-lang.c (selectors_info): Error on too long REGEXP.
9738
9739 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9740
9741         * python/py-param.c (set_parameter_value): Add missing
9742         break statement.
9743
9744         * linux-record.c (record_linux_system_call): Add missing
9745         break statement.
9746
9747 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9748
9749         * breakpoint.c (print_one_breakpoint_location): Remove unused
9750         argument PRINT_ADDRESS_BITS.  Update callers.
9751         (print_one_breakpoint): Likewise.
9752
9753 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9754
9755         * breakpoint.c (wrap_indent_at_field): New function.
9756         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9757         Allocate ui_stream locally instead of using STB argument.
9758         (print_one_breakpoint_location): Update call.
9759         * ui-out.c (ui_out_query_field): New function.
9760         * ui-out.h (ui_out_query_field): Add prototype.
9761
9762 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9763
9764         From Michael Snyder  <msnyder@vmware.com>
9765         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9766
9767 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9768
9769         * objc-lang.c (selectors_info): Prevent string overrun.
9770
9771         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9772         error in strncpy.
9773
9774         * symtab.c (rbreak_command): Move variable 'file_name' to
9775         outer scope.
9776
9777         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9778         param with a local variable of the same name.
9779
9780 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9781
9782         * value.c (value_from_history_ref): New function.
9783         * value.h (value_from_history_ref): Export.
9784         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9785         to parse value history references.
9786         * cli/cli-utils.h (get_number_trailer): Update comment.
9787
9788 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9789
9790         * inferior.c (detach_inferior_command): Use get_number_or_range.
9791         (kill_inferior_command): Ditto.
9792         (remove_inferior_command): Ditto.
9793         (initialize_inferiors): Make command names plural.
9794         Update help strings.
9795
9796 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9797
9798         * darwin-nat-info.c: Fix comment typo.
9799         * dwarf2expr.h: Ditto.
9800         * fbsd-nat.c: Ditto.
9801         * fbsd-nat.h: Ditto.
9802         * frame-unwind.h: Ditto.
9803         * frame.h: Ditto.
9804         * hppa-hpux-tdep.c: Ditto.
9805         * i386-linux-nat.c: Ditto.
9806         * linux-nat.c: Ditto.
9807         * nbsd-nat.c: Ditto.
9808         * nbsd-nat.h: Ditto.
9809         * ppc-linux-tdep.c: Ditto.
9810         * serial.c: Ditto.
9811         * ui-file.h: Ditto.
9812         * tui/tui-winsource.c: Ditto.
9813
9814 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9815
9816         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9817
9818         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9819
9820         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9821         with a local variable of the same name.
9822
9823         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9824         param with a local variable of the same name.
9825         (i387_supply_xsave): Ditto.
9826
9827         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9828         that it does not shadow a function parameter.
9829
9830         * i386-nat.c (i386_length_and_rw_bits): Document that case
9831         statement is meant to fall through.
9832
9833         * expprint.c (dump_subexp_body_standard): Document that case
9834         statement is meant to fall through.
9835
9836         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9837         dead if statement.  Condition can't be false.
9838
9839 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9840
9841         * arm-tdep.c: Fix typos in comments.
9842         * bsd-uthread.c: Ditto.
9843         * completer.c: Ditto.
9844         * corelow.c: Ditto.
9845         * cp-namespace.c: Ditto.
9846         * cp-support.c: Ditto.
9847         * cris-tdep.c: Ditto.
9848         * dbxread.c: Ditto.
9849         * dwarf2read.c: Ditto.
9850         * frame.h: Ditto.
9851         * gdbtypes.h: Ditto.
9852         * inferior.h: Ditto.
9853         * mdebugread.c: Ditto.
9854         * mips-tdep.c: Ditto.
9855         * ppc-linux-nat.c: Ditto.
9856         * ppc-linux-tdep.c: Ditto.
9857         * printcmd.c: Ditto.
9858         * sol-thread.c: Ditto.
9859         * solib-frv.c: Ditto.
9860         * solist.h: Ditto.
9861         * sparc64-tdep.c: Ditto.
9862         * spu-tdep.c: Ditto.
9863         * stabsread.c: Ditto.
9864         * symfile.c: Ditto.
9865         * valops.c: Ditto.
9866         * varobj.c: Ditto.
9867         * vax-nat.c: Ditto.
9868         * python/py-block.c: Ditto.
9869         * python/py-symbol.c: Ditto.
9870         * python/py-symtab.c: Ditto.
9871         * python/py-value.c: Ditto.
9872         * tui/tui-win.c: Ditto.
9873
9874 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9875
9876         * inferior.c (print_inferior): Accept a string instead of an int
9877         for requested_inferiors, and use get_number_or_range to parse it.
9878         (info_inferiors_command): Pass args string to print_inferior.
9879         (initialize_inferiors): Change help string for info inferiors.
9880         * inferior.h (print_inferior): Export prototype change.
9881
9882 2011-02-25  Tom Tromey  <tromey@redhat.com>
9883
9884         * common/ax.def (invalid2): Set to 0x31.
9885
9886 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9887
9888         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9889         L and plongest.
9890         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9891         use L and plongest.
9892         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9893
9894 2011-02-24  Michael Snyder  <msnyder@vmware.com>
9895
9896         * Makefile.in (clean): Make clean should remove generated files
9897         observer.h and observer.inc.
9898
9899 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
9900
9901         Revert the following patch (not approved yet):
9902         2011-02-21  Hui Zhu  <teawater@gmail.com>
9903         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9904         * ax-gdb.c (gen_printf_expr_callback): New function.
9905         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9906         * ax-general.c (ax_memcpy): New function.
9907         (ax_print): Handle "printf".
9908         (ax_reqs): Ditto.
9909         * ax.h (ax_memcpy): Forward declare.
9910         * common/ax.def (invalid2): Removed.
9911         (printf): New entry.
9912         * printcmd.c (printcmd.h): New include.
9913         (string_printf): New function.
9914         (ui_printf): Removed.
9915         (printf_command): Remove static.  Call string_printf.
9916         (eval_command): Call string_printf.
9917         * printcmd.h: New file.
9918         * tracepoint.c (validate_actionline,
9919         encode_actions_1): handle printf_command.
9920
9921 2011-02-23  Tom Tromey  <tromey@redhat.com>
9922
9923         * ax-general.c (ax_pick): Add missing newline.
9924
9925 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9926
9927         * breakpoint.c (breakpoint_1): Change first argument from an int
9928         to a char pointer, so that the function now accepts a list of
9929         breakpoints rather than just one.  Use new function
9930         'number_is_in_list' to implement.
9931         (breakpoints_info): Pass char * instead of int to breakpoint_1.
9932         (watchpoints_info): Ditto.
9933         (tracepoints_info): Ditto.
9934         (maintenance_info_breakpoints): Ditto.
9935         (_initialize_breakpoint): Update help strings to reflect the fact
9936         that these functions can now take more than one argument.
9937         * cli/cli-utils.c (number_is_in_list): New function.
9938         * cli/cli-utils.h (number_is_in_list): Export.
9939
9940 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9941
9942         * memattr.c (mem_enable_command): Use get_number_or_range.
9943         (mem_disable_command): Ditto.
9944         (mem_delete_command): Ditto.
9945         (_initialize_mem): Tweak usage message to reflect multiple
9946         arguments.
9947
9948 2011-02-22  Doug Evans  <dje@google.com>
9949
9950         Add gdb.lookup_global_symbol python function.
9951         * NEWS: Add entry.
9952         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9953         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9954         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9955
9956 2011-02-22  Tom Tromey  <tromey@redhat.com>
9957
9958         * language.c (language_class_name_from_physname): Rename
9959         'curr_language' argument to 'lang'; use in body.
9960
9961 2011-02-22  Michael Snyder  <msnyder@vmware.com>
9962
9963         * cli/cli-utils.c (number_is_in_list): Check for zero return.
9964
9965 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
9966
9967         * frame-unwind.h: Fix comment to mention the this frame, not the
9968         next.
9969
9970 2011-02-22  Tom Tromey  <tromey@redhat.com>
9971
9972         * symfile.c (auto_solib_limit): Remove.
9973         * symfile.h (auto_solib_limit): Remove.
9974
9975 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
9976
9977         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
9978
9979 2011-02-21  Michael Snyder  <msnyder@vmware.com>
9980
9981         * gdbthread.h (print_thread_info): Change prototype.
9982         * thread.c (print_thread_info): Accept char* instead of int for
9983         requested_threads argument.  Use new function number_is_in_list
9984         to determine which threads to list.
9985         (info_threads_command): Pass char* to print_thread_info.
9986         * cli/cli-utils.c (number_is_in_list): New function.
9987         * cli/cli-utils.h (number_is_in_list): Export.
9988         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9989         print_thread_info.
9990         (print_one_inferior): Ditto.
9991         (mi_cmd_list_thread_groups): Ditto.
9992
9993 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9994
9995         * common/Makefile.in (CFLAGS): New.
9996         (COMPILE): Add $(CFLAGS).
9997
9998 2011-02-21  Tom Tromey  <tromey@redhat.com>
9999
10000         * breakpoint.c (catch_syscall_command_1): Fix typo.
10001
10002 2011-02-21  Tom Tromey  <tromey@redhat.com>
10003
10004         * reverse.c: Include cli-utils.h.
10005         * printcmd.c: Include cli-utils.h.
10006         (string_printf): Use skip_spaces.
10007         * cli/cli-utils.h: New file.
10008         * cli/cli-utils.c: New file.
10009         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10010         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10011         * breakpoint.h (get_number, get_number_or_range): Move to
10012         cli-utils.h.
10013         * breakpoint.c: Include cli-utils.h.
10014         (get_number_trailer, get_number, get_number_or_range)
10015         (ep_skip_leading_whitespace): Move to cli-utils.c.
10016         (create_breakpoint_sal, find_condition_and_thread)
10017         (decode_static_tracepoint_spec, watch_command_1)
10018         (watch_maybe_just_location, ep_parse_optional_if_clause)
10019         (catch_fork_command_1, catch_exec_command_1)
10020         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10021         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10022         (SUBDIR_CLI_SRCS): Add cli-utils.c.
10023         (HFILES_NO_SRCDIR): Add cli-utils.h.
10024         (cli-utils.o): New target.
10025
10026 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10027
10028         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10029         before calling discard_all_inferiors.
10030
10031 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10032
10033         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10034         (struct builtin_opencl_type): Remove.
10035         (builtin_opencl_type): Change return type to "struct type **".
10036         (lookup_opencl_vector_type): Update caller.
10037         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10038         (build_opencl_types): Install plain array of "struct type *"
10039         instead of "struct builtin_opencl_type".
10040
10041 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10042             Ulrich Weigand  <uweigand@de.ibm.com>
10043
10044         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10045         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10046         (struct arm_linux_hwbp_cap): New type.
10047         (arm_linux_get_hwbp_cap): New function.
10048         (arm_linux_get_hw_breakpoint_count): Likewise.
10049         (arm_linux_get_hw_watchpoint_count): Likewise.
10050         (arm_linux_can_use_hw_breakpoint): Likewise.
10051         (arm_hwbp_type): New type.
10052         (arm_hwbp_control_t): Likewise.
10053         (struct arm_linux_hw_breakpoint): Likewise.
10054         (struct arm_linux_thread_points): Likewise.
10055         (arm_threads): New global variable.
10056         (arm_linux_find_breakpoints_by_tid): New function.
10057         (arm_hwbp_control_initialize): Likewise.
10058         (arm_hwbp_control_is_enabled): Likewise.
10059         (arm_hwbp_control_disable): Likewise.
10060         (arm_linux_hw_breakpoint_initialize): Likewise.
10061         (arm_linux_get_hwbp_type): Likewise.
10062         (arm_linux_hw_watchpoint_initialize): Likewise.
10063         (arm_linux_hw_breakpoint_equal): Likewise.
10064         (arm_linux_insert_hw_breakpoint1): Likewise.
10065         (arm_linux_remove_hw_breakpoint1): Likewise.
10066         (arm_linux_insert_hw_breakpoint): Likewise.
10067         (arm_linux_remove_hw_breakpoint): Likewise.
10068         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10069         (arm_linux_insert_watchpoint): Likewise.
10070         (arm_linux_remove_watchpoint): Likewise.
10071         (arm_linux_stopped_data_address): Likewise.
10072         (arm_linux_stopped_by_watchpoint): Likewise.
10073         (arm_linux_watchpoint_addr_within_range): Likewise.
10074         (arm_linux_new_thread): Likewise.
10075         (arm_linux_thread_exit): Likewise.
10076         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10077         related target callbacks.  Register arm_linux_new_thread and
10078         arm_linux_thread_exit.
10079         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10080         * arm-tdep.c (arm_pc_is_thumb): Make global.
10081         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10082
10083 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10084
10085         * breakpoint.c (update_watchpoint): Do not attempt to recreate
10086         per-frame locations while within a function epilogue.
10087
10088 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10089
10090         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10091         to GNU coding standards.
10092
10093 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10094
10095         Allow use of mingw native on Windows 95 OS.
10096         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10097         (ser_windows_close): Only call CancelIo if function exists.
10098         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10099         to check for existence of CancelIo function in kernel32 DLL.
10100
10101 2011-02-21  Hui Zhu  <teawater@gmail.com>
10102
10103         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10104         * ax-gdb.c (gen_printf_expr_callback): New function.
10105         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10106         * ax-general.c (ax_memcpy): New function.
10107         (ax_print): Handle "printf".
10108         (ax_reqs): Ditto.
10109         * ax.h (ax_memcpy): Forward declare.
10110         * common/ax.def (invalid2): Removed.
10111         (printf): New entry.
10112         * printcmd.c (printcmd.h): New include.
10113         (string_printf): New function.
10114         (ui_printf): Removed.
10115         (printf_command): Remove static.  Call string_printf.
10116         (eval_command): Call string_printf.
10117         * printcmd.h: New file.
10118         * tracepoint.c (validate_actionline,
10119         encode_actions_1): handle printf_command.
10120
10121 2011-02-19  Michael Snyder  <msnyder@vmware.com>
10122
10123         * reverse.c (delete_one_bookmark): Argument is now bookmark
10124         id rather than pointer to bookmark struct.
10125         (delete_bookmark_command): Use get_number_or_range.
10126         (goto_bookmark_command): Parse with get_number instead of strtoul.
10127         (bookmark_1): New function.  Print info for one bookmark.
10128         (bookmarks_info): Use get_number_or_range and bookmark_1.
10129
10130 2011-02-18  Michael Snyder  <msnyder@vmware.com>
10131
10132         * thread.c (info_threads_command): Re-implement using
10133         get_number_or_range.
10134         (thread_apply_command): Ditto.
10135
10136 2011-02-18  Tom Tromey  <tromey@redhat.com>
10137
10138         * common/ax.def: New file.
10139         * ax.h (enum agent_op): Use ax.def.
10140         * ax-general.c (aop_map): Use ax.def.
10141
10142 2011-02-18  Tom Tromey  <tromey@redhat.com>
10143
10144         * ax-general.c (aop_map): Add pick and rot.
10145         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10146         <DW_OP_rot>: Implement.
10147         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10148         (ax_pick): Declare.
10149         * ax-general.c (ax_pick): New function.
10150
10151 2011-02-18  Tom Tromey  <tromey@redhat.com>
10152
10153         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10154
10155 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10156             Tom Tromey  <tromey@redhat.com>
10157
10158         * cp-support.c (make_symbol_overload_list_namespace): Do not call
10159         make_symbol_overload_list_block with NULL BLOCK.
10160         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10161
10162 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
10163
10164         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10165         * breakpoint.h (get_number_or_range): Declare.
10166         * printcmd.c (ALL_DISPLAYS): Declare.
10167         (delete_display): Reimplement taking a display pointer.
10168         (undisplay_command): Accept a range of displays to delete, using
10169         get_number_or_range.
10170
10171 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10172
10173         * c-valprint.c (c_val_print): Add embedded_offset to address
10174         for arrays of unspecified length.
10175         * p-valprint.c (pascal_val_print): Likewise.
10176
10177 2011-02-18  Yao Qi  <yao@codesourcery.com>
10178
10179         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10180         (arm_process_displaced_insn): .. here. Remove parameter INSN.
10181         (thumb_process_displaced_insn): New.
10182         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10183         call to arm_process_displaced_insn.
10184         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10185
10186 2011-02-17  Tom Tromey  <tromey@redhat.com>
10187
10188         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10189         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10190         compile_dwarf_to_ax.  No longer static.  Call
10191         dwarf2_compile_cfa_to_ax.
10192         (locexpr_tracepoint_var_ref): Update.
10193         (loclist_tracepoint_var_ref): Update.
10194         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10195         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10196         argument; add 'gdbarch' and 'pc'.
10197         (dwarf2_compile_cfa_to_ax): New function.
10198         (dwarf2_frame_cache): Update.
10199
10200 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
10201
10202         * ada-lang.c (ada_type_of_array): Fix the size of the array
10203         in the case of an unconstrained packed array.
10204
10205 2011-02-17  Yao Qi  <yao@codesourcery.com>
10206
10207         * common/Makefile.in: Add more targets for make.
10208
10209 2011-02-16  Tom Tromey  <tromey@redhat.com>
10210
10211         * dwarf2loc.c (unimplemented): Fix typo.
10212
10213 2011-02-16  Tom Tromey  <tromey@redhat.com>
10214
10215         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10216         (compile_dwarf_to_ax) <default>: Use unimplemented.
10217         <DW_OP_deref>: Update.
10218         (disassemble_dwarf_expression): Update.
10219         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10220         (decode_locdesc): Update.
10221         * dwarf2expr.h (dwarf_stack_op_name): Update.
10222
10223 2011-02-16  Tom Tromey  <tromey@redhat.com>
10224
10225         * ax.h (struct aop_map) <name>: Now const.
10226
10227 2011-02-16  Tom Tromey  <tromey@redhat.com>
10228
10229         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10230         than axs_rvalue.
10231
10232 2011-02-16  Yao Qi  <yao@codesourcery.com>
10233
10234         * infrun.c (get_displaced_step_closure_by_addr): New.
10235         * inferior.h: Declare it.
10236         * arm-tdep.c: (arm_pc_is_thumb): Call
10237         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10238         returns non-NULL.
10239
10240 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10241             Jan Kratochvil  <jan.kratochvil@redhat.com>
10242
10243         gdb/
10244         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10245
10246 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10247             Jan Kratochvil  <jan.kratochvil@redhat.com>
10248
10249         * value.c (value_contents_copy_raw): Extend describing comment.
10250         Assert that the destination contents we're overwriting are wholly
10251         available.
10252         (value_contents_copy): Extend describing comment.
10253
10254 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10255             Jan Kratochvil  <jan.kratochvil@redhat.com>
10256
10257         * value.c (value_available_contents_eq): Remove redundant local
10258         variables.  Fix available contents comparision.
10259         * value.h (value_available_contents_eq): Extend describing
10260         comment.
10261
10262 2011-02-16  Yao Qi  <yao@codesourcery.com>
10263
10264         * thread.c (info_threads_command): Add missing i18n markup and remove
10265         trailing newline.
10266
10267 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10268
10269         * breakpoint.c (longjmp_names): New variable.
10270         (struct breakpoint_objfile_data): New type.
10271         (breakpoint_objfile_key): New variable.
10272         (msym_not_found): New variable.
10273         (msym_not_found_p): New predicate.
10274         (get_breakpoint_objfile_data): New function.
10275         (create_overlay_event_breakpoint): Check per-objfile cache for
10276         symbols first.
10277         (create_longjmp_master_breakpoint): Likewise.
10278         (create_std_terminate_master_breakpoint): Likewise.
10279         (create_exception_master_breakpoint): Likewise.
10280         (_initialize_breakpoint): Register per-objfile data key.
10281
10282 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10283
10284         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10285         parameter value.
10286         (create_longjmp_master_breakpoint): Loop over longjmp names.
10287         (create_std_terminate_master_breakpoint): Const-propagate parameter
10288         value.
10289         (update_breakpoints_after_exec): Adjust.
10290         (breakpoint_re_set): Adjust.
10291
10292 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10293
10294         * thread.c (info_threads_command): Process arg as thread id,
10295         or list of thread ids.
10296         (thread_find_command): New command.
10297         (_initialize_thread): Document argument for info threads.
10298         Document 'thread find' command.
10299         * NEWS: Document new command "thread find".
10300
10301 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10302
10303         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10304         * aclocal.m4: Regenerated with aclocal-1.11.1.
10305         * common/configure: Regenerate with autoconf-2.64.
10306
10307 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10308
10309         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10310         bool data type to a size of one byte.
10311
10312 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10313             Jan Kratochvil  <jan.kratochvil@redhat.com>
10314
10315         * target.c (memory_xfer_live_readonly_partial): Document where to
10316         look for interface description.
10317
10318 2011-02-15  Yao Qi  <yao@codesourcery.com>
10319
10320         PR tdep/12352
10321         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10322         order to store PC value on stack instead of text section.
10323
10324 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10325
10326         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10327         the EFP register set size.
10328         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10329         data from the VMX register.
10330         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10331         and write data from/to the VMX register.
10332
10333 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10334
10335         * command.h (enum command_class): New class 'no_set_class', for
10336         "show" commands without a corresponding "set" command.
10337         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10338         * copying.c (_initialize_copying): Ditto for "show copying" and
10339         "show warranty".
10340         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10341         "show version".
10342         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10343         which there is no corresponding "set" command (eg. "show copying").
10344
10345 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10346             Jan Kratochvil  <jan.kratochvil@redhat.com>
10347
10348         * exec.c (section_table_available_memory): Change `len' parameter
10349         type to ULONGEST.
10350         * exec.h (section_table_available_memory): Ditto.
10351         * value.h (read_value_memory): Rename the `offset' parameter to
10352         `embedded_offset'.
10353
10354 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10355             Jan Kratochvil  <jan.kratochvil@redhat.com>
10356
10357         * memrange.c (compare_mem_ranges): Mention sort order in
10358         describing comment.
10359         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10360         * tracepoint.c (traceframe_available_memory): Extend comment to
10361         mention what happens to RESULT when the target does not support
10362         the query.
10363
10364 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10365             Jan Kratochvil  <jan.kratochvil@redhat.com>
10366
10367         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10368         range.
10369
10370 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10371
10372         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10373         No longer handle NULL values.
10374
10375 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10376
10377         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10378         * value.c: Include "exceptions.h".
10379         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10380         generic error.
10381         * cp-abi.c: Include gdb_assert.h.
10382         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10383         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10384         errors.
10385         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10386         parameters.  No longer returns -1 on error.
10387         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10388         `val' parameters.
10389         * cp-valprint.c: Include exceptions.h.
10390         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10391         the baseclass_offset.  Handle unavailable base classes.  Use
10392         val_print_invalid_address.
10393         * p-valprint.c: Include exceptions.h.
10394         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10395         when fetching the baseclass_offset.  No longer expect
10396         baseclass_offset returning -1.  Handle unavailable base classes.
10397         Use val_print_invalid_address.
10398         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10399         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10400         `embedded_offset' and `val' parameters.  Adjust.
10401         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10402         parameter, and change its type to gdb_byte pointer.  Add
10403         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10404         baseclass_offset returning -1.
10405         (value_dynamic_cast): Use value_contents_for_printing rather than
10406         value_contents.  Adjust.
10407         (search_struct_field): No longer expect baseclass_offset returning
10408         -1.
10409         (search_struct_method): If reading memory from the target is
10410         necessary, wrap it in a new value to pass to baseclass_offset.  No
10411         longer expect baseclass_offset returning -1.
10412         (find_method_list): No longer expect baseclass_offset returning
10413         -1.  Use value_contents_for_printing rather than value_contents.
10414         * valprint.c (val_print_invalid_address): New function.
10415         * valprint.h (val_print_invalid_address): Declare.
10416         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10417         and `val' parameters.  No longer expect baseclass_offset returning
10418         -1.  Adjust.
10419         * gnu-v2-abi.c: Include "exceptions.h".
10420         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10421         parameters.  Handle unavailable memory.  Recurse through
10422         gnuv2_baseclass_offset directly, rather than through
10423         baseclass_offset.  No longer returns -1 on not found, instead
10424         throw an error.
10425         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10426         `val' parameters.  Adjust.
10427
10428 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10429
10430         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10431         almost but not quite adjacent.
10432
10433 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10434
10435         * value.h (value_entirely_available): Declare.
10436         * value.c (value_entirely_available): New function.
10437         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10438         real type if the pointer is unavailable.
10439
10440 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10441
10442         * valops.c (value_repeat): Use read_value_memory instead of
10443         read_memory.
10444
10445 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10446
10447         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10448         * value.c (value_contents_copy_raw, value_contents_copy): New
10449         functions.
10450         (value_primitive_field): Use value_contents_copy_raw instead of
10451         memcpy.
10452         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10453         memcpy.
10454         (value_array, value_slice): Ditto.
10455         * valarith.c (value_subscripted_rvalue): Use
10456         value_contents_copy_raw instead of memcpy.
10457
10458 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10459
10460         <unavailable> references.
10461
10462         * valops.c (get_value_at): Use value_from_contents_and_address,
10463         avoiding read_memory.
10464
10465 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10466
10467         * c-valprint.c (c_val_print): Print a string with unavailable
10468         contents as an array.
10469
10470 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10471
10472         * value.h (unpack_bits_as_long): Delete declaration.
10473         (unpack_value_bits_as_long): Declare.
10474         (unpack_value_field_as_long): Declare.
10475         (value_field_bitfield): Declare.
10476         * value.c (unpack_bits_as_long): Rename to...
10477         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10478         value parameters.  Return the extracted result in a new output
10479         parameter.  If the value contents are unavailable, return false,
10480         otherwise return true.
10481         (unpack_value_bits_as_long): New.
10482         (unpack_field_as_long): Rename to...
10483         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10484         Add embedded_offset and value parameters.  Return the extracted
10485         result in a new output parameter. If the value contents are
10486         unavailable, return false, otherwise return true.
10487         (unpack_value_field_as_long): New.
10488         (unpack_field_as_long_1): New.
10489         (unpack_field_as_long): Reimplement as wrapper around
10490         unpack_value_field_as_long_1.
10491         (value_field_bitfield): New function.
10492         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10493         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10494         is unavailable.
10495         * jv-valprint.c (java_print_value_fields): Use
10496         value_field_bitfield.
10497         * p-valprint.c (pascal_object_print_value_fields): Use
10498         value_field_bitfield.
10499         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10500
10501 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10502
10503         * value.c (get_internalvar_integer): Also return the int value of
10504         TYPE_CODE_INT INTERNALVAR_VALUE values.
10505         (set_internalvar): Don't special case TYPE_CODE_INT.
10506
10507 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10508
10509         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10510         INTERNALVAR_POINTER.
10511         <pointer>: Delete.
10512         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10513         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10514         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10515
10516 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10517
10518         * value.h (value_available_contents_eq): Declare.
10519         * value.c (find_first_range_overlap): New function.
10520         (value_available_contents_eq): New function.
10521         * valprint.c (val_print_array_elements): Use
10522         value_available_contents_eq.
10523         * ada-valprint.c (val_print_packed_array_elements): Use
10524         value_available_contents_eq.
10525         * jv-valprint.c (java_value_print): Use
10526         value_available_contents_eq.
10527
10528 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10529
10530         * target.c (target_read_live_memory): New function.
10531         (memory_xfer_live_readonly_partial): New.
10532         (memory_xfer_partial): If reading from a traceframe, fallback to
10533         reading unavailable read-only memory from read-only regions of
10534         live target memory.
10535         * tracepoint.c (disconnect_tracing): Adjust.
10536         (set_current_traceframe): New, factored out from
10537         set_traceframe_number.
10538         (set_traceframe_number): Reimplement to only change the traceframe
10539         number on the GDB side.
10540         (do_restore_current_traceframe_cleanup): Adjust.
10541         (make_cleanup_restore_traceframe_number): New.
10542         (cur_traceframe_number): New global.
10543         (tfile_open): Set cur_traceframe_number to no traceframe.
10544         (set_tfile_traceframe): New function.
10545         (tfile_trace_find): If looking up a traceframe using any method
10546         other than by number, make sure the current tfile traceframe
10547         matches gdb's current traceframe.  Update the current tfile
10548         traceframe if the lookup succeeded.
10549         (tfile_fetch_registers, tfile_xfer_partial)
10550         (tfile_get_trace_state_variable_value): Make sure the remote
10551         traceframe matches gdb's current traceframe.
10552         * remote.c (remote_traceframe_number): New global.
10553         (remote_open_1): Set it to -1.
10554         (set_remote_traceframe): New function.
10555         (remote_fetch_registers, remote_store_registers)
10556         (remote_xfer_memory, remote_xfer_partial)
10557         (remote_get_trace_state_variable_value): Make sure the remote
10558         traceframe matches gdb's current traceframe.
10559         (remote_trace_find): If looking up a traceframe using any method
10560         other than by number, make sure the current remote traceframe
10561         matches gdb's current traceframe.  Update the current remote
10562         traceframe if the lookup succeeded.
10563         * infrun.c (fetch_inferior_event): Adjust.
10564         * tracepoint.h (set_current_traceframe): Declare.
10565         (get_traceframe_number, set_traceframe_number): Add describing
10566         comments.
10567
10568 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10569
10570         Mark pieces of values as unavailable if the corresponding memory
10571         is unavailable.
10572
10573         * valops.c: Include tracepoint.h.
10574         (value_fetch_lazy): Use read_value_memory.
10575         (read_value_memory): New.
10576         * value.h (read_value_memory): Declare.
10577         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10578         * exec.c (section_table_available_memory): New function.
10579         * exec.h (section_table_available_memory): Declare.
10580
10581 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10582
10583         * Makefile.in (SFILES): Add memrange.c.
10584         (HFILES_NO_SRCDIR): Add memrange.h.
10585         (COMMON_OBS): Add memrange.o.
10586         * memrange.c: New file.
10587         * memrange.h: New file.
10588         * tracepoint.c: Include memrange.h.
10589         (struct mem_range): Delete.
10590         (mem_range_s): Delete.
10591         (traceframe_available_memory): New function.
10592         * tracepoint.h (traceframe_available_memory): Declare.
10593
10594 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10595
10596         * target.h (struct traceframe_info): Forward declare.
10597         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10598         (struct target_ops) <to_traceframe_info>: New field.
10599         (target_traceframe_info): New.
10600         * target.c (update_current_target): Inherit and default
10601         to_traceframe_info.
10602         * remote.c (PACKET_qXfer_traceframe_info): New.
10603         (remote_protocol_features): Register qXfer:traceframe-info:read.
10604         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10605         (remote_traceframe_info): New.
10606         (init_remote_ops): Install it.
10607         (_initialize_remote): Install "set/show remote traceframe-info"
10608         commands.
10609         * tracepoint.h (parse_traceframe_info): Declare.
10610         * tracepoint.c (struct mem_range): New.
10611         (mem_range_s): New typedef.
10612         (struct traceframe_info): New.
10613         (traceframe_info): New global.
10614         (free_traceframe_info): New function.
10615         (clear_traceframe_info): New function.
10616         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10617         info.
10618         (build_traceframe_info): New function.
10619         (tfile_traceframe_info): New function.
10620         (init_tfile_ops): Install tfile_traceframe_info.
10621         (traceframe_info_start_memory, free_result): New functions.
10622         (memory_attributes, traceframe_info_elements): New globals.
10623         (parse_traceframe_info, get_traceframe_info): New functions.
10624         * features/traceframe-info.dtd: New file.
10625         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10626
10627 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10628
10629         Base support for <unavailable> value contents.
10630
10631         * value.h (value_bytes_available): Declare.
10632         (mark_value_bytes_unavailable): Declare.
10633         * value.c (struct range): New struct.
10634         (range_s): New typedef.
10635         (ranges_overlap): New function.
10636         (range_lessthan): New function.
10637         (ranges_contain_p): New function.
10638         (struct value) <unavailable>: New field.
10639         (value_bytes_available): New function.
10640         (mark_value_bytes_unavailable): New function.
10641         (require_not_optimized_out): Constify parameter.
10642         (require_available): New function.
10643         (value_contents_all, value_contents): Require all bytes be
10644         available.
10645         (value_free): Free `unavailable'.
10646         (value_copy): Copy `unavailable'.
10647         * valprint.h (val_print_unavailable): Declare.
10648         * valprint.c (valprint_check_validity): Rename `offset' parameter
10649         to `embedded_offset'.  If printing a scalar, check whether the
10650         value chunk is available.
10651         (val_print_unavailable): New.
10652         (val_print_scalar_formatted): Check whether the value is
10653         available.
10654         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10655         pretty-printing unavailable values.
10656
10657 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10658
10659         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10660         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10661         variable param_type, initialize it.  Remove const/volatile qualifiers
10662         for language_cplus and !show_artificial.  Use param_type.
10663
10664 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10665
10666         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10667         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10668         * symtab.h (struct symtab) <next>: Comment extension.
10669
10670 2011-02-12  Yao Qi  <yao@codesourcery.com>
10671
10672         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10673
10674 2011-02-11  Yao Qi  <yao@codesourcery.com>
10675
10676         * common/Makefile.in: Add copyright header.
10677
10678 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10679
10680         * infrun.c (proceed): Move switching out and in of tfind mode from
10681         here ...
10682         (fetch_inferior_event): ... to here.
10683
10684 2011-02-11  Yao Qi  <yao@codesourcery.com>
10685
10686         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10687         libcommon.a.
10688         * configure.ac: Add common to sub dir.
10689         * configure: Regenerate.
10690
10691 2011-02-11  Yao Qi  <yao@codesourcery.com>
10692
10693         Build libcommon.a.
10694
10695         * common/Makefile.in: New.
10696         * common/configure.ac: New.
10697         * common/aclocal.m4: New.
10698         * common/configure: Generate.
10699
10700 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10701
10702         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10703         side of the parenthesis.
10704
10705         Merge from GCC:
10706         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10707         * vec.h (VEC_block_remove): Fix comment.
10708
10709 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10710
10711         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10712
10713 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10714
10715         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10716         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10717         psubd and paddd.
10718
10719 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10720
10721         PR 12361.
10722         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10723         phsubsw.
10724         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10725         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10726
10727 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10728
10729         * dwarf2read.c (read_subroutine_type): Set special calling
10730         convention flag for functions compiled by IBM XL C for OpenCL.
10731         * ppc-sysv-tdep.c: Include "dwarf2.h"
10732         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10733         calling convention.
10734         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10735         IBM OpenCL vector types calling convention.
10736         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10737         (ppc_sysv_abi_broken_return_value): Likewise.
10738         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10739         types calling convention.
10740         (ppc64_sysv_abi_return_value): Likewise.
10741         * spu-tdep.c: Include "dwarf2.h"
10742         (spu_return_value): Implement IBM OpenCL vector types calling
10743         convention.
10744
10745 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10746
10747         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10748         correct ABI for AltiVec vector arguments.
10749
10750 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10751
10752         * valprint.c (val_print): Extend comment.
10753         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10754         interface explanation to val_print.
10755         (ada_val_print_array): Adjust comment to current interface.
10756         (print_field_values): Adjust comment to current interface.
10757         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10758         explanation to val_print.
10759         * f-valprint.c (f_val_print): Ditto.
10760         * jv-valprint.c (java_val_print): Ditto.
10761         * m2-valprint.c (m2_val_print): Ditto.
10762         * p-valprint.c (pascal_val_print): Ditto.
10763
10764 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10765
10766         * breakpoint.c (parse_breakpoint_sals): Fix description.
10767
10768 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10769             Oguz Kayral <oguzkayral@gmail.com>
10770
10771         * python/py-inferior.c (python_on_normal_stop): New function.
10772         (python_on_resume): New function.
10773         (python_inferior_exit): New function.
10774         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10775         inferior_exit observers.
10776         * python/py-evtregistry.c: New file.
10777         * python/py-threadevent.c : New file.
10778         * python/py-event.c: New file.
10779         * python/py-evts.c: New file.
10780         * python/py-continueevent.c: New file.
10781         * python/py-bpevent.c: New file.
10782         * python/py-signalevent.c: New file.
10783         * python/py-exetiedevent.c: New file.
10784         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10785         Move struct breakpoint_object from here...
10786         * python/python-internal.h: ... to here.
10787         * python/py-event.h: New file.
10788         * python/py-events.h: New file.
10789         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10790         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10791         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10792         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10793         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10794         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10795         Add build rules for all the above.
10796
10797 2011-02-04  Tom Tromey  <tromey@redhat.com>
10798
10799         * dwarf2read.c (dwarf2_section_empty_p): New function.
10800         (dwarf2_read_section): Use dwarf2_section_empty_p.
10801         (dwarf2_section_size): New function.
10802         (dwarf2_get_section_info): Unconditionally read section.
10803         (dwarf2_read_index): Use dwarf2_section_empty_p.
10804         (partial_read_comp_unit_head): Use dwarf2_section_size.
10805         (dwarf2_symbol_mark_computed): Likewise.
10806
10807 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10808
10809         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10810
10811 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10812
10813         * mips-linux-tdep.c: Include xml-syscall.h.
10814         (mips_linux_get_syscall_number): New function.
10815         (mips_linux_init_abi): Add calls to
10816         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10817         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10818         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10819         * syscalls/mips-n32-linux.xml: New file.
10820         * syscalls/mips-n64-linux.xml: New file.
10821         * syscalls/mips-o32-linux.xml: New file.
10822
10823 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10824
10825         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10826         Complain about inverted range entries.
10827         (dwarf2_record_block_ranges): Likewise.
10828
10829 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10830
10831         Fix some typos.
10832         * breakpoint.c (update_watchpoint): Fix name of the
10833         update_global_location_list function.
10834         (print_one_breakpoint): Fix typo.
10835         (_initialize_breakpoint): Remove extra space in hbreak help
10836         string.
10837         * breakpoint.h (struct bp_location) <length>: Fix field
10838         description.
10839
10840 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10841
10842         * regcache.c (registers_changed_ptid): Don't explictly always
10843         clear `current_regcache'.  Only clear current_thread_ptid and
10844         current_thread_arch when PTID matches.  Only reinit the frame
10845         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10846         call to ...
10847         (registers_changed): ... here.
10848
10849 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10850
10851         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10852         starts with __stack_chk_guard as stack guard symbol.
10853
10854 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10855
10856         * disasm.c (compare_lines): Handle the end of sequence markers
10857         within the line table to better support disassembling over
10858         compilation unit boundaries.
10859
10860 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10861
10862         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10863         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10864         implementation even if no symbols are available.
10865         (thumb_analyze_prologue): Update call to skip_prologue_function.
10866         (arm_analyze_prologue): Likewise.
10867
10868 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10869
10870         * arm-tdep.c: Include "observer.h".
10871         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10872         (arm_exidx_data_key): New static variable.
10873         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10874         (struct arm_exidx_data): Likewise.
10875         (arm_exidx_data_free): New function.
10876         (arm_compare_exidx_entries): Likewise.
10877         (arm_obj_section_from_vma): Likewise.
10878         (arm_exidx_new_objfile): Likewise.
10879         (arm_find_exidx_entry): Likewise.
10880         (arm_exidx_fill_cache): Likewise.
10881         (arm_exidx_unwind_sniffer): Likewise.
10882         (arm_exidx_unwind): New global variable.
10883         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10884         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10885         observer.  Register arm_exidx_data_key as objfile data.
10886
10887 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10888
10889         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10890         due to accessing uninitialized variable.  Fix indentation.
10891
10892 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10893
10894         * c-valprint.c (c_value_print): When doing virtual base pointer
10895         adjustment, create a new value with adjusted contents rather than
10896         changing the contents of the value being printed (and getting it
10897         wrong).
10898
10899 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10900
10901         * xml-support.c (xml_find_attribute): New.
10902         (xinclude_start_include): Use it.
10903         * xml-support.h (xml_find_attribute): Declare.
10904         * memory-map.c (memory_map_start_memory)
10905         (memory_map_start_property): Use xml_find_attribute.
10906         * osdata.c (osdata_start_osdata, osdata_start_column): Use
10907         xml_find_attribute.
10908         * remote.c (start_thread): Use xml_find_attribute.
10909         * solib-target.c (library_list_start_segment)
10910         (library_list_start_section, library_list_start_library)
10911         (library_list_start_list): Use xml_find_attribute.
10912         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10913         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10914         (tdesc_start_field): Use xml_find_attribute.
10915
10916 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
10917
10918         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10919         (BUILD_OCL_VTYPES): Update.
10920
10921 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
10922
10923         * configure.ac: Work around non-GNU sed limitation when computing
10924         python version number.
10925         * configure: Regenerate.
10926
10927 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10928
10929         Fix debug printing of TYPE_INSTANCE.
10930         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10931         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10932
10933 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10934
10935         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10936         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10937         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10938         * ada-operator.inc: Rename the file to ...
10939         * ada-operator.def: ... here, wrap all the entries by macro OP.
10940         * expprint.c (op_name_standard): Remove all the entries.  Include
10941         "std-operator.def" instead.
10942         * expression.h (enum exp_opcode): Include "std-operator.def" and
10943         "ada-operator.def".  Move all the entries ...
10944         * std-operator.def: ... here, wrap all the entries by macro OP.
10945
10946 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10947
10948         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10949         * breakpoint.c (remove_jit_event_breakpoints): New function.
10950         * jit.c (jit_descriptor_addr): Delete.
10951         (registering_code): Delete.
10952         (clear_int): Delete.
10953         (jit_inferior_data): New variable.
10954         (struct jit_inferior_data): New type.
10955         (get_jit_inferior_data): New function.
10956         (jit_inferior_data_cleanup): New function.
10957         (jit_read_descriptor): Adjust.
10958         (jit_register_code): Adjust.
10959         (jit_breakpoint_re_set_internal): New function; move code here ...
10960         (jit_inferior_init): ... from here.
10961         (jit_breakpoint_re_set): Adjust.
10962         (jit_reset_inferior_data_and_breakpoints): New function.
10963         (jit_inferior_created_observer): Adjust.
10964         (jit_inferior_exit_hook): Adjust.
10965         (jit_executable_changed_observer): New function.
10966         (jit_event_handler): Adjust.
10967         (_initialize_jit): Adjust.
10968
10969 2011-01-31  Michael Snyder  <msnyder@vmware.com>
10970
10971         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10972         line.
10973
10974 2011-01-31  Tom Tromey  <tromey@redhat.com>
10975
10976         PR python/12216:
10977         * python/python.c (execute_gdb_command): Call
10978         prevent_dont_repeat.
10979         * top.c (suppress_dont_repeat): New global.
10980         (dont_repeat): Use it.
10981         (prevent_dont_repeat): New function.
10982         * command.h (prevent_dont_repeat): Declare.
10983
10984 2011-01-31  Tom Tromey  <tromey@redhat.com>
10985
10986         * infcmd.c (finish_backward): Use breakpoint_set_silent.
10987         * python/py-breakpoint.c (bppy_set_silent): Use
10988         breakpoint_set_silent.
10989         (bppy_set_thread): Use breakpoint_set_thread.
10990         (bppy_set_task): Use breakpoint_set_task.
10991         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10992         (breakpoint_set_task): Declare.
10993         (make_breakpoint_silent): Remove.
10994         * breakpoint.c (breakpoint_set_silent): New function.
10995         (breakpoint_set_thread): Likewise.
10996         (breakpoint_set_task): Likewise.
10997         (make_breakpoint_silent): Remove.
10998
10999 2011-01-31  Tom Tromey  <tromey@redhat.com>
11000
11001         * breakpoint.h (user_breakpoint_p): Declare.
11002         * breakpoint.c (user_breakpoint_p): New function.
11003         (breakpoint_1): Use it.
11004         (save_breakpoints): Likewise.
11005
11006 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11007
11008         * configure.ac: Add handling of Python distribution on Windows.
11009         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11010         sysconfig variables are not defined, then do not use them.
11011         On Windows, if LIBPL is not defined, then use prefix + '/libs'
11012         instead.  On Windows, return all paths using forward-slashes
11013         rather than backslashes.
11014
11015 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11016
11017         * configure.ac: Remove fallback behavior for building
11018         against Python.  Remove tweaking of Python include path.
11019         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11020         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
11021         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11022         Always restore CPPFLAGS and LIBS after linking test.
11023         * configure: Regenerated.
11024         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11025         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11026         * python/python-internal.h: Adjust includes of Python .h files.
11027
11028 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11029
11030         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11031         in error message.
11032
11033 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11034
11035         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11036         value test.
11037
11038 2011-01-31  Yao Qi  <yao@codesourcery.com>
11039
11040         * arm-linux-nat.c: Update calls to regcache_register_status
11041         instead of regcache_valid_p.
11042         * aix-thread.c: Likewise.
11043         * i386gnu-nat.c: Likewise.
11044
11045 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11046
11047         Fix crash.
11048         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11049         touching TYPE_FIELD_ARTIFICIAL.
11050
11051 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
11052
11053         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11054         Committers.
11055
11056 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11057
11058         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11059         selected, don't try iterating over the traceframe's blocks.
11060         (tfile_has_stack): If there's no traceframe selected, then there's
11061         no stack.
11062         (tfile_has_registers): If there's no traceframe selected, then
11063         there's no registers.
11064
11065 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11066
11067         * target.c (memory_xfer_partial): No need to restore shadows if we
11068         haven't read anything.
11069
11070 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11071
11072         * mips-tdep.c (mips_print_register): Use get_frame_register_value
11073         and val_print_scalar_formatted.
11074
11075 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
11076
11077         * tracepoint.c (tfile_read): New.
11078         (tfile_open): Use it.
11079         (tfile_get_traceframe_address): Use it.
11080         (tfile_trace_find): Use it.
11081         (walk_blocks_callback_func): New typedef.
11082         (match_blocktype): New function.
11083         (traceframe_walk_blocks): New function.
11084         (traceframe_find_block_type): New function.
11085         (tfile_fetch_registers, tfile_xfer_partial)
11086         (tfile_get_trace_state_variable_value): Use
11087         traceframe_find_block_type and tfile_read.
11088
11089 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
11090
11091         * remote-mips.c: Add internationalization mark ups.  Remove
11092         trailing \n from already marked up strings.
11093
11094 2011-01-26  Tom Tromey  <tromey@redhat.com>
11095
11096         * python/py-prettyprint.c (print_string_repr): Clear
11097         'addressprint' option when calling val_print_string.
11098         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
11099         option when calling val_print_string.
11100
11101 2011-01-26  Tom Tromey  <tromey@redhat.com>
11102
11103         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11104         GDB_PY_LL_ARG.
11105         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11106         macros.
11107         (gdb_py_longest, gdb_py_ulongest): New typedefs.
11108         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11109         (gdb_py_long_as_ulongest): New defines.
11110         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11111         (gdb_py_int_as_long): Declare.
11112         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11113         GDB_PY_LL_ARG, gdb_py_object_from_longest.
11114         (valpy_long): Add comment.
11115         * python/py-utils.c (get_addr_from_python): Use
11116         gdb_py_long_as_ulongest.  Handle overflow properly.
11117         (gdb_py_object_from_longest): New function.
11118         (gdb_py_object_from_ulongest): Likewise.
11119         (gdb_py_int_as_long): Likewise.
11120         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11121         * python/py-symtab.c (salpy_get_pc): Use
11122         gdb_py_long_from_ulongest.
11123         (salpy_get_line): Use PyInt_FromLong.
11124         * python/py-param.c (set_parameter_value): Use
11125         gdb_py_int_as_long.
11126         * python/py-lazy-string.c (stpy_get_address): Use
11127         gdb_py_long_from_ulongest.
11128         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11129         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11130         * python/py-breakpoint.c (bppy_set_thread): Use
11131         gdb_py_int_as_long.
11132         (bppy_set_task): Likewise.
11133         (bppy_set_ignore_count): Likewise.
11134         (bppy_set_hit_count): Likewise.
11135         * python/py-block.c (blpy_get_start): Use
11136         gdb_py_object_from_ulongest.
11137         (blpy_get_end): Likewise.
11138         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11139
11140 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
11141
11142         PR/symtab 11766:
11143         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11144         * gdb/solib.c (solib_read_symbols): Check for addr_low in
11145         equality test for objfile, initialize addr_low if needed.
11146
11147 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11148
11149         * tui/tui-regs.c (tui_register_format): Remove dead code.
11150
11151 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11152
11153         * printcmd.c (print_formatted): Use val_print_scalar_formatted
11154         instead of print_scalar_formatted.
11155         (print_scalar_formatted): Don't handle 's' format strings here,
11156         and add an assertion that we never see such format here.
11157         * valprint.h (val_print_scalar_formatted): Declare.
11158         * valprint.c (val_print_scalar_formatted): New.
11159         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11160         instead of print_scalar_formatted.
11161         * jv-valprint.c (java_val_print): Ditto.
11162         * p-valprint.c (pascal_val_print): Ditto.
11163         * ada-valprint.c (ada_val_print_1): Ditto.
11164         * f-valprint.c (f_val_print): Ditto.
11165         * infcmd.c (registers_info): Ditto.
11166         * m2-valprint.c (m2_val_print): Ditto.
11167
11168 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11169
11170         * m2-valprint.c (print_unbounded_array): Pass
11171         value_contents_for_printing rather than value_contents, to
11172         m2_print_array_contents.  Also pass in the value.
11173
11174 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11175
11176         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11177         (save_gdb_index_command): Switch to .gdb_index version 4.
11178
11179 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11180
11181         * mi/mi-main.c (get_register): Use get_frame_register_value rather
11182         than frame_register, and always pass a valid value to val_print.
11183
11184 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11185
11186         Centralize printing "<optimized out>".
11187
11188         * valprint.h (val_print_optimized_out): Declare.
11189         * cp-valprint.c (cp_print_value_fields): Use
11190         val_print_optimized_out.
11191         * jv-valprint.c (java_print_value_fields): Ditto.
11192         * p-valprint.c (pascal_object_print_value_fields): Ditto.
11193         * printcmd.c (print_formatted): Ditto.
11194         * valprint.c (valprint_check_validity): Ditto.
11195         (value_check_printable): Ditto.
11196         (val_print_optimized_out): New.
11197
11198 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11199
11200         * infcmd.c (default_print_registers_info): Allocate values so to
11201         never pass a NULL value to val_print.
11202
11203 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11204
11205         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11206         boolean.  Make sure to always pass a value that matches the
11207         contents buffer to callees.  Preserve `address' for following
11208         iterations.
11209         * value.c (value_contents_for_printing_const): New.
11210         (value_address): Constify value argument.
11211         * value.h (value_contents_for_printing_const): Declare.
11212         (value_address): Constify value argument.
11213
11214 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11215
11216         * regcache.c (struct regcache_descr): Rename
11217         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11218         and sizeof_cooked_register_valid_p to
11219         sizeof_cooked_register_status.
11220         (init_regcache_descr): Adjust.
11221         (struct regcache): Rename register_valid_p field to
11222         register_status.
11223         (regcache_xmalloc_1, regcache_xfree, regcache_save)
11224         (do_cooked_read): Adjust.
11225         (regcache_valid_p): Rename to ...
11226         (regcache_register_status): ... this.  Adjust.
11227         (regcache_invalidate): Adjust.
11228         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11229         Adjust.
11230         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11231         as unavailable, not valid.
11232         (regcache_dump): Adjust.
11233         * regcache.h (enum register_status): New.
11234         (regcache_register_status): Declare.
11235         (regcache_invalidate): Delete declaration.
11236         * corelow.c (get_core_registers): Adjust.
11237         * tracepoint.c (tfile_fetch_registers): Adjust.
11238         * trad-frame.c (REG_VALUE): Rename to ...
11239         (TF_REG_VALUE): ... this.
11240         (REG_UNKNOWN): Rename to ...
11241         (TF_REG_UNKNOWN): ... this.
11242         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11243         * mi/mi-main.c (register_changed_p): Adjust.
11244
11245 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11246
11247         * regcache.c (struct regcache_descr): Remove outdated comment.
11248         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11249         overallocate hack.
11250         (regcache_xmalloc): Rename to ...
11251         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11252         Allocate the regcache type accordingly.
11253         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11254         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11255         cooked registers, not raw.
11256         (regcache_dup_no_passthrough): Delete.
11257         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11258         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11259         mention obsolete write_register_bytes.
11260         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11261
11262 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11263
11264         Stop remote_read_bytes from handling partial reads itself.
11265
11266         * remote-fileio.c: Include target.h.
11267         (remote_fileio_write_bytes): Delete.
11268         (remote_fileio_func_open, remote_fileio_func_write)
11269         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11270         target_read_memory.
11271         (remote_fileio_func_stat): Use target_read_memory and
11272         target_write_memory.
11273         (remote_fileio_func_gettimeofday): Use target_write_memory.
11274         (remote_fileio_func_system): Use target_read_memory.
11275         * remote.c (remote_write_bytes): Make it static.
11276         (remote_read_bytes): Don't handle partial reads here.
11277         * remote.h (remote_read_bytes): Delete declaration.
11278
11279 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11280
11281         Simplify XML parsing a bit.
11282
11283         * xml-support.h (gdb_xml_parse_quick): Declare.
11284         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11285         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11286         parameter.
11287         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11288         gdb_xml_create_parser_and_cleanup_1.
11289         (gdb_xml_parse_quick): New.
11290         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11291         * osdata.c (osdata_parse): Ditto.
11292         * remote.c (remote_threads_info): Ditto.
11293         * solib-target.c (solib_target_parse_libraries): Ditto.
11294         * xml-syscall.c (syscall_parse_xml): Ditto.
11295         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11296
11297 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11298
11299         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11300         with remote-mips.o added to gdb_target_obs.
11301         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11302
11303 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11304
11305         * ada-valprint.c (val_print_packed_array_elements): Pass the
11306         correct struct value to val_print.
11307         (ada_val_print_1): Ditto.
11308
11309 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11310
11311         Don't lose embedded_offset in printing routines throughout.
11312
11313         * valprint.h (val_print_array_elements): Change prototype.
11314         * valprint.c (val_print_array_elements): Add `embedded_offset'
11315         parameter, and adjust to pass it down to val_print, while passing
11316         `valaddr' or `address' unmodified.  Take embedded_offset into
11317         account when checking repetitions.
11318         * c-valprint.c (c_val_print): Pass embedded_offset to
11319         val_print_array_elements instead of adjusting `valaddr' and
11320         `address'.
11321         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11322         embedded_offset to val_print_array_elements instead of adjusting
11323         `valaddr'.
11324         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11325         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11326         val_print_array_elements and pascal_object_print_value_fields
11327         instead of adjusting `valaddr'.
11328         (pascal_object_print_value_fields): Add `offset' parameter, and
11329         adjust to use it.
11330         (pascal_object_print_value): Add `offset' parameter, and adjust to
11331         use it.
11332         (pascal_object_print_static_field): Use
11333         value_contents_for_printing/value_embedded_offset, rather than
11334         value_contents.
11335         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11336         parameter, and adjust to use it.  Use
11337         value_contents_for_printing/value_embedded_offset, rather than
11338         value_contents.
11339         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11340         (ada_val_print_array): Add `offset' parameter, and adjust to use
11341         it.
11342         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11343         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11344         Instead work with offsets.  Use
11345         value_contents_for_printing/value_embedded_offset, rather than
11346         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11347         and use value_from_pointer to extract a target pointer, rather
11348         than value_from_longest.
11349         (print_variant_part): Add `offset' parameter.  Replace
11350         `outer_valaddr' parameter by a new `outer_offset' parameter.
11351         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11352         (ada_value_print): Use
11353         value_contents_for_printing/value_embedded_offset, rather than
11354         value_contents.
11355         (print_record): Add `offset' parameter, and adjust to pass it
11356         down.
11357         (print_field_values): Add `offset' parameter.  Replace
11358         `outer_valaddr' parameter by a new `outer_offset' parameter.
11359         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11360         Use value_contents_for_printing/value_embedded_offset, rather than
11361         value_contents.
11362         * d-valprint.c (dynamic_array_type): Use
11363         value_contents_for_printing/value_embedded_offset, rather than
11364         value_contents.
11365         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11366         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11367         (java_print_value_fields): Take `offset' into account.  Don't
11368         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11369         (java_val_print): Take `embedded_offset' into account.  Pass it to
11370         java_print_value_fields.
11371         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11372         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11373         down adjusted offsets.
11374         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11375         (f_val_print): Take `embedded_offset' into account.
11376
11377 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11378
11379         * inflow.c: Include "gdbcmd.h".
11380         (interactive_mode): New static global, moved here from top.c.
11381         (show_interactive_mode): New function, moved here from top.c.
11382         use gdb_has_a_terminal instead of input_from_terminal_p to
11383         determine the current mode.
11384         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11385         setting.
11386         (_initialize_inflow): Add the "set/show interactive-mode"
11387         commands.  Moved here from top.c, after having adjusted slightly
11388         the help text.
11389         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11390         to inflow.c.
11391         (input_from_terminal_p): Remove handling of "interactive-mode"
11392         setting, moved to infow.c.
11393         (init_main): Remove creation of the "set/show interactive-mode"
11394         commands, moved to inflow.c.
11395
11396 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11397
11398         * NEWS: Add entry for native ia64-hpux support.
11399
11400 2011-01-19  Tom Tromey  <tromey@redhat.com>
11401
11402         PR mi/8618:
11403         * thread.c (free_thread): Free 'name'.
11404         (print_thread_info): Emit thread name.  Change CLI output.
11405         (thread_name_command): New function.
11406         (do_captured_thread_select): Emit newline.
11407         (_initialize_thread): Register 'thread name' command.
11408         * target.h (struct target_ops) <to_thread_name>: New field.
11409         (target_thread_name): New macro.
11410         * target.c (update_current_target): Handle to_thread_name.
11411         * python/py-infthread.c (thpy_get_name): New function.
11412         (thpy_set_name): Likewise.
11413         (thread_object_getset): Add "name".
11414         * linux-nat.c (linux_nat_thread_name): New function.
11415         (linux_nat_add_target): Set to_thread_name.
11416         * gdbthread.h (struct thread_info) <name>: New field.
11417
11418 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11419
11420         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11421         (ada_val_print_1): Likewise.
11422
11423 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11424
11425         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11426         upper limit address is not greater than the function end address
11427         when the upper limit could not be computed using the debugging
11428         info.
11429
11430 2011-01-17  Tom Tromey  <tromey@redhat.com>
11431
11432         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11433         get_regcomp_error.
11434         * utils.c: Include gdb_regex.h.
11435         (do_regfree_cleanup): New function.
11436         (make_regfree_cleanup): Likewise.
11437         (get_regcomp_error): Likewise.
11438         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11439
11440 2011-01-17  Tom Tromey  <tromey@redhat.com>
11441
11442         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11443         re_compile_fastmap.
11444
11445 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11446
11447         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11448         for internal variables.
11449         (last_was_structop): New static variable.
11450         (COMPLETE): New token.
11451         (field_exp): New rule to group all '.' suffix handling.
11452         Add mark_struct_expression calls when approriate to be able
11453         to correctly find fields for completion.
11454         (yylex): Adapt to handle field completion and set INTVAR when
11455         required.
11456
11457 2011-01-14  Yao Qi  <yao@codesourcery.com>
11458
11459         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11460         save_reggroup, restore_reggroup and all_reggroup.
11461
11462 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11463
11464         * ada-valprint. (ada_printchar): Use the correct type length
11465         in call to ada_emit_char.
11466         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11467
11468 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11469
11470         * solib-som.h (hpux_major_release): Declare variable here.
11471         * solib-som.c:  Remove <sys/utsname.h> header.
11472         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11473         (hpux_major_release): Make global, change default value to
11474         DEFAULT_HPUX_MAJOR_RELEASE.
11475         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11476         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11477         Add "solib-som.h" header.
11478         (set_hpux_major_release): New function.
11479         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11480
11481 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11482
11483         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11484
11485 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11486
11487         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11488         new-line at end of warning message.
11489         (ia64_hpux_store_register): Remove trailing new-line at end of
11490         error message.
11491         * ia64-hpux-tdep.c: Rephrase comment.
11492         * solib-ia64-hpux.c (struct dld_info): Change type of field
11493         dld_flags from "long long" to ULONGEST.
11494
11495 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11496
11497         * target.h (deprecated_child_ops): Delete declaration.
11498         * target.c (deprecated_child_ops): Delete definition.
11499
11500 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11501
11502         * Makefile.in (hpux-thread.o): Delete rule.
11503         * configure.ac: Don't check for HPUX DCE threads support.
11504         * configure, config.in: Regenerate.
11505         * hppa-hpux-nat.c (child_suppress_run): Delete.
11506         (hppa_hpux_child_can_run): Delete.
11507         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11508         * hpux-thread.c: Delete.
11509
11510 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11511
11512         * hpux-thread.c (hpux_pid_to_str): Delete.
11513
11514 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11515
11516         * ada-valprint.c (ada_emit_char): Remove strange code.
11517         Check that c is <= UCHAR_MAX before passing it to isascii.
11518         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11519
11520 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11521
11522         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11523         to the case where instream is stdin.
11524
11525 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11526
11527         * ia64-tdep.h (struct regcache): Forward declare.
11528         (struct ia64_infcall_ops): New struct type.
11529         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11530         and "infcall_ops".
11531         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11532         Renames ia64_find_global_pointer.
11533         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11534         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11535         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11536         methods.
11537         (ia64_infcall_ops): New static global constant.
11538         (ia64_gdbarch_init): Set tdep->infcall_ops.
11539         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11540         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11541         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11542         (ia64_hpux_dummy_code): New static global constant.
11543         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11544         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11545         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11546         New function.
11547         (ia64_hpux_infcall_ops): New static global constant.
11548         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11549         for inferior function calls to work properly on ia64-hpux.
11550
11551 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11552
11553         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11554         * ia64-tdep.h (struct frame_info): forward declaration.
11555         (struct gdbarch_tdep): Add field size_of_register_frame.
11556         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11557         to determine the size of the register frame.
11558         (ia64_size_of_register_frame): New function.
11559         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11560         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11561         (IA64_HPUX_UREG_REASON): New macro.
11562         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11563         New functions.
11564         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11565         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11566         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11567         objects.
11568
11569 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11570
11571         Add support for ia64-hpux.
11572         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11573         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11574
11575         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11576         floatformats.
11577         * configure.tgt: Add handling for ia64-hpux targets.
11578         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11579         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11580         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11581
11582 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11583
11584         [ttrace] Compute thread list immediately after attach.
11585         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11586         New subprogram.
11587         (inf_ttrace_attach): Use it.
11588
11589 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11590
11591         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11592         if we could not determine the frame's function address.  Instead,
11593         use the frame's PC, and then continue.
11594
11595 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11596
11597         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11598         not already defined.
11599
11600 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11601
11602         * ia64-tdep.c (ia64_struct_type_p): New function.
11603         (ia64_extract_return_value): Handle integral values that are
11604         less than 8 bytes long.
11605         (ia64_push_dummy_call): Likewise.
11606
11607 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11608
11609         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11610         floatformat_ia64_ext.
11611         (floatformat_ia64_ext_big): New static const.
11612         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11613
11614 2011-01-12  Tom Tromey  <tromey@redhat.com>
11615
11616         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11617         messages.
11618         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11619         (mi_cmd_thread_list_ids): Likewise.
11620         (mi_cmd_data_list_changed_registers): Likewise.
11621         (mi_cmd_data_list_register_values): Likewise.
11622         (mi_cmd_data_write_register_values): Likewise.
11623         (mi_cmd_data_evaluate_expression): Likewise.
11624         (mi_cmd_data_read_memory): Likewise.
11625         (mi_cmd_data_read_memory_bytes): Likewise.
11626         (mi_cmd_data_write_memory): Likewise.
11627         (mi_cmd_enable_timings): Likewise.
11628         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11629         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11630         (mi_cmd_var_delete): Likewise.
11631         (mi_cmd_var_set_format): Likewise.
11632         (mi_cmd_var_show_format): Likewise.
11633         (mi_cmd_var_info_num_children): Likewise.
11634         (mi_cmd_var_list_children): Likewise.
11635         (mi_cmd_var_info_type): Likewise.
11636         (mi_cmd_var_info_expression): Likewise.
11637         (mi_cmd_var_show_attributes): Likewise.
11638         (mi_cmd_var_assign): Likewise.
11639         (mi_cmd_var_update): Likewise.
11640         (mi_cmd_enable_pretty_printing): Likewise.
11641         (mi_cmd_var_set_update_range): Likewise.
11642         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11643         messages.
11644         (mi_cmd_target_file_put): Likewise.
11645         (mi_cmd_target_file_delete): Likewise.
11646         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11647         messages.
11648         (mi_cmd_stack_info_depth): Likewise.
11649         (mi_cmd_stack_list_locals): Likewise.
11650         (mi_cmd_stack_list_args): Likewise.
11651         (mi_cmd_stack_select_frame): Likewise.
11652         (mi_cmd_stack_select_frame): Likewise.
11653         (mi_cmd_stack_info_frame): Likewise.
11654         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11655         messages.
11656         (mi_cmd_file_list_exec_source_files): Likewise.
11657         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11658         (mi_cmd_env_cd): Likewise.
11659         (mi_cmd_env_path): Likewise.
11660         (mi_cmd_env_dir): Likewise.
11661         (mi_cmd_inferior_tty_show): Likewise.
11662         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11663         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11664         (mi_cmd_break_watch): Likewise.
11665
11666 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11667
11668         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11669         (ppc_linux_insert_hw_breakpoint): Likewise.
11670         (ppc_linux_remove_hw_breakpoint): Likewise.
11671         (ppc_linux_insert_watchpoint): Likewise.
11672
11673 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11674             Jan Kratochvil  <jan.kratochvil@redhat.com>
11675
11676         PR fortran/11104 and DWARF unbound arrays detection.
11677         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11678         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11679         unspecified upper bound.
11680         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11681         variables array_size_array, tmp_type and offset_item.  New variable
11682         array.  Remove call to f77_get_upperbound.  New variables array_type
11683         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11684         the final call to deprecated_set_value_type.
11685
11686 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11687
11688         Make value allocations more lazy.
11689         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11690         instead of allocate_value and set_value_lazy when possible.
11691         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11692         instead of allocate_value and set_value_lazy.
11693         * findvar.c (value_of_register_lazy): Likewise.
11694         (read_var_value): Remove V preallocation, call just check_typedef in
11695         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11696         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11697         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11698         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11699         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11700         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11701         the end, remove set_value_lazy there.
11702         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11703         instead of allocate_value and set_value_lazy when possible.
11704         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11705         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11706         of allocate_value and set_value_lazy.
11707         (value_from_contents_and_address): Use allocate_value_lazy instead of
11708         allocate_value and set_value_lazy when possible.
11709
11710 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11711
11712         * disasm.c (dump_insns): Support dumping opcodes for MI.
11713         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11714         dumping of instruction opcodes.
11715
11716 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11717
11718         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11719         appropiately.
11720
11721 2011-01-11  Tom Tromey  <tromey@redhat.com>
11722
11723         * thread.c (do_captured_thread_select): Emit newline before
11724         printing frame.
11725
11726 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11727
11728         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11729         * score-tdep.c: Ditto.
11730         * score-tdep.h: Ditto.
11731         * ser-base.c: Ditto.
11732         * ser-go32.c: Ditto.
11733         * serial.c: Ditto.
11734         * serial.h: Ditto.
11735         * ser-mingw.c: Ditto.
11736         * ser-pipe.c: Ditto.
11737         * ser-tcp.c: Ditto.
11738         * ser-unix.c: Ditto.
11739         * sh64-tdep.c: Ditto.
11740         * shnbsd-nat.c: Ditto.
11741         * sh-tdep.c: Ditto.
11742         * sh-tdep.h: Ditto.
11743         * solib.c: Ditto.
11744         * solib-darwin.c: Ditto.
11745         * solib-frv.c: Ditto.
11746         * solib.h: Ditto.
11747         * solib-irix.c: Ditto.
11748         * solib-osf.c: Ditto.
11749         * solib-pa64.c: Ditto.
11750         * solib-som.c: Ditto.
11751         * solib-spu.c: Ditto.
11752         * solib-sunos.c: Ditto.
11753         * solib-svr4.c: Ditto.
11754         * solist.h: Ditto.
11755         * sol-thread.c: Ditto.
11756         * somread.c: Ditto.
11757         * source.c: Ditto.
11758         * source.h: Ditto.
11759         * sparc64-linux-tdep.c: Ditto.
11760         * sparc64-tdep.c: Ditto.
11761         * sparc-linux-nat.c: Ditto.
11762         * sparc-linux-tdep.c: Ditto.
11763         * sparc-sol2-nat.c: Ditto.
11764         * sparc-sol2-tdep.c: Ditto.
11765         * sparc-tdep.c: Ditto.
11766         * sparc-tdep.h: Ditto.
11767         * spu-tdep.c: Ditto.
11768         * stabsread.c: Ditto.
11769         * stabsread.h: Ditto.
11770         * stack.c: Ditto.
11771         * symfile.c: Ditto.
11772         * symfile.h: Ditto.
11773         * symmisc.c: Ditto.
11774         * symtab.c: Ditto.
11775         * symtab.h: Ditto.
11776         * target.c: Ditto.
11777         * target-descriptions.c: Ditto.
11778         * target-descriptions.h: Ditto.
11779         * target.h: Ditto.
11780         * target-memory.c: Ditto.
11781         * terminal.h: Ditto.
11782         * thread.c: Ditto.
11783         * top.c: Ditto.
11784         * tracepoint.c: Ditto.
11785         * tracepoint.h: Ditto.
11786         * trad-frame.h: Ditto.
11787         * typeprint.c: Ditto.
11788
11789 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11790
11791         * ui-file.c: Comment cleanup, mostly periods and spaces.
11792         * ui-file.h: Ditto.
11793         * ui-out.c: Ditto.
11794         * ui-out.h: Ditto.
11795         * utils.c: Ditto.
11796         * v850-tdep.c: Ditto.
11797         * valarith.c: Ditto.
11798         * valops.c: Ditto.
11799         * valprint.c: Ditto.
11800         * valprint.h: Ditto.
11801         * value.c: Ditto.
11802         * value.h: Ditto.
11803         * varobj.c: Ditto.
11804         * varobj.h: Ditto.
11805         * vax-tdep.c: Ditto.
11806         * vec.c: Ditto.
11807         * vec.h: Ditto.
11808         * version.h: Ditto.
11809         * windows-nat.c: Ditto.
11810         * windows-tdep.c: Ditto.
11811         * xcoffread.c: Ditto.
11812         * xcoffsolib.c: Ditto.
11813         * xml-support.c: Ditto.
11814         * xstormy16-tdep.c: Ditto.
11815         * xtensa-tdep.c: Ditto.
11816         * xtensa-tdep.h: Ditto.
11817
11818 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11819
11820         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11821         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11822
11823 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11824             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11825
11826         Implement support for PowerPC BookE ranged watchpoints.
11827         * breakpoint.h
11828         (struct breakpoint_ops) <resources_needed>: New method.
11829         Initialize to NULL in all existing breakpoint_ops instances.
11830         (struct breakpoint) <exact>: New field.
11831         (target_exact_watchpoints): Declare external global.
11832         * breakpoint.c (target_exact_watchpoints): New global flag.
11833         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11834         b->enable_state to bp_enabled before calling
11835         hw_watchpoint_used_count.
11836         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11837         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11838         if available.
11839         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11840         if the watchpoint is exact.
11841         (resources_needed_watchpoint): New function.
11842         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11843         (watch_command_1): Set b->exact if the user asked for an exact
11844         watchpoint and one can be set.
11845         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11846         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11847         the user asks for an exact watchpoint and one can be set.  Return
11848         number of needed debug registers to watch the expression.
11849         * gdbtypes.c (is_scalar_type): New function, based on
11850         valprint.c:scalar_type_p.
11851         (is_scalar_type_recursive): New function.
11852         * gdbtypes.h (is_scalar_type_recursive): Declare.
11853         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11854         handle regions when ranged watchpoints are available.
11855         (create_watchpoint_request): New function.
11856         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11857         create_watchpoint_request.
11858         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11859         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11860         `set powerpc' and `show powerpc' commands.
11861         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11862         Mention documentation comment in the target macro.
11863         (target_region_ok_for_hw_watchpoint): Document return value.
11864
11865 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11866
11867         * breakpoint.c (update_watchpoint): Decide on using a software or
11868         hardware watchpoint after the bp_locations are created.
11869
11870 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11871
11872         Convert hardware watchpoints to use breakpoint_ops.
11873         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11874         <insert_location>: ... this.  Return int instead of void.
11875         Accept pointer to struct bp_location instead of pointer to
11876         struct breakpoint.  Adapt all implementations.
11877         (breakpoint_ops) <remove>: Rename to...
11878         <remove_location>: ... this.  Accept pointer to struct bp_location
11879         instead of pointer to struct breakpoint.  Adapt all implementations.
11880         * breakpoint.c (insert_catchpoint): Delete function.
11881         (insert_bp_location): Call the watchpoint or catchpoint's
11882         breakpoint_ops.insert method.
11883         (remove_breakpoint_1): Call the watchpoint or catchpoint's
11884         breakpoint_ops.remove method.
11885         (insert_watchpoint, remove_watchpoint): New functions.
11886         (watchpoint_breakpoint_ops): New structure.
11887         (watch_command_1): Initialize the OPS field.
11888         * inf-child.c (inf_child_insert_fork_catchpoint)
11889         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11890         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11891         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11892         Delete functions.
11893         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11894         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11895         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11896         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11897         * target.c (update_current_target): Change default implementation of
11898         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11899         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11900         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11901         to_set_syscall_catchpoint to return_one.
11902         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11903         (debug_to_insert_exec_catchpoint): Report return value.
11904         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11905         (to_insert_exec_catchpoint): Change declaration to return int instead
11906         of void.
11907
11908 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11909
11910         * arm-tdep.c: Internationalization.
11911         * c-lang.c: Ditto.
11912         * charset.c: Ditto.
11913         * fork-child.c: Ditto.
11914         * nto-procfs.c: Ditto.
11915         * ppc-sysv-tdep.c: Ditto.
11916         * procfs.c: Ditto.
11917         * remote-mips.c: Ditto.
11918         * remote.c: Ditto.
11919         * rs6000-nat.c: Ditto.
11920         * rs6000-tdep.c: Ditto.
11921         * target.c: Ditto.
11922         * valops.c: Ditto.
11923         * value.c: Ditto.
11924         * xml-support.c: Ditto.
11925         * mi/mi-cmd-break.c: Ditto.
11926         * mi/mi-cmd-var.c: Ditto.
11927         * mi/mi-interp.c: Ditto.
11928         * mi/mi-main.c: Ditto.
11929
11930 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
11931
11932         * remote-sim.c (gdbsim_store_register): Update API to
11933         sim_store_register to check more error conditions.
11934
11935 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11936
11937         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11938         * nto-tdep.c: Ditto.
11939         * nto-tdep.h: Ditto.
11940         * objc-exp.y: Ditto.
11941         * objc-lang.c: Ditto.
11942         * objfiles.c: Ditto.
11943         * objfiles.h: Ditto.
11944         * observer.c: Ditto.
11945         * opencl-lang.c: Ditto.
11946         * osabi.c: Ditto.
11947         * parse.c: Ditto.
11948         * parser-defs.h: Ditto.
11949         * p-exp.y: Ditto.
11950         * p-lang.c: Ditto.
11951         * posix-hdep.c: Ditto.
11952         * ppcbug-rom.c: Ditto.
11953         * ppc-linux-nat.c: Ditto.
11954         * ppc-linux-tdep.c: Ditto.
11955         * ppc-linux-tdep.h: Ditto.
11956         * ppcnbsd-tdep.c: Ditto.
11957         * ppcobsd-tdep.c: Ditto.
11958         * ppcobsd-tdep.h: Ditto.
11959         * ppc-sysv-tdep.c: Ditto.
11960         * ppc-tdep.h: Ditto.
11961         * printcmd.c: Ditto.
11962         * proc-abi.c: Ditto.
11963         * proc-flags.c: Ditto.
11964         * procfs.c: Ditto.
11965         * proc-utils.h: Ditto.
11966         * progspace.h: Ditto.
11967         * prologue-value.c: Ditto.
11968         * prologue-value.h: Ditto.
11969         * psympriv.h: Ditto.
11970         * psymtab.c: Ditto.
11971         * p-typeprint.c: Ditto.
11972         * p-valprint.c: Ditto.
11973         * ravenscar-sparc-thread.c: Ditto.
11974         * ravenscar-thread.c: Ditto.
11975         * ravenscar-thread.h: Ditto.
11976         * record.c: Ditto.
11977         * regcache.c: Ditto.
11978         * regcache.h: Ditto.
11979         * remote.c: Ditto.
11980         * remote-fileio.c: Ditto.
11981         * remote-fileio.h: Ditto.
11982         * remote.h: Ditto.
11983         * remote-m32r-sdi.c: Ditto.
11984         * remote-mips.c: Ditto.
11985         * remote-sim.c: Ditto.
11986         * rs6000-aix-tdep.c: Ditto.
11987         * rs6000-nat.c: Ditto.
11988         * rs6000-tdep.c: Ditto.
11989
11990 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11991
11992         * charset.c (validate): Internationalization.
11993         * coffread.c (read_one_sym): Ditto.
11994         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11995         * h8300-tdep.c (H8300_extract_return_value): Ditto.
11996         * inflow.c (new_tty): Ditto.
11997         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11998         * m32c-tdep.c (m32c_return_value): Ditto.
11999         * mep-tdep.c (mep_store_return_value): Ditto.
12000         * score-tdep.c (score7_fetch_insn): Ditto.
12001         * ser-mingw.c (pipe_windows_open): Ditto.
12002         * sh64-tdep.c (sh64_extract_return_value): Ditto.
12003         * spu-tdep.c (spu_register_type): Ditto.
12004         * tracepoint.c (trace_find_command): Ditto.
12005         * valarith.c (value_pos): Ditto.
12006
12007 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
12008
12009         * ada-valprint.c (printstr): Minor comment reformatting.
12010
12011 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12012
12013         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12014         markup.
12015
12016 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12017
12018         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12019         * hppa-hpux-tdep.c: Ditto.
12020         * hppa-linux-nat.c: Ditto.
12021         * hppa-linux-tdep.c: Ditto.
12022         * hppanbsd-tdep.c: Ditto.
12023         * hppa-tdep.c: Ditto.
12024         * hppa-tdep.h: Ditto.
12025         * hpux-thread.c: Ditto.
12026         * i386-cygwin-tdep.c: Ditto.
12027         * i386-darwin-nat.c: Ditto.
12028         * i386gnu-nat.c: Ditto.
12029         * i386-linux-nat.c: Ditto.
12030         * i386-linux-tdep.c: Ditto.
12031         * i386-nat.c: Ditto.
12032         * i386-nat.h: Ditto.
12033         * i386nbsd-tdep.c: Ditto.
12034         * i386-sol2-nat.c: Ditto.
12035         * i386-stub.c: Ditto.
12036         * i386-tdep.c: Ditto.
12037         * i386-tdep.h: Ditto.
12038         * i387-tdep.c: Ditto.
12039         * ia64-linux-nat.c: Ditto.
12040         * ia64-linux-tdep.c: Ditto.
12041         * ia64-tdep.c: Ditto.
12042         * infcall.c: Ditto.
12043         * infcall.h: Ditto.
12044         * infcmd.c: Ditto.
12045         * inferior.c: Ditto.
12046         * inferior.h: Ditto.
12047         * infloop.c: Ditto.
12048         * inflow.c: Ditto.
12049         * infrun.c: Ditto.
12050         * interps.c: Ditto.
12051         * interps.h: Ditto.
12052         * iq2000-tdep.c: Ditto.
12053         * irix5-nat.c: Ditto.
12054         * jit.c: Ditto.
12055         * jit.h: Ditto.
12056         * jv-exp.y: Ditto.
12057         * jv-lang.c: Ditto.
12058         * jv-lang.h: Ditto.
12059         * jv-typeprint.c: Ditto.
12060         * jv-valprint.c: Ditto.
12061         * language.c: Ditto.
12062         * language.h: Ditto.
12063         * linespec.c: Ditto.
12064         * linux-fork.c: Ditto.
12065         * linux-nat.c: Ditto.
12066         * linux-thread-db.c: Ditto.
12067         * lm32-tdep.c: Ditto.
12068
12069 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12070
12071         * m2-exp.y: Comment cleanup, mostly periods and spaces.
12072         * m2-lang.c: Ditto.
12073         * m2-typeprint.c: Ditto.
12074         * m2-valprint.c: Ditto.
12075         * m32c-tdep.c: Ditto.
12076         * m32r-linux-nat.c: Ditto.
12077         * m32r-rom.c: Ditto.
12078         * m32r-tdep.c: Ditto.
12079         * m32r-tdep.h: Ditto.
12080         * m68hc11-tdep.c: Ditto.
12081         * m58klinux-nat.c: Ditto.
12082         * m68k-tdep.c: Ditto.
12083         * m88k-tdep.c: Ditto.
12084         * m88k-tdep.h: Ditto.
12085         * machoread.c: Ditto.
12086         * macrocmd.c: Ditto.
12087         * macroexp.c: Ditto.
12088         * macrotab.c: Ditto.
12089         * main.c: Ditto.
12090         * maint.c: Ditto.
12091         * mdebugread.c: Ditto.
12092         * mdebugread.h: Ditto.
12093         * memattr.c: Ditto.
12094         * memattr.h: Ditto.
12095         * memory-map.h: Ditto.
12096         * mep-tdep.c: Ditto.
12097         * microblaze-rom.c: Ditto.
12098         * microblaze-tdep.c: Ditto.
12099         * minsyms.c: Ditto.
12100         * mips-irix-tdep.c: Ditto.
12101         * mips-linux-nat.c: Ditto.
12102         * mips-linux-tdep.c: Ditto.
12103         * mips-linux-tdep.h: Ditto.
12104         * mipsnbsd-nat.c: Ditto.
12105         * mipsnbsd-tdep.c: Ditto.
12106         * mipsread.c: Ditto.
12107         * mips-tdep.c: Ditto.
12108         * mips-tdep.h: Ditto.
12109         * mn10300-linux-tdep.c: Ditto.
12110         * mn10300-tdep.c: Ditto.
12111         * mn10300-tdep.h: Ditto.
12112         * monitor.c: Ditto.
12113         * monitor.h: Ditto.
12114         * moxie-tdep.c: Ditto.
12115         * moxie-tdep.h: Ditto.
12116         * mt-tdep.c: Ditto.
12117
12118 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
12119
12120         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12121
12122 2011-01-08  Robert Millan  <rmh@gnu.org>
12123
12124         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12125
12126 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12127
12128         * charset.c (_initialize_charset): Fix typo in string.
12129
12130 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12131
12132         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12133         for i18n.
12134         * tui/tui-layout.c (tui_set_layout_for_display_command):
12135         Split line so that operator goes to beginning of line.
12136         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12137         assignment out of if statement.
12138
12139 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12140
12141         * ada-lang.c: Comment cleanup, mostly periods and spaces.
12142         * ada-lang.h: Ditto.
12143         * ada-tasks.c: Ditto.
12144         * ada-valprint.c: Ditto.
12145         * aix-threads.c: Ditto.
12146         * alpha-linux-nat.c: Ditto.
12147         * alpha-linux-tdep.c: Ditto.
12148         * alpha-mdebug-tdep.c: Ditto.
12149         * alpha-nat.c: Ditto.
12150         * alpha-osf1-tdep.c: Ditto.
12151         * alpha-tdep.c: Ditto.
12152         * alphabsd-nat.c: Ditto.
12153         * alphabsd-tdep.c: Ditto.
12154         * amd64-darwin-tdep.c: Ditto.
12155         * amd64-linux-nat.c: Ditto.
12156         * amd64-linux-tdep.c: Ditto.
12157         * amd64-sol2-tdep.c: Ditto.
12158         * amd64-tdep.c: Ditto.
12159         * amd64-fbsd-tdep.c: Ditto.
12160         * amd64-nbsd-tdep.c: Ditto.
12161         * amd64-obsd-tdep.c: Ditto.
12162         * amd64-linux-nat.c: Ditto.
12163         * amd64-linux-tdep.c: Ditto.
12164         * arm-tdep.c: Ditto.
12165         * arm-tdep.h: Ditto.
12166         * armnbsd-nat.c: Ditto.
12167         * avr-tdep.c: Ditto.
12168         * bfin-tdep.c: Ditto.
12169         * bsd-kvm.c: Ditto.
12170         * c-typeprintc: Ditto.
12171         * c-valprint.c: Ditto.
12172         * coff-pe-read.h: Ditto.
12173         * coffreead.c: Ditto.
12174         * cris-tdep.c: Ditto.
12175         * d-lang.c: Ditto.
12176         * darwin-nat-info.c: Ditto.
12177         * darwin-nat.c: Ditto.
12178         * dbug-rom.c: Ditto.
12179         * dbxread.c: Ditto.
12180         * dcache.c: Ditto.
12181         * dcache.h: Ditto.
12182         * dec-thread.c: Ditto.
12183         * defs.h: Ditto.
12184         * demangle.c: Ditto.
12185         * dicos-tdep.c: Ditto.
12186         * dictionary.c: Ditto.
12187         * dictionary.h: Ditto.
12188         * dink32-rom.c: Ditto.
12189         * disasm.c: Ditto.
12190         * doublest.c: Ditto.
12191         * dsrec.c: Ditto.
12192         * dummy-frame.c: Ditto.
12193         * dwarf2-frame.c: Ditto.
12194         * dwarf2expr.c: Ditto.
12195         * dwarf2loc.c: Ditto.
12196         * dwarf2read.c: Ditto.
12197         * elfread.c: Ditto.
12198         * environ.c: Ditto.
12199         * eval.c: Ditto.
12200         * event-top.h: Ditto.
12201         * exceptions.c: Ditto.
12202         * exceptions.h: Ditto.
12203         * exec.c: Ditto.
12204         * expprint.c: Ditto.
12205         * expression.h: Ditto.
12206         * f-exp.y: Ditto.
12207         * f-lang.c: Ditto.
12208         * f-lang.h: Ditto.
12209         * f-typeprint.c: Ditto.
12210         * f-valprint.c: Ditto.
12211         * fbsd-nat.c: Ditto.
12212         * findvar.c: Ditto.
12213         * fork-child.c: Ditto.
12214         * frame.c: Ditto.
12215         * frame.h: Ditto.
12216         * frv-linux-tdep.c: Ditto.
12217         * frv-tdep.c: Ditto.
12218         * gcore.c: Ditto.
12219         * gdb-stabs.h: Ditto.
12220         * gdb_assert.h: Ditto.
12221         * gdb_string.h: Ditto.
12222         * gdb_thread_db.h: Ditto.
12223         * gdb_wait.h: Ditto.
12224         * gdbarch.sh: Ditto.
12225         * gdbcore.h: Ditto.
12226         * gdbthread.h: Ditto.
12227         * gdbtypes.c: Ditto.
12228         * gdbtypes.h: Ditto.
12229         * gnu-nat.c: Ditto.
12230         * gnu-nat.h: Ditto.
12231         * gnu-v2-abi.c: Ditto.
12232         * gnu-v3-abi.c: Ditto.
12233         * go32-nat.c: Ditto.
12234         * gdbarch.c: Regenerate.
12235         * gdbarch.h: Regenerate.
12236
12237 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12238
12239         * ax-gdb.c: Adjust some long output strings.
12240         * breakpoint.c: Ditto.
12241         * charset.c: Ditto.
12242         * cp-abi.c: Ditto.
12243         * infcall.c: Ditto.
12244         * infrun.c: Ditto.
12245         * linux-nat.c: Ditto.
12246         * solib-pa64.c: Ditto.
12247         * solib-som.c: Ditto.
12248
12249 2011-01-06  Tom Tromey  <tromey@redhat.com>
12250
12251         PR python/12367:
12252         * NEWS: Add item.
12253         * python/python.c (GdbMethods): Add "newest_frame" method.
12254         * python/python-internal.h (gdbpy_newest_frame): Declare.
12255         * python/py-frame.c (gdbpy_newest_frame): New function.
12256
12257 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12258
12259         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12260         * jit.c (jit_debug): New variable.
12261         (show_jit_debug): New function.
12262         (struct target_buffer): Use ULONGEST.
12263         (bfd_open_from_target_memory): Likewise.
12264         (jit_register_code, jit_inferior_init): Add debug output.
12265         (_initialize_jit): Register "debug jit" command.
12266
12267 2011-01-06  Tom Tromey  <tromey@redhat.com>
12268
12269         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12270         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12271         and ARCH_FRAME.
12272
12273 2011-01-06  Tom Tromey  <tromey@redhat.com>
12274
12275         * python/py-frame.c (frapy_block): Use get_frame_block.
12276
12277 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12278
12279         Do not stop on SIGPRIO signals by default
12280         * infrun.c (_initialize_infrun): Unset signal_stop and
12281         signal_print for TARGET_SIGNAL_PRIO.
12282
12283 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12284
12285         * ada-tasks.c: Fix style violation in comment.
12286
12287 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12288
12289         * linespec.c (decode_compound, find_method): Remove trailing \n
12290         at end of error string.
12291         * solib-irix.c (irix_current_sos): Likewise.
12292         * varobj.c (uninstall_variable): Likewise.
12293
12294 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12295
12296         * copyright.py: New script.
12297         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12298         Launch emacs without exec'ing. Call copyright.py afterwards.
12299
12300 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12301
12302         * addrmap.c: Shorten lines of >= 80 columns.
12303         * arch-utils.c: Ditto.
12304         * arch-utils.h: Ditto.
12305         * ax-gdb.c: Ditto.
12306         * ax-general.c: Ditto.
12307         * bcache.c: Ditto.
12308         * blockframe.c: Ditto.
12309         * breakpoint.c: Ditto.
12310         * buildsym.c: Ditto.
12311         * c-lang.c: Ditto.
12312         * c-typeprint.c: Ditto.
12313         * charset.c: Ditto.
12314         * coffread.c: Ditto.
12315         * command.h: Ditto.
12316         * corelow.c: Ditto.
12317         * cp-abi.c: Ditto.
12318         * cp-namespace.c: Ditto.
12319         * cp-support.c: Ditto.
12320         * dbug-rom.c: Ditto.
12321         * dbxread.c: Ditto.
12322         * defs.h: Ditto.
12323         * dfp.c: Ditto.
12324         * dfp.h: Ditto.
12325         * dictionary.c: Ditto.
12326         * disasm.c: Ditto.
12327         * doublest.c: Ditto.
12328         * dwarf2-frame.c: Ditto.
12329         * dwarf2expr.c: Ditto.
12330         * dwarf2loc.c: Ditto.
12331         * dwarf2read.c: Ditto.
12332         * elfread.c: Ditto.
12333         * eval.c: Ditto.
12334         * event-loop.c: Ditto.
12335         * event-loop.h: Ditto.
12336         * exceptions.h: Ditto.
12337         * exec.c: Ditto.
12338         * expprint.c: Ditto.
12339         * expression.h: Ditto.
12340         * f-lang.c: Ditto.
12341         * f-valprint.c: Ditto.
12342         * findcmd.c: Ditto.
12343         * frame-base.c: Ditto.
12344         * frame-unwind.c: Ditto.
12345         * frame-unwind.h: Ditto.
12346         * frame.c: Ditto.
12347         * frame.h: Ditto.
12348         * gcore.c: Ditto.
12349         * gdb-stabs.h: Ditto.
12350         * gdb_assert.h: Ditto.
12351         * gdb_dirent.h: Ditto.
12352         * gdb_obstack.h: Ditto.
12353         * gdbcore.h: Ditto.
12354         * gdbtypes.c: Ditto.
12355         * gdbtypes.h: Ditto.
12356         * inf-ttrace.c: Ditto.
12357         * infcall.c: Ditto.
12358         * infcmd.c: Ditto.
12359         * inflow.c: Ditto.
12360         * infrun.c: Ditto.
12361         * inline-frame.h: Ditto.
12362         * language.c: Ditto.
12363         * language.h: Ditto.
12364         * libunwind-frame.c: Ditto.
12365         * libunwind-frame.h: Ditto.
12366         * linespec.c: Ditto.
12367         * linux-nat.c: Ditto.
12368         * linux-nat.h: Ditto.
12369         * linux-thread-db.c: Ditto.
12370         * machoread.c: Ditto.
12371         * macroexp.c: Ditto.
12372         * macrotab.c: Ditto.
12373         * main.c: Ditto.
12374         * maint.c: Ditto.
12375         * mdebugread.c: Ditto.
12376         * memattr.c: Ditto.
12377         * minsyms.c: Ditto.
12378         * monitor.c: Ditto.
12379         * monitor.h: Ditto.
12380         * objfiles.c: Ditto.
12381         * objfiles.h: Ditto.
12382         * osabi.c: Ditto.
12383         * p-typeprint.c: Ditto.
12384         * p-valprint.c: Ditto.
12385         * parse.c: Ditto.
12386         * printcmd.c: Ditto.
12387         * proc-events.c: Ditto.
12388         * procfs.c: Ditto.
12389         * progspace.c: Ditto.
12390         * progspace.h: Ditto.
12391         * psympriv.h: Ditto.
12392         * psymtab.c: Ditto.
12393         * record.c: Ditto.
12394         * regcache.c: Ditto.
12395         * regcache.h: Ditto.
12396         * remote-fileio.c: Ditto.
12397         * remote.c: Ditto.
12398         * ser-mingw.c: Ditto.
12399         * ser-tcp.c: Ditto.
12400         * ser-unix.c: Ditto.
12401         * serial.c: Ditto.
12402         * serial.h: Ditto.
12403         * solib-frv.c: Ditto.
12404         * solib-irix.c: Ditto.
12405         * solib-osf.c: Ditto.
12406         * solib-pa64.c: Ditto.
12407         * solib-som.c: Ditto.
12408         * solib-sunos.c: Ditto.
12409         * solib-svr4.c: Ditto.
12410         * solib-target.c: Ditto.
12411         * solib.c: Ditto.
12412         * somread.c: Ditto.
12413         * source.c: Ditto.
12414         * stabsread.c: Ditto.
12415         * stabsread.c: Ditto.
12416         * stack.c: Ditto.
12417         * stack.h: Ditto.
12418         * symfile-mem.c: Ditto.
12419         * symfile.c: Ditto.
12420         * symfile.h: Ditto.
12421         * symmisc.c: Ditto.
12422         * symtab.c: Ditto.
12423         * symtab.h: Ditto.
12424         * target-descriptions.c: Ditto.
12425         * target-memory.c: Ditto.
12426         * target.c: Ditto.
12427         * target.h: Ditto.
12428         * terminal.h: Ditto.
12429         * thread.c: Ditto.
12430         * top.c: Ditto.
12431         * tracepoint.c: Ditto.
12432         * tracepoint.h: Ditto.
12433         * ui-file.c: Ditto.
12434         * ui-file.h: Ditto.
12435         * ui-out.h: Ditto.
12436         * user-regs.c: Ditto.
12437         * user-regs.h: Ditto.
12438         * utils.c: Ditto.
12439         * valarith.c: Ditto.
12440         * valops.c: Ditto.
12441         * valprint.c: Ditto.
12442         * valprint.h: Ditto.
12443         * value.c: Ditto.
12444         * varobj.c: Ditto.
12445         * varobj.h: Ditto.
12446         * vec.h: Ditto.
12447         * xcoffread.c: Ditto.
12448         * xcoffsolib.c: Ditto.
12449         * xcoffsolib.h: Ditto.
12450         * xml-syscall.c: Ditto.
12451         * xml-tdesc.c: Ditto.
12452
12453 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12454
12455         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12456         * cli/cli-decode.c: Ditto.
12457         * cli/cli-dump.c: Ditto.
12458         * cli/cli-logging.c: Ditto.
12459         * cli/cli-script.c: Ditto.
12460         * cli/cli-setshow.c: Ditto.
12461         * common/signals.c: Ditto.
12462         * mi/mi-cmd-break.c: Ditto.
12463         * mi/mi-cmd-disas.c: Ditto.
12464         * mi/mi-cmd-stack.c: Ditto.
12465         * mi/mi-cmd-var.c: Ditto.
12466         * mi/mi-cmds.c: Ditto.
12467         * mi/mi-common.h: Ditto.
12468         * mi/mi-console.c: Ditto.
12469         * mi/mi-interp.c: Ditto.
12470         * mi/mi-main.c: Ditto.
12471         * osf-share/cma_attr.c: Ditto.
12472         * osf-share/cma_deb_core.h: Ditto.
12473         * osf-share/cma_debug_client.h: Ditto.
12474         * osf-share/cma_handle.h: Ditto.
12475         * osf-share/cma_mutex.h: Ditto.
12476         * osf-share/cma_stack_int.h: Ditto.
12477         * osf-share/cma_tcb_defs.h: Ditto.
12478         * python/py-auto-load.c: Ditto.
12479         * python/py-breakpoint.c: Ditto.
12480         * python/py-cmd.c: Ditto.
12481         * python/py-frame.c: Ditto.
12482         * python/py-objfile.c: Ditto.
12483         * python/py-param.c: Ditto.
12484         * python/py-progspace.c: Ditto.
12485         * python/py-symbol.c: Ditto.
12486         * python/py-value.c: Ditto.
12487         * python/python-internal.h: Ditto.
12488         * python/python.c: Ditto.
12489         * tui/tui-data.c: Ditto.
12490         * tui/tui-disasm.c: Ditto.
12491         * tui/tui-hooks.c: Ditto.
12492         * tui/tui-io.c: Ditto.
12493         * tui/tui-layout.c: Ditto.
12494         * tui/tui-regs.c: Ditto.
12495         * tui/tui-source.c: Ditto.
12496         * tui/tui-stack.c: Ditto.
12497         * tui/tui-win.c: Ditto.
12498         * tui/tui-windata.c: Ditto.
12499         * tui/tui-winsource.c: Ditto.
12500
12501 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12502
12503         * configure.ac, gdb.1: Copyright year update.
12504
12505 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12506
12507         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12508         this_pc_in_block, morestack_msym and morestack_name.  Check for
12509         "__morestack" minimal symbol there.
12510
12511 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12512
12513         * symfile.c (find_sym_fns): Add call to dont_repeat.
12514
12515 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12516
12517         Copyright year update in most files (performed by copyright.sh).
12518
12519 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12520
12521         * top.c (print_gdb_version): Update copyright year in version output.
12522
12523 For older changes see ChangeLog-2010.
12524 \f
12525 Local Variables:
12526 mode: change-log
12527 left-margin: 8
12528 fill-column: 74
12529 version-control: never
12530 coding: utf-8
12531 End: