Fix latest ChangeLog entry (forgot to give credit to reporter)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-14 Joel Brobecker <brobecker@adacore.com>
2 Tom Tromey <tromey@redhat.com>
3
4 * ada-lang.c (add_nonlocal_symbols): Initialize data to
5 all zeros. Remove setting of data.arg_sym to NULL.
6
7 2011-12-14 Pedro Alves <pedro@codesourcery.com>
8
9 PR threads/10729
10
11 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
12 pointer.
13 (linux_nat_prepare_to_resume): New global.
14 (lwp_free): New.
15 (purge_lwp_list): Use it.
16 (add_lwp): Call linux_nat_new_thread even on the first LWP.
17 Adjust to interface change.
18 (delete_lwp): Call lwp_free instead of xfree.
19 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
20 (linux_handle_syscall_trap, linux_handle_extended_wait)
21 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
22 linux_nat_prepare_to_resume before resuming.
23 (linux_stop_lwp): New.
24 (linux_nat_set_new_thread): Adjust.
25 (linux_nat_set_prepare_to_resume): New.
26 * linux-nat.h (struct arch_lwp_info): Forward declare.
27 (struct lwp_info) <arch_private>: New field.
28 (linux_stop_lwp): Declare.
29 (linux_nat_set_new_thread): Adjust.
30 (linux_nat_set_prepare_to_resume): New.
31
32 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
33 (struct i386_debug_reg_state): Move to i386-nat.h.
34 (dr_mirror): Comment.
35 (i386_debug_reg_state): New.
36 (i386_update_inferior_debug_regs): Simplify.
37 (i386_stopped_data_address): Use the debug register state from the
38 inferior, not from the local cache.
39 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
40 unset_status fields. New get_addr and get_control fields.
41 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
42 (DR_NADDR, DR_STATUS): New.
43 (struct i386_debug_reg_state): Moved from i386-nat.c.
44
45 * amd64-linux-nat.c (struct arch_lwp_info): New.
46 (amd64_linux_dr): Delete global.
47 (amd64_linux_dr_get_addr): New.
48 (amd64_linux_dr_get_control): New.
49 (amd64_linux_dr_unset_status): Delete.
50 (amd64_linux_dr_set_addr): Reimplement.
51 (amd64_linux_dr_reset_addr): Delete.
52 (update_debug_registers_callback): New.
53 (amd64_linux_dr_set_control): Reimplement.
54 (amd64_linux_dr_set_addr): Reimplement.
55 (amd64_linux_prepare_to_resume): New.
56 (amd64_linux_new_thread): Change parameter to an lwp pointer.
57 Reimplement.
58 (_initialize_amd64_linux_nat): No longer install
59 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
60 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
61 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
62 amd64_linux_prepare_to_resume.
63 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
64 (DR_CONTROL): Delete.
65 (struct arch_lwp_info): New.
66 (i386_linux_dr): Delete global.
67 (i386_linux_dr_set_control): Reimplement.
68 (i386_linux_dr_get_addr): New.
69 (i386_linux_dr_set_addr): Reimplement.
70 (i386_linux_dr_get_control): New.
71 (update_debug_registers_callback): New.
72 (i386_linux_dr_unset_status): Delete.
73 (i386_linux_dr_set_addr): Reimplement.
74 (i386_linux_prepare_to_resume): New.
75 (i386_linux_new_thread): Change parameter to an lwp pointer.
76 Reimplement.
77 (_initialize_i386_linux_nat): No longer install
78 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
79 i386_linux_dr_get_control as i386_dr_low.get_control. Install
80 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
81 i386_linux_prepare_to_resume.
82
83 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
84 lwp pointer. Adjust.
85 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
86 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
87 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
88 * s390-nat.c (s390_fix_watch_points): Likewise.
89
90 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
91 (DR_CONTROL): Delete.
92 (i386_darwin_dr_reset_addr): Delete.
93 (i386_darwin_dr_get_addr): New.
94 (i386_darwin_dr_get_control): New.
95 * go32-nat.c
96 (go32_get_dr7, go32_get_dr): New.
97 (init_go32_ops): No longer install i386_dr_low.reset_addr.
98 Install go32_get_dr7 as i386_dr_low.get_control. Install
99 go32_get_dr as i386_dr_low.get_addr.
100 * i386bsd-nat.c (i386bsd_dr_get): New.
101 (i386bsd_dr_reset_addr): Delete.
102 (i386bsd_dr_get_addr): New.
103 (i386bsd_dr_get_status): Use i386bsd_dr_get.
104 (i386bsd_dr_get_control): New.
105 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
106 (i386bsd_dr_get_addr): New.
107 (i386bsd_dr_get_control): New.
108 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
109 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
110 i386bsd_dr_get_control as i386_dr_low.get_control. Install
111 i386bsd_dr_get_addr as i386_dr_low.get_addr.
112 * windows-nat.c (init_windows_ops): No longer install
113 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
114 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
115 as i386_dr_low.get_addr.
116 (cygwin_get_dr): New.
117 (cygwin_get_dr7): New.
118
119 2011-12-14 Pedro Alves <pedro@codesourcery.com>
120
121 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
122 target_write_raw_memory.
123 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
124 target_write_raw_memory.
125 * microblaze-linux-tdep.c
126 (microblaze_linux_memory_remove_breakpoint): Use
127 target_write_raw_memory.
128 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
129 target_write_raw_memory.
130
131 2011-12-14 Joel Brobecker <brobecker@adacore.com>
132
133 * linespec.c (decode_line_internal): Make static.
134
135 2011-12-14 Yao Qi <yao@codesourcery.com>
136
137 * breakpoint.c (create_breakpoint): Set canonical.addr_string
138 for static tracepoint.
139
140 2011-12-13 Joel Brobecker <brobecker@adacore.com>
141
142 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
143 * version.in: Bump version to 7.4.50.20111213-cvs.
144
145 2011-12-13 Joel Brobecker <brobecker@adacore.com>
146
147 * NEWS: Create a new section for the next release branch.
148 Rename the section of the current branch, now that it has
149 been cut.
150
151 2011-12-11 Joel Brobecker <brobecker@adacore.com>
152
153 * ada-lang.c (ada_exception_support_info_sniffer): Improve
154 error message.
155
156 2011-12-11 Joel Brobecker <brobecker@adacore.com>
157
158 * ada-lang.c (struct ada_inferior_data) [exception_info]:
159 New field.
160 (exception_info): Delete.
161 (ada_exception_support_info_sniffer): Get exception_support_info
162 data from our per-inferior data. Adjust code accordingly.
163 (ada_unhandled_exception_name_addr_from_raise): Likewise.
164 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
165 (ada_executable_changed_observer): Delete.
166 (_initialize_ada_language): Remove call to
167 observer_attach_executable_changed.
168
169 2011-12-11 Joel Brobecker <brobecker@adacore.com>
170
171 * ada-lang.c (ada_has_this_exception_support): Raise an error
172 if we could find the Ada exception hook in the Ada runtime,
173 but no debugging info for that hook.
174
175 2011-12-11 Joel Brobecker <brobecker@adacore.com>
176
177 * ada-lang.c (ada_has_this_exception_support): New function,
178 extracted out of ada_exception_sal and ada_exception_sal.
179 (ada_exception_support_info_sniffer): Simplify by using
180 ada_has_this_exception_support.
181 (ada_exception_sal): Replace unnecessary checks by assertions.
182 Minor simplifications.
183
184 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
185
186 * breakpoint.c (update_global_location_list): Remove nested
187 definition of `b'(-Wshadow).
188
189 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
190
191 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
192 `error_flag'(-Wshadow).
193
194 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
195
196 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
197 `abfd'(-Wshadow).
198
199 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
200
201 * annotate.c (annotate_array_section_begin): Rename `index' to
202 `idx'(-Wshadow).
203
204 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
205
206 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
207 `idx'(-Wshadow).
208
209 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
210
211 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
212 `syscall' to `syscall_number'(-Wshadow).
213
214 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
215
216 * ada-lang.c (remove_extra_symbols): Rename `remove' to
217 `remove_p'(-Wshadow).
218
219 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
220
221 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
222 `ren_sym'(-Wshadow).
223
224 2011-12-10 Doug Evans <dje@google.com>
225
226 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
227 debug_types_section. All uses updated.
228 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
229 to is_debug_types_section.
230
231 * python/py-auto-load.c (source_section_scripts): Call xfree
232 instead of free.
233
234 2011-12-10 Hui Zhu <teawater@gmail.com>
235 Yao Qi <yao@codesourcery.com>
236
237 * tracepoint.c (start_tracing): Clear `inserted' flag.
238
239 2011-12-10 Hui Zhu <teawater@gmail.com>
240
241 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
242
243 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
244
245 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
246 `bpoint'(-Wshadow).
247
248 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
249
250 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
251 `marker' variables to `sal2' and `tpmarker' respectively
252 (-Wshadow).
253
254 2011-12-09 Andrew Pinski <apinski@cavium.com>
255
256 * linespec.c (hash_address_entry): Use iterative_hash_object on each
257 field rather than the struct itself.
258
259 2011-12-09 Tom Tromey <tromey@redhat.com>
260
261 * breakpoint.c (compare_breakpoints): New function.
262 (clear_command): Remove duplicate breakpoints. Properly clean
263 up.
264
265 2011-12-08 Maciej W. Rozycki <macro@mips.com>
266 Maciej W. Rozycki <macro@codesourcery.com>
267
268 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
269 address chunks retrieved from decoded lui/addiu pairs.
270
271 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
272
273 * mips-tdep.c (extended_offset): Correct calculation.
274 (unpack_mips16): Correct bitfield positions used for extraction
275 of the immediate argument; fix sign-extension of same.
276 (extended_mips16_next_pc): Correct B instruction's offset
277 calculation. Correct register decoding of the BEQZ and BNEZ
278 as well as jump-register instructions. Handle compact jumps.
279
280 2011-12-08 Tom Tromey <tromey@redhat.com>
281
282 * objfiles.h (struct objfile): Remove obsolete comment.
283 * objfiles.c (build_objfile_section_table): Remove obsolete
284 comment.
285
286 2011-12-07 Stan Shebs <stan@codesourcery.com>
287
288 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
289 maintainer of the tic6x target.
290
291 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
292
293 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
294 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
295 (arm_deal_with_atomic_sequence_raw): Likewise.
296 (arm_deal_with_atomic_sequence): Likewise.
297 (arm_software_single_step): Call it.
298 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
299
300 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
301
302 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
303 where appropriate.
304 * s390-tdep.h: Likewise.
305
306 2011-12-07 Tristan Gingold <gingold@adacore.com>
307
308 * machoread.c (macho_symtab_read): Do not consider N_OPT as
309 a debugging stab. Improve complaint message.
310
311 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
312
313 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
314 load adjustment if still within the prologue.
315
316 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
317
318 * mips-tdep.c (mips32_next_pc): Fix floating point condition
319 code mask.
320
321 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
322
323 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
324 of BLTZ* and BGEZ* instructions.
325
326 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
327
328 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
329 performed to determine whether an address refers to standard
330 MIPS or MIPS16 code.
331 (mips16_next_pc): Use mips_pc_is_mips16 instead of
332 is_mips16_addr.
333
334 2011-12-06 Pedro Alves <pedro@codesourcery.com>
335
336 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
337 (breakpoint_xfer_memory): ... this. Change prototype. Handle
338 memory writes too.
339 * breakpoint.h (breakpoint_restore_shadows): Delete.
340 (breakpoint_xfer_memory): Declare.
341 * mem-break.c (default_memory_insert_breakpoint)
342 (default_memory_remove_breakpoint): Use target_write_raw_memory.
343 (memory_xfer_partial): Rename to ...
344 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
345 here.
346 (memory_xfer_partial): New.
347 (target_write_raw_memory): New.
348 * target.h (target_write_raw_memory): New.
349
350 2011-12-06 Doug Evans <dje@google.com>
351
352 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
353
354 2011-12-06 Joel Brobecker <brobecker@acacore.com>
355
356 * language.h (struct language_defn): Add new component
357 la_symbol_name_compare.
358 * symfile.h (struct quick_symbol_functions): Update the profile
359 of parameter "name_matcher" for the expand_symtabs_matching
360 method. Update the documentation accordingly.
361 * ada-lang.h (ada_name_for_lookup): Add declaration.
362 * ada-lang.c (ada_name_for_lookup): New function, extracted out
363 from ada_iterate_over_symbols.
364 (ada_iterate_over_symbols): Do not encode symbol name anymore.
365 (ada_expand_partial_symbol_name): Adjust profile.
366 (ada_language_defn): Add value for la_symbol_name_compare field.
367 * linespec.c: #include "ada-lang.h".
368 (iterate_name_matcher): Add language parameter. Replace call
369 to strcmp_iw by call to language->la_symbol_name_compare.
370 (decode_variable): Encode COPY if current language is Ada.
371 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
372 of name_matcher parameter. Adjust call to name_matcher.
373 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
374 (expand_partial_symbol_names): Update profile of parameter "fun".
375 * psymtab.h (expand_partial_symbol_names): Update profile of
376 parameter "fun".
377 * symtab.c (demangle_for_lookup): Update function documentation.
378 (search_symbols_name_matches): Add language parameter.
379 (expand_partial_symbol_name): Likewise.
380 * c-lang.c (c_language_defn, cplus_language_defn)
381 (asm_language_defn, minimal_language_defn): Add value for
382 la_symbol_name_compare field.
383 * d-lang.c (d_language_defn): Likewise.
384 * f-lang.c (f_language_defn): Ditto.
385 * jv-lang.c (java_language_defn): Ditto.
386 * m2-lang.c (m2_language_defn): Ditto.
387 * objc-lang.c (objc_language_defn): Ditto.
388 * opencl-lang.c (opencl_language_defn): Ditto.
389 * p-lang.c (pascal_language_defn): Ditto.
390 * language.c (unknown_language_defn, auto_language_defn)
391 (local_language_defn): Ditto.
392
393 2011-12-06 Tom Tromey <tromey@redhat.com>
394
395 * linespec.c (iterate_over_all_matching_symtabs): Use
396 LA_ITERATE_OVER_SYMBOLS.
397 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
398 (find_function_symbols, decode_variable): Remove Ada special
399 case.
400 * language.h (struct language_defn) <la_iterate_over_symbols>: New
401 field.
402 (LA_ITERATE_OVER_SYMBOLS): New macro.
403 * language.c (unknown_language_defn, auto_language_defn)
404 (local_language_defn): Update.
405 * c-lang.c (c_language_defn, cplus_language_defn)
406 (asm_language_defn, minimal_language_defn): Update.
407 * d-lang.c (d_language_defn): Update.
408 * f-lang.c (f_language_defn): Update.
409 * jv-lang.c (java_language_defn): Update.
410 * m2-lang.c (m2_language_defn): Update.
411 * objc-lang.c (objc_language_defn): Update.
412 * opencl-lang.c (opencl_language_defn): Update.
413 * p-lang.c (pascal_language_defn): Update.
414 * ada-lang.c (ada_iterate_over_symbols): New function.
415 (ada_language_defn): Update.
416
417 2011-12-06 Tom Tromey <tromey@redhat.com>
418 Joel Brobecker <brobecker@acacore.com>
419
420 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
421 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
422 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
423 PR shlibs/8929, PR shlibs/7393:
424 * python/py-type.c (compare_maybe_null_strings): Rename from
425 compare_strings.
426 (check_types_equal): Update.
427 * utils.c (compare_strings): New function.
428 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
429 location changes.
430 * tracepoint.c (scope_info): Update.
431 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
432 * symtab.h (iterate_over_minimal_symbols)
433 (iterate_over_some_symtabs, iterate_over_symtabs)
434 (find_pcs_for_symtab_line, iterate_over_symbols)
435 (demangle_for_lookup): Declare.
436 (expand_line_sal): Remove.
437 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
438 (lookup_symtab_callback): New functions.
439 (lookup_symtab): Rewrite.
440 (demangle_for_lookup): New function, extract from
441 lookup_symbol_in_language.
442 (lookup_symbol_in_language): Use it.
443 (iterate_over_symbols): New function.
444 (find_line_symtab): Update.
445 (find_pcs_for_symtab_line): New functions.
446 (find_line_common): Add 'start' argument.
447 (decode_line_spec): Update. Change argument to 'flags', change
448 interpretation.
449 (append_expanded_sal): Remove.
450 (append_exact_match_to_sals): Remove.
451 (expand_line_sal): Remove.
452 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
453 Remove.
454 <map_symtabs_matching_filename>: New field.
455 * stack.c (func_command): Only look in the current program space.
456 Use DECODE_LINE_FUNFIRSTLINE.
457 * source.c (line_info): Set pspace on sal. Check program space in
458 the loop. Use DECODE_LINE_LIST_MODE.
459 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
460 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
461 * python/python.c (gdbpy_decode_line): Update.
462 * psymtab.c (partial_map_expand_apply): New function.
463 (partial_map_symtabs_matching_filename): Rename from
464 lookup_partial_symbol. Update arguments.
465 (lookup_symtab_via_partial_symtab): Remove.
466 (psym_functions): Update.
467 * objc-lang.h (parse_selector, parse_method): Don't declare.
468 (find_imps): Update.
469 * objc-lang.c (parse_selector, parse_method): Now static.
470 (find_methods): Change arguments. Fill in a vector of symbol
471 names.
472 (uniquify_strings): New function.
473 (find_imps): Change arguments.
474 * minsyms.c (iterate_over_minimal_symbols): New function.
475 * linespec.h (enum decode_line_flags): New.
476 (struct linespec_sals): New.
477 (struct linespec_result) <canonical>: Remove.
478 <pre_expanded, addr_string, sals>: New fields.
479 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
480 (decode_line_full): Declare.
481 (decode_line_1): Update.
482 * linespec.c (struct address_entry, struct linespec_state, struct
483 collect_info): New types.
484 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
485 (eq_address_entry, maybe_add_address): New functions.
486 (total_number_of_methods): Remove.
487 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
488 functions.
489 (find_methods): Change arguments. Don't canonicalize input.
490 Simplify logic.
491 (add_matching_methods, add_constructors)
492 (build_canonical_line_spec): Remove.
493 (filter_results, convert_results_to_lsals): New functions.
494 (decode_line_2): Change arguments. Rewrite for new data
495 structures.
496 (decode_line_internal): Rename from decode_line_1. Change
497 arguments. Add cleanups. Update for new data structures.
498 (linespec_state_constructor, linespec_state_destructor)
499 (decode_line_full, decode_line_1): New functions.
500 (decode_indirect): Change arguments. Update.
501 (locate_first_half): Use skip_spaces.
502 (decode_objc): Change arguments. Update for new data structures.
503 Simplify logic.
504 (decode_compound): Change arguments. Add cleanups. Remove
505 fallback code, replace with error.
506 (struct decode_compound_collector): New type.
507 (collect_one_symbol): New function.
508 (lookup_prefix_sym): Change arguments. Update.
509 (compare_symbol_name, add_all_symbol_names_from_pspace)
510 (find_superclass_methods ): New functions.
511 (find_method): Rewrite.
512 (struct symtab_collector): New type.
513 (add_symtabs_to_list, collect_symtabs_from_filename): New
514 functions.
515 (symtabs_from_filename): Change API. Rename from
516 symtab_from_filename.
517 (collect_function_symbols): New function.
518 (find_function_symbols): Change API. Rename from
519 find_function_symbol. Rewrite.
520 (decode_all_digits): Change arguments. Rewrite.
521 (decode_dollar): Change arguments. Use decode_variable.
522 (decode_label): Change arguments. Rewrite.
523 (collect_symbols): New function.
524 (minsym_found): Change arguments. Rewrite.
525 (check_minsym, search_minsyms_for_name)
526 (add_matching_symbols_to_info): New function.
527 (decode_variable): Change arguments. Iterate over all symbols.
528 (symbol_found): Remove.
529 (symbol_to_sal): New function.
530 (init_linespec_result, destroy_linespec_result)
531 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
532 New functions.
533 (decode_digits_list_mode, decode_digits_ordinary): New functions.
534 * dwarf2read.c (dw2_map_expand_apply): New function.
535 (dw2_map_symtabs_matching_filename): Rename from
536 dw2_lookup_symtab. Change arguments.
537 (dwarf2_gdb_index_functions): Update.
538 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
539 * defs.h (compare_strings): Declare.
540 * cli/cli-cmds.c (compare_strings): Move to utils.c.
541 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
542 filter_sals.
543 (compare_symtabs, filter_sals): New functions.
544 * breakpoint.h (struct bp_location) <line_number, source_file>:
545 New fields.
546 (struct breakpoint) <line_number, source_file>: Remove.
547 <filter>: New field.
548 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
549 (momentary_breakpoint_from_master, add_location_to_breakpoint):
550 Update for changes to locations.
551 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
552 breakpoint.
553 (create_breakpoint_sal): Add 'filter' argument.
554 (remove_sal, expand_line_sal_maybe): Remove.
555 (create_breakpoints_sal): Remove 'sals' argument. Handle
556 pre-expanded sals and the filter.
557 (parse_breakpoint_sals): Use decode_line_full.
558 (check_fast_tracepoint_sals): Use get_sal_arch.
559 (create_breakpoint): Create a linespec_sals. Update.
560 (break_range_command): Use decode_line_full. Update.
561 (until_break_command): Update.
562 (clear_command): Update match conditions for linespec.c changes.
563 Use DECODE_LINE_LIST_MODE.
564 (say_where): Update for changes to locations.
565 (bp_location_dtor): Free 'source_file'.
566 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
567 (update_static_tracepoint): Update for changes to locations.
568 (update_breakpoint_locations): Disable ranged breakpoint if too
569 many locations match. Update.
570 (addr_string_to_sals): Use decode_line_full. Resolve all sal
571 PCs.
572 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
573 (decode_line_spec_1): Update. Change argument name to 'flags',
574 change interpretation.
575 * block.h (block_containing_function): Declare.
576 * block.c (block_containing_function): New function.
577 * skip.c (skip_function_command): Update.
578 (skip_re_set): Update.
579 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
580 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
581 * NEWS: Add entry.
582
583 2011-12-06 Tom Tromey <tromey@redhat.com>
584
585 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
586 breakpoint's pspace to be NULL.
587 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
588 * breakpoint.c (init_raw_breakpoint): Conditionally set
589 breakpoint's pspace.
590 (init_breakpoint_sal): Don't set breakpoint's pspace.
591 (prepare_re_set_context): Conditionally switch program space.
592 (addr_string_to_sals): Check executing_startup on location's
593 program space.
594
595 2011-12-06 Tom Tromey <tromey@redhat.com>
596
597 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
598 * breakpoint.c (should_be_inserted): Explicitly check if program
599 space is executing startup.
600 (describe_other_breakpoints): Update.
601 (disable_breakpoints_before_startup): Change executing_startup
602 earlier. Remove loop.
603 (enable_breakpoints_after_startup): Likewise.
604 (init_breakpoint_sal): Don't use bp_startup_disabled.
605 (create_breakpoint): Don't use bp_startup_disabled.
606 (update_global_location_list): Use should_be_inserted.
607 (bkpt_re_set): Update.
608
609 2011-12-06 Tom Tromey <tromey@redhat.com>
610
611 * python/lib/gdb/command/pretty_printers.py
612 (InfoPrettyPrinter.invoke1): Remove extra double quote.
613
614 2011-12-06 Tom Tromey <tromey@redhat.com>
615
616 * NEWS: Add MI news.
617
618 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
619
620 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
621 (S390_LAST_BREAK_REGNUM): Likewise.
622 (S390_SYSTEM_CALL_REGNUM): Likewise.
623 (S390_NUM_REGS): Update.
624
625 (s390_regmap_last_break): Add declaration.
626 (s390x_regmap_last_break): Likewise.
627 (s390_regmap_system_call): Likewise.
628
629 (tdesc_s390_linux32v1): Add declaration.
630 (tdesc_s390_linux32v2): Likewise.
631 (tdesc_s390_linux64v1): Likewise.
632 (tdesc_s390_linux64v2): Likewise.
633 (tdesc_s390x_linux64v1): Likewise.
634 (tdesc_s390x_linux64v2): Likewise.
635
636 * s390-tdep.c: Include new target description files
637 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
638 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
639 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
640 (s390_cannot_store_register): New function.
641 (s390_write_pc): Likewise.
642 (s390_dwarf_regmap): Add fields for new registers.
643 (s390_regmap_gregset): Likewise.
644 (s390x_regmap_gregset): Likewise.
645 (s390_regmap_fpregset): Likewise.
646 (s390_regmap_upper): Likewise.
647 (s390_regmap_last_break): New variable.
648 (s390x_regmap_last_break): Likewise.
649 (s390_regmap_system_call): Likewise.
650 (s390_last_break_regset): Likewise.
651 (s390x_last_break_regset): Likewise.
652 (s390_system_call_regset): Likewise.
653 (s390_upper_regset_sections): Rename to ...
654 (s390_linux64_regset_sections): ... this.
655 (s390_linux32_regset_sections): New variable.
656 (s390x_linux64_regset_sections): Likewise.
657 (s390_linux32v1_regset_sections): Likewise.
658 (s390_linux32v2_regset_sections): Likewise.
659 (s390_linux64v1_regset_sections): Likewise.
660 (s390_linux64v2_regset_sections): Likewise.
661 (s390x_linux64v1_regset_sections): Likewise.
662 (s390x_linux64v2_regset_sections): Likewise.
663 (s390_regset_from_core_section): Handle .reg-s390-last-break and
664 .reg-s390-system-call core file sections.
665 (s390_core_read_description): Check for presence of
666 .reg-s390-last-break and .reg-s390-system-call core file
667 sections and return appropriate target description.
668 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
669 "last_break" and "system_call" in target description. Install
670 appropriate gdbarch_core_regset_sections array.
671 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
672 (_initialize_s390_tdep): Initialize additional target descriptions.
673
674 * s390-nat.c: Include "elf/common.h".
675 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
676 (have_regset_last_break): New static variable.
677 (have_regset_system_call): Likewise.
678 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
679 (s390_native_collect): Likewise.
680 (fetch_regset, store_regset, check_regset): New functions.
681 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
682 and S390_SYSTEM_CALL_REGNUM.
683 (s390_linux_store_inferior_registers): Likewise.
684 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
685 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
686
687 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
688 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
689 (s390-linux32v1-expedite): Define.
690 (s390-linux32v2-expedite): Likewise.
691 (s390-linux64v1-expedite): Likewise.
692 (s390-linux64v2-expedite): Likewise.
693 (s390x-linux64v1-expedite): Likewise.
694 (s390x-linux64v2-expedite): Likewise.
695
696 * features/s390-linux32.xml: Add orig_r2 register.
697 * features/s390-linux64.xml: Likewise.
698 * features/s390x-linux64.xml: Likewise.
699 * features/s390-linux32v1.xml: New file.
700 * features/s390-linux32v2.xml: Likewise.
701 * features/s390-linux64v1.xml: Likewise.
702 * features/s390-linux64v2.xml: Likewise.
703 * features/s390x-linux64v1.xml: Likewise.
704 * features/s390x-linux64v2.xml: Likewise.
705
706 * features/s390-linux32.c: Regenerate.
707 * features/s390-linux64.c: Likewise.
708 * features/s390x-linux64.c: Likewise.
709 * features/s390-linux32v1.c: New generated file.
710 * features/s390-linux32v2.c: Likewise.
711 * features/s390-linux64v1.c: Likewise.
712 * features/s390-linux64v2.c: Likewise.
713 * features/s390x-linux64v1.c: Likewise.
714 * features/s390x-linux64v2.c: Likewise.
715
716 * regformats/s390-linux32.dat: Regenerate.
717 * regformats/s390-linux64.dat: Regenerate.
718 * regformats/s390x-linux64.dat: Regenerate.
719 * regformats/s390-linux32v1.dat: New generated file.
720 * regformats/s390-linux32v2.dat: Likewise.
721 * regformats/s390-linux64v1.dat: Likewise.
722 * regformats/s390-linux64v2.dat: Likewise.
723 * regformats/s390x-linux64v1.dat: Likewise.
724 * regformats/s390x-linux64v2.dat: Likewise.
725
726 2011-12-05 Pedro Alves <pedro@codesourcery.com>
727
728 * linux-nat.c (resume_stopped_resumed_lwps): Call
729 registers_changed.
730
731 2011-12-05 Pedro Alves <pedro@codesourcery.com>
732
733 * breakpoint.c: Include record.h.
734 (breakpoints_always_inserted_mode): Return false when the record
735 target is in use.
736
737 2011-12-05 Pedro Alves <pedro@codesourcery.com>
738
739 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
740 Reinstate perror_with_name call on ptrace error. Remove #if 0.
741 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
742 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
743
744 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
745
746 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
747 `i'(-Wshadow).
748
749 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
750
751 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
752
753 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
754
755 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
756 of `tdep'(-Wshadow).
757
758 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
759
760 Fix compilation --without-expat.
761 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
762 from ...
763 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
764
765 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
766 Jan Kratochvil <jan.kratochvil@redhat.com>
767
768 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
769 * features/library-list-svr4.dtd: New file.
770 * remote.c (PACKET_qXfer_libraries_svr4): New.
771 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
772 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
773 * solib-svr4.c (struct svr4_library_list): New.
774 [HAVE_LIBEXPAT]: Include xml-support.h.
775 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
776 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
777 [HAVE_LIBEXPAT] (svr4_library_list_children)
778 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
779 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
780 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
781 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
782 (svr4_read_so_list): Extend the corruption message by addresses.
783 (svr4_current_sos): New variable library_list, call
784 svr4_current_sos_via_xfer_libraries.
785 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
786
787 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 PR threads/13448
790 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
791 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
792
793 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 PR breakpoints/13346
796 * dwarf2read.c (process_psymtab_comp_unit): Set
797 PSYMTABS_ADDRMAP_SUPPORTED.
798 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
799 validity. New field psymtabs_addrmap_supported.
800 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
801 psymtabs_addrmap_supported.
802 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
803 !PSYMTABS_ADDRMAP_SUPPORTED.
804 (dump_psymtab, maintenance_info_psymtabs): Print also
805 psymtabs_addrmap_supported.
806
807 2011-12-01 Doug Evans <dje@google.com>
808
809 * python/py-type.c (type_object_methods): Fix "array" doc string.
810
811 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
812
813 * source.c (print_source_lines_base): Fix missing braces on else
814 clause leading to additional output.
815
816 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
817
818 * s390-nat.c (SUBOFF): Remove.
819 (s390_native_supply, s390_native_collect): New functions.
820 (supply_gregset, supply_fpregset): Use s390_native_supply.
821 (fill_gregset, fill_fpregset): Use s390_native_collect.
822
823 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
824 (s390_unwind_pseudo_register): New function.
825 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
826 registers instead of PC and CC.
827 (s390_backchain_frame_unwind_cache): Likewise.
828 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
829 full GPR pseudos.
830 (s390_trad_frame_prev_register): New function.
831 (s390_frame_prev_register): Use it.
832 (s390_sigtramp_frame_prev_register): Likewise.
833 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
834 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
835 special callback to unwind any pseudo.
836
837 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
838 * features/s390-core64.xml: Likewise.
839 * features/s390x-core64.xml: Likewise.
840 * features/s390-linux32.c: Regenerate.
841 * features/s390-linux64.c: Likewise.
842 * features/s390x-linux64.c: Likewise.
843
844 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
845
846 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
847
848 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
849
850 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
851 instruction. Add more diagnostic output.
852
853 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
854
855 * MAINTAINERS (Write After Approval): Add myself to the list.
856
857 2011-11-29 Sanjoy Das <sdas@igalia.com>
858
859 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
860 (jit_bfd_try_read_symtab): Fix comments.
861
862 2011-11-28 DJ Delorie <dj@redhat.com>
863
864 * NEWS: Mention RL78 simulator.
865
866 2011-11-28 Joel Brobecker <brobecker@adacore.com>
867
868 * symfile.h (struct quick_symbol_functions): Fix the documentation
869 of field map_matching_symbols, as symbols are sorted using
870 strcmp_iw_ordered, not strcmp_iw.
871
872 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
873
874 * symfile.h (struct quick_symbol_functions): Update the
875 documentation for field map_matching_symbols.
876
877 2011-11-28 Joel Brobecker <brobecker@adacore.com>
878
879 * ada-lang.c (compare_names): Fix wrong return value in case
880 string1 starts with the same contents as string2, followed
881 by an underscore that do not start a symbol name suffix.
882
883 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
884
885 PR python/13369
886 PR python/13374
887
888 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
889 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
890 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
891 exceptions.
892 * python/py-type.c (typy_strip_typedefs): Ditto.
893 (typy_legacy_template_argument): Ditto.
894 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
895 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
896
897 2011-11-27 Joel Brobecker <brobecker@acacore.com>
898
899 * remote.c (remote_get_tracepoint_status): Delete addrbuf
900 local variable. Avoid use of sprintf_vma.
901
902 2011-11-27 Sanjoy Das <sdas@igalia.com>
903
904 Fix regression in jit.exp.
905 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
906 (jit_register_code): Set the jit_objfile_data field to the correct
907 value.
908
909 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
910
911 * alpha-tdep.c (br_opcode): New.
912 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
913 (alpha_deal_with_atomic_sequence): New function.
914 (alpha_gdbarch_init): Handle single stepping of atomic sequences
915 with alpha_deal_with_atomic_sequence.
916
917 2011-11-24 Tristan Gingold <gingold@adacore.com>
918
919 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
920 fields. Add oso_sym, end_sym and nbr_syms.
921 (macho_register_oso): Change interface.
922 (macho_symtab_add_minsym): New function.
923 (macho_symtab_read): Rewritten.
924 (get_archive_prefix_len): Remove trailing blanks.
925 (oso_el_compare_name): Add comment.
926 (struct macho_sym_hash_entry): New structure.
927 (macho_relocate_common_syms): Remove.
928 (macho_sym_hash_newfunc): New function.
929 (macho_resolve_oso_sym_with_minsym): Likewise.
930 (macho_add_oso_symfile): Rewritten.
931 (macho_symfile_read_all_oso): Remove trailing blanks.
932 Adjust code to free oso vector.
933 (macho_symfile_read): Likewise.
934 Move code to initialize minimal symbol
935
936 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
937
938 * mips-tdep.c (extended_offset): Fix formatting.
939
940 2011-11-23 Doug Evans <dje@google.com>
941
942 * dwarf2read.c (dw2_lookup_symtab): Add comment.
943 (dw2_expand_symtabs_with_filename): Ditto.
944 (dw2_expand_symtabs_matching): Ditto.
945 (dw2_map_symbol_filenames): Ditto.
946
947 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
948
949 * ada-lang.c (assign_aggregate): Minor reformatting.
950
951 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
952
953 * ada-lang.c (assign_aggregate): Remove declaration of local
954 variable `i' which is shadowing another variable with the same
955 name declared in the outer scope.
956
957 2011-11-23 Joel Brobecker <brobecker@adacore.com>
958
959 * ada-lang.c (get_base_type): Renames base_type. Adjust all
960 calls throughout this file.
961
962 2011-11-23 Joel Brobecker <brobecker@adacore.com>
963
964 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
965 FormatMessage.
966
967 2011-11-22 Tom Tromey <tromey@redhat.com>
968
969 PR mi/8444:
970 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
971 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
972 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
973 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
974 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
975 (print_it_catch_syscall, print_it_catch_exec)
976 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
977 (bpstat_print): Add 'kind' argument. Handle
978 TARGET_WAITKIND_LOADED.
979 * infrun.c (normal_stop): Update for bpstat_print change. Don't
980 handle TARGET_WAITKIND_LOADED here.
981 * breakpoint.h (bpstat_print): Update.
982
983 2011-11-22 Tom Tromey <tromey@redhat.com>
984
985 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
986
987 2011-11-22 Tom Tromey <tromey@redhat.com>
988
989 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
990 Use static_assert to check the size of
991 async_reason_string_lookup.
992 * common/gdb_assert.h (static_assert): New macro.
993
994 2011-11-22 Alan Modra <amodra@gmail.com>
995
996 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
997 destination calculation. Don't expect >> to sign extend. Don't
998 add a break if branch lands inside the sequence anywhere.
999
1000 2011-11-21 Keith Seitz <keiths@redhat.com>
1001
1002 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1003 -var-evaluate-expression of an enumeration and fix expected result.
1004 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1005
1006 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1007
1008 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1009 the case where osdata->items is empty. Rename column names to a
1010 canonical form to avoid problems with unusual column names.
1011
1012 2011-11-21 Yao Qi <yao@codesourcery.com>
1013
1014 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1015
1016 2011-11-20 Stan Shebs <stan@codesourcery.com>
1017
1018 * NEWS: Mention tracepoint additions.
1019 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1020 * breakpoint.c (print_one_breakpoint_location): Identify
1021 tracepoints as such when reporting hit counts, report
1022 trace buffer usage.
1023 (create_tracepoint_from_upload): Copy status info.
1024 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1025 add fields user_name, notes, start_time, stop_time.
1026 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1027 * tracepoint.c (trace_user): New global.
1028 (trace_notes): New global.
1029 (trace_stop_notes): New global.
1030 (start_tracing): Add argument and trace note handling.
1031 (stop_tracing): Ditto.
1032 (trace_start_command): Add notes argument.
1033 (trace_stop_command): Ditto.
1034 (trace_status_command): Report additional status info.
1035 (trace_status_mi): Similarly.
1036 (trace_save): Update, record tracepoint status.
1037 (set_disconnected_tracing): Call target method directly.
1038 (send_disconnected_tracing_value): Remove.
1039 (set_trace_user): New function.
1040 (set_trace_notes): New function.
1041 (set_trace_stop_notes): New function.
1042 (parse_trace_status): Handle additional status.
1043 (parse_tracepoint_status): New function.
1044 (parse_tracepoint_definition): Call it.
1045 (tfile_get_tracepoint_status): New function.
1046 (init_tfile_ops): Use it.
1047 (_initialize_tracepoint): Add new setshows.
1048 * target.h (struct target_ops): New methods to_get_tracepoint_status
1049 and to_set_trace_notes.
1050 (target_get_tracepoint_status): New macro.
1051 (target_set_trace_notes): New macro.
1052 * target.c (update_current_target): Add new methods.
1053 * remote.c (remote_get_tracepoint_status): New function.
1054 (remote_set_trace_notes): New function.
1055 (init_remote_ops): Add them.
1056 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1057 (mi_cmd_trace_stop): Ditto.
1058
1059 2011-11-20 Sanjoy Das <sdas@igalia.com>
1060
1061 * jit.c: Include regcache.h.
1062 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1063 (jit_unwind_reg_set_impl, free_reg_value_impl)
1064 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1065 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1066 (jit_frame_prev_register, jit_dealloc_cache)
1067 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1068 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1069 jit_prepend_unwinder.
1070 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1071
1072 2011-11-20 Sanjoy Das <sdas@igalia.com>
1073
1074 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1075 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1076 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1077 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1078 (finalize_symtab, jit_object_close_impl)
1079 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1080 (free_objfile_data): New functions.
1081 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1082 function.
1083
1084 2011-11-20 Sanjoy Das <sdas@igalia.com>
1085
1086 * jit.c: Include gdb-dlfcn.h.
1087 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1088 (jit_reader_load, jit_reader_load_command)
1089 (jit_reader_unload_command): New functions.
1090 (_initialize_jit): Add commands "jit-reader-load" and
1091 "jit-reader-unload".
1092
1093 2011-11-20 Sanjoy Das <sdas@igalia.com>
1094
1095 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1096 * config.in: Add new #define HAVE_LIBDL.
1097 * configure.ac: Add check for -ldl.
1098 * configure: Re-generated by autoconf.
1099 * gdb-dlfcn.c: New file.
1100 * gdb-dlfcn.h: New file.
1101
1102 2011-11-20 Sanjoy Das <sdas@igalia.com>
1103
1104 * config.in: Add new #defines: JIT_READER_DIR and
1105 JIT_READER_DIR_RELOCATABLE.
1106 * configure.ac: New GDB directory entry for jit-reader-dir.
1107 * configure: Re-generated by autoconf.
1108 * jit.c: New static variable: const char *jit_reader_dir.
1109 (_initialize_jit): Relocate jit_reader_dir.
1110
1111 2011-11-20 Sanjoy Das <sdas@igalia.com>
1112
1113 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1114 $(includedir)/gdb.
1115 * configure.ac: Generate a correct value for TARGET_PTR for
1116 jit-reader.h. Tell configure to generate jit-reader.h from
1117 jit-reader.in.
1118 * configure: Re-generated by autoconf.
1119 * jit-reader.in: New file.
1120 * jit.c: Include jit-reader.h.
1121
1122 2011-11-20 Sanjoy Das <sdas@igalia.com>
1123
1124 * MAINTAINERS (Write After Approval): Add myself to the list.
1125
1126 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1127
1128 * findvar.c (read_frame_register_value): Respect value_offset
1129 of the register value. Remove big-endian special case.
1130
1131 2011-11-18 Tom Tromey <tromey@redhat.com>
1132
1133 PR build/7196:
1134 * remote.c (putpkt_for_catch_errors): New function.
1135 (remote_kill): Use it.
1136
1137 2011-11-18 Yao Qi <yao@codesourcery.com>
1138
1139 * breakpoint.c (create_breakpoint): Produce query message according to
1140 breakpoint's type.
1141 Allocate tracepoint per correct type.
1142 Don't check SALs for pending fast tracepoints.
1143 * tracepoint.c (process_tracepoint_on_disconnect): New.
1144 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1145
1146 2011-11-18 Yao Qi <yao@codesourcery.com>
1147
1148 * breakpoint.c (install_breakpoint): Add one more parameter so that
1149 update_global_location_list is called conditionally.
1150 (create_fork_vfork_event_catchpoint): Update.
1151 (create_syscall_event_catchpoint): Update.
1152 (create_breakpoint_sal): Update.
1153 (create_breakpoint_sal): Update. Call do_cleanups before
1154 install_breakpoint.
1155 * ada-lang.c (create_ada_exception_catchpoint): Update.
1156 * breakpoint.h (install_breakpoint): Update declaration.
1157
1158 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1159
1160 * spu-tdep.c (spu_return_value): Fix handling of
1161 TYPE_CALLING_CONVENTION annotation.
1162
1163 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1164
1165 * skip.c (skip_function_command): Work around uninitialized
1166 variable warning.
1167
1168 2011-11-16 David S. Miller <davem@davemloft.net>
1169
1170 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1171 'tv_usec' to long for printf since these fields have a type which
1172 varies.
1173
1174 2011-11-15 Doug Evans <dje@google.com>
1175
1176 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1177
1178 2011-11-15 Paul Koning <paul_koning@dell.com>
1179
1180 * python/py-type.c (typy_get_composite): New function.
1181 (typy_nonzero): New function.
1182 (typy_values): Rename from typy_fields.
1183 (typy_fields): New function.
1184 (typy_length): Raise exception if not struct, union, or enum type.
1185 (typy_getitem): Ditto.
1186 (typy_has_key): Ditto.
1187 (typy_make_iter): Ditto.
1188
1189 2011-11-15 Doug Evans <dje@google.com>
1190
1191 PR gdb/8367
1192 * NEWS: Mention new parameter basenames-may-differ.
1193 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1194 ! basenames_may_differ.
1195 * psymtab.c (lookup_partial_symtab): Ditto.
1196 * symtab.c (lookup_symtab): Ditto.
1197 (basenames_may_differ): New global.
1198 (_initialize_symtab): New parameter basenames-may-differ.
1199 * symtab.h (basenames_may_differ): Declare.
1200
1201 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1202 Luis Machado <lgustavo@codesourcery.com>
1203
1204 * auxv.c: Include observer.h.
1205 (auxv_inferior_data_cleanup): New.
1206 (invalidate_auxv_cache_inf): New.
1207 (invalidate_auxv_cache): New.
1208 (get_auxv_inferior_data): New.
1209 (auxv_inferior_data): New static global.
1210 (auxv_info): New structure.
1211 (target_auxv_search): Use get_auxv_inferior_data instead of
1212 target_read_alloc and don't free cached buffers.
1213 (fprint_target_auxv): Likewise
1214 (_initialize_auxv): Register per-inferior auxv cache and register
1215 observers to invalidate auxv cache when needed.
1216
1217 2011-11-14 Doug Evans <dje@google.com>
1218
1219 PR gdb/7200 Make "!" an alias for "shell".
1220 * NEWS: Add mention.
1221 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1222 adding "!" command, always add it.
1223 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1224 command of length one.
1225
1226 2011-11-14 Stan Shebs <stan@codesourcery.com>
1227 Kwok Cheung Yeung <kcy@codesourcery.com>
1228
1229 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1230 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1231 the minimum instruction size for fast tracepoints.
1232 * target.h (struct target_ops): Add new method
1233 to_get_min_fast_tracepoint_insn_len.
1234 (target_get_min_fast_tracepoint_insn_len): New.
1235 * target.c (update_current_target): Set up new target operation.
1236 * remote.c (remote_write_bytes_aux): Fix typo.
1237 (remote_get_min_fast_tracepoint_insn_len): New.
1238 (init_remote_ops): Initialize new field.
1239
1240 2011-11-14 Tom Tromey <tromey@redhat.com>
1241
1242 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1243 (encode_actions): Likewise.
1244
1245 2011-11-14 Yao Qi <yao@codesourcery.com>
1246
1247 * remote.c (struct remote_state): <install_in_trace> new field.
1248 (PACKET_InstallInTrace): New enum value.
1249 (remote_install_in_trace_feature): Support InstallInTrace.
1250 (remote_supports_install_in_trace): Likewise.
1251 (remote_protocol_features): Likewise.
1252 (_initialize_remote): Likewise.
1253 (remote_can_download_tracepoint): New.
1254 * target.h (struct target): New field
1255 `to_can_download_tracepoint'.
1256 (target_can_download_tracepoint): New macro.
1257 * target.c (update_current_target): Update.
1258 * breakpoint.h (struct bp_location): Add comment on field
1259 `duplicate'.
1260 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1261 and tracepoint.
1262 (remove_breakpoints): Don't remove tracepoints.
1263 (tracepoint_locations_match ): New.
1264 (breakpoint_locations_match): Call it.
1265 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1266 (download_tracepoint_locations): New.
1267 (update_global_location_list): Call it.
1268 * tracepoint.c (find_matching_tracepoint): Delete.
1269 (find_matching_tracepoint_location): Renamed from
1270 find_matching_tracepoint. Return bp_location rather than
1271 tracepoint.
1272 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1273 tracepoint is found.
1274
1275 2011-11-14 Yao Qi <yao@codesourcery.com>
1276
1277 * target.h (struct target): <to_download_tracepoint> Change type
1278 of parameter from tracepoint to bp_location.
1279 * target.c (update_current_target): Update.
1280 * tracepoint.c (start_tracing): Update.
1281 * remote.c (remote_download_tracepoint): Remove loop for each location
1282 of a tracepoint.
1283
1284 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1285
1286 * i386-nat.c (i386_insert_hw_breakpoint): Call
1287 i386_update_inferior_debug_regs.
1288 (i386_remove_hw_breakpoint): Likewise.
1289
1290 2011-11-14 Yao Qi <yao@codesourcery.com>
1291
1292 * breakpoint.c (init_raw_breakpoint): Call
1293 add_location_to_breakpoint to replace duplicated code.
1294 (add_location_to_breakpoint): Adjust the breakpoint's
1295 address prior to allocating a location.
1296
1297 2011-11-12 Matt Rice <ratmice@gmail.com>
1298
1299 * macrocmd.c (macro_no_macro_info): New function.
1300 (macro_expand_command): Use macro_no_macro_info.
1301 (macro_expand_once_command): Ditto.
1302 (info_macro_command): Add argument processing,
1303 move info_definitions_command here.
1304 (_initialize_macrocmd): Remove info definitions command.
1305 Add arguments to info macro help text.
1306 * NEWS: Replace info definitions command with new info macro options.
1307
1308 2011-11-11 Keith Seitz <keiths@redhat.com>
1309
1310 PR gdb/12843
1311 * linespec.c (locate_first_half): Keep ':' if it looks
1312 like it could be part of a Windows path starting with
1313 a drive letter.
1314
1315 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1316
1317 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1318 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1319
1320 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1321
1322 * target.c (target_waitstatus_to_string): Handle
1323 TARGET_WAITKIND_NO_RESUMED.
1324
1325 2011-11-10 Doug Evans <dje@google.com>
1326
1327 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1328 `need_fullname'.
1329 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1330 (map_partial_symbol_filenames): Ditto. All callers updated.
1331 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1332 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1333 parameter need_fullname.
1334
1335 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1336 * source.c (symtab_to_fullname): Ditto.
1337
1338 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1339 * gdb-demangle.h: ... here. New file.
1340 * demangle.c: #include "gdb-demangle.h".
1341 (_initialize_demangler): Use initialize_file_ftype for prototype.
1342 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1343 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1344 from utils.c
1345 * utils.c: Update. #include "gdb-demangle.h".
1346 * symtab.h (asm_demangle): Delete.
1347 (demangle): Move declaration next to use.
1348 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1349 * dwarf2read.c: #include "gdb-demangle.h".
1350 * gnu-v2-abi.c: Ditto.
1351 * jv-typeprint.c: Ditto.
1352 * mdebugread.c: Ditto.
1353 * p-typeprint.c: Ditto.
1354 * stabsread.c: Ditto.
1355 * printcmd.c: Ditto.
1356 (asm_demangle): Delete declaration.
1357 * tui/tui-stack.c: #include "gdb-demangle.h".
1358
1359 * python/py-type.c (typy_fields_items): Call check_typedef.
1360
1361 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1362
1363 * findvar.c (read_frame_register_value): Read the correct bytes
1364 from registers on big-endian architectures.
1365
1366 2011-11-10 Tom Tromey <tromey@redhat.com>
1367
1368 * procfs.c (load_syscalls): Make a cleanup.
1369 (open_procinfo_files): fd==0 is ok.
1370
1371 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1372
1373 * procfs.c (iterate_over_mappings): Call do_cleanups before
1374 returning.
1375
1376 2011-11-09 Doug Evans <dje@google.com>
1377
1378 * gdbtypes.c (check_typedef): Document that this function can
1379 throw an exception.
1380
1381 2011-11-09 Tom Tromey <tromey@redhat.com>
1382
1383 PR c++/13342:
1384 * valops.c (value_full_object): Return early if real type is
1385 smaller than the enclosing type.
1386
1387 2011-11-08 Yao Qi <yao@codesourcery.com>
1388
1389 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1390
1391 2011-11-08 Meador Inge <meadori@codesourcery.com>
1392
1393 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1394 register when the frame can't be determined.
1395 * arm-tdep.c (arm_analyze_prologue): Ditto.
1396
1397 2011-11-07 Stan Shebs <stan@codesourcery.com>
1398
1399 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1400
1401 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1402
1403 * infrun.c (handle_inferior_event): Minor reformatting.
1404
1405 2011-11-05 Doug Evans <dje@google.com>
1406
1407 * source.c (forget_cached_source_info_for_objfile): Move call to
1408 objfile->sf->qf->forget_cached_source_info outside of
1409 ALL_OBJFILE_SYMTABS loop.
1410 (forget_cached_source_info): Delete unused variable `s'.
1411
1412 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1413
1414 * i386-nat.c (dr_ref_count): Remove unused variable.
1415
1416 2011-11-05 Doug Evans <dje@google.com>
1417
1418 * main.c (captured_main): Set lim_at_start before calling
1419 make_command_stats_cleanup.
1420
1421 2011-11-04 Doug Evans <dje@google.com>
1422
1423 * utils.c: #include "timeval-utils.h".
1424 (cmd_stats): Rename start_time to start_cpu_time.
1425 New member start_wall_time.
1426 (report_command_stats): Report wall time.
1427 (make_command_stats_cleanup): Record start wall time.
1428
1429 2011-11-04 Tom Tromey <tromey@redhat.com>
1430
1431 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1432
1433 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1434
1435 * coff-pe-read.c: Include defs.h before bfd.h.
1436
1437 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1438
1439 PR Python/13345
1440
1441 * python/python.c (python_run_simple_file): Expand tilde in path.
1442
1443 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1444
1445 PR Python/13363
1446
1447 * python/py-type.c (typy_lookup_type): Do not return a type in
1448 an exception handler.
1449
1450 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1451 Eli Zaretskii <eliz@gnu.org>
1452
1453 * linux-nat.c (_initialize_linux_nat): Improve help
1454 for `info proc stat', `info proc status', `info proc cwd',
1455 `info proc cmdline' and `info proc exe'.
1456
1457 2011-11-02 Stan Shebs <stan@codesourcery.com>
1458
1459 String collection for tracepoints.
1460 * NEWS: Mention string collection.
1461 * common/ax.def (tracenz): New bytecode.
1462 * ax-gdb.h (trace_string_kludge): Declare.
1463 * ax-gdb.c: Include valprint.h and c-lang.h.
1464 (trace_string_kludge): New global.
1465 (gen_traced_pop): Add string case.
1466 (agent_command): Add string case.
1467 * tracepoint.h (decode_agent_options): Declare.
1468 * tracepoint.c: Include cli-utils.h.
1469 (decode_agent_options): New function.
1470 (validate_actionline): Call it.
1471 (encode_actions_1): Ditto.
1472 * target.h (struct target_ops): New method to_supports_string_tracing.
1473 (target_supports_string_tracing): New macro.
1474 * target.c (update_current_target): Add to_supports_string_tracing.
1475 * remote.c (struct remote_state): New field string_tracing.
1476 (remote_string_tracing_feature): New function.
1477 (remote_protocol_features): New feature tracenz.
1478 (remote_supports_string_tracing): New function.
1479 (init_remote_ops): Set to_supports_string_tracing.
1480
1481 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1482 Jan Kratochvil <jan.kratochvil@redhat.com>
1483
1484 * linux-nat.c: Include cli/cli-utils.h.
1485 (enum info_proc_what): New.
1486 (linux_nat_info_proc_cmd): Rename to ...
1487 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1488 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1489 status_f and stat_f from WHAT. Throw error on extra parameters.
1490 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1491 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1492 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1493 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1494 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1495 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1496 `info proc cmdline', `info proc exe' and `info proc all' as real
1497 subcommands of `info proc'.
1498
1499 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1500
1501 * Makefile.in: (SFILES): Add skip.c.
1502 (HFILES_NO_SRCDIR): Add skip.h.
1503 (COMMON_OBS): Add skip.o.
1504 * skip.h, skip.c: New.
1505 * breakpoint.h (set_default_breakpoint): Remove.
1506 (get_sal_arch): Declare.
1507 * breakpoint.c: Remove default_breakpoint_valid,
1508 default_breakpoint_address, default_breakpoint_symtab,
1509 default_breakpoint_line, default_breakpoint_pspace variables.
1510 (get_sal_arch): Make public.
1511 (set_default_breakpoint): Remove.
1512 (parse_breakpoint_sals, create_breakpoint, clear_command,
1513 decode_line_spec_1): Remove uses of default_breakpoint variables;
1514 replaced with function calls into stack.c.
1515 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1516 * cli/cli-cmds.c: Add skiplist.
1517 (init_cmd_lists): Initialize skiplist.
1518 (init_cli_cmds): Fix comment (classes of commands appear in
1519 alphabetical order).
1520 * infrun.c (handle_inferior_event): Add check that we don't step into
1521 a function whose pc is marked for skip.
1522 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1523 last_displayed_addr, last_displayed_symtab, last_displayed_line
1524 variables.
1525 (set_last_displayed_sal): New static function.
1526 (print_frame_info): Switch call to set_default_breakpoint to call to
1527 set_last_displayed_sal.
1528 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1529 get_last_displayed_pspace, get_last_displayed_addr,
1530 get_last_displayed_symtab, get_last_displayed_line,
1531 get_last_displayed_sal): New public functions.
1532 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1533 get_last_displayed_pspace, get_last_displayed_addr,
1534 get_last_displayed_symtab, get_last_displayed_line,
1535 get_last_displayed_sal): Declare.
1536
1537 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1538
1539 * MAINTAINERS (Write After Approval): Add myself to the list.
1540
1541 2011-10-29 Yao Qi <yao@codesourcery.com>
1542
1543 * infcmd.c (disconnect_command): Call disconnect_tracing.
1544
1545 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Code cleanup.
1548 * symtab.c (skip_prologue_sal): Code reformatting.
1549
1550 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1551
1552 PR symtab/13208
1553 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1554 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1555 SAI.
1556
1557 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1558
1559 * linux-nat.c (linux_nat_filter_event): Remove `options'
1560 parameter, and dead code that used it. If we're handling a
1561 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1562 in our lwp list, re-add it.
1563 (check_zombie_leaders): New.
1564 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1565 wait for children with WNOHANG, and always wait for all children.
1566 Don't check for no resumed children upfront. Simplify wait loop.
1567 Check for zombie thread group leaders after handling all wait
1568 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1569 unwaited-for children left.
1570 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1571 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1572 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1573 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1574
1575 2011-10-28 Sterling Augustine <saugustine@google.com>
1576
1577 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1578 * symtab.c (free_completion_list): New function.
1579 (do_free_completion_list): Likewise.
1580 (default_make_symbol_completion_list_break_on): New variable
1581 back_to. Call make_cleanup and discard_cleanups.
1582 (make_source_files_completion_list): Likewise.
1583
1584 2011-10-28 Paul Koning <paul_koning@dell.com>
1585
1586 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1587 * NEWS: Mention deep_items.
1588
1589 2011-10-28 Alen Skondro <askondro@gmail.com>
1590
1591 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1592 defined.
1593
1594 2011-10-27 Meador Inge <meadori@codesourcery.com>
1595
1596 * MAINTAINERS (Write After Approval): Add myself to the list.
1597
1598 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1599
1600 * value.h (read_frame_register_value): Add declaration.
1601 * findvar.c (read_frame_register_value): New function.
1602 (value_from_register): Use read_frame_register_value
1603 instead of get_frame_register_value + value_contents_copy
1604 to get value contents.
1605
1606 2011-10-27 Doug Evans <dje@google.com>
1607
1608 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1609 source_script_from_stream if it may have been found on the search path.
1610 * python/py-auto-load.c (source_section_scripts): Pass full path to
1611 source_python_script_for_objfile.
1612 * python/python.c (source_python_script): Delete stream parameter.
1613 All callers updated.
1614 (source_python_script_for_objfile): Ditto.
1615 * python/python-internal.h (source_python_script_for_objfile): Update.
1616 * python/python.h (source_python_script): Update.
1617
1618 2011-10-27 Tom Tromey <tromey@redhat.com>
1619
1620 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1621 (ada_sals_for_line): Remove declarations.
1622
1623 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1624
1625 Move unwind reasons to an external .def file
1626 * frame.c (frame_stop_reason_string): Rewrite using
1627 unwind_stop_reasons.def.
1628 * frame.h (enum unwind_stop_reason): Likewise.
1629 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1630 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1631 constants for bound-checking.
1632 * unwind_stop_reasons.def: New file.
1633 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1634 instead of a distinct value.
1635
1636 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1637
1638 PR python/13331
1639
1640 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1641 (convert_values_to_python): Return on Python tuple allocation
1642 failure. Return NULL on value conversion error.
1643
1644 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1645
1646 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1647 (bppy_set_task): Ditto.
1648 (bppy_delete_breakpoint): Ditto.
1649 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1650 (gdbpy_lookup_global_symbol): Ditto.
1651 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1652 * python/py-frame.c (frapy_is_valid): Ditto.
1653 (frame_info_to_frame_object): Ditto.
1654 * python/py-type.c (typy_lookup_type): Ditto.
1655 (typy_getitem): Ditto.
1656 (typy_has_key): Ditto.
1657 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1658
1659 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1660
1661 * gdbarch.h: Regenerate.
1662
1663 2011-10-26 Meador Inge <meadori@codesourcery.com>
1664
1665 * gdbarch.sh (function_list): Use 'pstring' when printing
1666 'gcore_bfd_target'.
1667 * gdbarch.c: Regenerate.
1668
1669 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1670
1671 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1672 and frame caches if PTID refers to all threads of a process.
1673
1674 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1675
1676 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1677 to create_breakpoint.
1678
1679 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1680
1681 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1682 (ppc_sysv_abi_push_dummy_call): Use it.
1683 (do_ppc_sysv_return_value): Likewise.
1684 (ppc64_sysv_abi_push_dummy_call): Likewise.
1685 (ppc64_sysv_abi_return_value): Likewise.
1686
1687 2011-10-26 Paul Koning <paul_koning@dell.com>
1688
1689 * python/lib/gdb/types.py (deepitems): New function.
1690
1691 2011-10-25 Paul Koning <paul_koning@dell.com>
1692
1693 PR python/13327
1694
1695 * python/py-value.c (value_to_value_object): Remove fetching of
1696 the value if it was lazy.
1697 (valpy_get_is_lazy): New function.
1698 (valpy_fetch_lazy): New function.
1699
1700 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1701
1702 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1703 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1704
1705 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1706
1707 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1708 event, in non-stop, if not stopping, make sure the new lwp has
1709 last_resume_kind set to resume_continue. Assert that when we're
1710 resuming the new lwp, its last_resume_kind is resume_continue.
1711
1712 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1713
1714 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1715 already set when marking the event thread as not executing in
1716 non-stop mode.
1717
1718 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1719
1720 * infrun.c (handle_inferior_event): Add debug output for
1721 TARGET_WAITKIND_NO_HISTORY.
1722
1723 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1724
1725 * NEWS: Move set/show extended-prompt to "New Options". Expand
1726 description. Fix typos.
1727
1728 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1729
1730 PR python/13310
1731
1732 * python/py-param.c (call_doc_function): Correctly deference on
1733 function exit.
1734
1735 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1736
1737 * ada-tasks.c (print_ada_task_info): Fix computation of
1738 number of tasks displayed in command output.
1739
1740 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1741 Ulrich Weigand <uweigand@de.ibm.com>
1742
1743 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1744 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1745 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1746 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1747 gdbarch_unwind_pc.
1748
1749 2011-10-20 Cary Coutant <ccoutant@google.com>
1750
1751 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1752 section to...
1753 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1754 flag. Adjust all callers.
1755 (process_psymtab_comp_unit): Remove adjustment for type section.
1756
1757 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1758
1759 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1760 arguments by adding OBJFILE. Instead of getting objfile from
1761 symbol's symtab, use new argument OBJFILE.
1762 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1763 arguments by adding OBJFILE.
1764 * gdb/dwarf2read.c (new_symbol_full): Change call to
1765 cp_scan_for_anonymous_namespaces to match new signature.
1766 * gdb/stabsread.c (define_symbol): Change call to
1767 cp_scan_for_anonymous_namespaces to match new signature.
1768
1769 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1770
1771 PR python/13308
1772 PR python/13309
1773
1774 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1775 leak.
1776 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1777 leak. Delete unused variables.
1778
1779 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1780
1781 PR python/12656
1782
1783 * python/py-frame.c (frapy_read_var): Use const struct *block.
1784 * python/py-type.c (typy_lookup_typename): Likewise.
1785 (typy_lookup_type): Likewise.
1786 (typy_legacy_template_argument): Likewise.
1787 (typy_template_argument): Likewise.
1788 (gdbpy_lookup_type): Likewise.
1789 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1790 * python/py-block.c (blpy_block_object): Likewise.
1791 (blpy_iter): Likewise.
1792 (blpy_get_start): Likewise.
1793 (blpy_get_end): Likewise.
1794 (blpy_get_function): Likewise.
1795 (blpy_get_superblock): Likewise.
1796 (set_block): Likewise.
1797 (block_to_block_object): Likewise.
1798 (block_object_to_block): Likewise.
1799 (blpy_is_valid): Likewise.
1800 (blpy_get_global_block): New function.
1801 (blpy_get_static_block): New function.
1802 (blpy_is_global): New function.
1803 (blpy_is_static): New function.
1804 * blockframe.c (block_innermost_frame): Likewise.
1805 * valops.c (value_of_variable): Likewise.
1806 * frame.h: Update prototypes.
1807 * python/python-internal.h: Likewise.
1808 * value.h: Likewise.
1809
1810 2011-10-19 Cary Coutant <ccoutant@google.com>
1811
1812 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1813 type_offset field.
1814
1815 2011-10-19 Cary Coutant <ccoutant@google.com>
1816
1817 * dwarf2read.c (peek_abbrev_code): New function.
1818 (dw2_get_file_names): Check for dummy compilation units.
1819 (create_debug_types_hash_table): Likewise.
1820 (process_psymtab_comp_unit): Likewise.
1821 (load_partial_comp_unit): Likewise.
1822 (load_full_comp_unit): Likewise.
1823
1824 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1825
1826 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1827 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1828 pt_phdr if PT_PHDR was found.
1829
1830 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1831
1832 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1833 type or "<unnamed type"> when there is no name assigned.
1834 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1835 avoid a sigint when no name is assigned.
1836
1837 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 Revert:
1840 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1841 * dwarf2expr.c (ctx_no_read_reg): New function.
1842 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1843 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1844 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1845 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1846
1847 2011-10-16 Doug Evans <dje@google.com>
1848
1849 * NEWS: Document python gdb.printing.register_pretty_printer's new
1850 `replace' parameter.
1851
1852 2011-10-14 Keith Seitz <keiths@redhat.com>
1853
1854 PR c++/13225
1855 * eval.c (evaluate_subexp_standard): Do not construct
1856 an array of types; pass the value array directly to
1857 find_overload_match.
1858 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1859 (rank_function): Take an array of values instead of types.
1860 (rank_one_type): Add struct value * parameter.
1861 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1862 (rank_function): For each argument, pass the argument's
1863 value to rank_one_type.
1864 (rank_one_type): Add VALUE parameter.
1865 If the parameter type is a pointer and the argument type
1866 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1867 VALUE is zero.
1868 Update all calls to rank_one_type, passing NULL for new
1869 VALUE parameter.
1870 * valarith.c (value_user_defined_cpp_op): Do not construct
1871 an array of types; pass the value array directly to
1872 find_overload_match.
1873 * valops.c (find_overload_method_list): Take an array of
1874 values instead of types.
1875 Save the type of OBJP for later use.
1876 Update calls to find_oload_champ, and find_oload_champ_namespace.
1877 (find_oload_champ_namespace): Take an array of values instead
1878 of types.
1879 (find_oload_champ_namespace_loop): Likewise.
1880 (find_oload_champ): Likewise.
1881 (classify_oload_match): Inspect all arguments
1882 until INCOMPATIBLE is found. Return the worst badness found
1883 otherwise.
1884 (compare_parameters): Update call to rank_one_type.
1885 * value.h (find_overload_match): Take an array of values instead
1886 of types.
1887
1888 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 Drop lazy lm_info reading.
1891 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1892 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1893 (lm_info_read): New function.
1894 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1895 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1896 lm_dynamic_from_link_map.
1897 (lm_next, lm_prev, lm_name): Remove.
1898 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1899 initialization incl. read_memory. No longer use lm_name.
1900 (svr4_free_so): Drop lm_info->lm freeing.
1901 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1902 explicit lm_addr and lm initialization.
1903 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1904 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1905 lm_name.
1906
1907 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 Paul Pluzhnikov <ppluzhnikov@google.com>
1909
1910 * defs.h (struct so_list): New forward declaration.
1911 (make_cleanup_free_so): New declaration.
1912 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1913 (svr4_free_so): Move the function here from downwards. Handle NULL
1914 so->lm_info.
1915 (svr4_free_library_list): New.
1916 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1917 Use more cleanups. Use new parameter ignore_first instead of
1918 ignore_first_link_map_entry.
1919 (svr4_current_sos): New variable ignore_first, initialize it. New
1920 variable back_to, use it for svr4_free_library_list protection.
1921 (svr4_free_so): Remove - move upwards.
1922 * utils.c: Include solist.h.
1923 (do_free_so, make_cleanup_free_so): New functions.
1924
1925 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 Fix internal error regression.
1928 * value.c (value_primitive_field): Handle value_optimized_out. Move
1929 packed bitfields comment.
1930
1931 2011-10-13 Tom Tromey <tromey@redhat.com>
1932
1933 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1934 always released.
1935
1936 2011-10-13 Tom Tromey <tromey@redhat.com>
1937
1938 * python/py-type.c (typy_has_key): Make 'field' const.
1939
1940 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1941
1942 * remote.c (remote_save_trace_data): Invert comparison.
1943
1944 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1945
1946 * tracepoint.c (trace_save_command): Use filename instead of
1947 args when printing.
1948
1949 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1952 if .size is 0.
1953
1954 2011-10-13 Yao Qi <yao@codesourcery.com>
1955
1956 PR gdb/12703
1957 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1958 whether insn is a 32-bit Thumb-2 instruction.
1959 (thumb_in_function_epilogue_p): Likewise.
1960 (thumb_get_next_pc_raw): Likewise.
1961 (arm_breakpoint_from_pc): Likewise.
1962
1963 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1964
1965 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1966 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1967 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1968 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1969 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1970 zero DATA.
1971 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1972 validity.
1973 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1974 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1975 clear DATA on zero SIZE.
1976
1977 2011-10-12 Doug Evans <dje@google.com>
1978
1979 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1980 header->first_die_offset here. All callers updated.
1981
1982 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 Fix compatibility with texinfo versions older than 4.12.
1985 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1986 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1987 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1988 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1989 * configure: Regenerate.
1990 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1991 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1992 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1993
1994 2011-10-12 Gary Benson <gbenson@redhat.com>
1995
1996 * breakpoint.h (pc_at_non_inline_function): Declare.
1997 * breakpoint.c (is_non_inline_function,
1998 pc_at_non_inline_function): New functions.
1999 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2000 if the stop is at a location where functions cannot be inlined.
2001
2002 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2003
2004 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2005 the core wanted them stopped, or if they now have a pending event
2006 to report.
2007 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2008 down to stop_and_resume_callback.
2009 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2010 having new pending events after calling linux_nat_filter_event.
2011
2012 2011-10-11 Sterling Augustine <saugustine@google.com>
2013
2014 * dwarf2read.c: Undo inadvertent changes in previous commit.
2015
2016 2011-10-11 Sterling Augustine <saugustine@google.com>
2017
2018 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2019 logic.
2020
2021 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2022
2023 * symfile.c (separate_debug_file_exists): Fix condition.
2024
2025 2011-10-11 David S. Miller <davem@davemloft.net>
2026
2027 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2028 static.
2029 * regcache.h (regcache_restore): Remove declaration.
2030
2031 * gdbarch.sh: New field 'long_long_align_bit'.
2032 * gdbarch.c, gdbarch.h: Regenerate.
2033 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2034 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2035
2036 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Revert this part of:
2039 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 Support @entry in input expressions.
2041 * c-exp.y (ENTRY, unknown_cpp_name): New.
2042 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2043 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2044 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2045 (name_not_typename: ENTRY): New.
2046 (yylex): Recognize ENTRY.
2047
2048 Reimplement @entry in input expressions.
2049 * c-exp.y (ENTRY): New.
2050 (variable: name_not_typename ENTRY): New.
2051 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2052
2053 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2054
2055 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2056 parent and child's pids as soon as we detect a clone event.
2057 Adjust another debug message.
2058
2059 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2060
2061 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2062 not zombie instead of reading the whole file.
2063
2064 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 Fix separate debuginfo warning with "remote:" access.
2067 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2068 * symfile.c (get_file_crc): New function with the code moved from ...
2069 (separate_debug_file_exists): ... this function, specifically variables
2070 buffer and count. New variable verified_as_different, set it. Remove
2071 file_crc initialization. Verify also if both files are not the same
2072 manually, if needed.
2073
2074 2011-10-11 Yao Qi <yao@codesourcery.com>
2075
2076 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2077 to get address.
2078
2079 2011-10-10 Doug Evans <dje@google.com>
2080
2081 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2082 libthread_db when we load libpthread or the main symbol file.
2083 (thread_db_inferior_created): New function.
2084 (_initialize_thread_db): Attach inferior_created observer.
2085 * linux-nat.c (linux_child_post_attach): Remove call to
2086 check_for_thread_db.
2087 (linux_child_post_startup_inferior): Ditto.
2088 * objfiles.h (OBJF_MAINLINE): Define.
2089 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2090 allocate_objfile when appropriate.
2091
2092 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2093
2094 PR gdb/13218
2095 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2096 Remove unused variables.
2097 (get_linux_version): Remove function.
2098 (_initialize_arm_linux_nat): Do not call it.
2099
2100 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2101
2102 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2103 new clone lwp if the core asked it to stop. Don't pass on
2104 unexpected signals to the new clone; leave them pending instead.
2105
2106 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2107
2108 * linux-nat.c (resume_lwp): Remove redundant debug output.
2109
2110 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2111
2112 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2113 last_resume_kind before clearing it, and use the copy instead to
2114 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2115 resume_clear_callback in the non-stop path too.
2116
2117 2011-10-09 Yao Qi <yao@codesourcery.com>
2118
2119 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2120 Honor OPTIONS and VAL's type.
2121 (common_val_print, value_print): Update to pass one more parameter.
2122
2123 2011-10-09 Doug Evans <dje@google.com>
2124
2125 Add new "alias" command.
2126 * NEWS: Mention new command.
2127 * command.h (valid_user_defined_cmd_name_p): Declare.
2128 * defs.h (make_cleanup_dyn_string_delete): Declare.
2129 * utils.c: #include "dyn-string.h".
2130 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2131 * cli/cli-cmds.c: #include "dyn-string.h".
2132 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2133 (init_cli_cmds): Add new command.
2134 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2135
2136 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Fix compatibility with older GCCs.
2139 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2140 * stack.c (read_frame_arg): Initialize val_deref.
2141
2142 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2143
2144 Entry values NEWS entries, DWARF disassembly support.
2145 * NEWS: New entry values entry.
2146 (set print entry-values, show print entry-values)
2147 (set debug entry-values, show debug entry-values): New entries.
2148 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2149 indent. Remove variable start. Move header printing out. Respect
2150 INDENT. Support DW_OP_GNU_entry_value.
2151 (locexpr_describe_location_1): Move the header printing here, extend
2152 the disassemble_dwarf_expression passed parameters.
2153
2154 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2155
2156 Display @entry parameter values even for references.
2157 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2158 coerce_ref_if_computed.
2159 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2160 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2161 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2162 existing push_dwarf_reg_entry_value call. Add new detection calling
2163 dwarf_block_to_dwarf_reg_deref. Update the error message.
2164 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2165 * dwarf2expr.h
2166 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2167 parameter deref_size, describe it in the comment.
2168 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2169 (dwarf_block_to_dwarf_reg_deref): New declaration.
2170 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2171 deref_size, describe it in the function comment. New variables
2172 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2173 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2174 describe it in the function comment. Fetch the alternative block
2175 accoring to DEREF_SIZE.
2176 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2177 (entry_data_value_free_closure, entry_data_value_funcs): New.
2178 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2179 outer_val, target_val, val and addr. Try to fetch and create also
2180 referenced value content.
2181 (pieced_value_funcs): NULL value for coerce_ref.
2182 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2183 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2184 coerce_ref_if_computed.
2185 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2186 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2187 * stack.c (read_frame_arg): Compare also dereferenced values.
2188 * value.c (value_computed_funcs): Make the parameter v const, use
2189 value_lval_const for it.
2190 (value_lval_const, coerce_ref_if_computed): New function.
2191 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2192 * value.h (struct lval_funcs): New field coerce_ref.
2193 (value_computed_funcs): Make the parameter v const.
2194 (value_lval_const, coerce_ref_if_computed): New declarations.
2195
2196 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 Support @entry in input expressions.
2199 * c-exp.y (ENTRY, unknown_cpp_name): New.
2200 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2201 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2202 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2203 (name_not_typename: ENTRY): New.
2204 (yylex): Recognize ENTRY.
2205 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2206 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2207 Likewise.
2208 * parse.c (operator_length_standard): Likewise.
2209 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2210
2211 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2212
2213 Display referenced values in backtraces.
2214 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2215 * stack.c (print_frame_arg): Likewise.
2216
2217 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 Make some lval_funcs methods to default on NULL.
2220 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2221 NULL.
2222 (value_assign): Check if lval_computed write method is NULL.
2223 * value.h (struct lval_funcs): Comment NULL values for read and write
2224 methods.
2225
2226 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 Display @entry parameter values (without references).
2229 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2230 New functions.
2231 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2232 New declarations.
2233 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2234 entry record.
2235 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2236 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2237 functions.
2238 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2239 (loclist_read_variable_at_entry): New function.
2240 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2241 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2242 DW_AT_location, call dwarf_block_to_sp_offset for it.
2243 * frame.h (print_entry_values_no, print_entry_values_only)
2244 (print_entry_values_preferred, print_entry_values_if_needed)
2245 (print_entry_values_both, print_entry_values_compact)
2246 (print_entry_values_default, print_entry_values): New declarations.
2247 (struct frame_arg): New field entry_kind.
2248 (read_frame_arg): New parameter entryargp.
2249 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2250 arg->entry_kind. Optionally print the `@entry' suffix.
2251 (list_args_or_locals): New variable entryarg, initialize it.
2252 Initialize also entry_kind of arg and entryarg. Conditionalize
2253 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2254 xfree for entryarg.error.
2255 * stack.c (print_entry_values_no, print_entry_values_only)
2256 (print_entry_values_preferred, print_entry_values_if_needed)
2257 (print_entry_values_both, print_entry_values_compact)
2258 (print_entry_values_default, print_entry_values_choices)
2259 (print_entry_values): New variables.
2260 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2261 print the `@entry' suffix, possibly in combination for
2262 print_entry_values_compact.
2263 (read_frame_arg): New parameter entryargp, new variables entryval,
2264 entryval_error and val_equal. Read in also entryargp, respect
2265 print_entry_values, compare the values using val_equal, fill in also
2266 argp->entry_kind (together with entryargp->entry_kind).
2267 (print_frame_args): New variable entryarg, initialize it.
2268 Conditionalize print_frame_arg for arg, add print_frame_arg for
2269 entryarg. Call xfree for entryarg.error.
2270 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2271 * symtab.h (struct symbol_computed_ops): New field
2272 read_variable_at_entry.
2273
2274 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2275
2276 Code reshuffle.
2277 * frame.h (struct frame_arg): New definition.
2278 (read_frame_arg): New declaration.
2279 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2280 (list_args_or_locals): ... the code here. New variable arg, call
2281 read_frame_arg and list_arg_or_local with it. Unify the
2282 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2283 arg.error.
2284 * stack.c (print_frame_arg): New functiom from the code of
2285 print_frame_args.
2286 (read_frame_arg): New function.
2287 (print_frame_args): Remove variable val. New variable arg, call
2288 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2289
2290 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 Protect entry values against self tail calls.
2293 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2294 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2295
2296 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 Recognize virtual tail call frames.
2299 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2300 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2301 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2302 * dwarf2-frame-tailcall.c: New file.
2303 * dwarf2-frame-tailcall.h: New file.
2304 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2305 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2306 REGS.PREV only after CIE execution.
2307 (struct dwarf2_frame_cache): New field tailcall_cache.
2308 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2309 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2310 parts, try to find entry_cfa_sp_offset. Call
2311 dwarf2_tailcall_sniffer_first.
2312 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2313 when appropriate.
2314 (dwarf2_frame_dealloc_cache): New function.
2315 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2316 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2317 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2318 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2319 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2320 * dwarf2loc.c (func_addr_to_tail_call_list)
2321 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2322 (call_site_find_chain_1, call_site_find_chain): New.
2323 * dwarf2loc.h (struct call_site_chain): New.
2324 (call_site_find_chain): New declaration.
2325 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2326 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2327 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2328 * stack.c (frame_info): Support also TAILCALL_FRAME.
2329
2330 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Tail call sites reader implementation.
2333 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2334 fill in TYPE_TAIL_CALL_LIST.
2335 * gdbtypes.h (struct func_type): New field tail_call_list.
2336 (struct call_site): New field tail_call_next.
2337 (TYPE_TAIL_CALL_LIST): New definition.
2338
2339 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Implement basic support for DW_TAG_GNU_call_site.
2342 * block.c: Include gdbtypes.h and exceptions.h.
2343 (call_site_for_pc): New function.
2344 * block.h (call_site_for_pc): New declaration.
2345 * defs.h: Include hashtab.h.
2346 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2347 declarations.
2348 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2349 ctx_no_push_dwarf_reg_entry_value.
2350 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2351 (dwarf_block_to_dwarf_reg): New function.
2352 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2353 (ctx_no_push_dwarf_reg_entry_value): New function.
2354 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2355 push_dwarf_reg_entry_value.
2356 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2357 declarations.
2358 * dwarf2loc.c: Include gdbcmd.h.
2359 (dwarf_expr_ctx_funcs): New forward declaration.
2360 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2361 (dwarf_expr_reg_to_entry_parameter)
2362 (dwarf_expr_push_dwarf_reg_entry_value): New.
2363 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2364 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2365 (needs_dwarf_reg_entry_value): New function.
2366 (needs_frame_ctx_funcs): Install it.
2367 (_initialize_dwarf2loc): New function.
2368 * dwarf2loc.h (entry_values_debug): New declaration.
2369 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2370 (read_call_site_scope): New forward declaration.
2371 (process_full_comp_unit): Copy call_site_htab.
2372 (process_die): Support DW_TAG_GNU_call_site.
2373 (read_call_site_scope): New function.
2374 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2375 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2376 (cleanup_htab): Delete.
2377 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2378 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2379 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2380 FIELD_LOC_KIND_DWARF_BLOCK.
2381 * gdbtypes.h (enum field_loc_kind): New entry
2382 FIELD_LOC_KIND_DWARF_BLOCK.
2383 (struct main_type): New loc entry dwarf_block.
2384 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2385 (TYPE_FIELD_DWARF_BLOCK): New.
2386 * python/py-type.c: Include dwarf2loc.h.
2387 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2388 internal_error call on unknown FIELD_LOC_KIND.
2389 * symtab.h (struct symtab): New field call_site_htab.
2390 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2391 (core_addr_hash, core_addr_eq): New functions.
2392
2393 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2394
2395 Code reshuffle.
2396 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2397 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2398 calling_convention under func_stuff there.
2399 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2400 (init_type) <TYPE_CODE_FUNC>: Likewise.
2401 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2402 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2403 * gdbtypes.h (enum type_specific_kind): Change
2404 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2405 (struct main_type) <type_specific>: Change calling_convention to
2406 func_stuff. Move calling_convention to ...
2407 (struct func_type): ... this new struct.
2408 (INIT_FUNC_SPECIFIC): New #define.
2409 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2410
2411 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2414 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2415 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2416 ctx->ref_addr_size. Handle its invalid value.
2417 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2418 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2419 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2420 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2421 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2422 (dwarf2_per_cu_ref_addr_size): New function.
2423
2424 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 Code cleanup.
2427 * dwarf2read.c (per_cu_header_read_in): New function.
2428 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2429 variables cu_header_local and cu_headerp.
2430
2431 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2432
2433 Fix initial language detection with -readnow.
2434 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2435 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2436 searches only for global symbols.
2437
2438 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2439
2440 Fix printed anonymous struct name.
2441 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2442 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2443 (anonymous_struct_prefix): New function.
2444 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2445 (dwarf2_name): Strip for anonymous structs any prefixes.
2446
2447 2011-10-07 Doug Evans <dje@google.com>
2448
2449 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2450 `replace'.
2451
2452 * python/lib/gdb/printing.py: Whitespace cleanup.
2453
2454 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2455 warning.
2456
2457 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2458
2459 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2460 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2461 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2462 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2463 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2464 (arm_linux_remove_watchpoint): Adjust.
2465 * i386-linux-nat.c (i386_linux_dr_set_control)
2466 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2467 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2468 (ia64_linux_remove_watchpoint): Adjust.
2469 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2470 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2471 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2472 (ppc_linux_insert_mask_watchpoint)
2473 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2474 (ppc_linux_remove_watchpoint): Adjust.
2475 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2476 Adjust.
2477
2478 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2479
2480 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2481 (clear_win32_environment): New function for Cygwin to clear out
2482 Win32 environment.
2483 (windows_create_inferior): Prepare new environment from in_env
2484 for Cygwin, too.
2485
2486 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2487
2488 PR python/13264
2489 * python/py-value.c (valpy_call): Check that arguments are
2490 a tuple.
2491 (is_intlike): Remove call to CHECK_TYPEDEF.
2492 (valpy_nonzero): Catch GDB exceptions.
2493 (valpy_absolute): Ditto.
2494 (valpy_lazy_string): Ditto.
2495 (valpy_call): Ditto.
2496 (valpy_get_is_optimized_out): Ditto.
2497 (valpy_long): Ditto.
2498 (valpy_float): Ditto.
2499 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2500 (valpy_richcompare): Ditto.
2501
2502 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2503
2504 * inferior.h (disable_randomization): Declare.
2505 * infrun.c (disable_randomization): New global variable.
2506 (show_disable_randomization): New function.
2507 (set_disable_randomization): Likewise.
2508 (_initialize_infrun): Install set/show disable-randomization
2509 commands.
2510 * linux-nat.c (disable_randomization): Remove.
2511 (show_disable_randomization): Likewise.
2512 (set_disable_randomization): Likewise.
2513 (_initialize_linux_nat): No longer install set/show
2514 disable-randomization commands here.
2515 (linux_nat_supports_disable_randomization): New function.
2516 (linux_nat_add_target): Install it.
2517 * remote.c (PACKET_QDisableRandomization): New enum value.
2518 (remote_protocol_packets): Support QDisableRandomization.
2519 (_initialize_remote): Likewise.
2520 (remote_supports_disable_randomization): New function.
2521 (init_remote_ops): Install it.
2522 (extended_remote_supports_disable_randomization): New function.
2523 (init_extended_remote_ops): Install it.
2524 (extended_remote_disable_randomization): New function.
2525 (extended_remote_create_inferior_1): Call it.
2526 * target.h (struct target_ops): Add to_supports_disable_randomization.
2527 (target_supports_disable_randomization): Add prototype.
2528 * target.c (target_supports_disable_randomization): New function.
2529 (find_default_supports_disable_randomization): Likewise.
2530 (init_dummy_target): Install it.
2531
2532 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2533
2534 Allow Python notification of new object-file loadings.
2535 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2536 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2537 Add build rule for this file.
2538 * python/py-event.h (emit_new_objfile_event): New prototype.
2539 (newobjfile): New Python event emitter.
2540 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2541 Python event registry.
2542 * python/py-inferior.c: Include objfiles.h
2543 (python_new_objfile): New function.
2544 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2545 observers.
2546 * python/py-newobjfileevent.c: New file.
2547 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2548 prototype.
2549 * python/python.c (_initialize_python): Add
2550 gdbpy_initialize_new_objfile_event call.
2551 * NEWS: Add item for new Python event "gdb.newobjfile"
2552
2553 2011-10-05 Tristan Gingold <gingold@adacore.com>
2554
2555 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2556 Extract the ravenscar task name from the symbol for the atcb.
2557
2558 2011-10-04 Paul Koning <paul_koning@dell.com>
2559
2560 * python/py-type.c (typy_make_iter): Add forward declaration.
2561 (typy_fields_items): Use the gdb.Type iterator.
2562
2563 2011-10-04 Paul Koning <paul_koning@dell.com>
2564
2565 * NEWS: Add entry for Python gdb.Type mapping methods.
2566
2567 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2568
2569 PR python/12691: Add the inferior to Python exited event
2570 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2571 to exited_event.
2572 * python/py-event.h (emit_exited_event): Likewise
2573 * python/-inferior.c (python_inferior_exit): Likewise
2574
2575 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2576
2577 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2578 in output of -ada-task-info GDB/MI command.
2579
2580 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2581
2582 * ada-lang.h (struct inferior): Declare.
2583 (print_ada_task_info): Add declaration.
2584 * ada-tasks.c (print_ada_task_info): Make non-static.
2585 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2586 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2587 * mi/mi-main.c: #include "ada-lang.h".
2588 (mi_cmd_list_features): Add "ada-task-info" to the list
2589 of supported features.
2590 (mi_cmd_ada_task_info): New function.
2591
2592 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2593
2594 * python/python.c (python_run_simple_file): New function.
2595 (source_python_script, source_python_script_for_objfile):
2596 Replace call to PyRun_SimpleFile by call to
2597 python_run_simple_file.
2598
2599 2011-10-03 Paul Koning <paul_koning@dell.com>
2600
2601 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2602 (value_to_value_object): Fetch value if it was lazy.
2603
2604 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 Code cleanup.
2607 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2608 Rearrange the code for it.
2609
2610 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2611
2612 * breakpoint.c (bkpt_print_recreate): Add call to
2613 print_recreate_thread.
2614
2615 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2616
2617 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2618 PTRACE_GETFDPIC_INTERP): Define.
2619
2620 2011-09-28 Yao Qi <yao@codesourcery.com>
2621
2622 * symfile.c (add_symbol_file_command): Update message on usage.
2623
2624 2011-09-28 Paul Koning <paul_koning@dell.com>
2625
2626 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2627 (typy_length, typy_get, typy_has_key, typy_make_iter)
2628 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2629 (typy_iterator_iter, typy_iterator_iternext)
2630 (typy_iterator_dealloc): New functions to implement standard
2631 Python mapping methods on gdb.Type object.
2632 (gdb.TypeIterator): New Python type.
2633 * python/python-internal.h (gdbpy_iter_kind): New enum.
2634
2635 2011-09-28 David S. Miller <davem@davemloft.net>
2636
2637 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2638 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2639 * sparc-tdep.c (sparc_complex_floating_p): New function.
2640 (sparc32_store_arguments): Handle complex floats.
2641 (sparc32_extract_return_value): Likewise.
2642 (sparc32_store_return_value): Likewise.
2643 (sparc32_stabs_argument_has_addr): Likewise.
2644 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2645 (sparc64_store_floating_fields): Handle complex floats.
2646 (sparc64_store_arguments): Likewise.
2647 (sparc64_store_return_value): Likewise.
2648
2649 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2650
2651 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2652 before the change on 2006-12-09.
2653 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2654 generates the environment block for CreateProcessA, modulo the
2655 Cygwin-specific parts that are not needed here.
2656
2657 2011-09-27 Tristan Gingold <gingold@adacore.com>
2658
2659 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2660 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2661 (darwin_solib_get_all_image_info_addr_at_init): New function.
2662 (darwin_solib_read_all_image_info_addr): Likewise.
2663 (darwin_solib_create_inferior_hook): Use the above two functions.
2664 * darwin-nat.c (darwin_execvp): Renames retval to res.
2665 (darwin_read_write_inferior): Update comment.
2666 (darwin_read_dyld_info): New function.
2667 (darwin_xfer_partial): Handle DYLD_INFO.
2668
2669 2011-09-27 Stan Shebs <stan@codesourcery.com>
2670
2671 Add return address collection for tracepoints.
2672 * tracepoint.c (encode_actions_1): Add case for $_ret.
2673 (validate_actionline): Check for $_ret.
2674 (trace_dump_actions): Ditto.
2675 * ax-gdb.h (gen_trace_for_return_address): Declare.
2676 * ax-gdb.c: Include arch-utils.h.
2677 (gen_trace_for_return_address): New function.
2678 (agent_command): Add return address special case.
2679 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2680 (amd64_gen_return_address): New function.
2681 (amd64_init_abi): Call it.
2682 * i386-tdep.c: Include ax.h and ax-gdb.h.
2683 (i386_gen_return_address): New function.
2684 (i386_init_abi): Call it.
2685 * arch-utils.h (default_gen_return_address): Declare.
2686 * arch-utils.c (default_gen_return_address): New function.
2687 * gdbarch.sh (gen_return_address): New method.
2688 * gdbarch.h, gdbarch.c: Regenerate.
2689
2690 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2691
2692 PR gdb/13079
2693 * i386-tdep.c (i386_frame_align): New.
2694 (i386_gdbarch_init): Use i386_frame_align.
2695
2696 2011-09-23 Yao Qi <yao@codesourcery.com>
2697
2698 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2699 to get address.
2700
2701 2011-09-22 Tristan Gingold <gingold@adacore.com>
2702
2703 * fork-child.c (fork_inferior): Add exec_fun parameter.
2704 Call exec_fun or execvp.
2705 * inferior.h: Adjust prototype.
2706 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2707 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2708 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2709 * procfs.c (procfs_create_inferior): Ditto.
2710 * darwin-nat.c (darwin_execvp): New function.
2711 (darwin_create_inferior): Use it.
2712
2713 2011-09-22 Yao Qi <yao@codesourcery.com>
2714
2715 * infrun.c (context_switch): Print debug message when switching to
2716 a different thread.
2717
2718 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2721 complex and vector types.
2722 (s390_return_value_convention): Likewise.
2723
2724 (s390_value_from_register): Call check_typedef.
2725 (extend_simple_arg): Likewise.
2726 (alignment_of): Likewise.
2727 (s390_push_dummy_call): Likewise.
2728 (s390_return_value): Likewise.
2729
2730 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2731
2732 * event-top.c (async_disconnect): If an exception is thrown from
2733 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2734 catch_errors.
2735 * top.c (quit_cover): Return void and take no arguments.
2736 * top.h (quit_cover): Update prototype.
2737
2738 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2739
2740 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2741 current_uiout, not uiout.
2742
2743 2011-09-19 Doug Evans <dje@google.com>
2744
2745 * python/py-auto-load.c (source_section_scripts): Fix file
2746 descriptor leak.
2747 * python/python.c (source_python_script_for_objfile): Tweak comments.
2748
2749 2011-09-18 Yao Qi <yao@codesourcery.com>
2750 Ulrich Weigand <ulrich.weigand@linaro.org>
2751
2752 Support displaced stepping for Thumb 16-bit insns.
2753 * arm-tdep.c (THUMB_NOP) Define.
2754 (thumb_copy_unmodified_16bit): New.
2755 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2756 (thumb_copy_alu_reg): New.
2757 (arm_copy_svc): Move some common code to ...
2758 (install_svc): ... here. New.
2759 (thumb_copy_svc): New.
2760 (install_pc_relative): New.
2761 (thumb_copy_pc_relative_16bit): New.
2762 (thumb_decode_pc_relative_16bit): New.
2763 (thumb_copy_16bit_ldr_literal): New.
2764 (thumb_copy_cbnz_cbz): New.
2765 (cleanup_pop_pc_16bit_all): New.
2766 (thumb_copy_pop_pc_16bit): New.
2767 (thumb_process_displaced_16bit_insn): New.
2768 (thumb_process_displaced_32bit_insn): New.
2769 (thumb_process_displaced_insn): process thumb instruction.
2770
2771 Support displaced stepping for Thumb 32-bit insns.
2772 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2773 (thumb2_copy_preload): New.
2774 (thumb2_copy_copro_load_store): New.
2775 (thumb2_copy_b_bl_blx): New.
2776 (thumb2_copy_alu_imm): New.
2777 (thumb2_copy_load_reg_imm): New.
2778 (thumb2_copy_load_literal): New
2779 (thumb2_copy_block_xfer): New.
2780 (thumb_32bit_copy_undef): New.
2781 (thumb_32bit_copy_unpred): New.
2782 (thumb2_decode_ext_reg_ld_st): New.
2783 (thumb2_decode_svc_copro): New.
2784 (decode_thumb_32bit_store_single_data_item): New.
2785 (thumb_copy_pc_relative_32bit): New.
2786 (thumb_decode_pc_relative_32bit): New.
2787 (decode_thumb_32bit_ld_mem_hints): New.
2788 (thumb2_copy_table_branch): New
2789 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2790 instructions.
2791
2792 2011-09-18 Yao Qi <yao@codesourcery.com>
2793
2794 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2795 (install_b_bl_blx): Likewise.
2796
2797 2011-09-17 Yao Qi <yao@codesourcery.com>
2798
2799 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2800 (install_load_store): ... this. New.
2801 Change parameter BYTE to SIZE.
2802 (arm_copy_ldr_str_ldrb_strb): Update caller.
2803 (arm_decode_ld_st_word_ubyte): Update caller.
2804
2805 2011-09-17 Yao Qi <yao@codesourcery.com>
2806
2807 * infrun.c (displaced_step_fixup): Move some code ...
2808 (displaced_step_restore): ... here. New function.
2809 (handle_inferior_event): Cleanup displaced stepping state for both
2810 child and parent when get forked or vforked event.
2811 * regcache.c (get_thread_arch_aspace_regcache): New function.
2812 get_thread_arch_regcache (): Call it.
2813
2814 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2815
2816 * ada-tasks.c (print_ada_task_info): New function, merging
2817 short_task_info and info_tasks together. Reimplement using
2818 ui-out instead of printing to stdout directly. Move the code
2819 building and checking the task list here, instead of leaving it
2820 in info_tasks_command.
2821 (info_task): Move the code building and checking the task
2822 list here, instead of leaving it in info_tasks_command.
2823 (info_tasks_command): Delete code building and checking
2824 the task list - moved elsewhere. Update calls to info_tasks
2825 and info_task.
2826
2827 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2828
2829 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2830
2831 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2832
2833 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2834
2835 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2836
2837 * ada-lang.h (ada_build_task_list): Remove parameter
2838 `warn_if_null'.
2839 * ada-tasks.c (ada_build_task_list): Remove parameter
2840 `warn_if_null'. Adjust implementation and documentation.
2841 (valid_task_id, ada_get_environment_task)
2842 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2843 (info_tasks_command): Adjust implementation.
2844 (task_command): Likewise.
2845 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2846 to ada_build_task_list.
2847
2848 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2849
2850 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2851 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2852 (ada_tasks_inferior_data_handle): New static global.
2853 (get_ada_tasks_inferior_data): New function.
2854 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2855 (ada_get_environment_task, iterate_over_live_ada_tasks)
2856 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2857 Adjust.
2858 (ada_set_current_inferior_known_tasks_addr): New function.
2859 (read_known_tasks, ada_build_task_list, short_task_info)
2860 (info_tasks, info_task, info_tasks_command, task_command_1)
2861 (task_command, ada_task_list_changed): Adjust.
2862 (ada_tasks_invalidate_inferior_data): New function.
2863 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2864 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2865 * ada-lang.h (struct inferior): Add declaration.
2866 (ada_task_list_changed): Update profile.
2867 * remote-wtx-pd.c: #include "inferior.h".
2868 (switch_to_pd_internal): Update call to ada_task_list_changed.
2869
2870 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2871
2872 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2873 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2874 (atcb_fieldno): Delete these static globals.
2875 (struct ada_tasks_pspace_data): New struct.
2876 (ada_tasks_pspace_data_handle): New static global.
2877 (get_ada_tasks_pspace_data): New function.
2878 (ada_tasks_invalidate_pspace_data): New function.
2879 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2880 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2881 (_initialize_tasks): Create this module's per-progspace
2882 data handle.
2883
2884 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2885
2886 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2887
2888 2011-09-16 Tristan Gingold <gingold@adacore.com>
2889
2890 * fork-child.c (fork_inferior): Update comment. Use alloca
2891 instead of xmalloc for argv. Move len and shell_command
2892 declarations in the block where they are used.
2893 Only call execvp. Factorize failure code.
2894
2895 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2896
2897 Code cleanup.
2898 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2899 `exp_element' instead of an element of the same and make the function
2900 static.
2901 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2902 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2903 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2904 Change argument of `write_exp_elt' function call.
2905 Remove extra spaces from comments.
2906 * parser-defs.h (write_exp_elt): Remove prototype.
2907
2908 2011-09-15 Paul Koning <paul_koning@dell.com>
2909
2910 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2911 count of item appended to list.
2912 * python/py-type.c (typy_fields): Likewise.
2913
2914 2011-09-15 Paul Koning <paul_koning@dell.com>
2915
2916 * MAINTAINERS (Write After Approval): Add myself to the list.
2917
2918 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2919
2920 PR threads/12628
2921 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2922 processes with multiple threads.
2923 (inf_has_multiple_thread_cb): New function.
2924 (inf_has_multiple_threads): New function.
2925
2926 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2927
2928 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2929 * python/py-inferior.c (GdbMethods): New Python method definition.
2930
2931 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2932
2933 Handle multiple breakpoint hits in Python interface:
2934 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2935 variable to breakpoints.
2936 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2937 bps instead of single breakpoint. Fix some space typos.
2938 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2939 variable to breakpoints.
2940
2941 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2942
2943 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2944 note if the breakpoint is internal.
2945
2946 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2947
2948 * MAINTAINERS (Write After Approval): Add myself to the list
2949
2950 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2951
2952 * infrun.c (prepare_for_detach, wait_for_inferior)
2953 (fetch_inferior_event): Don't flush the register cache.
2954 * remote.c (struct stop_reply) <regcache>: Add comment.
2955
2956 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2957
2958 Remove excessive DWARF expressions memory duplication.
2959 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2960 for block.data.
2961 (indirect_pieced_value): Remove variable result. Remove variable
2962 back_to and its use for baton.data.
2963 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2964 block.data.
2965 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2966 Update the function comment.
2967
2968 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2969
2970 * inferior.h (ALL_INFERIORS): New.
2971 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2972 for a stopped thread.
2973 (thread_db_find_new_threads): Look for threads in all inferiors.
2974
2975 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2976
2977 * breakpoint.c (update_watchpoint): Handle the case of the
2978 watchpoint to update not being in the breakpoint list yet.
2979 (hw_watchpoint_use_count): New, factored out from
2980 hw_watchpoint_used_count.
2981 (hw_watchpoint_used_count): Rename to ...
2982 (hw_watchpoint_used_count_others): ... this. Add `except'
2983 parameter. Don't count resources of `except'. Use
2984 hw_watchpoint_use_count.
2985
2986 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2987
2988 * gdbthread.h (enum thread_state): Moved here.
2989 (struct thread_info): Rename `executing_' field to `executing' and
2990 `state_' to `state'.
2991 * thread.c (enum thread_state): Moved to gdbthread.h.
2992 (new_thread, add_thread_silent, delete_thread_1)
2993 (any_live_thread_of_process, thread_alive, set_running)
2994 (set_running, is_thread_state, any_running, is_executing)
2995 (set_executing, finish_thread_state, print_thread_info)
2996 (do_captured_thread_select): Adjust.
2997
2998 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3001 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3002
3003 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3004 Matt Rice <ratmice@gmail.com>
3005
3006 PR gdb/13175
3007
3008 * interps.c (struct interp) <interpreter_out>: Delete field.
3009 (interp_new): Remove the data and uiout parameters and adjust.
3010 (interp_set): Only set the current_uiout from the interpreter's
3011 uiout after initializing the interpreter. Adjust call to
3012 init_proc.
3013 (interp_ui_out): Adjust to call procs->ui_out_proc.
3014 (interp_data, interp_name): New.
3015 * interps.h (interp_init_ftype): Add `self' parameter.
3016 (interp_ui_out_ftype): New typedef.
3017 (struct interp_procs) <ui_out_proc>: New method pointer.
3018 (interp_new): Remove the data and uiout parameters.
3019 (interp_data, interp_name): Declare.
3020 * tui/tui-interp.c (tui_init): Adjust prototype.
3021 (tui_ui_out): New.
3022 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3023 tui_out here. Adjust call to interp_new.
3024 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3025 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3026 (cli_ui_out): New.
3027 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3028 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3029 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3030 Initialize mi->uiout depending on the mi_version as extracted from
3031 the interpreter's name.
3032 (mi_ui_out): New.
3033 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3034 interp_new. Don't allocate the ui_out's of the interpreters here.
3035
3036 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3037
3038 * solib.c (solib_used): New function.
3039 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3040 by another so_list object before freeing it.
3041
3042 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 Code cleanup.
3045 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3046 values.
3047
3048 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3049
3050 Code cleanup.
3051 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3052 (amd64_skip_xmm_prologue): ... this new function. Describe its
3053 parameters. No longer use amd64_prologue_line_bug.
3054 * defs.h (producer_is_gcc_ge_4): New declaration.
3055 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3056 (process_full_comp_unit): Update its caller. Remove
3057 amd64_prologue_line_bug initialization.
3058 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3059 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3060
3061 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3062
3063 * linux-nat.h (enum resume_kind): New.
3064 (struct lwp_info) <last_resume_kind>: New field.
3065 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3066 resume_stop on the new lwp.
3067 (add_lwp): Set last_resume_kind as resume_continue by default.
3068 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3069 (resume_lwp): New, factored out from resume_callback. Also check
3070 for pending status in lp->waitstatus.
3071 (resume_callback): Reimplement.
3072 (resume_clear_callback): Set last_resume_kind as resume_stop.
3073 (resume_set_callback): Set last_resume_kind as resume_continue.
3074 (linux_nat_resume, linux_handle_extended_wait): Set
3075 last_resume_kind.
3076 (running_callback): Also check lp->waitstatus for pending events.
3077 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3078 is resume_step.
3079 (stop_and_resume_callback): Don't re-resume if the core wanted the
3080 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3081 using an invalidated pointer.
3082 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3083 SIGSTOPs if the core wanted the LWP to stop.
3084 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3085 wanted the lwp to stop. If the core wanted the lwp to stop, and
3086 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3087 of TARGET_SIGNAL_STOP.
3088 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3089 here. Instead, signal the lwp, and set the last_resume_kind to
3090 resume_stop.
3091
3092 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3093
3094 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3095 -1 (error), if the lwp exits right after attaching.
3096
3097 2011-09-08 Doug Evans <dje@google.com>
3098
3099 * py-cmd.c: Some minor formatting fixes.
3100 (gdbpy_parse_command_name): Rename text arg to name, make const.
3101 All callers updated.
3102 * python-internal.h (gdbpy_parse_command_name): Update.
3103
3104 * cli/cli-decode.c (add_cmd): Add comment.
3105
3106 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3107
3108 PR breakpoints/12435
3109 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3110 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3111 * dwarf2read.c (process_full_comp_unit): Initialize
3112 amd64_prologue_line_bug.
3113 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3114
3115 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 Fix TUI screen corruption.
3118 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3119 batch_flag.
3120
3121 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3122
3123 * findvar.c (read_var_value): Never return NULL, throw an error
3124 instead. Update the function comment. State symbol name in the error
3125 messages.
3126 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3127 read_var_value.
3128 * stack.c (print_frame_args): Likewise.
3129 * valops.c (value_of_variable): Likewise.
3130
3131 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3132
3133 * stack.c (print_frame_args): New variable except. Wrap
3134 read_var_value and common_val_print into TRY_CATCH.
3135
3136 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3137
3138 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3139 caller to value_of_this.
3140 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3141 Twice.
3142 * valops.c (value_of_this): Remove parameter complain and variable ret.
3143 Update function comment. Never return NULL by this code.
3144 (value_of_this_silent): New function.
3145 * value.h (value_of_this): Remove parameter complain.
3146 (value_of_this_silent): New declaration.
3147
3148 2011-09-07 Yao Qi <yao@codesourcery.com>
3149
3150 * gdbthread.h (struct thread_info): Remove fields
3151 `stepping_through_solib_after_catch' and
3152 `stepping_through_solib_catchpoints'.
3153 * infrun.c (init_thread_stepping_state): Update.
3154 (process_event_stop_test, currently_stepping): Update.
3155 (currently_stepping_or_nexting_callback): Update.
3156
3157 2011-09-07 Yao Qi <yao@codesourcery.com>
3158
3159 * gdbthread.h (struct thread_info): Comment on field
3160 `step_after_step_resume_breakpoint'.
3161
3162 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3163
3164 * remote.c (remote_console_output): Reindent.
3165
3166 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3167
3168 * frame.c (has_stack_frames): Check for currently selected
3169 traceframe.
3170
3171 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3172
3173 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3174 (set_async_annotation_level, set_async_prompt, pop_prompt)
3175 (push_prompt, new_async_prompt): Delete declarations.
3176 * top.h (get_prompt, set_prompt): Change prototype.
3177 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3178 declarations.
3179 * top.c (command_loop):
3180 (top_prompt): New global.
3181 (get_prefix, set_prefix, get_suffix, ): Delete.
3182 (get_prompt, set_prompt): Rewrite.
3183 (show_new_async_prompt): Rename to ...
3184 (show_prompt): ... this.
3185 (init_main): Adjust. Don't handle --annotate=2 here.
3186 * event-top.c (new_async_prompt): Delete.
3187 (the_prompts): Delete.
3188 (more_to_come): Make static.
3189 (display_gdb_prompt): Use top_level_prompt() to compute the top
3190 level prompt, and don't notify the before_prompt observers
3191 directly here. Always trick readline into not trying to display
3192 the prompt if sync_execution and displaying the primary prompt.
3193 If displaying a local/secondary prompt, always show it, even if
3194 sync_execution is set.
3195 (change_annotation_level): Delete.
3196 (top_level_prompt): New, based on change_annotation_level.
3197 (push_prompt, pop_prompt): Delete.
3198 (async_disable_stdin): No longer pushes prompt.
3199 (command_line_handler): No longer pushes or pops prompt. If more
3200 input is expected, call display_gdb_prompt with an explicit empty
3201 prompt.
3202 (async_stop_sig): Adjust.
3203 (set_async_annotation_level, set_async_prompt): Delete.
3204 * python/python.c (before_prompt_hook): Adjust.
3205
3206 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3207
3208 PR cli/13110
3209
3210 * infrun.c (fetch_inferior_event): Check if there's a selected
3211 thread before checking if the selected thread is executing.
3212
3213 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3214
3215 * inf-loop.c (execute_command): Don't check if the current thread
3216 if running before synchronously waiting for command completion.
3217 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3218 here.
3219 (normal_stop): Call async_enable_stdin here.
3220 * inf-loop.c (inferior_event_handler): Don't call
3221 async_enable_stdin, nor handle "set exec-done-display" here.
3222
3223 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3224
3225 GDB 7.3.1 released.
3226
3227 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3228
3229 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3230
3231 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3232
3233 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3234
3235 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3236
3237 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3238
3239 2011-09-02 Matt Rice <ratmice@gmail.com>
3240
3241 PR gdb/10720
3242 * event-top.c (cli_command_loop): Replace readline setup with
3243 direct call to display_gdb_prompt.
3244 (display_gdb_prompt): Do not call observer mechanism during
3245 synchronous execution.
3246
3247 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3248
3249 * linux-nat.c (in_pid_list_p): New.
3250 (linux_record_stopped_pid): Delete.
3251 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3252 already attached to the LWP. Return an indication if so.
3253 (linux_nat_filter_event): Adjust.
3254 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3255 returning an indication to ignore this thread.
3256
3257 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3258
3259 * top.c: Include interps.h.
3260 (execute_command): If the target can async, but the interpreter is
3261 in sync mode, synchronously wait for the command to finish before
3262 returning.
3263 (execute_command_to_string): Force the interpreter to sync mode.
3264 * infrun.c: Include interps.h.
3265 (fetch_inferior_event): Don't restore the prompt yet if the
3266 interpreter is in sync mode.
3267 * interps.c (interpreter_async): New global.
3268 * interps.h (interpreter_async): Declare.
3269 * inf-loop.c: Include interps.h.
3270 (inferior_event_handler): Don't print the language change or run
3271 breakpoint commands yet if the interpreter in is sync mode.
3272 * main.c (captured_command_loop): Flip the interpreter to async
3273 mode.
3274 * cli/cli-script.c: Include interps.h.
3275 (execute_user_command, while_command, if_command): Force the
3276 interpreter to sync mode.
3277 * python/python.c: Include interps.h.
3278 (python_command, execute_gdb_command): Force the interpreter to
3279 sync mode.
3280
3281 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3282
3283 * value.c (show_convenience): Catch errors thrown while printing
3284 each internal variable.
3285 * infrun.c (validate_siginfo_access): New function.
3286 (siginfo_value_read, siginfo_value_write): Call it.
3287
3288 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3289
3290 Revert:
3291 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3292 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3293 attribute.
3294
3295 2011-08-29 Yao Qi <yao@codesourcery.com>
3296
3297 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3298 (cmp_name): New.
3299 (enable_break2): Update caller.
3300 * solib-frv.c (bfd_lookup_symbol): Removed.
3301 (cmp_name): New.
3302 (enable_break2): Update caller.
3303 * solib-pa64.c (bfd_lookup_symbol): Removed.
3304 (cmp_name): New.
3305 * solib-svr4.c (bfd_lookup_symbol): Removed.
3306 (cmp_name_and_sec_flags): New.
3307 (enable_break): Update caller.
3308 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3309 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3310 (gdb_bfd_lookup_symbol): New.
3311 * solib.h: Functions declarations.
3312
3313 2011-08-29 Yao Qi <yao@codesourcery.com>
3314
3315 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3316 and solib-dsbt.o.
3317
3318 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3319
3320 Fix TUI stepi on code without symbols.
3321 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3322 current PC instead.
3323
3324 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3325
3326 Code cleanup.
3327 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3328 and the static keyword.
3329 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3330 Make prefix an array.
3331 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3332 * mi/mi-main.c (get_register): Remove stb initialization and the static
3333 keyword.
3334
3335 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 Code cleanup - make mi_opt const.
3338 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3339 opts const.
3340 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3341 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3342 (mi_cmd_env_dir): Likewise.
3343 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3344 (mi_cmd_target_file_put): Likewise.
3345 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3346 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3347 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3348 (mi_valid_noargs): Make opts const.
3349 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3350 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3351 (mi_cmd_data_read_memory): Likewise.
3352 (mi_cmd_data_read_memory_bytes): Likewise.
3353 (mi_cmd_data_write_memory): Likewise.
3354
3355 2011-08-26 Matt Rice <ratmice@gmail.com>
3356
3357 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3358 bcache_xmalloc, replace bcache_xmalloc with call to
3359 psymbol_bcache_init for psymbol_cache.
3360 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3361
3362 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3363
3364 * inf-loop.c (inferior_event_handler): Add exception_print in
3365 INF_EXEC_COMPLETE.
3366
3367 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3370 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3371 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3372 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3373 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3374 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3375 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3376 * infrun.c (fetch_inferior_event): Call
3377 make_bpstat_clear_actions_cleanup.
3378 * top.c (execute_command): New variable cleanup_if_error, call
3379 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3380 * utils.c (do_bpstat_clear_actions_cleanup)
3381 (make_bpstat_clear_actions_cleanup): New functions.
3382
3383 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3384
3385 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3386 either the parent or the child forks. Rename a couple locals.
3387
3388 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3389
3390 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3391 library call. Avoid reading the `status' local if all waitpid
3392 calls failed.
3393
3394 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3395
3396 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3397 opening /proc/PID/task always succeeds.
3398
3399 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3400
3401 * linespec.c (symtab_from_filename): Check for the end of string.
3402
3403 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3404
3405 PR mi/11912
3406 * varobj.c (cplus_describe_child): Add the keyword
3407 'class' to the output of the method when dealing
3408 with a cast to a base class.
3409
3410 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3411
3412 No functionality change.
3413 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3414 function comment a reference, new variables tp and bs, move here code
3415 from throw_exception.
3416 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3417 describe it in the comment.
3418 * exceptions.c (throw_exception): Remove variable tp, move the code for
3419 bpstat_clear_actions to bpstat_clear_actions.
3420
3421 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3422
3423 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3424 * linux-nat.c: Include linux-procfs.h.
3425 (linux_proc_get_tgid): Move to ...
3426 * common/linux-procfs.c: ... here. New file.
3427 * common/linux-procfs.h: New file.
3428 * linux-thread-db.c: Include linux-procfs.h.
3429 * Makefile.in: Update dependencies.
3430 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3431 * config/arm/linux.mh: Likewise.
3432 * config/i386/linux.mh: Likewise.
3433 * config/i386/linux64.mh: Likewise.
3434 * config/ia64/linux.mh: Likewise.
3435 * config/m32r/linux.mh: Likewise.
3436 * config/m68k/linux.mh: Likewise.
3437 * config/mips/linux.mh: Likewise.
3438 * config/pa/linux.mh: Likewise.
3439 * config/pa/linux.mh: Likewise.
3440 * config/powerpc/linux.mh: Likewise.
3441 * config/powerpc/ppc64-linux.mh: Likewise.
3442 * config/powerpc/spu-linux.mh: Likewise.
3443 * config/sparc/linux.mh: Likewise.
3444 * config/sparc/linux64.mh: Likewise.
3445 * config/xtensa/linux.mh: Likewise.
3446
3447 2011-08-24 Hui Zhu <teawater@gmail.com>
3448
3449 * tracepoint.c (cond_string_is_same): New function.
3450 (find_matching_tracepoint): Add condition check
3451 by cond_string_is_same.
3452
3453 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3454
3455 Fix build error in Darwin port.
3456 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3457
3458 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 Code cleanup.
3461 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3462 (command_line_is_silent): New function.
3463 (bpstat_do_actions_1): No longer use commands_left, use
3464 command_line_is_silent for commands.
3465 (bpstat_alloc): Remove clearing of commands_left.
3466 (bpstat_stop_status): Remove initialization of commands_left, use
3467 command_line_is_silent.
3468 * breakpoint.h (struct bpstats): Remove commands_left.
3469
3470 2011-08-18 Keith Seitz <keiths@redhat.com>
3471
3472 PR c++/12266
3473 * cp-name-parser.y (struct demangle_info): Remove unused
3474 member PREV.
3475 (d_grab): Likewise.
3476 (allocate_info): Change return type to struct demangle_info *.
3477 Always allocate a new demangle_info.
3478 Remove unused PREV pointer.
3479 (cp_new_demangle_parse_info): New function.
3480 (cp_demangled_name_parse_free): New function.
3481 (do_demangled_name_parse_free_cleanup): New function.
3482 (make_cleanup_cp_demangled_name_parse_free): New function.
3483 (cp_demangled_name_to_comp): Change return type to
3484 struct demangle_parse_info *.
3485 Allocate a new storage for each call.
3486 (main): Update usage for cp_demangled_name_to_comp
3487 API change.
3488 * cp-support.h (struct demangle_parse_info): New structure.
3489 (cp_demangled_name_to_comp): Update API change for
3490 return type.
3491 (cp_new_demangle_parse_info): Declare.
3492 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3493 (cp_demangled_name_parse_free): Declare.
3494 * cp-support.c (cp_canonicalize_string): Update API
3495 change for cp_demangled_name_to_comp.
3496 (mangled_name_to_comp): Likewise.
3497 Return struct demangle_parse_info, too.
3498 (cp_class_name_from_physname): Update mangled_name_to_comp
3499 API change.
3500 (method_name_from_physname): Likewise.
3501 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3502 (cp_remove_params): Likewise.
3503 * python/py-type.c (typy_legacy_template_argument): Likewise.
3504
3505 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3506 (cp_merge_demangle_parse_infos): Declare.
3507 * cp-support.c (ignore_typedefs): New file global.
3508 (copy_string_to_obstack): New function.
3509 (inspect_type): New function.
3510 (replace_typedefs): New function.
3511 (replace_typedefs_qualified_name): New function.
3512 (cp_canonicalize_string_no_typedefs): New function.
3513 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3514 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3515 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3516 instead of cp_canonicalize_string.
3517 (find_method): Likewise.
3518 (decode_compound): Before looking up the name, call
3519 cp_canonicalize_string_no_typedefs.
3520 (decode_variable): Likewise.
3521
3522 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3523 Tom Tromey <tromey@redhat.com>
3524 Matt Rice <ratmice@gmail.com>
3525
3526 * python/lib/gdb/prompt.py: New file.
3527 * python/lib/gdb/command/prompt.py: New file.
3528 * NEWS: Document set extended-prompt and gdb.prompt library
3529
3530 2011-08-16 Yao Qi <yao@codesourcery.com>
3531
3532 * tic6x-linux-tdep.c: Move const arrays definition from here...
3533 * tic6x-tdep.c: to here ...
3534
3535 2011-08-14 Yao Qi <yao@codesourcery.com>
3536
3537 * NEWS: New port to Texas Instruments TMS320C6x.
3538
3539 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3540 Bernd Schmidt <bernds@codesourcery.com>
3541 Yao Qi <yao@codesourcery.com>
3542
3543 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3544 * solib-dsbt.c: New file. Support DSBT shared object.
3545 * tic6x-linux-tdep.c: New file.
3546 * tic6x-tdep.c: New file.
3547 * tic6x-tdep.h: New file.
3548
3549 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3550 Yao Qi <yao@codesourcery.com>
3551
3552 * remote.c (PACKET_qXfer_fdpic): New enum value.
3553 (remote_protocol_features): Add qXfer:fdpic:read packet.
3554 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3555 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3556 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3557
3558 2011-08-14 Yao Qi <yao@codesourcery.com>
3559
3560 Target description for tic6x.
3561 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3562 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3563 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3564 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3565 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3566 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3567 * features/tic6x-c64xp-linux.xml: New.
3568 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3569 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3570 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3571 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3572 * regformats/tic6x-c64xp.dat,
3573 regformats/tic6x-c62x-linux.dat: Generated.
3574 * regformats/tic6x-c64x-linux.dat,
3575 regformats/tic6x-c64xp-linux.dat: Generated.
3576 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3577 features/tic6x-*.c files.
3578 Add regformats/tic6x-*.dat files.
3579
3580 2011-08-12 Doug Evans <dje@google.com>
3581
3582 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3583 * python/py-symbol.c (sympy_get_type): New function.
3584 (symbol_object_getset): Add "type".
3585
3586 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3587
3588 PR tui/13073
3589
3590 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3591 empty name.
3592 (tui_show_register_group): Don't store a byte buffer in the data
3593 element's value.
3594 (tui_register_format): Skip registers with an empty name.
3595 (tui_get_register): Store a struct value in the data element's
3596 value field instead of a byte buffer holding the raw register
3597 contents. Account for optimized-out and unavailable registers
3598 when comparing register contents.
3599
3600 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3601
3602 * printcmd.c (current_display_number): Update comment.
3603 (disable_current_display_cleanup): Delete.
3604 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3605 catch errors thrown while evaluating and printing the display.
3606
3607 2011-08-09 Tom Tromey <tromey@redhat.com>
3608
3609 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3610
3611 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3612
3613 * elfread.c (elf_symtab_read): Rework comments.
3614 * maint.c (maintenance_command): Ditto.
3615 * somread.c (som_symtab_read): Ditto.
3616 * solib.c (solib_find, solib_map_sections, update_solib_list)
3617 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3618 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3619 (sharedlibrary_command, no_shared_libraries): Ditto.
3620 * solib-irix.c (locate_base, disable_break, enable_break)
3621 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3622 (irix_current_sos, irix_open_symbol_file_object)
3623 (irix_special_symbol_handling): Ditto.
3624 * solib-sunos.c (locate_base, first_link_map_member)
3625 (sunos_current_sos, disable_break, enable_break)
3626 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3627 Ditto.
3628 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3629 (open_symbol_file_object, svr4_current_sos, enable_break)
3630 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3631 Ditto.
3632 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3633 (frv_current_sos, enable_break, frv_special_symbol_handling)
3634 (frv_solib_create_inferior_hook): Ditto.
3635 * solist.h (struct target_so_ops): Extend the comments of the
3636 special_symbol_handling, current_sos and open_symbol_file_object
3637 methods.
3638
3639 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3640
3641 * python/lib/gdb/__init__.py: Auto-load files in command and
3642 function directories.
3643 * python/python.c (finish_python_initialization): Use
3644 os.path.join.
3645 * python/lib/gdb/command/pretty_printers.py: Self register
3646 command.
3647 * NEWS: Document auto-loading.
3648
3649 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3650
3651 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3652 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3653 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3654
3655 2011-08-08 Tom Tromey <tromey@redhat.com>
3656
3657 * breakpoint.c (clean_up_filters): Remove.
3658 (catch_syscall_split_args): Use VEC_cleanup.
3659
3660 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3661
3662 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3663 (main): Uncomment "Demangling error\n".
3664
3665 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3666
3667 * solib-target.c (segment_attributes): Make them static.
3668 (section_attributes, library_children, library_attributes): Likewise.
3669 (library_list_children, library_list_attributes): Likesise.
3670 (library_list_elements): Likewise.
3671
3672 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3673
3674 * exceptions.c (throw_exception): Don't disable the current
3675 display.
3676 * printcmd.c (disable_current_display_cleanup): New function.
3677 (do_one_display): Install a cleanup to disable the current display
3678 if doing the display throws.
3679
3680 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3681
3682 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3683 initialization of the tp_new member to the corresponding
3684 gdbpy_initialize_* function.
3685 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3686 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3687 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3688 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3689 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3690
3691 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3692
3693 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3694 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3695 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3696 references to current_uiout.
3697
3698 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3699
3700 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3701 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3702 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3703 * top.c (gdb_readline_wrapper): Adjust.
3704 * tui/tui-interp.c (tui_command_loop):
3705 (_initialize_tui_interp): Don't install it.
3706
3707 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3708
3709 * ui-out.h (uiout): Rename to ...
3710 (current_uiout): ... this.
3711 * ui-out.c (uiout): Rename to ...
3712 (current_uiout): ... this.
3713 * ada-lang.c (print_it_exception, print_one_exception)
3714 (print_mention_exception): Adjust.
3715 * breakpoint.c (watchpoint_check): Adjust.
3716 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3717 (default_collect_info, watchpoints_info, print_one_catch_fork)
3718 (print_one_catch_vfork, print_one_catch_syscall)
3719 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3720 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3721 (print_it_watchpoint, print_mention_watchpoint)
3722 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3723 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3724 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3725 (bkpt_print_mention, momentary_bkpt_print_it)
3726 (tracepoint_print_mention, update_static_tracepoint)
3727 (tracepoints_info, save_breakpoints): Adjust.
3728 * cli-out.c (field_separator): Adjust.
3729 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3730 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3731 * frame.c (get_current_frame): Adjust.
3732 * infcmd.c (run_command_1, print_return_value): Adjust.
3733 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3734 * infrun.c (print_end_stepping_range_reason): Adjust.
3735 (print_signal_exited_reason, print_exited_reason): Adjust.
3736 (print_signal_received_reason, print_no_history_reason): Adjust.
3737 * interps.c (interp_set): Adjust.
3738 * osdata.c (info_osdata_command): Adjust.
3739 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3740 * remote-fileio.c (remote_fileio_request): Adjust.
3741 * remote.c (show_remote_cmd): Adjust.
3742 * solib.c (info_sharedlibrary_command): Adjust.
3743 * source.c (print_source_lines_base): Adjust.
3744 * stack.c (print_stack_frame): Adjust.
3745 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3746 * symfile-mem.c (add_vsyscall_page): Adjust.
3747 * symfile.c (load_progress, generic_load)
3748 (print_transfer_performance): Adjust.
3749 * thread.c (info_threads_command, restore_selected_frame)
3750 (thread_command): Adjust.
3751 * top.c (make_cleanup_restore_ui_file): Adjust.
3752 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3753 (print_one_static_tracepoint_marker): Adjust.
3754 * cli/cli-cmds.c (print_disassembly): Adjust.
3755 * cli/cli-decode.c (print_doc_line): Adjust.
3756 * cli/cli-interp.c (safe_execute_command): Adjust.
3757 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3758 (handle_redirections): Adjust.
3759 * cli/cli-script.c (show_user_1): Adjust.
3760 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3761 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3762 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3763 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3764 (mi_cmd_env_dir): Adjust.
3765 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3766 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3767 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3768 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3769 (list_args_or_locals): Adjust.
3770 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3771 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3772 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3773 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3774 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3775 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3776 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3777 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3778 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3779 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3780 (list_available_thread_groups, mi_cmd_list_thread_groups)
3781 (mi_cmd_data_list_register_names)
3782 (mi_cmd_data_list_changed_registers)
3783 (mi_cmd_data_list_register_values, get_register)
3784 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3785 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3786 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3787 (mi_execute_command, mi_load_progress): Adjust.
3788 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3789 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3790 Adjust.
3791 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3792 * tui/tui-interp.c (tui_command_loop): Adjust.
3793 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3794
3795 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3796
3797 * exceptions.c (struct catcher): Remove saved_uiout field.
3798 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3799 no longer save/resvore the global ui_out builder.
3800 (catch_exceptions_with_msg): Save/override/restore the global
3801 ui_out builder manually instead of relying on TRY_CATCH to do it.
3802 (catch_errors): Save/restore the global ui_out builder manually
3803 instead of relying on TRY_CATCH to do it.
3804 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3805 parameter.
3806 (TRY_CATCH): Adjust.
3807 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3808 the global ui_out builder manually instead of relying on TRY_CATCH
3809 to do it.
3810
3811 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3812
3813 * breakpoint.c (update_global_location_list): Ensure
3814 invariant 'first loc marked not duplicated and inserted,
3815 following locs marked duplicated/not inserted' is respected
3816 for multiple locations at the same address.
3817 (unduplicated_should_be_inserted) New function.
3818 (swap_insertion) New function.
3819
3820 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * stack.c (print_frame_arguments_choices): Comment typo fix.
3823
3824 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3825
3826 Revert:
3827 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3828 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3829 argument. Update callers.
3830
3831 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3832
3833 PR gdb/13045
3834 * doublest.c (convert_doublest_to_floatformat): Pass correct
3835 mantissa length to put_field.
3836
3837 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3838
3839 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3840 exception_print code path.
3841 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3842 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3843 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3844
3845 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 Code cleanup.
3848 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3849 Remove, merge them into ...
3850 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3851 variable args and its initialization.
3852 (struct print_args_args, print_args_stub): Remove, merge them into
3853 print_frame.
3854 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3855 them into ...
3856 (do_gdb_disassembly): ... here. Remove variable args and its
3857 initialization.
3858 (print_frame): Remove variable args and its initialization, new
3859 variable gdbarch and numargs (from print_args_stub), inline here
3860 print_args_stub with a TRY_CATCH.
3861 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3862 them into ...
3863 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3864 New variable e, remove variable btargs and its initialization.
3865
3866 2011-08-01 Tristan Gingold <gingold@adacore.com>
3867
3868 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3869
3870 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3871
3872 * breakpoint.c (insert_bp_location): Document return value.
3873 (insert_breakpoint_locations): Fix documentation.
3874 (remove_breakpoints): Add documentation.
3875
3876 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3877
3878 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3879 argument. Update callers.
3880
3881 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 * stack.c (print_frame_info): Comment typo fix.
3884
3885 2011-07-29 Sterling Augustine <saugustine@google.com>
3886
3887 * MAINTAINERS (Write After Approval): Add myself to the list.
3888
3889 2011-07-29 Tom Tromey <tromey@redhat.com>
3890
3891 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3892 (library_list_start_segment): Update.
3893 (library_list_start_section): Update.
3894
3895 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3896
3897 * varobj.c (value_get_print_value): Move hint check later into the
3898 function. Comment function. Free thevalue before reusing it.
3899
3900 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 Pedro Alves <pedro@codesourcery.com>
3902
3903 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3904 value_one.
3905 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3906 Assert the result kind.
3907 * value.h (value_one): Remove parameter lv.
3908
3909 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3910
3911 Fix crash on lval_computed values.
3912 * valops.c (value_zero): Use not_lval for lval_computed.
3913
3914 2011-07-27 Tom Tromey <tromey@redhat.com>
3915
3916 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3917 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3918
3919 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3922 "ptype" by their typedefs difference.
3923
3924 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 * dwarf2expr.c (ctx_no_read_reg): New function.
3927 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3928 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3929 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3930 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3931
3932 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3933
3934 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3935 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3936 file.
3937 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3938 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3939 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3940 (ctx_no_get_base_type): Move the functions here.
3941 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3942 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3943 (ctx_no_get_base_type): New declarations.
3944
3945 2011-07-27 Tom Tromey <tromey@redhat.com>
3946
3947 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3948 entries.
3949 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3950 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3951
3952 2011-07-26 Sterling Augustine <saugustine@google.com>
3953
3954 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3955 ULONGEST.
3956 (dump_bfd_file): Likewise.
3957
3958 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3959
3960 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3961 (remote_hw_watchpoint_length_limit): New variable.
3962 (_initialize_remote) add set,show cmds for this new variable.
3963 * gdb.texinfo: document these new commands.
3964 * NEWS: Mention these new commands.
3965
3966 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3967
3968 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3969 true for software watchpoints.
3970
3971 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3972
3973 GDB 7.3 released.
3974
3975 2011-07-26 Tom Tromey <tromey@redhat.com>
3976
3977 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3978 * dwarf2read.c (read_indirect_string_at_offset): New function.
3979 (read_indirect_string): Use it.
3980 (dwarf_decode_macro_bytes): New function, taken from
3981 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3982 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3983 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3984 New functions.
3985 (struct dwarf2_per_objfile) <macro>: New field.
3986 (dwarf2_elf_names): Add .debug_macro.
3987 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3988 (dwarf2_locate_sections): Handle new section.
3989 (read_file_scope): Handle DW_AT_GNU_macros.
3990 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3991
3992 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3993
3994 * NEWS: Mention dcache configuration.
3995 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3996 (dcache_size, dcache_line_size): New variables.
3997 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3998 (struct dcache_block): Make it expandable.
3999 (struct dcache_struct): New field.
4000 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4001 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4002 (dcache_poke_byte, dcache_print_line): Adjust.
4003 (set_dcache_size, set_dcache_line_size): New functions.
4004 (set_dcache_command, show_dcache_command): New functions.
4005 (_initialize_dcache): Add new commands.
4006
4007 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4008
4009 * progspace.h (struct program_space): Add solib_add_generation.
4010 * infcmd.c (post_create_inferior): Only call solib_add if not
4011 already done.
4012 * solib.c (solib_add): Increment solib_add_generation.
4013
4014 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 Fix implicit pointer offsets.
4017 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4018 ptr.OFFSET.
4019
4020 2011-07-25 Tom Tromey <tromey@redhat.com>
4021
4022 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4023 const.
4024 (ada_exception_sal): Make 'ops' const.
4025 (ada_decode_exception_location): Likewise.
4026 (ada_decode_assert_location): Likewise.
4027 (catch_assert_command): Update.
4028 (catch_ada_exception_command): Update.
4029 (create_ada_exception_catchpoint): Make 'ops' const.
4030 * breakpoint.c (set_raw_breakpoint_without_location)
4031 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4032 const.
4033 (create_internal_breakpoint): Update.
4034 (init_raw_breakpoint_without_location): Make 'ops' const.
4035 (init_raw_breakpoint, init_catchpoint)
4036 (create_fork_vfork_event_catchpoint)
4037 (create_syscall_event_catchpoint, init_breakpoint_sal)
4038 (create_breakpoint_sal, create_breakpoints_sal)
4039 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4040 * breakpoint.h (struct breakpoint) <ops>: Now const.
4041 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4042 const.
4043
4044 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4045
4046 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4047
4048 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4049
4050 * breakpoint.h (print_recreate_thread): Declare.
4051 (struct breakpoint): Move step_count, pass_count,
4052 number_on_target, static_trace_marker_id,
4053 static_trace_marker_id_idx ...
4054 (struct tracepoint): ... to this new struct.
4055 (get_tracepoint, get_tracepoint_by_number_on_target)
4056 (get_tracepoint_by_number): Change return type to struct
4057 tracepoint pointer.
4058 * breakpoint.c (is_tracepoint_type): New, factored out from
4059 is_tracepoint.
4060 (is_tracepoint): Adjust.
4061 (print_one_breakpoint_location): Cast to struct tracepoint as
4062 necessary, and adjust.
4063 (print_recreate_catch_fork, print_recreate_catch_vfork)
4064 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4065 print_recreate_thread.
4066 (init_breakpoint_sal): New, factored out from
4067 create_breakpoint_sal.
4068 (create_breakpoint_sal): Reimplement.
4069 (create_breakpoint): Allocate a struct tracecepoint if the caller
4070 wanted a tracepoint. Use init_breakpoint_sal and
4071 install_breakpoint.
4072 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4073 (print_recreate_masked_watchpoint)
4074 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4075 (tracepoint_print_one_detail): Adjust.
4076 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4077 Dump the pass count here.
4078 (update_static_tracepoint): Adjust.
4079 (addr_string_to_sals): Adjust.
4080 (create_tracepoint_from_upload): Adjust. Change return type to
4081 struct tracepoint pointer.
4082 (trace_pass_set_count): Change parameter type to struct tracepoint
4083 pointer, and adjust.
4084 (trace_pass_command): Adjust.
4085 (get_tracepoint, get_tracepoint_by_number_on_target)
4086 (get_tracepoint_by_number): Change return type to struct
4087 tracepoint pointer, and adjust.
4088 (print_recreate_thread): New, factored out from save_breakpoints.
4089 (save_breakpoints): Don't print thread and task and passcount
4090 recreation here.
4091 * remote.c (remote_download_tracepoint): Adjust.
4092 * tracepoint.c (trace_actions_command, validate_actionline)
4093 (start_tracing, tfind_1, trace_find_tracepoint_command)
4094 (trace_dump_command): Adjust.
4095 (find_matching_tracepoint): Change return type to struct
4096 tracepoint pointer, and adjust.
4097 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4098 (tfile_trace_find, tfile_fetch_registers): Adjust.
4099 * tracepoint.h (create_tracepoint_from_upload): Change return type
4100 to struct tracepoint pointer.
4101 * ada-lang.c (print_recreate_exception): Call
4102 print_recreate_thread.
4103 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4104
4105 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4106
4107 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4108 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4109 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4110 watchpoint_thread, watchpoint_triggered ...
4111 (struct watchpoint): ... to this new struct.
4112 (is_watchpoint): Declare.
4113 (install_breakpoint): Add new `internal' parameter.
4114 * breakpoint.c (is_watchpoint): Delete declaration.
4115 (set_breakpoint_condition): Handle watchpoints.
4116 (is_watchpoint): Make public.
4117 (watchpoint_in_thread_scope): Change parameter type to struct
4118 watchpoint.
4119 (watchpoint_del_at_next_stop): Change parameter type to struct
4120 watchpoint. Remove assertion. Adjust.
4121 (update_watchpoint): Ditto.
4122 (insert_breakpoints, breakpoint_init_inferior)
4123 (watchpoints_triggered, watchpoint_check)
4124 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4125 (bpstat_stop_status, print_one_breakpoint_location)
4126 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4127 to struct watchpoint as necessary, and adjust.
4128 (install_breakpoint): Add `internal' argument. If true, don't
4129 mention the new breakpoint. Use set_breakpoint_number.
4130 (create_fork_vfork_event_catchpoint)
4131 (create_syscall_event_catchpoint): Adjust.
4132 (dtor_watchpoint): New.
4133 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4134 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4135 (print_it_watchpoint, print_mention_watchpoint)
4136 (print_recreate_watchpoint, insert_masked_watchpoint)
4137 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4138 (print_one_detail_masked_watchpoint)
4139 (print_mention_masked_watchpoint)
4140 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4141 necessary, and adjust.
4142 (watch_command_1): Allocate and initialize a struct watchpoint
4143 instead of a struct breakpoint. Use install_breakpoint.
4144 (catch_exec_command_1): Adjust.
4145 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4146 fields.
4147 (delete_breakpoint, enable_breakpoint_disp)
4148 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4149 as necessary, and adjust.
4150 (initialize_breakpoint_ops): Install dtor_watchpoint as
4151 watchpoints' dtor method.
4152 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4153 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4154 to struct watchpoint as necessary, and adjust.
4155
4156 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4157
4158 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4159 the the base class ops table.
4160 (catch_exception_breakpoint_ops)
4161 (catch_exception_unhandled_breakpoint_ops)
4162 (catch_assert_breakpoint_ops): Don't statically initialize.
4163 (initialize_ada_catchpoint_ops): New.
4164 (_initialize_ada_language): Call it.
4165 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4166 (bkpt_breakpoint_ops): Forward declare.
4167 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4168 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4169 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4170 (masked_watchpoint_breakpoint_ops)
4171 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4172 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4173 base class ops table.
4174 (null_re_set, null_check_status, null_works_in_software_mode)
4175 (null_resources_needed, null_print_one_detail): Delete.
4176 (bkpt_dtor): Rename to ...
4177 (base_breakpoint_dtor): ... this. Make static.
4178 (bkpt_allocate_location): Rename to ...
4179 (base_breakpoint_allocate_location): ... this. Make static.
4180 (base_breakpoint_re_set): New.
4181 (internal_error_pure_virtual_called): New.
4182 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4183 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4184 (base_breakpoint_works_in_software_mode)
4185 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4186 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4187 (base_breakpoint_print_recreate): New functions.
4188 (base_breakpoint_ops): New global.
4189 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4190 (bkpt_breakpoint_hit): Make static.
4191 (bkpt_check_status): Delete.
4192 (bkpt_resources_needed): Make static.
4193 (bkpt_works_in_software_mode): Delete.
4194 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4195 static.
4196 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4197 (momentary_breakpoint_ops): Don't statically initialize.
4198 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4199 Delete.
4200 (tracepoint_insert_location, tracepoint_remove_location)
4201 (tracepoint_check_status, tracepoint_works_in_software_mode)
4202 (tracepoint_print_it): Delete.
4203 (tracepoint_breakpoint_ops): Don't statically initialize.
4204 (initialize_breakpoint_ops): New.
4205 (_initialize_breakpoint): Call it.
4206 * breakpoint.h (null_re_set, null_works_in_software_mode)
4207 (null_resources_needed, null_check_status, null_print_one_detail):
4208 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4209 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4210 (bkpt_check_status, bkpt_resources_needed)
4211 (bkpt_works_in_software_mode, bkpt_print_it)
4212 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4213 Delete declarations.
4214 (initialize_breakpoint_ops): Declare.
4215
4216 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4217
4218 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4219 (momentary_bkpt_print_it): Simplify.
4220
4221 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4222
4223 Split internal, momentary and user breakpoints breakpoint_ops
4224 tables.
4225
4226 * breakpoint.c (internal_breakpoint_ops)
4227 (momentary_breakpoint_ops): Forward declare.
4228 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4229 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4230 (create_overlay_event_breakpoint)
4231 (create_std_terminate_master_breakpoint)
4232 (create_exception_master_breakpoint): Create breakpoints with
4233 internal_breakpoint_ops vtable.
4234 (set_longjmp_breakpoint): Create momentary breakpoints with
4235 momentary_breakpoint_ops vtable, using
4236 momentary_breakpoint_from_master.
4237 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4238 (create_solib_event_breakpoint): Create breakpoints with
4239 internal_breakpoint_ops vtable.
4240 (set_momentary_breakpoint): Create breakpoints with
4241 momentary_breakpoint_ops vtable.
4242 (momentary_breakpoint_from_master): New, factored out from
4243 clone_momentary_breakpoint.
4244 (clone_momentary_breakpoint): Adjust.
4245 (watch_command_1): Create scope breakpoints with
4246 momentary_breakpoint_ops vtable.
4247 (bkpt_re_set): Remove handling of internal and momentary
4248 breakpoints.
4249 (bkpt_print_mention, bkpt_print_recreate): New.
4250 (bkpt_breakpoint_ops): Adjust.
4251 (internal_bkpt_re_set, internal_bkpt_check_status)
4252 (internal_bkpt_print_it, internal_bkpt_print_mention)
4253 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4254 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4255 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4256 (momentary_bkpt_print_recreate): New.
4257 (momentary_breakpoint_ops): New.
4258
4259 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4260
4261 Implement most breakpoint_ops methods for all breakpoint types,
4262 and move the default handlings to the proper callbacks.
4263
4264 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4265 works_in_software_mode method.
4266 (insert_bp_location): Go through breakpoint_ops->insert_location
4267 for software and hardware watchpoints.
4268 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4269 breakpoint_ops.
4270 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4271 for software and hardware watchpoints.
4272 (print_it_typical): Delete.
4273 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4274 method.
4275 (watchpoint_check): Adjust comment.
4276 (bpstat_check_location): Simply always call the breakpoint's
4277 breakpoint_hit method.
4278 (bpstat_stop_status): Always call the breakpoint's check_status
4279 method. Remove special cases for watchpoints and internal event
4280 breakpoints from here (moved to the check_status implementations).
4281 (print_one_breakpoint_location): Assume b->ops is never NULL.
4282 Remove static tracepoint marker id printing from here (moved to
4283 the print_one_detail callback implementation of tracepoints).
4284 (init_bp_location): Assert OPS is never NULL.
4285 (allocate_bp_location): Always call the breakpoint's
4286 allocate_location method, and remove the default code from here.
4287 (free_bp_location): Always call the location's dtor method, and
4288 remove the default code from here.
4289 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4290 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4291 parameter. Pass it down.
4292 (set_raw_breakpoint): Ditto.
4293 (print_it_catch_fork): Adjust to take a bpstat as argument.
4294 (catch_fork_breakpoint_ops): Install methods.
4295 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4296 (catch_vfork_breakpoint_ops): Install methods.
4297 (dtor_catch_syscall): Call the base dtor.
4298 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4299 (catch_syscall_breakpoint_ops): Install methods.
4300 (dtor_catch_exec): Call the base dtor.
4301 (print_it_catch_exec): Adjust to take a bpstat as argument.
4302 (catch_exec_breakpoint_ops): Install methods.
4303 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4304 the breakpoint's resources_needed method, and remove the default
4305 code from here.
4306 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4307 breakpoint_ops.
4308 (clone_momentary_breakpoint): Clone the original's ops.
4309 (mention): Always call the breakpoint's print_mention method, and
4310 remove the default code from here.
4311 (create_breakpoint_sal): Adjust to pass the ops to
4312 set_raw_breakpoint rather than setting it manually.
4313 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4314 ops to set_raw_breakpoint_without_location rather than setting it
4315 manually.
4316 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4317 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4318 (ranged_breakpoint_ops): Install methods.
4319 (break_range_command): Adjust to pass the ops to
4320 set_raw_breakpoint rather than setting it manually.
4321 (re_set_watchpoint, breakpoint_hit_watchpoint)
4322 (check_status_watchpoint, resources_needed_watchpoint)
4323 (works_in_software_mode_watchpoint, print_it_watchpoint)
4324 (print_mention_watchpoint, print_recreate_watchpoint): New
4325 functions.
4326 (watchpoint_breakpoint_ops): Install new methods.
4327 (print_it_masked_watchpoint): New function.
4328 (masked_watchpoint_breakpoint_ops): Install new methods.
4329 (watch_command_1): Adjust to pass the right breakpoint_ops to
4330 set_raw_breakpoint_without_location rather than setting it
4331 manually later. Record the current pspace.
4332 (print_it_exception_catchpoint): Adjust to take a bpstat as
4333 argument.
4334 (gnu_v3_exception_catchpoint_ops): Install new methods.
4335 (say_where): New function.
4336 (null_re_set, null_check_status, null_works_in_software_mode)
4337 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4338 New functions.
4339 (bp_location_ops): New global.
4340 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4341 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4342 (bkpt_check_status, bkpt_resources_needed)
4343 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4344 (bkpt_print_recreate): New functions.
4345 (bkpt_breakpoint_ops): New global.
4346 (tracepoint_re_set, tracepoint_insert_location)
4347 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4348 (tracepoint_check_status, tracepoint_works_in_software_mode)
4349 (tracepoint_print_it, tracepoint_print_one_detail)
4350 (tracepoint_print_mention, tracepoint_print_recreate): New
4351 functions.
4352 (tracepoint_breakpoint_ops): New global.
4353 (delete_breakpoint): Always call the breakpoint's dtor method, and
4354 remove the default handling from here.
4355 (breakpoint_re_set_default): Make static.
4356 (breakpoint_re_set_one): Always call the breakpoints re_set
4357 method, and remove the default handling from here.
4358 (trace_command, ftrace_command, strace_command)
4359 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4360 to create_breakpoint.
4361 (save_breakpoints): Always call the breakpoint's print_recreate
4362 method, and remove the default handling from here.
4363
4364 * ada-lang.c (dtor_exception): Call the base dtor.
4365 (re_set_exception): Call the base method.
4366 (print_it_exception, print_it_catch_exception): Adjust to take a
4367 bpstat as argument.
4368 (catch_exception_breakpoint_ops): Install methods.
4369 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4370 argument.
4371 (catch_exception_unhandled_breakpoint_ops): Install methods.
4372 (print_it_catch_assert): Adjust to take a bpstat as argument.
4373 (catch_assert_breakpoint_ops): Install methods.
4374
4375 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4376 to take a bpstat as argument.
4377 (enum print_stop_action): Add describing comments to each enum
4378 value.
4379 (breakpoint_re_set_default): Delete declaration.
4380 (null_re_set, null_works_in_software_mode, null_resources_needed)
4381 (null_check_status, null_print_one_detail): Declare.
4382 (bkpt_breakpoint_ops): Declare.
4383 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4384 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4385 (bkpt_check_status, bkpt_resources_needed)
4386 (bkpt_works_in_software_mode, bkpt_print_it)
4387 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4388 Declare.
4389
4390 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4391 bkpt_breakpoint_ops.
4392 * python/py-breakpoint.c (bppy_init): Ditto.
4393
4394 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4395
4396 * MAINTAINERS (Write After Approval): Add myself to the list.
4397
4398 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4399
4400 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4401
4402 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4403
4404 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4405 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4406 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4407 adjust.
4408 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4409 (struct i386_debug_reg_state): New.
4410 (i386_init_dregs): New.
4411 (dr_mirror): New.
4412 (i386_cleanup_dregs): Use i386_init_dregs.
4413 (i386_show_dr): Add state parameter and adjust.
4414 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4415 the inferior here.
4416 (i386_remove_aligned_watchpoint): Likewise.
4417 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4418 (i386_update_inferior_debug_regs): New.
4419 (i386_insert_watchpoint): Work on a local mirror of the debug
4420 registers, and only update the inferior on success.
4421 (i386_remove_watchpoint): Ditto.
4422 (i386_region_ok_for_watchpoint): Adjust.
4423 (i386_stopped_data_address): Adjust.
4424 (i386_insert_hw_breakpoint): Adjust.
4425 (i386_remove_hw_breakpoint): Adjust.
4426
4427 2011-07-22 Tom Tromey <tromey@redhat.com>
4428
4429 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4430 from amd64_pseudo_register_read. Change arguments. Call
4431 mark_value_bytes_unavailable when needed.
4432 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4433 set_gdbarch_pseudo_register_read.
4434 * sentinel-frame.c (sentinel_frame_prev_register): Use
4435 regcache_cooked_read_value.
4436 * regcache.h (regcache_cooked_read_value): Declare.
4437 * regcache.c (regcache_cooked_read_value): New function.
4438 (regcache_cooked_read): Call
4439 gdbarch_pseudo_register_read_value if available.
4440 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4441 (i386_pseudo_register_read): Remove.
4442 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4443 i386_pseudo_register_read. Change arguments. Call
4444 mark_value_bytes_unavailable when needed.
4445 (i386_pseudo_register_read_value): New function.
4446 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4447 not set_gdbarch_pseudo_register_read.
4448 * gdbarch.sh (pseudo_register_read_value): New method.
4449 * gdbarch.c, gdbarch.h: Rebuild.
4450 * findvar.c (value_from_register): Call get_frame_register_value.
4451
4452 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4453
4454 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4455 get_prefix.
4456 (display_gdb_prompt): Likewise.
4457 (change_annotation_level): Likewise.
4458 (push_prompt): Likewise.
4459 (pop_prompt): Likewise.
4460 (handle_stop_sig): Use get_prompt with a level.
4461 * top.c (command_loop): Use get_prompt with a level.
4462 (set_async_annotation_level): Use set_prompt with a level.
4463 (get_prefix): New function.
4464 (set_prefix): Ditto.
4465 (set_suffix): Ditto.
4466 (get_suffix): Ditto.
4467 (get_prompt): Accept a level argument.
4468 (set_prompt): Accept a level argument. Free old prompts. Set
4469 new_async_prompt if level is 0.
4470 (init_main): Use set_prompt with a level. Do not set
4471 new_async_prompt.
4472 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4473 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4474 Modify set_prompt, get_prompt to account for levels.
4475 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4476 level.
4477 * python/python.c (before_prompt_hook): Use set_prompt.
4478
4479 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4480
4481 * defs.h: Add guard against inclusion in gdbserver.
4482 (struct ptid, ptid_t): Move to common/ptid.h.
4483 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4484 xsnprintf, internal_error): Move to common/common-utils.h.
4485 (nomem): Delete.
4486 * gdb_assert.h: Move into common/ sub-directory.
4487 * gdb_locale.h: Ditto.
4488 * gdb_dirent.h: Ditto.
4489 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4490 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4491 Move into common/ptid.h.
4492 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4493 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4494 Change nomem to malloc_failure.
4495 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4496 * utils.c (nomem): Rename to malloc_failure.
4497 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4498 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4499 (gdb_buildargv): Change nomem to malloc_failure.
4500 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4501 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4502 ptid_is_pid): Move into common/ptid.c.
4503 (initialize_infrun): Delete initialization of null_ptid and
4504 minus_one_ptid.
4505 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4506 linux_common_xfer_osdata.
4507 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4508 common/ptid.c and common/buffer.c.
4509 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4510 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4511 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4512 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4513 rules.
4514 * common/gdb_assert.h: New.
4515 * common/gdb_dirent.h: New.
4516 * common/gdb_locale.h: New.
4517 * common/buffer.c: New.
4518 * common/buffer.h: New.
4519 * common/ptid.c: New.
4520 * common/ptid.h: New.
4521 * common/xml-utils.c: New.
4522 * common/xml-utils.h: New.
4523 * common/common-utils.c: New.
4524 * common/common-utils.h: New.
4525 * common/linux-osdata.c: New.
4526 * common/linux-osdata.h: New.
4527 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4528 * config/arm/linux.mh (NATDEPFILES): Ditto.
4529 * config/i386/linux.mh (NATDEPFILES): Ditto.
4530 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4531 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4532 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4533 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4534 * config/mips/linux.mh (NATDEPFILES): Ditto.
4535 * config/pa/linux.mh (NATDEPFILES): Ditto.
4536 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4537 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4538 * config/s390/s390.mh (NATDEPFILES): Ditto.
4539 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4540 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4541 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4542
4543 2011-07-21 Matt Rice <ratmice@gmail.com>
4544
4545 * NEWS: Add info macros and info definitions commands.
4546
4547 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4548
4549 * NEWS: Document Python prompt substitution hook.
4550
4551 2011-07-18 Matt Rice <ratmice@gmail.com>
4552
4553 PR macros/12999
4554 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4555 * macrotab.c (foreach_macro): Ditto.
4556 (foreach_macro_in_scope): Ditto.
4557 * macrocmd.c (print_macro_callback): New function.
4558 (info_macro_command): Move some code to print_macro_definition.
4559 (print_macro_definition): New function.
4560 (print_one_macro): Add new arguments to callback.
4561 (info_definitions_command): New function.
4562 (info_macros_command): Ditto.
4563 (_initialize_macrocmd): Add info macros and info definitions commands.
4564 * symtab.c (add_macro_name): Add new arguments to callback.
4565
4566 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4567 Tom Tromey <tromey@redhat.com>
4568
4569 * top.c (set_prompt): Rewrite to free previous prompt, free
4570 asynch_new_prompt and set both on new prompts.
4571 * event-top.c (display_gdb_prompt): Add prompt substitution
4572 logic.
4573 * python/python.c (before_prompt_hook): New function.
4574
4575 2011-07-20 Matt Rice <ratmice@gmail.com>
4576
4577 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4578 arguments to store_unsigned_integer.
4579
4580 2011-07-20 Tom Tromey <tromey@redhat.com>
4581
4582 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4583 in some declaration-only cases.
4584
4585 2011-07-18 Tom Tromey <tromey@redhat.com>
4586
4587 PR symtab/12984:
4588 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4589 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4590 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4591 <debug_type_section>: New field.
4592 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4593 (load_cu): Use appropriate section.
4594 (create_signatured_type_table_from_index): Add 'section'
4595 argument.
4596 (dwarf2_read_index): Only allow a single .debug_types section.
4597 (dw2_get_file_names): Use appropriate section.
4598 (read_type_comp_unit_head): Add 'section' argument.
4599 (create_debug_types_hash_table): Loop over all .debug_types
4600 sections.
4601 (init_cu_die_reader): Use appropriate section.
4602 (process_psymtab_comp_unit, load_partial_comp_unit)
4603 (load_full_comp_unit, read_die_and_children, find_partial_die)
4604 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4605 (lookup_signatured_type_at_offset): Add 'section' argument.
4606 (read_signatured_type_at_offset): Add 'sect' argument.
4607 (read_signatured_type): Use appropriate section.
4608 (set_die_type, get_die_type_at_offset): Update.
4609 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4610 VEC.
4611 (write_psymtabs_to_index): Don't allow index with more than one
4612 .debug_types section.
4613
4614 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4615
4616 Fix crash if referenced CU is aged out.
4617 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4618 xfree of block.data.
4619 (indirect_pieced_value): New variable back_to, use to for xfree of
4620 baton.data.
4621 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4622 block.data.
4623 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4624 (load_cu): New function from ...
4625 (dw2_do_instantiate_symtab): ... the code here ...
4626 (process_full_comp_unit): ... and here.
4627 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4628 retval.data.
4629
4630 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4631
4632 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4633 type.
4634
4635 2011-07-19 Gary Benson <gbenson@redhat.com>
4636
4637 * infrun.c (struct execution_control_state): New member
4638 stop_func_filled_in.
4639 (clear_stop_func, fill_in_stop_func): New functions.
4640 (handle_inferior_event): Call clear_stop_func rather than
4641 manipulating the execution control state directly.
4642 Call fill_in_stop_func lazily as required rather than
4643 directly calling find_pc_partial_function in all cases.
4644
4645 2011-07-18 Tom Tromey <tromey@redhat.com>
4646
4647 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4648 checking for variable-sized array.
4649
4650 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4651
4652 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4653 of supported languages.
4654 * varobj.c: Add top definitions and basic implementation of the
4655 following callbacks: ada_number_of_children, ada_name_of_variable,
4656 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4657 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4658 (languages): Register Ada-specific callbacks.
4659 (variable_language): Add the Ada case in the language setter switch.
4660
4661 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4662
4663 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4664
4665 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Code cleanup.
4668 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4669 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4670 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4671 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4672 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4673 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4674 (struct dwarf_expr_context_funcs): New, move here methods from ...
4675 (struct dwarf_expr_context): ... here. New fields funcs.
4676 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4677 (dwarf_expr_ctx_funcs): New.
4678 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4679 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4680 (needs_frame_ctx_funcs): New.
4681 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4682
4683 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4684
4685 * MAINTAINERS (Write After Approval): Add myself to the list.
4686
4687 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4688
4689 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4690 that CIE pointer of an FDE really points to a CIE .
4691
4692 2011-07-15 Hui Zhu <teawater@gmail.com>
4693
4694 * remote.c (remote_get_trace_status): Add comments.
4695
4696 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4697
4698 Code cleanup - constify struct lval_funcs.
4699 * dwarf2loc.c (pieced_value_funcs): Make it const.
4700 * infrun.c (siginfo_value_funcs): Likewise.
4701 * opencl-lang.c (opencl_value_funcs): Likewise.
4702 * valops.c (value_assign, value_ind): Make the funcs variable const.
4703 * value.c (struct value): Make location.computed.funcs target const.
4704 Rearrange the comments.
4705 (allocate_computed_value): Make the funcs parameter target const.
4706 (value_computed_funcs): Return the funcs target const.
4707 (value_free, value_copy, set_value_component_location): Make the funcs
4708 variable const.
4709 * value.h (allocate_computed_value): Make the funcs parameter target
4710 const.
4711 (value_computed_funcs): Return the funcs target const.
4712 * windows-tdep.c (tlb_value_funcs): Make it const.
4713
4714 2011-07-14 Hui Zhu <teawater@gmail.com>
4715
4716 * remote.c (remote_get_trace_status): Initialize p.
4717
4718 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4719
4720 Work around kgdb.
4721 * remote.c (remote_get_trace_status): New variable ex. Put
4722 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4723
4724 2011-07-13 Tom Tromey <tromey@redhat.com>
4725
4726 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4727 value_from_contents for final conversion.
4728
4729 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4730
4731 Code cleanup.
4732 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4733 Indent prototypes so they do not get into tags.
4734
4735 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 Code cleanup making also optimized out values lazy.
4738 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4739 allocate_optimized_out_value. Twice.
4740 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4741 * findvar.c (read_var_value): Likewise.
4742 * value.c (allocate_optimized_out_value): New function.
4743 * value.h (allocate_optimized_out_value): New declaration.
4744
4745 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4746
4747 Fix occasional crash of CTRL-C during DWARF read in.
4748 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4749
4750 2011-07-11 Tom Tromey <tromey@redhat.com>
4751
4752 * regcache.c (struct regcache_descr): Fix typo.
4753 * i387-tdep.c (i387_supply_xsave): Fix typo.
4754
4755 2011-07-11 Tom Tromey <tromey@redhat.com>
4756
4757 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4758 (read_file_scope, read_type_unit_scope): Use it.
4759
4760 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4761
4762 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4763 `int'.
4764
4765 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4766
4767 PR python/12438
4768 * python/python.c: Set gdbpy_should_print_stack default to off.
4769 (set_python): Deprecate maint set python print-stack to
4770 class_deprecate.
4771 (_initialize_python): Deprecate maint set/show python print-stack.
4772 Add new prefix command, python. Add new setting, print-backtrace.
4773 * NEWS: Document set python print-stack. Document default change.
4774
4775 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4776
4777 * python/py-inferior.c (infpy_dealloc): New function.
4778 (inferior_to_inferior_object): Return a new object, or a
4779 new reference to the existing object.
4780 (find_thread_object): Cleanup references to inferior.
4781 (delete_thread_object): Ditto.
4782 * python/py-infthread.c (create_thread_object): Do not increment
4783 inferior reference count.
4784
4785 2011-07-08 Tom Tromey <tromey@redhat.com>
4786
4787 * dwarf2loc.c (locexpr_regname): New function.
4788 (locexpr_describe_location_piece): Use it.
4789 (disassemble_dwarf_expression): Add per_cu argument. Use
4790 locexpr_regname.
4791 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4792 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4793 New cases.
4794 (locexpr_describe_location_1): Add per_cu argument.
4795 (locexpr_describe_location): Update.
4796 (loclist_describe_location): Update.
4797
4798 2011-07-08 Tom Tromey <tromey@redhat.com>
4799
4800 * dwarf2expr.c (execute_stack_op): Add QUIT.
4801
4802 2011-07-07 Hui Zhu <teawater@gmail.com>
4803
4804 Revert:
4805 2011-07-06 Hui Zhu <teawater@gmail.com>
4806 * remote.c (remote_start_remote): Add TRY_CATCH for
4807 remote_get_trace_status.
4808 * tracepoint.c (disconnect_tracing): Ditto.
4809
4810 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4811
4812 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4813 variables as signed, not unsigned.
4814
4815 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4816
4817 * jit.c (jit_inferior_init): Reformat forward declaration.
4818
4819 2011-07-06 Matt Rice <ratmice@gmail.com>
4820
4821 * MAINTAINERS (Write After Approval): Add myself to the list.
4822
4823 2011-07-06 Hui Zhu <teawater@gmail.com>
4824
4825 * remote.c (remote_start_remote): Add TRY_CATCH for
4826 remote_get_trace_status.
4827 * tracepoint.c (disconnect_tracing): Ditto.
4828
4829 2011-07-05 Tom Tromey <tromey@redhat.com>
4830
4831 * symtab.c (operator_chars): Now static.
4832 * linespec.c (operator_chars): Don't declare.
4833
4834 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4835
4836 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4837
4838 2011-07-05 Tom Tromey <tromey@redhat.com>
4839
4840 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4841 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4842 (TYPE_CPLUS_REALLY_JAVA): New macro.
4843 * dwarf2read.c (process_structure_scope): Set
4844 TYPE_CPLUS_REALLY_JAVA.
4845
4846 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4847
4848 * ada-lang.c: Fix typos.
4849 * amd64-tdep.c: Likewise.
4850 * breakpoint.c: Likewise.
4851 * cli/cli-decode.c: Likewise.
4852 * findcmd.c: Likewise.
4853 * inline-frame.c: Likewise.
4854 * mi/mi-main.c: Likewise.
4855 * minsyms.c: Likewise.
4856 * monitor.c: Likewise.
4857 * monitor.h: Likewise.
4858 * prologue-value.c: Likewise.
4859 * reverse.c: Likewise.
4860 * s390-tdep.c: Likewise.
4861
4862 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4863
4864 * jit.c (jit_inferior_init): Forward declare.
4865 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4866
4867 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4868
4869 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4870
4871 2011-07-04 Tristan Gingold <gingold@adacore.com>
4872
4873 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4874 (tcb_fieldno): Add activation_link field.
4875 (get_known_tasks_addr): Moved and rewritten.
4876 (get_tcb_types_info): Set activation_link field.
4877 (read_known_tasks_array): Add parameter. Rewritten.
4878 (read_known_tasks_list): New function.
4879 (read_known_tasks): New function.
4880 (ada_build_task_list): Call read_known_tasks instead of
4881 read_known_tasks_array.
4882 * ravenscar-thread.c: Add first_task_name constant.
4883 (has_ravenscar_runtime): Check for task list too.
4884
4885 2011-07-04 Tristan Gingold <gingold@adacore.com>
4886
4887 * ada-tasks.c: Renames fieldno to actb_fieldno.
4888 (ada_get_task_number): Indentation.
4889 (get_tcb_types_info): Remove all parameters. Write directly
4890 the globals.
4891 (ptid_from_atcb_common): Adjust.
4892 (read_atcb): Adjust.
4893
4894 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4895
4896 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4897
4898 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4899
4900 * ui-out.c (ui_out_field_core_addr): Mention that the function
4901 description is in the header file.
4902 * ui-out.h (ui_out_field_core_addr): Document function.
4903
4904 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4905
4906 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4907 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4908
4909 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4910
4911 * symtab.c (expand_line_sal): Remove empty line.
4912
4913 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4914
4915 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4916 same way as ELFOSABI_NONE.
4917 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4918
4919 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4920
4921 * breakpoint.c: Fix typos in comments.
4922 * linespec.c: Likewise.
4923 * symtab.c: Likewise.
4924
4925 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4926
4927 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4928 section in separate object files.
4929
4930 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4931
4932 Fix false GCC warning.
4933 * linespec.c (decode_line_1): Initialize values.
4934
4935 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4936
4937 * linespec.c (find_method): Accept the function type automatically only
4938 if it was specified with parameter types.
4939
4940 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 Stop on first linespec terminator instead of eating what we can.
4943 * linespec.c (is_linespec_boundary): New function.
4944 (name_end): Remove function.
4945 (keep_name_info): New parameter on_boundary, replace the body.
4946 (decode_line_1): Provide the parameter to keep_name_info.
4947 (decode_compound): Likewise. Drop the trailing java return type
4948 handling. Twice.
4949
4950 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 Fall back linespec to minimal symbols.
4953 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4954 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4955 (find_method, symbol_found): Change error to cplusplus_error.
4956
4957 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4960
4961 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4962 Tom Tromey <tromey@redhat.com>
4963
4964 * dwarf2read.c (check_physname): New variable.
4965 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4966 (show_check_physname): New function.
4967 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4968
4969 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4970
4971 * machoread.c (macho_symfile_read): Delete OBE comment.
4972
4973 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4974
4975 * machoread.c (struct macho_oso_data): Delete.
4976 (current_oso): Delete.
4977 (macho_relocate_common_syms): New function, mostly extracted
4978 out of
4979 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4980 Remove code that sets and unset current_oso.
4981 (macho_symfile_relocate): Delete handling of common symbols,
4982 now moved to macho_relocate_common_syms.
4983
4984 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4985
4986 * darwin-nat.c (darwin_ptrace): Add documentation.
4987 Set errno to zero before calling ptrace. If ptrace returns
4988 -1 and errno is zero, then change then return zero.
4989 (darwin_kill_inferior): Issue a warning instead of triggering
4990 a failed assertion when the PT_KILL ptrace operations returned
4991 nonzero.
4992
4993 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4994
4995 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4996 only when inf->private->no_ptrace.
4997
4998 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4999
5000 * ada-lang.c (print_it_exception): Print temporary catchpoints
5001 as "Temporary catchpoint".
5002 (print_mention_exception): Likewise.
5003
5004 2011-07-01 Tom Tromey <tromey@redhat.com>
5005
5006 * jv-lang.c (java_language_defn): Use java_printchar,
5007 java_printstr.
5008 (java_get_encoding): New function.
5009 (java_emit_char): Use generic_emit_char.
5010 (java_printchar): New function.
5011 (java_printstr): Likewise.
5012
5013 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5014
5015 * ada-typeprint.c (print_record_type): If unable to decode
5016 the name of the parent type, use the encoded name.
5017
5018 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5019
5020 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5021 pointer to constrained packed array type output.
5022 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5023 packed array output.
5024
5025 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5026
5027 * ada-typeprint.c (print_array_type): removed if condition on show
5028 being negative for bounds printing.
5029
5030 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5031
5032 * ada-lang.c (ada_identical_enum_types_p): New function.
5033 (symbols_are_identical_enums): New function.
5034 (remove_extra_symbols): Do nothing if NSYMS < 2.
5035 Use symbols_are_identical_enums.
5036
5037 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5038
5039 * ada-valprint.c (ada_value_print): Handle typedefs.
5040
5041 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5042
5043 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5044
5045 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5046
5047 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5048 (decode_constrained_packed_array): Likewise.
5049 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5050
5051 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5052
5053 * ada-exp.y (convert_char_literal): Handle typedef types.
5054
5055 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5056
5057 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5058
5059 2011-06-30 Tom Tromey <tromey@redhat.com>
5060
5061 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5062 * valops.c (find_overload_match): Call do_cleanups on early exit
5063 path.
5064 * solib.c (solib_find): Call do_cleanups on early exit path.
5065
5066 2011-06-30 Tom Tromey <tromey@redhat.com>
5067
5068 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5069 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5070 return paths. Defer final do_cleanups until last return.
5071 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5072 early return.
5073
5074 2011-06-30 Tom Tromey <tromey@redhat.com>
5075
5076 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5077
5078 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5079
5080 * MAINTAINERS (Write After Approval): Add myself to the list.
5081
5082 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 Disable epilogue unwinders on recent GCCs.
5085 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5086 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5087 * dwarf2read.c (process_full_comp_unit): Initialize
5088 EPILOGUE_UNWIND_VALID.
5089 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5090 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5091 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5092
5093 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5094
5095 Code cleanup - reformatting.
5096 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5097 (producer_is_gcc_ge_4): ... here, change the return value.
5098 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5099 interpretation.
5100
5101 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 Fix non-only rename list for Fortran modules import.
5104 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5105 cp_add_using_directive caller.
5106 (cp_add_using_directive): New parameter excludes, describe it. New
5107 variables ix and param. Compare if also excludes match. Allocate NEW
5108 with variable size, initialize EXCLUDES there.
5109 (cp_lookup_symbol_imports): New variable excludep, test
5110 current->EXCLUDES with it.
5111 * cp-support.h: Include vec.h.
5112 (struct using_direct): New field excludes, describe it.
5113 (DEF_VEC_P (const_char_ptr)): New.
5114 (cp_add_using_directive): New parameter excludes.
5115 * defs.h (const_char_ptr): New typedef.
5116 * dwarf2read.c (read_import_statement): New variables child_die,
5117 excludes and cleanups, read in excludes.
5118 (read_namespace): Adjust the cp_add_using_directive caller.
5119
5120 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5121
5122 Code cleanup.
5123 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5124 negative comparisons.
5125
5126 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5127
5128 * mi/mi-main.c (mi_cmd_list_features): Emit
5129 breakpoint-notifications.
5130
5131 2011-06-29 Tom Tromey <tromey@redhat.com>
5132
5133 PR fortran/10036:
5134 * valprint.h (generic_emit_char, generic_printstr): Declare.
5135 * valprint.c (wchar_printable, append_string_as_wide)
5136 (print_wchar): Move from c-lang.c.
5137 (generic_emit_char): New function; mostly taken from c_emit_char.
5138 (generic_printstr): New function; mostly taken from c_printstr.
5139 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5140 represented as arrays.
5141 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5142 type.
5143 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5144 identically to TYPE_CODE_INT.
5145 * f-lang.c (f_get_encoding): New function.
5146 (f_emit_char): Use generic_emit_char.
5147 (f_printchar): Replace comment.
5148 (f_printstr): Use generic_printstr.
5149 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5150 "character" types specially.
5151 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5152 for Fortran.
5153 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5154 Move to valprint.c
5155 (c_emit_char): Call generic_emit_char.
5156 (c_printstr): Call generic_printstr.
5157
5158 2011-06-29 Gary Benson <gbenson@redhat.com>
5159
5160 * breakpoint.c (bpstat_what): Removed duplicated case.
5161
5162 2011-06-28 Tom Tromey <tromey@redhat.com>
5163
5164 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5165
5166 2011-06-27 Tom Tromey <tromey@redhat.com>
5167
5168 * valops.c (find_overload_match): Call do_cleanups before early
5169 return.
5170 * top.c (execute_command): Call do_cleanups before early return.
5171 (command_loop): Likewise.
5172 * stack.c (backtrace_command): Make a null cleanup early. Don't
5173 conditionally call do_cleanups.
5174 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5175 TRY_CATCH.
5176 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5177 so cleanups are always run.
5178 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5179 * findcmd.c (parse_find_args): Call do_cleanups on early return
5180 path.
5181 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5182 Don't conditionally call do_cleanups.
5183 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5184 later.
5185
5186 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5187
5188 * MAINTAINERS (Write After Approval): Use default email address.
5189
5190 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5191
5192 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5193
5194 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5195
5196 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5197 saved_regs_mask and copied_regs_mask fields.
5198 (sparc_record_save_insn): New prototype.
5199 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5200 (sparc_record_save_insn): New function.
5201 (sparc_analyze_prologue): Add head comment. Recognize store insns
5202 of call-saved registers. Use OFFSET consistently. Recognize flat
5203 frames and cache their settings.
5204 (sparc32_skip_prologue): Handle flat frames.
5205 (sparc_frame_cache): Add frame_offset to the base address.
5206 (sparc32_frame_cache): Adjust to new frame description.
5207 (sparc32_frame_prev_register): Likewise.
5208 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5209 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5210 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5211 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5212 frame by calling sparc_record_save_insn.
5213 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5214 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5215 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5216
5217 2011-06-27 Tristan Gingold <gingold@adacore.com>
5218
5219 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5220 field by map_addr and map_len.
5221 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5222 (munmap_section_buffer): Likewise.
5223
5224 2011-06-24 Tom Tromey <tromey@redhat.com>
5225
5226 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5227 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5228 * python/python.c (gdbpy_parameter): Make 'arg' const.
5229 (execute_gdb_command): Likewise.
5230 (gdbpy_decode_line): Likewise. Copy it.
5231 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5232 (gdbpy_write): Make 'arg' const.
5233 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5234 const.
5235 (gdbpy_lookup_type): Likewise.
5236 * python/py-prettyprint.c (print_children): Make 'name' const.
5237 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5238 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5239 Py_ssize_t.
5240 * python/py-function.c (fnpy_init): Make 'name' const.
5241 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5242 (gdbpy_string_to_argv): Make 'input' const.
5243 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5244 it.
5245 * gdbtypes.h (lookup_typename): Update.
5246 * gdbtypes.c (lookup_typename): Make 'name' const.
5247 (lookup_struct): Likewise.
5248 (lookup_union): Likewise.
5249 (lookup_enum): Likewise.
5250
5251 2011-06-24 Tom Tromey <tromey@redhat.com>
5252
5253 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5254 gdb_thread_db.h. Move all common/ entries to be together.
5255 (TAGS): Don't depend on DEPFILES.
5256
5257 2011-06-23 Yao Qi <yao@codesourcery.com>
5258
5259 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5260 * remote.c (remote_start_remote): ... here.
5261 * monitor.c (monitor_open): ... here.
5262
5263 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5264
5265 * gdbtypes.c (append_composite_type_field_aligned): Fix
5266 calculation of bit position based on alignment.
5267
5268 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5269
5270 * breakpoint.c (bpstat_stop_status): Call the check_status
5271 breakpoint_ops method.
5272 (print_one_breakpoint_location): Also print the condition for Ada
5273 exception catchpoints.
5274 (allocate_bp_location): New, factored out from
5275 allocate_bp_location.
5276 (allocate_bp_location): Adjust. Call the owner breakpoint's
5277 allocate_location method, if there is one.
5278 (free_bp_location): Call the locations's dtor method, if there is
5279 one.
5280 (init_raw_breakpoint_without_location): New breakpoint_ops
5281 parameter. Use it.
5282 (set_raw_breakpoint_without_location): Adjust.
5283 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5284 (set_raw_breakpoint): Adjust.
5285 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5286 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5287 re_set and check_status methods.
5288 (init_catchpoint): Don't memset, initialize thread, addr_string
5289 and enable_state. Pass the ops down to init_raw_breakpoint.
5290 (install_catchpoint): Rename to ...
5291 (install_breakpoint): ... this, and make extern.
5292 (create_fork_vfork_event_catchpoint): Adjust.
5293 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5294 re_set and check_status methods.
5295 (create_syscall_event_catchpoint): Adjust.
5296 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5297 (masked_watchpoint_breakpoint_ops): Install NULL
5298 allocate_location, re_set and check_status methods.
5299 (catch_exec_command_1): Adjust.
5300 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5301 re_set and check_status methods.
5302 (create_ada_exception_breakpoint): Rename to ...
5303 (init_ada_exception_breakpoint): ... this. Add a struct
5304 breakpoint parameter, and delete the exp_string, cond_string and
5305 cond parameters. Use init_raw_breakpoint, and don't install or
5306 mention the breakpoint yet. Don't clear breakpoint fields that
5307 init_raw_breakpoint already clears.
5308 (re_set_breakpoint): Delete, split into ...
5309 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5310 functions.
5311 (breakpoint_re_set_one): Call the breakpoint's
5312 breakpoint_ops->re_set implementation, if there's one. Adjust.
5313 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5314 (struct bp_location_ops): New type.
5315 (struct bp_location): New field `ops'.
5316 (struct breakpoint_ops): New `allocate_location', `re_set' and
5317 `check_status' fields. Make `breakpoint_hit''s description match
5318 reality.
5319 (init_bp_location): Declare.
5320 (breakpoint_re_set_default): Declare.
5321 (create_ada_exception_breakpoint): Rename to ...
5322 (init_ada_exception_breakpoint): ... this. Add a struct
5323 breakpoint parameter, and delete the exp_string, cond_string and
5324 cond parameters.
5325 (install_breakpoint): Declare.
5326 * ada-lang.c: Include exceptions.h.
5327 <Ada exceptions description>: Update.
5328 (struct ada_catchpoint_location): New type.
5329 (ada_catchpoint_location_dtor): New function.
5330 (ada_catchpoint_location_ops): New global.
5331 (ada_catchpoint): New type.
5332 (create_excep_cond_exprs): New function.
5333 (dtor_exception, allocate_location_exception, re_set_exception)
5334 (should_stop_exception, check_status_exception): New functions.
5335 (print_one_exception, print_mention_exception)
5336 (print_recreate_exception): Adjust.
5337 (dtor_catch_exception, allocate_location_catch_exception)
5338 (re_set_catch_exception, check_status_catch_exception): New
5339 functions.
5340 (catch_exception_breakpoint_ops): Install them.
5341 (dtor_catch_exception_unhandled)
5342 (allocate_location_catch_exception_unhandled)
5343 (re_set_catch_exception_unhandled)
5344 (check_status_catch_exception_unhandled): New functions.
5345 (catch_exception_unhandled_breakpoint_ops): Install them.
5346 (dtor_catch_assert, allocate_location_catch_assert)
5347 (re_set_catch_assert, check_status_catch_assert): New functions.
5348 (catch_assert_breakpoint_ops): Install them.
5349 (ada_exception_catchpoint_p): Delete.
5350 (catch_ada_exception_command_split)
5351 (ada_exception_catchpoint_cond_string): Rename exp_string
5352 parameter to excep_string. Adjust.
5353 (ada_parse_catchpoint_condition): Delete.
5354 (ada_exception_sal): Rename the exp_string parameter to
5355 excep_string. Delete the cond_string and cond parameters.
5356 Adjust.
5357 (ada_decode_exception_location): Rename the exp_string parameter
5358 to excep_string. Delete the cond_string and cond parameters.
5359 Adjust.
5360 (create_ada_exception_catchpoint): New function.
5361 (catch_ada_exception_command, ada_decode_assert_location)
5362 (catch_assert_command): Adjust.
5363 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5364
5365 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5366
5367 * ada-lang.c: Include arch-utils.h.
5368 (ada_decode_exception_location): Make static.
5369 (catch_ada_exception_command): Moved here from breakpoint.c.
5370 (ada_decode_assert_location): Make static.
5371 (catch_assert_command): Moved here from breakpoint.c.
5372 (_initialize_ada_lang): Install the exception and assert
5373 catchpoint commands here.
5374 * ada-lang.h (ada_decode_exception_location)
5375 (ada_decode_assert_location): Delete declarations.
5376 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5377 breakpoint.h.
5378 (create_ada_exception_breakpoint): Make extern.
5379 (catch_ada_exception_command, catch_assert_command): Moved to
5380 ada-lang.c.
5381 (add_catch_command): Make extern.
5382 (_initilize_breakpoint): Don't install the exception and assert
5383 catchpoint commands here.
5384 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5385 breakpoint.c
5386 (add_catch_command, create_ada_exception_breakpoint): Declare.
5387
5388 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5389
5390 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5391 the breakpoint to the breakpoint chain here.
5392 (set_raw_breakpoint_without_location): Add the breakpoint to the
5393 breakpoint chain here.
5394 (init_raw_breakpoint): Adjust comments.
5395 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5396 here.
5397 (init_catchpoint): Don't set the catchpoint's breakpoint number
5398 here.
5399 (install_catchpoint): New function.
5400 (create_fork_vfork_event_catchpoint)
5401 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5402 use install_catchpoint.
5403
5404 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5405
5406 * breakpoint.c (create_catchpoint_without_mention)
5407 (create_catchpoint): Delete.
5408
5409 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5410
5411 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5412 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5413 reference to exec_pathname.
5414 (struct exec_catchpoint): New type.
5415 (dtor_catch_exec): New function.
5416 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5417 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5418 (catch_exec_command_1): Adjust to use init_catchpoint.
5419 (delete_breakpoint): Remove reference to exec_pathname.
5420
5421 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5422
5423 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5424 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5425 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5426 reference to syscalls_to_be_caught.
5427 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5428 NULL `dtor'.
5429 (struct syscall_catchpoint): New type.
5430 (dtor_catch_syscall): New function.
5431 (insert_catch_syscall, remove_catch_syscall)
5432 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5433 (print_recreate_catch_syscall): Adjust.
5434 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5435 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5436 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5437 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5438 (masked_watchpoint_breakpoint_ops)
5439 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5440 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5441 there is one. Remove references to syscalls_to_be_caught.
5442 (catching_syscall_number): Adjust.
5443 * ada-lang.c (catch_exception_breakpoint_ops)
5444 (catch_exception_unhandled_breakpoint_ops)
5445 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5446
5447 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5448
5449 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5450 field.
5451 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5452 reference to forked_inferior_pid.
5453 (struct fork_catchpoint): New type.
5454 (breakpoint_hit_catch_fork, print_it_catch_fork)
5455 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5456 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5457 (create_fork_vfork_event_catchpoint): Adjust to use
5458 init_catchpoint.
5459
5460 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5461
5462 * breakpoint.c (add_to_breakpoint_chain)
5463 (init_raw_breakpoint_without_location): New functions, factored
5464 out from ...
5465 (set_raw_breakpoint_without_location): ... this one.
5466 (init_raw_breakpoint): New function, factored out from
5467 set_raw_breakpoint and adjusted to use
5468 init_raw_breakpoint_without_location.
5469 (set_raw_breakpoint): Adjust.
5470 (init_catchpoint): New function, factored out from
5471 create_catchpoint_without_mention and adjusted to use
5472 init_raw_breakpoint.
5473 (create_catchpoint_without_mention): Adjust.
5474
5475 2011-06-22 Tom Tromey <tromey@redhat.com>
5476
5477 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5478 argument of 0 specially.
5479
5480 2011-06-22 Yao Qi <yao@codesourcery.com>
5481
5482 * infrun.c (handle_inferior_event): Remove write-only local variable
5483 `sw_single_step_trap_p'.
5484
5485 2011-06-20 Tom Tromey <tromey@redhat.com>
5486
5487 * symtab.c (lookup_language_this): End loop if block is NULL.
5488
5489 2011-06-17 Tom Tromey <tromey@redhat.com>
5490
5491 * valops.c (value_of_this): Use lookup_language_this.
5492 * symtab.h (lookup_language_this): Declare.
5493 * symtab.c (lookup_language_this): New function.
5494 (lookup_symbol_aux): Use lookup_language_this.
5495 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5496
5497 2011-06-17 Tom Tromey <tromey@redhat.com>
5498
5499 * value.h (value_of_this): Update.
5500 (value_of_local): Remove.
5501 * valops.c (value_of_this): Rename from value_of_local. Change
5502 parameters.
5503 * p-exp.y (exp): Update.
5504 (variable): Likewise.
5505 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5506
5507 2011-06-17 Tom Tromey <tromey@redhat.com>
5508
5509 * valops.c (value_of_local): Complain if NAME is NULL.
5510 * std-operator.def (OP_OBJC_SELF): Remove.
5511 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5512 * objc-exp.y (name_not_typename): Use OP_THIS.
5513 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5514 name for "this".
5515 <OP_OBJC_SELF>: Remove.
5516 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5517
5518 2011-06-16 Tristan Gingold <gingold@adacore.com>
5519
5520 * python/py-events.h (gdb_py_events): Make it extern.
5521 * python/py-evtregistry.c (gdb_py_events): Declare.
5522
5523 2011-06-16 Hui Zhu <teawater@gmail.com>
5524
5525 * remote.c (remote_trace_set_readonly_regions): Add check for
5526 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5527 output warning.
5528
5529 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5530
5531 * arm-linux-tdep.c: Include "auxv.h".
5532 (AT_HWCAP): Define.
5533 (ARM_LINUX_SIZEOF_VFP): Define.
5534 (arm_linux_supply_vfp): New function.
5535 (arm_linux_collect_vfp): Likewise.
5536 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5537 (arm_linux_fpa_regset_sections): New variable.
5538 (arm_linux_vfp_regset_sections): Likewise.
5539 (arm_linux_core_read_description): New function.
5540 (arm_linux_init_abi): Install arm_linux_core_read_description and
5541 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5542 appropriate for the architecture.
5543 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5544 (tdesc_arm_with_m): Declare.
5545 (tdesc_arm_with_iwmmxt): Likewise.
5546 (tdesc_arm_with_vfpv2): Likewise.
5547 (tdesc_arm_with_vfpv3): Likewise.
5548 (tdesc_arm_with_neon): Likewise.
5549 * arm-linux-nat.c: Move features/*.c includes ...
5550 * arm-tdep.c: ... here.
5551 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5552 target description data structures ...
5553 * arm-tdep.c (_initialize_arm_tdep): ... here.
5554 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5555 HWCAP_VFPv3D16): Move definitions ...
5556 * arm-linux-tdep.h: ... here.
5557
5558 2011-06-15 Hui Zhu <teawater@gmail.com>
5559
5560 * remote.c (remote_trace_set_readonly_regions): Add a check for
5561 target_buf_size.
5562
5563 2011-06-14 Tom Tromey <tromey@redhat.com>
5564
5565 * coffread.c (coffread_objfile): Rename from current_objfile.
5566 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5567 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5568
5569 2011-06-14 Tom Tromey <tromey@redhat.com>
5570
5571 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5572 (class_symtab): Remove.
5573 (jv_dynamics_progspace_key): New global.
5574 (jv_per_objfile_free): Reset program space data. Update assert.
5575 Don't clear globals.
5576 (get_dynamics_objfile): Use and set program space data.
5577 (get_java_class_symtab): Use get_dynamics_objfile.
5578 (add_class_symbol): Likewise.
5579 (java_link_class_type): Likewise.
5580 (java_object_type, jv_clear_object_type, set_java_object_type):
5581 Remove.
5582 (get_java_object_type): Update. Don't cache result.
5583 (is_object_type): Don't call set_java_object_type.
5584 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5585 initialize jv_dynamics_progspace_key.
5586
5587 2011-06-14 Tom Tromey <tromey@redhat.com>
5588
5589 * symtab.h (current_objfile): Don't declare.
5590 * objfiles.h (current_objfile): Don't declare.
5591 * objfiles.c (current_objfile): Remove.
5592 * mdebugread.c (current_objfile): New file-scope global.
5593 * dbxread.c (current_objfile): New file-scope global.
5594 * coffread.c (current_objfile): New file-scope global.
5595
5596 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5597
5598 * top.h (line): Rename to ...
5599 (saved_command_line): ... this.
5600 (linesize): Rename to ...
5601 (saved_command_line_size): ... this.
5602 * top.c (line): Rename to ...
5603 (saved_command_line): ... this.
5604 (linesize): Rename to ...
5605 (saved_command_line_size): ... this.
5606 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5607 * event-top.c (command_line_handler): Adjust.
5608 * main.c (captured_main): Adjust.
5609
5610 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5611
5612 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5613 get_frame_func instead of get_frame_pc to determine the code
5614 address used to construct the frame ID.
5615 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5616 (i386_epilogue_frame_this_id): Likewise.
5617 (i386_epilogue_frame_prev_register): New function.
5618 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5619 (i386_stack_tramp_frame_sniffer): Fix coding style.
5620 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5621 (i386_gdbarch_init): Fix comments.
5622
5623 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5624
5625 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5626 instruction when walking back through the instruction stream.
5627
5628 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5629
5630 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5631 fullname parameters order.
5632
5633 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5634
5635 Code cleanup.
5636 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5637 for fun.
5638 * psymtab.c (map_symbol_filenames_psymtab)
5639 (map_partial_symbol_filenames): Likewise.
5640 * psymtab.h: Include symfile.h.
5641 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5642 * symfile.h (symbol_filename_ftype): New.
5643 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5644 map_symbol_filenames, clarify more the naming in comment.
5645
5646 2011-06-07 Doug Evans <dje@google.com>
5647
5648 * cc-with-index.sh: Fix typos in comment.
5649 Look for ../../gdb, for fullname.exp.
5650
5651 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 Pedro Alves <pedro@codesourcery.com>
5653
5654 * cli/cli-cmds.c (shell_escape): Use waitpid.
5655 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5656
5657 2011-06-07 Tristan Gingold <gingold@adacore.com>
5658
5659 * xcoffread.c (dwarf2_xcoff_names): New variable.
5660 (aix_process_linenos): Add a guard.
5661 (xcoff_symfile_finish): Free dwarf2.
5662 (xcoff_initial_scan): Add dwarf2 support.
5663
5664 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5665
5666 * infcall.c (run_inferior_call): Don't mask async. Instead force
5667 a synchronous wait, if the target can async.
5668
5669 * target.h (struct target_ops): Delete to_async_mask.
5670 (target_async_mask): Delete.
5671 * target.c (update_current_target): Delete references to to_async_mask.
5672 * linux-nat.c (linux_nat_async_mask_value): Delete.
5673 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5674 to linux_nat_async_mask_value.
5675 (linux_nat_async_mask): Delete.
5676 (linux_nat_async, linux_nat_close): Remove references to
5677 linux_nat_async_mask_value.
5678 * record.c (record_async_mask_value): Delete.
5679 (record_async): Remove references to record_async_mask_value.
5680 (record_async_mask): Delete.
5681 (record_can_async_p, record_is_async_p): Remove references to
5682 record_async_mask_value.
5683 (init_record_ops, init_record_core_ops): Remove references to
5684 record_async_mask.
5685 * remote.c (remote_async_mask_value): Delete.
5686 (init_remote_ops): Remove reference to remote_async_mask.
5687 (remote_can_async_p, remote_is_async_p): Remove references to
5688 remote_async_mask_value.
5689 (remote_async): Remove references to remote_async_mask_value.
5690 (remote_async_mask): Delete.
5691
5692 * infrun.c (fetch_inferior_event): Don't claim registers changed
5693 if the current thread is already not executing.
5694
5695 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5696
5697 From Stephen Kitt <steve@sk2.org>
5698 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5699 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5700
5701 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5702
5703 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5704 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5705
5706 2011-06-03 Tom Tromey <tromey@redhat.com>
5707
5708 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5709 code fields.
5710 * python/py-exitedevent.c (create_exited_event_object): Change
5711 type of 'exit_code'. Optionally add exit_code attribute.
5712 (emit_exited_event): Change type of 'exit_code'.
5713 * python/py-event.h (emit_exited_event): Update.
5714 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5715 * infrun.c (handle_inferior_event): Set exit code fields on
5716 inferior.
5717 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5718 fields.
5719 * inferior.c (exit_inferior_1): Initialize new fields.
5720
5721 2011-06-03 Tom Tromey <tromey@redhat.com>
5722
5723 * dwarf2expr.c (get_signed_type): New function.
5724 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5725
5726 2011-06-02 Keith Seitz <keiths@redhat.com>
5727
5728 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5729
5730 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5731
5732 * top.h (simplified_command_loop): Delete declaration.
5733
5734 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5735
5736 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5737 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5738
5739 2011-06-01 Yao Qi <yao@codesourcery.com>
5740
5741 * objfiles.h (obj_section_addr): Update reference to objfile from
5742 `abfd' to `obfd'.
5743 (obj_section_endaddr): Likewise.
5744
5745 2011-06-01 Daniel Jacobowitz <drow@false.org>
5746
5747 * MAINTAINERS: Update my email address and affiliation. Also
5748 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5749
5750 2010-05-31 Keith Seitz <keiths@redhat.com>
5751
5752 PR c++/12750
5753 * linespec.c (get_search_block): New function.
5754 (find_methods): Add FILE_SYMTATB parameter and use it and
5755 get_search_block to pass an appropriate block to
5756 lookup_symbol_in_namespace.
5757 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5758 Check if *ARGPTR starts with a filename first.
5759 If it does, call locate_first_half again to locate the next
5760 "first half" of the linespec.
5761 Pass FILE_SYMTATB to decode_objc and decode_compound.
5762 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5763 (locate_first_half): Stop on the first colon seen.
5764 (decode_compound): Add FILE_SYMTAB parameter.
5765 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5766 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5767 get_search_block with lookup_symbol.
5768 (find_method): Add FILE_SYMTAB parameter and pass it to
5769 find_methods.
5770 (decode_objc): Use get_search_block.
5771
5772 2010-05-31 Keith Seitz <keiths@redhat.com>
5773
5774 PR symtab/12704
5775 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5776 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5777 and CP_ANONYMOUS_NAMESPACE_LEN.
5778 (cp_is_anonymous): Likewise.
5779 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5780 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5781 * dwarf2read.c (namespace_name): Likewise.
5782 (fixup_partial_die): Likewise.
5783 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5784 seen in the input, keep it.
5785
5786 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5787
5788 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5789 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5790 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5791 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5792 * remote.c (_initialize_remote): Register
5793 async_remote_interrupt_twice directly as
5794 sigint_remote_twice_token event.
5795
5796 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5797
5798 * target.h (enum inferior_event_type): Delete INF_ERROR.
5799 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5800
5801 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5802
5803 * interps.c (interp_set): Don't cancel continuations.
5804
5805 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5808
5809 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5810
5811 * continuations.h (continuation_ftype): Add `err' parameter.
5812 Document parameters.
5813 (do_all_continuations, do_all_continuations_thread)
5814 (do_all_intermediate_continuations)
5815 (do_all_intermediate_continuations_thread)
5816 (do_all_inferior_continuations): Add `err' parameter.
5817 * continuations.c (do_my_continuations_1, do_my_continuations)
5818 (do_all_inferior_continuations, do_all_continuations_ptid)
5819 (do_all_continuations_thread_callback)
5820 (do_all_continuations_thread, do_all_continuations)
5821 (do_all_intermediate_continuations_thread_callback)
5822 (do_all_intermediate_continuations_thread)
5823 (do_all_intermediate_continuations): Add `err' parameter, and pass
5824 it down all the way to the continuations proper.
5825 * inf-loop.c (inferior_event_handler): If fetching an inferior
5826 event throws an error, don't pop the target, and still call the
5827 continuations, but with `err' set. Adjust all other continuation
5828 calls.
5829 * breakpoint.c (until_break_command_continuation): Add `err'
5830 parameter.
5831 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5832 issue another step if `err' is set.
5833 (struct until_next_continuation_args): New.
5834 (until_next_continuation): Add `err' parameter. Adjust.
5835 (until_next_command): Adjust.
5836 (struct finish_command_continuation_args): Add `thread' field.
5837 (finish_command_continuation): Add `err' parameter. Handle it.
5838 (finish_forward): Adjust.
5839 (attach_command_continuation): Add `err' parameter. Handle it.
5840 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5841 cancel the continuations.
5842 * interps.c (interp_set): Adjust to cancel the continuations.
5843 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5844 continuations rather than discarding.
5845 (free_thread): Don't clear thread inferior resources here.
5846 (delete_thread_1): Do it here instead. And do it before removing
5847 the thread from the threads list. Tag the thread as exited before
5848 clearing thread inferior resources.
5849
5850 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5851
5852 * infcall.c (call_function_by_hand): Rephrase error message.
5853
5854 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5855
5856 * defs.h (struct thread_info, struct inferior): Delete forward
5857 declarations.
5858 * breakpoint.h (struct thread_info): New forward declaration.
5859 * observer.sh (struct inferior): New forward declaration.
5860 * python/python-internal.h (struct inferior): New forward
5861 declaration.
5862
5863 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5864
5865 * defs.h (struct continuation, continuation_ftype)
5866 (continuation_free_arg_ftype, add_continuation)
5867 (do_all_continuations, do_all_continuations_thread)
5868 (discard_all_continuations, discard_all_continuations_thread)
5869 (add_intermediate_continuation, do_all_intermediate_continuations)
5870 (do_all_intermediate_continuations_thread)
5871 (discard_all_intermediate_continuations)
5872 (discard_all_intermediate_continuations_thread)
5873 (add_inferior_continuation, do_all_inferior_continuations)
5874 (discard_all_inferior_continuations): Move to ...
5875 * continuations.h: ... this new file.
5876 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5877 infcmd.c, inferior.c, infrun.c, interps.c: Include
5878 continuations.h.
5879
5880 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5881 Doug Evans <dje@google.com>
5882
5883 Fix PR 10970, PR 12702.
5884 * linux-nat.c (linux_lwp_is_zombie): New function.
5885 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5886 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5887
5888 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5889
5890 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5891 typedefs.
5892 (add_continuation, add_intermediate_continuation)
5893 (add_inferior_continuation): Use them.
5894 * continuations.c (struct continuation): Use them.
5895 (make_continuation_ftype): Delete.
5896 (make_continuation, add_inferior_continuation, add_continuation)
5897 (add_intermediate_continuation): Use continuation_ftype and
5898 continuation_free_arg_ftype. Rename parameters to shorter names.
5899
5900 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5901
5902 * continuations.c (make_continuation): Make it return void.
5903 (do_my_continuations): Rename to ...
5904 (do_my_continuations_1): ... this. Remove old_chain parameter and
5905 adjust.
5906 (do_my_continuations): New.
5907 (discard_my_continuations): Rename to ...
5908 (discard_my_continuations_1): ... this. Remove old_chain
5909 parameter and adjust.
5910 (discard_my_continuations): New.
5911 (add_inferior_continuation): Simplify.
5912 (do_all_inferior_continuations): Reimplement on top
5913 do_my_continuations.
5914 (discard_all_inferior_continuations): Simplify.
5915 (add_continuation): Simplify.
5916 (do_all_continuations_ptid): Simplify.
5917 (discard_all_continuations_thread_callback): Simplify.
5918 (add_intermediate_continuation): Simplify.
5919 (discard_all_intermediate_continuations_thread_callback):
5920 Simplify.
5921
5922 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5923
5924 * utils.c (struct continuation, add_continuation)
5925 (add_inferior_continuation)
5926 (do_all_inferior_continuations, discard_all_inferior_continuations)
5927 (restore_thread_cleanup, do_all_continuations_ptid)
5928 (do_all_continuations_thread_callback)
5929 (do_all_continuations_thread, do_all_continuations)
5930 (discard_all_continuations_thread_callback)
5931 (discard_all_continuations_thread, discard_all_continuations)
5932 (add_intermediate_continuation)
5933 (do_all_intermediate_continuations_thread_callback)
5934 (do_all_intermediate_continuations_thread)
5935 (do_all_intermediate_continuations)
5936 (discard_all_intermediate_continuations_thread_callback)
5937 (discard_all_intermediate_continuations_thread)
5938 (discard_all_intermediate_continuations): Move to ...
5939 * continuations.c: ... this new file, and adjust to no longer
5940 implement continuations on top of cleanups.
5941 * Makefile.in (SFILES): Add continuations.c.
5942 (COMMON_OBS): Add continuations.o.
5943
5944 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5945
5946 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5947 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5948 Internal error on invalid values.
5949 * reverse.c: Don't handle EXEC_ERROR.
5950 * mi/mi-main.c: Don't handle EXEC_ERROR.
5951
5952 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5953
5954 * record.c: Include event-loop.h, inf-loop.h.
5955 (record_beneath_to_async): New global.
5956 (tmp_to_async): New global.
5957 (record_async_inferior_event_token): New global.
5958 (record_open_1): Don't error out if async is enabled.
5959 (record_open): Handle to_async. Create an async event source in
5960 the event loop.
5961 (record_close): Delete the async event source.
5962 (record_resumed): New global.
5963 (record_execution_dir): New global.
5964 (record_resume, record_core_resume): Set them. Register the
5965 target on the event loop.
5966 (record_wait): Rename to ...
5967 (record_wait_1): ... this. Add more debug output. Handle
5968 TARGET_WNOHANG, and the target beneath returning
5969 TARGET_WAITKIND_IGNORE.
5970 (record_wait): Reimplement on top of record_wait_1.
5971 (record_async_mask_value): New global.
5972 (record_async, record_async_mask, record_can_async_p)
5973 (record_is_async_p, record_execution_direction): New functions.
5974 (init_record_ops, init_record_core_ops): Install new methods.
5975 * infrun.c (fetch_inferior_event): Temporarily switch the global
5976 execution direction to the direction the target was going.
5977 (execution_direction): Change type to int.
5978 * target.c (default_execution_direction): New function.
5979 (update_current_target): Inherit and de_fault
5980 to_execution_direction.
5981 * target.h (struct target_ops) <to_execution_direction>: New
5982 field.
5983 (target_execution_direction): New macro.
5984 * inferior.h (execution_direction): Change type to int.
5985
5986 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5987
5988 * infcall.c (call_function_by_hand): Don't allow calling functions
5989 in reverse execution mode.
5990
5991 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5992
5993 * infcmd.c (finish_command): Allow async finish in reverse.
5994
5995 2011-05-26 Yao Qi <yao@codesourcery.com>
5996
5997 * gdb_thread_db.h: Delete. Move to ...
5998 * common/gdb_thread_db.h: ... here.
5999
6000 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6001
6002 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6003 function's entry point instead of a manually managed momentary
6004 breakpoint, and only ever issue one proceed call.
6005 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6006 doing a reverse-finish, switch to stepi mode, to do another step.
6007 (insert_step_resume_breakpoint_at_sal): Make public.
6008 (normal_stop): No need to save function value return registers if
6009 going reverse.
6010 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6011
6012 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6013
6014 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6015 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6016 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6017 at the end.
6018 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6019 step-resume breakpoints.
6020 (print_it_typical): Handle bp_hp_step_resume.
6021 (bpstat_what): Ditto.
6022 (bptype_string): Ditto.
6023 (print_one_breakpoint_location): Ditto.
6024 (allocate_bp_location): Ditto.
6025 (mention): Ditto.
6026 (breakpoint_re_set_one): Ditto.
6027 * infrun.c (handle_inferior_event): Adjust. Split
6028 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6029 BPSTAT_WHAT_HP_STEP_RESUME.
6030 (insert_step_resume_breakpoint_at_sal): Rename to ...
6031 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6032 parameter. Handle it.
6033 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6034 insert_step_resume_breakpoint_at_sal_1.
6035 (insert_step_resume_breakpoint_at_frame): Rename to ...
6036 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6037 set a high-priority step-resume breakpoint.
6038 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6039 (insert_step_resume_breakpoint_at_caller): Ditto.
6040
6041 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6042
6043 * breakpoint.c (iterate_over_related_breakpoints): New.
6044 (do_map_delete_breakpoint): New.
6045 (delete_command): Pass do_map_delete_breakpoint to
6046 map_breakpoint_numbers.
6047 (do_disable_breakpoint): New.
6048 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6049 breakpoints.
6050 (do_enable_breakpoint): Rename to ...
6051 (enable_breakpoint_disp): ... this.
6052 (enable_breakpoint): Adjust.
6053 (do_enable_breakpoint): New.
6054 (enable_once_breakpoint): Delete.
6055 (do_map_enable_breakpoint): New.
6056 (do_map_enable_once_breakpoint): New.
6057 (enable_once_command, enable_delete_command)
6058 (delete_trace_command): Iterate over the breakpoint's related
6059 breakpoints.
6060
6061 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6062
6063 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6064 for ALPHA_ZERO_REGNUM.
6065 (alpha_supply_int_regs): Explicitly supply zero as the value for
6066 ALPHA_ZERO_REGNUM in the register cache.
6067 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6068
6069 2011-05-26 Yao Qi <yao@codesourcery.com>
6070
6071 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6072
6073 2011-05-26 Tristan Gingold <gingold@adacore.com>
6074
6075 * symfile.h (struct dwarf2_section_names): New type.
6076 (struct dwarf2_debug_sections): New type.
6077 (dwarf2_has_info): Add parameter.
6078 * dwarf2read.c (dwarf2_elf_names): New variable.
6079 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6080 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6081 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6082 (dwarf2_has_info): Add names parameter. Pass names
6083 to dwarf2_locate_sections.
6084 (section_is_p): Rewrite using the names parameter.
6085 (dwarf2_locate_sections): Use section names from the names parameter.
6086 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6087 * elfread.c (read_psyms): Ditto.
6088 * machoread.c (macho_symfile_read): Ditto.
6089
6090 2011-05-25 Andreas Schwab <schwab@redhat.com>
6091
6092 PR gdb/8677
6093 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6094
6095 2011-05-24 Keith Seitz <keiths@redhat.com>
6096
6097 PR breakpoint/12803
6098 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6099 (decode_compound): Unconditionally call keep_name_info.
6100
6101 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6102
6103 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6104 scope, clear its command list.
6105 (map_breakpoint_numbers): Don't walk the related breakpoints list
6106 of each breakpoint.
6107
6108 2011-05-24 Tom Tromey <tromey@redhat.com>
6109
6110 * MAINTAINERS: Move Jim Blandy to past maintainers.
6111
6112 2011-05-24 Tristan Gingold <gingold@adacore.com>
6113
6114 * symfile.h (enum dwarf2_section_enum): New type.
6115 (dwarf2_get_section_info): New prototype.
6116 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6117 section_name by sect. Use a switch to select the info.
6118 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6119 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6120
6121 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6122
6123 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6124 shared library event breakpoint if there's no execution.
6125
6126 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6127
6128 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6129 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6130
6131 2011-05-23 Tom Tromey <tromey@redhat.com>
6132
6133 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6134 NULL.
6135
6136 2011-05-23 Doug Evans <dje@google.com>
6137
6138 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6139 entry for RuntimeError to doc string.
6140
6141 2011-05-23 Jerome Guitton <guitton@adacore.com>
6142
6143 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6144 sequence for probing loops.
6145
6146 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6147
6148 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6149 comment.
6150
6151 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6152
6153 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6154 zero as the value for %g0 in the register cache.
6155 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6156 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6157
6158 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6159
6160 * infrun.c (proceed): Set previous_inferior_ptid here.
6161 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6162 inferior_ptid, not null_ptid.
6163 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6164 (fetch_inferior_event): Nor here.
6165
6166 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6167
6168 * inf-loop.c (inferior_event_handler): Only output a message if
6169 verbose.
6170
6171 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6172
6173 * MAINTAINERS: Update my e-mail address.
6174
6175 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6176
6177 * infrun.c (proceed): Switch the inferior event loop to
6178 INF_EXEC_COMPLETE if the target refused to resume from a
6179 vfork/fork.
6180
6181 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6182
6183 * infcmd.c: Include "inf-loop.h".
6184 (step_once): When stepping into an inline subroutine, pretend the
6185 target has run. If the target can async, switch the inferior
6186 event loop to INF_EXEC_COMPLETE.
6187 * inferior.h (user_visible_resume_ptid): Declare.
6188 * infrun.c (user_visible_resume_ptid): New function, factored out
6189 from `resume'.
6190 (resume): Use it.
6191 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6192 that the current thread is running. Merge async and sync
6193 branches.
6194
6195 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6196
6197 * infcmd.c (step_1): Simplify synchronous case.
6198
6199 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6200
6201 * tracepoint.c: Include exceptions.h.
6202 (TFILE_PID): Move higher in file.
6203 (tfile_open): Delay pushing the tfile target until we're assured
6204 the tfile header is present in the file. Wrap reading the initial
6205 newline-terminated lines in TRY_CATCH. Pop the target if the
6206 initial setup failed. Add the tfile's thread immediately
6207 aftwards, before any non-essential setup. Don't skip
6208 post_create_inferior if there are no traceframes present in the
6209 file.
6210 (tfile_close): Remove redundant check for null before xfree call.
6211 (tfile_thread_alive): New function.
6212 (init_tfile_ops): Register it as to_thread_alive callback.
6213
6214 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6215
6216 * tracepoint.c (tfile_open): Delete #if 0'd code.
6217
6218 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6219
6220 Fix -readnow for -gdwarf-4 unused type units.
6221 * dwarf2read.c (struct signatured_type): Remove the field offset.
6222 (create_signatured_type_table_from_index): Remove its initialization.
6223 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6224 instead. Add a complaint call.
6225 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6226 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6227 (lookup_signatured_type_at_offset, read_signatured_type)
6228 (write_one_signatured_type): Update the field for per_cu.
6229
6230 2011-05-19 Tom Tromey <tromey@redhat.com>
6231
6232 * python/py-inferior.c (python_inferior_exit): Use
6233 target_gdbarch.
6234 (python_on_resume): Likewise.
6235
6236 2011-05-19 Matt Rice <ratmice@gmail.com>
6237
6238 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6239
6240 2011-05-19 Hui Zhu <teawater@gmail.com>
6241
6242 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6243
6244 2011-05-19 Hui Zhu <teawater@gmail.com>
6245
6246 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6247
6248 2011-05-18 Tom Tromey <tromey@redhat.com>
6249
6250 * dwarf2read.c (dwarf2_add_field): Constify.
6251 * value.c (value_static_field): Constify.
6252 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6253 Now const.
6254 * ax-gdb.c (gen_static_field): Constify
6255
6256 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * linux-nat.c (kill_callback): Use SIGKILL first.
6259
6260 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6261
6262 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6263
6264 2011-05-18 Tom Tromey <tromey@redhat.com>
6265
6266 * value.c (value_fn_field): Constify.
6267 * symtab.c (gdb_mangle_name): Constify.
6268 * stabsread.c (update_method_name_from_physname): Make 'physname'
6269 argument const.
6270 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6271 const. Use explicit fputc_filtered loop.
6272 (pascal_type_print_base): Constify.
6273 * p-lang.h (pascal_type_print_method_args): Update.
6274 * linespec.c (add_matching_methods): Constify.
6275 (add_constructors): Likewise.
6276 * jv-typeprint.c (java_type_print_base): Constify.
6277 * gdbtypes.h (struct cplus_struct_type)
6278 <fn_fieldlist.fn_field.physname>: Now const.
6279 * dwarf2read.c (compute_delayed_physnames): Constify.
6280 (dwarf2_add_member_fn): Likewise.
6281 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6282
6283 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6284
6285 * infrun.c (resume): Mention which is the current thread, and its
6286 current PC in debug output.
6287 (prepare_to_proceed): Mention the thread switching in debug
6288 output.
6289
6290 2011-05-18 Tom Tromey <tromey@redhat.com>
6291
6292 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6293 path check. Use xmalloc and cleanups.
6294 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6295
6296 2011-05-17 Tom Tromey <tromey@redhat.com>
6297
6298 * cp-valprint.c (cp_print_value_fields): Catch errors from
6299 value_static_field.
6300
6301 2011-05-17 Tom Tromey <tromey@redhat.com>
6302
6303 * dwarf2read.c (dwarf2_get_die_type): Call
6304 get_die_type_at_offset.
6305 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6306 get_base_type function.
6307
6308 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6309
6310 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6311 trap_expected.
6312
6313 2011-05-16 Doug Evans <dje@google.com>
6314
6315 * python/py-auto-load.c (source_section_scripts): Mention objfile
6316 name in warning.
6317
6318 2011-05-15 Doug Evans <dje@google.com>
6319
6320 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6321 (try_thread_db_load_from_pdir): Call it. If unable to find
6322 libthread_db in directory of libpthread, see if we're looking at
6323 the separate-debug-info copy.
6324
6325 * python/py-autoload.c (print_script): Print "Missing" instead of
6326 "No" for missing scripts.
6327 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6328
6329 2011-05-13 Doug Evans <dje@google.com>
6330
6331 * ui-file.c (stdio_file_write_async_safe): Add comment.
6332
6333 2011-05-14 Hui Zhu <teawater@gmail.com>
6334
6335 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6336
6337 2011-05-13 Doug Evans <dje@google.com>
6338
6339 Support $pdir and $sdir in libthread-db-search-path.
6340 * NEWS: Mention $sdir,$pdir.
6341 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6342 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6343 (try_thread_db_load_from_sdir): New function.
6344 (try_thread_db_load_from_dir): New function.
6345 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6346 system directories if search of libthread-db-search-path fails,
6347 that is now done via $sdir.
6348 (has_libpthread): New function.
6349 (thread_db_load): Remove search for libthread_db in directory of
6350 libpthread, that is now done via $pdir.
6351
6352 * NEWS: Mention "info auto-load-scripts".
6353 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6354 script_not_found_warning_printed.
6355 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6356 all callers updated. Initialize script_not_found_warning_printed.
6357 (get_auto_load_pspace_data_for_loading): New function.
6358 (maybe_add_script): New function.
6359 (source_section_scripts): Simplify. Only print one warning regardless
6360 of the number of auto-load scripts not found.
6361 (clear_section_scripts): Clear script_not_found_warning_printed.
6362 (auto_load_objfile_script): Record script in hash table.
6363 (count_matching_scripts): New function.
6364 (maybe_print_script): Renamed from maybe_print_section_script, all
6365 callers updated. Rewrite to use ui_out_*.
6366 (info_auto_load_scripts): Renamed from
6367 maintenance_print_section_scripts, all callers updated.
6368 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6369 renamed as "info auto-load-scripts".
6370
6371 2011-05-13 Tom Tromey <tromey@redhat.com>
6372
6373 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6374 (read_sleb128): Likewise.
6375
6376 2011-05-13 Tom Tromey <tromey@redhat.com>
6377
6378 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6379 offset display.
6380
6381 2011-05-13 Doug Evans <dje@google.com>
6382
6383 * linux-nat.c (debug_linux_nat_async): Delete.
6384 Replace all references to use debug_linux_nat instead.
6385 (show_debug_linux_nat_async): Delete.
6386 (sigchld_handler): Call ui_file_write_async_safe instead of
6387 fprintf_unfiltered.
6388 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6389 * ui-file.c (struct ui_file): New member to_write_async_safe.
6390 (null_file_write_async_safe): New function.
6391 (ui_file_write_async_safe): New function.
6392 (set_ui_file_write_async_safe): New function.
6393 (ui_file_new): Initialize to_write_async_safe.
6394 (stdio_file_write_async_safe): New function.
6395 (struct stdio_file): New member fd.
6396 (stdio_file_new): Initialize to_write_async_safe, fd.
6397 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6398 fileno.
6399 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6400 (set_ui_file_write_async_safe): Declare.
6401 (ui_file_write_async_safe): Declare.
6402
6403 2011-05-13 Tom Tromey <tromey@redhat.com>
6404
6405 * utils.c (do_value_free): New function.
6406 (make_cleanup_value_free): Likewise.
6407 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6408 freeing correctly.
6409 (dwarf2_loc_desc_needs_frame): Call
6410 make_cleanup_value_free_to_mark.
6411 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6412 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6413 value_free_to_mark.
6414 (new_dwarf_expr_context): Don't call value_mark.
6415 * dwarf2-frame.c (execute_stack_op): Call
6416 make_cleanup_value_free_to_mark.
6417 * defs.h (make_cleanup_value_free): Declare.
6418
6419 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6420
6421 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6422 prepare_execute_command.
6423 * top.c (prepare_execute_command): Return cleanup.
6424 (execute_command): Use cleanup from prepare_execute_command.
6425 * top.h (prepare_execute_command): Change prototype to return
6426 cleanup.
6427 * defs.h (struct value): Add opaque declaration.
6428 (make_cleanup_value_free_to_mark): Add prototype.
6429 * utils.c (do_value_free_to_mark): New function.
6430 (make_cleanup_value_free_to_mark): Likewise.
6431
6432 2011-05-12 Tom Tromey <tromey@redhat.com>
6433
6434 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6435 cast left-hand-side to unsigned.
6436
6437 2011-05-12 Tom Tromey <tromey@redhat.com>
6438
6439 PR gdb/12617:
6440 * value.h (value_from_contents): Declare.
6441 * value.c (value_from_contents): New function.
6442 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6443 (dwarf2_get_die_type): New function.
6444 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6445 (allocate_piece_closure): Acquire reference to values.
6446 (read_pieced_value): Update for value-based expressions.
6447 (write_pieced_value): Likewise.
6448 (free_pieced_value_closure): Call value_free as needed.
6449 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6450 Update for value-based expressions.
6451 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6452 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6453 <get_base_type>: New field.
6454 (struct dwarf_expr_piece) <v.value>: Change type.
6455 <v.regno>: New field.
6456 (struct dwarf_expr_context) <mark>: New field.
6457 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6458 (dwarf_expr_pop, dwarf_expr_push): Remove.
6459 (dwarf_expr_push_address): Declare.
6460 * dwarf2expr.c (dwarf_arch_cookie): New global.
6461 (struct dwarf_gdbarch_types): New.
6462 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6463 functions.
6464 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6465 static.
6466 (dwarf_expr_push_address): New function.
6467 (dwarf_expr_pop): Now static.
6468 (dwarf_expr_fetch): Change return type.
6469 (dwarf_require_integral): New function.
6470 (dwarf_expr_fetch): Simplify.
6471 (add_piece): Update.
6472 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6473 functions.
6474 (execute_stack_op) <sign_ext>: Remove.
6475 Use values for DWARF stack.
6476 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6477 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6478 New cases.
6479 (_initialize_dwarf2expr): New function.
6480 (add_piece): Update.
6481 (new_dwarf_expr_context): Set new field.
6482 (free_dwarf_expr_context): Call value_free_to_mark.
6483 * dwarf2-frame.c (no_base_type): New function.
6484 (execute_stack_op): Set get_base_type field. Update.
6485
6486 2011-05-12 Tom Tromey <tromey@redhat.com>
6487
6488 * dwarf2read.c (read_common_block): Fix formatting.
6489
6490 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6491
6492 * breakpoint.c (disable_breakpoint): Disable all locations
6493 associated with a tracepoint on target if a trace experiment is
6494 running.
6495 (disable_command): Disable a specific tracepoint location on target if
6496 a trace experiment is running.
6497 (do_enable_breakpoint): Enable all locations associated with a
6498 tracepoint on target if a trace experiment is running.
6499 (enable_command) Enable a specific tracepoint location on target if a
6500 trace experiment is running.
6501 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6502 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6503 to_disable_tracepoint.
6504 * target.h: Add declaration of struct bp_location.
6505 (struct target_ops): Add new functions
6506 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6507 to_disable_tracepoint to target operations.
6508 (target_supports_enable_disable_tracepoint): New macro.
6509 (target_enable_tracepoint): New macro.
6510 (target_disable_tracepoint): New macro.
6511 * remote.c (struct remote_state): Add new field.
6512 (remote_enable_disable_tracepoint_feature): New.
6513 (remote_protocol_features): Add new entry.
6514 (remote_supports_enable_disable_tracepoint): New.
6515 (remote_enable_tracepoint): New.
6516 (remote_disable_tracepoint): New.
6517 (init_remote_ops): Add remote_enable_tracepoint,
6518 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6519 to remote operations.
6520 * tracepoint.c (start_tracing): Allow tracing to start without any
6521 tracepoints enabled with just a warning if they can be re-enabled
6522 later.
6523 * NEWS: Add news item for the new behaviour of the enable and disable
6524 GDB commands when applied to tracepoints.
6525 Add news items for the new remote packets QTEnable and QTDisable.
6526
6527 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6528
6529 * config.in: Regenerate.
6530 * configure: Regenerate.
6531 * configure.ac <--with-system-readline> (for readline_echoing_p):
6532 Remove the test.
6533 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6534 (tui_old_rl_echoing_p): ... here.
6535 (tui_setup_io): Rename extern declaration readline_echoing_p to
6536 _rl_echoing_p. Adjust assignments for the both renames.
6537
6538 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6539
6540 * symtab.c (lookup_symtab): Run cleanup before returning.
6541
6542 2011-05-11 Tom Tromey <tromey@redhat.com>
6543
6544 * dwarf2read.c (handle_data_member_location): New function.
6545 (dwarf2_add_field): Use it.
6546 (read_common_block): Likewise.
6547
6548 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 Make addrs->SECTINDEX always defined.
6551 * symfile.c (relative_addr_info_to_section_offsets): Check for
6552 SECTINDEX -1, not for zero ADDR.
6553 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6554 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6555 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6556 on its validity.
6557
6558 2011-05-10 Doug Evans <dje@google.com>
6559
6560 * linux-thread-db.c: Whitespace cleanup.
6561 (try_thread_db_load_1): Fix comment.
6562
6563 * linux-thread-db.c (set_libthread_db_search_path): New function.
6564 (_initialize_thread_db): Add setter for libthread-db-search-path.
6565
6566 2011-05-09 Doug Evans <dje@google.com>
6567
6568 * NEWS: Mention --with-iconv-bin.
6569 * configure.ac: New option --with-iconv-bin.
6570 * configure: Regenerate.
6571 * config.in: Regenerate.
6572 * defs.h (relocate_gdb_directory): Declare.
6573 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6574 removed progname parameter, and exported. All callers updated.
6575 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6576
6577 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6578 adding missing call to restore_child_signals_mask.
6579
6580 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6581
6582 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6583 parameter.
6584 * infrun.c (proceed, start_remote): Adjust.
6585 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6586 and adjust to not handle it.
6587 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6588 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6589 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6590 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6591 * windows-nat.c (do_initial_windows_stuff): Adjust.
6592 * infcmd.c (attach_command): Adjust.
6593 (notice_new_inferior): Adjust.
6594
6595 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6596
6597 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6598 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6599 * spu-tdep.c (op_selb): Use correct value.
6600
6601 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6602
6603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6604 "parent" parameter to symbol_file_add_from_bfd call.
6605
6606 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6607 Thiago Jung Bauermann <bauerman@br.ibm.com>
6608
6609 Implement support for PowerPC BookE masked watchpoints.
6610 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6611 section.
6612 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6613 method. Initialize to NULL in all existing breakpoint_ops instances.
6614 (struct breakpoint) <hw_wp_mask>: New field.
6615 * breakpoint.c (is_masked_watchpoint): Add prototype.
6616 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6617 breakpoint's breakpoint_ops.works_in_software_mode if available.
6618 (watchpoints_triggered): Handle the case of a hardware masked
6619 watchpoint trigger.
6620 (watchpoint_check): Likewise.
6621 (works_in_software_mode_watchpoint): New function.
6622 (insert_masked_watchpoint, remove_masked_watchpoint)
6623 (resources_needed_masked_watchpoint)
6624 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6625 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6626 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6627 functions.
6628 (masked_watchpoint_breakpoint_ops): New structure.
6629 (watch_command_1): Check for the existence of the `mask' parameter.
6630 Set b->ops according to the type of hardware watchpoint being created.
6631 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6632 (ppc_linux_remove_mask_watchpoint)
6633 (ppc_linux_masked_watch_num_registers): New functions.
6634 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6635 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6636 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6637 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6638 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6639 (target_masked_watch_num_registers): New functions.
6640 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6641 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6642 methods.
6643 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6644 (target_masked_watch_num_registers): Add prototypes.
6645
6646 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6647
6648 PR 12573
6649 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6650 (producer_is_gcc_ge_4_0): New function.
6651 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6652 symtab->language code.
6653 (var_decode_location): Set cu->has_loclist.
6654 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6655 skip. Intialize force_skip from locations_valid. Move the prologue
6656 skipping code into two passes.
6657 * symtab.h (struct symtab): Make the primary field a bitfield. New
6658 field locations_valid.
6659
6660 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6663 (classify_inner_name): Call cp_lookup_nested_type with
6664 yylval.tsym.type.
6665 * cp-namespace.c (cp_lookup_nested_type): New variable
6666 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6667 type_name_no_tag_or_error with saved_parent_type.
6668 * dwarf2read.c (load_partial_dies): Read in any children of
6669 DW_TAG_typedef with complaint in such case.
6670 * gdbtypes.c (type_name_no_tag_or_error): New function.
6671 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6672 * valops.c (destructor_name_p): New comment for parameter type. Remove
6673 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6674 * value.h (destructor_name_p): Remove type const.
6675
6676 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 * symtab.c (compare_symbol_name): New function.
6679 (completion_list_add_name, expand_partial_symbol_name): Call it,
6680 remove the variable ncmp.
6681 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6682 gdb_assert it.
6683
6684 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6685
6686 Demote to sw watchpoint only in update_watchpoint.
6687 * breakpoint.c (update_watchpoint): Change between software and
6688 hardware watchpoint for all kinds of watchpoints, not just
6689 read/write ones. Determine b->exact value here instead of
6690 in watch_command_1. Error out if there are not enough resources
6691 for a read or access hardware watchpoint.
6692 (watch_command_1): Remove logic of checking whether there are
6693 enough resources available, since update_watchpoint will do that
6694 work now. Don't set b->exact here. Catch exceptions thrown by
6695 update_watchpoint and delete the watchpoint.
6696 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6697 Use target_exact_watchpoints instead.
6698 (delete_breakpoint): Notify observers only if deleted watchpoint
6699 has a breakpoint number assigned to it.
6700
6701 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6702
6703 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6704
6705 2011-05-05 Jerome Guitton <guitton@adacore.com>
6706
6707 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6708 New functions.
6709 (i386_stack_tramp_frame_unwind): New static global.
6710 (i386_match_pattern): New function, extracted from i386_match_insn.
6711 (i386_match_insn): Use i386_match_pattern.
6712 (i386_match_insn_block): New function.
6713 (i386_tramp_chain_in_reg_insns)
6714 (i386_tramp_chain_on_stack_insns): New static variables.
6715 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6716 of unwinders.
6717
6718 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6719
6720 * configure.host (xscale*): Don't handle target.
6721 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6722 handle targets.
6723
6724 2011-05-04 Yao Qi <yao@codesourcery.com>
6725
6726 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6727
6728 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6729
6730 Revert:
6731 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6732 | * elfread.c (elf_symtab_read): Stop memory leak.
6733
6734 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6735
6736 * nto-tdep.c (nto_target): Replace deprecated call to
6737 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6738
6739 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 Fix false GCC warning.
6742 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6743
6744 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6745
6746 * breakpoint.c (update_watchpoint): Move code to change
6747 the enable state of breakpoint from here ...
6748 (do_enable_breakpoint): ... to here.
6749
6750 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6751
6752 * valprint.c (val_print_array_elements): Fixed poor performance
6753 of printing very large arrays with repeat_count_threshold set
6754 to unlimited. New comment.
6755
6756 2011-04-29 Tom Tromey <tromey@redhat.com>
6757
6758 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6759 (mi_parse): Likewise.
6760 * breakpoint.c (break_range_command): Use sizeof char*, not
6761 char**.
6762 (create_breakpoint): Likewise.
6763 (parse_breakpoint_sals): Likewise.
6764
6765 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6766
6767 * linux-nat.c (linux_child_remove_fork_catchpoint)
6768 (linux_child_remove_vfork_catchpoint)
6769 (linux_child_remove_exec_catchpoint): New functions.
6770 (linux_target_install_ops): Install them.
6771
6772 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6773
6774 PR mi/12531
6775
6776 * varobj.c (install_default_visualizer): Do not install a
6777 visualizer if the varobj is CPLUS_FAKE_CHILD.
6778 (construct_visualizer): Likewise.
6779
6780 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6781
6782 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6783 case insensitive comparison.
6784
6785 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6786
6787 * infrun.c (proceed): Revert previous change.
6788 (resume): Instead, handle the case of signal delivery while stepping
6789 off a breakpoint location here, and only if software single-stepping
6790 is used. Handle nested signals.
6791
6792 2011-04-28 Yao Qi <yao@codesourcery.com>
6793
6794 * arm-tdep.c (copy_unmodified): Rename to ...
6795 (arm_copy_unmodified): .. this. New.
6796 (copy_preload): Move common part to ...
6797 (install_preload): .. this. New.
6798 (arm_copy_preload): New.
6799 (copy_preload_reg): Move common part to ...
6800 (install_preload_reg): ... this. New.
6801 (arm_copy_preload_reg): New.
6802 (copy_b_bl_blx): Move common part to ...
6803 (install_b_bl_blx): .. this. New.
6804 (arm_copy_b_bl_blx): New.
6805 (copy_bx_blx_reg): Move common part to ...
6806 (install_bx_blx_reg): ... this. New.
6807 (arm_copy_bx_blx_reg): New.
6808 (copy_alu_reg): Move common part to ...
6809 (install_alu_reg): ... this. New.
6810 (arm_copy_alu_reg): New.
6811 (copy_alu_shifted_reg): Move common part to ...
6812 (install_alu_shifted_reg): ... this. New.
6813 (copy_ldr_str_ldrb_strb): Move common part to ...
6814 (install_ldr_str_ldrb_strb): ... this. New.
6815 (arm_copy_ldr_str_ldrb_strb): New.
6816 (copy_copro_load_store): Move some common part to ...
6817 (install_copy_copro_load_store): ... this. New.
6818 (arm_copy_copro_load_store): New.
6819 (copy_svc): Delete.
6820 (arm_copy_svc): Renamed from copy_svc.
6821 (copy_undef): Delete.
6822 (arm_copy_undef): Renamed from copy_undef.
6823 (decode_ext_reg_ld_st): Delete.
6824 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6825 (decode_svc_copro): Delete.
6826 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6827 (copy_copro_load_store, copy_alu_imm): update callers.
6828 (copy_extra_ld_st, copy_block_xfer): Likewise.
6829 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6830 (decode_miscellaneous, decode_dp_misc): Likewise.
6831 (decode_ld_st_word_ubyte, decode_media): Likewise.
6832 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6833 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6834 (decode_unconditional, decode_miscellaneous): Likewise.
6835 (decode_media, decode_b_bl_ldmstm): Likewise.
6836 (arm_process_displaced_insn): Likewise..
6837 (decode_misc_memhint_neon): Delete.
6838 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6839 (decode_miscellaneous): Delete.
6840 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6841 (decode_dp_misc): Delete.
6842 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6843 (decode_ld_st_word_ubyte): Delete.
6844 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6845 (decode_media): Delete.
6846 (arm_decode_media): Renamed from decode_media.
6847 (decode_b_bl_ldmstm): Delete.
6848 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6849 (decode_ext_reg_ld_st): Delete.
6850 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6851 (decode_unconditional): Delete.
6852 (arm_decode_unconditional): Renamed from decode_unconditional.
6853
6854 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6855
6856 Case insensitive lookups implementation.
6857 * dwarf2read.c: Include ctype.h.
6858 (struct mapped_index): New field version.
6859 (mapped_index_string_hash): New parameter index_version. New comment
6860 for it. Call tolower appropriately.
6861 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6862 Choose the right index version for mapped_index_string_hash.
6863 (dwarf2_read_index): Support also the index version 5. Initialize the
6864 new struct mapped_index field version.
6865 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6866 (find_slot): Explain the version needs. Pass INT_MAX for the new
6867 parameter.
6868 (write_psymtabs_to_index): Produce version 5.
6869 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6870 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6871 * psymtab.c (lookup_partial_symbol): Find the
6872 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6873 entries.
6874 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6875 NAME lowercasing.
6876 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6877 (completion_list_add_name): New variable ncmp, initialize it, use it.
6878 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6879 * utils.c (strcmp_iw): Support case_sensitive_off.
6880 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6881 New function comment part. New variables saved_string1,
6882 saved_string2 and case_pass. Add a proper second pass.
6883
6884 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6885
6886 Replace re_comp/re_exec by regcomp/regexec.
6887 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6888 (search_symbols_name_matches): Use them, use regexec.
6889 (search_symbols): New variable retval_chain, adjust the use of
6890 old_chain against it. Replace re_comp by regcomp. Use the new struct
6891 search_symbols_data fields, use regexec instead of re_exec.
6892
6893 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 Format the code for the next patch.
6896 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6897 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6898 New variables c1 and c2.
6899
6900 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6901
6902 * infrun.c (proceed): Do not single-step into signal delivery
6903 when stepping off a breakpoint location.
6904 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6905 (insert_step_resume_breakpoint_at_caller): Likewise.
6906 (insert_step_resume_breakpoint_at_sal): Likewise.
6907 (insert_longjmp_resume_breakpoint): Likewise.
6908
6909 2011-04-27 Yao Qi <yao@codesourcery.com>
6910
6911 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6912
6913 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6914
6915 * procfs.c (procfs_pass_signals): Fix advance declaration.
6916
6917 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6918
6919 * target.h (struct target_ops): Remove to_notice_signals;
6920 add to_pass_signals.
6921 (target_notice_signals): Remove.
6922 (target_pass_signals): Add prototype.
6923 * target.c (update_current_target): Remove to_notice_signals;
6924 mention to_pass_signals.
6925 (target_pass_signals): New function.
6926 (debug_to_notice_signals): Remove.
6927 (setup_target_debug): Do not install debug_to_notice_signals.
6928
6929 * infrun.c (signal_pass): New global.
6930 (resume): Call target_pass_signals.
6931 (handle_inferior_event): Report all signals while stepping over
6932 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6933 are re-inserted when stepping over a signal handler.
6934 (signal_cache_update): New function.
6935 (signal_stop_update): Call it.
6936 (signal_print_update): Likewise.
6937 (signal_pass_update): Likewise.
6938 (handle_command): Call signal_cache_update and target_pass_signals
6939 instead of target_notice_signals.
6940 (_initialize_infrun): Initialize signal_pass.
6941
6942 * linux-nat.c (pass_mask): New global.
6943 (linux_nat_pass_signals): New function.
6944 (linux_nat_create_inferior): Report all signals initially.
6945 (linux_nat_attach): Likewise.
6946 (linux_nat_resume): Use pass_mask to decide whether to directly
6947 handle an inferior signal.
6948 (linux_nat_wait_1): Likewise.
6949 (linux_nat_add_target): Install to_pass_signals callback.
6950
6951 * nto-procfs.c (notice_signals): Remove.
6952 (procfs_resume): Do not call notice_signals.
6953 (procfs_notice_signals): Remove.
6954 (procfs_pass_signals): New function.
6955 (init_procfs_ops): Install to_pass_signals callback instead of
6956 to_notice_signals callback.
6957 (_initialize_procfs): Report all signals initially.
6958
6959 * procfs.c (procfs_notice_signals): Remove.
6960 (procfs_pass_signals): New function.
6961 (procfs_target): Install to_pass_signals callback instead of
6962 to_notice_signals callback.
6963 (register_gdb_signals): Remove.
6964 (procfs_debug_inferior): Report all signals initially.
6965 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6966
6967 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6968 parameters; use them instead of calling signal_..._state routines.
6969 (remote_notice_signals): Remove.
6970 (remote_start_remote): Report all signals initially.
6971 (remote_resume): Do not call remote_pass_signals.
6972 (_initialize_remote): Install to_pass_signals callback instead of
6973 to_notice_signals callback.
6974
6975 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6976
6977 * breakpoint.c (user_settable_breakpoint): Delete.
6978 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6979 (delete_command): Check user_breakpoint_p instead of looking at
6980 the breakpoint's type.
6981 (disable_command): Ditto.
6982 (enable_command): Ditto.
6983 (delete_trace_command): Use user_breakpoint_p instead of looking
6984 at the breakpoint number directly. When checking if there are
6985 user visible tracepoints, in order to know whether to ask the user
6986 for confirmation, check whether the breakpoint is actually a
6987 tracepoint.
6988
6989 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6990
6991 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6992 compilation.
6993
6994 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6995
6996 MI breakpoint notifications.
6997
6998 * annotate.c (breakpoint_changed): Adjust parameter type.
6999 * breakpoint.c (set_breakpoint_condition): Adjust to change
7000 in breakpoint_modified type.
7001 (breakpoint_set_commands): Likewise.
7002 (do_map_commands_command): Likewise.
7003 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7004 changed after bumping hit count.
7005 (bpstat_stop_status): Likewise.
7006 (print_one_breakpoint_location): Don't wrap in tuple here.
7007 (print_one_breakpoint): Always print individual locations.
7008 For locations, use unnamed tuple.
7009 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7010 has changed.
7011 (create_catchpoint, create_syscall_event_catchpoint): Call
7012 breakpoint_created obsever.
7013 (mention): Don't call breakpoint_created observer.
7014 (create_breakpoint_sal): Call breakpoint_created observer.
7015 (create_breakpoint, watch_command_1): Likewise.
7016 (create_ada_exception_breakpoint): Likewise.
7017 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7018 (locations_are_equal): New.
7019 (update_breakpoint_locations): If locations were changed, notify.
7020 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7021 Call breakpoint_modified observer.
7022
7023 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7024 (mi_cmd_break_insert): Don't set observers for modify and delete.
7025 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7026 (mi_breakpoint_created, mi_breakpoint_deleted)
7027 (mi_breakpoint_modified): New.
7028 (mi_interpreter_init): Hook the above.
7029 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7030 while -break-* commands are executing.
7031 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7032 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7033 (mi_redirect): New.
7034 (mi_ui_out_impl): Hook in mi_redirect.
7035 (mi_field_skip): True to the name, skip the field, don't output
7036 a field with an empty value.
7037
7038 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7039 (gdbpy_breakpoint_deleted): Adjust.
7040 * tui/tui-hooks.c (tui_event_create_breakpoint)
7041 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7042
7043 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7044
7045 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7046 (procfs_remove_hw_watchpoint): Likewise.
7047
7048 2011-04-26 Michael Walle <michael@walle.cc>
7049
7050 * remote.c (remote_start_remote): Ack packet after sending the
7051 interrupt sequence.
7052
7053 2011-04-26 Yao Qi <yao@codesourcery.com>
7054
7055 * linux-nat.c: Move common macros to ...
7056 Include linux-ptrace.h.
7057 * common/linux-ptrace.h: ... here. New.
7058
7059 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7060
7061 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7062 !objfile_has_partial_symbols. New comment.
7063 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7064 SYM_READ_PSYMBOLS is not present. Extend the comment.
7065 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7066
7067 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7068
7069 * defs.h (ENUM_BITFIELD): Remove.
7070
7071 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7072 Eli Zaretskii <eliz@gnu.org>
7073
7074 * NEWS: Document the new gdbserver --once option.
7075
7076 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7077
7078 * MAINTAINERS: Update my email address.
7079
7080 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7081
7082 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7083 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7084 function call if __STDC_ISO_10646__ macro is defined.
7085 (intermediate_encoding): New prototype.
7086 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7087 to generate compile time error for unsupported gdb_wchar_t size.
7088 (ENDIAN_SUFFIX): New macro.
7089 (intermediate_encoding): New function.
7090
7091 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7092
7093 * ada-lang.c (struct add_partial_datum): Update the comment for
7094 expand_partial_symbol_name.
7095 (ada_add_partial_symbol_completions): Rename to ...
7096 (ada_expand_partial_symbol_name): ... here, change return type, update
7097 function comment, call symbol_completion_match instead of
7098 symbol_completion_add.
7099 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7100 and ada_expand_partial_symbol_name.
7101 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7102 FILE_MATCHER.
7103 (dw2_map_symbol_names): Remove.
7104 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7105 * psymtab.c (map_symbol_names_psymtab): Remove.
7106 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7107 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7108 order.
7109 (psym_functions): Unlist map_symbol_names_psymtab.
7110 (map_partial_symbol_names): Rename to ...
7111 (expand_partial_symbol_names): ... here, change the FUN type, call
7112 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7113 * psymtab.h (map_partial_symbol_names): Rename to ...
7114 (expand_partial_symbol_names): ... here, change the FUN type.
7115 * symfile.h (struct quick_symbol_functions): Update the description of
7116 expand_symtabs_matching. Remove map_symbol_names.
7117 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7118 (struct add_name_data): Update the comment for
7119 expand_partial_symbol_name.
7120 (add_partial_symbol_name): Rename to ...
7121 (expand_partial_symbol_name): ... here. Replace
7122 completion_list_add_name call by strncmp.
7123 (default_make_symbol_completion_list_break_on): Use now
7124 expand_partial_symbol_names and expand_partial_symbol_name.
7125 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7126
7127 2011-04-20 Tom Tromey <tromey@redhat.com>
7128
7129 * dwarf2read.c (save_gdb_index_command): Replace format
7130 documentation with a pointer to the manual.
7131
7132 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7133
7134 * regcache.c: Include remote.h.
7135 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7136 (regcache_dump): Handle regcache_dump_remote.
7137 (maintenance_print_remote_registers): New function.
7138 (_initialize_regcache): Install "maint print remote-registers"
7139 command.
7140 * remote.c (map_regcache_remote_table): New function, factored out
7141 from ...
7142 (init_remote_state): ... here.
7143 (remote_register_number_and_offset): New.
7144 * remote.h (remote_register_number_and_offset): Declare.
7145
7146 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7147
7148 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7149 null_ptid, assume and allow a NULL address space, instead of
7150 asking the target for the ptid's address space.
7151 * infrun.c (ptid_is_pid): Remove assertion.
7152
7153 2011-04-19 Tom Tromey <tromey@redhat.com>
7154
7155 * windows-tdep.c (windows_xfer_shared_library):
7156 * windows-nat.c (get_module_name, windows_make_so):
7157 * v850-tdep.c (v850_handle_pushm):
7158 * utils.c (null_cleanup, gdb_realpath):
7159 * ui-out.c (get_next_header):
7160 * tracepoint.c (clear_traceframe_info):
7161 * symtab.c (lookup_symtab):
7162 * serial.h (struct serial_ops):
7163 * mipsread.c (read_alphacoff_dynamic_symtab):
7164 * infcmd.c (print_return_value):
7165 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7166 * f-exp.y (parse_number):
7167 * exceptions.c (catch_exceptions):
7168 * dummy-frame.c (dummy_frame_this_id):
7169 * defs.h (struct cleanup):
7170 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7171 * arm-tdep.c (arm_push_dummy_call):
7172 * amd64-tdep.h (amd64_collect_xsave):
7173 * amd64-tdep.c (amd64_collect_xsave):
7174 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7175 * README (typing): Remove duplicate words.
7176 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7177 * infrun.c (siginfo_value_read): Fix typo.
7178 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7179 * top.c (source_line_number): Add comma.
7180
7181 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7182
7183 * thread.c (any_live_thread_of_process): Prioritize threads
7184 that are not executing.
7185 * gdbthread.h (any_live_thread_of_process): Update comment
7186 as per above change.
7187
7188 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7189
7190 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7191 (scan_xcoff_symtab): Likewise.
7192
7193 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7194
7195 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7196 inside if clause.
7197
7198 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7199 Pedro Alves <pedro@codesourcery.com>
7200
7201 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7202 variables to simplify code and avoid == operator at end of
7203 line as this is against GNU coding standards.
7204
7205 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7206
7207 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7208 lm_name to name_lm to avoid conflict with lm_name function.
7209
7210 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7211
7212 ARI fixes: Use only lowercase function name for static functions.
7213 * nto-tdep.c (LM_ADDR): Rename to...
7214 (lm_addr): New function name.
7215 (nto_relocate_section_addresses): Adapt to change above.
7216 * solib-sunos.c (LM_ADDR): Rename to...
7217 (lm_addr): New function name.
7218 (LM_NEXT): Rename to...
7219 (lm_next): New function name.
7220 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7221 function name changes above.
7222 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7223 (lm_addr_from_link_map): New function name.
7224 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7225 (has_lm_dynamic_from_link_map): New function name.
7226 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7227 (lm_dynamic_from_link_map): New function name.
7228 (LM_ADDR_CHECK): Rename to...
7229 (lm_addr_check): New function name.
7230 (LM_NEXT): Rename to...
7231 (lm_next): New function name.
7232 (LM_PREV): Rename to...
7233 (lm_prev): New function name.
7234 (LM_NAME): Rename to...
7235 (lm_name): New function name.
7236 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7237 (ignore_first_link_map_entry): New function name.
7238 (svr4_keep_data_in_core): Adapt to function name changes above.
7239 (svr4_current_sos): Likewise.
7240 (enable_break): Likewise.
7241 (svr4_relocate_section_addresses): Likewise.
7242
7243 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7244
7245 ARI cleanup.
7246 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7247 sprintf. Simplify code and avoid loosing memory.
7248 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7249 (call0_frame_cache): Remove && operator from end of line.
7250
7251 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7252
7253 Fix libraries displacement if they change whether they were prelinked.
7254 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7255 does not match. Comment why.
7256
7257 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7258
7259 * corelow.c: Include wrapper.h.
7260 (core_open): Call now gdb_target_find_new_threads.
7261 * wrapper.c: Include target.h.
7262 (gdb_target_find_new_threads): New.
7263 * wrapper.h (gdb_target_find_new_threads): New declaration.
7264
7265 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7266
7267 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7268 even if !TARGET_HAS_EXECUTION.
7269
7270 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7271
7272 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7273 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7274 bfd_get_synthetic_symtab.
7275 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7276 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7277 parameter parent, remove the call to add_separate_debug_objfile.
7278 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7279 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7280 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7281 parent, new comment for it, call add_separate_debug_objfile for it.
7282 (symbol_file_add_separate): Pass objfile as the parameter parent,
7283 remove the call to add_separate_debug_objfile.
7284 (symbol_file_add_from_bfd): New parameter parent, pass it.
7285 (symbol_file_add): Pass NULL to the new parameter parent.
7286 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7287
7288 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7289
7290 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7291 BSF_SYNTHETIC.
7292
7293 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7294
7295 Fix Python access to inlined frames.
7296 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7297 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7298
7299 2011-04-15 Tom Tromey <tromey@redhat.com>
7300
7301 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7302
7303 2011-04-15 Gary Benson <gbenson@redhat.com>
7304
7305 * MAINTAINERS: Add myself to write-after-approval section.
7306
7307 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7308
7309 * remote-sim.c (sim_command_completer): New function.
7310 (_initialize_remote_sim): Set completer to sim_command_completer.
7311
7312 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7313
7314 * breakpoint.c (print_exception_catchpoint): Rename to ...
7315 (print_it_exception_catchpoint): ... this.
7316 (gnu_v3_exception_catchpoint_ops): Update with new name
7317 for print_it_exception_catchpoint.
7318
7319 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7320
7321 * MAINTAINERS: Add myself for write after approval privileges.
7322
7323 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7324
7325 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7326
7327 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7328
7329 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7330
7331 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7332
7333 * breakpoint.c (save_breakpoints): Verify whether
7334 breakpoint_ops.print_recreate is defined before calling it.
7335
7336 2011-04-11 Gary Benson <gbenson@redhat.com>
7337
7338 Fix failure with --enable-maintainer-mode.
7339 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7340
7341 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 Code cleanup.
7344 * symtab.c (search_symbols): Reorder the KIND description in the
7345 function comment. Remove the unused 4th element of types, types2,
7346 types3 and types4. New gdb_assert on KIND.
7347 (symtab_symbol_info): Remove the unused 4th element of classnames.
7348 New gdb_assert on KIND.
7349 * symtab.h (enum search_domain): New warning in the enum comment.
7350 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7351 TYPES_DOMAIN.
7352
7353 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7354
7355 Fix crash of gdb save-index on a STABS file.
7356 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7357 PSYMTABS_ADDRMAP.
7358
7359 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7362 * dwarf2read.c: Include ctype.h.
7363 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7364 functions.
7365 (dwarf2_add_field): Fix new_field->accessibility by calling
7366 dwarf2_default_access_attribute. Restructure setting accessibility
7367 vs. virtuality.
7368 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7369 is_private and is_protected by calling
7370 dwarf2_default_access_attribute.
7371
7372 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7373
7374 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7375 to the initialization.
7376
7377 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7378
7379 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7380 initalization.
7381
7382 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7383
7384 Remove support for old Cygwin 1.5 versions.
7385 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7386 function on old Cygwin version.
7387 * windows-nat.c: Remove cygwin version check and always define
7388 __USEWIDE for Cygwin compilation.
7389
7390 2011-04-07 Yao Qi <yao@codesourcery.com>
7391
7392 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7393 and TO.
7394 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7395 (arm_copy_svc): Remove parameters INSN and TO.
7396 (decode_svc_copro): Update caller.
7397 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7398 from function pointer `copy_svc_os'.
7399
7400 2011-04-07 Yao Qi <yao@codesourcery.com>
7401
7402 * arm-tdep.c (cleanup_branch): Set a correct return address in
7403 LR for ARM and Thumb.
7404
7405 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7406
7407 Code cleanup.
7408 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7409 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7410 in the function comment, a new note on values compatibility.
7411 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7412 * symtab.h (SYMBOL_HASH_NEXT): New.
7413
7414 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7415
7416 * ppc-linux-nat.c (check_condition): Add len output parameter.
7417 Set it based on the memory region referenced in the condition
7418 expression. Update all callers.
7419
7420 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7421
7422 Fix crash regression on systems featuring .gdb_index.
7423 * objfiles.c (free_objfile): Move the
7424 forget_cached_source_info_for_objfile call earlier. Comment it.
7425 Extend the comment for objfile_free_data.
7426
7427 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 Fix regression of displaying the debug format.
7430 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7431 subfile.
7432
7433 2011-04-04 Tom Tromey <tromey@redhat.com>
7434
7435 * cli/cli-interp.c (struct captured_execute_command_args):
7436 Remove.
7437 (do_captured_execute_command): Remove.
7438 (safe_execute_command): Use TRY_CATCH.
7439 * cli/cli-script.c (struct wrapped_read_command_file_args):
7440 Remove.
7441 (wrapped_read_command_file): Remove.
7442 (script_from_file): Use TRY_CATCH.
7443 * exceptions.c (catch_exception): Remove.
7444 * exceptions.h (catch_exception): Remove.
7445 (deprecated_throw_reason): Update comment.
7446 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7447 argument to 'context'.
7448 (mi_execute_command): Use TRY_CATCH.
7449 * remote.c (struct start_remote_args): Remove.
7450 (remote_start_remote): Update; change arguments.
7451 (remote_open_1): Use TRY_CATCH.
7452
7453 2011-04-04 Tom Tromey <tromey@redhat.com>
7454
7455 * tracepoint.c (scope_info): Update.
7456 * symtab.c (decode_line_spec): Update.
7457 * python/python.c (gdbpy_decode_line): Update.
7458 * linespec.h (decode_line_1): Update.
7459 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7460 (decode_compound, find_method, symtab_from_filename)
7461 (decode_variable): Likewise.
7462 * cli/cli-cmds.c (edit_command): Update.
7463 (list_command): Update.
7464 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7465 argument.
7466 (create_breakpoint): Update.
7467 (until_break_command): Update.
7468 (addr_string_to_sals): Update.
7469 (decode_line_spec_1): Update.
7470
7471 2011-04-04 Tom Tromey <tromey@redhat.com>
7472
7473 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7474 (do_captured_parse_breakpoint): Remove.
7475 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7476 Use TRY_CATCH directly.
7477
7478 2011-04-04 Tom Tromey <tromey@redhat.com>
7479
7480 * symtab.h (free_symtab): Remove.
7481 (forget_cached_source_info_for_objfile): Declare.
7482 * symmisc.c (free_symtab): Remove.
7483 * source.c (forget_cached_source_info_for_objfile): New function.
7484 (forget_cached_source_info): Use it.
7485 * objfiles.c (free_objfile): Simplify check before calling
7486 clear_current_source_symtab_and_line. Call
7487 forget_cached_source_info_for_objfile.
7488
7489 2011-04-04 Tom Tromey <tromey@redhat.com>
7490
7491 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7492 (new_symtab): Don't set `free_code' on symtab.
7493 (new_linetable): Properly handle size==0.
7494 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7495 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7496 free_func.
7497 * jv-lang.c (struct jv_per_objfile_data): New.
7498 (jv_per_objfile_free): Free the data.
7499 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7500 (get_java_class_symtab): Set the `dict' field on the
7501 jv_per_objfile_data.
7502 (free_class_block): Remove.
7503 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7504 the symtab.
7505
7506 2011-04-04 Tom Tromey <tromey@redhat.com>
7507
7508 * symfile.c (reread_symbols): Update.
7509 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7510 field.
7511 * objfiles.c (allocate_objfile): Update.
7512 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7513 declare.
7514 * cp-namespace.c (lookup_symbol_file): Don't call
7515 lookup_possible_namespace_symbol.
7516 (initialize_namespace_symtab, get_possible_namespace_block)
7517 (free_namespace_block, cp_check_possible_namespace_symbols)
7518 (check_possible_namespace_symbols_loop)
7519 (check_one_possible_namespace_symbol)
7520 (lookup_possible_namespace_symbol): Remove.
7521 (maintenance_cplus_namespace): Replace with notice.
7522 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7523
7524 2011-04-04 Tom Tromey <tromey@redhat.com>
7525
7526 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7527 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7528 * symmisc.c (free_symtab): Don't free debugformat.
7529 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7530 (record_debugformat, record_producer): Document.
7531 * buildsym.c (end_symtab): Don't save debugformat and producer
7532 names on obstack.
7533 (end_symtab): Don't free debugformat and producer fields.
7534 (record_debugformat): Don't call xstrdup.
7535 (record_producer): Likewise.
7536
7537 2011-04-04 Tom Tromey <tromey@redhat.com>
7538
7539 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7540 (source_line_charpos, source_charpos_line): Remove.
7541
7542 2011-04-04 Tom Tromey <tromey@redhat.com>
7543
7544 * symtab.h (domain_enum): Split in two...
7545 (enum search_domain): New.
7546 (search_symbols): Update.
7547 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7548 redundant declarations.
7549 (search_symbols): Change 'kind' argument to search_domain.
7550 Update.
7551 (print_symbol_info): Likewise.
7552 (symtab_symbol_info): Likewise.
7553 * symfile.h (struct quick_symbol_functions)
7554 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7555 <expand_symtabs_matching>: Likewise.
7556 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7557 (expand_symtabs_matching_via_partial): Update.
7558 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7559 (dw2_expand_symtabs_for_function): Update.
7560 * block.h: Moved anonymous enum...
7561 * defs.h (enum block_enum): ... here. Now named.
7562
7563 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7564
7565 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7566 * version.in: Bump version to 7.3.50.20110403-cvs.
7567
7568 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7569
7570 * NEWS: Create a new section for the next release branch.
7571 Rename the section of the current branch, now that it has
7572 been cut.
7573
7574 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7575
7576 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7577 for "fpscr" in target description.
7578
7579 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7580
7581 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7582 initialize it. Delay HASH initialization. Strip the part after open
7583 parenthesis for languages with qualifiers. Call do_cleanups.
7584
7585 2011-04-01 Tom Tromey <tromey@redhat.com>
7586
7587 * utils.c (report_command_stats): Don't print `-' for negative
7588 number.
7589
7590 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7591
7592 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7593 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7594 typedefs.
7595
7596 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7597
7598 * breakpoint.h (bpdisp_text): Add declaration.
7599 * breakpoint.c (bpdisp_text): Make non-static.
7600 * ada-lang.c: #include "mi/mi-common.h".
7601 (print_it_exception): Rewrite to improve GDB/MI output.
7602
7603 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7604
7605 * arm-tdep.h (struct address_space): Add forward declaration.
7606
7607 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7608
7609 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7610 * arm-tdep.c (arm_override_mode): New global.
7611 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7612 execution mode heuristics.
7613 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7614 second single-step breakpoint if needed, using
7615 arm_insert_single_step_breakpoint.
7616 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7617 ARM execution mode, do not call thumb_get_next_pc_raw.
7618 (arm_get_next_pc): Encode execution mode in return value. Call
7619 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7620 (arm_insert_single_step_breakpoint): New function.
7621 (arm_software_single_step): Call it.
7622 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7623 argument to return execution mode of sigreturn target.
7624 (arm_linux_syscall_next_pc): Use it.
7625 (arm_linux_copy_svc): Update call.
7626 (arm_linux_software_single_step): Call
7627 arm_insert_single_step_breakpoint.
7628
7629 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7632 the comment.
7633
7634 2011-03-31 Tom Tromey <tromey@redhat.com>
7635
7636 * varobj.c (update_dynamic_varobj_children): Properly handle
7637 errors from iterator.
7638
7639 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7640
7641 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7642 struct linkage name twice.
7643
7644 2011-03-31 Tom Tromey <tromey@redhat.com>
7645
7646 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7647 missing ">" to message.
7648
7649 2011-03-31 Tom Tromey <tromey@redhat.com>
7650
7651 * varobj.c (instantiate_pretty_printer): Remove duplicate
7652 'return'.
7653
7654 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7655
7656 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7657 if neither saved value nor register available (e.g. signal frame).
7658
7659 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7660
7661 * macroexp.c (expand): Avoid uninitialized variable
7662 compiler warning.
7663
7664 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7665
7666 * breakpoint.c (break_range_command): Fix typo in comment.
7667
7668 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7669 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7670
7671 Implement support for PowerPC BookE ranged breakpoints.
7672 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7673 * breakpoint.h (struct bp_target_info) <length>: New member
7674 variable.
7675 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7676 instead of struct breakpoint as argument, and also add ASPACE
7677 and BP_ADDR arguments. Update all callers.
7678 (struct breakpoint_ops) <print_one_detail>: New method.
7679 (struct breakpoint) <addr_string_range_end>: New member variable.
7680 * breakpoint.c (breakpoint_location_address_match): Add function
7681 prototype.
7682 (insert_bp_location): Set bl->target_info.length.
7683 (breakpoint_here_p): Call breakpoint_location_address_match.
7684 (moribund_breakpoint_here_p): Likewise.
7685 (regular_breakpoint_inserted_here_p): Likewise.
7686 (breakpoint_thread_match): Likewise.
7687 (bpstat_stop_status): Likewise.
7688 (bpstat_check_location): Move call to
7689 breakpoint_ops.breakpoint_hit to the top.
7690 (print_one_breakpoint_location): Call
7691 breakpoint_ops.print_one_detail if available.
7692 (breakpoint_address_match_range): New function.
7693 (breakpoint_location_address_match): Likewise.
7694 (breakpoint_locations_match): Compare the length field of the
7695 locations too.
7696 (hw_breakpoint_used_count): Count resources used by all locations
7697 in a breakpoint, and use breakpoint_ops.resources_needed if
7698 available.
7699 (breakpoint_hit_ranged_breakpoint): New function.
7700 (resources_needed_ranged_breakpoint): Likewise.
7701 (print_it_ranged_breakpoint): Likewise.
7702 (print_one_ranged_breakpoint): Likewise.
7703 (print_one_detail_ranged_breakpoint): Likewise.
7704 (print_mention_ranged_breakpoint): Likewise.
7705 (print_recreate_ranged_breakpoint): Likewise.
7706 (ranged_breakpoint_ops): New structure.
7707 (find_breakpoint_range_end): New function.
7708 (break_range_command): Likewise.
7709 (delete_breakpoint): Free addr_string_range_end.
7710 (update_breakpoint_locations): Add SALS_END argument. Update
7711 all callers. Calculate breakpoint length if a non-zero SALS_END
7712 is given. Call breakpoint_locations_match instead of
7713 breakpoint_address_match.
7714 (reset_breakpoint): Find SaL of the end of the range if B is a
7715 ranged breakpoint.
7716 (_initialize_breakpoint): Register break-range command.
7717 * defs.h (print_core_address): Add function prototype.
7718 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7719 function.
7720 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7721 (ppc_linux_remove_hw_breakpoint): Likewise.
7722 (_initialize_ppc_linux_nat): Initialize
7723 to_ranged_break_num_registers.
7724 * target.c (update_current_target): Add comment about
7725 to_ranged_break_num_registers.
7726 (target_ranged_break_num_registers): New function.
7727 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7728 New method.
7729 (target_ranged_break_num_registers): Add function prototype.
7730 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7731 * utils.c (print_core_address): ... here.
7732
7733 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7734
7735 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7736 variable compiler warning.
7737
7738 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7739
7740 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7741 code from here ...
7742 (re_set_breakpoint): ... to here ...
7743 (addr_string_to_sals): ... and here.
7744
7745 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7746
7747 * Makefile.in (SFILES): Add missing C sources.
7748 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7749 Add missing headers.
7750
7751 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7752
7753 * .gitignore: New file.
7754
7755 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7756
7757 * NEWS: Mention new cfi device simulation.
7758
7759 2011-03-29 Tom Tromey <tromey@redhat.com>
7760
7761 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7762 otherwise anonymous types.
7763 (dwarf2_name): Likewise.
7764 * valops.c (value_struct_elt_for_reference): Refine artificial
7765 type logic. Call error if j==-1.
7766
7767 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7768
7769 Fix false GCC warning.
7770 * infcall.c (find_function_addr): Initialize funaddr.
7771
7772 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7773
7774 Fix mingw compilation with --enable-targets=all.
7775 * remote-mips.c (gdb_usleep.h): Include header.
7776 (mips_enter_debug): Use gdb_usleep instead of sleep.
7777
7778 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 Support resolution of STT_GNU_IFUNC via breakpoints.
7781 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7782 bp_gnu_ifunc_resolver_return.
7783 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7784 the loop. Support bp_gnu_ifunc_resolver and
7785 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7786 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7787 breakpoints.
7788 (bptype_string, print_one_breakpoint_location): Support
7789 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7790 (user_settable_breakpoint): Return true also for
7791 bp_gnu_ifunc_resolver.
7792 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7793 bp_gnu_ifunc_resolver_return.
7794 (set_breakpoint_location_function): New parameter explicit_loc,
7795 describe it. Call find_pc_partial_function_gnu_ifunc with new
7796 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7797 EXPLICIT_LOC is not set.
7798 (set_raw_breakpoint): Set EXPLICIT_LOC for
7799 set_breakpoint_location_function.
7800 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7801 set_breakpoint_location_function.
7802 (mention): Support bp_gnu_ifunc_resolver and
7803 bp_gnu_ifunc_resolver_return.
7804 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7805 set_breakpoint_location_function.
7806 (update_breakpoint_locations): Remove static.
7807 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7808 bp_gnu_ifunc_resolver_return.
7809 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7810 bp_gnu_ifunc_resolver_return.
7811 (update_breakpoint_locations): New declaration.
7812 * elfread.c: Include gdbthread.h and regcache.h.
7813 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7814 functions.
7815 (elf_gnu_ifunc_fns): Install them.
7816 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7817 (stub_gnu_ifunc_resolver_return_stop): New functions.
7818 (stub_gnu_ifunc_fns): Install them.
7819 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7820 and gnu_ifunc_resolver_return_stop.
7821 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7822
7823 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7824
7825 STT_GNU_IFUNC reader implementation.
7826 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7827 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7828 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7829 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7830 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7831 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7832 (elf_gnu_ifunc_resolve_addr): New.
7833 (elf_symfile_read): Call elf_rel_plt_read.
7834 (elf_gnu_ifunc_fns): New.
7835 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7836 Install elf_gnu_ifunc_fns.
7837 * infcall.c (find_function_return_type): New function.
7838 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7839 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7840 (stub_gnu_ifunc_resolve_name): New functions.
7841 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7842 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7843 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7844
7845 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 Code cleanup for later STT_GNU_IFUNC support.
7848 * infcall.c (find_function_addr): Remove variable code, use explicit
7849 dereferences for it. Move VALUE_TYPE initialization later.
7850
7851 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7854 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7855 (clear_pc_function_cache): Clear it.
7856 (find_pc_partial_function): Rename to ...
7857 (find_pc_partial_function_gnu_ifunc): ... this function. New
7858 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7859 (find_pc_partial_function): New wrapper for this function.
7860 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7861
7862 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7863
7864 GDB internal type support for STT_GNU_IFUNC.
7865 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7866 (elf_symtab_read): Set mst_text_gnu_ifunc for
7867 BSF_GNU_INDIRECT_FUNCTION.
7868 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7869 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7870 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7871 nodebug_got_plt_symbol.
7872 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7873 (TYPE_GNU_IFUNC): New.
7874 (struct main_type): New field flag_gnu_ifunc.
7875 (struct builtin_type): New field builtin_func_func.
7876 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7877 nodebug_got_plt_symbol.
7878 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7879 (in_gnu_ifunc_stub): New.
7880 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7881 mst_text_gnu_ifunc.
7882 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7883 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7884 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7885 in_gnu_ifunc_stub.
7886 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7887 * symtab.c (search_symbols): Likewise.
7888 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7889 and mst_slot_got_plt.
7890 (in_gnu_ifunc_stub): New declaration.
7891
7892 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 Support a ring of related breakpoints.
7895 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7896 other functions, add gdb_assert.
7897 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7898 watchpoint_del_at_next_stop.
7899 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7900 (bpstat_stop_status): Handle ring in related_breakpoint.
7901 (set_raw_breakpoint_without_location): Initialize ring in
7902 related_breakpoint.
7903 (delete_breakpoint): Handle ring in related_breakpoint, use
7904 watchpoint_del_at_next_stop.
7905 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7906
7907 2011-03-28 Tom Tromey <tromey@redhat.com>
7908
7909 PR symtab/12441:
7910 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7911 with `language_minimal'.
7912
7913 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7914
7915 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7916 instead of checking for STT_ARM_TFUNC symbol type.
7917
7918 2011-03-25 Tom Tromey <tromey@redhat.com>
7919
7920 * linespec.c (symbol_found): Restore line-based result for
7921 non-LOC_LABEL symbols.
7922
7923 2011-03-25 Kai Tietz <ktietz@redhat.com>
7924
7925 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7926 instead of strcmp for comparison.
7927 (tui_source_is_displayed): Likewise.
7928 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7929
7930 2011-03-24 Mark Wielaard <mjw@redhat.com>
7931
7932 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7933 complaint.
7934 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7935 (find_partial_die_in_comp_unit): Likewise in comment.
7936 (read_attribute_value): Likewise.
7937 (lookup_die_type): Likewise.
7938 (dwarf_form_name): Likewise.
7939 (dump_die_shallow): Likewise.
7940 (follow_die_ref_or_sig): Likewise.
7941
7942 2011-03-24 Tom Tromey <tromey@redhat.com>
7943
7944 PR breakpoints/11816:
7945 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7946 (decode_compound): Update.
7947 (find_function_symbol): New function.
7948 (decode_dollar): Update.
7949 (decode_label): Add 'function_symbol' parameter. Handle
7950 function-relative labels.
7951 (decode_variable): Update.
7952 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7953 not its line. Set `special_display' and canonical name for
7954 labels.
7955
7956 2011-03-24 Tom Tromey <tromey@redhat.com>
7957
7958 * linespec.h (struct linespec_result) <special_display>: New
7959 field.
7960 * breakpoint.h (struct breakpoint) <display_canonical>: New
7961 field.
7962 * breakpoint.c (print_breakpoint_location): Respect
7963 display_canonical.
7964 (create_breakpoint_sal): Add 'display_canonical' parameter.
7965 (create_breakpoints_sal): Update.
7966 (create_breakpoint): Update.
7967
7968 2011-03-24 Tom Tromey <tromey@redhat.com>
7969
7970 * symtab.c (decode_line_spec): Update.
7971 * linespec.c (build_canonical_line_spec): Change type of
7972 'canonical'.
7973 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7974 (find_method, decode_all_digits, decode_dollar, decode_label)
7975 (symbol_found): Likewise.
7976 (init_linespec_result): New function.
7977 * breakpoint.c (struct captured_parse_breakpoint_args)
7978 <canonical_p>: New field, replaces addr_string_p.
7979 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7980 'addr_string'.
7981 (parse_breakpoint_sals): Likewise.
7982 (do_captured_parse_breakpoint): Update.
7983 (create_breakpoint): Use struct linespec_result.
7984 (until_break_command): Update.
7985 (breakpoint_re_set_one): Update.
7986 (decode_line_spec_1): Update.
7987 * linespec.h (struct linespec_result): New.
7988 (init_linespec_result): Declare.
7989
7990 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7991
7992 * regcache.c (regcache_raw_read): If the target didn't supply a
7993 given raw register, mark it as unavailable.
7994
7995 2011-03-23 Kai Tietz <ktietz@redhat.com>
7996
7997 * breakpoint.c (clear_command): Use filename_cmp
7998 instead of strcmp for comparison.
7999 * buildsym.c (watch_main_source_file_lossage): Likewise.
8000 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8001 checking just for slash.
8002 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8003 strrchr and filename_cmp instead of strcmp for filenames.
8004 (add_old_header_file): Use filename_cmp
8005 instead of strcmp for comparison.
8006 * exec.c (exec_set_section_address): Likewise.
8007 * macrotab.c (macro_lookup_inclusion): Likewise.
8008 (macro_lookup_inclusion): Likewise.
8009 * elfread.c (_initialize_elfread): Likewise.
8010 (elfstab_offset_sections): Likewise.
8011 (elfstab_offset_sections): Use lbasename instead of
8012 strrchr.
8013 * mdebugread.c (parse_partial_symbols): Likewise.
8014 (arse_partial_symbols): Use filename_(n)cmp instead of
8015 str(n)cmp for comparison.
8016 * minsyms.c (lookup_minimal_symbol): Likewise.
8017 * psymtab.c (read_psymtabs_with_filename): Likewise.
8018 * solib.c (solib_read_symbols): Likewise.
8019 (reload_shared_libraries_1): Likewise.
8020 * symmisc.c (maintenance_print_symbols): Likewise.
8021 * symfile.c (separate_debug_file_exists): Likewise.
8022 (reread_symbols): Likewise.
8023 (find_separate_debug_file_by_debuglink): Likewise.
8024 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8025 * source.c (add_path): Likewise.
8026 * symtab.c (filename_seen): Likewise.
8027 (file_matches): Likewise.
8028 (print_symbol_info): Likewise.
8029 (maybe_add_partial_symtab_filename): Likewise.
8030 (make_source_files_completion_list): Likewise.
8031 * xml-syscall.c (init_sysinfo): Likewise.
8032 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8033 IS_DIR_SEPARATOR for checking for trailing path separator.
8034
8035 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8038 label abort_expression.
8039 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8040 DWARF_VALUE_OPTIMIZED_OUT.
8041
8042 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8043
8044 Code cleanup.
8045 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8046 to linkage_name. Invert its value. Update the function comment.
8047 (c_type_print_varspec_suffix): Invert it at the caller.
8048 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8049
8050 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8051
8052 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8053 errors when reading the `stop_pc'.
8054 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8055 get_frame_pc.
8056
8057 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8058
8059 * NEWS: Document gdb.Write stream keyword.
8060
8061 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8062
8063 Revert:
8064 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8065 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8066 (dwarf2_add_field): Fix new_field->accessibility for
8067 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8068
8069 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8070
8071 PR python/12183
8072
8073 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8074 other error classes. Do not print stack trace.
8075
8076 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8077
8078 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8079 (dwarf2_add_field): Fix new_field->accessibility for
8080 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8081
8082 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8083
8084 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8085 encountering a load via a non-SP register.
8086
8087 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8088
8089 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8090 field in returned unwinder.
8091
8092 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8095
8096 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8097
8098 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8099 of xmalloc.
8100
8101 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8102
8103 * frame.c (frame_unwind_register): Throw an error if unwinding the
8104 register failed.
8105 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8106 an unwind stop reason.
8107 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8108 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8109 UNWIND_UNAVAILABLE>: New.
8110 * inline-frame.c (inline_frame_unwind): Install
8111 default_frame_unwind_stop_reason.
8112 * frame-unwind.c: Include "exceptions.h".
8113 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8114 (default_frame_unwind_stop_reason): New.
8115 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8116 (default_frame_unwind_stop_reason): Declare.
8117 (struct frame_unwind) <stop_reason>: New function pointer.
8118
8119 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8120 * dwarf2-frame.c: Include exceptions.h.
8121 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8122 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8123 computing the CFA. If such an error was thrown, set
8124 unavailable_retaddr.
8125 (dwarf2_frame_unwind_stop_reason): New.
8126 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8127 unavailable.
8128 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8129 (dwarf2_signal_frame_unwind): Ditto.
8130
8131 * amd64-tdep.c: Include "exceptions.h".
8132 (struct amd64_frame_cache): New field "base_p".
8133 (amd64_init_frame_cache): Clear it.
8134 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8135 Avoid reading registers with functions that throw if the register
8136 is not necessary to compute the frame base.
8137 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8138 swallowing NOT_AVAILABLE_ERROR.
8139 (amd64_frame_unwind_stop_reason): New.
8140 (amd64_frame_this_id): Don't build a frame id if the frame base
8141 was unavailable.
8142 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8143 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8144 base_p if the frame base was computable.
8145 (amd64_sigtramp_frame_unwind_stop_reason): New.
8146 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8147 frame base was unavailable.
8148 (amd64_sigtramp_frame_unwind): Install
8149 amd64_sigtramp_frame_unwind_stop_reason.
8150 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8151 base_p if the frame base was computable.
8152 (amd64_epilogue_frame_unwind_stop_reason): New.
8153 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8154 frame base was unavailable.
8155 (amd64_epilogue_frame_unwind): Install
8156 amd64_epilogue_frame_unwind_stop_reason.
8157 * i386-tdep.c: Include "exceptions.h".
8158 (struct i386_frame_cache): New field "base_p".
8159 (i386_init_frame_cache): Clear it.
8160 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8161 Avoid reading registers with functions that throw if the register
8162 is not necessary to compute the frame base.
8163 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8164 swallowing NOT_AVAILABLE_ERROR.
8165 (i386_frame_unwind_stop_reason): New.
8166 (i386_frame_this_id): Don't build a frame id if the frame base was
8167 unavailable.
8168 (i386_frame_prev_register): Handle unavailable SP.
8169 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8170 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8171 base_p if the frame base was computable.
8172 (i386_epilogue_frame_unwind_stop_reason): New.
8173 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8174 base was unavailable.
8175 (i386_epilogue_frame_unwind): Install
8176 i386_epilogue_frame_unwind_stop_reason.
8177 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8178 base_p if the frame base was computable.
8179 (i386_sigtramp_frame_unwind_stop_reason): New.
8180 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8181 base was unavailable.
8182 (i386_sigtramp_frame_unwind): Install
8183 i386_sigtramp_frame_unwind_stop_reason.
8184 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8185 type's size, not the register's.
8186 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8187
8188 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8189 default_frame_unwind_stop_reason.
8190 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8191 (alpha_heuristic_frame_unwind): Ditto.
8192 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8193 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8194 * avr-tdep.c (avr_frame_unwind): Ditto.
8195 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8196 Ditto.
8197 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8198 * frv-tdep.c (frv_frame_unwind): Ditto.
8199 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8200 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8201 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8202 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8203 (hppa_stub_frame_unwind): Ditto.
8204 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8205 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8206 (ia64_libunwind_frame_unwind)
8207 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8208 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8209 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8210 * m32c-tdep.c (m32c_unwind): Ditto.
8211 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8212 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8213 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8214 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8215 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8216 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8217 * mep-tdep.c (mep_frame_unwind): Ditto.
8218 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8219 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8220 (mips_stub_frame_unwind): Ditto.
8221 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8222 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8223 * mt-tdep.c (mt_frame_unwind): Ditto.
8224 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8225 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8226 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8227 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8228 (s390_sigtramp_frame_unwind): Ditto.
8229 * score-tdep.c (score_prologue_unwind): Ditto.
8230 * sh-tdep.c (sh_frame_unwind): Ditto.
8231 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8232 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8233 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8234 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8235 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8236 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8237 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8238 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8239 (sparc64obsd_trapframe_unwind): Ditto.
8240 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8241 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8242 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8243 * v850-tdep.c (v850_frame_unwind): Ditto.
8244 * vax-tdep.c (vax_frame_unwind): Ditto.
8245 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8246 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8247 * xtensa-tdep.c (xtensa_unwind): Ditto.
8248
8249 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8250
8251 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8252 there's always a frame. Use get_frame_pc_if_available instead of
8253 get_frame_pc, and if there's no PC available, don't look up a
8254 symtab.
8255
8256 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8257
8258 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8259 unavailable PC.
8260
8261 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8262
8263 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8264 gracefully.
8265
8266 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8267
8268 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8269 * frame.c (frame_unwind_caller_pc_if_available): New.
8270 * stack.c (frame_info): Handle unavailable PC.
8271
8272 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8273
8274 * frame.c (frame_unwind_pc): Rename to ...
8275 (frame_unwind_pc_if_available): ... this. New `pc' output
8276 parameter. Change return type to int. Gracefully handle
8277 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8278 happened, or 1 otherwise.
8279 (frame_unwind_pc): Reimplement on top of
8280 frame_unwind_pc_if_available.
8281 (get_frame_func): Rename to ...
8282 (get_frame_func_if_available): New `pc' output parameter. Change
8283 return type to int. Gracefully handle the PC not being available.
8284 (get_frame_func): Reimplement on top of
8285 get_frame_func_if_available.
8286 (select_frame): Handle the PC being unavailable.
8287 (get_prev_frame): Handle the PC being unavailable.
8288 (get_frame_pc_if_available): New.
8289 (get_frame_address_in_block_if_available): New.
8290 (find_frame_sal): Handle the frame PC not being available.
8291 * frame.h (get_frame_pc_if_available): Declare.
8292 (get_frame_address_in_block_if_available): Declare.
8293 (get_frame_func_if_available): Declare.
8294 * stack.c (print_frame_info): Handle the PC being unavailable.
8295 (find_frame_funname): Ditto.
8296 (print_frame): Handle the PC being unavailable.
8297 (get_frame_language): Ditto.
8298 * blockframe.c (get_frame_block): Ditto.
8299 * macroscope.c (default_macro_scope): Ditto.
8300 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8301
8302 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8303
8304 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8305 NOT_AVAILABLE_ERROR when evaluating the location expression.
8306
8307 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8308
8309 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8310 returning that the register piece is unavailable/optimized out.
8311 (write_pieced_value): Handle get_frame_register_bytes returning
8312 that the register piece is unavailable/optimized out when doing a
8313 read-modify write of a bitfield.
8314 * findvar.c (value_from_register): Handle get_frame_register_bytes
8315 returning that the register piece is unavailable/optimized out.
8316 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8317 and `unavailablep'. Throw error on bad debug info. Use
8318 frame_register instead of frame_register_read, to fill in the new
8319 arguments.
8320 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8321 and `unavailablep'.
8322 * valops.c: (value_assign): Adjust, and handle
8323 get_frame_register_bytes failing.
8324 * spu-tdep.c: Include exceptions.h.
8325 (spu_software_single_step): Adjust, and handle
8326 get_frame_register_bytes failing.
8327 (spu_get_longjmp_target): Ditto.
8328 * gdbarch.sh (register_to_value): Change to return int. New
8329 parameters `optimizedp' and `unavailablep'.
8330 * gdbarch.h, gdbarch.c: Regenerate.
8331 * i386-tdep.c (i386_register_to_value): Adjust to new
8332 gdbarch_register_to_value interface.
8333 * i387-tdep.c (i387_register_to_value): Ditto.
8334 * i387-tdep.h (i387_register_to_value): Ditto.
8335 * alpha-tdep.c (alpha_register_to_value): Ditto.
8336 * ia64-tdep.c (ia64_register_to_value): Ditto.
8337 * m68k-tdep.c (m68k_register_to_value): Ditto.
8338 * mips-tdep.c (mips_register_to_value): Ditto.
8339 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8340
8341 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8342
8343 * findvar.c (value_of_register): Mark the value as unavailable, if
8344 the register is unavailable.
8345 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8346 (frame_register): New `unavailablep' parameter.
8347 (frame_register_read): Update comment.
8348 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8349 Set it if the register is unavailable. If the register is
8350 unavailable, clear the output buffer.
8351 (frame_register): New `unavailablep' parameter. Pass it down.
8352 (frame_unwind_register): Adjust.
8353 (put_frame_register): Adjust.
8354 (frame_register_read): Adjust. Also return false if the register
8355 is not available.
8356 (frame_register_unwind_location): Adjust.
8357 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8358 is unavailable, mark the value accordingly.
8359 * stack.c (frame_info): Handle unavailable registers.
8360
8361 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8362
8363 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8364 simplify, using regcache_cooked_read.
8365
8366 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8367
8368 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8369 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8370 (regcache_raw_read_unsigned, regcache_raw_read_part)
8371 (regcache_cooked_read, regcache_cooked_read_signed)
8372 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8373 (regcache_cooked_read_ftype): Change return to enum
8374 register_status.
8375 * regcache.c: Include exceptions.h
8376 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8377 (do_cooked_read): Change return to enum register_status. Always
8378 forward to regcache_cooked_read.
8379 (regcache_raw_read): Change return to enum register_status. If
8380 the register is not REG_VALID, memset the buffer. Return the
8381 register's status.
8382 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8383 return the register's status.
8384 (regcache_raw_read_unsigned): Ditto.
8385 (regcache_cooked_read): Change return to enum register_status.
8386 Assert that with read-only regcaches, the register's status must
8387 be known. If the regcache is read-only, and the register is not
8388 REG_VALID, memset the buffer. Return the register's status.
8389 (regcache_cooked_read_signed): Change return to enum
8390 register_status. Handle non-REG_VALID registers and return the
8391 register's status.
8392 (regcache_cooked_read_unsigned): Change return to enum
8393 register_status. Handle non-REG_VALID registers and return the
8394 register's status.
8395 (regcache_xfer_part, regcache_raw_read_part)
8396 (regcache_cooked_read_part): Change return to enum
8397 register_status. Return the register's status.
8398 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8399 unavailable.
8400 (regcache_dump): Handle unavailable cooked registers.
8401 * frame.c (do_frame_register_read): Adjust interface to match
8402 regcache_cooked_read_ftype.
8403 * gdbarch.sh (pseudo_register_read): Change return to enum
8404 register_status.
8405 * gdbarch.h, gdbarch.c: Regenerate.
8406
8407 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8408 register_status.
8409 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8410 register_status. If reading a raw register indicates the raw
8411 register is not valid, return the raw register's status,
8412 otherwise, return REG_VALID.
8413 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8414 register_status. Handle non-REG_VALID raw registers and return
8415 the register's status.
8416 * arm-tdep.c (arm_neon_quad_read)
8417 (arm_pseudo_read): Change return to enum register_status. Handle
8418 non-REG_VALID raw registers and return the register's status.
8419 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8420 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8421 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8422 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8423 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8424 register_status.
8425 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8426 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8427 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8428 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8429 (m32c_pseudo_register_read): Change return to enum
8430 register_status. Adjust.
8431 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8432 enum register_status. Return the register's status.
8433 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8434 register_status. Return the register's status.
8435 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8436 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8437 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8438 * rs6000-tdep.c (move_ev_register_func): New typedef.
8439 (e500_move_ev_register): Use it. Change return to enum
8440 register_status. Return the register's status.
8441 (do_regcache_raw_read): New function.
8442 (do_regcache_raw_write): New function.
8443 (e500_pseudo_register_read): Change return to enum
8444 register_status. Return the register's status. Use
8445 do_regcache_raw_read.
8446 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8447 (dfp_pseudo_register_read): Change return to enum register_status.
8448 Return the register's status.
8449 (vsx_pseudo_register_read): Ditto.
8450 (efpr_pseudo_register_read): Ditto.
8451 (rs6000_pseudo_register_read): Ditto.
8452 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8453 register_status. Return the register's status.
8454 * sh64-tdep.c (pseudo_register_read_portions): New function.
8455 (sh64_pseudo_register_read): Change return to enum
8456 register_status. Use pseudo_register_read_portions. Return the
8457 register's status.
8458 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8459 register_status. Return the register's status.
8460 * sh-tdep.c (pseudo_register_read_portions): New function.
8461 (sh_pseudo_register_read): Change return to enum register_status.
8462 Use pseudo_register_read_portions. Return the register's status.
8463 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8464 enum register_status. Return the register's status.
8465 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8466 * spu-tdep.c (spu_pseudo_register_read_spu)
8467 (spu_pseudo_register_read): Ditto.
8468 * xtensa-tdep.c (xtensa_register_read_masked)
8469 (xtensa_pseudo_register_read): Ditto.
8470 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8471
8472 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8473
8474 * python/py-value.c (valpy_getitem): Fix formatting of error function
8475 call.
8476
8477 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8478
8479 ARI fixes: Add missing internationalization markups throughout
8480 C source files.
8481 * darwin-nat-info.c: Ditto.
8482 * record.c: Ditto.
8483 * remote.c: Ditto.
8484 * mi/mi-main.c: Ditto.
8485
8486 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8487
8488 ARI fixes: Add missing internationalization markups throughout
8489 yacc files.
8490 * c-exp.y: Ditto.
8491 * cp-name-parser.y: Ditto.
8492 * f-exp.y: Ditto.
8493 * m2-exp.y: Ditto.
8494 * objc-exp.y: Ditto.
8495 * p-exp.y: Ditto.
8496
8497 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8498
8499 ARI fixes: Messages should have no trailing new lines.
8500 * darwin-nat.c (mach_check_error): Remove trailing new line from
8501 warning function call message.
8502 * record.c (bfdcore_read): Idem for error call.
8503
8504 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * common/signals.c (target_signal_from_host): Add _ markup to error
8507 function call message.
8508 (target_signal_to_host): Add _ markup and remove trailing new line
8509 from warning call message.
8510 (target_signal_from_command): Add _ markup to error function call
8511 message.
8512
8513 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8514
8515 PR python/12149
8516
8517 * python/python.c (gdbpy_write): Accept a stream argument and
8518 operate to the appropriate stream.
8519 (gdbpy_flush): Likewise.
8520 (_initialize_python): Add stream constants.
8521 (finish_python_initialization): Add GdbOutputErrorFile class.
8522
8523 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8524
8525 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8526
8527 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8528
8529 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8530 to store_signed_integer. Add debug message when relocating CALL
8531 instructions. Fix formatting of debug message.
8532 * i386-tdep.c (i386_relocate_instruction): Ditto.
8533
8534 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8535
8536 * target.h (struct target_ops): Remove to_lookup_symbol field.
8537 (target_lookup_symbol): Delete macro.
8538 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8539 (update_current_target, setup_target_debug): Remove handling
8540 of to_lookup_symbol target_ops field.
8541 * ada-tasks.c (get_known_tasks_addr): Remove use of
8542 target_lookup_symbol.
8543 * coffread.c (coff_symtab_read): Likewise.
8544 * dbxread.c (read_dbx_symtab): Ditto.
8545
8546 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8547
8548 PR gdb/12116:
8549 * configure.ac: Add getthrds declaration check.
8550 * configure, config.in: Regenerate.
8551 * aix-thread.c (getthrds): Declare only if not already declared
8552 in procinfo.h. More declaration out of get_signaled_thread to
8553 global scope.
8554
8555 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8556
8557 * python/py-symtab.c: Populate symtab_object_methods,
8558 sal_object_methods.
8559 (stpy_is_valid): New function.
8560 (salpy_is_valid): Ditto.
8561 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8562 (sympy_is_valid): New function.
8563 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8564 (objfpy_is_valid): New function.
8565 * python/py-inferior.c: Populate inferior_object_methods.
8566 (infpy_is_valid): New function.
8567 * python/py-infthread.c: Populate thread_object_methods.
8568 (thpy_is_valid): New function.
8569 * python/py-block.c: Declare block_object_methods. Populate. Declare
8570 block_iterator_object_methods. Populate.
8571 (blpy_is_valid): New function.
8572 (blpy_iter_is_valid): Ditto.
8573
8574 2011-03-16 Keith Seitz <keiths@redhat.com>
8575
8576 * linespec.c (find_methods): Canonicalize NAME before looking
8577 up the symbol.
8578 (name_end): New function.
8579 (keep_name_info): New function.
8580 (decode_line_1): Use keep_name_info.
8581 (decode_compound): Likewise.
8582 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8583 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8584
8585 PR c++/12273
8586 * linespec.c (locate_first_half): Keep overload information, too.
8587 (decode_compound): Use a string to represent break characters
8588 to escape the loop.
8589 If P points to a break character, do not increment it.
8590 For C++ and Java, keep overload information and relevant keywords.
8591 If we cannot find a symbol, search the minimal symbols.
8592
8593 PR c++/11734
8594 * linespec.c (decode_compound): Rename SAVED_ARG to
8595 THE_REAL_SAVED_ARG.
8596 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8597 single-quotes.
8598 Pass a valid block to lookup_symbol.
8599 (lookup_prefix_sym): Likewise.
8600 (find_method): Construct search name based on SYM_CLASS instead
8601 of SAVED_ARG.
8602 * psymtab.c (lookup_partial_symbol): Add language parameter.
8603 (lookup_symbol_aux_psymtabs): Likewise.
8604 Don't assume that the psymtab we found was the right one. Search
8605 for the desired symbol in the symtab to be certain.
8606 (psymtab_search_name): New function.
8607 (lookup_partial_symbol): Use psymtab_search_name.
8608 Add language parameter.
8609 (read_symtabs_for_function): Add language parameter and pass to
8610 lookup_partial_symbol.
8611 (find_symbol_file_from_partial): Likewise.
8612
8613 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8614
8615 PR gdb/12528
8616 * dwarf2read.c (noop_record_line): New function.
8617 (dwarf_decode_lines): Ignore line tables for GCd functions.
8618
8619 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8620
8621 Fix ARI warnings about new lines at the end of messages, which
8622 are unneeded as there is a new line added at the end of the message
8623 automatically.
8624 * darwin-nat.c (darwin_stop_inferior): Ditto.
8625 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8626 * dfp.c (decimal_to_number): Ditto.
8627 * exec.c (print_section_info): Ditto.
8628 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8629 * osdata.c (get_osdata): Ditto.
8630 * record.c (bfdcore_write): Ditto.
8631 * remote-mips.c (mips_readchar): Ditto.
8632 * remote.c (read_ptid): Ditto.
8633 * ser-mingw.c (ser_windows_raw): Ditto.
8634 * tracepoint.c (add_local_symbols): Ditto.
8635 * windows-nat.c (fake_create_process): Ditto.
8636
8637 2011-03-16 Tom Tromey <tromey@redhat.com>
8638
8639 * tracepoint.c (stop_tracing): Don't declare.
8640 * event-top.c (after_char_processing_hook): Add `(void)'.
8641
8642 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8643
8644 * NEWS: Add Parameter sub-classing description.
8645
8646 2011-03-16 Kai Tietz <ktietz@redhat.com>
8647
8648 * MAINTAINERS: Update my e-mail address.
8649
8650 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8651
8652 * MAINTAINERS: Add myself for write after approval privileges.
8653
8654 2011-03-15 Michael Snyder <msnyder@vmware.com>
8655
8656 * frame.c (find_frame_sal): Assert sym is not null.
8657
8658 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8659
8660 * objc-lang.c (selectors_info): Check strchr for null result.
8661
8662 * stabsread.c (define_symbol): Guard against bad stabstring input.
8663
8664 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8665
8666 Remove trailing spaces and tabulations from pascal language
8667 support sources.
8668 p-exp.y: Ditto.
8669 p-lang.c: Ditto.
8670 p-lang.h: Ditto.
8671 p-valprint.c: Ditto.
8672
8673 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8676 than LOW. Comment it.
8677 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8678 HIGHPC not strictly higher than LOWPC.
8679
8680 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8681
8682 Fix formatting of function declarations returning a pointer in
8683 previous commit.
8684 * varobj.c (varobj_add_child): Ditto.
8685 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8686 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8687
8688 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8689
8690 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8691 for the "generic" vector ABI used with GCC 4.3 and later.
8692 (ppc64_sysv_abi_return_value): Likewise.
8693
8694 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8695
8696 * infcall.c (call_function_by_hand): Function return value is
8697 always a non_lval, even when using struct_return.
8698
8699 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8700
8701 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8702 (map_display_numbers): New.
8703 (do_delete_display): New.
8704 (undisplay_command): Use map_display_numbers.
8705 (do_enable_disable_display): New.
8706 (enable_disable_display_command): New function.
8707 (enable_display): Delete.
8708 (enable_display_command): New.
8709 (disable_display_command): Reimplement.
8710 (_initialize_printcmd): Adjust "enable display" command to use
8711 `enable_display_command' as callback.
8712
8713 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8714
8715 * NEWS: Add Python breakpoint 'stop' operation.
8716
8717 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8718
8719 * NEWS: Delete duplicate entry. Fix typo.
8720
8721 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8722
8723 Fix ARI warning about function names in first column.
8724 Put prototype declaration on same line as return type.
8725 * objc-exp.y: Ditto.
8726 * p-exp.y: Ditto.
8727 * python/py-stopevent.h: Ditto.
8728 For long function names, split parameters to
8729 allow function name on same line as return type.
8730 * solib-pa64.c: Ditto.
8731 * varobj.c: Ditto.
8732 * varobj.h: Ditto.
8733 For long function declaration, use single line.
8734 * hppa-tdep.h: Ditto.
8735 * inferior.h: Ditto.
8736
8737 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8738
8739 * python/python.h: Declare gdbpy_should_stop and
8740 gdbpy_breakpoint_has_py_cond.
8741 * python/python.c: Add python.h to includes. Remove python.h from
8742 HAVE_PYTHON definition
8743 (gdbpy_should_stop): New dummy function.
8744 (gdbpy_breakpoint_has_py_cond): New dummy function.
8745 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8746 sub-classing capabilities.
8747 (gdbpy_should_stop): New function.
8748 (gdbpy_breakpoint_has_py_cond): New function.
8749 (local_setattro): New function.
8750 * breakpoint.c (condition_command): Add check for Python 'stop'
8751 operation.
8752 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8753 operation function as part of stop/continue tests.
8754
8755 2011-03-14 Tom Tromey <tromey@redhat.com>
8756
8757 PR gdb/12576:
8758 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8759 (needs_frame_dwarf_call): Likewise.
8760
8761 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8762
8763 Fix ARI warning about functions without parameters that do not
8764 use (void).
8765 * breakpoint.c (all_tracepoints): Replace () by (void).
8766 * f-exp.y (match_string_literal): Ditto.
8767 (yylex): Ditto.
8768 * m2-exp.y (yylex): Ditto.
8769 * mep-tdep.c (current_me_module): Ditto.
8770 (current_options): Ditto.
8771 (current_cop_data_bus_width): Ditto.
8772 (current_cr_names): Ditto.
8773 (current_cr_is_float): Ditto.
8774 (current_ccr_names): Ditto.
8775 * objc-exp.y (yylex): Ditto.
8776 * p-exp.y (yylex): Ditto.
8777 * remote.c (send_interrupt_sequence): Ditto.
8778 * tracepoint.c (current_trace_status): Ditto.
8779 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8780 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8781
8782 2011-03-11 Michael Snyder <msnyder@vmware.com>
8783
8784 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8785 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8786 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8787 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8788 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8789
8790 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8791 (delete_async_event_handler): Ditto.
8792
8793 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8794
8795 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8796
8797 * top.c (set_verbose): Assert showcmd was found.
8798
8799 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8800
8801 * xtensa-tdep.c (warning_once): Correct style issues.
8802
8803 2011-03-11 Yao Qi <yao@codesourcery.com>
8804
8805 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8806
8807 2011-03-11 Andreas Schwab <schwab@redhat.com>
8808
8809 * common/aclocal.m4: Remove.
8810
8811 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8812
8813 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8814 (xtensa_write_register, xtensa_read_register): Likewise.
8815 (xtensa_hextochar): Removed.
8816 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8817
8818 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8819
8820 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8821 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8822 (xtensa_alloc_frame_cache): Add initialization for new fields.
8823 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8824 (warning_once): New function.
8825 (xtensa_insn_kind): New item c0opc_and.
8826 (call0_classify_opcode): Add the case for AND instruction.
8827 (call0_track_op): Change arguments. New local variable litbase.
8828 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8829 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8830 in the prologue.
8831 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8832 (call0_analyze_prologue): Update the comments. Change arguments.
8833 Add the variety of updates to handle extended prologues, which now can
8834 conduct dynamic stack adjustments.
8835 (call0_frame_cache): Likewise.
8836 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8837 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8838
8839 2011-03-10 Michael Snyder <msnyder@vmware.com>
8840
8841 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8842 (cmd_qtframe): Ditto.
8843 (cmd_qtbuffer): Ditto.
8844 (cmd_bigqtbuffer): Ditto.
8845
8846 2011-03-10 Tom Tromey <tromey@redhat.com>
8847
8848 * tracepoint.c (trace_actions_command): Update.
8849 * thread.c (thread_apply_command): Update.
8850 * reverse.c (delete_bookmark_command): Update.
8851 (bookmarks_info): Update.
8852 * printcmd.c (undisplay_command): Update.
8853 * memattr.c (mem_enable_command): Update.
8854 (mem_disable_command): Update.
8855 (mem_delete_command): Update.
8856 * inferior.c (detach_inferior_command): Update.
8857 (kill_inferior_command): Update.
8858 (remove_inferior_command): Update.
8859 * cli/cli-utils.h (struct get_number_or_range_state): New.
8860 (init_number_or_range): Declare.
8861 (get_number_or_range): Update.
8862 * cli/cli-utils.c (init_number_or_range): New function.
8863 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8864 static variables.
8865 (number_is_in_list): Update.
8866 * breakpoint.h (get_tracepoint_by_number): Update.
8867 * breakpoint.c (map_breakpoint_numbers): Update for change to
8868 get_number_or_range.
8869 (find_location_by_number): Use get_number, not
8870 get_number_or_range.
8871 (trace_pass_set_count): New function.
8872 (trace_pass_command): Update for change to get_number_or_range.
8873 Rework loop logic.
8874 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8875 'state' parameter.
8876
8877 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8878
8879 * python/py-param.c (add_setshow_generic): Add set/show callback
8880 parameters. Register Python object context.
8881 (get_show_value): New function.
8882 (get_set_value): New function.
8883 (call_doc_function): New function.
8884 (get_doc_string): Move behind get_show_value/get_set_value.
8885
8886 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8887
8888 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8889
8890 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8891
8892 * xtensa-tdep.c (xtensa_read_register): Add comment.
8893 (xtensa_write_register): Likewise.
8894 (xtensa_hextochar): Add comment and update to match coding conventions.
8895 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8896 (execute_l32e, execute_s32e, execute_code): Update comments.
8897 (xtensa_exception_handler_t): Update to match coding conventions.
8898 (xtensa_insn_kind): Likewise.
8899
8900 2011-03-09 Michael Snyder <msnyder@vmware.com>
8901
8902 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8903
8904 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8905
8906 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8907
8908 2011-03-09 Tom Tromey <tromey@redhat.com>
8909
8910 * thread.c (restore_selected_frame): Handle frame_level == -1.
8911 (make_cleanup_restore_current_thread): Use
8912 get_selected_frame_if_set.
8913 * frame.h (get_selected_frame_if_set): Declare.
8914 * frame.c (get_selected_frame_if_set): New function.
8915
8916 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8917
8918 * cli/cli-cmds.c (shell_escape): Use lbasename.
8919 * coffread.c (coff_start_symtab): Constify parameter.
8920 (complete_symtab): Constify `name' parameter.
8921 (coff_symtab_read): Constify `filestring' local.
8922 (coff_getfilename): Constify return and `result' local.
8923 Use lbasename.
8924 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8925 * linux-fork.c (info_checkpoints_command): Use lbasename.
8926 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8927 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8928 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8929 * procfs.c (procfs_make_note_section): Use lbasename.
8930 * tui/tui-io.c (printable_part): Constity return and parameter.
8931 Use lbasename.
8932 (print_filename): Constify parameters, and local `s'.
8933 (tui_rl_display_match_list): Constify local `temp'.
8934
8935 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8936
8937 Revert:
8938 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8939 Fix DWARF-3+ DW_AT_accessibility default assumption.
8940 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8941 cu->header.version >= 3.
8942
8943 2011-03-09 Yao Qi <yao@codesourcery.com>
8944
8945 * common/Makefile.in: Remove.
8946 * common/configure: Remove.
8947 * common/configure.ac: Remove.
8948
8949 2011-03-09 Yao Qi <yao@codesourcery.com>
8950
8951 Revert:
8952 2011-02-11 Yao Qi <yao@codesourcery.com>
8953
8954 * common/Makefile.in: Add copyright header.
8955
8956 2011-02-11 Yao Qi <yao@codesourcery.com>
8957
8958 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8959 libcommon.a.
8960 * configure.ac: Add common to sub dir.
8961 * configure: Regenerate.
8962
8963 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8964
8965 * xtensa-tdep.c (call0_ret): New function.
8966 (xtensa_skip_prologue): Speed up analysis.
8967
8968 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8969
8970 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8971 while executing MI command -data-list-changed-registers.
8972
8973 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8974
8975 * xtensa-tdep.c (xtensa_read_register): New function.
8976 (xtensa_write_register): New function.
8977 (xtensa_find_register_by_name): New function.
8978 (xtensa_windowed_frame_cache): Update comments in type description.
8979 (xtensa_frame_cache): Likewise.
8980 (xtensa_window_interrupt_insn): New function.
8981 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8982 (xtensa_insn_kind): Add new instructions.
8983 (rwx_special_register): New function.
8984 (call0_classify_opcode): Add new instructions to the analysis.
8985 (a0_saved, a7_saved, a11_saved): New variables.
8986 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8987 (execute_l32e): New function.
8988 (execute_s32e): New function.
8989 (xtensa_exception_handler_t): New type.
8990 (execute_code): New function.
8991 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8992 analysis for Xtensa Window Exception handlers.
8993
8994 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8995
8996 * xtensa-tdep.c (TX_PS): New.
8997 (windowing_enabled): Update to count for Call0 ABI.
8998 (xtensa_hextochar): New.
8999 (xtensa_init_reggroups): Make algorithm generic.
9000 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9001
9002 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9003
9004 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9005
9006 2011-03-08 Michael Snyder <msnyder@vmware.com>
9007
9008 * i386-tdep.c (i386_follow_jump): Check return value of
9009 target_read_memory.
9010 (i386_analyze_struct_return): Ditto.
9011 (i386_skip_probe): Ditto.
9012 (i386_match_insn): Ditto.
9013 (i386_skip_noop): Ditto.
9014 (i386_analyze_frame_setup): Ditto.
9015 (i386_analyze_register_saves): Ditto.
9016 (i386_skip_prologue): Ditto.
9017 (i386_skip_main_prologue): Ditto.
9018
9019 * target.c (read_whatever_is_readable): Fix memory leak.
9020
9021 * i386-tdep.c (i386_process_record): Document fall through.
9022
9023 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9024
9025 Fix DWARF-3+ DW_AT_accessibility default assumption.
9026 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9027 cu->header.version >= 3.
9028
9029 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9030
9031 * remote.c (remote_check_symbols): Skip if the target has no
9032 execution.
9033
9034 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9035
9036 * target.c (read_whatever_is_readable): Reformat comment,
9037 with a minor typo fix. Minor reformatting of the code.
9038
9039 2011-03-08 Yao Qi <yao@codesourcery.com>
9040
9041 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9042 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9043 Use cached result instead of calling displaced_in_arm_mode again.
9044 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9045 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9046 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9047 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9048 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9049 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9050 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9051 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9052 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9053 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9054 (arm_catch_kernel_helper_return): Likewise.
9055 * gdb/arm-tdep.h : Update function declarations.
9056
9057 2011-03-07 Michael Snyder <msnyder@vmware.com>
9058
9059 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9060
9061 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9062
9063 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9064
9065 * elfread.c (elf_symtab_read): Stop memory leak.
9066
9067 * main.c (captured_main): Fix memory leak.
9068
9069 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9070
9071 * ada-lang.c (compare_names): Call is_name_suffix with string1
9072 instead of string2.
9073
9074 2011-03-07 Tom Tromey <tromey@redhat.com>
9075
9076 * xcoffread.c (xcoff_sym_fns): Update.
9077 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9078 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9079 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9080 (symbol_file_add_with_addrs_or_offsets): Likewise.
9081 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9082 * somread.c (som_sym_fns): Update.
9083 * psymtab.h (require_partial_symbols): Declare.
9084 * psymtab.c (require_partial_symbols): New function.
9085 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9086 (ALL_OBJFILE_PSYMTABS): Undef.
9087 (ALL_PSYMTABS): Move from psympriv.h.
9088 (lookup_partial_symtab, find_pc_sect_psymtab)
9089 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9090 (find_last_source_symtab_from_partial)
9091 (forget_cached_source_info_partial)
9092 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9093 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9094 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9095 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9096 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9097 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9098 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9099 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9100 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9101 psymtabs.
9102 * mipsread.c (ecoff_sym_fns): Update.
9103 * machoread.c (macho_sym_fns): Update.
9104 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9105 (read_psyms): New function.
9106 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9107 (elf_sym_fns_lazy_psyms): New global.
9108 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9109 dwarf2_build_psymtabs.
9110 * dbxread.c (aout_sym_fns): Update.
9111 * coffread.c (coff_sym_fns): Update.
9112
9113 2011-03-07 Tom Tromey <tromey@redhat.com>
9114
9115 * infrun.c (print_exited_reason): Include inferior id and pid in
9116 message.
9117
9118 2011-03-07 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9121 parameter.
9122 (target_has_execution_1): Update.
9123 (target_has_execution_current): Declare.
9124 (target_has_execution): Call target_has_execution_current.
9125 (default_child_has_execution): Update.
9126 * target.c (default_child_has_execution): Add 'the_ptid'
9127 parameter.
9128 (target_has_execution_1): Likewise.
9129 (target_has_execution_current): New function.
9130 (add_target): Update.
9131 (init_dummy_target): Update.
9132 * remote-m32r-sdi.c (m32r_has_execution): New function.
9133 (init_m32r_ops): Use it.
9134 * record.c (record_core_has_execution): Now static. Add
9135 'the_ptid' parameter.
9136 * inferior.c (have_live_inferiors): Don't save current thread.
9137 Use target_has_execution_1.
9138
9139 2011-03-07 Yao Qi <yao@codesourcery.com>
9140
9141 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9142
9143 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9144
9145 * elfread.c (elf_symtab_read): Minor reformatting.
9146
9147 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9148
9149 * objc-lang.c (selectors_info): Minor reformatting.
9150
9151 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9152
9153 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9154
9155 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9156 Michael Snyder <msnyder@vmware.com>
9157
9158 * ada-valprint.c (ada_val_print_array): Move the declaration of
9159 "byte_order" and "elttype" inside the block where these variables
9160 are actually used. Remove some special handling for the case
9161 where "elttype" and "eltlen" are null. Replace by a comment
9162 and a couple of assertion checks.
9163
9164 2011-03-05 Michael Snyder <msnyder@vmware.com>
9165
9166 * source.c (add_path): Replace semicolon at end of block.
9167 * dwarf2expr.c (execute_stack_op): Ditto.
9168
9169 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9170
9171 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9172 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9173 (bfin-*-*): Likewise.
9174
9175 2011-03-05 Michael Snyder <msnyder@vmware.com>
9176
9177 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9178 * mdebugread.c (parse_symbol): Ditto.
9179 * parse.c (parse_exp_in_context): Ditto.
9180 * source.c (add_path): Ditto.
9181 * utils.c (gnu_debuglink_crc32): Ditto.
9182 * varobj.c (variable_language): Ditto.
9183
9184 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9185
9186 2011-03-04 Michael Snyder <msnyder@vmware.com>
9187
9188 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9189
9190 * symfile.c (simple_overlay_update): Check for null return value
9191 from lookup_minimal_symbol.
9192
9193 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9194
9195 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9196
9197 * eval.c (parse_and_eval_address_1): Remove function.
9198 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9199 instead of parse_and_eval_address_1.
9200 * value.h (parse_and_eval_address_1): Remove prototype.
9201
9202 2011-03-04 Michael Snyder <msnyder@vmware.com>
9203
9204 * remote.c (putpkt_binary): Document that case stmt falls through.
9205
9206 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9207
9208 * breakpointc (print_it_typical): Move NULL check from here...
9209 (print_bp_stop_message): ... to here.
9210
9211 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9212
9213 * breakpoint.c (enable_command): Use break instead of continue,
9214 and fill in a missing break.
9215 (disable_command): Ditto.
9216
9217 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9218
9219 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9220 (terminal_save_ours): Remove misleading comment.
9221 (inflow_inferior_data_cleanup): Free ttystate.
9222 (inflow_inferior_exit): Likewise.
9223 (copy_terminal_info): Copy ttystate.
9224
9225 * serial.c (serial_copy_tty_state): New function.
9226 * serial.h (serial_copy_tty_state): Add prototype.
9227 (struct serial_ops): Add copy_tty_state callback.
9228 * ser-base.c (ser_base_copy_tty_state): New function.
9229 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9230 * ser-go32.c (dos_copy_tty_state): New function.
9231 (dos_ops): Install copy_tty_state callback.
9232 * ser-mingw.c (_initialize_ser_windows): Likewise.
9233 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9234 * ser-unix.c (hardwire_copy_tty_state): New function.
9235 (_initialize_ser_hardwire): Install it.
9236
9237 2011-03-04 Michael Snyder <msnyder@vmware.com>
9238
9239 * breakpoint.c (create_breakpoint): Add missing break statement.
9240
9241 Reverting this patch:
9242 * infcall.c (call_function_by_hand): Add break statements for lint.
9243
9244 Reverting this patch:
9245 * cli/cli-script.c (script_from_file): Add break for lint.
9246
9247 2011-03-04 Michael Snyder <msnyder@vmware.com>
9248
9249 * solib.c (reload_shared_libraries_1): Close memory leak.
9250
9251 2011-03-03 Tom Tromey <tromey@redhat.com>
9252
9253 PR gdb/12538:
9254 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9255 DW_STRING is NULL.
9256
9257 2011-03-03 Michael Snyder <msnyder@vmware.com>
9258
9259 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9260 fields of struct 'st' to zero.
9261
9262 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9263 sal.pspace before calling set_current_source_symtab_and_line.
9264
9265 2011-03-03 Yao Qi <yao@codesourcery.com>
9266
9267 * Makefile.in (configure-common): Remove. Let Makefile
9268 in dir common to rebuild itself.
9269 (common/Makefile): Likewise.
9270
9271 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9272
9273 * utils.c (parse_escape): Add i18n markup in error message.
9274
9275 2011-03-03 Yao Qi <yao@codesourcery.com>
9276
9277 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9278 ARM_PC_REGNUM.
9279 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9280 (displaced_write_reg, displaced_read_reg): Likewise.
9281 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9282 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9283 (cleanup_branch): Replace magic number 14 and 15 with
9284 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9285
9286 2011-03-02 Michael Snyder <msnyder@vmware.com>
9287
9288 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9289
9290 * cli/cli-script.c (script_from_file): Add break for lint.
9291
9292 * mdebugread.c (parse_partial_symbols): Fix indent.
9293
9294 * target-descriptions.c (tdesc_gdb_type): No need to call
9295 xstrdup, callee saves a copy.
9296
9297 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9298
9299 * infcall.c (call_function_by_hand): Add break statements for lint.
9300
9301 * utils.c (parse_escape): Escape the escape char.
9302
9303 * python/py-inferior.c (build_inferior_list): Error out if
9304 PyList_Append fails.
9305 (gdbpy_inferiors): Error out if build_inferior_list fails.
9306
9307 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9308 a function call.
9309
9310 * record.c (record_restore): Move printf to before error return.
9311
9312 2011-03-02 Yao Qi <yao@codesourcery.com>
9313
9314 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9315 is_thumb and insn_size.
9316 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9317 on both ARM and Thumb mode.
9318 (arm_process_displaced_insn): Set is_thumb and insn_size.
9319 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9320 (arm_displaced_step_fixup): Likewise.
9321
9322 2011-03-01 Michael Snyder <msnyder@vmware.com>
9323
9324 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9325
9326 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9327
9328 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9329
9330 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9331
9332 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9333 with xmalloc.
9334
9335 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9336 which shadows function parameter.
9337
9338 * tracepoint.c (create_tsv_from_upload): Superfluous call
9339 to xstrdup. Callee already calls xstrdup.
9340
9341 * linespec.c (decode_line_1): Remove unnecessary null check.
9342
9343 * tracepoint.c (scope_info): Fix mem leak, remove underused
9344 variable.
9345
9346 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9347 superfluous null check.
9348
9349 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9350 (value_of_builtin_frame_fp_reg): Ditto.
9351
9352 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9353
9354 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9355 be null.
9356
9357 * linespec.c (decode_line_1): Check for null before dereference.
9358
9359 * reverse.c (record_restore): Move null-check to before pointer
9360 dereference.
9361
9362 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9363
9364 * objc-lang.c (selectors_info): Add explanitory comment.
9365 (classes_info): Ditto.
9366
9367 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9368
9369 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9370 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9371 versions of the trampoline. Handle Thumb vs. ARM addresses.
9372 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9373 (arm_linux_init_abi): Install it.
9374 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9375 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9376
9377 2011-02-28 Michael Snyder <msnyder@vmware.com>
9378
9379 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9380 a little bigger, to avoid possibility of an overflow.
9381
9382 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9383 buffers a little bigger, to avoid possibility of an overflow.
9384
9385 * coffread.c (coff_getfilename): Add check to avoid overflow.
9386
9387 * objc-lang.c (selectors_info): Add a small safety margin to
9388 avoid overflow.
9389 (classes_info): Error out on too long REGEXP.
9390
9391 * infrun.c (handle_inferior_event): Remove unused function call.
9392
9393 * fork-child.c (fork_inferior): Remove ifdef'd code and
9394 unused variable.
9395
9396 * linux-thread-db.c (attach_thread): Discard unused value.
9397
9398 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9399
9400 * remote.c (remote_get_noisy_reply): Discard unused value.
9401 (remote_vcont_resume): Ditto.
9402 (remote_stop_ns): Ditto.
9403
9404 * linespec.c (decode_objc): Delete unused variable.
9405
9406 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9407
9408 * dwarf2read.c (add_partial_symbol): Discard unused values.
9409 (read_base_type): Delete unused variable.
9410
9411 * dbxread.c (read_dbx_symtab): Discard unused value.
9412
9413 * eval.c (evaluate_subexp_standard): Delete unused variable,
9414 and discard unused values.
9415
9416 * infcmd.c (_initialize_infcmd): Discard unused values.
9417
9418 * stabsread.c (rs6000_builtin_type): Missing break statement.
9419
9420 * dbxread.c (process_one_symbol): Discard unused value.
9421
9422 * coffread.c (coff_end_symtab): Delete unused variable.
9423
9424 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9425 (dwarf2_add_typedef): Delete unused variable.
9426 (read_namespace): Ditto.
9427 (dwarf_decode_macros): Ditto.
9428
9429 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9430
9431 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9432
9433 * p-valprint.c (pascal_val_print): Discard unused value.
9434
9435 * utils.c (nquery): Call va_end before return;
9436 (yquery): Ditto.
9437 (query): Ditto.
9438
9439 * proc-service.c (ps_plog): Call va_end before return.
9440
9441 2011-02-28 Tom Tromey <tromey@redhat.com>
9442
9443 * python/python.c (gdbpy_value_cst): New global.
9444 (_initialize_python): Initialize it.
9445 * python/python-internal.h (gdbpy_value_cst): Declare.
9446 * python/py-value.c (convert_value_from_python): Use
9447 gdbpy_value_cst.
9448
9449 2011-02-28 Michael Snyder <msnyder@vmware.com>
9450
9451 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9452
9453 * breakpoint.c (catch_syscall_completer): Free malloced list.
9454
9455 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9456
9457 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9458 (lval_func_check_synthetic_pointer): Ditto.
9459 (lval_func_free_closure): Fix use-after-free.
9460
9461 2011-02-28 Tom Tromey <tromey@redhat.com>
9462
9463 * psymtab.c (expand_partial_symbol_tables): Use
9464 ALL_OBJFILE_PSYMTABS.
9465
9466 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9467
9468 * objc-lang.c (selectors_info): Error on too long REGEXP.
9469
9470 2011-02-28 Michael Snyder <msnyder@vmware.com>
9471
9472 * python/py-param.c (set_parameter_value): Add missing
9473 break statement.
9474
9475 * linux-record.c (record_linux_system_call): Add missing
9476 break statement.
9477
9478 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9479
9480 * breakpoint.c (print_one_breakpoint_location): Remove unused
9481 argument PRINT_ADDRESS_BITS. Update callers.
9482 (print_one_breakpoint): Likewise.
9483
9484 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9485
9486 * breakpoint.c (wrap_indent_at_field): New function.
9487 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9488 Allocate ui_stream locally instead of using STB argument.
9489 (print_one_breakpoint_location): Update call.
9490 * ui-out.c (ui_out_query_field): New function.
9491 * ui-out.h (ui_out_query_field): Add prototype.
9492
9493 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9494
9495 From Michael Snyder <msnyder@vmware.com>
9496 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9497
9498 2011-02-27 Michael Snyder <msnyder@vmware.com>
9499
9500 * objc-lang.c (selectors_info): Prevent string overrun.
9501
9502 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9503 error in strncpy.
9504
9505 * symtab.c (rbreak_command): Move variable 'file_name' to
9506 outer scope.
9507
9508 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9509 param with a local variable of the same name.
9510
9511 2011-02-27 Michael Snyder <msnyder@vmware.com>
9512
9513 * value.c (value_from_history_ref): New function.
9514 * value.h (value_from_history_ref): Export.
9515 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9516 to parse value history references.
9517 * cli/cli-utils.h (get_number_trailer): Update comment.
9518
9519 2011-02-27 Michael Snyder <msnyder@vmware.com>
9520
9521 * inferior.c (detach_inferior_command): Use get_number_or_range.
9522 (kill_inferior_command): Ditto.
9523 (remove_inferior_command): Ditto.
9524 (initialize_inferiors): Make command names plural.
9525 Update help strings.
9526
9527 2011-02-27 Michael Snyder <msnyder@vmware.com>
9528
9529 * darwin-nat-info.c: Fix comment typo.
9530 * dwarf2expr.h: Ditto.
9531 * fbsd-nat.c: Ditto.
9532 * fbsd-nat.h: Ditto.
9533 * frame-unwind.h: Ditto.
9534 * frame.h: Ditto.
9535 * hppa-hpux-tdep.c: Ditto.
9536 * i386-linux-nat.c: Ditto.
9537 * linux-nat.c: Ditto.
9538 * nbsd-nat.c: Ditto.
9539 * nbsd-nat.h: Ditto.
9540 * ppc-linux-tdep.c: Ditto.
9541 * serial.c: Ditto.
9542 * ui-file.h: Ditto.
9543 * tui/tui-winsource.c: Ditto.
9544
9545 2011-02-26 Michael Snyder <msnyder@vmware.com>
9546
9547 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9548
9549 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9550
9551 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9552 with a local variable of the same name.
9553
9554 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9555 param with a local variable of the same name.
9556 (i387_supply_xsave): Ditto.
9557
9558 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9559 that it does not shadow a function parameter.
9560
9561 * i386-nat.c (i386_length_and_rw_bits): Document that case
9562 statement is meant to fall through.
9563
9564 * expprint.c (dump_subexp_body_standard): Document that case
9565 statement is meant to fall through.
9566
9567 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9568 dead if statement. Condition can't be false.
9569
9570 2011-02-25 Michael Snyder <msnyder@vmware.com>
9571
9572 * arm-tdep.c: Fix typos in comments.
9573 * bsd-uthread.c: Ditto.
9574 * completer.c: Ditto.
9575 * corelow.c: Ditto.
9576 * cp-namespace.c: Ditto.
9577 * cp-support.c: Ditto.
9578 * cris-tdep.c: Ditto.
9579 * dbxread.c: Ditto.
9580 * dwarf2read.c: Ditto.
9581 * frame.h: Ditto.
9582 * gdbtypes.h: Ditto.
9583 * inferior.h: Ditto.
9584 * mdebugread.c: Ditto.
9585 * mips-tdep.c: Ditto.
9586 * ppc-linux-nat.c: Ditto.
9587 * ppc-linux-tdep.c: Ditto.
9588 * printcmd.c: Ditto.
9589 * sol-thread.c: Ditto.
9590 * solib-frv.c: Ditto.
9591 * solist.h: Ditto.
9592 * sparc64-tdep.c: Ditto.
9593 * spu-tdep.c: Ditto.
9594 * stabsread.c: Ditto.
9595 * symfile.c: Ditto.
9596 * valops.c: Ditto.
9597 * varobj.c: Ditto.
9598 * vax-nat.c: Ditto.
9599 * python/py-block.c: Ditto.
9600 * python/py-symbol.c: Ditto.
9601 * python/py-symtab.c: Ditto.
9602 * python/py-value.c: Ditto.
9603 * tui/tui-win.c: Ditto.
9604
9605 2011-02-25 Michael Snyder <msnyder@vmware.com>
9606
9607 * inferior.c (print_inferior): Accept a string instead of an int
9608 for requested_inferiors, and use get_number_or_range to parse it.
9609 (info_inferiors_command): Pass args string to print_inferior.
9610 (initialize_inferiors): Change help string for info inferiors.
9611 * inferior.h (print_inferior): Export prototype change.
9612
9613 2011-02-25 Tom Tromey <tromey@redhat.com>
9614
9615 * common/ax.def (invalid2): Set to 0x31.
9616
9617 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9618
9619 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9620 L and plongest.
9621 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9622 use L and plongest.
9623 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9624
9625 2011-02-24 Michael Snyder <msnyder@vmware.com>
9626
9627 * Makefile.in (clean): Make clean should remove generated files
9628 observer.h and observer.inc.
9629
9630 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9631
9632 Revert the following patch (not approved yet):
9633 2011-02-21 Hui Zhu <teawater@gmail.com>
9634 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9635 * ax-gdb.c (gen_printf_expr_callback): New function.
9636 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9637 * ax-general.c (ax_memcpy): New function.
9638 (ax_print): Handle "printf".
9639 (ax_reqs): Ditto.
9640 * ax.h (ax_memcpy): Forward declare.
9641 * common/ax.def (invalid2): Removed.
9642 (printf): New entry.
9643 * printcmd.c (printcmd.h): New include.
9644 (string_printf): New function.
9645 (ui_printf): Removed.
9646 (printf_command): Remove static. Call string_printf.
9647 (eval_command): Call string_printf.
9648 * printcmd.h: New file.
9649 * tracepoint.c (validate_actionline,
9650 encode_actions_1): handle printf_command.
9651
9652 2011-02-23 Tom Tromey <tromey@redhat.com>
9653
9654 * ax-general.c (ax_pick): Add missing newline.
9655
9656 2011-02-23 Michael Snyder <msnyder@vmware.com>
9657
9658 * breakpoint.c (breakpoint_1): Change first argument from an int
9659 to a char pointer, so that the function now accepts a list of
9660 breakpoints rather than just one. Use new function
9661 'number_is_in_list' to implement.
9662 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9663 (watchpoints_info): Ditto.
9664 (tracepoints_info): Ditto.
9665 (maintenance_info_breakpoints): Ditto.
9666 (_initialize_breakpoint): Update help strings to reflect the fact
9667 that these functions can now take more than one argument.
9668 * cli/cli-utils.c (number_is_in_list): New function.
9669 * cli/cli-utils.h (number_is_in_list): Export.
9670
9671 2011-02-23 Michael Snyder <msnyder@vmware.com>
9672
9673 * memattr.c (mem_enable_command): Use get_number_or_range.
9674 (mem_disable_command): Ditto.
9675 (mem_delete_command): Ditto.
9676 (_initialize_mem): Tweak usage message to reflect multiple
9677 arguments.
9678
9679 2011-02-22 Doug Evans <dje@google.com>
9680
9681 Add gdb.lookup_global_symbol python function.
9682 * NEWS: Add entry.
9683 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9684 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9685 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9686
9687 2011-02-22 Tom Tromey <tromey@redhat.com>
9688
9689 * language.c (language_class_name_from_physname): Rename
9690 'curr_language' argument to 'lang'; use in body.
9691
9692 2011-02-22 Michael Snyder <msnyder@vmware.com>
9693
9694 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9695
9696 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9697
9698 * frame-unwind.h: Fix comment to mention the this frame, not the
9699 next.
9700
9701 2011-02-22 Tom Tromey <tromey@redhat.com>
9702
9703 * symfile.c (auto_solib_limit): Remove.
9704 * symfile.h (auto_solib_limit): Remove.
9705
9706 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9707
9708 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9709
9710 2011-02-21 Michael Snyder <msnyder@vmware.com>
9711
9712 * gdbthread.h (print_thread_info): Change prototype.
9713 * thread.c (print_thread_info): Accept char* instead of int for
9714 requested_threads argument. Use new function number_is_in_list
9715 to determine which threads to list.
9716 (info_threads_command): Pass char* to print_thread_info.
9717 * cli/cli-utils.c (number_is_in_list): New function.
9718 * cli/cli-utils.h (number_is_in_list): Export.
9719 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9720 print_thread_info.
9721 (print_one_inferior): Ditto.
9722 (mi_cmd_list_thread_groups): Ditto.
9723
9724 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 * common/Makefile.in (CFLAGS): New.
9727 (COMPILE): Add $(CFLAGS).
9728
9729 2011-02-21 Tom Tromey <tromey@redhat.com>
9730
9731 * breakpoint.c (catch_syscall_command_1): Fix typo.
9732
9733 2011-02-21 Tom Tromey <tromey@redhat.com>
9734
9735 * reverse.c: Include cli-utils.h.
9736 * printcmd.c: Include cli-utils.h.
9737 (string_printf): Use skip_spaces.
9738 * cli/cli-utils.h: New file.
9739 * cli/cli-utils.c: New file.
9740 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9741 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9742 * breakpoint.h (get_number, get_number_or_range): Move to
9743 cli-utils.h.
9744 * breakpoint.c: Include cli-utils.h.
9745 (get_number_trailer, get_number, get_number_or_range)
9746 (ep_skip_leading_whitespace): Move to cli-utils.c.
9747 (create_breakpoint_sal, find_condition_and_thread)
9748 (decode_static_tracepoint_spec, watch_command_1)
9749 (watch_maybe_just_location, ep_parse_optional_if_clause)
9750 (catch_fork_command_1, catch_exec_command_1)
9751 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9752 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9753 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9754 (HFILES_NO_SRCDIR): Add cli-utils.h.
9755 (cli-utils.o): New target.
9756
9757 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9758
9759 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9760 before calling discard_all_inferiors.
9761
9762 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9763
9764 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9765 (struct builtin_opencl_type): Remove.
9766 (builtin_opencl_type): Change return type to "struct type **".
9767 (lookup_opencl_vector_type): Update caller.
9768 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9769 (build_opencl_types): Install plain array of "struct type *"
9770 instead of "struct builtin_opencl_type".
9771
9772 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9773 Ulrich Weigand <uweigand@de.ibm.com>
9774
9775 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9776 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9777 (struct arm_linux_hwbp_cap): New type.
9778 (arm_linux_get_hwbp_cap): New function.
9779 (arm_linux_get_hw_breakpoint_count): Likewise.
9780 (arm_linux_get_hw_watchpoint_count): Likewise.
9781 (arm_linux_can_use_hw_breakpoint): Likewise.
9782 (arm_hwbp_type): New type.
9783 (arm_hwbp_control_t): Likewise.
9784 (struct arm_linux_hw_breakpoint): Likewise.
9785 (struct arm_linux_thread_points): Likewise.
9786 (arm_threads): New global variable.
9787 (arm_linux_find_breakpoints_by_tid): New function.
9788 (arm_hwbp_control_initialize): Likewise.
9789 (arm_hwbp_control_is_enabled): Likewise.
9790 (arm_hwbp_control_disable): Likewise.
9791 (arm_linux_hw_breakpoint_initialize): Likewise.
9792 (arm_linux_get_hwbp_type): Likewise.
9793 (arm_linux_hw_watchpoint_initialize): Likewise.
9794 (arm_linux_hw_breakpoint_equal): Likewise.
9795 (arm_linux_insert_hw_breakpoint1): Likewise.
9796 (arm_linux_remove_hw_breakpoint1): Likewise.
9797 (arm_linux_insert_hw_breakpoint): Likewise.
9798 (arm_linux_remove_hw_breakpoint): Likewise.
9799 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9800 (arm_linux_insert_watchpoint): Likewise.
9801 (arm_linux_remove_watchpoint): Likewise.
9802 (arm_linux_stopped_data_address): Likewise.
9803 (arm_linux_stopped_by_watchpoint): Likewise.
9804 (arm_linux_watchpoint_addr_within_range): Likewise.
9805 (arm_linux_new_thread): Likewise.
9806 (arm_linux_thread_exit): Likewise.
9807 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9808 related target callbacks. Register arm_linux_new_thread and
9809 arm_linux_thread_exit.
9810 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9811 * arm-tdep.c (arm_pc_is_thumb): Make global.
9812 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9813
9814 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9815
9816 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9817 per-frame locations while within a function epilogue.
9818
9819 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9820
9821 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9822 to GNU coding standards.
9823
9824 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9825
9826 Allow use of mingw native on Windows 95 OS.
9827 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9828 (ser_windows_close): Only call CancelIo if function exists.
9829 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9830 to check for existence of CancelIo function in kernel32 DLL.
9831
9832 2011-02-21 Hui Zhu <teawater@gmail.com>
9833
9834 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9835 * ax-gdb.c (gen_printf_expr_callback): New function.
9836 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9837 * ax-general.c (ax_memcpy): New function.
9838 (ax_print): Handle "printf".
9839 (ax_reqs): Ditto.
9840 * ax.h (ax_memcpy): Forward declare.
9841 * common/ax.def (invalid2): Removed.
9842 (printf): New entry.
9843 * printcmd.c (printcmd.h): New include.
9844 (string_printf): New function.
9845 (ui_printf): Removed.
9846 (printf_command): Remove static. Call string_printf.
9847 (eval_command): Call string_printf.
9848 * printcmd.h: New file.
9849 * tracepoint.c (validate_actionline,
9850 encode_actions_1): handle printf_command.
9851
9852 2011-02-19 Michael Snyder <msnyder@vmware.com>
9853
9854 * reverse.c (delete_one_bookmark): Argument is now bookmark
9855 id rather than pointer to bookmark struct.
9856 (delete_bookmark_command): Use get_number_or_range.
9857 (goto_bookmark_command): Parse with get_number instead of strtoul.
9858 (bookmark_1): New function. Print info for one bookmark.
9859 (bookmarks_info): Use get_number_or_range and bookmark_1.
9860
9861 2011-02-18 Michael Snyder <msnyder@vmware.com>
9862
9863 * thread.c (info_threads_command): Re-implement using
9864 get_number_or_range.
9865 (thread_apply_command): Ditto.
9866
9867 2011-02-18 Tom Tromey <tromey@redhat.com>
9868
9869 * common/ax.def: New file.
9870 * ax.h (enum agent_op): Use ax.def.
9871 * ax-general.c (aop_map): Use ax.def.
9872
9873 2011-02-18 Tom Tromey <tromey@redhat.com>
9874
9875 * ax-general.c (aop_map): Add pick and rot.
9876 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9877 <DW_OP_rot>: Implement.
9878 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9879 (ax_pick): Declare.
9880 * ax-general.c (ax_pick): New function.
9881
9882 2011-02-18 Tom Tromey <tromey@redhat.com>
9883
9884 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9885
9886 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9887 Tom Tromey <tromey@redhat.com>
9888
9889 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9890 make_symbol_overload_list_block with NULL BLOCK.
9891 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9892
9893 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9894
9895 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9896 * breakpoint.h (get_number_or_range): Declare.
9897 * printcmd.c (ALL_DISPLAYS): Declare.
9898 (delete_display): Reimplement taking a display pointer.
9899 (undisplay_command): Accept a range of displays to delete, using
9900 get_number_or_range.
9901
9902 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9903
9904 * c-valprint.c (c_val_print): Add embedded_offset to address
9905 for arrays of unspecified length.
9906 * p-valprint.c (pascal_val_print): Likewise.
9907
9908 2011-02-18 Yao Qi <yao@codesourcery.com>
9909
9910 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9911 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9912 (thumb_process_displaced_insn): New.
9913 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9914 call to arm_process_displaced_insn.
9915 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9916
9917 2011-02-17 Tom Tromey <tromey@redhat.com>
9918
9919 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9920 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9921 compile_dwarf_to_ax. No longer static. Call
9922 dwarf2_compile_cfa_to_ax.
9923 (locexpr_tracepoint_var_ref): Update.
9924 (loclist_tracepoint_var_ref): Update.
9925 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9926 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9927 argument; add 'gdbarch' and 'pc'.
9928 (dwarf2_compile_cfa_to_ax): New function.
9929 (dwarf2_frame_cache): Update.
9930
9931 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9932
9933 * ada-lang.c (ada_type_of_array): Fix the size of the array
9934 in the case of an unconstrained packed array.
9935
9936 2011-02-17 Yao Qi <yao@codesourcery.com>
9937
9938 * common/Makefile.in: Add more targets for make.
9939
9940 2011-02-16 Tom Tromey <tromey@redhat.com>
9941
9942 * dwarf2loc.c (unimplemented): Fix typo.
9943
9944 2011-02-16 Tom Tromey <tromey@redhat.com>
9945
9946 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9947 (compile_dwarf_to_ax) <default>: Use unimplemented.
9948 <DW_OP_deref>: Update.
9949 (disassemble_dwarf_expression): Update.
9950 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9951 (decode_locdesc): Update.
9952 * dwarf2expr.h (dwarf_stack_op_name): Update.
9953
9954 2011-02-16 Tom Tromey <tromey@redhat.com>
9955
9956 * ax.h (struct aop_map) <name>: Now const.
9957
9958 2011-02-16 Tom Tromey <tromey@redhat.com>
9959
9960 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9961 than axs_rvalue.
9962
9963 2011-02-16 Yao Qi <yao@codesourcery.com>
9964
9965 * infrun.c (get_displaced_step_closure_by_addr): New.
9966 * inferior.h: Declare it.
9967 * arm-tdep.c: (arm_pc_is_thumb): Call
9968 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9969 returns non-NULL.
9970
9971 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9972 Jan Kratochvil <jan.kratochvil@redhat.com>
9973
9974 gdb/
9975 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9976
9977 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9978 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 * value.c (value_contents_copy_raw): Extend describing comment.
9981 Assert that the destination contents we're overwriting are wholly
9982 available.
9983 (value_contents_copy): Extend describing comment.
9984
9985 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9986 Jan Kratochvil <jan.kratochvil@redhat.com>
9987
9988 * value.c (value_available_contents_eq): Remove redundant local
9989 variables. Fix available contents comparision.
9990 * value.h (value_available_contents_eq): Extend describing
9991 comment.
9992
9993 2011-02-16 Yao Qi <yao@codesourcery.com>
9994
9995 * thread.c (info_threads_command): Add missing i18n markup and remove
9996 trailing newline.
9997
9998 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9999
10000 * breakpoint.c (longjmp_names): New variable.
10001 (struct breakpoint_objfile_data): New type.
10002 (breakpoint_objfile_key): New variable.
10003 (msym_not_found): New variable.
10004 (msym_not_found_p): New predicate.
10005 (get_breakpoint_objfile_data): New function.
10006 (create_overlay_event_breakpoint): Check per-objfile cache for
10007 symbols first.
10008 (create_longjmp_master_breakpoint): Likewise.
10009 (create_std_terminate_master_breakpoint): Likewise.
10010 (create_exception_master_breakpoint): Likewise.
10011 (_initialize_breakpoint): Register per-objfile data key.
10012
10013 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10014
10015 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10016 parameter value.
10017 (create_longjmp_master_breakpoint): Loop over longjmp names.
10018 (create_std_terminate_master_breakpoint): Const-propagate parameter
10019 value.
10020 (update_breakpoints_after_exec): Adjust.
10021 (breakpoint_re_set): Adjust.
10022
10023 2011-02-15 Michael Snyder <msnyder@vmware.com>
10024
10025 * thread.c (info_threads_command): Process arg as thread id,
10026 or list of thread ids.
10027 (thread_find_command): New command.
10028 (_initialize_thread): Document argument for info threads.
10029 Document 'thread find' command.
10030 * NEWS: Document new command "thread find".
10031
10032 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10035 * aclocal.m4: Regenerated with aclocal-1.11.1.
10036 * common/configure: Regenerate with autoconf-2.64.
10037
10038 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10039
10040 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10041 bool data type to a size of one byte.
10042
10043 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10044 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 * target.c (memory_xfer_live_readonly_partial): Document where to
10047 look for interface description.
10048
10049 2011-02-15 Yao Qi <yao@codesourcery.com>
10050
10051 PR tdep/12352
10052 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10053 order to store PC value on stack instead of text section.
10054
10055 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10056
10057 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10058 the EFP register set size.
10059 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10060 data from the VMX register.
10061 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10062 and write data from/to the VMX register.
10063
10064 2011-02-14 Michael Snyder <msnyder@vmware.com>
10065
10066 * command.h (enum command_class): New class 'no_set_class', for
10067 "show" commands without a corresponding "set" command.
10068 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10069 * copying.c (_initialize_copying): Ditto for "show copying" and
10070 "show warranty".
10071 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10072 "show version".
10073 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10074 which there is no corresponding "set" command (eg. "show copying").
10075
10076 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10077 Jan Kratochvil <jan.kratochvil@redhat.com>
10078
10079 * exec.c (section_table_available_memory): Change `len' parameter
10080 type to ULONGEST.
10081 * exec.h (section_table_available_memory): Ditto.
10082 * value.h (read_value_memory): Rename the `offset' parameter to
10083 `embedded_offset'.
10084
10085 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10086 Jan Kratochvil <jan.kratochvil@redhat.com>
10087
10088 * memrange.c (compare_mem_ranges): Mention sort order in
10089 describing comment.
10090 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10091 * tracepoint.c (traceframe_available_memory): Extend comment to
10092 mention what happens to RESULT when the target does not support
10093 the query.
10094
10095 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10096 Jan Kratochvil <jan.kratochvil@redhat.com>
10097
10098 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10099 range.
10100
10101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10102
10103 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10104 No longer handle NULL values.
10105
10106 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10107
10108 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10109 * value.c: Include "exceptions.h".
10110 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10111 generic error.
10112 * cp-abi.c: Include gdb_assert.h.
10113 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10114 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10115 errors.
10116 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10117 parameters. No longer returns -1 on error.
10118 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10119 `val' parameters.
10120 * cp-valprint.c: Include exceptions.h.
10121 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10122 the baseclass_offset. Handle unavailable base classes. Use
10123 val_print_invalid_address.
10124 * p-valprint.c: Include exceptions.h.
10125 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10126 when fetching the baseclass_offset. No longer expect
10127 baseclass_offset returning -1. Handle unavailable base classes.
10128 Use val_print_invalid_address.
10129 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10130 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10131 `embedded_offset' and `val' parameters. Adjust.
10132 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10133 parameter, and change its type to gdb_byte pointer. Add
10134 `embedded_offset' and `val' parameters. Adjust. No longer expect
10135 baseclass_offset returning -1.
10136 (value_dynamic_cast): Use value_contents_for_printing rather than
10137 value_contents. Adjust.
10138 (search_struct_field): No longer expect baseclass_offset returning
10139 -1.
10140 (search_struct_method): If reading memory from the target is
10141 necessary, wrap it in a new value to pass to baseclass_offset. No
10142 longer expect baseclass_offset returning -1.
10143 (find_method_list): No longer expect baseclass_offset returning
10144 -1. Use value_contents_for_printing rather than value_contents.
10145 * valprint.c (val_print_invalid_address): New function.
10146 * valprint.h (val_print_invalid_address): Declare.
10147 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10148 and `val' parameters. No longer expect baseclass_offset returning
10149 -1. Adjust.
10150 * gnu-v2-abi.c: Include "exceptions.h".
10151 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10152 parameters. Handle unavailable memory. Recurse through
10153 gnuv2_baseclass_offset directly, rather than through
10154 baseclass_offset. No longer returns -1 on not found, instead
10155 throw an error.
10156 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10157 `val' parameters. Adjust.
10158
10159 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10160
10161 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10162 almost but not quite adjacent.
10163
10164 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10165
10166 * value.h (value_entirely_available): Declare.
10167 * value.c (value_entirely_available): New function.
10168 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10169 real type if the pointer is unavailable.
10170
10171 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10172
10173 * valops.c (value_repeat): Use read_value_memory instead of
10174 read_memory.
10175
10176 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10177
10178 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10179 * value.c (value_contents_copy_raw, value_contents_copy): New
10180 functions.
10181 (value_primitive_field): Use value_contents_copy_raw instead of
10182 memcpy.
10183 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10184 memcpy.
10185 (value_array, value_slice): Ditto.
10186 * valarith.c (value_subscripted_rvalue): Use
10187 value_contents_copy_raw instead of memcpy.
10188
10189 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10190
10191 <unavailable> references.
10192
10193 * valops.c (get_value_at): Use value_from_contents_and_address,
10194 avoiding read_memory.
10195
10196 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10197
10198 * c-valprint.c (c_val_print): Print a string with unavailable
10199 contents as an array.
10200
10201 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10202
10203 * value.h (unpack_bits_as_long): Delete declaration.
10204 (unpack_value_bits_as_long): Declare.
10205 (unpack_value_field_as_long): Declare.
10206 (value_field_bitfield): Declare.
10207 * value.c (unpack_bits_as_long): Rename to...
10208 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10209 value parameters. Return the extracted result in a new output
10210 parameter. If the value contents are unavailable, return false,
10211 otherwise return true.
10212 (unpack_value_bits_as_long): New.
10213 (unpack_field_as_long): Rename to...
10214 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10215 Add embedded_offset and value parameters. Return the extracted
10216 result in a new output parameter. If the value contents are
10217 unavailable, return false, otherwise return true.
10218 (unpack_value_field_as_long): New.
10219 (unpack_field_as_long_1): New.
10220 (unpack_field_as_long): Reimplement as wrapper around
10221 unpack_value_field_as_long_1.
10222 (value_field_bitfield): New function.
10223 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10224 unpack_value_bits_as_long. Mark the value as unavailable, if it
10225 is unavailable.
10226 * jv-valprint.c (java_print_value_fields): Use
10227 value_field_bitfield.
10228 * p-valprint.c (pascal_object_print_value_fields): Use
10229 value_field_bitfield.
10230 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10231
10232 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10233
10234 * value.c (get_internalvar_integer): Also return the int value of
10235 TYPE_CODE_INT INTERNALVAR_VALUE values.
10236 (set_internalvar): Don't special case TYPE_CODE_INT.
10237
10238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10239
10240 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10241 INTERNALVAR_POINTER.
10242 <pointer>: Delete.
10243 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10244 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10245 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10246
10247 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10248
10249 * value.h (value_available_contents_eq): Declare.
10250 * value.c (find_first_range_overlap): New function.
10251 (value_available_contents_eq): New function.
10252 * valprint.c (val_print_array_elements): Use
10253 value_available_contents_eq.
10254 * ada-valprint.c (val_print_packed_array_elements): Use
10255 value_available_contents_eq.
10256 * jv-valprint.c (java_value_print): Use
10257 value_available_contents_eq.
10258
10259 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10260
10261 * target.c (target_read_live_memory): New function.
10262 (memory_xfer_live_readonly_partial): New.
10263 (memory_xfer_partial): If reading from a traceframe, fallback to
10264 reading unavailable read-only memory from read-only regions of
10265 live target memory.
10266 * tracepoint.c (disconnect_tracing): Adjust.
10267 (set_current_traceframe): New, factored out from
10268 set_traceframe_number.
10269 (set_traceframe_number): Reimplement to only change the traceframe
10270 number on the GDB side.
10271 (do_restore_current_traceframe_cleanup): Adjust.
10272 (make_cleanup_restore_traceframe_number): New.
10273 (cur_traceframe_number): New global.
10274 (tfile_open): Set cur_traceframe_number to no traceframe.
10275 (set_tfile_traceframe): New function.
10276 (tfile_trace_find): If looking up a traceframe using any method
10277 other than by number, make sure the current tfile traceframe
10278 matches gdb's current traceframe. Update the current tfile
10279 traceframe if the lookup succeeded.
10280 (tfile_fetch_registers, tfile_xfer_partial)
10281 (tfile_get_trace_state_variable_value): Make sure the remote
10282 traceframe matches gdb's current traceframe.
10283 * remote.c (remote_traceframe_number): New global.
10284 (remote_open_1): Set it to -1.
10285 (set_remote_traceframe): New function.
10286 (remote_fetch_registers, remote_store_registers)
10287 (remote_xfer_memory, remote_xfer_partial)
10288 (remote_get_trace_state_variable_value): Make sure the remote
10289 traceframe matches gdb's current traceframe.
10290 (remote_trace_find): If looking up a traceframe using any method
10291 other than by number, make sure the current remote traceframe
10292 matches gdb's current traceframe. Update the current remote
10293 traceframe if the lookup succeeded.
10294 * infrun.c (fetch_inferior_event): Adjust.
10295 * tracepoint.h (set_current_traceframe): Declare.
10296 (get_traceframe_number, set_traceframe_number): Add describing
10297 comments.
10298
10299 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10300
10301 Mark pieces of values as unavailable if the corresponding memory
10302 is unavailable.
10303
10304 * valops.c: Include tracepoint.h.
10305 (value_fetch_lazy): Use read_value_memory.
10306 (read_value_memory): New.
10307 * value.h (read_value_memory): Declare.
10308 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10309 * exec.c (section_table_available_memory): New function.
10310 * exec.h (section_table_available_memory): Declare.
10311
10312 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10313
10314 * Makefile.in (SFILES): Add memrange.c.
10315 (HFILES_NO_SRCDIR): Add memrange.h.
10316 (COMMON_OBS): Add memrange.o.
10317 * memrange.c: New file.
10318 * memrange.h: New file.
10319 * tracepoint.c: Include memrange.h.
10320 (struct mem_range): Delete.
10321 (mem_range_s): Delete.
10322 (traceframe_available_memory): New function.
10323 * tracepoint.h (traceframe_available_memory): Declare.
10324
10325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10326
10327 * target.h (struct traceframe_info): Forward declare.
10328 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10329 (struct target_ops) <to_traceframe_info>: New field.
10330 (target_traceframe_info): New.
10331 * target.c (update_current_target): Inherit and default
10332 to_traceframe_info.
10333 * remote.c (PACKET_qXfer_traceframe_info): New.
10334 (remote_protocol_features): Register qXfer:traceframe-info:read.
10335 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10336 (remote_traceframe_info): New.
10337 (init_remote_ops): Install it.
10338 (_initialize_remote): Install "set/show remote traceframe-info"
10339 commands.
10340 * tracepoint.h (parse_traceframe_info): Declare.
10341 * tracepoint.c (struct mem_range): New.
10342 (mem_range_s): New typedef.
10343 (struct traceframe_info): New.
10344 (traceframe_info): New global.
10345 (free_traceframe_info): New function.
10346 (clear_traceframe_info): New function.
10347 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10348 info.
10349 (build_traceframe_info): New function.
10350 (tfile_traceframe_info): New function.
10351 (init_tfile_ops): Install tfile_traceframe_info.
10352 (traceframe_info_start_memory, free_result): New functions.
10353 (memory_attributes, traceframe_info_elements): New globals.
10354 (parse_traceframe_info, get_traceframe_info): New functions.
10355 * features/traceframe-info.dtd: New file.
10356 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10357
10358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10359
10360 Base support for <unavailable> value contents.
10361
10362 * value.h (value_bytes_available): Declare.
10363 (mark_value_bytes_unavailable): Declare.
10364 * value.c (struct range): New struct.
10365 (range_s): New typedef.
10366 (ranges_overlap): New function.
10367 (range_lessthan): New function.
10368 (ranges_contain_p): New function.
10369 (struct value) <unavailable>: New field.
10370 (value_bytes_available): New function.
10371 (mark_value_bytes_unavailable): New function.
10372 (require_not_optimized_out): Constify parameter.
10373 (require_available): New function.
10374 (value_contents_all, value_contents): Require all bytes be
10375 available.
10376 (value_free): Free `unavailable'.
10377 (value_copy): Copy `unavailable'.
10378 * valprint.h (val_print_unavailable): Declare.
10379 * valprint.c (valprint_check_validity): Rename `offset' parameter
10380 to `embedded_offset'. If printing a scalar, check whether the
10381 value chunk is available.
10382 (val_print_unavailable): New.
10383 (val_print_scalar_formatted): Check whether the value is
10384 available.
10385 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10386 pretty-printing unavailable values.
10387
10388 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10389
10390 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10391 * c-typeprint.c (c_type_print_args): Update the function comment. New
10392 variable param_type, initialize it. Remove const/volatile qualifiers
10393 for language_cplus and !show_artificial. Use param_type.
10394
10395 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10396
10397 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10398 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10399 * symtab.h (struct symtab) <next>: Comment extension.
10400
10401 2011-02-12 Yao Qi <yao@codesourcery.com>
10402
10403 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10404
10405 2011-02-11 Yao Qi <yao@codesourcery.com>
10406
10407 * common/Makefile.in: Add copyright header.
10408
10409 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10410
10411 * infrun.c (proceed): Move switching out and in of tfind mode from
10412 here ...
10413 (fetch_inferior_event): ... to here.
10414
10415 2011-02-11 Yao Qi <yao@codesourcery.com>
10416
10417 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10418 libcommon.a.
10419 * configure.ac: Add common to sub dir.
10420 * configure: Regenerate.
10421
10422 2011-02-11 Yao Qi <yao@codesourcery.com>
10423
10424 Build libcommon.a.
10425
10426 * common/Makefile.in: New.
10427 * common/configure.ac: New.
10428 * common/aclocal.m4: New.
10429 * common/configure: Generate.
10430
10431 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10432
10433 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10434 side of the parenthesis.
10435
10436 Merge from GCC:
10437 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10438 * vec.h (VEC_block_remove): Fix comment.
10439
10440 2011-02-08 Michael Snyder <msnyder@vmware.com>
10441
10442 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10443
10444 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10445
10446 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10447 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10448 psubd and paddd.
10449
10450 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10451
10452 PR 12361.
10453 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10454 phsubsw.
10455 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10456 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10457
10458 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10459
10460 * dwarf2read.c (read_subroutine_type): Set special calling
10461 convention flag for functions compiled by IBM XL C for OpenCL.
10462 * ppc-sysv-tdep.c: Include "dwarf2.h"
10463 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10464 calling convention.
10465 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10466 IBM OpenCL vector types calling convention.
10467 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10468 (ppc_sysv_abi_broken_return_value): Likewise.
10469 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10470 types calling convention.
10471 (ppc64_sysv_abi_return_value): Likewise.
10472 * spu-tdep.c: Include "dwarf2.h"
10473 (spu_return_value): Implement IBM OpenCL vector types calling
10474 convention.
10475
10476 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10477
10478 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10479 correct ABI for AltiVec vector arguments.
10480
10481 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10482
10483 * valprint.c (val_print): Extend comment.
10484 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10485 interface explanation to val_print.
10486 (ada_val_print_array): Adjust comment to current interface.
10487 (print_field_values): Adjust comment to current interface.
10488 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10489 explanation to val_print.
10490 * f-valprint.c (f_val_print): Ditto.
10491 * jv-valprint.c (java_val_print): Ditto.
10492 * m2-valprint.c (m2_val_print): Ditto.
10493 * p-valprint.c (pascal_val_print): Ditto.
10494
10495 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10496
10497 * breakpoint.c (parse_breakpoint_sals): Fix description.
10498
10499 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10500 Oguz Kayral <oguzkayral@gmail.com>
10501
10502 * python/py-inferior.c (python_on_normal_stop): New function.
10503 (python_on_resume): New function.
10504 (python_inferior_exit): New function.
10505 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10506 inferior_exit observers.
10507 * python/py-evtregistry.c: New file.
10508 * python/py-threadevent.c : New file.
10509 * python/py-event.c: New file.
10510 * python/py-evts.c: New file.
10511 * python/py-continueevent.c: New file.
10512 * python/py-bpevent.c: New file.
10513 * python/py-signalevent.c: New file.
10514 * python/py-exetiedevent.c: New file.
10515 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10516 Move struct breakpoint_object from here...
10517 * python/python-internal.h: ... to here.
10518 * python/py-event.h: New file.
10519 * python/py-events.h: New file.
10520 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10521 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10522 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10523 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10524 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10525 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10526 Add build rules for all the above.
10527
10528 2011-02-04 Tom Tromey <tromey@redhat.com>
10529
10530 * dwarf2read.c (dwarf2_section_empty_p): New function.
10531 (dwarf2_read_section): Use dwarf2_section_empty_p.
10532 (dwarf2_section_size): New function.
10533 (dwarf2_get_section_info): Unconditionally read section.
10534 (dwarf2_read_index): Use dwarf2_section_empty_p.
10535 (partial_read_comp_unit_head): Use dwarf2_section_size.
10536 (dwarf2_symbol_mark_computed): Likewise.
10537
10538 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10539
10540 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10541
10542 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10543
10544 * mips-linux-tdep.c: Include xml-syscall.h.
10545 (mips_linux_get_syscall_number): New function.
10546 (mips_linux_init_abi): Add calls to
10547 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10548 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10549 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10550 * syscalls/mips-n32-linux.xml: New file.
10551 * syscalls/mips-n64-linux.xml: New file.
10552 * syscalls/mips-o32-linux.xml: New file.
10553
10554 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10555
10556 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10557 Complain about inverted range entries.
10558 (dwarf2_record_block_ranges): Likewise.
10559
10560 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10561
10562 Fix some typos.
10563 * breakpoint.c (update_watchpoint): Fix name of the
10564 update_global_location_list function.
10565 (print_one_breakpoint): Fix typo.
10566 (_initialize_breakpoint): Remove extra space in hbreak help
10567 string.
10568 * breakpoint.h (struct bp_location) <length>: Fix field
10569 description.
10570
10571 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10572
10573 * regcache.c (registers_changed_ptid): Don't explictly always
10574 clear `current_regcache'. Only clear current_thread_ptid and
10575 current_thread_arch when PTID matches. Only reinit the frame
10576 cache if PTID matches the current inferior_ptid. Move alloca(0)
10577 call to ...
10578 (registers_changed): ... here.
10579
10580 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10581
10582 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10583 starts with __stack_chk_guard as stack guard symbol.
10584
10585 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10586
10587 * disasm.c (compare_lines): Handle the end of sequence markers
10588 within the line table to better support disassembling over
10589 compilation unit boundaries.
10590
10591 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10592
10593 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10594 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10595 implementation even if no symbols are available.
10596 (thumb_analyze_prologue): Update call to skip_prologue_function.
10597 (arm_analyze_prologue): Likewise.
10598
10599 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10600
10601 * arm-tdep.c: Include "observer.h".
10602 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10603 (arm_exidx_data_key): New static variable.
10604 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10605 (struct arm_exidx_data): Likewise.
10606 (arm_exidx_data_free): New function.
10607 (arm_compare_exidx_entries): Likewise.
10608 (arm_obj_section_from_vma): Likewise.
10609 (arm_exidx_new_objfile): Likewise.
10610 (arm_find_exidx_entry): Likewise.
10611 (arm_exidx_fill_cache): Likewise.
10612 (arm_exidx_unwind_sniffer): Likewise.
10613 (arm_exidx_unwind): New global variable.
10614 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10615 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10616 observer. Register arm_exidx_data_key as objfile data.
10617
10618 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10619
10620 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10621 due to accessing uninitialized variable. Fix indentation.
10622
10623 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10624
10625 * c-valprint.c (c_value_print): When doing virtual base pointer
10626 adjustment, create a new value with adjusted contents rather than
10627 changing the contents of the value being printed (and getting it
10628 wrong).
10629
10630 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10631
10632 * xml-support.c (xml_find_attribute): New.
10633 (xinclude_start_include): Use it.
10634 * xml-support.h (xml_find_attribute): Declare.
10635 * memory-map.c (memory_map_start_memory)
10636 (memory_map_start_property): Use xml_find_attribute.
10637 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10638 xml_find_attribute.
10639 * remote.c (start_thread): Use xml_find_attribute.
10640 * solib-target.c (library_list_start_segment)
10641 (library_list_start_section, library_list_start_library)
10642 (library_list_start_list): Use xml_find_attribute.
10643 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10644 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10645 (tdesc_start_field): Use xml_find_attribute.
10646
10647 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10648
10649 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10650 (BUILD_OCL_VTYPES): Update.
10651
10652 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10653
10654 * configure.ac: Work around non-GNU sed limitation when computing
10655 python version number.
10656 * configure: Regenerate.
10657
10658 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 Fix debug printing of TYPE_INSTANCE.
10661 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10662 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10663
10664 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10667 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10668 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10669 * ada-operator.inc: Rename the file to ...
10670 * ada-operator.def: ... here, wrap all the entries by macro OP.
10671 * expprint.c (op_name_standard): Remove all the entries. Include
10672 "std-operator.def" instead.
10673 * expression.h (enum exp_opcode): Include "std-operator.def" and
10674 "ada-operator.def". Move all the entries ...
10675 * std-operator.def: ... here, wrap all the entries by macro OP.
10676
10677 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10678
10679 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10680 * breakpoint.c (remove_jit_event_breakpoints): New function.
10681 * jit.c (jit_descriptor_addr): Delete.
10682 (registering_code): Delete.
10683 (clear_int): Delete.
10684 (jit_inferior_data): New variable.
10685 (struct jit_inferior_data): New type.
10686 (get_jit_inferior_data): New function.
10687 (jit_inferior_data_cleanup): New function.
10688 (jit_read_descriptor): Adjust.
10689 (jit_register_code): Adjust.
10690 (jit_breakpoint_re_set_internal): New function; move code here ...
10691 (jit_inferior_init): ... from here.
10692 (jit_breakpoint_re_set): Adjust.
10693 (jit_reset_inferior_data_and_breakpoints): New function.
10694 (jit_inferior_created_observer): Adjust.
10695 (jit_inferior_exit_hook): Adjust.
10696 (jit_executable_changed_observer): New function.
10697 (jit_event_handler): Adjust.
10698 (_initialize_jit): Adjust.
10699
10700 2011-01-31 Michael Snyder <msnyder@vmware.com>
10701
10702 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10703 line.
10704
10705 2011-01-31 Tom Tromey <tromey@redhat.com>
10706
10707 PR python/12216:
10708 * python/python.c (execute_gdb_command): Call
10709 prevent_dont_repeat.
10710 * top.c (suppress_dont_repeat): New global.
10711 (dont_repeat): Use it.
10712 (prevent_dont_repeat): New function.
10713 * command.h (prevent_dont_repeat): Declare.
10714
10715 2011-01-31 Tom Tromey <tromey@redhat.com>
10716
10717 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10718 * python/py-breakpoint.c (bppy_set_silent): Use
10719 breakpoint_set_silent.
10720 (bppy_set_thread): Use breakpoint_set_thread.
10721 (bppy_set_task): Use breakpoint_set_task.
10722 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10723 (breakpoint_set_task): Declare.
10724 (make_breakpoint_silent): Remove.
10725 * breakpoint.c (breakpoint_set_silent): New function.
10726 (breakpoint_set_thread): Likewise.
10727 (breakpoint_set_task): Likewise.
10728 (make_breakpoint_silent): Remove.
10729
10730 2011-01-31 Tom Tromey <tromey@redhat.com>
10731
10732 * breakpoint.h (user_breakpoint_p): Declare.
10733 * breakpoint.c (user_breakpoint_p): New function.
10734 (breakpoint_1): Use it.
10735 (save_breakpoints): Likewise.
10736
10737 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10738
10739 * configure.ac: Add handling of Python distribution on Windows.
10740 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10741 sysconfig variables are not defined, then do not use them.
10742 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10743 instead. On Windows, return all paths using forward-slashes
10744 rather than backslashes.
10745
10746 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10747
10748 * configure.ac: Remove fallback behavior for building
10749 against Python. Remove tweaking of Python include path.
10750 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10751 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10752 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10753 Always restore CPPFLAGS and LIBS after linking test.
10754 * configure: Regenerated.
10755 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10756 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10757 * python/python-internal.h: Adjust includes of Python .h files.
10758
10759 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10760
10761 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10762 in error message.
10763
10764 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10765
10766 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10767 value test.
10768
10769 2011-01-31 Yao Qi <yao@codesourcery.com>
10770
10771 * arm-linux-nat.c: Update calls to regcache_register_status
10772 instead of regcache_valid_p.
10773 * aix-thread.c: Likewise.
10774 * i386gnu-nat.c: Likewise.
10775
10776 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10777
10778 Fix crash.
10779 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10780 touching TYPE_FIELD_ARTIFICIAL.
10781
10782 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10783
10784 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10785 Committers.
10786
10787 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10788
10789 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10790 selected, don't try iterating over the traceframe's blocks.
10791 (tfile_has_stack): If there's no traceframe selected, then there's
10792 no stack.
10793 (tfile_has_registers): If there's no traceframe selected, then
10794 there's no registers.
10795
10796 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10797
10798 * target.c (memory_xfer_partial): No need to restore shadows if we
10799 haven't read anything.
10800
10801 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10802
10803 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10804 and val_print_scalar_formatted.
10805
10806 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10807
10808 * tracepoint.c (tfile_read): New.
10809 (tfile_open): Use it.
10810 (tfile_get_traceframe_address): Use it.
10811 (tfile_trace_find): Use it.
10812 (walk_blocks_callback_func): New typedef.
10813 (match_blocktype): New function.
10814 (traceframe_walk_blocks): New function.
10815 (traceframe_find_block_type): New function.
10816 (tfile_fetch_registers, tfile_xfer_partial)
10817 (tfile_get_trace_state_variable_value): Use
10818 traceframe_find_block_type and tfile_read.
10819
10820 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10821
10822 * remote-mips.c: Add internationalization mark ups. Remove
10823 trailing \n from already marked up strings.
10824
10825 2011-01-26 Tom Tromey <tromey@redhat.com>
10826
10827 * python/py-prettyprint.c (print_string_repr): Clear
10828 'addressprint' option when calling val_print_string.
10829 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10830 option when calling val_print_string.
10831
10832 2011-01-26 Tom Tromey <tromey@redhat.com>
10833
10834 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10835 GDB_PY_LL_ARG.
10836 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10837 macros.
10838 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10839 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10840 (gdb_py_long_as_ulongest): New defines.
10841 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10842 (gdb_py_int_as_long): Declare.
10843 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10844 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10845 (valpy_long): Add comment.
10846 * python/py-utils.c (get_addr_from_python): Use
10847 gdb_py_long_as_ulongest. Handle overflow properly.
10848 (gdb_py_object_from_longest): New function.
10849 (gdb_py_object_from_ulongest): Likewise.
10850 (gdb_py_int_as_long): Likewise.
10851 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10852 * python/py-symtab.c (salpy_get_pc): Use
10853 gdb_py_long_from_ulongest.
10854 (salpy_get_line): Use PyInt_FromLong.
10855 * python/py-param.c (set_parameter_value): Use
10856 gdb_py_int_as_long.
10857 * python/py-lazy-string.c (stpy_get_address): Use
10858 gdb_py_long_from_ulongest.
10859 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10860 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10861 * python/py-breakpoint.c (bppy_set_thread): Use
10862 gdb_py_int_as_long.
10863 (bppy_set_task): Likewise.
10864 (bppy_set_ignore_count): Likewise.
10865 (bppy_set_hit_count): Likewise.
10866 * python/py-block.c (blpy_get_start): Use
10867 gdb_py_object_from_ulongest.
10868 (blpy_get_end): Likewise.
10869 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10870
10871 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10872
10873 PR/symtab 11766:
10874 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10875 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10876 equality test for objfile, initialize addr_low if needed.
10877
10878 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10879
10880 * tui/tui-regs.c (tui_register_format): Remove dead code.
10881
10882 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10883
10884 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10885 instead of print_scalar_formatted.
10886 (print_scalar_formatted): Don't handle 's' format strings here,
10887 and add an assertion that we never see such format here.
10888 * valprint.h (val_print_scalar_formatted): Declare.
10889 * valprint.c (val_print_scalar_formatted): New.
10890 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10891 instead of print_scalar_formatted.
10892 * jv-valprint.c (java_val_print): Ditto.
10893 * p-valprint.c (pascal_val_print): Ditto.
10894 * ada-valprint.c (ada_val_print_1): Ditto.
10895 * f-valprint.c (f_val_print): Ditto.
10896 * infcmd.c (registers_info): Ditto.
10897 * m2-valprint.c (m2_val_print): Ditto.
10898
10899 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10900
10901 * m2-valprint.c (print_unbounded_array): Pass
10902 value_contents_for_printing rather than value_contents, to
10903 m2_print_array_contents. Also pass in the value.
10904
10905 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10906
10907 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10908 (save_gdb_index_command): Switch to .gdb_index version 4.
10909
10910 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10911
10912 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10913 than frame_register, and always pass a valid value to val_print.
10914
10915 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10916
10917 Centralize printing "<optimized out>".
10918
10919 * valprint.h (val_print_optimized_out): Declare.
10920 * cp-valprint.c (cp_print_value_fields): Use
10921 val_print_optimized_out.
10922 * jv-valprint.c (java_print_value_fields): Ditto.
10923 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10924 * printcmd.c (print_formatted): Ditto.
10925 * valprint.c (valprint_check_validity): Ditto.
10926 (value_check_printable): Ditto.
10927 (val_print_optimized_out): New.
10928
10929 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10930
10931 * infcmd.c (default_print_registers_info): Allocate values so to
10932 never pass a NULL value to val_print.
10933
10934 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10935
10936 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10937 boolean. Make sure to always pass a value that matches the
10938 contents buffer to callees. Preserve `address' for following
10939 iterations.
10940 * value.c (value_contents_for_printing_const): New.
10941 (value_address): Constify value argument.
10942 * value.h (value_contents_for_printing_const): Declare.
10943 (value_address): Constify value argument.
10944
10945 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10946
10947 * regcache.c (struct regcache_descr): Rename
10948 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10949 and sizeof_cooked_register_valid_p to
10950 sizeof_cooked_register_status.
10951 (init_regcache_descr): Adjust.
10952 (struct regcache): Rename register_valid_p field to
10953 register_status.
10954 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10955 (do_cooked_read): Adjust.
10956 (regcache_valid_p): Rename to ...
10957 (regcache_register_status): ... this. Adjust.
10958 (regcache_invalidate): Adjust.
10959 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10960 Adjust.
10961 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10962 as unavailable, not valid.
10963 (regcache_dump): Adjust.
10964 * regcache.h (enum register_status): New.
10965 (regcache_register_status): Declare.
10966 (regcache_invalidate): Delete declaration.
10967 * corelow.c (get_core_registers): Adjust.
10968 * tracepoint.c (tfile_fetch_registers): Adjust.
10969 * trad-frame.c (REG_VALUE): Rename to ...
10970 (TF_REG_VALUE): ... this.
10971 (REG_UNKNOWN): Rename to ...
10972 (TF_REG_UNKNOWN): ... this.
10973 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10974 * mi/mi-main.c (register_changed_p): Adjust.
10975
10976 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10977
10978 * regcache.c (struct regcache_descr): Remove outdated comment.
10979 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10980 overallocate hack.
10981 (regcache_xmalloc): Rename to ...
10982 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10983 Allocate the regcache type accordingly.
10984 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10985 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10986 cooked registers, not raw.
10987 (regcache_dup_no_passthrough): Delete.
10988 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10989 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10990 mention obsolete write_register_bytes.
10991 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10992
10993 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10994
10995 Stop remote_read_bytes from handling partial reads itself.
10996
10997 * remote-fileio.c: Include target.h.
10998 (remote_fileio_write_bytes): Delete.
10999 (remote_fileio_func_open, remote_fileio_func_write)
11000 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11001 target_read_memory.
11002 (remote_fileio_func_stat): Use target_read_memory and
11003 target_write_memory.
11004 (remote_fileio_func_gettimeofday): Use target_write_memory.
11005 (remote_fileio_func_system): Use target_read_memory.
11006 * remote.c (remote_write_bytes): Make it static.
11007 (remote_read_bytes): Don't handle partial reads here.
11008 * remote.h (remote_read_bytes): Delete declaration.
11009
11010 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11011
11012 Simplify XML parsing a bit.
11013
11014 * xml-support.h (gdb_xml_parse_quick): Declare.
11015 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11016 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11017 parameter.
11018 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11019 gdb_xml_create_parser_and_cleanup_1.
11020 (gdb_xml_parse_quick): New.
11021 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11022 * osdata.c (osdata_parse): Ditto.
11023 * remote.c (remote_threads_info): Ditto.
11024 * solib-target.c (solib_target_parse_libraries): Ditto.
11025 * xml-syscall.c (syscall_parse_xml): Ditto.
11026 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11027
11028 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11029
11030 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11031 with remote-mips.o added to gdb_target_obs.
11032 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11033
11034 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11035
11036 * ada-valprint.c (val_print_packed_array_elements): Pass the
11037 correct struct value to val_print.
11038 (ada_val_print_1): Ditto.
11039
11040 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11041
11042 Don't lose embedded_offset in printing routines throughout.
11043
11044 * valprint.h (val_print_array_elements): Change prototype.
11045 * valprint.c (val_print_array_elements): Add `embedded_offset'
11046 parameter, and adjust to pass it down to val_print, while passing
11047 `valaddr' or `address' unmodified. Take embedded_offset into
11048 account when checking repetitions.
11049 * c-valprint.c (c_val_print): Pass embedded_offset to
11050 val_print_array_elements instead of adjusting `valaddr' and
11051 `address'.
11052 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11053 embedded_offset to val_print_array_elements instead of adjusting
11054 `valaddr'.
11055 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11056 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11057 val_print_array_elements and pascal_object_print_value_fields
11058 instead of adjusting `valaddr'.
11059 (pascal_object_print_value_fields): Add `offset' parameter, and
11060 adjust to use it.
11061 (pascal_object_print_value): Add `offset' parameter, and adjust to
11062 use it.
11063 (pascal_object_print_static_field): Use
11064 value_contents_for_printing/value_embedded_offset, rather than
11065 value_contents.
11066 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11067 parameter, and adjust to use it. Use
11068 value_contents_for_printing/value_embedded_offset, rather than
11069 value_contents.
11070 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11071 (ada_val_print_array): Add `offset' parameter, and adjust to use
11072 it.
11073 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11074 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11075 Instead work with offsets. Use
11076 value_contents_for_printing/value_embedded_offset, rather than
11077 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11078 and use value_from_pointer to extract a target pointer, rather
11079 than value_from_longest.
11080 (print_variant_part): Add `offset' parameter. Replace
11081 `outer_valaddr' parameter by a new `outer_offset' parameter.
11082 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11083 (ada_value_print): Use
11084 value_contents_for_printing/value_embedded_offset, rather than
11085 value_contents.
11086 (print_record): Add `offset' parameter, and adjust to pass it
11087 down.
11088 (print_field_values): Add `offset' parameter. Replace
11089 `outer_valaddr' parameter by a new `outer_offset' parameter.
11090 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11091 Use value_contents_for_printing/value_embedded_offset, rather than
11092 value_contents.
11093 * d-valprint.c (dynamic_array_type): Use
11094 value_contents_for_printing/value_embedded_offset, rather than
11095 value_contents.
11096 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11097 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11098 (java_print_value_fields): Take `offset' into account. Don't
11099 re-adjust `valaddr'. Instead pass down adjusted offsets.
11100 (java_val_print): Take `embedded_offset' into account. Pass it to
11101 java_print_value_fields.
11102 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11103 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11104 down adjusted offsets.
11105 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11106 (f_val_print): Take `embedded_offset' into account.
11107
11108 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11109
11110 * inflow.c: Include "gdbcmd.h".
11111 (interactive_mode): New static global, moved here from top.c.
11112 (show_interactive_mode): New function, moved here from top.c.
11113 use gdb_has_a_terminal instead of input_from_terminal_p to
11114 determine the current mode.
11115 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11116 setting.
11117 (_initialize_inflow): Add the "set/show interactive-mode"
11118 commands. Moved here from top.c, after having adjusted slightly
11119 the help text.
11120 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11121 to inflow.c.
11122 (input_from_terminal_p): Remove handling of "interactive-mode"
11123 setting, moved to infow.c.
11124 (init_main): Remove creation of the "set/show interactive-mode"
11125 commands, moved to inflow.c.
11126
11127 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11128
11129 * NEWS: Add entry for native ia64-hpux support.
11130
11131 2011-01-19 Tom Tromey <tromey@redhat.com>
11132
11133 PR mi/8618:
11134 * thread.c (free_thread): Free 'name'.
11135 (print_thread_info): Emit thread name. Change CLI output.
11136 (thread_name_command): New function.
11137 (do_captured_thread_select): Emit newline.
11138 (_initialize_thread): Register 'thread name' command.
11139 * target.h (struct target_ops) <to_thread_name>: New field.
11140 (target_thread_name): New macro.
11141 * target.c (update_current_target): Handle to_thread_name.
11142 * python/py-infthread.c (thpy_get_name): New function.
11143 (thpy_set_name): Likewise.
11144 (thread_object_getset): Add "name".
11145 * linux-nat.c (linux_nat_thread_name): New function.
11146 (linux_nat_add_target): Set to_thread_name.
11147 * gdbthread.h (struct thread_info) <name>: New field.
11148
11149 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11150
11151 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11152 (ada_val_print_1): Likewise.
11153
11154 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11155
11156 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11157 upper limit address is not greater than the function end address
11158 when the upper limit could not be computed using the debugging
11159 info.
11160
11161 2011-01-17 Tom Tromey <tromey@redhat.com>
11162
11163 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11164 get_regcomp_error.
11165 * utils.c: Include gdb_regex.h.
11166 (do_regfree_cleanup): New function.
11167 (make_regfree_cleanup): Likewise.
11168 (get_regcomp_error): Likewise.
11169 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11170
11171 2011-01-17 Tom Tromey <tromey@redhat.com>
11172
11173 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11174 re_compile_fastmap.
11175
11176 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11177
11178 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11179 for internal variables.
11180 (last_was_structop): New static variable.
11181 (COMPLETE): New token.
11182 (field_exp): New rule to group all '.' suffix handling.
11183 Add mark_struct_expression calls when approriate to be able
11184 to correctly find fields for completion.
11185 (yylex): Adapt to handle field completion and set INTVAR when
11186 required.
11187
11188 2011-01-14 Yao Qi <yao@codesourcery.com>
11189
11190 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11191 save_reggroup, restore_reggroup and all_reggroup.
11192
11193 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11194
11195 * ada-valprint. (ada_printchar): Use the correct type length
11196 in call to ada_emit_char.
11197 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11198
11199 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11200
11201 * solib-som.h (hpux_major_release): Declare variable here.
11202 * solib-som.c: Remove <sys/utsname.h> header.
11203 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11204 (hpux_major_release): Make global, change default value to
11205 DEFAULT_HPUX_MAJOR_RELEASE.
11206 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11207 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11208 Add "solib-som.h" header.
11209 (set_hpux_major_release): New function.
11210 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11211
11212 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11213
11214 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11215
11216 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11217
11218 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11219 new-line at end of warning message.
11220 (ia64_hpux_store_register): Remove trailing new-line at end of
11221 error message.
11222 * ia64-hpux-tdep.c: Rephrase comment.
11223 * solib-ia64-hpux.c (struct dld_info): Change type of field
11224 dld_flags from "long long" to ULONGEST.
11225
11226 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11227
11228 * target.h (deprecated_child_ops): Delete declaration.
11229 * target.c (deprecated_child_ops): Delete definition.
11230
11231 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11232
11233 * Makefile.in (hpux-thread.o): Delete rule.
11234 * configure.ac: Don't check for HPUX DCE threads support.
11235 * configure, config.in: Regenerate.
11236 * hppa-hpux-nat.c (child_suppress_run): Delete.
11237 (hppa_hpux_child_can_run): Delete.
11238 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11239 * hpux-thread.c: Delete.
11240
11241 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11242
11243 * hpux-thread.c (hpux_pid_to_str): Delete.
11244
11245 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11246
11247 * ada-valprint.c (ada_emit_char): Remove strange code.
11248 Check that c is <= UCHAR_MAX before passing it to isascii.
11249 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11250
11251 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11252
11253 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11254 to the case where instream is stdin.
11255
11256 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11257
11258 * ia64-tdep.h (struct regcache): Forward declare.
11259 (struct ia64_infcall_ops): New struct type.
11260 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11261 and "infcall_ops".
11262 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11263 Renames ia64_find_global_pointer.
11264 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11265 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11266 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11267 methods.
11268 (ia64_infcall_ops): New static global constant.
11269 (ia64_gdbarch_init): Set tdep->infcall_ops.
11270 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11271 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11272 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11273 (ia64_hpux_dummy_code): New static global constant.
11274 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11275 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11276 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11277 New function.
11278 (ia64_hpux_infcall_ops): New static global constant.
11279 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11280 for inferior function calls to work properly on ia64-hpux.
11281
11282 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11283
11284 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11285 * ia64-tdep.h (struct frame_info): forward declaration.
11286 (struct gdbarch_tdep): Add field size_of_register_frame.
11287 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11288 to determine the size of the register frame.
11289 (ia64_size_of_register_frame): New function.
11290 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11291 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11292 (IA64_HPUX_UREG_REASON): New macro.
11293 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11294 New functions.
11295 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11296 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11297 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11298 objects.
11299
11300 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11301
11302 Add support for ia64-hpux.
11303 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11304 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11305
11306 * configure.host: Add handling for ia64-hpux hosts. Add associated
11307 floatformats.
11308 * configure.tgt: Add handling for ia64-hpux targets.
11309 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11310 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11311 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11312
11313 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11314
11315 [ttrace] Compute thread list immediately after attach.
11316 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11317 New subprogram.
11318 (inf_ttrace_attach): Use it.
11319
11320 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11321
11322 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11323 if we could not determine the frame's function address. Instead,
11324 use the frame's PC, and then continue.
11325
11326 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11327
11328 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11329 not already defined.
11330
11331 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11332
11333 * ia64-tdep.c (ia64_struct_type_p): New function.
11334 (ia64_extract_return_value): Handle integral values that are
11335 less than 8 bytes long.
11336 (ia64_push_dummy_call): Likewise.
11337
11338 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11339
11340 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11341 floatformat_ia64_ext.
11342 (floatformat_ia64_ext_big): New static const.
11343 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11344
11345 2011-01-12 Tom Tromey <tromey@redhat.com>
11346
11347 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11348 messages.
11349 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11350 (mi_cmd_thread_list_ids): Likewise.
11351 (mi_cmd_data_list_changed_registers): Likewise.
11352 (mi_cmd_data_list_register_values): Likewise.
11353 (mi_cmd_data_write_register_values): Likewise.
11354 (mi_cmd_data_evaluate_expression): Likewise.
11355 (mi_cmd_data_read_memory): Likewise.
11356 (mi_cmd_data_read_memory_bytes): Likewise.
11357 (mi_cmd_data_write_memory): Likewise.
11358 (mi_cmd_enable_timings): Likewise.
11359 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11360 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11361 (mi_cmd_var_delete): Likewise.
11362 (mi_cmd_var_set_format): Likewise.
11363 (mi_cmd_var_show_format): Likewise.
11364 (mi_cmd_var_info_num_children): Likewise.
11365 (mi_cmd_var_list_children): Likewise.
11366 (mi_cmd_var_info_type): Likewise.
11367 (mi_cmd_var_info_expression): Likewise.
11368 (mi_cmd_var_show_attributes): Likewise.
11369 (mi_cmd_var_assign): Likewise.
11370 (mi_cmd_var_update): Likewise.
11371 (mi_cmd_enable_pretty_printing): Likewise.
11372 (mi_cmd_var_set_update_range): Likewise.
11373 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11374 messages.
11375 (mi_cmd_target_file_put): Likewise.
11376 (mi_cmd_target_file_delete): Likewise.
11377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11378 messages.
11379 (mi_cmd_stack_info_depth): Likewise.
11380 (mi_cmd_stack_list_locals): Likewise.
11381 (mi_cmd_stack_list_args): Likewise.
11382 (mi_cmd_stack_select_frame): Likewise.
11383 (mi_cmd_stack_select_frame): Likewise.
11384 (mi_cmd_stack_info_frame): Likewise.
11385 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11386 messages.
11387 (mi_cmd_file_list_exec_source_files): Likewise.
11388 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11389 (mi_cmd_env_cd): Likewise.
11390 (mi_cmd_env_path): Likewise.
11391 (mi_cmd_env_dir): Likewise.
11392 (mi_cmd_inferior_tty_show): Likewise.
11393 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11394 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11395 (mi_cmd_break_watch): Likewise.
11396
11397 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11398
11399 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11400 (ppc_linux_insert_hw_breakpoint): Likewise.
11401 (ppc_linux_remove_hw_breakpoint): Likewise.
11402 (ppc_linux_insert_watchpoint): Likewise.
11403
11404 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11405 Jan Kratochvil <jan.kratochvil@redhat.com>
11406
11407 PR fortran/11104 and DWARF unbound arrays detection.
11408 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11409 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11410 unspecified upper bound.
11411 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11412 variables array_size_array, tmp_type and offset_item. New variable
11413 array. Remove call to f77_get_upperbound. New variables array_type
11414 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11415 the final call to deprecated_set_value_type.
11416
11417 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11418
11419 Make value allocations more lazy.
11420 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11421 instead of allocate_value and set_value_lazy when possible.
11422 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11423 instead of allocate_value and set_value_lazy.
11424 * findvar.c (value_of_register_lazy): Likewise.
11425 (read_var_value): Remove V preallocation, call just check_typedef in
11426 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11427 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11428 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11429 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11430 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11431 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11432 the end, remove set_value_lazy there.
11433 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11434 instead of allocate_value and set_value_lazy when possible.
11435 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11436 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11437 of allocate_value and set_value_lazy.
11438 (value_from_contents_and_address): Use allocate_value_lazy instead of
11439 allocate_value and set_value_lazy when possible.
11440
11441 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11442
11443 * disasm.c (dump_insns): Support dumping opcodes for MI.
11444 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11445 dumping of instruction opcodes.
11446
11447 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11448
11449 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11450 appropiately.
11451
11452 2011-01-11 Tom Tromey <tromey@redhat.com>
11453
11454 * thread.c (do_captured_thread_select): Emit newline before
11455 printing frame.
11456
11457 2011-01-11 Michael Snyder <msnyder@vmware.com>
11458
11459 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11460 * score-tdep.c: Ditto.
11461 * score-tdep.h: Ditto.
11462 * ser-base.c: Ditto.
11463 * ser-go32.c: Ditto.
11464 * serial.c: Ditto.
11465 * serial.h: Ditto.
11466 * ser-mingw.c: Ditto.
11467 * ser-pipe.c: Ditto.
11468 * ser-tcp.c: Ditto.
11469 * ser-unix.c: Ditto.
11470 * sh64-tdep.c: Ditto.
11471 * shnbsd-nat.c: Ditto.
11472 * sh-tdep.c: Ditto.
11473 * sh-tdep.h: Ditto.
11474 * solib.c: Ditto.
11475 * solib-darwin.c: Ditto.
11476 * solib-frv.c: Ditto.
11477 * solib.h: Ditto.
11478 * solib-irix.c: Ditto.
11479 * solib-osf.c: Ditto.
11480 * solib-pa64.c: Ditto.
11481 * solib-som.c: Ditto.
11482 * solib-spu.c: Ditto.
11483 * solib-sunos.c: Ditto.
11484 * solib-svr4.c: Ditto.
11485 * solist.h: Ditto.
11486 * sol-thread.c: Ditto.
11487 * somread.c: Ditto.
11488 * source.c: Ditto.
11489 * source.h: Ditto.
11490 * sparc64-linux-tdep.c: Ditto.
11491 * sparc64-tdep.c: Ditto.
11492 * sparc-linux-nat.c: Ditto.
11493 * sparc-linux-tdep.c: Ditto.
11494 * sparc-sol2-nat.c: Ditto.
11495 * sparc-sol2-tdep.c: Ditto.
11496 * sparc-tdep.c: Ditto.
11497 * sparc-tdep.h: Ditto.
11498 * spu-tdep.c: Ditto.
11499 * stabsread.c: Ditto.
11500 * stabsread.h: Ditto.
11501 * stack.c: Ditto.
11502 * symfile.c: Ditto.
11503 * symfile.h: Ditto.
11504 * symmisc.c: Ditto.
11505 * symtab.c: Ditto.
11506 * symtab.h: Ditto.
11507 * target.c: Ditto.
11508 * target-descriptions.c: Ditto.
11509 * target-descriptions.h: Ditto.
11510 * target.h: Ditto.
11511 * target-memory.c: Ditto.
11512 * terminal.h: Ditto.
11513 * thread.c: Ditto.
11514 * top.c: Ditto.
11515 * tracepoint.c: Ditto.
11516 * tracepoint.h: Ditto.
11517 * trad-frame.h: Ditto.
11518 * typeprint.c: Ditto.
11519
11520 2011-01-11 Michael Snyder <msnyder@vmware.com>
11521
11522 * ui-file.c: Comment cleanup, mostly periods and spaces.
11523 * ui-file.h: Ditto.
11524 * ui-out.c: Ditto.
11525 * ui-out.h: Ditto.
11526 * utils.c: Ditto.
11527 * v850-tdep.c: Ditto.
11528 * valarith.c: Ditto.
11529 * valops.c: Ditto.
11530 * valprint.c: Ditto.
11531 * valprint.h: Ditto.
11532 * value.c: Ditto.
11533 * value.h: Ditto.
11534 * varobj.c: Ditto.
11535 * varobj.h: Ditto.
11536 * vax-tdep.c: Ditto.
11537 * vec.c: Ditto.
11538 * vec.h: Ditto.
11539 * version.h: Ditto.
11540 * windows-nat.c: Ditto.
11541 * windows-tdep.c: Ditto.
11542 * xcoffread.c: Ditto.
11543 * xcoffsolib.c: Ditto.
11544 * xml-support.c: Ditto.
11545 * xstormy16-tdep.c: Ditto.
11546 * xtensa-tdep.c: Ditto.
11547 * xtensa-tdep.h: Ditto.
11548
11549 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11550
11551 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11552 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11553
11554 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11555 Thiago Jung Bauermann <bauerman@br.ibm.com>
11556
11557 Implement support for PowerPC BookE ranged watchpoints.
11558 * breakpoint.h
11559 (struct breakpoint_ops) <resources_needed>: New method.
11560 Initialize to NULL in all existing breakpoint_ops instances.
11561 (struct breakpoint) <exact>: New field.
11562 (target_exact_watchpoints): Declare external global.
11563 * breakpoint.c (target_exact_watchpoints): New global flag.
11564 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11565 b->enable_state to bp_enabled before calling
11566 hw_watchpoint_used_count.
11567 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11568 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11569 if available.
11570 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11571 if the watchpoint is exact.
11572 (resources_needed_watchpoint): New function.
11573 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11574 (watch_command_1): Set b->exact if the user asked for an exact
11575 watchpoint and one can be set.
11576 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11577 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11578 the user asks for an exact watchpoint and one can be set. Return
11579 number of needed debug registers to watch the expression.
11580 * gdbtypes.c (is_scalar_type): New function, based on
11581 valprint.c:scalar_type_p.
11582 (is_scalar_type_recursive): New function.
11583 * gdbtypes.h (is_scalar_type_recursive): Declare.
11584 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11585 handle regions when ranged watchpoints are available.
11586 (create_watchpoint_request): New function.
11587 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11588 create_watchpoint_request.
11589 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11590 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11591 `set powerpc' and `show powerpc' commands.
11592 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11593 Mention documentation comment in the target macro.
11594 (target_region_ok_for_hw_watchpoint): Document return value.
11595
11596 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11597
11598 * breakpoint.c (update_watchpoint): Decide on using a software or
11599 hardware watchpoint after the bp_locations are created.
11600
11601 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11602
11603 Convert hardware watchpoints to use breakpoint_ops.
11604 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11605 <insert_location>: ... this. Return int instead of void.
11606 Accept pointer to struct bp_location instead of pointer to
11607 struct breakpoint. Adapt all implementations.
11608 (breakpoint_ops) <remove>: Rename to...
11609 <remove_location>: ... this. Accept pointer to struct bp_location
11610 instead of pointer to struct breakpoint. Adapt all implementations.
11611 * breakpoint.c (insert_catchpoint): Delete function.
11612 (insert_bp_location): Call the watchpoint or catchpoint's
11613 breakpoint_ops.insert method.
11614 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11615 breakpoint_ops.remove method.
11616 (insert_watchpoint, remove_watchpoint): New functions.
11617 (watchpoint_breakpoint_ops): New structure.
11618 (watch_command_1): Initialize the OPS field.
11619 * inf-child.c (inf_child_insert_fork_catchpoint)
11620 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11621 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11622 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11623 Delete functions.
11624 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11625 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11626 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11627 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11628 * target.c (update_current_target): Change default implementation of
11629 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11630 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11631 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11632 to_set_syscall_catchpoint to return_one.
11633 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11634 (debug_to_insert_exec_catchpoint): Report return value.
11635 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11636 (to_insert_exec_catchpoint): Change declaration to return int instead
11637 of void.
11638
11639 2011-01-11 Michael Snyder <msnyder@vmware.com>
11640
11641 * arm-tdep.c: Internationalization.
11642 * c-lang.c: Ditto.
11643 * charset.c: Ditto.
11644 * fork-child.c: Ditto.
11645 * nto-procfs.c: Ditto.
11646 * ppc-sysv-tdep.c: Ditto.
11647 * procfs.c: Ditto.
11648 * remote-mips.c: Ditto.
11649 * remote.c: Ditto.
11650 * rs6000-nat.c: Ditto.
11651 * rs6000-tdep.c: Ditto.
11652 * target.c: Ditto.
11653 * valops.c: Ditto.
11654 * value.c: Ditto.
11655 * xml-support.c: Ditto.
11656 * mi/mi-cmd-break.c: Ditto.
11657 * mi/mi-cmd-var.c: Ditto.
11658 * mi/mi-interp.c: Ditto.
11659 * mi/mi-main.c: Ditto.
11660
11661 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11662
11663 * remote-sim.c (gdbsim_store_register): Update API to
11664 sim_store_register to check more error conditions.
11665
11666 2011-01-10 Michael Snyder <msnyder@vmware.com>
11667
11668 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11669 * nto-tdep.c: Ditto.
11670 * nto-tdep.h: Ditto.
11671 * objc-exp.y: Ditto.
11672 * objc-lang.c: Ditto.
11673 * objfiles.c: Ditto.
11674 * objfiles.h: Ditto.
11675 * observer.c: Ditto.
11676 * opencl-lang.c: Ditto.
11677 * osabi.c: Ditto.
11678 * parse.c: Ditto.
11679 * parser-defs.h: Ditto.
11680 * p-exp.y: Ditto.
11681 * p-lang.c: Ditto.
11682 * posix-hdep.c: Ditto.
11683 * ppcbug-rom.c: Ditto.
11684 * ppc-linux-nat.c: Ditto.
11685 * ppc-linux-tdep.c: Ditto.
11686 * ppc-linux-tdep.h: Ditto.
11687 * ppcnbsd-tdep.c: Ditto.
11688 * ppcobsd-tdep.c: Ditto.
11689 * ppcobsd-tdep.h: Ditto.
11690 * ppc-sysv-tdep.c: Ditto.
11691 * ppc-tdep.h: Ditto.
11692 * printcmd.c: Ditto.
11693 * proc-abi.c: Ditto.
11694 * proc-flags.c: Ditto.
11695 * procfs.c: Ditto.
11696 * proc-utils.h: Ditto.
11697 * progspace.h: Ditto.
11698 * prologue-value.c: Ditto.
11699 * prologue-value.h: Ditto.
11700 * psympriv.h: Ditto.
11701 * psymtab.c: Ditto.
11702 * p-typeprint.c: Ditto.
11703 * p-valprint.c: Ditto.
11704 * ravenscar-sparc-thread.c: Ditto.
11705 * ravenscar-thread.c: Ditto.
11706 * ravenscar-thread.h: Ditto.
11707 * record.c: Ditto.
11708 * regcache.c: Ditto.
11709 * regcache.h: Ditto.
11710 * remote.c: Ditto.
11711 * remote-fileio.c: Ditto.
11712 * remote-fileio.h: Ditto.
11713 * remote.h: Ditto.
11714 * remote-m32r-sdi.c: Ditto.
11715 * remote-mips.c: Ditto.
11716 * remote-sim.c: Ditto.
11717 * rs6000-aix-tdep.c: Ditto.
11718 * rs6000-nat.c: Ditto.
11719 * rs6000-tdep.c: Ditto.
11720
11721 2011-01-10 Michael Snyder <msnyder@vmware.com>
11722
11723 * charset.c (validate): Internationalization.
11724 * coffread.c (read_one_sym): Ditto.
11725 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11726 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11727 * inflow.c (new_tty): Ditto.
11728 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11729 * m32c-tdep.c (m32c_return_value): Ditto.
11730 * mep-tdep.c (mep_store_return_value): Ditto.
11731 * score-tdep.c (score7_fetch_insn): Ditto.
11732 * ser-mingw.c (pipe_windows_open): Ditto.
11733 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11734 * spu-tdep.c (spu_register_type): Ditto.
11735 * tracepoint.c (trace_find_command): Ditto.
11736 * valarith.c (value_pos): Ditto.
11737
11738 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11739
11740 * ada-valprint.c (printstr): Minor comment reformatting.
11741
11742 2011-01-08 Michael Snyder <msnyder@vmware.com>
11743
11744 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11745 markup.
11746
11747 2011-01-08 Michael Snyder <msnyder@vmware.com>
11748
11749 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11750 * hppa-hpux-tdep.c: Ditto.
11751 * hppa-linux-nat.c: Ditto.
11752 * hppa-linux-tdep.c: Ditto.
11753 * hppanbsd-tdep.c: Ditto.
11754 * hppa-tdep.c: Ditto.
11755 * hppa-tdep.h: Ditto.
11756 * hpux-thread.c: Ditto.
11757 * i386-cygwin-tdep.c: Ditto.
11758 * i386-darwin-nat.c: Ditto.
11759 * i386gnu-nat.c: Ditto.
11760 * i386-linux-nat.c: Ditto.
11761 * i386-linux-tdep.c: Ditto.
11762 * i386-nat.c: Ditto.
11763 * i386-nat.h: Ditto.
11764 * i386nbsd-tdep.c: Ditto.
11765 * i386-sol2-nat.c: Ditto.
11766 * i386-stub.c: Ditto.
11767 * i386-tdep.c: Ditto.
11768 * i386-tdep.h: Ditto.
11769 * i387-tdep.c: Ditto.
11770 * ia64-linux-nat.c: Ditto.
11771 * ia64-linux-tdep.c: Ditto.
11772 * ia64-tdep.c: Ditto.
11773 * infcall.c: Ditto.
11774 * infcall.h: Ditto.
11775 * infcmd.c: Ditto.
11776 * inferior.c: Ditto.
11777 * inferior.h: Ditto.
11778 * infloop.c: Ditto.
11779 * inflow.c: Ditto.
11780 * infrun.c: Ditto.
11781 * interps.c: Ditto.
11782 * interps.h: Ditto.
11783 * iq2000-tdep.c: Ditto.
11784 * irix5-nat.c: Ditto.
11785 * jit.c: Ditto.
11786 * jit.h: Ditto.
11787 * jv-exp.y: Ditto.
11788 * jv-lang.c: Ditto.
11789 * jv-lang.h: Ditto.
11790 * jv-typeprint.c: Ditto.
11791 * jv-valprint.c: Ditto.
11792 * language.c: Ditto.
11793 * language.h: Ditto.
11794 * linespec.c: Ditto.
11795 * linux-fork.c: Ditto.
11796 * linux-nat.c: Ditto.
11797 * linux-thread-db.c: Ditto.
11798 * lm32-tdep.c: Ditto.
11799
11800 2011-01-08 Michael Snyder <msnyder@vmware.com>
11801
11802 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11803 * m2-lang.c: Ditto.
11804 * m2-typeprint.c: Ditto.
11805 * m2-valprint.c: Ditto.
11806 * m32c-tdep.c: Ditto.
11807 * m32r-linux-nat.c: Ditto.
11808 * m32r-rom.c: Ditto.
11809 * m32r-tdep.c: Ditto.
11810 * m32r-tdep.h: Ditto.
11811 * m68hc11-tdep.c: Ditto.
11812 * m58klinux-nat.c: Ditto.
11813 * m68k-tdep.c: Ditto.
11814 * m88k-tdep.c: Ditto.
11815 * m88k-tdep.h: Ditto.
11816 * machoread.c: Ditto.
11817 * macrocmd.c: Ditto.
11818 * macroexp.c: Ditto.
11819 * macrotab.c: Ditto.
11820 * main.c: Ditto.
11821 * maint.c: Ditto.
11822 * mdebugread.c: Ditto.
11823 * mdebugread.h: Ditto.
11824 * memattr.c: Ditto.
11825 * memattr.h: Ditto.
11826 * memory-map.h: Ditto.
11827 * mep-tdep.c: Ditto.
11828 * microblaze-rom.c: Ditto.
11829 * microblaze-tdep.c: Ditto.
11830 * minsyms.c: Ditto.
11831 * mips-irix-tdep.c: Ditto.
11832 * mips-linux-nat.c: Ditto.
11833 * mips-linux-tdep.c: Ditto.
11834 * mips-linux-tdep.h: Ditto.
11835 * mipsnbsd-nat.c: Ditto.
11836 * mipsnbsd-tdep.c: Ditto.
11837 * mipsread.c: Ditto.
11838 * mips-tdep.c: Ditto.
11839 * mips-tdep.h: Ditto.
11840 * mn10300-linux-tdep.c: Ditto.
11841 * mn10300-tdep.c: Ditto.
11842 * mn10300-tdep.h: Ditto.
11843 * monitor.c: Ditto.
11844 * monitor.h: Ditto.
11845 * moxie-tdep.c: Ditto.
11846 * moxie-tdep.h: Ditto.
11847 * mt-tdep.c: Ditto.
11848
11849 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11850
11851 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11852
11853 2011-01-08 Robert Millan <rmh@gnu.org>
11854
11855 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11856
11857 2011-01-07 Michael Snyder <msnyder@vmware.com>
11858
11859 * charset.c (_initialize_charset): Fix typo in string.
11860
11861 2011-01-07 Michael Snyder <msnyder@vmware.com>
11862
11863 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11864 for i18n.
11865 * tui/tui-layout.c (tui_set_layout_for_display_command):
11866 Split line so that operator goes to beginning of line.
11867 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11868 assignment out of if statement.
11869
11870 2011-01-07 Michael Snyder <msnyder@vmware.com>
11871
11872 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11873 * ada-lang.h: Ditto.
11874 * ada-tasks.c: Ditto.
11875 * ada-valprint.c: Ditto.
11876 * aix-threads.c: Ditto.
11877 * alpha-linux-nat.c: Ditto.
11878 * alpha-linux-tdep.c: Ditto.
11879 * alpha-mdebug-tdep.c: Ditto.
11880 * alpha-nat.c: Ditto.
11881 * alpha-osf1-tdep.c: Ditto.
11882 * alpha-tdep.c: Ditto.
11883 * alphabsd-nat.c: Ditto.
11884 * alphabsd-tdep.c: Ditto.
11885 * amd64-darwin-tdep.c: Ditto.
11886 * amd64-linux-nat.c: Ditto.
11887 * amd64-linux-tdep.c: Ditto.
11888 * amd64-sol2-tdep.c: Ditto.
11889 * amd64-tdep.c: Ditto.
11890 * amd64-fbsd-tdep.c: Ditto.
11891 * amd64-nbsd-tdep.c: Ditto.
11892 * amd64-obsd-tdep.c: Ditto.
11893 * amd64-linux-nat.c: Ditto.
11894 * amd64-linux-tdep.c: Ditto.
11895 * arm-tdep.c: Ditto.
11896 * arm-tdep.h: Ditto.
11897 * armnbsd-nat.c: Ditto.
11898 * avr-tdep.c: Ditto.
11899 * bfin-tdep.c: Ditto.
11900 * bsd-kvm.c: Ditto.
11901 * c-typeprintc: Ditto.
11902 * c-valprint.c: Ditto.
11903 * coff-pe-read.h: Ditto.
11904 * coffreead.c: Ditto.
11905 * cris-tdep.c: Ditto.
11906 * d-lang.c: Ditto.
11907 * darwin-nat-info.c: Ditto.
11908 * darwin-nat.c: Ditto.
11909 * dbug-rom.c: Ditto.
11910 * dbxread.c: Ditto.
11911 * dcache.c: Ditto.
11912 * dcache.h: Ditto.
11913 * dec-thread.c: Ditto.
11914 * defs.h: Ditto.
11915 * demangle.c: Ditto.
11916 * dicos-tdep.c: Ditto.
11917 * dictionary.c: Ditto.
11918 * dictionary.h: Ditto.
11919 * dink32-rom.c: Ditto.
11920 * disasm.c: Ditto.
11921 * doublest.c: Ditto.
11922 * dsrec.c: Ditto.
11923 * dummy-frame.c: Ditto.
11924 * dwarf2-frame.c: Ditto.
11925 * dwarf2expr.c: Ditto.
11926 * dwarf2loc.c: Ditto.
11927 * dwarf2read.c: Ditto.
11928 * elfread.c: Ditto.
11929 * environ.c: Ditto.
11930 * eval.c: Ditto.
11931 * event-top.h: Ditto.
11932 * exceptions.c: Ditto.
11933 * exceptions.h: Ditto.
11934 * exec.c: Ditto.
11935 * expprint.c: Ditto.
11936 * expression.h: Ditto.
11937 * f-exp.y: Ditto.
11938 * f-lang.c: Ditto.
11939 * f-lang.h: Ditto.
11940 * f-typeprint.c: Ditto.
11941 * f-valprint.c: Ditto.
11942 * fbsd-nat.c: Ditto.
11943 * findvar.c: Ditto.
11944 * fork-child.c: Ditto.
11945 * frame.c: Ditto.
11946 * frame.h: Ditto.
11947 * frv-linux-tdep.c: Ditto.
11948 * frv-tdep.c: Ditto.
11949 * gcore.c: Ditto.
11950 * gdb-stabs.h: Ditto.
11951 * gdb_assert.h: Ditto.
11952 * gdb_string.h: Ditto.
11953 * gdb_thread_db.h: Ditto.
11954 * gdb_wait.h: Ditto.
11955 * gdbarch.sh: Ditto.
11956 * gdbcore.h: Ditto.
11957 * gdbthread.h: Ditto.
11958 * gdbtypes.c: Ditto.
11959 * gdbtypes.h: Ditto.
11960 * gnu-nat.c: Ditto.
11961 * gnu-nat.h: Ditto.
11962 * gnu-v2-abi.c: Ditto.
11963 * gnu-v3-abi.c: Ditto.
11964 * go32-nat.c: Ditto.
11965 * gdbarch.c: Regenerate.
11966 * gdbarch.h: Regenerate.
11967
11968 2011-01-07 Michael Snyder <msnyder@vmware.com>
11969
11970 * ax-gdb.c: Adjust some long output strings.
11971 * breakpoint.c: Ditto.
11972 * charset.c: Ditto.
11973 * cp-abi.c: Ditto.
11974 * infcall.c: Ditto.
11975 * infrun.c: Ditto.
11976 * linux-nat.c: Ditto.
11977 * solib-pa64.c: Ditto.
11978 * solib-som.c: Ditto.
11979
11980 2011-01-06 Tom Tromey <tromey@redhat.com>
11981
11982 PR python/12367:
11983 * NEWS: Add item.
11984 * python/python.c (GdbMethods): Add "newest_frame" method.
11985 * python/python-internal.h (gdbpy_newest_frame): Declare.
11986 * python/py-frame.c (gdbpy_newest_frame): New function.
11987
11988 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11989
11990 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11991 * jit.c (jit_debug): New variable.
11992 (show_jit_debug): New function.
11993 (struct target_buffer): Use ULONGEST.
11994 (bfd_open_from_target_memory): Likewise.
11995 (jit_register_code, jit_inferior_init): Add debug output.
11996 (_initialize_jit): Register "debug jit" command.
11997
11998 2011-01-06 Tom Tromey <tromey@redhat.com>
11999
12000 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12001 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12002 and ARCH_FRAME.
12003
12004 2011-01-06 Tom Tromey <tromey@redhat.com>
12005
12006 * python/py-frame.c (frapy_block): Use get_frame_block.
12007
12008 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12009
12010 Do not stop on SIGPRIO signals by default
12011 * infrun.c (_initialize_infrun): Unset signal_stop and
12012 signal_print for TARGET_SIGNAL_PRIO.
12013
12014 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12015
12016 * ada-tasks.c: Fix style violation in comment.
12017
12018 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12019
12020 * linespec.c (decode_compound, find_method): Remove trailing \n
12021 at end of error string.
12022 * solib-irix.c (irix_current_sos): Likewise.
12023 * varobj.c (uninstall_variable): Likewise.
12024
12025 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12026
12027 * copyright.py: New script.
12028 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12029 Launch emacs without exec'ing. Call copyright.py afterwards.
12030
12031 2011-01-05 Michael Snyder <msnyder@vmware.com>
12032
12033 * addrmap.c: Shorten lines of >= 80 columns.
12034 * arch-utils.c: Ditto.
12035 * arch-utils.h: Ditto.
12036 * ax-gdb.c: Ditto.
12037 * ax-general.c: Ditto.
12038 * bcache.c: Ditto.
12039 * blockframe.c: Ditto.
12040 * breakpoint.c: Ditto.
12041 * buildsym.c: Ditto.
12042 * c-lang.c: Ditto.
12043 * c-typeprint.c: Ditto.
12044 * charset.c: Ditto.
12045 * coffread.c: Ditto.
12046 * command.h: Ditto.
12047 * corelow.c: Ditto.
12048 * cp-abi.c: Ditto.
12049 * cp-namespace.c: Ditto.
12050 * cp-support.c: Ditto.
12051 * dbug-rom.c: Ditto.
12052 * dbxread.c: Ditto.
12053 * defs.h: Ditto.
12054 * dfp.c: Ditto.
12055 * dfp.h: Ditto.
12056 * dictionary.c: Ditto.
12057 * disasm.c: Ditto.
12058 * doublest.c: Ditto.
12059 * dwarf2-frame.c: Ditto.
12060 * dwarf2expr.c: Ditto.
12061 * dwarf2loc.c: Ditto.
12062 * dwarf2read.c: Ditto.
12063 * elfread.c: Ditto.
12064 * eval.c: Ditto.
12065 * event-loop.c: Ditto.
12066 * event-loop.h: Ditto.
12067 * exceptions.h: Ditto.
12068 * exec.c: Ditto.
12069 * expprint.c: Ditto.
12070 * expression.h: Ditto.
12071 * f-lang.c: Ditto.
12072 * f-valprint.c: Ditto.
12073 * findcmd.c: Ditto.
12074 * frame-base.c: Ditto.
12075 * frame-unwind.c: Ditto.
12076 * frame-unwind.h: Ditto.
12077 * frame.c: Ditto.
12078 * frame.h: Ditto.
12079 * gcore.c: Ditto.
12080 * gdb-stabs.h: Ditto.
12081 * gdb_assert.h: Ditto.
12082 * gdb_dirent.h: Ditto.
12083 * gdb_obstack.h: Ditto.
12084 * gdbcore.h: Ditto.
12085 * gdbtypes.c: Ditto.
12086 * gdbtypes.h: Ditto.
12087 * inf-ttrace.c: Ditto.
12088 * infcall.c: Ditto.
12089 * infcmd.c: Ditto.
12090 * inflow.c: Ditto.
12091 * infrun.c: Ditto.
12092 * inline-frame.h: Ditto.
12093 * language.c: Ditto.
12094 * language.h: Ditto.
12095 * libunwind-frame.c: Ditto.
12096 * libunwind-frame.h: Ditto.
12097 * linespec.c: Ditto.
12098 * linux-nat.c: Ditto.
12099 * linux-nat.h: Ditto.
12100 * linux-thread-db.c: Ditto.
12101 * machoread.c: Ditto.
12102 * macroexp.c: Ditto.
12103 * macrotab.c: Ditto.
12104 * main.c: Ditto.
12105 * maint.c: Ditto.
12106 * mdebugread.c: Ditto.
12107 * memattr.c: Ditto.
12108 * minsyms.c: Ditto.
12109 * monitor.c: Ditto.
12110 * monitor.h: Ditto.
12111 * objfiles.c: Ditto.
12112 * objfiles.h: Ditto.
12113 * osabi.c: Ditto.
12114 * p-typeprint.c: Ditto.
12115 * p-valprint.c: Ditto.
12116 * parse.c: Ditto.
12117 * printcmd.c: Ditto.
12118 * proc-events.c: Ditto.
12119 * procfs.c: Ditto.
12120 * progspace.c: Ditto.
12121 * progspace.h: Ditto.
12122 * psympriv.h: Ditto.
12123 * psymtab.c: Ditto.
12124 * record.c: Ditto.
12125 * regcache.c: Ditto.
12126 * regcache.h: Ditto.
12127 * remote-fileio.c: Ditto.
12128 * remote.c: Ditto.
12129 * ser-mingw.c: Ditto.
12130 * ser-tcp.c: Ditto.
12131 * ser-unix.c: Ditto.
12132 * serial.c: Ditto.
12133 * serial.h: Ditto.
12134 * solib-frv.c: Ditto.
12135 * solib-irix.c: Ditto.
12136 * solib-osf.c: Ditto.
12137 * solib-pa64.c: Ditto.
12138 * solib-som.c: Ditto.
12139 * solib-sunos.c: Ditto.
12140 * solib-svr4.c: Ditto.
12141 * solib-target.c: Ditto.
12142 * solib.c: Ditto.
12143 * somread.c: Ditto.
12144 * source.c: Ditto.
12145 * stabsread.c: Ditto.
12146 * stabsread.c: Ditto.
12147 * stack.c: Ditto.
12148 * stack.h: Ditto.
12149 * symfile-mem.c: Ditto.
12150 * symfile.c: Ditto.
12151 * symfile.h: Ditto.
12152 * symmisc.c: Ditto.
12153 * symtab.c: Ditto.
12154 * symtab.h: Ditto.
12155 * target-descriptions.c: Ditto.
12156 * target-memory.c: Ditto.
12157 * target.c: Ditto.
12158 * target.h: Ditto.
12159 * terminal.h: Ditto.
12160 * thread.c: Ditto.
12161 * top.c: Ditto.
12162 * tracepoint.c: Ditto.
12163 * tracepoint.h: Ditto.
12164 * ui-file.c: Ditto.
12165 * ui-file.h: Ditto.
12166 * ui-out.h: Ditto.
12167 * user-regs.c: Ditto.
12168 * user-regs.h: Ditto.
12169 * utils.c: Ditto.
12170 * valarith.c: Ditto.
12171 * valops.c: Ditto.
12172 * valprint.c: Ditto.
12173 * valprint.h: Ditto.
12174 * value.c: Ditto.
12175 * varobj.c: Ditto.
12176 * varobj.h: Ditto.
12177 * vec.h: Ditto.
12178 * xcoffread.c: Ditto.
12179 * xcoffsolib.c: Ditto.
12180 * xcoffsolib.h: Ditto.
12181 * xml-syscall.c: Ditto.
12182 * xml-tdesc.c: Ditto.
12183
12184 2011-01-05 Michael Snyder <msnyder@vmware.com>
12185
12186 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12187 * cli/cli-decode.c: Ditto.
12188 * cli/cli-dump.c: Ditto.
12189 * cli/cli-logging.c: Ditto.
12190 * cli/cli-script.c: Ditto.
12191 * cli/cli-setshow.c: Ditto.
12192 * common/signals.c: Ditto.
12193 * mi/mi-cmd-break.c: Ditto.
12194 * mi/mi-cmd-disas.c: Ditto.
12195 * mi/mi-cmd-stack.c: Ditto.
12196 * mi/mi-cmd-var.c: Ditto.
12197 * mi/mi-cmds.c: Ditto.
12198 * mi/mi-common.h: Ditto.
12199 * mi/mi-console.c: Ditto.
12200 * mi/mi-interp.c: Ditto.
12201 * mi/mi-main.c: Ditto.
12202 * osf-share/cma_attr.c: Ditto.
12203 * osf-share/cma_deb_core.h: Ditto.
12204 * osf-share/cma_debug_client.h: Ditto.
12205 * osf-share/cma_handle.h: Ditto.
12206 * osf-share/cma_mutex.h: Ditto.
12207 * osf-share/cma_stack_int.h: Ditto.
12208 * osf-share/cma_tcb_defs.h: Ditto.
12209 * python/py-auto-load.c: Ditto.
12210 * python/py-breakpoint.c: Ditto.
12211 * python/py-cmd.c: Ditto.
12212 * python/py-frame.c: Ditto.
12213 * python/py-objfile.c: Ditto.
12214 * python/py-param.c: Ditto.
12215 * python/py-progspace.c: Ditto.
12216 * python/py-symbol.c: Ditto.
12217 * python/py-value.c: Ditto.
12218 * python/python-internal.h: Ditto.
12219 * python/python.c: Ditto.
12220 * tui/tui-data.c: Ditto.
12221 * tui/tui-disasm.c: Ditto.
12222 * tui/tui-hooks.c: Ditto.
12223 * tui/tui-io.c: Ditto.
12224 * tui/tui-layout.c: Ditto.
12225 * tui/tui-regs.c: Ditto.
12226 * tui/tui-source.c: Ditto.
12227 * tui/tui-stack.c: Ditto.
12228 * tui/tui-win.c: Ditto.
12229 * tui/tui-windata.c: Ditto.
12230 * tui/tui-winsource.c: Ditto.
12231
12232 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12233
12234 * configure.ac, gdb.1: Copyright year update.
12235
12236 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12237
12238 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12239 this_pc_in_block, morestack_msym and morestack_name. Check for
12240 "__morestack" minimal symbol there.
12241
12242 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12243
12244 * symfile.c (find_sym_fns): Add call to dont_repeat.
12245
12246 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12247
12248 Copyright year update in most files (performed by copyright.sh).
12249
12250 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12251
12252 * top.c (print_gdb_version): Update copyright year in version output.
12253
12254 For older changes see ChangeLog-2010.
12255 \f
12256 Local Variables:
12257 mode: change-log
12258 left-margin: 8
12259 fill-column: 74
12260 version-control: never
12261 coding: utf-8
12262 End:
This page took 0.279375 seconds and 4 git commands to generate.