* NEWS: Add entry for stdio gdbserver.
[external/binutils.git] / gdb / ChangeLog
1 2011-12-16  Doug Evans  <dje@google.com>
2
3         * NEWS: Add entry for stdio gdbserver.
4
5 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
6
7         * python/python.c: Define python_excp_enums.
8         (eval_python_from_control_command): Do not call gdbpy_print_stack.
9         (python_command): Ditto.
10         (gdbpy_print_stack): Rewrite to use new enum constants.
11         (maint_set_python): Remove function.
12         (maint_show_python): Ditto.
13         (_initialize_python): Do not add "maint" commands.  Add "set/show
14         python print-stack commands".
15         * NEWS: Update to reflect removal for "maint set/show
16         print-stack"
17
18 2011-12-15  Doug Evans  <dje@google.com>
19
20         * exceptions.c (catcher_list_size): New function.
21         (last_message): Delete.
22         (exception_messages, exception_messages_size): New static globals.
23         (throw_it): Use exception_messages array to handle nested calls.
24
25 2011-12-15  Tom Tromey  <tromey@redhat.com>
26
27         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
28         do_cleanups call.
29
30 2011-12-14  Doug Evans  <dje@google.com>
31
32         * defs.h (wait_to_die_with_timeout): Declare.
33         * utils.c: #include "gdb_wait.h".
34         (sigalrm_handler, wait_to_die_with_timeout): New functions.
35         * ser-pipe.c: Don't #include "gdb_wait.h".
36         (pipe_close): Give child a chance to die on its own after closing
37         its stdin before SIGTERM'ing it.
38
39 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
40             Tom Tromey  <tromey@redhat.com>
41
42         * ada-lang.c (add_nonlocal_symbols): Initialize data to
43         all zeros.  Remove setting of data.arg_sym to NULL.
44
45 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
46
47         PR threads/10729
48
49         * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
50         pointer.
51         (linux_nat_prepare_to_resume): New global.
52         (lwp_free): New.
53         (purge_lwp_list): Use it.
54         (add_lwp): Call linux_nat_new_thread even on the first LWP.
55         Adjust to interface change.
56         (delete_lwp): Call lwp_free instead of xfree.
57         (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
58         (linux_handle_syscall_trap, linux_handle_extended_wait)
59         (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
60         linux_nat_prepare_to_resume before resuming.
61         (linux_stop_lwp): New.
62         (linux_nat_set_new_thread): Adjust.
63         (linux_nat_set_prepare_to_resume): New.
64         * linux-nat.h (struct arch_lwp_info): Forward declare.
65         (struct lwp_info) <arch_private>: New field.
66         (linux_stop_lwp): Declare.
67         (linux_nat_set_new_thread): Adjust.
68         (linux_nat_set_prepare_to_resume): New.
69
70         * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
71         (struct i386_debug_reg_state): Move to i386-nat.h.
72         (dr_mirror): Comment.
73         (i386_debug_reg_state): New.
74         (i386_update_inferior_debug_regs): Simplify.
75         (i386_stopped_data_address): Use the debug register state from the
76         inferior, not from the local cache.
77         * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
78         unset_status fields.  New get_addr and get_control fields.
79         (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
80         (DR_NADDR, DR_STATUS): New.
81         (struct i386_debug_reg_state): Moved from i386-nat.c.
82
83         * amd64-linux-nat.c (struct arch_lwp_info): New.
84         (amd64_linux_dr): Delete global.
85         (amd64_linux_dr_get_addr): New.
86         (amd64_linux_dr_get_control): New.
87         (amd64_linux_dr_unset_status): Delete.
88         (amd64_linux_dr_set_addr): Reimplement.
89         (amd64_linux_dr_reset_addr): Delete.
90         (update_debug_registers_callback): New.
91         (amd64_linux_dr_set_control): Reimplement.
92         (amd64_linux_dr_set_addr): Reimplement.
93         (amd64_linux_prepare_to_resume): New.
94         (amd64_linux_new_thread): Change parameter to an lwp pointer.
95         Reimplement.
96         (_initialize_amd64_linux_nat): No longer install
97         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
98         amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
99         amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
100         amd64_linux_prepare_to_resume.
101         * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
102         (DR_CONTROL): Delete.
103         (struct arch_lwp_info): New.
104         (i386_linux_dr): Delete global.
105         (i386_linux_dr_set_control): Reimplement.
106         (i386_linux_dr_get_addr): New.
107         (i386_linux_dr_set_addr): Reimplement.
108         (i386_linux_dr_get_control): New.
109         (update_debug_registers_callback): New.
110         (i386_linux_dr_unset_status): Delete.
111         (i386_linux_dr_set_addr): Reimplement.
112         (i386_linux_prepare_to_resume): New.
113         (i386_linux_new_thread): Change parameter to an lwp pointer.
114         Reimplement.
115         (_initialize_i386_linux_nat): No longer install
116         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
117         i386_linux_dr_get_control as i386_dr_low.get_control.  Install
118         i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
119         i386_linux_prepare_to_resume.
120
121         * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
122         lwp pointer.  Adjust.
123         * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
124         * mips-linux-nat.c (mips_linux_new_thread): Likewise.
125         * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
126         * s390-nat.c (s390_fix_watch_points): Likewise.
127
128         * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
129         (DR_CONTROL): Delete.
130         (i386_darwin_dr_reset_addr): Delete.
131         (i386_darwin_dr_get_addr): New.
132         (i386_darwin_dr_get_control): New.
133         * go32-nat.c
134         (go32_get_dr7, go32_get_dr): New.
135         (init_go32_ops): No longer install i386_dr_low.reset_addr.
136         Install go32_get_dr7 as i386_dr_low.get_control.  Install
137         go32_get_dr as i386_dr_low.get_addr.
138         * i386bsd-nat.c (i386bsd_dr_get): New.
139         (i386bsd_dr_reset_addr): Delete.
140         (i386bsd_dr_get_addr): New.
141         (i386bsd_dr_get_status): Use i386bsd_dr_get.
142         (i386bsd_dr_get_control): New.
143         * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
144         (i386bsd_dr_get_addr): New.
145         (i386bsd_dr_get_control): New.
146         * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
147         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
148         i386bsd_dr_get_control as i386_dr_low.get_control.  Install
149         i386bsd_dr_get_addr as i386_dr_low.get_addr.
150         * windows-nat.c (init_windows_ops): No longer install
151         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
152         cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
153         as i386_dr_low.get_addr.
154         (cygwin_get_dr): New.
155         (cygwin_get_dr7): New.
156
157 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
158
159         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
160         target_write_raw_memory.
161         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
162         target_write_raw_memory.
163         * microblaze-linux-tdep.c
164         (microblaze_linux_memory_remove_breakpoint): Use
165         target_write_raw_memory.
166         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
167         target_write_raw_memory.
168
169 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
170
171         * linespec.c (decode_line_internal): Make static.
172
173 2011-12-14  Yao Qi  <yao@codesourcery.com>
174
175         * breakpoint.c (create_breakpoint): Set canonical.addr_string
176         for static tracepoint.
177
178 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
179
180         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
181         * version.in: Bump version to 7.4.50.20111213-cvs.
182
183 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
184
185         * NEWS: Create a new section for the next release branch.
186         Rename the section of the current branch, now that it has
187         been cut.
188
189 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
190
191         * ada-lang.c (ada_exception_support_info_sniffer): Improve
192         error message.
193
194 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
195
196         * ada-lang.c (struct ada_inferior_data) [exception_info]:
197         New field.
198         (exception_info): Delete.
199         (ada_exception_support_info_sniffer): Get exception_support_info
200         data from our per-inferior data.  Adjust code accordingly.
201         (ada_unhandled_exception_name_addr_from_raise): Likewise.
202         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
203         (ada_executable_changed_observer): Delete.
204         (_initialize_ada_language): Remove call to
205         observer_attach_executable_changed.
206
207 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
208
209         * ada-lang.c (ada_has_this_exception_support): Raise an error
210         if we could find the Ada exception hook in the Ada runtime,
211         but no debugging info for that hook.
212
213 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
214
215         * ada-lang.c (ada_has_this_exception_support): New function,
216         extracted out of ada_exception_sal and ada_exception_sal.
217         (ada_exception_support_info_sniffer): Simplify by using
218         ada_has_this_exception_support.
219         (ada_exception_sal): Replace unnecessary checks by assertions.
220         Minor simplifications.
221
222 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
223
224         * breakpoint.c (update_global_location_list): Remove nested
225         definition of `b'(-Wshadow).
226
227 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
228
229         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
230         `error_flag'(-Wshadow).
231
232 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
233
234         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
235         `abfd'(-Wshadow).
236
237 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
238
239         * annotate.c (annotate_array_section_begin): Rename `index' to
240         `idx'(-Wshadow).
241
242 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
243
244         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
245         `idx'(-Wshadow).
246
247 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
248
249         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
250         `syscall' to `syscall_number'(-Wshadow).
251
252 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
253
254         * ada-lang.c (remove_extra_symbols): Rename `remove' to
255         `remove_p'(-Wshadow).
256
257 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
258
259         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
260         `ren_sym'(-Wshadow).
261
262 2011-12-10  Doug Evans  <dje@google.com>
263
264         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
265         debug_types_section.  All uses updated.
266         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
267         to is_debug_types_section.
268
269         * python/py-auto-load.c (source_section_scripts): Call xfree
270         instead of free.
271
272 2011-12-10  Hui Zhu  <teawater@gmail.com>
273             Yao Qi  <yao@codesourcery.com>
274
275         * tracepoint.c (start_tracing): Clear `inserted' flag.
276
277 2011-12-10  Hui Zhu  <teawater@gmail.com>
278
279         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
280
281 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
282
283         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
284         `bpoint'(-Wshadow).
285
286 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
287
288         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
289         `marker' variables to `sal2' and `tpmarker' respectively
290         (-Wshadow).
291
292 2011-12-09  Andrew Pinski  <apinski@cavium.com>
293
294         * linespec.c (hash_address_entry): Use iterative_hash_object on each
295         field rather than the struct itself.
296
297 2011-12-09  Tom Tromey  <tromey@redhat.com>
298
299         * breakpoint.c (compare_breakpoints): New function.
300         (clear_command): Remove duplicate breakpoints.  Properly clean
301         up.
302
303 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
304             Maciej W. Rozycki  <macro@codesourcery.com>
305
306         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
307         address chunks retrieved from decoded lui/addiu pairs.
308
309 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
310
311         * mips-tdep.c (extended_offset): Correct calculation.
312         (unpack_mips16): Correct bitfield positions used for extraction
313         of the immediate argument; fix sign-extension of same.
314         (extended_mips16_next_pc): Correct B instruction's offset
315         calculation.  Correct register decoding of the BEQZ and BNEZ
316         as well as jump-register instructions.  Handle compact jumps.
317
318 2011-12-08  Tom Tromey  <tromey@redhat.com>
319
320         * objfiles.h (struct objfile): Remove obsolete comment.
321         * objfiles.c (build_objfile_section_table): Remove obsolete
322         comment.
323
324 2011-12-07  Stan Shebs  <stan@codesourcery.com>
325
326         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
327         maintainer of the tic6x target.
328
329 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
330
331         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
332         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
333         (arm_deal_with_atomic_sequence_raw): Likewise.
334         (arm_deal_with_atomic_sequence): Likewise.
335         (arm_software_single_step): Call it.
336         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
337
338 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
339
340         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
341         where appropriate.
342         * s390-tdep.h: Likewise.
343
344 2011-12-07  Tristan Gingold  <gingold@adacore.com>
345
346         * machoread.c (macho_symtab_read): Do not consider N_OPT as
347         a debugging stab.  Improve complaint message.
348
349 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
350
351         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
352         load adjustment if still within the prologue.
353
354 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
355
356         * mips-tdep.c (mips32_next_pc): Fix floating point condition
357         code mask.
358
359 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
360
361         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
362         of BLTZ* and BGEZ* instructions.
363
364 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
365
366         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
367         performed to determine whether an address refers to standard
368         MIPS or MIPS16 code.
369         (mips16_next_pc): Use mips_pc_is_mips16 instead of
370         is_mips16_addr.
371
372 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
373
374         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
375         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
376         memory writes too.
377         * breakpoint.h (breakpoint_restore_shadows): Delete.
378         (breakpoint_xfer_memory): Declare.
379         * mem-break.c (default_memory_insert_breakpoint)
380         (default_memory_remove_breakpoint): Use target_write_raw_memory.
381         (memory_xfer_partial): Rename to ...
382         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
383         here.
384         (memory_xfer_partial): New.
385         (target_write_raw_memory): New.
386         * target.h (target_write_raw_memory): New.
387
388 2011-12-06  Doug Evans  <dje@google.com>
389
390         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
391
392 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
393
394         * language.h (struct language_defn): Add new component
395         la_symbol_name_compare.
396         * symfile.h (struct quick_symbol_functions): Update the profile
397         of parameter "name_matcher" for the expand_symtabs_matching
398         method.  Update the documentation accordingly.
399         * ada-lang.h (ada_name_for_lookup): Add declaration.
400         * ada-lang.c (ada_name_for_lookup): New function, extracted out
401         from ada_iterate_over_symbols.
402         (ada_iterate_over_symbols): Do not encode symbol name anymore.
403         (ada_expand_partial_symbol_name): Adjust profile.
404         (ada_language_defn): Add value for la_symbol_name_compare field.
405         * linespec.c: #include "ada-lang.h".
406         (iterate_name_matcher): Add language parameter. Replace call
407         to strcmp_iw by call to language->la_symbol_name_compare.
408         (decode_variable): Encode COPY if current language is Ada.
409         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
410         of name_matcher parameter.  Adjust call to name_matcher.
411         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
412         (expand_partial_symbol_names): Update profile of parameter "fun".
413         * psymtab.h (expand_partial_symbol_names): Update profile of
414         parameter "fun".
415         * symtab.c (demangle_for_lookup): Update function documentation.
416         (search_symbols_name_matches): Add language parameter.
417         (expand_partial_symbol_name): Likewise.
418         * c-lang.c (c_language_defn, cplus_language_defn)
419         (asm_language_defn, minimal_language_defn): Add value for
420         la_symbol_name_compare field.
421         * d-lang.c (d_language_defn): Likewise.
422         * f-lang.c (f_language_defn): Ditto.
423         * jv-lang.c (java_language_defn): Ditto.
424         * m2-lang.c (m2_language_defn): Ditto.
425         * objc-lang.c (objc_language_defn): Ditto.
426         * opencl-lang.c (opencl_language_defn): Ditto.
427         * p-lang.c (pascal_language_defn): Ditto.
428         * language.c (unknown_language_defn, auto_language_defn)
429         (local_language_defn): Ditto.
430
431 2011-12-06  Tom Tromey  <tromey@redhat.com>
432
433         * linespec.c (iterate_over_all_matching_symtabs): Use
434         LA_ITERATE_OVER_SYMBOLS.
435         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
436         (find_function_symbols, decode_variable): Remove Ada special
437         case.
438         * language.h (struct language_defn) <la_iterate_over_symbols>: New
439         field.
440         (LA_ITERATE_OVER_SYMBOLS): New macro.
441         * language.c (unknown_language_defn, auto_language_defn)
442         (local_language_defn): Update.
443         * c-lang.c (c_language_defn, cplus_language_defn)
444         (asm_language_defn, minimal_language_defn): Update.
445         * d-lang.c (d_language_defn): Update.
446         * f-lang.c (f_language_defn): Update.
447         * jv-lang.c (java_language_defn): Update.
448         * m2-lang.c (m2_language_defn): Update.
449         * objc-lang.c (objc_language_defn): Update.
450         * opencl-lang.c (opencl_language_defn): Update.
451         * p-lang.c (pascal_language_defn): Update.
452         * ada-lang.c (ada_iterate_over_symbols): New function.
453         (ada_language_defn): Update.
454
455 2011-12-06  Tom Tromey  <tromey@redhat.com>
456             Joel Brobecker  <brobecker@acacore.com>
457
458         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
459         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
460         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
461         PR shlibs/8929, PR shlibs/7393:
462         * python/py-type.c (compare_maybe_null_strings): Rename from
463         compare_strings.
464         (check_types_equal): Update.
465         * utils.c (compare_strings): New function.
466         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
467         location changes.
468         * tracepoint.c (scope_info): Update.
469         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
470         * symtab.h (iterate_over_minimal_symbols)
471         (iterate_over_some_symtabs, iterate_over_symtabs)
472         (find_pcs_for_symtab_line, iterate_over_symbols)
473         (demangle_for_lookup): Declare.
474         (expand_line_sal): Remove.
475         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
476         (lookup_symtab_callback): New functions.
477         (lookup_symtab): Rewrite.
478         (demangle_for_lookup): New function, extract from
479         lookup_symbol_in_language.
480         (lookup_symbol_in_language): Use it.
481         (iterate_over_symbols): New function.
482         (find_line_symtab): Update.
483         (find_pcs_for_symtab_line): New functions.
484         (find_line_common): Add 'start' argument.
485         (decode_line_spec): Update.  Change argument to 'flags', change
486         interpretation.
487         (append_expanded_sal): Remove.
488         (append_exact_match_to_sals): Remove.
489         (expand_line_sal): Remove.
490         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
491         Remove.
492         <map_symtabs_matching_filename>: New field.
493         * stack.c (func_command): Only look in the current program space.
494         Use DECODE_LINE_FUNFIRSTLINE.
495         * source.c (line_info): Set pspace on sal.  Check program space in
496         the loop.  Use DECODE_LINE_LIST_MODE.
497         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
498         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
499         * python/python.c (gdbpy_decode_line): Update.
500         * psymtab.c (partial_map_expand_apply): New function.
501         (partial_map_symtabs_matching_filename): Rename from
502         lookup_partial_symbol.  Update arguments.
503         (lookup_symtab_via_partial_symtab): Remove.
504         (psym_functions): Update.
505         * objc-lang.h (parse_selector, parse_method): Don't declare.
506         (find_imps): Update.
507         * objc-lang.c (parse_selector, parse_method): Now static.
508         (find_methods): Change arguments.  Fill in a vector of symbol
509         names.
510         (uniquify_strings): New function.
511         (find_imps): Change arguments.
512         * minsyms.c (iterate_over_minimal_symbols): New function.
513         * linespec.h (enum decode_line_flags): New.
514         (struct linespec_sals): New.
515         (struct linespec_result) <canonical>: Remove.
516         <pre_expanded, addr_string, sals>: New fields.
517         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
518         (decode_line_full): Declare.
519         (decode_line_1): Update.
520         * linespec.c (struct address_entry, struct linespec_state, struct
521         collect_info): New types.
522         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
523         (eq_address_entry, maybe_add_address): New functions.
524         (total_number_of_methods): Remove.
525         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
526         functions.
527         (find_methods): Change arguments.  Don't canonicalize input.
528         Simplify logic.
529         (add_matching_methods, add_constructors)
530         (build_canonical_line_spec): Remove.
531         (filter_results, convert_results_to_lsals): New functions.
532         (decode_line_2): Change arguments.  Rewrite for new data
533         structures.
534         (decode_line_internal): Rename from decode_line_1.  Change
535         arguments.  Add cleanups.  Update for new data structures.
536         (linespec_state_constructor, linespec_state_destructor)
537         (decode_line_full, decode_line_1): New functions.
538         (decode_indirect): Change arguments.  Update.
539         (locate_first_half): Use skip_spaces.
540         (decode_objc): Change arguments.  Update for new data structures.
541         Simplify logic.
542         (decode_compound): Change arguments.  Add cleanups.  Remove
543         fallback code, replace with error.
544         (struct decode_compound_collector): New type.
545         (collect_one_symbol): New function.
546         (lookup_prefix_sym): Change arguments.  Update.
547         (compare_symbol_name, add_all_symbol_names_from_pspace)
548         (find_superclass_methods ): New functions.
549         (find_method): Rewrite.
550         (struct symtab_collector): New type.
551         (add_symtabs_to_list, collect_symtabs_from_filename): New
552         functions.
553         (symtabs_from_filename): Change API.  Rename from
554         symtab_from_filename.
555         (collect_function_symbols): New function.
556         (find_function_symbols): Change API.  Rename from
557         find_function_symbol.  Rewrite.
558         (decode_all_digits): Change arguments.  Rewrite.
559         (decode_dollar): Change arguments.  Use decode_variable.
560         (decode_label): Change arguments.  Rewrite.
561         (collect_symbols): New function.
562         (minsym_found): Change arguments.  Rewrite.
563         (check_minsym, search_minsyms_for_name)
564         (add_matching_symbols_to_info): New function.
565         (decode_variable): Change arguments.  Iterate over all symbols.
566         (symbol_found): Remove.
567         (symbol_to_sal): New function.
568         (init_linespec_result, destroy_linespec_result)
569         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
570         New functions.
571         (decode_digits_list_mode, decode_digits_ordinary): New functions.
572         * dwarf2read.c (dw2_map_expand_apply): New function.
573         (dw2_map_symtabs_matching_filename): Rename from
574         dw2_lookup_symtab.  Change arguments.
575         (dwarf2_gdb_index_functions): Update.
576         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
577         * defs.h (compare_strings): Declare.
578         * cli/cli-cmds.c (compare_strings): Move to utils.c.
579         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
580         filter_sals.
581         (compare_symtabs, filter_sals): New functions.
582         * breakpoint.h (struct bp_location) <line_number, source_file>:
583         New fields.
584         (struct breakpoint) <line_number, source_file>: Remove.
585         <filter>: New field.
586         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
587         (momentary_breakpoint_from_master, add_location_to_breakpoint):
588         Update for changes to locations.
589         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
590         breakpoint.
591         (create_breakpoint_sal): Add 'filter' argument.
592         (remove_sal, expand_line_sal_maybe): Remove.
593         (create_breakpoints_sal): Remove 'sals' argument.  Handle
594         pre-expanded sals and the filter.
595         (parse_breakpoint_sals): Use decode_line_full.
596         (check_fast_tracepoint_sals): Use get_sal_arch.
597         (create_breakpoint): Create a linespec_sals.  Update.
598         (break_range_command): Use decode_line_full.  Update.
599         (until_break_command): Update.
600         (clear_command): Update match conditions for linespec.c changes.
601         Use DECODE_LINE_LIST_MODE.
602         (say_where): Update for changes to locations.
603         (bp_location_dtor): Free 'source_file'.
604         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
605         (update_static_tracepoint): Update for changes to locations.
606         (update_breakpoint_locations): Disable ranged breakpoint if too
607         many locations match.  Update.
608         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
609         PCs.
610         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
611         (decode_line_spec_1): Update.  Change argument name to 'flags',
612         change interpretation.
613         * block.h (block_containing_function): Declare.
614         * block.c (block_containing_function): New function.
615         * skip.c (skip_function_command): Update.
616         (skip_re_set): Update.
617         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
618         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
619         * NEWS: Add entry.
620
621 2011-12-06  Tom Tromey  <tromey@redhat.com>
622
623         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
624         breakpoint's pspace to be NULL.
625         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
626         * breakpoint.c (init_raw_breakpoint): Conditionally set
627         breakpoint's pspace.
628         (init_breakpoint_sal): Don't set breakpoint's pspace.
629         (prepare_re_set_context): Conditionally switch program space.
630         (addr_string_to_sals): Check executing_startup on location's
631         program space.
632
633 2011-12-06  Tom Tromey  <tromey@redhat.com>
634
635         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
636         * breakpoint.c (should_be_inserted): Explicitly check if program
637         space is executing startup.
638         (describe_other_breakpoints): Update.
639         (disable_breakpoints_before_startup): Change executing_startup
640         earlier.  Remove loop.
641         (enable_breakpoints_after_startup): Likewise.
642         (init_breakpoint_sal): Don't use bp_startup_disabled.
643         (create_breakpoint): Don't use bp_startup_disabled.
644         (update_global_location_list): Use should_be_inserted.
645         (bkpt_re_set): Update.
646
647 2011-12-06  Tom Tromey  <tromey@redhat.com>
648
649         * python/lib/gdb/command/pretty_printers.py
650         (InfoPrettyPrinter.invoke1): Remove extra double quote.
651
652 2011-12-06  Tom Tromey  <tromey@redhat.com>
653
654         * NEWS: Add MI news.
655
656 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
657
658         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
659         (S390_LAST_BREAK_REGNUM): Likewise.
660         (S390_SYSTEM_CALL_REGNUM): Likewise.
661         (S390_NUM_REGS): Update.
662
663         (s390_regmap_last_break): Add declaration.
664         (s390x_regmap_last_break): Likewise.
665         (s390_regmap_system_call): Likewise.
666
667         (tdesc_s390_linux32v1): Add declaration.
668         (tdesc_s390_linux32v2): Likewise.
669         (tdesc_s390_linux64v1): Likewise.
670         (tdesc_s390_linux64v2): Likewise.
671         (tdesc_s390x_linux64v1): Likewise.
672         (tdesc_s390x_linux64v2): Likewise.
673
674         * s390-tdep.c: Include new target description files
675         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
676         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
677         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
678         (s390_cannot_store_register): New function.
679         (s390_write_pc): Likewise.
680         (s390_dwarf_regmap): Add fields for new registers.
681         (s390_regmap_gregset): Likewise.
682         (s390x_regmap_gregset): Likewise.
683         (s390_regmap_fpregset): Likewise.
684         (s390_regmap_upper): Likewise.
685         (s390_regmap_last_break): New variable.
686         (s390x_regmap_last_break): Likewise.
687         (s390_regmap_system_call): Likewise.
688         (s390_last_break_regset): Likewise.
689         (s390x_last_break_regset): Likewise.
690         (s390_system_call_regset): Likewise.
691         (s390_upper_regset_sections): Rename to ...
692         (s390_linux64_regset_sections): ... this.
693         (s390_linux32_regset_sections): New variable.
694         (s390x_linux64_regset_sections): Likewise.
695         (s390_linux32v1_regset_sections): Likewise.
696         (s390_linux32v2_regset_sections): Likewise.
697         (s390_linux64v1_regset_sections): Likewise.
698         (s390_linux64v2_regset_sections): Likewise.
699         (s390x_linux64v1_regset_sections): Likewise.
700         (s390x_linux64v2_regset_sections): Likewise.
701         (s390_regset_from_core_section): Handle .reg-s390-last-break and
702         .reg-s390-system-call core file sections.
703         (s390_core_read_description): Check for presence of
704         .reg-s390-last-break and .reg-s390-system-call core file
705         sections and return appropriate target description.
706         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
707         "last_break" and "system_call" in target description.  Install
708         appropriate gdbarch_core_regset_sections array.
709         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
710         (_initialize_s390_tdep): Initialize additional target descriptions.
711
712         * s390-nat.c: Include "elf/common.h".
713         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
714         (have_regset_last_break): New static variable.
715         (have_regset_system_call): Likewise.
716         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
717         (s390_native_collect): Likewise.
718         (fetch_regset, store_regset, check_regset): New functions.
719         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
720         and S390_SYSTEM_CALL_REGNUM.
721         (s390_linux_store_inferior_registers): Likewise.
722         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
723         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
724
725         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
726         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
727         (s390-linux32v1-expedite): Define.
728         (s390-linux32v2-expedite): Likewise.
729         (s390-linux64v1-expedite): Likewise.
730         (s390-linux64v2-expedite): Likewise.
731         (s390x-linux64v1-expedite): Likewise.
732         (s390x-linux64v2-expedite): Likewise.
733
734         * features/s390-linux32.xml: Add orig_r2 register.
735         * features/s390-linux64.xml: Likewise.
736         * features/s390x-linux64.xml: Likewise.
737         * features/s390-linux32v1.xml: New file.
738         * features/s390-linux32v2.xml: Likewise.
739         * features/s390-linux64v1.xml: Likewise.
740         * features/s390-linux64v2.xml: Likewise.
741         * features/s390x-linux64v1.xml: Likewise.
742         * features/s390x-linux64v2.xml: Likewise.
743
744         * features/s390-linux32.c: Regenerate.
745         * features/s390-linux64.c: Likewise.
746         * features/s390x-linux64.c: Likewise.
747         * features/s390-linux32v1.c: New generated file.
748         * features/s390-linux32v2.c: Likewise.
749         * features/s390-linux64v1.c: Likewise.
750         * features/s390-linux64v2.c: Likewise.
751         * features/s390x-linux64v1.c: Likewise.
752         * features/s390x-linux64v2.c: Likewise.
753
754         * regformats/s390-linux32.dat: Regenerate.
755         * regformats/s390-linux64.dat: Regenerate.
756         * regformats/s390x-linux64.dat: Regenerate.
757         * regformats/s390-linux32v1.dat: New generated file.
758         * regformats/s390-linux32v2.dat: Likewise.
759         * regformats/s390-linux64v1.dat: Likewise.
760         * regformats/s390-linux64v2.dat: Likewise.
761         * regformats/s390x-linux64v1.dat: Likewise.
762         * regformats/s390x-linux64v2.dat: Likewise.
763
764 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
765
766         * linux-nat.c (resume_stopped_resumed_lwps): Call
767         registers_changed.
768
769 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
770
771         * breakpoint.c: Include record.h.
772         (breakpoints_always_inserted_mode): Return false when the record
773         target is in use.
774
775 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
776
777         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
778         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
779         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
780         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
781
782 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
783
784         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
785         `i'(-Wshadow).
786
787 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
788
789         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
790
791 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
792
793         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
794         of `tdep'(-Wshadow).
795
796 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
797
798         Fix compilation --without-expat.
799         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
800         from ...
801         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
802
803 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
804             Jan Kratochvil  <jan.kratochvil@redhat.com>
805
806         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
807         * features/library-list-svr4.dtd: New file.
808         * remote.c (PACKET_qXfer_libraries_svr4): New.
809         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
810         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
811         * solib-svr4.c (struct svr4_library_list): New.
812         [HAVE_LIBEXPAT]: Include xml-support.h.
813         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
814         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
815         [HAVE_LIBEXPAT] (svr4_library_list_children)
816         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
817         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
818         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
819         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
820         (svr4_read_so_list): Extend the corruption message by addresses.
821         (svr4_current_sos): New variable library_list, call
822         svr4_current_sos_via_xfer_libraries.
823         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
824
825 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
826
827         PR threads/13448
828         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
829         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
830
831 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
832
833         PR breakpoints/13346
834         * dwarf2read.c (process_psymtab_comp_unit): Set
835         PSYMTABS_ADDRMAP_SUPPORTED.
836         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
837         validity.  New field psymtabs_addrmap_supported.
838         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
839         psymtabs_addrmap_supported.
840         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
841         !PSYMTABS_ADDRMAP_SUPPORTED.
842         (dump_psymtab, maintenance_info_psymtabs): Print also
843         psymtabs_addrmap_supported.
844
845 2011-12-01  Doug Evans  <dje@google.com>
846
847         * python/py-type.c (type_object_methods): Fix "array" doc string.
848
849 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
850
851         * source.c (print_source_lines_base): Fix missing braces on else
852         clause leading to additional output.
853
854 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
855
856         * s390-nat.c (SUBOFF): Remove.
857         (s390_native_supply, s390_native_collect): New functions.
858         (supply_gregset, supply_fpregset): Use s390_native_supply.
859         (fill_gregset, fill_fpregset): Use s390_native_collect.
860
861         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
862         (s390_unwind_pseudo_register): New function.
863         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
864         registers instead of PC and CC.
865         (s390_backchain_frame_unwind_cache): Likewise.
866         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
867         full GPR pseudos.
868         (s390_trad_frame_prev_register): New function.
869         (s390_frame_prev_register): Use it.
870         (s390_sigtramp_frame_prev_register): Likewise.
871         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
872         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
873         special callback to unwind any pseudo.
874
875         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
876         * features/s390-core64.xml: Likewise.
877         * features/s390x-core64.xml: Likewise.
878         * features/s390-linux32.c: Regenerate.
879         * features/s390-linux64.c: Likewise.
880         * features/s390x-linux64.c: Likewise.
881
882 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
883
884         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
885
886 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
887
888         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
889         instruction.  Add more diagnostic output.
890
891 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
892
893         * MAINTAINERS (Write After Approval): Add myself to the list.
894
895 2011-11-29  Sanjoy Das  <sdas@igalia.com>
896
897         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
898         (jit_bfd_try_read_symtab): Fix comments.
899
900 2011-11-28  DJ Delorie  <dj@redhat.com>
901
902         * NEWS: Mention RL78 simulator.
903
904 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
905
906         * symfile.h (struct quick_symbol_functions): Fix the documentation
907         of field map_matching_symbols, as symbols are sorted using
908         strcmp_iw_ordered, not strcmp_iw.
909
910 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
911
912         * symfile.h (struct quick_symbol_functions): Update the
913         documentation for field map_matching_symbols.
914
915 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
916
917         * ada-lang.c (compare_names): Fix wrong return value in case
918         string1 starts with the same contents as string2, followed
919         by an underscore that do not start a symbol name suffix.
920
921 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
922
923         PR python/13369
924         PR python/13374
925
926         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
927         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
928         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
929         exceptions.
930         * python/py-type.c (typy_strip_typedefs): Ditto.
931         (typy_legacy_template_argument): Ditto.
932         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
933         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
934
935 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
936
937         * remote.c (remote_get_tracepoint_status): Delete addrbuf
938         local variable.  Avoid use of sprintf_vma.
939
940 2011-11-27  Sanjoy Das  <sdas@igalia.com>
941
942         Fix regression in jit.exp.
943         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
944         (jit_register_code): Set the jit_objfile_data field to the correct
945         value.
946
947 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
948
949         * alpha-tdep.c (br_opcode): New.
950         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
951         (alpha_deal_with_atomic_sequence): New function.
952         (alpha_gdbarch_init): Handle single stepping of atomic sequences
953         with alpha_deal_with_atomic_sequence.
954
955 2011-11-24  Tristan Gingold  <gingold@adacore.com>
956
957         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
958         fields.  Add oso_sym, end_sym and nbr_syms.
959         (macho_register_oso): Change interface.
960         (macho_symtab_add_minsym): New function.
961         (macho_symtab_read): Rewritten.
962         (get_archive_prefix_len): Remove trailing blanks.
963         (oso_el_compare_name): Add comment.
964         (struct macho_sym_hash_entry): New structure.
965         (macho_relocate_common_syms): Remove.
966         (macho_sym_hash_newfunc): New function.
967         (macho_resolve_oso_sym_with_minsym): Likewise.
968         (macho_add_oso_symfile): Rewritten.
969         (macho_symfile_read_all_oso): Remove trailing blanks.
970         Adjust code to free oso vector.
971         (macho_symfile_read): Likewise.
972         Move code to initialize minimal symbol
973
974 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
975
976         * mips-tdep.c (extended_offset): Fix formatting.
977
978 2011-11-23  Doug Evans  <dje@google.com>
979
980         * dwarf2read.c (dw2_lookup_symtab): Add comment.
981         (dw2_expand_symtabs_with_filename): Ditto.
982         (dw2_expand_symtabs_matching): Ditto.
983         (dw2_map_symbol_filenames): Ditto.
984
985 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
986
987         * ada-lang.c (assign_aggregate): Minor reformatting.
988
989 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
990
991         * ada-lang.c (assign_aggregate): Remove declaration of local
992         variable `i' which is shadowing another variable with the same
993         name declared in the outer scope.
994
995 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
996
997         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
998         calls throughout this file.
999
1000 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1001
1002         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1003         FormatMessage.
1004
1005 2011-11-22  Tom Tromey  <tromey@redhat.com>
1006
1007         PR mi/8444:
1008         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1009         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1010         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1011         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1012         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1013         (print_it_catch_syscall, print_it_catch_exec)
1014         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1015         (bpstat_print): Add 'kind' argument.  Handle
1016         TARGET_WAITKIND_LOADED.
1017         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1018         handle TARGET_WAITKIND_LOADED here.
1019         * breakpoint.h (bpstat_print): Update.
1020
1021 2011-11-22  Tom Tromey  <tromey@redhat.com>
1022
1023         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1024
1025 2011-11-22  Tom Tromey  <tromey@redhat.com>
1026
1027         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1028         Use static_assert to check the size of
1029         async_reason_string_lookup.
1030         * common/gdb_assert.h (static_assert): New macro.
1031
1032 2011-11-22  Alan Modra  <amodra@gmail.com>
1033
1034         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1035         destination calculation.  Don't expect >> to sign extend.  Don't
1036         add a break if branch lands inside the sequence anywhere.
1037
1038 2011-11-21  Keith Seitz  <keiths@redhat.com>
1039
1040         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1041         -var-evaluate-expression of an enumeration and fix expected result.
1042         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1043
1044 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1045
1046         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1047         the case where osdata->items is empty.  Rename column names to a
1048         canonical form to avoid problems with unusual column names.
1049
1050 2011-11-21  Yao Qi  <yao@codesourcery.com>
1051
1052         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1053
1054 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1055
1056         * NEWS: Mention tracepoint additions.
1057         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1058         * breakpoint.c (print_one_breakpoint_location): Identify
1059         tracepoints as such when reporting hit counts, report
1060         trace buffer usage.
1061         (create_tracepoint_from_upload): Copy status info.
1062         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1063         add fields user_name, notes, start_time, stop_time.
1064         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1065         * tracepoint.c (trace_user): New global.
1066         (trace_notes): New global.
1067         (trace_stop_notes): New global.
1068         (start_tracing): Add argument and trace note handling.
1069         (stop_tracing): Ditto.
1070         (trace_start_command): Add notes argument.
1071         (trace_stop_command): Ditto.
1072         (trace_status_command): Report additional status info.
1073         (trace_status_mi): Similarly.
1074         (trace_save): Update, record tracepoint status.
1075         (set_disconnected_tracing): Call target method directly.
1076         (send_disconnected_tracing_value): Remove.
1077         (set_trace_user): New function.
1078         (set_trace_notes): New function.
1079         (set_trace_stop_notes): New function.
1080         (parse_trace_status): Handle additional status.
1081         (parse_tracepoint_status): New function.
1082         (parse_tracepoint_definition): Call it.
1083         (tfile_get_tracepoint_status): New function.
1084         (init_tfile_ops): Use it.
1085         (_initialize_tracepoint): Add new setshows.
1086         * target.h (struct target_ops): New methods to_get_tracepoint_status
1087         and to_set_trace_notes.
1088         (target_get_tracepoint_status): New macro.
1089         (target_set_trace_notes): New macro.
1090         * target.c (update_current_target): Add new methods.
1091         * remote.c (remote_get_tracepoint_status): New function.
1092         (remote_set_trace_notes): New function.
1093         (init_remote_ops): Add them.
1094         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1095         (mi_cmd_trace_stop): Ditto.
1096
1097 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1098
1099         * jit.c: Include regcache.h.
1100         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1101         (jit_unwind_reg_set_impl, free_reg_value_impl)
1102         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1103         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1104         (jit_frame_prev_register, jit_dealloc_cache)
1105         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1106         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1107         jit_prepend_unwinder.
1108         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1109
1110 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1111
1112         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1113         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1114         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1115         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1116         (finalize_symtab, jit_object_close_impl)
1117         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1118         (free_objfile_data): New functions.
1119         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1120         function.
1121
1122 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1123
1124         * jit.c: Include gdb-dlfcn.h.
1125         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1126         (jit_reader_load, jit_reader_load_command)
1127         (jit_reader_unload_command): New functions.
1128         (_initialize_jit): Add commands "jit-reader-load" and
1129         "jit-reader-unload".
1130
1131 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1132
1133         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1134         * config.in: Add new #define HAVE_LIBDL.
1135         * configure.ac: Add check for -ldl.
1136         * configure: Re-generated by autoconf.
1137         * gdb-dlfcn.c: New file.
1138         * gdb-dlfcn.h: New file.
1139
1140 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1141
1142         * config.in: Add new #defines: JIT_READER_DIR and
1143         JIT_READER_DIR_RELOCATABLE.
1144         * configure.ac: New GDB directory entry for jit-reader-dir.
1145         * configure: Re-generated by autoconf.
1146         * jit.c: New static variable: const char *jit_reader_dir.
1147         (_initialize_jit): Relocate jit_reader_dir.
1148
1149 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1150
1151         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1152         $(includedir)/gdb.
1153         * configure.ac: Generate a correct value for TARGET_PTR for
1154         jit-reader.h.  Tell configure to generate jit-reader.h from
1155         jit-reader.in.
1156         * configure: Re-generated by autoconf.
1157         * jit-reader.in: New file.
1158         * jit.c: Include jit-reader.h.
1159
1160 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1161
1162         * MAINTAINERS (Write After Approval): Add myself to the list.
1163
1164 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1165
1166         * findvar.c (read_frame_register_value): Respect value_offset
1167         of the register value.  Remove big-endian special case.
1168
1169 2011-11-18  Tom Tromey  <tromey@redhat.com>
1170
1171         PR build/7196:
1172         * remote.c (putpkt_for_catch_errors): New function.
1173         (remote_kill): Use it.
1174
1175 2011-11-18  Yao Qi  <yao@codesourcery.com>
1176
1177         * breakpoint.c (create_breakpoint): Produce query message according to
1178         breakpoint's type.
1179         Allocate tracepoint per correct type.
1180         Don't check SALs for pending fast tracepoints.
1181         * tracepoint.c (process_tracepoint_on_disconnect): New.
1182         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1183
1184 2011-11-18  Yao Qi  <yao@codesourcery.com>
1185
1186         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1187         update_global_location_list is called conditionally.
1188         (create_fork_vfork_event_catchpoint): Update.
1189         (create_syscall_event_catchpoint): Update.
1190         (create_breakpoint_sal): Update.
1191         (create_breakpoint_sal): Update. Call do_cleanups before
1192         install_breakpoint.
1193         * ada-lang.c (create_ada_exception_catchpoint): Update.
1194         * breakpoint.h (install_breakpoint): Update declaration.
1195
1196 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1197
1198         * spu-tdep.c (spu_return_value): Fix handling of
1199         TYPE_CALLING_CONVENTION annotation.
1200
1201 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1202
1203         * skip.c (skip_function_command): Work around uninitialized
1204         variable warning.
1205
1206 2011-11-16  David S. Miller  <davem@davemloft.net>
1207
1208         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1209         'tv_usec' to long for printf since these fields have a type which
1210         varies.
1211
1212 2011-11-15  Doug Evans  <dje@google.com>
1213
1214         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1215
1216 2011-11-15  Paul Koning  <paul_koning@dell.com>
1217
1218         * python/py-type.c (typy_get_composite): New function.
1219         (typy_nonzero): New function.
1220         (typy_values): Rename from typy_fields.
1221         (typy_fields): New function.
1222         (typy_length): Raise exception if not struct, union, or enum type.
1223         (typy_getitem): Ditto.
1224         (typy_has_key): Ditto.
1225         (typy_make_iter): Ditto.
1226
1227 2011-11-15  Doug Evans  <dje@google.com>
1228
1229         PR gdb/8367
1230         * NEWS: Mention new parameter basenames-may-differ.
1231         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1232         ! basenames_may_differ.
1233         * psymtab.c (lookup_partial_symtab): Ditto.
1234         * symtab.c (lookup_symtab): Ditto.
1235         (basenames_may_differ): New global.
1236         (_initialize_symtab): New parameter basenames-may-differ.
1237         * symtab.h (basenames_may_differ): Declare.
1238
1239 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1240             Luis Machado  <lgustavo@codesourcery.com>
1241
1242         * auxv.c: Include observer.h.
1243         (auxv_inferior_data_cleanup): New.
1244         (invalidate_auxv_cache_inf): New.
1245         (invalidate_auxv_cache): New.
1246         (get_auxv_inferior_data): New.
1247         (auxv_inferior_data): New static global.
1248         (auxv_info): New structure.
1249         (target_auxv_search): Use get_auxv_inferior_data instead of
1250         target_read_alloc and don't free cached buffers.
1251         (fprint_target_auxv): Likewise
1252         (_initialize_auxv): Register per-inferior auxv cache and register
1253         observers to invalidate auxv cache when needed.
1254
1255 2011-11-14  Doug Evans  <dje@google.com>
1256
1257         PR gdb/7200 Make "!" an alias for "shell".
1258         * NEWS: Add mention.
1259         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1260         adding "!" command, always add it.
1261         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1262         command of length one.
1263
1264 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1265             Kwok Cheung Yeung  <kcy@codesourcery.com>
1266
1267         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1268         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1269         the minimum instruction size for fast tracepoints.
1270         * target.h (struct target_ops): Add new method
1271         to_get_min_fast_tracepoint_insn_len.
1272         (target_get_min_fast_tracepoint_insn_len): New.
1273         * target.c (update_current_target): Set up new target operation.
1274         * remote.c (remote_write_bytes_aux): Fix typo.
1275         (remote_get_min_fast_tracepoint_insn_len): New.
1276         (init_remote_ops): Initialize new field.
1277
1278 2011-11-14  Tom Tromey  <tromey@redhat.com>
1279
1280         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1281         (encode_actions): Likewise.
1282
1283 2011-11-14  Yao Qi  <yao@codesourcery.com>
1284
1285         * remote.c (struct remote_state): <install_in_trace> new field.
1286         (PACKET_InstallInTrace): New enum value.
1287         (remote_install_in_trace_feature): Support InstallInTrace.
1288         (remote_supports_install_in_trace): Likewise.
1289         (remote_protocol_features): Likewise.
1290         (_initialize_remote): Likewise.
1291         (remote_can_download_tracepoint): New.
1292         * target.h (struct target): New field
1293         `to_can_download_tracepoint'.
1294         (target_can_download_tracepoint): New macro.
1295         * target.c (update_current_target): Update.
1296         * breakpoint.h (struct bp_location): Add comment on field
1297         `duplicate'.
1298         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1299         and tracepoint.
1300         (remove_breakpoints): Don't remove tracepoints.
1301         (tracepoint_locations_match ): New.
1302         (breakpoint_locations_match): Call it.
1303         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1304         (download_tracepoint_locations): New.
1305         (update_global_location_list): Call it.
1306         * tracepoint.c (find_matching_tracepoint): Delete.
1307         (find_matching_tracepoint_location): Renamed from
1308         find_matching_tracepoint.  Return bp_location rather than
1309         tracepoint.
1310         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1311         tracepoint is found.
1312
1313 2011-11-14  Yao Qi  <yao@codesourcery.com>
1314
1315         * target.h (struct target): <to_download_tracepoint> Change type
1316         of parameter from tracepoint to bp_location.
1317         * target.c (update_current_target): Update.
1318         * tracepoint.c (start_tracing): Update.
1319         * remote.c (remote_download_tracepoint): Remove loop for each location
1320         of a tracepoint.
1321
1322 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1323
1324         * i386-nat.c (i386_insert_hw_breakpoint): Call
1325         i386_update_inferior_debug_regs.
1326         (i386_remove_hw_breakpoint): Likewise.
1327
1328 2011-11-14  Yao Qi  <yao@codesourcery.com>
1329
1330         * breakpoint.c (init_raw_breakpoint): Call
1331         add_location_to_breakpoint to replace duplicated code.
1332         (add_location_to_breakpoint): Adjust the breakpoint's
1333         address prior to allocating a location.
1334
1335 2011-11-12  Matt Rice  <ratmice@gmail.com>
1336
1337         * macrocmd.c (macro_no_macro_info): New function.
1338         (macro_expand_command): Use macro_no_macro_info.
1339         (macro_expand_once_command): Ditto.
1340         (info_macro_command): Add argument processing,
1341         move info_definitions_command here.
1342         (_initialize_macrocmd): Remove info definitions command.
1343         Add arguments to info macro help text.
1344         * NEWS: Replace info definitions command with new info macro options.
1345
1346 2011-11-11  Keith Seitz  <keiths@redhat.com>
1347
1348         PR gdb/12843
1349         * linespec.c (locate_first_half): Keep ':' if it looks
1350         like it could be part of a Windows path starting with
1351         a drive letter.
1352
1353 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1354
1355         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1356         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1357
1358 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1359
1360         * target.c (target_waitstatus_to_string): Handle
1361         TARGET_WAITKIND_NO_RESUMED.
1362
1363 2011-11-10  Doug Evans  <dje@google.com>
1364
1365         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1366         `need_fullname'.
1367         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1368         (map_partial_symbol_filenames): Ditto.  All callers updated.
1369         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1370         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1371         parameter need_fullname.
1372
1373         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1374         * source.c (symtab_to_fullname): Ditto.
1375
1376         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1377         * gdb-demangle.h: ... here.  New file.
1378         * demangle.c: #include "gdb-demangle.h".
1379         (_initialize_demangler): Use initialize_file_ftype for prototype.
1380         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1381         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1382         from utils.c
1383         * utils.c: Update. #include "gdb-demangle.h".
1384         * symtab.h (asm_demangle): Delete.
1385         (demangle): Move declaration next to use.
1386         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1387         * dwarf2read.c: #include "gdb-demangle.h".
1388         * gnu-v2-abi.c: Ditto.
1389         * jv-typeprint.c: Ditto.
1390         * mdebugread.c: Ditto.
1391         * p-typeprint.c: Ditto.
1392         * stabsread.c: Ditto.
1393         * printcmd.c: Ditto.
1394         (asm_demangle): Delete declaration.
1395         * tui/tui-stack.c: #include "gdb-demangle.h".
1396
1397         * python/py-type.c (typy_fields_items): Call check_typedef.
1398
1399 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1400
1401         * findvar.c (read_frame_register_value): Read the correct bytes
1402         from registers on big-endian architectures.
1403
1404 2011-11-10  Tom Tromey  <tromey@redhat.com>
1405
1406         * procfs.c (load_syscalls): Make a cleanup.
1407         (open_procinfo_files): fd==0 is ok.
1408
1409 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1410
1411         * procfs.c (iterate_over_mappings): Call do_cleanups before
1412         returning.
1413
1414 2011-11-09  Doug Evans  <dje@google.com>
1415
1416         * gdbtypes.c (check_typedef): Document that this function can
1417         throw an exception.
1418
1419 2011-11-09  Tom Tromey  <tromey@redhat.com>
1420
1421         PR c++/13342:
1422         * valops.c (value_full_object): Return early if real type is
1423         smaller than the enclosing type.
1424
1425 2011-11-08  Yao Qi  <yao@codesourcery.com>
1426
1427         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1428
1429 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1430
1431         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1432         register when the frame can't be determined.
1433         * arm-tdep.c (arm_analyze_prologue): Ditto.
1434
1435 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1436
1437         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1438
1439 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1440
1441         * infrun.c (handle_inferior_event): Minor reformatting.
1442
1443 2011-11-05  Doug Evans  <dje@google.com>
1444
1445         * source.c (forget_cached_source_info_for_objfile): Move call to
1446         objfile->sf->qf->forget_cached_source_info outside of
1447         ALL_OBJFILE_SYMTABS loop.
1448         (forget_cached_source_info): Delete unused variable `s'.
1449
1450 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1451
1452         * i386-nat.c (dr_ref_count): Remove unused variable.
1453
1454 2011-11-05  Doug Evans  <dje@google.com>
1455
1456         * main.c (captured_main): Set lim_at_start before calling
1457         make_command_stats_cleanup.
1458
1459 2011-11-04  Doug Evans  <dje@google.com>
1460
1461         * utils.c: #include "timeval-utils.h".
1462         (cmd_stats): Rename start_time to start_cpu_time.
1463         New member start_wall_time.
1464         (report_command_stats): Report wall time.
1465         (make_command_stats_cleanup): Record start wall time.
1466
1467 2011-11-04  Tom Tromey  <tromey@redhat.com>
1468
1469         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1470
1471 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1472
1473         * coff-pe-read.c: Include defs.h before bfd.h.
1474
1475 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1476
1477         PR Python/13345
1478
1479         * python/python.c (python_run_simple_file): Expand tilde in path.
1480
1481 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1482
1483         PR Python/13363
1484
1485         * python/py-type.c (typy_lookup_type): Do not return a type in
1486           an exception handler.
1487
1488 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1489             Eli Zaretskii  <eliz@gnu.org>
1490
1491         * linux-nat.c (_initialize_linux_nat): Improve help
1492         for `info proc stat', `info proc status', `info proc cwd',
1493         `info proc cmdline' and `info proc exe'.
1494
1495 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1496
1497         String collection for tracepoints.
1498         * NEWS: Mention string collection.
1499         * common/ax.def (tracenz): New bytecode.
1500         * ax-gdb.h (trace_string_kludge): Declare.
1501         * ax-gdb.c: Include valprint.h and c-lang.h.
1502         (trace_string_kludge): New global.
1503         (gen_traced_pop): Add string case.
1504         (agent_command): Add string case.
1505         * tracepoint.h (decode_agent_options): Declare.
1506         * tracepoint.c: Include cli-utils.h.
1507         (decode_agent_options): New function.
1508         (validate_actionline): Call it.
1509         (encode_actions_1): Ditto.
1510         * target.h (struct target_ops): New method to_supports_string_tracing.
1511         (target_supports_string_tracing): New macro.
1512         * target.c (update_current_target): Add to_supports_string_tracing.
1513         * remote.c (struct remote_state): New field string_tracing.
1514         (remote_string_tracing_feature): New function.
1515         (remote_protocol_features): New feature tracenz.
1516         (remote_supports_string_tracing): New function.
1517         (init_remote_ops): Set to_supports_string_tracing.
1518
1519 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1520             Jan Kratochvil  <jan.kratochvil@redhat.com>
1521
1522         * linux-nat.c: Include cli/cli-utils.h.
1523         (enum info_proc_what): New.
1524         (linux_nat_info_proc_cmd): Rename to ...
1525         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1526         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1527         status_f and stat_f from WHAT.  Throw error on extra parameters.
1528         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1529         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1530         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1531         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1532         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1533         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1534         `info proc cmdline', `info proc exe' and `info proc all' as real
1535         subcommands of `info proc'.
1536
1537 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1538
1539         * Makefile.in: (SFILES): Add skip.c.
1540         (HFILES_NO_SRCDIR): Add skip.h.
1541         (COMMON_OBS): Add skip.o.
1542         * skip.h, skip.c: New.
1543         * breakpoint.h (set_default_breakpoint): Remove.
1544         (get_sal_arch): Declare.
1545         * breakpoint.c: Remove default_breakpoint_valid,
1546         default_breakpoint_address, default_breakpoint_symtab,
1547         default_breakpoint_line, default_breakpoint_pspace variables.
1548         (get_sal_arch): Make public.
1549         (set_default_breakpoint): Remove.
1550         (parse_breakpoint_sals, create_breakpoint, clear_command,
1551         decode_line_spec_1): Remove uses of default_breakpoint variables;
1552         replaced with function calls into stack.c.
1553         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1554         * cli/cli-cmds.c: Add skiplist.
1555         (init_cmd_lists): Initialize skiplist.
1556         (init_cli_cmds): Fix comment (classes of commands appear in
1557         alphabetical order).
1558         * infrun.c (handle_inferior_event): Add check that we don't step into
1559         a function whose pc is marked for skip.
1560         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1561         last_displayed_addr, last_displayed_symtab, last_displayed_line
1562         variables.
1563         (set_last_displayed_sal): New static function.
1564         (print_frame_info): Switch call to set_default_breakpoint to call to
1565         set_last_displayed_sal.
1566         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1567         get_last_displayed_pspace, get_last_displayed_addr,
1568         get_last_displayed_symtab, get_last_displayed_line,
1569         get_last_displayed_sal): New public functions.
1570         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1571         get_last_displayed_pspace, get_last_displayed_addr,
1572         get_last_displayed_symtab, get_last_displayed_line,
1573         get_last_displayed_sal): Declare.
1574
1575 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1576
1577         * MAINTAINERS (Write After Approval): Add myself to the list.
1578
1579 2011-10-29  Yao Qi  <yao@codesourcery.com>
1580
1581         * infcmd.c (disconnect_command): Call disconnect_tracing.
1582
1583 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1584
1585         Code cleanup.
1586         * symtab.c (skip_prologue_sal): Code reformatting.
1587
1588 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1589
1590         PR symtab/13208
1591         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1592         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1593         SAI.
1594
1595 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1596
1597         * linux-nat.c (linux_nat_filter_event): Remove `options'
1598         parameter, and dead code that used it.  If we're handling a
1599         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1600         in our lwp list, re-add it.
1601         (check_zombie_leaders): New.
1602         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1603         wait for children with WNOHANG, and always wait for all children.
1604         Don't check for no resumed children upfront.  Simplify wait loop.
1605         Check for zombie thread group leaders after handling all wait
1606         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1607         unwaited-for children left.
1608         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1609         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1610         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1611         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1612
1613 2011-10-28  Sterling Augustine  <saugustine@google.com>
1614
1615         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1616         * symtab.c (free_completion_list): New function.
1617         (do_free_completion_list): Likewise.
1618         (default_make_symbol_completion_list_break_on): New variable
1619         back_to. Call make_cleanup and discard_cleanups.
1620         (make_source_files_completion_list): Likewise.
1621
1622 2011-10-28  Paul Koning  <paul_koning@dell.com>
1623
1624         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1625         * NEWS: Mention deep_items.
1626
1627 2011-10-28  Alen Skondro  <askondro@gmail.com>
1628
1629         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1630         defined.
1631
1632 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1633
1634         * MAINTAINERS (Write After Approval): Add myself to the list.
1635
1636 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1637
1638         * value.h (read_frame_register_value): Add declaration.
1639         * findvar.c (read_frame_register_value): New function.
1640         (value_from_register): Use read_frame_register_value
1641         instead of get_frame_register_value + value_contents_copy
1642         to get value contents.
1643
1644 2011-10-27  Doug Evans  <dje@google.com>
1645
1646         * cli/cli-cmds.c (source_script_with_search): Pass full path to
1647         source_script_from_stream if it may have been found on the search path.
1648         * python/py-auto-load.c (source_section_scripts): Pass full path to
1649         source_python_script_for_objfile.
1650         * python/python.c (source_python_script): Delete stream parameter.
1651         All callers updated.
1652         (source_python_script_for_objfile): Ditto.
1653         * python/python-internal.h (source_python_script_for_objfile): Update.
1654         * python/python.h (source_python_script): Update.
1655
1656 2011-10-27  Tom Tromey  <tromey@redhat.com>
1657
1658         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1659         (ada_sals_for_line): Remove declarations.
1660
1661 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
1662
1663         Move unwind reasons to an external .def file
1664         * frame.c (frame_stop_reason_string): Rewrite using
1665         unwind_stop_reasons.def.
1666         * frame.h (enum unwind_stop_reason): Likewise.
1667         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1668         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1669         constants for bound-checking.
1670         * unwind_stop_reasons.def: New file.
1671         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1672         instead of a distinct value.
1673
1674 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1675
1676         PR python/13331
1677
1678         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1679         (convert_values_to_python): Return on Python tuple allocation
1680         failure.  Return NULL on value conversion error.
1681
1682 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
1683
1684         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1685         (bppy_set_task): Ditto.
1686         (bppy_delete_breakpoint): Ditto.
1687         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1688         (gdbpy_lookup_global_symbol): Ditto.
1689         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1690         * python/py-frame.c (frapy_is_valid): Ditto.
1691         (frame_info_to_frame_object): Ditto.
1692         * python/py-type.c (typy_lookup_type): Ditto.
1693         (typy_getitem): Ditto.
1694         (typy_has_key): Ditto.
1695         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
1696
1697 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
1698
1699         * gdbarch.h: Regenerate.
1700
1701 2011-10-26  Meador Inge  <meadori@codesourcery.com>
1702
1703         * gdbarch.sh (function_list): Use 'pstring' when printing
1704         'gcore_bfd_target'.
1705         * gdbarch.c: Regenerate.
1706
1707 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1708
1709         * regcache.c (registers_changed_ptid): Invalidate thread architecture
1710         and frame caches if PTID refers to all threads of a process.
1711
1712 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1713
1714         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1715         to create_breakpoint.
1716
1717 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
1718
1719         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1720         (ppc_sysv_abi_push_dummy_call): Use it.
1721         (do_ppc_sysv_return_value): Likewise.
1722         (ppc64_sysv_abi_push_dummy_call): Likewise.
1723         (ppc64_sysv_abi_return_value): Likewise.
1724
1725 2011-10-26  Paul Koning  <paul_koning@dell.com>
1726
1727         * python/lib/gdb/types.py (deepitems): New function.
1728         
1729 2011-10-25  Paul Koning  <paul_koning@dell.com>
1730
1731         PR python/13327
1732         
1733         * python/py-value.c (value_to_value_object): Remove fetching of
1734         the value if it was lazy.
1735         (valpy_get_is_lazy): New function.
1736         (valpy_fetch_lazy): New function.
1737
1738 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
1739
1740         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1741         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1742
1743 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1744
1745         * linux-nat.c (linux_handle_extended_wait): When handling a clone
1746         event, in non-stop, if not stopping, make sure the new lwp has
1747         last_resume_kind set to resume_continue.  Assert that when we're
1748         resuming the new lwp, its last_resume_kind is resume_continue.
1749
1750 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1751
1752         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1753         already set when marking the event thread as not executing in
1754         non-stop mode.
1755
1756 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
1757
1758         * infrun.c (handle_inferior_event): Add debug output for
1759         TARGET_WAITKIND_NO_HISTORY.
1760
1761 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1762
1763         * NEWS: Move set/show extended-prompt to "New Options". Expand
1764         description. Fix typos.
1765
1766 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
1767
1768         PR python/13310
1769
1770         * python/py-param.c (call_doc_function): Correctly deference on
1771         function exit.
1772
1773 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
1774
1775         * ada-tasks.c (print_ada_task_info): Fix computation of
1776         number of tasks displayed in command output.
1777
1778 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1779             Ulrich Weigand  <uweigand@de.ibm.com>
1780
1781         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1782         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1783         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
1784         gdbarch_pc_regnum and frame_unwind_register_unsigned by
1785         gdbarch_unwind_pc.
1786
1787 2011-10-20  Cary Coutant  <ccoutant@google.com>
1788
1789         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1790         section to...
1791         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
1792         flag.  Adjust all callers.
1793         (process_psymtab_comp_unit): Remove adjustment for type section.
1794
1795 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1796
1797         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1798         arguments by adding OBJFILE.  Instead of getting objfile from
1799         symbol's symtab, use new argument OBJFILE.
1800         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1801         arguments by adding OBJFILE.
1802         * gdb/dwarf2read.c (new_symbol_full): Change call to
1803         cp_scan_for_anonymous_namespaces to match new signature.
1804         * gdb/stabsread.c (define_symbol): Change call to
1805         cp_scan_for_anonymous_namespaces to match new signature.
1806
1807 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1808
1809         PR python/13308
1810         PR python/13309
1811
1812         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1813         leak.
1814         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1815         leak.  Delete unused variables.
1816
1817 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
1818
1819         PR python/12656
1820
1821         * python/py-frame.c (frapy_read_var): Use const struct *block.
1822         * python/py-type.c (typy_lookup_typename): Likewise.
1823         (typy_lookup_type): Likewise.
1824         (typy_legacy_template_argument): Likewise.
1825         (typy_template_argument): Likewise.
1826         (gdbpy_lookup_type): Likewise.
1827         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1828         * python/py-block.c (blpy_block_object): Likewise.
1829         (blpy_iter): Likewise.
1830         (blpy_get_start): Likewise.
1831         (blpy_get_end): Likewise.
1832         (blpy_get_function): Likewise.
1833         (blpy_get_superblock): Likewise.
1834         (set_block):  Likewise.
1835         (block_to_block_object): Likewise.
1836         (block_object_to_block): Likewise.
1837         (blpy_is_valid): Likewise.
1838         (blpy_get_global_block): New function.
1839         (blpy_get_static_block): New function.
1840         (blpy_is_global): New function.
1841         (blpy_is_static): New function.
1842         * blockframe.c (block_innermost_frame): Likewise.
1843         * valops.c (value_of_variable): Likewise.
1844         * frame.h: Update prototypes.
1845         * python/python-internal.h: Likewise.
1846         * value.h: Likewise.
1847
1848 2011-10-19  Cary Coutant  <ccoutant@google.com>
1849
1850         * dwarf2read.c (create_debug_types_hash_table): Fix size of
1851         type_offset field.
1852
1853 2011-10-19  Cary Coutant  <ccoutant@google.com>
1854
1855         * dwarf2read.c (peek_abbrev_code): New function.
1856         (dw2_get_file_names): Check for dummy compilation units.
1857         (create_debug_types_hash_table): Likewise.
1858         (process_psymtab_comp_unit): Likewise.
1859         (load_partial_comp_unit): Likewise.
1860         (load_full_comp_unit): Likewise.
1861
1862 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
1863
1864         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1865         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1866         pt_phdr if PT_PHDR was found.
1867
1868 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
1869
1870         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1871         type or "<unnamed type"> when there is no name assigned.
1872         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1873         avoid a sigint when no name is assigned.
1874
1875 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1876
1877         Revert:
1878         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1879         * dwarf2expr.c (ctx_no_read_reg): New function.
1880         * dwarf2expr.h (ctx_no_read_reg): New declaration.
1881         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1882         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1883         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1884
1885 2011-10-16  Doug Evans  <dje@google.com>
1886
1887         * NEWS: Document python gdb.printing.register_pretty_printer's new
1888         `replace' parameter.
1889
1890 2011-10-14  Keith Seitz  <keiths@redhat.com>
1891
1892         PR c++/13225
1893         * eval.c (evaluate_subexp_standard): Do not construct
1894         an array of types; pass the value array directly to
1895         find_overload_match.
1896         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1897         (rank_function): Take an array of values instead of types.
1898         (rank_one_type): Add struct value * parameter.
1899         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1900         (rank_function): For each argument, pass the argument's
1901         value to rank_one_type.
1902         (rank_one_type): Add VALUE parameter.
1903         If the parameter type is a pointer and the argument type
1904         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1905         VALUE is zero.
1906         Update all calls to rank_one_type, passing NULL for new
1907         VALUE parameter.
1908         * valarith.c (value_user_defined_cpp_op): Do not construct
1909         an array of types; pass the value array directly to
1910         find_overload_match.
1911         * valops.c (find_overload_method_list): Take an array of
1912         values instead of types.
1913         Save the type of OBJP for later use.
1914         Update calls to find_oload_champ, and find_oload_champ_namespace.
1915         (find_oload_champ_namespace): Take an array of values instead
1916         of types.
1917         (find_oload_champ_namespace_loop): Likewise.
1918         (find_oload_champ): Likewise.
1919         (classify_oload_match): Inspect all arguments
1920         until INCOMPATIBLE is found. Return the worst badness found
1921         otherwise.
1922         (compare_parameters): Update call to rank_one_type.
1923         * value.h (find_overload_match): Take an array of values instead
1924         of types.
1925
1926 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1927
1928         Drop lazy lm_info reading.
1929         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
1930         l_addr_inferior, l_ld, l_next, l_prev and l_name.
1931         (lm_info_read): New function.
1932         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1933         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
1934         lm_dynamic_from_link_map.
1935         (lm_next, lm_prev, lm_name): Remove.
1936         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1937         initialization incl. read_memory.  No longer use lm_name.
1938         (svr4_free_so): Drop lm_info->lm freeing.
1939         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
1940         explicit lm_addr and lm initialization.
1941         (svr4_read_so_list): Use lm_info_read, drop the initailization of
1942         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
1943         lm_name.
1944
1945 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1946             Paul Pluzhnikov  <ppluzhnikov@google.com>
1947
1948         * defs.h (struct so_list): New forward declaration.
1949         (make_cleanup_free_so): New declaration.
1950         * solib-svr4.c (ignore_first_link_map_entry): Remove.
1951         (svr4_free_so): Move the function here from downwards.  Handle NULL
1952         so->lm_info.
1953         (svr4_free_library_list): New.
1954         (svr4_read_so_list): New, moved here code from svr4_current_sos.
1955         Use more cleanups.  Use new parameter ignore_first instead of
1956         ignore_first_link_map_entry.
1957         (svr4_current_sos): New variable ignore_first, initialize it.  New
1958         variable back_to, use it for svr4_free_library_list protection.
1959         (svr4_free_so): Remove - move upwards.
1960         * utils.c: Include solist.h.
1961         (do_free_so, make_cleanup_free_so): New functions.
1962
1963 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1964
1965         Fix internal error regression.
1966         * value.c (value_primitive_field): Handle value_optimized_out.  Move
1967         packed bitfields comment.
1968
1969 2011-10-13  Tom Tromey  <tromey@redhat.com>
1970
1971         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1972         always released.
1973
1974 2011-10-13  Tom Tromey  <tromey@redhat.com>
1975
1976         * python/py-type.c (typy_has_key): Make 'field' const.
1977
1978 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
1979
1980         * remote.c (remote_save_trace_data): Invert comparison.
1981
1982 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
1983
1984         * tracepoint.c (trace_save_command): Use filename instead of
1985         args when printing.
1986
1987 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1988
1989         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1990         if .size is 0.
1991
1992 2011-10-13  Yao Qi  <yao@codesourcery.com>
1993
1994         PR gdb/12703
1995         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1996         whether insn is a 32-bit Thumb-2 instruction.
1997         (thumb_in_function_epilogue_p): Likewise.
1998         (thumb_get_next_pc_raw): Likewise.
1999         (arm_breakpoint_from_pc): Likewise.
2000
2001 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2002
2003         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2004         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2005         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2006         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2007         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2008         zero DATA.
2009         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2010         validity.
2011         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2012         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2013         clear DATA on zero SIZE.
2014
2015 2011-10-12  Doug Evans  <dje@google.com>
2016
2017         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2018         header->first_die_offset here.  All callers updated.
2019
2020 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2021
2022         Fix compatibility with texinfo versions older than 4.12.
2023         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2024         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2025         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2026         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2027         * configure: Regenerate.
2028         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2029         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2030         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2031
2032 2011-10-12  Gary Benson  <gbenson@redhat.com>
2033
2034         * breakpoint.h (pc_at_non_inline_function): Declare.
2035         * breakpoint.c (is_non_inline_function,
2036         pc_at_non_inline_function): New functions.
2037         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2038         if the stop is at a location where functions cannot be inlined.
2039
2040 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2041
2042         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2043         the core wanted them stopped, or if they now have a pending event
2044         to report.
2045         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2046         down to stop_and_resume_callback.
2047         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2048         having new pending events after calling linux_nat_filter_event.
2049
2050 2011-10-11  Sterling Augustine  <saugustine@google.com>
2051
2052         * dwarf2read.c: Undo inadvertent changes in previous commit.
2053
2054 2011-10-11  Sterling Augustine  <saugustine@google.com>
2055
2056         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2057         logic.
2058
2059 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2060
2061         * symfile.c (separate_debug_file_exists): Fix condition.
2062
2063 2011-10-11  David S. Miller  <davem@davemloft.net>
2064
2065         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2066         static.
2067         * regcache.h (regcache_restore): Remove declaration.
2068
2069         * gdbarch.sh: New field 'long_long_align_bit'.
2070         * gdbarch.c, gdbarch.h: Regenerate.
2071         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2072         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2073
2074 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2075
2076         Revert this part of:
2077         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2078         Support @entry in input expressions.
2079         * c-exp.y (ENTRY, unknown_cpp_name): New.
2080         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2081         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2082         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2083         (name_not_typename: ENTRY): New.
2084         (yylex): Recognize ENTRY.
2085
2086         Reimplement @entry in input expressions.
2087         * c-exp.y (ENTRY): New.
2088         (variable: name_not_typename ENTRY): New.
2089         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2090
2091 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2092
2093         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2094         parent and child's pids as soon as we detect a clone event.
2095         Adjust another debug message.
2096
2097 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2098
2099         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2100         not zombie instead of reading the whole file.
2101
2102 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2103
2104         Fix separate debuginfo warning with "remote:" access.
2105         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2106         * symfile.c (get_file_crc): New function with the code moved from ...
2107         (separate_debug_file_exists): ... this function, specifically variables
2108         buffer and count.  New variable verified_as_different, set it.  Remove
2109         file_crc initialization.  Verify also if both files are not the same
2110         manually, if needed.
2111
2112 2011-10-11  Yao Qi  <yao@codesourcery.com>
2113
2114         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2115         to get address.
2116
2117 2011-10-10  Doug Evans  <dje@google.com>
2118
2119         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2120         libthread_db when we load libpthread or the main symbol file.
2121         (thread_db_inferior_created): New function.
2122         (_initialize_thread_db): Attach inferior_created observer.
2123         * linux-nat.c (linux_child_post_attach): Remove call to
2124         check_for_thread_db.
2125         (linux_child_post_startup_inferior): Ditto.
2126         * objfiles.h (OBJF_MAINLINE): Define.
2127         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2128         allocate_objfile when appropriate.
2129
2130 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2131
2132         PR gdb/13218
2133         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2134         Remove unused variables.
2135         (get_linux_version): Remove function.
2136         (_initialize_arm_linux_nat): Do not call it.
2137
2138 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2139
2140         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2141         new clone lwp if the core asked it to stop.  Don't pass on
2142         unexpected signals to the new clone; leave them pending instead.
2143
2144 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2145
2146         * linux-nat.c (resume_lwp): Remove redundant debug output.
2147
2148 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2149
2150         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2151         last_resume_kind before clearing it, and use the copy instead to
2152         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2153         resume_clear_callback in the non-stop path too.
2154
2155 2011-10-09  Yao Qi  <yao@codesourcery.com>
2156
2157         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2158         Honor OPTIONS and VAL's type.
2159         (common_val_print, value_print): Update to pass one more parameter.
2160
2161 2011-10-09  Doug Evans  <dje@google.com>
2162
2163         Add new "alias" command.
2164         * NEWS: Mention new command.
2165         * command.h (valid_user_defined_cmd_name_p): Declare.
2166         * defs.h (make_cleanup_dyn_string_delete): Declare.
2167         * utils.c: #include "dyn-string.h".
2168         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2169         * cli/cli-cmds.c: #include "dyn-string.h".
2170         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2171         (init_cli_cmds): Add new command.
2172         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2173
2174 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2175
2176         Fix compatibility with older GCCs.
2177         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2178         * stack.c (read_frame_arg): Initialize val_deref.
2179
2180 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2181
2182         Entry values NEWS entries, DWARF disassembly support.
2183         * NEWS: New entry values entry.
2184         (set print entry-values, show print entry-values)
2185         (set debug entry-values, show debug entry-values): New entries.
2186         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2187         indent.  Remove variable start.  Move header printing out.  Respect
2188         INDENT.  Support DW_OP_GNU_entry_value.
2189         (locexpr_describe_location_1): Move the header printing here, extend
2190         the disassemble_dwarf_expression passed parameters.
2191
2192 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2193
2194         Display @entry parameter values even for references.
2195         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2196         coerce_ref_if_computed.
2197         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2198         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2199         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2200         existing push_dwarf_reg_entry_value call.  Add new detection calling
2201         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2202         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2203         * dwarf2expr.h
2204         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2205         parameter deref_size, describe it in the comment.
2206         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2207         (dwarf_block_to_dwarf_reg_deref): New declaration.
2208         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2209         deref_size, describe it in the function comment.  New variables
2210         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2211         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2212         describe it in the function comment.  Fetch the alternative block
2213         accoring to DEREF_SIZE.
2214         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2215         (entry_data_value_free_closure, entry_data_value_funcs): New.
2216         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2217         outer_val, target_val, val and addr.  Try to fetch and create also
2218         referenced value content.
2219         (pieced_value_funcs): NULL value for coerce_ref.
2220         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2221         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2222         coerce_ref_if_computed.
2223         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2224         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2225         * stack.c (read_frame_arg): Compare also dereferenced values.
2226         * value.c (value_computed_funcs): Make the parameter v const, use
2227         value_lval_const for it.
2228         (value_lval_const, coerce_ref_if_computed): New function.
2229         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2230         * value.h (struct lval_funcs): New field coerce_ref.
2231         (value_computed_funcs): Make the parameter v const.
2232         (value_lval_const, coerce_ref_if_computed): New declarations.
2233
2234 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2235
2236         Support @entry in input expressions.
2237         * c-exp.y (ENTRY, unknown_cpp_name): New.
2238         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2239         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2240         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2241         (name_not_typename: ENTRY): New.
2242         (yylex): Recognize ENTRY.
2243         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2244         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2245         Likewise.
2246         * parse.c (operator_length_standard): Likewise.
2247         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2248
2249 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2250
2251         Display referenced values in backtraces.
2252         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2253         * stack.c (print_frame_arg): Likewise.
2254
2255 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2256
2257         Make some lval_funcs methods to default on NULL.
2258         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2259         NULL.
2260         (value_assign): Check if lval_computed write method is NULL.
2261         * value.h (struct lval_funcs): Comment NULL values for read and write
2262         methods.
2263
2264 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2265
2266         Display @entry parameter values (without references).
2267         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2268         New functions.
2269         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2270         New declarations.
2271         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2272         entry record.
2273         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2274         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2275         functions.
2276         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2277         (loclist_read_variable_at_entry): New function.
2278         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2279         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2280         DW_AT_location, call dwarf_block_to_sp_offset for it.
2281         * frame.h (print_entry_values_no, print_entry_values_only)
2282         (print_entry_values_preferred, print_entry_values_if_needed)
2283         (print_entry_values_both, print_entry_values_compact)
2284         (print_entry_values_default, print_entry_values): New declarations.
2285         (struct frame_arg): New field entry_kind.
2286         (read_frame_arg): New parameter entryargp.
2287         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2288         arg->entry_kind.  Optionally print the `@entry' suffix.
2289         (list_args_or_locals): New variable entryarg, initialize it.
2290         Initialize also entry_kind of arg and entryarg.  Conditionalize
2291         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2292         xfree for entryarg.error.
2293         * stack.c (print_entry_values_no, print_entry_values_only)
2294         (print_entry_values_preferred, print_entry_values_if_needed)
2295         (print_entry_values_both, print_entry_values_compact)
2296         (print_entry_values_default, print_entry_values_choices)
2297         (print_entry_values): New variables.
2298         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2299         print the `@entry' suffix, possibly in combination for
2300         print_entry_values_compact.
2301         (read_frame_arg): New parameter entryargp, new variables entryval,
2302         entryval_error and val_equal.  Read in also entryargp, respect
2303         print_entry_values, compare the values using val_equal, fill in also
2304         argp->entry_kind (together with entryargp->entry_kind).
2305         (print_frame_args): New variable entryarg, initialize it.
2306         Conditionalize print_frame_arg for arg, add print_frame_arg for
2307         entryarg.  Call xfree for entryarg.error.
2308         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2309         * symtab.h (struct symbol_computed_ops): New field
2310         read_variable_at_entry.
2311
2312 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2313
2314         Code reshuffle.
2315         * frame.h (struct frame_arg): New definition.
2316         (read_frame_arg): New declaration.
2317         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2318         (list_args_or_locals): ... the code here.  New variable arg, call
2319         read_frame_arg and list_arg_or_local with it.  Unify the
2320         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2321         arg.error.
2322         * stack.c (print_frame_arg): New functiom from the code of
2323         print_frame_args.
2324         (read_frame_arg): New function.
2325         (print_frame_args): Remove variable val.  New variable arg, call
2326         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2327
2328 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2329
2330         Protect entry values against self tail calls.
2331         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2332         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2333
2334 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2335
2336         Recognize virtual tail call frames.
2337         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2338         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2339         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2340         * dwarf2-frame-tailcall.c: New file.
2341         * dwarf2-frame-tailcall.h: New file.
2342         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2343         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2344         REGS.PREV only after CIE execution.
2345         (struct dwarf2_frame_cache): New field tailcall_cache.
2346         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2347         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2348         parts, try to find entry_cfa_sp_offset.  Call
2349         dwarf2_tailcall_sniffer_first.
2350         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2351         when appropriate.
2352         (dwarf2_frame_dealloc_cache): New function.
2353         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2354         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2355         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2356         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2357         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2358         * dwarf2loc.c (func_addr_to_tail_call_list)
2359         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2360         (call_site_find_chain_1, call_site_find_chain): New.
2361         * dwarf2loc.h (struct call_site_chain): New.
2362         (call_site_find_chain): New declaration.
2363         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2364         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2365         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2366         * stack.c (frame_info): Support also TAILCALL_FRAME.
2367
2368 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2369
2370         Tail call sites reader implementation.
2371         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2372         fill in TYPE_TAIL_CALL_LIST.
2373         * gdbtypes.h (struct func_type): New field tail_call_list.
2374         (struct call_site): New field tail_call_next.
2375         (TYPE_TAIL_CALL_LIST): New definition.
2376
2377 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2378
2379         Implement basic support for DW_TAG_GNU_call_site.
2380         * block.c: Include gdbtypes.h and exceptions.h.
2381         (call_site_for_pc): New function.
2382         * block.h (call_site_for_pc): New declaration.
2383         * defs.h: Include hashtab.h.
2384         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2385         declarations.
2386         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2387         ctx_no_push_dwarf_reg_entry_value.
2388         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2389         (dwarf_block_to_dwarf_reg): New function.
2390         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2391         (ctx_no_push_dwarf_reg_entry_value): New function.
2392         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2393         push_dwarf_reg_entry_value.
2394         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2395         declarations.
2396         * dwarf2loc.c: Include gdbcmd.h.
2397         (dwarf_expr_ctx_funcs): New forward declaration.
2398         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2399         (dwarf_expr_reg_to_entry_parameter)
2400         (dwarf_expr_push_dwarf_reg_entry_value): New.
2401         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2402         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2403         (needs_dwarf_reg_entry_value): New function.
2404         (needs_frame_ctx_funcs): Install it.
2405         (_initialize_dwarf2loc): New function.
2406         * dwarf2loc.h (entry_values_debug): New declaration.
2407         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2408         (read_call_site_scope): New forward declaration.
2409         (process_full_comp_unit): Copy call_site_htab.
2410         (process_die): Support DW_TAG_GNU_call_site.
2411         (read_call_site_scope): New function.
2412         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2413         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2414         (cleanup_htab): Delete.
2415         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2416         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2417         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2418         FIELD_LOC_KIND_DWARF_BLOCK.
2419         * gdbtypes.h (enum field_loc_kind): New entry
2420         FIELD_LOC_KIND_DWARF_BLOCK.
2421         (struct main_type): New loc entry dwarf_block.
2422         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2423         (TYPE_FIELD_DWARF_BLOCK): New.
2424         * python/py-type.c: Include dwarf2loc.h.
2425         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2426         internal_error call on unknown FIELD_LOC_KIND.
2427         * symtab.h (struct symtab): New field call_site_htab.
2428         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2429         (core_addr_hash, core_addr_eq): New functions.
2430
2431 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2432
2433         Code reshuffle.
2434         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2435         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2436         calling_convention under func_stuff there.
2437         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2438         (init_type) <TYPE_CODE_FUNC>: Likewise.
2439         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2440         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2441         * gdbtypes.h (enum type_specific_kind): Change
2442         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2443         (struct main_type) <type_specific>: Change calling_convention to
2444         func_stuff.  Move calling_convention to ...
2445         (struct func_type): ... this new struct.
2446         (INIT_FUNC_SPECIFIC): New #define.
2447         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2448
2449 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2450
2451         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2452         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2453         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2454         ctx->ref_addr_size.  Handle its invalid value.
2455         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2456         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2457         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2458         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2459         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2460         (dwarf2_per_cu_ref_addr_size): New function.
2461
2462 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2463
2464         Code cleanup.
2465         * dwarf2read.c (per_cu_header_read_in): New function.
2466         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2467         variables cu_header_local and cu_headerp.
2468
2469 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2470
2471         Fix initial language detection with -readnow.
2472         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2473         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2474         searches only for global symbols.
2475
2476 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2477
2478         Fix printed anonymous struct name.
2479         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2480         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2481         (anonymous_struct_prefix): New function.
2482         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2483         (dwarf2_name): Strip for anonymous structs any prefixes.
2484
2485 2011-10-07  Doug Evans  <dje@google.com>
2486
2487         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2488         `replace'.
2489
2490         * python/lib/gdb/printing.py: Whitespace cleanup.
2491
2492         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2493         warning.
2494
2495 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2496
2497         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2498         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2499         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2500         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2501         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2502         (arm_linux_remove_watchpoint): Adjust.
2503         * i386-linux-nat.c (i386_linux_dr_set_control)
2504         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2505         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2506         (ia64_linux_remove_watchpoint): Adjust.
2507         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2508         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2509         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2510         (ppc_linux_insert_mask_watchpoint)
2511         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2512         (ppc_linux_remove_watchpoint): Adjust.
2513         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2514         Adjust.
2515
2516 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2517
2518         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2519         (clear_win32_environment): New function for Cygwin to clear out
2520         Win32 environment.
2521         (windows_create_inferior): Prepare new environment from in_env
2522         for Cygwin, too.
2523
2524 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2525
2526         PR python/13264
2527         * python/py-value.c (valpy_call): Check that arguments are
2528         a tuple.
2529         (is_intlike): Remove call to CHECK_TYPEDEF.
2530         (valpy_nonzero): Catch GDB exceptions.
2531         (valpy_absolute): Ditto.
2532         (valpy_lazy_string): Ditto.
2533         (valpy_call): Ditto.
2534         (valpy_get_is_optimized_out): Ditto.
2535         (valpy_long): Ditto.
2536         (valpy_float): Ditto.
2537         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2538         (valpy_richcompare): Ditto.
2539
2540 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2541
2542         * inferior.h (disable_randomization): Declare.
2543         * infrun.c (disable_randomization): New global variable.
2544         (show_disable_randomization): New function.
2545         (set_disable_randomization): Likewise.
2546         (_initialize_infrun): Install set/show disable-randomization
2547         commands.
2548         * linux-nat.c (disable_randomization): Remove.
2549         (show_disable_randomization): Likewise.
2550         (set_disable_randomization): Likewise.
2551         (_initialize_linux_nat): No longer install set/show
2552         disable-randomization commands here.
2553         (linux_nat_supports_disable_randomization): New function.
2554         (linux_nat_add_target): Install it.
2555         * remote.c (PACKET_QDisableRandomization): New enum value.
2556         (remote_protocol_packets): Support QDisableRandomization.
2557         (_initialize_remote): Likewise.
2558         (remote_supports_disable_randomization): New function.
2559         (init_remote_ops): Install it.
2560         (extended_remote_supports_disable_randomization): New function.
2561         (init_extended_remote_ops): Install it.
2562         (extended_remote_disable_randomization): New function.
2563         (extended_remote_create_inferior_1): Call it.
2564         * target.h (struct target_ops): Add to_supports_disable_randomization.
2565         (target_supports_disable_randomization): Add prototype.
2566         * target.c (target_supports_disable_randomization): New function.
2567         (find_default_supports_disable_randomization): Likewise.
2568         (init_dummy_target): Install it.
2569
2570 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2571
2572         Allow Python notification of new object-file loadings.
2573         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2574         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2575         Add build rule for this file.
2576         * python/py-event.h (emit_new_objfile_event): New prototype.
2577         (newobjfile): New Python event emitter.
2578         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2579         Python event registry.
2580         * python/py-inferior.c: Include objfiles.h
2581         (python_new_objfile): New function.
2582         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2583         observers.
2584         * python/py-newobjfileevent.c: New file.
2585         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2586         prototype.
2587         * python/python.c (_initialize_python): Add 
2588         gdbpy_initialize_new_objfile_event call.
2589         * NEWS: Add item for new Python event "gdb.newobjfile"
2590
2591 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2592
2593         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2594         Extract the ravenscar task name from the symbol for the atcb.
2595
2596 2011-10-04  Paul Koning  <paul_koning@dell.com>
2597
2598         * python/py-type.c (typy_make_iter): Add forward declaration.
2599         (typy_fields_items):  Use the gdb.Type iterator.
2600
2601 2011-10-04  Paul Koning  <paul_koning@dell.com>
2602
2603         * NEWS: Add entry for Python gdb.Type mapping methods.
2604
2605 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2606
2607         PR python/12691: Add the inferior to Python exited event
2608         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2609         to exited_event.
2610         * python/py-event.h (emit_exited_event): Likewise
2611         * python/-inferior.c (python_inferior_exit): Likewise
2612
2613 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2614
2615         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2616         in output of -ada-task-info GDB/MI command.
2617
2618 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2619
2620         * ada-lang.h (struct inferior): Declare.
2621         (print_ada_task_info): Add declaration.
2622         * ada-tasks.c (print_ada_task_info): Make non-static.
2623         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2624         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2625         * mi/mi-main.c: #include "ada-lang.h".
2626         (mi_cmd_list_features): Add "ada-task-info" to the list
2627         of supported features.
2628         (mi_cmd_ada_task_info): New function.
2629
2630 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2631
2632         * python/python.c (python_run_simple_file): New function.
2633         (source_python_script, source_python_script_for_objfile):
2634         Replace call to PyRun_SimpleFile by call to
2635         python_run_simple_file.
2636
2637 2011-10-03  Paul Koning  <paul_koning@dell.com>
2638
2639         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2640         (value_to_value_object): Fetch value if it was lazy.
2641
2642 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2643
2644         Code cleanup.
2645         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
2646         Rearrange the code for it.
2647
2648 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
2649
2650         * breakpoint.c (bkpt_print_recreate): Add call to
2651         print_recreate_thread.
2652
2653 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
2654
2655         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2656         PTRACE_GETFDPIC_INTERP): Define.
2657
2658 2011-09-28  Yao Qi  <yao@codesourcery.com>
2659
2660         * symfile.c (add_symbol_file_command): Update message on usage.
2661
2662 2011-09-28  Paul Koning  <paul_koning@dell.com>
2663
2664         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2665         (typy_length, typy_get, typy_has_key, typy_make_iter)
2666         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2667         (typy_iterator_iter, typy_iterator_iternext)
2668         (typy_iterator_dealloc): New functions to implement standard
2669         Python mapping methods on gdb.Type object.
2670         (gdb.TypeIterator): New Python type.
2671         * python/python-internal.h (gdbpy_iter_kind): New enum.
2672
2673 2011-09-28  David S. Miller  <davem@davemloft.net>
2674
2675         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2676         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2677         * sparc-tdep.c (sparc_complex_floating_p): New function.
2678         (sparc32_store_arguments): Handle complex floats.
2679         (sparc32_extract_return_value): Likewise.
2680         (sparc32_store_return_value): Likewise.
2681         (sparc32_stabs_argument_has_addr): Likewise.
2682         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2683         (sparc64_store_floating_fields): Handle complex floats.
2684         (sparc64_store_arguments): Likewise.
2685         (sparc64_store_return_value): Likewise.
2686
2687 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
2688
2689         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2690         before the change on 2006-12-09.
2691         (windows_create_inferior) [!__CYGWIN__]: Restore code that
2692         generates the environment block for CreateProcessA, modulo the
2693         Cygwin-specific parts that are not needed here.
2694
2695 2011-09-27  Tristan Gingold  <gingold@adacore.com>
2696
2697         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2698         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2699         (darwin_solib_get_all_image_info_addr_at_init): New function.
2700         (darwin_solib_read_all_image_info_addr): Likewise.
2701         (darwin_solib_create_inferior_hook): Use the above two functions.
2702         * darwin-nat.c (darwin_execvp): Renames retval to res.
2703         (darwin_read_write_inferior): Update comment.
2704         (darwin_read_dyld_info): New function.
2705         (darwin_xfer_partial): Handle DYLD_INFO.
2706
2707 2011-09-27  Stan Shebs  <stan@codesourcery.com>
2708
2709         Add return address collection for tracepoints.
2710         * tracepoint.c (encode_actions_1): Add case for $_ret.
2711         (validate_actionline): Check for $_ret.
2712         (trace_dump_actions): Ditto.
2713         * ax-gdb.h (gen_trace_for_return_address): Declare.
2714         * ax-gdb.c: Include arch-utils.h.
2715         (gen_trace_for_return_address): New function.
2716         (agent_command): Add return address special case.
2717         * amd64-tdep.c: Include ax.h and ax-gdb.h.
2718         (amd64_gen_return_address): New function.
2719         (amd64_init_abi): Call it.
2720         * i386-tdep.c: Include ax.h and ax-gdb.h.
2721         (i386_gen_return_address): New function.
2722         (i386_init_abi): Call it.
2723         * arch-utils.h (default_gen_return_address): Declare.
2724         * arch-utils.c (default_gen_return_address): New function.
2725         * gdbarch.sh (gen_return_address): New method.
2726         * gdbarch.h, gdbarch.c: Regenerate.
2727
2728 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
2729
2730         PR gdb/13079
2731         * i386-tdep.c (i386_frame_align): New.
2732         (i386_gdbarch_init): Use i386_frame_align.
2733
2734 2011-09-23  Yao Qi  <yao@codesourcery.com>
2735
2736         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2737         to get address.
2738
2739 2011-09-22  Tristan Gingold  <gingold@adacore.com>
2740
2741         * fork-child.c (fork_inferior): Add exec_fun parameter.
2742         Call exec_fun or execvp.
2743         * inferior.h: Adjust prototype.
2744         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2745         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2746         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2747         * procfs.c (procfs_create_inferior): Ditto.
2748         * darwin-nat.c (darwin_execvp): New function.
2749         (darwin_create_inferior): Use it.
2750
2751 2011-09-22  Yao Qi  <yao@codesourcery.com>
2752
2753         * infrun.c (context_switch): Print debug message when switching to
2754         a different thread.
2755
2756 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
2757
2758         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2759         complex and vector types.
2760         (s390_return_value_convention): Likewise.
2761
2762         (s390_value_from_register): Call check_typedef.
2763         (extend_simple_arg): Likewise.
2764         (alignment_of): Likewise.
2765         (s390_push_dummy_call): Likewise.
2766         (s390_return_value): Likewise.
2767
2768 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * event-top.c (async_disconnect): If an exception is thrown from
2771         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
2772         catch_errors.
2773         * top.c (quit_cover): Return void and take no arguments.
2774         * top.h (quit_cover): Update prototype.
2775
2776 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
2777
2778         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2779         current_uiout, not uiout.
2780
2781 2011-09-19  Doug Evans  <dje@google.com>
2782
2783         * python/py-auto-load.c (source_section_scripts): Fix file
2784         descriptor leak.
2785         * python/python.c (source_python_script_for_objfile): Tweak comments.
2786
2787 2011-09-18  Yao Qi  <yao@codesourcery.com>
2788             Ulrich Weigand  <ulrich.weigand@linaro.org>
2789
2790         Support displaced stepping for Thumb 16-bit insns.
2791         * arm-tdep.c (THUMB_NOP) Define.
2792         (thumb_copy_unmodified_16bit): New.
2793         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2794         (thumb_copy_alu_reg): New.
2795         (arm_copy_svc): Move some common code to ...
2796         (install_svc): ... here.  New.
2797         (thumb_copy_svc): New.
2798         (install_pc_relative): New.
2799         (thumb_copy_pc_relative_16bit): New.
2800         (thumb_decode_pc_relative_16bit): New.
2801         (thumb_copy_16bit_ldr_literal): New.
2802         (thumb_copy_cbnz_cbz): New.
2803         (cleanup_pop_pc_16bit_all): New.
2804         (thumb_copy_pop_pc_16bit): New.
2805         (thumb_process_displaced_16bit_insn): New.
2806         (thumb_process_displaced_32bit_insn): New.
2807         (thumb_process_displaced_insn): process thumb instruction.
2808
2809         Support displaced stepping for Thumb 32-bit insns.
2810         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2811         (thumb2_copy_preload): New.
2812         (thumb2_copy_copro_load_store): New.
2813         (thumb2_copy_b_bl_blx): New.
2814         (thumb2_copy_alu_imm): New.
2815         (thumb2_copy_load_reg_imm): New.
2816         (thumb2_copy_load_literal): New
2817         (thumb2_copy_block_xfer): New.
2818         (thumb_32bit_copy_undef): New.
2819         (thumb_32bit_copy_unpred): New.
2820         (thumb2_decode_ext_reg_ld_st): New.
2821         (thumb2_decode_svc_copro): New.
2822         (decode_thumb_32bit_store_single_data_item): New.
2823         (thumb_copy_pc_relative_32bit): New.
2824         (thumb_decode_pc_relative_32bit): New.
2825         (decode_thumb_32bit_ld_mem_hints): New.
2826         (thumb2_copy_table_branch): New
2827         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2828         instructions.
2829
2830 2011-09-18  Yao Qi  <yao@codesourcery.com>
2831
2832         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2833         (install_b_bl_blx): Likewise.
2834
2835 2011-09-17  Yao Qi  <yao@codesourcery.com>
2836
2837         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2838         (install_load_store): ... this.  New.
2839         Change parameter BYTE to SIZE.
2840         (arm_copy_ldr_str_ldrb_strb): Update caller.
2841         (arm_decode_ld_st_word_ubyte): Update caller.
2842
2843 2011-09-17  Yao Qi  <yao@codesourcery.com>
2844
2845         * infrun.c (displaced_step_fixup): Move some code ...
2846         (displaced_step_restore): ... here.  New function.
2847         (handle_inferior_event): Cleanup displaced stepping state for both
2848         child and parent when get forked or vforked event.
2849         * regcache.c (get_thread_arch_aspace_regcache): New function.
2850         get_thread_arch_regcache (): Call it.
2851
2852 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2853
2854         * ada-tasks.c (print_ada_task_info): New function, merging
2855         short_task_info and info_tasks together.  Reimplement using
2856         ui-out instead of printing to stdout directly.  Move the code
2857         building and checking the task list here, instead of leaving it
2858         in info_tasks_command.
2859         (info_task): Move the code building and checking the task
2860         list here, instead of leaving it in info_tasks_command.
2861         (info_tasks_command): Delete code building and checking
2862         the task list - moved elsewhere.  Update calls to info_tasks
2863         and info_task.
2864
2865 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2866
2867         * ada-tasks.c (info_task): Delete parameter `from_tty'.
2868
2869 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2870
2871         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2872
2873 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2874
2875         * ada-lang.h (ada_build_task_list): Remove parameter
2876         `warn_if_null'.
2877         * ada-tasks.c (ada_build_task_list): Remove parameter
2878         `warn_if_null'.  Adjust implementation and documentation.
2879         (valid_task_id, ada_get_environment_task)
2880         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2881         (info_tasks_command): Adjust implementation.
2882         (task_command): Likewise.
2883         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2884         to ada_build_task_list.
2885
2886 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2887
2888         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2889         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2890         (ada_tasks_inferior_data_handle): New static global.
2891         (get_ada_tasks_inferior_data): New function.
2892         (ada_get_task_number, get_task_number_from_id, valid_task_id)
2893         (ada_get_environment_task, iterate_over_live_ada_tasks)
2894         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2895         Adjust.
2896         (ada_set_current_inferior_known_tasks_addr): New function.
2897         (read_known_tasks, ada_build_task_list, short_task_info)
2898         (info_tasks, info_task, info_tasks_command, task_command_1)
2899         (task_command, ada_task_list_changed): Adjust.
2900         (ada_tasks_invalidate_inferior_data): New function.
2901         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2902         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2903         * ada-lang.h (struct inferior): Add declaration.
2904         (ada_task_list_changed): Update profile.
2905         * remote-wtx-pd.c: #include "inferior.h".
2906         (switch_to_pd_internal): Update call to ada_task_list_changed.
2907
2908 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2909
2910         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2911         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2912         (atcb_fieldno): Delete these static globals.
2913         (struct ada_tasks_pspace_data): New struct.
2914         (ada_tasks_pspace_data_handle): New static global.
2915         (get_ada_tasks_pspace_data): New function.
2916         (ada_tasks_invalidate_pspace_data): New function.
2917         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2918         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2919         (_initialize_tasks): Create this module's per-progspace
2920         data handle.
2921
2922 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
2923
2924         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2925
2926 2011-09-16  Tristan Gingold  <gingold@adacore.com>
2927
2928         * fork-child.c (fork_inferior): Update comment.  Use alloca
2929         instead of xmalloc for argv.  Move len and shell_command
2930         declarations in the block where they are used.
2931         Only call execvp.  Factorize failure code.
2932
2933 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
2934
2935         Code cleanup.
2936         * parse.c (write_exp_elt): Change argument to pass a pointer of union
2937         `exp_element' instead of an element of the same and make the function
2938         static.
2939         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2940         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2941         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2942         Change argument of `write_exp_elt' function call.
2943         Remove extra spaces from comments.
2944         * parser-defs.h (write_exp_elt): Remove prototype.
2945
2946 2011-09-15  Paul Koning  <paul_koning@dell.com>
2947
2948         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2949         count of item appended to list.
2950         * python/py-type.c (typy_fields): Likewise.
2951
2952 2011-09-15  Paul Koning  <paul_koning@dell.com>
2953
2954         * MAINTAINERS (Write After Approval): Add myself to the list.
2955
2956 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2957
2958         PR threads/12628
2959         * linux-fork.c (checkpoint_command): Disallow checkpointing of
2960         processes with multiple threads.
2961         (inf_has_multiple_thread_cb): New function.
2962         (inf_has_multiple_threads): New function.
2963
2964 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2965
2966         PR Python/12692 Add gdb.selected_inferior() to Python interface.
2967         * python/py-inferior.c (GdbMethods): New Python method definition.
2968
2969 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2970
2971         Handle multiple breakpoint hits in Python interface:
2972         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2973         variable to breakpoints.
2974         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2975         bps instead of single breakpoint. Fix some space typos.
2976         * python/py-stopevent.c (create_breakpoint_event_object): Rename
2977         variable to breakpoints.
2978
2979 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2980
2981         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2982         note if the breakpoint is internal.
2983
2984 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
2985
2986         * MAINTAINERS (Write After Approval): Add myself to the list
2987
2988 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
2989
2990         * infrun.c (prepare_for_detach, wait_for_inferior)
2991         (fetch_inferior_event): Don't flush the register cache.
2992         * remote.c (struct stop_reply) <regcache>: Add comment.
2993
2994 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2995
2996         Remove excessive DWARF expressions memory duplication.
2997         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2998         for block.data.
2999         (indirect_pieced_value): Remove variable result.  Remove variable
3000         back_to and its use for baton.data.
3001         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3002         block.data.
3003         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3004         Update the function comment.
3005
3006 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3007
3008         * inferior.h (ALL_INFERIORS): New.
3009         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3010         for a stopped thread.
3011         (thread_db_find_new_threads): Look for threads in all inferiors.
3012
3013 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3014
3015         * breakpoint.c (update_watchpoint): Handle the case of the
3016         watchpoint to update not being in the breakpoint list yet.
3017         (hw_watchpoint_use_count): New, factored out from
3018         hw_watchpoint_used_count.
3019         (hw_watchpoint_used_count): Rename to ...
3020         (hw_watchpoint_used_count_others): ... this.  Add `except'
3021         parameter.  Don't count resources of `except'.  Use
3022         hw_watchpoint_use_count.
3023
3024 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3025
3026         * gdbthread.h (enum thread_state): Moved here.
3027         (struct thread_info): Rename `executing_' field to `executing' and
3028         `state_' to `state'.
3029         * thread.c (enum thread_state): Moved to gdbthread.h.
3030         (new_thread, add_thread_silent, delete_thread_1)
3031         (any_live_thread_of_process, thread_alive, set_running)
3032         (set_running, is_thread_state, any_running, is_executing)
3033         (set_executing, finish_thread_state, print_thread_info)
3034         (do_captured_thread_select): Adjust.
3035
3036 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3037
3038         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3039         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3040
3041 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3042             Matt Rice  <ratmice@gmail.com>
3043
3044         PR gdb/13175
3045
3046         * interps.c (struct interp) <interpreter_out>: Delete field.
3047         (interp_new): Remove the data and uiout parameters and adjust.
3048         (interp_set): Only set the current_uiout from the interpreter's
3049         uiout after initializing the interpreter.  Adjust call to
3050         init_proc.
3051         (interp_ui_out): Adjust to call procs->ui_out_proc.
3052         (interp_data, interp_name): New.
3053         * interps.h (interp_init_ftype): Add `self' parameter.
3054         (interp_ui_out_ftype): New typedef.
3055         (struct interp_procs) <ui_out_proc>: New method pointer.
3056         (interp_new): Remove the data and uiout parameters.
3057         (interp_data, interp_name): Declare.
3058         * tui/tui-interp.c (tui_init): Adjust prototype.
3059         (tui_ui_out): New.
3060         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3061         tui_out here.  Adjust call to interp_new.
3062         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3063         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3064         (cli_ui_out): New.
3065         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3066         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3067         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3068         Initialize mi->uiout depending on the mi_version as extracted from
3069         the interpreter's name.
3070         (mi_ui_out): New.
3071         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3072         interp_new.  Don't allocate the ui_out's of the interpreters here.
3073
3074 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3075
3076         * solib.c (solib_used): New function.
3077         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3078         by another so_list object before freeing it.
3079
3080 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3081
3082         Code cleanup.
3083         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3084         values.
3085
3086 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3087
3088         Code cleanup.
3089         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3090         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3091         parameters.  No longer use amd64_prologue_line_bug.
3092         * defs.h (producer_is_gcc_ge_4): New declaration.
3093         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3094         (process_full_comp_unit): Update its caller.  Remove
3095         amd64_prologue_line_bug initialization.
3096         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3097         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3098
3099 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3100
3101         * linux-nat.h (enum resume_kind): New.
3102         (struct lwp_info) <last_resume_kind>: New field.
3103         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3104         resume_stop on the new lwp.
3105         (add_lwp): Set last_resume_kind as resume_continue by default.
3106         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3107         (resume_lwp): New, factored out from resume_callback.  Also check
3108         for pending status in lp->waitstatus.
3109         (resume_callback): Reimplement.
3110         (resume_clear_callback): Set last_resume_kind as resume_stop.
3111         (resume_set_callback): Set last_resume_kind as resume_continue.
3112         (linux_nat_resume, linux_handle_extended_wait): Set
3113         last_resume_kind.
3114         (running_callback): Also check lp->waitstatus for pending events.
3115         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3116         is resume_step.
3117         (stop_and_resume_callback): Don't re-resume if the core wanted the
3118         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3119         using an invalidated pointer.
3120         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3121         SIGSTOPs if the core wanted the LWP to stop.
3122         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3123         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3124         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3125         of TARGET_SIGNAL_STOP.
3126         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3127         here.  Instead, signal the lwp, and set the last_resume_kind to
3128         resume_stop.
3129
3130 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3131
3132         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3133         -1 (error), if the lwp exits right after attaching.
3134
3135 2011-09-08  Doug Evans  <dje@google.com>
3136
3137         * py-cmd.c: Some minor formatting fixes.
3138         (gdbpy_parse_command_name): Rename text arg to name, make const.
3139         All callers updated.
3140         * python-internal.h (gdbpy_parse_command_name): Update.
3141
3142         * cli/cli-decode.c (add_cmd): Add comment.
3143
3144 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3145
3146         PR breakpoints/12435
3147         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3148         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3149         * dwarf2read.c (process_full_comp_unit): Initialize
3150         amd64_prologue_line_bug.
3151         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3152
3153 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3154
3155         Fix TUI screen corruption.
3156         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3157         batch_flag.
3158
3159 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3160
3161         * findvar.c (read_var_value): Never return NULL, throw an error
3162         instead.  Update the function comment.  State symbol name in the error
3163         messages.
3164         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3165         read_var_value.
3166         * stack.c (print_frame_args): Likewise.
3167         * valops.c (value_of_variable): Likewise.
3168
3169 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3170
3171         * stack.c (print_frame_args): New variable except.  Wrap
3172         read_var_value and common_val_print into TRY_CATCH.
3173
3174 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3175
3176         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3177         caller to value_of_this.
3178         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3179         Twice.
3180         * valops.c (value_of_this): Remove parameter complain and variable ret.
3181         Update function comment.  Never return NULL by this code.
3182         (value_of_this_silent): New function.
3183         * value.h (value_of_this): Remove parameter complain.
3184         (value_of_this_silent): New declaration.
3185
3186 2011-09-07  Yao Qi  <yao@codesourcery.com>
3187
3188         * gdbthread.h (struct thread_info): Remove fields
3189         `stepping_through_solib_after_catch' and
3190         `stepping_through_solib_catchpoints'.
3191         * infrun.c (init_thread_stepping_state): Update.
3192         (process_event_stop_test, currently_stepping): Update.
3193         (currently_stepping_or_nexting_callback): Update.
3194
3195 2011-09-07  Yao Qi  <yao@codesourcery.com>
3196
3197         * gdbthread.h (struct thread_info): Comment on field
3198         `step_after_step_resume_breakpoint'.
3199
3200 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3201
3202         * remote.c (remote_console_output): Reindent.
3203
3204 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3205
3206         * frame.c (has_stack_frames): Check for currently selected
3207         traceframe.
3208
3209 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3210
3211         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3212         (set_async_annotation_level, set_async_prompt, pop_prompt)
3213         (push_prompt, new_async_prompt): Delete declarations.
3214         * top.h (get_prompt, set_prompt): Change prototype.
3215         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3216         declarations.
3217         * top.c (command_loop):
3218         (top_prompt): New global.
3219         (get_prefix, set_prefix, get_suffix, ): Delete.
3220         (get_prompt, set_prompt): Rewrite.
3221         (show_new_async_prompt): Rename to ...
3222         (show_prompt): ... this.
3223         (init_main): Adjust.  Don't handle --annotate=2 here.
3224         * event-top.c (new_async_prompt): Delete.
3225         (the_prompts): Delete.
3226         (more_to_come): Make static.
3227         (display_gdb_prompt): Use top_level_prompt() to compute the top
3228         level prompt, and don't notify the before_prompt observers
3229         directly here.  Always trick readline into not trying to display
3230         the prompt if sync_execution and displaying the primary prompt.
3231         If displaying a local/secondary prompt, always show it, even if
3232         sync_execution is set.
3233         (change_annotation_level): Delete.
3234         (top_level_prompt): New, based on change_annotation_level.
3235         (push_prompt, pop_prompt): Delete.
3236         (async_disable_stdin): No longer pushes prompt.
3237         (command_line_handler): No longer pushes or pops prompt.  If more
3238         input is expected, call display_gdb_prompt with an explicit empty
3239         prompt.
3240         (async_stop_sig): Adjust.
3241         (set_async_annotation_level, set_async_prompt): Delete.
3242         * python/python.c (before_prompt_hook): Adjust.
3243
3244 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3245
3246         PR cli/13110
3247
3248         * infrun.c (fetch_inferior_event): Check if there's a selected
3249         thread before checking if the selected thread is executing.
3250
3251 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3252
3253         * inf-loop.c (execute_command): Don't check if the current thread
3254         if running before synchronously waiting for command completion.
3255         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3256         here.
3257         (normal_stop): Call async_enable_stdin here.
3258         * inf-loop.c (inferior_event_handler): Don't call
3259         async_enable_stdin, nor handle "set exec-done-display" here.
3260
3261 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3262
3263         GDB 7.3.1 released.
3264
3265 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3266
3267         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3268
3269 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3270
3271         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3272
3273 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3274
3275         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3276
3277 2011-09-02  Matt Rice  <ratmice@gmail.com>
3278
3279         PR gdb/10720
3280         * event-top.c (cli_command_loop): Replace readline setup with
3281         direct call to display_gdb_prompt.
3282         (display_gdb_prompt): Do not call observer mechanism during
3283         synchronous execution.
3284
3285 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3286
3287         * linux-nat.c (in_pid_list_p): New.
3288         (linux_record_stopped_pid): Delete.
3289         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3290         already attached to the LWP.  Return an indication if so.
3291         (linux_nat_filter_event): Adjust.
3292         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3293         returning an indication to ignore this thread.
3294
3295 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3296
3297         * top.c: Include interps.h.
3298         (execute_command): If the target can async, but the interpreter is
3299         in sync mode, synchronously wait for the command to finish before
3300         returning.
3301         (execute_command_to_string): Force the interpreter to sync mode.
3302         * infrun.c: Include interps.h.
3303         (fetch_inferior_event): Don't restore the prompt yet if the
3304         interpreter is in sync mode.
3305         * interps.c (interpreter_async): New global.
3306         * interps.h (interpreter_async): Declare.
3307         * inf-loop.c: Include interps.h.
3308         (inferior_event_handler): Don't print the language change or run
3309         breakpoint commands yet if the interpreter in is sync mode.
3310         * main.c (captured_command_loop): Flip the interpreter to async
3311         mode.
3312         * cli/cli-script.c: Include interps.h.
3313         (execute_user_command, while_command, if_command): Force the
3314         interpreter to sync mode.
3315         * python/python.c: Include interps.h.
3316         (python_command, execute_gdb_command): Force the interpreter to
3317         sync mode.
3318
3319 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3320
3321         * value.c (show_convenience): Catch errors thrown while printing
3322         each internal variable.
3323         * infrun.c (validate_siginfo_access): New function.
3324         (siginfo_value_read, siginfo_value_write): Call it.
3325
3326 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3327
3328         Revert:
3329         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3330         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3331         attribute.
3332
3333 2011-08-29  Yao Qi  <yao@codesourcery.com>
3334
3335         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3336         (cmp_name): New.
3337         (enable_break2): Update caller.
3338         * solib-frv.c (bfd_lookup_symbol): Removed.
3339         (cmp_name): New.
3340         (enable_break2): Update caller.
3341         * solib-pa64.c (bfd_lookup_symbol): Removed.
3342         (cmp_name): New.
3343         * solib-svr4.c (bfd_lookup_symbol): Removed.
3344         (cmp_name_and_sec_flags): New.
3345         (enable_break): Update caller.
3346         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3347         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3348         (gdb_bfd_lookup_symbol): New.
3349         * solib.h: Functions declarations.
3350
3351 2011-08-29  Yao Qi  <yao@codesourcery.com>
3352
3353         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3354         and solib-dsbt.o.
3355
3356 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3357
3358         Fix TUI stepi on code without symbols.
3359         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3360         current PC instead.
3361
3362 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3363
3364         Code cleanup.
3365         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3366         and the static keyword.
3367         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3368         Make prefix an array.
3369         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3370         * mi/mi-main.c (get_register): Remove stb initialization and the static
3371         keyword.
3372
3373 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3374
3375         Code cleanup - make mi_opt const.
3376         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3377         opts const.
3378         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3379         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3380         (mi_cmd_env_dir): Likewise.
3381         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3382         (mi_cmd_target_file_put): Likewise.
3383         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3384         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3385         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3386         (mi_valid_noargs): Make opts const.
3387         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3388         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3389         (mi_cmd_data_read_memory): Likewise.
3390         (mi_cmd_data_read_memory_bytes): Likewise.
3391         (mi_cmd_data_write_memory): Likewise.
3392
3393 2011-08-26  Matt Rice  <ratmice@gmail.com>
3394
3395         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3396         bcache_xmalloc,  replace bcache_xmalloc with call to
3397         psymbol_bcache_init for psymbol_cache.
3398         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3399
3400 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3401
3402         * inf-loop.c (inferior_event_handler): Add exception_print in
3403         INF_EXEC_COMPLETE.
3404
3405 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3406
3407         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3408         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3409         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3410         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3411         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3412         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3413         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3414         * infrun.c (fetch_inferior_event): Call
3415         make_bpstat_clear_actions_cleanup.
3416         * top.c (execute_command): New variable cleanup_if_error, call
3417         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3418         * utils.c (do_bpstat_clear_actions_cleanup)
3419         (make_bpstat_clear_actions_cleanup): New functions.
3420
3421 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3422
3423         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3424         either the parent or the child forks.  Rename a couple locals.
3425
3426 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3427
3428         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3429         library call.  Avoid reading the `status' local if all waitpid
3430         calls failed.
3431
3432 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3433
3434         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3435         opening /proc/PID/task always succeeds.
3436
3437 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3438
3439         * linespec.c (symtab_from_filename): Check for the end of string.
3440
3441 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3442
3443         PR mi/11912
3444         * varobj.c (cplus_describe_child): Add the keyword
3445         'class' to the output of the method when dealing 
3446         with a cast to a base class.
3447
3448 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3449
3450         No functionality change.
3451         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3452         function comment a reference, new variables tp and bs, move here code
3453         from throw_exception.
3454         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3455         describe it in the comment.
3456         * exceptions.c (throw_exception): Remove variable tp, move the code for
3457         bpstat_clear_actions to bpstat_clear_actions.
3458
3459 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3460
3461         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3462         * linux-nat.c: Include linux-procfs.h.
3463         (linux_proc_get_tgid): Move to ...
3464         * common/linux-procfs.c: ... here. New file.
3465         * common/linux-procfs.h: New file.
3466         * linux-thread-db.c: Include linux-procfs.h.
3467         * Makefile.in: Update dependencies.
3468         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3469         * config/arm/linux.mh: Likewise.
3470         * config/i386/linux.mh: Likewise.
3471         * config/i386/linux64.mh: Likewise.
3472         * config/ia64/linux.mh: Likewise.
3473         * config/m32r/linux.mh: Likewise.
3474         * config/m68k/linux.mh: Likewise.
3475         * config/mips/linux.mh: Likewise.
3476         * config/pa/linux.mh: Likewise.
3477         * config/pa/linux.mh: Likewise.
3478         * config/powerpc/linux.mh: Likewise.
3479         * config/powerpc/ppc64-linux.mh: Likewise.
3480         * config/powerpc/spu-linux.mh: Likewise.
3481         * config/sparc/linux.mh: Likewise.
3482         * config/sparc/linux64.mh: Likewise.
3483         * config/xtensa/linux.mh: Likewise.
3484
3485 2011-08-24  Hui Zhu  <teawater@gmail.com>
3486
3487         * tracepoint.c (cond_string_is_same): New function.
3488         (find_matching_tracepoint): Add condition check
3489         by cond_string_is_same.
3490
3491 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3492
3493         Fix build error in Darwin port.
3494         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3495
3496 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3497
3498         Code cleanup.
3499         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3500         (command_line_is_silent): New function.
3501         (bpstat_do_actions_1): No longer use commands_left, use
3502         command_line_is_silent for commands.
3503         (bpstat_alloc): Remove clearing of commands_left.
3504         (bpstat_stop_status): Remove initialization of commands_left, use
3505         command_line_is_silent.
3506         * breakpoint.h (struct bpstats): Remove commands_left.
3507
3508 2011-08-18  Keith Seitz  <keiths@redhat.com>
3509
3510         PR c++/12266
3511         * cp-name-parser.y (struct demangle_info): Remove unused
3512         member PREV.
3513         (d_grab): Likewise.
3514         (allocate_info): Change return type to struct demangle_info *.
3515         Always allocate a new demangle_info.
3516         Remove unused PREV pointer.
3517         (cp_new_demangle_parse_info): New function.
3518         (cp_demangled_name_parse_free): New function.
3519         (do_demangled_name_parse_free_cleanup): New function.
3520         (make_cleanup_cp_demangled_name_parse_free): New function.
3521         (cp_demangled_name_to_comp): Change return type to
3522         struct demangle_parse_info *.
3523         Allocate a new storage for each call.
3524         (main): Update usage for cp_demangled_name_to_comp
3525         API change.
3526         * cp-support.h (struct demangle_parse_info): New structure.
3527         (cp_demangled_name_to_comp): Update API change for
3528         return type.
3529         (cp_new_demangle_parse_info): Declare.
3530         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3531         (cp_demangled_name_parse_free): Declare.
3532         * cp-support.c (cp_canonicalize_string): Update API
3533         change for cp_demangled_name_to_comp.
3534         (mangled_name_to_comp): Likewise.
3535         Return struct demangle_parse_info, too.
3536         (cp_class_name_from_physname): Update mangled_name_to_comp
3537         API change.
3538         (method_name_from_physname): Likewise.
3539         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3540         (cp_remove_params): Likewise.
3541         * python/py-type.c (typy_legacy_template_argument): Likewise.
3542
3543         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3544         (cp_merge_demangle_parse_infos): Declare.
3545         * cp-support.c (ignore_typedefs): New file global.
3546         (copy_string_to_obstack): New function.
3547         (inspect_type): New function.
3548         (replace_typedefs): New function.
3549         (replace_typedefs_qualified_name): New function.
3550         (cp_canonicalize_string_no_typedefs): New function.
3551         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3552         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3553         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3554         instead of cp_canonicalize_string.
3555         (find_method): Likewise.
3556         (decode_compound): Before looking up the name, call
3557         cp_canonicalize_string_no_typedefs.
3558         (decode_variable): Likewise.
3559
3560 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3561             Tom Tromey  <tromey@redhat.com>
3562             Matt Rice <ratmice@gmail.com>
3563
3564         * python/lib/gdb/prompt.py: New file.
3565         * python/lib/gdb/command/prompt.py: New file.
3566         * NEWS: Document set extended-prompt and gdb.prompt library
3567
3568 2011-08-16  Yao Qi  <yao@codesourcery.com>
3569
3570         * tic6x-linux-tdep.c: Move const arrays definition from here...
3571         * tic6x-tdep.c: to here ...
3572
3573 2011-08-14  Yao Qi  <yao@codesourcery.com>
3574
3575         * NEWS: New port to Texas Instruments TMS320C6x.
3576
3577 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3578             Bernd Schmidt  <bernds@codesourcery.com>
3579             Yao Qi  <yao@codesourcery.com>
3580
3581         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3582         * solib-dsbt.c: New file.  Support DSBT shared object.
3583         * tic6x-linux-tdep.c: New file.
3584         * tic6x-tdep.c: New file.
3585         * tic6x-tdep.h: New file.
3586
3587 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3588             Yao Qi  <yao@codesourcery.com>
3589
3590         * remote.c (PACKET_qXfer_fdpic): New enum value.
3591         (remote_protocol_features): Add qXfer:fdpic:read packet.
3592         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3593         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3594         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3595
3596 2011-08-14  Yao Qi  <yao@codesourcery.com>
3597
3598         Target description for tic6x.
3599         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3600         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3601         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3602         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3603         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3604         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3605         * features/tic6x-c64xp-linux.xml: New.
3606         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3607         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3608         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3609         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3610         * regformats/tic6x-c64xp.dat,
3611         regformats/tic6x-c62x-linux.dat: Generated.
3612         * regformats/tic6x-c64x-linux.dat,
3613         regformats/tic6x-c64xp-linux.dat: Generated.
3614         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3615         features/tic6x-*.c files.
3616         Add regformats/tic6x-*.dat files.
3617
3618 2011-08-12  Doug Evans  <dje@google.com>
3619
3620         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3621         * python/py-symbol.c (sympy_get_type): New function.
3622         (symbol_object_getset): Add "type".
3623
3624 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3625
3626         PR tui/13073
3627
3628         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3629         empty name.
3630         (tui_show_register_group): Don't store a byte buffer in the data
3631         element's value.
3632         (tui_register_format): Skip registers with an empty name.
3633         (tui_get_register): Store a struct value in the data element's
3634         value field instead of a byte buffer holding the raw register
3635         contents.  Account for optimized-out and unavailable registers
3636         when comparing register contents.
3637
3638 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3639
3640         * printcmd.c (current_display_number): Update comment.
3641         (disable_current_display_cleanup): Delete.
3642         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
3643         catch errors thrown while evaluating and printing the display.
3644
3645 2011-08-09  Tom Tromey  <tromey@redhat.com>
3646
3647         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3648
3649 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3650
3651         * elfread.c (elf_symtab_read): Rework comments.
3652         * maint.c (maintenance_command): Ditto.
3653         * somread.c (som_symtab_read): Ditto.
3654         * solib.c (solib_find, solib_map_sections, update_solib_list)
3655         (solib_add, info_sharedlibrary_command, solib_name_from_address)
3656         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3657         (sharedlibrary_command, no_shared_libraries): Ditto.
3658         * solib-irix.c (locate_base, disable_break, enable_break)
3659         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3660         (irix_current_sos, irix_open_symbol_file_object)
3661         (irix_special_symbol_handling): Ditto.
3662         * solib-sunos.c (locate_base, first_link_map_member)
3663         (sunos_current_sos, disable_break, enable_break)
3664         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3665         Ditto.
3666         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3667         (open_symbol_file_object, svr4_current_sos, enable_break)
3668         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3669         Ditto.
3670         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3671         (frv_current_sos, enable_break, frv_special_symbol_handling)
3672         (frv_solib_create_inferior_hook): Ditto.
3673         * solist.h (struct target_so_ops): Extend the comments of the
3674         special_symbol_handling, current_sos and open_symbol_file_object
3675         methods.
3676
3677 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
3678
3679         * python/lib/gdb/__init__.py: Auto-load files in command and
3680         function directories.
3681         * python/python.c (finish_python_initialization): Use
3682         os.path.join.
3683         * python/lib/gdb/command/pretty_printers.py: Self register
3684         command.
3685         * NEWS: Document auto-loading.
3686
3687 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3688
3689         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3690         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3691         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
3692
3693 2011-08-08  Tom Tromey  <tromey@redhat.com>
3694
3695         * breakpoint.c (clean_up_filters): Remove.
3696         (catch_syscall_split_args): Use VEC_cleanup.
3697
3698 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3699
3700         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3701         (main): Uncomment "Demangling error\n".
3702
3703 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3704
3705         * solib-target.c (segment_attributes): Make them static.
3706         (section_attributes, library_children, library_attributes): Likewise.
3707         (library_list_children, library_list_attributes): Likesise.
3708         (library_list_elements): Likewise.
3709
3710 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
3711
3712         * exceptions.c (throw_exception): Don't disable the current
3713         display.
3714         * printcmd.c (disable_current_display_cleanup): New function.
3715         (do_one_display): Install a cleanup to disable the current display
3716         if doing the display throws.
3717
3718 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
3719
3720         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3721         initialization of the tp_new member to the corresponding
3722         gdbpy_initialize_* function.
3723         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3724         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3725         * python/py-function.c (gdbpy_initialize_functions): Likewise.
3726         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3727         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3728
3729 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3730
3731         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3732         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3733         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3734         references to current_uiout.
3735
3736 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3737
3738         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3739         (start_event_loop): Use TRY_CATCH instead of catch_errors.
3740         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3741         * top.c (gdb_readline_wrapper): Adjust.
3742         * tui/tui-interp.c (tui_command_loop):
3743         (_initialize_tui_interp): Don't install it.
3744
3745 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3746
3747         * ui-out.h (uiout): Rename to ...
3748         (current_uiout): ... this.
3749         * ui-out.c (uiout): Rename to ...
3750         (current_uiout): ... this.
3751         * ada-lang.c (print_it_exception, print_one_exception)
3752         (print_mention_exception): Adjust.
3753         * breakpoint.c (watchpoint_check): Adjust.
3754         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3755         (default_collect_info, watchpoints_info, print_one_catch_fork)
3756         (print_one_catch_vfork, print_one_catch_syscall)
3757         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3758         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3759         (print_it_watchpoint, print_mention_watchpoint)
3760         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3761         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3762         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3763         (bkpt_print_mention, momentary_bkpt_print_it)
3764         (tracepoint_print_mention, update_static_tracepoint)
3765         (tracepoints_info, save_breakpoints): Adjust.
3766         * cli-out.c (field_separator): Adjust.
3767         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3768         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3769         * frame.c (get_current_frame): Adjust.
3770         * infcmd.c (run_command_1, print_return_value): Adjust.
3771         * inferior.c (inferior_command, info_inferiors_command): Adjust.
3772         * infrun.c (print_end_stepping_range_reason): Adjust.
3773         (print_signal_exited_reason, print_exited_reason): Adjust.
3774         (print_signal_received_reason, print_no_history_reason): Adjust.
3775         * interps.c (interp_set): Adjust.
3776         * osdata.c (info_osdata_command): Adjust.
3777         * progspace.c (maintenance_info_program_spaces_command): Adjust.
3778         * remote-fileio.c (remote_fileio_request): Adjust.
3779         * remote.c (show_remote_cmd): Adjust.
3780         * solib.c (info_sharedlibrary_command): Adjust.
3781         * source.c (print_source_lines_base): Adjust.
3782         * stack.c (print_stack_frame): Adjust.
3783         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3784         * symfile-mem.c (add_vsyscall_page): Adjust.
3785         * symfile.c (load_progress, generic_load)
3786         (print_transfer_performance): Adjust.
3787         * thread.c (info_threads_command, restore_selected_frame)
3788         (thread_command): Adjust.
3789         * top.c (make_cleanup_restore_ui_file): Adjust.
3790         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3791         (print_one_static_tracepoint_marker): Adjust.
3792         * cli/cli-cmds.c (print_disassembly): Adjust.
3793         * cli/cli-decode.c (print_doc_line): Adjust.
3794         * cli/cli-interp.c (safe_execute_command): Adjust.
3795         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3796         (handle_redirections): Adjust.
3797         * cli/cli-script.c (show_user_1): Adjust.
3798         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3799         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3800         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3801         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3802         (mi_cmd_env_dir): Adjust.
3803         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3804         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3805         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3806         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3807         (list_args_or_locals): Adjust.
3808         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3809         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3810         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3811         (mi_cmd_var_list_children, mi_cmd_var_info_type)
3812         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3813         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3814         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3815         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3816         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3817         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3818         (list_available_thread_groups, mi_cmd_list_thread_groups)
3819         (mi_cmd_data_list_register_names)
3820         (mi_cmd_data_list_changed_registers)
3821         (mi_cmd_data_list_register_values, get_register)
3822         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3823         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3824         (mi_cmd_list_target_features, mi_cmd_add_inferior)
3825         (mi_execute_command, mi_load_progress): Adjust.
3826         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3827         * python/py-auto-load.c (print_script, info_auto_load_scripts):
3828         Adjust.
3829         * python/py-breakpoint.c (bppy_get_commands): Adjust.
3830         * tui/tui-interp.c (tui_command_loop): Adjust.
3831         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3832
3833 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
3834
3835         * exceptions.c (struct catcher): Remove saved_uiout field.
3836         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3837         no longer save/resvore the global ui_out builder.
3838         (catch_exceptions_with_msg): Save/override/restore the global
3839         ui_out builder manually instead of relying on TRY_CATCH to do it.
3840         (catch_errors): Save/restore the global ui_out builder manually
3841         instead of relying on TRY_CATCH to do it.
3842         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3843         parameter.
3844         (TRY_CATCH): Adjust.
3845         * cli/cli-interp.c (safe_execute_command): Save/override/restore
3846         the global ui_out builder manually instead of relying on TRY_CATCH
3847         to do it.
3848
3849 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3850
3851         * breakpoint.c (update_global_location_list): Ensure
3852         invariant 'first loc marked not duplicated and inserted,
3853         following locs marked duplicated/not inserted' is respected
3854         for multiple locations at the same address.
3855         (unduplicated_should_be_inserted) New function.
3856         (swap_insertion) New function.
3857
3858 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3859
3860         * stack.c (print_frame_arguments_choices): Comment typo fix.
3861
3862 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3863
3864         Revert:
3865         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3866         * breakpoint.c (insert_bp_location): Remove disabled_breaks
3867         argument.  Update callers.
3868
3869 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3870
3871         PR gdb/13045
3872         * doublest.c (convert_doublest_to_floatformat): Pass correct
3873         mantissa length to put_field.
3874
3875 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3876
3877         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3878         exception_print code path.
3879         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
3880         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
3881         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
3882
3883 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3884
3885         Code cleanup.
3886         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3887         Remove, merge them into ...
3888         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
3889         variable args and its initialization.
3890         (struct print_args_args, print_args_stub): Remove, merge them into
3891         print_frame.
3892         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3893         them into ...
3894         (do_gdb_disassembly): ... here.  Remove variable args and its
3895         initialization.
3896         (print_frame): Remove variable args and its initialization, new
3897         variable gdbarch and numargs (from print_args_stub), inline here
3898         print_args_stub with a TRY_CATCH.
3899         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3900         them into ...
3901         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3902         New variable e, remove variable btargs and its initialization.
3903
3904 2011-08-01  Tristan Gingold  <gingold@adacore.com>
3905
3906         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3907
3908 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3909
3910         * breakpoint.c (insert_bp_location): Document return value.
3911         (insert_breakpoint_locations): Fix documentation.
3912         (remove_breakpoints): Add documentation.
3913
3914 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3915
3916         * breakpoint.c (insert_bp_location): Remove disabled_breaks
3917         argument.  Update callers.
3918
3919 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3920
3921         * stack.c (print_frame_info): Comment typo fix.
3922
3923 2011-07-29  Sterling Augustine  <saugustine@google.com>
3924
3925         * MAINTAINERS (Write After Approval): Add myself to the list.
3926
3927 2011-07-29  Tom Tromey  <tromey@redhat.com>
3928
3929         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3930         (library_list_start_segment): Update.
3931         (library_list_start_section): Update.
3932
3933 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
3934
3935         * varobj.c (value_get_print_value): Move hint check later into the
3936         function.  Comment function.  Free thevalue before reusing it.
3937
3938 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3939             Pedro Alves  <pedro@codesourcery.com>
3940
3941         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3942         value_one.
3943         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
3944         Assert the result kind.
3945         * value.h (value_one): Remove parameter lv.
3946
3947 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3948
3949         Fix crash on lval_computed values.
3950         * valops.c (value_zero): Use not_lval for lval_computed.
3951
3952 2011-07-27  Tom Tromey  <tromey@redhat.com>
3953
3954         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3955         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3956
3957 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3958
3959         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3960         "ptype" by their typedefs difference.
3961
3962 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         * dwarf2expr.c (ctx_no_read_reg): New function.
3965         * dwarf2expr.h (ctx_no_read_reg): New declaration.
3966         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3967         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3968         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3969
3970 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3971
3972         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3973         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3974         file.
3975         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3976         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3977         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3978         (ctx_no_get_base_type): Move the functions here.
3979         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3980         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3981         (ctx_no_get_base_type): New declarations.
3982
3983 2011-07-27  Tom Tromey  <tromey@redhat.com>
3984
3985         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3986         entries.
3987         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3988         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3989
3990 2011-07-26  Sterling Augustine  <saugustine@google.com>
3991
3992         * cli/cli-dump.c (dump_binary_file): Change parameter type to
3993         ULONGEST.
3994         (dump_bfd_file): Likewise.
3995
3996 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3997
3998         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3999         (remote_hw_watchpoint_length_limit): New variable.
4000         (_initialize_remote) add set,show cmds for this new variable.
4001         * gdb.texinfo: document these new commands.
4002         * NEWS: Mention these new commands.
4003
4004 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4005
4006         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4007         true for software watchpoints.
4008
4009 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4010
4011         GDB 7.3 released.
4012
4013 2011-07-26  Tom Tromey  <tromey@redhat.com>
4014
4015         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4016         * dwarf2read.c (read_indirect_string_at_offset): New function.
4017         (read_indirect_string): Use it.
4018         (dwarf_decode_macro_bytes): New function, taken from
4019         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4020         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4021         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4022         New functions.
4023         (struct dwarf2_per_objfile) <macro>: New field.
4024         (dwarf2_elf_names): Add .debug_macro.
4025         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4026         (dwarf2_locate_sections): Handle new section.
4027         (read_file_scope): Handle DW_AT_GNU_macros.
4028         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4029
4030 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4031
4032         * NEWS: Mention dcache configuration.
4033         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4034         (dcache_size, dcache_line_size): New variables.
4035         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4036         (struct dcache_block): Make it expandable.
4037         (struct dcache_struct): New field.
4038         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4039         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4040         (dcache_poke_byte, dcache_print_line): Adjust.
4041         (set_dcache_size, set_dcache_line_size): New functions.
4042         (set_dcache_command, show_dcache_command): New functions.
4043         (_initialize_dcache): Add new commands.
4044
4045 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4046
4047         * progspace.h (struct program_space): Add solib_add_generation.
4048         * infcmd.c (post_create_inferior): Only call solib_add if not
4049         already done.
4050         * solib.c (solib_add): Increment solib_add_generation.
4051
4052 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4053
4054         Fix implicit pointer offsets.
4055         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4056         ptr.OFFSET.
4057
4058 2011-07-25  Tom Tromey  <tromey@redhat.com>
4059
4060         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4061         const.
4062         (ada_exception_sal): Make 'ops' const.
4063         (ada_decode_exception_location): Likewise.
4064         (ada_decode_assert_location): Likewise.
4065         (catch_assert_command): Update.
4066         (catch_ada_exception_command): Update.
4067         (create_ada_exception_catchpoint): Make 'ops' const.
4068         * breakpoint.c (set_raw_breakpoint_without_location)
4069         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4070         const.
4071         (create_internal_breakpoint): Update.
4072         (init_raw_breakpoint_without_location): Make 'ops' const.
4073         (init_raw_breakpoint, init_catchpoint)
4074         (create_fork_vfork_event_catchpoint)
4075         (create_syscall_event_catchpoint, init_breakpoint_sal)
4076         (create_breakpoint_sal, create_breakpoints_sal)
4077         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4078         * breakpoint.h (struct breakpoint) <ops>: Now const.
4079         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4080         const.
4081
4082 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4083
4084         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4085
4086 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4087
4088         * breakpoint.h (print_recreate_thread): Declare.
4089         (struct breakpoint): Move step_count, pass_count,
4090         number_on_target, static_trace_marker_id,
4091         static_trace_marker_id_idx ...
4092         (struct tracepoint): ... to this new struct.
4093         (get_tracepoint, get_tracepoint_by_number_on_target)
4094         (get_tracepoint_by_number): Change return type to struct
4095         tracepoint pointer.
4096         * breakpoint.c (is_tracepoint_type): New, factored out from
4097         is_tracepoint.
4098         (is_tracepoint): Adjust.
4099         (print_one_breakpoint_location): Cast to struct tracepoint as
4100         necessary, and adjust.
4101         (print_recreate_catch_fork, print_recreate_catch_vfork)
4102         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4103         print_recreate_thread.
4104         (init_breakpoint_sal): New, factored out from
4105         create_breakpoint_sal.
4106         (create_breakpoint_sal): Reimplement.
4107         (create_breakpoint): Allocate a struct tracecepoint if the caller
4108         wanted a tracepoint.  Use init_breakpoint_sal and
4109         install_breakpoint.
4110         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4111         (print_recreate_masked_watchpoint)
4112         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4113         (tracepoint_print_one_detail): Adjust.
4114         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4115         Dump the pass count here.
4116         (update_static_tracepoint): Adjust.
4117         (addr_string_to_sals): Adjust.
4118         (create_tracepoint_from_upload): Adjust.  Change return type to
4119         struct tracepoint pointer.
4120         (trace_pass_set_count): Change parameter type to struct tracepoint
4121         pointer, and adjust.
4122         (trace_pass_command): Adjust.
4123         (get_tracepoint, get_tracepoint_by_number_on_target)
4124         (get_tracepoint_by_number): Change return type to struct
4125         tracepoint pointer, and adjust.
4126         (print_recreate_thread): New, factored out from save_breakpoints.
4127         (save_breakpoints): Don't print thread and task and passcount
4128         recreation here.
4129         * remote.c (remote_download_tracepoint): Adjust.
4130         * tracepoint.c (trace_actions_command, validate_actionline)
4131         (start_tracing, tfind_1, trace_find_tracepoint_command)
4132         (trace_dump_command): Adjust.
4133         (find_matching_tracepoint): Change return type to struct
4134         tracepoint pointer, and adjust.
4135         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4136         (tfile_trace_find, tfile_fetch_registers): Adjust.
4137         * tracepoint.h (create_tracepoint_from_upload): Change return type
4138         to struct tracepoint pointer.
4139         * ada-lang.c (print_recreate_exception): Call
4140         print_recreate_thread.
4141         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4142
4143 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4144
4145         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4146         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4147         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4148         watchpoint_thread, watchpoint_triggered ...
4149         (struct watchpoint): ... to this new struct.
4150         (is_watchpoint): Declare.
4151         (install_breakpoint): Add new `internal' parameter.
4152         * breakpoint.c (is_watchpoint): Delete declaration.
4153         (set_breakpoint_condition): Handle watchpoints.
4154         (is_watchpoint): Make public.
4155         (watchpoint_in_thread_scope): Change parameter type to struct
4156         watchpoint.
4157         (watchpoint_del_at_next_stop): Change parameter type to struct
4158         watchpoint.  Remove assertion.  Adjust.
4159         (update_watchpoint): Ditto.
4160         (insert_breakpoints, breakpoint_init_inferior)
4161         (watchpoints_triggered, watchpoint_check)
4162         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4163         (bpstat_stop_status, print_one_breakpoint_location)
4164         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4165         to struct watchpoint as necessary, and adjust.
4166         (install_breakpoint): Add `internal' argument.  If true, don't
4167         mention the new breakpoint.  Use set_breakpoint_number.
4168         (create_fork_vfork_event_catchpoint)
4169         (create_syscall_event_catchpoint): Adjust.
4170         (dtor_watchpoint): New.
4171         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4172         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4173         (print_it_watchpoint, print_mention_watchpoint)
4174         (print_recreate_watchpoint, insert_masked_watchpoint)
4175         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4176         (print_one_detail_masked_watchpoint)
4177         (print_mention_masked_watchpoint)
4178         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4179         necessary, and adjust.
4180         (watch_command_1): Allocate and initialize a struct watchpoint
4181         instead of a struct breakpoint.  Use install_breakpoint.
4182         (catch_exec_command_1): Adjust.
4183         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4184         fields.
4185         (delete_breakpoint, enable_breakpoint_disp)
4186         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4187         as necessary, and adjust.
4188         (initialize_breakpoint_ops): Install dtor_watchpoint as
4189         watchpoints' dtor method.
4190         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4191         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4192         to struct watchpoint as necessary, and adjust.
4193
4194 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4195
4196         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4197         the the base class ops table.
4198         (catch_exception_breakpoint_ops)
4199         (catch_exception_unhandled_breakpoint_ops)
4200         (catch_assert_breakpoint_ops): Don't statically initialize.
4201         (initialize_ada_catchpoint_ops): New.
4202         (_initialize_ada_language): Call it.
4203         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4204         (bkpt_breakpoint_ops): Forward declare.
4205         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4206         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4207         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4208         (masked_watchpoint_breakpoint_ops)
4209         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4210         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4211         base class ops table.
4212         (null_re_set, null_check_status, null_works_in_software_mode)
4213         (null_resources_needed, null_print_one_detail): Delete.
4214         (bkpt_dtor): Rename to ...
4215         (base_breakpoint_dtor): ... this.  Make static.
4216         (bkpt_allocate_location): Rename to ...
4217         (base_breakpoint_allocate_location): ... this.  Make static.
4218         (base_breakpoint_re_set): New.
4219         (internal_error_pure_virtual_called): New.
4220         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4221         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4222         (base_breakpoint_works_in_software_mode)
4223         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4224         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4225         (base_breakpoint_print_recreate): New functions.
4226         (base_breakpoint_ops): New global.
4227         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4228         (bkpt_breakpoint_hit): Make static.
4229         (bkpt_check_status): Delete.
4230         (bkpt_resources_needed): Make static.
4231         (bkpt_works_in_software_mode): Delete.
4232         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4233         static.
4234         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4235         (momentary_breakpoint_ops): Don't statically initialize.
4236         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4237         Delete.
4238         (tracepoint_insert_location, tracepoint_remove_location)
4239         (tracepoint_check_status, tracepoint_works_in_software_mode)
4240         (tracepoint_print_it): Delete.
4241         (tracepoint_breakpoint_ops): Don't statically initialize.
4242         (initialize_breakpoint_ops): New.
4243         (_initialize_breakpoint): Call it.
4244         * breakpoint.h (null_re_set, null_works_in_software_mode)
4245         (null_resources_needed, null_check_status, null_print_one_detail):
4246         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4247         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4248         (bkpt_check_status, bkpt_resources_needed)
4249         (bkpt_works_in_software_mode, bkpt_print_it)
4250         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4251         Delete declarations.
4252         (initialize_breakpoint_ops): Declare.
4253
4254 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4255
4256         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4257         (momentary_bkpt_print_it): Simplify.
4258
4259 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4260
4261         Split internal, momentary and user breakpoints breakpoint_ops
4262         tables.
4263
4264         * breakpoint.c (internal_breakpoint_ops)
4265         (momentary_breakpoint_ops): Forward declare.
4266         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4267         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4268         (create_overlay_event_breakpoint)
4269         (create_std_terminate_master_breakpoint)
4270         (create_exception_master_breakpoint): Create breakpoints with
4271         internal_breakpoint_ops vtable.
4272         (set_longjmp_breakpoint): Create momentary breakpoints with
4273         momentary_breakpoint_ops vtable, using
4274         momentary_breakpoint_from_master.
4275         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4276         (create_solib_event_breakpoint): Create breakpoints with
4277         internal_breakpoint_ops vtable.
4278         (set_momentary_breakpoint): Create breakpoints with
4279         momentary_breakpoint_ops vtable.
4280         (momentary_breakpoint_from_master): New, factored out from
4281         clone_momentary_breakpoint.
4282         (clone_momentary_breakpoint): Adjust.
4283         (watch_command_1): Create scope breakpoints with
4284         momentary_breakpoint_ops vtable.
4285         (bkpt_re_set): Remove handling of internal and momentary
4286         breakpoints.
4287         (bkpt_print_mention, bkpt_print_recreate): New.
4288         (bkpt_breakpoint_ops): Adjust.
4289         (internal_bkpt_re_set, internal_bkpt_check_status)
4290         (internal_bkpt_print_it, internal_bkpt_print_mention)
4291         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4292         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4293         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4294         (momentary_bkpt_print_recreate): New.
4295         (momentary_breakpoint_ops): New.
4296
4297 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4298
4299         Implement most breakpoint_ops methods for all breakpoint types,
4300         and move the default handlings to the proper callbacks.
4301
4302         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4303         works_in_software_mode method.
4304         (insert_bp_location): Go through breakpoint_ops->insert_location
4305         for software and hardware watchpoints.
4306         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4307         breakpoint_ops.
4308         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4309         for software and hardware watchpoints.
4310         (print_it_typical): Delete.
4311         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4312         method.
4313         (watchpoint_check): Adjust comment.
4314         (bpstat_check_location): Simply always call the breakpoint's
4315         breakpoint_hit method.
4316         (bpstat_stop_status): Always call the breakpoint's check_status
4317         method.  Remove special cases for watchpoints and internal event
4318         breakpoints from here (moved to the check_status implementations).
4319         (print_one_breakpoint_location): Assume b->ops is never NULL.
4320         Remove static tracepoint marker id printing from here (moved to
4321         the print_one_detail callback implementation of tracepoints).
4322         (init_bp_location): Assert OPS is never NULL.
4323         (allocate_bp_location): Always call the breakpoint's
4324         allocate_location method, and remove the default code from here.
4325         (free_bp_location): Always call the location's dtor method, and
4326         remove the default code from here.
4327         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4328         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4329         parameter.  Pass it down.
4330         (set_raw_breakpoint): Ditto.
4331         (print_it_catch_fork): Adjust to take a bpstat as argument.
4332         (catch_fork_breakpoint_ops): Install methods.
4333         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4334         (catch_vfork_breakpoint_ops): Install methods.
4335         (dtor_catch_syscall): Call the base dtor.
4336         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4337         (catch_syscall_breakpoint_ops): Install methods.
4338         (dtor_catch_exec): Call the base dtor.
4339         (print_it_catch_exec): Adjust to take a bpstat as argument.
4340         (catch_exec_breakpoint_ops): Install methods.
4341         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4342         the breakpoint's resources_needed method, and remove the default
4343         code from here.
4344         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4345         breakpoint_ops.
4346         (clone_momentary_breakpoint): Clone the original's ops.
4347         (mention): Always call the breakpoint's print_mention method, and
4348         remove the default code from here.
4349         (create_breakpoint_sal): Adjust to pass the ops to
4350         set_raw_breakpoint rather than setting it manually.
4351         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4352         ops to set_raw_breakpoint_without_location rather than setting it
4353         manually.
4354         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4355         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4356         (ranged_breakpoint_ops): Install methods.
4357         (break_range_command): Adjust to pass the ops to
4358         set_raw_breakpoint rather than setting it manually.
4359         (re_set_watchpoint, breakpoint_hit_watchpoint)
4360         (check_status_watchpoint, resources_needed_watchpoint)
4361         (works_in_software_mode_watchpoint, print_it_watchpoint)
4362         (print_mention_watchpoint, print_recreate_watchpoint): New
4363         functions.
4364         (watchpoint_breakpoint_ops): Install new methods.
4365         (print_it_masked_watchpoint): New function.
4366         (masked_watchpoint_breakpoint_ops): Install new methods.
4367         (watch_command_1): Adjust to pass the right breakpoint_ops to
4368         set_raw_breakpoint_without_location rather than setting it
4369         manually later.  Record the current pspace.
4370         (print_it_exception_catchpoint): Adjust to take a bpstat as
4371         argument.
4372         (gnu_v3_exception_catchpoint_ops): Install new methods.
4373         (say_where): New function.
4374         (null_re_set, null_check_status, null_works_in_software_mode)
4375         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4376         New functions.
4377         (bp_location_ops): New global.
4378         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4379         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4380         (bkpt_check_status, bkpt_resources_needed)
4381         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4382         (bkpt_print_recreate): New functions.
4383         (bkpt_breakpoint_ops): New global.
4384         (tracepoint_re_set, tracepoint_insert_location)
4385         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4386         (tracepoint_check_status, tracepoint_works_in_software_mode)
4387         (tracepoint_print_it, tracepoint_print_one_detail)
4388         (tracepoint_print_mention, tracepoint_print_recreate): New
4389         functions.
4390         (tracepoint_breakpoint_ops): New global.
4391         (delete_breakpoint): Always call the breakpoint's dtor method, and
4392         remove the default handling from here.
4393         (breakpoint_re_set_default): Make static.
4394         (breakpoint_re_set_one): Always call the breakpoints re_set
4395         method, and remove the default handling from here.
4396         (trace_command, ftrace_command, strace_command)
4397         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4398         to create_breakpoint.
4399         (save_breakpoints): Always call the breakpoint's print_recreate
4400         method, and remove the default handling from here.
4401
4402         * ada-lang.c (dtor_exception): Call the base dtor.
4403         (re_set_exception): Call the base method.
4404         (print_it_exception, print_it_catch_exception): Adjust to take a
4405         bpstat as argument.
4406         (catch_exception_breakpoint_ops): Install methods.
4407         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4408         argument.
4409         (catch_exception_unhandled_breakpoint_ops): Install methods.
4410         (print_it_catch_assert): Adjust to take a bpstat as argument.
4411         (catch_assert_breakpoint_ops): Install methods.
4412
4413         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4414         to take a bpstat as argument.
4415         (enum print_stop_action): Add describing comments to each enum
4416         value.
4417         (breakpoint_re_set_default): Delete declaration.
4418         (null_re_set, null_works_in_software_mode, null_resources_needed)
4419         (null_check_status, null_print_one_detail): Declare.
4420         (bkpt_breakpoint_ops): Declare.
4421         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4422         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4423         (bkpt_check_status, bkpt_resources_needed)
4424         (bkpt_works_in_software_mode, bkpt_print_it)
4425         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4426         Declare.
4427
4428         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4429         bkpt_breakpoint_ops.
4430         * python/py-breakpoint.c (bppy_init): Ditto.
4431
4432 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4433
4434         * MAINTAINERS (Write After Approval): Add myself to the list.
4435
4436 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4437
4438         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4439
4440 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4441
4442         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4443         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4444         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4445         adjust.
4446         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4447         (struct i386_debug_reg_state): New.
4448         (i386_init_dregs): New.
4449         (dr_mirror): New.
4450         (i386_cleanup_dregs): Use i386_init_dregs.
4451         (i386_show_dr): Add state parameter and adjust.
4452         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4453         the inferior here.
4454         (i386_remove_aligned_watchpoint): Likewise.
4455         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4456         (i386_update_inferior_debug_regs): New.
4457         (i386_insert_watchpoint): Work on a local mirror of the debug
4458         registers, and only update the inferior on success.
4459         (i386_remove_watchpoint): Ditto.
4460         (i386_region_ok_for_watchpoint): Adjust.
4461         (i386_stopped_data_address): Adjust.
4462         (i386_insert_hw_breakpoint): Adjust.
4463         (i386_remove_hw_breakpoint): Adjust.
4464
4465 2011-07-22  Tom Tromey  <tromey@redhat.com>
4466
4467         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4468         from amd64_pseudo_register_read.  Change arguments.  Call
4469         mark_value_bytes_unavailable when needed.
4470         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4471         set_gdbarch_pseudo_register_read.
4472         * sentinel-frame.c (sentinel_frame_prev_register): Use
4473         regcache_cooked_read_value.
4474         * regcache.h (regcache_cooked_read_value): Declare.
4475         * regcache.c (regcache_cooked_read_value): New function.
4476         (regcache_cooked_read): Call
4477         gdbarch_pseudo_register_read_value if available.
4478         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4479         (i386_pseudo_register_read): Remove.
4480         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4481         i386_pseudo_register_read.  Change arguments.  Call
4482         mark_value_bytes_unavailable when needed.
4483         (i386_pseudo_register_read_value): New function.
4484         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4485         not set_gdbarch_pseudo_register_read.
4486         * gdbarch.sh (pseudo_register_read_value): New method.
4487         * gdbarch.c, gdbarch.h: Rebuild.
4488         * findvar.c (value_from_register): Call get_frame_register_value.
4489
4490 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4491
4492         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4493         get_prefix.
4494         (display_gdb_prompt): Likewise.
4495         (change_annotation_level): Likewise.
4496         (push_prompt): Likewise.
4497         (pop_prompt): Likewise.
4498         (handle_stop_sig): Use get_prompt with a level.
4499         * top.c (command_loop): Use get_prompt with a level.
4500         (set_async_annotation_level): Use set_prompt with a level.
4501         (get_prefix): New function.
4502         (set_prefix): Ditto.
4503         (set_suffix): Ditto.
4504         (get_suffix): Ditto.
4505         (get_prompt): Accept a level argument.
4506         (set_prompt): Accept a level argument.  Free old prompts.  Set
4507         new_async_prompt if level is 0.
4508         (init_main): Use set_prompt with a level.  Do not set
4509         new_async_prompt.
4510         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4511         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4512         Modify set_prompt, get_prompt to account for levels.
4513         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4514         level.
4515         * python/python.c (before_prompt_hook): Use set_prompt.
4516         
4517 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4518
4519         * defs.h: Add guard against inclusion in gdbserver.
4520         (struct ptid, ptid_t): Move to common/ptid.h.
4521         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4522         xsnprintf, internal_error): Move to common/common-utils.h.
4523         (nomem): Delete.
4524         * gdb_assert.h: Move into common/ sub-directory.
4525         * gdb_locale.h: Ditto.
4526         * gdb_dirent.h: Ditto.
4527         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4528         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4529         Move into common/ptid.h.
4530         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4531         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4532         Change nomem to malloc_failure.
4533         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4534         * utils.c (nomem): Rename to malloc_failure.
4535         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4536         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4537         (gdb_buildargv): Change nomem to malloc_failure.
4538         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4539         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4540         ptid_is_pid): Move into common/ptid.c.
4541         (initialize_infrun): Delete initialization of null_ptid and
4542         minus_one_ptid.
4543         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4544         linux_common_xfer_osdata.
4545         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4546         common/ptid.c and common/buffer.c.
4547         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4548         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4549         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4550         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4551         rules.
4552         * common/gdb_assert.h: New.
4553         * common/gdb_dirent.h: New.
4554         * common/gdb_locale.h: New.
4555         * common/buffer.c: New.
4556         * common/buffer.h: New.
4557         * common/ptid.c: New.
4558         * common/ptid.h: New.
4559         * common/xml-utils.c: New.
4560         * common/xml-utils.h: New.
4561         * common/common-utils.c: New.
4562         * common/common-utils.h: New.
4563         * common/linux-osdata.c: New.
4564         * common/linux-osdata.h: New.
4565         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4566         * config/arm/linux.mh (NATDEPFILES): Ditto.
4567         * config/i386/linux.mh (NATDEPFILES): Ditto.
4568         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4569         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4570         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4571         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4572         * config/mips/linux.mh (NATDEPFILES): Ditto.
4573         * config/pa/linux.mh (NATDEPFILES): Ditto.
4574         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4575         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4576         * config/s390/s390.mh (NATDEPFILES): Ditto.
4577         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4578         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4579         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4580
4581 2011-07-21  Matt Rice  <ratmice@gmail.com>
4582
4583         * NEWS: Add info macros and info definitions commands.
4584
4585 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4586
4587         * NEWS: Document Python prompt substitution hook.
4588
4589 2011-07-18  Matt Rice  <ratmice@gmail.com>
4590
4591         PR macros/12999
4592         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4593         * macrotab.c (foreach_macro): Ditto.
4594         (foreach_macro_in_scope): Ditto.
4595         * macrocmd.c (print_macro_callback): New function.
4596         (info_macro_command): Move some code to print_macro_definition.
4597         (print_macro_definition): New function.
4598         (print_one_macro): Add new arguments to callback.
4599         (info_definitions_command): New function.
4600         (info_macros_command): Ditto.
4601         (_initialize_macrocmd): Add info macros and info definitions commands.
4602         * symtab.c (add_macro_name): Add new arguments to callback.
4603
4604 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4605             Tom Tromey  <tromey@redhat.com>
4606
4607         * top.c (set_prompt): Rewrite to free previous prompt, free
4608         asynch_new_prompt and set both on new prompts.
4609         * event-top.c (display_gdb_prompt): Add prompt substitution
4610         logic.
4611         * python/python.c (before_prompt_hook): New function.
4612
4613 2011-07-20  Matt Rice  <ratmice@gmail.com>
4614
4615         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4616         arguments to store_unsigned_integer.
4617
4618 2011-07-20  Tom Tromey  <tromey@redhat.com>
4619
4620         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4621         in some declaration-only cases.
4622
4623 2011-07-18  Tom Tromey  <tromey@redhat.com>
4624
4625         PR symtab/12984:
4626         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4627         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4628         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4629         <debug_type_section>: New field.
4630         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4631         (load_cu): Use appropriate section.
4632         (create_signatured_type_table_from_index): Add 'section'
4633         argument.
4634         (dwarf2_read_index): Only allow a single .debug_types section.
4635         (dw2_get_file_names): Use appropriate section.
4636         (read_type_comp_unit_head): Add 'section' argument.
4637         (create_debug_types_hash_table): Loop over all .debug_types
4638         sections.
4639         (init_cu_die_reader): Use appropriate section.
4640         (process_psymtab_comp_unit, load_partial_comp_unit)
4641         (load_full_comp_unit, read_die_and_children, find_partial_die)
4642         (lookup_die_type, determine_prefix, follow_die_offset): Update.
4643         (lookup_signatured_type_at_offset): Add 'section' argument.
4644         (read_signatured_type_at_offset): Add 'sect' argument.
4645         (read_signatured_type): Use appropriate section.
4646         (set_die_type, get_die_type_at_offset): Update.
4647         (dwarf2_per_objfile_free): Free all .debug_types sections, and
4648         VEC.
4649         (write_psymtabs_to_index): Don't allow index with more than one
4650         .debug_types section.
4651
4652 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4653
4654         Fix crash if referenced CU is aged out.
4655         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4656         xfree of block.data.
4657         (indirect_pieced_value): New variable back_to, use to for xfree of
4658         baton.data.
4659         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4660         block.data.
4661         * dwarf2read.c (dwarf2_find_base_address): New prototype.
4662         (load_cu): New function from ...
4663         (dw2_do_instantiate_symtab): ... the code here ...
4664         (process_full_comp_unit): ... and here.
4665         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
4666         retval.data.
4667
4668 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4669
4670         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4671         type.
4672
4673 2011-07-19  Gary Benson  <gbenson@redhat.com>
4674
4675         * infrun.c (struct execution_control_state): New member
4676         stop_func_filled_in.
4677         (clear_stop_func, fill_in_stop_func): New functions.
4678         (handle_inferior_event): Call clear_stop_func rather than
4679         manipulating the execution control state directly.
4680         Call fill_in_stop_func lazily as required rather than
4681         directly calling find_pc_partial_function in all cases.
4682
4683 2011-07-18  Tom Tromey  <tromey@redhat.com>
4684
4685         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4686         checking for variable-sized array.
4687
4688 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
4689
4690         * varobj.h (varobj_languages): Add vlang_ada definition to the list
4691         of supported languages.
4692         * varobj.c: Add top definitions and basic implementation of the
4693         following callbacks: ada_number_of_children, ada_name_of_variable,
4694         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4695         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4696         (languages): Register Ada-specific callbacks.
4697         (variable_language): Add the Ada case in the language setter switch.
4698
4699 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4700
4701         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4702
4703 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4704
4705         Code cleanup.
4706         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4707         (execute_stack_op): Use dwarf2_frame_ctx_funcs
4708         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4709         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4710         get_frame_cfa, get_tls_address and dwarf_call via funcs.
4711         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4712         (struct dwarf_expr_context_funcs): New, move here methods from ...
4713         (struct dwarf_expr_context): ... here.  New fields funcs.
4714         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4715         (dwarf_expr_ctx_funcs): New.
4716         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4717         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4718         (needs_frame_ctx_funcs): New.
4719         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4720
4721 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4722
4723         * MAINTAINERS (Write After Approval): Add myself to the list.
4724
4725 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
4726
4727         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4728         that CIE pointer of an FDE really points to a CIE .
4729
4730 2011-07-15  Hui Zhu  <teawater@gmail.com>
4731
4732         * remote.c (remote_get_trace_status): Add comments.
4733
4734 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4735
4736         Code cleanup - constify struct lval_funcs.
4737         * dwarf2loc.c (pieced_value_funcs): Make it const.
4738         * infrun.c (siginfo_value_funcs): Likewise.
4739         * opencl-lang.c (opencl_value_funcs): Likewise.
4740         * valops.c (value_assign, value_ind): Make the funcs variable const.
4741         * value.c (struct value): Make location.computed.funcs target const.
4742         Rearrange the comments.
4743         (allocate_computed_value): Make the funcs parameter target const.
4744         (value_computed_funcs): Return the funcs target const.
4745         (value_free, value_copy, set_value_component_location): Make the funcs
4746         variable const.
4747         * value.h (allocate_computed_value): Make the funcs parameter target
4748         const.
4749         (value_computed_funcs): Return the funcs target const.
4750         * windows-tdep.c (tlb_value_funcs): Make it const.
4751
4752 2011-07-14  Hui Zhu  <teawater@gmail.com>
4753
4754         * remote.c (remote_get_trace_status): Initialize p.
4755
4756 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4757
4758         Work around kgdb.
4759         * remote.c (remote_get_trace_status): New variable ex.  Put
4760         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
4761
4762 2011-07-13  Tom Tromey  <tromey@redhat.com>
4763
4764         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4765         value_from_contents for final conversion.
4766
4767 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4768
4769         Code cleanup.
4770         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4771         Indent prototypes so they do not get into tags.
4772
4773 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4774
4775         Code cleanup making also optimized out values lazy.
4776         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4777         allocate_optimized_out_value.  Twice.
4778         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
4779         * findvar.c (read_var_value): Likewise.
4780         * value.c (allocate_optimized_out_value): New function.
4781         * value.h (allocate_optimized_out_value): New declaration.
4782
4783 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4784
4785         Fix occasional crash of CTRL-C during DWARF read in.
4786         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4787
4788 2011-07-11  Tom Tromey  <tromey@redhat.com>
4789
4790         * regcache.c (struct regcache_descr): Fix typo.
4791         * i387-tdep.c (i387_supply_xsave): Fix typo.
4792
4793 2011-07-11  Tom Tromey  <tromey@redhat.com>
4794
4795         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4796         (read_file_scope, read_type_unit_scope): Use it.
4797
4798 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4799
4800         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4801         `int'.
4802
4803 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4804
4805         PR python/12438
4806         * python/python.c: Set gdbpy_should_print_stack default to off.
4807         (set_python): Deprecate maint set python print-stack to
4808         class_deprecate.
4809         (_initialize_python): Deprecate maint set/show python print-stack.
4810         Add new prefix command, python.  Add new setting, print-backtrace.
4811         * NEWS: Document set python print-stack.  Document default change.
4812
4813 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
4814
4815         * python/py-inferior.c (infpy_dealloc): New function.
4816         (inferior_to_inferior_object): Return a new object, or a
4817         new reference to the existing object.
4818         (find_thread_object): Cleanup references to inferior.
4819         (delete_thread_object): Ditto.
4820         * python/py-infthread.c (create_thread_object): Do not increment
4821         inferior reference count.
4822
4823 2011-07-08  Tom Tromey  <tromey@redhat.com>
4824
4825         * dwarf2loc.c (locexpr_regname): New function.
4826         (locexpr_describe_location_piece): Use it.
4827         (disassemble_dwarf_expression): Add per_cu argument.  Use
4828         locexpr_regname.
4829         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4830         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4831         New cases.
4832         (locexpr_describe_location_1): Add per_cu argument.
4833         (locexpr_describe_location): Update.
4834         (loclist_describe_location): Update.
4835
4836 2011-07-08  Tom Tromey  <tromey@redhat.com>
4837
4838         * dwarf2expr.c (execute_stack_op): Add QUIT.
4839
4840 2011-07-07  Hui Zhu  <teawater@gmail.com>
4841
4842         Revert:
4843         2011-07-06  Hui Zhu  <teawater@gmail.com>
4844         * remote.c (remote_start_remote): Add TRY_CATCH for
4845         remote_get_trace_status.
4846         * tracepoint.c (disconnect_tracing): Ditto.
4847
4848 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
4849
4850         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4851         variables as signed, not unsigned.
4852
4853 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
4854
4855         * jit.c (jit_inferior_init): Reformat forward declaration.
4856
4857 2011-07-06  Matt Rice  <ratmice@gmail.com>
4858
4859         * MAINTAINERS (Write After Approval): Add myself to the list.
4860
4861 2011-07-06  Hui Zhu  <teawater@gmail.com>
4862
4863         * remote.c (remote_start_remote): Add TRY_CATCH for
4864         remote_get_trace_status.
4865         * tracepoint.c (disconnect_tracing): Ditto.
4866
4867 2011-07-05  Tom Tromey  <tromey@redhat.com>
4868
4869         * symtab.c (operator_chars): Now static.
4870         * linespec.c (operator_chars): Don't declare.
4871
4872 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4873
4874         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4875
4876 2011-07-05  Tom Tromey  <tromey@redhat.com>
4877
4878         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4879         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4880         (TYPE_CPLUS_REALLY_JAVA): New macro.
4881         * dwarf2read.c (process_structure_scope): Set
4882         TYPE_CPLUS_REALLY_JAVA.
4883
4884 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4885
4886         * ada-lang.c: Fix typos.
4887         * amd64-tdep.c: Likewise.
4888         * breakpoint.c: Likewise.
4889         * cli/cli-decode.c: Likewise.
4890         * findcmd.c: Likewise.
4891         * inline-frame.c: Likewise.
4892         * mi/mi-main.c: Likewise.
4893         * minsyms.c: Likewise.
4894         * monitor.c: Likewise.
4895         * monitor.h: Likewise.
4896         * prologue-value.c: Likewise.
4897         * reverse.c: Likewise.
4898         * s390-tdep.c: Likewise.
4899
4900 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4901
4902         * jit.c (jit_inferior_init): Forward declare.
4903         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4904
4905 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
4906
4907         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4908
4909 2011-07-04  Tristan Gingold  <gingold@adacore.com>
4910
4911         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4912         (tcb_fieldno): Add activation_link field.
4913         (get_known_tasks_addr): Moved and rewritten.
4914         (get_tcb_types_info): Set activation_link field.
4915         (read_known_tasks_array): Add parameter.  Rewritten.
4916         (read_known_tasks_list): New function.
4917         (read_known_tasks): New function.
4918         (ada_build_task_list): Call read_known_tasks instead of
4919         read_known_tasks_array.
4920         * ravenscar-thread.c: Add first_task_name constant.
4921         (has_ravenscar_runtime): Check for task list too.
4922
4923 2011-07-04  Tristan Gingold  <gingold@adacore.com>
4924
4925         * ada-tasks.c: Renames fieldno to actb_fieldno.
4926         (ada_get_task_number): Indentation.
4927         (get_tcb_types_info): Remove all parameters.  Write directly
4928         the globals.
4929         (ptid_from_atcb_common): Adjust.
4930         (read_atcb): Adjust.
4931
4932 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4933
4934         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4935
4936 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4937
4938         * ui-out.c (ui_out_field_core_addr): Mention that the function
4939         description is in the header file.
4940         * ui-out.h (ui_out_field_core_addr): Document function.
4941
4942 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4943
4944         * ui-out.c (ui_out_get_field_separator): Remove unused function.
4945         * ui-out.h (ui_out_get_field_separator): Remove prototype.
4946
4947 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4948
4949         * symtab.c (expand_line_sal): Remove empty line.
4950
4951 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
4952
4953         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4954         same way as ELFOSABI_NONE.
4955         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4956
4957 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4958
4959         * breakpoint.c: Fix typos in comments.
4960         * linespec.c: Likewise.
4961         * symtab.c: Likewise.
4962
4963 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
4964
4965         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4966         section in separate object files.
4967
4968 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4969
4970         Fix false GCC warning.
4971         * linespec.c (decode_line_1): Initialize values.
4972
4973 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4974
4975         * linespec.c (find_method): Accept the function type automatically only
4976         if it was specified with parameter types.
4977
4978 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4979
4980         Stop on first linespec terminator instead of eating what we can.
4981         * linespec.c (is_linespec_boundary): New function.
4982         (name_end): Remove function.
4983         (keep_name_info): New parameter on_boundary, replace the body.
4984         (decode_line_1): Provide the parameter to keep_name_info.
4985         (decode_compound): Likewise.  Drop the trailing java return type
4986         handling.  Twice.
4987
4988 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4989
4990         Fall back linespec to minimal symbols.
4991         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
4992         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4993         (find_method, symbol_found): Change error to cplusplus_error.
4994
4995 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4996
4997         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4998
4999 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5000             Tom Tromey  <tromey@redhat.com>
5001
5002         * dwarf2read.c (check_physname): New variable.
5003         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5004         (show_check_physname): New function.
5005         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5006
5007 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5008
5009         * machoread.c (macho_symfile_read): Delete OBE comment.
5010
5011 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5012
5013         * machoread.c (struct macho_oso_data): Delete.
5014         (current_oso): Delete.
5015         (macho_relocate_common_syms): New function, mostly extracted
5016         out of
5017         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5018         Remove code that sets and unset current_oso.
5019         (macho_symfile_relocate): Delete handling of common symbols,
5020         now moved to macho_relocate_common_syms.
5021
5022 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5023
5024         * darwin-nat.c (darwin_ptrace): Add documentation.
5025         Set errno to zero before calling ptrace.  If ptrace returns
5026         -1 and errno is zero, then change then return zero.
5027         (darwin_kill_inferior): Issue a warning instead of triggering
5028         a failed assertion when the PT_KILL ptrace operations returned
5029         nonzero.
5030
5031 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5032
5033         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5034         only when inf->private->no_ptrace.
5035
5036 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5037
5038         * ada-lang.c (print_it_exception): Print temporary catchpoints
5039         as "Temporary catchpoint".
5040         (print_mention_exception): Likewise.
5041
5042 2011-07-01  Tom Tromey  <tromey@redhat.com>
5043
5044         * jv-lang.c (java_language_defn): Use java_printchar,
5045         java_printstr.
5046         (java_get_encoding): New function.
5047         (java_emit_char): Use generic_emit_char.
5048         (java_printchar): New function.
5049         (java_printstr): Likewise.
5050
5051 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5052
5053         * ada-typeprint.c (print_record_type): If unable to decode
5054         the name of the parent type, use the encoded name.
5055
5056 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5057
5058         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5059         pointer to constrained packed array type output.
5060         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5061         packed array output.
5062
5063 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5064
5065         * ada-typeprint.c (print_array_type): removed if condition on show
5066         being negative for bounds printing.
5067
5068 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5069
5070         * ada-lang.c (ada_identical_enum_types_p): New function.
5071         (symbols_are_identical_enums): New function.
5072         (remove_extra_symbols): Do nothing if NSYMS < 2.
5073         Use symbols_are_identical_enums.
5074
5075 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5076
5077         * ada-valprint.c (ada_value_print): Handle typedefs.
5078
5079 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5080
5081         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5082
5083 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5084
5085         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5086         (decode_constrained_packed_array): Likewise.
5087         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5088
5089 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5090
5091         * ada-exp.y (convert_char_literal): Handle typedef types.
5092
5093 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5094
5095         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5096
5097 2011-06-30  Tom Tromey  <tromey@redhat.com>
5098
5099         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5100         * valops.c (find_overload_match): Call do_cleanups on early exit
5101         path.
5102         * solib.c (solib_find): Call do_cleanups on early exit path.
5103
5104 2011-06-30  Tom Tromey  <tromey@redhat.com>
5105
5106         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5107         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5108         return paths.  Defer final do_cleanups until last return.
5109         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5110         early return.
5111
5112 2011-06-30  Tom Tromey  <tromey@redhat.com>
5113
5114         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5115
5116 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5117
5118         * MAINTAINERS (Write After Approval): Add myself to the list.
5119
5120 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5121
5122         Disable epilogue unwinders on recent GCCs.
5123         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5124         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5125         * dwarf2read.c (process_full_comp_unit): Initialize
5126         EPILOGUE_UNWIND_VALID.
5127         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5128         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5129         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5130
5131 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5132
5133         Code cleanup - reformatting.
5134         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5135         (producer_is_gcc_ge_4): ... here, change the return value.
5136         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5137         interpretation.
5138
5139 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5140
5141         Fix non-only rename list for Fortran modules import.
5142         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5143         cp_add_using_directive caller.
5144         (cp_add_using_directive): New parameter excludes, describe it.  New
5145         variables ix and param.  Compare if also excludes match.  Allocate NEW
5146         with variable size, initialize EXCLUDES there.
5147         (cp_lookup_symbol_imports): New variable excludep, test
5148         current->EXCLUDES with it.
5149         * cp-support.h: Include vec.h.
5150         (struct using_direct): New field excludes, describe it.
5151         (DEF_VEC_P (const_char_ptr)): New.
5152         (cp_add_using_directive): New parameter excludes.
5153         * defs.h (const_char_ptr): New typedef.
5154         * dwarf2read.c (read_import_statement): New variables child_die,
5155         excludes and cleanups, read in excludes.
5156         (read_namespace): Adjust the cp_add_using_directive caller.
5157
5158 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5159
5160         Code cleanup.
5161         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5162         negative comparisons.
5163
5164 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5165
5166         * mi/mi-main.c (mi_cmd_list_features): Emit
5167         breakpoint-notifications.
5168
5169 2011-06-29  Tom Tromey  <tromey@redhat.com>
5170
5171         PR fortran/10036:
5172         * valprint.h (generic_emit_char, generic_printstr): Declare.
5173         * valprint.c (wchar_printable, append_string_as_wide)
5174         (print_wchar): Move from c-lang.c.
5175         (generic_emit_char): New function; mostly taken from c_emit_char.
5176         (generic_printstr): New function; mostly taken from c_printstr.
5177         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5178         represented as arrays.
5179         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5180         type.
5181         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5182         identically to TYPE_CODE_INT.
5183         * f-lang.c (f_get_encoding): New function.
5184         (f_emit_char): Use generic_emit_char.
5185         (f_printchar): Replace comment.
5186         (f_printstr): Use generic_printstr.
5187         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5188         "character" types specially.
5189         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5190         for Fortran.
5191         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5192         Move to valprint.c
5193         (c_emit_char): Call generic_emit_char.
5194         (c_printstr): Call generic_printstr.
5195
5196 2011-06-29  Gary Benson  <gbenson@redhat.com>
5197
5198         * breakpoint.c (bpstat_what): Removed duplicated case.
5199
5200 2011-06-28  Tom Tromey  <tromey@redhat.com>
5201
5202         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5203
5204 2011-06-27  Tom Tromey  <tromey@redhat.com>
5205
5206         * valops.c (find_overload_match): Call do_cleanups before early
5207         return.
5208         * top.c (execute_command): Call do_cleanups before early return.
5209         (command_loop): Likewise.
5210         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5211         conditionally call do_cleanups.
5212         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5213         TRY_CATCH.
5214         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5215         so cleanups are always run.
5216         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5217         * findcmd.c (parse_find_args): Call do_cleanups on early return
5218         path.
5219         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5220         Don't conditionally call do_cleanups.
5221         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5222         later.
5223
5224 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5225
5226         * MAINTAINERS (Write After Approval): Use default email address.
5227
5228 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5229
5230         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5231
5232 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5233
5234         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5235         saved_regs_mask and copied_regs_mask fields.
5236         (sparc_record_save_insn): New prototype.
5237         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5238         (sparc_record_save_insn): New function.
5239         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5240         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5241         frames and cache their settings.
5242         (sparc32_skip_prologue): Handle flat frames.
5243         (sparc_frame_cache): Add frame_offset to the base address.
5244         (sparc32_frame_cache): Adjust to new frame description.
5245         (sparc32_frame_prev_register): Likewise.
5246         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5247         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5248         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5249         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5250         frame by calling sparc_record_save_insn.
5251         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5252         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5253         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5254
5255 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5256
5257         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5258         field by map_addr and map_len.
5259         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5260         (munmap_section_buffer): Likewise.
5261
5262 2011-06-24  Tom Tromey  <tromey@redhat.com>
5263
5264         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5265         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5266         * python/python.c (gdbpy_parameter): Make 'arg' const.
5267         (execute_gdb_command): Likewise.
5268         (gdbpy_decode_line): Likewise.  Copy it.
5269         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5270         (gdbpy_write): Make 'arg' const.
5271         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5272         const.
5273         (gdbpy_lookup_type): Likewise.
5274         * python/py-prettyprint.c (print_children): Make 'name' const.
5275         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5276         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5277         Py_ssize_t.
5278         * python/py-function.c (fnpy_init): Make 'name' const.
5279         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5280         (gdbpy_string_to_argv): Make 'input' const.
5281         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5282         it.
5283         * gdbtypes.h (lookup_typename): Update.
5284         * gdbtypes.c (lookup_typename): Make 'name' const.
5285         (lookup_struct): Likewise.
5286         (lookup_union): Likewise.
5287         (lookup_enum): Likewise.
5288
5289 2011-06-24  Tom Tromey  <tromey@redhat.com>
5290
5291         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5292         gdb_thread_db.h.  Move all common/ entries to be together.
5293         (TAGS): Don't depend on DEPFILES.
5294
5295 2011-06-23  Yao Qi  <yao@codesourcery.com>
5296
5297         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5298         * remote.c (remote_start_remote): ... here.
5299         * monitor.c (monitor_open): ... here.
5300
5301 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5302
5303         * gdbtypes.c (append_composite_type_field_aligned): Fix
5304         calculation of bit position based on alignment.
5305
5306 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5307
5308         * breakpoint.c (bpstat_stop_status): Call the check_status
5309         breakpoint_ops method.
5310         (print_one_breakpoint_location): Also print the condition for Ada
5311         exception catchpoints.
5312         (allocate_bp_location): New, factored out from
5313         allocate_bp_location.
5314         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5315         allocate_location method, if there is one.
5316         (free_bp_location): Call the locations's dtor method, if there is
5317         one.
5318         (init_raw_breakpoint_without_location): New breakpoint_ops
5319         parameter.  Use it.
5320         (set_raw_breakpoint_without_location): Adjust.
5321         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5322         (set_raw_breakpoint): Adjust.
5323         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5324         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5325         re_set and check_status methods.
5326         (init_catchpoint): Don't memset, initialize thread, addr_string
5327         and enable_state.  Pass the ops down to init_raw_breakpoint.
5328         (install_catchpoint): Rename to ...
5329         (install_breakpoint): ... this, and make extern.
5330         (create_fork_vfork_event_catchpoint): Adjust.
5331         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5332         re_set and check_status methods.
5333         (create_syscall_event_catchpoint): Adjust.
5334         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5335         (masked_watchpoint_breakpoint_ops): Install NULL
5336         allocate_location, re_set and check_status methods.
5337         (catch_exec_command_1): Adjust.
5338         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5339         re_set and check_status methods.
5340         (create_ada_exception_breakpoint): Rename to ...
5341         (init_ada_exception_breakpoint): ... this.  Add a struct
5342         breakpoint parameter, and delete the exp_string, cond_string and
5343         cond parameters.  Use init_raw_breakpoint, and don't install or
5344         mention the breakpoint yet.  Don't clear breakpoint fields that
5345         init_raw_breakpoint already clears.
5346         (re_set_breakpoint): Delete, split into ...
5347         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5348         functions.
5349         (breakpoint_re_set_one): Call the breakpoint's
5350         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5351         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5352         (struct bp_location_ops): New type.
5353         (struct bp_location): New field `ops'.
5354         (struct breakpoint_ops): New `allocate_location', `re_set' and
5355         `check_status' fields.  Make `breakpoint_hit''s description match
5356         reality.
5357         (init_bp_location): Declare.
5358         (breakpoint_re_set_default): Declare.
5359         (create_ada_exception_breakpoint): Rename to ...
5360         (init_ada_exception_breakpoint): ... this.  Add a struct
5361         breakpoint parameter, and delete the exp_string, cond_string and
5362         cond parameters.
5363         (install_breakpoint): Declare.
5364         * ada-lang.c: Include exceptions.h.
5365         <Ada exceptions description>: Update.
5366         (struct ada_catchpoint_location): New type.
5367         (ada_catchpoint_location_dtor): New function.
5368         (ada_catchpoint_location_ops): New global.
5369         (ada_catchpoint): New type.
5370         (create_excep_cond_exprs): New function.
5371         (dtor_exception, allocate_location_exception, re_set_exception)
5372         (should_stop_exception, check_status_exception): New functions.
5373         (print_one_exception, print_mention_exception)
5374         (print_recreate_exception): Adjust.
5375         (dtor_catch_exception, allocate_location_catch_exception)
5376         (re_set_catch_exception, check_status_catch_exception): New
5377         functions.
5378         (catch_exception_breakpoint_ops): Install them.
5379         (dtor_catch_exception_unhandled)
5380         (allocate_location_catch_exception_unhandled)
5381         (re_set_catch_exception_unhandled)
5382         (check_status_catch_exception_unhandled): New functions.
5383         (catch_exception_unhandled_breakpoint_ops): Install them.
5384         (dtor_catch_assert, allocate_location_catch_assert)
5385         (re_set_catch_assert, check_status_catch_assert): New functions.
5386         (catch_assert_breakpoint_ops): Install them.
5387         (ada_exception_catchpoint_p): Delete.
5388         (catch_ada_exception_command_split)
5389         (ada_exception_catchpoint_cond_string): Rename exp_string
5390         parameter to excep_string.  Adjust.
5391         (ada_parse_catchpoint_condition): Delete.
5392         (ada_exception_sal): Rename the exp_string parameter to
5393         excep_string.  Delete the cond_string and cond parameters.
5394         Adjust.
5395         (ada_decode_exception_location): Rename the exp_string parameter
5396         to excep_string.  Delete the cond_string and cond parameters.
5397         Adjust.
5398         (create_ada_exception_catchpoint): New function.
5399         (catch_ada_exception_command, ada_decode_assert_location)
5400         (catch_assert_command): Adjust.
5401         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5402
5403 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5404
5405         * ada-lang.c: Include arch-utils.h.
5406         (ada_decode_exception_location): Make static.
5407         (catch_ada_exception_command): Moved here from breakpoint.c.
5408         (ada_decode_assert_location): Make static.
5409         (catch_assert_command): Moved here from breakpoint.c.
5410         (_initialize_ada_lang): Install the exception and assert
5411         catchpoint commands here.
5412         * ada-lang.h (ada_decode_exception_location)
5413         (ada_decode_assert_location): Delete declarations.
5414         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5415         breakpoint.h.
5416         (create_ada_exception_breakpoint): Make extern.
5417         (catch_ada_exception_command, catch_assert_command): Moved to
5418         ada-lang.c.
5419         (add_catch_command): Make extern.
5420         (_initilize_breakpoint): Don't install the exception and assert
5421         catchpoint commands here.
5422         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5423         breakpoint.c
5424         (add_catch_command, create_ada_exception_breakpoint): Declare.
5425
5426 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5427
5428         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5429         the breakpoint to the breakpoint chain here.
5430         (set_raw_breakpoint_without_location): Add the breakpoint to the
5431         breakpoint chain here.
5432         (init_raw_breakpoint): Adjust comments.
5433         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5434         here.
5435         (init_catchpoint): Don't set the catchpoint's breakpoint number
5436         here.
5437         (install_catchpoint): New function.
5438         (create_fork_vfork_event_catchpoint)
5439         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5440         use install_catchpoint.
5441
5442 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5443
5444         * breakpoint.c (create_catchpoint_without_mention)
5445         (create_catchpoint): Delete.
5446
5447 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5448
5449         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5450         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5451         reference to exec_pathname.
5452         (struct exec_catchpoint): New type.
5453         (dtor_catch_exec): New function.
5454         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5455         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5456         (catch_exec_command_1): Adjust to use init_catchpoint.
5457         (delete_breakpoint): Remove reference to exec_pathname.
5458
5459 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5460
5461         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5462         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5463         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5464         reference to syscalls_to_be_caught.
5465         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5466         NULL `dtor'.
5467         (struct syscall_catchpoint): New type.
5468         (dtor_catch_syscall): New function.
5469         (insert_catch_syscall, remove_catch_syscall)
5470         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5471         (print_recreate_catch_syscall): Adjust.
5472         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5473         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5474         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5475         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5476         (masked_watchpoint_breakpoint_ops)
5477         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5478         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5479         there is one.  Remove references to syscalls_to_be_caught.
5480         (catching_syscall_number): Adjust.
5481         * ada-lang.c (catch_exception_breakpoint_ops)
5482         (catch_exception_unhandled_breakpoint_ops)
5483         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5484
5485 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5486
5487         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5488         field.
5489         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5490         reference to forked_inferior_pid.
5491         (struct fork_catchpoint): New type.
5492         (breakpoint_hit_catch_fork, print_it_catch_fork)
5493         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5494         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5495         (create_fork_vfork_event_catchpoint): Adjust to use
5496         init_catchpoint.
5497
5498 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5499
5500         * breakpoint.c (add_to_breakpoint_chain)
5501         (init_raw_breakpoint_without_location): New functions, factored
5502         out from ...
5503         (set_raw_breakpoint_without_location): ... this one.
5504         (init_raw_breakpoint): New function, factored out from
5505         set_raw_breakpoint and adjusted to use
5506         init_raw_breakpoint_without_location.
5507         (set_raw_breakpoint): Adjust.
5508         (init_catchpoint): New function, factored out from
5509         create_catchpoint_without_mention and adjusted to use
5510         init_raw_breakpoint.
5511         (create_catchpoint_without_mention): Adjust.
5512
5513 2011-06-22  Tom Tromey  <tromey@redhat.com>
5514
5515         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5516         argument of 0 specially.
5517
5518 2011-06-22  Yao Qi  <yao@codesourcery.com>
5519
5520         * infrun.c (handle_inferior_event): Remove write-only local variable
5521         `sw_single_step_trap_p'.
5522
5523 2011-06-20  Tom Tromey  <tromey@redhat.com>
5524
5525         * symtab.c (lookup_language_this): End loop if block is NULL.
5526
5527 2011-06-17  Tom Tromey  <tromey@redhat.com>
5528
5529         * valops.c (value_of_this): Use lookup_language_this.
5530         * symtab.h (lookup_language_this): Declare.
5531         * symtab.c (lookup_language_this): New function.
5532         (lookup_symbol_aux): Use lookup_language_this.
5533         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5534
5535 2011-06-17  Tom Tromey  <tromey@redhat.com>
5536
5537         * value.h (value_of_this): Update.
5538         (value_of_local): Remove.
5539         * valops.c (value_of_this): Rename from value_of_local.  Change
5540         parameters.
5541         * p-exp.y (exp): Update.
5542         (variable): Likewise.
5543         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5544
5545 2011-06-17  Tom Tromey  <tromey@redhat.com>
5546
5547         * valops.c (value_of_local): Complain if NAME is NULL.
5548         * std-operator.def (OP_OBJC_SELF): Remove.
5549         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5550         * objc-exp.y (name_not_typename): Use OP_THIS.
5551         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5552         name for "this".
5553         <OP_OBJC_SELF>: Remove.
5554         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5555
5556 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5557
5558         * python/py-events.h (gdb_py_events): Make it extern.
5559         * python/py-evtregistry.c (gdb_py_events): Declare.
5560
5561 2011-06-16  Hui Zhu  <teawater@gmail.com>
5562
5563         * remote.c (remote_trace_set_readonly_regions): Add check for
5564         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5565         output warning.
5566
5567 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5568
5569         * arm-linux-tdep.c: Include "auxv.h".
5570         (AT_HWCAP): Define.
5571         (ARM_LINUX_SIZEOF_VFP): Define.
5572         (arm_linux_supply_vfp): New function.
5573         (arm_linux_collect_vfp): Likewise.
5574         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5575         (arm_linux_fpa_regset_sections): New variable.
5576         (arm_linux_vfp_regset_sections): Likewise.
5577         (arm_linux_core_read_description): New function.
5578         (arm_linux_init_abi): Install arm_linux_core_read_description and
5579         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5580         appropriate for the architecture.
5581         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5582         (tdesc_arm_with_m): Declare.
5583         (tdesc_arm_with_iwmmxt): Likewise.
5584         (tdesc_arm_with_vfpv2): Likewise.
5585         (tdesc_arm_with_vfpv3): Likewise.
5586         (tdesc_arm_with_neon): Likewise.
5587         * arm-linux-nat.c: Move features/*.c includes ...
5588         * arm-tdep.c: ... here.
5589         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5590         target description data structures ...
5591         * arm-tdep.c (_initialize_arm_tdep): ... here.
5592         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5593         HWCAP_VFPv3D16): Move definitions ...
5594         * arm-linux-tdep.h: ... here.
5595
5596 2011-06-15  Hui Zhu  <teawater@gmail.com>
5597
5598         * remote.c (remote_trace_set_readonly_regions): Add a check for
5599         target_buf_size.
5600
5601 2011-06-14  Tom Tromey  <tromey@redhat.com>
5602
5603         * coffread.c (coffread_objfile): Rename from current_objfile.
5604         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5605         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5606
5607 2011-06-14  Tom Tromey  <tromey@redhat.com>
5608
5609         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5610         (class_symtab): Remove.
5611         (jv_dynamics_progspace_key): New global.
5612         (jv_per_objfile_free): Reset program space data.  Update assert.
5613         Don't clear globals.
5614         (get_dynamics_objfile): Use and set program space data.
5615         (get_java_class_symtab): Use get_dynamics_objfile.
5616         (add_class_symbol): Likewise.
5617         (java_link_class_type): Likewise.
5618         (java_object_type, jv_clear_object_type, set_java_object_type):
5619         Remove.
5620         (get_java_object_type): Update.  Don't cache result.
5621         (is_object_type): Don't call set_java_object_type.
5622         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5623         initialize jv_dynamics_progspace_key.
5624
5625 2011-06-14  Tom Tromey  <tromey@redhat.com>
5626
5627         * symtab.h (current_objfile): Don't declare.
5628         * objfiles.h (current_objfile): Don't declare.
5629         * objfiles.c (current_objfile): Remove.
5630         * mdebugread.c (current_objfile): New file-scope global.
5631         * dbxread.c (current_objfile): New file-scope global.
5632         * coffread.c (current_objfile): New file-scope global.
5633
5634 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5635
5636         * top.h (line): Rename to ...
5637         (saved_command_line): ... this.
5638         (linesize): Rename to ...
5639         (saved_command_line_size): ... this.
5640         * top.c (line): Rename to ...
5641         (saved_command_line): ... this.
5642         (linesize): Rename to ...
5643         (saved_command_line_size): ... this.
5644         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5645         * event-top.c (command_line_handler): Adjust.
5646         * main.c (captured_main): Adjust.
5647
5648 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5649
5650         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
5651         get_frame_func instead of get_frame_pc to determine the code
5652         address used to construct the frame ID.
5653         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5654         (i386_epilogue_frame_this_id): Likewise.
5655         (i386_epilogue_frame_prev_register): New function.
5656         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5657         (i386_stack_tramp_frame_sniffer): Fix coding style.
5658         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5659         (i386_gdbarch_init): Fix comments.
5660
5661 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
5662
5663         * i386-tdep.c (i386_match_insn_block): Use length of the proper
5664         instruction when walking back through the instruction stream.
5665
5666 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5667
5668         * symtab.c (output_partial_symbol_filename): Exchange the filename and
5669         fullname parameters order.
5670
5671 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5672
5673         Code cleanup.
5674         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5675         for fun.
5676         * psymtab.c (map_symbol_filenames_psymtab)
5677         (map_partial_symbol_filenames): Likewise.
5678         * psymtab.h: Include symfile.h.
5679         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5680         * symfile.h (symbol_filename_ftype): New.
5681         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5682         map_symbol_filenames, clarify more the naming in comment.
5683
5684 2011-06-07  Doug Evans  <dje@google.com>
5685
5686         * cc-with-index.sh: Fix typos in comment.
5687         Look for ../../gdb, for fullname.exp.
5688
5689 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5690             Pedro Alves  <pedro@codesourcery.com>
5691
5692         * cli/cli-cmds.c (shell_escape): Use waitpid.
5693         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5694
5695 2011-06-07  Tristan Gingold  <gingold@adacore.com>
5696
5697         * xcoffread.c (dwarf2_xcoff_names): New variable.
5698         (aix_process_linenos): Add a guard.
5699         (xcoff_symfile_finish): Free dwarf2.
5700         (xcoff_initial_scan): Add dwarf2 support.
5701
5702 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
5703
5704         * infcall.c (run_inferior_call): Don't mask async.  Instead force
5705         a synchronous wait, if the target can async.
5706
5707         * target.h (struct target_ops): Delete to_async_mask.
5708         (target_async_mask): Delete.
5709         * target.c (update_current_target): Delete references to to_async_mask.
5710         * linux-nat.c (linux_nat_async_mask_value): Delete.
5711         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5712         to linux_nat_async_mask_value.
5713         (linux_nat_async_mask): Delete.
5714         (linux_nat_async, linux_nat_close): Remove references to
5715         linux_nat_async_mask_value.
5716         * record.c (record_async_mask_value): Delete.
5717         (record_async): Remove references to record_async_mask_value.
5718         (record_async_mask): Delete.
5719         (record_can_async_p, record_is_async_p): Remove references to
5720         record_async_mask_value.
5721         (init_record_ops, init_record_core_ops): Remove references to
5722         record_async_mask.
5723         * remote.c (remote_async_mask_value): Delete.
5724         (init_remote_ops): Remove reference to remote_async_mask.
5725         (remote_can_async_p, remote_is_async_p): Remove references to
5726         remote_async_mask_value.
5727         (remote_async): Remove references to remote_async_mask_value.
5728         (remote_async_mask): Delete.
5729
5730         * infrun.c (fetch_inferior_event): Don't claim registers changed
5731         if the current thread is already not executing.
5732
5733 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
5734
5735         From Stephen Kitt  <steve@sk2.org>
5736         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5737         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5738
5739 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
5740
5741         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5742         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5743
5744 2011-06-03  Tom Tromey  <tromey@redhat.com>
5745
5746         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5747         code fields.
5748         * python/py-exitedevent.c (create_exited_event_object): Change
5749         type of 'exit_code'.  Optionally add exit_code attribute.
5750         (emit_exited_event): Change type of 'exit_code'.
5751         * python/py-event.h (emit_exited_event): Update.
5752         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5753         * infrun.c (handle_inferior_event): Set exit code fields on
5754         inferior.
5755         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5756         fields.
5757         * inferior.c (exit_inferior_1): Initialize new fields.
5758
5759 2011-06-03  Tom Tromey  <tromey@redhat.com>
5760
5761         * dwarf2expr.c (get_signed_type): New function.
5762         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5763
5764 2011-06-02  Keith Seitz  <keiths@redhat.com>
5765
5766         * objc-lang.c (find_methods): Increment objfile_csym earlier.
5767
5768 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
5769
5770         * top.h (simplified_command_loop): Delete declaration.
5771
5772 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
5773
5774         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5775         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
5776
5777 2011-06-01  Yao Qi  <yao@codesourcery.com>
5778
5779         * objfiles.h (obj_section_addr): Update reference to objfile from
5780         `abfd' to `obfd'.
5781         (obj_section_endaddr): Likewise.
5782
5783 2011-06-01  Daniel Jacobowitz  <drow@false.org>
5784
5785         * MAINTAINERS: Update my email address and affiliation.  Also
5786         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
5787
5788 2010-05-31  Keith Seitz  <keiths@redhat.com>
5789
5790         PR c++/12750
5791         * linespec.c (get_search_block): New function.
5792         (find_methods): Add FILE_SYMTATB parameter and use it and
5793         get_search_block to pass an appropriate block to
5794         lookup_symbol_in_namespace.
5795         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5796         Check if *ARGPTR starts with a filename first.
5797         If it does, call locate_first_half again to locate the next
5798         "first half" of the linespec.
5799         Pass FILE_SYMTATB to decode_objc and decode_compound.
5800         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5801         (locate_first_half): Stop on the first colon seen.
5802         (decode_compound): Add FILE_SYMTAB parameter.
5803         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5804         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5805         get_search_block with lookup_symbol.
5806         (find_method): Add FILE_SYMTAB parameter and pass it to
5807         find_methods.
5808         (decode_objc): Use get_search_block.
5809
5810 2010-05-31  Keith Seitz  <keiths@redhat.com>
5811
5812         PR symtab/12704
5813         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5814         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5815         and CP_ANONYMOUS_NAMESPACE_LEN.
5816         (cp_is_anonymous): Likewise.
5817         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5818         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5819         * dwarf2read.c (namespace_name): Likewise.
5820         (fixup_partial_die): Likewise.
5821         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5822         seen in the input, keep it.
5823
5824 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5825
5826         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5827         * inf-loop.h (inferior_event_handler_wrapper): Delete.
5828         * inf-loop.c (inferior_event_handler_wrapper): Delete.
5829         (inferior_event_handler): Don't handle INF_QUIT_REQ.
5830         * remote.c (_initialize_remote): Register
5831         async_remote_interrupt_twice directly as
5832         sigint_remote_twice_token event.
5833
5834 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5835
5836         * target.h (enum inferior_event_type): Delete INF_ERROR.
5837         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5838
5839 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5840
5841         * interps.c (interp_set): Don't cancel continuations.
5842
5843 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5844
5845         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5846
5847 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
5848
5849         * continuations.h (continuation_ftype): Add `err' parameter.
5850         Document parameters.
5851         (do_all_continuations, do_all_continuations_thread)
5852         (do_all_intermediate_continuations)
5853         (do_all_intermediate_continuations_thread)
5854         (do_all_inferior_continuations): Add `err' parameter.
5855         * continuations.c (do_my_continuations_1, do_my_continuations)
5856         (do_all_inferior_continuations, do_all_continuations_ptid)
5857         (do_all_continuations_thread_callback)
5858         (do_all_continuations_thread, do_all_continuations)
5859         (do_all_intermediate_continuations_thread_callback)
5860         (do_all_intermediate_continuations_thread)
5861         (do_all_intermediate_continuations): Add `err' parameter, and pass
5862         it down all the way to the continuations proper.
5863         * inf-loop.c (inferior_event_handler): If fetching an inferior
5864         event throws an error, don't pop the target, and still call the
5865         continuations, but with `err' set.  Adjust all other continuation
5866         calls.
5867         * breakpoint.c (until_break_command_continuation): Add `err'
5868         parameter.
5869         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
5870         issue another step if `err' is set.
5871         (struct until_next_continuation_args): New.
5872         (until_next_continuation): Add `err' parameter.  Adjust.
5873         (until_next_command): Adjust.
5874         (struct finish_command_continuation_args): Add `thread' field.
5875         (finish_command_continuation): Add `err' parameter.  Handle it.
5876         (finish_forward): Adjust.
5877         (attach_command_continuation): Add `err' parameter.  Handle it.
5878         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5879         cancel the continuations.
5880         * interps.c (interp_set): Adjust to cancel the continuations.
5881         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5882         continuations rather than discarding.
5883         (free_thread): Don't clear thread inferior resources here.
5884         (delete_thread_1): Do it here instead.  And do it before removing
5885         the thread from the threads list.  Tag the thread as exited before
5886         clearing thread inferior resources.
5887
5888 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
5889
5890         * infcall.c (call_function_by_hand): Rephrase error message.
5891
5892 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5893
5894         * defs.h (struct thread_info, struct inferior): Delete forward
5895         declarations.
5896         * breakpoint.h (struct thread_info): New forward declaration.
5897         * observer.sh (struct inferior): New forward declaration.
5898         * python/python-internal.h (struct inferior): New forward
5899         declaration.
5900
5901 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5902
5903         * defs.h (struct continuation, continuation_ftype)
5904         (continuation_free_arg_ftype, add_continuation)
5905         (do_all_continuations, do_all_continuations_thread)
5906         (discard_all_continuations, discard_all_continuations_thread)
5907         (add_intermediate_continuation, do_all_intermediate_continuations)
5908         (do_all_intermediate_continuations_thread)
5909         (discard_all_intermediate_continuations)
5910         (discard_all_intermediate_continuations_thread)
5911         (add_inferior_continuation, do_all_inferior_continuations)
5912         (discard_all_inferior_continuations): Move to ...
5913         * continuations.h: ... this new file.
5914         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5915         infcmd.c, inferior.c, infrun.c, interps.c: Include
5916         continuations.h.
5917
5918 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5919             Doug Evans  <dje@google.com>
5920
5921         Fix PR 10970, PR 12702.
5922         * linux-nat.c (linux_lwp_is_zombie): New function.
5923         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
5924         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
5925
5926 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5927
5928         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5929         typedefs.
5930         (add_continuation, add_intermediate_continuation)
5931         (add_inferior_continuation): Use them.
5932         * continuations.c (struct continuation): Use them.
5933         (make_continuation_ftype): Delete.
5934         (make_continuation, add_inferior_continuation, add_continuation)
5935         (add_intermediate_continuation): Use continuation_ftype and
5936         continuation_free_arg_ftype.  Rename parameters to shorter names.
5937
5938 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5939
5940         * continuations.c (make_continuation): Make it return void.
5941         (do_my_continuations): Rename to ...
5942         (do_my_continuations_1): ... this.  Remove old_chain parameter and
5943         adjust.
5944         (do_my_continuations): New.
5945         (discard_my_continuations): Rename to ...
5946         (discard_my_continuations_1): ... this.  Remove old_chain
5947         parameter and adjust.
5948         (discard_my_continuations): New.
5949         (add_inferior_continuation): Simplify.
5950         (do_all_inferior_continuations): Reimplement on top
5951         do_my_continuations.
5952         (discard_all_inferior_continuations): Simplify.
5953         (add_continuation): Simplify.
5954         (do_all_continuations_ptid): Simplify.
5955         (discard_all_continuations_thread_callback): Simplify.
5956         (add_intermediate_continuation): Simplify.
5957         (discard_all_intermediate_continuations_thread_callback):
5958         Simplify.
5959
5960 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
5961
5962         * utils.c (struct continuation, add_continuation)
5963         (add_inferior_continuation)
5964         (do_all_inferior_continuations, discard_all_inferior_continuations)
5965         (restore_thread_cleanup, do_all_continuations_ptid)
5966         (do_all_continuations_thread_callback)
5967         (do_all_continuations_thread, do_all_continuations)
5968         (discard_all_continuations_thread_callback)
5969         (discard_all_continuations_thread, discard_all_continuations)
5970         (add_intermediate_continuation)
5971         (do_all_intermediate_continuations_thread_callback)
5972         (do_all_intermediate_continuations_thread)
5973         (do_all_intermediate_continuations)
5974         (discard_all_intermediate_continuations_thread_callback)
5975         (discard_all_intermediate_continuations_thread)
5976         (discard_all_intermediate_continuations): Move to ...
5977         * continuations.c: ... this new file, and adjust to no longer
5978         implement continuations on top of cleanups.
5979         * Makefile.in (SFILES): Add continuations.c.
5980         (COMMON_OBS): Add continuations.o.
5981
5982 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5983
5984         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5985         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5986         Internal error on invalid values.
5987         * reverse.c: Don't handle EXEC_ERROR.
5988         * mi/mi-main.c: Don't handle EXEC_ERROR.
5989
5990 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5991
5992         * record.c: Include event-loop.h, inf-loop.h.
5993         (record_beneath_to_async): New global.
5994         (tmp_to_async): New global.
5995         (record_async_inferior_event_token): New global.
5996         (record_open_1): Don't error out if async is enabled.
5997         (record_open): Handle to_async.  Create an async event source in
5998         the event loop.
5999         (record_close): Delete the async event source.
6000         (record_resumed): New global.
6001         (record_execution_dir): New global.
6002         (record_resume, record_core_resume): Set them.  Register the
6003         target on the event loop.
6004         (record_wait): Rename to ...
6005         (record_wait_1): ... this.  Add more debug output.  Handle
6006         TARGET_WNOHANG, and the target beneath returning
6007         TARGET_WAITKIND_IGNORE.
6008         (record_wait): Reimplement on top of record_wait_1.
6009         (record_async_mask_value): New global.
6010         (record_async, record_async_mask, record_can_async_p)
6011         (record_is_async_p, record_execution_direction): New functions.
6012         (init_record_ops, init_record_core_ops): Install new methods.
6013         * infrun.c (fetch_inferior_event): Temporarily switch the global
6014         execution direction to the direction the target was going.
6015         (execution_direction): Change type to int.
6016         * target.c (default_execution_direction): New function.
6017         (update_current_target): Inherit and de_fault
6018         to_execution_direction.
6019         * target.h (struct target_ops) <to_execution_direction>: New
6020         field.
6021         (target_execution_direction): New macro.
6022         * inferior.h (execution_direction): Change type to int.
6023
6024 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6025
6026         * infcall.c (call_function_by_hand): Don't allow calling functions
6027         in reverse execution mode.
6028
6029 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6030
6031         * infcmd.c (finish_command): Allow async finish in reverse.
6032
6033 2011-05-26  Yao Qi  <yao@codesourcery.com>
6034
6035         * gdb_thread_db.h: Delete.  Move to ...
6036         * common/gdb_thread_db.h: ... here.
6037
6038 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6039
6040         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6041         function's entry point instead of a manually managed momentary
6042         breakpoint, and only ever issue one proceed call.
6043         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6044         doing a reverse-finish, switch to stepi mode, to do another step.
6045         (insert_step_resume_breakpoint_at_sal): Make public.
6046         (normal_stop): No need to save function value return registers if
6047         going reverse.
6048         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6049
6050 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6051
6052         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6053         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6054         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6055         at the end.
6056         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6057         step-resume breakpoints.
6058         (print_it_typical): Handle bp_hp_step_resume.
6059         (bpstat_what): Ditto.
6060         (bptype_string): Ditto.
6061         (print_one_breakpoint_location): Ditto.
6062         (allocate_bp_location): Ditto.
6063         (mention): Ditto.
6064         (breakpoint_re_set_one): Ditto.
6065         * infrun.c (handle_inferior_event): Adjust.  Split
6066         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6067         BPSTAT_WHAT_HP_STEP_RESUME.
6068         (insert_step_resume_breakpoint_at_sal): Rename to ...
6069         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6070         parameter.  Handle it.
6071         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6072         insert_step_resume_breakpoint_at_sal_1.
6073         (insert_step_resume_breakpoint_at_frame): Rename to ...
6074         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6075         set a high-priority step-resume breakpoint.
6076         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6077         (insert_step_resume_breakpoint_at_caller): Ditto.
6078
6079 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6080
6081         * breakpoint.c (iterate_over_related_breakpoints): New.
6082         (do_map_delete_breakpoint): New.
6083         (delete_command): Pass do_map_delete_breakpoint to
6084         map_breakpoint_numbers.
6085         (do_disable_breakpoint): New.
6086         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6087         breakpoints.
6088         (do_enable_breakpoint): Rename to ...
6089         (enable_breakpoint_disp): ... this.
6090         (enable_breakpoint): Adjust.
6091         (do_enable_breakpoint): New.
6092         (enable_once_breakpoint): Delete.
6093         (do_map_enable_breakpoint): New.
6094         (do_map_enable_once_breakpoint): New.
6095         (enable_once_command, enable_delete_command)
6096         (delete_trace_command): Iterate over the breakpoint's related
6097         breakpoints.
6098
6099 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6100
6101         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6102         for ALPHA_ZERO_REGNUM.
6103         (alpha_supply_int_regs): Explicitly supply zero as the value for
6104         ALPHA_ZERO_REGNUM in the register cache.
6105         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6106
6107 2011-05-26  Yao Qi  <yao@codesourcery.com>
6108
6109         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6110
6111 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6112
6113         * symfile.h (struct dwarf2_section_names): New type.
6114         (struct dwarf2_debug_sections): New type.
6115         (dwarf2_has_info): Add parameter.
6116         * dwarf2read.c (dwarf2_elf_names): New variable.
6117         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6118         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6119         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6120         (dwarf2_has_info): Add names parameter.  Pass names
6121         to dwarf2_locate_sections.
6122         (section_is_p): Rewrite using the names parameter.
6123         (dwarf2_locate_sections): Use section names from the names parameter.
6124         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6125         * elfread.c (read_psyms): Ditto.
6126         * machoread.c (macho_symfile_read): Ditto.
6127
6128 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6129
6130         PR gdb/8677
6131         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6132
6133 2011-05-24  Keith Seitz  <keiths@redhat.com>
6134
6135         PR breakpoint/12803
6136         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6137         (decode_compound): Unconditionally call keep_name_info.
6138
6139 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6140
6141         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6142         scope, clear its command list.
6143         (map_breakpoint_numbers): Don't walk the related breakpoints list
6144         of each breakpoint.
6145
6146 2011-05-24  Tom Tromey  <tromey@redhat.com>
6147
6148         * MAINTAINERS: Move Jim Blandy to past maintainers.
6149
6150 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6151
6152         * symfile.h (enum dwarf2_section_enum): New type.
6153         (dwarf2_get_section_info): New prototype.
6154         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6155         section_name by sect.  Use a switch to select the info.
6156         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6157         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6158
6159 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6160
6161         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6162         shared library event breakpoint if there's no execution.
6163
6164 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6165
6166         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6167         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6168
6169 2011-05-23  Tom Tromey  <tromey@redhat.com>
6170
6171         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6172         NULL.
6173
6174 2011-05-23  Doug Evans  <dje@google.com>
6175
6176         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6177         entry for RuntimeError to doc string.
6178
6179 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6180
6181         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6182         sequence for probing loops.
6183
6184 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6185
6186         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6187         comment.
6188
6189 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6190
6191         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6192         zero as the value for %g0 in the register cache.
6193         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6194         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6195
6196 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6197
6198         * infrun.c (proceed): Set previous_inferior_ptid here.
6199         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6200         inferior_ptid, not null_ptid.
6201         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6202         (fetch_inferior_event): Nor here.
6203
6204 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6205
6206         * inf-loop.c (inferior_event_handler): Only output a message if
6207         verbose.
6208
6209 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6210
6211         * MAINTAINERS: Update my e-mail address.
6212
6213 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6214
6215         * infrun.c (proceed): Switch the inferior event loop to
6216         INF_EXEC_COMPLETE if the target refused to resume from a
6217         vfork/fork.
6218
6219 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6220
6221         * infcmd.c: Include "inf-loop.h".
6222         (step_once): When stepping into an inline subroutine, pretend the
6223         target has run.  If the target can async, switch the inferior
6224         event loop to INF_EXEC_COMPLETE.
6225         * inferior.h (user_visible_resume_ptid): Declare.
6226         * infrun.c (user_visible_resume_ptid): New function, factored out
6227         from `resume'.
6228         (resume): Use it.
6229         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6230         that the current thread is running.  Merge async and sync
6231         branches.
6232
6233 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6234
6235         * infcmd.c (step_1): Simplify synchronous case.
6236
6237 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6238
6239         * tracepoint.c: Include exceptions.h.
6240         (TFILE_PID): Move higher in file.
6241         (tfile_open): Delay pushing the tfile target until we're assured
6242         the tfile header is present in the file.  Wrap reading the initial
6243         newline-terminated lines in TRY_CATCH.  Pop the target if the
6244         initial setup failed.  Add the tfile's thread immediately
6245         aftwards, before any non-essential setup.  Don't skip
6246         post_create_inferior if there are no traceframes present in the
6247         file.
6248         (tfile_close): Remove redundant check for null before xfree call.
6249         (tfile_thread_alive): New function.
6250         (init_tfile_ops): Register it as to_thread_alive callback.
6251
6252 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6253
6254         * tracepoint.c (tfile_open): Delete #if 0'd code.
6255
6256 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6257
6258         Fix -readnow for -gdwarf-4 unused type units.
6259         * dwarf2read.c (struct signatured_type): Remove the field offset.
6260         (create_signatured_type_table_from_index): Remove its initialization.
6261         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6262         instead.  Add a complaint call.
6263         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6264         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6265         (lookup_signatured_type_at_offset, read_signatured_type)
6266         (write_one_signatured_type): Update the field for per_cu.
6267
6268 2011-05-19  Tom Tromey  <tromey@redhat.com>
6269
6270         * python/py-inferior.c (python_inferior_exit): Use
6271         target_gdbarch.
6272         (python_on_resume): Likewise.
6273
6274 2011-05-19  Matt Rice  <ratmice@gmail.com>
6275
6276         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6277
6278 2011-05-19  Hui Zhu  <teawater@gmail.com>
6279
6280         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6281
6282 2011-05-19  Hui Zhu  <teawater@gmail.com>
6283
6284         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6285
6286 2011-05-18  Tom Tromey  <tromey@redhat.com>
6287
6288         * dwarf2read.c (dwarf2_add_field): Constify.
6289         * value.c (value_static_field): Constify.
6290         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6291         Now const.
6292         * ax-gdb.c (gen_static_field): Constify
6293
6294 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6295
6296         * linux-nat.c (kill_callback): Use SIGKILL first.
6297
6298 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6299
6300         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6301
6302 2011-05-18  Tom Tromey  <tromey@redhat.com>
6303
6304         * value.c (value_fn_field): Constify.
6305         * symtab.c (gdb_mangle_name): Constify.
6306         * stabsread.c (update_method_name_from_physname): Make 'physname'
6307         argument const.
6308         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6309         const.  Use explicit fputc_filtered loop.
6310         (pascal_type_print_base): Constify.
6311         * p-lang.h (pascal_type_print_method_args): Update.
6312         * linespec.c (add_matching_methods): Constify.
6313         (add_constructors): Likewise.
6314         * jv-typeprint.c (java_type_print_base): Constify.
6315         * gdbtypes.h (struct cplus_struct_type)
6316         <fn_fieldlist.fn_field.physname>: Now const.
6317         * dwarf2read.c (compute_delayed_physnames): Constify.
6318         (dwarf2_add_member_fn): Likewise.
6319         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6320
6321 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6322
6323         * infrun.c (resume): Mention which is the current thread, and its
6324         current PC in debug output.
6325         (prepare_to_proceed): Mention the thread switching in debug
6326         output.
6327
6328 2011-05-18  Tom Tromey  <tromey@redhat.com>
6329
6330         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6331         path check.  Use xmalloc and cleanups.
6332         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6333
6334 2011-05-17  Tom Tromey  <tromey@redhat.com>
6335
6336         * cp-valprint.c (cp_print_value_fields): Catch errors from
6337         value_static_field.
6338
6339 2011-05-17  Tom Tromey  <tromey@redhat.com>
6340
6341         * dwarf2read.c (dwarf2_get_die_type): Call
6342         get_die_type_at_offset.
6343         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6344         get_base_type function.
6345
6346 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6347
6348         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6349         trap_expected.
6350
6351 2011-05-16  Doug Evans  <dje@google.com>
6352
6353         * python/py-auto-load.c (source_section_scripts): Mention objfile
6354         name in warning.
6355
6356 2011-05-15  Doug Evans  <dje@google.com>
6357
6358         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6359         (try_thread_db_load_from_pdir): Call it.  If unable to find
6360         libthread_db in directory of libpthread, see if we're looking at
6361         the separate-debug-info copy.
6362
6363         * python/py-autoload.c (print_script): Print "Missing" instead of
6364         "No" for missing scripts.
6365         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6366
6367 2011-05-13  Doug Evans  <dje@google.com>
6368
6369         * ui-file.c (stdio_file_write_async_safe): Add comment.
6370
6371 2011-05-14  Hui Zhu  <teawater@gmail.com>
6372
6373         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6374
6375 2011-05-13  Doug Evans  <dje@google.com>
6376
6377         Support $pdir and $sdir in libthread-db-search-path.
6378         * NEWS: Mention $sdir,$pdir.
6379         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6380         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6381         (try_thread_db_load_from_sdir): New function.
6382         (try_thread_db_load_from_dir): New function.
6383         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6384         system directories if search of libthread-db-search-path fails,
6385         that is now done via $sdir.
6386         (has_libpthread): New function.
6387         (thread_db_load): Remove search for libthread_db in directory of
6388         libpthread, that is now done via $pdir.
6389
6390         * NEWS: Mention "info auto-load-scripts".
6391         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6392         script_not_found_warning_printed.
6393         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6394         all callers updated.  Initialize script_not_found_warning_printed.
6395         (get_auto_load_pspace_data_for_loading): New function.
6396         (maybe_add_script): New function.
6397         (source_section_scripts): Simplify.  Only print one warning regardless
6398         of the number of auto-load scripts not found.
6399         (clear_section_scripts): Clear script_not_found_warning_printed.
6400         (auto_load_objfile_script): Record script in hash table.
6401         (count_matching_scripts): New function.
6402         (maybe_print_script): Renamed from maybe_print_section_script, all
6403         callers updated.  Rewrite to use ui_out_*.
6404         (info_auto_load_scripts): Renamed from
6405         maintenance_print_section_scripts, all callers updated.
6406         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6407         renamed as "info auto-load-scripts".
6408
6409 2011-05-13  Tom Tromey  <tromey@redhat.com>
6410
6411         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6412         (read_sleb128): Likewise.
6413
6414 2011-05-13  Tom Tromey  <tromey@redhat.com>
6415
6416         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6417         offset display.
6418
6419 2011-05-13  Doug Evans  <dje@google.com>
6420
6421         * linux-nat.c (debug_linux_nat_async): Delete.
6422         Replace all references to use debug_linux_nat instead.
6423         (show_debug_linux_nat_async): Delete.
6424         (sigchld_handler): Call ui_file_write_async_safe instead of
6425         fprintf_unfiltered.
6426         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6427         * ui-file.c (struct ui_file): New member to_write_async_safe.
6428         (null_file_write_async_safe): New function.
6429         (ui_file_write_async_safe): New function.
6430         (set_ui_file_write_async_safe): New function.
6431         (ui_file_new): Initialize to_write_async_safe.
6432         (stdio_file_write_async_safe): New function.
6433         (struct stdio_file): New member fd.
6434         (stdio_file_new): Initialize to_write_async_safe, fd.
6435         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6436         fileno.
6437         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6438         (set_ui_file_write_async_safe): Declare.
6439         (ui_file_write_async_safe): Declare.
6440
6441 2011-05-13  Tom Tromey  <tromey@redhat.com>
6442
6443         * utils.c (do_value_free): New function.
6444         (make_cleanup_value_free): Likewise.
6445         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6446         freeing correctly.
6447         (dwarf2_loc_desc_needs_frame): Call
6448         make_cleanup_value_free_to_mark.
6449         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6450         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6451         value_free_to_mark.
6452         (new_dwarf_expr_context): Don't call value_mark.
6453         * dwarf2-frame.c (execute_stack_op): Call
6454         make_cleanup_value_free_to_mark.
6455         * defs.h (make_cleanup_value_free): Declare.
6456
6457 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6458
6459         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6460         prepare_execute_command.
6461         * top.c (prepare_execute_command): Return cleanup.
6462         (execute_command): Use cleanup from prepare_execute_command.
6463         * top.h (prepare_execute_command): Change prototype to return
6464         cleanup.
6465         * defs.h (struct value): Add opaque declaration.
6466         (make_cleanup_value_free_to_mark): Add prototype.
6467         * utils.c (do_value_free_to_mark): New function.
6468         (make_cleanup_value_free_to_mark): Likewise.
6469
6470 2011-05-12  Tom Tromey  <tromey@redhat.com>
6471
6472         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6473         cast left-hand-side to unsigned.
6474
6475 2011-05-12  Tom Tromey  <tromey@redhat.com>
6476
6477         PR gdb/12617:
6478         * value.h (value_from_contents): Declare.
6479         * value.c (value_from_contents): New function.
6480         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6481         (dwarf2_get_die_type): New function.
6482         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6483         (allocate_piece_closure): Acquire reference to values.
6484         (read_pieced_value): Update for value-based expressions.
6485         (write_pieced_value): Likewise.
6486         (free_pieced_value_closure): Call value_free as needed.
6487         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6488         Update for value-based expressions.
6489         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6490         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6491         <get_base_type>: New field.
6492         (struct dwarf_expr_piece) <v.value>: Change type.
6493         <v.regno>: New field.
6494         (struct dwarf_expr_context) <mark>: New field.
6495         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6496         (dwarf_expr_pop, dwarf_expr_push): Remove.
6497         (dwarf_expr_push_address): Declare.
6498         * dwarf2expr.c (dwarf_arch_cookie): New global.
6499         (struct dwarf_gdbarch_types): New.
6500         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6501         functions.
6502         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6503         static.
6504         (dwarf_expr_push_address): New function.
6505         (dwarf_expr_pop): Now static.
6506         (dwarf_expr_fetch): Change return type.
6507         (dwarf_require_integral): New function.
6508         (dwarf_expr_fetch): Simplify.
6509         (add_piece): Update.
6510         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6511         functions.
6512         (execute_stack_op) <sign_ext>: Remove.
6513         Use values for DWARF stack.
6514         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6515         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6516         New cases.
6517         (_initialize_dwarf2expr): New function.
6518         (add_piece): Update.
6519         (new_dwarf_expr_context): Set new field.
6520         (free_dwarf_expr_context): Call value_free_to_mark.
6521         * dwarf2-frame.c (no_base_type): New function.
6522         (execute_stack_op): Set get_base_type field.  Update.
6523
6524 2011-05-12  Tom Tromey  <tromey@redhat.com>
6525
6526         * dwarf2read.c (read_common_block): Fix formatting.
6527
6528 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6529
6530         * breakpoint.c (disable_breakpoint): Disable all locations
6531         associated with a tracepoint on target if a trace experiment is
6532         running.
6533         (disable_command): Disable a specific tracepoint location on target if
6534         a trace experiment is running.
6535         (do_enable_breakpoint): Enable all locations associated with a
6536         tracepoint on target if a trace experiment is running.
6537         (enable_command) Enable a specific tracepoint location on target if a
6538         trace experiment is running.
6539         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6540         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6541         to_disable_tracepoint.
6542         * target.h: Add declaration of struct bp_location.
6543         (struct target_ops): Add new functions
6544         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6545         to_disable_tracepoint to target operations.
6546         (target_supports_enable_disable_tracepoint): New macro.
6547         (target_enable_tracepoint): New macro.
6548         (target_disable_tracepoint): New macro.
6549         * remote.c (struct remote_state): Add new field.
6550         (remote_enable_disable_tracepoint_feature): New.
6551         (remote_protocol_features): Add new entry.
6552         (remote_supports_enable_disable_tracepoint): New.
6553         (remote_enable_tracepoint): New.
6554         (remote_disable_tracepoint): New.
6555         (init_remote_ops): Add remote_enable_tracepoint,
6556         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6557         to remote operations.
6558         * tracepoint.c (start_tracing): Allow tracing to start without any
6559         tracepoints enabled with just a warning if they can be re-enabled
6560         later.
6561         * NEWS: Add news item for the new behaviour of the enable and disable
6562         GDB commands when applied to tracepoints.
6563         Add news items for the new remote packets QTEnable and QTDisable.
6564
6565 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6566
6567         * config.in: Regenerate.
6568         * configure: Regenerate.
6569         * configure.ac <--with-system-readline> (for readline_echoing_p):
6570         Remove the test.
6571         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6572         (tui_old_rl_echoing_p): ... here.
6573         (tui_setup_io): Rename extern declaration readline_echoing_p to
6574         _rl_echoing_p.  Adjust assignments for the both renames.
6575
6576 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6577
6578         * symtab.c (lookup_symtab): Run cleanup before returning.
6579
6580 2011-05-11  Tom Tromey  <tromey@redhat.com>
6581
6582         * dwarf2read.c (handle_data_member_location): New function.
6583         (dwarf2_add_field): Use it.
6584         (read_common_block): Likewise.
6585
6586 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6587
6588         Make addrs->SECTINDEX always defined.
6589         * symfile.c (relative_addr_info_to_section_offsets): Check for
6590         SECTINDEX -1, not for zero ADDR.
6591         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6592         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6593         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6594         on its validity.
6595
6596 2011-05-10  Doug Evans  <dje@google.com>
6597
6598         * linux-thread-db.c: Whitespace cleanup.
6599         (try_thread_db_load_1): Fix comment.
6600
6601         * linux-thread-db.c (set_libthread_db_search_path): New function.
6602         (_initialize_thread_db): Add setter for libthread-db-search-path.
6603
6604 2011-05-09  Doug Evans  <dje@google.com>
6605
6606         * NEWS: Mention --with-iconv-bin.
6607         * configure.ac: New option --with-iconv-bin.
6608         * configure: Regenerate.
6609         * config.in: Regenerate.
6610         * defs.h (relocate_gdb_directory): Declare.
6611         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6612         removed progname parameter, and exported.  All callers updated.
6613         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6614
6615         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6616         adding missing call to restore_child_signals_mask.
6617
6618 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6619
6620         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6621         parameter.
6622         * infrun.c (proceed, start_remote): Adjust.
6623         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6624         and adjust to not handle it.
6625         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6626         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6627         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6628         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6629         * windows-nat.c (do_initial_windows_stuff): Adjust.
6630         * infcmd.c (attach_command): Adjust.
6631         (notice_new_inferior): Adjust.
6632
6633 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6634
6635         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6636         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6637         * spu-tdep.c (op_selb): Use correct value.
6638
6639 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6640
6641         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6642         "parent" parameter to symbol_file_add_from_bfd call.
6643
6644 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6645             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6646
6647         Implement support for PowerPC BookE masked watchpoints.
6648         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
6649         section.
6650         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6651         method.  Initialize to NULL in all existing breakpoint_ops instances.
6652         (struct breakpoint) <hw_wp_mask>: New field.
6653         * breakpoint.c (is_masked_watchpoint): Add prototype.
6654         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
6655         breakpoint's breakpoint_ops.works_in_software_mode if available.
6656         (watchpoints_triggered): Handle the case of a hardware masked
6657         watchpoint trigger.
6658         (watchpoint_check): Likewise.
6659         (works_in_software_mode_watchpoint): New function.
6660         (insert_masked_watchpoint, remove_masked_watchpoint)
6661         (resources_needed_masked_watchpoint)
6662         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6663         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6664         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6665         functions.
6666         (masked_watchpoint_breakpoint_ops): New structure.
6667         (watch_command_1): Check for the existence of the `mask' parameter.
6668         Set b->ops according to the type of hardware watchpoint being created.
6669         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6670         (ppc_linux_remove_mask_watchpoint)
6671         (ppc_linux_masked_watch_num_registers): New functions.
6672         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6673         to_remove_mask_watchpoint and to_masked_watch_num_registers.
6674         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6675         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6676         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6677         (target_masked_watch_num_registers): New functions.
6678         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6679         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6680         methods.
6681         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6682         (target_masked_watch_num_registers): Add prototypes.
6683
6684 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6685
6686         PR 12573
6687         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6688         (producer_is_gcc_ge_4_0): New function.
6689         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
6690         symtab->language code.
6691         (var_decode_location): Set cu->has_loclist.
6692         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6693         skip.  Intialize force_skip from locations_valid.  Move the prologue
6694         skipping code into two passes.
6695         * symtab.h (struct symtab): Make the primary field a bitfield.  New
6696         field locations_valid.
6697
6698 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6699
6700         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6701         (classify_inner_name): Call cp_lookup_nested_type with
6702         yylval.tsym.type.
6703         * cp-namespace.c (cp_lookup_nested_type): New variable
6704         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
6705         type_name_no_tag_or_error with saved_parent_type.
6706         * dwarf2read.c (load_partial_dies): Read in any children of
6707         DW_TAG_typedef with complaint in such case.
6708         * gdbtypes.c (type_name_no_tag_or_error): New function.
6709         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6710         * valops.c (destructor_name_p): New comment for parameter type.  Remove
6711         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
6712         * value.h (destructor_name_p): Remove type const.
6713
6714 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6715
6716         * symtab.c (compare_symbol_name): New function.
6717         (completion_list_add_name, expand_partial_symbol_name): Call it,
6718         remove the variable ncmp.
6719         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6720         gdb_assert it.
6721
6722 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6723
6724         Demote to sw watchpoint only in update_watchpoint.
6725         * breakpoint.c (update_watchpoint): Change between software and
6726         hardware watchpoint for all kinds of watchpoints, not just
6727         read/write ones.  Determine b->exact value here instead of
6728         in watch_command_1.  Error out if there are not enough resources
6729         for a read or access hardware watchpoint.
6730         (watch_command_1): Remove logic of checking whether there are
6731         enough resources available, since update_watchpoint will do that
6732         work now.  Don't set b->exact here.  Catch exceptions thrown by
6733         update_watchpoint and delete the watchpoint.
6734         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6735         Use target_exact_watchpoints instead.
6736         (delete_breakpoint): Notify observers only if deleted watchpoint
6737         has a breakpoint number assigned to it.
6738
6739 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
6740
6741         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6742
6743 2011-05-05  Jerome Guitton  <guitton@adacore.com>
6744
6745         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6746         New functions.
6747         (i386_stack_tramp_frame_unwind): New static global.
6748         (i386_match_pattern): New function, extracted from i386_match_insn.
6749         (i386_match_insn): Use i386_match_pattern.
6750         (i386_match_insn_block): New function.
6751         (i386_tramp_chain_in_reg_insns)
6752         (i386_tramp_chain_on_stack_insns): New static variables.
6753         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6754         of unwinders.
6755
6756 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
6757
6758         * configure.host (xscale*): Don't handle target.
6759         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6760         handle targets.
6761
6762 2011-05-04  Yao Qi  <yao@codesourcery.com>
6763
6764         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6765
6766 2011-05-03  Joel Brobecker <brobecker@adacore.com>
6767
6768         Revert:
6769         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6770         | * elfread.c (elf_symtab_read): Stop memory leak.
6771
6772 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6773
6774         * nto-tdep.c (nto_target): Replace deprecated call to
6775         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6776
6777 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6778
6779         Fix false GCC warning.
6780         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6781
6782 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6783
6784         * breakpoint.c (update_watchpoint): Move code to change
6785         the enable state of breakpoint from here ...
6786         (do_enable_breakpoint): ... to here.
6787
6788 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
6789
6790         * valprint.c (val_print_array_elements): Fixed poor performance
6791         of printing very large arrays with repeat_count_threshold set
6792         to unlimited.  New comment.
6793
6794 2011-04-29  Tom Tromey  <tromey@redhat.com>
6795
6796         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6797         (mi_parse): Likewise.
6798         * breakpoint.c (break_range_command): Use sizeof char*, not
6799         char**.
6800         (create_breakpoint): Likewise.
6801         (parse_breakpoint_sals): Likewise.
6802
6803 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
6804
6805         * linux-nat.c (linux_child_remove_fork_catchpoint)
6806         (linux_child_remove_vfork_catchpoint)
6807         (linux_child_remove_exec_catchpoint): New functions.
6808         (linux_target_install_ops): Install them.
6809
6810 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6811
6812         PR mi/12531
6813
6814         * varobj.c (install_default_visualizer): Do not install a
6815         visualizer if the varobj is CPLUS_FAKE_CHILD.
6816         (construct_visualizer): Likewise.
6817
6818 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6819
6820         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
6821         case insensitive comparison.
6822
6823 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
6824
6825         * infrun.c (proceed): Revert previous change.
6826         (resume): Instead, handle the case of signal delivery while stepping
6827         off a breakpoint location here, and only if software single-stepping
6828         is used.  Handle nested signals.
6829
6830 2011-04-28  Yao Qi  <yao@codesourcery.com>
6831
6832         * arm-tdep.c (copy_unmodified): Rename to ...
6833         (arm_copy_unmodified): .. this.  New.
6834         (copy_preload): Move common part to ...
6835         (install_preload): .. this.  New.
6836         (arm_copy_preload): New.
6837         (copy_preload_reg): Move common part to ...
6838         (install_preload_reg): ... this.  New.
6839         (arm_copy_preload_reg): New.
6840         (copy_b_bl_blx): Move common part to ...
6841         (install_b_bl_blx): .. this.  New.
6842         (arm_copy_b_bl_blx): New.
6843         (copy_bx_blx_reg): Move common part to ...
6844         (install_bx_blx_reg): ... this. New.
6845         (arm_copy_bx_blx_reg): New.
6846         (copy_alu_reg): Move common part to ...
6847         (install_alu_reg): ... this.  New.
6848         (arm_copy_alu_reg): New.
6849         (copy_alu_shifted_reg): Move common part to ...
6850         (install_alu_shifted_reg): ... this.  New.
6851         (copy_ldr_str_ldrb_strb): Move common part to ...
6852         (install_ldr_str_ldrb_strb): ... this.  New.
6853         (arm_copy_ldr_str_ldrb_strb): New.
6854         (copy_copro_load_store): Move some common part to ...
6855         (install_copy_copro_load_store): ... this.  New.
6856         (arm_copy_copro_load_store): New.
6857         (copy_svc): Delete.
6858         (arm_copy_svc): Renamed from copy_svc.
6859         (copy_undef): Delete.
6860         (arm_copy_undef): Renamed from copy_undef.
6861         (decode_ext_reg_ld_st): Delete.
6862         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6863         (decode_svc_copro): Delete.
6864         (arm_decode_svc_copro): Renamed from decode_svc_copro.
6865         (copy_copro_load_store, copy_alu_imm): update callers.
6866         (copy_extra_ld_st, copy_block_xfer): Likewise.
6867         (decode_misc_memhint_neon, decode_unconditional): Likewise.
6868         (decode_miscellaneous, decode_dp_misc): Likewise.
6869         (decode_ld_st_word_ubyte, decode_media): Likewise.
6870         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6871         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6872         (decode_unconditional, decode_miscellaneous): Likewise.
6873         (decode_media, decode_b_bl_ldmstm): Likewise.
6874         (arm_process_displaced_insn): Likewise..
6875         (decode_misc_memhint_neon): Delete.
6876         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6877         (decode_miscellaneous): Delete.
6878         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6879         (decode_dp_misc): Delete.
6880         (arm_decode_dp_misc): Renamed from decode_dp_misc.
6881         (decode_ld_st_word_ubyte): Delete.
6882         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6883         (decode_media): Delete.
6884         (arm_decode_media): Renamed from decode_media.
6885         (decode_b_bl_ldmstm): Delete.
6886         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6887         (decode_ext_reg_ld_st): Delete.
6888         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6889         (decode_unconditional): Delete.
6890         (arm_decode_unconditional): Renamed from decode_unconditional.
6891
6892 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6893
6894         Case insensitive lookups implementation.
6895         * dwarf2read.c: Include ctype.h.
6896         (struct mapped_index): New field version.
6897         (mapped_index_string_hash): New parameter index_version.  New comment
6898         for it.  Call tolower appropriately.
6899         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6900         Choose the right index version for mapped_index_string_hash.
6901         (dwarf2_read_index): Support also the index version 5.  Initialize the
6902         new struct mapped_index field version.
6903         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6904         (find_slot): Explain the version needs.  Pass INT_MAX for the new
6905         parameter.
6906         (write_psymtabs_to_index): Produce version 5.
6907         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6908         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
6909         * psymtab.c (lookup_partial_symbol): Find the
6910         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6911         entries.
6912         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6913         NAME lowercasing.
6914         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6915         (completion_list_add_name): New variable ncmp, initialize it, use it.
6916         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6917         * utils.c (strcmp_iw): Support case_sensitive_off.
6918         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6919         New function comment part.  New variables saved_string1,
6920         saved_string2 and case_pass.  Add a proper second pass.
6921
6922 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6923
6924         Replace re_comp/re_exec by regcomp/regexec.
6925         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6926         (search_symbols_name_matches): Use them, use regexec.
6927         (search_symbols): New variable retval_chain, adjust the use of
6928         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
6929         search_symbols_data fields, use regexec instead of re_exec.
6930
6931 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6932
6933         Format the code for the next patch.
6934         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6935         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6936         New variables c1 and c2.
6937
6938 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
6939
6940         * infrun.c (proceed): Do not single-step into signal delivery
6941         when stepping off a breakpoint location.
6942         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6943         (insert_step_resume_breakpoint_at_caller): Likewise.
6944         (insert_step_resume_breakpoint_at_sal): Likewise.
6945         (insert_longjmp_resume_breakpoint): Likewise.
6946
6947 2011-04-27  Yao Qi  <yao@codesourcery.com>
6948
6949         * common/linux-ptrace.h: Remove include <sys/wait.h>.
6950
6951 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
6952
6953         * procfs.c (procfs_pass_signals): Fix advance declaration.
6954
6955 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
6956
6957         * target.h (struct target_ops): Remove to_notice_signals;
6958         add to_pass_signals.
6959         (target_notice_signals): Remove.
6960         (target_pass_signals): Add prototype.
6961         * target.c (update_current_target): Remove to_notice_signals;
6962         mention to_pass_signals.
6963         (target_pass_signals): New function.
6964         (debug_to_notice_signals): Remove.
6965         (setup_target_debug): Do not install debug_to_notice_signals.
6966
6967         * infrun.c (signal_pass): New global.
6968         (resume): Call target_pass_signals.
6969         (handle_inferior_event): Report all signals while stepping over
6970         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
6971         are re-inserted when stepping over a signal handler.
6972         (signal_cache_update): New function.
6973         (signal_stop_update): Call it.
6974         (signal_print_update): Likewise.
6975         (signal_pass_update): Likewise.
6976         (handle_command): Call signal_cache_update and target_pass_signals
6977         instead of target_notice_signals.
6978         (_initialize_infrun): Initialize signal_pass.
6979
6980         * linux-nat.c (pass_mask): New global.
6981         (linux_nat_pass_signals): New function.
6982         (linux_nat_create_inferior): Report all signals initially.
6983         (linux_nat_attach): Likewise.
6984         (linux_nat_resume): Use pass_mask to decide whether to directly
6985         handle an inferior signal.
6986         (linux_nat_wait_1): Likewise.
6987         (linux_nat_add_target): Install to_pass_signals callback.
6988
6989         * nto-procfs.c (notice_signals): Remove.
6990         (procfs_resume): Do not call notice_signals.
6991         (procfs_notice_signals): Remove.
6992         (procfs_pass_signals): New function.
6993         (init_procfs_ops): Install to_pass_signals callback instead of
6994         to_notice_signals callback.
6995         (_initialize_procfs): Report all signals initially.
6996
6997         * procfs.c (procfs_notice_signals): Remove.
6998         (procfs_pass_signals): New function.
6999         (procfs_target): Install to_pass_signals callback instead of
7000         to_notice_signals callback.
7001         (register_gdb_signals): Remove.
7002         (procfs_debug_inferior): Report all signals initially.
7003         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7004
7005         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7006         parameters; use them instead of calling signal_..._state routines.
7007         (remote_notice_signals): Remove.
7008         (remote_start_remote): Report all signals initially.
7009         (remote_resume): Do not call remote_pass_signals.
7010         (_initialize_remote): Install to_pass_signals callback instead of
7011         to_notice_signals callback.
7012
7013 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7014
7015         * breakpoint.c (user_settable_breakpoint): Delete.
7016         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7017         (delete_command): Check user_breakpoint_p instead of looking at
7018         the breakpoint's type.
7019         (disable_command): Ditto.
7020         (enable_command): Ditto.
7021         (delete_trace_command): Use user_breakpoint_p instead of looking
7022         at the breakpoint number directly.  When checking if there are
7023         user visible tracepoints, in order to know whether to ask the user
7024         for confirmation, check whether the breakpoint is actually a
7025         tracepoint.
7026
7027 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7028
7029         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7030         compilation.
7031
7032 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7033
7034         MI breakpoint notifications.
7035
7036         * annotate.c (breakpoint_changed): Adjust parameter type.
7037         * breakpoint.c (set_breakpoint_condition): Adjust to change
7038         in breakpoint_modified type.
7039         (breakpoint_set_commands): Likewise.
7040         (do_map_commands_command): Likewise.
7041         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7042         changed after bumping hit count.
7043         (bpstat_stop_status): Likewise.
7044         (print_one_breakpoint_location): Don't wrap in tuple here.
7045         (print_one_breakpoint): Always print individual locations.
7046         For locations, use unnamed tuple.
7047         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7048         has changed.
7049         (create_catchpoint, create_syscall_event_catchpoint): Call
7050         breakpoint_created obsever.
7051         (mention): Don't call breakpoint_created observer.
7052         (create_breakpoint_sal): Call breakpoint_created observer.
7053         (create_breakpoint, watch_command_1): Likewise.
7054         (create_ada_exception_breakpoint): Likewise.
7055         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7056         (locations_are_equal): New.
7057         (update_breakpoint_locations): If locations were changed, notify.
7058         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7059         Call breakpoint_modified observer.
7060
7061         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7062         (mi_cmd_break_insert): Don't set observers for modify and delete.
7063         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7064         (mi_breakpoint_created, mi_breakpoint_deleted)
7065         (mi_breakpoint_modified): New.
7066         (mi_interpreter_init): Hook the above.
7067         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7068         while -break-* commands are executing.
7069         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7070         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7071         (mi_redirect): New.
7072         (mi_ui_out_impl): Hook in mi_redirect.
7073         (mi_field_skip): True to the name, skip the field, don't output
7074         a field with an empty value.
7075
7076         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7077         (gdbpy_breakpoint_deleted): Adjust.
7078         * tui/tui-hooks.c (tui_event_create_breakpoint)
7079         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7080
7081 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7082
7083         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7084         (procfs_remove_hw_watchpoint): Likewise.
7085
7086 2011-04-26  Michael Walle  <michael@walle.cc>
7087
7088         * remote.c (remote_start_remote): Ack packet after sending the
7089         interrupt sequence.
7090
7091 2011-04-26  Yao Qi  <yao@codesourcery.com>
7092
7093         * linux-nat.c: Move common macros to ...
7094         Include linux-ptrace.h.
7095         * common/linux-ptrace.h: ... here.  New.
7096
7097 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7098
7099         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7100         !objfile_has_partial_symbols.  New comment.
7101         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7102         SYM_READ_PSYMBOLS is not present. Extend the comment.
7103         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7104
7105 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7106
7107         * defs.h (ENUM_BITFIELD): Remove.
7108
7109 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7110             Eli Zaretskii  <eliz@gnu.org>
7111
7112         * NEWS: Document the new gdbserver --once option.
7113
7114 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7115
7116         * MAINTAINERS: Update my email address.
7117
7118 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7119
7120         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7121         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7122         function call if __STDC_ISO_10646__ macro is defined.
7123         (intermediate_encoding): New prototype.
7124         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7125         to generate compile time error for unsupported gdb_wchar_t size.
7126         (ENDIAN_SUFFIX): New macro.
7127         (intermediate_encoding): New function.
7128
7129 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7130
7131         * ada-lang.c (struct add_partial_datum): Update the comment for
7132         expand_partial_symbol_name.
7133         (ada_add_partial_symbol_completions): Rename to ...
7134         (ada_expand_partial_symbol_name): ... here, change return type, update
7135         function comment, call symbol_completion_match instead of
7136         symbol_completion_add.
7137         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7138         and ada_expand_partial_symbol_name.
7139         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7140         FILE_MATCHER.
7141         (dw2_map_symbol_names): Remove.
7142         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7143         * psymtab.c (map_symbol_names_psymtab): Remove.
7144         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7145         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7146         order.
7147         (psym_functions): Unlist map_symbol_names_psymtab.
7148         (map_partial_symbol_names): Rename to ...
7149         (expand_partial_symbol_names): ... here, change the FUN type, call
7150         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7151         * psymtab.h (map_partial_symbol_names): Rename to ...
7152         (expand_partial_symbol_names): ... here, change the FUN type.
7153         * symfile.h (struct quick_symbol_functions): Update the description of
7154         expand_symtabs_matching.  Remove map_symbol_names.
7155         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7156         (struct add_name_data): Update the comment for
7157         expand_partial_symbol_name.
7158         (add_partial_symbol_name): Rename to ...
7159         (expand_partial_symbol_name): ... here.  Replace
7160         completion_list_add_name call by strncmp.
7161         (default_make_symbol_completion_list_break_on): Use now
7162         expand_partial_symbol_names and expand_partial_symbol_name.
7163         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7164
7165 2011-04-20  Tom Tromey  <tromey@redhat.com>
7166
7167         * dwarf2read.c (save_gdb_index_command): Replace format
7168         documentation with a pointer to the manual.
7169
7170 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7171
7172         * regcache.c: Include remote.h.
7173         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7174         (regcache_dump): Handle regcache_dump_remote.
7175         (maintenance_print_remote_registers): New function.
7176         (_initialize_regcache): Install "maint print remote-registers"
7177         command.
7178         * remote.c (map_regcache_remote_table): New function, factored out
7179         from ...
7180         (init_remote_state): ... here.
7181         (remote_register_number_and_offset): New.
7182         * remote.h (remote_register_number_and_offset): Declare.
7183
7184 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7185
7186         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7187         null_ptid, assume and allow a NULL address space, instead of
7188         asking the target for the ptid's address space.
7189         * infrun.c (ptid_is_pid): Remove assertion.
7190
7191 2011-04-19  Tom Tromey  <tromey@redhat.com>
7192
7193         * windows-tdep.c (windows_xfer_shared_library):
7194         * windows-nat.c (get_module_name, windows_make_so):
7195         * v850-tdep.c (v850_handle_pushm):
7196         * utils.c (null_cleanup, gdb_realpath):
7197         * ui-out.c (get_next_header):
7198         * tracepoint.c (clear_traceframe_info):
7199         * symtab.c (lookup_symtab):
7200         * serial.h (struct serial_ops):
7201         * mipsread.c (read_alphacoff_dynamic_symtab):
7202         * infcmd.c (print_return_value):
7203         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7204         * f-exp.y (parse_number):
7205         * exceptions.c (catch_exceptions):
7206         * dummy-frame.c (dummy_frame_this_id):
7207         * defs.h (struct cleanup):
7208         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7209         * arm-tdep.c (arm_push_dummy_call):
7210         * amd64-tdep.h (amd64_collect_xsave):
7211         * amd64-tdep.c (amd64_collect_xsave):
7212         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7213         * README (typing): Remove duplicate words.
7214         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7215         * infrun.c (siginfo_value_read): Fix typo.
7216         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7217         * top.c (source_line_number): Add comma.
7218
7219 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7220
7221         * thread.c (any_live_thread_of_process): Prioritize threads
7222         that are not executing.
7223         * gdbthread.h (any_live_thread_of_process): Update comment
7224         as per above change.
7225
7226 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7227
7228         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7229         (scan_xcoff_symtab): Likewise.
7230
7231 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7232
7233         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7234         inside if clause.
7235
7236 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7237             Pedro Alves  <pedro@codesourcery.com>
7238
7239         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7240         variables to simplify code and avoid == operator at end of
7241         line as this is against GNU coding standards.
7242
7243 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7244
7245         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7246         lm_name to name_lm to avoid conflict with lm_name function.
7247
7248 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7249
7250         ARI fixes: Use only lowercase function name for static functions.
7251         * nto-tdep.c (LM_ADDR): Rename to...
7252         (lm_addr): New function name.
7253         (nto_relocate_section_addresses): Adapt to change above.
7254         * solib-sunos.c (LM_ADDR): Rename to...
7255         (lm_addr): New function name.
7256         (LM_NEXT): Rename to...
7257         (lm_next): New function name.
7258         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7259         function name changes above.
7260         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7261         (lm_addr_from_link_map): New function name.
7262         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7263         (has_lm_dynamic_from_link_map): New function name.
7264         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7265         (lm_dynamic_from_link_map): New function name.
7266         (LM_ADDR_CHECK): Rename to...
7267         (lm_addr_check): New function name.
7268         (LM_NEXT): Rename to...
7269         (lm_next): New function name.
7270         (LM_PREV): Rename to...
7271         (lm_prev): New function name.
7272         (LM_NAME): Rename to...
7273         (lm_name): New function name.
7274         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7275         (ignore_first_link_map_entry): New function name.
7276         (svr4_keep_data_in_core): Adapt to function name changes above.
7277         (svr4_current_sos): Likewise.
7278         (enable_break): Likewise.
7279         (svr4_relocate_section_addresses): Likewise.
7280
7281 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7282
7283         ARI cleanup.
7284         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7285         sprintf. Simplify code and avoid loosing memory.
7286         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7287         (call0_frame_cache): Remove && operator from end of line.
7288
7289 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7290
7291         Fix libraries displacement if they change whether they were prelinked.
7292         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7293         does not match.  Comment why.
7294
7295 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7296
7297         * corelow.c: Include wrapper.h.
7298         (core_open): Call now gdb_target_find_new_threads.
7299         * wrapper.c: Include target.h.
7300         (gdb_target_find_new_threads): New.
7301         * wrapper.h (gdb_target_find_new_threads): New declaration.
7302
7303 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7304
7305         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7306         even if !TARGET_HAS_EXECUTION.
7307
7308 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7309
7310         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7311         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7312         bfd_get_synthetic_symtab.
7313         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7314         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7315         parameter parent, remove the call to add_separate_debug_objfile.
7316         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7317         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7318         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7319         parent, new comment for it, call add_separate_debug_objfile for it.
7320         (symbol_file_add_separate): Pass objfile as the parameter parent,
7321         remove the call to add_separate_debug_objfile.
7322         (symbol_file_add_from_bfd): New parameter parent, pass it.
7323         (symbol_file_add): Pass NULL to the new parameter parent.
7324         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7325
7326 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7327
7328         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7329         BSF_SYNTHETIC.
7330
7331 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7332
7333         Fix Python access to inlined frames.
7334         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7335         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7336
7337 2011-04-15  Tom Tromey  <tromey@redhat.com>
7338
7339         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7340
7341 2011-04-15  Gary Benson  <gbenson@redhat.com>
7342
7343         * MAINTAINERS: Add myself to write-after-approval section.
7344
7345 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7346
7347         * remote-sim.c (sim_command_completer): New function.
7348         (_initialize_remote_sim): Set completer to sim_command_completer.
7349
7350 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7351
7352         * breakpoint.c (print_exception_catchpoint): Rename to ...
7353         (print_it_exception_catchpoint): ... this.
7354         (gnu_v3_exception_catchpoint_ops): Update with new name
7355         for print_it_exception_catchpoint.
7356
7357 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7358
7359         * MAINTAINERS: Add myself for write after approval privileges.
7360
7361 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7362
7363         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7364
7365 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7366
7367         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7368
7369 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7370
7371         * breakpoint.c (save_breakpoints): Verify whether
7372         breakpoint_ops.print_recreate is defined before calling it.
7373
7374 2011-04-11  Gary Benson  <gbenson@redhat.com>
7375
7376         Fix failure with --enable-maintainer-mode.
7377         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7378
7379 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7380
7381         Code cleanup.
7382         * symtab.c (search_symbols): Reorder the KIND description in the
7383         function comment.  Remove the unused 4th element of types, types2,
7384         types3 and types4.  New gdb_assert on KIND.
7385         (symtab_symbol_info): Remove the unused 4th element of classnames.
7386         New gdb_assert on KIND.
7387         * symtab.h (enum search_domain): New warning in the enum comment.
7388         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7389         TYPES_DOMAIN.
7390
7391 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7392
7393         Fix crash of gdb save-index on a STABS file.
7394         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7395         PSYMTABS_ADDRMAP.
7396
7397 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7398
7399         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7400         * dwarf2read.c: Include ctype.h.
7401         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7402         functions.
7403         (dwarf2_add_field): Fix new_field->accessibility by calling
7404         dwarf2_default_access_attribute.  Restructure setting accessibility
7405         vs. virtuality.
7406         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7407         is_private and is_protected by calling
7408         dwarf2_default_access_attribute.
7409
7410 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7411
7412         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7413         to the initialization.
7414
7415 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7416
7417         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7418         initalization.
7419
7420 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7421
7422         Remove support for old Cygwin 1.5 versions.
7423         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7424         function on old Cygwin version.
7425         * windows-nat.c: Remove cygwin version check and always define
7426         __USEWIDE for Cygwin compilation.
7427
7428 2011-04-07  Yao Qi  <yao@codesourcery.com>
7429
7430         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7431         and TO.
7432         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7433         (arm_copy_svc): Remove parameters INSN and TO.
7434         (decode_svc_copro): Update caller.
7435         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7436         from function pointer `copy_svc_os'.
7437
7438 2011-04-07  Yao Qi  <yao@codesourcery.com>
7439
7440         * arm-tdep.c (cleanup_branch): Set a correct return address in
7441         LR for ARM and Thumb.
7442
7443 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7444
7445         Code cleanup.
7446         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7447         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7448         in the function comment, a new note on values compatibility.
7449         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7450         * symtab.h (SYMBOL_HASH_NEXT): New.
7451
7452 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7453
7454         * ppc-linux-nat.c (check_condition): Add len output parameter.
7455         Set it based on the memory region referenced in the condition
7456         expression.  Update all callers.
7457
7458 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7459
7460         Fix crash regression on systems featuring .gdb_index.
7461         * objfiles.c (free_objfile): Move the
7462         forget_cached_source_info_for_objfile call earlier.  Comment it.
7463         Extend the comment for objfile_free_data.
7464
7465 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7466
7467         Fix regression of displaying the debug format.
7468         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7469         subfile.
7470
7471 2011-04-04  Tom Tromey  <tromey@redhat.com>
7472
7473         * cli/cli-interp.c (struct captured_execute_command_args):
7474         Remove.
7475         (do_captured_execute_command): Remove.
7476         (safe_execute_command): Use TRY_CATCH.
7477         * cli/cli-script.c (struct wrapped_read_command_file_args):
7478         Remove.
7479         (wrapped_read_command_file): Remove.
7480         (script_from_file): Use TRY_CATCH.
7481         * exceptions.c (catch_exception): Remove.
7482         * exceptions.h (catch_exception): Remove.
7483         (deprecated_throw_reason): Update comment.
7484         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7485         argument to 'context'.
7486         (mi_execute_command): Use TRY_CATCH.
7487         * remote.c (struct start_remote_args): Remove.
7488         (remote_start_remote): Update; change arguments.
7489         (remote_open_1): Use TRY_CATCH.
7490
7491 2011-04-04  Tom Tromey  <tromey@redhat.com>
7492
7493         * tracepoint.c (scope_info): Update.
7494         * symtab.c (decode_line_spec): Update.
7495         * python/python.c (gdbpy_decode_line): Update.
7496         * linespec.h (decode_line_1): Update.
7497         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7498         (decode_compound, find_method, symtab_from_filename)
7499         (decode_variable): Likewise.
7500         * cli/cli-cmds.c (edit_command): Update.
7501         (list_command): Update.
7502         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7503         argument.
7504         (create_breakpoint): Update.
7505         (until_break_command): Update.
7506         (addr_string_to_sals): Update.
7507         (decode_line_spec_1): Update.
7508
7509 2011-04-04  Tom Tromey  <tromey@redhat.com>
7510
7511         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7512         (do_captured_parse_breakpoint): Remove.
7513         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7514         Use TRY_CATCH directly.
7515
7516 2011-04-04  Tom Tromey  <tromey@redhat.com>
7517
7518         * symtab.h (free_symtab): Remove.
7519         (forget_cached_source_info_for_objfile): Declare.
7520         * symmisc.c (free_symtab): Remove.
7521         * source.c (forget_cached_source_info_for_objfile): New function.
7522         (forget_cached_source_info): Use it.
7523         * objfiles.c (free_objfile): Simplify check before calling
7524         clear_current_source_symtab_and_line.  Call
7525         forget_cached_source_info_for_objfile.
7526
7527 2011-04-04  Tom Tromey  <tromey@redhat.com>
7528
7529         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7530         (new_symtab): Don't set `free_code' on symtab.
7531         (new_linetable): Properly handle size==0.
7532         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7533         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7534         free_func.
7535         * jv-lang.c (struct jv_per_objfile_data): New.
7536         (jv_per_objfile_free): Free the data.
7537         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7538         (get_java_class_symtab): Set the `dict' field on the
7539         jv_per_objfile_data.
7540         (free_class_block): Remove.
7541         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7542         the symtab.
7543
7544 2011-04-04  Tom Tromey  <tromey@redhat.com>
7545
7546         * symfile.c (reread_symbols): Update.
7547         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7548         field.
7549         * objfiles.c (allocate_objfile): Update.
7550         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7551         declare.
7552         * cp-namespace.c (lookup_symbol_file): Don't call
7553         lookup_possible_namespace_symbol.
7554         (initialize_namespace_symtab, get_possible_namespace_block)
7555         (free_namespace_block, cp_check_possible_namespace_symbols)
7556         (check_possible_namespace_symbols_loop)
7557         (check_one_possible_namespace_symbol)
7558         (lookup_possible_namespace_symbol): Remove.
7559         (maintenance_cplus_namespace): Replace with notice.
7560         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7561
7562 2011-04-04  Tom Tromey  <tromey@redhat.com>
7563
7564         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7565         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7566         * symmisc.c (free_symtab): Don't free debugformat.
7567         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7568         (record_debugformat, record_producer): Document.
7569         * buildsym.c (end_symtab): Don't save debugformat and producer
7570         names on obstack.
7571         (end_symtab): Don't free debugformat and producer fields.
7572         (record_debugformat): Don't call xstrdup.
7573         (record_producer): Likewise.
7574
7575 2011-04-04  Tom Tromey  <tromey@redhat.com>
7576
7577         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7578         (source_line_charpos, source_charpos_line): Remove.
7579
7580 2011-04-04  Tom Tromey  <tromey@redhat.com>
7581
7582         * symtab.h (domain_enum): Split in two...
7583         (enum search_domain): New.
7584         (search_symbols): Update.
7585         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7586         redundant declarations.
7587         (search_symbols): Change 'kind' argument to search_domain.
7588         Update.
7589         (print_symbol_info): Likewise.
7590         (symtab_symbol_info): Likewise.
7591         * symfile.h (struct quick_symbol_functions)
7592         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7593         <expand_symtabs_matching>: Likewise.
7594         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7595         (expand_symtabs_matching_via_partial): Update.
7596         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7597         (dw2_expand_symtabs_for_function): Update.
7598         * block.h: Moved anonymous enum...
7599         * defs.h (enum block_enum): ... here.  Now named.
7600
7601 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7602
7603         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7604         * version.in: Bump version to 7.3.50.20110403-cvs.
7605
7606 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7607
7608         * NEWS: Create a new section for the next release branch.
7609         Rename the section of the current branch, now that it has
7610         been cut.
7611
7612 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7613
7614         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7615         for "fpscr" in target description.
7616
7617 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7618
7619         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7620         initialize it.  Delay HASH initialization.  Strip the part after open
7621         parenthesis for languages with qualifiers.  Call do_cleanups.
7622
7623 2011-04-01  Tom Tromey  <tromey@redhat.com>
7624
7625         * utils.c (report_command_stats): Don't print `-' for negative
7626         number.
7627
7628 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7629
7630         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7631         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7632         typedefs.
7633
7634 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7635
7636         * breakpoint.h (bpdisp_text): Add declaration.
7637         * breakpoint.c (bpdisp_text): Make non-static.
7638         * ada-lang.c: #include "mi/mi-common.h".
7639         (print_it_exception): Rewrite to improve GDB/MI output.
7640
7641 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
7642
7643         * arm-tdep.h (struct address_space): Add forward declaration.
7644
7645 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7646
7647         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7648         * arm-tdep.c (arm_override_mode): New global.
7649         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
7650         execution mode heuristics.
7651         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7652         second single-step breakpoint if needed, using
7653         arm_insert_single_step_breakpoint.
7654         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
7655         ARM execution mode, do not call thumb_get_next_pc_raw.
7656         (arm_get_next_pc): Encode execution mode in return value.  Call
7657         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7658         (arm_insert_single_step_breakpoint): New function.
7659         (arm_software_single_step): Call it.
7660         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7661         argument to return execution mode of sigreturn target.
7662         (arm_linux_syscall_next_pc): Use it.
7663         (arm_linux_copy_svc): Update call.
7664         (arm_linux_software_single_step): Call
7665         arm_insert_single_step_breakpoint.
7666
7667 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7668
7669         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7670         the comment.
7671
7672 2011-03-31  Tom Tromey  <tromey@redhat.com>
7673
7674         * varobj.c (update_dynamic_varobj_children): Properly handle
7675         errors from iterator.
7676
7677 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7678
7679         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
7680         struct linkage name twice.
7681
7682 2011-03-31  Tom Tromey  <tromey@redhat.com>
7683
7684         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7685         missing ">" to message.
7686
7687 2011-03-31  Tom Tromey  <tromey@redhat.com>
7688
7689         * varobj.c (instantiate_pretty_printer): Remove duplicate
7690         'return'.
7691
7692 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
7693
7694         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7695         if neither saved value nor register available (e.g. signal frame).
7696
7697 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7698
7699         * macroexp.c (expand): Avoid uninitialized variable
7700         compiler warning.
7701
7702 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7703
7704         * breakpoint.c (break_range_command): Fix typo in comment.
7705
7706 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7707             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7708
7709         Implement support for PowerPC BookE ranged breakpoints.
7710         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7711         * breakpoint.h (struct bp_target_info) <length>: New member
7712         variable.
7713         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7714         instead of struct breakpoint as argument, and also add ASPACE
7715         and BP_ADDR arguments.  Update all callers.
7716         (struct breakpoint_ops) <print_one_detail>: New method.
7717         (struct breakpoint) <addr_string_range_end>: New member variable.
7718         * breakpoint.c (breakpoint_location_address_match): Add function
7719         prototype.
7720         (insert_bp_location): Set bl->target_info.length.
7721         (breakpoint_here_p): Call breakpoint_location_address_match.
7722         (moribund_breakpoint_here_p): Likewise.
7723         (regular_breakpoint_inserted_here_p): Likewise.
7724         (breakpoint_thread_match): Likewise.
7725         (bpstat_stop_status): Likewise.
7726         (bpstat_check_location): Move call to
7727         breakpoint_ops.breakpoint_hit to the top.
7728         (print_one_breakpoint_location): Call
7729         breakpoint_ops.print_one_detail if available.
7730         (breakpoint_address_match_range): New function.
7731         (breakpoint_location_address_match): Likewise.
7732         (breakpoint_locations_match): Compare the length field of the
7733         locations too.
7734         (hw_breakpoint_used_count): Count resources used by all locations
7735         in a breakpoint, and use breakpoint_ops.resources_needed if
7736         available.
7737         (breakpoint_hit_ranged_breakpoint): New function.
7738         (resources_needed_ranged_breakpoint): Likewise.
7739         (print_it_ranged_breakpoint): Likewise.
7740         (print_one_ranged_breakpoint): Likewise.
7741         (print_one_detail_ranged_breakpoint): Likewise.
7742         (print_mention_ranged_breakpoint): Likewise.
7743         (print_recreate_ranged_breakpoint): Likewise.
7744         (ranged_breakpoint_ops): New structure.
7745         (find_breakpoint_range_end): New function.
7746         (break_range_command): Likewise.
7747         (delete_breakpoint): Free addr_string_range_end.
7748         (update_breakpoint_locations): Add SALS_END argument.  Update
7749         all callers.  Calculate breakpoint length if a non-zero SALS_END
7750         is given.  Call breakpoint_locations_match instead of
7751         breakpoint_address_match.
7752         (reset_breakpoint): Find SaL of the end of the range if B is a
7753         ranged breakpoint.
7754         (_initialize_breakpoint): Register break-range command.
7755         * defs.h (print_core_address): Add function prototype.
7756         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7757         function.
7758         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7759         (ppc_linux_remove_hw_breakpoint): Likewise.
7760         (_initialize_ppc_linux_nat): Initialize
7761         to_ranged_break_num_registers.
7762         * target.c (update_current_target): Add comment about
7763         to_ranged_break_num_registers.
7764         (target_ranged_break_num_registers): New function.
7765         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7766         New method.
7767         (target_ranged_break_num_registers): Add function prototype.
7768         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7769         * utils.c (print_core_address): ... here.
7770
7771 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
7772
7773         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7774         variable compiler warning.
7775
7776 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7777
7778         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7779         code from here ...
7780         (re_set_breakpoint): ... to here ...
7781         (addr_string_to_sals): ... and here.
7782
7783 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7784
7785         * Makefile.in (SFILES): Add missing C sources.
7786         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7787         Add missing headers.
7788
7789 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7790
7791         * .gitignore: New file.
7792
7793 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
7794
7795         * NEWS: Mention new cfi device simulation.
7796
7797 2011-03-29  Tom Tromey  <tromey@redhat.com>
7798
7799         * dwarf2read.c (fixup_partial_die): Handle linkage name on
7800         otherwise anonymous types.
7801         (dwarf2_name): Likewise.
7802         * valops.c (value_struct_elt_for_reference): Refine artificial
7803         type logic.  Call error if j==-1.
7804
7805 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
7806
7807         Fix false GCC warning.
7808         * infcall.c (find_function_addr): Initialize funaddr.
7809
7810 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
7811
7812         Fix mingw compilation with --enable-targets=all.
7813         * remote-mips.c (gdb_usleep.h): Include header.
7814         (mips_enter_debug): Use gdb_usleep instead of sleep.
7815
7816 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7817
7818         Support resolution of STT_GNU_IFUNC via breakpoints.
7819         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7820         bp_gnu_ifunc_resolver_return.
7821         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7822         the loop.  Support bp_gnu_ifunc_resolver and
7823         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
7824         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7825         breakpoints.
7826         (bptype_string, print_one_breakpoint_location): Support
7827         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7828         (user_settable_breakpoint): Return true also for
7829         bp_gnu_ifunc_resolver.
7830         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7831         bp_gnu_ifunc_resolver_return.
7832         (set_breakpoint_location_function): New parameter explicit_loc,
7833         describe it.  Call find_pc_partial_function_gnu_ifunc with new
7834         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7835         EXPLICIT_LOC is not set.
7836         (set_raw_breakpoint): Set EXPLICIT_LOC for
7837         set_breakpoint_location_function.
7838         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7839         set_breakpoint_location_function.
7840         (mention): Support bp_gnu_ifunc_resolver and
7841         bp_gnu_ifunc_resolver_return.
7842         (add_location_to_breakpoint): Set EXPLICIT_LOC for
7843         set_breakpoint_location_function.
7844         (update_breakpoint_locations): Remove static.
7845         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7846         bp_gnu_ifunc_resolver_return.
7847         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7848         bp_gnu_ifunc_resolver_return.
7849         (update_breakpoint_locations): New declaration.
7850         * elfread.c: Include gdbthread.h and regcache.h.
7851         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7852         functions.
7853         (elf_gnu_ifunc_fns): Install them.
7854         * minsyms.c (stub_gnu_ifunc_resolver_stop)
7855         (stub_gnu_ifunc_resolver_return_stop): New functions.
7856         (stub_gnu_ifunc_fns): Install them.
7857         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7858         and gnu_ifunc_resolver_return_stop.
7859         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7860
7861 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7862
7863         STT_GNU_IFUNC reader implementation.
7864         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7865         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7866         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7867         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7868         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7869         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7870         (elf_gnu_ifunc_resolve_addr): New.
7871         (elf_symfile_read): Call elf_rel_plt_read.
7872         (elf_gnu_ifunc_fns): New.
7873         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7874         Install elf_gnu_ifunc_fns.
7875         * infcall.c (find_function_return_type): New function.
7876         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7877         * minsyms.c (stub_gnu_ifunc_resolve_addr)
7878         (stub_gnu_ifunc_resolve_name): New functions.
7879         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7880         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7881         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7882
7883 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7884
7885         Code cleanup for later STT_GNU_IFUNC support.
7886         * infcall.c (find_function_addr): Remove variable code, use explicit
7887         dereferences for it.  Move VALUE_TYPE initialization later.
7888
7889 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7890
7891         GDB find_pc_partial_function support for STT_GNU_IFUNC.
7892         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7893         (clear_pc_function_cache): Clear it.
7894         (find_pc_partial_function): Rename to ...
7895         (find_pc_partial_function_gnu_ifunc): ... this function.  New
7896         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
7897         (find_pc_partial_function): New wrapper for this function.
7898         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7899
7900 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7901
7902         GDB internal type support for STT_GNU_IFUNC.
7903         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7904         (elf_symtab_read): Set mst_text_gnu_ifunc for
7905         BSF_GNU_INDIRECT_FUNCTION.
7906         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7907         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7908         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7909         nodebug_got_plt_symbol.
7910         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7911         (TYPE_GNU_IFUNC): New.
7912         (struct main_type): New field flag_gnu_ifunc.
7913         (struct builtin_type): New field builtin_func_func.
7914         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7915         nodebug_got_plt_symbol.
7916         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7917         (in_gnu_ifunc_stub): New.
7918         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7919         mst_text_gnu_ifunc.
7920         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
7921         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
7922         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7923         in_gnu_ifunc_stub.
7924         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7925         * symtab.c (search_symbols): Likewise.
7926         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7927         and mst_slot_got_plt.
7928         (in_gnu_ifunc_stub): New declaration.
7929
7930 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7931
7932         Support a ring of related breakpoints.
7933         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7934         other functions, add gdb_assert.
7935         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
7936         watchpoint_del_at_next_stop.
7937         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7938         (bpstat_stop_status): Handle ring in related_breakpoint.
7939         (set_raw_breakpoint_without_location): Initialize ring in
7940         related_breakpoint.
7941         (delete_breakpoint): Handle ring in related_breakpoint, use
7942         watchpoint_del_at_next_stop.
7943         (map_breakpoint_numbers): Handle ring in related_breakpoint.
7944
7945 2011-03-28  Tom Tromey  <tromey@redhat.com>
7946
7947         PR symtab/12441:
7948         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7949         with `language_minimal'.
7950
7951 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
7952
7953         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7954         instead of checking for STT_ARM_TFUNC symbol type.
7955
7956 2011-03-25  Tom Tromey  <tromey@redhat.com>
7957
7958         * linespec.c (symbol_found): Restore line-based result for
7959         non-LOC_LABEL symbols.
7960
7961 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7962
7963         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7964         instead of strcmp for comparison.
7965         (tui_source_is_displayed): Likewise.
7966         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7967
7968 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7969
7970         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7971         complaint.
7972         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7973         (find_partial_die_in_comp_unit): Likewise in comment.
7974         (read_attribute_value): Likewise.
7975         (lookup_die_type): Likewise.
7976         (dwarf_form_name): Likewise.
7977         (dump_die_shallow): Likewise.
7978         (follow_die_ref_or_sig): Likewise.
7979
7980 2011-03-24  Tom Tromey  <tromey@redhat.com>
7981
7982         PR breakpoints/11816:
7983         * linespec.c (decode_line_1): Parse `function:label' linespecs.
7984         (decode_compound): Update.
7985         (find_function_symbol): New function.
7986         (decode_dollar): Update.
7987         (decode_label): Add 'function_symbol' parameter.  Handle
7988         function-relative labels.
7989         (decode_variable): Update.
7990         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
7991         not its line.  Set `special_display' and canonical name for
7992         labels.
7993
7994 2011-03-24  Tom Tromey  <tromey@redhat.com>
7995
7996         * linespec.h (struct linespec_result) <special_display>: New
7997         field.
7998         * breakpoint.h (struct breakpoint) <display_canonical>: New
7999         field.
8000         * breakpoint.c (print_breakpoint_location): Respect
8001         display_canonical.
8002         (create_breakpoint_sal): Add 'display_canonical' parameter.
8003         (create_breakpoints_sal): Update.
8004         (create_breakpoint): Update.
8005
8006 2011-03-24  Tom Tromey  <tromey@redhat.com>
8007
8008         * symtab.c (decode_line_spec): Update.
8009         * linespec.c (build_canonical_line_spec): Change type of
8010         'canonical'.
8011         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8012         (find_method, decode_all_digits, decode_dollar, decode_label)
8013         (symbol_found): Likewise.
8014         (init_linespec_result): New function.
8015         * breakpoint.c (struct captured_parse_breakpoint_args)
8016         <canonical_p>: New field, replaces addr_string_p.
8017         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8018         'addr_string'.
8019         (parse_breakpoint_sals): Likewise.
8020         (do_captured_parse_breakpoint): Update.
8021         (create_breakpoint): Use struct linespec_result.
8022         (until_break_command): Update.
8023         (breakpoint_re_set_one): Update.
8024         (decode_line_spec_1): Update.
8025         * linespec.h (struct linespec_result): New.
8026         (init_linespec_result): Declare.
8027
8028 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8029
8030         * regcache.c (regcache_raw_read): If the target didn't supply a
8031         given raw register, mark it as unavailable.
8032
8033 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8034
8035         * breakpoint.c (clear_command): Use filename_cmp
8036         instead of strcmp for comparison.
8037         * buildsym.c (watch_main_source_file_lossage): Likewise.
8038         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8039         checking just for slash.
8040         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8041         strrchr and filename_cmp instead of strcmp for filenames.
8042         (add_old_header_file): Use filename_cmp
8043         instead of strcmp for comparison.
8044         * exec.c (exec_set_section_address): Likewise.
8045         * macrotab.c (macro_lookup_inclusion): Likewise.
8046         (macro_lookup_inclusion): Likewise.
8047         * elfread.c (_initialize_elfread): Likewise.
8048         (elfstab_offset_sections): Likewise.
8049         (elfstab_offset_sections): Use lbasename instead of
8050         strrchr.
8051         * mdebugread.c (parse_partial_symbols): Likewise.
8052         (arse_partial_symbols): Use filename_(n)cmp instead of
8053         str(n)cmp for comparison.
8054         * minsyms.c (lookup_minimal_symbol): Likewise.
8055         * psymtab.c (read_psymtabs_with_filename): Likewise.
8056         * solib.c (solib_read_symbols): Likewise.
8057         (reload_shared_libraries_1): Likewise.
8058         * symmisc.c (maintenance_print_symbols): Likewise.
8059         * symfile.c (separate_debug_file_exists): Likewise.
8060         (reread_symbols): Likewise.
8061         (find_separate_debug_file_by_debuglink): Likewise.
8062         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8063         * source.c (add_path): Likewise.
8064         * symtab.c (filename_seen): Likewise.
8065         (file_matches): Likewise.
8066         (print_symbol_info): Likewise.
8067         (maybe_add_partial_symtab_filename): Likewise.
8068         (make_source_files_completion_list): Likewise.
8069         * xml-syscall.c (init_sysinfo): Likewise.
8070         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8071         IS_DIR_SEPARATOR for checking for trailing path separator.
8072
8073 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8074
8075         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8076         label abort_expression.
8077         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8078         DWARF_VALUE_OPTIMIZED_OUT.
8079
8080 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8081
8082         Code cleanup.
8083         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8084         to linkage_name.  Invert its value.  Update the function comment.
8085         (c_type_print_varspec_suffix): Invert it at the caller.
8086         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8087
8088 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8089
8090         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8091         errors when reading the `stop_pc'.
8092         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8093         get_frame_pc.
8094
8095 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8096
8097         * NEWS: Document gdb.Write stream keyword.
8098
8099 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8100
8101         Revert:
8102         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8103         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8104         (dwarf2_add_field): Fix new_field->accessibility for
8105         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8106
8107 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8108
8109         PR python/12183
8110
8111         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8112         other error classes.  Do not print stack trace.
8113
8114 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8115
8116         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8117         (dwarf2_add_field): Fix new_field->accessibility for
8118         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8119
8120 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8121
8122         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8123         encountering a load via a non-SP register.
8124
8125 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8126
8127         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8128         field in returned unwinder.
8129
8130 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8131
8132         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8133
8134 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8135
8136         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8137         of xmalloc.
8138
8139 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8140
8141         * frame.c (frame_unwind_register): Throw an error if unwinding the
8142         register failed.
8143         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8144         an unwind stop reason.
8145         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8146         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8147         UNWIND_UNAVAILABLE>: New.
8148         * inline-frame.c (inline_frame_unwind): Install
8149         default_frame_unwind_stop_reason.
8150         * frame-unwind.c: Include "exceptions.h".
8151         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8152         (default_frame_unwind_stop_reason): New.
8153         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8154         (default_frame_unwind_stop_reason): Declare.
8155         (struct frame_unwind) <stop_reason>: New function pointer.
8156
8157         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8158         * dwarf2-frame.c: Include exceptions.h.
8159         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8160         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8161         computing the CFA.  If such an error was thrown, set
8162         unavailable_retaddr.
8163         (dwarf2_frame_unwind_stop_reason): New.
8164         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8165         unavailable.
8166         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8167         (dwarf2_signal_frame_unwind): Ditto.
8168
8169         * amd64-tdep.c: Include "exceptions.h".
8170         (struct amd64_frame_cache): New field "base_p".
8171         (amd64_init_frame_cache): Clear it.
8172         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8173         Avoid reading registers with functions that throw if the register
8174         is not necessary to compute the frame base.
8175         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8176         swallowing NOT_AVAILABLE_ERROR.
8177         (amd64_frame_unwind_stop_reason): New.
8178         (amd64_frame_this_id): Don't build a frame id if the frame base
8179         was unavailable.
8180         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8181         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8182         base_p if the frame base was computable.
8183         (amd64_sigtramp_frame_unwind_stop_reason): New.
8184         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8185         frame base was unavailable.
8186         (amd64_sigtramp_frame_unwind): Install
8187         amd64_sigtramp_frame_unwind_stop_reason.
8188         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8189         base_p if the frame base was computable.
8190         (amd64_epilogue_frame_unwind_stop_reason): New.
8191         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8192         frame base was unavailable.
8193         (amd64_epilogue_frame_unwind): Install
8194         amd64_epilogue_frame_unwind_stop_reason.
8195         * i386-tdep.c: Include "exceptions.h".
8196         (struct i386_frame_cache): New field "base_p".
8197         (i386_init_frame_cache): Clear it.
8198         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8199         Avoid reading registers with functions that throw if the register
8200         is not necessary to compute the frame base.
8201         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8202         swallowing NOT_AVAILABLE_ERROR.
8203         (i386_frame_unwind_stop_reason): New.
8204         (i386_frame_this_id): Don't build a frame id if the frame base was
8205         unavailable.
8206         (i386_frame_prev_register): Handle unavailable SP.
8207         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8208         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8209         base_p if the frame base was computable.
8210         (i386_epilogue_frame_unwind_stop_reason): New.
8211         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8212         base was unavailable.
8213         (i386_epilogue_frame_unwind): Install
8214         i386_epilogue_frame_unwind_stop_reason.
8215         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8216         base_p if the frame base was computable.
8217         (i386_sigtramp_frame_unwind_stop_reason): New.
8218         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8219         base was unavailable.
8220         (i386_sigtramp_frame_unwind): Install
8221         i386_sigtramp_frame_unwind_stop_reason.
8222         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8223         type's size, not the register's.
8224         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8225
8226         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8227         default_frame_unwind_stop_reason.
8228         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8229         (alpha_heuristic_frame_unwind): Ditto.
8230         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8231         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8232         * avr-tdep.c (avr_frame_unwind): Ditto.
8233         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8234         Ditto.
8235         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8236         * frv-tdep.c (frv_frame_unwind): Ditto.
8237         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8238         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8239         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8240         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8241         (hppa_stub_frame_unwind): Ditto.
8242         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8243         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8244         (ia64_libunwind_frame_unwind)
8245         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8246         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8247         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8248         * m32c-tdep.c (m32c_unwind): Ditto.
8249         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8250         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8251         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8252         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8253         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8254         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8255         * mep-tdep.c (mep_frame_unwind): Ditto.
8256         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8257         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8258         (mips_stub_frame_unwind): Ditto.
8259         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8260         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8261         * mt-tdep.c (mt_frame_unwind): Ditto.
8262         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8263         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8264         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8265         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8266         (s390_sigtramp_frame_unwind): Ditto.
8267         * score-tdep.c (score_prologue_unwind): Ditto.
8268         * sh-tdep.c (sh_frame_unwind): Ditto.
8269         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8270         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8271         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8272         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8273         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8274         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8275         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8276         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8277         (sparc64obsd_trapframe_unwind): Ditto.
8278         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8279         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8280         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8281         * v850-tdep.c (v850_frame_unwind): Ditto.
8282         * vax-tdep.c (vax_frame_unwind): Ditto.
8283         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8284         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8285         * xtensa-tdep.c (xtensa_unwind): Ditto.
8286
8287 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8288
8289         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8290         there's always a frame.  Use get_frame_pc_if_available instead of
8291         get_frame_pc, and if there's no PC available, don't look up a
8292         symtab.
8293
8294 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8295
8296         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8297         unavailable PC.
8298
8299 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8300
8301         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8302         gracefully.
8303
8304 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8305
8306         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8307         * frame.c (frame_unwind_caller_pc_if_available): New.
8308         * stack.c (frame_info): Handle unavailable PC.
8309
8310 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8311
8312         * frame.c (frame_unwind_pc): Rename to ...
8313         (frame_unwind_pc_if_available): ... this.  New `pc' output
8314         parameter.  Change return type to int.  Gracefully handle
8315         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8316         happened, or 1 otherwise.
8317         (frame_unwind_pc): Reimplement on top of
8318         frame_unwind_pc_if_available.
8319         (get_frame_func): Rename to ...
8320         (get_frame_func_if_available): New `pc' output parameter.  Change
8321         return type to int.  Gracefully handle the PC not being available.
8322         (get_frame_func): Reimplement on top of
8323         get_frame_func_if_available.
8324         (select_frame): Handle the PC being unavailable.
8325         (get_prev_frame): Handle the PC being unavailable.
8326         (get_frame_pc_if_available): New.
8327         (get_frame_address_in_block_if_available): New.
8328         (find_frame_sal): Handle the frame PC not being available.
8329         * frame.h (get_frame_pc_if_available): Declare.
8330         (get_frame_address_in_block_if_available): Declare.
8331         (get_frame_func_if_available): Declare.
8332         * stack.c (print_frame_info): Handle the PC being unavailable.
8333         (find_frame_funname): Ditto.
8334         (print_frame): Handle the PC being unavailable.
8335         (get_frame_language): Ditto.
8336         * blockframe.c (get_frame_block): Ditto.
8337         * macroscope.c (default_macro_scope): Ditto.
8338         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8339
8340 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8341
8342         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8343         NOT_AVAILABLE_ERROR when evaluating the location expression.
8344
8345 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8346
8347         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8348         returning that the register piece is unavailable/optimized out.
8349         (write_pieced_value): Handle get_frame_register_bytes returning
8350         that the register piece is unavailable/optimized out when doing a
8351         read-modify write of a bitfield.
8352         * findvar.c (value_from_register): Handle get_frame_register_bytes
8353         returning that the register piece is unavailable/optimized out.
8354         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8355         and `unavailablep'.  Throw error on bad debug info.  Use
8356         frame_register instead of frame_register_read, to fill in the new
8357         arguments.
8358         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8359         and `unavailablep'.
8360         * valops.c: (value_assign): Adjust, and handle
8361         get_frame_register_bytes failing.
8362         * spu-tdep.c: Include exceptions.h.
8363         (spu_software_single_step): Adjust, and handle
8364         get_frame_register_bytes failing.
8365         (spu_get_longjmp_target): Ditto.
8366         * gdbarch.sh (register_to_value): Change to return int.  New
8367         parameters `optimizedp' and `unavailablep'.
8368         * gdbarch.h, gdbarch.c: Regenerate.
8369         * i386-tdep.c (i386_register_to_value): Adjust to new
8370         gdbarch_register_to_value interface.
8371         * i387-tdep.c (i387_register_to_value): Ditto.
8372         * i387-tdep.h (i387_register_to_value): Ditto.
8373         * alpha-tdep.c (alpha_register_to_value): Ditto.
8374         * ia64-tdep.c (ia64_register_to_value): Ditto.
8375         * m68k-tdep.c (m68k_register_to_value): Ditto.
8376         * mips-tdep.c (mips_register_to_value): Ditto.
8377         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8378
8379 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8380
8381         * findvar.c (value_of_register): Mark the value as unavailable, if
8382         the register is unavailable.
8383         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8384         (frame_register): New `unavailablep' parameter.
8385         (frame_register_read): Update comment.
8386         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8387         Set it if the register is unavailable.  If the register is
8388         unavailable, clear the output buffer.
8389         (frame_register): New `unavailablep' parameter.  Pass it down.
8390         (frame_unwind_register): Adjust.
8391         (put_frame_register): Adjust.
8392         (frame_register_read): Adjust.  Also return false if the register
8393         is not available.
8394         (frame_register_unwind_location): Adjust.
8395         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8396         is unavailable, mark the value accordingly.
8397         * stack.c (frame_info): Handle unavailable registers.
8398
8399 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8400
8401         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8402         simplify, using regcache_cooked_read.
8403
8404 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8405
8406         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8407         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8408         (regcache_raw_read_unsigned, regcache_raw_read_part)
8409         (regcache_cooked_read, regcache_cooked_read_signed)
8410         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8411         (regcache_cooked_read_ftype): Change return to enum
8412         register_status.
8413         * regcache.c: Include exceptions.h
8414         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8415         (do_cooked_read): Change return to enum register_status.  Always
8416         forward to regcache_cooked_read.
8417         (regcache_raw_read): Change return to enum register_status.  If
8418         the register is not REG_VALID, memset the buffer.  Return the
8419         register's status.
8420         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8421         return the register's status.
8422         (regcache_raw_read_unsigned): Ditto.
8423         (regcache_cooked_read): Change return to enum register_status.
8424         Assert that with read-only regcaches, the register's status must
8425         be known.  If the regcache is read-only, and the register is not
8426         REG_VALID, memset the buffer.  Return the register's status.
8427         (regcache_cooked_read_signed): Change return to enum
8428         register_status.  Handle non-REG_VALID registers and return the
8429         register's status.
8430         (regcache_cooked_read_unsigned): Change return to enum
8431         register_status.  Handle non-REG_VALID registers and return the
8432         register's status.
8433         (regcache_xfer_part, regcache_raw_read_part)
8434         (regcache_cooked_read_part): Change return to enum
8435         register_status.  Return the register's status.
8436         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8437         unavailable.
8438         (regcache_dump): Handle unavailable cooked registers.
8439         * frame.c (do_frame_register_read): Adjust interface to match
8440         regcache_cooked_read_ftype.
8441         * gdbarch.sh (pseudo_register_read): Change return to enum
8442         register_status.
8443         * gdbarch.h, gdbarch.c: Regenerate.
8444
8445         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8446         register_status.
8447         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8448         register_status.  If reading a raw register indicates the raw
8449         register is not valid, return the raw register's status,
8450         otherwise, return REG_VALID.
8451         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8452         register_status.  Handle non-REG_VALID raw registers and return
8453         the register's status.
8454         * arm-tdep.c (arm_neon_quad_read)
8455         (arm_pseudo_read): Change return to enum register_status.  Handle
8456         non-REG_VALID raw registers and return the register's status.
8457         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8458         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8459         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8460         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8461         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8462         register_status.
8463         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8464         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8465         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8466         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8467         (m32c_pseudo_register_read): Change return to enum
8468         register_status.  Adjust.
8469         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8470         enum register_status.  Return the register's status.
8471         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8472         register_status.  Return the register's status.
8473         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8474         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8475         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8476         * rs6000-tdep.c (move_ev_register_func): New typedef.
8477         (e500_move_ev_register): Use it.  Change return to enum
8478         register_status.  Return the register's status.
8479         (do_regcache_raw_read): New function.
8480         (do_regcache_raw_write): New function.
8481         (e500_pseudo_register_read): Change return to enum
8482         register_status.  Return the register's status.  Use
8483         do_regcache_raw_read.
8484         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8485         (dfp_pseudo_register_read): Change return to enum register_status.
8486         Return the register's status.
8487         (vsx_pseudo_register_read): Ditto.
8488         (efpr_pseudo_register_read): Ditto.
8489         (rs6000_pseudo_register_read): Ditto.
8490         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8491         register_status.  Return the register's status.
8492         * sh64-tdep.c (pseudo_register_read_portions): New function.
8493         (sh64_pseudo_register_read): Change return to enum
8494         register_status.  Use pseudo_register_read_portions.  Return the
8495         register's status.
8496         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8497         register_status.  Return the register's status.
8498         * sh-tdep.c (pseudo_register_read_portions): New function.
8499         (sh_pseudo_register_read): Change return to enum register_status.
8500         Use pseudo_register_read_portions.  Return the register's status.
8501         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8502         enum register_status.  Return the register's status.
8503         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8504         * spu-tdep.c (spu_pseudo_register_read_spu)
8505         (spu_pseudo_register_read): Ditto.
8506         * xtensa-tdep.c (xtensa_register_read_masked)
8507         (xtensa_pseudo_register_read): Ditto.
8508         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8509
8510 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8511
8512         * python/py-value.c (valpy_getitem): Fix formatting of error function
8513         call.
8514
8515 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8516
8517         ARI fixes: Add missing internationalization markups throughout
8518         C source files.
8519         * darwin-nat-info.c: Ditto.
8520         * record.c: Ditto.
8521         * remote.c: Ditto.
8522         * mi/mi-main.c: Ditto.
8523
8524 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8525
8526         ARI fixes: Add missing internationalization markups throughout
8527         yacc files.
8528         * c-exp.y: Ditto.
8529         * cp-name-parser.y: Ditto.
8530         * f-exp.y: Ditto.
8531         * m2-exp.y: Ditto.
8532         * objc-exp.y: Ditto.
8533         * p-exp.y: Ditto.
8534
8535 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8536
8537         ARI fixes: Messages should have no trailing new lines.
8538         * darwin-nat.c (mach_check_error): Remove trailing new line from
8539         warning function call message.
8540         * record.c (bfdcore_read): Idem for error call.
8541
8542 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8543
8544         * common/signals.c (target_signal_from_host): Add _ markup to error
8545         function call message.
8546         (target_signal_to_host): Add _ markup and remove trailing new line
8547         from warning call message.
8548         (target_signal_from_command): Add _ markup to error function call
8549         message.
8550
8551 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8552
8553         PR python/12149
8554
8555         * python/python.c (gdbpy_write): Accept a stream argument and
8556         operate to the appropriate stream.
8557         (gdbpy_flush): Likewise.
8558         (_initialize_python): Add stream constants.
8559         (finish_python_initialization): Add GdbOutputErrorFile class.
8560
8561 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8562
8563         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8564
8565 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8566
8567         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8568         to store_signed_integer.  Add debug message when relocating CALL
8569         instructions.  Fix formatting of debug message.
8570         * i386-tdep.c (i386_relocate_instruction): Ditto.
8571
8572 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8573
8574         * target.h (struct target_ops): Remove to_lookup_symbol field.
8575         (target_lookup_symbol): Delete macro.
8576         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8577         (update_current_target, setup_target_debug): Remove handling
8578         of to_lookup_symbol target_ops field.
8579         * ada-tasks.c (get_known_tasks_addr): Remove use of
8580         target_lookup_symbol.
8581         * coffread.c (coff_symtab_read): Likewise.
8582         * dbxread.c (read_dbx_symtab): Ditto.
8583
8584 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8585
8586         PR gdb/12116:
8587         * configure.ac: Add getthrds declaration check.
8588         * configure, config.in: Regenerate.
8589         * aix-thread.c (getthrds): Declare only if not already declared
8590         in procinfo.h.  More declaration out of get_signaled_thread to
8591         global scope.
8592
8593 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8594
8595         * python/py-symtab.c: Populate symtab_object_methods,
8596         sal_object_methods.
8597         (stpy_is_valid): New function.
8598         (salpy_is_valid): Ditto.
8599         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8600         (sympy_is_valid): New function.
8601         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8602         (objfpy_is_valid): New function.
8603         * python/py-inferior.c: Populate inferior_object_methods.
8604         (infpy_is_valid): New function.
8605         * python/py-infthread.c: Populate thread_object_methods.
8606         (thpy_is_valid): New function.
8607         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8608         block_iterator_object_methods.  Populate.
8609         (blpy_is_valid): New function.
8610         (blpy_iter_is_valid): Ditto.
8611
8612 2011-03-16  Keith Seitz  <keiths@redhat.com>
8613
8614         * linespec.c (find_methods): Canonicalize NAME before looking
8615         up the symbol.
8616         (name_end): New function.
8617         (keep_name_info): New function.
8618         (decode_line_1): Use keep_name_info.
8619         (decode_compound): Likewise.
8620         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8621         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8622
8623         PR c++/12273
8624         * linespec.c (locate_first_half): Keep overload information, too.
8625         (decode_compound): Use a string to represent break characters
8626         to escape the loop.
8627         If P points to a break character, do not increment it.
8628         For C++ and Java, keep overload information and relevant keywords.
8629         If we cannot find a symbol, search the minimal symbols.
8630
8631         PR c++/11734
8632         * linespec.c (decode_compound): Rename SAVED_ARG to
8633         THE_REAL_SAVED_ARG.
8634         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8635         single-quotes.
8636         Pass a valid block to lookup_symbol.
8637         (lookup_prefix_sym): Likewise.
8638         (find_method): Construct search name based on SYM_CLASS instead
8639         of SAVED_ARG.
8640         * psymtab.c (lookup_partial_symbol): Add language parameter.
8641         (lookup_symbol_aux_psymtabs): Likewise.
8642         Don't assume that the psymtab we found was the right one. Search
8643         for the desired symbol in the symtab to be certain.
8644         (psymtab_search_name): New function.
8645         (lookup_partial_symbol): Use psymtab_search_name.
8646         Add language parameter.
8647         (read_symtabs_for_function): Add language parameter and pass to
8648         lookup_partial_symbol.
8649         (find_symbol_file_from_partial): Likewise.
8650
8651 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8652
8653         PR gdb/12528
8654         * dwarf2read.c (noop_record_line): New function.
8655         (dwarf_decode_lines): Ignore line tables for GCd functions.
8656
8657 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8658
8659         Fix ARI warnings about new lines at the end of messages, which
8660         are unneeded as there is a new line added at the end of the message
8661         automatically.
8662         * darwin-nat.c (darwin_stop_inferior): Ditto.
8663         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8664         * dfp.c (decimal_to_number): Ditto.
8665         * exec.c (print_section_info): Ditto.
8666         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8667         * osdata.c (get_osdata): Ditto.
8668         * record.c (bfdcore_write): Ditto.
8669         * remote-mips.c (mips_readchar): Ditto.
8670         * remote.c (read_ptid): Ditto.
8671         * ser-mingw.c (ser_windows_raw): Ditto.
8672         * tracepoint.c (add_local_symbols): Ditto.
8673         * windows-nat.c (fake_create_process): Ditto.
8674
8675 2011-03-16  Tom Tromey  <tromey@redhat.com>
8676
8677         * tracepoint.c (stop_tracing): Don't declare.
8678         * event-top.c (after_char_processing_hook): Add `(void)'.
8679
8680 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
8681
8682         * NEWS: Add Parameter sub-classing description.
8683
8684 2011-03-16  Kai Tietz  <ktietz@redhat.com>
8685
8686         * MAINTAINERS: Update my e-mail address.
8687
8688 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
8689
8690         * MAINTAINERS: Add myself for write after approval privileges.
8691
8692 2011-03-15  Michael Snyder  <msnyder@vmware.com>
8693
8694         * frame.c (find_frame_sal): Assert sym is not null.
8695
8696         * dbxread.c (process_one_symbol): Assert 'name' is not null.
8697
8698         * objc-lang.c (selectors_info): Check strchr for null result.
8699
8700         * stabsread.c (define_symbol): Guard against bad stabstring input.
8701
8702 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8703
8704         Remove trailing spaces and tabulations from pascal language
8705         support sources.
8706         p-exp.y: Ditto.
8707         p-lang.c: Ditto.
8708         p-lang.h: Ditto.
8709         p-valprint.c: Ditto.
8710
8711 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8712
8713         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8714         than LOW.  Comment it.
8715         (read_partial_die): Call complaint for inappropriate zero LOWPC or
8716         HIGHPC not strictly higher than LOWPC.
8717
8718 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
8719
8720         Fix formatting of function declarations returning a pointer in
8721         previous commit.
8722         * varobj.c (varobj_add_child): Ditto.
8723         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8724         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8725
8726 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8727
8728         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8729         for the "generic" vector ABI used with GCC 4.3 and later.
8730         (ppc64_sysv_abi_return_value): Likewise.
8731
8732 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8733
8734         * infcall.c (call_function_by_hand): Function return value is
8735         always a non_lval, even when using struct_return.
8736
8737 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
8738
8739         * printcmd.c (ALL_DISPLAYS_SAFE): New.
8740         (map_display_numbers): New.
8741         (do_delete_display): New.
8742         (undisplay_command): Use map_display_numbers.
8743         (do_enable_disable_display): New.
8744         (enable_disable_display_command): New function.
8745         (enable_display): Delete.
8746         (enable_display_command): New.
8747         (disable_display_command): Reimplement.
8748         (_initialize_printcmd): Adjust "enable display" command to use
8749         `enable_display_command' as callback.
8750
8751 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8752
8753         * NEWS: Add Python breakpoint 'stop' operation.
8754
8755 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8756
8757         * NEWS: Delete duplicate entry. Fix typo.
8758
8759 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8760
8761         Fix ARI warning about function names in first column.
8762         Put prototype declaration on same line as return type.
8763         * objc-exp.y: Ditto.
8764         * p-exp.y: Ditto.
8765         * python/py-stopevent.h: Ditto.
8766         For long function names, split parameters to
8767         allow function name on same line as return type.
8768         * solib-pa64.c: Ditto.
8769         * varobj.c: Ditto.
8770         * varobj.h: Ditto.
8771         For long function declaration, use single line.
8772         * hppa-tdep.h: Ditto.
8773         * inferior.h: Ditto.
8774
8775 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
8776
8777         * python/python.h: Declare gdbpy_should_stop and
8778         gdbpy_breakpoint_has_py_cond.
8779         * python/python.c: Add python.h to includes.  Remove python.h from
8780         HAVE_PYTHON definition
8781         (gdbpy_should_stop): New dummy function.
8782         (gdbpy_breakpoint_has_py_cond): New dummy function.
8783         * python/py-breakpoint.c (bppy_init): Rewrite to allow
8784         sub-classing capabilities.
8785         (gdbpy_should_stop): New function.
8786         (gdbpy_breakpoint_has_py_cond): New function.
8787         (local_setattro): New function.
8788         * breakpoint.c (condition_command): Add check for Python 'stop'
8789         operation.
8790         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8791         operation function as part of stop/continue tests.
8792
8793 2011-03-14  Tom Tromey  <tromey@redhat.com>
8794
8795         PR gdb/12576:
8796         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8797         (needs_frame_dwarf_call): Likewise.
8798
8799 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8800
8801         Fix ARI warning about functions without parameters that do not
8802         use (void).
8803         * breakpoint.c (all_tracepoints): Replace () by (void).
8804         * f-exp.y (match_string_literal): Ditto.
8805         (yylex): Ditto.
8806         * m2-exp.y (yylex): Ditto.
8807         * mep-tdep.c (current_me_module): Ditto.
8808         (current_options): Ditto.
8809         (current_cop_data_bus_width): Ditto.
8810         (current_cr_names): Ditto.
8811         (current_cr_is_float): Ditto.
8812         (current_ccr_names): Ditto.
8813         * objc-exp.y (yylex): Ditto.
8814         * p-exp.y (yylex): Ditto.
8815         * remote.c (send_interrupt_sequence): Ditto.
8816         * tracepoint.c (current_trace_status): Ditto.
8817         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8818         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8819
8820 2011-03-11  Michael Snyder  <msnyder@vmware.com>
8821
8822         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8823         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8824         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8825         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8826         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8827
8828         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8829         (delete_async_event_handler): Ditto.
8830
8831         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8832
8833         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8834
8835         * top.c (set_verbose): Assert showcmd was found.
8836
8837 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
8838
8839         * xtensa-tdep.c (warning_once): Correct style issues.
8840
8841 2011-03-11  Yao Qi  <yao@codesourcery.com>
8842
8843         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8844
8845 2011-03-11  Andreas Schwab  <schwab@redhat.com>
8846
8847         * common/aclocal.m4: Remove.
8848
8849 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8850
8851         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8852         (xtensa_write_register, xtensa_read_register): Likewise.
8853         (xtensa_hextochar): Removed.
8854         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8855
8856 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
8857
8858         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8859         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
8860         (xtensa_alloc_frame_cache): Add initialization for new fields.
8861         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8862         (warning_once): New function.
8863         (xtensa_insn_kind): New item c0opc_and.
8864         (call0_classify_opcode): Add the case for AND instruction.
8865         (call0_track_op): Change arguments.  New local variable litbase.
8866         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
8867         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8868         in the prologue.
8869         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8870         (call0_analyze_prologue): Update the comments.  Change arguments.
8871         Add the variety of updates to handle extended prologues, which now can
8872         conduct dynamic stack adjustments.
8873         (call0_frame_cache): Likewise.
8874         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8875         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8876
8877 2011-03-10  Michael Snyder  <msnyder@vmware.com>
8878
8879         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8880         (cmd_qtframe): Ditto.
8881         (cmd_qtbuffer): Ditto.
8882         (cmd_bigqtbuffer): Ditto.
8883
8884 2011-03-10  Tom Tromey  <tromey@redhat.com>
8885
8886         * tracepoint.c (trace_actions_command): Update.
8887         * thread.c (thread_apply_command): Update.
8888         * reverse.c (delete_bookmark_command): Update.
8889         (bookmarks_info): Update.
8890         * printcmd.c (undisplay_command): Update.
8891         * memattr.c (mem_enable_command): Update.
8892         (mem_disable_command): Update.
8893         (mem_delete_command): Update.
8894         * inferior.c (detach_inferior_command): Update.
8895         (kill_inferior_command): Update.
8896         (remove_inferior_command): Update.
8897         * cli/cli-utils.h (struct get_number_or_range_state): New.
8898         (init_number_or_range): Declare.
8899         (get_number_or_range): Update.
8900         * cli/cli-utils.c (init_number_or_range): New function.
8901         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
8902         static variables.
8903         (number_is_in_list): Update.
8904         * breakpoint.h (get_tracepoint_by_number): Update.
8905         * breakpoint.c (map_breakpoint_numbers): Update for change to
8906         get_number_or_range.
8907         (find_location_by_number): Use get_number, not
8908         get_number_or_range.
8909         (trace_pass_set_count): New function.
8910         (trace_pass_command): Update for change to get_number_or_range.
8911         Rework loop logic.
8912         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8913         'state' parameter.
8914
8915 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
8916
8917         * python/py-param.c (add_setshow_generic): Add set/show callback
8918         parameters.  Register Python object context.
8919         (get_show_value): New function.
8920         (get_set_value): New function.
8921         (call_doc_function): New function.
8922         (get_doc_string): Move behind get_show_value/get_set_value.
8923
8924 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
8925
8926         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8927
8928 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
8929
8930         * xtensa-tdep.c (xtensa_read_register): Add comment.
8931         (xtensa_write_register): Likewise.
8932         (xtensa_hextochar): Add comment and update to match coding conventions.
8933         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8934         (execute_l32e, execute_s32e, execute_code): Update comments.
8935         (xtensa_exception_handler_t): Update to match coding conventions.
8936         (xtensa_insn_kind): Likewise.
8937
8938 2011-03-09  Michael Snyder  <msnyder@vmware.com>
8939
8940         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8941
8942 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
8943
8944         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8945
8946 2011-03-09  Tom Tromey  <tromey@redhat.com>
8947
8948         * thread.c (restore_selected_frame): Handle frame_level == -1.
8949         (make_cleanup_restore_current_thread): Use
8950         get_selected_frame_if_set.
8951         * frame.h (get_selected_frame_if_set): Declare.
8952         * frame.c (get_selected_frame_if_set): New function.
8953
8954 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
8955
8956         * cli/cli-cmds.c (shell_escape): Use lbasename.
8957         * coffread.c (coff_start_symtab): Constify parameter.
8958         (complete_symtab): Constify `name' parameter.
8959         (coff_symtab_read): Constify `filestring' local.
8960         (coff_getfilename): Constify return and `result' local.
8961         Use lbasename.
8962         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8963         * linux-fork.c (info_checkpoints_command): Use lbasename.
8964         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8965         * minsyms.c (lookup_minimal_symbol): Use lbasename.
8966         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8967         * procfs.c (procfs_make_note_section): Use lbasename.
8968         * tui/tui-io.c (printable_part): Constity return and parameter.
8969         Use lbasename.
8970         (print_filename): Constify parameters, and local `s'.
8971         (tui_rl_display_match_list): Constify local `temp'.
8972
8973 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8974
8975         Revert:
8976         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8977         Fix DWARF-3+ DW_AT_accessibility default assumption.
8978         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8979         cu->header.version >= 3.
8980
8981 2011-03-09  Yao Qi  <yao@codesourcery.com>
8982
8983         * common/Makefile.in: Remove.
8984         * common/configure: Remove.
8985         * common/configure.ac: Remove.
8986
8987 2011-03-09  Yao Qi  <yao@codesourcery.com>
8988
8989         Revert:
8990         2011-02-11  Yao Qi  <yao@codesourcery.com>
8991
8992         * common/Makefile.in: Add copyright header.
8993
8994         2011-02-11  Yao Qi  <yao@codesourcery.com>
8995
8996         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
8997         libcommon.a.
8998         * configure.ac: Add common to sub dir.
8999         * configure: Regenerate.
9000
9001 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9002
9003         * xtensa-tdep.c (call0_ret): New function.
9004         (xtensa_skip_prologue): Speed up analysis.
9005
9006 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9007
9008         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9009         while executing MI command -data-list-changed-registers.
9010
9011 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9012
9013         * xtensa-tdep.c (xtensa_read_register): New function.
9014         (xtensa_write_register): New function.
9015         (xtensa_find_register_by_name): New function.
9016         (xtensa_windowed_frame_cache): Update comments in type description.
9017         (xtensa_frame_cache): Likewise.
9018         (xtensa_window_interrupt_insn): New function.
9019         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9020         (xtensa_insn_kind): Add new instructions.
9021         (rwx_special_register): New function.
9022         (call0_classify_opcode): Add new instructions to the analysis.
9023         (a0_saved, a7_saved, a11_saved): New variables.
9024         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9025         (execute_l32e): New function.
9026         (execute_s32e): New function.
9027         (xtensa_exception_handler_t): New type.
9028         (execute_code): New function.
9029         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9030         analysis for Xtensa Window Exception handlers.
9031
9032 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9033
9034         * xtensa-tdep.c (TX_PS): New.
9035         (windowing_enabled): Update to count for Call0 ABI.
9036         (xtensa_hextochar): New.
9037         (xtensa_init_reggroups): Make algorithm generic.
9038         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9039
9040 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9041
9042         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9043
9044 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9045
9046         * i386-tdep.c (i386_follow_jump): Check return value of
9047         target_read_memory.
9048         (i386_analyze_struct_return): Ditto.
9049         (i386_skip_probe): Ditto.
9050         (i386_match_insn): Ditto.
9051         (i386_skip_noop): Ditto.
9052         (i386_analyze_frame_setup): Ditto.
9053         (i386_analyze_register_saves): Ditto.
9054         (i386_skip_prologue): Ditto.
9055         (i386_skip_main_prologue): Ditto.
9056
9057         * target.c (read_whatever_is_readable): Fix memory leak.
9058
9059         * i386-tdep.c (i386_process_record): Document fall through.
9060
9061 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9062
9063         Fix DWARF-3+ DW_AT_accessibility default assumption.
9064         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9065         cu->header.version >= 3.
9066
9067 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9068
9069         * remote.c (remote_check_symbols): Skip if the target has no
9070         execution.
9071
9072 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9073
9074         * target.c (read_whatever_is_readable): Reformat comment,
9075         with a minor typo fix. Minor reformatting of the code.
9076
9077 2011-03-08  Yao Qi  <yao@codesourcery.com>
9078
9079         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9080         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9081         Use cached result instead of calling displaced_in_arm_mode again.
9082         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9083         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9084         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9085         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9086         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9087         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9088         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9089         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9090         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9091         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9092         (arm_catch_kernel_helper_return): Likewise.
9093         * gdb/arm-tdep.h : Update function declarations.
9094
9095 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9096
9097         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9098
9099         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9100
9101         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9102
9103         * elfread.c (elf_symtab_read): Stop memory leak.
9104
9105         * main.c (captured_main): Fix memory leak.
9106
9107 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9108
9109         * ada-lang.c (compare_names): Call is_name_suffix with string1
9110         instead of string2.
9111
9112 2011-03-07  Tom Tromey  <tromey@redhat.com>
9113
9114         * xcoffread.c (xcoff_sym_fns): Update.
9115         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9116         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9117         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9118         (symbol_file_add_with_addrs_or_offsets): Likewise.
9119         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9120         * somread.c (som_sym_fns): Update.
9121         * psymtab.h (require_partial_symbols): Declare.
9122         * psymtab.c (require_partial_symbols): New function.
9123         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9124         (ALL_OBJFILE_PSYMTABS): Undef.
9125         (ALL_PSYMTABS): Move from psympriv.h.
9126         (lookup_partial_symtab, find_pc_sect_psymtab)
9127         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9128         (find_last_source_symtab_from_partial)
9129         (forget_cached_source_info_partial)
9130         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9131         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9132         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9133         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9134         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9135         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9136         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9137         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9138         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9139         psymtabs.
9140         * mipsread.c (ecoff_sym_fns): Update.
9141         * machoread.c (macho_sym_fns): Update.
9142         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9143         (read_psyms): New function.
9144         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9145         (elf_sym_fns_lazy_psyms): New global.
9146         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9147         dwarf2_build_psymtabs.
9148         * dbxread.c (aout_sym_fns): Update.
9149         * coffread.c (coff_sym_fns): Update.
9150
9151 2011-03-07  Tom Tromey  <tromey@redhat.com>
9152
9153         * infrun.c (print_exited_reason): Include inferior id and pid in
9154         message.
9155
9156 2011-03-07  Tom Tromey  <tromey@redhat.com>
9157
9158         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9159         parameter.
9160         (target_has_execution_1): Update.
9161         (target_has_execution_current): Declare.
9162         (target_has_execution): Call target_has_execution_current.
9163         (default_child_has_execution): Update.
9164         * target.c (default_child_has_execution): Add 'the_ptid'
9165         parameter.
9166         (target_has_execution_1): Likewise.
9167         (target_has_execution_current): New function.
9168         (add_target): Update.
9169         (init_dummy_target): Update.
9170         * remote-m32r-sdi.c (m32r_has_execution): New function.
9171         (init_m32r_ops): Use it.
9172         * record.c (record_core_has_execution): Now static.  Add
9173         'the_ptid' parameter.
9174         * inferior.c (have_live_inferiors): Don't save current thread.
9175         Use target_has_execution_1.
9176
9177 2011-03-07  Yao Qi  <yao@codesourcery.com>
9178
9179         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9180
9181 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9182
9183         * elfread.c (elf_symtab_read): Minor reformatting.
9184
9185 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9186
9187         * objc-lang.c (selectors_info): Minor reformatting.
9188
9189 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9190
9191         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9192
9193 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9194             Michael Snyder  <msnyder@vmware.com>
9195
9196         * ada-valprint.c (ada_val_print_array): Move the declaration of
9197         "byte_order" and "elttype" inside the block where these variables
9198         are actually used.  Remove some special handling for the case
9199         where "elttype" and "eltlen" are null.  Replace by a comment
9200         and a couple of assertion checks.
9201
9202 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9203
9204         * source.c (add_path): Replace semicolon at end of block.
9205         * dwarf2expr.c (execute_stack_op): Ditto.
9206
9207 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9208
9209         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9210         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9211         (bfin-*-*): Likewise.
9212
9213 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9214
9215         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9216         * mdebugread.c (parse_symbol): Ditto.
9217         * parse.c (parse_exp_in_context): Ditto.
9218         * source.c (add_path): Ditto.
9219         * utils.c (gnu_debuglink_crc32): Ditto.
9220         * varobj.c (variable_language): Ditto.
9221
9222         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9223
9224 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9225
9226         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9227
9228         * symfile.c (simple_overlay_update): Check for null return value
9229         from lookup_minimal_symbol.
9230
9231         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9232
9233 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9234
9235         * eval.c (parse_and_eval_address_1): Remove function.
9236         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9237         instead of parse_and_eval_address_1.
9238         * value.h (parse_and_eval_address_1): Remove prototype.
9239
9240 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9241
9242         * remote.c (putpkt_binary): Document that case stmt falls through.
9243
9244 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9245
9246         * breakpointc (print_it_typical): Move NULL check from here...
9247         (print_bp_stop_message): ... to here.
9248
9249 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9250
9251         * breakpoint.c (enable_command): Use break instead of continue,
9252         and fill in a missing break.
9253         (disable_command): Ditto.
9254
9255 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9256
9257         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9258         (terminal_save_ours): Remove misleading comment.
9259         (inflow_inferior_data_cleanup): Free ttystate.
9260         (inflow_inferior_exit): Likewise.
9261         (copy_terminal_info): Copy ttystate.
9262
9263         * serial.c (serial_copy_tty_state): New function.
9264         * serial.h (serial_copy_tty_state): Add prototype.
9265         (struct serial_ops): Add copy_tty_state callback.
9266         * ser-base.c (ser_base_copy_tty_state): New function.
9267         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9268         * ser-go32.c (dos_copy_tty_state): New function.
9269         (dos_ops): Install copy_tty_state callback.
9270         * ser-mingw.c (_initialize_ser_windows): Likewise.
9271         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9272         * ser-unix.c (hardwire_copy_tty_state): New function.
9273         (_initialize_ser_hardwire): Install it.
9274
9275 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9276
9277         * breakpoint.c (create_breakpoint): Add missing break statement.
9278
9279         Reverting this patch:
9280         * infcall.c (call_function_by_hand): Add break statements for lint.
9281
9282         Reverting this patch:
9283         * cli/cli-script.c (script_from_file): Add break for lint.
9284
9285 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9286
9287         * solib.c (reload_shared_libraries_1): Close memory leak.
9288
9289 2011-03-03  Tom Tromey  <tromey@redhat.com>
9290
9291         PR gdb/12538:
9292         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9293         DW_STRING is NULL.
9294
9295 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9296
9297         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9298         fields of struct 'st' to zero.
9299
9300         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9301         sal.pspace before calling set_current_source_symtab_and_line.
9302
9303 2011-03-03  Yao Qi  <yao@codesourcery.com>
9304
9305         * Makefile.in (configure-common): Remove.  Let Makefile
9306         in dir common to rebuild itself.
9307         (common/Makefile): Likewise.
9308
9309 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9310
9311         * utils.c (parse_escape): Add i18n markup in error message.
9312
9313 2011-03-03  Yao Qi  <yao@codesourcery.com>
9314
9315         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9316         ARM_PC_REGNUM.
9317         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9318         (displaced_write_reg, displaced_read_reg): Likewise.
9319         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9320         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9321         (cleanup_branch): Replace magic number 14 and 15 with
9322         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9323
9324 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9325
9326         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9327
9328         * cli/cli-script.c (script_from_file): Add break for lint.
9329
9330         * mdebugread.c (parse_partial_symbols): Fix indent.
9331
9332         * target-descriptions.c (tdesc_gdb_type): No need to call
9333         xstrdup, callee saves a copy.
9334
9335         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9336
9337         * infcall.c (call_function_by_hand): Add break statements for lint.
9338
9339         * utils.c (parse_escape): Escape the escape char.
9340
9341         * python/py-inferior.c (build_inferior_list): Error out if
9342         PyList_Append fails.
9343         (gdbpy_inferiors): Error out if build_inferior_list fails.
9344
9345         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9346         a function call.
9347
9348         * record.c (record_restore): Move printf to before error return.
9349
9350 2011-03-02  Yao Qi  <yao@codesourcery.com>
9351
9352         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9353         is_thumb and insn_size.
9354         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9355         on both ARM and Thumb mode.
9356         (arm_process_displaced_insn): Set is_thumb and insn_size.
9357         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9358         (arm_displaced_step_fixup): Likewise.
9359
9360 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9361
9362         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9363
9364         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9365
9366         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9367
9368         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9369
9370         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9371         with xmalloc.
9372
9373         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9374         which shadows function parameter.
9375
9376         * tracepoint.c (create_tsv_from_upload): Superfluous call
9377         to xstrdup.  Callee already calls xstrdup.
9378
9379         * linespec.c (decode_line_1): Remove unnecessary null check.
9380
9381         * tracepoint.c (scope_info): Fix mem leak, remove underused
9382         variable.
9383
9384         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9385         superfluous null check.
9386
9387         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9388         (value_of_builtin_frame_fp_reg): Ditto.
9389
9390         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9391
9392         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9393         be null.
9394
9395         * linespec.c (decode_line_1): Check for null before dereference.
9396
9397         * reverse.c (record_restore): Move null-check to before pointer
9398         dereference.
9399
9400         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9401
9402         * objc-lang.c (selectors_info): Add explanitory comment.
9403         (classes_info): Ditto.
9404
9405 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9406
9407         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9408         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9409         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9410         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9411         (arm_linux_init_abi): Install it.
9412         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9413         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9414
9415 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9416
9417         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9418         a little bigger, to avoid possibility of an overflow.
9419
9420         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9421         buffers a little bigger, to avoid possibility of an overflow.
9422
9423         * coffread.c (coff_getfilename): Add check to avoid overflow.
9424
9425         * objc-lang.c (selectors_info): Add a small safety margin to
9426         avoid overflow.
9427         (classes_info): Error out on too long REGEXP.
9428
9429         * infrun.c (handle_inferior_event): Remove unused function call.
9430
9431         * fork-child.c (fork_inferior): Remove ifdef'd code and
9432         unused variable.
9433
9434         * linux-thread-db.c (attach_thread): Discard unused value.
9435
9436         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9437
9438         * remote.c (remote_get_noisy_reply): Discard unused value.
9439         (remote_vcont_resume): Ditto.
9440         (remote_stop_ns): Ditto.
9441
9442         * linespec.c (decode_objc): Delete unused variable.
9443
9444         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9445
9446         * dwarf2read.c (add_partial_symbol): Discard unused values.
9447         (read_base_type): Delete unused variable.
9448
9449         * dbxread.c (read_dbx_symtab): Discard unused value.
9450
9451         * eval.c (evaluate_subexp_standard): Delete unused variable,
9452         and discard unused values.
9453
9454         * infcmd.c (_initialize_infcmd): Discard unused values.
9455
9456         * stabsread.c (rs6000_builtin_type): Missing break statement.
9457
9458         * dbxread.c (process_one_symbol): Discard unused value.
9459
9460         * coffread.c (coff_end_symtab): Delete unused variable.
9461
9462         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9463         (dwarf2_add_typedef): Delete unused variable.
9464         (read_namespace): Ditto.
9465         (dwarf_decode_macros): Ditto.
9466
9467         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9468
9469         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9470
9471         * p-valprint.c (pascal_val_print): Discard unused value.
9472
9473         * utils.c (nquery): Call va_end before return;
9474         (yquery): Ditto.
9475         (query): Ditto.
9476
9477         * proc-service.c (ps_plog): Call va_end before return.
9478
9479 2011-02-28  Tom Tromey  <tromey@redhat.com>
9480
9481         * python/python.c (gdbpy_value_cst): New global.
9482         (_initialize_python): Initialize it.
9483         * python/python-internal.h (gdbpy_value_cst): Declare.
9484         * python/py-value.c (convert_value_from_python): Use
9485         gdbpy_value_cst.
9486
9487 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9488
9489         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9490
9491         * breakpoint.c (catch_syscall_completer): Free malloced list.
9492
9493         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9494
9495         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9496         (lval_func_check_synthetic_pointer): Ditto.
9497         (lval_func_free_closure): Fix use-after-free.
9498
9499 2011-02-28  Tom Tromey  <tromey@redhat.com>
9500
9501         * psymtab.c (expand_partial_symbol_tables): Use
9502         ALL_OBJFILE_PSYMTABS.
9503
9504 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9505
9506         * objc-lang.c (selectors_info): Error on too long REGEXP.
9507
9508 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9509
9510         * python/py-param.c (set_parameter_value): Add missing
9511         break statement.
9512
9513         * linux-record.c (record_linux_system_call): Add missing
9514         break statement.
9515
9516 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9517
9518         * breakpoint.c (print_one_breakpoint_location): Remove unused
9519         argument PRINT_ADDRESS_BITS.  Update callers.
9520         (print_one_breakpoint): Likewise.
9521
9522 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9523
9524         * breakpoint.c (wrap_indent_at_field): New function.
9525         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9526         Allocate ui_stream locally instead of using STB argument.
9527         (print_one_breakpoint_location): Update call.
9528         * ui-out.c (ui_out_query_field): New function.
9529         * ui-out.h (ui_out_query_field): Add prototype.
9530
9531 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9532
9533         From Michael Snyder  <msnyder@vmware.com>
9534         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9535
9536 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9537
9538         * objc-lang.c (selectors_info): Prevent string overrun.
9539
9540         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9541         error in strncpy.
9542
9543         * symtab.c (rbreak_command): Move variable 'file_name' to
9544         outer scope.
9545
9546         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9547         param with a local variable of the same name.
9548
9549 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9550
9551         * value.c (value_from_history_ref): New function.
9552         * value.h (value_from_history_ref): Export.
9553         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9554         to parse value history references.
9555         * cli/cli-utils.h (get_number_trailer): Update comment.
9556
9557 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9558
9559         * inferior.c (detach_inferior_command): Use get_number_or_range.
9560         (kill_inferior_command): Ditto.
9561         (remove_inferior_command): Ditto.
9562         (initialize_inferiors): Make command names plural.
9563         Update help strings.
9564
9565 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9566
9567         * darwin-nat-info.c: Fix comment typo.
9568         * dwarf2expr.h: Ditto.
9569         * fbsd-nat.c: Ditto.
9570         * fbsd-nat.h: Ditto.
9571         * frame-unwind.h: Ditto.
9572         * frame.h: Ditto.
9573         * hppa-hpux-tdep.c: Ditto.
9574         * i386-linux-nat.c: Ditto.
9575         * linux-nat.c: Ditto.
9576         * nbsd-nat.c: Ditto.
9577         * nbsd-nat.h: Ditto.
9578         * ppc-linux-tdep.c: Ditto.
9579         * serial.c: Ditto.
9580         * ui-file.h: Ditto.
9581         * tui/tui-winsource.c: Ditto.
9582
9583 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9584
9585         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9586
9587         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9588
9589         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9590         with a local variable of the same name.
9591
9592         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9593         param with a local variable of the same name.
9594         (i387_supply_xsave): Ditto.
9595
9596         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9597         that it does not shadow a function parameter.
9598
9599         * i386-nat.c (i386_length_and_rw_bits): Document that case
9600         statement is meant to fall through.
9601
9602         * expprint.c (dump_subexp_body_standard): Document that case
9603         statement is meant to fall through.
9604
9605         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9606         dead if statement.  Condition can't be false.
9607
9608 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9609
9610         * arm-tdep.c: Fix typos in comments.
9611         * bsd-uthread.c: Ditto.
9612         * completer.c: Ditto.
9613         * corelow.c: Ditto.
9614         * cp-namespace.c: Ditto.
9615         * cp-support.c: Ditto.
9616         * cris-tdep.c: Ditto.
9617         * dbxread.c: Ditto.
9618         * dwarf2read.c: Ditto.
9619         * frame.h: Ditto.
9620         * gdbtypes.h: Ditto.
9621         * inferior.h: Ditto.
9622         * mdebugread.c: Ditto.
9623         * mips-tdep.c: Ditto.
9624         * ppc-linux-nat.c: Ditto.
9625         * ppc-linux-tdep.c: Ditto.
9626         * printcmd.c: Ditto.
9627         * sol-thread.c: Ditto.
9628         * solib-frv.c: Ditto.
9629         * solist.h: Ditto.
9630         * sparc64-tdep.c: Ditto.
9631         * spu-tdep.c: Ditto.
9632         * stabsread.c: Ditto.
9633         * symfile.c: Ditto.
9634         * valops.c: Ditto.
9635         * varobj.c: Ditto.
9636         * vax-nat.c: Ditto.
9637         * python/py-block.c: Ditto.
9638         * python/py-symbol.c: Ditto.
9639         * python/py-symtab.c: Ditto.
9640         * python/py-value.c: Ditto.
9641         * tui/tui-win.c: Ditto.
9642
9643 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9644
9645         * inferior.c (print_inferior): Accept a string instead of an int
9646         for requested_inferiors, and use get_number_or_range to parse it.
9647         (info_inferiors_command): Pass args string to print_inferior.
9648         (initialize_inferiors): Change help string for info inferiors.
9649         * inferior.h (print_inferior): Export prototype change.
9650
9651 2011-02-25  Tom Tromey  <tromey@redhat.com>
9652
9653         * common/ax.def (invalid2): Set to 0x31.
9654
9655 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9656
9657         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9658         L and plongest.
9659         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9660         use L and plongest.
9661         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9662
9663 2011-02-24  Michael Snyder  <msnyder@vmware.com>
9664
9665         * Makefile.in (clean): Make clean should remove generated files
9666         observer.h and observer.inc.
9667
9668 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
9669
9670         Revert the following patch (not approved yet):
9671         2011-02-21  Hui Zhu  <teawater@gmail.com>
9672         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9673         * ax-gdb.c (gen_printf_expr_callback): New function.
9674         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9675         * ax-general.c (ax_memcpy): New function.
9676         (ax_print): Handle "printf".
9677         (ax_reqs): Ditto.
9678         * ax.h (ax_memcpy): Forward declare.
9679         * common/ax.def (invalid2): Removed.
9680         (printf): New entry.
9681         * printcmd.c (printcmd.h): New include.
9682         (string_printf): New function.
9683         (ui_printf): Removed.
9684         (printf_command): Remove static.  Call string_printf.
9685         (eval_command): Call string_printf.
9686         * printcmd.h: New file.
9687         * tracepoint.c (validate_actionline,
9688         encode_actions_1): handle printf_command.
9689
9690 2011-02-23  Tom Tromey  <tromey@redhat.com>
9691
9692         * ax-general.c (ax_pick): Add missing newline.
9693
9694 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9695
9696         * breakpoint.c (breakpoint_1): Change first argument from an int
9697         to a char pointer, so that the function now accepts a list of
9698         breakpoints rather than just one.  Use new function
9699         'number_is_in_list' to implement.
9700         (breakpoints_info): Pass char * instead of int to breakpoint_1.
9701         (watchpoints_info): Ditto.
9702         (tracepoints_info): Ditto.
9703         (maintenance_info_breakpoints): Ditto.
9704         (_initialize_breakpoint): Update help strings to reflect the fact
9705         that these functions can now take more than one argument.
9706         * cli/cli-utils.c (number_is_in_list): New function.
9707         * cli/cli-utils.h (number_is_in_list): Export.
9708
9709 2011-02-23  Michael Snyder  <msnyder@vmware.com>
9710
9711         * memattr.c (mem_enable_command): Use get_number_or_range.
9712         (mem_disable_command): Ditto.
9713         (mem_delete_command): Ditto.
9714         (_initialize_mem): Tweak usage message to reflect multiple
9715         arguments.
9716
9717 2011-02-22  Doug Evans  <dje@google.com>
9718
9719         Add gdb.lookup_global_symbol python function.
9720         * NEWS: Add entry.
9721         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9722         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9723         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9724
9725 2011-02-22  Tom Tromey  <tromey@redhat.com>
9726
9727         * language.c (language_class_name_from_physname): Rename
9728         'curr_language' argument to 'lang'; use in body.
9729
9730 2011-02-22  Michael Snyder  <msnyder@vmware.com>
9731
9732         * cli/cli-utils.c (number_is_in_list): Check for zero return.
9733
9734 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
9735
9736         * frame-unwind.h: Fix comment to mention the this frame, not the
9737         next.
9738
9739 2011-02-22  Tom Tromey  <tromey@redhat.com>
9740
9741         * symfile.c (auto_solib_limit): Remove.
9742         * symfile.h (auto_solib_limit): Remove.
9743
9744 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
9745
9746         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
9747
9748 2011-02-21  Michael Snyder  <msnyder@vmware.com>
9749
9750         * gdbthread.h (print_thread_info): Change prototype.
9751         * thread.c (print_thread_info): Accept char* instead of int for
9752         requested_threads argument.  Use new function number_is_in_list
9753         to determine which threads to list.
9754         (info_threads_command): Pass char* to print_thread_info.
9755         * cli/cli-utils.c (number_is_in_list): New function.
9756         * cli/cli-utils.h (number_is_in_list): Export.
9757         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9758         print_thread_info.
9759         (print_one_inferior): Ditto.
9760         (mi_cmd_list_thread_groups): Ditto.
9761
9762 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9763
9764         * common/Makefile.in (CFLAGS): New.
9765         (COMPILE): Add $(CFLAGS).
9766
9767 2011-02-21  Tom Tromey  <tromey@redhat.com>
9768
9769         * breakpoint.c (catch_syscall_command_1): Fix typo.
9770
9771 2011-02-21  Tom Tromey  <tromey@redhat.com>
9772
9773         * reverse.c: Include cli-utils.h.
9774         * printcmd.c: Include cli-utils.h.
9775         (string_printf): Use skip_spaces.
9776         * cli/cli-utils.h: New file.
9777         * cli/cli-utils.c: New file.
9778         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9779         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9780         * breakpoint.h (get_number, get_number_or_range): Move to
9781         cli-utils.h.
9782         * breakpoint.c: Include cli-utils.h.
9783         (get_number_trailer, get_number, get_number_or_range)
9784         (ep_skip_leading_whitespace): Move to cli-utils.c.
9785         (create_breakpoint_sal, find_condition_and_thread)
9786         (decode_static_tracepoint_spec, watch_command_1)
9787         (watch_maybe_just_location, ep_parse_optional_if_clause)
9788         (catch_fork_command_1, catch_exec_command_1)
9789         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9790         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9791         (SUBDIR_CLI_SRCS): Add cli-utils.c.
9792         (HFILES_NO_SRCDIR): Add cli-utils.h.
9793         (cli-utils.o): New target.
9794
9795 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9796
9797         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9798         before calling discard_all_inferiors.
9799
9800 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9801
9802         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9803         (struct builtin_opencl_type): Remove.
9804         (builtin_opencl_type): Change return type to "struct type **".
9805         (lookup_opencl_vector_type): Update caller.
9806         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9807         (build_opencl_types): Install plain array of "struct type *"
9808         instead of "struct builtin_opencl_type".
9809
9810 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9811             Ulrich Weigand  <uweigand@de.ibm.com>
9812
9813         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9814         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9815         (struct arm_linux_hwbp_cap): New type.
9816         (arm_linux_get_hwbp_cap): New function.
9817         (arm_linux_get_hw_breakpoint_count): Likewise.
9818         (arm_linux_get_hw_watchpoint_count): Likewise.
9819         (arm_linux_can_use_hw_breakpoint): Likewise.
9820         (arm_hwbp_type): New type.
9821         (arm_hwbp_control_t): Likewise.
9822         (struct arm_linux_hw_breakpoint): Likewise.
9823         (struct arm_linux_thread_points): Likewise.
9824         (arm_threads): New global variable.
9825         (arm_linux_find_breakpoints_by_tid): New function.
9826         (arm_hwbp_control_initialize): Likewise.
9827         (arm_hwbp_control_is_enabled): Likewise.
9828         (arm_hwbp_control_disable): Likewise.
9829         (arm_linux_hw_breakpoint_initialize): Likewise.
9830         (arm_linux_get_hwbp_type): Likewise.
9831         (arm_linux_hw_watchpoint_initialize): Likewise.
9832         (arm_linux_hw_breakpoint_equal): Likewise.
9833         (arm_linux_insert_hw_breakpoint1): Likewise.
9834         (arm_linux_remove_hw_breakpoint1): Likewise.
9835         (arm_linux_insert_hw_breakpoint): Likewise.
9836         (arm_linux_remove_hw_breakpoint): Likewise.
9837         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9838         (arm_linux_insert_watchpoint): Likewise.
9839         (arm_linux_remove_watchpoint): Likewise.
9840         (arm_linux_stopped_data_address): Likewise.
9841         (arm_linux_stopped_by_watchpoint): Likewise.
9842         (arm_linux_watchpoint_addr_within_range): Likewise.
9843         (arm_linux_new_thread): Likewise.
9844         (arm_linux_thread_exit): Likewise.
9845         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9846         related target callbacks.  Register arm_linux_new_thread and
9847         arm_linux_thread_exit.
9848         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9849         * arm-tdep.c (arm_pc_is_thumb): Make global.
9850         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9851
9852 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9853
9854         * breakpoint.c (update_watchpoint): Do not attempt to recreate
9855         per-frame locations while within a function epilogue.
9856
9857 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9858
9859         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9860         to GNU coding standards.
9861
9862 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
9863
9864         Allow use of mingw native on Windows 95 OS.
9865         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9866         (ser_windows_close): Only call CancelIo if function exists.
9867         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9868         to check for existence of CancelIo function in kernel32 DLL.
9869
9870 2011-02-21  Hui Zhu  <teawater@gmail.com>
9871
9872         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9873         * ax-gdb.c (gen_printf_expr_callback): New function.
9874         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9875         * ax-general.c (ax_memcpy): New function.
9876         (ax_print): Handle "printf".
9877         (ax_reqs): Ditto.
9878         * ax.h (ax_memcpy): Forward declare.
9879         * common/ax.def (invalid2): Removed.
9880         (printf): New entry.
9881         * printcmd.c (printcmd.h): New include.
9882         (string_printf): New function.
9883         (ui_printf): Removed.
9884         (printf_command): Remove static.  Call string_printf.
9885         (eval_command): Call string_printf.
9886         * printcmd.h: New file.
9887         * tracepoint.c (validate_actionline,
9888         encode_actions_1): handle printf_command.
9889
9890 2011-02-19  Michael Snyder  <msnyder@vmware.com>
9891
9892         * reverse.c (delete_one_bookmark): Argument is now bookmark
9893         id rather than pointer to bookmark struct.
9894         (delete_bookmark_command): Use get_number_or_range.
9895         (goto_bookmark_command): Parse with get_number instead of strtoul.
9896         (bookmark_1): New function.  Print info for one bookmark.
9897         (bookmarks_info): Use get_number_or_range and bookmark_1.
9898
9899 2011-02-18  Michael Snyder  <msnyder@vmware.com>
9900
9901         * thread.c (info_threads_command): Re-implement using
9902         get_number_or_range.
9903         (thread_apply_command): Ditto.
9904
9905 2011-02-18  Tom Tromey  <tromey@redhat.com>
9906
9907         * common/ax.def: New file.
9908         * ax.h (enum agent_op): Use ax.def.
9909         * ax-general.c (aop_map): Use ax.def.
9910
9911 2011-02-18  Tom Tromey  <tromey@redhat.com>
9912
9913         * ax-general.c (aop_map): Add pick and rot.
9914         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9915         <DW_OP_rot>: Implement.
9916         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9917         (ax_pick): Declare.
9918         * ax-general.c (ax_pick): New function.
9919
9920 2011-02-18  Tom Tromey  <tromey@redhat.com>
9921
9922         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9923
9924 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9925             Tom Tromey  <tromey@redhat.com>
9926
9927         * cp-support.c (make_symbol_overload_list_namespace): Do not call
9928         make_symbol_overload_list_block with NULL BLOCK.
9929         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9930
9931 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
9932
9933         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9934         * breakpoint.h (get_number_or_range): Declare.
9935         * printcmd.c (ALL_DISPLAYS): Declare.
9936         (delete_display): Reimplement taking a display pointer.
9937         (undisplay_command): Accept a range of displays to delete, using
9938         get_number_or_range.
9939
9940 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9941
9942         * c-valprint.c (c_val_print): Add embedded_offset to address
9943         for arrays of unspecified length.
9944         * p-valprint.c (pascal_val_print): Likewise.
9945
9946 2011-02-18  Yao Qi  <yao@codesourcery.com>
9947
9948         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9949         (arm_process_displaced_insn): .. here. Remove parameter INSN.
9950         (thumb_process_displaced_insn): New.
9951         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9952         call to arm_process_displaced_insn.
9953         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9954
9955 2011-02-17  Tom Tromey  <tromey@redhat.com>
9956
9957         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9958         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9959         compile_dwarf_to_ax.  No longer static.  Call
9960         dwarf2_compile_cfa_to_ax.
9961         (locexpr_tracepoint_var_ref): Update.
9962         (loclist_tracepoint_var_ref): Update.
9963         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9964         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9965         argument; add 'gdbarch' and 'pc'.
9966         (dwarf2_compile_cfa_to_ax): New function.
9967         (dwarf2_frame_cache): Update.
9968
9969 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
9970
9971         * ada-lang.c (ada_type_of_array): Fix the size of the array
9972         in the case of an unconstrained packed array.
9973
9974 2011-02-17  Yao Qi  <yao@codesourcery.com>
9975
9976         * common/Makefile.in: Add more targets for make.
9977
9978 2011-02-16  Tom Tromey  <tromey@redhat.com>
9979
9980         * dwarf2loc.c (unimplemented): Fix typo.
9981
9982 2011-02-16  Tom Tromey  <tromey@redhat.com>
9983
9984         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9985         (compile_dwarf_to_ax) <default>: Use unimplemented.
9986         <DW_OP_deref>: Update.
9987         (disassemble_dwarf_expression): Update.
9988         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9989         (decode_locdesc): Update.
9990         * dwarf2expr.h (dwarf_stack_op_name): Update.
9991
9992 2011-02-16  Tom Tromey  <tromey@redhat.com>
9993
9994         * ax.h (struct aop_map) <name>: Now const.
9995
9996 2011-02-16  Tom Tromey  <tromey@redhat.com>
9997
9998         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9999         than axs_rvalue.
10000
10001 2011-02-16  Yao Qi  <yao@codesourcery.com>
10002
10003         * infrun.c (get_displaced_step_closure_by_addr): New.
10004         * inferior.h: Declare it.
10005         * arm-tdep.c: (arm_pc_is_thumb): Call
10006         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10007         returns non-NULL.
10008
10009 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10010             Jan Kratochvil  <jan.kratochvil@redhat.com>
10011
10012         gdb/
10013         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10014
10015 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10016             Jan Kratochvil  <jan.kratochvil@redhat.com>
10017
10018         * value.c (value_contents_copy_raw): Extend describing comment.
10019         Assert that the destination contents we're overwriting are wholly
10020         available.
10021         (value_contents_copy): Extend describing comment.
10022
10023 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10024             Jan Kratochvil  <jan.kratochvil@redhat.com>
10025
10026         * value.c (value_available_contents_eq): Remove redundant local
10027         variables.  Fix available contents comparision.
10028         * value.h (value_available_contents_eq): Extend describing
10029         comment.
10030
10031 2011-02-16  Yao Qi  <yao@codesourcery.com>
10032
10033         * thread.c (info_threads_command): Add missing i18n markup and remove
10034         trailing newline.
10035
10036 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10037
10038         * breakpoint.c (longjmp_names): New variable.
10039         (struct breakpoint_objfile_data): New type.
10040         (breakpoint_objfile_key): New variable.
10041         (msym_not_found): New variable.
10042         (msym_not_found_p): New predicate.
10043         (get_breakpoint_objfile_data): New function.
10044         (create_overlay_event_breakpoint): Check per-objfile cache for
10045         symbols first.
10046         (create_longjmp_master_breakpoint): Likewise.
10047         (create_std_terminate_master_breakpoint): Likewise.
10048         (create_exception_master_breakpoint): Likewise.
10049         (_initialize_breakpoint): Register per-objfile data key.
10050
10051 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10052
10053         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10054         parameter value.
10055         (create_longjmp_master_breakpoint): Loop over longjmp names.
10056         (create_std_terminate_master_breakpoint): Const-propagate parameter
10057         value.
10058         (update_breakpoints_after_exec): Adjust.
10059         (breakpoint_re_set): Adjust.
10060
10061 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10062
10063         * thread.c (info_threads_command): Process arg as thread id,
10064         or list of thread ids.
10065         (thread_find_command): New command.
10066         (_initialize_thread): Document argument for info threads.
10067         Document 'thread find' command.
10068         * NEWS: Document new command "thread find".
10069
10070 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10071
10072         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10073         * aclocal.m4: Regenerated with aclocal-1.11.1.
10074         * common/configure: Regenerate with autoconf-2.64.
10075
10076 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10077
10078         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10079         bool data type to a size of one byte.
10080
10081 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10082             Jan Kratochvil  <jan.kratochvil@redhat.com>
10083
10084         * target.c (memory_xfer_live_readonly_partial): Document where to
10085         look for interface description.
10086
10087 2011-02-15  Yao Qi  <yao@codesourcery.com>
10088
10089         PR tdep/12352
10090         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10091         order to store PC value on stack instead of text section.
10092
10093 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10094
10095         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10096         the EFP register set size.
10097         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10098         data from the VMX register.
10099         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10100         and write data from/to the VMX register.
10101
10102 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10103
10104         * command.h (enum command_class): New class 'no_set_class', for
10105         "show" commands without a corresponding "set" command.
10106         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10107         * copying.c (_initialize_copying): Ditto for "show copying" and
10108         "show warranty".
10109         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10110         "show version".
10111         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10112         which there is no corresponding "set" command (eg. "show copying").
10113
10114 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10115             Jan Kratochvil  <jan.kratochvil@redhat.com>
10116
10117         * exec.c (section_table_available_memory): Change `len' parameter
10118         type to ULONGEST.
10119         * exec.h (section_table_available_memory): Ditto.
10120         * value.h (read_value_memory): Rename the `offset' parameter to
10121         `embedded_offset'.
10122
10123 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10124             Jan Kratochvil  <jan.kratochvil@redhat.com>
10125
10126         * memrange.c (compare_mem_ranges): Mention sort order in
10127         describing comment.
10128         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10129         * tracepoint.c (traceframe_available_memory): Extend comment to
10130         mention what happens to RESULT when the target does not support
10131         the query.
10132
10133 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10134             Jan Kratochvil  <jan.kratochvil@redhat.com>
10135
10136         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10137         range.
10138
10139 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10140
10141         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10142         No longer handle NULL values.
10143
10144 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10145
10146         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10147         * value.c: Include "exceptions.h".
10148         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10149         generic error.
10150         * cp-abi.c: Include gdb_assert.h.
10151         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10152         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10153         errors.
10154         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10155         parameters.  No longer returns -1 on error.
10156         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10157         `val' parameters.
10158         * cp-valprint.c: Include exceptions.h.
10159         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10160         the baseclass_offset.  Handle unavailable base classes.  Use
10161         val_print_invalid_address.
10162         * p-valprint.c: Include exceptions.h.
10163         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10164         when fetching the baseclass_offset.  No longer expect
10165         baseclass_offset returning -1.  Handle unavailable base classes.
10166         Use val_print_invalid_address.
10167         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10168         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10169         `embedded_offset' and `val' parameters.  Adjust.
10170         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10171         parameter, and change its type to gdb_byte pointer.  Add
10172         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10173         baseclass_offset returning -1.
10174         (value_dynamic_cast): Use value_contents_for_printing rather than
10175         value_contents.  Adjust.
10176         (search_struct_field): No longer expect baseclass_offset returning
10177         -1.
10178         (search_struct_method): If reading memory from the target is
10179         necessary, wrap it in a new value to pass to baseclass_offset.  No
10180         longer expect baseclass_offset returning -1.
10181         (find_method_list): No longer expect baseclass_offset returning
10182         -1.  Use value_contents_for_printing rather than value_contents.
10183         * valprint.c (val_print_invalid_address): New function.
10184         * valprint.h (val_print_invalid_address): Declare.
10185         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10186         and `val' parameters.  No longer expect baseclass_offset returning
10187         -1.  Adjust.
10188         * gnu-v2-abi.c: Include "exceptions.h".
10189         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10190         parameters.  Handle unavailable memory.  Recurse through
10191         gnuv2_baseclass_offset directly, rather than through
10192         baseclass_offset.  No longer returns -1 on not found, instead
10193         throw an error.
10194         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10195         `val' parameters.  Adjust.
10196
10197 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10198
10199         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10200         almost but not quite adjacent.
10201
10202 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10203
10204         * value.h (value_entirely_available): Declare.
10205         * value.c (value_entirely_available): New function.
10206         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10207         real type if the pointer is unavailable.
10208
10209 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10210
10211         * valops.c (value_repeat): Use read_value_memory instead of
10212         read_memory.
10213
10214 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10215
10216         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10217         * value.c (value_contents_copy_raw, value_contents_copy): New
10218         functions.
10219         (value_primitive_field): Use value_contents_copy_raw instead of
10220         memcpy.
10221         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10222         memcpy.
10223         (value_array, value_slice): Ditto.
10224         * valarith.c (value_subscripted_rvalue): Use
10225         value_contents_copy_raw instead of memcpy.
10226
10227 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10228
10229         <unavailable> references.
10230
10231         * valops.c (get_value_at): Use value_from_contents_and_address,
10232         avoiding read_memory.
10233
10234 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10235
10236         * c-valprint.c (c_val_print): Print a string with unavailable
10237         contents as an array.
10238
10239 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10240
10241         * value.h (unpack_bits_as_long): Delete declaration.
10242         (unpack_value_bits_as_long): Declare.
10243         (unpack_value_field_as_long): Declare.
10244         (value_field_bitfield): Declare.
10245         * value.c (unpack_bits_as_long): Rename to...
10246         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10247         value parameters.  Return the extracted result in a new output
10248         parameter.  If the value contents are unavailable, return false,
10249         otherwise return true.
10250         (unpack_value_bits_as_long): New.
10251         (unpack_field_as_long): Rename to...
10252         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10253         Add embedded_offset and value parameters.  Return the extracted
10254         result in a new output parameter. If the value contents are
10255         unavailable, return false, otherwise return true.
10256         (unpack_value_field_as_long): New.
10257         (unpack_field_as_long_1): New.
10258         (unpack_field_as_long): Reimplement as wrapper around
10259         unpack_value_field_as_long_1.
10260         (value_field_bitfield): New function.
10261         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10262         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10263         is unavailable.
10264         * jv-valprint.c (java_print_value_fields): Use
10265         value_field_bitfield.
10266         * p-valprint.c (pascal_object_print_value_fields): Use
10267         value_field_bitfield.
10268         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10269
10270 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10271
10272         * value.c (get_internalvar_integer): Also return the int value of
10273         TYPE_CODE_INT INTERNALVAR_VALUE values.
10274         (set_internalvar): Don't special case TYPE_CODE_INT.
10275
10276 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10277
10278         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10279         INTERNALVAR_POINTER.
10280         <pointer>: Delete.
10281         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10282         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10283         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10284
10285 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10286
10287         * value.h (value_available_contents_eq): Declare.
10288         * value.c (find_first_range_overlap): New function.
10289         (value_available_contents_eq): New function.
10290         * valprint.c (val_print_array_elements): Use
10291         value_available_contents_eq.
10292         * ada-valprint.c (val_print_packed_array_elements): Use
10293         value_available_contents_eq.
10294         * jv-valprint.c (java_value_print): Use
10295         value_available_contents_eq.
10296
10297 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10298
10299         * target.c (target_read_live_memory): New function.
10300         (memory_xfer_live_readonly_partial): New.
10301         (memory_xfer_partial): If reading from a traceframe, fallback to
10302         reading unavailable read-only memory from read-only regions of
10303         live target memory.
10304         * tracepoint.c (disconnect_tracing): Adjust.
10305         (set_current_traceframe): New, factored out from
10306         set_traceframe_number.
10307         (set_traceframe_number): Reimplement to only change the traceframe
10308         number on the GDB side.
10309         (do_restore_current_traceframe_cleanup): Adjust.
10310         (make_cleanup_restore_traceframe_number): New.
10311         (cur_traceframe_number): New global.
10312         (tfile_open): Set cur_traceframe_number to no traceframe.
10313         (set_tfile_traceframe): New function.
10314         (tfile_trace_find): If looking up a traceframe using any method
10315         other than by number, make sure the current tfile traceframe
10316         matches gdb's current traceframe.  Update the current tfile
10317         traceframe if the lookup succeeded.
10318         (tfile_fetch_registers, tfile_xfer_partial)
10319         (tfile_get_trace_state_variable_value): Make sure the remote
10320         traceframe matches gdb's current traceframe.
10321         * remote.c (remote_traceframe_number): New global.
10322         (remote_open_1): Set it to -1.
10323         (set_remote_traceframe): New function.
10324         (remote_fetch_registers, remote_store_registers)
10325         (remote_xfer_memory, remote_xfer_partial)
10326         (remote_get_trace_state_variable_value): Make sure the remote
10327         traceframe matches gdb's current traceframe.
10328         (remote_trace_find): If looking up a traceframe using any method
10329         other than by number, make sure the current remote traceframe
10330         matches gdb's current traceframe.  Update the current remote
10331         traceframe if the lookup succeeded.
10332         * infrun.c (fetch_inferior_event): Adjust.
10333         * tracepoint.h (set_current_traceframe): Declare.
10334         (get_traceframe_number, set_traceframe_number): Add describing
10335         comments.
10336
10337 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10338
10339         Mark pieces of values as unavailable if the corresponding memory
10340         is unavailable.
10341
10342         * valops.c: Include tracepoint.h.
10343         (value_fetch_lazy): Use read_value_memory.
10344         (read_value_memory): New.
10345         * value.h (read_value_memory): Declare.
10346         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10347         * exec.c (section_table_available_memory): New function.
10348         * exec.h (section_table_available_memory): Declare.
10349
10350 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10351
10352         * Makefile.in (SFILES): Add memrange.c.
10353         (HFILES_NO_SRCDIR): Add memrange.h.
10354         (COMMON_OBS): Add memrange.o.
10355         * memrange.c: New file.
10356         * memrange.h: New file.
10357         * tracepoint.c: Include memrange.h.
10358         (struct mem_range): Delete.
10359         (mem_range_s): Delete.
10360         (traceframe_available_memory): New function.
10361         * tracepoint.h (traceframe_available_memory): Declare.
10362
10363 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10364
10365         * target.h (struct traceframe_info): Forward declare.
10366         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10367         (struct target_ops) <to_traceframe_info>: New field.
10368         (target_traceframe_info): New.
10369         * target.c (update_current_target): Inherit and default
10370         to_traceframe_info.
10371         * remote.c (PACKET_qXfer_traceframe_info): New.
10372         (remote_protocol_features): Register qXfer:traceframe-info:read.
10373         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10374         (remote_traceframe_info): New.
10375         (init_remote_ops): Install it.
10376         (_initialize_remote): Install "set/show remote traceframe-info"
10377         commands.
10378         * tracepoint.h (parse_traceframe_info): Declare.
10379         * tracepoint.c (struct mem_range): New.
10380         (mem_range_s): New typedef.
10381         (struct traceframe_info): New.
10382         (traceframe_info): New global.
10383         (free_traceframe_info): New function.
10384         (clear_traceframe_info): New function.
10385         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10386         info.
10387         (build_traceframe_info): New function.
10388         (tfile_traceframe_info): New function.
10389         (init_tfile_ops): Install tfile_traceframe_info.
10390         (traceframe_info_start_memory, free_result): New functions.
10391         (memory_attributes, traceframe_info_elements): New globals.
10392         (parse_traceframe_info, get_traceframe_info): New functions.
10393         * features/traceframe-info.dtd: New file.
10394         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10395
10396 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10397
10398         Base support for <unavailable> value contents.
10399
10400         * value.h (value_bytes_available): Declare.
10401         (mark_value_bytes_unavailable): Declare.
10402         * value.c (struct range): New struct.
10403         (range_s): New typedef.
10404         (ranges_overlap): New function.
10405         (range_lessthan): New function.
10406         (ranges_contain_p): New function.
10407         (struct value) <unavailable>: New field.
10408         (value_bytes_available): New function.
10409         (mark_value_bytes_unavailable): New function.
10410         (require_not_optimized_out): Constify parameter.
10411         (require_available): New function.
10412         (value_contents_all, value_contents): Require all bytes be
10413         available.
10414         (value_free): Free `unavailable'.
10415         (value_copy): Copy `unavailable'.
10416         * valprint.h (val_print_unavailable): Declare.
10417         * valprint.c (valprint_check_validity): Rename `offset' parameter
10418         to `embedded_offset'.  If printing a scalar, check whether the
10419         value chunk is available.
10420         (val_print_unavailable): New.
10421         (val_print_scalar_formatted): Check whether the value is
10422         available.
10423         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10424         pretty-printing unavailable values.
10425
10426 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10427
10428         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10429         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10430         variable param_type, initialize it.  Remove const/volatile qualifiers
10431         for language_cplus and !show_artificial.  Use param_type.
10432
10433 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10434
10435         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10436         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10437         * symtab.h (struct symtab) <next>: Comment extension.
10438
10439 2011-02-12  Yao Qi  <yao@codesourcery.com>
10440
10441         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10442
10443 2011-02-11  Yao Qi  <yao@codesourcery.com>
10444
10445         * common/Makefile.in: Add copyright header.
10446
10447 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10448
10449         * infrun.c (proceed): Move switching out and in of tfind mode from
10450         here ...
10451         (fetch_inferior_event): ... to here.
10452
10453 2011-02-11  Yao Qi  <yao@codesourcery.com>
10454
10455         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10456         libcommon.a.
10457         * configure.ac: Add common to sub dir.
10458         * configure: Regenerate.
10459
10460 2011-02-11  Yao Qi  <yao@codesourcery.com>
10461
10462         Build libcommon.a.
10463
10464         * common/Makefile.in: New.
10465         * common/configure.ac: New.
10466         * common/aclocal.m4: New.
10467         * common/configure: Generate.
10468
10469 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10470
10471         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10472         side of the parenthesis.
10473
10474         Merge from GCC:
10475         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10476         * vec.h (VEC_block_remove): Fix comment.
10477
10478 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10479
10480         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10481
10482 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10483
10484         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10485         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10486         psubd and paddd.
10487
10488 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10489
10490         PR 12361.
10491         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10492         phsubsw.
10493         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10494         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10495
10496 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10497
10498         * dwarf2read.c (read_subroutine_type): Set special calling
10499         convention flag for functions compiled by IBM XL C for OpenCL.
10500         * ppc-sysv-tdep.c: Include "dwarf2.h"
10501         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10502         calling convention.
10503         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10504         IBM OpenCL vector types calling convention.
10505         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10506         (ppc_sysv_abi_broken_return_value): Likewise.
10507         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10508         types calling convention.
10509         (ppc64_sysv_abi_return_value): Likewise.
10510         * spu-tdep.c: Include "dwarf2.h"
10511         (spu_return_value): Implement IBM OpenCL vector types calling
10512         convention.
10513
10514 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10515
10516         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10517         correct ABI for AltiVec vector arguments.
10518
10519 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10520
10521         * valprint.c (val_print): Extend comment.
10522         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10523         interface explanation to val_print.
10524         (ada_val_print_array): Adjust comment to current interface.
10525         (print_field_values): Adjust comment to current interface.
10526         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10527         explanation to val_print.
10528         * f-valprint.c (f_val_print): Ditto.
10529         * jv-valprint.c (java_val_print): Ditto.
10530         * m2-valprint.c (m2_val_print): Ditto.
10531         * p-valprint.c (pascal_val_print): Ditto.
10532
10533 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10534
10535         * breakpoint.c (parse_breakpoint_sals): Fix description.
10536
10537 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10538             Oguz Kayral <oguzkayral@gmail.com>
10539
10540         * python/py-inferior.c (python_on_normal_stop): New function.
10541         (python_on_resume): New function.
10542         (python_inferior_exit): New function.
10543         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10544         inferior_exit observers.
10545         * python/py-evtregistry.c: New file.
10546         * python/py-threadevent.c : New file.
10547         * python/py-event.c: New file.
10548         * python/py-evts.c: New file.
10549         * python/py-continueevent.c: New file.
10550         * python/py-bpevent.c: New file.
10551         * python/py-signalevent.c: New file.
10552         * python/py-exetiedevent.c: New file.
10553         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10554         Move struct breakpoint_object from here...
10555         * python/python-internal.h: ... to here.
10556         * python/py-event.h: New file.
10557         * python/py-events.h: New file.
10558         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10559         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10560         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10561         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10562         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10563         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10564         Add build rules for all the above.
10565
10566 2011-02-04  Tom Tromey  <tromey@redhat.com>
10567
10568         * dwarf2read.c (dwarf2_section_empty_p): New function.
10569         (dwarf2_read_section): Use dwarf2_section_empty_p.
10570         (dwarf2_section_size): New function.
10571         (dwarf2_get_section_info): Unconditionally read section.
10572         (dwarf2_read_index): Use dwarf2_section_empty_p.
10573         (partial_read_comp_unit_head): Use dwarf2_section_size.
10574         (dwarf2_symbol_mark_computed): Likewise.
10575
10576 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10577
10578         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10579
10580 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10581
10582         * mips-linux-tdep.c: Include xml-syscall.h.
10583         (mips_linux_get_syscall_number): New function.
10584         (mips_linux_init_abi): Add calls to
10585         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10586         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10587         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10588         * syscalls/mips-n32-linux.xml: New file.
10589         * syscalls/mips-n64-linux.xml: New file.
10590         * syscalls/mips-o32-linux.xml: New file.
10591
10592 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10593
10594         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10595         Complain about inverted range entries.
10596         (dwarf2_record_block_ranges): Likewise.
10597
10598 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10599
10600         Fix some typos.
10601         * breakpoint.c (update_watchpoint): Fix name of the
10602         update_global_location_list function.
10603         (print_one_breakpoint): Fix typo.
10604         (_initialize_breakpoint): Remove extra space in hbreak help
10605         string.
10606         * breakpoint.h (struct bp_location) <length>: Fix field
10607         description.
10608
10609 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10610
10611         * regcache.c (registers_changed_ptid): Don't explictly always
10612         clear `current_regcache'.  Only clear current_thread_ptid and
10613         current_thread_arch when PTID matches.  Only reinit the frame
10614         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10615         call to ...
10616         (registers_changed): ... here.
10617
10618 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10619
10620         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10621         starts with __stack_chk_guard as stack guard symbol.
10622
10623 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10624
10625         * disasm.c (compare_lines): Handle the end of sequence markers
10626         within the line table to better support disassembling over
10627         compilation unit boundaries.
10628
10629 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10630
10631         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10632         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10633         implementation even if no symbols are available.
10634         (thumb_analyze_prologue): Update call to skip_prologue_function.
10635         (arm_analyze_prologue): Likewise.
10636
10637 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10638
10639         * arm-tdep.c: Include "observer.h".
10640         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10641         (arm_exidx_data_key): New static variable.
10642         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10643         (struct arm_exidx_data): Likewise.
10644         (arm_exidx_data_free): New function.
10645         (arm_compare_exidx_entries): Likewise.
10646         (arm_obj_section_from_vma): Likewise.
10647         (arm_exidx_new_objfile): Likewise.
10648         (arm_find_exidx_entry): Likewise.
10649         (arm_exidx_fill_cache): Likewise.
10650         (arm_exidx_unwind_sniffer): Likewise.
10651         (arm_exidx_unwind): New global variable.
10652         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10653         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10654         observer.  Register arm_exidx_data_key as objfile data.
10655
10656 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10657
10658         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10659         due to accessing uninitialized variable.  Fix indentation.
10660
10661 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10662
10663         * c-valprint.c (c_value_print): When doing virtual base pointer
10664         adjustment, create a new value with adjusted contents rather than
10665         changing the contents of the value being printed (and getting it
10666         wrong).
10667
10668 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
10669
10670         * xml-support.c (xml_find_attribute): New.
10671         (xinclude_start_include): Use it.
10672         * xml-support.h (xml_find_attribute): Declare.
10673         * memory-map.c (memory_map_start_memory)
10674         (memory_map_start_property): Use xml_find_attribute.
10675         * osdata.c (osdata_start_osdata, osdata_start_column): Use
10676         xml_find_attribute.
10677         * remote.c (start_thread): Use xml_find_attribute.
10678         * solib-target.c (library_list_start_segment)
10679         (library_list_start_section, library_list_start_library)
10680         (library_list_start_list): Use xml_find_attribute.
10681         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10682         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10683         (tdesc_start_field): Use xml_find_attribute.
10684
10685 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
10686
10687         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10688         (BUILD_OCL_VTYPES): Update.
10689
10690 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
10691
10692         * configure.ac: Work around non-GNU sed limitation when computing
10693         python version number.
10694         * configure: Regenerate.
10695
10696 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10697
10698         Fix debug printing of TYPE_INSTANCE.
10699         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10700         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10701
10702 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10703
10704         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10705         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10706         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10707         * ada-operator.inc: Rename the file to ...
10708         * ada-operator.def: ... here, wrap all the entries by macro OP.
10709         * expprint.c (op_name_standard): Remove all the entries.  Include
10710         "std-operator.def" instead.
10711         * expression.h (enum exp_opcode): Include "std-operator.def" and
10712         "ada-operator.def".  Move all the entries ...
10713         * std-operator.def: ... here, wrap all the entries by macro OP.
10714
10715 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10716
10717         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10718         * breakpoint.c (remove_jit_event_breakpoints): New function.
10719         * jit.c (jit_descriptor_addr): Delete.
10720         (registering_code): Delete.
10721         (clear_int): Delete.
10722         (jit_inferior_data): New variable.
10723         (struct jit_inferior_data): New type.
10724         (get_jit_inferior_data): New function.
10725         (jit_inferior_data_cleanup): New function.
10726         (jit_read_descriptor): Adjust.
10727         (jit_register_code): Adjust.
10728         (jit_breakpoint_re_set_internal): New function; move code here ...
10729         (jit_inferior_init): ... from here.
10730         (jit_breakpoint_re_set): Adjust.
10731         (jit_reset_inferior_data_and_breakpoints): New function.
10732         (jit_inferior_created_observer): Adjust.
10733         (jit_inferior_exit_hook): Adjust.
10734         (jit_executable_changed_observer): New function.
10735         (jit_event_handler): Adjust.
10736         (_initialize_jit): Adjust.
10737
10738 2011-01-31  Michael Snyder  <msnyder@vmware.com>
10739
10740         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10741         line.
10742
10743 2011-01-31  Tom Tromey  <tromey@redhat.com>
10744
10745         PR python/12216:
10746         * python/python.c (execute_gdb_command): Call
10747         prevent_dont_repeat.
10748         * top.c (suppress_dont_repeat): New global.
10749         (dont_repeat): Use it.
10750         (prevent_dont_repeat): New function.
10751         * command.h (prevent_dont_repeat): Declare.
10752
10753 2011-01-31  Tom Tromey  <tromey@redhat.com>
10754
10755         * infcmd.c (finish_backward): Use breakpoint_set_silent.
10756         * python/py-breakpoint.c (bppy_set_silent): Use
10757         breakpoint_set_silent.
10758         (bppy_set_thread): Use breakpoint_set_thread.
10759         (bppy_set_task): Use breakpoint_set_task.
10760         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10761         (breakpoint_set_task): Declare.
10762         (make_breakpoint_silent): Remove.
10763         * breakpoint.c (breakpoint_set_silent): New function.
10764         (breakpoint_set_thread): Likewise.
10765         (breakpoint_set_task): Likewise.
10766         (make_breakpoint_silent): Remove.
10767
10768 2011-01-31  Tom Tromey  <tromey@redhat.com>
10769
10770         * breakpoint.h (user_breakpoint_p): Declare.
10771         * breakpoint.c (user_breakpoint_p): New function.
10772         (breakpoint_1): Use it.
10773         (save_breakpoints): Likewise.
10774
10775 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10776
10777         * configure.ac: Add handling of Python distribution on Windows.
10778         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10779         sysconfig variables are not defined, then do not use them.
10780         On Windows, if LIBPL is not defined, then use prefix + '/libs'
10781         instead.  On Windows, return all paths using forward-slashes
10782         rather than backslashes.
10783
10784 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10785
10786         * configure.ac: Remove fallback behavior for building
10787         against Python.  Remove tweaking of Python include path.
10788         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10789         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
10790         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10791         Always restore CPPFLAGS and LIBS after linking test.
10792         * configure: Regenerated.
10793         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10794         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10795         * python/python-internal.h: Adjust includes of Python .h files.
10796
10797 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10798
10799         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10800         in error message.
10801
10802 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
10803
10804         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10805         value test.
10806
10807 2011-01-31  Yao Qi  <yao@codesourcery.com>
10808
10809         * arm-linux-nat.c: Update calls to regcache_register_status
10810         instead of regcache_valid_p.
10811         * aix-thread.c: Likewise.
10812         * i386gnu-nat.c: Likewise.
10813
10814 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10815
10816         Fix crash.
10817         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10818         touching TYPE_FIELD_ARTIFICIAL.
10819
10820 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
10821
10822         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10823         Committers.
10824
10825 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10826
10827         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10828         selected, don't try iterating over the traceframe's blocks.
10829         (tfile_has_stack): If there's no traceframe selected, then there's
10830         no stack.
10831         (tfile_has_registers): If there's no traceframe selected, then
10832         there's no registers.
10833
10834 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10835
10836         * target.c (memory_xfer_partial): No need to restore shadows if we
10837         haven't read anything.
10838
10839 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
10840
10841         * mips-tdep.c (mips_print_register): Use get_frame_register_value
10842         and val_print_scalar_formatted.
10843
10844 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
10845
10846         * tracepoint.c (tfile_read): New.
10847         (tfile_open): Use it.
10848         (tfile_get_traceframe_address): Use it.
10849         (tfile_trace_find): Use it.
10850         (walk_blocks_callback_func): New typedef.
10851         (match_blocktype): New function.
10852         (traceframe_walk_blocks): New function.
10853         (traceframe_find_block_type): New function.
10854         (tfile_fetch_registers, tfile_xfer_partial)
10855         (tfile_get_trace_state_variable_value): Use
10856         traceframe_find_block_type and tfile_read.
10857
10858 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
10859
10860         * remote-mips.c: Add internationalization mark ups.  Remove
10861         trailing \n from already marked up strings.
10862
10863 2011-01-26  Tom Tromey  <tromey@redhat.com>
10864
10865         * python/py-prettyprint.c (print_string_repr): Clear
10866         'addressprint' option when calling val_print_string.
10867         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
10868         option when calling val_print_string.
10869
10870 2011-01-26  Tom Tromey  <tromey@redhat.com>
10871
10872         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10873         GDB_PY_LL_ARG.
10874         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10875         macros.
10876         (gdb_py_longest, gdb_py_ulongest): New typedefs.
10877         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10878         (gdb_py_long_as_ulongest): New defines.
10879         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10880         (gdb_py_int_as_long): Declare.
10881         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10882         GDB_PY_LL_ARG, gdb_py_object_from_longest.
10883         (valpy_long): Add comment.
10884         * python/py-utils.c (get_addr_from_python): Use
10885         gdb_py_long_as_ulongest.  Handle overflow properly.
10886         (gdb_py_object_from_longest): New function.
10887         (gdb_py_object_from_ulongest): Likewise.
10888         (gdb_py_int_as_long): Likewise.
10889         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10890         * python/py-symtab.c (salpy_get_pc): Use
10891         gdb_py_long_from_ulongest.
10892         (salpy_get_line): Use PyInt_FromLong.
10893         * python/py-param.c (set_parameter_value): Use
10894         gdb_py_int_as_long.
10895         * python/py-lazy-string.c (stpy_get_address): Use
10896         gdb_py_long_from_ulongest.
10897         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10898         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10899         * python/py-breakpoint.c (bppy_set_thread): Use
10900         gdb_py_int_as_long.
10901         (bppy_set_task): Likewise.
10902         (bppy_set_ignore_count): Likewise.
10903         (bppy_set_hit_count): Likewise.
10904         * python/py-block.c (blpy_get_start): Use
10905         gdb_py_object_from_ulongest.
10906         (blpy_get_end): Likewise.
10907         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10908
10909 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
10910
10911         PR/symtab 11766:
10912         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10913         * gdb/solib.c (solib_read_symbols): Check for addr_low in
10914         equality test for objfile, initialize addr_low if needed.
10915
10916 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10917
10918         * tui/tui-regs.c (tui_register_format): Remove dead code.
10919
10920 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10921
10922         * printcmd.c (print_formatted): Use val_print_scalar_formatted
10923         instead of print_scalar_formatted.
10924         (print_scalar_formatted): Don't handle 's' format strings here,
10925         and add an assertion that we never see such format here.
10926         * valprint.h (val_print_scalar_formatted): Declare.
10927         * valprint.c (val_print_scalar_formatted): New.
10928         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10929         instead of print_scalar_formatted.
10930         * jv-valprint.c (java_val_print): Ditto.
10931         * p-valprint.c (pascal_val_print): Ditto.
10932         * ada-valprint.c (ada_val_print_1): Ditto.
10933         * f-valprint.c (f_val_print): Ditto.
10934         * infcmd.c (registers_info): Ditto.
10935         * m2-valprint.c (m2_val_print): Ditto.
10936
10937 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10938
10939         * m2-valprint.c (print_unbounded_array): Pass
10940         value_contents_for_printing rather than value_contents, to
10941         m2_print_array_contents.  Also pass in the value.
10942
10943 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10944
10945         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10946         (save_gdb_index_command): Switch to .gdb_index version 4.
10947
10948 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10949
10950         * mi/mi-main.c (get_register): Use get_frame_register_value rather
10951         than frame_register, and always pass a valid value to val_print.
10952
10953 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10954
10955         Centralize printing "<optimized out>".
10956
10957         * valprint.h (val_print_optimized_out): Declare.
10958         * cp-valprint.c (cp_print_value_fields): Use
10959         val_print_optimized_out.
10960         * jv-valprint.c (java_print_value_fields): Ditto.
10961         * p-valprint.c (pascal_object_print_value_fields): Ditto.
10962         * printcmd.c (print_formatted): Ditto.
10963         * valprint.c (valprint_check_validity): Ditto.
10964         (value_check_printable): Ditto.
10965         (val_print_optimized_out): New.
10966
10967 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10968
10969         * infcmd.c (default_print_registers_info): Allocate values so to
10970         never pass a NULL value to val_print.
10971
10972 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10973
10974         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10975         boolean.  Make sure to always pass a value that matches the
10976         contents buffer to callees.  Preserve `address' for following
10977         iterations.
10978         * value.c (value_contents_for_printing_const): New.
10979         (value_address): Constify value argument.
10980         * value.h (value_contents_for_printing_const): Declare.
10981         (value_address): Constify value argument.
10982
10983 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10984
10985         * regcache.c (struct regcache_descr): Rename
10986         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10987         and sizeof_cooked_register_valid_p to
10988         sizeof_cooked_register_status.
10989         (init_regcache_descr): Adjust.
10990         (struct regcache): Rename register_valid_p field to
10991         register_status.
10992         (regcache_xmalloc_1, regcache_xfree, regcache_save)
10993         (do_cooked_read): Adjust.
10994         (regcache_valid_p): Rename to ...
10995         (regcache_register_status): ... this.  Adjust.
10996         (regcache_invalidate): Adjust.
10997         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10998         Adjust.
10999         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11000         as unavailable, not valid.
11001         (regcache_dump): Adjust.
11002         * regcache.h (enum register_status): New.
11003         (regcache_register_status): Declare.
11004         (regcache_invalidate): Delete declaration.
11005         * corelow.c (get_core_registers): Adjust.
11006         * tracepoint.c (tfile_fetch_registers): Adjust.
11007         * trad-frame.c (REG_VALUE): Rename to ...
11008         (TF_REG_VALUE): ... this.
11009         (REG_UNKNOWN): Rename to ...
11010         (TF_REG_UNKNOWN): ... this.
11011         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11012         * mi/mi-main.c (register_changed_p): Adjust.
11013
11014 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11015
11016         * regcache.c (struct regcache_descr): Remove outdated comment.
11017         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11018         overallocate hack.
11019         (regcache_xmalloc): Rename to ...
11020         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11021         Allocate the regcache type accordingly.
11022         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11023         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11024         cooked registers, not raw.
11025         (regcache_dup_no_passthrough): Delete.
11026         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11027         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11028         mention obsolete write_register_bytes.
11029         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11030
11031 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11032
11033         Stop remote_read_bytes from handling partial reads itself.
11034
11035         * remote-fileio.c: Include target.h.
11036         (remote_fileio_write_bytes): Delete.
11037         (remote_fileio_func_open, remote_fileio_func_write)
11038         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11039         target_read_memory.
11040         (remote_fileio_func_stat): Use target_read_memory and
11041         target_write_memory.
11042         (remote_fileio_func_gettimeofday): Use target_write_memory.
11043         (remote_fileio_func_system): Use target_read_memory.
11044         * remote.c (remote_write_bytes): Make it static.
11045         (remote_read_bytes): Don't handle partial reads here.
11046         * remote.h (remote_read_bytes): Delete declaration.
11047
11048 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11049
11050         Simplify XML parsing a bit.
11051
11052         * xml-support.h (gdb_xml_parse_quick): Declare.
11053         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11054         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11055         parameter.
11056         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11057         gdb_xml_create_parser_and_cleanup_1.
11058         (gdb_xml_parse_quick): New.
11059         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11060         * osdata.c (osdata_parse): Ditto.
11061         * remote.c (remote_threads_info): Ditto.
11062         * solib-target.c (solib_target_parse_libraries): Ditto.
11063         * xml-syscall.c (syscall_parse_xml): Ditto.
11064         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11065
11066 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11067
11068         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11069         with remote-mips.o added to gdb_target_obs.
11070         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11071
11072 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11073
11074         * ada-valprint.c (val_print_packed_array_elements): Pass the
11075         correct struct value to val_print.
11076         (ada_val_print_1): Ditto.
11077
11078 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11079
11080         Don't lose embedded_offset in printing routines throughout.
11081
11082         * valprint.h (val_print_array_elements): Change prototype.
11083         * valprint.c (val_print_array_elements): Add `embedded_offset'
11084         parameter, and adjust to pass it down to val_print, while passing
11085         `valaddr' or `address' unmodified.  Take embedded_offset into
11086         account when checking repetitions.
11087         * c-valprint.c (c_val_print): Pass embedded_offset to
11088         val_print_array_elements instead of adjusting `valaddr' and
11089         `address'.
11090         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11091         embedded_offset to val_print_array_elements instead of adjusting
11092         `valaddr'.
11093         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11094         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11095         val_print_array_elements and pascal_object_print_value_fields
11096         instead of adjusting `valaddr'.
11097         (pascal_object_print_value_fields): Add `offset' parameter, and
11098         adjust to use it.
11099         (pascal_object_print_value): Add `offset' parameter, and adjust to
11100         use it.
11101         (pascal_object_print_static_field): Use
11102         value_contents_for_printing/value_embedded_offset, rather than
11103         value_contents.
11104         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11105         parameter, and adjust to use it.  Use
11106         value_contents_for_printing/value_embedded_offset, rather than
11107         value_contents.
11108         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11109         (ada_val_print_array): Add `offset' parameter, and adjust to use
11110         it.
11111         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11112         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11113         Instead work with offsets.  Use
11114         value_contents_for_printing/value_embedded_offset, rather than
11115         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11116         and use value_from_pointer to extract a target pointer, rather
11117         than value_from_longest.
11118         (print_variant_part): Add `offset' parameter.  Replace
11119         `outer_valaddr' parameter by a new `outer_offset' parameter.
11120         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11121         (ada_value_print): Use
11122         value_contents_for_printing/value_embedded_offset, rather than
11123         value_contents.
11124         (print_record): Add `offset' parameter, and adjust to pass it
11125         down.
11126         (print_field_values): Add `offset' parameter.  Replace
11127         `outer_valaddr' parameter by a new `outer_offset' parameter.
11128         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11129         Use value_contents_for_printing/value_embedded_offset, rather than
11130         value_contents.
11131         * d-valprint.c (dynamic_array_type): Use
11132         value_contents_for_printing/value_embedded_offset, rather than
11133         value_contents.
11134         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11135         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11136         (java_print_value_fields): Take `offset' into account.  Don't
11137         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11138         (java_val_print): Take `embedded_offset' into account.  Pass it to
11139         java_print_value_fields.
11140         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11141         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11142         down adjusted offsets.
11143         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11144         (f_val_print): Take `embedded_offset' into account.
11145
11146 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11147
11148         * inflow.c: Include "gdbcmd.h".
11149         (interactive_mode): New static global, moved here from top.c.
11150         (show_interactive_mode): New function, moved here from top.c.
11151         use gdb_has_a_terminal instead of input_from_terminal_p to
11152         determine the current mode.
11153         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11154         setting.
11155         (_initialize_inflow): Add the "set/show interactive-mode"
11156         commands.  Moved here from top.c, after having adjusted slightly
11157         the help text.
11158         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11159         to inflow.c.
11160         (input_from_terminal_p): Remove handling of "interactive-mode"
11161         setting, moved to infow.c.
11162         (init_main): Remove creation of the "set/show interactive-mode"
11163         commands, moved to inflow.c.
11164
11165 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11166
11167         * NEWS: Add entry for native ia64-hpux support.
11168
11169 2011-01-19  Tom Tromey  <tromey@redhat.com>
11170
11171         PR mi/8618:
11172         * thread.c (free_thread): Free 'name'.
11173         (print_thread_info): Emit thread name.  Change CLI output.
11174         (thread_name_command): New function.
11175         (do_captured_thread_select): Emit newline.
11176         (_initialize_thread): Register 'thread name' command.
11177         * target.h (struct target_ops) <to_thread_name>: New field.
11178         (target_thread_name): New macro.
11179         * target.c (update_current_target): Handle to_thread_name.
11180         * python/py-infthread.c (thpy_get_name): New function.
11181         (thpy_set_name): Likewise.
11182         (thread_object_getset): Add "name".
11183         * linux-nat.c (linux_nat_thread_name): New function.
11184         (linux_nat_add_target): Set to_thread_name.
11185         * gdbthread.h (struct thread_info) <name>: New field.
11186
11187 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11188
11189         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11190         (ada_val_print_1): Likewise.
11191
11192 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11193
11194         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11195         upper limit address is not greater than the function end address
11196         when the upper limit could not be computed using the debugging
11197         info.
11198
11199 2011-01-17  Tom Tromey  <tromey@redhat.com>
11200
11201         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11202         get_regcomp_error.
11203         * utils.c: Include gdb_regex.h.
11204         (do_regfree_cleanup): New function.
11205         (make_regfree_cleanup): Likewise.
11206         (get_regcomp_error): Likewise.
11207         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11208
11209 2011-01-17  Tom Tromey  <tromey@redhat.com>
11210
11211         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11212         re_compile_fastmap.
11213
11214 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11215
11216         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11217         for internal variables.
11218         (last_was_structop): New static variable.
11219         (COMPLETE): New token.
11220         (field_exp): New rule to group all '.' suffix handling.
11221         Add mark_struct_expression calls when approriate to be able
11222         to correctly find fields for completion.
11223         (yylex): Adapt to handle field completion and set INTVAR when
11224         required.
11225
11226 2011-01-14  Yao Qi  <yao@codesourcery.com>
11227
11228         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11229         save_reggroup, restore_reggroup and all_reggroup.
11230
11231 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11232
11233         * ada-valprint. (ada_printchar): Use the correct type length
11234         in call to ada_emit_char.
11235         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11236
11237 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11238
11239         * solib-som.h (hpux_major_release): Declare variable here.
11240         * solib-som.c:  Remove <sys/utsname.h> header.
11241         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11242         (hpux_major_release): Make global, change default value to
11243         DEFAULT_HPUX_MAJOR_RELEASE.
11244         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11245         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11246         Add "solib-som.h" header.
11247         (set_hpux_major_release): New function.
11248         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11249
11250 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11251
11252         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11253
11254 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11255
11256         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11257         new-line at end of warning message.
11258         (ia64_hpux_store_register): Remove trailing new-line at end of
11259         error message.
11260         * ia64-hpux-tdep.c: Rephrase comment.
11261         * solib-ia64-hpux.c (struct dld_info): Change type of field
11262         dld_flags from "long long" to ULONGEST.
11263
11264 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11265
11266         * target.h (deprecated_child_ops): Delete declaration.
11267         * target.c (deprecated_child_ops): Delete definition.
11268
11269 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11270
11271         * Makefile.in (hpux-thread.o): Delete rule.
11272         * configure.ac: Don't check for HPUX DCE threads support.
11273         * configure, config.in: Regenerate.
11274         * hppa-hpux-nat.c (child_suppress_run): Delete.
11275         (hppa_hpux_child_can_run): Delete.
11276         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11277         * hpux-thread.c: Delete.
11278
11279 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11280
11281         * hpux-thread.c (hpux_pid_to_str): Delete.
11282
11283 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11284
11285         * ada-valprint.c (ada_emit_char): Remove strange code.
11286         Check that c is <= UCHAR_MAX before passing it to isascii.
11287         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11288
11289 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11290
11291         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11292         to the case where instream is stdin.
11293
11294 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11295
11296         * ia64-tdep.h (struct regcache): Forward declare.
11297         (struct ia64_infcall_ops): New struct type.
11298         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11299         and "infcall_ops".
11300         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11301         Renames ia64_find_global_pointer.
11302         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11303         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11304         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11305         methods.
11306         (ia64_infcall_ops): New static global constant.
11307         (ia64_gdbarch_init): Set tdep->infcall_ops.
11308         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11309         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11310         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11311         (ia64_hpux_dummy_code): New static global constant.
11312         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11313         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11314         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11315         New function.
11316         (ia64_hpux_infcall_ops): New static global constant.
11317         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11318         for inferior function calls to work properly on ia64-hpux.
11319
11320 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11321
11322         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11323         * ia64-tdep.h (struct frame_info): forward declaration.
11324         (struct gdbarch_tdep): Add field size_of_register_frame.
11325         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11326         to determine the size of the register frame.
11327         (ia64_size_of_register_frame): New function.
11328         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11329         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11330         (IA64_HPUX_UREG_REASON): New macro.
11331         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11332         New functions.
11333         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11334         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11335         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11336         objects.
11337
11338 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11339
11340         Add support for ia64-hpux.
11341         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11342         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11343
11344         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11345         floatformats.
11346         * configure.tgt: Add handling for ia64-hpux targets.
11347         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11348         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11349         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11350
11351 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11352
11353         [ttrace] Compute thread list immediately after attach.
11354         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11355         New subprogram.
11356         (inf_ttrace_attach): Use it.
11357
11358 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11359
11360         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11361         if we could not determine the frame's function address.  Instead,
11362         use the frame's PC, and then continue.
11363
11364 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11365
11366         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11367         not already defined.
11368
11369 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11370
11371         * ia64-tdep.c (ia64_struct_type_p): New function.
11372         (ia64_extract_return_value): Handle integral values that are
11373         less than 8 bytes long.
11374         (ia64_push_dummy_call): Likewise.
11375
11376 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11377
11378         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11379         floatformat_ia64_ext.
11380         (floatformat_ia64_ext_big): New static const.
11381         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11382
11383 2011-01-12  Tom Tromey  <tromey@redhat.com>
11384
11385         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11386         messages.
11387         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11388         (mi_cmd_thread_list_ids): Likewise.
11389         (mi_cmd_data_list_changed_registers): Likewise.
11390         (mi_cmd_data_list_register_values): Likewise.
11391         (mi_cmd_data_write_register_values): Likewise.
11392         (mi_cmd_data_evaluate_expression): Likewise.
11393         (mi_cmd_data_read_memory): Likewise.
11394         (mi_cmd_data_read_memory_bytes): Likewise.
11395         (mi_cmd_data_write_memory): Likewise.
11396         (mi_cmd_enable_timings): Likewise.
11397         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11398         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11399         (mi_cmd_var_delete): Likewise.
11400         (mi_cmd_var_set_format): Likewise.
11401         (mi_cmd_var_show_format): Likewise.
11402         (mi_cmd_var_info_num_children): Likewise.
11403         (mi_cmd_var_list_children): Likewise.
11404         (mi_cmd_var_info_type): Likewise.
11405         (mi_cmd_var_info_expression): Likewise.
11406         (mi_cmd_var_show_attributes): Likewise.
11407         (mi_cmd_var_assign): Likewise.
11408         (mi_cmd_var_update): Likewise.
11409         (mi_cmd_enable_pretty_printing): Likewise.
11410         (mi_cmd_var_set_update_range): Likewise.
11411         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11412         messages.
11413         (mi_cmd_target_file_put): Likewise.
11414         (mi_cmd_target_file_delete): Likewise.
11415         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11416         messages.
11417         (mi_cmd_stack_info_depth): Likewise.
11418         (mi_cmd_stack_list_locals): Likewise.
11419         (mi_cmd_stack_list_args): Likewise.
11420         (mi_cmd_stack_select_frame): Likewise.
11421         (mi_cmd_stack_select_frame): Likewise.
11422         (mi_cmd_stack_info_frame): Likewise.
11423         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11424         messages.
11425         (mi_cmd_file_list_exec_source_files): Likewise.
11426         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11427         (mi_cmd_env_cd): Likewise.
11428         (mi_cmd_env_path): Likewise.
11429         (mi_cmd_env_dir): Likewise.
11430         (mi_cmd_inferior_tty_show): Likewise.
11431         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11432         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11433         (mi_cmd_break_watch): Likewise.
11434
11435 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11436
11437         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11438         (ppc_linux_insert_hw_breakpoint): Likewise.
11439         (ppc_linux_remove_hw_breakpoint): Likewise.
11440         (ppc_linux_insert_watchpoint): Likewise.
11441
11442 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11443             Jan Kratochvil  <jan.kratochvil@redhat.com>
11444
11445         PR fortran/11104 and DWARF unbound arrays detection.
11446         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11447         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11448         unspecified upper bound.
11449         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11450         variables array_size_array, tmp_type and offset_item.  New variable
11451         array.  Remove call to f77_get_upperbound.  New variables array_type
11452         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11453         the final call to deprecated_set_value_type.
11454
11455 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11456
11457         Make value allocations more lazy.
11458         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11459         instead of allocate_value and set_value_lazy when possible.
11460         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11461         instead of allocate_value and set_value_lazy.
11462         * findvar.c (value_of_register_lazy): Likewise.
11463         (read_var_value): Remove V preallocation, call just check_typedef in
11464         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11465         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11466         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11467         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11468         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11469         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11470         the end, remove set_value_lazy there.
11471         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11472         instead of allocate_value and set_value_lazy when possible.
11473         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11474         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11475         of allocate_value and set_value_lazy.
11476         (value_from_contents_and_address): Use allocate_value_lazy instead of
11477         allocate_value and set_value_lazy when possible.
11478
11479 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11480
11481         * disasm.c (dump_insns): Support dumping opcodes for MI.
11482         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11483         dumping of instruction opcodes.
11484
11485 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11486
11487         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11488         appropiately.
11489
11490 2011-01-11  Tom Tromey  <tromey@redhat.com>
11491
11492         * thread.c (do_captured_thread_select): Emit newline before
11493         printing frame.
11494
11495 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11496
11497         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11498         * score-tdep.c: Ditto.
11499         * score-tdep.h: Ditto.
11500         * ser-base.c: Ditto.
11501         * ser-go32.c: Ditto.
11502         * serial.c: Ditto.
11503         * serial.h: Ditto.
11504         * ser-mingw.c: Ditto.
11505         * ser-pipe.c: Ditto.
11506         * ser-tcp.c: Ditto.
11507         * ser-unix.c: Ditto.
11508         * sh64-tdep.c: Ditto.
11509         * shnbsd-nat.c: Ditto.
11510         * sh-tdep.c: Ditto.
11511         * sh-tdep.h: Ditto.
11512         * solib.c: Ditto.
11513         * solib-darwin.c: Ditto.
11514         * solib-frv.c: Ditto.
11515         * solib.h: Ditto.
11516         * solib-irix.c: Ditto.
11517         * solib-osf.c: Ditto.
11518         * solib-pa64.c: Ditto.
11519         * solib-som.c: Ditto.
11520         * solib-spu.c: Ditto.
11521         * solib-sunos.c: Ditto.
11522         * solib-svr4.c: Ditto.
11523         * solist.h: Ditto.
11524         * sol-thread.c: Ditto.
11525         * somread.c: Ditto.
11526         * source.c: Ditto.
11527         * source.h: Ditto.
11528         * sparc64-linux-tdep.c: Ditto.
11529         * sparc64-tdep.c: Ditto.
11530         * sparc-linux-nat.c: Ditto.
11531         * sparc-linux-tdep.c: Ditto.
11532         * sparc-sol2-nat.c: Ditto.
11533         * sparc-sol2-tdep.c: Ditto.
11534         * sparc-tdep.c: Ditto.
11535         * sparc-tdep.h: Ditto.
11536         * spu-tdep.c: Ditto.
11537         * stabsread.c: Ditto.
11538         * stabsread.h: Ditto.
11539         * stack.c: Ditto.
11540         * symfile.c: Ditto.
11541         * symfile.h: Ditto.
11542         * symmisc.c: Ditto.
11543         * symtab.c: Ditto.
11544         * symtab.h: Ditto.
11545         * target.c: Ditto.
11546         * target-descriptions.c: Ditto.
11547         * target-descriptions.h: Ditto.
11548         * target.h: Ditto.
11549         * target-memory.c: Ditto.
11550         * terminal.h: Ditto.
11551         * thread.c: Ditto.
11552         * top.c: Ditto.
11553         * tracepoint.c: Ditto.
11554         * tracepoint.h: Ditto.
11555         * trad-frame.h: Ditto.
11556         * typeprint.c: Ditto.
11557
11558 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11559
11560         * ui-file.c: Comment cleanup, mostly periods and spaces.
11561         * ui-file.h: Ditto.
11562         * ui-out.c: Ditto.
11563         * ui-out.h: Ditto.
11564         * utils.c: Ditto.
11565         * v850-tdep.c: Ditto.
11566         * valarith.c: Ditto.
11567         * valops.c: Ditto.
11568         * valprint.c: Ditto.
11569         * valprint.h: Ditto.
11570         * value.c: Ditto.
11571         * value.h: Ditto.
11572         * varobj.c: Ditto.
11573         * varobj.h: Ditto.
11574         * vax-tdep.c: Ditto.
11575         * vec.c: Ditto.
11576         * vec.h: Ditto.
11577         * version.h: Ditto.
11578         * windows-nat.c: Ditto.
11579         * windows-tdep.c: Ditto.
11580         * xcoffread.c: Ditto.
11581         * xcoffsolib.c: Ditto.
11582         * xml-support.c: Ditto.
11583         * xstormy16-tdep.c: Ditto.
11584         * xtensa-tdep.c: Ditto.
11585         * xtensa-tdep.h: Ditto.
11586
11587 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11588
11589         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11590         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11591
11592 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11593             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11594
11595         Implement support for PowerPC BookE ranged watchpoints.
11596         * breakpoint.h
11597         (struct breakpoint_ops) <resources_needed>: New method.
11598         Initialize to NULL in all existing breakpoint_ops instances.
11599         (struct breakpoint) <exact>: New field.
11600         (target_exact_watchpoints): Declare external global.
11601         * breakpoint.c (target_exact_watchpoints): New global flag.
11602         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11603         b->enable_state to bp_enabled before calling
11604         hw_watchpoint_used_count.
11605         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11606         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11607         if available.
11608         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11609         if the watchpoint is exact.
11610         (resources_needed_watchpoint): New function.
11611         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11612         (watch_command_1): Set b->exact if the user asked for an exact
11613         watchpoint and one can be set.
11614         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11615         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11616         the user asks for an exact watchpoint and one can be set.  Return
11617         number of needed debug registers to watch the expression.
11618         * gdbtypes.c (is_scalar_type): New function, based on
11619         valprint.c:scalar_type_p.
11620         (is_scalar_type_recursive): New function.
11621         * gdbtypes.h (is_scalar_type_recursive): Declare.
11622         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11623         handle regions when ranged watchpoints are available.
11624         (create_watchpoint_request): New function.
11625         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11626         create_watchpoint_request.
11627         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11628         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11629         `set powerpc' and `show powerpc' commands.
11630         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11631         Mention documentation comment in the target macro.
11632         (target_region_ok_for_hw_watchpoint): Document return value.
11633
11634 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11635
11636         * breakpoint.c (update_watchpoint): Decide on using a software or
11637         hardware watchpoint after the bp_locations are created.
11638
11639 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11640
11641         Convert hardware watchpoints to use breakpoint_ops.
11642         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11643         <insert_location>: ... this.  Return int instead of void.
11644         Accept pointer to struct bp_location instead of pointer to
11645         struct breakpoint.  Adapt all implementations.
11646         (breakpoint_ops) <remove>: Rename to...
11647         <remove_location>: ... this.  Accept pointer to struct bp_location
11648         instead of pointer to struct breakpoint.  Adapt all implementations.
11649         * breakpoint.c (insert_catchpoint): Delete function.
11650         (insert_bp_location): Call the watchpoint or catchpoint's
11651         breakpoint_ops.insert method.
11652         (remove_breakpoint_1): Call the watchpoint or catchpoint's
11653         breakpoint_ops.remove method.
11654         (insert_watchpoint, remove_watchpoint): New functions.
11655         (watchpoint_breakpoint_ops): New structure.
11656         (watch_command_1): Initialize the OPS field.
11657         * inf-child.c (inf_child_insert_fork_catchpoint)
11658         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11659         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11660         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11661         Delete functions.
11662         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11663         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11664         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11665         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11666         * target.c (update_current_target): Change default implementation of
11667         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11668         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11669         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11670         to_set_syscall_catchpoint to return_one.
11671         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11672         (debug_to_insert_exec_catchpoint): Report return value.
11673         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11674         (to_insert_exec_catchpoint): Change declaration to return int instead
11675         of void.
11676
11677 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11678
11679         * arm-tdep.c: Internationalization.
11680         * c-lang.c: Ditto.
11681         * charset.c: Ditto.
11682         * fork-child.c: Ditto.
11683         * nto-procfs.c: Ditto.
11684         * ppc-sysv-tdep.c: Ditto.
11685         * procfs.c: Ditto.
11686         * remote-mips.c: Ditto.
11687         * remote.c: Ditto.
11688         * rs6000-nat.c: Ditto.
11689         * rs6000-tdep.c: Ditto.
11690         * target.c: Ditto.
11691         * valops.c: Ditto.
11692         * value.c: Ditto.
11693         * xml-support.c: Ditto.
11694         * mi/mi-cmd-break.c: Ditto.
11695         * mi/mi-cmd-var.c: Ditto.
11696         * mi/mi-interp.c: Ditto.
11697         * mi/mi-main.c: Ditto.
11698
11699 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
11700
11701         * remote-sim.c (gdbsim_store_register): Update API to
11702         sim_store_register to check more error conditions.
11703
11704 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11705
11706         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11707         * nto-tdep.c: Ditto.
11708         * nto-tdep.h: Ditto.
11709         * objc-exp.y: Ditto.
11710         * objc-lang.c: Ditto.
11711         * objfiles.c: Ditto.
11712         * objfiles.h: Ditto.
11713         * observer.c: Ditto.
11714         * opencl-lang.c: Ditto.
11715         * osabi.c: Ditto.
11716         * parse.c: Ditto.
11717         * parser-defs.h: Ditto.
11718         * p-exp.y: Ditto.
11719         * p-lang.c: Ditto.
11720         * posix-hdep.c: Ditto.
11721         * ppcbug-rom.c: Ditto.
11722         * ppc-linux-nat.c: Ditto.
11723         * ppc-linux-tdep.c: Ditto.
11724         * ppc-linux-tdep.h: Ditto.
11725         * ppcnbsd-tdep.c: Ditto.
11726         * ppcobsd-tdep.c: Ditto.
11727         * ppcobsd-tdep.h: Ditto.
11728         * ppc-sysv-tdep.c: Ditto.
11729         * ppc-tdep.h: Ditto.
11730         * printcmd.c: Ditto.
11731         * proc-abi.c: Ditto.
11732         * proc-flags.c: Ditto.
11733         * procfs.c: Ditto.
11734         * proc-utils.h: Ditto.
11735         * progspace.h: Ditto.
11736         * prologue-value.c: Ditto.
11737         * prologue-value.h: Ditto.
11738         * psympriv.h: Ditto.
11739         * psymtab.c: Ditto.
11740         * p-typeprint.c: Ditto.
11741         * p-valprint.c: Ditto.
11742         * ravenscar-sparc-thread.c: Ditto.
11743         * ravenscar-thread.c: Ditto.
11744         * ravenscar-thread.h: Ditto.
11745         * record.c: Ditto.
11746         * regcache.c: Ditto.
11747         * regcache.h: Ditto.
11748         * remote.c: Ditto.
11749         * remote-fileio.c: Ditto.
11750         * remote-fileio.h: Ditto.
11751         * remote.h: Ditto.
11752         * remote-m32r-sdi.c: Ditto.
11753         * remote-mips.c: Ditto.
11754         * remote-sim.c: Ditto.
11755         * rs6000-aix-tdep.c: Ditto.
11756         * rs6000-nat.c: Ditto.
11757         * rs6000-tdep.c: Ditto.
11758
11759 2011-01-10  Michael Snyder  <msnyder@vmware.com>
11760
11761         * charset.c (validate): Internationalization.
11762         * coffread.c (read_one_sym): Ditto.
11763         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11764         * h8300-tdep.c (H8300_extract_return_value): Ditto.
11765         * inflow.c (new_tty): Ditto.
11766         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11767         * m32c-tdep.c (m32c_return_value): Ditto.
11768         * mep-tdep.c (mep_store_return_value): Ditto.
11769         * score-tdep.c (score7_fetch_insn): Ditto.
11770         * ser-mingw.c (pipe_windows_open): Ditto.
11771         * sh64-tdep.c (sh64_extract_return_value): Ditto.
11772         * spu-tdep.c (spu_register_type): Ditto.
11773         * tracepoint.c (trace_find_command): Ditto.
11774         * valarith.c (value_pos): Ditto.
11775
11776 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
11777
11778         * ada-valprint.c (printstr): Minor comment reformatting.
11779
11780 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11781
11782         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11783         markup.
11784
11785 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11786
11787         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11788         * hppa-hpux-tdep.c: Ditto.
11789         * hppa-linux-nat.c: Ditto.
11790         * hppa-linux-tdep.c: Ditto.
11791         * hppanbsd-tdep.c: Ditto.
11792         * hppa-tdep.c: Ditto.
11793         * hppa-tdep.h: Ditto.
11794         * hpux-thread.c: Ditto.
11795         * i386-cygwin-tdep.c: Ditto.
11796         * i386-darwin-nat.c: Ditto.
11797         * i386gnu-nat.c: Ditto.
11798         * i386-linux-nat.c: Ditto.
11799         * i386-linux-tdep.c: Ditto.
11800         * i386-nat.c: Ditto.
11801         * i386-nat.h: Ditto.
11802         * i386nbsd-tdep.c: Ditto.
11803         * i386-sol2-nat.c: Ditto.
11804         * i386-stub.c: Ditto.
11805         * i386-tdep.c: Ditto.
11806         * i386-tdep.h: Ditto.
11807         * i387-tdep.c: Ditto.
11808         * ia64-linux-nat.c: Ditto.
11809         * ia64-linux-tdep.c: Ditto.
11810         * ia64-tdep.c: Ditto.
11811         * infcall.c: Ditto.
11812         * infcall.h: Ditto.
11813         * infcmd.c: Ditto.
11814         * inferior.c: Ditto.
11815         * inferior.h: Ditto.
11816         * infloop.c: Ditto.
11817         * inflow.c: Ditto.
11818         * infrun.c: Ditto.
11819         * interps.c: Ditto.
11820         * interps.h: Ditto.
11821         * iq2000-tdep.c: Ditto.
11822         * irix5-nat.c: Ditto.
11823         * jit.c: Ditto.
11824         * jit.h: Ditto.
11825         * jv-exp.y: Ditto.
11826         * jv-lang.c: Ditto.
11827         * jv-lang.h: Ditto.
11828         * jv-typeprint.c: Ditto.
11829         * jv-valprint.c: Ditto.
11830         * language.c: Ditto.
11831         * language.h: Ditto.
11832         * linespec.c: Ditto.
11833         * linux-fork.c: Ditto.
11834         * linux-nat.c: Ditto.
11835         * linux-thread-db.c: Ditto.
11836         * lm32-tdep.c: Ditto.
11837
11838 2011-01-08  Michael Snyder  <msnyder@vmware.com>
11839
11840         * m2-exp.y: Comment cleanup, mostly periods and spaces.
11841         * m2-lang.c: Ditto.
11842         * m2-typeprint.c: Ditto.
11843         * m2-valprint.c: Ditto.
11844         * m32c-tdep.c: Ditto.
11845         * m32r-linux-nat.c: Ditto.
11846         * m32r-rom.c: Ditto.
11847         * m32r-tdep.c: Ditto.
11848         * m32r-tdep.h: Ditto.
11849         * m68hc11-tdep.c: Ditto.
11850         * m58klinux-nat.c: Ditto.
11851         * m68k-tdep.c: Ditto.
11852         * m88k-tdep.c: Ditto.
11853         * m88k-tdep.h: Ditto.
11854         * machoread.c: Ditto.
11855         * macrocmd.c: Ditto.
11856         * macroexp.c: Ditto.
11857         * macrotab.c: Ditto.
11858         * main.c: Ditto.
11859         * maint.c: Ditto.
11860         * mdebugread.c: Ditto.
11861         * mdebugread.h: Ditto.
11862         * memattr.c: Ditto.
11863         * memattr.h: Ditto.
11864         * memory-map.h: Ditto.
11865         * mep-tdep.c: Ditto.
11866         * microblaze-rom.c: Ditto.
11867         * microblaze-tdep.c: Ditto.
11868         * minsyms.c: Ditto.
11869         * mips-irix-tdep.c: Ditto.
11870         * mips-linux-nat.c: Ditto.
11871         * mips-linux-tdep.c: Ditto.
11872         * mips-linux-tdep.h: Ditto.
11873         * mipsnbsd-nat.c: Ditto.
11874         * mipsnbsd-tdep.c: Ditto.
11875         * mipsread.c: Ditto.
11876         * mips-tdep.c: Ditto.
11877         * mips-tdep.h: Ditto.
11878         * mn10300-linux-tdep.c: Ditto.
11879         * mn10300-tdep.c: Ditto.
11880         * mn10300-tdep.h: Ditto.
11881         * monitor.c: Ditto.
11882         * monitor.h: Ditto.
11883         * moxie-tdep.c: Ditto.
11884         * moxie-tdep.h: Ditto.
11885         * mt-tdep.c: Ditto.
11886
11887 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
11888
11889         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11890
11891 2011-01-08  Robert Millan  <rmh@gnu.org>
11892
11893         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11894
11895 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11896
11897         * charset.c (_initialize_charset): Fix typo in string.
11898
11899 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11900
11901         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11902         for i18n.
11903         * tui/tui-layout.c (tui_set_layout_for_display_command):
11904         Split line so that operator goes to beginning of line.
11905         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11906         assignment out of if statement.
11907
11908 2011-01-07  Michael Snyder  <msnyder@vmware.com>
11909
11910         * ada-lang.c: Comment cleanup, mostly periods and spaces.
11911         * ada-lang.h: Ditto.
11912         * ada-tasks.c: Ditto.
11913         * ada-valprint.c: Ditto.
11914         * aix-threads.c: Ditto.
11915         * alpha-linux-nat.c: Ditto.
11916         * alpha-linux-tdep.c: Ditto.
11917         * alpha-mdebug-tdep.c: Ditto.
11918         * alpha-nat.c: Ditto.
11919         * alpha-osf1-tdep.c: Ditto.
11920         * alpha-tdep.c: Ditto.
11921         * alphabsd-nat.c: Ditto.
11922         * alphabsd-tdep.c: Ditto.
11923         * amd64-darwin-tdep.c: Ditto.
11924         * amd64-linux-nat.c: Ditto.
11925         * amd64-linux-tdep.c: Ditto.
11926         * amd64-sol2-tdep.c: Ditto.
11927         * amd64-tdep.c: Ditto.
11928         * amd64-fbsd-tdep.c: Ditto.
11929         * amd64-nbsd-tdep.c: Ditto.
11930         * amd64-obsd-tdep.c: Ditto.
11931         * amd64-linux-nat.c: Ditto.
11932         * amd64-linux-tdep.c: Ditto.
11933         * arm-tdep.c: Ditto.
11934         * arm-tdep.h: Ditto.
11935         * armnbsd-nat.c: Ditto.
11936         * avr-tdep.c: Ditto.
11937         * bfin-tdep.c: Ditto.
11938         * bsd-kvm.c: Ditto.
11939         * c-typeprintc: Ditto.
11940         * c-valprint.c: Ditto.
11941         * coff-pe-read.h: Ditto.
11942         * coffreead.c: Ditto.
11943         * cris-tdep.c: Ditto.
11944         * d-lang.c: Ditto.
11945         * darwin-nat-info.c: Ditto.
11946         * darwin-nat.c: Ditto.
11947         * dbug-rom.c: Ditto.
11948         * dbxread.c: Ditto.
11949         * dcache.c: Ditto.
11950         * dcache.h: Ditto.
11951         * dec-thread.c: Ditto.
11952         * defs.h: Ditto.
11953         * demangle.c: Ditto.
11954         * dicos-tdep.c: Ditto.
11955         * dictionary.c: Ditto.
11956         * dictionary.h: Ditto.
11957         * dink32-rom.c: Ditto.
11958         * disasm.c: Ditto.
11959         * doublest.c: Ditto.
11960         * dsrec.c: Ditto.
11961         * dummy-frame.c: Ditto.
11962         * dwarf2-frame.c: Ditto.
11963         * dwarf2expr.c: Ditto.
11964         * dwarf2loc.c: Ditto.
11965         * dwarf2read.c: Ditto.
11966         * elfread.c: Ditto.
11967         * environ.c: Ditto.
11968         * eval.c: Ditto.
11969         * event-top.h: Ditto.
11970         * exceptions.c: Ditto.
11971         * exceptions.h: Ditto.
11972         * exec.c: Ditto.
11973         * expprint.c: Ditto.
11974         * expression.h: Ditto.
11975         * f-exp.y: Ditto.
11976         * f-lang.c: Ditto.
11977         * f-lang.h: Ditto.
11978         * f-typeprint.c: Ditto.
11979         * f-valprint.c: Ditto.
11980         * fbsd-nat.c: Ditto.
11981         * findvar.c: Ditto.
11982         * fork-child.c: Ditto.
11983         * frame.c: Ditto.
11984         * frame.h: Ditto.
11985         * frv-linux-tdep.c: Ditto.
11986         * frv-tdep.c: Ditto.
11987         * gcore.c: Ditto.
11988         * gdb-stabs.h: Ditto.
11989         * gdb_assert.h: Ditto.
11990         * gdb_string.h: Ditto.
11991         * gdb_thread_db.h: Ditto.
11992         * gdb_wait.h: Ditto.
11993         * gdbarch.sh: Ditto.
11994         * gdbcore.h: Ditto.
11995         * gdbthread.h: Ditto.
11996         * gdbtypes.c: Ditto.
11997         * gdbtypes.h: Ditto.
11998         * gnu-nat.c: Ditto.
11999         * gnu-nat.h: Ditto.
12000         * gnu-v2-abi.c: Ditto.
12001         * gnu-v3-abi.c: Ditto.
12002         * go32-nat.c: Ditto.
12003         * gdbarch.c: Regenerate.
12004         * gdbarch.h: Regenerate.
12005
12006 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12007
12008         * ax-gdb.c: Adjust some long output strings.
12009         * breakpoint.c: Ditto.
12010         * charset.c: Ditto.
12011         * cp-abi.c: Ditto.
12012         * infcall.c: Ditto.
12013         * infrun.c: Ditto.
12014         * linux-nat.c: Ditto.
12015         * solib-pa64.c: Ditto.
12016         * solib-som.c: Ditto.
12017
12018 2011-01-06  Tom Tromey  <tromey@redhat.com>
12019
12020         PR python/12367:
12021         * NEWS: Add item.
12022         * python/python.c (GdbMethods): Add "newest_frame" method.
12023         * python/python-internal.h (gdbpy_newest_frame): Declare.
12024         * python/py-frame.c (gdbpy_newest_frame): New function.
12025
12026 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12027
12028         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12029         * jit.c (jit_debug): New variable.
12030         (show_jit_debug): New function.
12031         (struct target_buffer): Use ULONGEST.
12032         (bfd_open_from_target_memory): Likewise.
12033         (jit_register_code, jit_inferior_init): Add debug output.
12034         (_initialize_jit): Register "debug jit" command.
12035
12036 2011-01-06  Tom Tromey  <tromey@redhat.com>
12037
12038         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12039         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12040         and ARCH_FRAME.
12041
12042 2011-01-06  Tom Tromey  <tromey@redhat.com>
12043
12044         * python/py-frame.c (frapy_block): Use get_frame_block.
12045
12046 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12047
12048         Do not stop on SIGPRIO signals by default
12049         * infrun.c (_initialize_infrun): Unset signal_stop and
12050         signal_print for TARGET_SIGNAL_PRIO.
12051
12052 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12053
12054         * ada-tasks.c: Fix style violation in comment.
12055
12056 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12057
12058         * linespec.c (decode_compound, find_method): Remove trailing \n
12059         at end of error string.
12060         * solib-irix.c (irix_current_sos): Likewise.
12061         * varobj.c (uninstall_variable): Likewise.
12062
12063 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12064
12065         * copyright.py: New script.
12066         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12067         Launch emacs without exec'ing. Call copyright.py afterwards.
12068
12069 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12070
12071         * addrmap.c: Shorten lines of >= 80 columns.
12072         * arch-utils.c: Ditto.
12073         * arch-utils.h: Ditto.
12074         * ax-gdb.c: Ditto.
12075         * ax-general.c: Ditto.
12076         * bcache.c: Ditto.
12077         * blockframe.c: Ditto.
12078         * breakpoint.c: Ditto.
12079         * buildsym.c: Ditto.
12080         * c-lang.c: Ditto.
12081         * c-typeprint.c: Ditto.
12082         * charset.c: Ditto.
12083         * coffread.c: Ditto.
12084         * command.h: Ditto.
12085         * corelow.c: Ditto.
12086         * cp-abi.c: Ditto.
12087         * cp-namespace.c: Ditto.
12088         * cp-support.c: Ditto.
12089         * dbug-rom.c: Ditto.
12090         * dbxread.c: Ditto.
12091         * defs.h: Ditto.
12092         * dfp.c: Ditto.
12093         * dfp.h: Ditto.
12094         * dictionary.c: Ditto.
12095         * disasm.c: Ditto.
12096         * doublest.c: Ditto.
12097         * dwarf2-frame.c: Ditto.
12098         * dwarf2expr.c: Ditto.
12099         * dwarf2loc.c: Ditto.
12100         * dwarf2read.c: Ditto.
12101         * elfread.c: Ditto.
12102         * eval.c: Ditto.
12103         * event-loop.c: Ditto.
12104         * event-loop.h: Ditto.
12105         * exceptions.h: Ditto.
12106         * exec.c: Ditto.
12107         * expprint.c: Ditto.
12108         * expression.h: Ditto.
12109         * f-lang.c: Ditto.
12110         * f-valprint.c: Ditto.
12111         * findcmd.c: Ditto.
12112         * frame-base.c: Ditto.
12113         * frame-unwind.c: Ditto.
12114         * frame-unwind.h: Ditto.
12115         * frame.c: Ditto.
12116         * frame.h: Ditto.
12117         * gcore.c: Ditto.
12118         * gdb-stabs.h: Ditto.
12119         * gdb_assert.h: Ditto.
12120         * gdb_dirent.h: Ditto.
12121         * gdb_obstack.h: Ditto.
12122         * gdbcore.h: Ditto.
12123         * gdbtypes.c: Ditto.
12124         * gdbtypes.h: Ditto.
12125         * inf-ttrace.c: Ditto.
12126         * infcall.c: Ditto.
12127         * infcmd.c: Ditto.
12128         * inflow.c: Ditto.
12129         * infrun.c: Ditto.
12130         * inline-frame.h: Ditto.
12131         * language.c: Ditto.
12132         * language.h: Ditto.
12133         * libunwind-frame.c: Ditto.
12134         * libunwind-frame.h: Ditto.
12135         * linespec.c: Ditto.
12136         * linux-nat.c: Ditto.
12137         * linux-nat.h: Ditto.
12138         * linux-thread-db.c: Ditto.
12139         * machoread.c: Ditto.
12140         * macroexp.c: Ditto.
12141         * macrotab.c: Ditto.
12142         * main.c: Ditto.
12143         * maint.c: Ditto.
12144         * mdebugread.c: Ditto.
12145         * memattr.c: Ditto.
12146         * minsyms.c: Ditto.
12147         * monitor.c: Ditto.
12148         * monitor.h: Ditto.
12149         * objfiles.c: Ditto.
12150         * objfiles.h: Ditto.
12151         * osabi.c: Ditto.
12152         * p-typeprint.c: Ditto.
12153         * p-valprint.c: Ditto.
12154         * parse.c: Ditto.
12155         * printcmd.c: Ditto.
12156         * proc-events.c: Ditto.
12157         * procfs.c: Ditto.
12158         * progspace.c: Ditto.
12159         * progspace.h: Ditto.
12160         * psympriv.h: Ditto.
12161         * psymtab.c: Ditto.
12162         * record.c: Ditto.
12163         * regcache.c: Ditto.
12164         * regcache.h: Ditto.
12165         * remote-fileio.c: Ditto.
12166         * remote.c: Ditto.
12167         * ser-mingw.c: Ditto.
12168         * ser-tcp.c: Ditto.
12169         * ser-unix.c: Ditto.
12170         * serial.c: Ditto.
12171         * serial.h: Ditto.
12172         * solib-frv.c: Ditto.
12173         * solib-irix.c: Ditto.
12174         * solib-osf.c: Ditto.
12175         * solib-pa64.c: Ditto.
12176         * solib-som.c: Ditto.
12177         * solib-sunos.c: Ditto.
12178         * solib-svr4.c: Ditto.
12179         * solib-target.c: Ditto.
12180         * solib.c: Ditto.
12181         * somread.c: Ditto.
12182         * source.c: Ditto.
12183         * stabsread.c: Ditto.
12184         * stabsread.c: Ditto.
12185         * stack.c: Ditto.
12186         * stack.h: Ditto.
12187         * symfile-mem.c: Ditto.
12188         * symfile.c: Ditto.
12189         * symfile.h: Ditto.
12190         * symmisc.c: Ditto.
12191         * symtab.c: Ditto.
12192         * symtab.h: Ditto.
12193         * target-descriptions.c: Ditto.
12194         * target-memory.c: Ditto.
12195         * target.c: Ditto.
12196         * target.h: Ditto.
12197         * terminal.h: Ditto.
12198         * thread.c: Ditto.
12199         * top.c: Ditto.
12200         * tracepoint.c: Ditto.
12201         * tracepoint.h: Ditto.
12202         * ui-file.c: Ditto.
12203         * ui-file.h: Ditto.
12204         * ui-out.h: Ditto.
12205         * user-regs.c: Ditto.
12206         * user-regs.h: Ditto.
12207         * utils.c: Ditto.
12208         * valarith.c: Ditto.
12209         * valops.c: Ditto.
12210         * valprint.c: Ditto.
12211         * valprint.h: Ditto.
12212         * value.c: Ditto.
12213         * varobj.c: Ditto.
12214         * varobj.h: Ditto.
12215         * vec.h: Ditto.
12216         * xcoffread.c: Ditto.
12217         * xcoffsolib.c: Ditto.
12218         * xcoffsolib.h: Ditto.
12219         * xml-syscall.c: Ditto.
12220         * xml-tdesc.c: Ditto.
12221
12222 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12223
12224         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12225         * cli/cli-decode.c: Ditto.
12226         * cli/cli-dump.c: Ditto.
12227         * cli/cli-logging.c: Ditto.
12228         * cli/cli-script.c: Ditto.
12229         * cli/cli-setshow.c: Ditto.
12230         * common/signals.c: Ditto.
12231         * mi/mi-cmd-break.c: Ditto.
12232         * mi/mi-cmd-disas.c: Ditto.
12233         * mi/mi-cmd-stack.c: Ditto.
12234         * mi/mi-cmd-var.c: Ditto.
12235         * mi/mi-cmds.c: Ditto.
12236         * mi/mi-common.h: Ditto.
12237         * mi/mi-console.c: Ditto.
12238         * mi/mi-interp.c: Ditto.
12239         * mi/mi-main.c: Ditto.
12240         * osf-share/cma_attr.c: Ditto.
12241         * osf-share/cma_deb_core.h: Ditto.
12242         * osf-share/cma_debug_client.h: Ditto.
12243         * osf-share/cma_handle.h: Ditto.
12244         * osf-share/cma_mutex.h: Ditto.
12245         * osf-share/cma_stack_int.h: Ditto.
12246         * osf-share/cma_tcb_defs.h: Ditto.
12247         * python/py-auto-load.c: Ditto.
12248         * python/py-breakpoint.c: Ditto.
12249         * python/py-cmd.c: Ditto.
12250         * python/py-frame.c: Ditto.
12251         * python/py-objfile.c: Ditto.
12252         * python/py-param.c: Ditto.
12253         * python/py-progspace.c: Ditto.
12254         * python/py-symbol.c: Ditto.
12255         * python/py-value.c: Ditto.
12256         * python/python-internal.h: Ditto.
12257         * python/python.c: Ditto.
12258         * tui/tui-data.c: Ditto.
12259         * tui/tui-disasm.c: Ditto.
12260         * tui/tui-hooks.c: Ditto.
12261         * tui/tui-io.c: Ditto.
12262         * tui/tui-layout.c: Ditto.
12263         * tui/tui-regs.c: Ditto.
12264         * tui/tui-source.c: Ditto.
12265         * tui/tui-stack.c: Ditto.
12266         * tui/tui-win.c: Ditto.
12267         * tui/tui-windata.c: Ditto.
12268         * tui/tui-winsource.c: Ditto.
12269
12270 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12271
12272         * configure.ac, gdb.1: Copyright year update.
12273
12274 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12275
12276         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12277         this_pc_in_block, morestack_msym and morestack_name.  Check for
12278         "__morestack" minimal symbol there.
12279
12280 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12281
12282         * symfile.c (find_sym_fns): Add call to dont_repeat.
12283
12284 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12285
12286         Copyright year update in most files (performed by copyright.sh).
12287
12288 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12289
12290         * top.c (print_gdb_version): Update copyright year in version output.
12291
12292 For older changes see ChangeLog-2010.
12293 \f
12294 Local Variables:
12295 mode: change-log
12296 left-margin: 8
12297 fill-column: 74
12298 version-control: never
12299 coding: utf-8
12300 End: