296feb7e2e232c5fb7e501aa06d6e56a64de1418
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
2
3         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
4         trampoline to be introduced in OpenBSD 5.0.
5
6 2011-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7
8         Fix build regression from the PR threads/10729 fix.
9         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
10         not LP->PTID.
11
12 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
13
14         * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
15         `optarg' to `oind' and `oarg', respectively(-Wshadow).
16         (mi_cmd_data_read_memory): Ditto.
17         (mi_cmd_data_read_memory_bytes): Ditto.
18         (mi_cmd_data_write_memory): Ditto.
19
20 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
21
22         * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
23         `oind' and `oarg', respectively(-Wshadow).
24         (mi_valid_noargs): Ditto.
25
26 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
27
28         * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
29         `oind' and `oarg', respectively(-Wshadow).
30
31 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
32
33         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
34         `optarg' to `oind' and `oarg', respectively(-Wshadow).
35         (mi_cmd_target_file_put): Ditto.
36         (mi_cmd_target_file_delete): Ditto.
37
38 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
39
40         * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
41         `optarg' to `oind' and `oarg', respectively(-Wshadow).
42         (mi_cmd_env_dir): Ditto.
43
44 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
45
46         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
47         `optarg' to `oind' and `oarg', respectively(-Wshadow).
48
49 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
50
51         * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
52         `optparg' to `oind' and `oarg', respectively(-Wshadow).
53         (mi_cmd_break_watch): Ditto.
54
55 2011-12-16  Tom Tromey  <tromey@redhat.com>
56
57         * linespec.c (collect_symbols): Call maybe_add_address after
58         calling symbol_to_sal.
59         (minsym_found): Call maybe_add_address here.
60         (search_minsyms_for_name): Don't call maybe_add_address.
61
62 2011-12-16  Tom Tromey  <tromey@redhat.com>
63
64         * linespec.c (struct collect_info) <objfile>: Remove field.
65         (decode_objc): Update.
66         (find_method): Update.
67         (decode_variable): Update.
68         (struct minsym_and_objfile): New.
69         (struct collect_minsyms): New.
70         (classify_mtype): New function.
71         (compare_msyms): Likewise.
72         (add_minsym): Likewise.
73         (check_minsym): Remove.
74         (search_minsyms_for_name): Sort minsyms and apply only those with
75         top priority.
76
77 2011-12-16  Tom Tromey  <tromey@redhat.com>
78
79         * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
80
81 2011-12-16  Pedro Alves  <pedro@codesourcery.com>
82
83         * inf-loop.c: Include top.h.
84         (inferior_event_handler): Call check_frame_language.
85         * top.c (check_frame_language_change): New, factored out from ...
86         (execute_command): ... this.  Use check_frame_language_change.
87         * top.h (check_frame_language_change): Declare.
88
89 2011-12-16  asmwarrior  <asmwarrior@gmail.com>  (obvious fix)
90
91         * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
92         prototypes.
93
94 2011-12-16  Doug Evans  <dje@google.com>
95
96         * NEWS: Add entry for stdio gdbserver.
97
98 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
99
100         * python/python.c: Define python_excp_enums.
101         (eval_python_from_control_command): Do not call gdbpy_print_stack.
102         (python_command): Ditto.
103         (gdbpy_print_stack): Rewrite to use new enum constants.
104         (maint_set_python): Remove function.
105         (maint_show_python): Ditto.
106         (_initialize_python): Do not add "maint" commands.  Add "set/show
107         python print-stack commands".
108         * NEWS: Update to reflect removal for "maint set/show
109         print-stack"
110
111 2011-12-15  Doug Evans  <dje@google.com>
112
113         * exceptions.c (catcher_list_size): New function.
114         (last_message): Delete.
115         (exception_messages, exception_messages_size): New static globals.
116         (throw_it): Use exception_messages array to handle nested calls.
117
118 2011-12-15  Tom Tromey  <tromey@redhat.com>
119
120         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
121         do_cleanups call.
122
123 2011-12-14  Doug Evans  <dje@google.com>
124
125         * defs.h (wait_to_die_with_timeout): Declare.
126         * utils.c: #include "gdb_wait.h".
127         (sigalrm_handler, wait_to_die_with_timeout): New functions.
128         * ser-pipe.c: Don't #include "gdb_wait.h".
129         (pipe_close): Give child a chance to die on its own after closing
130         its stdin before SIGTERM'ing it.
131
132 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
133             Tom Tromey  <tromey@redhat.com>
134
135         * ada-lang.c (add_nonlocal_symbols): Initialize data to
136         all zeros.  Remove setting of data.arg_sym to NULL.
137
138 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
139
140         PR threads/10729
141
142         * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
143         pointer.
144         (linux_nat_prepare_to_resume): New global.
145         (lwp_free): New.
146         (purge_lwp_list): Use it.
147         (add_lwp): Call linux_nat_new_thread even on the first LWP.
148         Adjust to interface change.
149         (delete_lwp): Call lwp_free instead of xfree.
150         (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
151         (linux_handle_syscall_trap, linux_handle_extended_wait)
152         (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
153         linux_nat_prepare_to_resume before resuming.
154         (linux_stop_lwp): New.
155         (linux_nat_set_new_thread): Adjust.
156         (linux_nat_set_prepare_to_resume): New.
157         * linux-nat.h (struct arch_lwp_info): Forward declare.
158         (struct lwp_info) <arch_private>: New field.
159         (linux_stop_lwp): Declare.
160         (linux_nat_set_new_thread): Adjust.
161         (linux_nat_set_prepare_to_resume): New.
162
163         * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
164         (struct i386_debug_reg_state): Move to i386-nat.h.
165         (dr_mirror): Comment.
166         (i386_debug_reg_state): New.
167         (i386_update_inferior_debug_regs): Simplify.
168         (i386_stopped_data_address): Use the debug register state from the
169         inferior, not from the local cache.
170         * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
171         unset_status fields.  New get_addr and get_control fields.
172         (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
173         (DR_NADDR, DR_STATUS): New.
174         (struct i386_debug_reg_state): Moved from i386-nat.c.
175
176         * amd64-linux-nat.c (struct arch_lwp_info): New.
177         (amd64_linux_dr): Delete global.
178         (amd64_linux_dr_get_addr): New.
179         (amd64_linux_dr_get_control): New.
180         (amd64_linux_dr_unset_status): Delete.
181         (amd64_linux_dr_set_addr): Reimplement.
182         (amd64_linux_dr_reset_addr): Delete.
183         (update_debug_registers_callback): New.
184         (amd64_linux_dr_set_control): Reimplement.
185         (amd64_linux_dr_set_addr): Reimplement.
186         (amd64_linux_prepare_to_resume): New.
187         (amd64_linux_new_thread): Change parameter to an lwp pointer.
188         Reimplement.
189         (_initialize_amd64_linux_nat): No longer install
190         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
191         amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
192         amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
193         amd64_linux_prepare_to_resume.
194         * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
195         (DR_CONTROL): Delete.
196         (struct arch_lwp_info): New.
197         (i386_linux_dr): Delete global.
198         (i386_linux_dr_set_control): Reimplement.
199         (i386_linux_dr_get_addr): New.
200         (i386_linux_dr_set_addr): Reimplement.
201         (i386_linux_dr_get_control): New.
202         (update_debug_registers_callback): New.
203         (i386_linux_dr_unset_status): Delete.
204         (i386_linux_dr_set_addr): Reimplement.
205         (i386_linux_prepare_to_resume): New.
206         (i386_linux_new_thread): Change parameter to an lwp pointer.
207         Reimplement.
208         (_initialize_i386_linux_nat): No longer install
209         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
210         i386_linux_dr_get_control as i386_dr_low.get_control.  Install
211         i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
212         i386_linux_prepare_to_resume.
213
214         * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
215         lwp pointer.  Adjust.
216         * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
217         * mips-linux-nat.c (mips_linux_new_thread): Likewise.
218         * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
219         * s390-nat.c (s390_fix_watch_points): Likewise.
220
221         * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
222         (DR_CONTROL): Delete.
223         (i386_darwin_dr_reset_addr): Delete.
224         (i386_darwin_dr_get_addr): New.
225         (i386_darwin_dr_get_control): New.
226         * go32-nat.c
227         (go32_get_dr7, go32_get_dr): New.
228         (init_go32_ops): No longer install i386_dr_low.reset_addr.
229         Install go32_get_dr7 as i386_dr_low.get_control.  Install
230         go32_get_dr as i386_dr_low.get_addr.
231         * i386bsd-nat.c (i386bsd_dr_get): New.
232         (i386bsd_dr_reset_addr): Delete.
233         (i386bsd_dr_get_addr): New.
234         (i386bsd_dr_get_status): Use i386bsd_dr_get.
235         (i386bsd_dr_get_control): New.
236         * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
237         (i386bsd_dr_get_addr): New.
238         (i386bsd_dr_get_control): New.
239         * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
240         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
241         i386bsd_dr_get_control as i386_dr_low.get_control.  Install
242         i386bsd_dr_get_addr as i386_dr_low.get_addr.
243         * windows-nat.c (init_windows_ops): No longer install
244         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
245         cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
246         as i386_dr_low.get_addr.
247         (cygwin_get_dr): New.
248         (cygwin_get_dr7): New.
249
250 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
251
252         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
253         target_write_raw_memory.
254         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
255         target_write_raw_memory.
256         * microblaze-linux-tdep.c
257         (microblaze_linux_memory_remove_breakpoint): Use
258         target_write_raw_memory.
259         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
260         target_write_raw_memory.
261
262 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
263
264         * linespec.c (decode_line_internal): Make static.
265
266 2011-12-14  Yao Qi  <yao@codesourcery.com>
267
268         * breakpoint.c (create_breakpoint): Set canonical.addr_string
269         for static tracepoint.
270
271 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
272
273         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
274         * version.in: Bump version to 7.4.50.20111213-cvs.
275
276 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
277
278         * NEWS: Create a new section for the next release branch.
279         Rename the section of the current branch, now that it has
280         been cut.
281
282 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
283
284         * ada-lang.c (ada_exception_support_info_sniffer): Improve
285         error message.
286
287 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
288
289         * ada-lang.c (struct ada_inferior_data) [exception_info]:
290         New field.
291         (exception_info): Delete.
292         (ada_exception_support_info_sniffer): Get exception_support_info
293         data from our per-inferior data.  Adjust code accordingly.
294         (ada_unhandled_exception_name_addr_from_raise): Likewise.
295         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
296         (ada_executable_changed_observer): Delete.
297         (_initialize_ada_language): Remove call to
298         observer_attach_executable_changed.
299
300 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
301
302         * ada-lang.c (ada_has_this_exception_support): Raise an error
303         if we could find the Ada exception hook in the Ada runtime,
304         but no debugging info for that hook.
305
306 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
307
308         * ada-lang.c (ada_has_this_exception_support): New function,
309         extracted out of ada_exception_sal and ada_exception_sal.
310         (ada_exception_support_info_sniffer): Simplify by using
311         ada_has_this_exception_support.
312         (ada_exception_sal): Replace unnecessary checks by assertions.
313         Minor simplifications.
314
315 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
316
317         * breakpoint.c (update_global_location_list): Remove nested
318         definition of `b'(-Wshadow).
319
320 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
321
322         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
323         `error_flag'(-Wshadow).
324
325 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
326
327         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
328         `abfd'(-Wshadow).
329
330 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
331
332         * annotate.c (annotate_array_section_begin): Rename `index' to
333         `idx'(-Wshadow).
334
335 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
336
337         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
338         `idx'(-Wshadow).
339
340 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
341
342         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
343         `syscall' to `syscall_number'(-Wshadow).
344
345 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
346
347         * ada-lang.c (remove_extra_symbols): Rename `remove' to
348         `remove_p'(-Wshadow).
349
350 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
351
352         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
353         `ren_sym'(-Wshadow).
354
355 2011-12-10  Doug Evans  <dje@google.com>
356
357         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
358         debug_types_section.  All uses updated.
359         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
360         to is_debug_types_section.
361
362         * python/py-auto-load.c (source_section_scripts): Call xfree
363         instead of free.
364
365 2011-12-10  Hui Zhu  <teawater@gmail.com>
366             Yao Qi  <yao@codesourcery.com>
367
368         * tracepoint.c (start_tracing): Clear `inserted' flag.
369
370 2011-12-10  Hui Zhu  <teawater@gmail.com>
371
372         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
373
374 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
375
376         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
377         `bpoint'(-Wshadow).
378
379 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
380
381         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
382         `marker' variables to `sal2' and `tpmarker' respectively
383         (-Wshadow).
384
385 2011-12-09  Andrew Pinski  <apinski@cavium.com>
386
387         * linespec.c (hash_address_entry): Use iterative_hash_object on each
388         field rather than the struct itself.
389
390 2011-12-09  Tom Tromey  <tromey@redhat.com>
391
392         * breakpoint.c (compare_breakpoints): New function.
393         (clear_command): Remove duplicate breakpoints.  Properly clean
394         up.
395
396 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
397             Maciej W. Rozycki  <macro@codesourcery.com>
398
399         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
400         address chunks retrieved from decoded lui/addiu pairs.
401
402 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
403
404         * mips-tdep.c (extended_offset): Correct calculation.
405         (unpack_mips16): Correct bitfield positions used for extraction
406         of the immediate argument; fix sign-extension of same.
407         (extended_mips16_next_pc): Correct B instruction's offset
408         calculation.  Correct register decoding of the BEQZ and BNEZ
409         as well as jump-register instructions.  Handle compact jumps.
410
411 2011-12-08  Tom Tromey  <tromey@redhat.com>
412
413         * objfiles.h (struct objfile): Remove obsolete comment.
414         * objfiles.c (build_objfile_section_table): Remove obsolete
415         comment.
416
417 2011-12-07  Stan Shebs  <stan@codesourcery.com>
418
419         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
420         maintainer of the tic6x target.
421
422 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
423
424         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
425         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
426         (arm_deal_with_atomic_sequence_raw): Likewise.
427         (arm_deal_with_atomic_sequence): Likewise.
428         (arm_software_single_step): Call it.
429         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
430
431 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
432
433         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
434         where appropriate.
435         * s390-tdep.h: Likewise.
436
437 2011-12-07  Tristan Gingold  <gingold@adacore.com>
438
439         * machoread.c (macho_symtab_read): Do not consider N_OPT as
440         a debugging stab.  Improve complaint message.
441
442 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
443
444         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
445         load adjustment if still within the prologue.
446
447 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
448
449         * mips-tdep.c (mips32_next_pc): Fix floating point condition
450         code mask.
451
452 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
453
454         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
455         of BLTZ* and BGEZ* instructions.
456
457 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
458
459         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
460         performed to determine whether an address refers to standard
461         MIPS or MIPS16 code.
462         (mips16_next_pc): Use mips_pc_is_mips16 instead of
463         is_mips16_addr.
464
465 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
466
467         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
468         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
469         memory writes too.
470         * breakpoint.h (breakpoint_restore_shadows): Delete.
471         (breakpoint_xfer_memory): Declare.
472         * mem-break.c (default_memory_insert_breakpoint)
473         (default_memory_remove_breakpoint): Use target_write_raw_memory.
474         (memory_xfer_partial): Rename to ...
475         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
476         here.
477         (memory_xfer_partial): New.
478         (target_write_raw_memory): New.
479         * target.h (target_write_raw_memory): New.
480
481 2011-12-06  Doug Evans  <dje@google.com>
482
483         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
484
485 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
486
487         * language.h (struct language_defn): Add new component
488         la_symbol_name_compare.
489         * symfile.h (struct quick_symbol_functions): Update the profile
490         of parameter "name_matcher" for the expand_symtabs_matching
491         method.  Update the documentation accordingly.
492         * ada-lang.h (ada_name_for_lookup): Add declaration.
493         * ada-lang.c (ada_name_for_lookup): New function, extracted out
494         from ada_iterate_over_symbols.
495         (ada_iterate_over_symbols): Do not encode symbol name anymore.
496         (ada_expand_partial_symbol_name): Adjust profile.
497         (ada_language_defn): Add value for la_symbol_name_compare field.
498         * linespec.c: #include "ada-lang.h".
499         (iterate_name_matcher): Add language parameter. Replace call
500         to strcmp_iw by call to language->la_symbol_name_compare.
501         (decode_variable): Encode COPY if current language is Ada.
502         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
503         of name_matcher parameter.  Adjust call to name_matcher.
504         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
505         (expand_partial_symbol_names): Update profile of parameter "fun".
506         * psymtab.h (expand_partial_symbol_names): Update profile of
507         parameter "fun".
508         * symtab.c (demangle_for_lookup): Update function documentation.
509         (search_symbols_name_matches): Add language parameter.
510         (expand_partial_symbol_name): Likewise.
511         * c-lang.c (c_language_defn, cplus_language_defn)
512         (asm_language_defn, minimal_language_defn): Add value for
513         la_symbol_name_compare field.
514         * d-lang.c (d_language_defn): Likewise.
515         * f-lang.c (f_language_defn): Ditto.
516         * jv-lang.c (java_language_defn): Ditto.
517         * m2-lang.c (m2_language_defn): Ditto.
518         * objc-lang.c (objc_language_defn): Ditto.
519         * opencl-lang.c (opencl_language_defn): Ditto.
520         * p-lang.c (pascal_language_defn): Ditto.
521         * language.c (unknown_language_defn, auto_language_defn)
522         (local_language_defn): Ditto.
523
524 2011-12-06  Tom Tromey  <tromey@redhat.com>
525
526         * linespec.c (iterate_over_all_matching_symtabs): Use
527         LA_ITERATE_OVER_SYMBOLS.
528         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
529         (find_function_symbols, decode_variable): Remove Ada special
530         case.
531         * language.h (struct language_defn) <la_iterate_over_symbols>: New
532         field.
533         (LA_ITERATE_OVER_SYMBOLS): New macro.
534         * language.c (unknown_language_defn, auto_language_defn)
535         (local_language_defn): Update.
536         * c-lang.c (c_language_defn, cplus_language_defn)
537         (asm_language_defn, minimal_language_defn): Update.
538         * d-lang.c (d_language_defn): Update.
539         * f-lang.c (f_language_defn): Update.
540         * jv-lang.c (java_language_defn): Update.
541         * m2-lang.c (m2_language_defn): Update.
542         * objc-lang.c (objc_language_defn): Update.
543         * opencl-lang.c (opencl_language_defn): Update.
544         * p-lang.c (pascal_language_defn): Update.
545         * ada-lang.c (ada_iterate_over_symbols): New function.
546         (ada_language_defn): Update.
547
548 2011-12-06  Tom Tromey  <tromey@redhat.com>
549             Joel Brobecker  <brobecker@acacore.com>
550
551         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
552         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
553         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
554         PR shlibs/8929, PR shlibs/7393:
555         * python/py-type.c (compare_maybe_null_strings): Rename from
556         compare_strings.
557         (check_types_equal): Update.
558         * utils.c (compare_strings): New function.
559         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
560         location changes.
561         * tracepoint.c (scope_info): Update.
562         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
563         * symtab.h (iterate_over_minimal_symbols)
564         (iterate_over_some_symtabs, iterate_over_symtabs)
565         (find_pcs_for_symtab_line, iterate_over_symbols)
566         (demangle_for_lookup): Declare.
567         (expand_line_sal): Remove.
568         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
569         (lookup_symtab_callback): New functions.
570         (lookup_symtab): Rewrite.
571         (demangle_for_lookup): New function, extract from
572         lookup_symbol_in_language.
573         (lookup_symbol_in_language): Use it.
574         (iterate_over_symbols): New function.
575         (find_line_symtab): Update.
576         (find_pcs_for_symtab_line): New functions.
577         (find_line_common): Add 'start' argument.
578         (decode_line_spec): Update.  Change argument to 'flags', change
579         interpretation.
580         (append_expanded_sal): Remove.
581         (append_exact_match_to_sals): Remove.
582         (expand_line_sal): Remove.
583         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
584         Remove.
585         <map_symtabs_matching_filename>: New field.
586         * stack.c (func_command): Only look in the current program space.
587         Use DECODE_LINE_FUNFIRSTLINE.
588         * source.c (line_info): Set pspace on sal.  Check program space in
589         the loop.  Use DECODE_LINE_LIST_MODE.
590         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
591         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
592         * python/python.c (gdbpy_decode_line): Update.
593         * psymtab.c (partial_map_expand_apply): New function.
594         (partial_map_symtabs_matching_filename): Rename from
595         lookup_partial_symbol.  Update arguments.
596         (lookup_symtab_via_partial_symtab): Remove.
597         (psym_functions): Update.
598         * objc-lang.h (parse_selector, parse_method): Don't declare.
599         (find_imps): Update.
600         * objc-lang.c (parse_selector, parse_method): Now static.
601         (find_methods): Change arguments.  Fill in a vector of symbol
602         names.
603         (uniquify_strings): New function.
604         (find_imps): Change arguments.
605         * minsyms.c (iterate_over_minimal_symbols): New function.
606         * linespec.h (enum decode_line_flags): New.
607         (struct linespec_sals): New.
608         (struct linespec_result) <canonical>: Remove.
609         <pre_expanded, addr_string, sals>: New fields.
610         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
611         (decode_line_full): Declare.
612         (decode_line_1): Update.
613         * linespec.c (struct address_entry, struct linespec_state, struct
614         collect_info): New types.
615         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
616         (eq_address_entry, maybe_add_address): New functions.
617         (total_number_of_methods): Remove.
618         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
619         functions.
620         (find_methods): Change arguments.  Don't canonicalize input.
621         Simplify logic.
622         (add_matching_methods, add_constructors)
623         (build_canonical_line_spec): Remove.
624         (filter_results, convert_results_to_lsals): New functions.
625         (decode_line_2): Change arguments.  Rewrite for new data
626         structures.
627         (decode_line_internal): Rename from decode_line_1.  Change
628         arguments.  Add cleanups.  Update for new data structures.
629         (linespec_state_constructor, linespec_state_destructor)
630         (decode_line_full, decode_line_1): New functions.
631         (decode_indirect): Change arguments.  Update.
632         (locate_first_half): Use skip_spaces.
633         (decode_objc): Change arguments.  Update for new data structures.
634         Simplify logic.
635         (decode_compound): Change arguments.  Add cleanups.  Remove
636         fallback code, replace with error.
637         (struct decode_compound_collector): New type.
638         (collect_one_symbol): New function.
639         (lookup_prefix_sym): Change arguments.  Update.
640         (compare_symbol_name, add_all_symbol_names_from_pspace)
641         (find_superclass_methods ): New functions.
642         (find_method): Rewrite.
643         (struct symtab_collector): New type.
644         (add_symtabs_to_list, collect_symtabs_from_filename): New
645         functions.
646         (symtabs_from_filename): Change API.  Rename from
647         symtab_from_filename.
648         (collect_function_symbols): New function.
649         (find_function_symbols): Change API.  Rename from
650         find_function_symbol.  Rewrite.
651         (decode_all_digits): Change arguments.  Rewrite.
652         (decode_dollar): Change arguments.  Use decode_variable.
653         (decode_label): Change arguments.  Rewrite.
654         (collect_symbols): New function.
655         (minsym_found): Change arguments.  Rewrite.
656         (check_minsym, search_minsyms_for_name)
657         (add_matching_symbols_to_info): New function.
658         (decode_variable): Change arguments.  Iterate over all symbols.
659         (symbol_found): Remove.
660         (symbol_to_sal): New function.
661         (init_linespec_result, destroy_linespec_result)
662         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
663         New functions.
664         (decode_digits_list_mode, decode_digits_ordinary): New functions.
665         * dwarf2read.c (dw2_map_expand_apply): New function.
666         (dw2_map_symtabs_matching_filename): Rename from
667         dw2_lookup_symtab.  Change arguments.
668         (dwarf2_gdb_index_functions): Update.
669         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
670         * defs.h (compare_strings): Declare.
671         * cli/cli-cmds.c (compare_strings): Move to utils.c.
672         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
673         filter_sals.
674         (compare_symtabs, filter_sals): New functions.
675         * breakpoint.h (struct bp_location) <line_number, source_file>:
676         New fields.
677         (struct breakpoint) <line_number, source_file>: Remove.
678         <filter>: New field.
679         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
680         (momentary_breakpoint_from_master, add_location_to_breakpoint):
681         Update for changes to locations.
682         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
683         breakpoint.
684         (create_breakpoint_sal): Add 'filter' argument.
685         (remove_sal, expand_line_sal_maybe): Remove.
686         (create_breakpoints_sal): Remove 'sals' argument.  Handle
687         pre-expanded sals and the filter.
688         (parse_breakpoint_sals): Use decode_line_full.
689         (check_fast_tracepoint_sals): Use get_sal_arch.
690         (create_breakpoint): Create a linespec_sals.  Update.
691         (break_range_command): Use decode_line_full.  Update.
692         (until_break_command): Update.
693         (clear_command): Update match conditions for linespec.c changes.
694         Use DECODE_LINE_LIST_MODE.
695         (say_where): Update for changes to locations.
696         (bp_location_dtor): Free 'source_file'.
697         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
698         (update_static_tracepoint): Update for changes to locations.
699         (update_breakpoint_locations): Disable ranged breakpoint if too
700         many locations match.  Update.
701         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
702         PCs.
703         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
704         (decode_line_spec_1): Update.  Change argument name to 'flags',
705         change interpretation.
706         * block.h (block_containing_function): Declare.
707         * block.c (block_containing_function): New function.
708         * skip.c (skip_function_command): Update.
709         (skip_re_set): Update.
710         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
711         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
712         * NEWS: Add entry.
713
714 2011-12-06  Tom Tromey  <tromey@redhat.com>
715
716         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
717         breakpoint's pspace to be NULL.
718         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
719         * breakpoint.c (init_raw_breakpoint): Conditionally set
720         breakpoint's pspace.
721         (init_breakpoint_sal): Don't set breakpoint's pspace.
722         (prepare_re_set_context): Conditionally switch program space.
723         (addr_string_to_sals): Check executing_startup on location's
724         program space.
725
726 2011-12-06  Tom Tromey  <tromey@redhat.com>
727
728         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
729         * breakpoint.c (should_be_inserted): Explicitly check if program
730         space is executing startup.
731         (describe_other_breakpoints): Update.
732         (disable_breakpoints_before_startup): Change executing_startup
733         earlier.  Remove loop.
734         (enable_breakpoints_after_startup): Likewise.
735         (init_breakpoint_sal): Don't use bp_startup_disabled.
736         (create_breakpoint): Don't use bp_startup_disabled.
737         (update_global_location_list): Use should_be_inserted.
738         (bkpt_re_set): Update.
739
740 2011-12-06  Tom Tromey  <tromey@redhat.com>
741
742         * python/lib/gdb/command/pretty_printers.py
743         (InfoPrettyPrinter.invoke1): Remove extra double quote.
744
745 2011-12-06  Tom Tromey  <tromey@redhat.com>
746
747         * NEWS: Add MI news.
748
749 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
750
751         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
752         (S390_LAST_BREAK_REGNUM): Likewise.
753         (S390_SYSTEM_CALL_REGNUM): Likewise.
754         (S390_NUM_REGS): Update.
755
756         (s390_regmap_last_break): Add declaration.
757         (s390x_regmap_last_break): Likewise.
758         (s390_regmap_system_call): Likewise.
759
760         (tdesc_s390_linux32v1): Add declaration.
761         (tdesc_s390_linux32v2): Likewise.
762         (tdesc_s390_linux64v1): Likewise.
763         (tdesc_s390_linux64v2): Likewise.
764         (tdesc_s390x_linux64v1): Likewise.
765         (tdesc_s390x_linux64v2): Likewise.
766
767         * s390-tdep.c: Include new target description files
768         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
769         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
770         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
771         (s390_cannot_store_register): New function.
772         (s390_write_pc): Likewise.
773         (s390_dwarf_regmap): Add fields for new registers.
774         (s390_regmap_gregset): Likewise.
775         (s390x_regmap_gregset): Likewise.
776         (s390_regmap_fpregset): Likewise.
777         (s390_regmap_upper): Likewise.
778         (s390_regmap_last_break): New variable.
779         (s390x_regmap_last_break): Likewise.
780         (s390_regmap_system_call): Likewise.
781         (s390_last_break_regset): Likewise.
782         (s390x_last_break_regset): Likewise.
783         (s390_system_call_regset): Likewise.
784         (s390_upper_regset_sections): Rename to ...
785         (s390_linux64_regset_sections): ... this.
786         (s390_linux32_regset_sections): New variable.
787         (s390x_linux64_regset_sections): Likewise.
788         (s390_linux32v1_regset_sections): Likewise.
789         (s390_linux32v2_regset_sections): Likewise.
790         (s390_linux64v1_regset_sections): Likewise.
791         (s390_linux64v2_regset_sections): Likewise.
792         (s390x_linux64v1_regset_sections): Likewise.
793         (s390x_linux64v2_regset_sections): Likewise.
794         (s390_regset_from_core_section): Handle .reg-s390-last-break and
795         .reg-s390-system-call core file sections.
796         (s390_core_read_description): Check for presence of
797         .reg-s390-last-break and .reg-s390-system-call core file
798         sections and return appropriate target description.
799         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
800         "last_break" and "system_call" in target description.  Install
801         appropriate gdbarch_core_regset_sections array.
802         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
803         (_initialize_s390_tdep): Initialize additional target descriptions.
804
805         * s390-nat.c: Include "elf/common.h".
806         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
807         (have_regset_last_break): New static variable.
808         (have_regset_system_call): Likewise.
809         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
810         (s390_native_collect): Likewise.
811         (fetch_regset, store_regset, check_regset): New functions.
812         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
813         and S390_SYSTEM_CALL_REGNUM.
814         (s390_linux_store_inferior_registers): Likewise.
815         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
816         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
817
818         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
819         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
820         (s390-linux32v1-expedite): Define.
821         (s390-linux32v2-expedite): Likewise.
822         (s390-linux64v1-expedite): Likewise.
823         (s390-linux64v2-expedite): Likewise.
824         (s390x-linux64v1-expedite): Likewise.
825         (s390x-linux64v2-expedite): Likewise.
826
827         * features/s390-linux32.xml: Add orig_r2 register.
828         * features/s390-linux64.xml: Likewise.
829         * features/s390x-linux64.xml: Likewise.
830         * features/s390-linux32v1.xml: New file.
831         * features/s390-linux32v2.xml: Likewise.
832         * features/s390-linux64v1.xml: Likewise.
833         * features/s390-linux64v2.xml: Likewise.
834         * features/s390x-linux64v1.xml: Likewise.
835         * features/s390x-linux64v2.xml: Likewise.
836
837         * features/s390-linux32.c: Regenerate.
838         * features/s390-linux64.c: Likewise.
839         * features/s390x-linux64.c: Likewise.
840         * features/s390-linux32v1.c: New generated file.
841         * features/s390-linux32v2.c: Likewise.
842         * features/s390-linux64v1.c: Likewise.
843         * features/s390-linux64v2.c: Likewise.
844         * features/s390x-linux64v1.c: Likewise.
845         * features/s390x-linux64v2.c: Likewise.
846
847         * regformats/s390-linux32.dat: Regenerate.
848         * regformats/s390-linux64.dat: Regenerate.
849         * regformats/s390x-linux64.dat: Regenerate.
850         * regformats/s390-linux32v1.dat: New generated file.
851         * regformats/s390-linux32v2.dat: Likewise.
852         * regformats/s390-linux64v1.dat: Likewise.
853         * regformats/s390-linux64v2.dat: Likewise.
854         * regformats/s390x-linux64v1.dat: Likewise.
855         * regformats/s390x-linux64v2.dat: Likewise.
856
857 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
858
859         * linux-nat.c (resume_stopped_resumed_lwps): Call
860         registers_changed.
861
862 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
863
864         * breakpoint.c: Include record.h.
865         (breakpoints_always_inserted_mode): Return false when the record
866         target is in use.
867
868 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
869
870         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
871         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
872         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
873         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
874
875 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
876
877         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
878         `i'(-Wshadow).
879
880 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
881
882         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
883
884 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
885
886         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
887         of `tdep'(-Wshadow).
888
889 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
890
891         Fix compilation --without-expat.
892         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
893         from ...
894         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
895
896 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
897             Jan Kratochvil  <jan.kratochvil@redhat.com>
898
899         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
900         * features/library-list-svr4.dtd: New file.
901         * remote.c (PACKET_qXfer_libraries_svr4): New.
902         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
903         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
904         * solib-svr4.c (struct svr4_library_list): New.
905         [HAVE_LIBEXPAT]: Include xml-support.h.
906         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
907         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
908         [HAVE_LIBEXPAT] (svr4_library_list_children)
909         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
910         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
911         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
912         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
913         (svr4_read_so_list): Extend the corruption message by addresses.
914         (svr4_current_sos): New variable library_list, call
915         svr4_current_sos_via_xfer_libraries.
916         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
917
918 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
919
920         PR threads/13448
921         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
922         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
923
924 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
925
926         PR breakpoints/13346
927         * dwarf2read.c (process_psymtab_comp_unit): Set
928         PSYMTABS_ADDRMAP_SUPPORTED.
929         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
930         validity.  New field psymtabs_addrmap_supported.
931         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
932         psymtabs_addrmap_supported.
933         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
934         !PSYMTABS_ADDRMAP_SUPPORTED.
935         (dump_psymtab, maintenance_info_psymtabs): Print also
936         psymtabs_addrmap_supported.
937
938 2011-12-01  Doug Evans  <dje@google.com>
939
940         * python/py-type.c (type_object_methods): Fix "array" doc string.
941
942 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
943
944         * source.c (print_source_lines_base): Fix missing braces on else
945         clause leading to additional output.
946
947 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * s390-nat.c (SUBOFF): Remove.
950         (s390_native_supply, s390_native_collect): New functions.
951         (supply_gregset, supply_fpregset): Use s390_native_supply.
952         (fill_gregset, fill_fpregset): Use s390_native_collect.
953
954         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
955         (s390_unwind_pseudo_register): New function.
956         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
957         registers instead of PC and CC.
958         (s390_backchain_frame_unwind_cache): Likewise.
959         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
960         full GPR pseudos.
961         (s390_trad_frame_prev_register): New function.
962         (s390_frame_prev_register): Use it.
963         (s390_sigtramp_frame_prev_register): Likewise.
964         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
965         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
966         special callback to unwind any pseudo.
967
968         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
969         * features/s390-core64.xml: Likewise.
970         * features/s390x-core64.xml: Likewise.
971         * features/s390-linux32.c: Regenerate.
972         * features/s390-linux64.c: Likewise.
973         * features/s390x-linux64.c: Likewise.
974
975 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
976
977         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
978
979 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
980
981         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
982         instruction.  Add more diagnostic output.
983
984 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
985
986         * MAINTAINERS (Write After Approval): Add myself to the list.
987
988 2011-11-29  Sanjoy Das  <sdas@igalia.com>
989
990         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
991         (jit_bfd_try_read_symtab): Fix comments.
992
993 2011-11-28  DJ Delorie  <dj@redhat.com>
994
995         * NEWS: Mention RL78 simulator.
996
997 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
998
999         * symfile.h (struct quick_symbol_functions): Fix the documentation
1000         of field map_matching_symbols, as symbols are sorted using
1001         strcmp_iw_ordered, not strcmp_iw.
1002
1003 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
1004
1005         * symfile.h (struct quick_symbol_functions): Update the
1006         documentation for field map_matching_symbols.
1007
1008 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1009
1010         * ada-lang.c (compare_names): Fix wrong return value in case
1011         string1 starts with the same contents as string2, followed
1012         by an underscore that do not start a symbol name suffix.
1013
1014 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
1015
1016         PR python/13369
1017         PR python/13374
1018
1019         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1020         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1021         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1022         exceptions.
1023         * python/py-type.c (typy_strip_typedefs): Ditto.
1024         (typy_legacy_template_argument): Ditto.
1025         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1026         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1027
1028 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
1029
1030         * remote.c (remote_get_tracepoint_status): Delete addrbuf
1031         local variable.  Avoid use of sprintf_vma.
1032
1033 2011-11-27  Sanjoy Das  <sdas@igalia.com>
1034
1035         Fix regression in jit.exp.
1036         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1037         (jit_register_code): Set the jit_objfile_data field to the correct
1038         value.
1039
1040 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
1041
1042         * alpha-tdep.c (br_opcode): New.
1043         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1044         (alpha_deal_with_atomic_sequence): New function.
1045         (alpha_gdbarch_init): Handle single stepping of atomic sequences
1046         with alpha_deal_with_atomic_sequence.
1047
1048 2011-11-24  Tristan Gingold  <gingold@adacore.com>
1049
1050         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1051         fields.  Add oso_sym, end_sym and nbr_syms.
1052         (macho_register_oso): Change interface.
1053         (macho_symtab_add_minsym): New function.
1054         (macho_symtab_read): Rewritten.
1055         (get_archive_prefix_len): Remove trailing blanks.
1056         (oso_el_compare_name): Add comment.
1057         (struct macho_sym_hash_entry): New structure.
1058         (macho_relocate_common_syms): Remove.
1059         (macho_sym_hash_newfunc): New function.
1060         (macho_resolve_oso_sym_with_minsym): Likewise.
1061         (macho_add_oso_symfile): Rewritten.
1062         (macho_symfile_read_all_oso): Remove trailing blanks.
1063         Adjust code to free oso vector.
1064         (macho_symfile_read): Likewise.
1065         Move code to initialize minimal symbol
1066
1067 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
1068
1069         * mips-tdep.c (extended_offset): Fix formatting.
1070
1071 2011-11-23  Doug Evans  <dje@google.com>
1072
1073         * dwarf2read.c (dw2_lookup_symtab): Add comment.
1074         (dw2_expand_symtabs_with_filename): Ditto.
1075         (dw2_expand_symtabs_matching): Ditto.
1076         (dw2_map_symbol_filenames): Ditto.
1077
1078 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1079
1080         * ada-lang.c (assign_aggregate): Minor reformatting.
1081
1082 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1083
1084         * ada-lang.c (assign_aggregate): Remove declaration of local
1085         variable `i' which is shadowing another variable with the same
1086         name declared in the outer scope.
1087
1088 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1089
1090         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
1091         calls throughout this file.
1092
1093 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1094
1095         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1096         FormatMessage.
1097
1098 2011-11-22  Tom Tromey  <tromey@redhat.com>
1099
1100         PR mi/8444:
1101         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1102         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1103         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1104         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1105         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1106         (print_it_catch_syscall, print_it_catch_exec)
1107         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1108         (bpstat_print): Add 'kind' argument.  Handle
1109         TARGET_WAITKIND_LOADED.
1110         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1111         handle TARGET_WAITKIND_LOADED here.
1112         * breakpoint.h (bpstat_print): Update.
1113
1114 2011-11-22  Tom Tromey  <tromey@redhat.com>
1115
1116         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1117
1118 2011-11-22  Tom Tromey  <tromey@redhat.com>
1119
1120         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1121         Use static_assert to check the size of
1122         async_reason_string_lookup.
1123         * common/gdb_assert.h (static_assert): New macro.
1124
1125 2011-11-22  Alan Modra  <amodra@gmail.com>
1126
1127         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1128         destination calculation.  Don't expect >> to sign extend.  Don't
1129         add a break if branch lands inside the sequence anywhere.
1130
1131 2011-11-21  Keith Seitz  <keiths@redhat.com>
1132
1133         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1134         -var-evaluate-expression of an enumeration and fix expected result.
1135         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1136
1137 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1138
1139         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1140         the case where osdata->items is empty.  Rename column names to a
1141         canonical form to avoid problems with unusual column names.
1142
1143 2011-11-21  Yao Qi  <yao@codesourcery.com>
1144
1145         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1146
1147 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1148
1149         * NEWS: Mention tracepoint additions.
1150         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1151         * breakpoint.c (print_one_breakpoint_location): Identify
1152         tracepoints as such when reporting hit counts, report
1153         trace buffer usage.
1154         (create_tracepoint_from_upload): Copy status info.
1155         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1156         add fields user_name, notes, start_time, stop_time.
1157         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1158         * tracepoint.c (trace_user): New global.
1159         (trace_notes): New global.
1160         (trace_stop_notes): New global.
1161         (start_tracing): Add argument and trace note handling.
1162         (stop_tracing): Ditto.
1163         (trace_start_command): Add notes argument.
1164         (trace_stop_command): Ditto.
1165         (trace_status_command): Report additional status info.
1166         (trace_status_mi): Similarly.
1167         (trace_save): Update, record tracepoint status.
1168         (set_disconnected_tracing): Call target method directly.
1169         (send_disconnected_tracing_value): Remove.
1170         (set_trace_user): New function.
1171         (set_trace_notes): New function.
1172         (set_trace_stop_notes): New function.
1173         (parse_trace_status): Handle additional status.
1174         (parse_tracepoint_status): New function.
1175         (parse_tracepoint_definition): Call it.
1176         (tfile_get_tracepoint_status): New function.
1177         (init_tfile_ops): Use it.
1178         (_initialize_tracepoint): Add new setshows.
1179         * target.h (struct target_ops): New methods to_get_tracepoint_status
1180         and to_set_trace_notes.
1181         (target_get_tracepoint_status): New macro.
1182         (target_set_trace_notes): New macro.
1183         * target.c (update_current_target): Add new methods.
1184         * remote.c (remote_get_tracepoint_status): New function.
1185         (remote_set_trace_notes): New function.
1186         (init_remote_ops): Add them.
1187         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1188         (mi_cmd_trace_stop): Ditto.
1189
1190 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1191
1192         * jit.c: Include regcache.h.
1193         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1194         (jit_unwind_reg_set_impl, free_reg_value_impl)
1195         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1196         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1197         (jit_frame_prev_register, jit_dealloc_cache)
1198         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1199         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1200         jit_prepend_unwinder.
1201         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1202
1203 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1204
1205         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1206         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1207         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1208         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1209         (finalize_symtab, jit_object_close_impl)
1210         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1211         (free_objfile_data): New functions.
1212         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1213         function.
1214
1215 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1216
1217         * jit.c: Include gdb-dlfcn.h.
1218         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1219         (jit_reader_load, jit_reader_load_command)
1220         (jit_reader_unload_command): New functions.
1221         (_initialize_jit): Add commands "jit-reader-load" and
1222         "jit-reader-unload".
1223
1224 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1225
1226         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1227         * config.in: Add new #define HAVE_LIBDL.
1228         * configure.ac: Add check for -ldl.
1229         * configure: Re-generated by autoconf.
1230         * gdb-dlfcn.c: New file.
1231         * gdb-dlfcn.h: New file.
1232
1233 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1234
1235         * config.in: Add new #defines: JIT_READER_DIR and
1236         JIT_READER_DIR_RELOCATABLE.
1237         * configure.ac: New GDB directory entry for jit-reader-dir.
1238         * configure: Re-generated by autoconf.
1239         * jit.c: New static variable: const char *jit_reader_dir.
1240         (_initialize_jit): Relocate jit_reader_dir.
1241
1242 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1243
1244         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1245         $(includedir)/gdb.
1246         * configure.ac: Generate a correct value for TARGET_PTR for
1247         jit-reader.h.  Tell configure to generate jit-reader.h from
1248         jit-reader.in.
1249         * configure: Re-generated by autoconf.
1250         * jit-reader.in: New file.
1251         * jit.c: Include jit-reader.h.
1252
1253 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1254
1255         * MAINTAINERS (Write After Approval): Add myself to the list.
1256
1257 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1258
1259         * findvar.c (read_frame_register_value): Respect value_offset
1260         of the register value.  Remove big-endian special case.
1261
1262 2011-11-18  Tom Tromey  <tromey@redhat.com>
1263
1264         PR build/7196:
1265         * remote.c (putpkt_for_catch_errors): New function.
1266         (remote_kill): Use it.
1267
1268 2011-11-18  Yao Qi  <yao@codesourcery.com>
1269
1270         * breakpoint.c (create_breakpoint): Produce query message according to
1271         breakpoint's type.
1272         Allocate tracepoint per correct type.
1273         Don't check SALs for pending fast tracepoints.
1274         * tracepoint.c (process_tracepoint_on_disconnect): New.
1275         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1276
1277 2011-11-18  Yao Qi  <yao@codesourcery.com>
1278
1279         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1280         update_global_location_list is called conditionally.
1281         (create_fork_vfork_event_catchpoint): Update.
1282         (create_syscall_event_catchpoint): Update.
1283         (create_breakpoint_sal): Update.
1284         (create_breakpoint_sal): Update. Call do_cleanups before
1285         install_breakpoint.
1286         * ada-lang.c (create_ada_exception_catchpoint): Update.
1287         * breakpoint.h (install_breakpoint): Update declaration.
1288
1289 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1290
1291         * spu-tdep.c (spu_return_value): Fix handling of
1292         TYPE_CALLING_CONVENTION annotation.
1293
1294 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1295
1296         * skip.c (skip_function_command): Work around uninitialized
1297         variable warning.
1298
1299 2011-11-16  David S. Miller  <davem@davemloft.net>
1300
1301         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1302         'tv_usec' to long for printf since these fields have a type which
1303         varies.
1304
1305 2011-11-15  Doug Evans  <dje@google.com>
1306
1307         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1308
1309 2011-11-15  Paul Koning  <paul_koning@dell.com>
1310
1311         * python/py-type.c (typy_get_composite): New function.
1312         (typy_nonzero): New function.
1313         (typy_values): Rename from typy_fields.
1314         (typy_fields): New function.
1315         (typy_length): Raise exception if not struct, union, or enum type.
1316         (typy_getitem): Ditto.
1317         (typy_has_key): Ditto.
1318         (typy_make_iter): Ditto.
1319
1320 2011-11-15  Doug Evans  <dje@google.com>
1321
1322         PR gdb/8367
1323         * NEWS: Mention new parameter basenames-may-differ.
1324         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1325         ! basenames_may_differ.
1326         * psymtab.c (lookup_partial_symtab): Ditto.
1327         * symtab.c (lookup_symtab): Ditto.
1328         (basenames_may_differ): New global.
1329         (_initialize_symtab): New parameter basenames-may-differ.
1330         * symtab.h (basenames_may_differ): Declare.
1331
1332 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1333             Luis Machado  <lgustavo@codesourcery.com>
1334
1335         * auxv.c: Include observer.h.
1336         (auxv_inferior_data_cleanup): New.
1337         (invalidate_auxv_cache_inf): New.
1338         (invalidate_auxv_cache): New.
1339         (get_auxv_inferior_data): New.
1340         (auxv_inferior_data): New static global.
1341         (auxv_info): New structure.
1342         (target_auxv_search): Use get_auxv_inferior_data instead of
1343         target_read_alloc and don't free cached buffers.
1344         (fprint_target_auxv): Likewise
1345         (_initialize_auxv): Register per-inferior auxv cache and register
1346         observers to invalidate auxv cache when needed.
1347
1348 2011-11-14  Doug Evans  <dje@google.com>
1349
1350         PR gdb/7200 Make "!" an alias for "shell".
1351         * NEWS: Add mention.
1352         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1353         adding "!" command, always add it.
1354         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1355         command of length one.
1356
1357 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1358             Kwok Cheung Yeung  <kcy@codesourcery.com>
1359
1360         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1361         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1362         the minimum instruction size for fast tracepoints.
1363         * target.h (struct target_ops): Add new method
1364         to_get_min_fast_tracepoint_insn_len.
1365         (target_get_min_fast_tracepoint_insn_len): New.
1366         * target.c (update_current_target): Set up new target operation.
1367         * remote.c (remote_write_bytes_aux): Fix typo.
1368         (remote_get_min_fast_tracepoint_insn_len): New.
1369         (init_remote_ops): Initialize new field.
1370
1371 2011-11-14  Tom Tromey  <tromey@redhat.com>
1372
1373         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1374         (encode_actions): Likewise.
1375
1376 2011-11-14  Yao Qi  <yao@codesourcery.com>
1377
1378         * remote.c (struct remote_state): <install_in_trace> new field.
1379         (PACKET_InstallInTrace): New enum value.
1380         (remote_install_in_trace_feature): Support InstallInTrace.
1381         (remote_supports_install_in_trace): Likewise.
1382         (remote_protocol_features): Likewise.
1383         (_initialize_remote): Likewise.
1384         (remote_can_download_tracepoint): New.
1385         * target.h (struct target): New field
1386         `to_can_download_tracepoint'.
1387         (target_can_download_tracepoint): New macro.
1388         * target.c (update_current_target): Update.
1389         * breakpoint.h (struct bp_location): Add comment on field
1390         `duplicate'.
1391         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1392         and tracepoint.
1393         (remove_breakpoints): Don't remove tracepoints.
1394         (tracepoint_locations_match ): New.
1395         (breakpoint_locations_match): Call it.
1396         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1397         (download_tracepoint_locations): New.
1398         (update_global_location_list): Call it.
1399         * tracepoint.c (find_matching_tracepoint): Delete.
1400         (find_matching_tracepoint_location): Renamed from
1401         find_matching_tracepoint.  Return bp_location rather than
1402         tracepoint.
1403         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1404         tracepoint is found.
1405
1406 2011-11-14  Yao Qi  <yao@codesourcery.com>
1407
1408         * target.h (struct target): <to_download_tracepoint> Change type
1409         of parameter from tracepoint to bp_location.
1410         * target.c (update_current_target): Update.
1411         * tracepoint.c (start_tracing): Update.
1412         * remote.c (remote_download_tracepoint): Remove loop for each location
1413         of a tracepoint.
1414
1415 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1416
1417         * i386-nat.c (i386_insert_hw_breakpoint): Call
1418         i386_update_inferior_debug_regs.
1419         (i386_remove_hw_breakpoint): Likewise.
1420
1421 2011-11-14  Yao Qi  <yao@codesourcery.com>
1422
1423         * breakpoint.c (init_raw_breakpoint): Call
1424         add_location_to_breakpoint to replace duplicated code.
1425         (add_location_to_breakpoint): Adjust the breakpoint's
1426         address prior to allocating a location.
1427
1428 2011-11-12  Matt Rice  <ratmice@gmail.com>
1429
1430         * macrocmd.c (macro_no_macro_info): New function.
1431         (macro_expand_command): Use macro_no_macro_info.
1432         (macro_expand_once_command): Ditto.
1433         (info_macro_command): Add argument processing,
1434         move info_definitions_command here.
1435         (_initialize_macrocmd): Remove info definitions command.
1436         Add arguments to info macro help text.
1437         * NEWS: Replace info definitions command with new info macro options.
1438
1439 2011-11-11  Keith Seitz  <keiths@redhat.com>
1440
1441         PR gdb/12843
1442         * linespec.c (locate_first_half): Keep ':' if it looks
1443         like it could be part of a Windows path starting with
1444         a drive letter.
1445
1446 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1447
1448         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1449         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1450
1451 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1452
1453         * target.c (target_waitstatus_to_string): Handle
1454         TARGET_WAITKIND_NO_RESUMED.
1455
1456 2011-11-10  Doug Evans  <dje@google.com>
1457
1458         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1459         `need_fullname'.
1460         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1461         (map_partial_symbol_filenames): Ditto.  All callers updated.
1462         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1463         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1464         parameter need_fullname.
1465
1466         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1467         * source.c (symtab_to_fullname): Ditto.
1468
1469         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1470         * gdb-demangle.h: ... here.  New file.
1471         * demangle.c: #include "gdb-demangle.h".
1472         (_initialize_demangler): Use initialize_file_ftype for prototype.
1473         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1474         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1475         from utils.c
1476         * utils.c: Update. #include "gdb-demangle.h".
1477         * symtab.h (asm_demangle): Delete.
1478         (demangle): Move declaration next to use.
1479         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1480         * dwarf2read.c: #include "gdb-demangle.h".
1481         * gnu-v2-abi.c: Ditto.
1482         * jv-typeprint.c: Ditto.
1483         * mdebugread.c: Ditto.
1484         * p-typeprint.c: Ditto.
1485         * stabsread.c: Ditto.
1486         * printcmd.c: Ditto.
1487         (asm_demangle): Delete declaration.
1488         * tui/tui-stack.c: #include "gdb-demangle.h".
1489
1490         * python/py-type.c (typy_fields_items): Call check_typedef.
1491
1492 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1493
1494         * findvar.c (read_frame_register_value): Read the correct bytes
1495         from registers on big-endian architectures.
1496
1497 2011-11-10  Tom Tromey  <tromey@redhat.com>
1498
1499         * procfs.c (load_syscalls): Make a cleanup.
1500         (open_procinfo_files): fd==0 is ok.
1501
1502 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1503
1504         * procfs.c (iterate_over_mappings): Call do_cleanups before
1505         returning.
1506
1507 2011-11-09  Doug Evans  <dje@google.com>
1508
1509         * gdbtypes.c (check_typedef): Document that this function can
1510         throw an exception.
1511
1512 2011-11-09  Tom Tromey  <tromey@redhat.com>
1513
1514         PR c++/13342:
1515         * valops.c (value_full_object): Return early if real type is
1516         smaller than the enclosing type.
1517
1518 2011-11-08  Yao Qi  <yao@codesourcery.com>
1519
1520         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1521
1522 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1523
1524         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1525         register when the frame can't be determined.
1526         * arm-tdep.c (arm_analyze_prologue): Ditto.
1527
1528 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1529
1530         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1531
1532 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1533
1534         * infrun.c (handle_inferior_event): Minor reformatting.
1535
1536 2011-11-05  Doug Evans  <dje@google.com>
1537
1538         * source.c (forget_cached_source_info_for_objfile): Move call to
1539         objfile->sf->qf->forget_cached_source_info outside of
1540         ALL_OBJFILE_SYMTABS loop.
1541         (forget_cached_source_info): Delete unused variable `s'.
1542
1543 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1544
1545         * i386-nat.c (dr_ref_count): Remove unused variable.
1546
1547 2011-11-05  Doug Evans  <dje@google.com>
1548
1549         * main.c (captured_main): Set lim_at_start before calling
1550         make_command_stats_cleanup.
1551
1552 2011-11-04  Doug Evans  <dje@google.com>
1553
1554         * utils.c: #include "timeval-utils.h".
1555         (cmd_stats): Rename start_time to start_cpu_time.
1556         New member start_wall_time.
1557         (report_command_stats): Report wall time.
1558         (make_command_stats_cleanup): Record start wall time.
1559
1560 2011-11-04  Tom Tromey  <tromey@redhat.com>
1561
1562         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1563
1564 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1565
1566         * coff-pe-read.c: Include defs.h before bfd.h.
1567
1568 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1569
1570         PR Python/13345
1571
1572         * python/python.c (python_run_simple_file): Expand tilde in path.
1573
1574 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1575
1576         PR Python/13363
1577
1578         * python/py-type.c (typy_lookup_type): Do not return a type in
1579           an exception handler.
1580
1581 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1582             Eli Zaretskii  <eliz@gnu.org>
1583
1584         * linux-nat.c (_initialize_linux_nat): Improve help
1585         for `info proc stat', `info proc status', `info proc cwd',
1586         `info proc cmdline' and `info proc exe'.
1587
1588 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1589
1590         String collection for tracepoints.
1591         * NEWS: Mention string collection.
1592         * common/ax.def (tracenz): New bytecode.
1593         * ax-gdb.h (trace_string_kludge): Declare.
1594         * ax-gdb.c: Include valprint.h and c-lang.h.
1595         (trace_string_kludge): New global.
1596         (gen_traced_pop): Add string case.
1597         (agent_command): Add string case.
1598         * tracepoint.h (decode_agent_options): Declare.
1599         * tracepoint.c: Include cli-utils.h.
1600         (decode_agent_options): New function.
1601         (validate_actionline): Call it.
1602         (encode_actions_1): Ditto.
1603         * target.h (struct target_ops): New method to_supports_string_tracing.
1604         (target_supports_string_tracing): New macro.
1605         * target.c (update_current_target): Add to_supports_string_tracing.
1606         * remote.c (struct remote_state): New field string_tracing.
1607         (remote_string_tracing_feature): New function.
1608         (remote_protocol_features): New feature tracenz.
1609         (remote_supports_string_tracing): New function.
1610         (init_remote_ops): Set to_supports_string_tracing.
1611
1612 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1613             Jan Kratochvil  <jan.kratochvil@redhat.com>
1614
1615         * linux-nat.c: Include cli/cli-utils.h.
1616         (enum info_proc_what): New.
1617         (linux_nat_info_proc_cmd): Rename to ...
1618         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1619         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1620         status_f and stat_f from WHAT.  Throw error on extra parameters.
1621         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1622         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1623         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1624         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1625         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1626         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1627         `info proc cmdline', `info proc exe' and `info proc all' as real
1628         subcommands of `info proc'.
1629
1630 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1631
1632         * Makefile.in: (SFILES): Add skip.c.
1633         (HFILES_NO_SRCDIR): Add skip.h.
1634         (COMMON_OBS): Add skip.o.
1635         * skip.h, skip.c: New.
1636         * breakpoint.h (set_default_breakpoint): Remove.
1637         (get_sal_arch): Declare.
1638         * breakpoint.c: Remove default_breakpoint_valid,
1639         default_breakpoint_address, default_breakpoint_symtab,
1640         default_breakpoint_line, default_breakpoint_pspace variables.
1641         (get_sal_arch): Make public.
1642         (set_default_breakpoint): Remove.
1643         (parse_breakpoint_sals, create_breakpoint, clear_command,
1644         decode_line_spec_1): Remove uses of default_breakpoint variables;
1645         replaced with function calls into stack.c.
1646         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1647         * cli/cli-cmds.c: Add skiplist.
1648         (init_cmd_lists): Initialize skiplist.
1649         (init_cli_cmds): Fix comment (classes of commands appear in
1650         alphabetical order).
1651         * infrun.c (handle_inferior_event): Add check that we don't step into
1652         a function whose pc is marked for skip.
1653         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1654         last_displayed_addr, last_displayed_symtab, last_displayed_line
1655         variables.
1656         (set_last_displayed_sal): New static function.
1657         (print_frame_info): Switch call to set_default_breakpoint to call to
1658         set_last_displayed_sal.
1659         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1660         get_last_displayed_pspace, get_last_displayed_addr,
1661         get_last_displayed_symtab, get_last_displayed_line,
1662         get_last_displayed_sal): New public functions.
1663         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1664         get_last_displayed_pspace, get_last_displayed_addr,
1665         get_last_displayed_symtab, get_last_displayed_line,
1666         get_last_displayed_sal): Declare.
1667
1668 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1669
1670         * MAINTAINERS (Write After Approval): Add myself to the list.
1671
1672 2011-10-29  Yao Qi  <yao@codesourcery.com>
1673
1674         * infcmd.c (disconnect_command): Call disconnect_tracing.
1675
1676 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1677
1678         Code cleanup.
1679         * symtab.c (skip_prologue_sal): Code reformatting.
1680
1681 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1682
1683         PR symtab/13208
1684         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1685         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1686         SAI.
1687
1688 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1689
1690         * linux-nat.c (linux_nat_filter_event): Remove `options'
1691         parameter, and dead code that used it.  If we're handling a
1692         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1693         in our lwp list, re-add it.
1694         (check_zombie_leaders): New.
1695         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1696         wait for children with WNOHANG, and always wait for all children.
1697         Don't check for no resumed children upfront.  Simplify wait loop.
1698         Check for zombie thread group leaders after handling all wait
1699         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1700         unwaited-for children left.
1701         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1702         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1703         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1704         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1705
1706 2011-10-28  Sterling Augustine  <saugustine@google.com>
1707
1708         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1709         * symtab.c (free_completion_list): New function.
1710         (do_free_completion_list): Likewise.
1711         (default_make_symbol_completion_list_break_on): New variable
1712         back_to. Call make_cleanup and discard_cleanups.
1713         (make_source_files_completion_list): Likewise.
1714
1715 2011-10-28  Paul Koning  <paul_koning@dell.com>
1716
1717         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1718         * NEWS: Mention deep_items.
1719
1720 2011-10-28  Alen Skondro  <askondro@gmail.com>
1721
1722         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1723         defined.
1724
1725 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1726
1727         * MAINTAINERS (Write After Approval): Add myself to the list.
1728
1729 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1730
1731         * value.h (read_frame_register_value): Add declaration.
1732         * findvar.c (read_frame_register_value): New function.
1733         (value_from_register): Use read_frame_register_value
1734         instead of get_frame_register_value + value_contents_copy
1735         to get value contents.
1736
1737 2011-10-27  Doug Evans  <dje@google.com>
1738
1739         * cli/cli-cmds.c (source_script_with_search): Pass full path to
1740         source_script_from_stream if it may have been found on the search path.
1741         * python/py-auto-load.c (source_section_scripts): Pass full path to
1742         source_python_script_for_objfile.
1743         * python/python.c (source_python_script): Delete stream parameter.
1744         All callers updated.
1745         (source_python_script_for_objfile): Ditto.
1746         * python/python-internal.h (source_python_script_for_objfile): Update.
1747         * python/python.h (source_python_script): Update.
1748
1749 2011-10-27  Tom Tromey  <tromey@redhat.com>
1750
1751         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1752         (ada_sals_for_line): Remove declarations.
1753
1754 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
1755
1756         Move unwind reasons to an external .def file
1757         * frame.c (frame_stop_reason_string): Rewrite using
1758         unwind_stop_reasons.def.
1759         * frame.h (enum unwind_stop_reason): Likewise.
1760         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1761         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1762         constants for bound-checking.
1763         * unwind_stop_reasons.def: New file.
1764         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1765         instead of a distinct value.
1766
1767 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1768
1769         PR python/13331
1770
1771         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1772         (convert_values_to_python): Return on Python tuple allocation
1773         failure.  Return NULL on value conversion error.
1774
1775 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1776
1777         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1778         (bppy_set_task): Ditto.
1779         (bppy_delete_breakpoint): Ditto.
1780         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1781         (gdbpy_lookup_global_symbol): Ditto.
1782         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1783         * python/py-frame.c (frapy_is_valid): Ditto.
1784         (frame_info_to_frame_object): Ditto.
1785         * python/py-type.c (typy_lookup_type): Ditto.
1786         (typy_getitem): Ditto.
1787         (typy_has_key): Ditto.
1788         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
1789
1790 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
1791
1792         * gdbarch.h: Regenerate.
1793
1794 2011-10-26  Meador Inge  <meadori@codesourcery.com>
1795
1796         * gdbarch.sh (function_list): Use 'pstring' when printing
1797         'gcore_bfd_target'.
1798         * gdbarch.c: Regenerate.
1799
1800 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1801
1802         * regcache.c (registers_changed_ptid): Invalidate thread architecture
1803         and frame caches if PTID refers to all threads of a process.
1804
1805 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1806
1807         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1808         to create_breakpoint.
1809
1810 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1811
1812         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1813         (ppc_sysv_abi_push_dummy_call): Use it.
1814         (do_ppc_sysv_return_value): Likewise.
1815         (ppc64_sysv_abi_push_dummy_call): Likewise.
1816         (ppc64_sysv_abi_return_value): Likewise.
1817
1818 2011-10-26  Paul Koning  <paul_koning@dell.com>
1819
1820         * python/lib/gdb/types.py (deepitems): New function.
1821         
1822 2011-10-25  Paul Koning  <paul_koning@dell.com>
1823
1824         PR python/13327
1825         
1826         * python/py-value.c (value_to_value_object): Remove fetching of
1827         the value if it was lazy.
1828         (valpy_get_is_lazy): New function.
1829         (valpy_fetch_lazy): New function.
1830
1831 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
1832
1833         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1834         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1835
1836 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1837
1838         * linux-nat.c (linux_handle_extended_wait): When handling a clone
1839         event, in non-stop, if not stopping, make sure the new lwp has
1840         last_resume_kind set to resume_continue.  Assert that when we're
1841         resuming the new lwp, its last_resume_kind is resume_continue.
1842
1843 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1844
1845         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1846         already set when marking the event thread as not executing in
1847         non-stop mode.
1848
1849 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1850
1851         * infrun.c (handle_inferior_event): Add debug output for
1852         TARGET_WAITKIND_NO_HISTORY.
1853
1854 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1855
1856         * NEWS: Move set/show extended-prompt to "New Options". Expand
1857         description. Fix typos.
1858
1859 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1860
1861         PR python/13310
1862
1863         * python/py-param.c (call_doc_function): Correctly deference on
1864         function exit.
1865
1866 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
1867
1868         * ada-tasks.c (print_ada_task_info): Fix computation of
1869         number of tasks displayed in command output.
1870
1871 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1872             Ulrich Weigand  <uweigand@de.ibm.com>
1873
1874         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1875         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1876         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
1877         gdbarch_pc_regnum and frame_unwind_register_unsigned by
1878         gdbarch_unwind_pc.
1879
1880 2011-10-20  Cary Coutant  <ccoutant@google.com>
1881
1882         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1883         section to...
1884         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
1885         flag.  Adjust all callers.
1886         (process_psymtab_comp_unit): Remove adjustment for type section.
1887
1888 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1889
1890         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1891         arguments by adding OBJFILE.  Instead of getting objfile from
1892         symbol's symtab, use new argument OBJFILE.
1893         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1894         arguments by adding OBJFILE.
1895         * gdb/dwarf2read.c (new_symbol_full): Change call to
1896         cp_scan_for_anonymous_namespaces to match new signature.
1897         * gdb/stabsread.c (define_symbol): Change call to
1898         cp_scan_for_anonymous_namespaces to match new signature.
1899
1900 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1901
1902         PR python/13308
1903         PR python/13309
1904
1905         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1906         leak.
1907         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1908         leak.  Delete unused variables.
1909
1910 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1911
1912         PR python/12656
1913
1914         * python/py-frame.c (frapy_read_var): Use const struct *block.
1915         * python/py-type.c (typy_lookup_typename): Likewise.
1916         (typy_lookup_type): Likewise.
1917         (typy_legacy_template_argument): Likewise.
1918         (typy_template_argument): Likewise.
1919         (gdbpy_lookup_type): Likewise.
1920         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1921         * python/py-block.c (blpy_block_object): Likewise.
1922         (blpy_iter): Likewise.
1923         (blpy_get_start): Likewise.
1924         (blpy_get_end): Likewise.
1925         (blpy_get_function): Likewise.
1926         (blpy_get_superblock): Likewise.
1927         (set_block):  Likewise.
1928         (block_to_block_object): Likewise.
1929         (block_object_to_block): Likewise.
1930         (blpy_is_valid): Likewise.
1931         (blpy_get_global_block): New function.
1932         (blpy_get_static_block): New function.
1933         (blpy_is_global): New function.
1934         (blpy_is_static): New function.
1935         * blockframe.c (block_innermost_frame): Likewise.
1936         * valops.c (value_of_variable): Likewise.
1937         * frame.h: Update prototypes.
1938         * python/python-internal.h: Likewise.
1939         * value.h: Likewise.
1940
1941 2011-10-19  Cary Coutant  <ccoutant@google.com>
1942
1943         * dwarf2read.c (create_debug_types_hash_table): Fix size of
1944         type_offset field.
1945
1946 2011-10-19  Cary Coutant  <ccoutant@google.com>
1947
1948         * dwarf2read.c (peek_abbrev_code): New function.
1949         (dw2_get_file_names): Check for dummy compilation units.
1950         (create_debug_types_hash_table): Likewise.
1951         (process_psymtab_comp_unit): Likewise.
1952         (load_partial_comp_unit): Likewise.
1953         (load_full_comp_unit): Likewise.
1954
1955 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
1956
1957         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1958         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1959         pt_phdr if PT_PHDR was found.
1960
1961 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
1962
1963         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1964         type or "<unnamed type"> when there is no name assigned.
1965         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1966         avoid a sigint when no name is assigned.
1967
1968 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1969
1970         Revert:
1971         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1972         * dwarf2expr.c (ctx_no_read_reg): New function.
1973         * dwarf2expr.h (ctx_no_read_reg): New declaration.
1974         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1975         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1976         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1977
1978 2011-10-16  Doug Evans  <dje@google.com>
1979
1980         * NEWS: Document python gdb.printing.register_pretty_printer's new
1981         `replace' parameter.
1982
1983 2011-10-14  Keith Seitz  <keiths@redhat.com>
1984
1985         PR c++/13225
1986         * eval.c (evaluate_subexp_standard): Do not construct
1987         an array of types; pass the value array directly to
1988         find_overload_match.
1989         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1990         (rank_function): Take an array of values instead of types.
1991         (rank_one_type): Add struct value * parameter.
1992         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1993         (rank_function): For each argument, pass the argument's
1994         value to rank_one_type.
1995         (rank_one_type): Add VALUE parameter.
1996         If the parameter type is a pointer and the argument type
1997         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1998         VALUE is zero.
1999         Update all calls to rank_one_type, passing NULL for new
2000         VALUE parameter.
2001         * valarith.c (value_user_defined_cpp_op): Do not construct
2002         an array of types; pass the value array directly to
2003         find_overload_match.
2004         * valops.c (find_overload_method_list): Take an array of
2005         values instead of types.
2006         Save the type of OBJP for later use.
2007         Update calls to find_oload_champ, and find_oload_champ_namespace.
2008         (find_oload_champ_namespace): Take an array of values instead
2009         of types.
2010         (find_oload_champ_namespace_loop): Likewise.
2011         (find_oload_champ): Likewise.
2012         (classify_oload_match): Inspect all arguments
2013         until INCOMPATIBLE is found. Return the worst badness found
2014         otherwise.
2015         (compare_parameters): Update call to rank_one_type.
2016         * value.h (find_overload_match): Take an array of values instead
2017         of types.
2018
2019 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2020
2021         Drop lazy lm_info reading.
2022         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
2023         l_addr_inferior, l_ld, l_next, l_prev and l_name.
2024         (lm_info_read): New function.
2025         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2026         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
2027         lm_dynamic_from_link_map.
2028         (lm_next, lm_prev, lm_name): Remove.
2029         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2030         initialization incl. read_memory.  No longer use lm_name.
2031         (svr4_free_so): Drop lm_info->lm freeing.
2032         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
2033         explicit lm_addr and lm initialization.
2034         (svr4_read_so_list): Use lm_info_read, drop the initailization of
2035         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
2036         lm_name.
2037
2038 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2039             Paul Pluzhnikov  <ppluzhnikov@google.com>
2040
2041         * defs.h (struct so_list): New forward declaration.
2042         (make_cleanup_free_so): New declaration.
2043         * solib-svr4.c (ignore_first_link_map_entry): Remove.
2044         (svr4_free_so): Move the function here from downwards.  Handle NULL
2045         so->lm_info.
2046         (svr4_free_library_list): New.
2047         (svr4_read_so_list): New, moved here code from svr4_current_sos.
2048         Use more cleanups.  Use new parameter ignore_first instead of
2049         ignore_first_link_map_entry.
2050         (svr4_current_sos): New variable ignore_first, initialize it.  New
2051         variable back_to, use it for svr4_free_library_list protection.
2052         (svr4_free_so): Remove - move upwards.
2053         * utils.c: Include solist.h.
2054         (do_free_so, make_cleanup_free_so): New functions.
2055
2056 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2057
2058         Fix internal error regression.
2059         * value.c (value_primitive_field): Handle value_optimized_out.  Move
2060         packed bitfields comment.
2061
2062 2011-10-13  Tom Tromey  <tromey@redhat.com>
2063
2064         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2065         always released.
2066
2067 2011-10-13  Tom Tromey  <tromey@redhat.com>
2068
2069         * python/py-type.c (typy_has_key): Make 'field' const.
2070
2071 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2072
2073         * remote.c (remote_save_trace_data): Invert comparison.
2074
2075 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2076
2077         * tracepoint.c (trace_save_command): Use filename instead of
2078         args when printing.
2079
2080 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2081
2082         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2083         if .size is 0.
2084
2085 2011-10-13  Yao Qi  <yao@codesourcery.com>
2086
2087         PR gdb/12703
2088         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2089         whether insn is a 32-bit Thumb-2 instruction.
2090         (thumb_in_function_epilogue_p): Likewise.
2091         (thumb_get_next_pc_raw): Likewise.
2092         (arm_breakpoint_from_pc): Likewise.
2093
2094 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2095
2096         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2097         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2098         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2099         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2100         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2101         zero DATA.
2102         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2103         validity.
2104         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2105         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2106         clear DATA on zero SIZE.
2107
2108 2011-10-12  Doug Evans  <dje@google.com>
2109
2110         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2111         header->first_die_offset here.  All callers updated.
2112
2113 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2114
2115         Fix compatibility with texinfo versions older than 4.12.
2116         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2117         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2118         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2119         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2120         * configure: Regenerate.
2121         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2122         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2123         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2124
2125 2011-10-12  Gary Benson  <gbenson@redhat.com>
2126
2127         * breakpoint.h (pc_at_non_inline_function): Declare.
2128         * breakpoint.c (is_non_inline_function,
2129         pc_at_non_inline_function): New functions.
2130         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2131         if the stop is at a location where functions cannot be inlined.
2132
2133 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2134
2135         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2136         the core wanted them stopped, or if they now have a pending event
2137         to report.
2138         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2139         down to stop_and_resume_callback.
2140         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2141         having new pending events after calling linux_nat_filter_event.
2142
2143 2011-10-11  Sterling Augustine  <saugustine@google.com>
2144
2145         * dwarf2read.c: Undo inadvertent changes in previous commit.
2146
2147 2011-10-11  Sterling Augustine  <saugustine@google.com>
2148
2149         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2150         logic.
2151
2152 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2153
2154         * symfile.c (separate_debug_file_exists): Fix condition.
2155
2156 2011-10-11  David S. Miller  <davem@davemloft.net>
2157
2158         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2159         static.
2160         * regcache.h (regcache_restore): Remove declaration.
2161
2162         * gdbarch.sh: New field 'long_long_align_bit'.
2163         * gdbarch.c, gdbarch.h: Regenerate.
2164         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2165         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2166
2167 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2168
2169         Revert this part of:
2170         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2171         Support @entry in input expressions.
2172         * c-exp.y (ENTRY, unknown_cpp_name): New.
2173         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2174         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2175         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2176         (name_not_typename: ENTRY): New.
2177         (yylex): Recognize ENTRY.
2178
2179         Reimplement @entry in input expressions.
2180         * c-exp.y (ENTRY): New.
2181         (variable: name_not_typename ENTRY): New.
2182         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2183
2184 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2185
2186         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2187         parent and child's pids as soon as we detect a clone event.
2188         Adjust another debug message.
2189
2190 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2191
2192         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2193         not zombie instead of reading the whole file.
2194
2195 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2196
2197         Fix separate debuginfo warning with "remote:" access.
2198         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2199         * symfile.c (get_file_crc): New function with the code moved from ...
2200         (separate_debug_file_exists): ... this function, specifically variables
2201         buffer and count.  New variable verified_as_different, set it.  Remove
2202         file_crc initialization.  Verify also if both files are not the same
2203         manually, if needed.
2204
2205 2011-10-11  Yao Qi  <yao@codesourcery.com>
2206
2207         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2208         to get address.
2209
2210 2011-10-10  Doug Evans  <dje@google.com>
2211
2212         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2213         libthread_db when we load libpthread or the main symbol file.
2214         (thread_db_inferior_created): New function.
2215         (_initialize_thread_db): Attach inferior_created observer.
2216         * linux-nat.c (linux_child_post_attach): Remove call to
2217         check_for_thread_db.
2218         (linux_child_post_startup_inferior): Ditto.
2219         * objfiles.h (OBJF_MAINLINE): Define.
2220         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2221         allocate_objfile when appropriate.
2222
2223 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2224
2225         PR gdb/13218
2226         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2227         Remove unused variables.
2228         (get_linux_version): Remove function.
2229         (_initialize_arm_linux_nat): Do not call it.
2230
2231 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2232
2233         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2234         new clone lwp if the core asked it to stop.  Don't pass on
2235         unexpected signals to the new clone; leave them pending instead.
2236
2237 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2238
2239         * linux-nat.c (resume_lwp): Remove redundant debug output.
2240
2241 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2242
2243         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2244         last_resume_kind before clearing it, and use the copy instead to
2245         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2246         resume_clear_callback in the non-stop path too.
2247
2248 2011-10-09  Yao Qi  <yao@codesourcery.com>
2249
2250         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2251         Honor OPTIONS and VAL's type.
2252         (common_val_print, value_print): Update to pass one more parameter.
2253
2254 2011-10-09  Doug Evans  <dje@google.com>
2255
2256         Add new "alias" command.
2257         * NEWS: Mention new command.
2258         * command.h (valid_user_defined_cmd_name_p): Declare.
2259         * defs.h (make_cleanup_dyn_string_delete): Declare.
2260         * utils.c: #include "dyn-string.h".
2261         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2262         * cli/cli-cmds.c: #include "dyn-string.h".
2263         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2264         (init_cli_cmds): Add new command.
2265         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2266
2267 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2268
2269         Fix compatibility with older GCCs.
2270         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2271         * stack.c (read_frame_arg): Initialize val_deref.
2272
2273 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2274
2275         Entry values NEWS entries, DWARF disassembly support.
2276         * NEWS: New entry values entry.
2277         (set print entry-values, show print entry-values)
2278         (set debug entry-values, show debug entry-values): New entries.
2279         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2280         indent.  Remove variable start.  Move header printing out.  Respect
2281         INDENT.  Support DW_OP_GNU_entry_value.
2282         (locexpr_describe_location_1): Move the header printing here, extend
2283         the disassemble_dwarf_expression passed parameters.
2284
2285 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2286
2287         Display @entry parameter values even for references.
2288         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2289         coerce_ref_if_computed.
2290         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2291         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2292         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2293         existing push_dwarf_reg_entry_value call.  Add new detection calling
2294         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2295         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2296         * dwarf2expr.h
2297         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2298         parameter deref_size, describe it in the comment.
2299         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2300         (dwarf_block_to_dwarf_reg_deref): New declaration.
2301         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2302         deref_size, describe it in the function comment.  New variables
2303         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2304         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2305         describe it in the function comment.  Fetch the alternative block
2306         accoring to DEREF_SIZE.
2307         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2308         (entry_data_value_free_closure, entry_data_value_funcs): New.
2309         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2310         outer_val, target_val, val and addr.  Try to fetch and create also
2311         referenced value content.
2312         (pieced_value_funcs): NULL value for coerce_ref.
2313         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2314         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2315         coerce_ref_if_computed.
2316         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2317         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2318         * stack.c (read_frame_arg): Compare also dereferenced values.
2319         * value.c (value_computed_funcs): Make the parameter v const, use
2320         value_lval_const for it.
2321         (value_lval_const, coerce_ref_if_computed): New function.
2322         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2323         * value.h (struct lval_funcs): New field coerce_ref.
2324         (value_computed_funcs): Make the parameter v const.
2325         (value_lval_const, coerce_ref_if_computed): New declarations.
2326
2327 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2328
2329         Support @entry in input expressions.
2330         * c-exp.y (ENTRY, unknown_cpp_name): New.
2331         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2332         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2333         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2334         (name_not_typename: ENTRY): New.
2335         (yylex): Recognize ENTRY.
2336         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2337         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2338         Likewise.
2339         * parse.c (operator_length_standard): Likewise.
2340         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2341
2342 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2343
2344         Display referenced values in backtraces.
2345         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2346         * stack.c (print_frame_arg): Likewise.
2347
2348 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2349
2350         Make some lval_funcs methods to default on NULL.
2351         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2352         NULL.
2353         (value_assign): Check if lval_computed write method is NULL.
2354         * value.h (struct lval_funcs): Comment NULL values for read and write
2355         methods.
2356
2357 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2358
2359         Display @entry parameter values (without references).
2360         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2361         New functions.
2362         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2363         New declarations.
2364         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2365         entry record.
2366         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2367         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2368         functions.
2369         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2370         (loclist_read_variable_at_entry): New function.
2371         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2372         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2373         DW_AT_location, call dwarf_block_to_sp_offset for it.
2374         * frame.h (print_entry_values_no, print_entry_values_only)
2375         (print_entry_values_preferred, print_entry_values_if_needed)
2376         (print_entry_values_both, print_entry_values_compact)
2377         (print_entry_values_default, print_entry_values): New declarations.
2378         (struct frame_arg): New field entry_kind.
2379         (read_frame_arg): New parameter entryargp.
2380         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2381         arg->entry_kind.  Optionally print the `@entry' suffix.
2382         (list_args_or_locals): New variable entryarg, initialize it.
2383         Initialize also entry_kind of arg and entryarg.  Conditionalize
2384         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2385         xfree for entryarg.error.
2386         * stack.c (print_entry_values_no, print_entry_values_only)
2387         (print_entry_values_preferred, print_entry_values_if_needed)
2388         (print_entry_values_both, print_entry_values_compact)
2389         (print_entry_values_default, print_entry_values_choices)
2390         (print_entry_values): New variables.
2391         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2392         print the `@entry' suffix, possibly in combination for
2393         print_entry_values_compact.
2394         (read_frame_arg): New parameter entryargp, new variables entryval,
2395         entryval_error and val_equal.  Read in also entryargp, respect
2396         print_entry_values, compare the values using val_equal, fill in also
2397         argp->entry_kind (together with entryargp->entry_kind).
2398         (print_frame_args): New variable entryarg, initialize it.
2399         Conditionalize print_frame_arg for arg, add print_frame_arg for
2400         entryarg.  Call xfree for entryarg.error.
2401         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2402         * symtab.h (struct symbol_computed_ops): New field
2403         read_variable_at_entry.
2404
2405 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2406
2407         Code reshuffle.
2408         * frame.h (struct frame_arg): New definition.
2409         (read_frame_arg): New declaration.
2410         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2411         (list_args_or_locals): ... the code here.  New variable arg, call
2412         read_frame_arg and list_arg_or_local with it.  Unify the
2413         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2414         arg.error.
2415         * stack.c (print_frame_arg): New functiom from the code of
2416         print_frame_args.
2417         (read_frame_arg): New function.
2418         (print_frame_args): Remove variable val.  New variable arg, call
2419         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2420
2421 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2422
2423         Protect entry values against self tail calls.
2424         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2425         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2426
2427 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2428
2429         Recognize virtual tail call frames.
2430         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2431         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2432         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2433         * dwarf2-frame-tailcall.c: New file.
2434         * dwarf2-frame-tailcall.h: New file.
2435         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2436         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2437         REGS.PREV only after CIE execution.
2438         (struct dwarf2_frame_cache): New field tailcall_cache.
2439         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2440         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2441         parts, try to find entry_cfa_sp_offset.  Call
2442         dwarf2_tailcall_sniffer_first.
2443         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2444         when appropriate.
2445         (dwarf2_frame_dealloc_cache): New function.
2446         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2447         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2448         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2449         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2450         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2451         * dwarf2loc.c (func_addr_to_tail_call_list)
2452         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2453         (call_site_find_chain_1, call_site_find_chain): New.
2454         * dwarf2loc.h (struct call_site_chain): New.
2455         (call_site_find_chain): New declaration.
2456         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2457         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2458         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2459         * stack.c (frame_info): Support also TAILCALL_FRAME.
2460
2461 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2462
2463         Tail call sites reader implementation.
2464         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2465         fill in TYPE_TAIL_CALL_LIST.
2466         * gdbtypes.h (struct func_type): New field tail_call_list.
2467         (struct call_site): New field tail_call_next.
2468         (TYPE_TAIL_CALL_LIST): New definition.
2469
2470 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2471
2472         Implement basic support for DW_TAG_GNU_call_site.
2473         * block.c: Include gdbtypes.h and exceptions.h.
2474         (call_site_for_pc): New function.
2475         * block.h (call_site_for_pc): New declaration.
2476         * defs.h: Include hashtab.h.
2477         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2478         declarations.
2479         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2480         ctx_no_push_dwarf_reg_entry_value.
2481         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2482         (dwarf_block_to_dwarf_reg): New function.
2483         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2484         (ctx_no_push_dwarf_reg_entry_value): New function.
2485         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2486         push_dwarf_reg_entry_value.
2487         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2488         declarations.
2489         * dwarf2loc.c: Include gdbcmd.h.
2490         (dwarf_expr_ctx_funcs): New forward declaration.
2491         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2492         (dwarf_expr_reg_to_entry_parameter)
2493         (dwarf_expr_push_dwarf_reg_entry_value): New.
2494         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2495         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2496         (needs_dwarf_reg_entry_value): New function.
2497         (needs_frame_ctx_funcs): Install it.
2498         (_initialize_dwarf2loc): New function.
2499         * dwarf2loc.h (entry_values_debug): New declaration.
2500         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2501         (read_call_site_scope): New forward declaration.
2502         (process_full_comp_unit): Copy call_site_htab.
2503         (process_die): Support DW_TAG_GNU_call_site.
2504         (read_call_site_scope): New function.
2505         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2506         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2507         (cleanup_htab): Delete.
2508         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2509         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2510         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2511         FIELD_LOC_KIND_DWARF_BLOCK.
2512         * gdbtypes.h (enum field_loc_kind): New entry
2513         FIELD_LOC_KIND_DWARF_BLOCK.
2514         (struct main_type): New loc entry dwarf_block.
2515         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2516         (TYPE_FIELD_DWARF_BLOCK): New.
2517         * python/py-type.c: Include dwarf2loc.h.
2518         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2519         internal_error call on unknown FIELD_LOC_KIND.
2520         * symtab.h (struct symtab): New field call_site_htab.
2521         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2522         (core_addr_hash, core_addr_eq): New functions.
2523
2524 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2525
2526         Code reshuffle.
2527         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2528         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2529         calling_convention under func_stuff there.
2530         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2531         (init_type) <TYPE_CODE_FUNC>: Likewise.
2532         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2533         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2534         * gdbtypes.h (enum type_specific_kind): Change
2535         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2536         (struct main_type) <type_specific>: Change calling_convention to
2537         func_stuff.  Move calling_convention to ...
2538         (struct func_type): ... this new struct.
2539         (INIT_FUNC_SPECIFIC): New #define.
2540         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2541
2542 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2543
2544         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2545         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2546         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2547         ctx->ref_addr_size.  Handle its invalid value.
2548         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2549         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2550         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2551         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2552         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2553         (dwarf2_per_cu_ref_addr_size): New function.
2554
2555 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2556
2557         Code cleanup.
2558         * dwarf2read.c (per_cu_header_read_in): New function.
2559         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2560         variables cu_header_local and cu_headerp.
2561
2562 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2563
2564         Fix initial language detection with -readnow.
2565         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2566         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2567         searches only for global symbols.
2568
2569 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2570
2571         Fix printed anonymous struct name.
2572         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2573         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2574         (anonymous_struct_prefix): New function.
2575         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2576         (dwarf2_name): Strip for anonymous structs any prefixes.
2577
2578 2011-10-07  Doug Evans  <dje@google.com>
2579
2580         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2581         `replace'.
2582
2583         * python/lib/gdb/printing.py: Whitespace cleanup.
2584
2585         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2586         warning.
2587
2588 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2589
2590         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2591         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2592         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2593         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2594         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2595         (arm_linux_remove_watchpoint): Adjust.
2596         * i386-linux-nat.c (i386_linux_dr_set_control)
2597         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2598         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2599         (ia64_linux_remove_watchpoint): Adjust.
2600         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2601         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2602         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2603         (ppc_linux_insert_mask_watchpoint)
2604         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2605         (ppc_linux_remove_watchpoint): Adjust.
2606         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2607         Adjust.
2608
2609 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2610
2611         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2612         (clear_win32_environment): New function for Cygwin to clear out
2613         Win32 environment.
2614         (windows_create_inferior): Prepare new environment from in_env
2615         for Cygwin, too.
2616
2617 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2618
2619         PR python/13264
2620         * python/py-value.c (valpy_call): Check that arguments are
2621         a tuple.
2622         (is_intlike): Remove call to CHECK_TYPEDEF.
2623         (valpy_nonzero): Catch GDB exceptions.
2624         (valpy_absolute): Ditto.
2625         (valpy_lazy_string): Ditto.
2626         (valpy_call): Ditto.
2627         (valpy_get_is_optimized_out): Ditto.
2628         (valpy_long): Ditto.
2629         (valpy_float): Ditto.
2630         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2631         (valpy_richcompare): Ditto.
2632
2633 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2634
2635         * inferior.h (disable_randomization): Declare.
2636         * infrun.c (disable_randomization): New global variable.
2637         (show_disable_randomization): New function.
2638         (set_disable_randomization): Likewise.
2639         (_initialize_infrun): Install set/show disable-randomization
2640         commands.
2641         * linux-nat.c (disable_randomization): Remove.
2642         (show_disable_randomization): Likewise.
2643         (set_disable_randomization): Likewise.
2644         (_initialize_linux_nat): No longer install set/show
2645         disable-randomization commands here.
2646         (linux_nat_supports_disable_randomization): New function.
2647         (linux_nat_add_target): Install it.
2648         * remote.c (PACKET_QDisableRandomization): New enum value.
2649         (remote_protocol_packets): Support QDisableRandomization.
2650         (_initialize_remote): Likewise.
2651         (remote_supports_disable_randomization): New function.
2652         (init_remote_ops): Install it.
2653         (extended_remote_supports_disable_randomization): New function.
2654         (init_extended_remote_ops): Install it.
2655         (extended_remote_disable_randomization): New function.
2656         (extended_remote_create_inferior_1): Call it.
2657         * target.h (struct target_ops): Add to_supports_disable_randomization.
2658         (target_supports_disable_randomization): Add prototype.
2659         * target.c (target_supports_disable_randomization): New function.
2660         (find_default_supports_disable_randomization): Likewise.
2661         (init_dummy_target): Install it.
2662
2663 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2664
2665         Allow Python notification of new object-file loadings.
2666         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2667         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2668         Add build rule for this file.
2669         * python/py-event.h (emit_new_objfile_event): New prototype.
2670         (newobjfile): New Python event emitter.
2671         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2672         Python event registry.
2673         * python/py-inferior.c: Include objfiles.h
2674         (python_new_objfile): New function.
2675         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2676         observers.
2677         * python/py-newobjfileevent.c: New file.
2678         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2679         prototype.
2680         * python/python.c (_initialize_python): Add 
2681         gdbpy_initialize_new_objfile_event call.
2682         * NEWS: Add item for new Python event "gdb.newobjfile"
2683
2684 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2685
2686         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2687         Extract the ravenscar task name from the symbol for the atcb.
2688
2689 2011-10-04  Paul Koning  <paul_koning@dell.com>
2690
2691         * python/py-type.c (typy_make_iter): Add forward declaration.
2692         (typy_fields_items):  Use the gdb.Type iterator.
2693
2694 2011-10-04  Paul Koning  <paul_koning@dell.com>
2695
2696         * NEWS: Add entry for Python gdb.Type mapping methods.
2697
2698 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2699
2700         PR python/12691: Add the inferior to Python exited event
2701         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2702         to exited_event.
2703         * python/py-event.h (emit_exited_event): Likewise
2704         * python/-inferior.c (python_inferior_exit): Likewise
2705
2706 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2707
2708         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2709         in output of -ada-task-info GDB/MI command.
2710
2711 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2712
2713         * ada-lang.h (struct inferior): Declare.
2714         (print_ada_task_info): Add declaration.
2715         * ada-tasks.c (print_ada_task_info): Make non-static.
2716         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2717         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2718         * mi/mi-main.c: #include "ada-lang.h".
2719         (mi_cmd_list_features): Add "ada-task-info" to the list
2720         of supported features.
2721         (mi_cmd_ada_task_info): New function.
2722
2723 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2724
2725         * python/python.c (python_run_simple_file): New function.
2726         (source_python_script, source_python_script_for_objfile):
2727         Replace call to PyRun_SimpleFile by call to
2728         python_run_simple_file.
2729
2730 2011-10-03  Paul Koning  <paul_koning@dell.com>
2731
2732         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2733         (value_to_value_object): Fetch value if it was lazy.
2734
2735 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2736
2737         Code cleanup.
2738         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
2739         Rearrange the code for it.
2740
2741 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
2742
2743         * breakpoint.c (bkpt_print_recreate): Add call to
2744         print_recreate_thread.
2745
2746 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
2747
2748         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2749         PTRACE_GETFDPIC_INTERP): Define.
2750
2751 2011-09-28  Yao Qi  <yao@codesourcery.com>
2752
2753         * symfile.c (add_symbol_file_command): Update message on usage.
2754
2755 2011-09-28  Paul Koning  <paul_koning@dell.com>
2756
2757         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2758         (typy_length, typy_get, typy_has_key, typy_make_iter)
2759         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2760         (typy_iterator_iter, typy_iterator_iternext)
2761         (typy_iterator_dealloc): New functions to implement standard
2762         Python mapping methods on gdb.Type object.
2763         (gdb.TypeIterator): New Python type.
2764         * python/python-internal.h (gdbpy_iter_kind): New enum.
2765
2766 2011-09-28  David S. Miller  <davem@davemloft.net>
2767
2768         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2769         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2770         * sparc-tdep.c (sparc_complex_floating_p): New function.
2771         (sparc32_store_arguments): Handle complex floats.
2772         (sparc32_extract_return_value): Likewise.
2773         (sparc32_store_return_value): Likewise.
2774         (sparc32_stabs_argument_has_addr): Likewise.
2775         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2776         (sparc64_store_floating_fields): Handle complex floats.
2777         (sparc64_store_arguments): Likewise.
2778         (sparc64_store_return_value): Likewise.
2779
2780 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
2781
2782         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2783         before the change on 2006-12-09.
2784         (windows_create_inferior) [!__CYGWIN__]: Restore code that
2785         generates the environment block for CreateProcessA, modulo the
2786         Cygwin-specific parts that are not needed here.
2787
2788 2011-09-27  Tristan Gingold  <gingold@adacore.com>
2789
2790         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2791         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2792         (darwin_solib_get_all_image_info_addr_at_init): New function.
2793         (darwin_solib_read_all_image_info_addr): Likewise.
2794         (darwin_solib_create_inferior_hook): Use the above two functions.
2795         * darwin-nat.c (darwin_execvp): Renames retval to res.
2796         (darwin_read_write_inferior): Update comment.
2797         (darwin_read_dyld_info): New function.
2798         (darwin_xfer_partial): Handle DYLD_INFO.
2799
2800 2011-09-27  Stan Shebs  <stan@codesourcery.com>
2801
2802         Add return address collection for tracepoints.
2803         * tracepoint.c (encode_actions_1): Add case for $_ret.
2804         (validate_actionline): Check for $_ret.
2805         (trace_dump_actions): Ditto.
2806         * ax-gdb.h (gen_trace_for_return_address): Declare.
2807         * ax-gdb.c: Include arch-utils.h.
2808         (gen_trace_for_return_address): New function.
2809         (agent_command): Add return address special case.
2810         * amd64-tdep.c: Include ax.h and ax-gdb.h.
2811         (amd64_gen_return_address): New function.
2812         (amd64_init_abi): Call it.
2813         * i386-tdep.c: Include ax.h and ax-gdb.h.
2814         (i386_gen_return_address): New function.
2815         (i386_init_abi): Call it.
2816         * arch-utils.h (default_gen_return_address): Declare.
2817         * arch-utils.c (default_gen_return_address): New function.
2818         * gdbarch.sh (gen_return_address): New method.
2819         * gdbarch.h, gdbarch.c: Regenerate.
2820
2821 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
2822
2823         PR gdb/13079
2824         * i386-tdep.c (i386_frame_align): New.
2825         (i386_gdbarch_init): Use i386_frame_align.
2826
2827 2011-09-23  Yao Qi  <yao@codesourcery.com>
2828
2829         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2830         to get address.
2831
2832 2011-09-22  Tristan Gingold  <gingold@adacore.com>
2833
2834         * fork-child.c (fork_inferior): Add exec_fun parameter.
2835         Call exec_fun or execvp.
2836         * inferior.h: Adjust prototype.
2837         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2838         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2839         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2840         * procfs.c (procfs_create_inferior): Ditto.
2841         * darwin-nat.c (darwin_execvp): New function.
2842         (darwin_create_inferior): Use it.
2843
2844 2011-09-22  Yao Qi  <yao@codesourcery.com>
2845
2846         * infrun.c (context_switch): Print debug message when switching to
2847         a different thread.
2848
2849 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
2850
2851         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2852         complex and vector types.
2853         (s390_return_value_convention): Likewise.
2854
2855         (s390_value_from_register): Call check_typedef.
2856         (extend_simple_arg): Likewise.
2857         (alignment_of): Likewise.
2858         (s390_push_dummy_call): Likewise.
2859         (s390_return_value): Likewise.
2860
2861 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
2862
2863         * event-top.c (async_disconnect): If an exception is thrown from
2864         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
2865         catch_errors.
2866         * top.c (quit_cover): Return void and take no arguments.
2867         * top.h (quit_cover): Update prototype.
2868
2869 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
2870
2871         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2872         current_uiout, not uiout.
2873
2874 2011-09-19  Doug Evans  <dje@google.com>
2875
2876         * python/py-auto-load.c (source_section_scripts): Fix file
2877         descriptor leak.
2878         * python/python.c (source_python_script_for_objfile): Tweak comments.
2879
2880 2011-09-18  Yao Qi  <yao@codesourcery.com>
2881             Ulrich Weigand  <ulrich.weigand@linaro.org>
2882
2883         Support displaced stepping for Thumb 16-bit insns.
2884         * arm-tdep.c (THUMB_NOP) Define.
2885         (thumb_copy_unmodified_16bit): New.
2886         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2887         (thumb_copy_alu_reg): New.
2888         (arm_copy_svc): Move some common code to ...
2889         (install_svc): ... here.  New.
2890         (thumb_copy_svc): New.
2891         (install_pc_relative): New.
2892         (thumb_copy_pc_relative_16bit): New.
2893         (thumb_decode_pc_relative_16bit): New.
2894         (thumb_copy_16bit_ldr_literal): New.
2895         (thumb_copy_cbnz_cbz): New.
2896         (cleanup_pop_pc_16bit_all): New.
2897         (thumb_copy_pop_pc_16bit): New.
2898         (thumb_process_displaced_16bit_insn): New.
2899         (thumb_process_displaced_32bit_insn): New.
2900         (thumb_process_displaced_insn): process thumb instruction.
2901
2902         Support displaced stepping for Thumb 32-bit insns.
2903         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2904         (thumb2_copy_preload): New.
2905         (thumb2_copy_copro_load_store): New.
2906         (thumb2_copy_b_bl_blx): New.
2907         (thumb2_copy_alu_imm): New.
2908         (thumb2_copy_load_reg_imm): New.
2909         (thumb2_copy_load_literal): New
2910         (thumb2_copy_block_xfer): New.
2911         (thumb_32bit_copy_undef): New.
2912         (thumb_32bit_copy_unpred): New.
2913         (thumb2_decode_ext_reg_ld_st): New.
2914         (thumb2_decode_svc_copro): New.
2915         (decode_thumb_32bit_store_single_data_item): New.
2916         (thumb_copy_pc_relative_32bit): New.
2917         (thumb_decode_pc_relative_32bit): New.
2918         (decode_thumb_32bit_ld_mem_hints): New.
2919         (thumb2_copy_table_branch): New
2920         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2921         instructions.
2922
2923 2011-09-18  Yao Qi  <yao@codesourcery.com>
2924
2925         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2926         (install_b_bl_blx): Likewise.
2927
2928 2011-09-17  Yao Qi  <yao@codesourcery.com>
2929
2930         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2931         (install_load_store): ... this.  New.
2932         Change parameter BYTE to SIZE.
2933         (arm_copy_ldr_str_ldrb_strb): Update caller.
2934         (arm_decode_ld_st_word_ubyte): Update caller.
2935
2936 2011-09-17  Yao Qi  <yao@codesourcery.com>
2937
2938         * infrun.c (displaced_step_fixup): Move some code ...
2939         (displaced_step_restore): ... here.  New function.
2940         (handle_inferior_event): Cleanup displaced stepping state for both
2941         child and parent when get forked or vforked event.
2942         * regcache.c (get_thread_arch_aspace_regcache): New function.
2943         get_thread_arch_regcache (): Call it.
2944
2945 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2946
2947         * ada-tasks.c (print_ada_task_info): New function, merging
2948         short_task_info and info_tasks together.  Reimplement using
2949         ui-out instead of printing to stdout directly.  Move the code
2950         building and checking the task list here, instead of leaving it
2951         in info_tasks_command.
2952         (info_task): Move the code building and checking the task
2953         list here, instead of leaving it in info_tasks_command.
2954         (info_tasks_command): Delete code building and checking
2955         the task list - moved elsewhere.  Update calls to info_tasks
2956         and info_task.
2957
2958 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2959
2960         * ada-tasks.c (info_task): Delete parameter `from_tty'.
2961
2962 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2963
2964         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2965
2966 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2967
2968         * ada-lang.h (ada_build_task_list): Remove parameter
2969         `warn_if_null'.
2970         * ada-tasks.c (ada_build_task_list): Remove parameter
2971         `warn_if_null'.  Adjust implementation and documentation.
2972         (valid_task_id, ada_get_environment_task)
2973         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2974         (info_tasks_command): Adjust implementation.
2975         (task_command): Likewise.
2976         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2977         to ada_build_task_list.
2978
2979 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2980
2981         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2982         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2983         (ada_tasks_inferior_data_handle): New static global.
2984         (get_ada_tasks_inferior_data): New function.
2985         (ada_get_task_number, get_task_number_from_id, valid_task_id)
2986         (ada_get_environment_task, iterate_over_live_ada_tasks)
2987         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2988         Adjust.
2989         (ada_set_current_inferior_known_tasks_addr): New function.
2990         (read_known_tasks, ada_build_task_list, short_task_info)
2991         (info_tasks, info_task, info_tasks_command, task_command_1)
2992         (task_command, ada_task_list_changed): Adjust.
2993         (ada_tasks_invalidate_inferior_data): New function.
2994         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2995         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2996         * ada-lang.h (struct inferior): Add declaration.
2997         (ada_task_list_changed): Update profile.
2998         * remote-wtx-pd.c: #include "inferior.h".
2999         (switch_to_pd_internal): Update call to ada_task_list_changed.
3000
3001 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3002
3003         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3004         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3005         (atcb_fieldno): Delete these static globals.
3006         (struct ada_tasks_pspace_data): New struct.
3007         (ada_tasks_pspace_data_handle): New static global.
3008         (get_ada_tasks_pspace_data): New function.
3009         (ada_tasks_invalidate_pspace_data): New function.
3010         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3011         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3012         (_initialize_tasks): Create this module's per-progspace
3013         data handle.
3014
3015 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3016
3017         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3018
3019 2011-09-16  Tristan Gingold  <gingold@adacore.com>
3020
3021         * fork-child.c (fork_inferior): Update comment.  Use alloca
3022         instead of xmalloc for argv.  Move len and shell_command
3023         declarations in the block where they are used.
3024         Only call execvp.  Factorize failure code.
3025
3026 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
3027
3028         Code cleanup.
3029         * parse.c (write_exp_elt): Change argument to pass a pointer of union
3030         `exp_element' instead of an element of the same and make the function
3031         static.
3032         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3033         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3034         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3035         Change argument of `write_exp_elt' function call.
3036         Remove extra spaces from comments.
3037         * parser-defs.h (write_exp_elt): Remove prototype.
3038
3039 2011-09-15  Paul Koning  <paul_koning@dell.com>
3040
3041         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3042         count of item appended to list.
3043         * python/py-type.c (typy_fields): Likewise.
3044
3045 2011-09-15  Paul Koning  <paul_koning@dell.com>
3046
3047         * MAINTAINERS (Write After Approval): Add myself to the list.
3048
3049 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3050
3051         PR threads/12628
3052         * linux-fork.c (checkpoint_command): Disallow checkpointing of
3053         processes with multiple threads.
3054         (inf_has_multiple_thread_cb): New function.
3055         (inf_has_multiple_threads): New function.
3056
3057 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3058
3059         PR Python/12692 Add gdb.selected_inferior() to Python interface.
3060         * python/py-inferior.c (GdbMethods): New Python method definition.
3061
3062 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3063
3064         Handle multiple breakpoint hits in Python interface:
3065         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3066         variable to breakpoints.
3067         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3068         bps instead of single breakpoint. Fix some space typos.
3069         * python/py-stopevent.c (create_breakpoint_event_object): Rename
3070         variable to breakpoints.
3071
3072 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3073
3074         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3075         note if the breakpoint is internal.
3076
3077 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3078
3079         * MAINTAINERS (Write After Approval): Add myself to the list
3080
3081 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
3082
3083         * infrun.c (prepare_for_detach, wait_for_inferior)
3084         (fetch_inferior_event): Don't flush the register cache.
3085         * remote.c (struct stop_reply) <regcache>: Add comment.
3086
3087 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3088
3089         Remove excessive DWARF expressions memory duplication.
3090         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3091         for block.data.
3092         (indirect_pieced_value): Remove variable result.  Remove variable
3093         back_to and its use for baton.data.
3094         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3095         block.data.
3096         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3097         Update the function comment.
3098
3099 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3100
3101         * inferior.h (ALL_INFERIORS): New.
3102         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3103         for a stopped thread.
3104         (thread_db_find_new_threads): Look for threads in all inferiors.
3105
3106 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3107
3108         * breakpoint.c (update_watchpoint): Handle the case of the
3109         watchpoint to update not being in the breakpoint list yet.
3110         (hw_watchpoint_use_count): New, factored out from
3111         hw_watchpoint_used_count.
3112         (hw_watchpoint_used_count): Rename to ...
3113         (hw_watchpoint_used_count_others): ... this.  Add `except'
3114         parameter.  Don't count resources of `except'.  Use
3115         hw_watchpoint_use_count.
3116
3117 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3118
3119         * gdbthread.h (enum thread_state): Moved here.
3120         (struct thread_info): Rename `executing_' field to `executing' and
3121         `state_' to `state'.
3122         * thread.c (enum thread_state): Moved to gdbthread.h.
3123         (new_thread, add_thread_silent, delete_thread_1)
3124         (any_live_thread_of_process, thread_alive, set_running)
3125         (set_running, is_thread_state, any_running, is_executing)
3126         (set_executing, finish_thread_state, print_thread_info)
3127         (do_captured_thread_select): Adjust.
3128
3129 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3130
3131         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3132         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3133
3134 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3135             Matt Rice  <ratmice@gmail.com>
3136
3137         PR gdb/13175
3138
3139         * interps.c (struct interp) <interpreter_out>: Delete field.
3140         (interp_new): Remove the data and uiout parameters and adjust.
3141         (interp_set): Only set the current_uiout from the interpreter's
3142         uiout after initializing the interpreter.  Adjust call to
3143         init_proc.
3144         (interp_ui_out): Adjust to call procs->ui_out_proc.
3145         (interp_data, interp_name): New.
3146         * interps.h (interp_init_ftype): Add `self' parameter.
3147         (interp_ui_out_ftype): New typedef.
3148         (struct interp_procs) <ui_out_proc>: New method pointer.
3149         (interp_new): Remove the data and uiout parameters.
3150         (interp_data, interp_name): Declare.
3151         * tui/tui-interp.c (tui_init): Adjust prototype.
3152         (tui_ui_out): New.
3153         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3154         tui_out here.  Adjust call to interp_new.
3155         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3156         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3157         (cli_ui_out): New.
3158         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3159         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3160         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3161         Initialize mi->uiout depending on the mi_version as extracted from
3162         the interpreter's name.
3163         (mi_ui_out): New.
3164         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3165         interp_new.  Don't allocate the ui_out's of the interpreters here.
3166
3167 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3168
3169         * solib.c (solib_used): New function.
3170         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3171         by another so_list object before freeing it.
3172
3173 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3174
3175         Code cleanup.
3176         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3177         values.
3178
3179 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3180
3181         Code cleanup.
3182         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3183         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3184         parameters.  No longer use amd64_prologue_line_bug.
3185         * defs.h (producer_is_gcc_ge_4): New declaration.
3186         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3187         (process_full_comp_unit): Update its caller.  Remove
3188         amd64_prologue_line_bug initialization.
3189         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3190         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3191
3192 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3193
3194         * linux-nat.h (enum resume_kind): New.
3195         (struct lwp_info) <last_resume_kind>: New field.
3196         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3197         resume_stop on the new lwp.
3198         (add_lwp): Set last_resume_kind as resume_continue by default.
3199         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3200         (resume_lwp): New, factored out from resume_callback.  Also check
3201         for pending status in lp->waitstatus.
3202         (resume_callback): Reimplement.
3203         (resume_clear_callback): Set last_resume_kind as resume_stop.
3204         (resume_set_callback): Set last_resume_kind as resume_continue.
3205         (linux_nat_resume, linux_handle_extended_wait): Set
3206         last_resume_kind.
3207         (running_callback): Also check lp->waitstatus for pending events.
3208         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3209         is resume_step.
3210         (stop_and_resume_callback): Don't re-resume if the core wanted the
3211         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3212         using an invalidated pointer.
3213         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3214         SIGSTOPs if the core wanted the LWP to stop.
3215         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3216         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3217         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3218         of TARGET_SIGNAL_STOP.
3219         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3220         here.  Instead, signal the lwp, and set the last_resume_kind to
3221         resume_stop.
3222
3223 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3224
3225         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3226         -1 (error), if the lwp exits right after attaching.
3227
3228 2011-09-08  Doug Evans  <dje@google.com>
3229
3230         * py-cmd.c: Some minor formatting fixes.
3231         (gdbpy_parse_command_name): Rename text arg to name, make const.
3232         All callers updated.
3233         * python-internal.h (gdbpy_parse_command_name): Update.
3234
3235         * cli/cli-decode.c (add_cmd): Add comment.
3236
3237 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3238
3239         PR breakpoints/12435
3240         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3241         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3242         * dwarf2read.c (process_full_comp_unit): Initialize
3243         amd64_prologue_line_bug.
3244         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3245
3246 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3247
3248         Fix TUI screen corruption.
3249         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3250         batch_flag.
3251
3252 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3253
3254         * findvar.c (read_var_value): Never return NULL, throw an error
3255         instead.  Update the function comment.  State symbol name in the error
3256         messages.
3257         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3258         read_var_value.
3259         * stack.c (print_frame_args): Likewise.
3260         * valops.c (value_of_variable): Likewise.
3261
3262 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3263
3264         * stack.c (print_frame_args): New variable except.  Wrap
3265         read_var_value and common_val_print into TRY_CATCH.
3266
3267 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3268
3269         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3270         caller to value_of_this.
3271         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3272         Twice.
3273         * valops.c (value_of_this): Remove parameter complain and variable ret.
3274         Update function comment.  Never return NULL by this code.
3275         (value_of_this_silent): New function.
3276         * value.h (value_of_this): Remove parameter complain.
3277         (value_of_this_silent): New declaration.
3278
3279 2011-09-07  Yao Qi  <yao@codesourcery.com>
3280
3281         * gdbthread.h (struct thread_info): Remove fields
3282         `stepping_through_solib_after_catch' and
3283         `stepping_through_solib_catchpoints'.
3284         * infrun.c (init_thread_stepping_state): Update.
3285         (process_event_stop_test, currently_stepping): Update.
3286         (currently_stepping_or_nexting_callback): Update.
3287
3288 2011-09-07  Yao Qi  <yao@codesourcery.com>
3289
3290         * gdbthread.h (struct thread_info): Comment on field
3291         `step_after_step_resume_breakpoint'.
3292
3293 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3294
3295         * remote.c (remote_console_output): Reindent.
3296
3297 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3298
3299         * frame.c (has_stack_frames): Check for currently selected
3300         traceframe.
3301
3302 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3303
3304         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3305         (set_async_annotation_level, set_async_prompt, pop_prompt)
3306         (push_prompt, new_async_prompt): Delete declarations.
3307         * top.h (get_prompt, set_prompt): Change prototype.
3308         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3309         declarations.
3310         * top.c (command_loop):
3311         (top_prompt): New global.
3312         (get_prefix, set_prefix, get_suffix, ): Delete.
3313         (get_prompt, set_prompt): Rewrite.
3314         (show_new_async_prompt): Rename to ...
3315         (show_prompt): ... this.
3316         (init_main): Adjust.  Don't handle --annotate=2 here.
3317         * event-top.c (new_async_prompt): Delete.
3318         (the_prompts): Delete.
3319         (more_to_come): Make static.
3320         (display_gdb_prompt): Use top_level_prompt() to compute the top
3321         level prompt, and don't notify the before_prompt observers
3322         directly here.  Always trick readline into not trying to display
3323         the prompt if sync_execution and displaying the primary prompt.
3324         If displaying a local/secondary prompt, always show it, even if
3325         sync_execution is set.
3326         (change_annotation_level): Delete.
3327         (top_level_prompt): New, based on change_annotation_level.
3328         (push_prompt, pop_prompt): Delete.
3329         (async_disable_stdin): No longer pushes prompt.
3330         (command_line_handler): No longer pushes or pops prompt.  If more
3331         input is expected, call display_gdb_prompt with an explicit empty
3332         prompt.
3333         (async_stop_sig): Adjust.
3334         (set_async_annotation_level, set_async_prompt): Delete.
3335         * python/python.c (before_prompt_hook): Adjust.
3336
3337 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3338
3339         PR cli/13110
3340
3341         * infrun.c (fetch_inferior_event): Check if there's a selected
3342         thread before checking if the selected thread is executing.
3343
3344 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3345
3346         * inf-loop.c (execute_command): Don't check if the current thread
3347         if running before synchronously waiting for command completion.
3348         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3349         here.
3350         (normal_stop): Call async_enable_stdin here.
3351         * inf-loop.c (inferior_event_handler): Don't call
3352         async_enable_stdin, nor handle "set exec-done-display" here.
3353
3354 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3355
3356         GDB 7.3.1 released.
3357
3358 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3359
3360         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3361
3362 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3363
3364         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3365
3366 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3367
3368         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3369
3370 2011-09-02  Matt Rice  <ratmice@gmail.com>
3371
3372         PR gdb/10720
3373         * event-top.c (cli_command_loop): Replace readline setup with
3374         direct call to display_gdb_prompt.
3375         (display_gdb_prompt): Do not call observer mechanism during
3376         synchronous execution.
3377
3378 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3379
3380         * linux-nat.c (in_pid_list_p): New.
3381         (linux_record_stopped_pid): Delete.
3382         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3383         already attached to the LWP.  Return an indication if so.
3384         (linux_nat_filter_event): Adjust.
3385         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3386         returning an indication to ignore this thread.
3387
3388 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3389
3390         * top.c: Include interps.h.
3391         (execute_command): If the target can async, but the interpreter is
3392         in sync mode, synchronously wait for the command to finish before
3393         returning.
3394         (execute_command_to_string): Force the interpreter to sync mode.
3395         * infrun.c: Include interps.h.
3396         (fetch_inferior_event): Don't restore the prompt yet if the
3397         interpreter is in sync mode.
3398         * interps.c (interpreter_async): New global.
3399         * interps.h (interpreter_async): Declare.
3400         * inf-loop.c: Include interps.h.
3401         (inferior_event_handler): Don't print the language change or run
3402         breakpoint commands yet if the interpreter in is sync mode.
3403         * main.c (captured_command_loop): Flip the interpreter to async
3404         mode.
3405         * cli/cli-script.c: Include interps.h.
3406         (execute_user_command, while_command, if_command): Force the
3407         interpreter to sync mode.
3408         * python/python.c: Include interps.h.
3409         (python_command, execute_gdb_command): Force the interpreter to
3410         sync mode.
3411
3412 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3413
3414         * value.c (show_convenience): Catch errors thrown while printing
3415         each internal variable.
3416         * infrun.c (validate_siginfo_access): New function.
3417         (siginfo_value_read, siginfo_value_write): Call it.
3418
3419 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3420
3421         Revert:
3422         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3423         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3424         attribute.
3425
3426 2011-08-29  Yao Qi  <yao@codesourcery.com>
3427
3428         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3429         (cmp_name): New.
3430         (enable_break2): Update caller.
3431         * solib-frv.c (bfd_lookup_symbol): Removed.
3432         (cmp_name): New.
3433         (enable_break2): Update caller.
3434         * solib-pa64.c (bfd_lookup_symbol): Removed.
3435         (cmp_name): New.
3436         * solib-svr4.c (bfd_lookup_symbol): Removed.
3437         (cmp_name_and_sec_flags): New.
3438         (enable_break): Update caller.
3439         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3440         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3441         (gdb_bfd_lookup_symbol): New.
3442         * solib.h: Functions declarations.
3443
3444 2011-08-29  Yao Qi  <yao@codesourcery.com>
3445
3446         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3447         and solib-dsbt.o.
3448
3449 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3450
3451         Fix TUI stepi on code without symbols.
3452         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3453         current PC instead.
3454
3455 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3456
3457         Code cleanup.
3458         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3459         and the static keyword.
3460         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3461         Make prefix an array.
3462         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3463         * mi/mi-main.c (get_register): Remove stb initialization and the static
3464         keyword.
3465
3466 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3467
3468         Code cleanup - make mi_opt const.
3469         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3470         opts const.
3471         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3472         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3473         (mi_cmd_env_dir): Likewise.
3474         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3475         (mi_cmd_target_file_put): Likewise.
3476         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3477         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3478         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3479         (mi_valid_noargs): Make opts const.
3480         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3481         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3482         (mi_cmd_data_read_memory): Likewise.
3483         (mi_cmd_data_read_memory_bytes): Likewise.
3484         (mi_cmd_data_write_memory): Likewise.
3485
3486 2011-08-26  Matt Rice  <ratmice@gmail.com>
3487
3488         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3489         bcache_xmalloc,  replace bcache_xmalloc with call to
3490         psymbol_bcache_init for psymbol_cache.
3491         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3492
3493 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3494
3495         * inf-loop.c (inferior_event_handler): Add exception_print in
3496         INF_EXEC_COMPLETE.
3497
3498 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3499
3500         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3501         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3502         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3503         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3504         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3505         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3506         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3507         * infrun.c (fetch_inferior_event): Call
3508         make_bpstat_clear_actions_cleanup.
3509         * top.c (execute_command): New variable cleanup_if_error, call
3510         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3511         * utils.c (do_bpstat_clear_actions_cleanup)
3512         (make_bpstat_clear_actions_cleanup): New functions.
3513
3514 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3515
3516         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3517         either the parent or the child forks.  Rename a couple locals.
3518
3519 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3520
3521         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3522         library call.  Avoid reading the `status' local if all waitpid
3523         calls failed.
3524
3525 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3526
3527         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3528         opening /proc/PID/task always succeeds.
3529
3530 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3531
3532         * linespec.c (symtab_from_filename): Check for the end of string.
3533
3534 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3535
3536         PR mi/11912
3537         * varobj.c (cplus_describe_child): Add the keyword
3538         'class' to the output of the method when dealing 
3539         with a cast to a base class.
3540
3541 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3542
3543         No functionality change.
3544         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3545         function comment a reference, new variables tp and bs, move here code
3546         from throw_exception.
3547         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3548         describe it in the comment.
3549         * exceptions.c (throw_exception): Remove variable tp, move the code for
3550         bpstat_clear_actions to bpstat_clear_actions.
3551
3552 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3553
3554         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3555         * linux-nat.c: Include linux-procfs.h.
3556         (linux_proc_get_tgid): Move to ...
3557         * common/linux-procfs.c: ... here. New file.
3558         * common/linux-procfs.h: New file.
3559         * linux-thread-db.c: Include linux-procfs.h.
3560         * Makefile.in: Update dependencies.
3561         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3562         * config/arm/linux.mh: Likewise.
3563         * config/i386/linux.mh: Likewise.
3564         * config/i386/linux64.mh: Likewise.
3565         * config/ia64/linux.mh: Likewise.
3566         * config/m32r/linux.mh: Likewise.
3567         * config/m68k/linux.mh: Likewise.
3568         * config/mips/linux.mh: Likewise.
3569         * config/pa/linux.mh: Likewise.
3570         * config/pa/linux.mh: Likewise.
3571         * config/powerpc/linux.mh: Likewise.
3572         * config/powerpc/ppc64-linux.mh: Likewise.
3573         * config/powerpc/spu-linux.mh: Likewise.
3574         * config/sparc/linux.mh: Likewise.
3575         * config/sparc/linux64.mh: Likewise.
3576         * config/xtensa/linux.mh: Likewise.
3577
3578 2011-08-24  Hui Zhu  <teawater@gmail.com>
3579
3580         * tracepoint.c (cond_string_is_same): New function.
3581         (find_matching_tracepoint): Add condition check
3582         by cond_string_is_same.
3583
3584 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3585
3586         Fix build error in Darwin port.
3587         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3588
3589 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3590
3591         Code cleanup.
3592         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3593         (command_line_is_silent): New function.
3594         (bpstat_do_actions_1): No longer use commands_left, use
3595         command_line_is_silent for commands.
3596         (bpstat_alloc): Remove clearing of commands_left.
3597         (bpstat_stop_status): Remove initialization of commands_left, use
3598         command_line_is_silent.
3599         * breakpoint.h (struct bpstats): Remove commands_left.
3600
3601 2011-08-18  Keith Seitz  <keiths@redhat.com>
3602
3603         PR c++/12266
3604         * cp-name-parser.y (struct demangle_info): Remove unused
3605         member PREV.
3606         (d_grab): Likewise.
3607         (allocate_info): Change return type to struct demangle_info *.
3608         Always allocate a new demangle_info.
3609         Remove unused PREV pointer.
3610         (cp_new_demangle_parse_info): New function.
3611         (cp_demangled_name_parse_free): New function.
3612         (do_demangled_name_parse_free_cleanup): New function.
3613         (make_cleanup_cp_demangled_name_parse_free): New function.
3614         (cp_demangled_name_to_comp): Change return type to
3615         struct demangle_parse_info *.
3616         Allocate a new storage for each call.
3617         (main): Update usage for cp_demangled_name_to_comp
3618         API change.
3619         * cp-support.h (struct demangle_parse_info): New structure.
3620         (cp_demangled_name_to_comp): Update API change for
3621         return type.
3622         (cp_new_demangle_parse_info): Declare.
3623         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3624         (cp_demangled_name_parse_free): Declare.
3625         * cp-support.c (cp_canonicalize_string): Update API
3626         change for cp_demangled_name_to_comp.
3627         (mangled_name_to_comp): Likewise.
3628         Return struct demangle_parse_info, too.
3629         (cp_class_name_from_physname): Update mangled_name_to_comp
3630         API change.
3631         (method_name_from_physname): Likewise.
3632         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3633         (cp_remove_params): Likewise.
3634         * python/py-type.c (typy_legacy_template_argument): Likewise.
3635
3636         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3637         (cp_merge_demangle_parse_infos): Declare.
3638         * cp-support.c (ignore_typedefs): New file global.
3639         (copy_string_to_obstack): New function.
3640         (inspect_type): New function.
3641         (replace_typedefs): New function.
3642         (replace_typedefs_qualified_name): New function.
3643         (cp_canonicalize_string_no_typedefs): New function.
3644         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3645         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3646         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3647         instead of cp_canonicalize_string.
3648         (find_method): Likewise.
3649         (decode_compound): Before looking up the name, call
3650         cp_canonicalize_string_no_typedefs.
3651         (decode_variable): Likewise.
3652
3653 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3654             Tom Tromey  <tromey@redhat.com>
3655             Matt Rice <ratmice@gmail.com>
3656
3657         * python/lib/gdb/prompt.py: New file.
3658         * python/lib/gdb/command/prompt.py: New file.
3659         * NEWS: Document set extended-prompt and gdb.prompt library
3660
3661 2011-08-16  Yao Qi  <yao@codesourcery.com>
3662
3663         * tic6x-linux-tdep.c: Move const arrays definition from here...
3664         * tic6x-tdep.c: to here ...
3665
3666 2011-08-14  Yao Qi  <yao@codesourcery.com>
3667
3668         * NEWS: New port to Texas Instruments TMS320C6x.
3669
3670 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3671             Bernd Schmidt  <bernds@codesourcery.com>
3672             Yao Qi  <yao@codesourcery.com>
3673
3674         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3675         * solib-dsbt.c: New file.  Support DSBT shared object.
3676         * tic6x-linux-tdep.c: New file.
3677         * tic6x-tdep.c: New file.
3678         * tic6x-tdep.h: New file.
3679
3680 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3681             Yao Qi  <yao@codesourcery.com>
3682
3683         * remote.c (PACKET_qXfer_fdpic): New enum value.
3684         (remote_protocol_features): Add qXfer:fdpic:read packet.
3685         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3686         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3687         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3688
3689 2011-08-14  Yao Qi  <yao@codesourcery.com>
3690
3691         Target description for tic6x.
3692         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3693         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3694         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3695         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3696         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3697         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3698         * features/tic6x-c64xp-linux.xml: New.
3699         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3700         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3701         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3702         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3703         * regformats/tic6x-c64xp.dat,
3704         regformats/tic6x-c62x-linux.dat: Generated.
3705         * regformats/tic6x-c64x-linux.dat,
3706         regformats/tic6x-c64xp-linux.dat: Generated.
3707         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3708         features/tic6x-*.c files.
3709         Add regformats/tic6x-*.dat files.
3710
3711 2011-08-12  Doug Evans  <dje@google.com>
3712
3713         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3714         * python/py-symbol.c (sympy_get_type): New function.
3715         (symbol_object_getset): Add "type".
3716
3717 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3718
3719         PR tui/13073
3720
3721         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3722         empty name.
3723         (tui_show_register_group): Don't store a byte buffer in the data
3724         element's value.
3725         (tui_register_format): Skip registers with an empty name.
3726         (tui_get_register): Store a struct value in the data element's
3727         value field instead of a byte buffer holding the raw register
3728         contents.  Account for optimized-out and unavailable registers
3729         when comparing register contents.
3730
3731 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3732
3733         * printcmd.c (current_display_number): Update comment.
3734         (disable_current_display_cleanup): Delete.
3735         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
3736         catch errors thrown while evaluating and printing the display.
3737
3738 2011-08-09  Tom Tromey  <tromey@redhat.com>
3739
3740         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3741
3742 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3743
3744         * elfread.c (elf_symtab_read): Rework comments.
3745         * maint.c (maintenance_command): Ditto.
3746         * somread.c (som_symtab_read): Ditto.
3747         * solib.c (solib_find, solib_map_sections, update_solib_list)
3748         (solib_add, info_sharedlibrary_command, solib_name_from_address)
3749         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3750         (sharedlibrary_command, no_shared_libraries): Ditto.
3751         * solib-irix.c (locate_base, disable_break, enable_break)
3752         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3753         (irix_current_sos, irix_open_symbol_file_object)
3754         (irix_special_symbol_handling): Ditto.
3755         * solib-sunos.c (locate_base, first_link_map_member)
3756         (sunos_current_sos, disable_break, enable_break)
3757         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3758         Ditto.
3759         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3760         (open_symbol_file_object, svr4_current_sos, enable_break)
3761         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3762         Ditto.
3763         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3764         (frv_current_sos, enable_break, frv_special_symbol_handling)
3765         (frv_solib_create_inferior_hook): Ditto.
3766         * solist.h (struct target_so_ops): Extend the comments of the
3767         special_symbol_handling, current_sos and open_symbol_file_object
3768         methods.
3769
3770 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
3771
3772         * python/lib/gdb/__init__.py: Auto-load files in command and
3773         function directories.
3774         * python/python.c (finish_python_initialization): Use
3775         os.path.join.
3776         * python/lib/gdb/command/pretty_printers.py: Self register
3777         command.
3778         * NEWS: Document auto-loading.
3779
3780 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3781
3782         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3783         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3784         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
3785
3786 2011-08-08  Tom Tromey  <tromey@redhat.com>
3787
3788         * breakpoint.c (clean_up_filters): Remove.
3789         (catch_syscall_split_args): Use VEC_cleanup.
3790
3791 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3792
3793         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3794         (main): Uncomment "Demangling error\n".
3795
3796 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3797
3798         * solib-target.c (segment_attributes): Make them static.
3799         (section_attributes, library_children, library_attributes): Likewise.
3800         (library_list_children, library_list_attributes): Likesise.
3801         (library_list_elements): Likewise.
3802
3803 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
3804
3805         * exceptions.c (throw_exception): Don't disable the current
3806         display.
3807         * printcmd.c (disable_current_display_cleanup): New function.
3808         (do_one_display): Install a cleanup to disable the current display
3809         if doing the display throws.
3810
3811 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
3812
3813         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3814         initialization of the tp_new member to the corresponding
3815         gdbpy_initialize_* function.
3816         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3817         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3818         * python/py-function.c (gdbpy_initialize_functions): Likewise.
3819         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3820         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3821
3822 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3823
3824         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3825         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3826         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3827         references to current_uiout.
3828
3829 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3830
3831         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3832         (start_event_loop): Use TRY_CATCH instead of catch_errors.
3833         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3834         * top.c (gdb_readline_wrapper): Adjust.
3835         * tui/tui-interp.c (tui_command_loop):
3836         (_initialize_tui_interp): Don't install it.
3837
3838 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3839
3840         * ui-out.h (uiout): Rename to ...
3841         (current_uiout): ... this.
3842         * ui-out.c (uiout): Rename to ...
3843         (current_uiout): ... this.
3844         * ada-lang.c (print_it_exception, print_one_exception)
3845         (print_mention_exception): Adjust.
3846         * breakpoint.c (watchpoint_check): Adjust.
3847         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3848         (default_collect_info, watchpoints_info, print_one_catch_fork)
3849         (print_one_catch_vfork, print_one_catch_syscall)
3850         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3851         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3852         (print_it_watchpoint, print_mention_watchpoint)
3853         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3854         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3855         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3856         (bkpt_print_mention, momentary_bkpt_print_it)
3857         (tracepoint_print_mention, update_static_tracepoint)
3858         (tracepoints_info, save_breakpoints): Adjust.
3859         * cli-out.c (field_separator): Adjust.
3860         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3861         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3862         * frame.c (get_current_frame): Adjust.
3863         * infcmd.c (run_command_1, print_return_value): Adjust.
3864         * inferior.c (inferior_command, info_inferiors_command): Adjust.
3865         * infrun.c (print_end_stepping_range_reason): Adjust.
3866         (print_signal_exited_reason, print_exited_reason): Adjust.
3867         (print_signal_received_reason, print_no_history_reason): Adjust.
3868         * interps.c (interp_set): Adjust.
3869         * osdata.c (info_osdata_command): Adjust.
3870         * progspace.c (maintenance_info_program_spaces_command): Adjust.
3871         * remote-fileio.c (remote_fileio_request): Adjust.
3872         * remote.c (show_remote_cmd): Adjust.
3873         * solib.c (info_sharedlibrary_command): Adjust.
3874         * source.c (print_source_lines_base): Adjust.
3875         * stack.c (print_stack_frame): Adjust.
3876         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3877         * symfile-mem.c (add_vsyscall_page): Adjust.
3878         * symfile.c (load_progress, generic_load)
3879         (print_transfer_performance): Adjust.
3880         * thread.c (info_threads_command, restore_selected_frame)
3881         (thread_command): Adjust.
3882         * top.c (make_cleanup_restore_ui_file): Adjust.
3883         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3884         (print_one_static_tracepoint_marker): Adjust.
3885         * cli/cli-cmds.c (print_disassembly): Adjust.
3886         * cli/cli-decode.c (print_doc_line): Adjust.
3887         * cli/cli-interp.c (safe_execute_command): Adjust.
3888         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3889         (handle_redirections): Adjust.
3890         * cli/cli-script.c (show_user_1): Adjust.
3891         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3892         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3893         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3894         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3895         (mi_cmd_env_dir): Adjust.
3896         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3897         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3898         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3899         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3900         (list_args_or_locals): Adjust.
3901         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3902         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3903         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3904         (mi_cmd_var_list_children, mi_cmd_var_info_type)
3905         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3906         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3907         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3908         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3909         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3910         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3911         (list_available_thread_groups, mi_cmd_list_thread_groups)
3912         (mi_cmd_data_list_register_names)
3913         (mi_cmd_data_list_changed_registers)
3914         (mi_cmd_data_list_register_values, get_register)
3915         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3916         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3917         (mi_cmd_list_target_features, mi_cmd_add_inferior)
3918         (mi_execute_command, mi_load_progress): Adjust.
3919         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3920         * python/py-auto-load.c (print_script, info_auto_load_scripts):
3921         Adjust.
3922         * python/py-breakpoint.c (bppy_get_commands): Adjust.
3923         * tui/tui-interp.c (tui_command_loop): Adjust.
3924         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3925
3926 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3927
3928         * exceptions.c (struct catcher): Remove saved_uiout field.
3929         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3930         no longer save/resvore the global ui_out builder.
3931         (catch_exceptions_with_msg): Save/override/restore the global
3932         ui_out builder manually instead of relying on TRY_CATCH to do it.
3933         (catch_errors): Save/restore the global ui_out builder manually
3934         instead of relying on TRY_CATCH to do it.
3935         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3936         parameter.
3937         (TRY_CATCH): Adjust.
3938         * cli/cli-interp.c (safe_execute_command): Save/override/restore
3939         the global ui_out builder manually instead of relying on TRY_CATCH
3940         to do it.
3941
3942 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3943
3944         * breakpoint.c (update_global_location_list): Ensure
3945         invariant 'first loc marked not duplicated and inserted,
3946         following locs marked duplicated/not inserted' is respected
3947         for multiple locations at the same address.
3948         (unduplicated_should_be_inserted) New function.
3949         (swap_insertion) New function.
3950
3951 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3952
3953         * stack.c (print_frame_arguments_choices): Comment typo fix.
3954
3955 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3956
3957         Revert:
3958         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3959         * breakpoint.c (insert_bp_location): Remove disabled_breaks
3960         argument.  Update callers.
3961
3962 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3963
3964         PR gdb/13045
3965         * doublest.c (convert_doublest_to_floatformat): Pass correct
3966         mantissa length to put_field.
3967
3968 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3969
3970         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3971         exception_print code path.
3972         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
3973         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
3974         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
3975
3976 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3977
3978         Code cleanup.
3979         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3980         Remove, merge them into ...
3981         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
3982         variable args and its initialization.
3983         (struct print_args_args, print_args_stub): Remove, merge them into
3984         print_frame.
3985         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3986         them into ...
3987         (do_gdb_disassembly): ... here.  Remove variable args and its
3988         initialization.
3989         (print_frame): Remove variable args and its initialization, new
3990         variable gdbarch and numargs (from print_args_stub), inline here
3991         print_args_stub with a TRY_CATCH.
3992         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3993         them into ...
3994         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3995         New variable e, remove variable btargs and its initialization.
3996
3997 2011-08-01  Tristan Gingold  <gingold@adacore.com>
3998
3999         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4000
4001 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4002
4003         * breakpoint.c (insert_bp_location): Document return value.
4004         (insert_breakpoint_locations): Fix documentation.
4005         (remove_breakpoints): Add documentation.
4006
4007 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4008
4009         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4010         argument.  Update callers.
4011
4012 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4013
4014         * stack.c (print_frame_info): Comment typo fix.
4015
4016 2011-07-29  Sterling Augustine  <saugustine@google.com>
4017
4018         * MAINTAINERS (Write After Approval): Add myself to the list.
4019
4020 2011-07-29  Tom Tromey  <tromey@redhat.com>
4021
4022         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4023         (library_list_start_segment): Update.
4024         (library_list_start_section): Update.
4025
4026 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
4027
4028         * varobj.c (value_get_print_value): Move hint check later into the
4029         function.  Comment function.  Free thevalue before reusing it.
4030
4031 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4032             Pedro Alves  <pedro@codesourcery.com>
4033
4034         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4035         value_one.
4036         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
4037         Assert the result kind.
4038         * value.h (value_one): Remove parameter lv.
4039
4040 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4041
4042         Fix crash on lval_computed values.
4043         * valops.c (value_zero): Use not_lval for lval_computed.
4044
4045 2011-07-27  Tom Tromey  <tromey@redhat.com>
4046
4047         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4048         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4049
4050 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4051
4052         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4053         "ptype" by their typedefs difference.
4054
4055 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4056
4057         * dwarf2expr.c (ctx_no_read_reg): New function.
4058         * dwarf2expr.h (ctx_no_read_reg): New declaration.
4059         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4060         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4061         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4062
4063 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4064
4065         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4066         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4067         file.
4068         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4069         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4070         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4071         (ctx_no_get_base_type): Move the functions here.
4072         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4073         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4074         (ctx_no_get_base_type): New declarations.
4075
4076 2011-07-27  Tom Tromey  <tromey@redhat.com>
4077
4078         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4079         entries.
4080         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4081         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4082
4083 2011-07-26  Sterling Augustine  <saugustine@google.com>
4084
4085         * cli/cli-dump.c (dump_binary_file): Change parameter type to
4086         ULONGEST.
4087         (dump_bfd_file): Likewise.
4088
4089 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4090
4091         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4092         (remote_hw_watchpoint_length_limit): New variable.
4093         (_initialize_remote) add set,show cmds for this new variable.
4094         * gdb.texinfo: document these new commands.
4095         * NEWS: Mention these new commands.
4096
4097 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4098
4099         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4100         true for software watchpoints.
4101
4102 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4103
4104         GDB 7.3 released.
4105
4106 2011-07-26  Tom Tromey  <tromey@redhat.com>
4107
4108         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4109         * dwarf2read.c (read_indirect_string_at_offset): New function.
4110         (read_indirect_string): Use it.
4111         (dwarf_decode_macro_bytes): New function, taken from
4112         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4113         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4114         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4115         New functions.
4116         (struct dwarf2_per_objfile) <macro>: New field.
4117         (dwarf2_elf_names): Add .debug_macro.
4118         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4119         (dwarf2_locate_sections): Handle new section.
4120         (read_file_scope): Handle DW_AT_GNU_macros.
4121         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4122
4123 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4124
4125         * NEWS: Mention dcache configuration.
4126         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4127         (dcache_size, dcache_line_size): New variables.
4128         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4129         (struct dcache_block): Make it expandable.
4130         (struct dcache_struct): New field.
4131         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4132         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4133         (dcache_poke_byte, dcache_print_line): Adjust.
4134         (set_dcache_size, set_dcache_line_size): New functions.
4135         (set_dcache_command, show_dcache_command): New functions.
4136         (_initialize_dcache): Add new commands.
4137
4138 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4139
4140         * progspace.h (struct program_space): Add solib_add_generation.
4141         * infcmd.c (post_create_inferior): Only call solib_add if not
4142         already done.
4143         * solib.c (solib_add): Increment solib_add_generation.
4144
4145 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4146
4147         Fix implicit pointer offsets.
4148         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4149         ptr.OFFSET.
4150
4151 2011-07-25  Tom Tromey  <tromey@redhat.com>
4152
4153         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4154         const.
4155         (ada_exception_sal): Make 'ops' const.
4156         (ada_decode_exception_location): Likewise.
4157         (ada_decode_assert_location): Likewise.
4158         (catch_assert_command): Update.
4159         (catch_ada_exception_command): Update.
4160         (create_ada_exception_catchpoint): Make 'ops' const.
4161         * breakpoint.c (set_raw_breakpoint_without_location)
4162         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4163         const.
4164         (create_internal_breakpoint): Update.
4165         (init_raw_breakpoint_without_location): Make 'ops' const.
4166         (init_raw_breakpoint, init_catchpoint)
4167         (create_fork_vfork_event_catchpoint)
4168         (create_syscall_event_catchpoint, init_breakpoint_sal)
4169         (create_breakpoint_sal, create_breakpoints_sal)
4170         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4171         * breakpoint.h (struct breakpoint) <ops>: Now const.
4172         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4173         const.
4174
4175 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4176
4177         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4178
4179 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4180
4181         * breakpoint.h (print_recreate_thread): Declare.
4182         (struct breakpoint): Move step_count, pass_count,
4183         number_on_target, static_trace_marker_id,
4184         static_trace_marker_id_idx ...
4185         (struct tracepoint): ... to this new struct.
4186         (get_tracepoint, get_tracepoint_by_number_on_target)
4187         (get_tracepoint_by_number): Change return type to struct
4188         tracepoint pointer.
4189         * breakpoint.c (is_tracepoint_type): New, factored out from
4190         is_tracepoint.
4191         (is_tracepoint): Adjust.
4192         (print_one_breakpoint_location): Cast to struct tracepoint as
4193         necessary, and adjust.
4194         (print_recreate_catch_fork, print_recreate_catch_vfork)
4195         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4196         print_recreate_thread.
4197         (init_breakpoint_sal): New, factored out from
4198         create_breakpoint_sal.
4199         (create_breakpoint_sal): Reimplement.
4200         (create_breakpoint): Allocate a struct tracecepoint if the caller
4201         wanted a tracepoint.  Use init_breakpoint_sal and
4202         install_breakpoint.
4203         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4204         (print_recreate_masked_watchpoint)
4205         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4206         (tracepoint_print_one_detail): Adjust.
4207         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4208         Dump the pass count here.
4209         (update_static_tracepoint): Adjust.
4210         (addr_string_to_sals): Adjust.
4211         (create_tracepoint_from_upload): Adjust.  Change return type to
4212         struct tracepoint pointer.
4213         (trace_pass_set_count): Change parameter type to struct tracepoint
4214         pointer, and adjust.
4215         (trace_pass_command): Adjust.
4216         (get_tracepoint, get_tracepoint_by_number_on_target)
4217         (get_tracepoint_by_number): Change return type to struct
4218         tracepoint pointer, and adjust.
4219         (print_recreate_thread): New, factored out from save_breakpoints.
4220         (save_breakpoints): Don't print thread and task and passcount
4221         recreation here.
4222         * remote.c (remote_download_tracepoint): Adjust.
4223         * tracepoint.c (trace_actions_command, validate_actionline)
4224         (start_tracing, tfind_1, trace_find_tracepoint_command)
4225         (trace_dump_command): Adjust.
4226         (find_matching_tracepoint): Change return type to struct
4227         tracepoint pointer, and adjust.
4228         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4229         (tfile_trace_find, tfile_fetch_registers): Adjust.
4230         * tracepoint.h (create_tracepoint_from_upload): Change return type
4231         to struct tracepoint pointer.
4232         * ada-lang.c (print_recreate_exception): Call
4233         print_recreate_thread.
4234         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4235
4236 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4237
4238         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4239         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4240         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4241         watchpoint_thread, watchpoint_triggered ...
4242         (struct watchpoint): ... to this new struct.
4243         (is_watchpoint): Declare.
4244         (install_breakpoint): Add new `internal' parameter.
4245         * breakpoint.c (is_watchpoint): Delete declaration.
4246         (set_breakpoint_condition): Handle watchpoints.
4247         (is_watchpoint): Make public.
4248         (watchpoint_in_thread_scope): Change parameter type to struct
4249         watchpoint.
4250         (watchpoint_del_at_next_stop): Change parameter type to struct
4251         watchpoint.  Remove assertion.  Adjust.
4252         (update_watchpoint): Ditto.
4253         (insert_breakpoints, breakpoint_init_inferior)
4254         (watchpoints_triggered, watchpoint_check)
4255         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4256         (bpstat_stop_status, print_one_breakpoint_location)
4257         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4258         to struct watchpoint as necessary, and adjust.
4259         (install_breakpoint): Add `internal' argument.  If true, don't
4260         mention the new breakpoint.  Use set_breakpoint_number.
4261         (create_fork_vfork_event_catchpoint)
4262         (create_syscall_event_catchpoint): Adjust.
4263         (dtor_watchpoint): New.
4264         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4265         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4266         (print_it_watchpoint, print_mention_watchpoint)
4267         (print_recreate_watchpoint, insert_masked_watchpoint)
4268         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4269         (print_one_detail_masked_watchpoint)
4270         (print_mention_masked_watchpoint)
4271         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4272         necessary, and adjust.
4273         (watch_command_1): Allocate and initialize a struct watchpoint
4274         instead of a struct breakpoint.  Use install_breakpoint.
4275         (catch_exec_command_1): Adjust.
4276         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4277         fields.
4278         (delete_breakpoint, enable_breakpoint_disp)
4279         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4280         as necessary, and adjust.
4281         (initialize_breakpoint_ops): Install dtor_watchpoint as
4282         watchpoints' dtor method.
4283         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4284         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4285         to struct watchpoint as necessary, and adjust.
4286
4287 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4288
4289         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4290         the the base class ops table.
4291         (catch_exception_breakpoint_ops)
4292         (catch_exception_unhandled_breakpoint_ops)
4293         (catch_assert_breakpoint_ops): Don't statically initialize.
4294         (initialize_ada_catchpoint_ops): New.
4295         (_initialize_ada_language): Call it.
4296         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4297         (bkpt_breakpoint_ops): Forward declare.
4298         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4299         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4300         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4301         (masked_watchpoint_breakpoint_ops)
4302         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4303         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4304         base class ops table.
4305         (null_re_set, null_check_status, null_works_in_software_mode)
4306         (null_resources_needed, null_print_one_detail): Delete.
4307         (bkpt_dtor): Rename to ...
4308         (base_breakpoint_dtor): ... this.  Make static.
4309         (bkpt_allocate_location): Rename to ...
4310         (base_breakpoint_allocate_location): ... this.  Make static.
4311         (base_breakpoint_re_set): New.
4312         (internal_error_pure_virtual_called): New.
4313         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4314         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4315         (base_breakpoint_works_in_software_mode)
4316         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4317         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4318         (base_breakpoint_print_recreate): New functions.
4319         (base_breakpoint_ops): New global.
4320         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4321         (bkpt_breakpoint_hit): Make static.
4322         (bkpt_check_status): Delete.
4323         (bkpt_resources_needed): Make static.
4324         (bkpt_works_in_software_mode): Delete.
4325         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4326         static.
4327         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4328         (momentary_breakpoint_ops): Don't statically initialize.
4329         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4330         Delete.
4331         (tracepoint_insert_location, tracepoint_remove_location)
4332         (tracepoint_check_status, tracepoint_works_in_software_mode)
4333         (tracepoint_print_it): Delete.
4334         (tracepoint_breakpoint_ops): Don't statically initialize.
4335         (initialize_breakpoint_ops): New.
4336         (_initialize_breakpoint): Call it.
4337         * breakpoint.h (null_re_set, null_works_in_software_mode)
4338         (null_resources_needed, null_check_status, null_print_one_detail):
4339         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4340         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4341         (bkpt_check_status, bkpt_resources_needed)
4342         (bkpt_works_in_software_mode, bkpt_print_it)
4343         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4344         Delete declarations.
4345         (initialize_breakpoint_ops): Declare.
4346
4347 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4348
4349         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4350         (momentary_bkpt_print_it): Simplify.
4351
4352 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4353
4354         Split internal, momentary and user breakpoints breakpoint_ops
4355         tables.
4356
4357         * breakpoint.c (internal_breakpoint_ops)
4358         (momentary_breakpoint_ops): Forward declare.
4359         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4360         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4361         (create_overlay_event_breakpoint)
4362         (create_std_terminate_master_breakpoint)
4363         (create_exception_master_breakpoint): Create breakpoints with
4364         internal_breakpoint_ops vtable.
4365         (set_longjmp_breakpoint): Create momentary breakpoints with
4366         momentary_breakpoint_ops vtable, using
4367         momentary_breakpoint_from_master.
4368         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4369         (create_solib_event_breakpoint): Create breakpoints with
4370         internal_breakpoint_ops vtable.
4371         (set_momentary_breakpoint): Create breakpoints with
4372         momentary_breakpoint_ops vtable.
4373         (momentary_breakpoint_from_master): New, factored out from
4374         clone_momentary_breakpoint.
4375         (clone_momentary_breakpoint): Adjust.
4376         (watch_command_1): Create scope breakpoints with
4377         momentary_breakpoint_ops vtable.
4378         (bkpt_re_set): Remove handling of internal and momentary
4379         breakpoints.
4380         (bkpt_print_mention, bkpt_print_recreate): New.
4381         (bkpt_breakpoint_ops): Adjust.
4382         (internal_bkpt_re_set, internal_bkpt_check_status)
4383         (internal_bkpt_print_it, internal_bkpt_print_mention)
4384         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4385         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4386         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4387         (momentary_bkpt_print_recreate): New.
4388         (momentary_breakpoint_ops): New.
4389
4390 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4391
4392         Implement most breakpoint_ops methods for all breakpoint types,
4393         and move the default handlings to the proper callbacks.
4394
4395         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4396         works_in_software_mode method.
4397         (insert_bp_location): Go through breakpoint_ops->insert_location
4398         for software and hardware watchpoints.
4399         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4400         breakpoint_ops.
4401         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4402         for software and hardware watchpoints.
4403         (print_it_typical): Delete.
4404         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4405         method.
4406         (watchpoint_check): Adjust comment.
4407         (bpstat_check_location): Simply always call the breakpoint's
4408         breakpoint_hit method.
4409         (bpstat_stop_status): Always call the breakpoint's check_status
4410         method.  Remove special cases for watchpoints and internal event
4411         breakpoints from here (moved to the check_status implementations).
4412         (print_one_breakpoint_location): Assume b->ops is never NULL.
4413         Remove static tracepoint marker id printing from here (moved to
4414         the print_one_detail callback implementation of tracepoints).
4415         (init_bp_location): Assert OPS is never NULL.
4416         (allocate_bp_location): Always call the breakpoint's
4417         allocate_location method, and remove the default code from here.
4418         (free_bp_location): Always call the location's dtor method, and
4419         remove the default code from here.
4420         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4421         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4422         parameter.  Pass it down.
4423         (set_raw_breakpoint): Ditto.
4424         (print_it_catch_fork): Adjust to take a bpstat as argument.
4425         (catch_fork_breakpoint_ops): Install methods.
4426         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4427         (catch_vfork_breakpoint_ops): Install methods.
4428         (dtor_catch_syscall): Call the base dtor.
4429         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4430         (catch_syscall_breakpoint_ops): Install methods.
4431         (dtor_catch_exec): Call the base dtor.
4432         (print_it_catch_exec): Adjust to take a bpstat as argument.
4433         (catch_exec_breakpoint_ops): Install methods.
4434         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4435         the breakpoint's resources_needed method, and remove the default
4436         code from here.
4437         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4438         breakpoint_ops.
4439         (clone_momentary_breakpoint): Clone the original's ops.
4440         (mention): Always call the breakpoint's print_mention method, and
4441         remove the default code from here.
4442         (create_breakpoint_sal): Adjust to pass the ops to
4443         set_raw_breakpoint rather than setting it manually.
4444         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4445         ops to set_raw_breakpoint_without_location rather than setting it
4446         manually.
4447         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4448         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4449         (ranged_breakpoint_ops): Install methods.
4450         (break_range_command): Adjust to pass the ops to
4451         set_raw_breakpoint rather than setting it manually.
4452         (re_set_watchpoint, breakpoint_hit_watchpoint)
4453         (check_status_watchpoint, resources_needed_watchpoint)
4454         (works_in_software_mode_watchpoint, print_it_watchpoint)
4455         (print_mention_watchpoint, print_recreate_watchpoint): New
4456         functions.
4457         (watchpoint_breakpoint_ops): Install new methods.
4458         (print_it_masked_watchpoint): New function.
4459         (masked_watchpoint_breakpoint_ops): Install new methods.
4460         (watch_command_1): Adjust to pass the right breakpoint_ops to
4461         set_raw_breakpoint_without_location rather than setting it
4462         manually later.  Record the current pspace.
4463         (print_it_exception_catchpoint): Adjust to take a bpstat as
4464         argument.
4465         (gnu_v3_exception_catchpoint_ops): Install new methods.
4466         (say_where): New function.
4467         (null_re_set, null_check_status, null_works_in_software_mode)
4468         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4469         New functions.
4470         (bp_location_ops): New global.
4471         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4472         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4473         (bkpt_check_status, bkpt_resources_needed)
4474         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4475         (bkpt_print_recreate): New functions.
4476         (bkpt_breakpoint_ops): New global.
4477         (tracepoint_re_set, tracepoint_insert_location)
4478         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4479         (tracepoint_check_status, tracepoint_works_in_software_mode)
4480         (tracepoint_print_it, tracepoint_print_one_detail)
4481         (tracepoint_print_mention, tracepoint_print_recreate): New
4482         functions.
4483         (tracepoint_breakpoint_ops): New global.
4484         (delete_breakpoint): Always call the breakpoint's dtor method, and
4485         remove the default handling from here.
4486         (breakpoint_re_set_default): Make static.
4487         (breakpoint_re_set_one): Always call the breakpoints re_set
4488         method, and remove the default handling from here.
4489         (trace_command, ftrace_command, strace_command)
4490         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4491         to create_breakpoint.
4492         (save_breakpoints): Always call the breakpoint's print_recreate
4493         method, and remove the default handling from here.
4494
4495         * ada-lang.c (dtor_exception): Call the base dtor.
4496         (re_set_exception): Call the base method.
4497         (print_it_exception, print_it_catch_exception): Adjust to take a
4498         bpstat as argument.
4499         (catch_exception_breakpoint_ops): Install methods.
4500         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4501         argument.
4502         (catch_exception_unhandled_breakpoint_ops): Install methods.
4503         (print_it_catch_assert): Adjust to take a bpstat as argument.
4504         (catch_assert_breakpoint_ops): Install methods.
4505
4506         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4507         to take a bpstat as argument.
4508         (enum print_stop_action): Add describing comments to each enum
4509         value.
4510         (breakpoint_re_set_default): Delete declaration.
4511         (null_re_set, null_works_in_software_mode, null_resources_needed)
4512         (null_check_status, null_print_one_detail): Declare.
4513         (bkpt_breakpoint_ops): Declare.
4514         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4515         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4516         (bkpt_check_status, bkpt_resources_needed)
4517         (bkpt_works_in_software_mode, bkpt_print_it)
4518         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4519         Declare.
4520
4521         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4522         bkpt_breakpoint_ops.
4523         * python/py-breakpoint.c (bppy_init): Ditto.
4524
4525 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4526
4527         * MAINTAINERS (Write After Approval): Add myself to the list.
4528
4529 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4530
4531         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4532
4533 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4534
4535         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4536         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4537         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4538         adjust.
4539         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4540         (struct i386_debug_reg_state): New.
4541         (i386_init_dregs): New.
4542         (dr_mirror): New.
4543         (i386_cleanup_dregs): Use i386_init_dregs.
4544         (i386_show_dr): Add state parameter and adjust.
4545         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4546         the inferior here.
4547         (i386_remove_aligned_watchpoint): Likewise.
4548         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4549         (i386_update_inferior_debug_regs): New.
4550         (i386_insert_watchpoint): Work on a local mirror of the debug
4551         registers, and only update the inferior on success.
4552         (i386_remove_watchpoint): Ditto.
4553         (i386_region_ok_for_watchpoint): Adjust.
4554         (i386_stopped_data_address): Adjust.
4555         (i386_insert_hw_breakpoint): Adjust.
4556         (i386_remove_hw_breakpoint): Adjust.
4557
4558 2011-07-22  Tom Tromey  <tromey@redhat.com>
4559
4560         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4561         from amd64_pseudo_register_read.  Change arguments.  Call
4562         mark_value_bytes_unavailable when needed.
4563         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4564         set_gdbarch_pseudo_register_read.
4565         * sentinel-frame.c (sentinel_frame_prev_register): Use
4566         regcache_cooked_read_value.
4567         * regcache.h (regcache_cooked_read_value): Declare.
4568         * regcache.c (regcache_cooked_read_value): New function.
4569         (regcache_cooked_read): Call
4570         gdbarch_pseudo_register_read_value if available.
4571         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4572         (i386_pseudo_register_read): Remove.
4573         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4574         i386_pseudo_register_read.  Change arguments.  Call
4575         mark_value_bytes_unavailable when needed.
4576         (i386_pseudo_register_read_value): New function.
4577         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4578         not set_gdbarch_pseudo_register_read.
4579         * gdbarch.sh (pseudo_register_read_value): New method.
4580         * gdbarch.c, gdbarch.h: Rebuild.
4581         * findvar.c (value_from_register): Call get_frame_register_value.
4582
4583 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4584
4585         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4586         get_prefix.
4587         (display_gdb_prompt): Likewise.
4588         (change_annotation_level): Likewise.
4589         (push_prompt): Likewise.
4590         (pop_prompt): Likewise.
4591         (handle_stop_sig): Use get_prompt with a level.
4592         * top.c (command_loop): Use get_prompt with a level.
4593         (set_async_annotation_level): Use set_prompt with a level.
4594         (get_prefix): New function.
4595         (set_prefix): Ditto.
4596         (set_suffix): Ditto.
4597         (get_suffix): Ditto.
4598         (get_prompt): Accept a level argument.
4599         (set_prompt): Accept a level argument.  Free old prompts.  Set
4600         new_async_prompt if level is 0.
4601         (init_main): Use set_prompt with a level.  Do not set
4602         new_async_prompt.
4603         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4604         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4605         Modify set_prompt, get_prompt to account for levels.
4606         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4607         level.
4608         * python/python.c (before_prompt_hook): Use set_prompt.
4609         
4610 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4611
4612         * defs.h: Add guard against inclusion in gdbserver.
4613         (struct ptid, ptid_t): Move to common/ptid.h.
4614         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4615         xsnprintf, internal_error): Move to common/common-utils.h.
4616         (nomem): Delete.
4617         * gdb_assert.h: Move into common/ sub-directory.
4618         * gdb_locale.h: Ditto.
4619         * gdb_dirent.h: Ditto.
4620         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4621         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4622         Move into common/ptid.h.
4623         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4624         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4625         Change nomem to malloc_failure.
4626         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4627         * utils.c (nomem): Rename to malloc_failure.
4628         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4629         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4630         (gdb_buildargv): Change nomem to malloc_failure.
4631         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4632         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4633         ptid_is_pid): Move into common/ptid.c.
4634         (initialize_infrun): Delete initialization of null_ptid and
4635         minus_one_ptid.
4636         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4637         linux_common_xfer_osdata.
4638         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4639         common/ptid.c and common/buffer.c.
4640         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4641         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4642         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4643         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4644         rules.
4645         * common/gdb_assert.h: New.
4646         * common/gdb_dirent.h: New.
4647         * common/gdb_locale.h: New.
4648         * common/buffer.c: New.
4649         * common/buffer.h: New.
4650         * common/ptid.c: New.
4651         * common/ptid.h: New.
4652         * common/xml-utils.c: New.
4653         * common/xml-utils.h: New.
4654         * common/common-utils.c: New.
4655         * common/common-utils.h: New.
4656         * common/linux-osdata.c: New.
4657         * common/linux-osdata.h: New.
4658         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4659         * config/arm/linux.mh (NATDEPFILES): Ditto.
4660         * config/i386/linux.mh (NATDEPFILES): Ditto.
4661         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4662         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4663         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4664         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4665         * config/mips/linux.mh (NATDEPFILES): Ditto.
4666         * config/pa/linux.mh (NATDEPFILES): Ditto.
4667         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4668         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4669         * config/s390/s390.mh (NATDEPFILES): Ditto.
4670         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4671         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4672         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4673
4674 2011-07-21  Matt Rice  <ratmice@gmail.com>
4675
4676         * NEWS: Add info macros and info definitions commands.
4677
4678 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4679
4680         * NEWS: Document Python prompt substitution hook.
4681
4682 2011-07-18  Matt Rice  <ratmice@gmail.com>
4683
4684         PR macros/12999
4685         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4686         * macrotab.c (foreach_macro): Ditto.
4687         (foreach_macro_in_scope): Ditto.
4688         * macrocmd.c (print_macro_callback): New function.
4689         (info_macro_command): Move some code to print_macro_definition.
4690         (print_macro_definition): New function.
4691         (print_one_macro): Add new arguments to callback.
4692         (info_definitions_command): New function.
4693         (info_macros_command): Ditto.
4694         (_initialize_macrocmd): Add info macros and info definitions commands.
4695         * symtab.c (add_macro_name): Add new arguments to callback.
4696
4697 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4698             Tom Tromey  <tromey@redhat.com>
4699
4700         * top.c (set_prompt): Rewrite to free previous prompt, free
4701         asynch_new_prompt and set both on new prompts.
4702         * event-top.c (display_gdb_prompt): Add prompt substitution
4703         logic.
4704         * python/python.c (before_prompt_hook): New function.
4705
4706 2011-07-20  Matt Rice  <ratmice@gmail.com>
4707
4708         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4709         arguments to store_unsigned_integer.
4710
4711 2011-07-20  Tom Tromey  <tromey@redhat.com>
4712
4713         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4714         in some declaration-only cases.
4715
4716 2011-07-18  Tom Tromey  <tromey@redhat.com>
4717
4718         PR symtab/12984:
4719         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4720         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4721         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4722         <debug_type_section>: New field.
4723         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4724         (load_cu): Use appropriate section.
4725         (create_signatured_type_table_from_index): Add 'section'
4726         argument.
4727         (dwarf2_read_index): Only allow a single .debug_types section.
4728         (dw2_get_file_names): Use appropriate section.
4729         (read_type_comp_unit_head): Add 'section' argument.
4730         (create_debug_types_hash_table): Loop over all .debug_types
4731         sections.
4732         (init_cu_die_reader): Use appropriate section.
4733         (process_psymtab_comp_unit, load_partial_comp_unit)
4734         (load_full_comp_unit, read_die_and_children, find_partial_die)
4735         (lookup_die_type, determine_prefix, follow_die_offset): Update.
4736         (lookup_signatured_type_at_offset): Add 'section' argument.
4737         (read_signatured_type_at_offset): Add 'sect' argument.
4738         (read_signatured_type): Use appropriate section.
4739         (set_die_type, get_die_type_at_offset): Update.
4740         (dwarf2_per_objfile_free): Free all .debug_types sections, and
4741         VEC.
4742         (write_psymtabs_to_index): Don't allow index with more than one
4743         .debug_types section.
4744
4745 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4746
4747         Fix crash if referenced CU is aged out.
4748         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4749         xfree of block.data.
4750         (indirect_pieced_value): New variable back_to, use to for xfree of
4751         baton.data.
4752         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4753         block.data.
4754         * dwarf2read.c (dwarf2_find_base_address): New prototype.
4755         (load_cu): New function from ...
4756         (dw2_do_instantiate_symtab): ... the code here ...
4757         (process_full_comp_unit): ... and here.
4758         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
4759         retval.data.
4760
4761 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4762
4763         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4764         type.
4765
4766 2011-07-19  Gary Benson  <gbenson@redhat.com>
4767
4768         * infrun.c (struct execution_control_state): New member
4769         stop_func_filled_in.
4770         (clear_stop_func, fill_in_stop_func): New functions.
4771         (handle_inferior_event): Call clear_stop_func rather than
4772         manipulating the execution control state directly.
4773         Call fill_in_stop_func lazily as required rather than
4774         directly calling find_pc_partial_function in all cases.
4775
4776 2011-07-18  Tom Tromey  <tromey@redhat.com>
4777
4778         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4779         checking for variable-sized array.
4780
4781 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
4782
4783         * varobj.h (varobj_languages): Add vlang_ada definition to the list
4784         of supported languages.
4785         * varobj.c: Add top definitions and basic implementation of the
4786         following callbacks: ada_number_of_children, ada_name_of_variable,
4787         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4788         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4789         (languages): Register Ada-specific callbacks.
4790         (variable_language): Add the Ada case in the language setter switch.
4791
4792 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4793
4794         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4795
4796 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4797
4798         Code cleanup.
4799         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4800         (execute_stack_op): Use dwarf2_frame_ctx_funcs
4801         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4802         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4803         get_frame_cfa, get_tls_address and dwarf_call via funcs.
4804         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4805         (struct dwarf_expr_context_funcs): New, move here methods from ...
4806         (struct dwarf_expr_context): ... here.  New fields funcs.
4807         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4808         (dwarf_expr_ctx_funcs): New.
4809         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4810         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4811         (needs_frame_ctx_funcs): New.
4812         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4813
4814 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4815
4816         * MAINTAINERS (Write After Approval): Add myself to the list.
4817
4818 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4819
4820         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4821         that CIE pointer of an FDE really points to a CIE .
4822
4823 2011-07-15  Hui Zhu  <teawater@gmail.com>
4824
4825         * remote.c (remote_get_trace_status): Add comments.
4826
4827 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4828
4829         Code cleanup - constify struct lval_funcs.
4830         * dwarf2loc.c (pieced_value_funcs): Make it const.
4831         * infrun.c (siginfo_value_funcs): Likewise.
4832         * opencl-lang.c (opencl_value_funcs): Likewise.
4833         * valops.c (value_assign, value_ind): Make the funcs variable const.
4834         * value.c (struct value): Make location.computed.funcs target const.
4835         Rearrange the comments.
4836         (allocate_computed_value): Make the funcs parameter target const.
4837         (value_computed_funcs): Return the funcs target const.
4838         (value_free, value_copy, set_value_component_location): Make the funcs
4839         variable const.
4840         * value.h (allocate_computed_value): Make the funcs parameter target
4841         const.
4842         (value_computed_funcs): Return the funcs target const.
4843         * windows-tdep.c (tlb_value_funcs): Make it const.
4844
4845 2011-07-14  Hui Zhu  <teawater@gmail.com>
4846
4847         * remote.c (remote_get_trace_status): Initialize p.
4848
4849 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4850
4851         Work around kgdb.
4852         * remote.c (remote_get_trace_status): New variable ex.  Put
4853         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
4854
4855 2011-07-13  Tom Tromey  <tromey@redhat.com>
4856
4857         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4858         value_from_contents for final conversion.
4859
4860 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4861
4862         Code cleanup.
4863         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4864         Indent prototypes so they do not get into tags.
4865
4866 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4867
4868         Code cleanup making also optimized out values lazy.
4869         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4870         allocate_optimized_out_value.  Twice.
4871         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
4872         * findvar.c (read_var_value): Likewise.
4873         * value.c (allocate_optimized_out_value): New function.
4874         * value.h (allocate_optimized_out_value): New declaration.
4875
4876 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4877
4878         Fix occasional crash of CTRL-C during DWARF read in.
4879         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4880
4881 2011-07-11  Tom Tromey  <tromey@redhat.com>
4882
4883         * regcache.c (struct regcache_descr): Fix typo.
4884         * i387-tdep.c (i387_supply_xsave): Fix typo.
4885
4886 2011-07-11  Tom Tromey  <tromey@redhat.com>
4887
4888         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4889         (read_file_scope, read_type_unit_scope): Use it.
4890
4891 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4892
4893         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4894         `int'.
4895
4896 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4897
4898         PR python/12438
4899         * python/python.c: Set gdbpy_should_print_stack default to off.
4900         (set_python): Deprecate maint set python print-stack to
4901         class_deprecate.
4902         (_initialize_python): Deprecate maint set/show python print-stack.
4903         Add new prefix command, python.  Add new setting, print-backtrace.
4904         * NEWS: Document set python print-stack.  Document default change.
4905
4906 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4907
4908         * python/py-inferior.c (infpy_dealloc): New function.
4909         (inferior_to_inferior_object): Return a new object, or a
4910         new reference to the existing object.
4911         (find_thread_object): Cleanup references to inferior.
4912         (delete_thread_object): Ditto.
4913         * python/py-infthread.c (create_thread_object): Do not increment
4914         inferior reference count.
4915
4916 2011-07-08  Tom Tromey  <tromey@redhat.com>
4917
4918         * dwarf2loc.c (locexpr_regname): New function.
4919         (locexpr_describe_location_piece): Use it.
4920         (disassemble_dwarf_expression): Add per_cu argument.  Use
4921         locexpr_regname.
4922         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4923         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4924         New cases.
4925         (locexpr_describe_location_1): Add per_cu argument.
4926         (locexpr_describe_location): Update.
4927         (loclist_describe_location): Update.
4928
4929 2011-07-08  Tom Tromey  <tromey@redhat.com>
4930
4931         * dwarf2expr.c (execute_stack_op): Add QUIT.
4932
4933 2011-07-07  Hui Zhu  <teawater@gmail.com>
4934
4935         Revert:
4936         2011-07-06  Hui Zhu  <teawater@gmail.com>
4937         * remote.c (remote_start_remote): Add TRY_CATCH for
4938         remote_get_trace_status.
4939         * tracepoint.c (disconnect_tracing): Ditto.
4940
4941 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
4942
4943         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4944         variables as signed, not unsigned.
4945
4946 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
4947
4948         * jit.c (jit_inferior_init): Reformat forward declaration.
4949
4950 2011-07-06  Matt Rice  <ratmice@gmail.com>
4951
4952         * MAINTAINERS (Write After Approval): Add myself to the list.
4953
4954 2011-07-06  Hui Zhu  <teawater@gmail.com>
4955
4956         * remote.c (remote_start_remote): Add TRY_CATCH for
4957         remote_get_trace_status.
4958         * tracepoint.c (disconnect_tracing): Ditto.
4959
4960 2011-07-05  Tom Tromey  <tromey@redhat.com>
4961
4962         * symtab.c (operator_chars): Now static.
4963         * linespec.c (operator_chars): Don't declare.
4964
4965 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4966
4967         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4968
4969 2011-07-05  Tom Tromey  <tromey@redhat.com>
4970
4971         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4972         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4973         (TYPE_CPLUS_REALLY_JAVA): New macro.
4974         * dwarf2read.c (process_structure_scope): Set
4975         TYPE_CPLUS_REALLY_JAVA.
4976
4977 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4978
4979         * ada-lang.c: Fix typos.
4980         * amd64-tdep.c: Likewise.
4981         * breakpoint.c: Likewise.
4982         * cli/cli-decode.c: Likewise.
4983         * findcmd.c: Likewise.
4984         * inline-frame.c: Likewise.
4985         * mi/mi-main.c: Likewise.
4986         * minsyms.c: Likewise.
4987         * monitor.c: Likewise.
4988         * monitor.h: Likewise.
4989         * prologue-value.c: Likewise.
4990         * reverse.c: Likewise.
4991         * s390-tdep.c: Likewise.
4992
4993 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4994
4995         * jit.c (jit_inferior_init): Forward declare.
4996         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4997
4998 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
4999
5000         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5001
5002 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5003
5004         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5005         (tcb_fieldno): Add activation_link field.
5006         (get_known_tasks_addr): Moved and rewritten.
5007         (get_tcb_types_info): Set activation_link field.
5008         (read_known_tasks_array): Add parameter.  Rewritten.
5009         (read_known_tasks_list): New function.
5010         (read_known_tasks): New function.
5011         (ada_build_task_list): Call read_known_tasks instead of
5012         read_known_tasks_array.
5013         * ravenscar-thread.c: Add first_task_name constant.
5014         (has_ravenscar_runtime): Check for task list too.
5015
5016 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5017
5018         * ada-tasks.c: Renames fieldno to actb_fieldno.
5019         (ada_get_task_number): Indentation.
5020         (get_tcb_types_info): Remove all parameters.  Write directly
5021         the globals.
5022         (ptid_from_atcb_common): Adjust.
5023         (read_atcb): Adjust.
5024
5025 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5026
5027         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5028
5029 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5030
5031         * ui-out.c (ui_out_field_core_addr): Mention that the function
5032         description is in the header file.
5033         * ui-out.h (ui_out_field_core_addr): Document function.
5034
5035 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5036
5037         * ui-out.c (ui_out_get_field_separator): Remove unused function.
5038         * ui-out.h (ui_out_get_field_separator): Remove prototype.
5039
5040 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5041
5042         * symtab.c (expand_line_sal): Remove empty line.
5043
5044 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
5045
5046         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5047         same way as ELFOSABI_NONE.
5048         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5049
5050 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5051
5052         * breakpoint.c: Fix typos in comments.
5053         * linespec.c: Likewise.
5054         * symtab.c: Likewise.
5055
5056 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5057
5058         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5059         section in separate object files.
5060
5061 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5062
5063         Fix false GCC warning.
5064         * linespec.c (decode_line_1): Initialize values.
5065
5066 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5067
5068         * linespec.c (find_method): Accept the function type automatically only
5069         if it was specified with parameter types.
5070
5071 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5072
5073         Stop on first linespec terminator instead of eating what we can.
5074         * linespec.c (is_linespec_boundary): New function.
5075         (name_end): Remove function.
5076         (keep_name_info): New parameter on_boundary, replace the body.
5077         (decode_line_1): Provide the parameter to keep_name_info.
5078         (decode_compound): Likewise.  Drop the trailing java return type
5079         handling.  Twice.
5080
5081 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5082
5083         Fall back linespec to minimal symbols.
5084         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
5085         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5086         (find_method, symbol_found): Change error to cplusplus_error.
5087
5088 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5089
5090         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5091
5092 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5093             Tom Tromey  <tromey@redhat.com>
5094
5095         * dwarf2read.c (check_physname): New variable.
5096         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5097         (show_check_physname): New function.
5098         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5099
5100 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5101
5102         * machoread.c (macho_symfile_read): Delete OBE comment.
5103
5104 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5105
5106         * machoread.c (struct macho_oso_data): Delete.
5107         (current_oso): Delete.
5108         (macho_relocate_common_syms): New function, mostly extracted
5109         out of
5110         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5111         Remove code that sets and unset current_oso.
5112         (macho_symfile_relocate): Delete handling of common symbols,
5113         now moved to macho_relocate_common_syms.
5114
5115 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5116
5117         * darwin-nat.c (darwin_ptrace): Add documentation.
5118         Set errno to zero before calling ptrace.  If ptrace returns
5119         -1 and errno is zero, then change then return zero.
5120         (darwin_kill_inferior): Issue a warning instead of triggering
5121         a failed assertion when the PT_KILL ptrace operations returned
5122         nonzero.
5123
5124 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5125
5126         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5127         only when inf->private->no_ptrace.
5128
5129 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5130
5131         * ada-lang.c (print_it_exception): Print temporary catchpoints
5132         as "Temporary catchpoint".
5133         (print_mention_exception): Likewise.
5134
5135 2011-07-01  Tom Tromey  <tromey@redhat.com>
5136
5137         * jv-lang.c (java_language_defn): Use java_printchar,
5138         java_printstr.
5139         (java_get_encoding): New function.
5140         (java_emit_char): Use generic_emit_char.
5141         (java_printchar): New function.
5142         (java_printstr): Likewise.
5143
5144 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5145
5146         * ada-typeprint.c (print_record_type): If unable to decode
5147         the name of the parent type, use the encoded name.
5148
5149 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5150
5151         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5152         pointer to constrained packed array type output.
5153         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5154         packed array output.
5155
5156 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5157
5158         * ada-typeprint.c (print_array_type): removed if condition on show
5159         being negative for bounds printing.
5160
5161 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5162
5163         * ada-lang.c (ada_identical_enum_types_p): New function.
5164         (symbols_are_identical_enums): New function.
5165         (remove_extra_symbols): Do nothing if NSYMS < 2.
5166         Use symbols_are_identical_enums.
5167
5168 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5169
5170         * ada-valprint.c (ada_value_print): Handle typedefs.
5171
5172 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5173
5174         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5175
5176 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5177
5178         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5179         (decode_constrained_packed_array): Likewise.
5180         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5181
5182 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5183
5184         * ada-exp.y (convert_char_literal): Handle typedef types.
5185
5186 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5187
5188         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5189
5190 2011-06-30  Tom Tromey  <tromey@redhat.com>
5191
5192         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5193         * valops.c (find_overload_match): Call do_cleanups on early exit
5194         path.
5195         * solib.c (solib_find): Call do_cleanups on early exit path.
5196
5197 2011-06-30  Tom Tromey  <tromey@redhat.com>
5198
5199         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5200         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5201         return paths.  Defer final do_cleanups until last return.
5202         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5203         early return.
5204
5205 2011-06-30  Tom Tromey  <tromey@redhat.com>
5206
5207         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5208
5209 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5210
5211         * MAINTAINERS (Write After Approval): Add myself to the list.
5212
5213 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5214
5215         Disable epilogue unwinders on recent GCCs.
5216         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5217         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5218         * dwarf2read.c (process_full_comp_unit): Initialize
5219         EPILOGUE_UNWIND_VALID.
5220         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5221         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5222         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5223
5224 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5225
5226         Code cleanup - reformatting.
5227         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5228         (producer_is_gcc_ge_4): ... here, change the return value.
5229         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5230         interpretation.
5231
5232 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5233
5234         Fix non-only rename list for Fortran modules import.
5235         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5236         cp_add_using_directive caller.
5237         (cp_add_using_directive): New parameter excludes, describe it.  New
5238         variables ix and param.  Compare if also excludes match.  Allocate NEW
5239         with variable size, initialize EXCLUDES there.
5240         (cp_lookup_symbol_imports): New variable excludep, test
5241         current->EXCLUDES with it.
5242         * cp-support.h: Include vec.h.
5243         (struct using_direct): New field excludes, describe it.
5244         (DEF_VEC_P (const_char_ptr)): New.
5245         (cp_add_using_directive): New parameter excludes.
5246         * defs.h (const_char_ptr): New typedef.
5247         * dwarf2read.c (read_import_statement): New variables child_die,
5248         excludes and cleanups, read in excludes.
5249         (read_namespace): Adjust the cp_add_using_directive caller.
5250
5251 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5252
5253         Code cleanup.
5254         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5255         negative comparisons.
5256
5257 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5258
5259         * mi/mi-main.c (mi_cmd_list_features): Emit
5260         breakpoint-notifications.
5261
5262 2011-06-29  Tom Tromey  <tromey@redhat.com>
5263
5264         PR fortran/10036:
5265         * valprint.h (generic_emit_char, generic_printstr): Declare.
5266         * valprint.c (wchar_printable, append_string_as_wide)
5267         (print_wchar): Move from c-lang.c.
5268         (generic_emit_char): New function; mostly taken from c_emit_char.
5269         (generic_printstr): New function; mostly taken from c_printstr.
5270         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5271         represented as arrays.
5272         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5273         type.
5274         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5275         identically to TYPE_CODE_INT.
5276         * f-lang.c (f_get_encoding): New function.
5277         (f_emit_char): Use generic_emit_char.
5278         (f_printchar): Replace comment.
5279         (f_printstr): Use generic_printstr.
5280         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5281         "character" types specially.
5282         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5283         for Fortran.
5284         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5285         Move to valprint.c
5286         (c_emit_char): Call generic_emit_char.
5287         (c_printstr): Call generic_printstr.
5288
5289 2011-06-29  Gary Benson  <gbenson@redhat.com>
5290
5291         * breakpoint.c (bpstat_what): Removed duplicated case.
5292
5293 2011-06-28  Tom Tromey  <tromey@redhat.com>
5294
5295         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5296
5297 2011-06-27  Tom Tromey  <tromey@redhat.com>
5298
5299         * valops.c (find_overload_match): Call do_cleanups before early
5300         return.
5301         * top.c (execute_command): Call do_cleanups before early return.
5302         (command_loop): Likewise.
5303         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5304         conditionally call do_cleanups.
5305         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5306         TRY_CATCH.
5307         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5308         so cleanups are always run.
5309         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5310         * findcmd.c (parse_find_args): Call do_cleanups on early return
5311         path.
5312         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5313         Don't conditionally call do_cleanups.
5314         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5315         later.
5316
5317 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5318
5319         * MAINTAINERS (Write After Approval): Use default email address.
5320
5321 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5322
5323         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5324
5325 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5326
5327         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5328         saved_regs_mask and copied_regs_mask fields.
5329         (sparc_record_save_insn): New prototype.
5330         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5331         (sparc_record_save_insn): New function.
5332         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5333         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5334         frames and cache their settings.
5335         (sparc32_skip_prologue): Handle flat frames.
5336         (sparc_frame_cache): Add frame_offset to the base address.
5337         (sparc32_frame_cache): Adjust to new frame description.
5338         (sparc32_frame_prev_register): Likewise.
5339         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5340         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5341         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5342         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5343         frame by calling sparc_record_save_insn.
5344         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5345         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5346         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5347
5348 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5349
5350         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5351         field by map_addr and map_len.
5352         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5353         (munmap_section_buffer): Likewise.
5354
5355 2011-06-24  Tom Tromey  <tromey@redhat.com>
5356
5357         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5358         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5359         * python/python.c (gdbpy_parameter): Make 'arg' const.
5360         (execute_gdb_command): Likewise.
5361         (gdbpy_decode_line): Likewise.  Copy it.
5362         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5363         (gdbpy_write): Make 'arg' const.
5364         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5365         const.
5366         (gdbpy_lookup_type): Likewise.
5367         * python/py-prettyprint.c (print_children): Make 'name' const.
5368         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5369         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5370         Py_ssize_t.
5371         * python/py-function.c (fnpy_init): Make 'name' const.
5372         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5373         (gdbpy_string_to_argv): Make 'input' const.
5374         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5375         it.
5376         * gdbtypes.h (lookup_typename): Update.
5377         * gdbtypes.c (lookup_typename): Make 'name' const.
5378         (lookup_struct): Likewise.
5379         (lookup_union): Likewise.
5380         (lookup_enum): Likewise.
5381
5382 2011-06-24  Tom Tromey  <tromey@redhat.com>
5383
5384         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5385         gdb_thread_db.h.  Move all common/ entries to be together.
5386         (TAGS): Don't depend on DEPFILES.
5387
5388 2011-06-23  Yao Qi  <yao@codesourcery.com>
5389
5390         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5391         * remote.c (remote_start_remote): ... here.
5392         * monitor.c (monitor_open): ... here.
5393
5394 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5395
5396         * gdbtypes.c (append_composite_type_field_aligned): Fix
5397         calculation of bit position based on alignment.
5398
5399 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5400
5401         * breakpoint.c (bpstat_stop_status): Call the check_status
5402         breakpoint_ops method.
5403         (print_one_breakpoint_location): Also print the condition for Ada
5404         exception catchpoints.
5405         (allocate_bp_location): New, factored out from
5406         allocate_bp_location.
5407         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5408         allocate_location method, if there is one.
5409         (free_bp_location): Call the locations's dtor method, if there is
5410         one.
5411         (init_raw_breakpoint_without_location): New breakpoint_ops
5412         parameter.  Use it.
5413         (set_raw_breakpoint_without_location): Adjust.
5414         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5415         (set_raw_breakpoint): Adjust.
5416         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5417         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5418         re_set and check_status methods.
5419         (init_catchpoint): Don't memset, initialize thread, addr_string
5420         and enable_state.  Pass the ops down to init_raw_breakpoint.
5421         (install_catchpoint): Rename to ...
5422         (install_breakpoint): ... this, and make extern.
5423         (create_fork_vfork_event_catchpoint): Adjust.
5424         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5425         re_set and check_status methods.
5426         (create_syscall_event_catchpoint): Adjust.
5427         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5428         (masked_watchpoint_breakpoint_ops): Install NULL
5429         allocate_location, re_set and check_status methods.
5430         (catch_exec_command_1): Adjust.
5431         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5432         re_set and check_status methods.
5433         (create_ada_exception_breakpoint): Rename to ...
5434         (init_ada_exception_breakpoint): ... this.  Add a struct
5435         breakpoint parameter, and delete the exp_string, cond_string and
5436         cond parameters.  Use init_raw_breakpoint, and don't install or
5437         mention the breakpoint yet.  Don't clear breakpoint fields that
5438         init_raw_breakpoint already clears.
5439         (re_set_breakpoint): Delete, split into ...
5440         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5441         functions.
5442         (breakpoint_re_set_one): Call the breakpoint's
5443         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5444         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5445         (struct bp_location_ops): New type.
5446         (struct bp_location): New field `ops'.
5447         (struct breakpoint_ops): New `allocate_location', `re_set' and
5448         `check_status' fields.  Make `breakpoint_hit''s description match
5449         reality.
5450         (init_bp_location): Declare.
5451         (breakpoint_re_set_default): Declare.
5452         (create_ada_exception_breakpoint): Rename to ...
5453         (init_ada_exception_breakpoint): ... this.  Add a struct
5454         breakpoint parameter, and delete the exp_string, cond_string and
5455         cond parameters.
5456         (install_breakpoint): Declare.
5457         * ada-lang.c: Include exceptions.h.
5458         <Ada exceptions description>: Update.
5459         (struct ada_catchpoint_location): New type.
5460         (ada_catchpoint_location_dtor): New function.
5461         (ada_catchpoint_location_ops): New global.
5462         (ada_catchpoint): New type.
5463         (create_excep_cond_exprs): New function.
5464         (dtor_exception, allocate_location_exception, re_set_exception)
5465         (should_stop_exception, check_status_exception): New functions.
5466         (print_one_exception, print_mention_exception)
5467         (print_recreate_exception): Adjust.
5468         (dtor_catch_exception, allocate_location_catch_exception)
5469         (re_set_catch_exception, check_status_catch_exception): New
5470         functions.
5471         (catch_exception_breakpoint_ops): Install them.
5472         (dtor_catch_exception_unhandled)
5473         (allocate_location_catch_exception_unhandled)
5474         (re_set_catch_exception_unhandled)
5475         (check_status_catch_exception_unhandled): New functions.
5476         (catch_exception_unhandled_breakpoint_ops): Install them.
5477         (dtor_catch_assert, allocate_location_catch_assert)
5478         (re_set_catch_assert, check_status_catch_assert): New functions.
5479         (catch_assert_breakpoint_ops): Install them.
5480         (ada_exception_catchpoint_p): Delete.
5481         (catch_ada_exception_command_split)
5482         (ada_exception_catchpoint_cond_string): Rename exp_string
5483         parameter to excep_string.  Adjust.
5484         (ada_parse_catchpoint_condition): Delete.
5485         (ada_exception_sal): Rename the exp_string parameter to
5486         excep_string.  Delete the cond_string and cond parameters.
5487         Adjust.
5488         (ada_decode_exception_location): Rename the exp_string parameter
5489         to excep_string.  Delete the cond_string and cond parameters.
5490         Adjust.
5491         (create_ada_exception_catchpoint): New function.
5492         (catch_ada_exception_command, ada_decode_assert_location)
5493         (catch_assert_command): Adjust.
5494         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5495
5496 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5497
5498         * ada-lang.c: Include arch-utils.h.
5499         (ada_decode_exception_location): Make static.
5500         (catch_ada_exception_command): Moved here from breakpoint.c.
5501         (ada_decode_assert_location): Make static.
5502         (catch_assert_command): Moved here from breakpoint.c.
5503         (_initialize_ada_lang): Install the exception and assert
5504         catchpoint commands here.
5505         * ada-lang.h (ada_decode_exception_location)
5506         (ada_decode_assert_location): Delete declarations.
5507         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5508         breakpoint.h.
5509         (create_ada_exception_breakpoint): Make extern.
5510         (catch_ada_exception_command, catch_assert_command): Moved to
5511         ada-lang.c.
5512         (add_catch_command): Make extern.
5513         (_initilize_breakpoint): Don't install the exception and assert
5514         catchpoint commands here.
5515         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5516         breakpoint.c
5517         (add_catch_command, create_ada_exception_breakpoint): Declare.
5518
5519 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5520
5521         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5522         the breakpoint to the breakpoint chain here.
5523         (set_raw_breakpoint_without_location): Add the breakpoint to the
5524         breakpoint chain here.
5525         (init_raw_breakpoint): Adjust comments.
5526         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5527         here.
5528         (init_catchpoint): Don't set the catchpoint's breakpoint number
5529         here.
5530         (install_catchpoint): New function.
5531         (create_fork_vfork_event_catchpoint)
5532         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5533         use install_catchpoint.
5534
5535 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5536
5537         * breakpoint.c (create_catchpoint_without_mention)
5538         (create_catchpoint): Delete.
5539
5540 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5541
5542         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5543         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5544         reference to exec_pathname.
5545         (struct exec_catchpoint): New type.
5546         (dtor_catch_exec): New function.
5547         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5548         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5549         (catch_exec_command_1): Adjust to use init_catchpoint.
5550         (delete_breakpoint): Remove reference to exec_pathname.
5551
5552 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5553
5554         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5555         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5556         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5557         reference to syscalls_to_be_caught.
5558         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5559         NULL `dtor'.
5560         (struct syscall_catchpoint): New type.
5561         (dtor_catch_syscall): New function.
5562         (insert_catch_syscall, remove_catch_syscall)
5563         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5564         (print_recreate_catch_syscall): Adjust.
5565         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5566         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5567         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5568         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5569         (masked_watchpoint_breakpoint_ops)
5570         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5571         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5572         there is one.  Remove references to syscalls_to_be_caught.
5573         (catching_syscall_number): Adjust.
5574         * ada-lang.c (catch_exception_breakpoint_ops)
5575         (catch_exception_unhandled_breakpoint_ops)
5576         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5577
5578 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5579
5580         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5581         field.
5582         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5583         reference to forked_inferior_pid.
5584         (struct fork_catchpoint): New type.
5585         (breakpoint_hit_catch_fork, print_it_catch_fork)
5586         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5587         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5588         (create_fork_vfork_event_catchpoint): Adjust to use
5589         init_catchpoint.
5590
5591 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5592
5593         * breakpoint.c (add_to_breakpoint_chain)
5594         (init_raw_breakpoint_without_location): New functions, factored
5595         out from ...
5596         (set_raw_breakpoint_without_location): ... this one.
5597         (init_raw_breakpoint): New function, factored out from
5598         set_raw_breakpoint and adjusted to use
5599         init_raw_breakpoint_without_location.
5600         (set_raw_breakpoint): Adjust.
5601         (init_catchpoint): New function, factored out from
5602         create_catchpoint_without_mention and adjusted to use
5603         init_raw_breakpoint.
5604         (create_catchpoint_without_mention): Adjust.
5605
5606 2011-06-22  Tom Tromey  <tromey@redhat.com>
5607
5608         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5609         argument of 0 specially.
5610
5611 2011-06-22  Yao Qi  <yao@codesourcery.com>
5612
5613         * infrun.c (handle_inferior_event): Remove write-only local variable
5614         `sw_single_step_trap_p'.
5615
5616 2011-06-20  Tom Tromey  <tromey@redhat.com>
5617
5618         * symtab.c (lookup_language_this): End loop if block is NULL.
5619
5620 2011-06-17  Tom Tromey  <tromey@redhat.com>
5621
5622         * valops.c (value_of_this): Use lookup_language_this.
5623         * symtab.h (lookup_language_this): Declare.
5624         * symtab.c (lookup_language_this): New function.
5625         (lookup_symbol_aux): Use lookup_language_this.
5626         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5627
5628 2011-06-17  Tom Tromey  <tromey@redhat.com>
5629
5630         * value.h (value_of_this): Update.
5631         (value_of_local): Remove.
5632         * valops.c (value_of_this): Rename from value_of_local.  Change
5633         parameters.
5634         * p-exp.y (exp): Update.
5635         (variable): Likewise.
5636         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5637
5638 2011-06-17  Tom Tromey  <tromey@redhat.com>
5639
5640         * valops.c (value_of_local): Complain if NAME is NULL.
5641         * std-operator.def (OP_OBJC_SELF): Remove.
5642         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5643         * objc-exp.y (name_not_typename): Use OP_THIS.
5644         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5645         name for "this".
5646         <OP_OBJC_SELF>: Remove.
5647         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5648
5649 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5650
5651         * python/py-events.h (gdb_py_events): Make it extern.
5652         * python/py-evtregistry.c (gdb_py_events): Declare.
5653
5654 2011-06-16  Hui Zhu  <teawater@gmail.com>
5655
5656         * remote.c (remote_trace_set_readonly_regions): Add check for
5657         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5658         output warning.
5659
5660 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5661
5662         * arm-linux-tdep.c: Include "auxv.h".
5663         (AT_HWCAP): Define.
5664         (ARM_LINUX_SIZEOF_VFP): Define.
5665         (arm_linux_supply_vfp): New function.
5666         (arm_linux_collect_vfp): Likewise.
5667         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5668         (arm_linux_fpa_regset_sections): New variable.
5669         (arm_linux_vfp_regset_sections): Likewise.
5670         (arm_linux_core_read_description): New function.
5671         (arm_linux_init_abi): Install arm_linux_core_read_description and
5672         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5673         appropriate for the architecture.
5674         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5675         (tdesc_arm_with_m): Declare.
5676         (tdesc_arm_with_iwmmxt): Likewise.
5677         (tdesc_arm_with_vfpv2): Likewise.
5678         (tdesc_arm_with_vfpv3): Likewise.
5679         (tdesc_arm_with_neon): Likewise.
5680         * arm-linux-nat.c: Move features/*.c includes ...
5681         * arm-tdep.c: ... here.
5682         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5683         target description data structures ...
5684         * arm-tdep.c (_initialize_arm_tdep): ... here.
5685         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5686         HWCAP_VFPv3D16): Move definitions ...
5687         * arm-linux-tdep.h: ... here.
5688
5689 2011-06-15  Hui Zhu  <teawater@gmail.com>
5690
5691         * remote.c (remote_trace_set_readonly_regions): Add a check for
5692         target_buf_size.
5693
5694 2011-06-14  Tom Tromey  <tromey@redhat.com>
5695
5696         * coffread.c (coffread_objfile): Rename from current_objfile.
5697         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5698         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5699
5700 2011-06-14  Tom Tromey  <tromey@redhat.com>
5701
5702         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5703         (class_symtab): Remove.
5704         (jv_dynamics_progspace_key): New global.
5705         (jv_per_objfile_free): Reset program space data.  Update assert.
5706         Don't clear globals.
5707         (get_dynamics_objfile): Use and set program space data.
5708         (get_java_class_symtab): Use get_dynamics_objfile.
5709         (add_class_symbol): Likewise.
5710         (java_link_class_type): Likewise.
5711         (java_object_type, jv_clear_object_type, set_java_object_type):
5712         Remove.
5713         (get_java_object_type): Update.  Don't cache result.
5714         (is_object_type): Don't call set_java_object_type.
5715         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5716         initialize jv_dynamics_progspace_key.
5717
5718 2011-06-14  Tom Tromey  <tromey@redhat.com>
5719
5720         * symtab.h (current_objfile): Don't declare.
5721         * objfiles.h (current_objfile): Don't declare.
5722         * objfiles.c (current_objfile): Remove.
5723         * mdebugread.c (current_objfile): New file-scope global.
5724         * dbxread.c (current_objfile): New file-scope global.
5725         * coffread.c (current_objfile): New file-scope global.
5726
5727 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5728
5729         * top.h (line): Rename to ...
5730         (saved_command_line): ... this.
5731         (linesize): Rename to ...
5732         (saved_command_line_size): ... this.
5733         * top.c (line): Rename to ...
5734         (saved_command_line): ... this.
5735         (linesize): Rename to ...
5736         (saved_command_line_size): ... this.
5737         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5738         * event-top.c (command_line_handler): Adjust.
5739         * main.c (captured_main): Adjust.
5740
5741 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5742
5743         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
5744         get_frame_func instead of get_frame_pc to determine the code
5745         address used to construct the frame ID.
5746         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5747         (i386_epilogue_frame_this_id): Likewise.
5748         (i386_epilogue_frame_prev_register): New function.
5749         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5750         (i386_stack_tramp_frame_sniffer): Fix coding style.
5751         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5752         (i386_gdbarch_init): Fix comments.
5753
5754 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5755
5756         * i386-tdep.c (i386_match_insn_block): Use length of the proper
5757         instruction when walking back through the instruction stream.
5758
5759 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5760
5761         * symtab.c (output_partial_symbol_filename): Exchange the filename and
5762         fullname parameters order.
5763
5764 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5765
5766         Code cleanup.
5767         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5768         for fun.
5769         * psymtab.c (map_symbol_filenames_psymtab)
5770         (map_partial_symbol_filenames): Likewise.
5771         * psymtab.h: Include symfile.h.
5772         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5773         * symfile.h (symbol_filename_ftype): New.
5774         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5775         map_symbol_filenames, clarify more the naming in comment.
5776
5777 2011-06-07  Doug Evans  <dje@google.com>
5778
5779         * cc-with-index.sh: Fix typos in comment.
5780         Look for ../../gdb, for fullname.exp.
5781
5782 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5783             Pedro Alves  <pedro@codesourcery.com>
5784
5785         * cli/cli-cmds.c (shell_escape): Use waitpid.
5786         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5787
5788 2011-06-07  Tristan Gingold  <gingold@adacore.com>
5789
5790         * xcoffread.c (dwarf2_xcoff_names): New variable.
5791         (aix_process_linenos): Add a guard.
5792         (xcoff_symfile_finish): Free dwarf2.
5793         (xcoff_initial_scan): Add dwarf2 support.
5794
5795 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
5796
5797         * infcall.c (run_inferior_call): Don't mask async.  Instead force
5798         a synchronous wait, if the target can async.
5799
5800         * target.h (struct target_ops): Delete to_async_mask.
5801         (target_async_mask): Delete.
5802         * target.c (update_current_target): Delete references to to_async_mask.
5803         * linux-nat.c (linux_nat_async_mask_value): Delete.
5804         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5805         to linux_nat_async_mask_value.
5806         (linux_nat_async_mask): Delete.
5807         (linux_nat_async, linux_nat_close): Remove references to
5808         linux_nat_async_mask_value.
5809         * record.c (record_async_mask_value): Delete.
5810         (record_async): Remove references to record_async_mask_value.
5811         (record_async_mask): Delete.
5812         (record_can_async_p, record_is_async_p): Remove references to
5813         record_async_mask_value.
5814         (init_record_ops, init_record_core_ops): Remove references to
5815         record_async_mask.
5816         * remote.c (remote_async_mask_value): Delete.
5817         (init_remote_ops): Remove reference to remote_async_mask.
5818         (remote_can_async_p, remote_is_async_p): Remove references to
5819         remote_async_mask_value.
5820         (remote_async): Remove references to remote_async_mask_value.
5821         (remote_async_mask): Delete.
5822
5823         * infrun.c (fetch_inferior_event): Don't claim registers changed
5824         if the current thread is already not executing.
5825
5826 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
5827
5828         From Stephen Kitt  <steve@sk2.org>
5829         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5830         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5831
5832 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
5833
5834         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5835         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5836
5837 2011-06-03  Tom Tromey  <tromey@redhat.com>
5838
5839         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5840         code fields.
5841         * python/py-exitedevent.c (create_exited_event_object): Change
5842         type of 'exit_code'.  Optionally add exit_code attribute.
5843         (emit_exited_event): Change type of 'exit_code'.
5844         * python/py-event.h (emit_exited_event): Update.
5845         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5846         * infrun.c (handle_inferior_event): Set exit code fields on
5847         inferior.
5848         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5849         fields.
5850         * inferior.c (exit_inferior_1): Initialize new fields.
5851
5852 2011-06-03  Tom Tromey  <tromey@redhat.com>
5853
5854         * dwarf2expr.c (get_signed_type): New function.
5855         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5856
5857 2011-06-02  Keith Seitz  <keiths@redhat.com>
5858
5859         * objc-lang.c (find_methods): Increment objfile_csym earlier.
5860
5861 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
5862
5863         * top.h (simplified_command_loop): Delete declaration.
5864
5865 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
5866
5867         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5868         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
5869
5870 2011-06-01  Yao Qi  <yao@codesourcery.com>
5871
5872         * objfiles.h (obj_section_addr): Update reference to objfile from
5873         `abfd' to `obfd'.
5874         (obj_section_endaddr): Likewise.
5875
5876 2011-06-01  Daniel Jacobowitz  <drow@false.org>
5877
5878         * MAINTAINERS: Update my email address and affiliation.  Also
5879         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
5880
5881 2010-05-31  Keith Seitz  <keiths@redhat.com>
5882
5883         PR c++/12750
5884         * linespec.c (get_search_block): New function.
5885         (find_methods): Add FILE_SYMTATB parameter and use it and
5886         get_search_block to pass an appropriate block to
5887         lookup_symbol_in_namespace.
5888         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5889         Check if *ARGPTR starts with a filename first.
5890         If it does, call locate_first_half again to locate the next
5891         "first half" of the linespec.
5892         Pass FILE_SYMTATB to decode_objc and decode_compound.
5893         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5894         (locate_first_half): Stop on the first colon seen.
5895         (decode_compound): Add FILE_SYMTAB parameter.
5896         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5897         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5898         get_search_block with lookup_symbol.
5899         (find_method): Add FILE_SYMTAB parameter and pass it to
5900         find_methods.
5901         (decode_objc): Use get_search_block.
5902
5903 2010-05-31  Keith Seitz  <keiths@redhat.com>
5904
5905         PR symtab/12704
5906         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5907         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5908         and CP_ANONYMOUS_NAMESPACE_LEN.
5909         (cp_is_anonymous): Likewise.
5910         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5911         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5912         * dwarf2read.c (namespace_name): Likewise.
5913         (fixup_partial_die): Likewise.
5914         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5915         seen in the input, keep it.
5916
5917 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5918
5919         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5920         * inf-loop.h (inferior_event_handler_wrapper): Delete.
5921         * inf-loop.c (inferior_event_handler_wrapper): Delete.
5922         (inferior_event_handler): Don't handle INF_QUIT_REQ.
5923         * remote.c (_initialize_remote): Register
5924         async_remote_interrupt_twice directly as
5925         sigint_remote_twice_token event.
5926
5927 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5928
5929         * target.h (enum inferior_event_type): Delete INF_ERROR.
5930         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5931
5932 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5933
5934         * interps.c (interp_set): Don't cancel continuations.
5935
5936 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5937
5938         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5939
5940 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5941
5942         * continuations.h (continuation_ftype): Add `err' parameter.
5943         Document parameters.
5944         (do_all_continuations, do_all_continuations_thread)
5945         (do_all_intermediate_continuations)
5946         (do_all_intermediate_continuations_thread)
5947         (do_all_inferior_continuations): Add `err' parameter.
5948         * continuations.c (do_my_continuations_1, do_my_continuations)
5949         (do_all_inferior_continuations, do_all_continuations_ptid)
5950         (do_all_continuations_thread_callback)
5951         (do_all_continuations_thread, do_all_continuations)
5952         (do_all_intermediate_continuations_thread_callback)
5953         (do_all_intermediate_continuations_thread)
5954         (do_all_intermediate_continuations): Add `err' parameter, and pass
5955         it down all the way to the continuations proper.
5956         * inf-loop.c (inferior_event_handler): If fetching an inferior
5957         event throws an error, don't pop the target, and still call the
5958         continuations, but with `err' set.  Adjust all other continuation
5959         calls.
5960         * breakpoint.c (until_break_command_continuation): Add `err'
5961         parameter.
5962         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
5963         issue another step if `err' is set.
5964         (struct until_next_continuation_args): New.
5965         (until_next_continuation): Add `err' parameter.  Adjust.
5966         (until_next_command): Adjust.
5967         (struct finish_command_continuation_args): Add `thread' field.
5968         (finish_command_continuation): Add `err' parameter.  Handle it.
5969         (finish_forward): Adjust.
5970         (attach_command_continuation): Add `err' parameter.  Handle it.
5971         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5972         cancel the continuations.
5973         * interps.c (interp_set): Adjust to cancel the continuations.
5974         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5975         continuations rather than discarding.
5976         (free_thread): Don't clear thread inferior resources here.
5977         (delete_thread_1): Do it here instead.  And do it before removing
5978         the thread from the threads list.  Tag the thread as exited before
5979         clearing thread inferior resources.
5980
5981 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
5982
5983         * infcall.c (call_function_by_hand): Rephrase error message.
5984
5985 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5986
5987         * defs.h (struct thread_info, struct inferior): Delete forward
5988         declarations.
5989         * breakpoint.h (struct thread_info): New forward declaration.
5990         * observer.sh (struct inferior): New forward declaration.
5991         * python/python-internal.h (struct inferior): New forward
5992         declaration.
5993
5994 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5995
5996         * defs.h (struct continuation, continuation_ftype)
5997         (continuation_free_arg_ftype, add_continuation)
5998         (do_all_continuations, do_all_continuations_thread)
5999         (discard_all_continuations, discard_all_continuations_thread)
6000         (add_intermediate_continuation, do_all_intermediate_continuations)
6001         (do_all_intermediate_continuations_thread)
6002         (discard_all_intermediate_continuations)
6003         (discard_all_intermediate_continuations_thread)
6004         (add_inferior_continuation, do_all_inferior_continuations)
6005         (discard_all_inferior_continuations): Move to ...
6006         * continuations.h: ... this new file.
6007         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6008         infcmd.c, inferior.c, infrun.c, interps.c: Include
6009         continuations.h.
6010
6011 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6012             Doug Evans  <dje@google.com>
6013
6014         Fix PR 10970, PR 12702.
6015         * linux-nat.c (linux_lwp_is_zombie): New function.
6016         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
6017         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
6018
6019 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6020
6021         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6022         typedefs.
6023         (add_continuation, add_intermediate_continuation)
6024         (add_inferior_continuation): Use them.
6025         * continuations.c (struct continuation): Use them.
6026         (make_continuation_ftype): Delete.
6027         (make_continuation, add_inferior_continuation, add_continuation)
6028         (add_intermediate_continuation): Use continuation_ftype and
6029         continuation_free_arg_ftype.  Rename parameters to shorter names.
6030
6031 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6032
6033         * continuations.c (make_continuation): Make it return void.
6034         (do_my_continuations): Rename to ...
6035         (do_my_continuations_1): ... this.  Remove old_chain parameter and
6036         adjust.
6037         (do_my_continuations): New.
6038         (discard_my_continuations): Rename to ...
6039         (discard_my_continuations_1): ... this.  Remove old_chain
6040         parameter and adjust.
6041         (discard_my_continuations): New.
6042         (add_inferior_continuation): Simplify.
6043         (do_all_inferior_continuations): Reimplement on top
6044         do_my_continuations.
6045         (discard_all_inferior_continuations): Simplify.
6046         (add_continuation): Simplify.
6047         (do_all_continuations_ptid): Simplify.
6048         (discard_all_continuations_thread_callback): Simplify.
6049         (add_intermediate_continuation): Simplify.
6050         (discard_all_intermediate_continuations_thread_callback):
6051         Simplify.
6052
6053 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6054
6055         * utils.c (struct continuation, add_continuation)
6056         (add_inferior_continuation)
6057         (do_all_inferior_continuations, discard_all_inferior_continuations)
6058         (restore_thread_cleanup, do_all_continuations_ptid)
6059         (do_all_continuations_thread_callback)
6060         (do_all_continuations_thread, do_all_continuations)
6061         (discard_all_continuations_thread_callback)
6062         (discard_all_continuations_thread, discard_all_continuations)
6063         (add_intermediate_continuation)
6064         (do_all_intermediate_continuations_thread_callback)
6065         (do_all_intermediate_continuations_thread)
6066         (do_all_intermediate_continuations)
6067         (discard_all_intermediate_continuations_thread_callback)
6068         (discard_all_intermediate_continuations_thread)
6069         (discard_all_intermediate_continuations): Move to ...
6070         * continuations.c: ... this new file, and adjust to no longer
6071         implement continuations on top of cleanups.
6072         * Makefile.in (SFILES): Add continuations.c.
6073         (COMMON_OBS): Add continuations.o.
6074
6075 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6076
6077         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6078         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6079         Internal error on invalid values.
6080         * reverse.c: Don't handle EXEC_ERROR.
6081         * mi/mi-main.c: Don't handle EXEC_ERROR.
6082
6083 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6084
6085         * record.c: Include event-loop.h, inf-loop.h.
6086         (record_beneath_to_async): New global.
6087         (tmp_to_async): New global.
6088         (record_async_inferior_event_token): New global.
6089         (record_open_1): Don't error out if async is enabled.
6090         (record_open): Handle to_async.  Create an async event source in
6091         the event loop.
6092         (record_close): Delete the async event source.
6093         (record_resumed): New global.
6094         (record_execution_dir): New global.
6095         (record_resume, record_core_resume): Set them.  Register the
6096         target on the event loop.
6097         (record_wait): Rename to ...
6098         (record_wait_1): ... this.  Add more debug output.  Handle
6099         TARGET_WNOHANG, and the target beneath returning
6100         TARGET_WAITKIND_IGNORE.
6101         (record_wait): Reimplement on top of record_wait_1.
6102         (record_async_mask_value): New global.
6103         (record_async, record_async_mask, record_can_async_p)
6104         (record_is_async_p, record_execution_direction): New functions.
6105         (init_record_ops, init_record_core_ops): Install new methods.
6106         * infrun.c (fetch_inferior_event): Temporarily switch the global
6107         execution direction to the direction the target was going.
6108         (execution_direction): Change type to int.
6109         * target.c (default_execution_direction): New function.
6110         (update_current_target): Inherit and de_fault
6111         to_execution_direction.
6112         * target.h (struct target_ops) <to_execution_direction>: New
6113         field.
6114         (target_execution_direction): New macro.
6115         * inferior.h (execution_direction): Change type to int.
6116
6117 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6118
6119         * infcall.c (call_function_by_hand): Don't allow calling functions
6120         in reverse execution mode.
6121
6122 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6123
6124         * infcmd.c (finish_command): Allow async finish in reverse.
6125
6126 2011-05-26  Yao Qi  <yao@codesourcery.com>
6127
6128         * gdb_thread_db.h: Delete.  Move to ...
6129         * common/gdb_thread_db.h: ... here.
6130
6131 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6132
6133         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6134         function's entry point instead of a manually managed momentary
6135         breakpoint, and only ever issue one proceed call.
6136         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6137         doing a reverse-finish, switch to stepi mode, to do another step.
6138         (insert_step_resume_breakpoint_at_sal): Make public.
6139         (normal_stop): No need to save function value return registers if
6140         going reverse.
6141         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6142
6143 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6144
6145         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6146         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6147         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6148         at the end.
6149         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6150         step-resume breakpoints.
6151         (print_it_typical): Handle bp_hp_step_resume.
6152         (bpstat_what): Ditto.
6153         (bptype_string): Ditto.
6154         (print_one_breakpoint_location): Ditto.
6155         (allocate_bp_location): Ditto.
6156         (mention): Ditto.
6157         (breakpoint_re_set_one): Ditto.
6158         * infrun.c (handle_inferior_event): Adjust.  Split
6159         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6160         BPSTAT_WHAT_HP_STEP_RESUME.
6161         (insert_step_resume_breakpoint_at_sal): Rename to ...
6162         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6163         parameter.  Handle it.
6164         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6165         insert_step_resume_breakpoint_at_sal_1.
6166         (insert_step_resume_breakpoint_at_frame): Rename to ...
6167         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6168         set a high-priority step-resume breakpoint.
6169         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6170         (insert_step_resume_breakpoint_at_caller): Ditto.
6171
6172 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6173
6174         * breakpoint.c (iterate_over_related_breakpoints): New.
6175         (do_map_delete_breakpoint): New.
6176         (delete_command): Pass do_map_delete_breakpoint to
6177         map_breakpoint_numbers.
6178         (do_disable_breakpoint): New.
6179         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6180         breakpoints.
6181         (do_enable_breakpoint): Rename to ...
6182         (enable_breakpoint_disp): ... this.
6183         (enable_breakpoint): Adjust.
6184         (do_enable_breakpoint): New.
6185         (enable_once_breakpoint): Delete.
6186         (do_map_enable_breakpoint): New.
6187         (do_map_enable_once_breakpoint): New.
6188         (enable_once_command, enable_delete_command)
6189         (delete_trace_command): Iterate over the breakpoint's related
6190         breakpoints.
6191
6192 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6193
6194         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6195         for ALPHA_ZERO_REGNUM.
6196         (alpha_supply_int_regs): Explicitly supply zero as the value for
6197         ALPHA_ZERO_REGNUM in the register cache.
6198         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6199
6200 2011-05-26  Yao Qi  <yao@codesourcery.com>
6201
6202         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6203
6204 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6205
6206         * symfile.h (struct dwarf2_section_names): New type.
6207         (struct dwarf2_debug_sections): New type.
6208         (dwarf2_has_info): Add parameter.
6209         * dwarf2read.c (dwarf2_elf_names): New variable.
6210         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6211         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6212         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6213         (dwarf2_has_info): Add names parameter.  Pass names
6214         to dwarf2_locate_sections.
6215         (section_is_p): Rewrite using the names parameter.
6216         (dwarf2_locate_sections): Use section names from the names parameter.
6217         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6218         * elfread.c (read_psyms): Ditto.
6219         * machoread.c (macho_symfile_read): Ditto.
6220
6221 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6222
6223         PR gdb/8677
6224         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6225
6226 2011-05-24  Keith Seitz  <keiths@redhat.com>
6227
6228         PR breakpoint/12803
6229         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6230         (decode_compound): Unconditionally call keep_name_info.
6231
6232 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6233
6234         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6235         scope, clear its command list.
6236         (map_breakpoint_numbers): Don't walk the related breakpoints list
6237         of each breakpoint.
6238
6239 2011-05-24  Tom Tromey  <tromey@redhat.com>
6240
6241         * MAINTAINERS: Move Jim Blandy to past maintainers.
6242
6243 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6244
6245         * symfile.h (enum dwarf2_section_enum): New type.
6246         (dwarf2_get_section_info): New prototype.
6247         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6248         section_name by sect.  Use a switch to select the info.
6249         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6250         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6251
6252 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6253
6254         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6255         shared library event breakpoint if there's no execution.
6256
6257 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6258
6259         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6260         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6261
6262 2011-05-23  Tom Tromey  <tromey@redhat.com>
6263
6264         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6265         NULL.
6266
6267 2011-05-23  Doug Evans  <dje@google.com>
6268
6269         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6270         entry for RuntimeError to doc string.
6271
6272 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6273
6274         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6275         sequence for probing loops.
6276
6277 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6278
6279         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6280         comment.
6281
6282 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6283
6284         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6285         zero as the value for %g0 in the register cache.
6286         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6287         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6288
6289 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6290
6291         * infrun.c (proceed): Set previous_inferior_ptid here.
6292         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6293         inferior_ptid, not null_ptid.
6294         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6295         (fetch_inferior_event): Nor here.
6296
6297 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6298
6299         * inf-loop.c (inferior_event_handler): Only output a message if
6300         verbose.
6301
6302 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6303
6304         * MAINTAINERS: Update my e-mail address.
6305
6306 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6307
6308         * infrun.c (proceed): Switch the inferior event loop to
6309         INF_EXEC_COMPLETE if the target refused to resume from a
6310         vfork/fork.
6311
6312 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6313
6314         * infcmd.c: Include "inf-loop.h".
6315         (step_once): When stepping into an inline subroutine, pretend the
6316         target has run.  If the target can async, switch the inferior
6317         event loop to INF_EXEC_COMPLETE.
6318         * inferior.h (user_visible_resume_ptid): Declare.
6319         * infrun.c (user_visible_resume_ptid): New function, factored out
6320         from `resume'.
6321         (resume): Use it.
6322         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6323         that the current thread is running.  Merge async and sync
6324         branches.
6325
6326 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6327
6328         * infcmd.c (step_1): Simplify synchronous case.
6329
6330 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6331
6332         * tracepoint.c: Include exceptions.h.
6333         (TFILE_PID): Move higher in file.
6334         (tfile_open): Delay pushing the tfile target until we're assured
6335         the tfile header is present in the file.  Wrap reading the initial
6336         newline-terminated lines in TRY_CATCH.  Pop the target if the
6337         initial setup failed.  Add the tfile's thread immediately
6338         aftwards, before any non-essential setup.  Don't skip
6339         post_create_inferior if there are no traceframes present in the
6340         file.
6341         (tfile_close): Remove redundant check for null before xfree call.
6342         (tfile_thread_alive): New function.
6343         (init_tfile_ops): Register it as to_thread_alive callback.
6344
6345 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6346
6347         * tracepoint.c (tfile_open): Delete #if 0'd code.
6348
6349 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6350
6351         Fix -readnow for -gdwarf-4 unused type units.
6352         * dwarf2read.c (struct signatured_type): Remove the field offset.
6353         (create_signatured_type_table_from_index): Remove its initialization.
6354         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6355         instead.  Add a complaint call.
6356         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6357         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6358         (lookup_signatured_type_at_offset, read_signatured_type)
6359         (write_one_signatured_type): Update the field for per_cu.
6360
6361 2011-05-19  Tom Tromey  <tromey@redhat.com>
6362
6363         * python/py-inferior.c (python_inferior_exit): Use
6364         target_gdbarch.
6365         (python_on_resume): Likewise.
6366
6367 2011-05-19  Matt Rice  <ratmice@gmail.com>
6368
6369         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6370
6371 2011-05-19  Hui Zhu  <teawater@gmail.com>
6372
6373         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6374
6375 2011-05-19  Hui Zhu  <teawater@gmail.com>
6376
6377         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6378
6379 2011-05-18  Tom Tromey  <tromey@redhat.com>
6380
6381         * dwarf2read.c (dwarf2_add_field): Constify.
6382         * value.c (value_static_field): Constify.
6383         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6384         Now const.
6385         * ax-gdb.c (gen_static_field): Constify
6386
6387 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6388
6389         * linux-nat.c (kill_callback): Use SIGKILL first.
6390
6391 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6392
6393         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6394
6395 2011-05-18  Tom Tromey  <tromey@redhat.com>
6396
6397         * value.c (value_fn_field): Constify.
6398         * symtab.c (gdb_mangle_name): Constify.
6399         * stabsread.c (update_method_name_from_physname): Make 'physname'
6400         argument const.
6401         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6402         const.  Use explicit fputc_filtered loop.
6403         (pascal_type_print_base): Constify.
6404         * p-lang.h (pascal_type_print_method_args): Update.
6405         * linespec.c (add_matching_methods): Constify.
6406         (add_constructors): Likewise.
6407         * jv-typeprint.c (java_type_print_base): Constify.
6408         * gdbtypes.h (struct cplus_struct_type)
6409         <fn_fieldlist.fn_field.physname>: Now const.
6410         * dwarf2read.c (compute_delayed_physnames): Constify.
6411         (dwarf2_add_member_fn): Likewise.
6412         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6413
6414 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6415
6416         * infrun.c (resume): Mention which is the current thread, and its
6417         current PC in debug output.
6418         (prepare_to_proceed): Mention the thread switching in debug
6419         output.
6420
6421 2011-05-18  Tom Tromey  <tromey@redhat.com>
6422
6423         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6424         path check.  Use xmalloc and cleanups.
6425         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6426
6427 2011-05-17  Tom Tromey  <tromey@redhat.com>
6428
6429         * cp-valprint.c (cp_print_value_fields): Catch errors from
6430         value_static_field.
6431
6432 2011-05-17  Tom Tromey  <tromey@redhat.com>
6433
6434         * dwarf2read.c (dwarf2_get_die_type): Call
6435         get_die_type_at_offset.
6436         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6437         get_base_type function.
6438
6439 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6440
6441         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6442         trap_expected.
6443
6444 2011-05-16  Doug Evans  <dje@google.com>
6445
6446         * python/py-auto-load.c (source_section_scripts): Mention objfile
6447         name in warning.
6448
6449 2011-05-15  Doug Evans  <dje@google.com>
6450
6451         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6452         (try_thread_db_load_from_pdir): Call it.  If unable to find
6453         libthread_db in directory of libpthread, see if we're looking at
6454         the separate-debug-info copy.
6455
6456         * python/py-autoload.c (print_script): Print "Missing" instead of
6457         "No" for missing scripts.
6458         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6459
6460 2011-05-13  Doug Evans  <dje@google.com>
6461
6462         * ui-file.c (stdio_file_write_async_safe): Add comment.
6463
6464 2011-05-14  Hui Zhu  <teawater@gmail.com>
6465
6466         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6467
6468 2011-05-13  Doug Evans  <dje@google.com>
6469
6470         Support $pdir and $sdir in libthread-db-search-path.
6471         * NEWS: Mention $sdir,$pdir.
6472         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6473         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6474         (try_thread_db_load_from_sdir): New function.
6475         (try_thread_db_load_from_dir): New function.
6476         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6477         system directories if search of libthread-db-search-path fails,
6478         that is now done via $sdir.
6479         (has_libpthread): New function.
6480         (thread_db_load): Remove search for libthread_db in directory of
6481         libpthread, that is now done via $pdir.
6482
6483         * NEWS: Mention "info auto-load-scripts".
6484         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6485         script_not_found_warning_printed.
6486         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6487         all callers updated.  Initialize script_not_found_warning_printed.
6488         (get_auto_load_pspace_data_for_loading): New function.
6489         (maybe_add_script): New function.
6490         (source_section_scripts): Simplify.  Only print one warning regardless
6491         of the number of auto-load scripts not found.
6492         (clear_section_scripts): Clear script_not_found_warning_printed.
6493         (auto_load_objfile_script): Record script in hash table.
6494         (count_matching_scripts): New function.
6495         (maybe_print_script): Renamed from maybe_print_section_script, all
6496         callers updated.  Rewrite to use ui_out_*.
6497         (info_auto_load_scripts): Renamed from
6498         maintenance_print_section_scripts, all callers updated.
6499         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6500         renamed as "info auto-load-scripts".
6501
6502 2011-05-13  Tom Tromey  <tromey@redhat.com>
6503
6504         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6505         (read_sleb128): Likewise.
6506
6507 2011-05-13  Tom Tromey  <tromey@redhat.com>
6508
6509         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6510         offset display.
6511
6512 2011-05-13  Doug Evans  <dje@google.com>
6513
6514         * linux-nat.c (debug_linux_nat_async): Delete.
6515         Replace all references to use debug_linux_nat instead.
6516         (show_debug_linux_nat_async): Delete.
6517         (sigchld_handler): Call ui_file_write_async_safe instead of
6518         fprintf_unfiltered.
6519         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6520         * ui-file.c (struct ui_file): New member to_write_async_safe.
6521         (null_file_write_async_safe): New function.
6522         (ui_file_write_async_safe): New function.
6523         (set_ui_file_write_async_safe): New function.
6524         (ui_file_new): Initialize to_write_async_safe.
6525         (stdio_file_write_async_safe): New function.
6526         (struct stdio_file): New member fd.
6527         (stdio_file_new): Initialize to_write_async_safe, fd.
6528         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6529         fileno.
6530         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6531         (set_ui_file_write_async_safe): Declare.
6532         (ui_file_write_async_safe): Declare.
6533
6534 2011-05-13  Tom Tromey  <tromey@redhat.com>
6535
6536         * utils.c (do_value_free): New function.
6537         (make_cleanup_value_free): Likewise.
6538         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6539         freeing correctly.
6540         (dwarf2_loc_desc_needs_frame): Call
6541         make_cleanup_value_free_to_mark.
6542         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6543         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6544         value_free_to_mark.
6545         (new_dwarf_expr_context): Don't call value_mark.
6546         * dwarf2-frame.c (execute_stack_op): Call
6547         make_cleanup_value_free_to_mark.
6548         * defs.h (make_cleanup_value_free): Declare.
6549
6550 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6551
6552         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6553         prepare_execute_command.
6554         * top.c (prepare_execute_command): Return cleanup.
6555         (execute_command): Use cleanup from prepare_execute_command.
6556         * top.h (prepare_execute_command): Change prototype to return
6557         cleanup.
6558         * defs.h (struct value): Add opaque declaration.
6559         (make_cleanup_value_free_to_mark): Add prototype.
6560         * utils.c (do_value_free_to_mark): New function.
6561         (make_cleanup_value_free_to_mark): Likewise.
6562
6563 2011-05-12  Tom Tromey  <tromey@redhat.com>
6564
6565         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6566         cast left-hand-side to unsigned.
6567
6568 2011-05-12  Tom Tromey  <tromey@redhat.com>
6569
6570         PR gdb/12617:
6571         * value.h (value_from_contents): Declare.
6572         * value.c (value_from_contents): New function.
6573         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6574         (dwarf2_get_die_type): New function.
6575         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6576         (allocate_piece_closure): Acquire reference to values.
6577         (read_pieced_value): Update for value-based expressions.
6578         (write_pieced_value): Likewise.
6579         (free_pieced_value_closure): Call value_free as needed.
6580         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6581         Update for value-based expressions.
6582         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6583         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6584         <get_base_type>: New field.
6585         (struct dwarf_expr_piece) <v.value>: Change type.
6586         <v.regno>: New field.
6587         (struct dwarf_expr_context) <mark>: New field.
6588         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6589         (dwarf_expr_pop, dwarf_expr_push): Remove.
6590         (dwarf_expr_push_address): Declare.
6591         * dwarf2expr.c (dwarf_arch_cookie): New global.
6592         (struct dwarf_gdbarch_types): New.
6593         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6594         functions.
6595         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6596         static.
6597         (dwarf_expr_push_address): New function.
6598         (dwarf_expr_pop): Now static.
6599         (dwarf_expr_fetch): Change return type.
6600         (dwarf_require_integral): New function.
6601         (dwarf_expr_fetch): Simplify.
6602         (add_piece): Update.
6603         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6604         functions.
6605         (execute_stack_op) <sign_ext>: Remove.
6606         Use values for DWARF stack.
6607         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6608         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6609         New cases.
6610         (_initialize_dwarf2expr): New function.
6611         (add_piece): Update.
6612         (new_dwarf_expr_context): Set new field.
6613         (free_dwarf_expr_context): Call value_free_to_mark.
6614         * dwarf2-frame.c (no_base_type): New function.
6615         (execute_stack_op): Set get_base_type field.  Update.
6616
6617 2011-05-12  Tom Tromey  <tromey@redhat.com>
6618
6619         * dwarf2read.c (read_common_block): Fix formatting.
6620
6621 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6622
6623         * breakpoint.c (disable_breakpoint): Disable all locations
6624         associated with a tracepoint on target if a trace experiment is
6625         running.
6626         (disable_command): Disable a specific tracepoint location on target if
6627         a trace experiment is running.
6628         (do_enable_breakpoint): Enable all locations associated with a
6629         tracepoint on target if a trace experiment is running.
6630         (enable_command) Enable a specific tracepoint location on target if a
6631         trace experiment is running.
6632         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6633         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6634         to_disable_tracepoint.
6635         * target.h: Add declaration of struct bp_location.
6636         (struct target_ops): Add new functions
6637         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6638         to_disable_tracepoint to target operations.
6639         (target_supports_enable_disable_tracepoint): New macro.
6640         (target_enable_tracepoint): New macro.
6641         (target_disable_tracepoint): New macro.
6642         * remote.c (struct remote_state): Add new field.
6643         (remote_enable_disable_tracepoint_feature): New.
6644         (remote_protocol_features): Add new entry.
6645         (remote_supports_enable_disable_tracepoint): New.
6646         (remote_enable_tracepoint): New.
6647         (remote_disable_tracepoint): New.
6648         (init_remote_ops): Add remote_enable_tracepoint,
6649         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6650         to remote operations.
6651         * tracepoint.c (start_tracing): Allow tracing to start without any
6652         tracepoints enabled with just a warning if they can be re-enabled
6653         later.
6654         * NEWS: Add news item for the new behaviour of the enable and disable
6655         GDB commands when applied to tracepoints.
6656         Add news items for the new remote packets QTEnable and QTDisable.
6657
6658 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6659
6660         * config.in: Regenerate.
6661         * configure: Regenerate.
6662         * configure.ac <--with-system-readline> (for readline_echoing_p):
6663         Remove the test.
6664         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6665         (tui_old_rl_echoing_p): ... here.
6666         (tui_setup_io): Rename extern declaration readline_echoing_p to
6667         _rl_echoing_p.  Adjust assignments for the both renames.
6668
6669 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6670
6671         * symtab.c (lookup_symtab): Run cleanup before returning.
6672
6673 2011-05-11  Tom Tromey  <tromey@redhat.com>
6674
6675         * dwarf2read.c (handle_data_member_location): New function.
6676         (dwarf2_add_field): Use it.
6677         (read_common_block): Likewise.
6678
6679 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6680
6681         Make addrs->SECTINDEX always defined.
6682         * symfile.c (relative_addr_info_to_section_offsets): Check for
6683         SECTINDEX -1, not for zero ADDR.
6684         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6685         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6686         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6687         on its validity.
6688
6689 2011-05-10  Doug Evans  <dje@google.com>
6690
6691         * linux-thread-db.c: Whitespace cleanup.
6692         (try_thread_db_load_1): Fix comment.
6693
6694         * linux-thread-db.c (set_libthread_db_search_path): New function.
6695         (_initialize_thread_db): Add setter for libthread-db-search-path.
6696
6697 2011-05-09  Doug Evans  <dje@google.com>
6698
6699         * NEWS: Mention --with-iconv-bin.
6700         * configure.ac: New option --with-iconv-bin.
6701         * configure: Regenerate.
6702         * config.in: Regenerate.
6703         * defs.h (relocate_gdb_directory): Declare.
6704         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6705         removed progname parameter, and exported.  All callers updated.
6706         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6707
6708         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6709         adding missing call to restore_child_signals_mask.
6710
6711 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6712
6713         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6714         parameter.
6715         * infrun.c (proceed, start_remote): Adjust.
6716         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6717         and adjust to not handle it.
6718         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6719         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6720         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6721         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6722         * windows-nat.c (do_initial_windows_stuff): Adjust.
6723         * infcmd.c (attach_command): Adjust.
6724         (notice_new_inferior): Adjust.
6725
6726 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6727
6728         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6729         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6730         * spu-tdep.c (op_selb): Use correct value.
6731
6732 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6733
6734         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6735         "parent" parameter to symbol_file_add_from_bfd call.
6736
6737 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6738             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6739
6740         Implement support for PowerPC BookE masked watchpoints.
6741         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
6742         section.
6743         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6744         method.  Initialize to NULL in all existing breakpoint_ops instances.
6745         (struct breakpoint) <hw_wp_mask>: New field.
6746         * breakpoint.c (is_masked_watchpoint): Add prototype.
6747         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
6748         breakpoint's breakpoint_ops.works_in_software_mode if available.
6749         (watchpoints_triggered): Handle the case of a hardware masked
6750         watchpoint trigger.
6751         (watchpoint_check): Likewise.
6752         (works_in_software_mode_watchpoint): New function.
6753         (insert_masked_watchpoint, remove_masked_watchpoint)
6754         (resources_needed_masked_watchpoint)
6755         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6756         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6757         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6758         functions.
6759         (masked_watchpoint_breakpoint_ops): New structure.
6760         (watch_command_1): Check for the existence of the `mask' parameter.
6761         Set b->ops according to the type of hardware watchpoint being created.
6762         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6763         (ppc_linux_remove_mask_watchpoint)
6764         (ppc_linux_masked_watch_num_registers): New functions.
6765         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6766         to_remove_mask_watchpoint and to_masked_watch_num_registers.
6767         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6768         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6769         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6770         (target_masked_watch_num_registers): New functions.
6771         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6772         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6773         methods.
6774         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6775         (target_masked_watch_num_registers): Add prototypes.
6776
6777 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6778
6779         PR 12573
6780         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6781         (producer_is_gcc_ge_4_0): New function.
6782         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
6783         symtab->language code.
6784         (var_decode_location): Set cu->has_loclist.
6785         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6786         skip.  Intialize force_skip from locations_valid.  Move the prologue
6787         skipping code into two passes.
6788         * symtab.h (struct symtab): Make the primary field a bitfield.  New
6789         field locations_valid.
6790
6791 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6792
6793         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6794         (classify_inner_name): Call cp_lookup_nested_type with
6795         yylval.tsym.type.
6796         * cp-namespace.c (cp_lookup_nested_type): New variable
6797         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
6798         type_name_no_tag_or_error with saved_parent_type.
6799         * dwarf2read.c (load_partial_dies): Read in any children of
6800         DW_TAG_typedef with complaint in such case.
6801         * gdbtypes.c (type_name_no_tag_or_error): New function.
6802         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6803         * valops.c (destructor_name_p): New comment for parameter type.  Remove
6804         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
6805         * value.h (destructor_name_p): Remove type const.
6806
6807 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6808
6809         * symtab.c (compare_symbol_name): New function.
6810         (completion_list_add_name, expand_partial_symbol_name): Call it,
6811         remove the variable ncmp.
6812         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6813         gdb_assert it.
6814
6815 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6816
6817         Demote to sw watchpoint only in update_watchpoint.
6818         * breakpoint.c (update_watchpoint): Change between software and
6819         hardware watchpoint for all kinds of watchpoints, not just
6820         read/write ones.  Determine b->exact value here instead of
6821         in watch_command_1.  Error out if there are not enough resources
6822         for a read or access hardware watchpoint.
6823         (watch_command_1): Remove logic of checking whether there are
6824         enough resources available, since update_watchpoint will do that
6825         work now.  Don't set b->exact here.  Catch exceptions thrown by
6826         update_watchpoint and delete the watchpoint.
6827         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6828         Use target_exact_watchpoints instead.
6829         (delete_breakpoint): Notify observers only if deleted watchpoint
6830         has a breakpoint number assigned to it.
6831
6832 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
6833
6834         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6835
6836 2011-05-05  Jerome Guitton  <guitton@adacore.com>
6837
6838         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6839         New functions.
6840         (i386_stack_tramp_frame_unwind): New static global.
6841         (i386_match_pattern): New function, extracted from i386_match_insn.
6842         (i386_match_insn): Use i386_match_pattern.
6843         (i386_match_insn_block): New function.
6844         (i386_tramp_chain_in_reg_insns)
6845         (i386_tramp_chain_on_stack_insns): New static variables.
6846         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6847         of unwinders.
6848
6849 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
6850
6851         * configure.host (xscale*): Don't handle target.
6852         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6853         handle targets.
6854
6855 2011-05-04  Yao Qi  <yao@codesourcery.com>
6856
6857         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6858
6859 2011-05-03  Joel Brobecker <brobecker@adacore.com>
6860
6861         Revert:
6862         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6863         | * elfread.c (elf_symtab_read): Stop memory leak.
6864
6865 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6866
6867         * nto-tdep.c (nto_target): Replace deprecated call to
6868         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6869
6870 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6871
6872         Fix false GCC warning.
6873         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6874
6875 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6876
6877         * breakpoint.c (update_watchpoint): Move code to change
6878         the enable state of breakpoint from here ...
6879         (do_enable_breakpoint): ... to here.
6880
6881 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
6882
6883         * valprint.c (val_print_array_elements): Fixed poor performance
6884         of printing very large arrays with repeat_count_threshold set
6885         to unlimited.  New comment.
6886
6887 2011-04-29  Tom Tromey  <tromey@redhat.com>
6888
6889         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6890         (mi_parse): Likewise.
6891         * breakpoint.c (break_range_command): Use sizeof char*, not
6892         char**.
6893         (create_breakpoint): Likewise.
6894         (parse_breakpoint_sals): Likewise.
6895
6896 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
6897
6898         * linux-nat.c (linux_child_remove_fork_catchpoint)
6899         (linux_child_remove_vfork_catchpoint)
6900         (linux_child_remove_exec_catchpoint): New functions.
6901         (linux_target_install_ops): Install them.
6902
6903 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6904
6905         PR mi/12531
6906
6907         * varobj.c (install_default_visualizer): Do not install a
6908         visualizer if the varobj is CPLUS_FAKE_CHILD.
6909         (construct_visualizer): Likewise.
6910
6911 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6912
6913         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
6914         case insensitive comparison.
6915
6916 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
6917
6918         * infrun.c (proceed): Revert previous change.
6919         (resume): Instead, handle the case of signal delivery while stepping
6920         off a breakpoint location here, and only if software single-stepping
6921         is used.  Handle nested signals.
6922
6923 2011-04-28  Yao Qi  <yao@codesourcery.com>
6924
6925         * arm-tdep.c (copy_unmodified): Rename to ...
6926         (arm_copy_unmodified): .. this.  New.
6927         (copy_preload): Move common part to ...
6928         (install_preload): .. this.  New.
6929         (arm_copy_preload): New.
6930         (copy_preload_reg): Move common part to ...
6931         (install_preload_reg): ... this.  New.
6932         (arm_copy_preload_reg): New.
6933         (copy_b_bl_blx): Move common part to ...
6934         (install_b_bl_blx): .. this.  New.
6935         (arm_copy_b_bl_blx): New.
6936         (copy_bx_blx_reg): Move common part to ...
6937         (install_bx_blx_reg): ... this. New.
6938         (arm_copy_bx_blx_reg): New.
6939         (copy_alu_reg): Move common part to ...
6940         (install_alu_reg): ... this.  New.
6941         (arm_copy_alu_reg): New.
6942         (copy_alu_shifted_reg): Move common part to ...
6943         (install_alu_shifted_reg): ... this.  New.
6944         (copy_ldr_str_ldrb_strb): Move common part to ...
6945         (install_ldr_str_ldrb_strb): ... this.  New.
6946         (arm_copy_ldr_str_ldrb_strb): New.
6947         (copy_copro_load_store): Move some common part to ...
6948         (install_copy_copro_load_store): ... this.  New.
6949         (arm_copy_copro_load_store): New.
6950         (copy_svc): Delete.
6951         (arm_copy_svc): Renamed from copy_svc.
6952         (copy_undef): Delete.
6953         (arm_copy_undef): Renamed from copy_undef.
6954         (decode_ext_reg_ld_st): Delete.
6955         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6956         (decode_svc_copro): Delete.
6957         (arm_decode_svc_copro): Renamed from decode_svc_copro.
6958         (copy_copro_load_store, copy_alu_imm): update callers.
6959         (copy_extra_ld_st, copy_block_xfer): Likewise.
6960         (decode_misc_memhint_neon, decode_unconditional): Likewise.
6961         (decode_miscellaneous, decode_dp_misc): Likewise.
6962         (decode_ld_st_word_ubyte, decode_media): Likewise.
6963         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6964         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6965         (decode_unconditional, decode_miscellaneous): Likewise.
6966         (decode_media, decode_b_bl_ldmstm): Likewise.
6967         (arm_process_displaced_insn): Likewise..
6968         (decode_misc_memhint_neon): Delete.
6969         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6970         (decode_miscellaneous): Delete.
6971         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6972         (decode_dp_misc): Delete.
6973         (arm_decode_dp_misc): Renamed from decode_dp_misc.
6974         (decode_ld_st_word_ubyte): Delete.
6975         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6976         (decode_media): Delete.
6977         (arm_decode_media): Renamed from decode_media.
6978         (decode_b_bl_ldmstm): Delete.
6979         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6980         (decode_ext_reg_ld_st): Delete.
6981         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6982         (decode_unconditional): Delete.
6983         (arm_decode_unconditional): Renamed from decode_unconditional.
6984
6985 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6986
6987         Case insensitive lookups implementation.
6988         * dwarf2read.c: Include ctype.h.
6989         (struct mapped_index): New field version.
6990         (mapped_index_string_hash): New parameter index_version.  New comment
6991         for it.  Call tolower appropriately.
6992         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6993         Choose the right index version for mapped_index_string_hash.
6994         (dwarf2_read_index): Support also the index version 5.  Initialize the
6995         new struct mapped_index field version.
6996         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6997         (find_slot): Explain the version needs.  Pass INT_MAX for the new
6998         parameter.
6999         (write_psymtabs_to_index): Produce version 5.
7000         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7001         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
7002         * psymtab.c (lookup_partial_symbol): Find the
7003         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7004         entries.
7005         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7006         NAME lowercasing.
7007         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7008         (completion_list_add_name): New variable ncmp, initialize it, use it.
7009         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7010         * utils.c (strcmp_iw): Support case_sensitive_off.
7011         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7012         New function comment part.  New variables saved_string1,
7013         saved_string2 and case_pass.  Add a proper second pass.
7014
7015 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7016
7017         Replace re_comp/re_exec by regcomp/regexec.
7018         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7019         (search_symbols_name_matches): Use them, use regexec.
7020         (search_symbols): New variable retval_chain, adjust the use of
7021         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
7022         search_symbols_data fields, use regexec instead of re_exec.
7023
7024 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7025
7026         Format the code for the next patch.
7027         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7028         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7029         New variables c1 and c2.
7030
7031 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7032
7033         * infrun.c (proceed): Do not single-step into signal delivery
7034         when stepping off a breakpoint location.
7035         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7036         (insert_step_resume_breakpoint_at_caller): Likewise.
7037         (insert_step_resume_breakpoint_at_sal): Likewise.
7038         (insert_longjmp_resume_breakpoint): Likewise.
7039
7040 2011-04-27  Yao Qi  <yao@codesourcery.com>
7041
7042         * common/linux-ptrace.h: Remove include <sys/wait.h>.
7043
7044 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
7045
7046         * procfs.c (procfs_pass_signals): Fix advance declaration.
7047
7048 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7049
7050         * target.h (struct target_ops): Remove to_notice_signals;
7051         add to_pass_signals.
7052         (target_notice_signals): Remove.
7053         (target_pass_signals): Add prototype.
7054         * target.c (update_current_target): Remove to_notice_signals;
7055         mention to_pass_signals.
7056         (target_pass_signals): New function.
7057         (debug_to_notice_signals): Remove.
7058         (setup_target_debug): Do not install debug_to_notice_signals.
7059
7060         * infrun.c (signal_pass): New global.
7061         (resume): Call target_pass_signals.
7062         (handle_inferior_event): Report all signals while stepping over
7063         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
7064         are re-inserted when stepping over a signal handler.
7065         (signal_cache_update): New function.
7066         (signal_stop_update): Call it.
7067         (signal_print_update): Likewise.
7068         (signal_pass_update): Likewise.
7069         (handle_command): Call signal_cache_update and target_pass_signals
7070         instead of target_notice_signals.
7071         (_initialize_infrun): Initialize signal_pass.
7072
7073         * linux-nat.c (pass_mask): New global.
7074         (linux_nat_pass_signals): New function.
7075         (linux_nat_create_inferior): Report all signals initially.
7076         (linux_nat_attach): Likewise.
7077         (linux_nat_resume): Use pass_mask to decide whether to directly
7078         handle an inferior signal.
7079         (linux_nat_wait_1): Likewise.
7080         (linux_nat_add_target): Install to_pass_signals callback.
7081
7082         * nto-procfs.c (notice_signals): Remove.
7083         (procfs_resume): Do not call notice_signals.
7084         (procfs_notice_signals): Remove.
7085         (procfs_pass_signals): New function.
7086         (init_procfs_ops): Install to_pass_signals callback instead of
7087         to_notice_signals callback.
7088         (_initialize_procfs): Report all signals initially.
7089
7090         * procfs.c (procfs_notice_signals): Remove.
7091         (procfs_pass_signals): New function.
7092         (procfs_target): Install to_pass_signals callback instead of
7093         to_notice_signals callback.
7094         (register_gdb_signals): Remove.
7095         (procfs_debug_inferior): Report all signals initially.
7096         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7097
7098         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7099         parameters; use them instead of calling signal_..._state routines.
7100         (remote_notice_signals): Remove.
7101         (remote_start_remote): Report all signals initially.
7102         (remote_resume): Do not call remote_pass_signals.
7103         (_initialize_remote): Install to_pass_signals callback instead of
7104         to_notice_signals callback.
7105
7106 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7107
7108         * breakpoint.c (user_settable_breakpoint): Delete.
7109         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7110         (delete_command): Check user_breakpoint_p instead of looking at
7111         the breakpoint's type.
7112         (disable_command): Ditto.
7113         (enable_command): Ditto.
7114         (delete_trace_command): Use user_breakpoint_p instead of looking
7115         at the breakpoint number directly.  When checking if there are
7116         user visible tracepoints, in order to know whether to ask the user
7117         for confirmation, check whether the breakpoint is actually a
7118         tracepoint.
7119
7120 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7121
7122         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7123         compilation.
7124
7125 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7126
7127         MI breakpoint notifications.
7128
7129         * annotate.c (breakpoint_changed): Adjust parameter type.
7130         * breakpoint.c (set_breakpoint_condition): Adjust to change
7131         in breakpoint_modified type.
7132         (breakpoint_set_commands): Likewise.
7133         (do_map_commands_command): Likewise.
7134         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7135         changed after bumping hit count.
7136         (bpstat_stop_status): Likewise.
7137         (print_one_breakpoint_location): Don't wrap in tuple here.
7138         (print_one_breakpoint): Always print individual locations.
7139         For locations, use unnamed tuple.
7140         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7141         has changed.
7142         (create_catchpoint, create_syscall_event_catchpoint): Call
7143         breakpoint_created obsever.
7144         (mention): Don't call breakpoint_created observer.
7145         (create_breakpoint_sal): Call breakpoint_created observer.
7146         (create_breakpoint, watch_command_1): Likewise.
7147         (create_ada_exception_breakpoint): Likewise.
7148         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7149         (locations_are_equal): New.
7150         (update_breakpoint_locations): If locations were changed, notify.
7151         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7152         Call breakpoint_modified observer.
7153
7154         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7155         (mi_cmd_break_insert): Don't set observers for modify and delete.
7156         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7157         (mi_breakpoint_created, mi_breakpoint_deleted)
7158         (mi_breakpoint_modified): New.
7159         (mi_interpreter_init): Hook the above.
7160         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7161         while -break-* commands are executing.
7162         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7163         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7164         (mi_redirect): New.
7165         (mi_ui_out_impl): Hook in mi_redirect.
7166         (mi_field_skip): True to the name, skip the field, don't output
7167         a field with an empty value.
7168
7169         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7170         (gdbpy_breakpoint_deleted): Adjust.
7171         * tui/tui-hooks.c (tui_event_create_breakpoint)
7172         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7173
7174 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7175
7176         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7177         (procfs_remove_hw_watchpoint): Likewise.
7178
7179 2011-04-26  Michael Walle  <michael@walle.cc>
7180
7181         * remote.c (remote_start_remote): Ack packet after sending the
7182         interrupt sequence.
7183
7184 2011-04-26  Yao Qi  <yao@codesourcery.com>
7185
7186         * linux-nat.c: Move common macros to ...
7187         Include linux-ptrace.h.
7188         * common/linux-ptrace.h: ... here.  New.
7189
7190 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7191
7192         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7193         !objfile_has_partial_symbols.  New comment.
7194         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7195         SYM_READ_PSYMBOLS is not present. Extend the comment.
7196         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7197
7198 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7199
7200         * defs.h (ENUM_BITFIELD): Remove.
7201
7202 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7203             Eli Zaretskii  <eliz@gnu.org>
7204
7205         * NEWS: Document the new gdbserver --once option.
7206
7207 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7208
7209         * MAINTAINERS: Update my email address.
7210
7211 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7212
7213         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7214         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7215         function call if __STDC_ISO_10646__ macro is defined.
7216         (intermediate_encoding): New prototype.
7217         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7218         to generate compile time error for unsupported gdb_wchar_t size.
7219         (ENDIAN_SUFFIX): New macro.
7220         (intermediate_encoding): New function.
7221
7222 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7223
7224         * ada-lang.c (struct add_partial_datum): Update the comment for
7225         expand_partial_symbol_name.
7226         (ada_add_partial_symbol_completions): Rename to ...
7227         (ada_expand_partial_symbol_name): ... here, change return type, update
7228         function comment, call symbol_completion_match instead of
7229         symbol_completion_add.
7230         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7231         and ada_expand_partial_symbol_name.
7232         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7233         FILE_MATCHER.
7234         (dw2_map_symbol_names): Remove.
7235         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7236         * psymtab.c (map_symbol_names_psymtab): Remove.
7237         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7238         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7239         order.
7240         (psym_functions): Unlist map_symbol_names_psymtab.
7241         (map_partial_symbol_names): Rename to ...
7242         (expand_partial_symbol_names): ... here, change the FUN type, call
7243         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7244         * psymtab.h (map_partial_symbol_names): Rename to ...
7245         (expand_partial_symbol_names): ... here, change the FUN type.
7246         * symfile.h (struct quick_symbol_functions): Update the description of
7247         expand_symtabs_matching.  Remove map_symbol_names.
7248         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7249         (struct add_name_data): Update the comment for
7250         expand_partial_symbol_name.
7251         (add_partial_symbol_name): Rename to ...
7252         (expand_partial_symbol_name): ... here.  Replace
7253         completion_list_add_name call by strncmp.
7254         (default_make_symbol_completion_list_break_on): Use now
7255         expand_partial_symbol_names and expand_partial_symbol_name.
7256         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7257
7258 2011-04-20  Tom Tromey  <tromey@redhat.com>
7259
7260         * dwarf2read.c (save_gdb_index_command): Replace format
7261         documentation with a pointer to the manual.
7262
7263 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7264
7265         * regcache.c: Include remote.h.
7266         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7267         (regcache_dump): Handle regcache_dump_remote.
7268         (maintenance_print_remote_registers): New function.
7269         (_initialize_regcache): Install "maint print remote-registers"
7270         command.
7271         * remote.c (map_regcache_remote_table): New function, factored out
7272         from ...
7273         (init_remote_state): ... here.
7274         (remote_register_number_and_offset): New.
7275         * remote.h (remote_register_number_and_offset): Declare.
7276
7277 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7278
7279         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7280         null_ptid, assume and allow a NULL address space, instead of
7281         asking the target for the ptid's address space.
7282         * infrun.c (ptid_is_pid): Remove assertion.
7283
7284 2011-04-19  Tom Tromey  <tromey@redhat.com>
7285
7286         * windows-tdep.c (windows_xfer_shared_library):
7287         * windows-nat.c (get_module_name, windows_make_so):
7288         * v850-tdep.c (v850_handle_pushm):
7289         * utils.c (null_cleanup, gdb_realpath):
7290         * ui-out.c (get_next_header):
7291         * tracepoint.c (clear_traceframe_info):
7292         * symtab.c (lookup_symtab):
7293         * serial.h (struct serial_ops):
7294         * mipsread.c (read_alphacoff_dynamic_symtab):
7295         * infcmd.c (print_return_value):
7296         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7297         * f-exp.y (parse_number):
7298         * exceptions.c (catch_exceptions):
7299         * dummy-frame.c (dummy_frame_this_id):
7300         * defs.h (struct cleanup):
7301         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7302         * arm-tdep.c (arm_push_dummy_call):
7303         * amd64-tdep.h (amd64_collect_xsave):
7304         * amd64-tdep.c (amd64_collect_xsave):
7305         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7306         * README (typing): Remove duplicate words.
7307         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7308         * infrun.c (siginfo_value_read): Fix typo.
7309         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7310         * top.c (source_line_number): Add comma.
7311
7312 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7313
7314         * thread.c (any_live_thread_of_process): Prioritize threads
7315         that are not executing.
7316         * gdbthread.h (any_live_thread_of_process): Update comment
7317         as per above change.
7318
7319 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7320
7321         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7322         (scan_xcoff_symtab): Likewise.
7323
7324 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7325
7326         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7327         inside if clause.
7328
7329 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7330             Pedro Alves  <pedro@codesourcery.com>
7331
7332         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7333         variables to simplify code and avoid == operator at end of
7334         line as this is against GNU coding standards.
7335
7336 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7337
7338         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7339         lm_name to name_lm to avoid conflict with lm_name function.
7340
7341 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7342
7343         ARI fixes: Use only lowercase function name for static functions.
7344         * nto-tdep.c (LM_ADDR): Rename to...
7345         (lm_addr): New function name.
7346         (nto_relocate_section_addresses): Adapt to change above.
7347         * solib-sunos.c (LM_ADDR): Rename to...
7348         (lm_addr): New function name.
7349         (LM_NEXT): Rename to...
7350         (lm_next): New function name.
7351         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7352         function name changes above.
7353         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7354         (lm_addr_from_link_map): New function name.
7355         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7356         (has_lm_dynamic_from_link_map): New function name.
7357         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7358         (lm_dynamic_from_link_map): New function name.
7359         (LM_ADDR_CHECK): Rename to...
7360         (lm_addr_check): New function name.
7361         (LM_NEXT): Rename to...
7362         (lm_next): New function name.
7363         (LM_PREV): Rename to...
7364         (lm_prev): New function name.
7365         (LM_NAME): Rename to...
7366         (lm_name): New function name.
7367         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7368         (ignore_first_link_map_entry): New function name.
7369         (svr4_keep_data_in_core): Adapt to function name changes above.
7370         (svr4_current_sos): Likewise.
7371         (enable_break): Likewise.
7372         (svr4_relocate_section_addresses): Likewise.
7373
7374 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7375
7376         ARI cleanup.
7377         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7378         sprintf. Simplify code and avoid loosing memory.
7379         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7380         (call0_frame_cache): Remove && operator from end of line.
7381
7382 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7383
7384         Fix libraries displacement if they change whether they were prelinked.
7385         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7386         does not match.  Comment why.
7387
7388 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7389
7390         * corelow.c: Include wrapper.h.
7391         (core_open): Call now gdb_target_find_new_threads.
7392         * wrapper.c: Include target.h.
7393         (gdb_target_find_new_threads): New.
7394         * wrapper.h (gdb_target_find_new_threads): New declaration.
7395
7396 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7397
7398         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7399         even if !TARGET_HAS_EXECUTION.
7400
7401 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7402
7403         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7404         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7405         bfd_get_synthetic_symtab.
7406         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7407         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7408         parameter parent, remove the call to add_separate_debug_objfile.
7409         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7410         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7411         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7412         parent, new comment for it, call add_separate_debug_objfile for it.
7413         (symbol_file_add_separate): Pass objfile as the parameter parent,
7414         remove the call to add_separate_debug_objfile.
7415         (symbol_file_add_from_bfd): New parameter parent, pass it.
7416         (symbol_file_add): Pass NULL to the new parameter parent.
7417         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7418
7419 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7420
7421         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7422         BSF_SYNTHETIC.
7423
7424 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7425
7426         Fix Python access to inlined frames.
7427         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7428         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7429
7430 2011-04-15  Tom Tromey  <tromey@redhat.com>
7431
7432         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7433
7434 2011-04-15  Gary Benson  <gbenson@redhat.com>
7435
7436         * MAINTAINERS: Add myself to write-after-approval section.
7437
7438 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7439
7440         * remote-sim.c (sim_command_completer): New function.
7441         (_initialize_remote_sim): Set completer to sim_command_completer.
7442
7443 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7444
7445         * breakpoint.c (print_exception_catchpoint): Rename to ...
7446         (print_it_exception_catchpoint): ... this.
7447         (gnu_v3_exception_catchpoint_ops): Update with new name
7448         for print_it_exception_catchpoint.
7449
7450 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7451
7452         * MAINTAINERS: Add myself for write after approval privileges.
7453
7454 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7455
7456         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7457
7458 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7459
7460         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7461
7462 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7463
7464         * breakpoint.c (save_breakpoints): Verify whether
7465         breakpoint_ops.print_recreate is defined before calling it.
7466
7467 2011-04-11  Gary Benson  <gbenson@redhat.com>
7468
7469         Fix failure with --enable-maintainer-mode.
7470         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7471
7472 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7473
7474         Code cleanup.
7475         * symtab.c (search_symbols): Reorder the KIND description in the
7476         function comment.  Remove the unused 4th element of types, types2,
7477         types3 and types4.  New gdb_assert on KIND.
7478         (symtab_symbol_info): Remove the unused 4th element of classnames.
7479         New gdb_assert on KIND.
7480         * symtab.h (enum search_domain): New warning in the enum comment.
7481         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7482         TYPES_DOMAIN.
7483
7484 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7485
7486         Fix crash of gdb save-index on a STABS file.
7487         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7488         PSYMTABS_ADDRMAP.
7489
7490 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7491
7492         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7493         * dwarf2read.c: Include ctype.h.
7494         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7495         functions.
7496         (dwarf2_add_field): Fix new_field->accessibility by calling
7497         dwarf2_default_access_attribute.  Restructure setting accessibility
7498         vs. virtuality.
7499         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7500         is_private and is_protected by calling
7501         dwarf2_default_access_attribute.
7502
7503 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7504
7505         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7506         to the initialization.
7507
7508 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7509
7510         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7511         initalization.
7512
7513 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7514
7515         Remove support for old Cygwin 1.5 versions.
7516         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7517         function on old Cygwin version.
7518         * windows-nat.c: Remove cygwin version check and always define
7519         __USEWIDE for Cygwin compilation.
7520
7521 2011-04-07  Yao Qi  <yao@codesourcery.com>
7522
7523         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7524         and TO.
7525         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7526         (arm_copy_svc): Remove parameters INSN and TO.
7527         (decode_svc_copro): Update caller.
7528         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7529         from function pointer `copy_svc_os'.
7530
7531 2011-04-07  Yao Qi  <yao@codesourcery.com>
7532
7533         * arm-tdep.c (cleanup_branch): Set a correct return address in
7534         LR for ARM and Thumb.
7535
7536 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7537
7538         Code cleanup.
7539         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7540         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7541         in the function comment, a new note on values compatibility.
7542         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7543         * symtab.h (SYMBOL_HASH_NEXT): New.
7544
7545 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7546
7547         * ppc-linux-nat.c (check_condition): Add len output parameter.
7548         Set it based on the memory region referenced in the condition
7549         expression.  Update all callers.
7550
7551 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7552
7553         Fix crash regression on systems featuring .gdb_index.
7554         * objfiles.c (free_objfile): Move the
7555         forget_cached_source_info_for_objfile call earlier.  Comment it.
7556         Extend the comment for objfile_free_data.
7557
7558 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7559
7560         Fix regression of displaying the debug format.
7561         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7562         subfile.
7563
7564 2011-04-04  Tom Tromey  <tromey@redhat.com>
7565
7566         * cli/cli-interp.c (struct captured_execute_command_args):
7567         Remove.
7568         (do_captured_execute_command): Remove.
7569         (safe_execute_command): Use TRY_CATCH.
7570         * cli/cli-script.c (struct wrapped_read_command_file_args):
7571         Remove.
7572         (wrapped_read_command_file): Remove.
7573         (script_from_file): Use TRY_CATCH.
7574         * exceptions.c (catch_exception): Remove.
7575         * exceptions.h (catch_exception): Remove.
7576         (deprecated_throw_reason): Update comment.
7577         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7578         argument to 'context'.
7579         (mi_execute_command): Use TRY_CATCH.
7580         * remote.c (struct start_remote_args): Remove.
7581         (remote_start_remote): Update; change arguments.
7582         (remote_open_1): Use TRY_CATCH.
7583
7584 2011-04-04  Tom Tromey  <tromey@redhat.com>
7585
7586         * tracepoint.c (scope_info): Update.
7587         * symtab.c (decode_line_spec): Update.
7588         * python/python.c (gdbpy_decode_line): Update.
7589         * linespec.h (decode_line_1): Update.
7590         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7591         (decode_compound, find_method, symtab_from_filename)
7592         (decode_variable): Likewise.
7593         * cli/cli-cmds.c (edit_command): Update.
7594         (list_command): Update.
7595         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7596         argument.
7597         (create_breakpoint): Update.
7598         (until_break_command): Update.
7599         (addr_string_to_sals): Update.
7600         (decode_line_spec_1): Update.
7601
7602 2011-04-04  Tom Tromey  <tromey@redhat.com>
7603
7604         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7605         (do_captured_parse_breakpoint): Remove.
7606         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7607         Use TRY_CATCH directly.
7608
7609 2011-04-04  Tom Tromey  <tromey@redhat.com>
7610
7611         * symtab.h (free_symtab): Remove.
7612         (forget_cached_source_info_for_objfile): Declare.
7613         * symmisc.c (free_symtab): Remove.
7614         * source.c (forget_cached_source_info_for_objfile): New function.
7615         (forget_cached_source_info): Use it.
7616         * objfiles.c (free_objfile): Simplify check before calling
7617         clear_current_source_symtab_and_line.  Call
7618         forget_cached_source_info_for_objfile.
7619
7620 2011-04-04  Tom Tromey  <tromey@redhat.com>
7621
7622         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7623         (new_symtab): Don't set `free_code' on symtab.
7624         (new_linetable): Properly handle size==0.
7625         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7626         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7627         free_func.
7628         * jv-lang.c (struct jv_per_objfile_data): New.
7629         (jv_per_objfile_free): Free the data.
7630         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7631         (get_java_class_symtab): Set the `dict' field on the
7632         jv_per_objfile_data.
7633         (free_class_block): Remove.
7634         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7635         the symtab.
7636
7637 2011-04-04  Tom Tromey  <tromey@redhat.com>
7638
7639         * symfile.c (reread_symbols): Update.
7640         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7641         field.
7642         * objfiles.c (allocate_objfile): Update.
7643         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7644         declare.
7645         * cp-namespace.c (lookup_symbol_file): Don't call
7646         lookup_possible_namespace_symbol.
7647         (initialize_namespace_symtab, get_possible_namespace_block)
7648         (free_namespace_block, cp_check_possible_namespace_symbols)
7649         (check_possible_namespace_symbols_loop)
7650         (check_one_possible_namespace_symbol)
7651         (lookup_possible_namespace_symbol): Remove.
7652         (maintenance_cplus_namespace): Replace with notice.
7653         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7654
7655 2011-04-04  Tom Tromey  <tromey@redhat.com>
7656
7657         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7658         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7659         * symmisc.c (free_symtab): Don't free debugformat.
7660         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7661         (record_debugformat, record_producer): Document.
7662         * buildsym.c (end_symtab): Don't save debugformat and producer
7663         names on obstack.
7664         (end_symtab): Don't free debugformat and producer fields.
7665         (record_debugformat): Don't call xstrdup.
7666         (record_producer): Likewise.
7667
7668 2011-04-04  Tom Tromey  <tromey@redhat.com>
7669
7670         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7671         (source_line_charpos, source_charpos_line): Remove.
7672
7673 2011-04-04  Tom Tromey  <tromey@redhat.com>
7674
7675         * symtab.h (domain_enum): Split in two...
7676         (enum search_domain): New.
7677         (search_symbols): Update.
7678         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7679         redundant declarations.
7680         (search_symbols): Change 'kind' argument to search_domain.
7681         Update.
7682         (print_symbol_info): Likewise.
7683         (symtab_symbol_info): Likewise.
7684         * symfile.h (struct quick_symbol_functions)
7685         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7686         <expand_symtabs_matching>: Likewise.
7687         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7688         (expand_symtabs_matching_via_partial): Update.
7689         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7690         (dw2_expand_symtabs_for_function): Update.
7691         * block.h: Moved anonymous enum...
7692         * defs.h (enum block_enum): ... here.  Now named.
7693
7694 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7695
7696         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7697         * version.in: Bump version to 7.3.50.20110403-cvs.
7698
7699 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7700
7701         * NEWS: Create a new section for the next release branch.
7702         Rename the section of the current branch, now that it has
7703         been cut.
7704
7705 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7706
7707         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7708         for "fpscr" in target description.
7709
7710 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7711
7712         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7713         initialize it.  Delay HASH initialization.  Strip the part after open
7714         parenthesis for languages with qualifiers.  Call do_cleanups.
7715
7716 2011-04-01  Tom Tromey  <tromey@redhat.com>
7717
7718         * utils.c (report_command_stats): Don't print `-' for negative
7719         number.
7720
7721 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7722
7723         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7724         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7725         typedefs.
7726
7727 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7728
7729         * breakpoint.h (bpdisp_text): Add declaration.
7730         * breakpoint.c (bpdisp_text): Make non-static.
7731         * ada-lang.c: #include "mi/mi-common.h".
7732         (print_it_exception): Rewrite to improve GDB/MI output.
7733
7734 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
7735
7736         * arm-tdep.h (struct address_space): Add forward declaration.
7737
7738 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7739
7740         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7741         * arm-tdep.c (arm_override_mode): New global.
7742         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
7743         execution mode heuristics.
7744         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7745         second single-step breakpoint if needed, using
7746         arm_insert_single_step_breakpoint.
7747         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
7748         ARM execution mode, do not call thumb_get_next_pc_raw.
7749         (arm_get_next_pc): Encode execution mode in return value.  Call
7750         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7751         (arm_insert_single_step_breakpoint): New function.
7752         (arm_software_single_step): Call it.
7753         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7754         argument to return execution mode of sigreturn target.
7755         (arm_linux_syscall_next_pc): Use it.
7756         (arm_linux_copy_svc): Update call.
7757         (arm_linux_software_single_step): Call
7758         arm_insert_single_step_breakpoint.
7759
7760 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7761
7762         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7763         the comment.
7764
7765 2011-03-31  Tom Tromey  <tromey@redhat.com>
7766
7767         * varobj.c (update_dynamic_varobj_children): Properly handle
7768         errors from iterator.
7769
7770 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7771
7772         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
7773         struct linkage name twice.
7774
7775 2011-03-31  Tom Tromey  <tromey@redhat.com>
7776
7777         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7778         missing ">" to message.
7779
7780 2011-03-31  Tom Tromey  <tromey@redhat.com>
7781
7782         * varobj.c (instantiate_pretty_printer): Remove duplicate
7783         'return'.
7784
7785 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
7786
7787         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7788         if neither saved value nor register available (e.g. signal frame).
7789
7790 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7791
7792         * macroexp.c (expand): Avoid uninitialized variable
7793         compiler warning.
7794
7795 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7796
7797         * breakpoint.c (break_range_command): Fix typo in comment.
7798
7799 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7800             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7801
7802         Implement support for PowerPC BookE ranged breakpoints.
7803         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7804         * breakpoint.h (struct bp_target_info) <length>: New member
7805         variable.
7806         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7807         instead of struct breakpoint as argument, and also add ASPACE
7808         and BP_ADDR arguments.  Update all callers.
7809         (struct breakpoint_ops) <print_one_detail>: New method.
7810         (struct breakpoint) <addr_string_range_end>: New member variable.
7811         * breakpoint.c (breakpoint_location_address_match): Add function
7812         prototype.
7813         (insert_bp_location): Set bl->target_info.length.
7814         (breakpoint_here_p): Call breakpoint_location_address_match.
7815         (moribund_breakpoint_here_p): Likewise.
7816         (regular_breakpoint_inserted_here_p): Likewise.
7817         (breakpoint_thread_match): Likewise.
7818         (bpstat_stop_status): Likewise.
7819         (bpstat_check_location): Move call to
7820         breakpoint_ops.breakpoint_hit to the top.
7821         (print_one_breakpoint_location): Call
7822         breakpoint_ops.print_one_detail if available.
7823         (breakpoint_address_match_range): New function.
7824         (breakpoint_location_address_match): Likewise.
7825         (breakpoint_locations_match): Compare the length field of the
7826         locations too.
7827         (hw_breakpoint_used_count): Count resources used by all locations
7828         in a breakpoint, and use breakpoint_ops.resources_needed if
7829         available.
7830         (breakpoint_hit_ranged_breakpoint): New function.
7831         (resources_needed_ranged_breakpoint): Likewise.
7832         (print_it_ranged_breakpoint): Likewise.
7833         (print_one_ranged_breakpoint): Likewise.
7834         (print_one_detail_ranged_breakpoint): Likewise.
7835         (print_mention_ranged_breakpoint): Likewise.
7836         (print_recreate_ranged_breakpoint): Likewise.
7837         (ranged_breakpoint_ops): New structure.
7838         (find_breakpoint_range_end): New function.
7839         (break_range_command): Likewise.
7840         (delete_breakpoint): Free addr_string_range_end.
7841         (update_breakpoint_locations): Add SALS_END argument.  Update
7842         all callers.  Calculate breakpoint length if a non-zero SALS_END
7843         is given.  Call breakpoint_locations_match instead of
7844         breakpoint_address_match.
7845         (reset_breakpoint): Find SaL of the end of the range if B is a
7846         ranged breakpoint.
7847         (_initialize_breakpoint): Register break-range command.
7848         * defs.h (print_core_address): Add function prototype.
7849         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7850         function.
7851         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7852         (ppc_linux_remove_hw_breakpoint): Likewise.
7853         (_initialize_ppc_linux_nat): Initialize
7854         to_ranged_break_num_registers.
7855         * target.c (update_current_target): Add comment about
7856         to_ranged_break_num_registers.
7857         (target_ranged_break_num_registers): New function.
7858         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7859         New method.
7860         (target_ranged_break_num_registers): Add function prototype.
7861         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7862         * utils.c (print_core_address): ... here.
7863
7864 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
7865
7866         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7867         variable compiler warning.
7868
7869 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7870
7871         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7872         code from here ...
7873         (re_set_breakpoint): ... to here ...
7874         (addr_string_to_sals): ... and here.
7875
7876 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7877
7878         * Makefile.in (SFILES): Add missing C sources.
7879         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7880         Add missing headers.
7881
7882 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7883
7884         * .gitignore: New file.
7885
7886 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7887
7888         * NEWS: Mention new cfi device simulation.
7889
7890 2011-03-29  Tom Tromey  <tromey@redhat.com>
7891
7892         * dwarf2read.c (fixup_partial_die): Handle linkage name on
7893         otherwise anonymous types.
7894         (dwarf2_name): Likewise.
7895         * valops.c (value_struct_elt_for_reference): Refine artificial
7896         type logic.  Call error if j==-1.
7897
7898 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
7899
7900         Fix false GCC warning.
7901         * infcall.c (find_function_addr): Initialize funaddr.
7902
7903 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7904
7905         Fix mingw compilation with --enable-targets=all.
7906         * remote-mips.c (gdb_usleep.h): Include header.
7907         (mips_enter_debug): Use gdb_usleep instead of sleep.
7908
7909 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7910
7911         Support resolution of STT_GNU_IFUNC via breakpoints.
7912         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7913         bp_gnu_ifunc_resolver_return.
7914         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7915         the loop.  Support bp_gnu_ifunc_resolver and
7916         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
7917         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7918         breakpoints.
7919         (bptype_string, print_one_breakpoint_location): Support
7920         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7921         (user_settable_breakpoint): Return true also for
7922         bp_gnu_ifunc_resolver.
7923         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7924         bp_gnu_ifunc_resolver_return.
7925         (set_breakpoint_location_function): New parameter explicit_loc,
7926         describe it.  Call find_pc_partial_function_gnu_ifunc with new
7927         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7928         EXPLICIT_LOC is not set.
7929         (set_raw_breakpoint): Set EXPLICIT_LOC for
7930         set_breakpoint_location_function.
7931         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7932         set_breakpoint_location_function.
7933         (mention): Support bp_gnu_ifunc_resolver and
7934         bp_gnu_ifunc_resolver_return.
7935         (add_location_to_breakpoint): Set EXPLICIT_LOC for
7936         set_breakpoint_location_function.
7937         (update_breakpoint_locations): Remove static.
7938         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7939         bp_gnu_ifunc_resolver_return.
7940         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7941         bp_gnu_ifunc_resolver_return.
7942         (update_breakpoint_locations): New declaration.
7943         * elfread.c: Include gdbthread.h and regcache.h.
7944         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7945         functions.
7946         (elf_gnu_ifunc_fns): Install them.
7947         * minsyms.c (stub_gnu_ifunc_resolver_stop)
7948         (stub_gnu_ifunc_resolver_return_stop): New functions.
7949         (stub_gnu_ifunc_fns): Install them.
7950         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7951         and gnu_ifunc_resolver_return_stop.
7952         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7953
7954 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7955
7956         STT_GNU_IFUNC reader implementation.
7957         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7958         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7959         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7960         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7961         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7962         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7963         (elf_gnu_ifunc_resolve_addr): New.
7964         (elf_symfile_read): Call elf_rel_plt_read.
7965         (elf_gnu_ifunc_fns): New.
7966         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7967         Install elf_gnu_ifunc_fns.
7968         * infcall.c (find_function_return_type): New function.
7969         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7970         * minsyms.c (stub_gnu_ifunc_resolve_addr)
7971         (stub_gnu_ifunc_resolve_name): New functions.
7972         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7973         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7974         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7975
7976 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7977
7978         Code cleanup for later STT_GNU_IFUNC support.
7979         * infcall.c (find_function_addr): Remove variable code, use explicit
7980         dereferences for it.  Move VALUE_TYPE initialization later.
7981
7982 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7983
7984         GDB find_pc_partial_function support for STT_GNU_IFUNC.
7985         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7986         (clear_pc_function_cache): Clear it.
7987         (find_pc_partial_function): Rename to ...
7988         (find_pc_partial_function_gnu_ifunc): ... this function.  New
7989         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
7990         (find_pc_partial_function): New wrapper for this function.
7991         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7992
7993 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7994
7995         GDB internal type support for STT_GNU_IFUNC.
7996         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7997         (elf_symtab_read): Set mst_text_gnu_ifunc for
7998         BSF_GNU_INDIRECT_FUNCTION.
7999         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8000         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8001         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8002         nodebug_got_plt_symbol.
8003         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8004         (TYPE_GNU_IFUNC): New.
8005         (struct main_type): New field flag_gnu_ifunc.
8006         (struct builtin_type): New field builtin_func_func.
8007         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8008         nodebug_got_plt_symbol.
8009         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8010         (in_gnu_ifunc_stub): New.
8011         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8012         mst_text_gnu_ifunc.
8013         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
8014         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
8015         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8016         in_gnu_ifunc_stub.
8017         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8018         * symtab.c (search_symbols): Likewise.
8019         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8020         and mst_slot_got_plt.
8021         (in_gnu_ifunc_stub): New declaration.
8022
8023 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8024
8025         Support a ring of related breakpoints.
8026         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8027         other functions, add gdb_assert.
8028         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
8029         watchpoint_del_at_next_stop.
8030         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8031         (bpstat_stop_status): Handle ring in related_breakpoint.
8032         (set_raw_breakpoint_without_location): Initialize ring in
8033         related_breakpoint.
8034         (delete_breakpoint): Handle ring in related_breakpoint, use
8035         watchpoint_del_at_next_stop.
8036         (map_breakpoint_numbers): Handle ring in related_breakpoint.
8037
8038 2011-03-28  Tom Tromey  <tromey@redhat.com>
8039
8040         PR symtab/12441:
8041         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8042         with `language_minimal'.
8043
8044 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
8045
8046         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8047         instead of checking for STT_ARM_TFUNC symbol type.
8048
8049 2011-03-25  Tom Tromey  <tromey@redhat.com>
8050
8051         * linespec.c (symbol_found): Restore line-based result for
8052         non-LOC_LABEL symbols.
8053
8054 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8055
8056         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8057         instead of strcmp for comparison.
8058         (tui_source_is_displayed): Likewise.
8059         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8060
8061 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8062
8063         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8064         complaint.
8065         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8066         (find_partial_die_in_comp_unit): Likewise in comment.
8067         (read_attribute_value): Likewise.
8068         (lookup_die_type): Likewise.
8069         (dwarf_form_name): Likewise.
8070         (dump_die_shallow): Likewise.
8071         (follow_die_ref_or_sig): Likewise.
8072
8073 2011-03-24  Tom Tromey  <tromey@redhat.com>
8074
8075         PR breakpoints/11816:
8076         * linespec.c (decode_line_1): Parse `function:label' linespecs.
8077         (decode_compound): Update.
8078         (find_function_symbol): New function.
8079         (decode_dollar): Update.
8080         (decode_label): Add 'function_symbol' parameter.  Handle
8081         function-relative labels.
8082         (decode_variable): Update.
8083         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
8084         not its line.  Set `special_display' and canonical name for
8085         labels.
8086
8087 2011-03-24  Tom Tromey  <tromey@redhat.com>
8088
8089         * linespec.h (struct linespec_result) <special_display>: New
8090         field.
8091         * breakpoint.h (struct breakpoint) <display_canonical>: New
8092         field.
8093         * breakpoint.c (print_breakpoint_location): Respect
8094         display_canonical.
8095         (create_breakpoint_sal): Add 'display_canonical' parameter.
8096         (create_breakpoints_sal): Update.
8097         (create_breakpoint): Update.
8098
8099 2011-03-24  Tom Tromey  <tromey@redhat.com>
8100
8101         * symtab.c (decode_line_spec): Update.
8102         * linespec.c (build_canonical_line_spec): Change type of
8103         'canonical'.
8104         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8105         (find_method, decode_all_digits, decode_dollar, decode_label)
8106         (symbol_found): Likewise.
8107         (init_linespec_result): New function.
8108         * breakpoint.c (struct captured_parse_breakpoint_args)
8109         <canonical_p>: New field, replaces addr_string_p.
8110         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8111         'addr_string'.
8112         (parse_breakpoint_sals): Likewise.
8113         (do_captured_parse_breakpoint): Update.
8114         (create_breakpoint): Use struct linespec_result.
8115         (until_break_command): Update.
8116         (breakpoint_re_set_one): Update.
8117         (decode_line_spec_1): Update.
8118         * linespec.h (struct linespec_result): New.
8119         (init_linespec_result): Declare.
8120
8121 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8122
8123         * regcache.c (regcache_raw_read): If the target didn't supply a
8124         given raw register, mark it as unavailable.
8125
8126 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8127
8128         * breakpoint.c (clear_command): Use filename_cmp
8129         instead of strcmp for comparison.
8130         * buildsym.c (watch_main_source_file_lossage): Likewise.
8131         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8132         checking just for slash.
8133         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8134         strrchr and filename_cmp instead of strcmp for filenames.
8135         (add_old_header_file): Use filename_cmp
8136         instead of strcmp for comparison.
8137         * exec.c (exec_set_section_address): Likewise.
8138         * macrotab.c (macro_lookup_inclusion): Likewise.
8139         (macro_lookup_inclusion): Likewise.
8140         * elfread.c (_initialize_elfread): Likewise.
8141         (elfstab_offset_sections): Likewise.
8142         (elfstab_offset_sections): Use lbasename instead of
8143         strrchr.
8144         * mdebugread.c (parse_partial_symbols): Likewise.
8145         (arse_partial_symbols): Use filename_(n)cmp instead of
8146         str(n)cmp for comparison.
8147         * minsyms.c (lookup_minimal_symbol): Likewise.
8148         * psymtab.c (read_psymtabs_with_filename): Likewise.
8149         * solib.c (solib_read_symbols): Likewise.
8150         (reload_shared_libraries_1): Likewise.
8151         * symmisc.c (maintenance_print_symbols): Likewise.
8152         * symfile.c (separate_debug_file_exists): Likewise.
8153         (reread_symbols): Likewise.
8154         (find_separate_debug_file_by_debuglink): Likewise.
8155         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8156         * source.c (add_path): Likewise.
8157         * symtab.c (filename_seen): Likewise.
8158         (file_matches): Likewise.
8159         (print_symbol_info): Likewise.
8160         (maybe_add_partial_symtab_filename): Likewise.
8161         (make_source_files_completion_list): Likewise.
8162         * xml-syscall.c (init_sysinfo): Likewise.
8163         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8164         IS_DIR_SEPARATOR for checking for trailing path separator.
8165
8166 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8167
8168         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8169         label abort_expression.
8170         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8171         DWARF_VALUE_OPTIMIZED_OUT.
8172
8173 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8174
8175         Code cleanup.
8176         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8177         to linkage_name.  Invert its value.  Update the function comment.
8178         (c_type_print_varspec_suffix): Invert it at the caller.
8179         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8180
8181 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8182
8183         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8184         errors when reading the `stop_pc'.
8185         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8186         get_frame_pc.
8187
8188 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8189
8190         * NEWS: Document gdb.Write stream keyword.
8191
8192 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8193
8194         Revert:
8195         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8196         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8197         (dwarf2_add_field): Fix new_field->accessibility for
8198         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8199
8200 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8201
8202         PR python/12183
8203
8204         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8205         other error classes.  Do not print stack trace.
8206
8207 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8208
8209         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8210         (dwarf2_add_field): Fix new_field->accessibility for
8211         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8212
8213 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8214
8215         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8216         encountering a load via a non-SP register.
8217
8218 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8219
8220         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8221         field in returned unwinder.
8222
8223 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8224
8225         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8226
8227 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8228
8229         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8230         of xmalloc.
8231
8232 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8233
8234         * frame.c (frame_unwind_register): Throw an error if unwinding the
8235         register failed.
8236         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8237         an unwind stop reason.
8238         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8239         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8240         UNWIND_UNAVAILABLE>: New.
8241         * inline-frame.c (inline_frame_unwind): Install
8242         default_frame_unwind_stop_reason.
8243         * frame-unwind.c: Include "exceptions.h".
8244         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8245         (default_frame_unwind_stop_reason): New.
8246         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8247         (default_frame_unwind_stop_reason): Declare.
8248         (struct frame_unwind) <stop_reason>: New function pointer.
8249
8250         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8251         * dwarf2-frame.c: Include exceptions.h.
8252         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8253         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8254         computing the CFA.  If such an error was thrown, set
8255         unavailable_retaddr.
8256         (dwarf2_frame_unwind_stop_reason): New.
8257         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8258         unavailable.
8259         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8260         (dwarf2_signal_frame_unwind): Ditto.
8261
8262         * amd64-tdep.c: Include "exceptions.h".
8263         (struct amd64_frame_cache): New field "base_p".
8264         (amd64_init_frame_cache): Clear it.
8265         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8266         Avoid reading registers with functions that throw if the register
8267         is not necessary to compute the frame base.
8268         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8269         swallowing NOT_AVAILABLE_ERROR.
8270         (amd64_frame_unwind_stop_reason): New.
8271         (amd64_frame_this_id): Don't build a frame id if the frame base
8272         was unavailable.
8273         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8274         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8275         base_p if the frame base was computable.
8276         (amd64_sigtramp_frame_unwind_stop_reason): New.
8277         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8278         frame base was unavailable.
8279         (amd64_sigtramp_frame_unwind): Install
8280         amd64_sigtramp_frame_unwind_stop_reason.
8281         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8282         base_p if the frame base was computable.
8283         (amd64_epilogue_frame_unwind_stop_reason): New.
8284         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8285         frame base was unavailable.
8286         (amd64_epilogue_frame_unwind): Install
8287         amd64_epilogue_frame_unwind_stop_reason.
8288         * i386-tdep.c: Include "exceptions.h".
8289         (struct i386_frame_cache): New field "base_p".
8290         (i386_init_frame_cache): Clear it.
8291         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8292         Avoid reading registers with functions that throw if the register
8293         is not necessary to compute the frame base.
8294         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8295         swallowing NOT_AVAILABLE_ERROR.
8296         (i386_frame_unwind_stop_reason): New.
8297         (i386_frame_this_id): Don't build a frame id if the frame base was
8298         unavailable.
8299         (i386_frame_prev_register): Handle unavailable SP.
8300         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8301         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8302         base_p if the frame base was computable.
8303         (i386_epilogue_frame_unwind_stop_reason): New.
8304         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8305         base was unavailable.
8306         (i386_epilogue_frame_unwind): Install
8307         i386_epilogue_frame_unwind_stop_reason.
8308         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8309         base_p if the frame base was computable.
8310         (i386_sigtramp_frame_unwind_stop_reason): New.
8311         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8312         base was unavailable.
8313         (i386_sigtramp_frame_unwind): Install
8314         i386_sigtramp_frame_unwind_stop_reason.
8315         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8316         type's size, not the register's.
8317         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8318
8319         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8320         default_frame_unwind_stop_reason.
8321         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8322         (alpha_heuristic_frame_unwind): Ditto.
8323         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8324         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8325         * avr-tdep.c (avr_frame_unwind): Ditto.
8326         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8327         Ditto.
8328         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8329         * frv-tdep.c (frv_frame_unwind): Ditto.
8330         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8331         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8332         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8333         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8334         (hppa_stub_frame_unwind): Ditto.
8335         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8336         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8337         (ia64_libunwind_frame_unwind)
8338         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8339         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8340         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8341         * m32c-tdep.c (m32c_unwind): Ditto.
8342         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8343         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8344         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8345         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8346         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8347         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8348         * mep-tdep.c (mep_frame_unwind): Ditto.
8349         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8350         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8351         (mips_stub_frame_unwind): Ditto.
8352         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8353         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8354         * mt-tdep.c (mt_frame_unwind): Ditto.
8355         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8356         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8357         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8358         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8359         (s390_sigtramp_frame_unwind): Ditto.
8360         * score-tdep.c (score_prologue_unwind): Ditto.
8361         * sh-tdep.c (sh_frame_unwind): Ditto.
8362         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8363         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8364         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8365         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8366         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8367         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8368         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8369         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8370         (sparc64obsd_trapframe_unwind): Ditto.
8371         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8372         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8373         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8374         * v850-tdep.c (v850_frame_unwind): Ditto.
8375         * vax-tdep.c (vax_frame_unwind): Ditto.
8376         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8377         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8378         * xtensa-tdep.c (xtensa_unwind): Ditto.
8379
8380 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8381
8382         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8383         there's always a frame.  Use get_frame_pc_if_available instead of
8384         get_frame_pc, and if there's no PC available, don't look up a
8385         symtab.
8386
8387 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8388
8389         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8390         unavailable PC.
8391
8392 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8393
8394         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8395         gracefully.
8396
8397 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8398
8399         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8400         * frame.c (frame_unwind_caller_pc_if_available): New.
8401         * stack.c (frame_info): Handle unavailable PC.
8402
8403 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8404
8405         * frame.c (frame_unwind_pc): Rename to ...
8406         (frame_unwind_pc_if_available): ... this.  New `pc' output
8407         parameter.  Change return type to int.  Gracefully handle
8408         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8409         happened, or 1 otherwise.
8410         (frame_unwind_pc): Reimplement on top of
8411         frame_unwind_pc_if_available.
8412         (get_frame_func): Rename to ...
8413         (get_frame_func_if_available): New `pc' output parameter.  Change
8414         return type to int.  Gracefully handle the PC not being available.
8415         (get_frame_func): Reimplement on top of
8416         get_frame_func_if_available.
8417         (select_frame): Handle the PC being unavailable.
8418         (get_prev_frame): Handle the PC being unavailable.
8419         (get_frame_pc_if_available): New.
8420         (get_frame_address_in_block_if_available): New.
8421         (find_frame_sal): Handle the frame PC not being available.
8422         * frame.h (get_frame_pc_if_available): Declare.
8423         (get_frame_address_in_block_if_available): Declare.
8424         (get_frame_func_if_available): Declare.
8425         * stack.c (print_frame_info): Handle the PC being unavailable.
8426         (find_frame_funname): Ditto.
8427         (print_frame): Handle the PC being unavailable.
8428         (get_frame_language): Ditto.
8429         * blockframe.c (get_frame_block): Ditto.
8430         * macroscope.c (default_macro_scope): Ditto.
8431         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8432
8433 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8434
8435         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8436         NOT_AVAILABLE_ERROR when evaluating the location expression.
8437
8438 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8439
8440         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8441         returning that the register piece is unavailable/optimized out.
8442         (write_pieced_value): Handle get_frame_register_bytes returning
8443         that the register piece is unavailable/optimized out when doing a
8444         read-modify write of a bitfield.
8445         * findvar.c (value_from_register): Handle get_frame_register_bytes
8446         returning that the register piece is unavailable/optimized out.
8447         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8448         and `unavailablep'.  Throw error on bad debug info.  Use
8449         frame_register instead of frame_register_read, to fill in the new
8450         arguments.
8451         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8452         and `unavailablep'.
8453         * valops.c: (value_assign): Adjust, and handle
8454         get_frame_register_bytes failing.
8455         * spu-tdep.c: Include exceptions.h.
8456         (spu_software_single_step): Adjust, and handle
8457         get_frame_register_bytes failing.
8458         (spu_get_longjmp_target): Ditto.
8459         * gdbarch.sh (register_to_value): Change to return int.  New
8460         parameters `optimizedp' and `unavailablep'.
8461         * gdbarch.h, gdbarch.c: Regenerate.
8462         * i386-tdep.c (i386_register_to_value): Adjust to new
8463         gdbarch_register_to_value interface.
8464         * i387-tdep.c (i387_register_to_value): Ditto.
8465         * i387-tdep.h (i387_register_to_value): Ditto.
8466         * alpha-tdep.c (alpha_register_to_value): Ditto.
8467         * ia64-tdep.c (ia64_register_to_value): Ditto.
8468         * m68k-tdep.c (m68k_register_to_value): Ditto.
8469         * mips-tdep.c (mips_register_to_value): Ditto.
8470         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8471
8472 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8473
8474         * findvar.c (value_of_register): Mark the value as unavailable, if
8475         the register is unavailable.
8476         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8477         (frame_register): New `unavailablep' parameter.
8478         (frame_register_read): Update comment.
8479         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8480         Set it if the register is unavailable.  If the register is
8481         unavailable, clear the output buffer.
8482         (frame_register): New `unavailablep' parameter.  Pass it down.
8483         (frame_unwind_register): Adjust.
8484         (put_frame_register): Adjust.
8485         (frame_register_read): Adjust.  Also return false if the register
8486         is not available.
8487         (frame_register_unwind_location): Adjust.
8488         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8489         is unavailable, mark the value accordingly.
8490         * stack.c (frame_info): Handle unavailable registers.
8491
8492 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8493
8494         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8495         simplify, using regcache_cooked_read.
8496
8497 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8498
8499         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8500         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8501         (regcache_raw_read_unsigned, regcache_raw_read_part)
8502         (regcache_cooked_read, regcache_cooked_read_signed)
8503         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8504         (regcache_cooked_read_ftype): Change return to enum
8505         register_status.
8506         * regcache.c: Include exceptions.h
8507         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8508         (do_cooked_read): Change return to enum register_status.  Always
8509         forward to regcache_cooked_read.
8510         (regcache_raw_read): Change return to enum register_status.  If
8511         the register is not REG_VALID, memset the buffer.  Return the
8512         register's status.
8513         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8514         return the register's status.
8515         (regcache_raw_read_unsigned): Ditto.
8516         (regcache_cooked_read): Change return to enum register_status.
8517         Assert that with read-only regcaches, the register's status must
8518         be known.  If the regcache is read-only, and the register is not
8519         REG_VALID, memset the buffer.  Return the register's status.
8520         (regcache_cooked_read_signed): Change return to enum
8521         register_status.  Handle non-REG_VALID registers and return the
8522         register's status.
8523         (regcache_cooked_read_unsigned): Change return to enum
8524         register_status.  Handle non-REG_VALID registers and return the
8525         register's status.
8526         (regcache_xfer_part, regcache_raw_read_part)
8527         (regcache_cooked_read_part): Change return to enum
8528         register_status.  Return the register's status.
8529         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8530         unavailable.
8531         (regcache_dump): Handle unavailable cooked registers.
8532         * frame.c (do_frame_register_read): Adjust interface to match
8533         regcache_cooked_read_ftype.
8534         * gdbarch.sh (pseudo_register_read): Change return to enum
8535         register_status.
8536         * gdbarch.h, gdbarch.c: Regenerate.
8537
8538         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8539         register_status.
8540         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8541         register_status.  If reading a raw register indicates the raw
8542         register is not valid, return the raw register's status,
8543         otherwise, return REG_VALID.
8544         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8545         register_status.  Handle non-REG_VALID raw registers and return
8546         the register's status.
8547         * arm-tdep.c (arm_neon_quad_read)
8548         (arm_pseudo_read): Change return to enum register_status.  Handle
8549         non-REG_VALID raw registers and return the register's status.
8550         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8551         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8552         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8553         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8554         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8555         register_status.
8556         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8557         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8558         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8559         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8560         (m32c_pseudo_register_read): Change return to enum
8561         register_status.  Adjust.
8562         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8563         enum register_status.  Return the register's status.
8564         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8565         register_status.  Return the register's status.
8566         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8567         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8568         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8569         * rs6000-tdep.c (move_ev_register_func): New typedef.
8570         (e500_move_ev_register): Use it.  Change return to enum
8571         register_status.  Return the register's status.
8572         (do_regcache_raw_read): New function.
8573         (do_regcache_raw_write): New function.
8574         (e500_pseudo_register_read): Change return to enum
8575         register_status.  Return the register's status.  Use
8576         do_regcache_raw_read.
8577         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8578         (dfp_pseudo_register_read): Change return to enum register_status.
8579         Return the register's status.
8580         (vsx_pseudo_register_read): Ditto.
8581         (efpr_pseudo_register_read): Ditto.
8582         (rs6000_pseudo_register_read): Ditto.
8583         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8584         register_status.  Return the register's status.
8585         * sh64-tdep.c (pseudo_register_read_portions): New function.
8586         (sh64_pseudo_register_read): Change return to enum
8587         register_status.  Use pseudo_register_read_portions.  Return the
8588         register's status.
8589         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8590         register_status.  Return the register's status.
8591         * sh-tdep.c (pseudo_register_read_portions): New function.
8592         (sh_pseudo_register_read): Change return to enum register_status.
8593         Use pseudo_register_read_portions.  Return the register's status.
8594         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8595         enum register_status.  Return the register's status.
8596         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8597         * spu-tdep.c (spu_pseudo_register_read_spu)
8598         (spu_pseudo_register_read): Ditto.
8599         * xtensa-tdep.c (xtensa_register_read_masked)
8600         (xtensa_pseudo_register_read): Ditto.
8601         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8602
8603 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8604
8605         * python/py-value.c (valpy_getitem): Fix formatting of error function
8606         call.
8607
8608 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8609
8610         ARI fixes: Add missing internationalization markups throughout
8611         C source files.
8612         * darwin-nat-info.c: Ditto.
8613         * record.c: Ditto.
8614         * remote.c: Ditto.
8615         * mi/mi-main.c: Ditto.
8616
8617 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8618
8619         ARI fixes: Add missing internationalization markups throughout
8620         yacc files.
8621         * c-exp.y: Ditto.
8622         * cp-name-parser.y: Ditto.
8623         * f-exp.y: Ditto.
8624         * m2-exp.y: Ditto.
8625         * objc-exp.y: Ditto.
8626         * p-exp.y: Ditto.
8627
8628 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8629
8630         ARI fixes: Messages should have no trailing new lines.
8631         * darwin-nat.c (mach_check_error): Remove trailing new line from
8632         warning function call message.
8633         * record.c (bfdcore_read): Idem for error call.
8634
8635 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8636
8637         * common/signals.c (target_signal_from_host): Add _ markup to error
8638         function call message.
8639         (target_signal_to_host): Add _ markup and remove trailing new line
8640         from warning call message.
8641         (target_signal_from_command): Add _ markup to error function call
8642         message.
8643
8644 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8645
8646         PR python/12149
8647
8648         * python/python.c (gdbpy_write): Accept a stream argument and
8649         operate to the appropriate stream.
8650         (gdbpy_flush): Likewise.
8651         (_initialize_python): Add stream constants.
8652         (finish_python_initialization): Add GdbOutputErrorFile class.
8653
8654 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8655
8656         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8657
8658 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8659
8660         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8661         to store_signed_integer.  Add debug message when relocating CALL
8662         instructions.  Fix formatting of debug message.
8663         * i386-tdep.c (i386_relocate_instruction): Ditto.
8664
8665 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8666
8667         * target.h (struct target_ops): Remove to_lookup_symbol field.
8668         (target_lookup_symbol): Delete macro.
8669         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8670         (update_current_target, setup_target_debug): Remove handling
8671         of to_lookup_symbol target_ops field.
8672         * ada-tasks.c (get_known_tasks_addr): Remove use of
8673         target_lookup_symbol.
8674         * coffread.c (coff_symtab_read): Likewise.
8675         * dbxread.c (read_dbx_symtab): Ditto.
8676
8677 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8678
8679         PR gdb/12116:
8680         * configure.ac: Add getthrds declaration check.
8681         * configure, config.in: Regenerate.
8682         * aix-thread.c (getthrds): Declare only if not already declared
8683         in procinfo.h.  More declaration out of get_signaled_thread to
8684         global scope.
8685
8686 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8687
8688         * python/py-symtab.c: Populate symtab_object_methods,
8689         sal_object_methods.
8690         (stpy_is_valid): New function.
8691         (salpy_is_valid): Ditto.
8692         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8693         (sympy_is_valid): New function.
8694         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8695         (objfpy_is_valid): New function.
8696         * python/py-inferior.c: Populate inferior_object_methods.
8697         (infpy_is_valid): New function.
8698         * python/py-infthread.c: Populate thread_object_methods.
8699         (thpy_is_valid): New function.
8700         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8701         block_iterator_object_methods.  Populate.
8702         (blpy_is_valid): New function.
8703         (blpy_iter_is_valid): Ditto.
8704
8705 2011-03-16  Keith Seitz  <keiths@redhat.com>
8706
8707         * linespec.c (find_methods): Canonicalize NAME before looking
8708         up the symbol.
8709         (name_end): New function.
8710         (keep_name_info): New function.
8711         (decode_line_1): Use keep_name_info.
8712         (decode_compound): Likewise.
8713         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8714         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8715
8716         PR c++/12273
8717         * linespec.c (locate_first_half): Keep overload information, too.
8718         (decode_compound): Use a string to represent break characters
8719         to escape the loop.
8720         If P points to a break character, do not increment it.
8721         For C++ and Java, keep overload information and relevant keywords.
8722         If we cannot find a symbol, search the minimal symbols.
8723
8724         PR c++/11734
8725         * linespec.c (decode_compound): Rename SAVED_ARG to
8726         THE_REAL_SAVED_ARG.
8727         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8728         single-quotes.
8729         Pass a valid block to lookup_symbol.
8730         (lookup_prefix_sym): Likewise.
8731         (find_method): Construct search name based on SYM_CLASS instead
8732         of SAVED_ARG.
8733         * psymtab.c (lookup_partial_symbol): Add language parameter.
8734         (lookup_symbol_aux_psymtabs): Likewise.
8735         Don't assume that the psymtab we found was the right one. Search
8736         for the desired symbol in the symtab to be certain.
8737         (psymtab_search_name): New function.
8738         (lookup_partial_symbol): Use psymtab_search_name.
8739         Add language parameter.
8740         (read_symtabs_for_function): Add language parameter and pass to
8741         lookup_partial_symbol.
8742         (find_symbol_file_from_partial): Likewise.
8743
8744 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8745
8746         PR gdb/12528
8747         * dwarf2read.c (noop_record_line): New function.
8748         (dwarf_decode_lines): Ignore line tables for GCd functions.
8749
8750 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8751
8752         Fix ARI warnings about new lines at the end of messages, which
8753         are unneeded as there is a new line added at the end of the message
8754         automatically.
8755         * darwin-nat.c (darwin_stop_inferior): Ditto.
8756         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8757         * dfp.c (decimal_to_number): Ditto.
8758         * exec.c (print_section_info): Ditto.
8759         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8760         * osdata.c (get_osdata): Ditto.
8761         * record.c (bfdcore_write): Ditto.
8762         * remote-mips.c (mips_readchar): Ditto.
8763         * remote.c (read_ptid): Ditto.
8764         * ser-mingw.c (ser_windows_raw): Ditto.
8765         * tracepoint.c (add_local_symbols): Ditto.
8766         * windows-nat.c (fake_create_process): Ditto.
8767
8768 2011-03-16  Tom Tromey  <tromey@redhat.com>
8769
8770         * tracepoint.c (stop_tracing): Don't declare.
8771         * event-top.c (after_char_processing_hook): Add `(void)'.
8772
8773 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
8774
8775         * NEWS: Add Parameter sub-classing description.
8776
8777 2011-03-16  Kai Tietz  <ktietz@redhat.com>
8778
8779         * MAINTAINERS: Update my e-mail address.
8780
8781 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
8782
8783         * MAINTAINERS: Add myself for write after approval privileges.
8784
8785 2011-03-15  Michael Snyder  <msnyder@vmware.com>
8786
8787         * frame.c (find_frame_sal): Assert sym is not null.
8788
8789         * dbxread.c (process_one_symbol): Assert 'name' is not null.
8790
8791         * objc-lang.c (selectors_info): Check strchr for null result.
8792
8793         * stabsread.c (define_symbol): Guard against bad stabstring input.
8794
8795 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8796
8797         Remove trailing spaces and tabulations from pascal language
8798         support sources.
8799         p-exp.y: Ditto.
8800         p-lang.c: Ditto.
8801         p-lang.h: Ditto.
8802         p-valprint.c: Ditto.
8803
8804 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8805
8806         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8807         than LOW.  Comment it.
8808         (read_partial_die): Call complaint for inappropriate zero LOWPC or
8809         HIGHPC not strictly higher than LOWPC.
8810
8811 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8812
8813         Fix formatting of function declarations returning a pointer in
8814         previous commit.
8815         * varobj.c (varobj_add_child): Ditto.
8816         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8817         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8818
8819 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8820
8821         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8822         for the "generic" vector ABI used with GCC 4.3 and later.
8823         (ppc64_sysv_abi_return_value): Likewise.
8824
8825 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8826
8827         * infcall.c (call_function_by_hand): Function return value is
8828         always a non_lval, even when using struct_return.
8829
8830 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
8831
8832         * printcmd.c (ALL_DISPLAYS_SAFE): New.
8833         (map_display_numbers): New.
8834         (do_delete_display): New.
8835         (undisplay_command): Use map_display_numbers.
8836         (do_enable_disable_display): New.
8837         (enable_disable_display_command): New function.
8838         (enable_display): Delete.
8839         (enable_display_command): New.
8840         (disable_display_command): Reimplement.
8841         (_initialize_printcmd): Adjust "enable display" command to use
8842         `enable_display_command' as callback.
8843
8844 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8845
8846         * NEWS: Add Python breakpoint 'stop' operation.
8847
8848 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8849
8850         * NEWS: Delete duplicate entry. Fix typo.
8851
8852 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8853
8854         Fix ARI warning about function names in first column.
8855         Put prototype declaration on same line as return type.
8856         * objc-exp.y: Ditto.
8857         * p-exp.y: Ditto.
8858         * python/py-stopevent.h: Ditto.
8859         For long function names, split parameters to
8860         allow function name on same line as return type.
8861         * solib-pa64.c: Ditto.
8862         * varobj.c: Ditto.
8863         * varobj.h: Ditto.
8864         For long function declaration, use single line.
8865         * hppa-tdep.h: Ditto.
8866         * inferior.h: Ditto.
8867
8868 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8869
8870         * python/python.h: Declare gdbpy_should_stop and
8871         gdbpy_breakpoint_has_py_cond.
8872         * python/python.c: Add python.h to includes.  Remove python.h from
8873         HAVE_PYTHON definition
8874         (gdbpy_should_stop): New dummy function.
8875         (gdbpy_breakpoint_has_py_cond): New dummy function.
8876         * python/py-breakpoint.c (bppy_init): Rewrite to allow
8877         sub-classing capabilities.
8878         (gdbpy_should_stop): New function.
8879         (gdbpy_breakpoint_has_py_cond): New function.
8880         (local_setattro): New function.
8881         * breakpoint.c (condition_command): Add check for Python 'stop'
8882         operation.
8883         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8884         operation function as part of stop/continue tests.
8885
8886 2011-03-14  Tom Tromey  <tromey@redhat.com>
8887
8888         PR gdb/12576:
8889         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8890         (needs_frame_dwarf_call): Likewise.
8891
8892 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8893
8894         Fix ARI warning about functions without parameters that do not
8895         use (void).
8896         * breakpoint.c (all_tracepoints): Replace () by (void).
8897         * f-exp.y (match_string_literal): Ditto.
8898         (yylex): Ditto.
8899         * m2-exp.y (yylex): Ditto.
8900         * mep-tdep.c (current_me_module): Ditto.
8901         (current_options): Ditto.
8902         (current_cop_data_bus_width): Ditto.
8903         (current_cr_names): Ditto.
8904         (current_cr_is_float): Ditto.
8905         (current_ccr_names): Ditto.
8906         * objc-exp.y (yylex): Ditto.
8907         * p-exp.y (yylex): Ditto.
8908         * remote.c (send_interrupt_sequence): Ditto.
8909         * tracepoint.c (current_trace_status): Ditto.
8910         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8911         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8912
8913 2011-03-11  Michael Snyder  <msnyder@vmware.com>
8914
8915         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8916         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8917         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8918         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8919         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8920
8921         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8922         (delete_async_event_handler): Ditto.
8923
8924         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8925
8926         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8927
8928         * top.c (set_verbose): Assert showcmd was found.
8929
8930 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
8931
8932         * xtensa-tdep.c (warning_once): Correct style issues.
8933
8934 2011-03-11  Yao Qi  <yao@codesourcery.com>
8935
8936         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8937
8938 2011-03-11  Andreas Schwab  <schwab@redhat.com>
8939
8940         * common/aclocal.m4: Remove.
8941
8942 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8943
8944         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8945         (xtensa_write_register, xtensa_read_register): Likewise.
8946         (xtensa_hextochar): Removed.
8947         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8948
8949 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8950
8951         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8952         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
8953         (xtensa_alloc_frame_cache): Add initialization for new fields.
8954         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8955         (warning_once): New function.
8956         (xtensa_insn_kind): New item c0opc_and.
8957         (call0_classify_opcode): Add the case for AND instruction.
8958         (call0_track_op): Change arguments.  New local variable litbase.
8959         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
8960         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8961         in the prologue.
8962         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8963         (call0_analyze_prologue): Update the comments.  Change arguments.
8964         Add the variety of updates to handle extended prologues, which now can
8965         conduct dynamic stack adjustments.
8966         (call0_frame_cache): Likewise.
8967         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8968         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8969
8970 2011-03-10  Michael Snyder  <msnyder@vmware.com>
8971
8972         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8973         (cmd_qtframe): Ditto.
8974         (cmd_qtbuffer): Ditto.
8975         (cmd_bigqtbuffer): Ditto.
8976
8977 2011-03-10  Tom Tromey  <tromey@redhat.com>
8978
8979         * tracepoint.c (trace_actions_command): Update.
8980         * thread.c (thread_apply_command): Update.
8981         * reverse.c (delete_bookmark_command): Update.
8982         (bookmarks_info): Update.
8983         * printcmd.c (undisplay_command): Update.
8984         * memattr.c (mem_enable_command): Update.
8985         (mem_disable_command): Update.
8986         (mem_delete_command): Update.
8987         * inferior.c (detach_inferior_command): Update.
8988         (kill_inferior_command): Update.
8989         (remove_inferior_command): Update.
8990         * cli/cli-utils.h (struct get_number_or_range_state): New.
8991         (init_number_or_range): Declare.
8992         (get_number_or_range): Update.
8993         * cli/cli-utils.c (init_number_or_range): New function.
8994         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
8995         static variables.
8996         (number_is_in_list): Update.
8997         * breakpoint.h (get_tracepoint_by_number): Update.
8998         * breakpoint.c (map_breakpoint_numbers): Update for change to
8999         get_number_or_range.
9000         (find_location_by_number): Use get_number, not
9001         get_number_or_range.
9002         (trace_pass_set_count): New function.
9003         (trace_pass_command): Update for change to get_number_or_range.
9004         Rework loop logic.
9005         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9006         'state' parameter.
9007
9008 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
9009
9010         * python/py-param.c (add_setshow_generic): Add set/show callback
9011         parameters.  Register Python object context.
9012         (get_show_value): New function.
9013         (get_set_value): New function.
9014         (call_doc_function): New function.
9015         (get_doc_string): Move behind get_show_value/get_set_value.
9016
9017 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
9018
9019         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9020
9021 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
9022
9023         * xtensa-tdep.c (xtensa_read_register): Add comment.
9024         (xtensa_write_register): Likewise.
9025         (xtensa_hextochar): Add comment and update to match coding conventions.
9026         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9027         (execute_l32e, execute_s32e, execute_code): Update comments.
9028         (xtensa_exception_handler_t): Update to match coding conventions.
9029         (xtensa_insn_kind): Likewise.
9030
9031 2011-03-09  Michael Snyder  <msnyder@vmware.com>
9032
9033         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9034
9035 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9036
9037         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9038
9039 2011-03-09  Tom Tromey  <tromey@redhat.com>
9040
9041         * thread.c (restore_selected_frame): Handle frame_level == -1.
9042         (make_cleanup_restore_current_thread): Use
9043         get_selected_frame_if_set.
9044         * frame.h (get_selected_frame_if_set): Declare.
9045         * frame.c (get_selected_frame_if_set): New function.
9046
9047 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9048
9049         * cli/cli-cmds.c (shell_escape): Use lbasename.
9050         * coffread.c (coff_start_symtab): Constify parameter.
9051         (complete_symtab): Constify `name' parameter.
9052         (coff_symtab_read): Constify `filestring' local.
9053         (coff_getfilename): Constify return and `result' local.
9054         Use lbasename.
9055         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9056         * linux-fork.c (info_checkpoints_command): Use lbasename.
9057         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9058         * minsyms.c (lookup_minimal_symbol): Use lbasename.
9059         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9060         * procfs.c (procfs_make_note_section): Use lbasename.
9061         * tui/tui-io.c (printable_part): Constity return and parameter.
9062         Use lbasename.
9063         (print_filename): Constify parameters, and local `s'.
9064         (tui_rl_display_match_list): Constify local `temp'.
9065
9066 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9067
9068         Revert:
9069         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9070         Fix DWARF-3+ DW_AT_accessibility default assumption.
9071         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9072         cu->header.version >= 3.
9073
9074 2011-03-09  Yao Qi  <yao@codesourcery.com>
9075
9076         * common/Makefile.in: Remove.
9077         * common/configure: Remove.
9078         * common/configure.ac: Remove.
9079
9080 2011-03-09  Yao Qi  <yao@codesourcery.com>
9081
9082         Revert:
9083         2011-02-11  Yao Qi  <yao@codesourcery.com>
9084
9085         * common/Makefile.in: Add copyright header.
9086
9087         2011-02-11  Yao Qi  <yao@codesourcery.com>
9088
9089         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9090         libcommon.a.
9091         * configure.ac: Add common to sub dir.
9092         * configure: Regenerate.
9093
9094 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9095
9096         * xtensa-tdep.c (call0_ret): New function.
9097         (xtensa_skip_prologue): Speed up analysis.
9098
9099 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9100
9101         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9102         while executing MI command -data-list-changed-registers.
9103
9104 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9105
9106         * xtensa-tdep.c (xtensa_read_register): New function.
9107         (xtensa_write_register): New function.
9108         (xtensa_find_register_by_name): New function.
9109         (xtensa_windowed_frame_cache): Update comments in type description.
9110         (xtensa_frame_cache): Likewise.
9111         (xtensa_window_interrupt_insn): New function.
9112         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9113         (xtensa_insn_kind): Add new instructions.
9114         (rwx_special_register): New function.
9115         (call0_classify_opcode): Add new instructions to the analysis.
9116         (a0_saved, a7_saved, a11_saved): New variables.
9117         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9118         (execute_l32e): New function.
9119         (execute_s32e): New function.
9120         (xtensa_exception_handler_t): New type.
9121         (execute_code): New function.
9122         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9123         analysis for Xtensa Window Exception handlers.
9124
9125 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9126
9127         * xtensa-tdep.c (TX_PS): New.
9128         (windowing_enabled): Update to count for Call0 ABI.
9129         (xtensa_hextochar): New.
9130         (xtensa_init_reggroups): Make algorithm generic.
9131         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9132
9133 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9134
9135         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9136
9137 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9138
9139         * i386-tdep.c (i386_follow_jump): Check return value of
9140         target_read_memory.
9141         (i386_analyze_struct_return): Ditto.
9142         (i386_skip_probe): Ditto.
9143         (i386_match_insn): Ditto.
9144         (i386_skip_noop): Ditto.
9145         (i386_analyze_frame_setup): Ditto.
9146         (i386_analyze_register_saves): Ditto.
9147         (i386_skip_prologue): Ditto.
9148         (i386_skip_main_prologue): Ditto.
9149
9150         * target.c (read_whatever_is_readable): Fix memory leak.
9151
9152         * i386-tdep.c (i386_process_record): Document fall through.
9153
9154 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9155
9156         Fix DWARF-3+ DW_AT_accessibility default assumption.
9157         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9158         cu->header.version >= 3.
9159
9160 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9161
9162         * remote.c (remote_check_symbols): Skip if the target has no
9163         execution.
9164
9165 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9166
9167         * target.c (read_whatever_is_readable): Reformat comment,
9168         with a minor typo fix. Minor reformatting of the code.
9169
9170 2011-03-08  Yao Qi  <yao@codesourcery.com>
9171
9172         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9173         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9174         Use cached result instead of calling displaced_in_arm_mode again.
9175         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9176         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9177         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9178         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9179         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9180         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9181         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9182         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9183         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9184         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9185         (arm_catch_kernel_helper_return): Likewise.
9186         * gdb/arm-tdep.h : Update function declarations.
9187
9188 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9189
9190         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9191
9192         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9193
9194         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9195
9196         * elfread.c (elf_symtab_read): Stop memory leak.
9197
9198         * main.c (captured_main): Fix memory leak.
9199
9200 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9201
9202         * ada-lang.c (compare_names): Call is_name_suffix with string1
9203         instead of string2.
9204
9205 2011-03-07  Tom Tromey  <tromey@redhat.com>
9206
9207         * xcoffread.c (xcoff_sym_fns): Update.
9208         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9209         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9210         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9211         (symbol_file_add_with_addrs_or_offsets): Likewise.
9212         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9213         * somread.c (som_sym_fns): Update.
9214         * psymtab.h (require_partial_symbols): Declare.
9215         * psymtab.c (require_partial_symbols): New function.
9216         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9217         (ALL_OBJFILE_PSYMTABS): Undef.
9218         (ALL_PSYMTABS): Move from psympriv.h.
9219         (lookup_partial_symtab, find_pc_sect_psymtab)
9220         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9221         (find_last_source_symtab_from_partial)
9222         (forget_cached_source_info_partial)
9223         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9224         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9225         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9226         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9227         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9228         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9229         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9230         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9231         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9232         psymtabs.
9233         * mipsread.c (ecoff_sym_fns): Update.
9234         * machoread.c (macho_sym_fns): Update.
9235         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9236         (read_psyms): New function.
9237         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9238         (elf_sym_fns_lazy_psyms): New global.
9239         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9240         dwarf2_build_psymtabs.
9241         * dbxread.c (aout_sym_fns): Update.
9242         * coffread.c (coff_sym_fns): Update.
9243
9244 2011-03-07  Tom Tromey  <tromey@redhat.com>
9245
9246         * infrun.c (print_exited_reason): Include inferior id and pid in
9247         message.
9248
9249 2011-03-07  Tom Tromey  <tromey@redhat.com>
9250
9251         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9252         parameter.
9253         (target_has_execution_1): Update.
9254         (target_has_execution_current): Declare.
9255         (target_has_execution): Call target_has_execution_current.
9256         (default_child_has_execution): Update.
9257         * target.c (default_child_has_execution): Add 'the_ptid'
9258         parameter.
9259         (target_has_execution_1): Likewise.
9260         (target_has_execution_current): New function.
9261         (add_target): Update.
9262         (init_dummy_target): Update.
9263         * remote-m32r-sdi.c (m32r_has_execution): New function.
9264         (init_m32r_ops): Use it.
9265         * record.c (record_core_has_execution): Now static.  Add
9266         'the_ptid' parameter.
9267         * inferior.c (have_live_inferiors): Don't save current thread.
9268         Use target_has_execution_1.
9269
9270 2011-03-07  Yao Qi  <yao@codesourcery.com>
9271
9272         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9273
9274 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9275
9276         * elfread.c (elf_symtab_read): Minor reformatting.
9277
9278 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9279
9280         * objc-lang.c (selectors_info): Minor reformatting.
9281
9282 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9283
9284         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9285
9286 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9287             Michael Snyder  <msnyder@vmware.com>
9288
9289         * ada-valprint.c (ada_val_print_array): Move the declaration of
9290         "byte_order" and "elttype" inside the block where these variables
9291         are actually used.  Remove some special handling for the case
9292         where "elttype" and "eltlen" are null.  Replace by a comment
9293         and a couple of assertion checks.
9294
9295 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9296
9297         * source.c (add_path): Replace semicolon at end of block.
9298         * dwarf2expr.c (execute_stack_op): Ditto.
9299
9300 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9301
9302         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9303         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9304         (bfin-*-*): Likewise.
9305
9306 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9307
9308         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9309         * mdebugread.c (parse_symbol): Ditto.
9310         * parse.c (parse_exp_in_context): Ditto.
9311         * source.c (add_path): Ditto.
9312         * utils.c (gnu_debuglink_crc32): Ditto.
9313         * varobj.c (variable_language): Ditto.
9314
9315         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9316
9317 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9318
9319         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9320
9321         * symfile.c (simple_overlay_update): Check for null return value
9322         from lookup_minimal_symbol.
9323
9324         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9325
9326 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9327
9328         * eval.c (parse_and_eval_address_1): Remove function.
9329         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9330         instead of parse_and_eval_address_1.
9331         * value.h (parse_and_eval_address_1): Remove prototype.
9332
9333 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9334
9335         * remote.c (putpkt_binary): Document that case stmt falls through.
9336
9337 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9338
9339         * breakpointc (print_it_typical): Move NULL check from here...
9340         (print_bp_stop_message): ... to here.
9341
9342 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9343
9344         * breakpoint.c (enable_command): Use break instead of continue,
9345         and fill in a missing break.
9346         (disable_command): Ditto.
9347
9348 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9349
9350         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9351         (terminal_save_ours): Remove misleading comment.
9352         (inflow_inferior_data_cleanup): Free ttystate.
9353         (inflow_inferior_exit): Likewise.
9354         (copy_terminal_info): Copy ttystate.
9355
9356         * serial.c (serial_copy_tty_state): New function.
9357         * serial.h (serial_copy_tty_state): Add prototype.
9358         (struct serial_ops): Add copy_tty_state callback.
9359         * ser-base.c (ser_base_copy_tty_state): New function.
9360         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9361         * ser-go32.c (dos_copy_tty_state): New function.
9362         (dos_ops): Install copy_tty_state callback.
9363         * ser-mingw.c (_initialize_ser_windows): Likewise.
9364         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9365         * ser-unix.c (hardwire_copy_tty_state): New function.
9366         (_initialize_ser_hardwire): Install it.
9367
9368 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9369
9370         * breakpoint.c (create_breakpoint): Add missing break statement.
9371
9372         Reverting this patch:
9373         * infcall.c (call_function_by_hand): Add break statements for lint.
9374
9375         Reverting this patch:
9376         * cli/cli-script.c (script_from_file): Add break for lint.
9377
9378 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9379
9380         * solib.c (reload_shared_libraries_1): Close memory leak.
9381
9382 2011-03-03  Tom Tromey  <tromey@redhat.com>
9383
9384         PR gdb/12538:
9385         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9386         DW_STRING is NULL.
9387
9388 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9389
9390         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9391         fields of struct 'st' to zero.
9392
9393         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9394         sal.pspace before calling set_current_source_symtab_and_line.
9395
9396 2011-03-03  Yao Qi  <yao@codesourcery.com>
9397
9398         * Makefile.in (configure-common): Remove.  Let Makefile
9399         in dir common to rebuild itself.
9400         (common/Makefile): Likewise.
9401
9402 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9403
9404         * utils.c (parse_escape): Add i18n markup in error message.
9405
9406 2011-03-03  Yao Qi  <yao@codesourcery.com>
9407
9408         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9409         ARM_PC_REGNUM.
9410         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9411         (displaced_write_reg, displaced_read_reg): Likewise.
9412         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9413         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9414         (cleanup_branch): Replace magic number 14 and 15 with
9415         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9416
9417 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9418
9419         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9420
9421         * cli/cli-script.c (script_from_file): Add break for lint.
9422
9423         * mdebugread.c (parse_partial_symbols): Fix indent.
9424
9425         * target-descriptions.c (tdesc_gdb_type): No need to call
9426         xstrdup, callee saves a copy.
9427
9428         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9429
9430         * infcall.c (call_function_by_hand): Add break statements for lint.
9431
9432         * utils.c (parse_escape): Escape the escape char.
9433
9434         * python/py-inferior.c (build_inferior_list): Error out if
9435         PyList_Append fails.
9436         (gdbpy_inferiors): Error out if build_inferior_list fails.
9437
9438         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9439         a function call.
9440
9441         * record.c (record_restore): Move printf to before error return.
9442
9443 2011-03-02  Yao Qi  <yao@codesourcery.com>
9444
9445         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9446         is_thumb and insn_size.
9447         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9448         on both ARM and Thumb mode.
9449         (arm_process_displaced_insn): Set is_thumb and insn_size.
9450         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9451         (arm_displaced_step_fixup): Likewise.
9452
9453 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9454
9455         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9456
9457         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9458
9459         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9460
9461         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9462
9463         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9464         with xmalloc.
9465
9466         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9467         which shadows function parameter.
9468
9469         * tracepoint.c (create_tsv_from_upload): Superfluous call
9470         to xstrdup.  Callee already calls xstrdup.
9471
9472         * linespec.c (decode_line_1): Remove unnecessary null check.
9473
9474         * tracepoint.c (scope_info): Fix mem leak, remove underused
9475         variable.
9476
9477         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9478         superfluous null check.
9479
9480         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9481         (value_of_builtin_frame_fp_reg): Ditto.
9482
9483         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9484
9485         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9486         be null.
9487
9488         * linespec.c (decode_line_1): Check for null before dereference.
9489
9490         * reverse.c (record_restore): Move null-check to before pointer
9491         dereference.
9492
9493         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9494
9495         * objc-lang.c (selectors_info): Add explanitory comment.
9496         (classes_info): Ditto.
9497
9498 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9499
9500         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9501         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9502         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9503         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9504         (arm_linux_init_abi): Install it.
9505         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9506         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9507
9508 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9509
9510         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9511         a little bigger, to avoid possibility of an overflow.
9512
9513         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9514         buffers a little bigger, to avoid possibility of an overflow.
9515
9516         * coffread.c (coff_getfilename): Add check to avoid overflow.
9517
9518         * objc-lang.c (selectors_info): Add a small safety margin to
9519         avoid overflow.
9520         (classes_info): Error out on too long REGEXP.
9521
9522         * infrun.c (handle_inferior_event): Remove unused function call.
9523
9524         * fork-child.c (fork_inferior): Remove ifdef'd code and
9525         unused variable.
9526
9527         * linux-thread-db.c (attach_thread): Discard unused value.
9528
9529         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9530
9531         * remote.c (remote_get_noisy_reply): Discard unused value.
9532         (remote_vcont_resume): Ditto.
9533         (remote_stop_ns): Ditto.
9534
9535         * linespec.c (decode_objc): Delete unused variable.
9536
9537         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9538
9539         * dwarf2read.c (add_partial_symbol): Discard unused values.
9540         (read_base_type): Delete unused variable.
9541
9542         * dbxread.c (read_dbx_symtab): Discard unused value.
9543
9544         * eval.c (evaluate_subexp_standard): Delete unused variable,
9545         and discard unused values.
9546
9547         * infcmd.c (_initialize_infcmd): Discard unused values.
9548
9549         * stabsread.c (rs6000_builtin_type): Missing break statement.
9550
9551         * dbxread.c (process_one_symbol): Discard unused value.
9552
9553         * coffread.c (coff_end_symtab): Delete unused variable.
9554
9555         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9556         (dwarf2_add_typedef): Delete unused variable.
9557         (read_namespace): Ditto.
9558         (dwarf_decode_macros): Ditto.
9559
9560         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9561
9562         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9563
9564         * p-valprint.c (pascal_val_print): Discard unused value.
9565
9566         * utils.c (nquery): Call va_end before return;
9567         (yquery): Ditto.
9568         (query): Ditto.
9569
9570         * proc-service.c (ps_plog): Call va_end before return.
9571
9572 2011-02-28  Tom Tromey  <tromey@redhat.com>
9573
9574         * python/python.c (gdbpy_value_cst): New global.
9575         (_initialize_python): Initialize it.
9576         * python/python-internal.h (gdbpy_value_cst): Declare.
9577         * python/py-value.c (convert_value_from_python): Use
9578         gdbpy_value_cst.
9579
9580 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9581
9582         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9583
9584         * breakpoint.c (catch_syscall_completer): Free malloced list.
9585
9586         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9587
9588         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9589         (lval_func_check_synthetic_pointer): Ditto.
9590         (lval_func_free_closure): Fix use-after-free.
9591
9592 2011-02-28  Tom Tromey  <tromey@redhat.com>
9593
9594         * psymtab.c (expand_partial_symbol_tables): Use
9595         ALL_OBJFILE_PSYMTABS.
9596
9597 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9598
9599         * objc-lang.c (selectors_info): Error on too long REGEXP.
9600
9601 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9602
9603         * python/py-param.c (set_parameter_value): Add missing
9604         break statement.
9605
9606         * linux-record.c (record_linux_system_call): Add missing
9607         break statement.
9608
9609 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9610
9611         * breakpoint.c (print_one_breakpoint_location): Remove unused
9612         argument PRINT_ADDRESS_BITS.  Update callers.
9613         (print_one_breakpoint): Likewise.
9614
9615 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9616
9617         * breakpoint.c (wrap_indent_at_field): New function.
9618         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9619         Allocate ui_stream locally instead of using STB argument.
9620         (print_one_breakpoint_location): Update call.
9621         * ui-out.c (ui_out_query_field): New function.
9622         * ui-out.h (ui_out_query_field): Add prototype.
9623
9624 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9625
9626         From Michael Snyder  <msnyder@vmware.com>
9627         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9628
9629 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9630
9631         * objc-lang.c (selectors_info): Prevent string overrun.
9632
9633         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9634         error in strncpy.
9635
9636         * symtab.c (rbreak_command): Move variable 'file_name' to
9637         outer scope.
9638
9639         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9640         param with a local variable of the same name.
9641
9642 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9643
9644         * value.c (value_from_history_ref): New function.
9645         * value.h (value_from_history_ref): Export.
9646         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9647         to parse value history references.
9648         * cli/cli-utils.h (get_number_trailer): Update comment.
9649
9650 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9651
9652         * inferior.c (detach_inferior_command): Use get_number_or_range.
9653         (kill_inferior_command): Ditto.
9654         (remove_inferior_command): Ditto.
9655         (initialize_inferiors): Make command names plural.
9656         Update help strings.
9657
9658 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9659
9660         * darwin-nat-info.c: Fix comment typo.
9661         * dwarf2expr.h: Ditto.
9662         * fbsd-nat.c: Ditto.
9663         * fbsd-nat.h: Ditto.
9664         * frame-unwind.h: Ditto.
9665         * frame.h: Ditto.
9666         * hppa-hpux-tdep.c: Ditto.
9667         * i386-linux-nat.c: Ditto.
9668         * linux-nat.c: Ditto.
9669         * nbsd-nat.c: Ditto.
9670         * nbsd-nat.h: Ditto.
9671         * ppc-linux-tdep.c: Ditto.
9672         * serial.c: Ditto.
9673         * ui-file.h: Ditto.
9674         * tui/tui-winsource.c: Ditto.
9675
9676 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9677
9678         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9679
9680         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9681
9682         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9683         with a local variable of the same name.
9684
9685         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9686         param with a local variable of the same name.
9687         (i387_supply_xsave): Ditto.
9688
9689         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9690         that it does not shadow a function parameter.
9691
9692         * i386-nat.c (i386_length_and_rw_bits): Document that case
9693         statement is meant to fall through.
9694
9695         * expprint.c (dump_subexp_body_standard): Document that case
9696         statement is meant to fall through.
9697
9698         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9699         dead if statement.  Condition can't be false.
9700
9701 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9702
9703         * arm-tdep.c: Fix typos in comments.
9704         * bsd-uthread.c: Ditto.
9705         * completer.c: Ditto.
9706         * corelow.c: Ditto.
9707         * cp-namespace.c: Ditto.
9708         * cp-support.c: Ditto.
9709         * cris-tdep.c: Ditto.
9710         * dbxread.c: Ditto.
9711         * dwarf2read.c: Ditto.
9712         * frame.h: Ditto.
9713         * gdbtypes.h: Ditto.
9714         * inferior.h: Ditto.
9715         * mdebugread.c: Ditto.
9716         * mips-tdep.c: Ditto.
9717         * ppc-linux-nat.c: Ditto.
9718         * ppc-linux-tdep.c: Ditto.
9719         * printcmd.c: Ditto.
9720         * sol-thread.c: Ditto.
9721         * solib-frv.c: Ditto.
9722         * solist.h: Ditto.
9723         * sparc64-tdep.c: Ditto.
9724         * spu-tdep.c: Ditto.
9725         * stabsread.c: Ditto.
9726         * symfile.c: Ditto.
9727         * valops.c: Ditto.
9728         * varobj.c: Ditto.
9729         * vax-nat.c: Ditto.
9730         * python/py-block.c: Ditto.
9731         * python/py-symbol.c: Ditto.
9732         * python/py-symtab.c: Ditto.
9733         * python/py-value.c: Ditto.
9734         * tui/tui-win.c: Ditto.
9735
9736 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9737
9738         * inferior.c (print_inferior): Accept a string instead of an int
9739         for requested_inferiors, and use get_number_or_range to parse it.
9740         (info_inferiors_command): Pass args string to print_inferior.
9741         (initialize_inferiors): Change help string for info inferiors.
9742         * inferior.h (print_inferior): Export prototype change.
9743
9744 2011-02-25  Tom Tromey  <tromey@redhat.com>
9745
9746         * common/ax.def (invalid2): Set to 0x31.
9747
9748 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9749
9750         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9751         L and plongest.
9752         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9753         use L and plongest.
9754         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9755
9756 2011-02-24  Michael Snyder  <msnyder@vmware.com>
9757
9758         * Makefile.in (clean): Make clean should remove generated files
9759         observer.h and observer.inc.
9760
9761 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
9762
9763         Revert the following patch (not approved yet):
9764         2011-02-21  Hui Zhu  <teawater@gmail.com>
9765         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9766         * ax-gdb.c (gen_printf_expr_callback): New function.
9767         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9768         * ax-general.c (ax_memcpy): New function.
9769         (ax_print): Handle "printf".
9770         (ax_reqs): Ditto.
9771         * ax.h (ax_memcpy): Forward declare.
9772         * common/ax.def (invalid2): Removed.
9773         (printf): New entry.
9774         * printcmd.c (printcmd.h): New include.
9775         (string_printf): New function.
9776         (ui_printf): Removed.
9777         (printf_command): Remove static.  Call string_printf.
9778         (eval_command): Call string_printf.
9779         * printcmd.h: New file.
9780         * tracepoint.c (validate_actionline,
9781         encode_actions_1): handle printf_command.
9782
9783 2011-02-23  Tom Tromey  <tromey@redhat.com>
9784
9785         * ax-general.c (ax_pick): Add missing newline.
9786
9787 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9788
9789         * breakpoint.c (breakpoint_1): Change first argument from an int
9790         to a char pointer, so that the function now accepts a list of
9791         breakpoints rather than just one.  Use new function
9792         'number_is_in_list' to implement.
9793         (breakpoints_info): Pass char * instead of int to breakpoint_1.
9794         (watchpoints_info): Ditto.
9795         (tracepoints_info): Ditto.
9796         (maintenance_info_breakpoints): Ditto.
9797         (_initialize_breakpoint): Update help strings to reflect the fact
9798         that these functions can now take more than one argument.
9799         * cli/cli-utils.c (number_is_in_list): New function.
9800         * cli/cli-utils.h (number_is_in_list): Export.
9801
9802 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9803
9804         * memattr.c (mem_enable_command): Use get_number_or_range.
9805         (mem_disable_command): Ditto.
9806         (mem_delete_command): Ditto.
9807         (_initialize_mem): Tweak usage message to reflect multiple
9808         arguments.
9809
9810 2011-02-22  Doug Evans  <dje@google.com>
9811
9812         Add gdb.lookup_global_symbol python function.
9813         * NEWS: Add entry.
9814         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9815         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9816         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9817
9818 2011-02-22  Tom Tromey  <tromey@redhat.com>
9819
9820         * language.c (language_class_name_from_physname): Rename
9821         'curr_language' argument to 'lang'; use in body.
9822
9823 2011-02-22  Michael Snyder  <msnyder@vmware.com>
9824
9825         * cli/cli-utils.c (number_is_in_list): Check for zero return.
9826
9827 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
9828
9829         * frame-unwind.h: Fix comment to mention the this frame, not the
9830         next.
9831
9832 2011-02-22  Tom Tromey  <tromey@redhat.com>
9833
9834         * symfile.c (auto_solib_limit): Remove.
9835         * symfile.h (auto_solib_limit): Remove.
9836
9837 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
9838
9839         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
9840
9841 2011-02-21  Michael Snyder  <msnyder@vmware.com>
9842
9843         * gdbthread.h (print_thread_info): Change prototype.
9844         * thread.c (print_thread_info): Accept char* instead of int for
9845         requested_threads argument.  Use new function number_is_in_list
9846         to determine which threads to list.
9847         (info_threads_command): Pass char* to print_thread_info.
9848         * cli/cli-utils.c (number_is_in_list): New function.
9849         * cli/cli-utils.h (number_is_in_list): Export.
9850         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9851         print_thread_info.
9852         (print_one_inferior): Ditto.
9853         (mi_cmd_list_thread_groups): Ditto.
9854
9855 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9856
9857         * common/Makefile.in (CFLAGS): New.
9858         (COMPILE): Add $(CFLAGS).
9859
9860 2011-02-21  Tom Tromey  <tromey@redhat.com>
9861
9862         * breakpoint.c (catch_syscall_command_1): Fix typo.
9863
9864 2011-02-21  Tom Tromey  <tromey@redhat.com>
9865
9866         * reverse.c: Include cli-utils.h.
9867         * printcmd.c: Include cli-utils.h.
9868         (string_printf): Use skip_spaces.
9869         * cli/cli-utils.h: New file.
9870         * cli/cli-utils.c: New file.
9871         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9872         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9873         * breakpoint.h (get_number, get_number_or_range): Move to
9874         cli-utils.h.
9875         * breakpoint.c: Include cli-utils.h.
9876         (get_number_trailer, get_number, get_number_or_range)
9877         (ep_skip_leading_whitespace): Move to cli-utils.c.
9878         (create_breakpoint_sal, find_condition_and_thread)
9879         (decode_static_tracepoint_spec, watch_command_1)
9880         (watch_maybe_just_location, ep_parse_optional_if_clause)
9881         (catch_fork_command_1, catch_exec_command_1)
9882         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9883         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9884         (SUBDIR_CLI_SRCS): Add cli-utils.c.
9885         (HFILES_NO_SRCDIR): Add cli-utils.h.
9886         (cli-utils.o): New target.
9887
9888 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9889
9890         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9891         before calling discard_all_inferiors.
9892
9893 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9894
9895         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9896         (struct builtin_opencl_type): Remove.
9897         (builtin_opencl_type): Change return type to "struct type **".
9898         (lookup_opencl_vector_type): Update caller.
9899         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9900         (build_opencl_types): Install plain array of "struct type *"
9901         instead of "struct builtin_opencl_type".
9902
9903 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9904             Ulrich Weigand  <uweigand@de.ibm.com>
9905
9906         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9907         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9908         (struct arm_linux_hwbp_cap): New type.
9909         (arm_linux_get_hwbp_cap): New function.
9910         (arm_linux_get_hw_breakpoint_count): Likewise.
9911         (arm_linux_get_hw_watchpoint_count): Likewise.
9912         (arm_linux_can_use_hw_breakpoint): Likewise.
9913         (arm_hwbp_type): New type.
9914         (arm_hwbp_control_t): Likewise.
9915         (struct arm_linux_hw_breakpoint): Likewise.
9916         (struct arm_linux_thread_points): Likewise.
9917         (arm_threads): New global variable.
9918         (arm_linux_find_breakpoints_by_tid): New function.
9919         (arm_hwbp_control_initialize): Likewise.
9920         (arm_hwbp_control_is_enabled): Likewise.
9921         (arm_hwbp_control_disable): Likewise.
9922         (arm_linux_hw_breakpoint_initialize): Likewise.
9923         (arm_linux_get_hwbp_type): Likewise.
9924         (arm_linux_hw_watchpoint_initialize): Likewise.
9925         (arm_linux_hw_breakpoint_equal): Likewise.
9926         (arm_linux_insert_hw_breakpoint1): Likewise.
9927         (arm_linux_remove_hw_breakpoint1): Likewise.
9928         (arm_linux_insert_hw_breakpoint): Likewise.
9929         (arm_linux_remove_hw_breakpoint): Likewise.
9930         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9931         (arm_linux_insert_watchpoint): Likewise.
9932         (arm_linux_remove_watchpoint): Likewise.
9933         (arm_linux_stopped_data_address): Likewise.
9934         (arm_linux_stopped_by_watchpoint): Likewise.
9935         (arm_linux_watchpoint_addr_within_range): Likewise.
9936         (arm_linux_new_thread): Likewise.
9937         (arm_linux_thread_exit): Likewise.
9938         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9939         related target callbacks.  Register arm_linux_new_thread and
9940         arm_linux_thread_exit.
9941         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9942         * arm-tdep.c (arm_pc_is_thumb): Make global.
9943         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9944
9945 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9946
9947         * breakpoint.c (update_watchpoint): Do not attempt to recreate
9948         per-frame locations while within a function epilogue.
9949
9950 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9951
9952         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9953         to GNU coding standards.
9954
9955 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9956
9957         Allow use of mingw native on Windows 95 OS.
9958         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9959         (ser_windows_close): Only call CancelIo if function exists.
9960         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9961         to check for existence of CancelIo function in kernel32 DLL.
9962
9963 2011-02-21  Hui Zhu  <teawater@gmail.com>
9964
9965         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9966         * ax-gdb.c (gen_printf_expr_callback): New function.
9967         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9968         * ax-general.c (ax_memcpy): New function.
9969         (ax_print): Handle "printf".
9970         (ax_reqs): Ditto.
9971         * ax.h (ax_memcpy): Forward declare.
9972         * common/ax.def (invalid2): Removed.
9973         (printf): New entry.
9974         * printcmd.c (printcmd.h): New include.
9975         (string_printf): New function.
9976         (ui_printf): Removed.
9977         (printf_command): Remove static.  Call string_printf.
9978         (eval_command): Call string_printf.
9979         * printcmd.h: New file.
9980         * tracepoint.c (validate_actionline,
9981         encode_actions_1): handle printf_command.
9982
9983 2011-02-19  Michael Snyder  <msnyder@vmware.com>
9984
9985         * reverse.c (delete_one_bookmark): Argument is now bookmark
9986         id rather than pointer to bookmark struct.
9987         (delete_bookmark_command): Use get_number_or_range.
9988         (goto_bookmark_command): Parse with get_number instead of strtoul.
9989         (bookmark_1): New function.  Print info for one bookmark.
9990         (bookmarks_info): Use get_number_or_range and bookmark_1.
9991
9992 2011-02-18  Michael Snyder  <msnyder@vmware.com>
9993
9994         * thread.c (info_threads_command): Re-implement using
9995         get_number_or_range.
9996         (thread_apply_command): Ditto.
9997
9998 2011-02-18  Tom Tromey  <tromey@redhat.com>
9999
10000         * common/ax.def: New file.
10001         * ax.h (enum agent_op): Use ax.def.
10002         * ax-general.c (aop_map): Use ax.def.
10003
10004 2011-02-18  Tom Tromey  <tromey@redhat.com>
10005
10006         * ax-general.c (aop_map): Add pick and rot.
10007         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10008         <DW_OP_rot>: Implement.
10009         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10010         (ax_pick): Declare.
10011         * ax-general.c (ax_pick): New function.
10012
10013 2011-02-18  Tom Tromey  <tromey@redhat.com>
10014
10015         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10016
10017 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10018             Tom Tromey  <tromey@redhat.com>
10019
10020         * cp-support.c (make_symbol_overload_list_namespace): Do not call
10021         make_symbol_overload_list_block with NULL BLOCK.
10022         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10023
10024 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
10025
10026         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10027         * breakpoint.h (get_number_or_range): Declare.
10028         * printcmd.c (ALL_DISPLAYS): Declare.
10029         (delete_display): Reimplement taking a display pointer.
10030         (undisplay_command): Accept a range of displays to delete, using
10031         get_number_or_range.
10032
10033 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10034
10035         * c-valprint.c (c_val_print): Add embedded_offset to address
10036         for arrays of unspecified length.
10037         * p-valprint.c (pascal_val_print): Likewise.
10038
10039 2011-02-18  Yao Qi  <yao@codesourcery.com>
10040
10041         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10042         (arm_process_displaced_insn): .. here. Remove parameter INSN.
10043         (thumb_process_displaced_insn): New.
10044         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10045         call to arm_process_displaced_insn.
10046         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10047
10048 2011-02-17  Tom Tromey  <tromey@redhat.com>
10049
10050         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10051         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10052         compile_dwarf_to_ax.  No longer static.  Call
10053         dwarf2_compile_cfa_to_ax.
10054         (locexpr_tracepoint_var_ref): Update.
10055         (loclist_tracepoint_var_ref): Update.
10056         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10057         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10058         argument; add 'gdbarch' and 'pc'.
10059         (dwarf2_compile_cfa_to_ax): New function.
10060         (dwarf2_frame_cache): Update.
10061
10062 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
10063
10064         * ada-lang.c (ada_type_of_array): Fix the size of the array
10065         in the case of an unconstrained packed array.
10066
10067 2011-02-17  Yao Qi  <yao@codesourcery.com>
10068
10069         * common/Makefile.in: Add more targets for make.
10070
10071 2011-02-16  Tom Tromey  <tromey@redhat.com>
10072
10073         * dwarf2loc.c (unimplemented): Fix typo.
10074
10075 2011-02-16  Tom Tromey  <tromey@redhat.com>
10076
10077         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10078         (compile_dwarf_to_ax) <default>: Use unimplemented.
10079         <DW_OP_deref>: Update.
10080         (disassemble_dwarf_expression): Update.
10081         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10082         (decode_locdesc): Update.
10083         * dwarf2expr.h (dwarf_stack_op_name): Update.
10084
10085 2011-02-16  Tom Tromey  <tromey@redhat.com>
10086
10087         * ax.h (struct aop_map) <name>: Now const.
10088
10089 2011-02-16  Tom Tromey  <tromey@redhat.com>
10090
10091         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10092         than axs_rvalue.
10093
10094 2011-02-16  Yao Qi  <yao@codesourcery.com>
10095
10096         * infrun.c (get_displaced_step_closure_by_addr): New.
10097         * inferior.h: Declare it.
10098         * arm-tdep.c: (arm_pc_is_thumb): Call
10099         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10100         returns non-NULL.
10101
10102 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10103             Jan Kratochvil  <jan.kratochvil@redhat.com>
10104
10105         gdb/
10106         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10107
10108 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10109             Jan Kratochvil  <jan.kratochvil@redhat.com>
10110
10111         * value.c (value_contents_copy_raw): Extend describing comment.
10112         Assert that the destination contents we're overwriting are wholly
10113         available.
10114         (value_contents_copy): Extend describing comment.
10115
10116 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10117             Jan Kratochvil  <jan.kratochvil@redhat.com>
10118
10119         * value.c (value_available_contents_eq): Remove redundant local
10120         variables.  Fix available contents comparision.
10121         * value.h (value_available_contents_eq): Extend describing
10122         comment.
10123
10124 2011-02-16  Yao Qi  <yao@codesourcery.com>
10125
10126         * thread.c (info_threads_command): Add missing i18n markup and remove
10127         trailing newline.
10128
10129 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10130
10131         * breakpoint.c (longjmp_names): New variable.
10132         (struct breakpoint_objfile_data): New type.
10133         (breakpoint_objfile_key): New variable.
10134         (msym_not_found): New variable.
10135         (msym_not_found_p): New predicate.
10136         (get_breakpoint_objfile_data): New function.
10137         (create_overlay_event_breakpoint): Check per-objfile cache for
10138         symbols first.
10139         (create_longjmp_master_breakpoint): Likewise.
10140         (create_std_terminate_master_breakpoint): Likewise.
10141         (create_exception_master_breakpoint): Likewise.
10142         (_initialize_breakpoint): Register per-objfile data key.
10143
10144 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10145
10146         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10147         parameter value.
10148         (create_longjmp_master_breakpoint): Loop over longjmp names.
10149         (create_std_terminate_master_breakpoint): Const-propagate parameter
10150         value.
10151         (update_breakpoints_after_exec): Adjust.
10152         (breakpoint_re_set): Adjust.
10153
10154 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10155
10156         * thread.c (info_threads_command): Process arg as thread id,
10157         or list of thread ids.
10158         (thread_find_command): New command.
10159         (_initialize_thread): Document argument for info threads.
10160         Document 'thread find' command.
10161         * NEWS: Document new command "thread find".
10162
10163 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10164
10165         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10166         * aclocal.m4: Regenerated with aclocal-1.11.1.
10167         * common/configure: Regenerate with autoconf-2.64.
10168
10169 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10170
10171         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10172         bool data type to a size of one byte.
10173
10174 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10175             Jan Kratochvil  <jan.kratochvil@redhat.com>
10176
10177         * target.c (memory_xfer_live_readonly_partial): Document where to
10178         look for interface description.
10179
10180 2011-02-15  Yao Qi  <yao@codesourcery.com>
10181
10182         PR tdep/12352
10183         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10184         order to store PC value on stack instead of text section.
10185
10186 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10187
10188         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10189         the EFP register set size.
10190         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10191         data from the VMX register.
10192         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10193         and write data from/to the VMX register.
10194
10195 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10196
10197         * command.h (enum command_class): New class 'no_set_class', for
10198         "show" commands without a corresponding "set" command.
10199         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10200         * copying.c (_initialize_copying): Ditto for "show copying" and
10201         "show warranty".
10202         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10203         "show version".
10204         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10205         which there is no corresponding "set" command (eg. "show copying").
10206
10207 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10208             Jan Kratochvil  <jan.kratochvil@redhat.com>
10209
10210         * exec.c (section_table_available_memory): Change `len' parameter
10211         type to ULONGEST.
10212         * exec.h (section_table_available_memory): Ditto.
10213         * value.h (read_value_memory): Rename the `offset' parameter to
10214         `embedded_offset'.
10215
10216 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10217             Jan Kratochvil  <jan.kratochvil@redhat.com>
10218
10219         * memrange.c (compare_mem_ranges): Mention sort order in
10220         describing comment.
10221         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10222         * tracepoint.c (traceframe_available_memory): Extend comment to
10223         mention what happens to RESULT when the target does not support
10224         the query.
10225
10226 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10227             Jan Kratochvil  <jan.kratochvil@redhat.com>
10228
10229         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10230         range.
10231
10232 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10233
10234         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10235         No longer handle NULL values.
10236
10237 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10238
10239         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10240         * value.c: Include "exceptions.h".
10241         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10242         generic error.
10243         * cp-abi.c: Include gdb_assert.h.
10244         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10245         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10246         errors.
10247         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10248         parameters.  No longer returns -1 on error.
10249         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10250         `val' parameters.
10251         * cp-valprint.c: Include exceptions.h.
10252         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10253         the baseclass_offset.  Handle unavailable base classes.  Use
10254         val_print_invalid_address.
10255         * p-valprint.c: Include exceptions.h.
10256         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10257         when fetching the baseclass_offset.  No longer expect
10258         baseclass_offset returning -1.  Handle unavailable base classes.
10259         Use val_print_invalid_address.
10260         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10261         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10262         `embedded_offset' and `val' parameters.  Adjust.
10263         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10264         parameter, and change its type to gdb_byte pointer.  Add
10265         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10266         baseclass_offset returning -1.
10267         (value_dynamic_cast): Use value_contents_for_printing rather than
10268         value_contents.  Adjust.
10269         (search_struct_field): No longer expect baseclass_offset returning
10270         -1.
10271         (search_struct_method): If reading memory from the target is
10272         necessary, wrap it in a new value to pass to baseclass_offset.  No
10273         longer expect baseclass_offset returning -1.
10274         (find_method_list): No longer expect baseclass_offset returning
10275         -1.  Use value_contents_for_printing rather than value_contents.
10276         * valprint.c (val_print_invalid_address): New function.
10277         * valprint.h (val_print_invalid_address): Declare.
10278         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10279         and `val' parameters.  No longer expect baseclass_offset returning
10280         -1.  Adjust.
10281         * gnu-v2-abi.c: Include "exceptions.h".
10282         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10283         parameters.  Handle unavailable memory.  Recurse through
10284         gnuv2_baseclass_offset directly, rather than through
10285         baseclass_offset.  No longer returns -1 on not found, instead
10286         throw an error.
10287         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10288         `val' parameters.  Adjust.
10289
10290 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10291
10292         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10293         almost but not quite adjacent.
10294
10295 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10296
10297         * value.h (value_entirely_available): Declare.
10298         * value.c (value_entirely_available): New function.
10299         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10300         real type if the pointer is unavailable.
10301
10302 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10303
10304         * valops.c (value_repeat): Use read_value_memory instead of
10305         read_memory.
10306
10307 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10308
10309         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10310         * value.c (value_contents_copy_raw, value_contents_copy): New
10311         functions.
10312         (value_primitive_field): Use value_contents_copy_raw instead of
10313         memcpy.
10314         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10315         memcpy.
10316         (value_array, value_slice): Ditto.
10317         * valarith.c (value_subscripted_rvalue): Use
10318         value_contents_copy_raw instead of memcpy.
10319
10320 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10321
10322         <unavailable> references.
10323
10324         * valops.c (get_value_at): Use value_from_contents_and_address,
10325         avoiding read_memory.
10326
10327 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10328
10329         * c-valprint.c (c_val_print): Print a string with unavailable
10330         contents as an array.
10331
10332 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10333
10334         * value.h (unpack_bits_as_long): Delete declaration.
10335         (unpack_value_bits_as_long): Declare.
10336         (unpack_value_field_as_long): Declare.
10337         (value_field_bitfield): Declare.
10338         * value.c (unpack_bits_as_long): Rename to...
10339         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10340         value parameters.  Return the extracted result in a new output
10341         parameter.  If the value contents are unavailable, return false,
10342         otherwise return true.
10343         (unpack_value_bits_as_long): New.
10344         (unpack_field_as_long): Rename to...
10345         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10346         Add embedded_offset and value parameters.  Return the extracted
10347         result in a new output parameter. If the value contents are
10348         unavailable, return false, otherwise return true.
10349         (unpack_value_field_as_long): New.
10350         (unpack_field_as_long_1): New.
10351         (unpack_field_as_long): Reimplement as wrapper around
10352         unpack_value_field_as_long_1.
10353         (value_field_bitfield): New function.
10354         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10355         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10356         is unavailable.
10357         * jv-valprint.c (java_print_value_fields): Use
10358         value_field_bitfield.
10359         * p-valprint.c (pascal_object_print_value_fields): Use
10360         value_field_bitfield.
10361         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10362
10363 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10364
10365         * value.c (get_internalvar_integer): Also return the int value of
10366         TYPE_CODE_INT INTERNALVAR_VALUE values.
10367         (set_internalvar): Don't special case TYPE_CODE_INT.
10368
10369 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10370
10371         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10372         INTERNALVAR_POINTER.
10373         <pointer>: Delete.
10374         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10375         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10376         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10377
10378 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10379
10380         * value.h (value_available_contents_eq): Declare.
10381         * value.c (find_first_range_overlap): New function.
10382         (value_available_contents_eq): New function.
10383         * valprint.c (val_print_array_elements): Use
10384         value_available_contents_eq.
10385         * ada-valprint.c (val_print_packed_array_elements): Use
10386         value_available_contents_eq.
10387         * jv-valprint.c (java_value_print): Use
10388         value_available_contents_eq.
10389
10390 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10391
10392         * target.c (target_read_live_memory): New function.
10393         (memory_xfer_live_readonly_partial): New.
10394         (memory_xfer_partial): If reading from a traceframe, fallback to
10395         reading unavailable read-only memory from read-only regions of
10396         live target memory.
10397         * tracepoint.c (disconnect_tracing): Adjust.
10398         (set_current_traceframe): New, factored out from
10399         set_traceframe_number.
10400         (set_traceframe_number): Reimplement to only change the traceframe
10401         number on the GDB side.
10402         (do_restore_current_traceframe_cleanup): Adjust.
10403         (make_cleanup_restore_traceframe_number): New.
10404         (cur_traceframe_number): New global.
10405         (tfile_open): Set cur_traceframe_number to no traceframe.
10406         (set_tfile_traceframe): New function.
10407         (tfile_trace_find): If looking up a traceframe using any method
10408         other than by number, make sure the current tfile traceframe
10409         matches gdb's current traceframe.  Update the current tfile
10410         traceframe if the lookup succeeded.
10411         (tfile_fetch_registers, tfile_xfer_partial)
10412         (tfile_get_trace_state_variable_value): Make sure the remote
10413         traceframe matches gdb's current traceframe.
10414         * remote.c (remote_traceframe_number): New global.
10415         (remote_open_1): Set it to -1.
10416         (set_remote_traceframe): New function.
10417         (remote_fetch_registers, remote_store_registers)
10418         (remote_xfer_memory, remote_xfer_partial)
10419         (remote_get_trace_state_variable_value): Make sure the remote
10420         traceframe matches gdb's current traceframe.
10421         (remote_trace_find): If looking up a traceframe using any method
10422         other than by number, make sure the current remote traceframe
10423         matches gdb's current traceframe.  Update the current remote
10424         traceframe if the lookup succeeded.
10425         * infrun.c (fetch_inferior_event): Adjust.
10426         * tracepoint.h (set_current_traceframe): Declare.
10427         (get_traceframe_number, set_traceframe_number): Add describing
10428         comments.
10429
10430 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10431
10432         Mark pieces of values as unavailable if the corresponding memory
10433         is unavailable.
10434
10435         * valops.c: Include tracepoint.h.
10436         (value_fetch_lazy): Use read_value_memory.
10437         (read_value_memory): New.
10438         * value.h (read_value_memory): Declare.
10439         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10440         * exec.c (section_table_available_memory): New function.
10441         * exec.h (section_table_available_memory): Declare.
10442
10443 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10444
10445         * Makefile.in (SFILES): Add memrange.c.
10446         (HFILES_NO_SRCDIR): Add memrange.h.
10447         (COMMON_OBS): Add memrange.o.
10448         * memrange.c: New file.
10449         * memrange.h: New file.
10450         * tracepoint.c: Include memrange.h.
10451         (struct mem_range): Delete.
10452         (mem_range_s): Delete.
10453         (traceframe_available_memory): New function.
10454         * tracepoint.h (traceframe_available_memory): Declare.
10455
10456 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10457
10458         * target.h (struct traceframe_info): Forward declare.
10459         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10460         (struct target_ops) <to_traceframe_info>: New field.
10461         (target_traceframe_info): New.
10462         * target.c (update_current_target): Inherit and default
10463         to_traceframe_info.
10464         * remote.c (PACKET_qXfer_traceframe_info): New.
10465         (remote_protocol_features): Register qXfer:traceframe-info:read.
10466         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10467         (remote_traceframe_info): New.
10468         (init_remote_ops): Install it.
10469         (_initialize_remote): Install "set/show remote traceframe-info"
10470         commands.
10471         * tracepoint.h (parse_traceframe_info): Declare.
10472         * tracepoint.c (struct mem_range): New.
10473         (mem_range_s): New typedef.
10474         (struct traceframe_info): New.
10475         (traceframe_info): New global.
10476         (free_traceframe_info): New function.
10477         (clear_traceframe_info): New function.
10478         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10479         info.
10480         (build_traceframe_info): New function.
10481         (tfile_traceframe_info): New function.
10482         (init_tfile_ops): Install tfile_traceframe_info.
10483         (traceframe_info_start_memory, free_result): New functions.
10484         (memory_attributes, traceframe_info_elements): New globals.
10485         (parse_traceframe_info, get_traceframe_info): New functions.
10486         * features/traceframe-info.dtd: New file.
10487         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10488
10489 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10490
10491         Base support for <unavailable> value contents.
10492
10493         * value.h (value_bytes_available): Declare.
10494         (mark_value_bytes_unavailable): Declare.
10495         * value.c (struct range): New struct.
10496         (range_s): New typedef.
10497         (ranges_overlap): New function.
10498         (range_lessthan): New function.
10499         (ranges_contain_p): New function.
10500         (struct value) <unavailable>: New field.
10501         (value_bytes_available): New function.
10502         (mark_value_bytes_unavailable): New function.
10503         (require_not_optimized_out): Constify parameter.
10504         (require_available): New function.
10505         (value_contents_all, value_contents): Require all bytes be
10506         available.
10507         (value_free): Free `unavailable'.
10508         (value_copy): Copy `unavailable'.
10509         * valprint.h (val_print_unavailable): Declare.
10510         * valprint.c (valprint_check_validity): Rename `offset' parameter
10511         to `embedded_offset'.  If printing a scalar, check whether the
10512         value chunk is available.
10513         (val_print_unavailable): New.
10514         (val_print_scalar_formatted): Check whether the value is
10515         available.
10516         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10517         pretty-printing unavailable values.
10518
10519 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10520
10521         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10522         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10523         variable param_type, initialize it.  Remove const/volatile qualifiers
10524         for language_cplus and !show_artificial.  Use param_type.
10525
10526 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10527
10528         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10529         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10530         * symtab.h (struct symtab) <next>: Comment extension.
10531
10532 2011-02-12  Yao Qi  <yao@codesourcery.com>
10533
10534         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10535
10536 2011-02-11  Yao Qi  <yao@codesourcery.com>
10537
10538         * common/Makefile.in: Add copyright header.
10539
10540 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10541
10542         * infrun.c (proceed): Move switching out and in of tfind mode from
10543         here ...
10544         (fetch_inferior_event): ... to here.
10545
10546 2011-02-11  Yao Qi  <yao@codesourcery.com>
10547
10548         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10549         libcommon.a.
10550         * configure.ac: Add common to sub dir.
10551         * configure: Regenerate.
10552
10553 2011-02-11  Yao Qi  <yao@codesourcery.com>
10554
10555         Build libcommon.a.
10556
10557         * common/Makefile.in: New.
10558         * common/configure.ac: New.
10559         * common/aclocal.m4: New.
10560         * common/configure: Generate.
10561
10562 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10563
10564         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10565         side of the parenthesis.
10566
10567         Merge from GCC:
10568         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10569         * vec.h (VEC_block_remove): Fix comment.
10570
10571 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10572
10573         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10574
10575 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10576
10577         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10578         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10579         psubd and paddd.
10580
10581 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10582
10583         PR 12361.
10584         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10585         phsubsw.
10586         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10587         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10588
10589 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10590
10591         * dwarf2read.c (read_subroutine_type): Set special calling
10592         convention flag for functions compiled by IBM XL C for OpenCL.
10593         * ppc-sysv-tdep.c: Include "dwarf2.h"
10594         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10595         calling convention.
10596         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10597         IBM OpenCL vector types calling convention.
10598         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10599         (ppc_sysv_abi_broken_return_value): Likewise.
10600         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10601         types calling convention.
10602         (ppc64_sysv_abi_return_value): Likewise.
10603         * spu-tdep.c: Include "dwarf2.h"
10604         (spu_return_value): Implement IBM OpenCL vector types calling
10605         convention.
10606
10607 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10608
10609         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10610         correct ABI for AltiVec vector arguments.
10611
10612 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10613
10614         * valprint.c (val_print): Extend comment.
10615         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10616         interface explanation to val_print.
10617         (ada_val_print_array): Adjust comment to current interface.
10618         (print_field_values): Adjust comment to current interface.
10619         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10620         explanation to val_print.
10621         * f-valprint.c (f_val_print): Ditto.
10622         * jv-valprint.c (java_val_print): Ditto.
10623         * m2-valprint.c (m2_val_print): Ditto.
10624         * p-valprint.c (pascal_val_print): Ditto.
10625
10626 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10627
10628         * breakpoint.c (parse_breakpoint_sals): Fix description.
10629
10630 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10631             Oguz Kayral <oguzkayral@gmail.com>
10632
10633         * python/py-inferior.c (python_on_normal_stop): New function.
10634         (python_on_resume): New function.
10635         (python_inferior_exit): New function.
10636         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10637         inferior_exit observers.
10638         * python/py-evtregistry.c: New file.
10639         * python/py-threadevent.c : New file.
10640         * python/py-event.c: New file.
10641         * python/py-evts.c: New file.
10642         * python/py-continueevent.c: New file.
10643         * python/py-bpevent.c: New file.
10644         * python/py-signalevent.c: New file.
10645         * python/py-exetiedevent.c: New file.
10646         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10647         Move struct breakpoint_object from here...
10648         * python/python-internal.h: ... to here.
10649         * python/py-event.h: New file.
10650         * python/py-events.h: New file.
10651         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10652         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10653         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10654         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10655         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10656         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10657         Add build rules for all the above.
10658
10659 2011-02-04  Tom Tromey  <tromey@redhat.com>
10660
10661         * dwarf2read.c (dwarf2_section_empty_p): New function.
10662         (dwarf2_read_section): Use dwarf2_section_empty_p.
10663         (dwarf2_section_size): New function.
10664         (dwarf2_get_section_info): Unconditionally read section.
10665         (dwarf2_read_index): Use dwarf2_section_empty_p.
10666         (partial_read_comp_unit_head): Use dwarf2_section_size.
10667         (dwarf2_symbol_mark_computed): Likewise.
10668
10669 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10670
10671         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10672
10673 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10674
10675         * mips-linux-tdep.c: Include xml-syscall.h.
10676         (mips_linux_get_syscall_number): New function.
10677         (mips_linux_init_abi): Add calls to
10678         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10679         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10680         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10681         * syscalls/mips-n32-linux.xml: New file.
10682         * syscalls/mips-n64-linux.xml: New file.
10683         * syscalls/mips-o32-linux.xml: New file.
10684
10685 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10686
10687         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10688         Complain about inverted range entries.
10689         (dwarf2_record_block_ranges): Likewise.
10690
10691 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10692
10693         Fix some typos.
10694         * breakpoint.c (update_watchpoint): Fix name of the
10695         update_global_location_list function.
10696         (print_one_breakpoint): Fix typo.
10697         (_initialize_breakpoint): Remove extra space in hbreak help
10698         string.
10699         * breakpoint.h (struct bp_location) <length>: Fix field
10700         description.
10701
10702 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10703
10704         * regcache.c (registers_changed_ptid): Don't explictly always
10705         clear `current_regcache'.  Only clear current_thread_ptid and
10706         current_thread_arch when PTID matches.  Only reinit the frame
10707         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10708         call to ...
10709         (registers_changed): ... here.
10710
10711 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10712
10713         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10714         starts with __stack_chk_guard as stack guard symbol.
10715
10716 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10717
10718         * disasm.c (compare_lines): Handle the end of sequence markers
10719         within the line table to better support disassembling over
10720         compilation unit boundaries.
10721
10722 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10723
10724         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10725         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10726         implementation even if no symbols are available.
10727         (thumb_analyze_prologue): Update call to skip_prologue_function.
10728         (arm_analyze_prologue): Likewise.
10729
10730 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10731
10732         * arm-tdep.c: Include "observer.h".
10733         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10734         (arm_exidx_data_key): New static variable.
10735         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10736         (struct arm_exidx_data): Likewise.
10737         (arm_exidx_data_free): New function.
10738         (arm_compare_exidx_entries): Likewise.
10739         (arm_obj_section_from_vma): Likewise.
10740         (arm_exidx_new_objfile): Likewise.
10741         (arm_find_exidx_entry): Likewise.
10742         (arm_exidx_fill_cache): Likewise.
10743         (arm_exidx_unwind_sniffer): Likewise.
10744         (arm_exidx_unwind): New global variable.
10745         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10746         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10747         observer.  Register arm_exidx_data_key as objfile data.
10748
10749 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10750
10751         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10752         due to accessing uninitialized variable.  Fix indentation.
10753
10754 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10755
10756         * c-valprint.c (c_value_print): When doing virtual base pointer
10757         adjustment, create a new value with adjusted contents rather than
10758         changing the contents of the value being printed (and getting it
10759         wrong).
10760
10761 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10762
10763         * xml-support.c (xml_find_attribute): New.
10764         (xinclude_start_include): Use it.
10765         * xml-support.h (xml_find_attribute): Declare.
10766         * memory-map.c (memory_map_start_memory)
10767         (memory_map_start_property): Use xml_find_attribute.
10768         * osdata.c (osdata_start_osdata, osdata_start_column): Use
10769         xml_find_attribute.
10770         * remote.c (start_thread): Use xml_find_attribute.
10771         * solib-target.c (library_list_start_segment)
10772         (library_list_start_section, library_list_start_library)
10773         (library_list_start_list): Use xml_find_attribute.
10774         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10775         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10776         (tdesc_start_field): Use xml_find_attribute.
10777
10778 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
10779
10780         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10781         (BUILD_OCL_VTYPES): Update.
10782
10783 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
10784
10785         * configure.ac: Work around non-GNU sed limitation when computing
10786         python version number.
10787         * configure: Regenerate.
10788
10789 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10790
10791         Fix debug printing of TYPE_INSTANCE.
10792         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10793         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10794
10795 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10796
10797         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10798         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10799         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10800         * ada-operator.inc: Rename the file to ...
10801         * ada-operator.def: ... here, wrap all the entries by macro OP.
10802         * expprint.c (op_name_standard): Remove all the entries.  Include
10803         "std-operator.def" instead.
10804         * expression.h (enum exp_opcode): Include "std-operator.def" and
10805         "ada-operator.def".  Move all the entries ...
10806         * std-operator.def: ... here, wrap all the entries by macro OP.
10807
10808 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10809
10810         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10811         * breakpoint.c (remove_jit_event_breakpoints): New function.
10812         * jit.c (jit_descriptor_addr): Delete.
10813         (registering_code): Delete.
10814         (clear_int): Delete.
10815         (jit_inferior_data): New variable.
10816         (struct jit_inferior_data): New type.
10817         (get_jit_inferior_data): New function.
10818         (jit_inferior_data_cleanup): New function.
10819         (jit_read_descriptor): Adjust.
10820         (jit_register_code): Adjust.
10821         (jit_breakpoint_re_set_internal): New function; move code here ...
10822         (jit_inferior_init): ... from here.
10823         (jit_breakpoint_re_set): Adjust.
10824         (jit_reset_inferior_data_and_breakpoints): New function.
10825         (jit_inferior_created_observer): Adjust.
10826         (jit_inferior_exit_hook): Adjust.
10827         (jit_executable_changed_observer): New function.
10828         (jit_event_handler): Adjust.
10829         (_initialize_jit): Adjust.
10830
10831 2011-01-31  Michael Snyder  <msnyder@vmware.com>
10832
10833         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10834         line.
10835
10836 2011-01-31  Tom Tromey  <tromey@redhat.com>
10837
10838         PR python/12216:
10839         * python/python.c (execute_gdb_command): Call
10840         prevent_dont_repeat.
10841         * top.c (suppress_dont_repeat): New global.
10842         (dont_repeat): Use it.
10843         (prevent_dont_repeat): New function.
10844         * command.h (prevent_dont_repeat): Declare.
10845
10846 2011-01-31  Tom Tromey  <tromey@redhat.com>
10847
10848         * infcmd.c (finish_backward): Use breakpoint_set_silent.
10849         * python/py-breakpoint.c (bppy_set_silent): Use
10850         breakpoint_set_silent.
10851         (bppy_set_thread): Use breakpoint_set_thread.
10852         (bppy_set_task): Use breakpoint_set_task.
10853         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10854         (breakpoint_set_task): Declare.
10855         (make_breakpoint_silent): Remove.
10856         * breakpoint.c (breakpoint_set_silent): New function.
10857         (breakpoint_set_thread): Likewise.
10858         (breakpoint_set_task): Likewise.
10859         (make_breakpoint_silent): Remove.
10860
10861 2011-01-31  Tom Tromey  <tromey@redhat.com>
10862
10863         * breakpoint.h (user_breakpoint_p): Declare.
10864         * breakpoint.c (user_breakpoint_p): New function.
10865         (breakpoint_1): Use it.
10866         (save_breakpoints): Likewise.
10867
10868 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10869
10870         * configure.ac: Add handling of Python distribution on Windows.
10871         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10872         sysconfig variables are not defined, then do not use them.
10873         On Windows, if LIBPL is not defined, then use prefix + '/libs'
10874         instead.  On Windows, return all paths using forward-slashes
10875         rather than backslashes.
10876
10877 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10878
10879         * configure.ac: Remove fallback behavior for building
10880         against Python.  Remove tweaking of Python include path.
10881         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10882         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
10883         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10884         Always restore CPPFLAGS and LIBS after linking test.
10885         * configure: Regenerated.
10886         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10887         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10888         * python/python-internal.h: Adjust includes of Python .h files.
10889
10890 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10891
10892         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10893         in error message.
10894
10895 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10896
10897         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10898         value test.
10899
10900 2011-01-31  Yao Qi  <yao@codesourcery.com>
10901
10902         * arm-linux-nat.c: Update calls to regcache_register_status
10903         instead of regcache_valid_p.
10904         * aix-thread.c: Likewise.
10905         * i386gnu-nat.c: Likewise.
10906
10907 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10908
10909         Fix crash.
10910         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10911         touching TYPE_FIELD_ARTIFICIAL.
10912
10913 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
10914
10915         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10916         Committers.
10917
10918 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10919
10920         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10921         selected, don't try iterating over the traceframe's blocks.
10922         (tfile_has_stack): If there's no traceframe selected, then there's
10923         no stack.
10924         (tfile_has_registers): If there's no traceframe selected, then
10925         there's no registers.
10926
10927 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10928
10929         * target.c (memory_xfer_partial): No need to restore shadows if we
10930         haven't read anything.
10931
10932 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10933
10934         * mips-tdep.c (mips_print_register): Use get_frame_register_value
10935         and val_print_scalar_formatted.
10936
10937 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
10938
10939         * tracepoint.c (tfile_read): New.
10940         (tfile_open): Use it.
10941         (tfile_get_traceframe_address): Use it.
10942         (tfile_trace_find): Use it.
10943         (walk_blocks_callback_func): New typedef.
10944         (match_blocktype): New function.
10945         (traceframe_walk_blocks): New function.
10946         (traceframe_find_block_type): New function.
10947         (tfile_fetch_registers, tfile_xfer_partial)
10948         (tfile_get_trace_state_variable_value): Use
10949         traceframe_find_block_type and tfile_read.
10950
10951 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
10952
10953         * remote-mips.c: Add internationalization mark ups.  Remove
10954         trailing \n from already marked up strings.
10955
10956 2011-01-26  Tom Tromey  <tromey@redhat.com>
10957
10958         * python/py-prettyprint.c (print_string_repr): Clear
10959         'addressprint' option when calling val_print_string.
10960         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
10961         option when calling val_print_string.
10962
10963 2011-01-26  Tom Tromey  <tromey@redhat.com>
10964
10965         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10966         GDB_PY_LL_ARG.
10967         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10968         macros.
10969         (gdb_py_longest, gdb_py_ulongest): New typedefs.
10970         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10971         (gdb_py_long_as_ulongest): New defines.
10972         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10973         (gdb_py_int_as_long): Declare.
10974         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10975         GDB_PY_LL_ARG, gdb_py_object_from_longest.
10976         (valpy_long): Add comment.
10977         * python/py-utils.c (get_addr_from_python): Use
10978         gdb_py_long_as_ulongest.  Handle overflow properly.
10979         (gdb_py_object_from_longest): New function.
10980         (gdb_py_object_from_ulongest): Likewise.
10981         (gdb_py_int_as_long): Likewise.
10982         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10983         * python/py-symtab.c (salpy_get_pc): Use
10984         gdb_py_long_from_ulongest.
10985         (salpy_get_line): Use PyInt_FromLong.
10986         * python/py-param.c (set_parameter_value): Use
10987         gdb_py_int_as_long.
10988         * python/py-lazy-string.c (stpy_get_address): Use
10989         gdb_py_long_from_ulongest.
10990         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10991         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10992         * python/py-breakpoint.c (bppy_set_thread): Use
10993         gdb_py_int_as_long.
10994         (bppy_set_task): Likewise.
10995         (bppy_set_ignore_count): Likewise.
10996         (bppy_set_hit_count): Likewise.
10997         * python/py-block.c (blpy_get_start): Use
10998         gdb_py_object_from_ulongest.
10999         (blpy_get_end): Likewise.
11000         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11001
11002 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
11003
11004         PR/symtab 11766:
11005         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11006         * gdb/solib.c (solib_read_symbols): Check for addr_low in
11007         equality test for objfile, initialize addr_low if needed.
11008
11009 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11010
11011         * tui/tui-regs.c (tui_register_format): Remove dead code.
11012
11013 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11014
11015         * printcmd.c (print_formatted): Use val_print_scalar_formatted
11016         instead of print_scalar_formatted.
11017         (print_scalar_formatted): Don't handle 's' format strings here,
11018         and add an assertion that we never see such format here.
11019         * valprint.h (val_print_scalar_formatted): Declare.
11020         * valprint.c (val_print_scalar_formatted): New.
11021         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11022         instead of print_scalar_formatted.
11023         * jv-valprint.c (java_val_print): Ditto.
11024         * p-valprint.c (pascal_val_print): Ditto.
11025         * ada-valprint.c (ada_val_print_1): Ditto.
11026         * f-valprint.c (f_val_print): Ditto.
11027         * infcmd.c (registers_info): Ditto.
11028         * m2-valprint.c (m2_val_print): Ditto.
11029
11030 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11031
11032         * m2-valprint.c (print_unbounded_array): Pass
11033         value_contents_for_printing rather than value_contents, to
11034         m2_print_array_contents.  Also pass in the value.
11035
11036 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11037
11038         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11039         (save_gdb_index_command): Switch to .gdb_index version 4.
11040
11041 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11042
11043         * mi/mi-main.c (get_register): Use get_frame_register_value rather
11044         than frame_register, and always pass a valid value to val_print.
11045
11046 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11047
11048         Centralize printing "<optimized out>".
11049
11050         * valprint.h (val_print_optimized_out): Declare.
11051         * cp-valprint.c (cp_print_value_fields): Use
11052         val_print_optimized_out.
11053         * jv-valprint.c (java_print_value_fields): Ditto.
11054         * p-valprint.c (pascal_object_print_value_fields): Ditto.
11055         * printcmd.c (print_formatted): Ditto.
11056         * valprint.c (valprint_check_validity): Ditto.
11057         (value_check_printable): Ditto.
11058         (val_print_optimized_out): New.
11059
11060 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11061
11062         * infcmd.c (default_print_registers_info): Allocate values so to
11063         never pass a NULL value to val_print.
11064
11065 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11066
11067         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11068         boolean.  Make sure to always pass a value that matches the
11069         contents buffer to callees.  Preserve `address' for following
11070         iterations.
11071         * value.c (value_contents_for_printing_const): New.
11072         (value_address): Constify value argument.
11073         * value.h (value_contents_for_printing_const): Declare.
11074         (value_address): Constify value argument.
11075
11076 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11077
11078         * regcache.c (struct regcache_descr): Rename
11079         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11080         and sizeof_cooked_register_valid_p to
11081         sizeof_cooked_register_status.
11082         (init_regcache_descr): Adjust.
11083         (struct regcache): Rename register_valid_p field to
11084         register_status.
11085         (regcache_xmalloc_1, regcache_xfree, regcache_save)
11086         (do_cooked_read): Adjust.
11087         (regcache_valid_p): Rename to ...
11088         (regcache_register_status): ... this.  Adjust.
11089         (regcache_invalidate): Adjust.
11090         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11091         Adjust.
11092         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11093         as unavailable, not valid.
11094         (regcache_dump): Adjust.
11095         * regcache.h (enum register_status): New.
11096         (regcache_register_status): Declare.
11097         (regcache_invalidate): Delete declaration.
11098         * corelow.c (get_core_registers): Adjust.
11099         * tracepoint.c (tfile_fetch_registers): Adjust.
11100         * trad-frame.c (REG_VALUE): Rename to ...
11101         (TF_REG_VALUE): ... this.
11102         (REG_UNKNOWN): Rename to ...
11103         (TF_REG_UNKNOWN): ... this.
11104         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11105         * mi/mi-main.c (register_changed_p): Adjust.
11106
11107 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11108
11109         * regcache.c (struct regcache_descr): Remove outdated comment.
11110         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11111         overallocate hack.
11112         (regcache_xmalloc): Rename to ...
11113         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11114         Allocate the regcache type accordingly.
11115         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11116         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11117         cooked registers, not raw.
11118         (regcache_dup_no_passthrough): Delete.
11119         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11120         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11121         mention obsolete write_register_bytes.
11122         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11123
11124 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11125
11126         Stop remote_read_bytes from handling partial reads itself.
11127
11128         * remote-fileio.c: Include target.h.
11129         (remote_fileio_write_bytes): Delete.
11130         (remote_fileio_func_open, remote_fileio_func_write)
11131         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11132         target_read_memory.
11133         (remote_fileio_func_stat): Use target_read_memory and
11134         target_write_memory.
11135         (remote_fileio_func_gettimeofday): Use target_write_memory.
11136         (remote_fileio_func_system): Use target_read_memory.
11137         * remote.c (remote_write_bytes): Make it static.
11138         (remote_read_bytes): Don't handle partial reads here.
11139         * remote.h (remote_read_bytes): Delete declaration.
11140
11141 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11142
11143         Simplify XML parsing a bit.
11144
11145         * xml-support.h (gdb_xml_parse_quick): Declare.
11146         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11147         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11148         parameter.
11149         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11150         gdb_xml_create_parser_and_cleanup_1.
11151         (gdb_xml_parse_quick): New.
11152         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11153         * osdata.c (osdata_parse): Ditto.
11154         * remote.c (remote_threads_info): Ditto.
11155         * solib-target.c (solib_target_parse_libraries): Ditto.
11156         * xml-syscall.c (syscall_parse_xml): Ditto.
11157         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11158
11159 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11160
11161         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11162         with remote-mips.o added to gdb_target_obs.
11163         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11164
11165 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11166
11167         * ada-valprint.c (val_print_packed_array_elements): Pass the
11168         correct struct value to val_print.
11169         (ada_val_print_1): Ditto.
11170
11171 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11172
11173         Don't lose embedded_offset in printing routines throughout.
11174
11175         * valprint.h (val_print_array_elements): Change prototype.
11176         * valprint.c (val_print_array_elements): Add `embedded_offset'
11177         parameter, and adjust to pass it down to val_print, while passing
11178         `valaddr' or `address' unmodified.  Take embedded_offset into
11179         account when checking repetitions.
11180         * c-valprint.c (c_val_print): Pass embedded_offset to
11181         val_print_array_elements instead of adjusting `valaddr' and
11182         `address'.
11183         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11184         embedded_offset to val_print_array_elements instead of adjusting
11185         `valaddr'.
11186         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11187         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11188         val_print_array_elements and pascal_object_print_value_fields
11189         instead of adjusting `valaddr'.
11190         (pascal_object_print_value_fields): Add `offset' parameter, and
11191         adjust to use it.
11192         (pascal_object_print_value): Add `offset' parameter, and adjust to
11193         use it.
11194         (pascal_object_print_static_field): Use
11195         value_contents_for_printing/value_embedded_offset, rather than
11196         value_contents.
11197         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11198         parameter, and adjust to use it.  Use
11199         value_contents_for_printing/value_embedded_offset, rather than
11200         value_contents.
11201         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11202         (ada_val_print_array): Add `offset' parameter, and adjust to use
11203         it.
11204         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11205         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11206         Instead work with offsets.  Use
11207         value_contents_for_printing/value_embedded_offset, rather than
11208         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11209         and use value_from_pointer to extract a target pointer, rather
11210         than value_from_longest.
11211         (print_variant_part): Add `offset' parameter.  Replace
11212         `outer_valaddr' parameter by a new `outer_offset' parameter.
11213         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11214         (ada_value_print): Use
11215         value_contents_for_printing/value_embedded_offset, rather than
11216         value_contents.
11217         (print_record): Add `offset' parameter, and adjust to pass it
11218         down.
11219         (print_field_values): Add `offset' parameter.  Replace
11220         `outer_valaddr' parameter by a new `outer_offset' parameter.
11221         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11222         Use value_contents_for_printing/value_embedded_offset, rather than
11223         value_contents.
11224         * d-valprint.c (dynamic_array_type): Use
11225         value_contents_for_printing/value_embedded_offset, rather than
11226         value_contents.
11227         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11228         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11229         (java_print_value_fields): Take `offset' into account.  Don't
11230         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11231         (java_val_print): Take `embedded_offset' into account.  Pass it to
11232         java_print_value_fields.
11233         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11234         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11235         down adjusted offsets.
11236         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11237         (f_val_print): Take `embedded_offset' into account.
11238
11239 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11240
11241         * inflow.c: Include "gdbcmd.h".
11242         (interactive_mode): New static global, moved here from top.c.
11243         (show_interactive_mode): New function, moved here from top.c.
11244         use gdb_has_a_terminal instead of input_from_terminal_p to
11245         determine the current mode.
11246         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11247         setting.
11248         (_initialize_inflow): Add the "set/show interactive-mode"
11249         commands.  Moved here from top.c, after having adjusted slightly
11250         the help text.
11251         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11252         to inflow.c.
11253         (input_from_terminal_p): Remove handling of "interactive-mode"
11254         setting, moved to infow.c.
11255         (init_main): Remove creation of the "set/show interactive-mode"
11256         commands, moved to inflow.c.
11257
11258 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11259
11260         * NEWS: Add entry for native ia64-hpux support.
11261
11262 2011-01-19  Tom Tromey  <tromey@redhat.com>
11263
11264         PR mi/8618:
11265         * thread.c (free_thread): Free 'name'.
11266         (print_thread_info): Emit thread name.  Change CLI output.
11267         (thread_name_command): New function.
11268         (do_captured_thread_select): Emit newline.
11269         (_initialize_thread): Register 'thread name' command.
11270         * target.h (struct target_ops) <to_thread_name>: New field.
11271         (target_thread_name): New macro.
11272         * target.c (update_current_target): Handle to_thread_name.
11273         * python/py-infthread.c (thpy_get_name): New function.
11274         (thpy_set_name): Likewise.
11275         (thread_object_getset): Add "name".
11276         * linux-nat.c (linux_nat_thread_name): New function.
11277         (linux_nat_add_target): Set to_thread_name.
11278         * gdbthread.h (struct thread_info) <name>: New field.
11279
11280 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11281
11282         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11283         (ada_val_print_1): Likewise.
11284
11285 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11286
11287         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11288         upper limit address is not greater than the function end address
11289         when the upper limit could not be computed using the debugging
11290         info.
11291
11292 2011-01-17  Tom Tromey  <tromey@redhat.com>
11293
11294         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11295         get_regcomp_error.
11296         * utils.c: Include gdb_regex.h.
11297         (do_regfree_cleanup): New function.
11298         (make_regfree_cleanup): Likewise.
11299         (get_regcomp_error): Likewise.
11300         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11301
11302 2011-01-17  Tom Tromey  <tromey@redhat.com>
11303
11304         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11305         re_compile_fastmap.
11306
11307 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11308
11309         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11310         for internal variables.
11311         (last_was_structop): New static variable.
11312         (COMPLETE): New token.
11313         (field_exp): New rule to group all '.' suffix handling.
11314         Add mark_struct_expression calls when approriate to be able
11315         to correctly find fields for completion.
11316         (yylex): Adapt to handle field completion and set INTVAR when
11317         required.
11318
11319 2011-01-14  Yao Qi  <yao@codesourcery.com>
11320
11321         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11322         save_reggroup, restore_reggroup and all_reggroup.
11323
11324 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11325
11326         * ada-valprint. (ada_printchar): Use the correct type length
11327         in call to ada_emit_char.
11328         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11329
11330 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11331
11332         * solib-som.h (hpux_major_release): Declare variable here.
11333         * solib-som.c:  Remove <sys/utsname.h> header.
11334         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11335         (hpux_major_release): Make global, change default value to
11336         DEFAULT_HPUX_MAJOR_RELEASE.
11337         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11338         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11339         Add "solib-som.h" header.
11340         (set_hpux_major_release): New function.
11341         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11342
11343 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11344
11345         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11346
11347 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11348
11349         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11350         new-line at end of warning message.
11351         (ia64_hpux_store_register): Remove trailing new-line at end of
11352         error message.
11353         * ia64-hpux-tdep.c: Rephrase comment.
11354         * solib-ia64-hpux.c (struct dld_info): Change type of field
11355         dld_flags from "long long" to ULONGEST.
11356
11357 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11358
11359         * target.h (deprecated_child_ops): Delete declaration.
11360         * target.c (deprecated_child_ops): Delete definition.
11361
11362 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11363
11364         * Makefile.in (hpux-thread.o): Delete rule.
11365         * configure.ac: Don't check for HPUX DCE threads support.
11366         * configure, config.in: Regenerate.
11367         * hppa-hpux-nat.c (child_suppress_run): Delete.
11368         (hppa_hpux_child_can_run): Delete.
11369         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11370         * hpux-thread.c: Delete.
11371
11372 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11373
11374         * hpux-thread.c (hpux_pid_to_str): Delete.
11375
11376 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11377
11378         * ada-valprint.c (ada_emit_char): Remove strange code.
11379         Check that c is <= UCHAR_MAX before passing it to isascii.
11380         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11381
11382 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11383
11384         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11385         to the case where instream is stdin.
11386
11387 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11388
11389         * ia64-tdep.h (struct regcache): Forward declare.
11390         (struct ia64_infcall_ops): New struct type.
11391         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11392         and "infcall_ops".
11393         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11394         Renames ia64_find_global_pointer.
11395         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11396         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11397         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11398         methods.
11399         (ia64_infcall_ops): New static global constant.
11400         (ia64_gdbarch_init): Set tdep->infcall_ops.
11401         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11402         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11403         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11404         (ia64_hpux_dummy_code): New static global constant.
11405         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11406         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11407         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11408         New function.
11409         (ia64_hpux_infcall_ops): New static global constant.
11410         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11411         for inferior function calls to work properly on ia64-hpux.
11412
11413 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11414
11415         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11416         * ia64-tdep.h (struct frame_info): forward declaration.
11417         (struct gdbarch_tdep): Add field size_of_register_frame.
11418         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11419         to determine the size of the register frame.
11420         (ia64_size_of_register_frame): New function.
11421         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11422         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11423         (IA64_HPUX_UREG_REASON): New macro.
11424         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11425         New functions.
11426         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11427         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11428         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11429         objects.
11430
11431 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11432
11433         Add support for ia64-hpux.
11434         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11435         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11436
11437         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11438         floatformats.
11439         * configure.tgt: Add handling for ia64-hpux targets.
11440         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11441         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11442         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11443
11444 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11445
11446         [ttrace] Compute thread list immediately after attach.
11447         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11448         New subprogram.
11449         (inf_ttrace_attach): Use it.
11450
11451 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11452
11453         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11454         if we could not determine the frame's function address.  Instead,
11455         use the frame's PC, and then continue.
11456
11457 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11458
11459         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11460         not already defined.
11461
11462 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11463
11464         * ia64-tdep.c (ia64_struct_type_p): New function.
11465         (ia64_extract_return_value): Handle integral values that are
11466         less than 8 bytes long.
11467         (ia64_push_dummy_call): Likewise.
11468
11469 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11470
11471         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11472         floatformat_ia64_ext.
11473         (floatformat_ia64_ext_big): New static const.
11474         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11475
11476 2011-01-12  Tom Tromey  <tromey@redhat.com>
11477
11478         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11479         messages.
11480         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11481         (mi_cmd_thread_list_ids): Likewise.
11482         (mi_cmd_data_list_changed_registers): Likewise.
11483         (mi_cmd_data_list_register_values): Likewise.
11484         (mi_cmd_data_write_register_values): Likewise.
11485         (mi_cmd_data_evaluate_expression): Likewise.
11486         (mi_cmd_data_read_memory): Likewise.
11487         (mi_cmd_data_read_memory_bytes): Likewise.
11488         (mi_cmd_data_write_memory): Likewise.
11489         (mi_cmd_enable_timings): Likewise.
11490         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11491         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11492         (mi_cmd_var_delete): Likewise.
11493         (mi_cmd_var_set_format): Likewise.
11494         (mi_cmd_var_show_format): Likewise.
11495         (mi_cmd_var_info_num_children): Likewise.
11496         (mi_cmd_var_list_children): Likewise.
11497         (mi_cmd_var_info_type): Likewise.
11498         (mi_cmd_var_info_expression): Likewise.
11499         (mi_cmd_var_show_attributes): Likewise.
11500         (mi_cmd_var_assign): Likewise.
11501         (mi_cmd_var_update): Likewise.
11502         (mi_cmd_enable_pretty_printing): Likewise.
11503         (mi_cmd_var_set_update_range): Likewise.
11504         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11505         messages.
11506         (mi_cmd_target_file_put): Likewise.
11507         (mi_cmd_target_file_delete): Likewise.
11508         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11509         messages.
11510         (mi_cmd_stack_info_depth): Likewise.
11511         (mi_cmd_stack_list_locals): Likewise.
11512         (mi_cmd_stack_list_args): Likewise.
11513         (mi_cmd_stack_select_frame): Likewise.
11514         (mi_cmd_stack_select_frame): Likewise.
11515         (mi_cmd_stack_info_frame): Likewise.
11516         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11517         messages.
11518         (mi_cmd_file_list_exec_source_files): Likewise.
11519         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11520         (mi_cmd_env_cd): Likewise.
11521         (mi_cmd_env_path): Likewise.
11522         (mi_cmd_env_dir): Likewise.
11523         (mi_cmd_inferior_tty_show): Likewise.
11524         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11525         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11526         (mi_cmd_break_watch): Likewise.
11527
11528 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11529
11530         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11531         (ppc_linux_insert_hw_breakpoint): Likewise.
11532         (ppc_linux_remove_hw_breakpoint): Likewise.
11533         (ppc_linux_insert_watchpoint): Likewise.
11534
11535 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11536             Jan Kratochvil  <jan.kratochvil@redhat.com>
11537
11538         PR fortran/11104 and DWARF unbound arrays detection.
11539         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11540         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11541         unspecified upper bound.
11542         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11543         variables array_size_array, tmp_type and offset_item.  New variable
11544         array.  Remove call to f77_get_upperbound.  New variables array_type
11545         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11546         the final call to deprecated_set_value_type.
11547
11548 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11549
11550         Make value allocations more lazy.
11551         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11552         instead of allocate_value and set_value_lazy when possible.
11553         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11554         instead of allocate_value and set_value_lazy.
11555         * findvar.c (value_of_register_lazy): Likewise.
11556         (read_var_value): Remove V preallocation, call just check_typedef in
11557         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11558         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11559         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11560         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11561         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11562         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11563         the end, remove set_value_lazy there.
11564         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11565         instead of allocate_value and set_value_lazy when possible.
11566         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11567         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11568         of allocate_value and set_value_lazy.
11569         (value_from_contents_and_address): Use allocate_value_lazy instead of
11570         allocate_value and set_value_lazy when possible.
11571
11572 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11573
11574         * disasm.c (dump_insns): Support dumping opcodes for MI.
11575         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11576         dumping of instruction opcodes.
11577
11578 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11579
11580         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11581         appropiately.
11582
11583 2011-01-11  Tom Tromey  <tromey@redhat.com>
11584
11585         * thread.c (do_captured_thread_select): Emit newline before
11586         printing frame.
11587
11588 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11589
11590         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11591         * score-tdep.c: Ditto.
11592         * score-tdep.h: Ditto.
11593         * ser-base.c: Ditto.
11594         * ser-go32.c: Ditto.
11595         * serial.c: Ditto.
11596         * serial.h: Ditto.
11597         * ser-mingw.c: Ditto.
11598         * ser-pipe.c: Ditto.
11599         * ser-tcp.c: Ditto.
11600         * ser-unix.c: Ditto.
11601         * sh64-tdep.c: Ditto.
11602         * shnbsd-nat.c: Ditto.
11603         * sh-tdep.c: Ditto.
11604         * sh-tdep.h: Ditto.
11605         * solib.c: Ditto.
11606         * solib-darwin.c: Ditto.
11607         * solib-frv.c: Ditto.
11608         * solib.h: Ditto.
11609         * solib-irix.c: Ditto.
11610         * solib-osf.c: Ditto.
11611         * solib-pa64.c: Ditto.
11612         * solib-som.c: Ditto.
11613         * solib-spu.c: Ditto.
11614         * solib-sunos.c: Ditto.
11615         * solib-svr4.c: Ditto.
11616         * solist.h: Ditto.
11617         * sol-thread.c: Ditto.
11618         * somread.c: Ditto.
11619         * source.c: Ditto.
11620         * source.h: Ditto.
11621         * sparc64-linux-tdep.c: Ditto.
11622         * sparc64-tdep.c: Ditto.
11623         * sparc-linux-nat.c: Ditto.
11624         * sparc-linux-tdep.c: Ditto.
11625         * sparc-sol2-nat.c: Ditto.
11626         * sparc-sol2-tdep.c: Ditto.
11627         * sparc-tdep.c: Ditto.
11628         * sparc-tdep.h: Ditto.
11629         * spu-tdep.c: Ditto.
11630         * stabsread.c: Ditto.
11631         * stabsread.h: Ditto.
11632         * stack.c: Ditto.
11633         * symfile.c: Ditto.
11634         * symfile.h: Ditto.
11635         * symmisc.c: Ditto.
11636         * symtab.c: Ditto.
11637         * symtab.h: Ditto.
11638         * target.c: Ditto.
11639         * target-descriptions.c: Ditto.
11640         * target-descriptions.h: Ditto.
11641         * target.h: Ditto.
11642         * target-memory.c: Ditto.
11643         * terminal.h: Ditto.
11644         * thread.c: Ditto.
11645         * top.c: Ditto.
11646         * tracepoint.c: Ditto.
11647         * tracepoint.h: Ditto.
11648         * trad-frame.h: Ditto.
11649         * typeprint.c: Ditto.
11650
11651 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11652
11653         * ui-file.c: Comment cleanup, mostly periods and spaces.
11654         * ui-file.h: Ditto.
11655         * ui-out.c: Ditto.
11656         * ui-out.h: Ditto.
11657         * utils.c: Ditto.
11658         * v850-tdep.c: Ditto.
11659         * valarith.c: Ditto.
11660         * valops.c: Ditto.
11661         * valprint.c: Ditto.
11662         * valprint.h: Ditto.
11663         * value.c: Ditto.
11664         * value.h: Ditto.
11665         * varobj.c: Ditto.
11666         * varobj.h: Ditto.
11667         * vax-tdep.c: Ditto.
11668         * vec.c: Ditto.
11669         * vec.h: Ditto.
11670         * version.h: Ditto.
11671         * windows-nat.c: Ditto.
11672         * windows-tdep.c: Ditto.
11673         * xcoffread.c: Ditto.
11674         * xcoffsolib.c: Ditto.
11675         * xml-support.c: Ditto.
11676         * xstormy16-tdep.c: Ditto.
11677         * xtensa-tdep.c: Ditto.
11678         * xtensa-tdep.h: Ditto.
11679
11680 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11681
11682         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11683         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11684
11685 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11686             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11687
11688         Implement support for PowerPC BookE ranged watchpoints.
11689         * breakpoint.h
11690         (struct breakpoint_ops) <resources_needed>: New method.
11691         Initialize to NULL in all existing breakpoint_ops instances.
11692         (struct breakpoint) <exact>: New field.
11693         (target_exact_watchpoints): Declare external global.
11694         * breakpoint.c (target_exact_watchpoints): New global flag.
11695         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11696         b->enable_state to bp_enabled before calling
11697         hw_watchpoint_used_count.
11698         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11699         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11700         if available.
11701         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11702         if the watchpoint is exact.
11703         (resources_needed_watchpoint): New function.
11704         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11705         (watch_command_1): Set b->exact if the user asked for an exact
11706         watchpoint and one can be set.
11707         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11708         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11709         the user asks for an exact watchpoint and one can be set.  Return
11710         number of needed debug registers to watch the expression.
11711         * gdbtypes.c (is_scalar_type): New function, based on
11712         valprint.c:scalar_type_p.
11713         (is_scalar_type_recursive): New function.
11714         * gdbtypes.h (is_scalar_type_recursive): Declare.
11715         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11716         handle regions when ranged watchpoints are available.
11717         (create_watchpoint_request): New function.
11718         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11719         create_watchpoint_request.
11720         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11721         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11722         `set powerpc' and `show powerpc' commands.
11723         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11724         Mention documentation comment in the target macro.
11725         (target_region_ok_for_hw_watchpoint): Document return value.
11726
11727 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11728
11729         * breakpoint.c (update_watchpoint): Decide on using a software or
11730         hardware watchpoint after the bp_locations are created.
11731
11732 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11733
11734         Convert hardware watchpoints to use breakpoint_ops.
11735         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11736         <insert_location>: ... this.  Return int instead of void.
11737         Accept pointer to struct bp_location instead of pointer to
11738         struct breakpoint.  Adapt all implementations.
11739         (breakpoint_ops) <remove>: Rename to...
11740         <remove_location>: ... this.  Accept pointer to struct bp_location
11741         instead of pointer to struct breakpoint.  Adapt all implementations.
11742         * breakpoint.c (insert_catchpoint): Delete function.
11743         (insert_bp_location): Call the watchpoint or catchpoint's
11744         breakpoint_ops.insert method.
11745         (remove_breakpoint_1): Call the watchpoint or catchpoint's
11746         breakpoint_ops.remove method.
11747         (insert_watchpoint, remove_watchpoint): New functions.
11748         (watchpoint_breakpoint_ops): New structure.
11749         (watch_command_1): Initialize the OPS field.
11750         * inf-child.c (inf_child_insert_fork_catchpoint)
11751         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11752         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11753         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11754         Delete functions.
11755         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11756         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11757         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11758         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11759         * target.c (update_current_target): Change default implementation of
11760         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11761         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11762         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11763         to_set_syscall_catchpoint to return_one.
11764         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11765         (debug_to_insert_exec_catchpoint): Report return value.
11766         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11767         (to_insert_exec_catchpoint): Change declaration to return int instead
11768         of void.
11769
11770 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11771
11772         * arm-tdep.c: Internationalization.
11773         * c-lang.c: Ditto.
11774         * charset.c: Ditto.
11775         * fork-child.c: Ditto.
11776         * nto-procfs.c: Ditto.
11777         * ppc-sysv-tdep.c: Ditto.
11778         * procfs.c: Ditto.
11779         * remote-mips.c: Ditto.
11780         * remote.c: Ditto.
11781         * rs6000-nat.c: Ditto.
11782         * rs6000-tdep.c: Ditto.
11783         * target.c: Ditto.
11784         * valops.c: Ditto.
11785         * value.c: Ditto.
11786         * xml-support.c: Ditto.
11787         * mi/mi-cmd-break.c: Ditto.
11788         * mi/mi-cmd-var.c: Ditto.
11789         * mi/mi-interp.c: Ditto.
11790         * mi/mi-main.c: Ditto.
11791
11792 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
11793
11794         * remote-sim.c (gdbsim_store_register): Update API to
11795         sim_store_register to check more error conditions.
11796
11797 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11798
11799         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11800         * nto-tdep.c: Ditto.
11801         * nto-tdep.h: Ditto.
11802         * objc-exp.y: Ditto.
11803         * objc-lang.c: Ditto.
11804         * objfiles.c: Ditto.
11805         * objfiles.h: Ditto.
11806         * observer.c: Ditto.
11807         * opencl-lang.c: Ditto.
11808         * osabi.c: Ditto.
11809         * parse.c: Ditto.
11810         * parser-defs.h: Ditto.
11811         * p-exp.y: Ditto.
11812         * p-lang.c: Ditto.
11813         * posix-hdep.c: Ditto.
11814         * ppcbug-rom.c: Ditto.
11815         * ppc-linux-nat.c: Ditto.
11816         * ppc-linux-tdep.c: Ditto.
11817         * ppc-linux-tdep.h: Ditto.
11818         * ppcnbsd-tdep.c: Ditto.
11819         * ppcobsd-tdep.c: Ditto.
11820         * ppcobsd-tdep.h: Ditto.
11821         * ppc-sysv-tdep.c: Ditto.
11822         * ppc-tdep.h: Ditto.
11823         * printcmd.c: Ditto.
11824         * proc-abi.c: Ditto.
11825         * proc-flags.c: Ditto.
11826         * procfs.c: Ditto.
11827         * proc-utils.h: Ditto.
11828         * progspace.h: Ditto.
11829         * prologue-value.c: Ditto.
11830         * prologue-value.h: Ditto.
11831         * psympriv.h: Ditto.
11832         * psymtab.c: Ditto.
11833         * p-typeprint.c: Ditto.
11834         * p-valprint.c: Ditto.
11835         * ravenscar-sparc-thread.c: Ditto.
11836         * ravenscar-thread.c: Ditto.
11837         * ravenscar-thread.h: Ditto.
11838         * record.c: Ditto.
11839         * regcache.c: Ditto.
11840         * regcache.h: Ditto.
11841         * remote.c: Ditto.
11842         * remote-fileio.c: Ditto.
11843         * remote-fileio.h: Ditto.
11844         * remote.h: Ditto.
11845         * remote-m32r-sdi.c: Ditto.
11846         * remote-mips.c: Ditto.
11847         * remote-sim.c: Ditto.
11848         * rs6000-aix-tdep.c: Ditto.
11849         * rs6000-nat.c: Ditto.
11850         * rs6000-tdep.c: Ditto.
11851
11852 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11853
11854         * charset.c (validate): Internationalization.
11855         * coffread.c (read_one_sym): Ditto.
11856         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11857         * h8300-tdep.c (H8300_extract_return_value): Ditto.
11858         * inflow.c (new_tty): Ditto.
11859         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11860         * m32c-tdep.c (m32c_return_value): Ditto.
11861         * mep-tdep.c (mep_store_return_value): Ditto.
11862         * score-tdep.c (score7_fetch_insn): Ditto.
11863         * ser-mingw.c (pipe_windows_open): Ditto.
11864         * sh64-tdep.c (sh64_extract_return_value): Ditto.
11865         * spu-tdep.c (spu_register_type): Ditto.
11866         * tracepoint.c (trace_find_command): Ditto.
11867         * valarith.c (value_pos): Ditto.
11868
11869 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
11870
11871         * ada-valprint.c (printstr): Minor comment reformatting.
11872
11873 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11874
11875         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11876         markup.
11877
11878 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11879
11880         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11881         * hppa-hpux-tdep.c: Ditto.
11882         * hppa-linux-nat.c: Ditto.
11883         * hppa-linux-tdep.c: Ditto.
11884         * hppanbsd-tdep.c: Ditto.
11885         * hppa-tdep.c: Ditto.
11886         * hppa-tdep.h: Ditto.
11887         * hpux-thread.c: Ditto.
11888         * i386-cygwin-tdep.c: Ditto.
11889         * i386-darwin-nat.c: Ditto.
11890         * i386gnu-nat.c: Ditto.
11891         * i386-linux-nat.c: Ditto.
11892         * i386-linux-tdep.c: Ditto.
11893         * i386-nat.c: Ditto.
11894         * i386-nat.h: Ditto.
11895         * i386nbsd-tdep.c: Ditto.
11896         * i386-sol2-nat.c: Ditto.
11897         * i386-stub.c: Ditto.
11898         * i386-tdep.c: Ditto.
11899         * i386-tdep.h: Ditto.
11900         * i387-tdep.c: Ditto.
11901         * ia64-linux-nat.c: Ditto.
11902         * ia64-linux-tdep.c: Ditto.
11903         * ia64-tdep.c: Ditto.
11904         * infcall.c: Ditto.
11905         * infcall.h: Ditto.
11906         * infcmd.c: Ditto.
11907         * inferior.c: Ditto.
11908         * inferior.h: Ditto.
11909         * infloop.c: Ditto.
11910         * inflow.c: Ditto.
11911         * infrun.c: Ditto.
11912         * interps.c: Ditto.
11913         * interps.h: Ditto.
11914         * iq2000-tdep.c: Ditto.
11915         * irix5-nat.c: Ditto.
11916         * jit.c: Ditto.
11917         * jit.h: Ditto.
11918         * jv-exp.y: Ditto.
11919         * jv-lang.c: Ditto.
11920         * jv-lang.h: Ditto.
11921         * jv-typeprint.c: Ditto.
11922         * jv-valprint.c: Ditto.
11923         * language.c: Ditto.
11924         * language.h: Ditto.
11925         * linespec.c: Ditto.
11926         * linux-fork.c: Ditto.
11927         * linux-nat.c: Ditto.
11928         * linux-thread-db.c: Ditto.
11929         * lm32-tdep.c: Ditto.
11930
11931 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11932
11933         * m2-exp.y: Comment cleanup, mostly periods and spaces.
11934         * m2-lang.c: Ditto.
11935         * m2-typeprint.c: Ditto.
11936         * m2-valprint.c: Ditto.
11937         * m32c-tdep.c: Ditto.
11938         * m32r-linux-nat.c: Ditto.
11939         * m32r-rom.c: Ditto.
11940         * m32r-tdep.c: Ditto.
11941         * m32r-tdep.h: Ditto.
11942         * m68hc11-tdep.c: Ditto.
11943         * m58klinux-nat.c: Ditto.
11944         * m68k-tdep.c: Ditto.
11945         * m88k-tdep.c: Ditto.
11946         * m88k-tdep.h: Ditto.
11947         * machoread.c: Ditto.
11948         * macrocmd.c: Ditto.
11949         * macroexp.c: Ditto.
11950         * macrotab.c: Ditto.
11951         * main.c: Ditto.
11952         * maint.c: Ditto.
11953         * mdebugread.c: Ditto.
11954         * mdebugread.h: Ditto.
11955         * memattr.c: Ditto.
11956         * memattr.h: Ditto.
11957         * memory-map.h: Ditto.
11958         * mep-tdep.c: Ditto.
11959         * microblaze-rom.c: Ditto.
11960         * microblaze-tdep.c: Ditto.
11961         * minsyms.c: Ditto.
11962         * mips-irix-tdep.c: Ditto.
11963         * mips-linux-nat.c: Ditto.
11964         * mips-linux-tdep.c: Ditto.
11965         * mips-linux-tdep.h: Ditto.
11966         * mipsnbsd-nat.c: Ditto.
11967         * mipsnbsd-tdep.c: Ditto.
11968         * mipsread.c: Ditto.
11969         * mips-tdep.c: Ditto.
11970         * mips-tdep.h: Ditto.
11971         * mn10300-linux-tdep.c: Ditto.
11972         * mn10300-tdep.c: Ditto.
11973         * mn10300-tdep.h: Ditto.
11974         * monitor.c: Ditto.
11975         * monitor.h: Ditto.
11976         * moxie-tdep.c: Ditto.
11977         * moxie-tdep.h: Ditto.
11978         * mt-tdep.c: Ditto.
11979
11980 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
11981
11982         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11983
11984 2011-01-08  Robert Millan  <rmh@gnu.org>
11985
11986         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11987
11988 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11989
11990         * charset.c (_initialize_charset): Fix typo in string.
11991
11992 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11993
11994         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11995         for i18n.
11996         * tui/tui-layout.c (tui_set_layout_for_display_command):
11997         Split line so that operator goes to beginning of line.
11998         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11999         assignment out of if statement.
12000
12001 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12002
12003         * ada-lang.c: Comment cleanup, mostly periods and spaces.
12004         * ada-lang.h: Ditto.
12005         * ada-tasks.c: Ditto.
12006         * ada-valprint.c: Ditto.
12007         * aix-threads.c: Ditto.
12008         * alpha-linux-nat.c: Ditto.
12009         * alpha-linux-tdep.c: Ditto.
12010         * alpha-mdebug-tdep.c: Ditto.
12011         * alpha-nat.c: Ditto.
12012         * alpha-osf1-tdep.c: Ditto.
12013         * alpha-tdep.c: Ditto.
12014         * alphabsd-nat.c: Ditto.
12015         * alphabsd-tdep.c: Ditto.
12016         * amd64-darwin-tdep.c: Ditto.
12017         * amd64-linux-nat.c: Ditto.
12018         * amd64-linux-tdep.c: Ditto.
12019         * amd64-sol2-tdep.c: Ditto.
12020         * amd64-tdep.c: Ditto.
12021         * amd64-fbsd-tdep.c: Ditto.
12022         * amd64-nbsd-tdep.c: Ditto.
12023         * amd64-obsd-tdep.c: Ditto.
12024         * amd64-linux-nat.c: Ditto.
12025         * amd64-linux-tdep.c: Ditto.
12026         * arm-tdep.c: Ditto.
12027         * arm-tdep.h: Ditto.
12028         * armnbsd-nat.c: Ditto.
12029         * avr-tdep.c: Ditto.
12030         * bfin-tdep.c: Ditto.
12031         * bsd-kvm.c: Ditto.
12032         * c-typeprintc: Ditto.
12033         * c-valprint.c: Ditto.
12034         * coff-pe-read.h: Ditto.
12035         * coffreead.c: Ditto.
12036         * cris-tdep.c: Ditto.
12037         * d-lang.c: Ditto.
12038         * darwin-nat-info.c: Ditto.
12039         * darwin-nat.c: Ditto.
12040         * dbug-rom.c: Ditto.
12041         * dbxread.c: Ditto.
12042         * dcache.c: Ditto.
12043         * dcache.h: Ditto.
12044         * dec-thread.c: Ditto.
12045         * defs.h: Ditto.
12046         * demangle.c: Ditto.
12047         * dicos-tdep.c: Ditto.
12048         * dictionary.c: Ditto.
12049         * dictionary.h: Ditto.
12050         * dink32-rom.c: Ditto.
12051         * disasm.c: Ditto.
12052         * doublest.c: Ditto.
12053         * dsrec.c: Ditto.
12054         * dummy-frame.c: Ditto.
12055         * dwarf2-frame.c: Ditto.
12056         * dwarf2expr.c: Ditto.
12057         * dwarf2loc.c: Ditto.
12058         * dwarf2read.c: Ditto.
12059         * elfread.c: Ditto.
12060         * environ.c: Ditto.
12061         * eval.c: Ditto.
12062         * event-top.h: Ditto.
12063         * exceptions.c: Ditto.
12064         * exceptions.h: Ditto.
12065         * exec.c: Ditto.
12066         * expprint.c: Ditto.
12067         * expression.h: Ditto.
12068         * f-exp.y: Ditto.
12069         * f-lang.c: Ditto.
12070         * f-lang.h: Ditto.
12071         * f-typeprint.c: Ditto.
12072         * f-valprint.c: Ditto.
12073         * fbsd-nat.c: Ditto.
12074         * findvar.c: Ditto.
12075         * fork-child.c: Ditto.
12076         * frame.c: Ditto.
12077         * frame.h: Ditto.
12078         * frv-linux-tdep.c: Ditto.
12079         * frv-tdep.c: Ditto.
12080         * gcore.c: Ditto.
12081         * gdb-stabs.h: Ditto.
12082         * gdb_assert.h: Ditto.
12083         * gdb_string.h: Ditto.
12084         * gdb_thread_db.h: Ditto.
12085         * gdb_wait.h: Ditto.
12086         * gdbarch.sh: Ditto.
12087         * gdbcore.h: Ditto.
12088         * gdbthread.h: Ditto.
12089         * gdbtypes.c: Ditto.
12090         * gdbtypes.h: Ditto.
12091         * gnu-nat.c: Ditto.
12092         * gnu-nat.h: Ditto.
12093         * gnu-v2-abi.c: Ditto.
12094         * gnu-v3-abi.c: Ditto.
12095         * go32-nat.c: Ditto.
12096         * gdbarch.c: Regenerate.
12097         * gdbarch.h: Regenerate.
12098
12099 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12100
12101         * ax-gdb.c: Adjust some long output strings.
12102         * breakpoint.c: Ditto.
12103         * charset.c: Ditto.
12104         * cp-abi.c: Ditto.
12105         * infcall.c: Ditto.
12106         * infrun.c: Ditto.
12107         * linux-nat.c: Ditto.
12108         * solib-pa64.c: Ditto.
12109         * solib-som.c: Ditto.
12110
12111 2011-01-06  Tom Tromey  <tromey@redhat.com>
12112
12113         PR python/12367:
12114         * NEWS: Add item.
12115         * python/python.c (GdbMethods): Add "newest_frame" method.
12116         * python/python-internal.h (gdbpy_newest_frame): Declare.
12117         * python/py-frame.c (gdbpy_newest_frame): New function.
12118
12119 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12120
12121         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12122         * jit.c (jit_debug): New variable.
12123         (show_jit_debug): New function.
12124         (struct target_buffer): Use ULONGEST.
12125         (bfd_open_from_target_memory): Likewise.
12126         (jit_register_code, jit_inferior_init): Add debug output.
12127         (_initialize_jit): Register "debug jit" command.
12128
12129 2011-01-06  Tom Tromey  <tromey@redhat.com>
12130
12131         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12132         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12133         and ARCH_FRAME.
12134
12135 2011-01-06  Tom Tromey  <tromey@redhat.com>
12136
12137         * python/py-frame.c (frapy_block): Use get_frame_block.
12138
12139 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12140
12141         Do not stop on SIGPRIO signals by default
12142         * infrun.c (_initialize_infrun): Unset signal_stop and
12143         signal_print for TARGET_SIGNAL_PRIO.
12144
12145 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12146
12147         * ada-tasks.c: Fix style violation in comment.
12148
12149 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12150
12151         * linespec.c (decode_compound, find_method): Remove trailing \n
12152         at end of error string.
12153         * solib-irix.c (irix_current_sos): Likewise.
12154         * varobj.c (uninstall_variable): Likewise.
12155
12156 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12157
12158         * copyright.py: New script.
12159         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12160         Launch emacs without exec'ing. Call copyright.py afterwards.
12161
12162 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12163
12164         * addrmap.c: Shorten lines of >= 80 columns.
12165         * arch-utils.c: Ditto.
12166         * arch-utils.h: Ditto.
12167         * ax-gdb.c: Ditto.
12168         * ax-general.c: Ditto.
12169         * bcache.c: Ditto.
12170         * blockframe.c: Ditto.
12171         * breakpoint.c: Ditto.
12172         * buildsym.c: Ditto.
12173         * c-lang.c: Ditto.
12174         * c-typeprint.c: Ditto.
12175         * charset.c: Ditto.
12176         * coffread.c: Ditto.
12177         * command.h: Ditto.
12178         * corelow.c: Ditto.
12179         * cp-abi.c: Ditto.
12180         * cp-namespace.c: Ditto.
12181         * cp-support.c: Ditto.
12182         * dbug-rom.c: Ditto.
12183         * dbxread.c: Ditto.
12184         * defs.h: Ditto.
12185         * dfp.c: Ditto.
12186         * dfp.h: Ditto.
12187         * dictionary.c: Ditto.
12188         * disasm.c: Ditto.
12189         * doublest.c: Ditto.
12190         * dwarf2-frame.c: Ditto.
12191         * dwarf2expr.c: Ditto.
12192         * dwarf2loc.c: Ditto.
12193         * dwarf2read.c: Ditto.
12194         * elfread.c: Ditto.
12195         * eval.c: Ditto.
12196         * event-loop.c: Ditto.
12197         * event-loop.h: Ditto.
12198         * exceptions.h: Ditto.
12199         * exec.c: Ditto.
12200         * expprint.c: Ditto.
12201         * expression.h: Ditto.
12202         * f-lang.c: Ditto.
12203         * f-valprint.c: Ditto.
12204         * findcmd.c: Ditto.
12205         * frame-base.c: Ditto.
12206         * frame-unwind.c: Ditto.
12207         * frame-unwind.h: Ditto.
12208         * frame.c: Ditto.
12209         * frame.h: Ditto.
12210         * gcore.c: Ditto.
12211         * gdb-stabs.h: Ditto.
12212         * gdb_assert.h: Ditto.
12213         * gdb_dirent.h: Ditto.
12214         * gdb_obstack.h: Ditto.
12215         * gdbcore.h: Ditto.
12216         * gdbtypes.c: Ditto.
12217         * gdbtypes.h: Ditto.
12218         * inf-ttrace.c: Ditto.
12219         * infcall.c: Ditto.
12220         * infcmd.c: Ditto.
12221         * inflow.c: Ditto.
12222         * infrun.c: Ditto.
12223         * inline-frame.h: Ditto.
12224         * language.c: Ditto.
12225         * language.h: Ditto.
12226         * libunwind-frame.c: Ditto.
12227         * libunwind-frame.h: Ditto.
12228         * linespec.c: Ditto.
12229         * linux-nat.c: Ditto.
12230         * linux-nat.h: Ditto.
12231         * linux-thread-db.c: Ditto.
12232         * machoread.c: Ditto.
12233         * macroexp.c: Ditto.
12234         * macrotab.c: Ditto.
12235         * main.c: Ditto.
12236         * maint.c: Ditto.
12237         * mdebugread.c: Ditto.
12238         * memattr.c: Ditto.
12239         * minsyms.c: Ditto.
12240         * monitor.c: Ditto.
12241         * monitor.h: Ditto.
12242         * objfiles.c: Ditto.
12243         * objfiles.h: Ditto.
12244         * osabi.c: Ditto.
12245         * p-typeprint.c: Ditto.
12246         * p-valprint.c: Ditto.
12247         * parse.c: Ditto.
12248         * printcmd.c: Ditto.
12249         * proc-events.c: Ditto.
12250         * procfs.c: Ditto.
12251         * progspace.c: Ditto.
12252         * progspace.h: Ditto.
12253         * psympriv.h: Ditto.
12254         * psymtab.c: Ditto.
12255         * record.c: Ditto.
12256         * regcache.c: Ditto.
12257         * regcache.h: Ditto.
12258         * remote-fileio.c: Ditto.
12259         * remote.c: Ditto.
12260         * ser-mingw.c: Ditto.
12261         * ser-tcp.c: Ditto.
12262         * ser-unix.c: Ditto.
12263         * serial.c: Ditto.
12264         * serial.h: Ditto.
12265         * solib-frv.c: Ditto.
12266         * solib-irix.c: Ditto.
12267         * solib-osf.c: Ditto.
12268         * solib-pa64.c: Ditto.
12269         * solib-som.c: Ditto.
12270         * solib-sunos.c: Ditto.
12271         * solib-svr4.c: Ditto.
12272         * solib-target.c: Ditto.
12273         * solib.c: Ditto.
12274         * somread.c: Ditto.
12275         * source.c: Ditto.
12276         * stabsread.c: Ditto.
12277         * stabsread.c: Ditto.
12278         * stack.c: Ditto.
12279         * stack.h: Ditto.
12280         * symfile-mem.c: Ditto.
12281         * symfile.c: Ditto.
12282         * symfile.h: Ditto.
12283         * symmisc.c: Ditto.
12284         * symtab.c: Ditto.
12285         * symtab.h: Ditto.
12286         * target-descriptions.c: Ditto.
12287         * target-memory.c: Ditto.
12288         * target.c: Ditto.
12289         * target.h: Ditto.
12290         * terminal.h: Ditto.
12291         * thread.c: Ditto.
12292         * top.c: Ditto.
12293         * tracepoint.c: Ditto.
12294         * tracepoint.h: Ditto.
12295         * ui-file.c: Ditto.
12296         * ui-file.h: Ditto.
12297         * ui-out.h: Ditto.
12298         * user-regs.c: Ditto.
12299         * user-regs.h: Ditto.
12300         * utils.c: Ditto.
12301         * valarith.c: Ditto.
12302         * valops.c: Ditto.
12303         * valprint.c: Ditto.
12304         * valprint.h: Ditto.
12305         * value.c: Ditto.
12306         * varobj.c: Ditto.
12307         * varobj.h: Ditto.
12308         * vec.h: Ditto.
12309         * xcoffread.c: Ditto.
12310         * xcoffsolib.c: Ditto.
12311         * xcoffsolib.h: Ditto.
12312         * xml-syscall.c: Ditto.
12313         * xml-tdesc.c: Ditto.
12314
12315 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12316
12317         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12318         * cli/cli-decode.c: Ditto.
12319         * cli/cli-dump.c: Ditto.
12320         * cli/cli-logging.c: Ditto.
12321         * cli/cli-script.c: Ditto.
12322         * cli/cli-setshow.c: Ditto.
12323         * common/signals.c: Ditto.
12324         * mi/mi-cmd-break.c: Ditto.
12325         * mi/mi-cmd-disas.c: Ditto.
12326         * mi/mi-cmd-stack.c: Ditto.
12327         * mi/mi-cmd-var.c: Ditto.
12328         * mi/mi-cmds.c: Ditto.
12329         * mi/mi-common.h: Ditto.
12330         * mi/mi-console.c: Ditto.
12331         * mi/mi-interp.c: Ditto.
12332         * mi/mi-main.c: Ditto.
12333         * osf-share/cma_attr.c: Ditto.
12334         * osf-share/cma_deb_core.h: Ditto.
12335         * osf-share/cma_debug_client.h: Ditto.
12336         * osf-share/cma_handle.h: Ditto.
12337         * osf-share/cma_mutex.h: Ditto.
12338         * osf-share/cma_stack_int.h: Ditto.
12339         * osf-share/cma_tcb_defs.h: Ditto.
12340         * python/py-auto-load.c: Ditto.
12341         * python/py-breakpoint.c: Ditto.
12342         * python/py-cmd.c: Ditto.
12343         * python/py-frame.c: Ditto.
12344         * python/py-objfile.c: Ditto.
12345         * python/py-param.c: Ditto.
12346         * python/py-progspace.c: Ditto.
12347         * python/py-symbol.c: Ditto.
12348         * python/py-value.c: Ditto.
12349         * python/python-internal.h: Ditto.
12350         * python/python.c: Ditto.
12351         * tui/tui-data.c: Ditto.
12352         * tui/tui-disasm.c: Ditto.
12353         * tui/tui-hooks.c: Ditto.
12354         * tui/tui-io.c: Ditto.
12355         * tui/tui-layout.c: Ditto.
12356         * tui/tui-regs.c: Ditto.
12357         * tui/tui-source.c: Ditto.
12358         * tui/tui-stack.c: Ditto.
12359         * tui/tui-win.c: Ditto.
12360         * tui/tui-windata.c: Ditto.
12361         * tui/tui-winsource.c: Ditto.
12362
12363 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12364
12365         * configure.ac, gdb.1: Copyright year update.
12366
12367 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12368
12369         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12370         this_pc_in_block, morestack_msym and morestack_name.  Check for
12371         "__morestack" minimal symbol there.
12372
12373 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12374
12375         * symfile.c (find_sym_fns): Add call to dont_repeat.
12376
12377 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12378
12379         Copyright year update in most files (performed by copyright.sh).
12380
12381 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12382
12383         * top.c (print_gdb_version): Update copyright year in version output.
12384
12385 For older changes see ChangeLog-2010.
12386 \f
12387 Local Variables:
12388 mode: change-log
12389 left-margin: 8
12390 fill-column: 74
12391 version-control: never
12392 coding: utf-8
12393 End: