* gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7b50312a
PA
12011-12-14 Pedro Alves <pedro@codesourcery.com>
2
3 PR threads/10729
4
5 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
6 pointer.
7 (linux_nat_prepare_to_resume): New global.
8 (lwp_free): New.
9 (purge_lwp_list): Use it.
10 (add_lwp): Call linux_nat_new_thread even on the first LWP.
11 Adjust to interface change.
12 (delete_lwp): Call lwp_free instead of xfree.
13 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
14 (linux_handle_syscall_trap, linux_handle_extended_wait)
15 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
16 linux_nat_prepare_to_resume before resuming.
17 (linux_stop_lwp): New.
18 (linux_nat_set_new_thread): Adjust.
19 (linux_nat_set_prepare_to_resume): New.
20 * linux-nat.h (struct arch_lwp_info): Forward declare.
21 (struct lwp_info) <arch_private>: New field.
22 (linux_stop_lwp): Declare.
23 (linux_nat_set_new_thread): Adjust.
24 (linux_nat_set_prepare_to_resume): New.
25
26 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
27 (struct i386_debug_reg_state): Move to i386-nat.h.
28 (dr_mirror): Comment.
29 (i386_debug_reg_state): New.
30 (i386_update_inferior_debug_regs): Simplify.
31 (i386_stopped_data_address): Use the debug register state from the
32 inferior, not from the local cache.
33 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
34 unset_status fields. New get_addr and get_control fields.
35 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
36 (DR_NADDR, DR_STATUS): New.
37 (struct i386_debug_reg_state): Moved from i386-nat.c.
38
39 * amd64-linux-nat.c (struct arch_lwp_info): New.
40 (amd64_linux_dr): Delete global.
41 (amd64_linux_dr_get_addr): New.
42 (amd64_linux_dr_get_control): New.
43 (amd64_linux_dr_unset_status): Delete.
44 (amd64_linux_dr_set_addr): Reimplement.
45 (amd64_linux_dr_reset_addr): Delete.
46 (update_debug_registers_callback): New.
47 (amd64_linux_dr_set_control): Reimplement.
48 (amd64_linux_dr_set_addr): Reimplement.
49 (amd64_linux_prepare_to_resume): New.
50 (amd64_linux_new_thread): Change parameter to an lwp pointer.
51 Reimplement.
52 (_initialize_amd64_linux_nat): No longer install
53 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
54 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
55 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
56 amd64_linux_prepare_to_resume.
57 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
58 (DR_CONTROL): Delete.
59 (struct arch_lwp_info): New.
60 (i386_linux_dr): Delete global.
61 (i386_linux_dr_set_control): Reimplement.
62 (i386_linux_dr_get_addr): New.
63 (i386_linux_dr_set_addr): Reimplement.
64 (i386_linux_dr_get_control): New.
65 (update_debug_registers_callback): New.
66 (i386_linux_dr_unset_status): Delete.
67 (i386_linux_dr_set_addr): Reimplement.
68 (i386_linux_prepare_to_resume): New.
69 (i386_linux_new_thread): Change parameter to an lwp pointer.
70 Reimplement.
71 (_initialize_i386_linux_nat): No longer install
72 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
73 i386_linux_dr_get_control as i386_dr_low.get_control. Install
74 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
75 i386_linux_prepare_to_resume.
76
77 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
78 lwp pointer. Adjust.
79 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
80 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
81 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
82 * s390-nat.c (s390_fix_watch_points): Likewise.
83
84 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
85 (DR_CONTROL): Delete.
86 (i386_darwin_dr_reset_addr): Delete.
87 (i386_darwin_dr_get_addr): New.
88 (i386_darwin_dr_get_control): New.
89 * go32-nat.c
90 (go32_get_dr7, go32_get_dr): New.
91 (init_go32_ops): No longer install i386_dr_low.reset_addr.
92 Install go32_get_dr7 as i386_dr_low.get_control. Install
93 go32_get_dr as i386_dr_low.get_addr.
94 * i386bsd-nat.c (i386bsd_dr_get): New.
95 (i386bsd_dr_reset_addr): Delete.
96 (i386bsd_dr_get_addr): New.
97 (i386bsd_dr_get_status): Use i386bsd_dr_get.
98 (i386bsd_dr_get_control): New.
99 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
100 (i386bsd_dr_get_addr): New.
101 (i386bsd_dr_get_control): New.
102 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
103 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
104 i386bsd_dr_get_control as i386_dr_low.get_control. Install
105 i386bsd_dr_get_addr as i386_dr_low.get_addr.
106 * windows-nat.c (init_windows_ops): No longer install
107 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
108 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
109 as i386_dr_low.get_addr.
110 (cygwin_get_dr): New.
111 (cygwin_get_dr7): New.
112
dd110abf
PA
1132011-12-14 Pedro Alves <pedro@codesourcery.com>
114
115 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
116 target_write_raw_memory.
117 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
118 target_write_raw_memory.
119 * microblaze-linux-tdep.c
120 (microblaze_linux_memory_remove_breakpoint): Use
121 target_write_raw_memory.
122 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
123 target_write_raw_memory.
124
ad32032e
JB
1252011-12-14 Joel Brobecker <brobecker@adacore.com>
126
127 * linespec.c (decode_line_internal): Make static.
128
d14c4eb7
YQ
1292011-12-14 Yao Qi <yao@codesourcery.com>
130
131 * breakpoint.c (create_breakpoint): Set canonical.addr_string
132 for static tracepoint.
133
25564b66 1342011-12-13 Joel Brobecker <brobecker@adacore.com>
135
136 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
137 * version.in: Bump version to 7.4.50.20111213-cvs.
138
8837a20f
JB
1392011-12-13 Joel Brobecker <brobecker@adacore.com>
140
141 * NEWS: Create a new section for the next release branch.
142 Rename the section of the current branch, now that it has
143 been cut.
144
7dda8cff
JB
1452011-12-11 Joel Brobecker <brobecker@adacore.com>
146
147 * ada-lang.c (ada_exception_support_info_sniffer): Improve
148 error message.
149
3eecfa55
JB
1502011-12-11 Joel Brobecker <brobecker@adacore.com>
151
152 * ada-lang.c (struct ada_inferior_data) [exception_info]:
153 New field.
154 (exception_info): Delete.
155 (ada_exception_support_info_sniffer): Get exception_support_info
156 data from our per-inferior data. Adjust code accordingly.
157 (ada_unhandled_exception_name_addr_from_raise): Likewise.
158 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
159 (ada_executable_changed_observer): Delete.
160 (_initialize_ada_language): Remove call to
161 observer_attach_executable_changed.
162
a6af7abe
JB
1632011-12-11 Joel Brobecker <brobecker@adacore.com>
164
165 * ada-lang.c (ada_has_this_exception_support): Raise an error
166 if we could find the Ada exception hook in the Ada runtime,
167 but no debugging info for that hook.
168
f17011e0
JB
1692011-12-11 Joel Brobecker <brobecker@adacore.com>
170
171 * ada-lang.c (ada_has_this_exception_support): New function,
172 extracted out of ada_exception_sal and ada_exception_sal.
173 (ada_exception_support_info_sniffer): Simplify by using
174 ada_has_this_exception_support.
175 (ada_exception_sal): Replace unnecessary checks by assertions.
176 Minor simplifications.
177
d3fbdd86
AS
1782011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
179
180 * breakpoint.c (update_global_location_list): Remove nested
181 definition of `b'(-Wshadow).
182
eacd795a
AS
1832011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
184
185 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
186 `error_flag'(-Wshadow).
187
ad13d8df
AS
1882011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
189
190 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
191 `abfd'(-Wshadow).
192
917793af
AS
1932011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
194
195 * annotate.c (annotate_array_section_begin): Rename `index' to
196 `idx'(-Wshadow).
197
d48ebb5b
AS
1982011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
199
200 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
201 `idx'(-Wshadow).
202
9ed936ec
AS
2032011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
204
205 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
206 `syscall' to `syscall_number'(-Wshadow).
207
a35ddb44
AS
2082011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
209
210 * ada-lang.c (remove_extra_symbols): Rename `remove' to
211 `remove_p'(-Wshadow).
212
e5e61bd7
AS
2132011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
214
215 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
216 `ren_sym'(-Wshadow).
217
d200ab1e
DE
2182011-12-10 Doug Evans <dje@google.com>
219
b0df02fd
DE
220 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
221 debug_types_section. All uses updated.
222 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
223 to is_debug_types_section.
224
d200ab1e
DE
225 * python/py-auto-load.c (source_section_scripts): Call xfree
226 instead of free.
227
4511b1ba
YQ
2282011-12-10 Hui Zhu <teawater@gmail.com>
229 Yao Qi <yao@codesourcery.com>
230
231 * tracepoint.c (start_tracing): Clear `inserted' flag.
232
df5a4bd3
HZ
2332011-12-10 Hui Zhu <teawater@gmail.com>
234
235 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
236
1afeeb75
AS
2372011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
238
239 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
240 `bpoint'(-Wshadow).
241
80e1d417
AS
2422011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
243
244 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
245 `marker' variables to `sal2' and `tpmarker' respectively
246 (-Wshadow).
247
04ca3c22
AP
2482011-12-09 Andrew Pinski <apinski@cavium.com>
249
250 * linespec.c (hash_address_entry): Use iterative_hash_object on each
251 field rather than the struct itself.
252
8a2c437b
TT
2532011-12-09 Tom Tromey <tromey@redhat.com>
254
255 * breakpoint.c (compare_breakpoints): New function.
256 (clear_command): Remove duplicate breakpoints. Properly clean
257 up.
258
280711e7
MR
2592011-12-08 Maciej W. Rozycki <macro@mips.com>
260 Maciej W. Rozycki <macro@codesourcery.com>
261
262 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
263 address chunks retrieved from decoded lui/addiu pairs.
264
4c2051c6
MR
2652011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
266
267 * mips-tdep.c (extended_offset): Correct calculation.
268 (unpack_mips16): Correct bitfield positions used for extraction
269 of the immediate argument; fix sign-extension of same.
270 (extended_mips16_next_pc): Correct B instruction's offset
271 calculation. Correct register decoding of the BEQZ and BNEZ
272 as well as jump-register instructions. Handle compact jumps.
273
ff011ed7
TT
2742011-12-08 Tom Tromey <tromey@redhat.com>
275
276 * objfiles.h (struct objfile): Remove obsolete comment.
277 * objfiles.c (build_objfile_section_table): Remove obsolete
278 comment.
279
7cd3876c
SS
2802011-12-07 Stan Shebs <stan@codesourcery.com>
281
282 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
283 maintainer of the tic6x target.
284
35f73cfc
UW
2852011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
286
287 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
288 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
289 (arm_deal_with_atomic_sequence_raw): Likewise.
290 (arm_deal_with_atomic_sequence): Likewise.
291 (arm_software_single_step): Call it.
292 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
293
94eae614
UW
2942011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
295
296 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
297 where appropriate.
298 * s390-tdep.h: Likewise.
299
13b8d0c6
TG
3002011-12-07 Tristan Gingold <gingold@adacore.com>
301
302 * machoread.c (macho_symtab_read): Do not consider N_OPT as
303 a debugging stab. Improve complaint message.
304
5436df95
MR
3052011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
306
307 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
308 load adjustment if still within the prologue.
309
040dff2a
MR
3102011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
311
312 * mips-tdep.c (mips32_next_pc): Fix floating point condition
313 code mask.
314
754d7c78
MR
3152011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
316
317 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
318 of BLTZ* and BGEZ* instructions.
319
91912e4d
MR
3202011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
321
322 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
323 performed to determine whether an address refers to standard
324 MIPS or MIPS16 code.
325 (mips16_next_pc): Use mips_pc_is_mips16 instead of
326 is_mips16_addr.
327
f0ba3972
PA
3282011-12-06 Pedro Alves <pedro@codesourcery.com>
329
330 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
331 (breakpoint_xfer_memory): ... this. Change prototype. Handle
332 memory writes too.
333 * breakpoint.h (breakpoint_restore_shadows): Delete.
334 (breakpoint_xfer_memory): Declare.
335 * mem-break.c (default_memory_insert_breakpoint)
336 (default_memory_remove_breakpoint): Use target_write_raw_memory.
337 (memory_xfer_partial): Rename to ...
338 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
339 here.
340 (memory_xfer_partial): New.
341 (target_write_raw_memory): New.
342 * target.h (target_write_raw_memory): New.
343
31aba06f
DE
3442011-12-06 Doug Evans <dje@google.com>
345
346 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
347
f8eba3c6
TT
3482011-12-06 Joel Brobecker <brobecker@acacore.com>
349
350 * language.h (struct language_defn): Add new component
351 la_symbol_name_compare.
352 * symfile.h (struct quick_symbol_functions): Update the profile
353 of parameter "name_matcher" for the expand_symtabs_matching
354 method. Update the documentation accordingly.
355 * ada-lang.h (ada_name_for_lookup): Add declaration.
356 * ada-lang.c (ada_name_for_lookup): New function, extracted out
357 from ada_iterate_over_symbols.
358 (ada_iterate_over_symbols): Do not encode symbol name anymore.
359 (ada_expand_partial_symbol_name): Adjust profile.
360 (ada_language_defn): Add value for la_symbol_name_compare field.
361 * linespec.c: #include "ada-lang.h".
362 (iterate_name_matcher): Add language parameter. Replace call
363 to strcmp_iw by call to language->la_symbol_name_compare.
364 (decode_variable): Encode COPY if current language is Ada.
365 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
366 of name_matcher parameter. Adjust call to name_matcher.
367 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
368 (expand_partial_symbol_names): Update profile of parameter "fun".
369 * psymtab.h (expand_partial_symbol_names): Update profile of
370 parameter "fun".
371 * symtab.c (demangle_for_lookup): Update function documentation.
372 (search_symbols_name_matches): Add language parameter.
373 (expand_partial_symbol_name): Likewise.
374 * c-lang.c (c_language_defn, cplus_language_defn)
375 (asm_language_defn, minimal_language_defn): Add value for
376 la_symbol_name_compare field.
377 * d-lang.c (d_language_defn): Likewise.
378 * f-lang.c (f_language_defn): Ditto.
379 * jv-lang.c (java_language_defn): Ditto.
380 * m2-lang.c (m2_language_defn): Ditto.
381 * objc-lang.c (objc_language_defn): Ditto.
382 * opencl-lang.c (opencl_language_defn): Ditto.
383 * p-lang.c (pascal_language_defn): Ditto.
384 * language.c (unknown_language_defn, auto_language_defn)
385 (local_language_defn): Ditto.
386
3872011-12-06 Tom Tromey <tromey@redhat.com>
388
389 * linespec.c (iterate_over_all_matching_symtabs): Use
390 LA_ITERATE_OVER_SYMBOLS.
391 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
392 (find_function_symbols, decode_variable): Remove Ada special
393 case.
394 * language.h (struct language_defn) <la_iterate_over_symbols>: New
395 field.
396 (LA_ITERATE_OVER_SYMBOLS): New macro.
397 * language.c (unknown_language_defn, auto_language_defn)
398 (local_language_defn): Update.
399 * c-lang.c (c_language_defn, cplus_language_defn)
400 (asm_language_defn, minimal_language_defn): Update.
401 * d-lang.c (d_language_defn): Update.
402 * f-lang.c (f_language_defn): Update.
403 * jv-lang.c (java_language_defn): Update.
404 * m2-lang.c (m2_language_defn): Update.
405 * objc-lang.c (objc_language_defn): Update.
406 * opencl-lang.c (opencl_language_defn): Update.
407 * p-lang.c (pascal_language_defn): Update.
408 * ada-lang.c (ada_iterate_over_symbols): New function.
409 (ada_language_defn): Update.
410
4112011-12-06 Tom Tromey <tromey@redhat.com>
412 Joel Brobecker <brobecker@acacore.com>
413
414 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
415 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
416 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
417 PR shlibs/8929, PR shlibs/7393:
418 * python/py-type.c (compare_maybe_null_strings): Rename from
419 compare_strings.
420 (check_types_equal): Update.
421 * utils.c (compare_strings): New function.
422 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
423 location changes.
424 * tracepoint.c (scope_info): Update.
425 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
426 * symtab.h (iterate_over_minimal_symbols)
427 (iterate_over_some_symtabs, iterate_over_symtabs)
428 (find_pcs_for_symtab_line, iterate_over_symbols)
429 (demangle_for_lookup): Declare.
430 (expand_line_sal): Remove.
431 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
432 (lookup_symtab_callback): New functions.
433 (lookup_symtab): Rewrite.
434 (demangle_for_lookup): New function, extract from
435 lookup_symbol_in_language.
436 (lookup_symbol_in_language): Use it.
437 (iterate_over_symbols): New function.
438 (find_line_symtab): Update.
439 (find_pcs_for_symtab_line): New functions.
440 (find_line_common): Add 'start' argument.
441 (decode_line_spec): Update. Change argument to 'flags', change
442 interpretation.
443 (append_expanded_sal): Remove.
444 (append_exact_match_to_sals): Remove.
445 (expand_line_sal): Remove.
446 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
447 Remove.
448 <map_symtabs_matching_filename>: New field.
449 * stack.c (func_command): Only look in the current program space.
450 Use DECODE_LINE_FUNFIRSTLINE.
451 * source.c (line_info): Set pspace on sal. Check program space in
452 the loop. Use DECODE_LINE_LIST_MODE.
453 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
454 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
455 * python/python.c (gdbpy_decode_line): Update.
456 * psymtab.c (partial_map_expand_apply): New function.
457 (partial_map_symtabs_matching_filename): Rename from
458 lookup_partial_symbol. Update arguments.
459 (lookup_symtab_via_partial_symtab): Remove.
460 (psym_functions): Update.
461 * objc-lang.h (parse_selector, parse_method): Don't declare.
462 (find_imps): Update.
463 * objc-lang.c (parse_selector, parse_method): Now static.
464 (find_methods): Change arguments. Fill in a vector of symbol
465 names.
466 (uniquify_strings): New function.
467 (find_imps): Change arguments.
468 * minsyms.c (iterate_over_minimal_symbols): New function.
469 * linespec.h (enum decode_line_flags): New.
470 (struct linespec_sals): New.
471 (struct linespec_result) <canonical>: Remove.
472 <pre_expanded, addr_string, sals>: New fields.
473 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
474 (decode_line_full): Declare.
475 (decode_line_1): Update.
476 * linespec.c (struct address_entry, struct linespec_state, struct
477 collect_info): New types.
478 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
479 (eq_address_entry, maybe_add_address): New functions.
480 (total_number_of_methods): Remove.
481 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
482 functions.
483 (find_methods): Change arguments. Don't canonicalize input.
484 Simplify logic.
485 (add_matching_methods, add_constructors)
486 (build_canonical_line_spec): Remove.
487 (filter_results, convert_results_to_lsals): New functions.
488 (decode_line_2): Change arguments. Rewrite for new data
489 structures.
490 (decode_line_internal): Rename from decode_line_1. Change
491 arguments. Add cleanups. Update for new data structures.
492 (linespec_state_constructor, linespec_state_destructor)
493 (decode_line_full, decode_line_1): New functions.
494 (decode_indirect): Change arguments. Update.
495 (locate_first_half): Use skip_spaces.
496 (decode_objc): Change arguments. Update for new data structures.
497 Simplify logic.
498 (decode_compound): Change arguments. Add cleanups. Remove
499 fallback code, replace with error.
500 (struct decode_compound_collector): New type.
501 (collect_one_symbol): New function.
502 (lookup_prefix_sym): Change arguments. Update.
503 (compare_symbol_name, add_all_symbol_names_from_pspace)
504 (find_superclass_methods ): New functions.
505 (find_method): Rewrite.
506 (struct symtab_collector): New type.
507 (add_symtabs_to_list, collect_symtabs_from_filename): New
508 functions.
509 (symtabs_from_filename): Change API. Rename from
510 symtab_from_filename.
511 (collect_function_symbols): New function.
512 (find_function_symbols): Change API. Rename from
513 find_function_symbol. Rewrite.
514 (decode_all_digits): Change arguments. Rewrite.
515 (decode_dollar): Change arguments. Use decode_variable.
516 (decode_label): Change arguments. Rewrite.
517 (collect_symbols): New function.
518 (minsym_found): Change arguments. Rewrite.
519 (check_minsym, search_minsyms_for_name)
520 (add_matching_symbols_to_info): New function.
521 (decode_variable): Change arguments. Iterate over all symbols.
522 (symbol_found): Remove.
523 (symbol_to_sal): New function.
524 (init_linespec_result, destroy_linespec_result)
525 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
526 New functions.
527 (decode_digits_list_mode, decode_digits_ordinary): New functions.
528 * dwarf2read.c (dw2_map_expand_apply): New function.
529 (dw2_map_symtabs_matching_filename): Rename from
530 dw2_lookup_symtab. Change arguments.
531 (dwarf2_gdb_index_functions): Update.
532 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
533 * defs.h (compare_strings): Declare.
534 * cli/cli-cmds.c (compare_strings): Move to utils.c.
535 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
536 filter_sals.
537 (compare_symtabs, filter_sals): New functions.
538 * breakpoint.h (struct bp_location) <line_number, source_file>:
539 New fields.
540 (struct breakpoint) <line_number, source_file>: Remove.
541 <filter>: New field.
542 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
543 (momentary_breakpoint_from_master, add_location_to_breakpoint):
544 Update for changes to locations.
545 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
546 breakpoint.
547 (create_breakpoint_sal): Add 'filter' argument.
548 (remove_sal, expand_line_sal_maybe): Remove.
549 (create_breakpoints_sal): Remove 'sals' argument. Handle
550 pre-expanded sals and the filter.
551 (parse_breakpoint_sals): Use decode_line_full.
552 (check_fast_tracepoint_sals): Use get_sal_arch.
553 (create_breakpoint): Create a linespec_sals. Update.
554 (break_range_command): Use decode_line_full. Update.
555 (until_break_command): Update.
556 (clear_command): Update match conditions for linespec.c changes.
557 Use DECODE_LINE_LIST_MODE.
558 (say_where): Update for changes to locations.
559 (bp_location_dtor): Free 'source_file'.
560 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
561 (update_static_tracepoint): Update for changes to locations.
562 (update_breakpoint_locations): Disable ranged breakpoint if too
563 many locations match. Update.
564 (addr_string_to_sals): Use decode_line_full. Resolve all sal
565 PCs.
566 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
567 (decode_line_spec_1): Update. Change argument name to 'flags',
568 change interpretation.
569 * block.h (block_containing_function): Declare.
570 * block.c (block_containing_function): New function.
571 * skip.c (skip_function_command): Update.
572 (skip_re_set): Update.
573 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
574 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
575 * NEWS: Add entry.
576
5772011-12-06 Tom Tromey <tromey@redhat.com>
578
579 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
580 breakpoint's pspace to be NULL.
581 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
582 * breakpoint.c (init_raw_breakpoint): Conditionally set
583 breakpoint's pspace.
584 (init_breakpoint_sal): Don't set breakpoint's pspace.
585 (prepare_re_set_context): Conditionally switch program space.
586 (addr_string_to_sals): Check executing_startup on location's
587 program space.
588
5892011-12-06 Tom Tromey <tromey@redhat.com>
590
591 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
592 * breakpoint.c (should_be_inserted): Explicitly check if program
593 space is executing startup.
594 (describe_other_breakpoints): Update.
595 (disable_breakpoints_before_startup): Change executing_startup
596 earlier. Remove loop.
597 (enable_breakpoints_after_startup): Likewise.
598 (init_breakpoint_sal): Don't use bp_startup_disabled.
599 (create_breakpoint): Don't use bp_startup_disabled.
600 (update_global_location_list): Use should_be_inserted.
601 (bkpt_re_set): Update.
602
75c8c9d7
TT
6032011-12-06 Tom Tromey <tromey@redhat.com>
604
605 * python/lib/gdb/command/pretty_printers.py
606 (InfoPrettyPrinter.invoke1): Remove extra double quote.
607
7376e450
TT
6082011-12-06 Tom Tromey <tromey@redhat.com>
609
610 * NEWS: Add MI news.
611
c642a434
UW
6122011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
613
614 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
615 (S390_LAST_BREAK_REGNUM): Likewise.
616 (S390_SYSTEM_CALL_REGNUM): Likewise.
617 (S390_NUM_REGS): Update.
618
619 (s390_regmap_last_break): Add declaration.
620 (s390x_regmap_last_break): Likewise.
621 (s390_regmap_system_call): Likewise.
622
623 (tdesc_s390_linux32v1): Add declaration.
624 (tdesc_s390_linux32v2): Likewise.
625 (tdesc_s390_linux64v1): Likewise.
626 (tdesc_s390_linux64v2): Likewise.
627 (tdesc_s390x_linux64v1): Likewise.
628 (tdesc_s390x_linux64v2): Likewise.
629
630 * s390-tdep.c: Include new target description files
631 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
632 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
633 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
634 (s390_cannot_store_register): New function.
635 (s390_write_pc): Likewise.
636 (s390_dwarf_regmap): Add fields for new registers.
637 (s390_regmap_gregset): Likewise.
638 (s390x_regmap_gregset): Likewise.
639 (s390_regmap_fpregset): Likewise.
640 (s390_regmap_upper): Likewise.
641 (s390_regmap_last_break): New variable.
642 (s390x_regmap_last_break): Likewise.
643 (s390_regmap_system_call): Likewise.
644 (s390_last_break_regset): Likewise.
645 (s390x_last_break_regset): Likewise.
646 (s390_system_call_regset): Likewise.
647 (s390_upper_regset_sections): Rename to ...
648 (s390_linux64_regset_sections): ... this.
649 (s390_linux32_regset_sections): New variable.
650 (s390x_linux64_regset_sections): Likewise.
651 (s390_linux32v1_regset_sections): Likewise.
652 (s390_linux32v2_regset_sections): Likewise.
653 (s390_linux64v1_regset_sections): Likewise.
654 (s390_linux64v2_regset_sections): Likewise.
655 (s390x_linux64v1_regset_sections): Likewise.
656 (s390x_linux64v2_regset_sections): Likewise.
657 (s390_regset_from_core_section): Handle .reg-s390-last-break and
658 .reg-s390-system-call core file sections.
659 (s390_core_read_description): Check for presence of
660 .reg-s390-last-break and .reg-s390-system-call core file
661 sections and return appropriate target description.
662 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
663 "last_break" and "system_call" in target description. Install
664 appropriate gdbarch_core_regset_sections array.
665 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
666 (_initialize_s390_tdep): Initialize additional target descriptions.
667
668 * s390-nat.c: Include "elf/common.h".
669 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
670 (have_regset_last_break): New static variable.
671 (have_regset_system_call): Likewise.
672 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
673 (s390_native_collect): Likewise.
674 (fetch_regset, store_regset, check_regset): New functions.
675 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
676 and S390_SYSTEM_CALL_REGNUM.
677 (s390_linux_store_inferior_registers): Likewise.
678 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
679 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
680
681 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
682 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
683 (s390-linux32v1-expedite): Define.
684 (s390-linux32v2-expedite): Likewise.
685 (s390-linux64v1-expedite): Likewise.
686 (s390-linux64v2-expedite): Likewise.
687 (s390x-linux64v1-expedite): Likewise.
688 (s390x-linux64v2-expedite): Likewise.
689
690 * features/s390-linux32.xml: Add orig_r2 register.
691 * features/s390-linux64.xml: Likewise.
692 * features/s390x-linux64.xml: Likewise.
693 * features/s390-linux32v1.xml: New file.
694 * features/s390-linux32v2.xml: Likewise.
695 * features/s390-linux64v1.xml: Likewise.
696 * features/s390-linux64v2.xml: Likewise.
697 * features/s390x-linux64v1.xml: Likewise.
698 * features/s390x-linux64v2.xml: Likewise.
699
700 * features/s390-linux32.c: Regenerate.
701 * features/s390-linux64.c: Likewise.
702 * features/s390x-linux64.c: Likewise.
703 * features/s390-linux32v1.c: New generated file.
704 * features/s390-linux32v2.c: Likewise.
705 * features/s390-linux64v1.c: Likewise.
706 * features/s390-linux64v2.c: Likewise.
707 * features/s390x-linux64v1.c: Likewise.
708 * features/s390x-linux64v2.c: Likewise.
709
710 * regformats/s390-linux32.dat: Regenerate.
711 * regformats/s390-linux64.dat: Regenerate.
712 * regformats/s390x-linux64.dat: Regenerate.
713 * regformats/s390-linux32v1.dat: New generated file.
714 * regformats/s390-linux32v2.dat: Likewise.
715 * regformats/s390-linux64v1.dat: Likewise.
716 * regformats/s390-linux64v2.dat: Likewise.
717 * regformats/s390x-linux64v1.dat: Likewise.
718 * regformats/s390x-linux64v2.dat: Likewise.
719
336060f3
PA
7202011-12-05 Pedro Alves <pedro@codesourcery.com>
721
722 * linux-nat.c (resume_stopped_resumed_lwps): Call
723 registers_changed.
724
049e32d3
PA
7252011-12-05 Pedro Alves <pedro@codesourcery.com>
726
727 * breakpoint.c: Include record.h.
728 (breakpoints_always_inserted_mode): Return false when the record
729 target is in use.
730
5c03c7f9 7312011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
732
733 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
734 Reinstate perror_with_name call on ptrace error. Remove #if 0.
735 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
736 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
737
fbbd034e
AS
7382011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
739
740 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
741 `i'(-Wshadow).
742
a5ff8356 7432011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
744
745 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
746
7472011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
748
a5ff8356
AS
749 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
750 of `tdep'(-Wshadow).
751
93f2a35e
JK
7522011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 Fix compilation --without-expat.
755 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
756 from ...
757 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
758
2268b414
JK
7592011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
760 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
763 * features/library-list-svr4.dtd: New file.
764 * remote.c (PACKET_qXfer_libraries_svr4): New.
765 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
766 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
767 * solib-svr4.c (struct svr4_library_list): New.
768 [HAVE_LIBEXPAT]: Include xml-support.h.
769 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
770 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
771 [HAVE_LIBEXPAT] (svr4_library_list_children)
772 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
773 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
774 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
775 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
776 (svr4_read_so_list): Extend the corruption message by addresses.
777 (svr4_current_sos): New variable library_list, call
778 svr4_current_sos_via_xfer_libraries.
779 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
780
585861ea
JK
7812011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 PR threads/13448
784 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
785 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
786
9750bca9
JK
7872011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 PR breakpoints/13346
790 * dwarf2read.c (process_psymtab_comp_unit): Set
791 PSYMTABS_ADDRMAP_SUPPORTED.
792 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
793 validity. New field psymtabs_addrmap_supported.
794 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
795 psymtabs_addrmap_supported.
796 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
797 !PSYMTABS_ADDRMAP_SUPPORTED.
798 (dump_psymtab, maintenance_info_psymtabs): Print also
799 psymtabs_addrmap_supported.
800
f28c316a
DE
8012011-12-01 Doug Evans <dje@google.com>
802
803 * python/py-type.c (type_object_methods): Fix "array" doc string.
804
fc0ae648
AB
8052011-12-01 Andrew Burgess <aburgess@broadcom.com>
806
807 * source.c (print_source_lines_base): Fix missing braces on else
808 clause leading to additional output.
809
d6db1fab
UW
8102011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
811
812 * s390-nat.c (SUBOFF): Remove.
813 (s390_native_supply, s390_native_collect): New functions.
814 (supply_gregset, supply_fpregset): Use s390_native_supply.
815 (fill_gregset, fill_fpregset): Use s390_native_collect.
816
817 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
818 (s390_unwind_pseudo_register): New function.
819 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
820 registers instead of PC and CC.
821 (s390_backchain_frame_unwind_cache): Likewise.
822 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
823 full GPR pseudos.
824 (s390_trad_frame_prev_register): New function.
825 (s390_frame_prev_register): Use it.
826 (s390_sigtramp_frame_prev_register): Likewise.
827 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
828 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
829 special callback to unwind any pseudo.
830
831 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
832 * features/s390-core64.xml: Likewise.
833 * features/s390x-core64.xml: Likewise.
834 * features/s390-linux32.c: Regenerate.
835 * features/s390-linux64.c: Likewise.
836 * features/s390x-linux64.c: Likewise.
837
1dd635ac
UW
8382011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
839
840 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
841
0161e4b9
UW
8422011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
843
844 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
845 instruction. Add more diagnostic output.
846
0c36327f
AS
8472011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
848
849 * MAINTAINERS (Write After Approval): Add myself to the list.
850
b4264740
SD
8512011-11-29 Sanjoy Das <sdas@igalia.com>
852
853 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
854 (jit_bfd_try_read_symtab): Fix comments.
855
87326c78
DD
8562011-11-28 DJ Delorie <dj@redhat.com>
857
858 * NEWS: Mention RL78 simulator.
859
1e3a8f45
JB
8602011-11-28 Joel Brobecker <brobecker@adacore.com>
861
862 * symfile.h (struct quick_symbol_functions): Fix the documentation
863 of field map_matching_symbols, as symbols are sorted using
864 strcmp_iw_ordered, not strcmp_iw.
865
265e52c3
JB
8662011-11-28 Paul Hilfinger <hilfinger@adacore.com>
867
868 * symfile.h (struct quick_symbol_functions): Update the
869 documentation for field map_matching_symbols.
870
1a1d5513
JB
8712011-11-28 Joel Brobecker <brobecker@adacore.com>
872
873 * ada-lang.c (compare_names): Fix wrong return value in case
874 string1 starts with the same contents as string2, followed
875 by an underscore that do not start a symbol name suffix.
876
5d9c5995
PM
8772011-11-28 Phil Muldoon <pmuldoon@redhat.com>
878
879 PR python/13369
880 PR python/13374
881
882 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
883 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
884 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
885 exceptions.
886 * python/py-type.c (typy_strip_typedefs): Ditto.
887 (typy_legacy_template_argument): Ditto.
888 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
889 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
890
2bf50f6f
JB
8912011-11-27 Joel Brobecker <brobecker@acacore.com>
892
893 * remote.c (remote_get_tracepoint_status): Delete addrbuf
894 local variable. Avoid use of sprintf_vma.
895
744ab88c
SD
8962011-11-27 Sanjoy Das <sdas@igalia.com>
897
898 Fix regression in jit.exp.
899 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
900 (jit_register_code): Set the jit_objfile_data field to the correct
901 value.
902
46ad3598
UW
9032011-11-25  Uros Bizjak  <ubizjak@gmail.com>
904
905 * alpha-tdep.c (br_opcode): New.
906 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
907 (alpha_deal_with_atomic_sequence): New function.
908 (alpha_gdbarch_init): Handle single stepping of atomic sequences
909 with alpha_deal_with_atomic_sequence.
910
e4c5f296
TG
9112011-11-24 Tristan Gingold <gingold@adacore.com>
912
913 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
914 fields. Add oso_sym, end_sym and nbr_syms.
915 (macho_register_oso): Change interface.
916 (macho_symtab_add_minsym): New function.
917 (macho_symtab_read): Rewritten.
918 (get_archive_prefix_len): Remove trailing blanks.
919 (oso_el_compare_name): Add comment.
920 (struct macho_sym_hash_entry): New structure.
921 (macho_relocate_common_syms): Remove.
922 (macho_sym_hash_newfunc): New function.
923 (macho_resolve_oso_sym_with_minsym): Likewise.
924 (macho_add_oso_symfile): Rewritten.
925 (macho_symfile_read_all_oso): Remove trailing blanks.
926 Adjust code to free oso vector.
927 (macho_symfile_read): Likewise.
928 Move code to initialize minimal symbol
929
130854df
MR
9302011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
931
932 * mips-tdep.c (extended_offset): Fix formatting.
933
3d7bb9d9
DE
9342011-11-23 Doug Evans <dje@google.com>
935
936 * dwarf2read.c (dw2_lookup_symtab): Add comment.
937 (dw2_expand_symtabs_with_filename): Ditto.
938 (dw2_expand_symtabs_matching): Ditto.
939 (dw2_map_symbol_filenames): Ditto.
940
1fbf5ada
JB
9412011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
942
943 * ada-lang.c (assign_aggregate): Minor reformatting.
944
d984108d
JB
9452011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
946
947 * ada-lang.c (assign_aggregate): Remove declaration of local
948 variable `i' which is shadowing another variable with the same
949 name declared in the outer scope.
950
18af8284
JB
9512011-11-23 Joel Brobecker <brobecker@adacore.com>
952
953 * ada-lang.c (get_base_type): Renames base_type. Adjust all
954 calls throughout this file.
955
1fc7b5d7
JB
9562011-11-23 Joel Brobecker <brobecker@adacore.com>
957
958 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
959 FormatMessage.
960
36dfb11c
TT
9612011-11-22 Tom Tromey <tromey@redhat.com>
962
963 PR mi/8444:
964 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
965 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
966 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
967 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
968 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
969 (print_it_catch_syscall, print_it_catch_exec)
970 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
971 (bpstat_print): Add 'kind' argument. Handle
972 TARGET_WAITKIND_LOADED.
973 * infrun.c (normal_stop): Update for bpstat_print change. Don't
974 handle TARGET_WAITKIND_LOADED here.
975 * breakpoint.h (bpstat_print): Update.
976
5bd6aa83
TT
9772011-11-22 Tom Tromey <tromey@redhat.com>
978
979 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
980
f5afdc18
TT
9812011-11-22 Tom Tromey <tromey@redhat.com>
982
983 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
984 Use static_assert to check the size of
985 async_reason_string_lookup.
986 * common/gdb_assert.h (static_assert): New macro.
987
a3769e0c
AM
9882011-11-22 Alan Modra <amodra@gmail.com>
989
990 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
991 destination calculation. Don't expect >> to sign extend. Don't
992 add a break if branch lands inside the sequence anywhere.
993
56767571
KS
9942011-11-21 Keith Seitz <keiths@redhat.com>
995
996 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
997 -var-evaluate-expression of an enumeration and fix expected result.
998 * gdb.mi/mi2-varvdisplay.exp: Likewise.
999
8443c207
KY
10002011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1001
1002 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1003 the case where osdata->items is empty. Rename column names to a
1004 canonical form to avoid problems with unusual column names.
1005
97643830
YQ
10062011-11-21 Yao Qi <yao@codesourcery.com>
1007
1008 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1009
f196051f
SS
10102011-11-20 Stan Shebs <stan@codesourcery.com>
1011
1012 * NEWS: Mention tracepoint additions.
1013 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1014 * breakpoint.c (print_one_breakpoint_location): Identify
1015 tracepoints as such when reporting hit counts, report
1016 trace buffer usage.
1017 (create_tracepoint_from_upload): Copy status info.
1018 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1019 add fields user_name, notes, start_time, stop_time.
1020 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1021 * tracepoint.c (trace_user): New global.
1022 (trace_notes): New global.
1023 (trace_stop_notes): New global.
1024 (start_tracing): Add argument and trace note handling.
1025 (stop_tracing): Ditto.
1026 (trace_start_command): Add notes argument.
1027 (trace_stop_command): Ditto.
1028 (trace_status_command): Report additional status info.
1029 (trace_status_mi): Similarly.
1030 (trace_save): Update, record tracepoint status.
1031 (set_disconnected_tracing): Call target method directly.
1032 (send_disconnected_tracing_value): Remove.
1033 (set_trace_user): New function.
1034 (set_trace_notes): New function.
1035 (set_trace_stop_notes): New function.
1036 (parse_trace_status): Handle additional status.
1037 (parse_tracepoint_status): New function.
1038 (parse_tracepoint_definition): Call it.
1039 (tfile_get_tracepoint_status): New function.
1040 (init_tfile_ops): Use it.
1041 (_initialize_tracepoint): Add new setshows.
1042 * target.h (struct target_ops): New methods to_get_tracepoint_status
1043 and to_set_trace_notes.
1044 (target_get_tracepoint_status): New macro.
1045 (target_set_trace_notes): New macro.
1046 * target.c (update_current_target): Add new methods.
1047 * remote.c (remote_get_tracepoint_status): New function.
1048 (remote_set_trace_notes): New function.
1049 (init_remote_ops): Add them.
1050 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1051 (mi_cmd_trace_stop): Ditto.
1052
3623dc3a
SD
10532011-11-20 Sanjoy Das <sdas@igalia.com>
1054
1055 * jit.c: Include regcache.h.
1056 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1057 (jit_unwind_reg_set_impl, free_reg_value_impl)
1058 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1059 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1060 (jit_frame_prev_register, jit_dealloc_cache)
1061 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1062 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1063 jit_prepend_unwinder.
1064 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1065
1825a88d
SD
10662011-11-20 Sanjoy Das <sdas@igalia.com>
1067
1068 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1069 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1070 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1071 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1072 (finalize_symtab, jit_object_close_impl)
1073 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1074 (free_objfile_data): New functions.
1075 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1076 function.
1077
784c47ee
SD
10782011-11-20 Sanjoy Das <sdas@igalia.com>
1079
1080 * jit.c: Include gdb-dlfcn.h.
1081 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1082 (jit_reader_load, jit_reader_load_command)
1083 (jit_reader_unload_command): New functions.
1084 (_initialize_jit): Add commands "jit-reader-load" and
1085 "jit-reader-unload".
1086
a2d08b9e
SD
10872011-11-20 Sanjoy Das <sdas@igalia.com>
1088
1089 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1090 * config.in: Add new #define HAVE_LIBDL.
1091 * configure.ac: Add check for -ldl.
1092 * configure: Re-generated by autoconf.
1093 * gdb-dlfcn.c: New file.
1094 * gdb-dlfcn.h: New file.
1095
b8e0a31c
SD
10962011-11-20 Sanjoy Das <sdas@igalia.com>
1097
1098 * config.in: Add new #defines: JIT_READER_DIR and
1099 JIT_READER_DIR_RELOCATABLE.
1100 * configure.ac: New GDB directory entry for jit-reader-dir.
1101 * configure: Re-generated by autoconf.
1102 * jit.c: New static variable: const char *jit_reader_dir.
1103 (_initialize_jit): Relocate jit_reader_dir.
1104
f997c383
SD
11052011-11-20 Sanjoy Das <sdas@igalia.com>
1106
1107 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1108 $(includedir)/gdb.
1109 * configure.ac: Generate a correct value for TARGET_PTR for
1110 jit-reader.h. Tell configure to generate jit-reader.h from
1111 jit-reader.in.
1112 * configure: Re-generated by autoconf.
1113 * jit-reader.in: New file.
1114 * jit.c: Include jit-reader.h.
1115
dc8c0494
SD
11162011-11-20 Sanjoy Das <sdas@igalia.com>
1117
1118 * MAINTAINERS (Write After Approval): Add myself to the list.
1119
01efb936
UW
11202011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1121
1122 * findvar.c (read_frame_register_value): Respect value_offset
1123 of the register value. Remove big-endian special case.
1124
732f3f12
TT
11252011-11-18 Tom Tromey <tromey@redhat.com>
1126
1127 PR build/7196:
1128 * remote.c (putpkt_for_catch_errors): New function.
1129 (remote_kill): Use it.
1130
bfccc43c
YQ
11312011-11-18 Yao Qi <yao@codesourcery.com>
1132
1133 * breakpoint.c (create_breakpoint): Produce query message according to
1134 breakpoint's type.
1135 Allocate tracepoint per correct type.
1136 Don't check SALs for pending fast tracepoints.
1137 * tracepoint.c (process_tracepoint_on_disconnect): New.
1138 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1139
3ea46bff
YQ
11402011-11-18 Yao Qi <yao@codesourcery.com>
1141
1142 * breakpoint.c (install_breakpoint): Add one more parameter so that
1143 update_global_location_list is called conditionally.
1144 (create_fork_vfork_event_catchpoint): Update.
1145 (create_syscall_event_catchpoint): Update.
1146 (create_breakpoint_sal): Update.
1147 (create_breakpoint_sal): Update. Call do_cleanups before
1148 install_breakpoint.
1149 * ada-lang.c (create_ada_exception_catchpoint): Update.
1150 * breakpoint.h (install_breakpoint): Update declaration.
1151
598cfb71
UW
11522011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1153
1154 * spu-tdep.c (spu_return_value): Fix handling of
1155 TYPE_CALLING_CONVENTION annotation.
1156
caf4328c
UW
11572011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1158
1159 * skip.c (skip_function_command): Work around uninitialized
1160 variable warning.
1161
2b54dda2
DM
11622011-11-16 David S. Miller <davem@davemloft.net>
1163
1164 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1165 'tv_usec' to long for printf since these fields have a type which
1166 varies.
1167
93bf33fd
DE
11682011-11-15 Doug Evans <dje@google.com>
1169
1170 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1171
9cc10fd1
PK
11722011-11-15 Paul Koning <paul_koning@dell.com>
1173
1174 * python/py-type.c (typy_get_composite): New function.
1175 (typy_nonzero): New function.
1176 (typy_values): Rename from typy_fields.
1177 (typy_fields): New function.
1178 (typy_length): Raise exception if not struct, union, or enum type.
1179 (typy_getitem): Ditto.
1180 (typy_has_key): Ditto.
1181 (typy_make_iter): Ditto.
1182
c011a4f4
DE
11832011-11-15 Doug Evans <dje@google.com>
1184
1963ff96 1185 PR gdb/8367
c011a4f4
DE
1186 * NEWS: Mention new parameter basenames-may-differ.
1187 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1188 ! basenames_may_differ.
1189 * psymtab.c (lookup_partial_symtab): Ditto.
1190 * symtab.c (lookup_symtab): Ditto.
1191 (basenames_may_differ): New global.
1192 (_initialize_symtab): New parameter basenames-may-differ.
1193 * symtab.h (basenames_may_differ): Declare.
1194
865ecab4
LM
11952011-11-15 Pedro Alves <pedro@codesourcery.com>
1196 Luis Machado <lgustavo@codesourcery.com>
1197
1198 * auxv.c: Include observer.h.
1199 (auxv_inferior_data_cleanup): New.
1200 (invalidate_auxv_cache_inf): New.
1201 (invalidate_auxv_cache): New.
1202 (get_auxv_inferior_data): New.
1203 (auxv_inferior_data): New static global.
1204 (auxv_info): New structure.
1205 (target_auxv_search): Use get_auxv_inferior_data instead of
1206 target_read_alloc and don't free cached buffers.
1207 (fprint_target_auxv): Likewise
1208 (_initialize_auxv): Register per-inferior auxv cache and register
1209 observers to invalidate auxv cache when needed.
1210
ed59ded5
DE
12112011-11-14 Doug Evans <dje@google.com>
1212
37acd67c 1213 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1214 * NEWS: Add mention.
1215 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1216 adding "!" command, always add it.
1217 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1218 command of length one.
1219
405f8e94
SS
12202011-11-14 Stan Shebs <stan@codesourcery.com>
1221 Kwok Cheung Yeung <kcy@codesourcery.com>
1222
1223 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1224 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1225 the minimum instruction size for fast tracepoints.
1226 * target.h (struct target_ops): Add new method
1227 to_get_min_fast_tracepoint_insn_len.
1228 (target_get_min_fast_tracepoint_insn_len): New.
1229 * target.c (update_current_target): Set up new target operation.
1230 * remote.c (remote_write_bytes_aux): Fix typo.
1231 (remote_get_min_fast_tracepoint_insn_len): New.
1232 (init_remote_ops): Initialize new field.
1233
3e05895e
TT
12342011-11-14 Tom Tromey <tromey@redhat.com>
1235
1236 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1237 (encode_actions): Likewise.
1238
1e4d1764
YQ
12392011-11-14 Yao Qi <yao@codesourcery.com>
1240
1241 * remote.c (struct remote_state): <install_in_trace> new field.
1242 (PACKET_InstallInTrace): New enum value.
1243 (remote_install_in_trace_feature): Support InstallInTrace.
1244 (remote_supports_install_in_trace): Likewise.
1245 (remote_protocol_features): Likewise.
1246 (_initialize_remote): Likewise.
1247 (remote_can_download_tracepoint): New.
1248 * target.h (struct target): New field
1249 `to_can_download_tracepoint'.
1250 (target_can_download_tracepoint): New macro.
1251 * target.c (update_current_target): Update.
1252 * breakpoint.h (struct bp_location): Add comment on field
1253 `duplicate'.
3ccd4ac6
YQ
1254 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1255 and tracepoint.
1e4d1764
YQ
1256 (remove_breakpoints): Don't remove tracepoints.
1257 (tracepoint_locations_match ): New.
1258 (breakpoint_locations_match): Call it.
1259 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1260 (download_tracepoint_locations): New.
1261 (update_global_location_list): Call it.
1262 * tracepoint.c (find_matching_tracepoint): Delete.
1263 (find_matching_tracepoint_location): Renamed from
1264 find_matching_tracepoint. Return bp_location rather than
1265 tracepoint.
1266 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1267 tracepoint is found.
1268
e8ba3115
YQ
12692011-11-14 Yao Qi <yao@codesourcery.com>
1270
1271 * target.h (struct target): <to_download_tracepoint> Change type
1272 of parameter from tracepoint to bp_location.
1273 * target.c (update_current_target): Update.
1274 * tracepoint.c (start_tracing): Update.
1275 * remote.c (remote_download_tracepoint): Remove loop for each location
1276 of a tracepoint.
1277
edcc485a
MR
12782011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1279
1280 * i386-nat.c (i386_insert_hw_breakpoint): Call
1281 i386_update_inferior_debug_regs.
1282 (i386_remove_hw_breakpoint): Likewise.
1283
3742cc8b
YQ
12842011-11-14 Yao Qi <yao@codesourcery.com>
1285
1286 * breakpoint.c (init_raw_breakpoint): Call
1287 add_location_to_breakpoint to replace duplicated code.
1288 (add_location_to_breakpoint): Adjust the breakpoint's
1289 address prior to allocating a location.
1290
71eba9c2 12912011-11-12 Matt Rice <ratmice@gmail.com>
1292
1293 * macrocmd.c (macro_no_macro_info): New function.
1294 (macro_expand_command): Use macro_no_macro_info.
1295 (macro_expand_once_command): Ditto.
1296 (info_macro_command): Add argument processing,
1297 move info_definitions_command here.
1298 (_initialize_macrocmd): Remove info definitions command.
1299 Add arguments to info macro help text.
1300 * NEWS: Replace info definitions command with new info macro options.
1301
731971ed
KS
13022011-11-11 Keith Seitz <keiths@redhat.com>
1303
1304 PR gdb/12843
1305 * linespec.c (locate_first_half): Keep ':' if it looks
1306 like it could be part of a Windows path starting with
1307 a drive letter.
1308
6953d224
PA
13092011-11-10 Pedro Alves <pedro@codesourcery.com>
1310
1311 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1312 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1313
0c94aa73
PA
13142011-11-10 Pedro Alves <pedro@codesourcery.com>
1315
1316 * target.c (target_waitstatus_to_string): Handle
1317 TARGET_WAITKIND_NO_RESUMED.
1318
f6b47be4
DE
13192011-11-10 Doug Evans <dje@google.com>
1320
74e2f255
DE
1321 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1322 `need_fullname'.
1323 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1324 (map_partial_symbol_filenames): Ditto. All callers updated.
1325 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1326 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1327 parameter need_fullname.
1328
256f06f3
DE
1329 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1330 * source.c (symtab_to_fullname): Ditto.
1331
50f182aa
DE
1332 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1333 * gdb-demangle.h: ... here. New file.
1334 * demangle.c: #include "gdb-demangle.h".
1335 (_initialize_demangler): Use initialize_file_ftype for prototype.
1336 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1337 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1338 from utils.c
1339 * utils.c: Update. #include "gdb-demangle.h".
1340 * symtab.h (asm_demangle): Delete.
1341 (demangle): Move declaration next to use.
1342 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1343 * dwarf2read.c: #include "gdb-demangle.h".
1344 * gnu-v2-abi.c: Ditto.
1345 * jv-typeprint.c: Ditto.
1346 * mdebugread.c: Ditto.
1347 * p-typeprint.c: Ditto.
1348 * stabsread.c: Ditto.
1349 * printcmd.c: Ditto.
1350 (asm_demangle): Delete declaration.
1351 * tui/tui-stack.c: #include "gdb-demangle.h".
1352
f6b47be4
DE
1353 * python/py-type.c (typy_fields_items): Call check_typedef.
1354
22355c90
JB
13552011-11-10 Joel Brobecker <brobecker@adacore.com>
1356
1357 * findvar.c (read_frame_register_value): Read the correct bytes
1358 from registers on big-endian architectures.
1359
bd119cf1 13602011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1361
1362 * procfs.c (load_syscalls): Make a cleanup.
1363 (open_procinfo_files): fd==0 is ok.
1364
0a86f364
JB
13652011-11-10 Joel Brobecker <brobecker@adacore.com>
1366
1367 * procfs.c (iterate_over_mappings): Call do_cleanups before
1368 returning.
1369
9bc118a5
DE
13702011-11-09 Doug Evans <dje@google.com>
1371
1372 * gdbtypes.c (check_typedef): Document that this function can
1373 throw an exception.
1374
a7860e76
TT
13752011-11-09 Tom Tromey <tromey@redhat.com>
1376
1377 PR c++/13342:
1378 * valops.c (value_full_object): Return early if real type is
1379 smaller than the enclosing type.
1380
60965737
YQ
13812011-11-08 Yao Qi <yao@codesourcery.com>
1382
1383 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1384
72a2e3dc
MI
13852011-11-08 Meador Inge <meadori@codesourcery.com>
1386
1387 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1388 register when the frame can't be determined.
1389 * arm-tdep.c (arm_analyze_prologue): Ditto.
1390
ce3b0ff7
SS
13912011-11-07 Stan Shebs <stan@codesourcery.com>
1392
1393 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1394
2b914b52
JB
13952011-11-07 Joel Brobecker <brobecker@adacore.com>
1396
1397 * infrun.c (handle_inferior_event): Minor reformatting.
1398
6f809020
DE
13992011-11-05 Doug Evans <dje@google.com>
1400
1401 * source.c (forget_cached_source_info_for_objfile): Move call to
1402 objfile->sf->qf->forget_cached_source_info outside of
1403 ALL_OBJFILE_SYMTABS loop.
1404 (forget_cached_source_info): Delete unused variable `s'.
1405
75d12218
JK
14062011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 * i386-nat.c (dr_ref_count): Remove unused variable.
1409
e565b837
DE
14102011-11-05 Doug Evans <dje@google.com>
1411
1412 * main.c (captured_main): Set lim_at_start before calling
1413 make_command_stats_cleanup.
1414
0a1c4d10
DE
14152011-11-04 Doug Evans <dje@google.com>
1416
1417 * utils.c: #include "timeval-utils.h".
1418 (cmd_stats): Rename start_time to start_cpu_time.
1419 New member start_wall_time.
1420 (report_command_stats): Report wall time.
1421 (make_command_stats_cleanup): Record start wall time.
1422
a1d705ee
TT
14232011-11-04 Tom Tromey <tromey@redhat.com>
1424
1425 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1426
81de56be
RO
14272011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1428
1429 * coff-pe-read.c: Include defs.h before bfd.h.
1430
3ab1ec27
PM
14312011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1432
1433 PR Python/13345
1434
1435 * python/python.c (python_run_simple_file): Expand tilde in path.
1436
cd829959
PM
14372011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1438
1439 PR Python/13363
1440
1441 * python/py-type.c (typy_lookup_type): Do not return a type in
1442 an exception handler.
1443
080ad648
JK
14442011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 Eli Zaretskii <eliz@gnu.org>
1446
1447 * linux-nat.c (_initialize_linux_nat): Improve help
1448 for `info proc stat', `info proc status', `info proc cwd',
1449 `info proc cmdline' and `info proc exe'.
1450
3065dfb6
SS
14512011-11-02 Stan Shebs <stan@codesourcery.com>
1452
1453 String collection for tracepoints.
1454 * NEWS: Mention string collection.
1455 * common/ax.def (tracenz): New bytecode.
1456 * ax-gdb.h (trace_string_kludge): Declare.
1457 * ax-gdb.c: Include valprint.h and c-lang.h.
1458 (trace_string_kludge): New global.
1459 (gen_traced_pop): Add string case.
1460 (agent_command): Add string case.
1461 * tracepoint.h (decode_agent_options): Declare.
1462 * tracepoint.c: Include cli-utils.h.
1463 (decode_agent_options): New function.
1464 (validate_actionline): Call it.
1465 (encode_actions_1): Ditto.
1466 * target.h (struct target_ops): New method to_supports_string_tracing.
1467 (target_supports_string_tracing): New macro.
1468 * target.c (update_current_target): Add to_supports_string_tracing.
1469 * remote.c (struct remote_state): New field string_tracing.
1470 (remote_string_tracing_feature): New function.
1471 (remote_protocol_features): New feature tracenz.
1472 (remote_supports_string_tracing): New function.
1473 (init_remote_ops): Set to_supports_string_tracing.
1474
f179e162
JK
14752011-11-02 Pedro Alves <pedro@codesourcery.com>
1476 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 * linux-nat.c: Include cli/cli-utils.h.
1479 (enum info_proc_what): New.
1480 (linux_nat_info_proc_cmd): Rename to ...
1481 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1482 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1483 status_f and stat_f from WHAT. Throw error on extra parameters.
1484 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1485 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1486 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1487 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1488 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1489 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1490 `info proc cmdline', `info proc exe' and `info proc all' as real
1491 subcommands of `info proc'.
1492
7b35ec7f 14932011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1494
1495 * Makefile.in: (SFILES): Add skip.c.
1496 (HFILES_NO_SRCDIR): Add skip.h.
1497 (COMMON_OBS): Add skip.o.
1498 * skip.h, skip.c: New.
1499 * breakpoint.h (set_default_breakpoint): Remove.
1500 (get_sal_arch): Declare.
1501 * breakpoint.c: Remove default_breakpoint_valid,
1502 default_breakpoint_address, default_breakpoint_symtab,
1503 default_breakpoint_line, default_breakpoint_pspace variables.
1504 (get_sal_arch): Make public.
1505 (set_default_breakpoint): Remove.
1506 (parse_breakpoint_sals, create_breakpoint, clear_command,
1507 decode_line_spec_1): Remove uses of default_breakpoint variables;
1508 replaced with function calls into stack.c.
1509 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1510 * cli/cli-cmds.c: Add skiplist.
1511 (init_cmd_lists): Initialize skiplist.
1512 (init_cli_cmds): Fix comment (classes of commands appear in
1513 alphabetical order).
1514 * infrun.c (handle_inferior_event): Add check that we don't step into
1515 a function whose pc is marked for skip.
1516 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1517 last_displayed_addr, last_displayed_symtab, last_displayed_line
1518 variables.
1519 (set_last_displayed_sal): New static function.
1520 (print_frame_info): Switch call to set_default_breakpoint to call to
1521 set_last_displayed_sal.
1522 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1523 get_last_displayed_pspace, get_last_displayed_addr,
1524 get_last_displayed_symtab, get_last_displayed_line,
1525 get_last_displayed_sal): New public functions.
1526 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1527 get_last_displayed_pspace, get_last_displayed_addr,
1528 get_last_displayed_symtab, get_last_displayed_line,
1529 get_last_displayed_sal): Declare.
1530
b60e1588
JL
15312011-11-01 Justin Lebar <justin.lebar@gmail.com>
1532
1533 * MAINTAINERS (Write After Approval): Add myself to the list.
1534
d31647d2
YQ
15352011-10-29 Yao Qi <yao@codesourcery.com>
1536
1537 * infcmd.c (disconnect_command): Call disconnect_tracing.
1538
b1d96efd
JK
15392011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1540
1541 Code cleanup.
1542 * symtab.c (skip_prologue_sal): Code reformatting.
1543
4dfb2365
JK
15442011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 PR symtab/13208
1547 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1548 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1549 SAI.
1550
0e5bf2a8
PA
15512011-10-28 Pedro Alves <pedro@codesourcery.com>
1552
1553 * linux-nat.c (linux_nat_filter_event): Remove `options'
1554 parameter, and dead code that used it. If we're handling a
1555 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1556 in our lwp list, re-add it.
1557 (check_zombie_leaders): New.
1558 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1559 wait for children with WNOHANG, and always wait for all children.
1560 Don't check for no resumed children upfront. Simplify wait loop.
1561 Check for zombie thread group leaders after handling all wait
1562 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1563 unwaited-for children left.
1564 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1565 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1566 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1567 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1568
821296b7
SA
15692011-10-28 Sterling Augustine <saugustine@google.com>
1570
1571 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1572 * symtab.c (free_completion_list): New function.
1573 (do_free_completion_list): Likewise.
1574 (default_make_symbol_completion_list_break_on): New variable
1575 back_to. Call make_cleanup and discard_cleanups.
1576 (make_source_files_completion_list): Likewise.
1577
03c3051a
PK
15782011-10-28 Paul Koning <paul_koning@dell.com>
1579
1580 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1581 * NEWS: Mention deep_items.
1582
8e7ebaf5
PA
15832011-10-28 Alen Skondro <askondro@gmail.com>
1584
8de33dc2 1585 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1586 defined.
1587
e0c6ef61
MI
15882011-10-27 Meador Inge <meadori@codesourcery.com>
1589
1590 * MAINTAINERS (Write After Approval): Add myself to the list.
1591
b56d6f31
JB
15922011-10-27 Joel Brobecker <brobecker@adacore.com>
1593
1594 * value.h (read_frame_register_value): Add declaration.
1595 * findvar.c (read_frame_register_value): New function.
1596 (value_from_register): Use read_frame_register_value
1597 instead of get_frame_register_value + value_contents_copy
1598 to get value contents.
1599
d234ef5c
DE
16002011-10-27 Doug Evans <dje@google.com>
1601
1602 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1603 source_script_from_stream if it may have been found on the search path.
1604 * python/py-auto-load.c (source_section_scripts): Pass full path to
1605 source_python_script_for_objfile.
1606 * python/python.c (source_python_script): Delete stream parameter.
1607 All callers updated.
1608 (source_python_script_for_objfile): Ditto.
1609 * python/python-internal.h (source_python_script_for_objfile): Update.
1610 * python/python.h (source_python_script): Update.
1611
d849d44f
TT
16122011-10-27 Tom Tromey <tromey@redhat.com>
1613
1614 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1615 (ada_sals_for_line): Remove declarations.
1616
2231f1fb
KP
16172011-10-27 Kevin Pouget <kevin.pouget@st.com>
1618
1619 Move unwind reasons to an external .def file
1620 * frame.c (frame_stop_reason_string): Rewrite using
1621 unwind_stop_reasons.def.
1622 * frame.h (enum unwind_stop_reason): Likewise.
1623 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1624 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1625 constants for bound-checking.
1626 * unwind_stop_reasons.def: New file.
1627 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1628 instead of a distinct value.
1629
f77b9a5d
PM
16302011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1631
1632 PR python/13331
1633
1634 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1635 (convert_values_to_python): Return on Python tuple allocation
1636 failure. Return NULL on value conversion error.
1637
76dce0be
PM
16382011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1639
1640 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1641 (bppy_set_task): Ditto.
1642 (bppy_delete_breakpoint): Ditto.
1643 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1644 (gdbpy_lookup_global_symbol): Ditto.
1645 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1646 * python/py-frame.c (frapy_is_valid): Ditto.
1647 (frame_info_to_frame_object): Ditto.
1648 * python/py-type.c (typy_lookup_type): Ditto.
1649 (typy_getitem): Ditto.
1650 (typy_has_key): Ditto.
1651 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1652
f17b6955
JB
16532011-10-26 Joel Brobecker <brobecker@adacore.com>
1654
1655 * gdbarch.h: Regenerate.
1656
86ba1042
JB
16572011-10-26 Meador Inge <meadori@codesourcery.com>
1658
1659 * gdbarch.sh (function_list): Use 'pstring' when printing
1660 'gcore_bfd_target'.
1661 * gdbarch.c: Regenerate.
1662
c34fd852
UW
16632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1664
1665 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1666 and frame caches if PTID refers to all threads of a process.
1667
931bb47f
UW
16682011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1669
1670 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1671 to create_breakpoint.
1672
88aed45e
UW
16732011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1674
1675 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1676 (ppc_sysv_abi_push_dummy_call): Use it.
1677 (do_ppc_sysv_return_value): Likewise.
1678 (ppc64_sysv_abi_push_dummy_call): Likewise.
1679 (ppc64_sysv_abi_return_value): Likewise.
1680
3eaf3fa2
PK
16812011-10-26 Paul Koning <paul_koning@dell.com>
1682
1683 * python/lib/gdb/types.py (deepitems): New function.
1684
913460fc
PK
16852011-10-25 Paul Koning <paul_koning@dell.com>
1686
1687 PR python/13327
1688
1689 * python/py-value.c (value_to_value_object): Remove fetching of
1690 the value if it was lazy.
1691 (valpy_get_is_lazy): New function.
1692 (valpy_fetch_lazy): New function.
1693
2b5b9d09
JB
16942011-10-24 Joel Brobecker <brobecker@adacore.com>
1695
1696 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1697 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1698
e21ffe51
PA
16992011-10-24 Pedro Alves <pedro@codesourcery.com>
1700
1701 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1702 event, in non-stop, if not stopping, make sure the new lwp has
1703 last_resume_kind set to resume_continue. Assert that when we're
1704 resuming the new lwp, its last_resume_kind is resume_continue.
1705
7aee8dc2
PA
17062011-10-24 Pedro Alves <pedro@codesourcery.com>
1707
1708 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1709 already set when marking the event thread as not executing in
1710 non-stop mode.
1711
4b4e080e
PA
17122011-10-24 Pedro Alves <pedro@codesourcery.com>
1713
1714 * infrun.c (handle_inferior_event): Add debug output for
1715 TARGET_WAITKIND_NO_HISTORY.
1716
baacfb07
PM
17172011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1718
1719 * NEWS: Move set/show extended-prompt to "New Options". Expand
1720 description. Fix typos.
1721
8432bc41
PM
17222011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1723
1724 PR python/13310
1725
1726 * python/py-param.c (call_doc_function): Correctly deference on
1727 function exit.
1728
6cda5a20
JB
17292011-10-21 Joel Brobecker <brobecker@adacore.com>
1730
1731 * ada-tasks.c (print_ada_task_info): Fix computation of
1732 number of tasks displayed in command output.
1733
13294f7d
JK
17342011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 Ulrich Weigand <uweigand@de.ibm.com>
1736
1737 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1738 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1739 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1740 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1741 gdbarch_unwind_pc.
1742
460c1c54
CC
17432011-10-20 Cary Coutant <ccoutant@google.com>
1744
1745 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1746 section to...
1747 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1748 flag. Adjust all callers.
1749 (process_psymtab_comp_unit): Remove adjustment for type section.
1750
a10964d1
AR
17512011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1752
1753 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1754 arguments by adding OBJFILE. Instead of getting objfile from
1755 symbol's symtab, use new argument OBJFILE.
1756 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1757 arguments by adding OBJFILE.
1758 * gdb/dwarf2read.c (new_symbol_full): Change call to
1759 cp_scan_for_anonymous_namespaces to match new signature.
1760 * gdb/stabsread.c (define_symbol): Change call to
1761 cp_scan_for_anonymous_namespaces to match new signature.
1762
27ca1a5b
PM
17632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1764
1765 PR python/13308
1766 PR python/13309
1767
1768 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1769 leak.
1770 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1771 leak. Delete unused variables.
1772
9df2fbc4
PM
17732011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1774
1775 PR python/12656
1776
1777 * python/py-frame.c (frapy_read_var): Use const struct *block.
1778 * python/py-type.c (typy_lookup_typename): Likewise.
1779 (typy_lookup_type): Likewise.
1780 (typy_legacy_template_argument): Likewise.
1781 (typy_template_argument): Likewise.
1782 (gdbpy_lookup_type): Likewise.
1783 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1784 * python/py-block.c (blpy_block_object): Likewise.
1785 (blpy_iter): Likewise.
1786 (blpy_get_start): Likewise.
1787 (blpy_get_end): Likewise.
1788 (blpy_get_function): Likewise.
1789 (blpy_get_superblock): Likewise.
1790 (set_block): Likewise.
1791 (block_to_block_object): Likewise.
1792 (block_object_to_block): Likewise.
1793 (blpy_is_valid): Likewise.
1794 (blpy_get_global_block): New function.
1795 (blpy_get_static_block): New function.
1796 (blpy_is_global): New function.
1797 (blpy_is_static): New function.
1798 * blockframe.c (block_innermost_frame): Likewise.
1799 * valops.c (value_of_variable): Likewise.
1800 * frame.h: Update prototypes.
1801 * python/python-internal.h: Likewise.
1802 * value.h: Likewise.
1803
4743b735
CC
18042011-10-19 Cary Coutant <ccoutant@google.com>
1805
1806 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1807 type_offset field.
1808
6caca83c
CC
18092011-10-19 Cary Coutant <ccoutant@google.com>
1810
1811 * dwarf2read.c (peek_abbrev_code): New function.
1812 (dw2_get_file_names): Check for dummy compilation units.
1813 (create_debug_types_hash_table): Likewise.
1814 (process_psymtab_comp_unit): Likewise.
1815 (load_partial_comp_unit): Likewise.
1816 (load_full_comp_unit): Likewise.
1817
43136979
AR
18182011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1819
1820 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1821 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1822 pt_phdr if PT_PHDR was found.
1823
0a07729b
TT
18242011-10-17 Joost van der Sluis <joost@cnoc.nl>
1825
1826 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1827 type or "<unnamed type"> when there is no name assigned.
1828 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1829 avoid a sigint when no name is assigned.
1830
21ae7a4d
JK
18312011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Revert:
1834 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 * dwarf2expr.c (ctx_no_read_reg): New function.
1836 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1837 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1838 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1839 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1840
32d1c362
DE
18412011-10-16 Doug Evans <dje@google.com>
1842
1843 * NEWS: Document python gdb.printing.register_pretty_printer's new
1844 `replace' parameter.
1845
da096638
KS
18462011-10-14 Keith Seitz <keiths@redhat.com>
1847
1848 PR c++/13225
1849 * eval.c (evaluate_subexp_standard): Do not construct
1850 an array of types; pass the value array directly to
1851 find_overload_match.
1852 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1853 (rank_function): Take an array of values instead of types.
1854 (rank_one_type): Add struct value * parameter.
1855 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1856 (rank_function): For each argument, pass the argument's
1857 value to rank_one_type.
1858 (rank_one_type): Add VALUE parameter.
1859 If the parameter type is a pointer and the argument type
1860 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1861 VALUE is zero.
1862 Update all calls to rank_one_type, passing NULL for new
1863 VALUE parameter.
1864 * valarith.c (value_user_defined_cpp_op): Do not construct
1865 an array of types; pass the value array directly to
1866 find_overload_match.
1867 * valops.c (find_overload_method_list): Take an array of
1868 values instead of types.
1869 Save the type of OBJP for later use.
1870 Update calls to find_oload_champ, and find_oload_champ_namespace.
1871 (find_oload_champ_namespace): Take an array of values instead
1872 of types.
1873 (find_oload_champ_namespace_loop): Likewise.
1874 (find_oload_champ): Likewise.
1875 (classify_oload_match): Inspect all arguments
1876 until INCOMPATIBLE is found. Return the worst badness found
1877 otherwise.
1878 (compare_parameters): Update call to rank_one_type.
1879 * value.h (find_overload_match): Take an array of values instead
1880 of types.
1881
3957565a
JK
18822011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 Drop lazy lm_info reading.
1885 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1886 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1887 (lm_info_read): New function.
1888 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1889 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1890 lm_dynamic_from_link_map.
1891 (lm_next, lm_prev, lm_name): Remove.
1892 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1893 initialization incl. read_memory. No longer use lm_name.
1894 (svr4_free_so): Drop lm_info->lm freeing.
1895 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1896 explicit lm_addr and lm initialization.
1897 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1898 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1899 lm_name.
1900
cb08cc53
JK
19012011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 Paul Pluzhnikov <ppluzhnikov@google.com>
1903
1904 * defs.h (struct so_list): New forward declaration.
1905 (make_cleanup_free_so): New declaration.
1906 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1907 (svr4_free_so): Move the function here from downwards. Handle NULL
1908 so->lm_info.
1909 (svr4_free_library_list): New.
1910 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1911 Use more cleanups. Use new parameter ignore_first instead of
1912 ignore_first_link_map_entry.
1913 (svr4_current_sos): New variable ignore_first, initialize it. New
1914 variable back_to, use it for svr4_free_library_list protection.
1915 (svr4_free_so): Remove - move upwards.
1916 * utils.c: Include solist.h.
1917 (do_free_so, make_cleanup_free_so): New functions.
1918
22c05d8a
JK
19192011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 Fix internal error regression.
1922 * value.c (value_primitive_field): Handle value_optimized_out. Move
1923 packed bitfields comment.
1924
d930d06e
TT
19252011-10-13 Tom Tromey <tromey@redhat.com>
1926
1927 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1928 always released.
1929
2ff6b080
TT
19302011-10-13 Tom Tromey <tromey@redhat.com>
1931
1932 * python/py-type.c (typy_has_key): Make 'field' const.
1933
d6c5869f
LM
19342011-10-13 Luis Machado <lgustavo@codesourcery.com>
1935
1936 * remote.c (remote_save_trace_data): Invert comparison.
1937
a70633a2
LM
19382011-10-13 Luis Machado <lgustavo@codesourcery.com>
1939
1940 * tracepoint.c (trace_save_command): Use filename instead of
1941 args when printing.
1942
e103e986
JK
19432011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1944
1945 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1946 if .size is 0.
1947
db24da6d
YQ
19482011-10-13 Yao Qi <yao@codesourcery.com>
1949
1950 PR gdb/12703
1951 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1952 whether insn is a 32-bit Thumb-2 instruction.
1953 (thumb_in_function_epilogue_p): Likewise.
1954 (thumb_get_next_pc_raw): Likewise.
1955 (arm_breakpoint_from_pc): Likewise.
1956
1d6edc3c
JK
19572011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1960 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1961 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1962 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1963 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1964 zero DATA.
1965 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1966 validity.
1967 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1968 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1969 clear DATA on zero SIZE.
1970
adabb602
DE
19712011-10-12 Doug Evans <dje@google.com>
1972
1973 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1974 header->first_die_offset here. All callers updated.
1975
5048e516
JK
19762011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1977
1978 Fix compatibility with texinfo versions older than 4.12.
1979 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1980 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1981 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1982 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1983 * configure: Regenerate.
1984 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1985 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1986 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1987
0574c78f
GB
19882011-10-12 Gary Benson <gbenson@redhat.com>
1989
1990 * breakpoint.h (pc_at_non_inline_function): Declare.
1991 * breakpoint.c (is_non_inline_function,
1992 pc_at_non_inline_function): New functions.
1993 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1994 if the stop is at a location where functions cannot be inlined.
1995
12d9289a
PA
19962011-10-12 Pedro Alves <pedro@codesourcery.com>
1997
1998 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1999 the core wanted them stopped, or if they now have a pending event
2000 to report.
ecf8e7f5
PA
2001 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2002 down to stop_and_resume_callback.
2003 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2004 having new pending events after calling linux_nat_filter_event.
12d9289a 2005
96408a79
SA
20062011-10-11 Sterling Augustine <saugustine@google.com>
2007
2008 * dwarf2read.c: Undo inadvertent changes in previous commit.
2009
9c6c53f7
SA
20102011-10-11 Sterling Augustine <saugustine@google.com>
2011
2012 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2013 logic.
2014
0e8aefe7
UW
20152011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2016
2017 * symfile.c (separate_debug_file_exists): Fix condition.
2018
349d1385
DM
20192011-10-11 David S. Miller <davem@davemloft.net>
2020
2021 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2022 static.
2023 * regcache.h (regcache_restore): Remove declaration.
2024
205c306f
DM
2025 * gdbarch.sh: New field 'long_long_align_bit'.
2026 * gdbarch.c, gdbarch.h: Regenerate.
2027 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2028 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2029
941b2081
JK
20302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2031
2032 Revert this part of:
2033 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2034 Support @entry in input expressions.
2035 * c-exp.y (ENTRY, unknown_cpp_name): New.
2036 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2037 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2038 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2039 (name_not_typename: ENTRY): New.
2040 (yylex): Recognize ENTRY.
2041
2042 Reimplement @entry in input expressions.
2043 * c-exp.y (ENTRY): New.
2044 (variable: name_not_typename ENTRY): New.
2045 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2046
3c4d7e12
PA
20472011-10-11 Pedro Alves <pedro@codesourcery.com>
2048
2049 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2050 parent and child's pids as soon as we detect a clone event.
2051 Adjust another debug message.
2052
ea23808b
PA
20532011-10-11 Pedro Alves <pedro@codesourcery.com>
2054
2055 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2056 not zombie instead of reading the whole file.
2057
904578ed
JK
20582011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2059
2060 Fix separate debuginfo warning with "remote:" access.
2061 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2062 * symfile.c (get_file_crc): New function with the code moved from ...
2063 (separate_debug_file_exists): ... this function, specifically variables
2064 buffer and count. New variable verified_as_different, set it. Remove
2065 file_crc initialization. Verify also if both files are not the same
2066 manually, if needed.
2067
51370a33
YQ
20682011-10-11 Yao Qi <yao@codesourcery.com>
2069
2070 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2071 to get address.
2072
0838fb57
DE
20732011-10-10 Doug Evans <dje@google.com>
2074
2075 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2076 libthread_db when we load libpthread or the main symbol file.
2077 (thread_db_inferior_created): New function.
2078 (_initialize_thread_db): Attach inferior_created observer.
2079 * linux-nat.c (linux_child_post_attach): Remove call to
2080 check_for_thread_db.
2081 (linux_child_post_startup_inferior): Ditto.
2082 * objfiles.h (OBJF_MAINLINE): Define.
2083 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2084 allocate_objfile when appropriate.
2085
623bd5b7
UW
20862011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2087
2088 PR gdb/13218
2089 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2090 Remove unused variables.
2091 (get_linux_version): Remove function.
2092 (_initialize_arm_linux_nat): Do not call it.
2093
79395f92
PA
20942011-10-10 Pedro Alves <pedro@codesourcery.com>
2095
2096 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2097 new clone lwp if the core asked it to stop. Don't pass on
2098 unexpected signals to the new clone; leave them pending instead.
2099
eff3df78
PA
21002011-10-10 Pedro Alves <pedro@codesourcery.com>
2101
2102 * linux-nat.c (resume_lwp): Remove redundant debug output.
2103
4b60df3d
PA
21042011-10-10 Pedro Alves <pedro@codesourcery.com>
2105
2106 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2107 last_resume_kind before clearing it, and use the copy instead to
2108 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2109 resume_clear_callback in the non-stop path too.
2110
6501578c
YQ
21112011-10-09 Yao Qi <yao@codesourcery.com>
2112
2113 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2114 Honor OPTIONS and VAL's type.
2115 (common_val_print, value_print): Update to pass one more parameter.
2116
5a56e9c5
DE
21172011-10-09 Doug Evans <dje@google.com>
2118
2119 Add new "alias" command.
2120 * NEWS: Mention new command.
2121 * command.h (valid_user_defined_cmd_name_p): Declare.
2122 * defs.h (make_cleanup_dyn_string_delete): Declare.
2123 * utils.c: #include "dyn-string.h".
2124 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2125 * cli/cli-cmds.c: #include "dyn-string.h".
2126 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2127 (init_cli_cmds): Add new command.
2128 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2129
509f0fd9
JK
21302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 Fix compatibility with older GCCs.
2133 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2134 * stack.c (read_frame_arg): Initialize val_deref.
2135
2bda9cc5
JK
21362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Entry values NEWS entries, DWARF disassembly support.
2139 * NEWS: New entry values entry.
2140 (set print entry-values, show print entry-values)
2141 (set debug entry-values, show debug entry-values): New entries.
2142 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2143 indent. Remove variable start. Move header printing out. Respect
2144 INDENT. Support DW_OP_GNU_entry_value.
2145 (locexpr_describe_location_1): Move the header printing here, extend
2146 the disassemble_dwarf_expression passed parameters.
2147
a471c594
JK
21482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 Display @entry parameter values even for references.
2151 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2152 coerce_ref_if_computed.
2153 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2154 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2155 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2156 existing push_dwarf_reg_entry_value call. Add new detection calling
2157 dwarf_block_to_dwarf_reg_deref. Update the error message.
2158 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2159 * dwarf2expr.h
2160 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2161 parameter deref_size, describe it in the comment.
2162 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2163 (dwarf_block_to_dwarf_reg_deref): New declaration.
2164 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2165 deref_size, describe it in the function comment. New variables
2166 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2167 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2168 describe it in the function comment. Fetch the alternative block
2169 accoring to DEREF_SIZE.
2170 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2171 (entry_data_value_free_closure, entry_data_value_funcs): New.
2172 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2173 outer_val, target_val, val and addr. Try to fetch and create also
2174 referenced value content.
2175 (pieced_value_funcs): NULL value for coerce_ref.
2176 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2177 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2178 coerce_ref_if_computed.
2179 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2180 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2181 * stack.c (read_frame_arg): Compare also dereferenced values.
2182 * value.c (value_computed_funcs): Make the parameter v const, use
2183 value_lval_const for it.
2184 (value_lval_const, coerce_ref_if_computed): New function.
2185 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2186 * value.h (struct lval_funcs): New field coerce_ref.
2187 (value_computed_funcs): Make the parameter v const.
2188 (value_lval_const, coerce_ref_if_computed): New declarations.
2189
36b11add
JK
21902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2191
2192 Support @entry in input expressions.
2193 * c-exp.y (ENTRY, unknown_cpp_name): New.
2194 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2195 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2196 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2197 (name_not_typename: ENTRY): New.
2198 (yylex): Recognize ENTRY.
2199 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2200 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2201 Likewise.
2202 * parse.c (operator_length_standard): Likewise.
2203 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2204
3343315b
JK
22052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 Display referenced values in backtraces.
2208 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2209 * stack.c (print_frame_arg): Likewise.
2210
ac71a68c
JK
22112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2212
2213 Make some lval_funcs methods to default on NULL.
2214 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2215 NULL.
2216 (value_assign): Check if lval_computed write method is NULL.
2217 * value.h (struct lval_funcs): Comment NULL values for read and write
2218 methods.
2219
e18b2753
JK
22202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 Display @entry parameter values (without references).
2223 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2224 New functions.
2225 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2226 New declarations.
2227 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2228 entry record.
2229 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2230 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2231 functions.
2232 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2233 (loclist_read_variable_at_entry): New function.
2234 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2235 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2236 DW_AT_location, call dwarf_block_to_sp_offset for it.
2237 * frame.h (print_entry_values_no, print_entry_values_only)
2238 (print_entry_values_preferred, print_entry_values_if_needed)
2239 (print_entry_values_both, print_entry_values_compact)
2240 (print_entry_values_default, print_entry_values): New declarations.
2241 (struct frame_arg): New field entry_kind.
2242 (read_frame_arg): New parameter entryargp.
2243 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2244 arg->entry_kind. Optionally print the `@entry' suffix.
2245 (list_args_or_locals): New variable entryarg, initialize it.
2246 Initialize also entry_kind of arg and entryarg. Conditionalize
2247 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2248 xfree for entryarg.error.
2249 * stack.c (print_entry_values_no, print_entry_values_only)
2250 (print_entry_values_preferred, print_entry_values_if_needed)
2251 (print_entry_values_both, print_entry_values_compact)
2252 (print_entry_values_default, print_entry_values_choices)
2253 (print_entry_values): New variables.
2254 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2255 print the `@entry' suffix, possibly in combination for
2256 print_entry_values_compact.
2257 (read_frame_arg): New parameter entryargp, new variables entryval,
2258 entryval_error and val_equal. Read in also entryargp, respect
2259 print_entry_values, compare the values using val_equal, fill in also
2260 argp->entry_kind (together with entryargp->entry_kind).
2261 (print_frame_args): New variable entryarg, initialize it.
2262 Conditionalize print_frame_arg for arg, add print_frame_arg for
2263 entryarg. Call xfree for entryarg.error.
2264 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2265 * symtab.h (struct symbol_computed_ops): New field
2266 read_variable_at_entry.
2267
93d86cef
JK
22682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2269
2270 Code reshuffle.
2271 * frame.h (struct frame_arg): New definition.
2272 (read_frame_arg): New declaration.
2273 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2274 (list_args_or_locals): ... the code here. New variable arg, call
2275 read_frame_arg and list_arg_or_local with it. Unify the
2276 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2277 arg.error.
2278 * stack.c (print_frame_arg): New functiom from the code of
2279 print_frame_args.
2280 (read_frame_arg): New function.
2281 (print_frame_args): Remove variable val. New variable arg, call
2282 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2283
2d6c5dc2
JK
22842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 Protect entry values against self tail calls.
2287 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2288 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2289
111c6489
JK
22902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 Recognize virtual tail call frames.
2293 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2294 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2295 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2296 * dwarf2-frame-tailcall.c: New file.
2297 * dwarf2-frame-tailcall.h: New file.
2298 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2299 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2300 REGS.PREV only after CIE execution.
2301 (struct dwarf2_frame_cache): New field tailcall_cache.
2302 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2303 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2304 parts, try to find entry_cfa_sp_offset. Call
2305 dwarf2_tailcall_sniffer_first.
2306 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2307 when appropriate.
2308 (dwarf2_frame_dealloc_cache): New function.
2309 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2310 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2311 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2312 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2313 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2314 * dwarf2loc.c (func_addr_to_tail_call_list)
2315 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2316 (call_site_find_chain_1, call_site_find_chain): New.
2317 * dwarf2loc.h (struct call_site_chain): New.
2318 (call_site_find_chain): New declaration.
2319 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2320 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2321 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2322 * stack.c (frame_info): Support also TAILCALL_FRAME.
2323
bb984ff1
JK
23242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 Tail call sites reader implementation.
2327 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2328 fill in TYPE_TAIL_CALL_LIST.
2329 * gdbtypes.h (struct func_type): New field tail_call_list.
2330 (struct call_site): New field tail_call_next.
2331 (TYPE_TAIL_CALL_LIST): New definition.
2332
8e3b41a9
JK
23332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2334
2335 Implement basic support for DW_TAG_GNU_call_site.
2336 * block.c: Include gdbtypes.h and exceptions.h.
2337 (call_site_for_pc): New function.
2338 * block.h (call_site_for_pc): New declaration.
2339 * defs.h: Include hashtab.h.
2340 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2341 declarations.
2342 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2343 ctx_no_push_dwarf_reg_entry_value.
2344 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2345 (dwarf_block_to_dwarf_reg): New function.
2346 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2347 (ctx_no_push_dwarf_reg_entry_value): New function.
2348 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2349 push_dwarf_reg_entry_value.
2350 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2351 declarations.
2352 * dwarf2loc.c: Include gdbcmd.h.
2353 (dwarf_expr_ctx_funcs): New forward declaration.
2354 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2355 (dwarf_expr_reg_to_entry_parameter)
2356 (dwarf_expr_push_dwarf_reg_entry_value): New.
2357 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2358 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2359 (needs_dwarf_reg_entry_value): New function.
2360 (needs_frame_ctx_funcs): Install it.
2361 (_initialize_dwarf2loc): New function.
2362 * dwarf2loc.h (entry_values_debug): New declaration.
2363 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2364 (read_call_site_scope): New forward declaration.
2365 (process_full_comp_unit): Copy call_site_htab.
2366 (process_die): Support DW_TAG_GNU_call_site.
2367 (read_call_site_scope): New function.
2368 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2369 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2370 (cleanup_htab): Delete.
2371 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2372 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2373 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2374 FIELD_LOC_KIND_DWARF_BLOCK.
2375 * gdbtypes.h (enum field_loc_kind): New entry
2376 FIELD_LOC_KIND_DWARF_BLOCK.
2377 (struct main_type): New loc entry dwarf_block.
2378 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2379 (TYPE_FIELD_DWARF_BLOCK): New.
2380 * python/py-type.c: Include dwarf2loc.h.
2381 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2382 internal_error call on unknown FIELD_LOC_KIND.
2383 * symtab.h (struct symtab): New field call_site_htab.
2384 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2385 (core_addr_hash, core_addr_eq): New functions.
2386
b6cdc2c1
JK
23872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 Code reshuffle.
2390 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2391 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2392 calling_convention under func_stuff there.
2393 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2394 (init_type) <TYPE_CODE_FUNC>: Likewise.
2395 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2396 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2397 * gdbtypes.h (enum type_specific_kind): Change
2398 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2399 (struct main_type) <type_specific>: Change calling_convention to
2400 func_stuff. Move calling_convention to ...
2401 (struct func_type): ... this new struct.
2402 (INIT_FUNC_SPECIFIC): New #define.
2403 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2404
181cebd4
JK
24052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2408 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2409 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2410 ctx->ref_addr_size. Handle its invalid value.
2411 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2412 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2413 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2414 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2415 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2416 (dwarf2_per_cu_ref_addr_size): New function.
2417
c471e790
JK
24182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2419
2420 Code cleanup.
2421 * dwarf2read.c (per_cu_header_read_in): New function.
2422 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2423 variables cu_header_local and cu_headerp.
2424
741f5e3c
JK
24252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2426
2427 Fix initial language detection with -readnow.
2428 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2429 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2430 searches only for global symbols.
2431
a73d2258
JK
24322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2433
2434 Fix printed anonymous struct name.
2435 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2436 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2437 (anonymous_struct_prefix): New function.
2438 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2439 (dwarf2_name): Strip for anonymous structs any prefixes.
2440
749fd4ea
DE
24412011-10-07 Doug Evans <dje@google.com>
2442
1fa57852
DE
2443 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2444 `replace'.
2445
690a4937
DE
2446 * python/lib/gdb/printing.py: Whitespace cleanup.
2447
749fd4ea
DE
2448 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2449 warning.
2450
4c38200f
PA
24512011-10-07 Pedro Alves <pedro@codesourcery.com>
2452
2453 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2454 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2455 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2456 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2457 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2458 (arm_linux_remove_watchpoint): Adjust.
2459 * i386-linux-nat.c (i386_linux_dr_set_control)
2460 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2461 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2462 (ia64_linux_remove_watchpoint): Adjust.
2463 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2464 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2465 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2466 (ppc_linux_insert_mask_watchpoint)
2467 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2468 (ppc_linux_remove_watchpoint): Adjust.
2469 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2470 Adjust.
2471
b7ff339d
CV
24722011-10-07 Corinna Vinschen <vinschen@redhat.com>
2473
2474 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2475 (clear_win32_environment): New function for Cygwin to clear out
2476 Win32 environment.
2477 (windows_create_inferior): Prepare new environment from in_env
2478 for Cygwin, too.
2479
f287c1f3
PM
24802011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2481
5631e596 2482 PR python/13264
f287c1f3
PM
2483 * python/py-value.c (valpy_call): Check that arguments are
2484 a tuple.
2485 (is_intlike): Remove call to CHECK_TYPEDEF.
2486 (valpy_nonzero): Catch GDB exceptions.
2487 (valpy_absolute): Ditto.
2488 (valpy_lazy_string): Ditto.
2489 (valpy_call): Ditto.
2490 (valpy_get_is_optimized_out): Ditto.
2491 (valpy_long): Ditto.
2492 (valpy_float): Ditto.
2493 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2494 (valpy_richcompare): Ditto.
2495
03583c20
UW
24962011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2497
2498 * inferior.h (disable_randomization): Declare.
2499 * infrun.c (disable_randomization): New global variable.
2500 (show_disable_randomization): New function.
2501 (set_disable_randomization): Likewise.
2502 (_initialize_infrun): Install set/show disable-randomization
2503 commands.
2504 * linux-nat.c (disable_randomization): Remove.
2505 (show_disable_randomization): Likewise.
2506 (set_disable_randomization): Likewise.
2507 (_initialize_linux_nat): No longer install set/show
2508 disable-randomization commands here.
2509 (linux_nat_supports_disable_randomization): New function.
2510 (linux_nat_add_target): Install it.
2511 * remote.c (PACKET_QDisableRandomization): New enum value.
2512 (remote_protocol_packets): Support QDisableRandomization.
2513 (_initialize_remote): Likewise.
2514 (remote_supports_disable_randomization): New function.
2515 (init_remote_ops): Install it.
2516 (extended_remote_supports_disable_randomization): New function.
2517 (init_extended_remote_ops): Install it.
2518 (extended_remote_disable_randomization): New function.
2519 (extended_remote_create_inferior_1): Call it.
2520 * target.h (struct target_ops): Add to_supports_disable_randomization.
2521 (target_supports_disable_randomization): Add prototype.
2522 * target.c (target_supports_disable_randomization): New function.
2523 (find_default_supports_disable_randomization): Likewise.
2524 (init_dummy_target): Install it.
2525
20c168b5
KP
25262011-10-07 Kevin Pouget <kevin.pouget@st.com>
2527
2528 Allow Python notification of new object-file loadings.
2529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2530 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2531 Add build rule for this file.
2532 * python/py-event.h (emit_new_objfile_event): New prototype.
2533 (newobjfile): New Python event emitter.
2534 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2535 Python event registry.
2536 * python/py-inferior.c: Include objfiles.h
2537 (python_new_objfile): New function.
2538 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2539 observers.
2540 * python/py-newobjfileevent.c: New file.
2541 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2542 prototype.
2543 * python/python.c (_initialize_python): Add
2544 gdbpy_initialize_new_objfile_event call.
2545 * NEWS: Add item for new Python event "gdb.newobjfile"
2546
b1c8db38
TG
25472011-10-05 Tristan Gingold <gingold@adacore.com>
2548
2549 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2550 Extract the ravenscar task name from the symbol for the atcb.
2551
0dab82e9
PK
25522011-10-04 Paul Koning <paul_koning@dell.com>
2553
2554 * python/py-type.c (typy_make_iter): Add forward declaration.
2555 (typy_fields_items): Use the gdb.Type iterator.
2556
84ad80e6
PK
25572011-10-04 Paul Koning <paul_koning@dell.com>
2558
2559 * NEWS: Add entry for Python gdb.Type mapping methods.
2560
cb6be26b
KP
25612011-10-04 Kevin Pouget <kevin.pouget@st.com>
2562
2563 PR python/12691: Add the inferior to Python exited event
2564 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2565 to exited_event.
2566 * python/py-event.h (emit_exited_event): Likewise
2567 * python/-inferior.c (python_inferior_exit): Likewise
2568
6005b210
JB
25692011-10-03 Joel Brobecker <brobecker@adacore.com>
2570
2571 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2572 in output of -ada-task-info GDB/MI command.
2573
75082e8c
JB
25742011-10-03 Joel Brobecker <brobecker@adacore.com>
2575
2576 * ada-lang.h (struct inferior): Declare.
2577 (print_ada_task_info): Add declaration.
2578 * ada-tasks.c (print_ada_task_info): Make non-static.
2579 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2580 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2581 * mi/mi-main.c: #include "ada-lang.h".
2582 (mi_cmd_list_features): Add "ada-task-info" to the list
2583 of supported features.
2584 (mi_cmd_ada_task_info): New function.
2585
7ed7d719
JB
25862011-10-03 Joel Brobecker <brobecker@adacore.com>
2587
2588 * python/python.c (python_run_simple_file): New function.
2589 (source_python_script, source_python_script_for_objfile):
2590 Replace call to PyRun_SimpleFile by call to
2591 python_run_simple_file.
2592
3fcaed38
PK
25932011-10-03 Paul Koning <paul_koning@dell.com>
2594
2595 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2596 (value_to_value_object): Fetch value if it was lazy.
2597
8e5c319d
JK
25982011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 Code cleanup.
2601 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2602 Rearrange the code for it.
2603
dd11a36c
JB
26042011-10-02 Joel Brobecker <brobecker@adacore.com>
2605
2606 * breakpoint.c (bkpt_print_recreate): Add call to
2607 print_recreate_thread.
2608
723b724b
MF
26092011-09-29 Mike Frysinger <vapier@gentoo.org>
2610
2611 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2612 PTRACE_GETFDPIC_INTERP): Define.
2613
412946b6
YQ
26142011-09-28 Yao Qi <yao@codesourcery.com>
2615
2616 * symfile.c (add_symbol_file_command): Update message on usage.
2617
a73bb892
PK
26182011-09-28 Paul Koning <paul_koning@dell.com>
2619
2620 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2621 (typy_length, typy_get, typy_has_key, typy_make_iter)
2622 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2623 (typy_iterator_iter, typy_iterator_iternext)
2624 (typy_iterator_dealloc): New functions to implement standard
2625 Python mapping methods on gdb.Type object.
2626 (gdb.TypeIterator): New Python type.
2627 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2628
fe10a582
DM
26292011-09-28 David S. Miller <davem@davemloft.net>
2630
2631 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2632 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2633 * sparc-tdep.c (sparc_complex_floating_p): New function.
2634 (sparc32_store_arguments): Handle complex floats.
2635 (sparc32_extract_return_value): Likewise.
2636 (sparc32_store_return_value): Likewise.
2637 (sparc32_stabs_argument_has_addr): Likewise.
2638 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2639 (sparc64_store_floating_fields): Handle complex floats.
2640 (sparc64_store_arguments): Likewise.
2641 (sparc64_store_return_value): Likewise.
2642
c93dbcba
EZ
26432011-09-28 Eli Zaretskii <eliz@gnu.org>
2644
2645 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2646 before the change on 2006-12-09.
2647 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2648 generates the environment block for CreateProcessA, modulo the
2649 Cygwin-specific parts that are not needed here.
2650
f00c55f8
TG
26512011-09-27 Tristan Gingold <gingold@adacore.com>
2652
2653 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2654 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2655 (darwin_solib_get_all_image_info_addr_at_init): New function.
2656 (darwin_solib_read_all_image_info_addr): Likewise.
2657 (darwin_solib_create_inferior_hook): Use the above two functions.
2658 * darwin-nat.c (darwin_execvp): Renames retval to res.
2659 (darwin_read_write_inferior): Update comment.
2660 (darwin_read_dyld_info): New function.
2661 (darwin_xfer_partial): Handle DYLD_INFO.
2662
6710bf39
SS
26632011-09-27 Stan Shebs <stan@codesourcery.com>
2664
2665 Add return address collection for tracepoints.
2666 * tracepoint.c (encode_actions_1): Add case for $_ret.
2667 (validate_actionline): Check for $_ret.
2668 (trace_dump_actions): Ditto.
2669 * ax-gdb.h (gen_trace_for_return_address): Declare.
2670 * ax-gdb.c: Include arch-utils.h.
2671 (gen_trace_for_return_address): New function.
2672 (agent_command): Add return address special case.
2673 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2674 (amd64_gen_return_address): New function.
2675 (amd64_init_abi): Call it.
2676 * i386-tdep.c: Include ax.h and ax-gdb.h.
2677 (i386_gen_return_address): New function.
2678 (i386_init_abi): Call it.
2679 * arch-utils.h (default_gen_return_address): Declare.
2680 * arch-utils.c (default_gen_return_address): New function.
2681 * gdbarch.sh (gen_return_address): New method.
2682 * gdbarch.h, gdbarch.c: Regenerate.
2683
e04e5beb
JM
26842011-09-23 Joseph Myers <joseph@codesourcery.com>
2685
2686 PR gdb/13079
2687 * i386-tdep.c (i386_frame_align): New.
2688 (i386_gdbarch_init): Use i386_frame_align.
2689
f3d6df6d
YQ
26902011-09-23 Yao Qi <yao@codesourcery.com>
2691
2692 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2693 to get address.
2694
e69860f1
TG
26952011-09-22 Tristan Gingold <gingold@adacore.com>
2696
2697 * fork-child.c (fork_inferior): Add exec_fun parameter.
2698 Call exec_fun or execvp.
2699 * inferior.h: Adjust prototype.
2700 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2701 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2702 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2703 * procfs.c (procfs_create_inferior): Ditto.
2704 * darwin-nat.c (darwin_execvp): New function.
2705 (darwin_create_inferior): Use it.
2706
4b51d87b
YQ
27072011-09-22 Yao Qi <yao@codesourcery.com>
2708
2709 * infrun.c (context_switch): Print debug message when switching to
2710 a different thread.
2711
56b9d9ac
UW
27122011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2713
2714 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2715 complex and vector types.
2716 (s390_return_value_convention): Likewise.
2717
2718 (s390_value_from_register): Call check_typedef.
2719 (extend_simple_arg): Likewise.
2720 (alignment_of): Likewise.
2721 (s390_push_dummy_call): Likewise.
2722 (s390_return_value): Likewise.
2723
b2cd6b29
JM
27242011-09-21 Joseph Myers <joseph@codesourcery.com>
2725
2726 * event-top.c (async_disconnect): If an exception is thrown from
2727 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2728 catch_errors.
2729 * top.c (quit_cover): Return void and take no arguments.
2730 * top.h (quit_cover): Update prototype.
2731
67ba4e42
JM
27322011-09-20 Joseph Myers <joseph@codesourcery.com>
2733
2734 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2735 current_uiout, not uiout.
2736
562f943b
DE
27372011-09-19 Doug Evans <dje@google.com>
2738
2739 * python/py-auto-load.c (source_section_scripts): Fix file
2740 descriptor leak.
2741 * python/python.c (source_python_script_for_objfile): Tweak comments.
2742
34518530
YQ
27432011-09-18 Yao Qi <yao@codesourcery.com>
2744 Ulrich Weigand <ulrich.weigand@linaro.org>
2745
2746 Support displaced stepping for Thumb 16-bit insns.
2747 * arm-tdep.c (THUMB_NOP) Define.
2748 (thumb_copy_unmodified_16bit): New.
2749 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2750 (thumb_copy_alu_reg): New.
2751 (arm_copy_svc): Move some common code to ...
2752 (install_svc): ... here. New.
2753 (thumb_copy_svc): New.
2754 (install_pc_relative): New.
2755 (thumb_copy_pc_relative_16bit): New.
2756 (thumb_decode_pc_relative_16bit): New.
2757 (thumb_copy_16bit_ldr_literal): New.
2758 (thumb_copy_cbnz_cbz): New.
2759 (cleanup_pop_pc_16bit_all): New.
2760 (thumb_copy_pop_pc_16bit): New.
2761 (thumb_process_displaced_16bit_insn): New.
2762 (thumb_process_displaced_32bit_insn): New.
2763 (thumb_process_displaced_insn): process thumb instruction.
2764
2765 Support displaced stepping for Thumb 32-bit insns.
2766 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2767 (thumb2_copy_preload): New.
2768 (thumb2_copy_copro_load_store): New.
2769 (thumb2_copy_b_bl_blx): New.
2770 (thumb2_copy_alu_imm): New.
2771 (thumb2_copy_load_reg_imm): New.
2772 (thumb2_copy_load_literal): New
2773 (thumb2_copy_block_xfer): New.
2774 (thumb_32bit_copy_undef): New.
2775 (thumb_32bit_copy_unpred): New.
2776 (thumb2_decode_ext_reg_ld_st): New.
2777 (thumb2_decode_svc_copro): New.
2778 (decode_thumb_32bit_store_single_data_item): New.
2779 (thumb_copy_pc_relative_32bit): New.
2780 (thumb_decode_pc_relative_32bit): New.
2781 (decode_thumb_32bit_ld_mem_hints): New.
2782 (thumb2_copy_table_branch): New
2783 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2784 instructions.
2785
2b16b2e3
YQ
27862011-09-18 Yao Qi <yao@codesourcery.com>
2787
2788 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2789 (install_b_bl_blx): Likewise.
2790
0f6f04ba
YQ
27912011-09-17 Yao Qi <yao@codesourcery.com>
2792
2793 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2794 (install_load_store): ... this. New.
2795 Change parameter BYTE to SIZE.
2796 (arm_copy_ldr_str_ldrb_strb): Update caller.
2797 (arm_decode_ld_st_word_ubyte): Update caller.
2798
e2d96639
YQ
27992011-09-17 Yao Qi <yao@codesourcery.com>
2800
2801 * infrun.c (displaced_step_fixup): Move some code ...
2802 (displaced_step_restore): ... here. New function.
2803 (handle_inferior_event): Cleanup displaced stepping state for both
2804 child and parent when get forked or vforked event.
2805 * regcache.c (get_thread_arch_aspace_regcache): New function.
2806 get_thread_arch_regcache (): Call it.
2807
a8123151
JB
28082011-09-16 Joel Brobecker <brobecker@adacore.com>
2809
2810 * ada-tasks.c (print_ada_task_info): New function, merging
2811 short_task_info and info_tasks together. Reimplement using
2812 ui-out instead of printing to stdout directly. Move the code
2813 building and checking the task list here, instead of leaving it
2814 in info_tasks_command.
2815 (info_task): Move the code building and checking the task
2816 list here, instead of leaving it in info_tasks_command.
2817 (info_tasks_command): Delete code building and checking
2818 the task list - moved elsewhere. Update calls to info_tasks
2819 and info_task.
2820
fbf06824
JB
28212011-09-16 Joel Brobecker <brobecker@adacore.com>
2822
2823 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2824
34a0bc90
JB
28252011-09-16 Joel Brobecker <brobecker@adacore.com>
2826
2827 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2828
79779fa9
JB
28292011-09-16 Joel Brobecker <brobecker@adacore.com>
2830
2831 * ada-lang.h (ada_build_task_list): Remove parameter
2832 `warn_if_null'.
2833 * ada-tasks.c (ada_build_task_list): Remove parameter
2834 `warn_if_null'. Adjust implementation and documentation.
2835 (valid_task_id, ada_get_environment_task)
2836 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2837 (info_tasks_command): Adjust implementation.
2838 (task_command): Likewise.
2839 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2840 to ada_build_task_list.
2841
e225eb91
JB
28422011-09-16 Joel Brobecker <brobecker@adacore.com>
2843
2844 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2845 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2846 (ada_tasks_inferior_data_handle): New static global.
2847 (get_ada_tasks_inferior_data): New function.
2848 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2849 (ada_get_environment_task, iterate_over_live_ada_tasks)
2850 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2851 Adjust.
2852 (ada_set_current_inferior_known_tasks_addr): New function.
2853 (read_known_tasks, ada_build_task_list, short_task_info)
2854 (info_tasks, info_task, info_tasks_command, task_command_1)
2855 (task_command, ada_task_list_changed): Adjust.
2856 (ada_tasks_invalidate_inferior_data): New function.
2857 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2858 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2859 * ada-lang.h (struct inferior): Add declaration.
2860 (ada_task_list_changed): Update profile.
2861 * remote-wtx-pd.c: #include "inferior.h".
2862 (switch_to_pd_internal): Update call to ada_task_list_changed.
2863
6da9ca05
JB
28642011-09-16 Joel Brobecker <brobecker@adacore.com>
2865
2866 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2867 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2868 (atcb_fieldno): Delete these static globals.
2869 (struct ada_tasks_pspace_data): New struct.
2870 (ada_tasks_pspace_data_handle): New static global.
2871 (get_ada_tasks_pspace_data): New function.
2872 (ada_tasks_invalidate_pspace_data): New function.
2873 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2874 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2875 (_initialize_tasks): Create this module's per-progspace
2876 data handle.
2877
dccd3cbd
JB
28782011-09-16 Joel Brobecker <brobecker@adacore.com>
2879
2880 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2881
f877b031
TG
28822011-09-16 Tristan Gingold <gingold@adacore.com>
2883
2884 * fork-child.c (fork_inferior): Update comment. Use alloca
2885 instead of xmalloc for argv. Move len and shell_command
2886 declarations in the block where they are used.
2887 Only call execvp. Factorize failure code.
2888
ae0c443d
JK
28892011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2890
2891 Code cleanup.
2892 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2893 `exp_element' instead of an element of the same and make the function
2894 static.
2895 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2896 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2897 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2898 Change argument of `write_exp_elt' function call.
2899 Remove extra spaces from comments.
2900 * parser-defs.h (write_exp_elt): Remove prototype.
2901
5af65ec0
PK
29022011-09-15 Paul Koning <paul_koning@dell.com>
2903
2904 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2905 count of item appended to list.
2906 * python/py-type.c (typy_fields): Likewise.
2907
72be8ccc
PK
29082011-09-15 Paul Koning <paul_koning@dell.com>
2909
883640a8 2910 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2911
92f6badc
KP
29122011-09-15 Kevin Pouget <kevin.pouget@st.com>
2913
2914 PR threads/12628
2915 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2916 processes with multiple threads.
2917 (inf_has_multiple_thread_cb): New function.
2918 (inf_has_multiple_threads): New function.
2919
0672bf41 29202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2921
2922 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2923 * python/py-inferior.c (GdbMethods): New Python method definition.
2924
6839b47f
KP
29252011-09-15 Kevin Pouget <kevin.pouget@st.com>
2926
2927 Handle multiple breakpoint hits in Python interface:
2928 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2929 variable to breakpoints.
2930 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2931 bps instead of single breakpoint. Fix some space typos.
2932 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2933 variable to breakpoints.
2934
672f9b60
KP
29352011-09-15 Kevin Pouget <kevin.pouget@st.com>
2936
2937 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2938 note if the breakpoint is internal.
2939
43675ae4
KP
29402011-09-15 Kevin Pouget <kevin.pouget@st.com>
2941
0672bf41 2942 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2943
15148d6a
PA
29442011-09-14 Pedro Alves <pedro@codesourcery.com>
2945
2946 * infrun.c (prepare_for_detach, wait_for_inferior)
2947 (fetch_inferior_event): Don't flush the register cache.
2948 * remote.c (struct stop_reply) <regcache>: Add comment.
2949
d83e736b
JK
29502011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2951
2952 Remove excessive DWARF expressions memory duplication.
2953 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2954 for block.data.
2955 (indirect_pieced_value): Remove variable result. Remove variable
2956 back_to and its use for baton.data.
2957 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2958 block.data.
2959 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2960 Update the function comment.
2961
c65b3e0d
PA
29622011-09-13 Pedro Alves <pedro@codesourcery.com>
2963
2964 * inferior.h (ALL_INFERIORS): New.
2965 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2966 for a stopped thread.
2967 (thread_db_find_new_threads): Look for threads in all inferiors.
2968
a1398e0c
PA
29692011-09-13 Pedro Alves <pedro@codesourcery.com>
2970
2971 * breakpoint.c (update_watchpoint): Handle the case of the
2972 watchpoint to update not being in the breakpoint list yet.
2973 (hw_watchpoint_use_count): New, factored out from
2974 hw_watchpoint_used_count.
2975 (hw_watchpoint_used_count): Rename to ...
2976 (hw_watchpoint_used_count_others): ... this. Add `except'
2977 parameter. Don't count resources of `except'. Use
2978 hw_watchpoint_use_count.
2979
30596231
PA
29802011-09-13 Pedro Alves <pedro@codesourcery.com>
2981
2982 * gdbthread.h (enum thread_state): Moved here.
2983 (struct thread_info): Rename `executing_' field to `executing' and
2984 `state_' to `state'.
2985 * thread.c (enum thread_state): Moved to gdbthread.h.
2986 (new_thread, add_thread_silent, delete_thread_1)
2987 (any_live_thread_of_process, thread_alive, set_running)
2988 (set_running, is_thread_state, any_running, is_executing)
2989 (set_executing, finish_thread_state, print_thread_info)
2990 (do_captured_thread_select): Adjust.
2991
bede5f5f
JK
29922011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2995 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2996
4801a9a3
PA
29972011-09-12 Pedro Alves <pedro@codesourcery.com>
2998 Matt Rice <ratmice@gmail.com>
2999
3000 PR gdb/13175
3001
3002 * interps.c (struct interp) <interpreter_out>: Delete field.
3003 (interp_new): Remove the data and uiout parameters and adjust.
3004 (interp_set): Only set the current_uiout from the interpreter's
3005 uiout after initializing the interpreter. Adjust call to
3006 init_proc.
3007 (interp_ui_out): Adjust to call procs->ui_out_proc.
3008 (interp_data, interp_name): New.
3009 * interps.h (interp_init_ftype): Add `self' parameter.
3010 (interp_ui_out_ftype): New typedef.
3011 (struct interp_procs) <ui_out_proc>: New method pointer.
3012 (interp_new): Remove the data and uiout parameters.
3013 (interp_data, interp_name): Declare.
3014 * tui/tui-interp.c (tui_init): Adjust prototype.
3015 (tui_ui_out): New.
3016 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3017 tui_out here. Adjust call to interp_new.
3018 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3019 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3020 (cli_ui_out): New.
3021 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3022 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3023 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3024 Initialize mi->uiout depending on the mi_version as extracted from
3025 the interpreter's name.
3026 (mi_ui_out): New.
3027 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3028 interp_new. Don't allocate the ui_out's of the interpreters here.
3029
d0afda03 30302011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3031
d0afda03 3032 * solib.c (solib_used): New function.
59145f8c
AR
3033 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3034 by another so_list object before freeing it.
3035
bdaf8d4a
JK
30362011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 Code cleanup.
3039 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3040 values.
3041
df15bd07
JK
30422011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 Code cleanup.
3045 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3046 (amd64_skip_xmm_prologue): ... this new function. Describe its
3047 parameters. No longer use amd64_prologue_line_bug.
3048 * defs.h (producer_is_gcc_ge_4): New declaration.
3049 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3050 (process_full_comp_unit): Update its caller. Remove
3051 amd64_prologue_line_bug initialization.
3052 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3053 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3054
25289eb2
PA
30552011-09-09 Pedro Alves <pedro@codesourcery.com>
3056
3057 * linux-nat.h (enum resume_kind): New.
3058 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3059 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3060 resume_stop on the new lwp.
25289eb2
PA
3061 (add_lwp): Set last_resume_kind as resume_continue by default.
3062 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3063 (resume_lwp): New, factored out from resume_callback. Also check
3064 for pending status in lp->waitstatus.
3065 (resume_callback): Reimplement.
3066 (resume_clear_callback): Set last_resume_kind as resume_stop.
3067 (resume_set_callback): Set last_resume_kind as resume_continue.
3068 (linux_nat_resume, linux_handle_extended_wait): Set
3069 last_resume_kind.
3070 (running_callback): Also check lp->waitstatus for pending events.
3071 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3072 is resume_step.
3073 (stop_and_resume_callback): Don't re-resume if the core wanted the
3074 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3075 using an invalidated pointer.
3076 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3077 SIGSTOPs if the core wanted the LWP to stop.
3078 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3079 wanted the lwp to stop. If the core wanted the lwp to stop, and
3080 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3081 of TARGET_SIGNAL_STOP.
3082 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3083 here. Instead, signal the lwp, and set the last_resume_kind to
3084 resume_stop.
3085
f687d035
PA
30862011-09-09 Pedro Alves <pedro@codesourcery.com>
3087
3088 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3089 -1 (error), if the lwp exits right after attaching.
3090
bc587a6b
DE
30912011-09-08 Doug Evans <dje@google.com>
3092
63d97a20
DE
3093 * py-cmd.c: Some minor formatting fixes.
3094 (gdbpy_parse_command_name): Rename text arg to name, make const.
3095 All callers updated.
3096 * python-internal.h (gdbpy_parse_command_name): Update.
3097
bc587a6b
DE
3098 * cli/cli-decode.c (add_cmd): Add comment.
3099
08711b9a
JK
31002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 PR breakpoints/12435
3103 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3104 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3105 * dwarf2read.c (process_full_comp_unit): Initialize
3106 amd64_prologue_line_bug.
3107 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3108
b2e7f004
JK
31092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3110
3111 Fix TUI screen corruption.
3112 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3113 batch_flag.
3114
8afd712c
JK
31152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 * findvar.c (read_var_value): Never return NULL, throw an error
3118 instead. Update the function comment. State symbol name in the error
3119 messages.
3120 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3121 read_var_value.
3122 * stack.c (print_frame_args): Likewise.
3123 * valops.c (value_of_variable): Likewise.
3124
b99b5f66
JK
31252011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * stack.c (print_frame_args): New variable except. Wrap
3128 read_var_value and common_val_print into TRY_CATCH.
3129
85bc8cb7
JK
31302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3133 caller to value_of_this.
3134 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3135 Twice.
3136 * valops.c (value_of_this): Remove parameter complain and variable ret.
3137 Update function comment. Never return NULL by this code.
3138 (value_of_this_silent): New function.
3139 * value.h (value_of_this): Remove parameter complain.
3140 (value_of_this_silent): New declaration.
3141
ede1849f
YQ
31422011-09-07 Yao Qi <yao@codesourcery.com>
3143
3144 * gdbthread.h (struct thread_info): Remove fields
3145 `stepping_through_solib_after_catch' and
3146 `stepping_through_solib_catchpoints'.
3147 * infrun.c (init_thread_stepping_state): Update.
3148 (process_event_stop_test, currently_stepping): Update.
3149 (currently_stepping_or_nexting_callback): Update.
3150
6aa27652
YQ
31512011-09-07 Yao Qi <yao@codesourcery.com>
3152
3153 * gdbthread.h (struct thread_info): Comment on field
3154 `step_after_step_resume_breakpoint'.
3155
00db5b94
PA
31562011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3157
3158 * remote.c (remote_console_output): Reindent.
3159
861152be
LM
31602011-09-06 Luis Machado <lgustavo@codesourcery.com>
3161
3162 * frame.c (has_stack_frames): Check for currently selected
3163 traceframe.
3164
ab821bc6
PA
31652011-09-06 Pedro Alves <pedro@codesourcery.com>
3166
3167 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3168 (set_async_annotation_level, set_async_prompt, pop_prompt)
3169 (push_prompt, new_async_prompt): Delete declarations.
3170 * top.h (get_prompt, set_prompt): Change prototype.
3171 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3172 declarations.
3173 * top.c (command_loop):
3174 (top_prompt): New global.
3175 (get_prefix, set_prefix, get_suffix, ): Delete.
3176 (get_prompt, set_prompt): Rewrite.
3177 (show_new_async_prompt): Rename to ...
3178 (show_prompt): ... this.
3179 (init_main): Adjust. Don't handle --annotate=2 here.
3180 * event-top.c (new_async_prompt): Delete.
3181 (the_prompts): Delete.
3182 (more_to_come): Make static.
3183 (display_gdb_prompt): Use top_level_prompt() to compute the top
3184 level prompt, and don't notify the before_prompt observers
3185 directly here. Always trick readline into not trying to display
3186 the prompt if sync_execution and displaying the primary prompt.
3187 If displaying a local/secondary prompt, always show it, even if
3188 sync_execution is set.
3189 (change_annotation_level): Delete.
3190 (top_level_prompt): New, based on change_annotation_level.
3191 (push_prompt, pop_prompt): Delete.
3192 (async_disable_stdin): No longer pushes prompt.
3193 (command_line_handler): No longer pushes or pops prompt. If more
3194 input is expected, call display_gdb_prompt with an explicit empty
3195 prompt.
3196 (async_stop_sig): Adjust.
3197 (set_async_annotation_level, set_async_prompt): Delete.
3198 * python/python.c (before_prompt_hook): Adjust.
3199
f1d90504
PA
32002011-09-05 Pedro Alves <pedro@codesourcery.com>
3201
3202 PR cli/13110
3203
3204 * infrun.c (fetch_inferior_event): Check if there's a selected
3205 thread before checking if the selected thread is executing.
3206
0f641c01
PA
32072011-09-05 Pedro Alves <pedro@codesourcery.com>
3208
3209 * inf-loop.c (execute_command): Don't check if the current thread
3210 if running before synchronously waiting for command completion.
3211 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3212 here.
3213 (normal_stop): Call async_enable_stdin here.
3214 * inf-loop.c (inferior_event_handler): Don't call
3215 async_enable_stdin, nor handle "set exec-done-display" here.
3216
30368258 32172011-09-04 Joel Brobecker <brobecker@adacore.com>
3218
3219 GDB 7.3.1 released.
3220
31916278
JB
32212011-09-04 Joel Brobecker <brobecker@adacore.com>
3222
3223 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3224
e8d56f18
JB
32252011-09-04 Joel Brobecker <brobecker@adacore.com>
3226
3227 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3228
5dd05d8c
JK
32292011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3230
3231 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3232
7d8e6458 32332011-09-02 Matt Rice <ratmice@gmail.com>
3234
3235 PR gdb/10720
3236 * event-top.c (cli_command_loop): Replace readline setup with
3237 direct call to display_gdb_prompt.
3238 (display_gdb_prompt): Do not call observer mechanism during
3239 synchronous execution.
3240
84636d28
PA
32412011-09-02 Pedro Alves <pedro@codesourcery.com>
3242
3243 * linux-nat.c (in_pid_list_p): New.
3244 (linux_record_stopped_pid): Delete.
3245 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3246 already attached to the LWP. Return an indication if so.
3247 (linux_nat_filter_event): Adjust.
3248 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3249 returning an indication to ignore this thread.
3250
b4a14fd0
PA
32512011-09-02 Pedro Alves <pedro@codesourcery.com>
3252
3253 * top.c: Include interps.h.
3254 (execute_command): If the target can async, but the interpreter is
3255 in sync mode, synchronously wait for the command to finish before
3256 returning.
3257 (execute_command_to_string): Force the interpreter to sync mode.
3258 * infrun.c: Include interps.h.
3259 (fetch_inferior_event): Don't restore the prompt yet if the
3260 interpreter is in sync mode.
3261 * interps.c (interpreter_async): New global.
3262 * interps.h (interpreter_async): Declare.
3263 * inf-loop.c: Include interps.h.
3264 (inferior_event_handler): Don't print the language change or run
3265 breakpoint commands yet if the interpreter in is sync mode.
3266 * main.c (captured_command_loop): Flip the interpreter to async
3267 mode.
3268 * cli/cli-script.c: Include interps.h.
3269 (execute_user_command, while_command, if_command): Force the
3270 interpreter to sync mode.
3271 * python/python.c: Include interps.h.
3272 (python_command, execute_gdb_command): Force the interpreter to
3273 sync mode.
3274
c709acd1
PA
32752011-09-02 Pedro Alves <pedro@codesourcery.com>
3276
3277 * value.c (show_convenience): Catch errors thrown while printing
3278 each internal variable.
3279 * infrun.c (validate_siginfo_access): New function.
3280 (siginfo_value_read, siginfo_value_write): Call it.
3281
9655e943
JK
32822011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 Revert:
3285 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3286 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3287 attribute.
3288
cb457ae2
YQ
32892011-08-29 Yao Qi <yao@codesourcery.com>
3290
3291 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3292 (cmp_name): New.
3293 (enable_break2): Update caller.
3294 * solib-frv.c (bfd_lookup_symbol): Removed.
3295 (cmp_name): New.
3296 (enable_break2): Update caller.
3297 * solib-pa64.c (bfd_lookup_symbol): Removed.
3298 (cmp_name): New.
3299 * solib-svr4.c (bfd_lookup_symbol): Removed.
3300 (cmp_name_and_sec_flags): New.
3301 (enable_break): Update caller.
3302 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3303 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3304 (gdb_bfd_lookup_symbol): New.
3305 * solib.h: Functions declarations.
3306
83d1a36a
YQ
33072011-08-29 Yao Qi <yao@codesourcery.com>
3308
3309 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3310 and solib-dsbt.o.
3311
c04b3e8f
JK
33122011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3313
3314 Fix TUI stepi on code without symbols.
3315 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3316 current PC instead.
3317
cb0fd152
JK
33182011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3319
3320 Code cleanup.
3321 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3322 and the static keyword.
3323 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3324 Make prefix an array.
3325 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3326 * mi/mi-main.c (get_register): Remove stb initialization and the static
3327 keyword.
3328
91174723
JK
33292011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Code cleanup - make mi_opt const.
3332 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3333 opts const.
3334 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3335 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3336 (mi_cmd_env_dir): Likewise.
3337 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3338 (mi_cmd_target_file_put): Likewise.
3339 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3340 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3341 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3342 (mi_valid_noargs): Make opts const.
3343 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3344 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3345 (mi_cmd_data_read_memory): Likewise.
3346 (mi_cmd_data_read_memory_bytes): Likewise.
3347 (mi_cmd_data_write_memory): Likewise.
3348
5068b8e8 33492011-08-26 Matt Rice <ratmice@gmail.com>
3350
3351 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3352 bcache_xmalloc, replace bcache_xmalloc with call to
3353 psymbol_bcache_init for psymbol_cache.
3354 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3355
a4f2ce05
JK
33562011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3357
3358 * inf-loop.c (inferior_event_handler): Add exception_print in
3359 INF_EXEC_COMPLETE.
3360
353d1d73
JK
33612011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3362
3363 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3364 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3365 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3366 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3367 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3368 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3369 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3370 * infrun.c (fetch_inferior_event): Call
3371 make_bpstat_clear_actions_cleanup.
3372 * top.c (execute_command): New variable cleanup_if_error, call
3373 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3374 * utils.c (do_bpstat_clear_actions_cleanup)
3375 (make_bpstat_clear_actions_cleanup): New functions.
3376
3ced3da4
PA
33772011-08-26 Pedro Alves <pedro@codesourcery.com>
3378
3379 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3380 either the parent or the child forks. Rename a couple locals.
3381
a9f4bb21
PA
33822011-08-26 Pedro Alves <pedro@codesourcery.com>
3383
3384 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3385 library call. Avoid reading the `status' local if all waitpid
3386 calls failed.
3387
e5798bef
PA
33882011-08-26 Pedro Alves <pedro@codesourcery.com>
3389
3390 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3391 opening /proc/PID/task always succeeds.
3392
edb2aadf
AR
33932011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3394
3395 * linespec.c (symtab_from_filename): Check for the end of string.
3396
0d932b2f
MK
33972011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3398
3399 PR mi/11912
3400 * varobj.c (cplus_describe_child): Add the keyword
3401 'class' to the output of the method when dealing
3402 with a cast to a base class.
3403
e93ca019
JK
34042011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3405
3406 No functionality change.
3407 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3408 function comment a reference, new variables tp and bs, move here code
3409 from throw_exception.
3410 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3411 describe it in the comment.
3412 * exceptions.c (throw_exception): Remove variable tp, move the code for
3413 bpstat_clear_actions to bpstat_clear_actions.
3414
13da1c97
LM
34152011-08-24 Luis Machado <lgustavo@codesourcery.com>
3416
3417 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3418 * linux-nat.c: Include linux-procfs.h.
3419 (linux_proc_get_tgid): Move to ...
3420 * common/linux-procfs.c: ... here. New file.
3421 * common/linux-procfs.h: New file.
3422 * linux-thread-db.c: Include linux-procfs.h.
3423 * Makefile.in: Update dependencies.
3424 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3425 * config/arm/linux.mh: Likewise.
3426 * config/i386/linux.mh: Likewise.
3427 * config/i386/linux64.mh: Likewise.
3428 * config/ia64/linux.mh: Likewise.
3429 * config/m32r/linux.mh: Likewise.
3430 * config/m68k/linux.mh: Likewise.
3431 * config/mips/linux.mh: Likewise.
3432 * config/pa/linux.mh: Likewise.
3433 * config/pa/linux.mh: Likewise.
3434 * config/powerpc/linux.mh: Likewise.
3435 * config/powerpc/ppc64-linux.mh: Likewise.
3436 * config/powerpc/spu-linux.mh: Likewise.
3437 * config/sparc/linux.mh: Likewise.
3438 * config/sparc/linux64.mh: Likewise.
3439 * config/xtensa/linux.mh: Likewise.
3440
4e5c165d
HZ
34412011-08-24 Hui Zhu <teawater@gmail.com>
3442
3443 * tracepoint.c (cond_string_is_same): New function.
3444 (find_matching_tracepoint): Add condition check
3445 by cond_string_is_same.
3446
6e2f5b22
JK
34472011-08-23 Josh Matthews <josh@joshmatthews.net>
3448
3449 Fix build error in Darwin port.
3450 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3451
abf85f46
JK
34522011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 Code cleanup.
3455 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3456 (command_line_is_silent): New function.
3457 (bpstat_do_actions_1): No longer use commands_left, use
3458 command_line_is_silent for commands.
3459 (bpstat_alloc): Remove clearing of commands_left.
3460 (bpstat_stop_status): Remove initialization of commands_left, use
3461 command_line_is_silent.
3462 * breakpoint.h (struct bpstats): Remove commands_left.
3463
3a93a0c2
KS
34642011-08-18 Keith Seitz <keiths@redhat.com>
3465
3466 PR c++/12266
3467 * cp-name-parser.y (struct demangle_info): Remove unused
3468 member PREV.
3469 (d_grab): Likewise.
3470 (allocate_info): Change return type to struct demangle_info *.
3471 Always allocate a new demangle_info.
3472 Remove unused PREV pointer.
3473 (cp_new_demangle_parse_info): New function.
3474 (cp_demangled_name_parse_free): New function.
3475 (do_demangled_name_parse_free_cleanup): New function.
3476 (make_cleanup_cp_demangled_name_parse_free): New function.
3477 (cp_demangled_name_to_comp): Change return type to
3478 struct demangle_parse_info *.
3479 Allocate a new storage for each call.
3480 (main): Update usage for cp_demangled_name_to_comp
3481 API change.
3482 * cp-support.h (struct demangle_parse_info): New structure.
3483 (cp_demangled_name_to_comp): Update API change for
3484 return type.
3485 (cp_new_demangle_parse_info): Declare.
3486 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3487 (cp_demangled_name_parse_free): Declare.
3488 * cp-support.c (cp_canonicalize_string): Update API
3489 change for cp_demangled_name_to_comp.
3490 (mangled_name_to_comp): Likewise.
3491 Return struct demangle_parse_info, too.
3492 (cp_class_name_from_physname): Update mangled_name_to_comp
3493 API change.
3494 (method_name_from_physname): Likewise.
3495 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3496 (cp_remove_params): Likewise.
3497 * python/py-type.c (typy_legacy_template_argument): Likewise.
3498
3499 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3500 (cp_merge_demangle_parse_infos): Declare.
3501 * cp-support.c (ignore_typedefs): New file global.
3502 (copy_string_to_obstack): New function.
3503 (inspect_type): New function.
3504 (replace_typedefs): New function.
3505 (replace_typedefs_qualified_name): New function.
3506 (cp_canonicalize_string_no_typedefs): New function.
3507 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3508 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3509 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3510 instead of cp_canonicalize_string.
3511 (find_method): Likewise.
3512 (decode_compound): Before looking up the name, call
3513 cp_canonicalize_string_no_typedefs.
3514 (decode_variable): Likewise.
3515
fa3a4f15
PM
35162011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3517 Tom Tromey <tromey@redhat.com>
3518 Matt Rice <ratmice@gmail.com>
3519
3520 * python/lib/gdb/prompt.py: New file.
3521 * python/lib/gdb/command/prompt.py: New file.
3522 * NEWS: Document set extended-prompt and gdb.prompt library
3523
85661b1e
YQ
35242011-08-16 Yao Qi <yao@codesourcery.com>
3525
3526 * tic6x-linux-tdep.c: Move const arrays definition from here...
3527 * tic6x-tdep.c: to here ...
3528
11315641
YQ
35292011-08-14 Yao Qi <yao@codesourcery.com>
3530
3531 * NEWS: New port to Texas Instruments TMS320C6x.
3532
8cd64e00
YQ
35332011-08-14 Andrew Jenner <andrew@codesourcery.com>
3534 Bernd Schmidt <bernds@codesourcery.com>
3535 Yao Qi <yao@codesourcery.com>
3536
3537 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3538 * solib-dsbt.c: New file. Support DSBT shared object.
3539 * tic6x-linux-tdep.c: New file.
3540 * tic6x-tdep.c: New file.
3541 * tic6x-tdep.h: New file.
3542
78d85199
YQ
35432011-08-14 Andrew Stubbs <ams@codesourcery.com>
3544 Yao Qi <yao@codesourcery.com>
3545
3546 * remote.c (PACKET_qXfer_fdpic): New enum value.
3547 (remote_protocol_features): Add qXfer:fdpic:read packet.
3548 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3549 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3550 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3551
224bbe49
YQ
35522011-08-14 Yao Qi <yao@codesourcery.com>
3553
3554 Target description for tic6x.
3555 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3556 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3557 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3558 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3559 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3560 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3561 * features/tic6x-c64xp-linux.xml: New.
3562 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3563 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3564 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3565 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3566 * regformats/tic6x-c64xp.dat,
3567 regformats/tic6x-c62x-linux.dat: Generated.
3568 * regformats/tic6x-c64x-linux.dat,
3569 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3570 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3571 features/tic6x-*.c files.
3572 Add regformats/tic6x-*.dat files.
3573
457e09f0
DE
35742011-08-12 Doug Evans <dje@google.com>
3575
3576 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3577 * python/py-symbol.c (sympy_get_type): New function.
3578 (symbol_object_getset): Add "type".
3579
d20c1c3f
PA
35802011-08-12 Pedro Alves <pedro@codesourcery.com>
3581
3582 PR tui/13073
3583
3584 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3585 empty name.
3586 (tui_show_register_group): Don't store a byte buffer in the data
3587 element's value.
3588 (tui_register_format): Skip registers with an empty name.
3589 (tui_get_register): Store a struct value in the data element's
3590 value field instead of a byte buffer holding the raw register
3591 contents. Account for optimized-out and unavailable registers
3592 when comparing register contents.
3593
9d8fa392
PA
35942011-08-09 Pedro Alves <pedro@codesourcery.com>
3595
3596 * printcmd.c (current_display_number): Update comment.
3597 (disable_current_display_cleanup): Delete.
3598 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3599 catch errors thrown while evaluating and printing the display.
3600
401a70b8
TT
36012011-08-09 Tom Tromey <tromey@redhat.com>
3602
3603 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3604
7f86f058
PA
36052011-08-09 Pedro Alves <pedro@codesourcery.com>
3606
94b71cca 3607 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3608 * maint.c (maintenance_command): Ditto.
3609 * somread.c (som_symtab_read): Ditto.
3610 * solib.c (solib_find, solib_map_sections, update_solib_list)
3611 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3612 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3613 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3614 * solib-irix.c (locate_base, disable_break, enable_break)
3615 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3616 (irix_current_sos, irix_open_symbol_file_object)
3617 (irix_special_symbol_handling): Ditto.
3618 * solib-sunos.c (locate_base, first_link_map_member)
3619 (sunos_current_sos, disable_break, enable_break)
3620 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3621 Ditto.
3622 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3623 (open_symbol_file_object, svr4_current_sos, enable_break)
3624 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3625 Ditto.
3626 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3627 (frv_current_sos, enable_break, frv_special_symbol_handling)
3628 (frv_solib_create_inferior_hook): Ditto.
3629 * solist.h (struct target_so_ops): Extend the comments of the
3630 special_symbol_handling, current_sos and open_symbol_file_object
3631 methods.
3632
5e239b84
PM
36332011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3634
3635 * python/lib/gdb/__init__.py: Auto-load files in command and
3636 function directories.
3637 * python/python.c (finish_python_initialization): Use
3638 os.path.join.
3639 * python/lib/gdb/command/pretty_printers.py: Self register
3640 command.
3641 * NEWS: Document auto-loading.
3642
b6cede78
JK
36432011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3644
3645 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3646 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3647 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3648
29d0bb3d
TT
36492011-08-08 Tom Tromey <tromey@redhat.com>
3650
3651 * breakpoint.c (clean_up_filters): Remove.
3652 (catch_syscall_split_args): Use VEC_cleanup.
3653
2f7fb8e4
JK
36542011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3657 (main): Uncomment "Demangling error\n".
3658
d6c10e95
PP
36592011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3660
3661 * solib-target.c (segment_attributes): Make them static.
3662 (section_attributes, library_children, library_attributes): Likewise.
3663 (library_list_children, library_list_attributes): Likesise.
3664 (library_list_elements): Likewise.
3665
af6e93b2
PA
36662011-08-05 Pedro Alves <pedro@codesourcery.com>
3667
3668 * exceptions.c (throw_exception): Don't disable the current
3669 display.
3670 * printcmd.c (disable_current_display_cleanup): New function.
3671 (do_one_display): Install a cleanup to disable the current display
3672 if doing the display throws.
3673
6a1b1664
EZ
36742011-08-05 Eli Zaretskii <eliz@gnu.org>
3675
3676 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3677 initialization of the tp_new member to the corresponding
3678 gdbpy_initialize_* function.
3679 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3680 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3681 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3682 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3683 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3684
31a0ae49
JK
36852011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3686
3687 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3688 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3689 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3690 references to current_uiout.
3691
e0dd0826
PA
36922011-08-04 Pedro Alves <pedro@codesourcery.com>
3693
3694 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3695 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3696 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3697 * top.c (gdb_readline_wrapper): Adjust.
3698 * tui/tui-interp.c (tui_command_loop):
3699 (_initialize_tui_interp): Don't install it.
3700
79a45e25
PA
37012011-08-04 Pedro Alves <pedro@codesourcery.com>
3702
3703 * ui-out.h (uiout): Rename to ...
3704 (current_uiout): ... this.
3705 * ui-out.c (uiout): Rename to ...
3706 (current_uiout): ... this.
3707 * ada-lang.c (print_it_exception, print_one_exception)
3708 (print_mention_exception): Adjust.
3709 * breakpoint.c (watchpoint_check): Adjust.
3710 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3711 (default_collect_info, watchpoints_info, print_one_catch_fork)
3712 (print_one_catch_vfork, print_one_catch_syscall)
3713 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3714 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3715 (print_it_watchpoint, print_mention_watchpoint)
3716 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3717 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3718 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3719 (bkpt_print_mention, momentary_bkpt_print_it)
3720 (tracepoint_print_mention, update_static_tracepoint)
3721 (tracepoints_info, save_breakpoints): Adjust.
3722 * cli-out.c (field_separator): Adjust.
3723 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3724 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3725 * frame.c (get_current_frame): Adjust.
3726 * infcmd.c (run_command_1, print_return_value): Adjust.
3727 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3728 * infrun.c (print_end_stepping_range_reason): Adjust.
3729 (print_signal_exited_reason, print_exited_reason): Adjust.
3730 (print_signal_received_reason, print_no_history_reason): Adjust.
3731 * interps.c (interp_set): Adjust.
3732 * osdata.c (info_osdata_command): Adjust.
3733 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3734 * remote-fileio.c (remote_fileio_request): Adjust.
3735 * remote.c (show_remote_cmd): Adjust.
3736 * solib.c (info_sharedlibrary_command): Adjust.
3737 * source.c (print_source_lines_base): Adjust.
3738 * stack.c (print_stack_frame): Adjust.
3739 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3740 * symfile-mem.c (add_vsyscall_page): Adjust.
3741 * symfile.c (load_progress, generic_load)
3742 (print_transfer_performance): Adjust.
3743 * thread.c (info_threads_command, restore_selected_frame)
3744 (thread_command): Adjust.
3745 * top.c (make_cleanup_restore_ui_file): Adjust.
3746 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3747 (print_one_static_tracepoint_marker): Adjust.
3748 * cli/cli-cmds.c (print_disassembly): Adjust.
3749 * cli/cli-decode.c (print_doc_line): Adjust.
3750 * cli/cli-interp.c (safe_execute_command): Adjust.
3751 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3752 (handle_redirections): Adjust.
3753 * cli/cli-script.c (show_user_1): Adjust.
3754 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3755 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3756 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3757 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3758 (mi_cmd_env_dir): Adjust.
3759 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3760 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3761 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3762 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3763 (list_args_or_locals): Adjust.
3764 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3765 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3766 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3767 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3768 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3769 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3770 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3771 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3772 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3773 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3774 (list_available_thread_groups, mi_cmd_list_thread_groups)
3775 (mi_cmd_data_list_register_names)
3776 (mi_cmd_data_list_changed_registers)
3777 (mi_cmd_data_list_register_values, get_register)
3778 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3779 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3780 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3781 (mi_execute_command, mi_load_progress): Adjust.
3782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3783 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3784 Adjust.
3785 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3786 * tui/tui-interp.c (tui_command_loop): Adjust.
3787 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3788
f9679975
PA
37892011-08-04 Pedro Alves <pedro@codesourcery.com>
3790
3791 * exceptions.c (struct catcher): Remove saved_uiout field.
3792 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3793 no longer save/resvore the global ui_out builder.
3794 (catch_exceptions_with_msg): Save/override/restore the global
3795 ui_out builder manually instead of relying on TRY_CATCH to do it.
3796 (catch_errors): Save/restore the global ui_out builder manually
3797 instead of relying on TRY_CATCH to do it.
3798 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3799 parameter.
3800 (TRY_CATCH): Adjust.
3801 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3802 the global ui_out builder manually instead of relying on TRY_CATCH
3803 to do it.
3804
934709f0
PW
38052011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3806
3807 * breakpoint.c (update_global_location_list): Ensure
3808 invariant 'first loc marked not duplicated and inserted,
3809 following locs marked duplicated/not inserted' is respected
3810 for multiple locations at the same address.
3811 (unduplicated_should_be_inserted) New function.
3812 (swap_insertion) New function.
3813
2421fe6f
JK
38142011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3815
3816 * stack.c (print_frame_arguments_choices): Comment typo fix.
3817
3fbb6ffa
TJB
38182011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3819
3820 Revert:
3821 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3822 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3823 argument. Update callers.
3824
fbe12357
PP
38252011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3826
3827 PR gdb/13045
3828 * doublest.c (convert_doublest_to_floatformat): Pass correct
3829 mantissa length to put_field.
3830
b1d288d3
JK
38312011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3832
3833 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3834 exception_print code path.
3835 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3836 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3837 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3838
311b5970
JK
38392011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3840
3841 Code cleanup.
3842 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3843 Remove, merge them into ...
3844 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3845 variable args and its initialization.
3846 (struct print_args_args, print_args_stub): Remove, merge them into
3847 print_frame.
3848 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3849 them into ...
3850 (do_gdb_disassembly): ... here. Remove variable args and its
3851 initialization.
3852 (print_frame): Remove variable args and its initialization, new
3853 variable gdbarch and numargs (from print_args_stub), inline here
3854 print_args_stub with a TRY_CATCH.
3855 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3856 them into ...
3857 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3858 New variable e, remove variable btargs and its initialization.
311b5970 3859
484a26a8
TG
38602011-08-01 Tristan Gingold <gingold@adacore.com>
3861
3862 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3863
c30eee59
TJB
38642011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3865
3866 * breakpoint.c (insert_bp_location): Document return value.
3867 (insert_breakpoint_locations): Fix documentation.
3868 (remove_breakpoints): Add documentation.
3869
f116073b
TJB
38702011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3871
3872 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3873 argument. Update callers.
3874
65aa373f
JK
38752011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3876
3877 * stack.c (print_frame_info): Comment typo fix.
3878
a50242fb
SA
38792011-07-29 Sterling Augustine <saugustine@google.com>
3880
3881 * MAINTAINERS (Write After Approval): Add myself to the list.
3882
267f6504
TT
38832011-07-29 Tom Tromey <tromey@redhat.com>
3884
3885 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3886 (library_list_start_segment): Update.
3887 (library_list_start_section): Update.
3888
00bd41d6
PM
38892011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3890
3891 * varobj.c (value_get_print_value): Move hint check later into the
3892 function. Comment function. Free thevalue before reusing it.
3893
18a46dbe
JK
38942011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 Pedro Alves <pedro@codesourcery.com>
3896
3897 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3898 value_one.
3899 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3900 Assert the result kind.
3901 * value.h (value_one): Remove parameter lv.
3902
bb7da2bf
JK
39032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3904
3905 Fix crash on lval_computed values.
3906 * valops.c (value_zero): Use not_lval for lval_computed.
3907
2d5213f8
TT
39082011-07-27 Tom Tromey <tromey@redhat.com>
3909
3910 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3911 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3912
11081198
JK
39132011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3916 "ptype" by their typedefs difference.
3917
3c6e0cb3
JK
39182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3919
3920 * dwarf2expr.c (ctx_no_read_reg): New function.
3921 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3922 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3923 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3924 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3925
523f3620
JK
39262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3929 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3930 file.
3931 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3932 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3933 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3934 (ctx_no_get_base_type): Move the functions here.
3935 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3936 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3937 (ctx_no_get_base_type): New declarations.
3938
24d3216f
TT
39392011-07-27 Tom Tromey <tromey@redhat.com>
3940
3941 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3942 entries.
3943 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3944 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3945
5005c8a9
PP
39462011-07-26 Sterling Augustine <saugustine@google.com>
3947
3948 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3949 ULONGEST.
3950 (dump_bfd_file): Likewise.
3951
480a3f21
PW
39522011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3953
3954 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3955 (remote_hw_watchpoint_length_limit): New variable.
3956 (_initialize_remote) add set,show cmds for this new variable.
3957 * gdb.texinfo: document these new commands.
3958 * NEWS: Mention these new commands.
3959
efa80663
PA
39602011-07-26 Pedro Alves <pedro@codesourcery.com>
3961
3962 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3963 true for software watchpoints.
3964
dbdaa232 39652011-07-26 Joel Brobecker <brobecker@adacore.com>
3966
3967 GDB 7.3 released.
3968
cf2c3c16
TT
39692011-07-26 Tom Tromey <tromey@redhat.com>
3970
3971 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3972 * dwarf2read.c (read_indirect_string_at_offset): New function.
3973 (read_indirect_string): Use it.
3974 (dwarf_decode_macro_bytes): New function, taken from
3975 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3976 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3977 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3978 New functions.
3979 (struct dwarf2_per_objfile) <macro>: New field.
3980 (dwarf2_elf_names): Add .debug_macro.
3981 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3982 (dwarf2_locate_sections): Handle new section.
3983 (read_file_scope): Handle DW_AT_GNU_macros.
3984 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3985
1a532630
PP
39862011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3987
3988 * NEWS: Mention dcache configuration.
3989 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3990 (dcache_size, dcache_line_size): New variables.
3991 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3992 (struct dcache_block): Make it expandable.
3993 (struct dcache_struct): New field.
3994 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3995 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3996 (dcache_poke_byte, dcache_print_line): Adjust.
3997 (set_dcache_size, set_dcache_line_size): New functions.
3998 (set_dcache_command, show_dcache_command): New functions.
3999 (_initialize_dcache): Add new commands.
4000
2eff07b3
PP
40012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4002
4003 * progspace.h (struct program_space): Add solib_add_generation.
4004 * infcmd.c (post_create_inferior): Only call solib_add if not
4005 already done.
4006 * solib.c (solib_add): Increment solib_add_generation.
4007
543305c9
JK
40082011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 Fix implicit pointer offsets.
4011 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4012 ptr.OFFSET.
4013
c0a91b2b
TT
40142011-07-25 Tom Tromey <tromey@redhat.com>
4015
4016 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4017 const.
4018 (ada_exception_sal): Make 'ops' const.
4019 (ada_decode_exception_location): Likewise.
4020 (ada_decode_assert_location): Likewise.
4021 (catch_assert_command): Update.
4022 (catch_ada_exception_command): Update.
4023 (create_ada_exception_catchpoint): Make 'ops' const.
4024 * breakpoint.c (set_raw_breakpoint_without_location)
4025 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4026 const.
4027 (create_internal_breakpoint): Update.
4028 (init_raw_breakpoint_without_location): Make 'ops' const.
4029 (init_raw_breakpoint, init_catchpoint)
4030 (create_fork_vfork_event_catchpoint)
4031 (create_syscall_event_catchpoint, init_breakpoint_sal)
4032 (create_breakpoint_sal, create_breakpoints_sal)
4033 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4034 * breakpoint.h (struct breakpoint) <ops>: Now const.
4035 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4036 const.
4037
6cb9b55b
PP
40382011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4039
4040 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4041
d9b3f62e
PA
40422011-07-25 Pedro Alves <pedro@codesourcery.com>
4043
4044 * breakpoint.h (print_recreate_thread): Declare.
4045 (struct breakpoint): Move step_count, pass_count,
4046 number_on_target, static_trace_marker_id,
4047 static_trace_marker_id_idx ...
4048 (struct tracepoint): ... to this new struct.
4049 (get_tracepoint, get_tracepoint_by_number_on_target)
4050 (get_tracepoint_by_number): Change return type to struct
4051 tracepoint pointer.
4052 * breakpoint.c (is_tracepoint_type): New, factored out from
4053 is_tracepoint.
4054 (is_tracepoint): Adjust.
4055 (print_one_breakpoint_location): Cast to struct tracepoint as
4056 necessary, and adjust.
4057 (print_recreate_catch_fork, print_recreate_catch_vfork)
4058 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4059 print_recreate_thread.
4060 (init_breakpoint_sal): New, factored out from
4061 create_breakpoint_sal.
4062 (create_breakpoint_sal): Reimplement.
4063 (create_breakpoint): Allocate a struct tracecepoint if the caller
4064 wanted a tracepoint. Use init_breakpoint_sal and
4065 install_breakpoint.
4066 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4067 (print_recreate_masked_watchpoint)
4068 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4069 (tracepoint_print_one_detail): Adjust.
4070 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4071 Dump the pass count here.
4072 (update_static_tracepoint): Adjust.
4073 (addr_string_to_sals): Adjust.
4074 (create_tracepoint_from_upload): Adjust. Change return type to
4075 struct tracepoint pointer.
4076 (trace_pass_set_count): Change parameter type to struct tracepoint
4077 pointer, and adjust.
4078 (trace_pass_command): Adjust.
4079 (get_tracepoint, get_tracepoint_by_number_on_target)
4080 (get_tracepoint_by_number): Change return type to struct
4081 tracepoint pointer, and adjust.
4082 (print_recreate_thread): New, factored out from save_breakpoints.
4083 (save_breakpoints): Don't print thread and task and passcount
4084 recreation here.
4085 * remote.c (remote_download_tracepoint): Adjust.
4086 * tracepoint.c (trace_actions_command, validate_actionline)
4087 (start_tracing, tfind_1, trace_find_tracepoint_command)
4088 (trace_dump_command): Adjust.
4089 (find_matching_tracepoint): Change return type to struct
4090 tracepoint pointer, and adjust.
4091 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4092 (tfile_trace_find, tfile_fetch_registers): Adjust.
4093 * tracepoint.h (create_tracepoint_from_upload): Change return type
4094 to struct tracepoint pointer.
4095 * ada-lang.c (print_recreate_exception): Call
4096 print_recreate_thread.
4097 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4098
3a5c3e22
PA
40992011-07-25 Pedro Alves <pedro@codesourcery.com>
4100
4101 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4102 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4103 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4104 watchpoint_thread, watchpoint_triggered ...
4105 (struct watchpoint): ... to this new struct.
4106 (is_watchpoint): Declare.
4107 (install_breakpoint): Add new `internal' parameter.
4108 * breakpoint.c (is_watchpoint): Delete declaration.
4109 (set_breakpoint_condition): Handle watchpoints.
4110 (is_watchpoint): Make public.
4111 (watchpoint_in_thread_scope): Change parameter type to struct
4112 watchpoint.
4113 (watchpoint_del_at_next_stop): Change parameter type to struct
4114 watchpoint. Remove assertion. Adjust.
4115 (update_watchpoint): Ditto.
4116 (insert_breakpoints, breakpoint_init_inferior)
4117 (watchpoints_triggered, watchpoint_check)
4118 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4119 (bpstat_stop_status, print_one_breakpoint_location)
4120 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4121 to struct watchpoint as necessary, and adjust.
4122 (install_breakpoint): Add `internal' argument. If true, don't
4123 mention the new breakpoint. Use set_breakpoint_number.
4124 (create_fork_vfork_event_catchpoint)
4125 (create_syscall_event_catchpoint): Adjust.
4126 (dtor_watchpoint): New.
4127 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4128 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4129 (print_it_watchpoint, print_mention_watchpoint)
4130 (print_recreate_watchpoint, insert_masked_watchpoint)
4131 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4132 (print_one_detail_masked_watchpoint)
4133 (print_mention_masked_watchpoint)
4134 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4135 necessary, and adjust.
4136 (watch_command_1): Allocate and initialize a struct watchpoint
4137 instead of a struct breakpoint. Use install_breakpoint.
4138 (catch_exec_command_1): Adjust.
4139 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4140 fields.
4141 (delete_breakpoint, enable_breakpoint_disp)
4142 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4143 as necessary, and adjust.
4144 (initialize_breakpoint_ops): Install dtor_watchpoint as
4145 watchpoints' dtor method.
4146 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4147 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4148 to struct watchpoint as necessary, and adjust.
4149
2060206e
PA
41502011-07-25 Pedro Alves <pedro@codesourcery.com>
4151
4152 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4153 the the base class ops table.
4154 (catch_exception_breakpoint_ops)
4155 (catch_exception_unhandled_breakpoint_ops)
4156 (catch_assert_breakpoint_ops): Don't statically initialize.
4157 (initialize_ada_catchpoint_ops): New.
4158 (_initialize_ada_language): Call it.
4159 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4160 (bkpt_breakpoint_ops): Forward declare.
4161 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4162 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4163 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4164 (masked_watchpoint_breakpoint_ops)
4165 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4166 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4167 base class ops table.
4168 (null_re_set, null_check_status, null_works_in_software_mode)
4169 (null_resources_needed, null_print_one_detail): Delete.
4170 (bkpt_dtor): Rename to ...
4171 (base_breakpoint_dtor): ... this. Make static.
4172 (bkpt_allocate_location): Rename to ...
4173 (base_breakpoint_allocate_location): ... this. Make static.
4174 (base_breakpoint_re_set): New.
4175 (internal_error_pure_virtual_called): New.
4176 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4177 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4178 (base_breakpoint_works_in_software_mode)
4179 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4180 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4181 (base_breakpoint_print_recreate): New functions.
4182 (base_breakpoint_ops): New global.
4183 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4184 (bkpt_breakpoint_hit): Make static.
4185 (bkpt_check_status): Delete.
4186 (bkpt_resources_needed): Make static.
4187 (bkpt_works_in_software_mode): Delete.
4188 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4189 static.
4190 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4191 (momentary_breakpoint_ops): Don't statically initialize.
4192 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4193 Delete.
4194 (tracepoint_insert_location, tracepoint_remove_location)
4195 (tracepoint_check_status, tracepoint_works_in_software_mode)
4196 (tracepoint_print_it): Delete.
4197 (tracepoint_breakpoint_ops): Don't statically initialize.
4198 (initialize_breakpoint_ops): New.
4199 (_initialize_breakpoint): Call it.
4200 * breakpoint.h (null_re_set, null_works_in_software_mode)
4201 (null_resources_needed, null_check_status, null_print_one_detail):
4202 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4203 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4204 (bkpt_check_status, bkpt_resources_needed)
4205 (bkpt_works_in_software_mode, bkpt_print_it)
4206 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4207 Delete declarations.
4208 (initialize_breakpoint_ops): Declare.
4209
001c8c33
PA
42102011-07-25 Pedro Alves <pedro@codesourcery.com>
4211
4212 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4213 (momentary_bkpt_print_it): Simplify.
4214
06edf0c0
PA
42152011-07-25 Pedro Alves <pedro@codesourcery.com>
4216
4217 Split internal, momentary and user breakpoints breakpoint_ops
4218 tables.
4219
4220 * breakpoint.c (internal_breakpoint_ops)
4221 (momentary_breakpoint_ops): Forward declare.
4222 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4223 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4224 (create_overlay_event_breakpoint)
4225 (create_std_terminate_master_breakpoint)
4226 (create_exception_master_breakpoint): Create breakpoints with
4227 internal_breakpoint_ops vtable.
4228 (set_longjmp_breakpoint): Create momentary breakpoints with
4229 momentary_breakpoint_ops vtable, using
4230 momentary_breakpoint_from_master.
4231 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4232 (create_solib_event_breakpoint): Create breakpoints with
4233 internal_breakpoint_ops vtable.
4234 (set_momentary_breakpoint): Create breakpoints with
4235 momentary_breakpoint_ops vtable.
4236 (momentary_breakpoint_from_master): New, factored out from
4237 clone_momentary_breakpoint.
4238 (clone_momentary_breakpoint): Adjust.
4239 (watch_command_1): Create scope breakpoints with
4240 momentary_breakpoint_ops vtable.
4241 (bkpt_re_set): Remove handling of internal and momentary
4242 breakpoints.
4243 (bkpt_print_mention, bkpt_print_recreate): New.
4244 (bkpt_breakpoint_ops): Adjust.
4245 (internal_bkpt_re_set, internal_bkpt_check_status)
4246 (internal_bkpt_print_it, internal_bkpt_print_mention)
4247 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4248 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4249 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4250 (momentary_bkpt_print_recreate): New.
4251 (momentary_breakpoint_ops): New.
4252
348d480f
PA
42532011-07-25 Pedro Alves <pedro@codesourcery.com>
4254
4255 Implement most breakpoint_ops methods for all breakpoint types,
4256 and move the default handlings to the proper callbacks.
4257
4258 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4259 works_in_software_mode method.
4260 (insert_bp_location): Go through breakpoint_ops->insert_location
4261 for software and hardware watchpoints.
4262 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4263 breakpoint_ops.
4264 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4265 for software and hardware watchpoints.
4266 (print_it_typical): Delete.
4267 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4268 method.
4269 (watchpoint_check): Adjust comment.
4270 (bpstat_check_location): Simply always call the breakpoint's
4271 breakpoint_hit method.
4272 (bpstat_stop_status): Always call the breakpoint's check_status
4273 method. Remove special cases for watchpoints and internal event
4274 breakpoints from here (moved to the check_status implementations).
4275 (print_one_breakpoint_location): Assume b->ops is never NULL.
4276 Remove static tracepoint marker id printing from here (moved to
4277 the print_one_detail callback implementation of tracepoints).
4278 (init_bp_location): Assert OPS is never NULL.
4279 (allocate_bp_location): Always call the breakpoint's
4280 allocate_location method, and remove the default code from here.
4281 (free_bp_location): Always call the location's dtor method, and
4282 remove the default code from here.
4283 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4284 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4285 parameter. Pass it down.
4286 (set_raw_breakpoint): Ditto.
4287 (print_it_catch_fork): Adjust to take a bpstat as argument.
4288 (catch_fork_breakpoint_ops): Install methods.
4289 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4290 (catch_vfork_breakpoint_ops): Install methods.
4291 (dtor_catch_syscall): Call the base dtor.
4292 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4293 (catch_syscall_breakpoint_ops): Install methods.
4294 (dtor_catch_exec): Call the base dtor.
4295 (print_it_catch_exec): Adjust to take a bpstat as argument.
4296 (catch_exec_breakpoint_ops): Install methods.
4297 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4298 the breakpoint's resources_needed method, and remove the default
4299 code from here.
4300 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4301 breakpoint_ops.
4302 (clone_momentary_breakpoint): Clone the original's ops.
4303 (mention): Always call the breakpoint's print_mention method, and
4304 remove the default code from here.
4305 (create_breakpoint_sal): Adjust to pass the ops to
4306 set_raw_breakpoint rather than setting it manually.
4307 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4308 ops to set_raw_breakpoint_without_location rather than setting it
4309 manually.
4310 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4311 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4312 (ranged_breakpoint_ops): Install methods.
4313 (break_range_command): Adjust to pass the ops to
4314 set_raw_breakpoint rather than setting it manually.
4315 (re_set_watchpoint, breakpoint_hit_watchpoint)
4316 (check_status_watchpoint, resources_needed_watchpoint)
4317 (works_in_software_mode_watchpoint, print_it_watchpoint)
4318 (print_mention_watchpoint, print_recreate_watchpoint): New
4319 functions.
4320 (watchpoint_breakpoint_ops): Install new methods.
4321 (print_it_masked_watchpoint): New function.
4322 (masked_watchpoint_breakpoint_ops): Install new methods.
4323 (watch_command_1): Adjust to pass the right breakpoint_ops to
4324 set_raw_breakpoint_without_location rather than setting it
4325 manually later. Record the current pspace.
4326 (print_it_exception_catchpoint): Adjust to take a bpstat as
4327 argument.
4328 (gnu_v3_exception_catchpoint_ops): Install new methods.
4329 (say_where): New function.
4330 (null_re_set, null_check_status, null_works_in_software_mode)
4331 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4332 New functions.
4333 (bp_location_ops): New global.
4334 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4335 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4336 (bkpt_check_status, bkpt_resources_needed)
4337 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4338 (bkpt_print_recreate): New functions.
4339 (bkpt_breakpoint_ops): New global.
4340 (tracepoint_re_set, tracepoint_insert_location)
4341 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4342 (tracepoint_check_status, tracepoint_works_in_software_mode)
4343 (tracepoint_print_it, tracepoint_print_one_detail)
4344 (tracepoint_print_mention, tracepoint_print_recreate): New
4345 functions.
4346 (tracepoint_breakpoint_ops): New global.
4347 (delete_breakpoint): Always call the breakpoint's dtor method, and
4348 remove the default handling from here.
4349 (breakpoint_re_set_default): Make static.
4350 (breakpoint_re_set_one): Always call the breakpoints re_set
4351 method, and remove the default handling from here.
4352 (trace_command, ftrace_command, strace_command)
4353 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4354 to create_breakpoint.
4355 (save_breakpoints): Always call the breakpoint's print_recreate
4356 method, and remove the default handling from here.
4357
4358 * ada-lang.c (dtor_exception): Call the base dtor.
4359 (re_set_exception): Call the base method.
4360 (print_it_exception, print_it_catch_exception): Adjust to take a
4361 bpstat as argument.
4362 (catch_exception_breakpoint_ops): Install methods.
4363 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4364 argument.
4365 (catch_exception_unhandled_breakpoint_ops): Install methods.
4366 (print_it_catch_assert): Adjust to take a bpstat as argument.
4367 (catch_assert_breakpoint_ops): Install methods.
4368
4369 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4370 to take a bpstat as argument.
4371 (enum print_stop_action): Add describing comments to each enum
4372 value.
4373 (breakpoint_re_set_default): Delete declaration.
4374 (null_re_set, null_works_in_software_mode, null_resources_needed)
4375 (null_check_status, null_print_one_detail): Declare.
4376 (bkpt_breakpoint_ops): Declare.
4377 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4378 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4379 (bkpt_check_status, bkpt_resources_needed)
4380 (bkpt_works_in_software_mode, bkpt_print_it)
4381 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4382 Declare.
4383
4384 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4385 bkpt_breakpoint_ops.
4386 * python/py-breakpoint.c (bppy_init): Ditto.
4387
be8f8133
PW
43882011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389
4390 * MAINTAINERS (Write After Approval): Add myself to the list.
4391
3807f613
PP
43922011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4393
4394 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4395
1ced966e
PA
43962011-07-22 Pedro Alves <pedro@codesourcery.com>
4397
4398 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4399 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4400 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4401 adjust.
4402 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4403 (struct i386_debug_reg_state): New.
4404 (i386_init_dregs): New.
4405 (dr_mirror): New.
4406 (i386_cleanup_dregs): Use i386_init_dregs.
4407 (i386_show_dr): Add state parameter and adjust.
4408 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4409 the inferior here.
4410 (i386_remove_aligned_watchpoint): Likewise.
4411 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4412 (i386_update_inferior_debug_regs): New.
4413 (i386_insert_watchpoint): Work on a local mirror of the debug
4414 registers, and only update the inferior on success.
4415 (i386_remove_watchpoint): Ditto.
4416 (i386_region_ok_for_watchpoint): Adjust.
4417 (i386_stopped_data_address): Adjust.
4418 (i386_insert_hw_breakpoint): Adjust.
4419 (i386_remove_hw_breakpoint): Adjust.
4420
3543a589
TT
44212011-07-22 Tom Tromey <tromey@redhat.com>
4422
4423 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4424 from amd64_pseudo_register_read. Change arguments. Call
4425 mark_value_bytes_unavailable when needed.
4426 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4427 set_gdbarch_pseudo_register_read.
4428 * sentinel-frame.c (sentinel_frame_prev_register): Use
4429 regcache_cooked_read_value.
4430 * regcache.h (regcache_cooked_read_value): Declare.
4431 * regcache.c (regcache_cooked_read_value): New function.
4432 (regcache_cooked_read): Call
4433 gdbarch_pseudo_register_read_value if available.
4434 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4435 (i386_pseudo_register_read): Remove.
4436 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4437 i386_pseudo_register_read. Change arguments. Call
4438 mark_value_bytes_unavailable when needed.
4439 (i386_pseudo_register_read_value): New function.
4440 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4441 not set_gdbarch_pseudo_register_read.
4442 * gdbarch.sh (pseudo_register_read_value): New method.
4443 * gdbarch.c, gdbarch.h: Rebuild.
4444 * findvar.c (value_from_register): Call get_frame_register_value.
4445
95298e72
PM
44462011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4447
4448 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4449 get_prefix.
4450 (display_gdb_prompt): Likewise.
4451 (change_annotation_level): Likewise.
4452 (push_prompt): Likewise.
4453 (pop_prompt): Likewise.
4454 (handle_stop_sig): Use get_prompt with a level.
4455 * top.c (command_loop): Use get_prompt with a level.
4456 (set_async_annotation_level): Use set_prompt with a level.
4457 (get_prefix): New function.
4458 (set_prefix): Ditto.
4459 (set_suffix): Ditto.
4460 (get_suffix): Ditto.
4461 (get_prompt): Accept a level argument.
4462 (set_prompt): Accept a level argument. Free old prompts. Set
4463 new_async_prompt if level is 0.
4464 (init_main): Use set_prompt with a level. Do not set
4465 new_async_prompt.
4466 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4467 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4468 Modify set_prompt, get_prompt to account for levels.
4469 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4470 level.
4471 * python/python.c (before_prompt_hook): Use set_prompt.
4472
d26e3629
KY
44732011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4474
4475 * defs.h: Add guard against inclusion in gdbserver.
4476 (struct ptid, ptid_t): Move to common/ptid.h.
4477 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4478 xsnprintf, internal_error): Move to common/common-utils.h.
4479 (nomem): Delete.
4480 * gdb_assert.h: Move into common/ sub-directory.
4481 * gdb_locale.h: Ditto.
4482 * gdb_dirent.h: Ditto.
4483 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4484 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4485 Move into common/ptid.h.
4486 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4487 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4488 Change nomem to malloc_failure.
4489 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4490 * utils.c (nomem): Rename to malloc_failure.
4491 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4492 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4493 (gdb_buildargv): Change nomem to malloc_failure.
4494 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4495 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4496 ptid_is_pid): Move into common/ptid.c.
4497 (initialize_infrun): Delete initialization of null_ptid and
4498 minus_one_ptid.
4499 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4500 linux_common_xfer_osdata.
4501 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4502 common/ptid.c and common/buffer.c.
4503 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4504 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4505 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4506 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4507 rules.
4508 * common/gdb_assert.h: New.
4509 * common/gdb_dirent.h: New.
4510 * common/gdb_locale.h: New.
4511 * common/buffer.c: New.
4512 * common/buffer.h: New.
4513 * common/ptid.c: New.
4514 * common/ptid.h: New.
4515 * common/xml-utils.c: New.
4516 * common/xml-utils.h: New.
4517 * common/common-utils.c: New.
4518 * common/common-utils.h: New.
4519 * common/linux-osdata.c: New.
4520 * common/linux-osdata.h: New.
4521 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4522 * config/arm/linux.mh (NATDEPFILES): Ditto.
4523 * config/i386/linux.mh (NATDEPFILES): Ditto.
4524 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4525 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4526 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4527 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4528 * config/mips/linux.mh (NATDEPFILES): Ditto.
4529 * config/pa/linux.mh (NATDEPFILES): Ditto.
4530 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4531 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4532 * config/s390/s390.mh (NATDEPFILES): Ditto.
4533 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4534 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4535 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4536
edc84990 45372011-07-21 Matt Rice <ratmice@gmail.com>
4538
4539 * NEWS: Add info macros and info definitions commands.
4540
3a7bf607
PM
45412011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4542
4543 * NEWS: Document Python prompt substitution hook.
4544
9b158ba0 45452011-07-18 Matt Rice <ratmice@gmail.com>
4546
4547 PR macros/12999
4548 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4549 * macrotab.c (foreach_macro): Ditto.
4550 (foreach_macro_in_scope): Ditto.
4551 * macrocmd.c (print_macro_callback): New function.
4552 (info_macro_command): Move some code to print_macro_definition.
4553 (print_macro_definition): New function.
4554 (print_one_macro): Add new arguments to callback.
4555 (info_definitions_command): New function.
4556 (info_macros_command): Ditto.
4557 (_initialize_macrocmd): Add info macros and info definitions commands.
4558 * symtab.c (add_macro_name): Add new arguments to callback.
4559
d17b6f81
PM
45602011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4561 Tom Tromey <tromey@redhat.com>
4562
4563 * top.c (set_prompt): Rewrite to free previous prompt, free
4564 asynch_new_prompt and set both on new prompts.
4565 * event-top.c (display_gdb_prompt): Add prompt substitution
4566 logic.
4567 * python/python.c (before_prompt_hook): New function.
4568
1364323a 45692011-07-20 Matt Rice <ratmice@gmail.com>
4570
4571 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4572 arguments to store_unsigned_integer.
4573
8b70b953
TT
45742011-07-20 Tom Tromey <tromey@redhat.com>
4575
6c83ed52
TT
4576 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4577 in some declaration-only cases.
4578
45792011-07-18 Tom Tromey <tromey@redhat.com>
4580
8b70b953
TT
4581 PR symtab/12984:
4582 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4583 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4584 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4585 <debug_type_section>: New field.
4586 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4587 (load_cu): Use appropriate section.
4588 (create_signatured_type_table_from_index): Add 'section'
4589 argument.
4590 (dwarf2_read_index): Only allow a single .debug_types section.
4591 (dw2_get_file_names): Use appropriate section.
4592 (read_type_comp_unit_head): Add 'section' argument.
4593 (create_debug_types_hash_table): Loop over all .debug_types
4594 sections.
4595 (init_cu_die_reader): Use appropriate section.
4596 (process_psymtab_comp_unit, load_partial_comp_unit)
4597 (load_full_comp_unit, read_die_and_children, find_partial_die)
4598 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4599 (lookup_signatured_type_at_offset): Add 'section' argument.
4600 (read_signatured_type_at_offset): Add 'sect' argument.
4601 (read_signatured_type): Use appropriate section.
4602 (set_die_type, get_die_type_at_offset): Update.
4603 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4604 VEC.
4605 (write_psymtabs_to_index): Don't allow index with more than one
4606 .debug_types section.
4607
918dd910
JK
46082011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4609
4610 Fix crash if referenced CU is aged out.
4611 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4612 xfree of block.data.
4613 (indirect_pieced_value): New variable back_to, use to for xfree of
4614 baton.data.
4615 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4616 block.data.
4617 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4618 (load_cu): New function from ...
4619 (dw2_do_instantiate_symtab): ... the code here ...
4620 (process_full_comp_unit): ... and here.
4621 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4622 retval.data.
4623
0e37a63c
JK
46242011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4627 type.
4628
7e324e48
GB
46292011-07-19 Gary Benson <gbenson@redhat.com>
4630
4631 * infrun.c (struct execution_control_state): New member
4632 stop_func_filled_in.
4633 (clear_stop_func, fill_in_stop_func): New functions.
4634 (handle_inferior_event): Call clear_stop_func rather than
4635 manipulating the execution control state directly.
4636 Call fill_in_stop_func lazily as required rather than
4637 directly calling find_pc_partial_function in all cases.
4638
d48323d8
TT
46392011-07-18 Tom Tromey <tromey@redhat.com>
4640
4641 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4642 checking for variable-sized array.
4643
40591b7d
JCD
46442011-07-18 Jean-Charles Delay <delay@adacore.com>
4645
4646 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4647 of supported languages.
4648 * varobj.c: Add top definitions and basic implementation of the
4649 following callbacks: ada_number_of_children, ada_name_of_variable,
4650 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4651 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4652 (languages): Register Ada-specific callbacks.
4653 (variable_language): Add the Ada case in the language setter switch.
4654
2e424e08
JK
46552011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4656
4657 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4658
9e8b7a03
JK
46592011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4660
4661 Code cleanup.
4662 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4663 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4664 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4665 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4666 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4667 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4668 (struct dwarf_expr_context_funcs): New, move here methods from ...
4669 (struct dwarf_expr_context): ... here. New fields funcs.
4670 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4671 (dwarf_expr_ctx_funcs): New.
4672 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4673 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4674 (needs_frame_ctx_funcs): New.
4675 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4676
2b1260ab
FM
46772011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4678
4679 * MAINTAINERS (Write After Approval): Add myself to the list.
4680
8bd90839
FM
46812011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4682
4683 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4684 that CIE pointer of an FDE really points to a CIE .
4685
953b98d1
HZ
46862011-07-15 Hui Zhu <teawater@gmail.com>
4687
4688 * remote.c (remote_get_trace_status): Add comments.
4689
c8f2448a
JK
46902011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4691
4692 Code cleanup - constify struct lval_funcs.
4693 * dwarf2loc.c (pieced_value_funcs): Make it const.
4694 * infrun.c (siginfo_value_funcs): Likewise.
4695 * opencl-lang.c (opencl_value_funcs): Likewise.
4696 * valops.c (value_assign, value_ind): Make the funcs variable const.
4697 * value.c (struct value): Make location.computed.funcs target const.
4698 Rearrange the comments.
4699 (allocate_computed_value): Make the funcs parameter target const.
4700 (value_computed_funcs): Return the funcs target const.
4701 (value_free, value_copy, set_value_component_location): Make the funcs
4702 variable const.
4703 * value.h (allocate_computed_value): Make the funcs parameter target
4704 const.
4705 (value_computed_funcs): Return the funcs target const.
4706 * windows-tdep.c (tlb_value_funcs): Make it const.
4707
f652de6f
HZ
47082011-07-14 Hui Zhu <teawater@gmail.com>
4709
4710 * remote.c (remote_get_trace_status): Initialize p.
4711
67f41397
JK
47122011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4713
4714 Work around kgdb.
4715 * remote.c (remote_get_trace_status): New variable ex. Put
4716 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4717
d1b66e6d
TT
47182011-07-13 Tom Tromey <tromey@redhat.com>
4719
4720 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4721 value_from_contents for final conversion.
4722
1632a688
JK
47232011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4724
4725 Code cleanup.
4726 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4727 Indent prototypes so they do not get into tags.
4728
a7035dbb
JK
47292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4730
4731 Code cleanup making also optimized out values lazy.
4732 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4733 allocate_optimized_out_value. Twice.
4734 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4735 * findvar.c (read_var_value): Likewise.
4736 * value.c (allocate_optimized_out_value): New function.
4737 * value.h (allocate_optimized_out_value): New declaration.
4738
d07ed419
JK
47392011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4740
4741 Fix occasional crash of CTRL-C during DWARF read in.
4742 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4743
86d31898
TT
47442011-07-11 Tom Tromey <tromey@redhat.com>
4745
4746 * regcache.c (struct regcache_descr): Fix typo.
4747 * i387-tdep.c (i387_supply_xsave): Fix typo.
4748
2ab95328
TT
47492011-07-11 Tom Tromey <tromey@redhat.com>
4750
4751 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4752 (read_file_scope, read_type_unit_scope): Use it.
4753
04ad99e6
JK
47542011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4755
4756 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4757 `int'.
4758
713389e0
PM
47592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4760
4761 PR python/12438
4762 * python/python.c: Set gdbpy_should_print_stack default to off.
4763 (set_python): Deprecate maint set python print-stack to
4764 class_deprecate.
4765 (_initialize_python): Deprecate maint set/show python print-stack.
4766 Add new prefix command, python. Add new setting, print-backtrace.
4767 * NEWS: Document set python print-stack. Document default change.
4768
754eadd1
PM
47692011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4770
4771 * python/py-inferior.c (infpy_dealloc): New function.
4772 (inferior_to_inferior_object): Return a new object, or a
4773 new reference to the existing object.
4774 (find_thread_object): Cleanup references to inferior.
4775 (delete_thread_object): Ditto.
4776 * python/py-infthread.c (create_thread_object): Do not increment
4777 inferior reference count.
4778
5e44ecb3
TT
47792011-07-08 Tom Tromey <tromey@redhat.com>
4780
4781 * dwarf2loc.c (locexpr_regname): New function.
4782 (locexpr_describe_location_piece): Use it.
4783 (disassemble_dwarf_expression): Add per_cu argument. Use
4784 locexpr_regname.
4785 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4786 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4787 New cases.
4788 (locexpr_describe_location_1): Add per_cu argument.
4789 (locexpr_describe_location): Update.
4790 (loclist_describe_location): Update.
4791
e0e9434c
TT
47922011-07-08 Tom Tromey <tromey@redhat.com>
4793
4794 * dwarf2expr.c (execute_stack_op): Add QUIT.
4795
26afc0d7
HZ
47962011-07-07 Hui Zhu <teawater@gmail.com>
4797
4798 Revert:
4799 2011-07-06 Hui Zhu <teawater@gmail.com>
4800 * remote.c (remote_start_remote): Add TRY_CATCH for
4801 remote_get_trace_status.
4802 * tracepoint.c (disconnect_tracing): Ditto.
4803
a40a111f
AB
48042011-07-07 Andrew Burgess <aburgess@broadcom.com>
4805
4806 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4807 variables as signed, not unsigned.
4808
e2bd3b15
JB
48092011-07-06 Joel Brobecker <brobecker@adacore.com>
4810
4811 * jit.c (jit_inferior_init): Reformat forward declaration.
4812
e3d961fe 48132011-07-06 Matt Rice <ratmice@gmail.com>
4814
4815 * MAINTAINERS (Write After Approval): Add myself to the list.
4816
0f3428f0
HZ
48172011-07-06 Hui Zhu <teawater@gmail.com>
4818
4819 * remote.c (remote_start_remote): Add TRY_CATCH for
4820 remote_get_trace_status.
4821 * tracepoint.c (disconnect_tracing): Ditto.
4822
fc9f3a69
TT
48232011-07-05 Tom Tromey <tromey@redhat.com>
4824
4825 * symtab.c (operator_chars): Now static.
4826 * linespec.c (operator_chars): Don't declare.
4827
26e519b9
TJB
48282011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4829
4830 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4831
eb2a6f42
TT
48322011-07-05 Tom Tromey <tromey@redhat.com>
4833
4834 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4835 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4836 (TYPE_CPLUS_REALLY_JAVA): New macro.
4837 * dwarf2read.c (process_structure_scope): Set
4838 TYPE_CPLUS_REALLY_JAVA.
4839
21083d0f 48402011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4841
4842 * ada-lang.c: Fix typos.
4843 * amd64-tdep.c: Likewise.
4844 * breakpoint.c: Likewise.
4845 * cli/cli-decode.c: Likewise.
4846 * findcmd.c: Likewise.
4847 * inline-frame.c: Likewise.
4848 * mi/mi-main.c: Likewise.
4849 * minsyms.c: Likewise.
4850 * monitor.c: Likewise.
4851 * monitor.h: Likewise.
4852 * prologue-value.c: Likewise.
4853 * reverse.c: Likewise.
4854 * s390-tdep.c: Likewise.
4855
3b2a0cf2
JB
48562011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4857
4858 * jit.c (jit_inferior_init): Forward declare.
4859 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4860
efae1d92
JB
48612011-07-04 Joel Brobecker <brobecker@adacore.com>
4862
4863 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4864
6040a59d
JB
48652011-07-04 Tristan Gingold <gingold@adacore.com>
4866
4867 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4868 (tcb_fieldno): Add activation_link field.
4869 (get_known_tasks_addr): Moved and rewritten.
4870 (get_tcb_types_info): Set activation_link field.
4871 (read_known_tasks_array): Add parameter. Rewritten.
4872 (read_known_tasks_list): New function.
4873 (read_known_tasks): New function.
4874 (ada_build_task_list): Call read_known_tasks instead of
4875 read_known_tasks_array.
4876 * ravenscar-thread.c: Add first_task_name constant.
4877 (has_ravenscar_runtime): Check for task list too.
4878
cb741e45
JB
48792011-07-04 Tristan Gingold <gingold@adacore.com>
4880
4881 * ada-tasks.c: Renames fieldno to actb_fieldno.
4882 (ada_get_task_number): Indentation.
4883 (get_tcb_types_info): Remove all parameters. Write directly
4884 the globals.
4885 (ptid_from_atcb_common): Adjust.
4886 (read_atcb): Adjust.
4887
7475b06c
TJB
48882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4889
4890 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4891
15230f37
TJB
48922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4893
4894 * ui-out.c (ui_out_field_core_addr): Mention that the function
4895 description is in the header file.
4896 * ui-out.h (ui_out_field_core_addr): Document function.
4897
65743aba
TJB
48982011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4899
4900 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4901 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4902
c37a5aab
TJB
49032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4904
4905 * symtab.c (expand_line_sal): Remove empty line.
4906
59adf69e
TS
49072011-07-04 Thomas Schwinge <thomas@schwinge.name>
4908
4909 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4910 same way as ELFOSABI_NONE.
4911 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4912
e5dd4106
TJB
49132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4914
4915 * breakpoint.c: Fix typos in comments.
4916 * linespec.c: Likewise.
4917 * symtab.c: Likewise.
4918
d40102a1
JB
49192011-07-04 Joel Brobecker <brobecker@adacore.com>
4920
4921 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4922 section in separate object files.
4923
2f741504
JK
49242011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 Fix false GCC warning.
4927 * linespec.c (decode_line_1): Initialize values.
4928
418c7cf7
JK
49292011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4930
4931 * linespec.c (find_method): Accept the function type automatically only
4932 if it was specified with parameter types.
4933
3d50dd94
JK
49342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4935
4936 Stop on first linespec terminator instead of eating what we can.
4937 * linespec.c (is_linespec_boundary): New function.
4938 (name_end): Remove function.
4939 (keep_name_info): New parameter on_boundary, replace the body.
4940 (decode_line_1): Provide the parameter to keep_name_info.
4941 (decode_compound): Likewise. Drop the trailing java return type
4942 handling. Twice.
4943
dcf9f4ab
JK
49442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4945
4946 Fall back linespec to minimal symbols.
4947 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4948 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4949 (find_method, symbol_found): Change error to cplusplus_error.
4950
3f542ed1
JK
49512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
bc68c4e5 4953 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4954
900e11f9
JK
49552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4956 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2read.c (check_physname): New variable.
4959 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4960 (show_check_physname): New function.
4961 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4962
2301925d
JB
49632011-07-01 Joel Brobecker <brobecker@adacore.com>
4964
4965 * machoread.c (macho_symfile_read): Delete OBE comment.
4966
38947cca
JB
49672011-07-01 Joel Brobecker <brobecker@adacore.com>
4968
4969 * machoread.c (struct macho_oso_data): Delete.
4970 (current_oso): Delete.
4971 (macho_relocate_common_syms): New function, mostly extracted
4972 out of
4973 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4974 Remove code that sets and unset current_oso.
4975 (macho_symfile_relocate): Delete handling of common symbols,
4976 now moved to macho_relocate_common_syms.
4977
a7aa0d73
JB
49782011-07-01 Joel Brobecker <brobecker@adacore.com>
4979
4980 * darwin-nat.c (darwin_ptrace): Add documentation.
4981 Set errno to zero before calling ptrace. If ptrace returns
4982 -1 and errno is zero, then change then return zero.
4983 (darwin_kill_inferior): Issue a warning instead of triggering
4984 a failed assertion when the PT_KILL ptrace operations returned
4985 nonzero.
4986
5e9bc145
JB
49872011-07-01 Joel Brobecker <brobecker@adacore.com>
4988
4989 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4990 only when inf->private->no_ptrace.
4991
00eb2c4a
JB
49922011-07-01 Joel Brobecker <brobecker@adacore.com>
4993
4994 * ada-lang.c (print_it_exception): Print temporary catchpoints
4995 as "Temporary catchpoint".
4996 (print_mention_exception): Likewise.
4997
127c81bc
TT
49982011-07-01 Tom Tromey <tromey@redhat.com>
4999
5000 * jv-lang.c (java_language_defn): Use java_printchar,
5001 java_printstr.
5002 (java_get_encoding): New function.
5003 (java_emit_char): Use generic_emit_char.
5004 (java_printchar): New function.
5005 (java_printstr): Likewise.
5006
25552254
JB
50072011-07-01 Joel Brobecker <brobecker@adacore.com>
5008
5009 * ada-typeprint.c (print_record_type): If unable to decode
5010 the name of the parent type, use the encoded name.
5011
d2d43431
JB
50122011-07-01 Jean-Charles Delay <delay@adacore.com>
5013
5014 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5015 pointer to constrained packed array type output.
5016 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5017 packed array output.
5018
54ae186f
JB
50192011-07-01 Jean-Charles Delay <delay@adacore.com>
5020
5021 * ada-typeprint.c (print_array_type): removed if condition on show
5022 being negative for bounds printing.
5023
8f17729f
JB
50242011-07-01 Joel Brobecker <brobecker@adacore.com>
5025
5026 * ada-lang.c (ada_identical_enum_types_p): New function.
5027 (symbols_are_identical_enums): New function.
5028 (remove_extra_symbols): Do nothing if NSYMS < 2.
5029 Use symbols_are_identical_enums.
5030
f5aa6869
JB
50312011-07-01 Joel Brobecker <brobecker@adacore.com>
5032
5033 * ada-valprint.c (ada_value_print): Handle typedefs.
5034
8f465ea7
JB
50352011-07-01 Joel Brobecker <brobecker@adacore.com>
5036
5037 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5038
828292f2
JB
50392011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5040
5041 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5042 (decode_constrained_packed_array): Likewise.
5043 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5044
18920c42
JB
50452011-07-01 Joel Brobecker <brobecker@adacore.com>
5046
5047 * ada-exp.y (convert_char_literal): Handle typedef types.
5048
c90092fe
JB
50492011-07-01 Joel Brobecker <brobecker@adacore.com>
5050
5051 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5052
f748fb40
TT
50532011-06-30 Tom Tromey <tromey@redhat.com>
5054
5055 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5056 * valops.c (find_overload_match): Call do_cleanups on early exit
5057 path.
5058 * solib.c (solib_find): Call do_cleanups on early exit path.
5059
3bb47e8b
TT
50602011-06-30 Tom Tromey <tromey@redhat.com>
5061
5062 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5063 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5064 return paths. Defer final do_cleanups until last return.
5065 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5066 early return.
5067
4727bad3
TT
50682011-06-30 Tom Tromey <tromey@redhat.com>
5069
5070 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5071
bb361dbf
AB
50722011-06-30 Andrew Burgess <aburgess@broadcom.com>
5073
5074 * MAINTAINERS (Write After Approval): Add myself to the list.
5075
e0d00bc7
JK
50762011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5077
5078 Disable epilogue unwinders on recent GCCs.
5079 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5080 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5081 * dwarf2read.c (process_full_comp_unit): Initialize
5082 EPILOGUE_UNWIND_VALID.
5083 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5084 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5085 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5086
4632c0d0
JK
50872011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5088
5089 Code cleanup - reformatting.
5090 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5091 (producer_is_gcc_ge_4): ... here, change the return value.
5092 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5093 interpretation.
5094
32019081
JK
50952011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 Fix non-only rename list for Fortran modules import.
5098 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5099 cp_add_using_directive caller.
5100 (cp_add_using_directive): New parameter excludes, describe it. New
5101 variables ix and param. Compare if also excludes match. Allocate NEW
5102 with variable size, initialize EXCLUDES there.
5103 (cp_lookup_symbol_imports): New variable excludep, test
5104 current->EXCLUDES with it.
5105 * cp-support.h: Include vec.h.
5106 (struct using_direct): New field excludes, describe it.
5107 (DEF_VEC_P (const_char_ptr)): New.
5108 (cp_add_using_directive): New parameter excludes.
5109 * defs.h (const_char_ptr): New typedef.
5110 * dwarf2read.c (read_import_statement): New variables child_die,
5111 excludes and cleanups, read in excludes.
5112 (read_namespace): Adjust the cp_add_using_directive caller.
5113
70c622a3
JK
51142011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5115
5116 Code cleanup.
5117 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5118 negative comparisons.
5119
39c4d40a
TT
51202011-06-29 André Pönitz <andre.poenitz@nokia.com>
5121
5122 * mi/mi-main.c (mi_cmd_list_features): Emit
5123 breakpoint-notifications.
5124
3b2b8fea
TT
51252011-06-29 Tom Tromey <tromey@redhat.com>
5126
5127 PR fortran/10036:
5128 * valprint.h (generic_emit_char, generic_printstr): Declare.
5129 * valprint.c (wchar_printable, append_string_as_wide)
5130 (print_wchar): Move from c-lang.c.
5131 (generic_emit_char): New function; mostly taken from c_emit_char.
5132 (generic_printstr): New function; mostly taken from c_printstr.
5133 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5134 represented as arrays.
5135 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5136 type.
5137 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5138 identically to TYPE_CODE_INT.
5139 * f-lang.c (f_get_encoding): New function.
5140 (f_emit_char): Use generic_emit_char.
5141 (f_printchar): Replace comment.
5142 (f_printstr): Use generic_printstr.
5143 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5144 "character" types specially.
5145 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5146 for Fortran.
5147 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5148 Move to valprint.c
5149 (c_emit_char): Call generic_emit_char.
5150 (c_printstr): Call generic_printstr.
5151
168e6d44
GB
51522011-06-29 Gary Benson <gbenson@redhat.com>
5153
5154 * breakpoint.c (bpstat_what): Removed duplicated case.
5155
1c033f8c
TT
51562011-06-28 Tom Tromey <tromey@redhat.com>
5157
5158 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5159
5fe41fbf
TT
51602011-06-27 Tom Tromey <tromey@redhat.com>
5161
5162 * valops.c (find_overload_match): Call do_cleanups before early
5163 return.
5164 * top.c (execute_command): Call do_cleanups before early return.
5165 (command_loop): Likewise.
5166 * stack.c (backtrace_command): Make a null cleanup early. Don't
5167 conditionally call do_cleanups.
5168 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5169 TRY_CATCH.
5170 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5171 so cleanups are always run.
5172 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5173 * findcmd.c (parse_find_args): Call do_cleanups on early return
5174 path.
5175 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5176 Don't conditionally call do_cleanups.
5177 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5178 later.
5179
e26bd57d
EB
51802011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5181
5182 * MAINTAINERS (Write After Approval): Use default email address.
5183
6c3097fc
JB
51842011-06-27 Joel Brobecker <brobecker@adacore.com>
5185
5186 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5187
369c397b
JB
51882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5189
5190 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5191 saved_regs_mask and copied_regs_mask fields.
5192 (sparc_record_save_insn): New prototype.
5193 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5194 (sparc_record_save_insn): New function.
5195 (sparc_analyze_prologue): Add head comment. Recognize store insns
5196 of call-saved registers. Use OFFSET consistently. Recognize flat
5197 frames and cache their settings.
5198 (sparc32_skip_prologue): Handle flat frames.
5199 (sparc_frame_cache): Add frame_offset to the base address.
5200 (sparc32_frame_cache): Adjust to new frame description.
5201 (sparc32_frame_prev_register): Likewise.
5202 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5203 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5204 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5205 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5206 frame by calling sparc_record_save_insn.
5207 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5208 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5209 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5210
b315ab21
TG
52112011-06-27 Tristan Gingold <gingold@adacore.com>
5212
5213 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5214 field by map_addr and map_len.
5215 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5216 (munmap_section_buffer): Likewise.
5217
ddd49eee
TT
52182011-06-24 Tom Tromey <tromey@redhat.com>
5219
5220 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5221 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5222 * python/python.c (gdbpy_parameter): Make 'arg' const.
5223 (execute_gdb_command): Likewise.
5224 (gdbpy_decode_line): Likewise. Copy it.
5225 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5226 (gdbpy_write): Make 'arg' const.
5227 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5228 const.
5229 (gdbpy_lookup_type): Likewise.
5230 * python/py-prettyprint.c (print_children): Make 'name' const.
5231 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5232 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5233 Py_ssize_t.
5234 * python/py-function.c (fnpy_init): Make 'name' const.
5235 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5236 (gdbpy_string_to_argv): Make 'input' const.
5237 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5238 it.
5239 * gdbtypes.h (lookup_typename): Update.
5240 * gdbtypes.c (lookup_typename): Make 'name' const.
5241 (lookup_struct): Likewise.
5242 (lookup_union): Likewise.
5243 (lookup_enum): Likewise.
5244
5998129b
TT
52452011-06-24 Tom Tromey <tromey@redhat.com>
5246
5247 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5248 gdb_thread_db.h. Move all common/ entries to be together.
5249 (TAGS): Don't depend on DEPFILES.
5250
6e586cc5
YQ
52512011-06-23 Yao Qi <yao@codesourcery.com>
5252
5253 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5254 * remote.c (remote_start_remote): ... here.
5255 * monitor.c (monitor_open): ... here.
5256
86c3c1fc
AB
52572011-06-23 Andrew Burgess <aburgess@broadcom.com>
5258
5259 * gdbtypes.c (append_composite_type_field_aligned): Fix
5260 calculation of bit position based on alignment.
5261
28010a5d
PA
52622011-06-22 Pedro Alves <pedro@codesourcery.com>
5263
5264 * breakpoint.c (bpstat_stop_status): Call the check_status
5265 breakpoint_ops method.
5266 (print_one_breakpoint_location): Also print the condition for Ada
5267 exception catchpoints.
5268 (allocate_bp_location): New, factored out from
5269 allocate_bp_location.
5270 (allocate_bp_location): Adjust. Call the owner breakpoint's
5271 allocate_location method, if there is one.
5272 (free_bp_location): Call the locations's dtor method, if there is
5273 one.
5274 (init_raw_breakpoint_without_location): New breakpoint_ops
5275 parameter. Use it.
5276 (set_raw_breakpoint_without_location): Adjust.
5277 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5278 (set_raw_breakpoint): Adjust.
5279 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5280 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5281 re_set and check_status methods.
5282 (init_catchpoint): Don't memset, initialize thread, addr_string
5283 and enable_state. Pass the ops down to init_raw_breakpoint.
5284 (install_catchpoint): Rename to ...
5285 (install_breakpoint): ... this, and make extern.
5286 (create_fork_vfork_event_catchpoint): Adjust.
5287 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5288 re_set and check_status methods.
5289 (create_syscall_event_catchpoint): Adjust.
5290 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5291 (masked_watchpoint_breakpoint_ops): Install NULL
5292 allocate_location, re_set and check_status methods.
5293 (catch_exec_command_1): Adjust.
5294 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5295 re_set and check_status methods.
5296 (create_ada_exception_breakpoint): Rename to ...
5297 (init_ada_exception_breakpoint): ... this. Add a struct
5298 breakpoint parameter, and delete the exp_string, cond_string and
5299 cond parameters. Use init_raw_breakpoint, and don't install or
5300 mention the breakpoint yet. Don't clear breakpoint fields that
5301 init_raw_breakpoint already clears.
5302 (re_set_breakpoint): Delete, split into ...
5303 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5304 functions.
5305 (breakpoint_re_set_one): Call the breakpoint's
5306 breakpoint_ops->re_set implementation, if there's one. Adjust.
5307 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5308 (struct bp_location_ops): New type.
5309 (struct bp_location): New field `ops'.
5310 (struct breakpoint_ops): New `allocate_location', `re_set' and
5311 `check_status' fields. Make `breakpoint_hit''s description match
5312 reality.
5313 (init_bp_location): Declare.
5314 (breakpoint_re_set_default): Declare.
5315 (create_ada_exception_breakpoint): Rename to ...
5316 (init_ada_exception_breakpoint): ... this. Add a struct
5317 breakpoint parameter, and delete the exp_string, cond_string and
5318 cond parameters.
5319 (install_breakpoint): Declare.
5320 * ada-lang.c: Include exceptions.h.
5321 <Ada exceptions description>: Update.
5322 (struct ada_catchpoint_location): New type.
5323 (ada_catchpoint_location_dtor): New function.
5324 (ada_catchpoint_location_ops): New global.
5325 (ada_catchpoint): New type.
5326 (create_excep_cond_exprs): New function.
5327 (dtor_exception, allocate_location_exception, re_set_exception)
5328 (should_stop_exception, check_status_exception): New functions.
5329 (print_one_exception, print_mention_exception)
5330 (print_recreate_exception): Adjust.
5331 (dtor_catch_exception, allocate_location_catch_exception)
5332 (re_set_catch_exception, check_status_catch_exception): New
5333 functions.
5334 (catch_exception_breakpoint_ops): Install them.
5335 (dtor_catch_exception_unhandled)
5336 (allocate_location_catch_exception_unhandled)
5337 (re_set_catch_exception_unhandled)
5338 (check_status_catch_exception_unhandled): New functions.
5339 (catch_exception_unhandled_breakpoint_ops): Install them.
5340 (dtor_catch_assert, allocate_location_catch_assert)
5341 (re_set_catch_assert, check_status_catch_assert): New functions.
5342 (catch_assert_breakpoint_ops): Install them.
5343 (ada_exception_catchpoint_p): Delete.
5344 (catch_ada_exception_command_split)
5345 (ada_exception_catchpoint_cond_string): Rename exp_string
5346 parameter to excep_string. Adjust.
5347 (ada_parse_catchpoint_condition): Delete.
5348 (ada_exception_sal): Rename the exp_string parameter to
5349 excep_string. Delete the cond_string and cond parameters.
5350 Adjust.
5351 (ada_decode_exception_location): Rename the exp_string parameter
5352 to excep_string. Delete the cond_string and cond parameters.
5353 Adjust.
5354 (create_ada_exception_catchpoint): New function.
5355 (catch_ada_exception_command, ada_decode_assert_location)
5356 (catch_assert_command): Adjust.
5357 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5358
9ac4176b
PA
53592011-06-22 Pedro Alves <pedro@codesourcery.com>
5360
5361 * ada-lang.c: Include arch-utils.h.
5362 (ada_decode_exception_location): Make static.
5363 (catch_ada_exception_command): Moved here from breakpoint.c.
5364 (ada_decode_assert_location): Make static.
5365 (catch_assert_command): Moved here from breakpoint.c.
5366 (_initialize_ada_lang): Install the exception and assert
5367 catchpoint commands here.
5368 * ada-lang.h (ada_decode_exception_location)
5369 (ada_decode_assert_location): Delete declarations.
5370 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5371 breakpoint.h.
5372 (create_ada_exception_breakpoint): Make extern.
5373 (catch_ada_exception_command, catch_assert_command): Moved to
5374 ada-lang.c.
5375 (add_catch_command): Make extern.
5376 (_initilize_breakpoint): Don't install the exception and assert
5377 catchpoint commands here.
5378 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5379 breakpoint.c
5380 (add_catch_command, create_ada_exception_breakpoint): Declare.
5381
c56053d2
PA
53822011-06-22 Pedro Alves <pedro@codesourcery.com>
5383
5384 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5385 the breakpoint to the breakpoint chain here.
5386 (set_raw_breakpoint_without_location): Add the breakpoint to the
5387 breakpoint chain here.
5388 (init_raw_breakpoint): Adjust comments.
5389 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5390 here.
5391 (init_catchpoint): Don't set the catchpoint's breakpoint number
5392 here.
5393 (install_catchpoint): New function.
5394 (create_fork_vfork_event_catchpoint)
5395 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5396 use install_catchpoint.
5397
d2f3fc74
PA
53982011-06-22 Pedro Alves <pedro@codesourcery.com>
5399
5400 * breakpoint.c (create_catchpoint_without_mention)
5401 (create_catchpoint): Delete.
5402
b4d90040
PA
54032011-06-22 Pedro Alves <pedro@codesourcery.com>
5404
5405 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5406 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5407 reference to exec_pathname.
5408 (struct exec_catchpoint): New type.
5409 (dtor_catch_exec): New function.
5410 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5411 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5412 (catch_exec_command_1): Adjust to use init_catchpoint.
5413 (delete_breakpoint): Remove reference to exec_pathname.
5414
be5c67c1
PA
54152011-06-22 Pedro Alves <pedro@codesourcery.com>
5416
5417 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5418 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5419 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5420 reference to syscalls_to_be_caught.
5421 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5422 NULL `dtor'.
5423 (struct syscall_catchpoint): New type.
5424 (dtor_catch_syscall): New function.
5425 (insert_catch_syscall, remove_catch_syscall)
5426 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5427 (print_recreate_catch_syscall): Adjust.
5428 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5429 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5430 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5431 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5432 (masked_watchpoint_breakpoint_ops)
5433 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5434 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5435 there is one. Remove references to syscalls_to_be_caught.
5436 (catching_syscall_number): Adjust.
5437 * ada-lang.c (catch_exception_breakpoint_ops)
5438 (catch_exception_unhandled_breakpoint_ops)
5439 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5440
e29a4733
PA
54412011-06-22 Pedro Alves <pedro@codesourcery.com>
5442
5443 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5444 field.
5445 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5446 reference to forked_inferior_pid.
5447 (struct fork_catchpoint): New type.
5448 (breakpoint_hit_catch_fork, print_it_catch_fork)
5449 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5450 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5451 (create_fork_vfork_event_catchpoint): Adjust to use
5452 init_catchpoint.
5453
346774a9
PA
54542011-06-22 Pedro Alves <pedro@codesourcery.com>
5455
5456 * breakpoint.c (add_to_breakpoint_chain)
5457 (init_raw_breakpoint_without_location): New functions, factored
5458 out from ...
5459 (set_raw_breakpoint_without_location): ... this one.
5460 (init_raw_breakpoint): New function, factored out from
5461 set_raw_breakpoint and adjusted to use
5462 init_raw_breakpoint_without_location.
5463 (set_raw_breakpoint): Adjust.
5464 (init_catchpoint): New function, factored out from
5465 create_catchpoint_without_mention and adjusted to use
5466 init_raw_breakpoint.
5467 (create_catchpoint_without_mention): Adjust.
5468
c38c4bc5
TT
54692011-06-22 Tom Tromey <tromey@redhat.com>
5470
5471 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5472 argument of 0 specially.
5473
b138ce37
YQ
54742011-06-22 Yao Qi <yao@codesourcery.com>
5475
5476 * infrun.c (handle_inferior_event): Remove write-only local variable
5477 `sw_single_step_trap_p'.
5478
03de6823
TT
54792011-06-20 Tom Tromey <tromey@redhat.com>
5480
5481 * symtab.c (lookup_language_this): End loop if block is NULL.
5482
66a17cb6
TT
54832011-06-17 Tom Tromey <tromey@redhat.com>
5484
5485 * valops.c (value_of_this): Use lookup_language_this.
5486 * symtab.h (lookup_language_this): Declare.
5487 * symtab.c (lookup_language_this): New function.
5488 (lookup_symbol_aux): Use lookup_language_this.
5489 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5490
7518bff5
TT
54912011-06-17 Tom Tromey <tromey@redhat.com>
5492
5493 * value.h (value_of_this): Update.
5494 (value_of_local): Remove.
5495 * valops.c (value_of_this): Rename from value_of_local. Change
5496 parameters.
5497 * p-exp.y (exp): Update.
5498 (variable): Likewise.
5499 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5500
aee28ec6
TT
55012011-06-17 Tom Tromey <tromey@redhat.com>
5502
5503 * valops.c (value_of_local): Complain if NAME is NULL.
5504 * std-operator.def (OP_OBJC_SELF): Remove.
5505 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5506 * objc-exp.y (name_not_typename): Use OP_THIS.
5507 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5508 name for "this".
5509 <OP_OBJC_SELF>: Remove.
5510 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5511
eed8f803
TG
55122011-06-16 Tristan Gingold <gingold@adacore.com>
5513
5514 * python/py-events.h (gdb_py_events): Make it extern.
5515 * python/py-evtregistry.c (gdb_py_events): Declare.
5516
864ac8a7
HZ
55172011-06-16 Hui Zhu <teawater@gmail.com>
5518
5519 * remote.c (remote_trace_set_readonly_regions): Add check for
5520 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5521 output warning.
5522
ef7e8358
UW
55232011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5524
5525 * arm-linux-tdep.c: Include "auxv.h".
5526 (AT_HWCAP): Define.
5527 (ARM_LINUX_SIZEOF_VFP): Define.
5528 (arm_linux_supply_vfp): New function.
5529 (arm_linux_collect_vfp): Likewise.
5530 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5531 (arm_linux_fpa_regset_sections): New variable.
5532 (arm_linux_vfp_regset_sections): Likewise.
5533 (arm_linux_core_read_description): New function.
5534 (arm_linux_init_abi): Install arm_linux_core_read_description and
5535 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5536 appropriate for the architecture.
5537 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5538 (tdesc_arm_with_m): Declare.
5539 (tdesc_arm_with_iwmmxt): Likewise.
5540 (tdesc_arm_with_vfpv2): Likewise.
5541 (tdesc_arm_with_vfpv3): Likewise.
5542 (tdesc_arm_with_neon): Likewise.
5543 * arm-linux-nat.c: Move features/*.c includes ...
5544 * arm-tdep.c: ... here.
5545 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5546 target description data structures ...
5547 * arm-tdep.c (_initialize_arm_tdep): ... here.
5548 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5549 HWCAP_VFPv3D16): Move definitions ...
5550 * arm-linux-tdep.h: ... here.
5551
c2fa21f1
HZ
55522011-06-15 Hui Zhu <teawater@gmail.com>
5553
5554 * remote.c (remote_trace_set_readonly_regions): Add a check for
5555 target_buf_size.
5556
dd707e8e
TT
55572011-06-14 Tom Tromey <tromey@redhat.com>
5558
5559 * coffread.c (coffread_objfile): Rename from current_objfile.
5560 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5561 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5562
86cc0029
TT
55632011-06-14 Tom Tromey <tromey@redhat.com>
5564
5565 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5566 (class_symtab): Remove.
5567 (jv_dynamics_progspace_key): New global.
5568 (jv_per_objfile_free): Reset program space data. Update assert.
5569 Don't clear globals.
5570 (get_dynamics_objfile): Use and set program space data.
5571 (get_java_class_symtab): Use get_dynamics_objfile.
5572 (add_class_symbol): Likewise.
5573 (java_link_class_type): Likewise.
5574 (java_object_type, jv_clear_object_type, set_java_object_type):
5575 Remove.
5576 (get_java_object_type): Update. Don't cache result.
5577 (is_object_type): Don't call set_java_object_type.
5578 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5579 initialize jv_dynamics_progspace_key.
5580
91a81f69
TT
55812011-06-14 Tom Tromey <tromey@redhat.com>
5582
5583 * symtab.h (current_objfile): Don't declare.
5584 * objfiles.h (current_objfile): Don't declare.
5585 * objfiles.c (current_objfile): Remove.
5586 * mdebugread.c (current_objfile): New file-scope global.
5587 * dbxread.c (current_objfile): New file-scope global.
5588 * coffread.c (current_objfile): New file-scope global.
5589
dc7eb48e
PA
55902011-06-13 Pedro Alves <pedro@codesourcery.com>
5591
5592 * top.h (line): Rename to ...
5593 (saved_command_line): ... this.
5594 (linesize): Rename to ...
5595 (saved_command_line_size): ... this.
5596 * top.c (line): Rename to ...
5597 (saved_command_line): ... this.
5598 (linesize): Rename to ...
5599 (saved_command_line_size): ... this.
5600 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5601 * event-top.c (command_line_handler): Adjust.
5602 * main.c (captured_main): Adjust.
5603
0d6c2135
MK
56042011-06-12 Mark Kettenis <kettenis@gnu.org>
5605
5606 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5607 get_frame_func instead of get_frame_pc to determine the code
5608 address used to construct the frame ID.
5609 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5610 (i386_epilogue_frame_this_id): Likewise.
5611 (i386_epilogue_frame_prev_register): New function.
5612 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5613 (i386_stack_tramp_frame_sniffer): Fix coding style.
5614 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5615 (i386_gdbarch_init): Fix comments.
5616
8bbdd3f4
MK
56172011-06-12 Mark Kettenis <kettenis@gnu.org>
5618
5619 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5620 instruction when walking back through the instruction stream.
5621
533a737e
JK
56222011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5625 fullname parameters order.
5626
44b13c5a
JK
56272011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5628
5629 Code cleanup.
5630 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5631 for fun.
5632 * psymtab.c (map_symbol_filenames_psymtab)
5633 (map_partial_symbol_filenames): Likewise.
5634 * psymtab.h: Include symfile.h.
5635 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5636 * symfile.h (symbol_filename_ftype): New.
5637 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5638 map_symbol_filenames, clarify more the naming in comment.
5639
0b5574da
DE
56402011-06-07 Doug Evans <dje@google.com>
5641
5642 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5643 Look for ../../gdb, for fullname.exp.
0b5574da 5644
5be4dfca
JK
56452011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5646 Pedro Alves <pedro@codesourcery.com>
5647
5648 * cli/cli-cmds.c (shell_escape): Use waitpid.
5649 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5650
316a8b21
TG
56512011-06-07 Tristan Gingold <gingold@adacore.com>
5652
5653 * xcoffread.c (dwarf2_xcoff_names): New variable.
5654 (aix_process_linenos): Add a guard.
5655 (xcoff_symfile_finish): Free dwarf2.
5656 (xcoff_initial_scan): Add dwarf2 support.
5657
3dd5b83d
PA
56582011-06-06 Pedro Alves <pedro@codesourcery.com>
5659
5660 * infcall.c (run_inferior_call): Don't mask async. Instead force
5661 a synchronous wait, if the target can async.
5662
5663 * target.h (struct target_ops): Delete to_async_mask.
5664 (target_async_mask): Delete.
5665 * target.c (update_current_target): Delete references to to_async_mask.
5666 * linux-nat.c (linux_nat_async_mask_value): Delete.
5667 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5668 to linux_nat_async_mask_value.
5669 (linux_nat_async_mask): Delete.
5670 (linux_nat_async, linux_nat_close): Remove references to
5671 linux_nat_async_mask_value.
5672 * record.c (record_async_mask_value): Delete.
5673 (record_async): Remove references to record_async_mask_value.
5674 (record_async_mask): Delete.
5675 (record_can_async_p, record_is_async_p): Remove references to
5676 record_async_mask_value.
5677 (init_record_ops, init_record_core_ops): Remove references to
5678 record_async_mask.
5679 * remote.c (remote_async_mask_value): Delete.
5680 (init_remote_ops): Remove reference to remote_async_mask.
5681 (remote_can_async_p, remote_is_async_p): Remove references to
5682 remote_async_mask_value.
5683 (remote_async): Remove references to remote_async_mask_value.
5684 (remote_async_mask): Delete.
5685
5686 * infrun.c (fetch_inferior_event): Don't claim registers changed
5687 if the current thread is already not executing.
5688
64b9b334
JB
56892011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5690
5691 From Stephen Kitt <steve@sk2.org>
5692 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5693 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5694
325663dc
JB
56952011-06-03 Joel Brobecker <brobecker@adacore.com>
5696
5697 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5698 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5699
8cf64490
TT
57002011-06-03 Tom Tromey <tromey@redhat.com>
5701
5702 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5703 code fields.
5704 * python/py-exitedevent.c (create_exited_event_object): Change
5705 type of 'exit_code'. Optionally add exit_code attribute.
5706 (emit_exited_event): Change type of 'exit_code'.
5707 * python/py-event.h (emit_exited_event): Update.
5708 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5709 * infrun.c (handle_inferior_event): Set exit code fields on
5710 inferior.
5711 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5712 fields.
5713 * inferior.c (exit_inferior_1): Initialize new fields.
5714
8ddd9a20
TT
57152011-06-03 Tom Tromey <tromey@redhat.com>
5716
5717 * dwarf2expr.c (get_signed_type): New function.
5718 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5719
8dfd1e6d
KS
57202011-06-02 Keith Seitz <keiths@redhat.com>
5721
5722 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5723
65fdb766
PA
57242011-06-02 Pedro Alves <pedro@codesourcery.com>
5725
5726 * top.h (simplified_command_loop): Delete declaration.
5727
f4b8c29b
MF
57282011-06-01 Mike Frysinger <vapier@gentoo.org>
5729
5730 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5731 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5732
1706c199
YQ
57332011-06-01 Yao Qi <yao@codesourcery.com>
5734
5735 * objfiles.h (obj_section_addr): Update reference to objfile from
5736 `abfd' to `obfd'.
5737 (obj_section_endaddr): Likewise.
5738
d19cd713 57392011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5740
5741 * MAINTAINERS: Update my email address and affiliation. Also
5742 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5743
e8eb7bc5
KS
57442010-05-31 Keith Seitz <keiths@redhat.com>
5745
5746 PR c++/12750
5747 * linespec.c (get_search_block): New function.
5748 (find_methods): Add FILE_SYMTATB parameter and use it and
5749 get_search_block to pass an appropriate block to
5750 lookup_symbol_in_namespace.
5751 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5752 Check if *ARGPTR starts with a filename first.
5753 If it does, call locate_first_half again to locate the next
5754 "first half" of the linespec.
5755 Pass FILE_SYMTATB to decode_objc and decode_compound.
5756 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5757 (locate_first_half): Stop on the first colon seen.
5758 (decode_compound): Add FILE_SYMTAB parameter.
5759 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5760 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5761 get_search_block with lookup_symbol.
5762 (find_method): Add FILE_SYMTAB parameter and pass it to
5763 find_methods.
5764 (decode_objc): Use get_search_block.
5765
2b1dbab0
KS
57662010-05-31 Keith Seitz <keiths@redhat.com>
5767
5768 PR symtab/12704
5769 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5770 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5771 and CP_ANONYMOUS_NAMESPACE_LEN.
5772 (cp_is_anonymous): Likewise.
5773 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5774 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5775 * dwarf2read.c (namespace_name): Likewise.
5776 (fixup_partial_die): Likewise.
5777 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5778 seen in the input, keep it.
5779
6d549500
PA
57802011-05-30 Pedro Alves <pedro@codesourcery.com>
5781
5782 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5783 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5784 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5785 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5786 * remote.c (_initialize_remote): Register
5787 async_remote_interrupt_twice directly as
5788 sigint_remote_twice_token event.
5789
395bff70
PA
57902011-05-30 Pedro Alves <pedro@codesourcery.com>
5791
5792 * target.h (enum inferior_event_type): Delete INF_ERROR.
5793 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5794
97224164
PA
57952011-05-30 Pedro Alves <pedro@codesourcery.com>
5796
5797 * interps.c (interp_set): Don't cancel continuations.
5798
07e78767
JK
57992011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5802
fa4cd53f
PA
58032011-05-30 Pedro Alves <pedro@codesourcery.com>
5804
5805 * continuations.h (continuation_ftype): Add `err' parameter.
5806 Document parameters.
5807 (do_all_continuations, do_all_continuations_thread)
5808 (do_all_intermediate_continuations)
5809 (do_all_intermediate_continuations_thread)
5810 (do_all_inferior_continuations): Add `err' parameter.
5811 * continuations.c (do_my_continuations_1, do_my_continuations)
5812 (do_all_inferior_continuations, do_all_continuations_ptid)
5813 (do_all_continuations_thread_callback)
5814 (do_all_continuations_thread, do_all_continuations)
5815 (do_all_intermediate_continuations_thread_callback)
5816 (do_all_intermediate_continuations_thread)
5817 (do_all_intermediate_continuations): Add `err' parameter, and pass
5818 it down all the way to the continuations proper.
5819 * inf-loop.c (inferior_event_handler): If fetching an inferior
5820 event throws an error, don't pop the target, and still call the
5821 continuations, but with `err' set. Adjust all other continuation
5822 calls.
5823 * breakpoint.c (until_break_command_continuation): Add `err'
5824 parameter.
5825 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5826 issue another step if `err' is set.
5827 (struct until_next_continuation_args): New.
5828 (until_next_continuation): Add `err' parameter. Adjust.
5829 (until_next_command): Adjust.
5830 (struct finish_command_continuation_args): Add `thread' field.
5831 (finish_command_continuation): Add `err' parameter. Handle it.
5832 (finish_forward): Adjust.
5833 (attach_command_continuation): Add `err' parameter. Handle it.
5834 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5835 cancel the continuations.
5836 * interps.c (interp_set): Adjust to cancel the continuations.
5837 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5838 continuations rather than discarding.
5839 (free_thread): Don't clear thread inferior resources here.
5840 (delete_thread_1): Do it here instead. And do it before removing
5841 the thread from the threads list. Tag the thread as exited before
5842 clearing thread inferior resources.
5843
c2949be0
JB
58442011-05-30 Joel Brobecker <brobecker@adacore.com>
5845
5846 * infcall.c (call_function_by_hand): Rephrase error message.
5847
619cebe8
PA
58482011-05-27 Pedro Alves <pedro@codesourcery.com>
5849
5850 * defs.h (struct thread_info, struct inferior): Delete forward
5851 declarations.
5852 * breakpoint.h (struct thread_info): New forward declaration.
5853 * observer.sh (struct inferior): New forward declaration.
5854 * python/python-internal.h (struct inferior): New forward
5855 declaration.
5856
be34f849
PA
58572011-05-27 Pedro Alves <pedro@codesourcery.com>
5858
5859 * defs.h (struct continuation, continuation_ftype)
5860 (continuation_free_arg_ftype, add_continuation)
5861 (do_all_continuations, do_all_continuations_thread)
5862 (discard_all_continuations, discard_all_continuations_thread)
5863 (add_intermediate_continuation, do_all_intermediate_continuations)
5864 (do_all_intermediate_continuations_thread)
5865 (discard_all_intermediate_continuations)
5866 (discard_all_intermediate_continuations_thread)
5867 (add_inferior_continuation, do_all_inferior_continuations)
5868 (discard_all_inferior_continuations): Move to ...
5869 * continuations.h: ... this new file.
5870 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5871 infcmd.c, inferior.c, infrun.c, interps.c: Include
5872 continuations.h.
5873
432b4d03
JK
58742011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5875 Doug Evans <dje@google.com>
5876
5877 Fix PR 10970, PR 12702.
5878 * linux-nat.c (linux_lwp_is_zombie): New function.
5879 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5880 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5881
b0f260d6
PA
58822011-05-27 Pedro Alves <pedro@codesourcery.com>
5883
5884 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5885 typedefs.
5886 (add_continuation, add_intermediate_continuation)
5887 (add_inferior_continuation): Use them.
5888 * continuations.c (struct continuation): Use them.
5889 (make_continuation_ftype): Delete.
5890 (make_continuation, add_inferior_continuation, add_continuation)
5891 (add_intermediate_continuation): Use continuation_ftype and
5892 continuation_free_arg_ftype. Rename parameters to shorter names.
5893
af1e9a32
PA
58942011-05-27 Pedro Alves <pedro@codesourcery.com>
5895
5896 * continuations.c (make_continuation): Make it return void.
5897 (do_my_continuations): Rename to ...
5898 (do_my_continuations_1): ... this. Remove old_chain parameter and
5899 adjust.
5900 (do_my_continuations): New.
5901 (discard_my_continuations): Rename to ...
5902 (discard_my_continuations_1): ... this. Remove old_chain
5903 parameter and adjust.
5904 (discard_my_continuations): New.
5905 (add_inferior_continuation): Simplify.
5906 (do_all_inferior_continuations): Reimplement on top
5907 do_my_continuations.
5908 (discard_all_inferior_continuations): Simplify.
5909 (add_continuation): Simplify.
5910 (do_all_continuations_ptid): Simplify.
5911 (discard_all_continuations_thread_callback): Simplify.
5912 (add_intermediate_continuation): Simplify.
5913 (discard_all_intermediate_continuations_thread_callback):
5914 Simplify.
5915
50c0c017
PA
59162011-05-27 Pedro Alves <pedro@codesourcery.com>
5917
5918 * utils.c (struct continuation, add_continuation)
5919 (add_inferior_continuation)
5920 (do_all_inferior_continuations, discard_all_inferior_continuations)
5921 (restore_thread_cleanup, do_all_continuations_ptid)
5922 (do_all_continuations_thread_callback)
5923 (do_all_continuations_thread, do_all_continuations)
5924 (discard_all_continuations_thread_callback)
5925 (discard_all_continuations_thread, discard_all_continuations)
5926 (add_intermediate_continuation)
5927 (do_all_intermediate_continuations_thread_callback)
5928 (do_all_intermediate_continuations_thread)
5929 (do_all_intermediate_continuations)
5930 (discard_all_intermediate_continuations_thread_callback)
5931 (discard_all_intermediate_continuations_thread)
5932 (discard_all_intermediate_continuations): Move to ...
5933 * continuations.c: ... this new file, and adjust to no longer
5934 implement continuations on top of cleanups.
5935 * Makefile.in (SFILES): Add continuations.c.
5936 (COMMON_OBS): Add continuations.o.
5937
d8b34453
PA
59382011-05-26 Pedro Alves <pedro@codesourcery.com>
5939
5940 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5941 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5942 Internal error on invalid values.
5943 * reverse.c: Don't handle EXEC_ERROR.
5944 * mi/mi-main.c: Don't handle EXEC_ERROR.
5945
32231432
PA
59462011-05-26 Pedro Alves <pedro@codesourcery.com>
5947
5948 * record.c: Include event-loop.h, inf-loop.h.
5949 (record_beneath_to_async): New global.
5950 (tmp_to_async): New global.
5951 (record_async_inferior_event_token): New global.
5952 (record_open_1): Don't error out if async is enabled.
5953 (record_open): Handle to_async. Create an async event source in
5954 the event loop.
5955 (record_close): Delete the async event source.
5956 (record_resumed): New global.
5957 (record_execution_dir): New global.
5958 (record_resume, record_core_resume): Set them. Register the
5959 target on the event loop.
5960 (record_wait): Rename to ...
5961 (record_wait_1): ... this. Add more debug output. Handle
5962 TARGET_WNOHANG, and the target beneath returning
5963 TARGET_WAITKIND_IGNORE.
5964 (record_wait): Reimplement on top of record_wait_1.
5965 (record_async_mask_value): New global.
5966 (record_async, record_async_mask, record_can_async_p)
5967 (record_is_async_p, record_execution_direction): New functions.
5968 (init_record_ops, init_record_core_ops): Install new methods.
5969 * infrun.c (fetch_inferior_event): Temporarily switch the global
5970 execution direction to the direction the target was going.
5971 (execution_direction): Change type to int.
5972 * target.c (default_execution_direction): New function.
5973 (update_current_target): Inherit and de_fault
5974 to_execution_direction.
5975 * target.h (struct target_ops) <to_execution_direction>: New
5976 field.
5977 (target_execution_direction): New macro.
5978 * inferior.h (execution_direction): Change type to int.
5979
949dc678
PA
59802011-05-26 Pedro Alves <pedro@codesourcery.com>
5981
5982 * infcall.c (call_function_by_hand): Don't allow calling functions
5983 in reverse execution mode.
5984
c13bd2b5
PA
59852011-05-26 Pedro Alves <pedro@codesourcery.com>
5986
5987 * infcmd.c (finish_command): Allow async finish in reverse.
5988
6938fd34
YQ
59892011-05-26 Yao Qi <yao@codesourcery.com>
5990
5991 * gdb_thread_db.h: Delete. Move to ...
5992 * common/gdb_thread_db.h: ... here.
5993
9da8c2a0
PA
59942011-05-26 Pedro Alves <pedro@codesourcery.com>
5995
5996 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5997 function's entry point instead of a manually managed momentary
5998 breakpoint, and only ever issue one proceed call.
5999 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6000 doing a reverse-finish, switch to stepi mode, to do another step.
6001 (insert_step_resume_breakpoint_at_sal): Make public.
6002 (normal_stop): No need to save function value return registers if
6003 going reverse.
6004 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6005
2c03e5be
PA
60062011-05-26 Pedro Alves <pedro@codesourcery.com>
6007
6008 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6009 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6010 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6011 at the end.
6012 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6013 step-resume breakpoints.
6014 (print_it_typical): Handle bp_hp_step_resume.
6015 (bpstat_what): Ditto.
6016 (bptype_string): Ditto.
6017 (print_one_breakpoint_location): Ditto.
6018 (allocate_bp_location): Ditto.
6019 (mention): Ditto.
6020 (breakpoint_re_set_one): Ditto.
6021 * infrun.c (handle_inferior_event): Adjust. Split
6022 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6023 BPSTAT_WHAT_HP_STEP_RESUME.
6024 (insert_step_resume_breakpoint_at_sal): Rename to ...
6025 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6026 parameter. Handle it.
6027 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6028 insert_step_resume_breakpoint_at_sal_1.
6029 (insert_step_resume_breakpoint_at_frame): Rename to ...
6030 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6031 set a high-priority step-resume breakpoint.
6032 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6033 (insert_step_resume_breakpoint_at_caller): Ditto.
6034
51be5b68
PA
60352011-05-26 Pedro Alves <pedro@codesourcery.com>
6036
6037 * breakpoint.c (iterate_over_related_breakpoints): New.
6038 (do_map_delete_breakpoint): New.
6039 (delete_command): Pass do_map_delete_breakpoint to
6040 map_breakpoint_numbers.
6041 (do_disable_breakpoint): New.
6042 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6043 breakpoints.
6044 (do_enable_breakpoint): Rename to ...
6045 (enable_breakpoint_disp): ... this.
6046 (enable_breakpoint): Adjust.
6047 (do_enable_breakpoint): New.
6048 (enable_once_breakpoint): Delete.
6049 (do_map_enable_breakpoint): New.
6050 (do_map_enable_once_breakpoint): New.
6051 (enable_once_command, enable_delete_command)
6052 (delete_trace_command): Iterate over the breakpoint's related
6053 breakpoints.
6054
4a1be8d2
PA
60552011-05-26 Pedro Alves <pedro@codesourcery.com>
6056
6057 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6058 for ALPHA_ZERO_REGNUM.
6059 (alpha_supply_int_regs): Explicitly supply zero as the value for
6060 ALPHA_ZERO_REGNUM in the register cache.
6061 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6062
59d70315
YQ
60632011-05-26 Yao Qi <yao@codesourcery.com>
6064
6065 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6066
251d32d9
TG
60672011-05-26 Tristan Gingold <gingold@adacore.com>
6068
6069 * symfile.h (struct dwarf2_section_names): New type.
6070 (struct dwarf2_debug_sections): New type.
6071 (dwarf2_has_info): Add parameter.
6072 * dwarf2read.c (dwarf2_elf_names): New variable.
6073 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6074 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6075 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6076 (dwarf2_has_info): Add names parameter. Pass names
6077 to dwarf2_locate_sections.
6078 (section_is_p): Rewrite using the names parameter.
6079 (dwarf2_locate_sections): Use section names from the names parameter.
6080 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6081 * elfread.c (read_psyms): Ditto.
6082 * machoread.c (macho_symfile_read): Ditto.
6083
652c71b4
AS
60842011-05-25 Andreas Schwab <schwab@redhat.com>
6085
6086 PR gdb/8677
6087 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6088
f17170e5
KS
60892011-05-24 Keith Seitz <keiths@redhat.com>
6090
6091 PR breakpoint/12803
6092 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6093 (decode_compound): Unconditionally call keep_name_info.
6094
cdac0397
PA
60952011-05-24 Pedro Alves <pedro@codesourcery.com>
6096
6097 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6098 scope, clear its command list.
6099 (map_breakpoint_numbers): Don't walk the related breakpoints list
6100 of each breakpoint.
6101
91d4fe3f
TT
61022011-05-24 Tom Tromey <tromey@redhat.com>
6103
6104 * MAINTAINERS: Move Jim Blandy to past maintainers.
6105
3017a003
TG
61062011-05-24 Tristan Gingold <gingold@adacore.com>
6107
6108 * symfile.h (enum dwarf2_section_enum): New type.
6109 (dwarf2_get_section_info): New prototype.
6110 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6111 section_name by sect. Use a switch to select the info.
6112 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6113 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6114
c91c8c16
PA
61152011-05-24 Pedro Alves <pedro@codesourcery.com>
6116
6117 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6118 shared library event breakpoint if there's no execution.
6119
77bc418a
TJB
61202011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6121
6122 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6123 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6124
c50491a7
TT
61252011-05-23 Tom Tromey <tromey@redhat.com>
6126
6127 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6128 NULL.
6129
6d64e6d4
DE
61302011-05-23 Doug Evans <dje@google.com>
6131
6132 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6133 entry for RuntimeError to doc string.
6134
2067c8d4
JG
61352011-05-23 Jerome Guitton <guitton@adacore.com>
6136
6137 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6138 sequence for probing loops.
6139
b136cd05
PA
61402011-05-23 Pedro Alves <pedro@codesourcery.com>
6141
6142 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6143 comment.
6144
22e74ef9
MK
61452011-05-21 Mark Kettenis <kettenis@gnu.org>
6146
6147 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6148 zero as the value for %g0 in the register cache.
6149 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6150 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6151
842951eb
PA
61522011-05-20 Pedro Alves <pedro@codesourcery.com>
6153
6154 * infrun.c (proceed): Set previous_inferior_ptid here.
6155 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6156 inferior_ptid, not null_ptid.
6157 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6158 (fetch_inferior_event): Nor here.
6159
46cf51e6
PA
61602011-05-20 Pedro Alves <pedro@codesourcery.com>
6161
6162 * inf-loop.c (inferior_event_handler): Only output a message if
6163 verbose.
6164
29ef4c46
LM
61652011-05-20 Luis Machado <lgustavo@codesourcery.com>
6166
6167 * MAINTAINERS: Update my e-mail address.
6168
f148b27e
PA
61692011-05-20 Pedro Alves <pedro@codesourcery.com>
6170
6171 * infrun.c (proceed): Switch the inferior event loop to
6172 INF_EXEC_COMPLETE if the target refused to resume from a
6173 vfork/fork.
6174
09cee04b
PA
61752011-05-20 Pedro Alves <pedro@codesourcery.com>
6176
6177 * infcmd.c: Include "inf-loop.h".
6178 (step_once): When stepping into an inline subroutine, pretend the
6179 target has run. If the target can async, switch the inferior
6180 event loop to INF_EXEC_COMPLETE.
6181 * inferior.h (user_visible_resume_ptid): Declare.
6182 * infrun.c (user_visible_resume_ptid): New function, factored out
6183 from `resume'.
6184 (resume): Use it.
6185 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6186 that the current thread is running. Merge async and sync
6187 branches.
6188
751b8ce1
PA
61892011-05-20 Pedro Alves <pedro@codesourcery.com>
6190
6191 * infcmd.c (step_1): Simplify synchronous case.
6192
e93a69ed
PA
61932011-05-20 Pedro Alves <pedro@codesourcery.com>
6194
6195 * tracepoint.c: Include exceptions.h.
6196 (TFILE_PID): Move higher in file.
6197 (tfile_open): Delay pushing the tfile target until we're assured
6198 the tfile header is present in the file. Wrap reading the initial
6199 newline-terminated lines in TRY_CATCH. Pop the target if the
6200 initial setup failed. Add the tfile's thread immediately
6201 aftwards, before any non-essential setup. Don't skip
6202 post_create_inferior if there are no traceframes present in the
6203 file.
6204 (tfile_close): Remove redundant check for null before xfree call.
6205 (tfile_thread_alive): New function.
6206 (init_tfile_ops): Register it as to_thread_alive callback.
6207
6823e2b1
PA
62082011-05-20 Pedro Alves <pedro@codesourcery.com>
6209
6210 * tracepoint.c (tfile_open): Delete #if 0'd code.
6211
b3c8eb43
JK
62122011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6213
6214 Fix -readnow for -gdwarf-4 unused type units.
6215 * dwarf2read.c (struct signatured_type): Remove the field offset.
6216 (create_signatured_type_table_from_index): Remove its initialization.
6217 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6218 instead. Add a complaint call.
6219 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6220 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6221 (lookup_signatured_type_at_offset, read_signatured_type)
6222 (write_one_signatured_type): Update the field for per_cu.
6223
310afc76
TT
62242011-05-19 Tom Tromey <tromey@redhat.com>
6225
6226 * python/py-inferior.c (python_inferior_exit): Use
6227 target_gdbarch.
6228 (python_on_resume): Likewise.
6229
cf6c5ffb
TT
62302011-05-19 Matt Rice <ratmice@gmail.com>
6231
6232 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6233
fb80a3c5
HZ
62342011-05-19 Hui Zhu <teawater@gmail.com>
6235
6236 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6237
3672b1be
HZ
62382011-05-19 Hui Zhu <teawater@gmail.com>
6239
6240 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6241
ff355380
TT
62422011-05-18 Tom Tromey <tromey@redhat.com>
6243
6244 * dwarf2read.c (dwarf2_add_field): Constify.
6245 * value.c (value_static_field): Constify.
6246 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6247 Now const.
6248 * ax-gdb.c (gen_static_field): Constify
6249
ed731959
JK
62502011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 * linux-nat.c (kill_callback): Use SIGKILL first.
6253
967cff16
JB
62542011-05-18 Joel Brobecker <brobecker@adacore.com>
6255
6256 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6257
1d06ead6
TT
62582011-05-18 Tom Tromey <tromey@redhat.com>
6259
6260 * value.c (value_fn_field): Constify.
6261 * symtab.c (gdb_mangle_name): Constify.
6262 * stabsread.c (update_method_name_from_physname): Make 'physname'
6263 argument const.
6264 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6265 const. Use explicit fputc_filtered loop.
6266 (pascal_type_print_base): Constify.
6267 * p-lang.h (pascal_type_print_method_args): Update.
6268 * linespec.c (add_matching_methods): Constify.
6269 (add_constructors): Likewise.
6270 * jv-typeprint.c (java_type_print_base): Constify.
6271 * gdbtypes.h (struct cplus_struct_type)
6272 <fn_fieldlist.fn_field.physname>: Now const.
6273 * dwarf2read.c (compute_delayed_physnames): Constify.
6274 (dwarf2_add_member_fn): Likewise.
6275 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6276
0d9a9a5f
PA
62772011-05-18 Pedro Alves <pedro@codesourcery.com>
6278
6279 * infrun.c (resume): Mention which is the current thread, and its
6280 current PC in debug output.
6281 (prepare_to_proceed): Mention the thread switching in debug
6282 output.
6283
05386e9e
TT
62842011-05-18 Tom Tromey <tromey@redhat.com>
6285
6286 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6287 path check. Use xmalloc and cleanups.
6288 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6289
ee86786c
TT
62902011-05-17 Tom Tromey <tromey@redhat.com>
6291
6292 * cp-valprint.c (cp_print_value_fields): Catch errors from
6293 value_static_field.
6294
9ff3b74f
TT
62952011-05-17 Tom Tromey <tromey@redhat.com>
6296
6297 * dwarf2read.c (dwarf2_get_die_type): Call
6298 get_die_type_at_offset.
6299 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6300 get_base_type function.
6301
cd3da28e
PA
63022011-05-17 Tomas Martinec <fyzmat@gmail.com>
6303
6304 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6305 trap_expected.
6306
fd20d931
DE
63072011-05-16 Doug Evans <dje@google.com>
6308
6309 * python/py-auto-load.c (source_section_scripts): Mention objfile
6310 name in warning.
6311
75fc9810
DE
63122011-05-15 Doug Evans <dje@google.com>
6313
290351b8
DE
6314 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6315 (try_thread_db_load_from_pdir): Call it. If unable to find
6316 libthread_db in directory of libpthread, see if we're looking at
6317 the separate-debug-info copy.
6318
75fc9810
DE
6319 * python/py-autoload.c (print_script): Print "Missing" instead of
6320 "No" for missing scripts.
6321 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6322
9f7bc587
DE
63232011-05-13 Doug Evans <dje@google.com>
6324
6325 * ui-file.c (stdio_file_write_async_safe): Add comment.
6326
093cee7d
HZ
63272011-05-14 Hui Zhu <teawater@gmail.com>
6328
6329 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6330
dbaefcf7
DE
63312011-05-13 Doug Evans <dje@google.com>
6332
98a5dd13
DE
6333 Support $pdir and $sdir in libthread-db-search-path.
6334 * NEWS: Mention $sdir,$pdir.
6335 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6336 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6337 (try_thread_db_load_from_sdir): New function.
6338 (try_thread_db_load_from_dir): New function.
6339 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6340 system directories if search of libthread-db-search-path fails,
6341 that is now done via $sdir.
6342 (has_libpthread): New function.
6343 (thread_db_load): Remove search for libthread_db in directory of
6344 libpthread, that is now done via $pdir.
6345
dbaefcf7
DE
6346 * NEWS: Mention "info auto-load-scripts".
6347 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6348 script_not_found_warning_printed.
6349 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6350 all callers updated. Initialize script_not_found_warning_printed.
6351 (get_auto_load_pspace_data_for_loading): New function.
6352 (maybe_add_script): New function.
6353 (source_section_scripts): Simplify. Only print one warning regardless
6354 of the number of auto-load scripts not found.
6355 (clear_section_scripts): Clear script_not_found_warning_printed.
6356 (auto_load_objfile_script): Record script in hash table.
6357 (count_matching_scripts): New function.
6358 (maybe_print_script): Renamed from maybe_print_section_script, all
6359 callers updated. Rewrite to use ui_out_*.
6360 (info_auto_load_scripts): Renamed from
6361 maintenance_print_section_scripts, all callers updated.
6362 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6363 renamed as "info auto-load-scripts".
6364
9930639c
TT
63652011-05-13 Tom Tromey <tromey@redhat.com>
6366
6367 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6368 (read_sleb128): Likewise.
6369
06826322
TT
63702011-05-13 Tom Tromey <tromey@redhat.com>
6371
6372 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6373 offset display.
6374
01124a23
DE
63752011-05-13 Doug Evans <dje@google.com>
6376
6377 * linux-nat.c (debug_linux_nat_async): Delete.
6378 Replace all references to use debug_linux_nat instead.
6379 (show_debug_linux_nat_async): Delete.
6380 (sigchld_handler): Call ui_file_write_async_safe instead of
6381 fprintf_unfiltered.
6382 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6383 * ui-file.c (struct ui_file): New member to_write_async_safe.
6384 (null_file_write_async_safe): New function.
6385 (ui_file_write_async_safe): New function.
6386 (set_ui_file_write_async_safe): New function.
6387 (ui_file_new): Initialize to_write_async_safe.
6388 (stdio_file_write_async_safe): New function.
6389 (struct stdio_file): New member fd.
6390 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6391 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6392 fileno.
01124a23
DE
6393 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6394 (set_ui_file_write_async_safe): Declare.
6395 (ui_file_write_async_safe): Declare.
6396
72fc29ff
TT
63972011-05-13 Tom Tromey <tromey@redhat.com>
6398
6399 * utils.c (do_value_free): New function.
6400 (make_cleanup_value_free): Likewise.
6401 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6402 freeing correctly.
6403 (dwarf2_loc_desc_needs_frame): Call
6404 make_cleanup_value_free_to_mark.
6405 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6406 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6407 value_free_to_mark.
6408 (new_dwarf_expr_context): Don't call value_mark.
6409 * dwarf2-frame.c (execute_stack_op): Call
6410 make_cleanup_value_free_to_mark.
6411 * defs.h (make_cleanup_value_free): Declare.
6412
028d0ed5
TJB
64132011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6414
6415 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6416 prepare_execute_command.
6417 * top.c (prepare_execute_command): Return cleanup.
6418 (execute_command): Use cleanup from prepare_execute_command.
6419 * top.h (prepare_execute_command): Change prototype to return
6420 cleanup.
6421 * defs.h (struct value): Add opaque declaration.
6422 (make_cleanup_value_free_to_mark): Add prototype.
6423 * utils.c (do_value_free_to_mark): New function.
6424 (make_cleanup_value_free_to_mark): Likewise.
6425
b087e0ed
TT
64262011-05-12 Tom Tromey <tromey@redhat.com>
6427
6428 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6429 cast left-hand-side to unsigned.
6430
8a9b8146
TT
64312011-05-12 Tom Tromey <tromey@redhat.com>
6432
6433 PR gdb/12617:
6434 * value.h (value_from_contents): Declare.
6435 * value.c (value_from_contents): New function.
6436 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6437 (dwarf2_get_die_type): New function.
6438 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6439 (allocate_piece_closure): Acquire reference to values.
6440 (read_pieced_value): Update for value-based expressions.
6441 (write_pieced_value): Likewise.
6442 (free_pieced_value_closure): Call value_free as needed.
6443 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6444 Update for value-based expressions.
6445 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6446 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6447 <get_base_type>: New field.
6448 (struct dwarf_expr_piece) <v.value>: Change type.
6449 <v.regno>: New field.
6450 (struct dwarf_expr_context) <mark>: New field.
6451 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6452 (dwarf_expr_pop, dwarf_expr_push): Remove.
6453 (dwarf_expr_push_address): Declare.
6454 * dwarf2expr.c (dwarf_arch_cookie): New global.
6455 (struct dwarf_gdbarch_types): New.
6456 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6457 functions.
6458 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6459 static.
6460 (dwarf_expr_push_address): New function.
6461 (dwarf_expr_pop): Now static.
6462 (dwarf_expr_fetch): Change return type.
6463 (dwarf_require_integral): New function.
6464 (dwarf_expr_fetch): Simplify.
6465 (add_piece): Update.
6466 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6467 functions.
6468 (execute_stack_op) <sign_ext>: Remove.
6469 Use values for DWARF stack.
6470 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6471 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6472 New cases.
6473 (_initialize_dwarf2expr): New function.
6474 (add_piece): Update.
6475 (new_dwarf_expr_context): Set new field.
6476 (free_dwarf_expr_context): Call value_free_to_mark.
6477 * dwarf2-frame.c (no_base_type): New function.
6478 (execute_stack_op): Set get_base_type field. Update.
6479
e8d28ef4
TT
64802011-05-12 Tom Tromey <tromey@redhat.com>
6481
6482 * dwarf2read.c (read_common_block): Fix formatting.
6483
d248b706
KY
64842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6485
6486 * breakpoint.c (disable_breakpoint): Disable all locations
6487 associated with a tracepoint on target if a trace experiment is
6488 running.
6489 (disable_command): Disable a specific tracepoint location on target if
6490 a trace experiment is running.
6491 (do_enable_breakpoint): Enable all locations associated with a
6492 tracepoint on target if a trace experiment is running.
6493 (enable_command) Enable a specific tracepoint location on target if a
6494 trace experiment is running.
6495 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6496 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6497 to_disable_tracepoint.
6498 * target.h: Add declaration of struct bp_location.
6499 (struct target_ops): Add new functions
6500 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6501 to_disable_tracepoint to target operations.
6502 (target_supports_enable_disable_tracepoint): New macro.
6503 (target_enable_tracepoint): New macro.
6504 (target_disable_tracepoint): New macro.
6505 * remote.c (struct remote_state): Add new field.
6506 (remote_enable_disable_tracepoint_feature): New.
6507 (remote_protocol_features): Add new entry.
6508 (remote_supports_enable_disable_tracepoint): New.
6509 (remote_enable_tracepoint): New.
6510 (remote_disable_tracepoint): New.
6511 (init_remote_ops): Add remote_enable_tracepoint,
6512 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6513 to remote operations.
6514 * tracepoint.c (start_tracing): Allow tracing to start without any
6515 tracepoints enabled with just a warning if they can be re-enabled
6516 later.
6517 * NEWS: Add news item for the new behaviour of the enable and disable
6518 GDB commands when applied to tracepoints.
6519 Add news items for the new remote packets QTEnable and QTDisable.
6520
cc88a640
JK
65212011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6522
6523 * config.in: Regenerate.
6524 * configure: Regenerate.
6525 * configure.ac <--with-system-readline> (for readline_echoing_p):
6526 Remove the test.
6527 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6528 (tui_old_rl_echoing_p): ... here.
6529 (tui_setup_io): Rename extern declaration readline_echoing_p to
6530 _rl_echoing_p. Adjust assignments for the both renames.
6531
1f84b619
TJB
65322011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6533
6534 * symtab.c (lookup_symtab): Run cleanup before returning.
6535
74ac6d43
TT
65362011-05-11 Tom Tromey <tromey@redhat.com>
6537
6538 * dwarf2read.c (handle_data_member_location): New function.
6539 (dwarf2_add_field): Use it.
6540 (read_common_block): Likewise.
6541
5488dafb
JK
65422011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6543
6544 Make addrs->SECTINDEX always defined.
6545 * symfile.c (relative_addr_info_to_section_offsets): Check for
6546 SECTINDEX -1, not for zero ADDR.
6547 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6548 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6549 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6550 on its validity.
6551
84e578fb
DE
65522011-05-10 Doug Evans <dje@google.com>
6553
2471d008
DE
6554 * linux-thread-db.c: Whitespace cleanup.
6555 (try_thread_db_load_1): Fix comment.
6556
84e578fb
DE
6557 * linux-thread-db.c (set_libthread_db_search_path): New function.
6558 (_initialize_thread_db): Add setter for libthread-db-search-path.
6559
673c2bbe
DE
65602011-05-09 Doug Evans <dje@google.com>
6561
478aac75
DE
6562 * NEWS: Mention --with-iconv-bin.
6563 * configure.ac: New option --with-iconv-bin.
6564 * configure: Regenerate.
6565 * config.in: Regenerate.
6566 * defs.h (relocate_gdb_directory): Declare.
6567 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6568 removed progname parameter, and exported. All callers updated.
6569 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6570
673c2bbe
DE
6571 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6572 adding missing call to restore_child_signals_mask.
6573
e4c8541f
PA
65742011-05-09 Pedro Alves <pedro@codesourcery.com>
6575
6576 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6577 parameter.
6578 * infrun.c (proceed, start_remote): Adjust.
6579 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6580 and adjust to not handle it.
6581 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6582 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6583 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6584 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6585 * windows-nat.c (do_initial_windows_stuff): Adjust.
6586 * infcmd.c (attach_command): Adjust.
6587 (notice_new_inferior): Adjust.
6588
a536c6d7
UW
65892011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6590
6591 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6592 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6593 * spu-tdep.c (op_selb): Use correct value.
6594
7845b013
UW
65952011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6596
6597 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6598 "parent" parameter to symbol_file_add_from_bfd call.
6599
9c06b0b4
TJB
66002011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6601 Thiago Jung Bauermann <bauerman@br.ibm.com>
6602
6603 Implement support for PowerPC BookE masked watchpoints.
6604 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6605 section.
6606 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6607 method. Initialize to NULL in all existing breakpoint_ops instances.
6608 (struct breakpoint) <hw_wp_mask>: New field.
6609 * breakpoint.c (is_masked_watchpoint): Add prototype.
6610 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6611 breakpoint's breakpoint_ops.works_in_software_mode if available.
6612 (watchpoints_triggered): Handle the case of a hardware masked
6613 watchpoint trigger.
6614 (watchpoint_check): Likewise.
6615 (works_in_software_mode_watchpoint): New function.
6616 (insert_masked_watchpoint, remove_masked_watchpoint)
6617 (resources_needed_masked_watchpoint)
6618 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6619 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6620 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6621 functions.
6622 (masked_watchpoint_breakpoint_ops): New structure.
6623 (watch_command_1): Check for the existence of the `mask' parameter.
6624 Set b->ops according to the type of hardware watchpoint being created.
6625 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6626 (ppc_linux_remove_mask_watchpoint)
6627 (ppc_linux_masked_watch_num_registers): New functions.
6628 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6629 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6630 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6631 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6632 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6633 (target_masked_watch_num_registers): New functions.
6634 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6635 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6636 methods.
6637 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6638 (target_masked_watch_num_registers): Add prototypes.
6639
8be455d7
JK
66402011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6641
6642 PR 12573
6643 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6644 (producer_is_gcc_ge_4_0): New function.
6645 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6646 symtab->language code.
6647 (var_decode_location): Set cu->has_loclist.
6648 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6649 skip. Intialize force_skip from locations_valid. Move the prologue
6650 skipping code into two passes.
6651 * symtab.h (struct symtab): Make the primary field a bitfield. New
6652 field locations_valid.
6653
d8228535
JK
66542011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6655
6656 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6657 (classify_inner_name): Call cp_lookup_nested_type with
6658 yylval.tsym.type.
6659 * cp-namespace.c (cp_lookup_nested_type): New variable
6660 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6661 type_name_no_tag_or_error with saved_parent_type.
6662 * dwarf2read.c (load_partial_dies): Read in any children of
6663 DW_TAG_typedef with complaint in such case.
6664 * gdbtypes.c (type_name_no_tag_or_error): New function.
6665 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6666 * valops.c (destructor_name_p): New comment for parameter type. Remove
6667 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6668 * value.h (destructor_name_p): Remove type const.
6669
1976171a
JK
66702011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 * symtab.c (compare_symbol_name): New function.
6673 (completion_list_add_name, expand_partial_symbol_name): Call it,
6674 remove the variable ncmp.
6675 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6676 gdb_assert it.
6677
a9634178
TJB
66782011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6679
6680 Demote to sw watchpoint only in update_watchpoint.
6681 * breakpoint.c (update_watchpoint): Change between software and
6682 hardware watchpoint for all kinds of watchpoints, not just
6683 read/write ones. Determine b->exact value here instead of
6684 in watch_command_1. Error out if there are not enough resources
6685 for a read or access hardware watchpoint.
6686 (watch_command_1): Remove logic of checking whether there are
6687 enough resources available, since update_watchpoint will do that
6688 work now. Don't set b->exact here. Catch exceptions thrown by
6689 update_watchpoint and delete the watchpoint.
6690 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6691 Use target_exact_watchpoints instead.
6692 (delete_breakpoint): Notify observers only if deleted watchpoint
6693 has a breakpoint number assigned to it.
6694
4c67c798
JJ
66952011-05-05 Janis Johnson <janisjo@codesourcery.com>
6696
6697 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6698
a3fcb948
JG
66992011-05-05 Jerome Guitton <guitton@adacore.com>
6700
6701 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6702 New functions.
6703 (i386_stack_tramp_frame_unwind): New static global.
6704 (i386_match_pattern): New function, extracted from i386_match_insn.
6705 (i386_match_insn): Use i386_match_pattern.
6706 (i386_match_insn_block): New function.
6707 (i386_tramp_chain_in_reg_insns)
6708 (i386_tramp_chain_on_stack_insns): New static variables.
6709 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6710 of unwinders.
6711
4d393d60
JM
67122011-05-04 Joseph Myers <joseph@codesourcery.com>
6713
6714 * configure.host (xscale*): Don't handle target.
6715 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6716 handle targets.
6717
f70bd40b
YQ
67182011-05-04 Yao Qi <yao@codesourcery.com>
6719
6720 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6721
dd3295ee
JB
67222011-05-03 Joel Brobecker <brobecker@adacore.com>
6723
6724 Revert:
6725 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6726 | * elfread.c (elf_symtab_read): Stop memory leak.
6727
90375a0e
PM
67282011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6729
6730 * nto-tdep.c (nto_target): Replace deprecated call to
6731 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6732
d07205c2
JK
67332011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 Fix false GCC warning.
6736 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6737
1e718ff1
TJB
67382011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6739
6740 * breakpoint.c (update_watchpoint): Move code to change
6741 the enable state of breakpoint from here ...
6742 (do_enable_breakpoint): ... to here.
6743
35bef4fd
TT
67442011-04-26 Andrew Gontarek <andrewg@cray.com>
6745
78290264
PP
6746 * valprint.c (val_print_array_elements): Fixed poor performance
6747 of printing very large arrays with repeat_count_threshold set
6748 to unlimited. New comment.
35bef4fd 6749
38a714bb
TT
67502011-04-29 Tom Tromey <tromey@redhat.com>
6751
6752 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6753 (mi_parse): Likewise.
6754 * breakpoint.c (break_range_command): Use sizeof char*, not
6755 char**.
6756 (create_breakpoint): Likewise.
6757 (parse_breakpoint_sals): Likewise.
6758
eb73ad13
PA
67592011-04-29 Pedro Alves <pedro@codesourcery.com>
6760
6761 * linux-nat.c (linux_child_remove_fork_catchpoint)
6762 (linux_child_remove_vfork_catchpoint)
6763 (linux_child_remove_exec_catchpoint): New functions.
6764 (linux_target_install_ops): Install them.
6765
d65aec65
PM
67662011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6767
6768 PR mi/12531
6769
6770 * varobj.c (install_default_visualizer): Do not install a
6771 visualizer if the varobj is CPLUS_FAKE_CHILD.
6772 (construct_visualizer): Likewise.
6773
165195f4
JK
67742011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6775
6776 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6777 case insensitive comparison.
6778
30852783
UW
67792011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6780
6781 * infrun.c (proceed): Revert previous change.
6782 (resume): Instead, handle the case of signal delivery while stepping
6783 off a breakpoint location here, and only if software single-stepping
6784 is used. Handle nested signals.
6785
7ff120b4
YQ
67862011-04-28 Yao Qi <yao@codesourcery.com>
6787
6788 * arm-tdep.c (copy_unmodified): Rename to ...
6789 (arm_copy_unmodified): .. this. New.
6790 (copy_preload): Move common part to ...
6791 (install_preload): .. this. New.
6792 (arm_copy_preload): New.
6793 (copy_preload_reg): Move common part to ...
6794 (install_preload_reg): ... this. New.
6795 (arm_copy_preload_reg): New.
6796 (copy_b_bl_blx): Move common part to ...
6797 (install_b_bl_blx): .. this. New.
6798 (arm_copy_b_bl_blx): New.
6799 (copy_bx_blx_reg): Move common part to ...
6800 (install_bx_blx_reg): ... this. New.
6801 (arm_copy_bx_blx_reg): New.
6802 (copy_alu_reg): Move common part to ...
6803 (install_alu_reg): ... this. New.
6804 (arm_copy_alu_reg): New.
6805 (copy_alu_shifted_reg): Move common part to ...
6806 (install_alu_shifted_reg): ... this. New.
6807 (copy_ldr_str_ldrb_strb): Move common part to ...
6808 (install_ldr_str_ldrb_strb): ... this. New.
6809 (arm_copy_ldr_str_ldrb_strb): New.
6810 (copy_copro_load_store): Move some common part to ...
6811 (install_copy_copro_load_store): ... this. New.
6812 (arm_copy_copro_load_store): New.
6813 (copy_svc): Delete.
6814 (arm_copy_svc): Renamed from copy_svc.
6815 (copy_undef): Delete.
6816 (arm_copy_undef): Renamed from copy_undef.
6817 (decode_ext_reg_ld_st): Delete.
6818 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6819 (decode_svc_copro): Delete.
6820 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6821 (copy_copro_load_store, copy_alu_imm): update callers.
6822 (copy_extra_ld_st, copy_block_xfer): Likewise.
6823 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6824 (decode_miscellaneous, decode_dp_misc): Likewise.
6825 (decode_ld_st_word_ubyte, decode_media): Likewise.
6826 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6827 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6828 (decode_unconditional, decode_miscellaneous): Likewise.
6829 (decode_media, decode_b_bl_ldmstm): Likewise.
6830 (arm_process_displaced_insn): Likewise..
6831 (decode_misc_memhint_neon): Delete.
6832 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6833 (decode_miscellaneous): Delete.
6834 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6835 (decode_dp_misc): Delete.
6836 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6837 (decode_ld_st_word_ubyte): Delete.
6838 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6839 (decode_media): Delete.
6840 (arm_decode_media): Renamed from decode_media.
6841 (decode_b_bl_ldmstm): Delete.
6842 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6843 (decode_ext_reg_ld_st): Delete.
6844 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6845 (decode_unconditional): Delete.
6846 (arm_decode_unconditional): Renamed from decode_unconditional.
6847
559a7a62
JK
68482011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 Case insensitive lookups implementation.
6851 * dwarf2read.c: Include ctype.h.
6852 (struct mapped_index): New field version.
6853 (mapped_index_string_hash): New parameter index_version. New comment
6854 for it. Call tolower appropriately.
6855 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6856 Choose the right index version for mapped_index_string_hash.
6857 (dwarf2_read_index): Support also the index version 5. Initialize the
6858 new struct mapped_index field version.
6859 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6860 (find_slot): Explain the version needs. Pass INT_MAX for the new
6861 parameter.
6862 (write_psymtabs_to_index): Produce version 5.
6863 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6864 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6865 * psymtab.c (lookup_partial_symbol): Find the
6866 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6867 entries.
6868 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6869 NAME lowercasing.
6870 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6871 (completion_list_add_name): New variable ncmp, initialize it, use it.
6872 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6873 * utils.c (strcmp_iw): Support case_sensitive_off.
6874 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6875 New function comment part. New variables saved_string1,
6876 saved_string2 and case_pass. Add a proper second pass.
6877
681bf369
JK
68782011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6879
6880 Replace re_comp/re_exec by regcomp/regexec.
6881 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6882 (search_symbols_name_matches): Use them, use regexec.
6883 (search_symbols): New variable retval_chain, adjust the use of
6884 old_chain against it. Replace re_comp by regcomp. Use the new struct
6885 search_symbols_data fields, use regexec instead of re_exec.
6886
b11b1f88
JK
68872011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6888
6889 Format the code for the next patch.
6890 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6891 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6892 New variables c1 and c2.
6893
2484c66b
UW
68942011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6895
6896 * infrun.c (proceed): Do not single-step into signal delivery
6897 when stepping off a breakpoint location.
6898 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6899 (insert_step_resume_breakpoint_at_caller): Likewise.
6900 (insert_step_resume_breakpoint_at_sal): Likewise.
6901 (insert_longjmp_resume_breakpoint): Likewise.
6902
47423772
YQ
69032011-04-27 Yao Qi <yao@codesourcery.com>
6904
6905 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6906
13bdd2e7
JB
69072011-04-27 Joel Brobecker <brobecker@adacore.com>
6908
6909 * procfs.c (procfs_pass_signals): Fix advance declaration.
6910
2455069d
UW
69112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6912
6913 * target.h (struct target_ops): Remove to_notice_signals;
6914 add to_pass_signals.
6915 (target_notice_signals): Remove.
6916 (target_pass_signals): Add prototype.
6917 * target.c (update_current_target): Remove to_notice_signals;
6918 mention to_pass_signals.
6919 (target_pass_signals): New function.
6920 (debug_to_notice_signals): Remove.
6921 (setup_target_debug): Do not install debug_to_notice_signals.
6922
6923 * infrun.c (signal_pass): New global.
6924 (resume): Call target_pass_signals.
6925 (handle_inferior_event): Report all signals while stepping over
6926 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6927 are re-inserted when stepping over a signal handler.
6928 (signal_cache_update): New function.
6929 (signal_stop_update): Call it.
6930 (signal_print_update): Likewise.
6931 (signal_pass_update): Likewise.
6932 (handle_command): Call signal_cache_update and target_pass_signals
6933 instead of target_notice_signals.
6934 (_initialize_infrun): Initialize signal_pass.
6935
6936 * linux-nat.c (pass_mask): New global.
6937 (linux_nat_pass_signals): New function.
6938 (linux_nat_create_inferior): Report all signals initially.
6939 (linux_nat_attach): Likewise.
6940 (linux_nat_resume): Use pass_mask to decide whether to directly
6941 handle an inferior signal.
6942 (linux_nat_wait_1): Likewise.
6943 (linux_nat_add_target): Install to_pass_signals callback.
6944
6945 * nto-procfs.c (notice_signals): Remove.
6946 (procfs_resume): Do not call notice_signals.
6947 (procfs_notice_signals): Remove.
6948 (procfs_pass_signals): New function.
6949 (init_procfs_ops): Install to_pass_signals callback instead of
6950 to_notice_signals callback.
6951 (_initialize_procfs): Report all signals initially.
6952
6953 * procfs.c (procfs_notice_signals): Remove.
6954 (procfs_pass_signals): New function.
6955 (procfs_target): Install to_pass_signals callback instead of
6956 to_notice_signals callback.
6957 (register_gdb_signals): Remove.
6958 (procfs_debug_inferior): Report all signals initially.
6959 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6960
6961 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6962 parameters; use them instead of calling signal_..._state routines.
6963 (remote_notice_signals): Remove.
6964 (remote_start_remote): Report all signals initially.
6965 (remote_resume): Do not call remote_pass_signals.
6966 (_initialize_remote): Install to_pass_signals callback instead of
6967 to_notice_signals callback.
6968
46c6471b
PA
69692011-04-27 Pedro Alves <pedro@codesourcery.com>
6970
6971 * breakpoint.c (user_settable_breakpoint): Delete.
6972 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6973 (delete_command): Check user_breakpoint_p instead of looking at
6974 the breakpoint's type.
6975 (disable_command): Ditto.
6976 (enable_command): Ditto.
6977 (delete_trace_command): Use user_breakpoint_p instead of looking
6978 at the breakpoint number directly. When checking if there are
6979 user visible tracepoints, in order to know whether to ask the user
6980 for confirmation, check whether the breakpoint is actually a
6981 tracepoint.
6982
f6d90398
VP
69832011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6984
6985 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6986 compilation.
6987
8d3788bd
VP
69882011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6989
6990 MI breakpoint notifications.
6991
f33edef8
PP
6992 * annotate.c (breakpoint_changed): Adjust parameter type.
6993 * breakpoint.c (set_breakpoint_condition): Adjust to change
6994 in breakpoint_modified type.
6995 (breakpoint_set_commands): Likewise.
6996 (do_map_commands_command): Likewise.
6997 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6998 changed after bumping hit count.
6999 (bpstat_stop_status): Likewise.
7000 (print_one_breakpoint_location): Don't wrap in tuple here.
7001 (print_one_breakpoint): Always print individual locations.
7002 For locations, use unnamed tuple.
7003 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7004 has changed.
7005 (create_catchpoint, create_syscall_event_catchpoint): Call
7006 breakpoint_created obsever.
7007 (mention): Don't call breakpoint_created observer.
7008 (create_breakpoint_sal): Call breakpoint_created observer.
7009 (create_breakpoint, watch_command_1): Likewise.
7010 (create_ada_exception_breakpoint): Likewise.
7011 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7012 (locations_are_equal): New.
7013 (update_breakpoint_locations): If locations were changed, notify.
7014 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7015 Call breakpoint_modified observer.
7016
7017 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7018 (mi_cmd_break_insert): Don't set observers for modify and delete.
7019 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7020 (mi_breakpoint_created, mi_breakpoint_deleted)
7021 (mi_breakpoint_modified): New.
7022 (mi_interpreter_init): Hook the above.
7023 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7024 while -break-* commands are executing.
7025 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7026 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7027 (mi_redirect): New.
7028 (mi_ui_out_impl): Hook in mi_redirect.
7029 (mi_field_skip): True to the name, skip the field, don't output
7030 a field with an empty value.
7031
7032 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7033 (gdbpy_breakpoint_deleted): Adjust.
7034 * tui/tui-hooks.c (tui_event_create_breakpoint)
7035 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7036
a8f42b45
UW
70372011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7038
7039 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7040 (procfs_remove_hw_watchpoint): Likewise.
7041
57e12211
TT
70422011-04-26 Michael Walle <michael@walle.cc>
7043
7044 * remote.c (remote_start_remote): Ack packet after sending the
7045 interrupt sequence.
7046
af96c192
YQ
70472011-04-26 Yao Qi <yao@codesourcery.com>
7048
f33edef8
PP
7049 * linux-nat.c: Move common macros to ...
7050 Include linux-ptrace.h.
7051 * common/linux-ptrace.h: ... here. New.
af96c192 7052
3e03848b
JK
70532011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7054
7055 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7056 !objfile_has_partial_symbols. New comment.
7057 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7058 SYM_READ_PSYMBOLS is not present. Extend the comment.
7059 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7060
1ae0d051
JK
70612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 * defs.h (ENUM_BITFIELD): Remove.
7064
03f2bd59
JK
70652011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7066 Eli Zaretskii <eliz@gnu.org>
7067
7068 * NEWS: Document the new gdbserver --once option.
7069
4161fbb0
JZ
70702011-04-21 Jie Zhang <jzhang918@gmail.com>
7071
7072 * MAINTAINERS: Update my email address.
7073
bcb28afc
PM
70742011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7075
7076 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7077 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7078 function call if __STDC_ISO_10646__ macro is defined.
7079 (intermediate_encoding): New prototype.
7080 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7081 to generate compile time error for unsupported gdb_wchar_t size.
7082 (ENDIAN_SUFFIX): New macro.
7083 (intermediate_encoding): New function.
7084
7b08b9eb
JK
70852011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7086
7087 * ada-lang.c (struct add_partial_datum): Update the comment for
7088 expand_partial_symbol_name.
7089 (ada_add_partial_symbol_completions): Rename to ...
7090 (ada_expand_partial_symbol_name): ... here, change return type, update
7091 function comment, call symbol_completion_match instead of
7092 symbol_completion_add.
7093 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7094 and ada_expand_partial_symbol_name.
7095 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7096 FILE_MATCHER.
7097 (dw2_map_symbol_names): Remove.
7098 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7099 * psymtab.c (map_symbol_names_psymtab): Remove.
7100 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7101 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7102 order.
7103 (psym_functions): Unlist map_symbol_names_psymtab.
7104 (map_partial_symbol_names): Rename to ...
7105 (expand_partial_symbol_names): ... here, change the FUN type, call
7106 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7107 * psymtab.h (map_partial_symbol_names): Rename to ...
7108 (expand_partial_symbol_names): ... here, change the FUN type.
7109 * symfile.h (struct quick_symbol_functions): Update the description of
7110 expand_symtabs_matching. Remove map_symbol_names.
7111 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7112 (struct add_name_data): Update the comment for
7113 expand_partial_symbol_name.
7114 (add_partial_symbol_name): Rename to ...
7115 (expand_partial_symbol_name): ... here. Replace
7116 completion_list_add_name call by strncmp.
7117 (default_make_symbol_completion_list_break_on): Use now
7118 expand_partial_symbol_names and expand_partial_symbol_name.
7119 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7120
90476074
TT
71212011-04-20 Tom Tromey <tromey@redhat.com>
7122
7123 * dwarf2read.c (save_gdb_index_command): Replace format
7124 documentation with a pointer to the manual.
7125
c21236dc
PA
71262011-04-20 Pedro Alves <pedro@codesourcery.com>
7127
7128 * regcache.c: Include remote.h.
7129 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7130 (regcache_dump): Handle regcache_dump_remote.
7131 (maintenance_print_remote_registers): New function.
7132 (_initialize_regcache): Install "maint print remote-registers"
7133 command.
7134 * remote.c (map_regcache_remote_table): New function, factored out
7135 from ...
7136 (init_remote_state): ... here.
7137 (remote_register_number_and_offset): New.
7138 * remote.h (remote_register_number_and_offset): Declare.
7139
b78974c3
PA
71402011-04-20 Pedro Alves <pedro@codesourcery.com>
7141
7142 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7143 null_ptid, assume and allow a NULL address space, instead of
7144 asking the target for the ptid's address space.
7145 * infrun.c (ptid_is_pid): Remove assertion.
7146
7a9dd1b2
TT
71472011-04-19 Tom Tromey <tromey@redhat.com>
7148
7149 * windows-tdep.c (windows_xfer_shared_library):
7150 * windows-nat.c (get_module_name, windows_make_so):
7151 * v850-tdep.c (v850_handle_pushm):
7152 * utils.c (null_cleanup, gdb_realpath):
7153 * ui-out.c (get_next_header):
7154 * tracepoint.c (clear_traceframe_info):
7155 * symtab.c (lookup_symtab):
7156 * serial.h (struct serial_ops):
7157 * mipsread.c (read_alphacoff_dynamic_symtab):
7158 * infcmd.c (print_return_value):
7159 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7160 * f-exp.y (parse_number):
7161 * exceptions.c (catch_exceptions):
7162 * dummy-frame.c (dummy_frame_this_id):
7163 * defs.h (struct cleanup):
7164 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7165 * arm-tdep.c (arm_push_dummy_call):
7166 * amd64-tdep.h (amd64_collect_xsave):
7167 * amd64-tdep.c (amd64_collect_xsave):
7168 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7169 * README (typing): Remove duplicate words.
7170 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7171 * infrun.c (siginfo_value_read): Fix typo.
7172 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7173 * top.c (source_line_number): Add comma.
7174
9941e0c5
MK
71752011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7176
7177 * thread.c (any_live_thread_of_process): Prioritize threads
7178 that are not executing.
7179 * gdbthread.h (any_live_thread_of_process): Update comment
7180 as per above change.
7181
ed4b0e6a
AS
71822011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7183
7184 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7185 (scan_xcoff_symtab): Likewise.
7186
9b13a2db
PM
71872011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7188
7189 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7190 inside if clause.
7191
1c6e1b0d
PM
71922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7193 Pedro Alves <pedro@codesourcery.com>
7194
7195 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7196 variables to simplify code and avoid == operator at end of
7197 line as this is against GNU coding standards.
7198
74de0234
PM
71992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7200
7201 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7202 lm_name to name_lm to avoid conflict with lm_name function.
7203
b23518f0
PM
72042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7205
7206 ARI fixes: Use only lowercase function name for static functions.
7207 * nto-tdep.c (LM_ADDR): Rename to...
7208 (lm_addr): New function name.
7209 (nto_relocate_section_addresses): Adapt to change above.
7210 * solib-sunos.c (LM_ADDR): Rename to...
7211 (lm_addr): New function name.
7212 (LM_NEXT): Rename to...
7213 (lm_next): New function name.
7214 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7215 function name changes above.
7216 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7217 (lm_addr_from_link_map): New function name.
7218 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7219 (has_lm_dynamic_from_link_map): New function name.
7220 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7221 (lm_dynamic_from_link_map): New function name.
7222 (LM_ADDR_CHECK): Rename to...
7223 (lm_addr_check): New function name.
7224 (LM_NEXT): Rename to...
7225 (lm_next): New function name.
7226 (LM_PREV): Rename to...
7227 (lm_prev): New function name.
7228 (LM_NAME): Rename to...
7229 (lm_name): New function name.
7230 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7231 (ignore_first_link_map_entry): New function name.
7232 (svr4_keep_data_in_core): Adapt to function name changes above.
7233 (svr4_current_sos): Likewise.
7234 (enable_break): Likewise.
7235 (svr4_relocate_section_addresses): Likewise.
7236
1448a0a2
PM
72372011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7238
7239 ARI cleanup.
7240 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7241 sprintf. Simplify code and avoid loosing memory.
7242 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7243 (call0_frame_cache): Remove && operator from end of line.
7244
02835898
JK
72452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7246
7247 Fix libraries displacement if they change whether they were prelinked.
7248 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7249 does not match. Comment why.
7250
9a845ea2
JK
72512011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7252
7253 * corelow.c: Include wrapper.h.
7254 (core_open): Call now gdb_target_find_new_threads.
7255 * wrapper.c: Include target.h.
7256 (gdb_target_find_new_threads): New.
7257 * wrapper.h (gdb_target_find_new_threads): New declaration.
7258
254f582e
JK
72592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7260
7261 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7262 even if !TARGET_HAS_EXECUTION.
7263
63524580
JK
72642011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7265
7266 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7267 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7268 bfd_get_synthetic_symtab.
7269 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7270 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7271 parameter parent, remove the call to add_separate_debug_objfile.
7272 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7273 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7274 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7275 parent, new comment for it, call add_separate_debug_objfile for it.
7276 (symbol_file_add_separate): Pass objfile as the parameter parent,
7277 remove the call to add_separate_debug_objfile.
7278 (symbol_file_add_from_bfd): New parameter parent, pass it.
7279 (symbol_file_add): Pass NULL to the new parameter parent.
7280 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7281
90359a16
JK
72822011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7283
7284 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7285 BSF_SYNTHETIC.
7286
626e7282
JK
72872011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 Fix Python access to inlined frames.
7290 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7291 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7292
cf31e6f9
TT
72932011-04-15 Tom Tromey <tromey@redhat.com>
7294
7295 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7296
c8d895f1
GB
72972011-04-15 Gary Benson <gbenson@redhat.com>
7298
7299 * MAINTAINERS: Add myself to write-after-approval section.
7300
56a9aa1d
MF
73012011-04-14 Mike Frysinger <vapier@gentoo.org>
7302
7303 * remote-sim.c (sim_command_completer): New function.
7304 (_initialize_remote_sim): Set completer to sim_command_completer.
7305
ba770c9c
TJB
73062011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7307
7308 * breakpoint.c (print_exception_catchpoint): Rename to ...
7309 (print_it_exception_catchpoint): ... this.
7310 (gnu_v3_exception_catchpoint_ops): Update with new name
7311 for print_it_exception_catchpoint.
7312
51bf2553
EBM
73132011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7314
7315 * MAINTAINERS: Add myself for write after approval privileges.
7316
d242658c
MP
73172011-04-13 Marek Polacek <mpolacek@redhat.com>
7318
7319 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7320
4a4106ca
TJB
73212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7322
7323 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7324
26063d49
TJB
73252011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7326
7327 * breakpoint.c (save_breakpoints): Verify whether
7328 breakpoint_ops.print_recreate is defined before calling it.
7329
7782b183
GB
73302011-04-11 Gary Benson <gbenson@redhat.com>
7331
7332 Fix failure with --enable-maintainer-mode.
7333 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7334
e8930875
JK
73352011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7336
7337 Code cleanup.
7338 * symtab.c (search_symbols): Reorder the KIND description in the
7339 function comment. Remove the unused 4th element of types, types2,
7340 types3 and types4. New gdb_assert on KIND.
7341 (symtab_symbol_info): Remove the unused 4th element of classnames.
7342 New gdb_assert on KIND.
7343 * symtab.h (enum search_domain): New warning in the enum comment.
7344 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7345 TYPES_DOMAIN.
7346
b4f2f049
JK
73472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7348
7349 Fix crash of gdb save-index on a STABS file.
7350 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7351 PSYMTABS_ADDRMAP.
7352
60d5a603
JK
73532011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7354
7355 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7356 * dwarf2read.c: Include ctype.h.
7357 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7358 functions.
7359 (dwarf2_add_field): Fix new_field->accessibility by calling
7360 dwarf2_default_access_attribute. Restructure setting accessibility
7361 vs. virtuality.
7362 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7363 is_private and is_protected by calling
7364 dwarf2_default_access_attribute.
7365
e0f68161
KB
73662011-04-08 Kevin Buettner <kevinb@redhat.com>
7367
7368 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7369 to the initialization.
7370
2e1aae43
SE
73712011-04-08 Steve Ellcey <sje@cup.hp.com>
7372
7373 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7374 initalization.
7375
c6ca3dab
PM
73762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7377
7378 Remove support for old Cygwin 1.5 versions.
7379 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7380 function on old Cygwin version.
7381 * windows-nat.c: Remove cygwin version check and always define
7382 __USEWIDE for Cygwin compilation.
7383
bd18283a
YQ
73842011-04-07 Yao Qi <yao@codesourcery.com>
7385
7386 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7387 and TO.
7388 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7389 (arm_copy_svc): Remove parameters INSN and TO.
7390 (decode_svc_copro): Update caller.
7391 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7392 from function pointer `copy_svc_os'.
7393
8c8dba6d
YQ
73942011-04-07 Yao Qi <yao@codesourcery.com>
7395
7396 * arm-tdep.c (cleanup_branch): Set a correct return address in
7397 LR for ARM and Thumb.
7398
59d7bcaf
JK
73992011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7400
7401 Code cleanup.
7402 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7403 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7404 in the function comment, a new note on values compatibility.
7405 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7406 * symtab.h (SYMBOL_HASH_NEXT): New.
7407
e7db58ea
TJB
74082011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7409
7410 * ppc-linux-nat.c (check_condition): Add len output parameter.
7411 Set it based on the memory region referenced in the condition
7412 expression. Update all callers.
7413
9f743ef6
JK
74142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7415
7416 Fix crash regression on systems featuring .gdb_index.
7417 * objfiles.c (free_objfile): Move the
7418 forget_cached_source_info_for_objfile call earlier. Comment it.
7419 Extend the comment for objfile_free_data.
7420
9182c5bc
JK
74212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 Fix regression of displaying the debug format.
7424 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7425 subfile.
7426
04bd08de
TT
74272011-04-04 Tom Tromey <tromey@redhat.com>
7428
7429 * cli/cli-interp.c (struct captured_execute_command_args):
7430 Remove.
7431 (do_captured_execute_command): Remove.
7432 (safe_execute_command): Use TRY_CATCH.
7433 * cli/cli-script.c (struct wrapped_read_command_file_args):
7434 Remove.
7435 (wrapped_read_command_file): Remove.
7436 (script_from_file): Use TRY_CATCH.
7437 * exceptions.c (catch_exception): Remove.
7438 * exceptions.h (catch_exception): Remove.
7439 (deprecated_throw_reason): Update comment.
7440 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7441 argument to 'context'.
7442 (mi_execute_command): Use TRY_CATCH.
7443 * remote.c (struct start_remote_args): Remove.
7444 (remote_start_remote): Update; change arguments.
7445 (remote_open_1): Use TRY_CATCH.
7446
58438ac1
TT
74472011-04-04 Tom Tromey <tromey@redhat.com>
7448
7449 * tracepoint.c (scope_info): Update.
7450 * symtab.c (decode_line_spec): Update.
7451 * python/python.c (gdbpy_decode_line): Update.
7452 * linespec.h (decode_line_1): Update.
7453 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7454 (decode_compound, find_method, symtab_from_filename)
7455 (decode_variable): Likewise.
7456 * cli/cli-cmds.c (edit_command): Update.
7457 (list_command): Update.
7458 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7459 argument.
7460 (create_breakpoint): Update.
7461 (until_break_command): Update.
7462 (addr_string_to_sals): Update.
7463 (decode_line_spec_1): Update.
7464
b78a6381
TT
74652011-04-04 Tom Tromey <tromey@redhat.com>
7466
7467 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7468 (do_captured_parse_breakpoint): Remove.
7469 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7470 Use TRY_CATCH directly.
7471
00174a86
TT
74722011-04-04 Tom Tromey <tromey@redhat.com>
7473
7474 * symtab.h (free_symtab): Remove.
7475 (forget_cached_source_info_for_objfile): Declare.
7476 * symmisc.c (free_symtab): Remove.
7477 * source.c (forget_cached_source_info_for_objfile): New function.
7478 (forget_cached_source_info): Use it.
7479 * objfiles.c (free_objfile): Simplify check before calling
7480 clear_current_source_symtab_and_line. Call
7481 forget_cached_source_info_for_objfile.
7482
30cc903e
TT
74832011-04-04 Tom Tromey <tromey@redhat.com>
7484
7485 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7486 (new_symtab): Don't set `free_code' on symtab.
7487 (new_linetable): Properly handle size==0.
7488 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7489 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7490 free_func.
7491 * jv-lang.c (struct jv_per_objfile_data): New.
7492 (jv_per_objfile_free): Free the data.
7493 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7494 (get_java_class_symtab): Set the `dict' field on the
7495 jv_per_objfile_data.
7496 (free_class_block): Remove.
7497 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7498 the symtab.
7499
0c2e6019
TT
75002011-04-04 Tom Tromey <tromey@redhat.com>
7501
7502 * symfile.c (reread_symbols): Update.
7503 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7504 field.
7505 * objfiles.c (allocate_objfile): Update.
7506 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7507 declare.
7508 * cp-namespace.c (lookup_symbol_file): Don't call
7509 lookup_possible_namespace_symbol.
7510 (initialize_namespace_symtab, get_possible_namespace_block)
7511 (free_namespace_block, cp_check_possible_namespace_symbols)
7512 (check_possible_namespace_symbols_loop)
7513 (check_one_possible_namespace_symbol)
7514 (lookup_possible_namespace_symbol): Remove.
7515 (maintenance_cplus_namespace): Replace with notice.
7516 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7517
554d387d
TT
75182011-04-04 Tom Tromey <tromey@redhat.com>
7519
7520 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7521 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7522 * symmisc.c (free_symtab): Don't free debugformat.
7523 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7524 (record_debugformat, record_producer): Document.
7525 * buildsym.c (end_symtab): Don't save debugformat and producer
7526 names on obstack.
7527 (end_symtab): Don't free debugformat and producer fields.
7528 (record_debugformat): Don't call xstrdup.
7529 (record_producer): Likewise.
7530
d4d4db8a
TT
75312011-04-04 Tom Tromey <tromey@redhat.com>
7532
7533 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7534 (source_line_charpos, source_charpos_line): Remove.
7535
8903c50d
TT
75362011-04-04 Tom Tromey <tromey@redhat.com>
7537
7538 * symtab.h (domain_enum): Split in two...
7539 (enum search_domain): New.
7540 (search_symbols): Update.
7541 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7542 redundant declarations.
7543 (search_symbols): Change 'kind' argument to search_domain.
7544 Update.
7545 (print_symbol_info): Likewise.
7546 (symtab_symbol_info): Likewise.
7547 * symfile.h (struct quick_symbol_functions)
7548 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7549 <expand_symtabs_matching>: Likewise.
7550 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7551 (expand_symtabs_matching_via_partial): Update.
7552 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7553 (dw2_expand_symtabs_for_function): Update.
7554 * block.h: Moved anonymous enum...
7555 * defs.h (enum block_enum): ... here. Now named.
7556
d9351f5f 75572011-04-03 Joel Brobecker <brobecker@adacore.com>
7558
7559 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7560 * version.in: Bump version to 7.3.50.20110403-cvs.
7561
d6e00af6
JB
75622011-04-03 Joel Brobecker <brobecker@adacore.com>
7563
7564 * NEWS: Create a new section for the next release branch.
7565 Rename the section of the current branch, now that it has
7566 been cut.
7567
2b9e5ea6
UW
75682011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7569
7570 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7571 for "fpscr" in target description.
7572
0cf03b49
JK
75732011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7574
7575 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7576 initialize it. Delay HASH initialization. Strip the part after open
7577 parenthesis for languages with qualifiers. Call do_cleanups.
7578
5d901a73
TT
75792011-04-01 Tom Tromey <tromey@redhat.com>
7580
7581 * utils.c (report_command_stats): Don't print `-' for negative
7582 number.
7583
b0dd7688
JB
75842011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7585
7586 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7587 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7588 typedefs.
7589
956a9fb9
JB
75902011-04-01 Joel Brobecker <brobecker@adacore.com>
7591
7592 * breakpoint.h (bpdisp_text): Add declaration.
7593 * breakpoint.c (bpdisp_text): Make non-static.
7594 * ada-lang.c: #include "mi/mi-common.h".
7595 (print_it_exception): Rewrite to improve GDB/MI output.
7596
3352110b
PA
75972011-04-01 Pedro Alves <pedro@codesourcery.com>
7598
7599 * arm-tdep.h (struct address_space): Add forward declaration.
7600
18819fa6
UW
76012011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7602
7603 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7604 * arm-tdep.c (arm_override_mode): New global.
7605 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7606 execution mode heuristics.
7607 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7608 second single-step breakpoint if needed, using
7609 arm_insert_single_step_breakpoint.
7610 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7611 ARM execution mode, do not call thumb_get_next_pc_raw.
7612 (arm_get_next_pc): Encode execution mode in return value. Call
7613 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7614 (arm_insert_single_step_breakpoint): New function.
7615 (arm_software_single_step): Call it.
7616 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7617 argument to return execution mode of sigreturn target.
7618 (arm_linux_syscall_next_pc): Use it.
7619 (arm_linux_copy_svc): Update call.
7620 (arm_linux_software_single_step): Call
7621 arm_insert_single_step_breakpoint.
7622
a6e293d1
JK
76232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7624
7625 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7626 the comment.
7627
a4c8e806
TT
76282011-03-31 Tom Tromey <tromey@redhat.com>
7629
7630 * varobj.c (update_dynamic_varobj_children): Properly handle
7631 errors from iterator.
7632
df5c6c50
JK
76332011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7636 struct linkage name twice.
7637
1dae3efc
TT
76382011-03-31 Tom Tromey <tromey@redhat.com>
7639
7640 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7641 missing ">" to message.
7642
f4f7ab05
TT
76432011-03-31 Tom Tromey <tromey@redhat.com>
7644
7645 * varobj.c (instantiate_pretty_printer): Remove duplicate
7646 'return'.
7647
fcf250e2
UW
76482011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7649
7650 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7651 if neither saved value nor register available (e.g. signal frame).
7652
ee6436e3
TJB
76532011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7654
7655 * macroexp.c (expand): Avoid uninitialized variable
7656 compiler warning.
7657
423f41a5
TJB
76582011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7659
7660 * breakpoint.c (break_range_command): Fix typo in comment.
7661
f1310107
TJB
76622011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7663 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7664
7665 Implement support for PowerPC BookE ranged breakpoints.
7666 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7667 * breakpoint.h (struct bp_target_info) <length>: New member
7668 variable.
7669 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7670 instead of struct breakpoint as argument, and also add ASPACE
7671 and BP_ADDR arguments. Update all callers.
7672 (struct breakpoint_ops) <print_one_detail>: New method.
7673 (struct breakpoint) <addr_string_range_end>: New member variable.
7674 * breakpoint.c (breakpoint_location_address_match): Add function
7675 prototype.
7676 (insert_bp_location): Set bl->target_info.length.
7677 (breakpoint_here_p): Call breakpoint_location_address_match.
7678 (moribund_breakpoint_here_p): Likewise.
7679 (regular_breakpoint_inserted_here_p): Likewise.
7680 (breakpoint_thread_match): Likewise.
7681 (bpstat_stop_status): Likewise.
7682 (bpstat_check_location): Move call to
7683 breakpoint_ops.breakpoint_hit to the top.
7684 (print_one_breakpoint_location): Call
7685 breakpoint_ops.print_one_detail if available.
7686 (breakpoint_address_match_range): New function.
7687 (breakpoint_location_address_match): Likewise.
7688 (breakpoint_locations_match): Compare the length field of the
7689 locations too.
7690 (hw_breakpoint_used_count): Count resources used by all locations
7691 in a breakpoint, and use breakpoint_ops.resources_needed if
7692 available.
7693 (breakpoint_hit_ranged_breakpoint): New function.
7694 (resources_needed_ranged_breakpoint): Likewise.
7695 (print_it_ranged_breakpoint): Likewise.
7696 (print_one_ranged_breakpoint): Likewise.
7697 (print_one_detail_ranged_breakpoint): Likewise.
7698 (print_mention_ranged_breakpoint): Likewise.
7699 (print_recreate_ranged_breakpoint): Likewise.
7700 (ranged_breakpoint_ops): New structure.
7701 (find_breakpoint_range_end): New function.
7702 (break_range_command): Likewise.
7703 (delete_breakpoint): Free addr_string_range_end.
7704 (update_breakpoint_locations): Add SALS_END argument. Update
7705 all callers. Calculate breakpoint length if a non-zero SALS_END
7706 is given. Call breakpoint_locations_match instead of
7707 breakpoint_address_match.
7708 (reset_breakpoint): Find SaL of the end of the range if B is a
7709 ranged breakpoint.
7710 (_initialize_breakpoint): Register break-range command.
7711 * defs.h (print_core_address): Add function prototype.
7712 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7713 function.
7714 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7715 (ppc_linux_remove_hw_breakpoint): Likewise.
7716 (_initialize_ppc_linux_nat): Initialize
7717 to_ranged_break_num_registers.
7718 * target.c (update_current_target): Add comment about
7719 to_ranged_break_num_registers.
7720 (target_ranged_break_num_registers): New function.
7721 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7722 New method.
7723 (target_ranged_break_num_registers): Add function prototype.
7724 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7725 * utils.c (print_core_address): ... here.
7726
02d20e4a
UW
77272011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7728
7729 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7730 variable compiler warning.
7731
ef23e705
TJB
77322011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7733
7734 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7735 code from here ...
7736 (re_set_breakpoint): ... to here ...
7737 (addr_string_to_sals): ... and here.
7738
311e6ab3
PM
77392011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7740
7741 * Makefile.in (SFILES): Add missing C sources.
7742 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7743 Add missing headers.
7744
acd1d99c
MF
77452011-03-29 Mike Frysinger <vapier@gentoo.org>
7746
7747 * .gitignore: New file.
7748
66ee2731
MF
77492011-03-29 Mike Frysinger <vapier@gentoo.org>
7750
7751 * NEWS: Mention new cfi device simulation.
7752
53832f31
TT
77532011-03-29 Tom Tromey <tromey@redhat.com>
7754
7755 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7756 otherwise anonymous types.
7757 (dwarf2_name): Likewise.
7758 * valops.c (value_struct_elt_for_reference): Refine artificial
7759 type logic. Call error if j==-1.
7760
09b58708
JK
77612011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7762
7763 Fix false GCC warning.
7764 * infcall.c (find_function_addr): Initialize funaddr.
7765
6023c606
PM
77662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7767
7768 Fix mingw compilation with --enable-targets=all.
7769 * remote-mips.c (gdb_usleep.h): Include header.
7770 (mips_enter_debug): Use gdb_usleep instead of sleep.
7771
0e30163f
JK
77722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 Support resolution of STT_GNU_IFUNC via breakpoints.
7775 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7776 bp_gnu_ifunc_resolver_return.
7777 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7778 the loop. Support bp_gnu_ifunc_resolver and
7779 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7780 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7781 breakpoints.
7782 (bptype_string, print_one_breakpoint_location): Support
7783 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7784 (user_settable_breakpoint): Return true also for
7785 bp_gnu_ifunc_resolver.
7786 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7787 bp_gnu_ifunc_resolver_return.
7788 (set_breakpoint_location_function): New parameter explicit_loc,
7789 describe it. Call find_pc_partial_function_gnu_ifunc with new
7790 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7791 EXPLICIT_LOC is not set.
7792 (set_raw_breakpoint): Set EXPLICIT_LOC for
7793 set_breakpoint_location_function.
7794 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7795 set_breakpoint_location_function.
7796 (mention): Support bp_gnu_ifunc_resolver and
7797 bp_gnu_ifunc_resolver_return.
7798 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7799 set_breakpoint_location_function.
7800 (update_breakpoint_locations): Remove static.
7801 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7802 bp_gnu_ifunc_resolver_return.
7803 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7804 bp_gnu_ifunc_resolver_return.
7805 (update_breakpoint_locations): New declaration.
7806 * elfread.c: Include gdbthread.h and regcache.h.
7807 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7808 functions.
7809 (elf_gnu_ifunc_fns): Install them.
7810 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7811 (stub_gnu_ifunc_resolver_return_stop): New functions.
7812 (stub_gnu_ifunc_fns): Install them.
7813 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7814 and gnu_ifunc_resolver_return_stop.
7815 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7816
07be84bf
JK
78172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 STT_GNU_IFUNC reader implementation.
7820 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7821 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7822 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7823 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7824 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7825 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7826 (elf_gnu_ifunc_resolve_addr): New.
7827 (elf_symfile_read): Call elf_rel_plt_read.
7828 (elf_gnu_ifunc_fns): New.
7829 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7830 Install elf_gnu_ifunc_fns.
7831 * infcall.c (find_function_return_type): New function.
7832 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7833 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7834 (stub_gnu_ifunc_resolve_name): New functions.
7835 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7836 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7837 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7838
300f8e10
JK
78392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7840
7841 Code cleanup for later STT_GNU_IFUNC support.
7842 * infcall.c (find_function_addr): Remove variable code, use explicit
7843 dereferences for it. Move VALUE_TYPE initialization later.
7844
11c81455
JK
78452011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7848 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7849 (clear_pc_function_cache): Clear it.
7850 (find_pc_partial_function): Rename to ...
7851 (find_pc_partial_function_gnu_ifunc): ... this function. New
7852 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7853 (find_pc_partial_function): New wrapper for this function.
7854 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7855
0875794a
JK
78562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7857
7858 GDB internal type support for STT_GNU_IFUNC.
7859 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7860 (elf_symtab_read): Set mst_text_gnu_ifunc for
7861 BSF_GNU_INDIRECT_FUNCTION.
7862 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7863 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7864 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7865 nodebug_got_plt_symbol.
7866 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7867 (TYPE_GNU_IFUNC): New.
7868 (struct main_type): New field flag_gnu_ifunc.
7869 (struct builtin_type): New field builtin_func_func.
7870 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7871 nodebug_got_plt_symbol.
7872 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7873 (in_gnu_ifunc_stub): New.
7874 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7875 mst_text_gnu_ifunc.
7876 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7877 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7878 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7879 in_gnu_ifunc_stub.
7880 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7881 * symtab.c (search_symbols): Likewise.
7882 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7883 and mst_slot_got_plt.
7884 (in_gnu_ifunc_stub): New declaration.
7885
d0fb5eae
JK
78862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7887
7888 Support a ring of related breakpoints.
7889 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7890 other functions, add gdb_assert.
7891 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7892 watchpoint_del_at_next_stop.
7893 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7894 (bpstat_stop_status): Handle ring in related_breakpoint.
7895 (set_raw_breakpoint_without_location): Initialize ring in
7896 related_breakpoint.
7897 (delete_breakpoint): Handle ring in related_breakpoint, use
7898 watchpoint_del_at_next_stop.
7899 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7900
9cded63f
TT
79012011-03-28 Tom Tromey <tromey@redhat.com>
7902
7903 PR symtab/12441:
7904 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7905 with `language_minimal'.
7906
467d42c4
UW
79072011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7908
7909 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7910 instead of checking for STT_ARM_TFUNC symbol type.
7911
62853458
TT
79122011-03-25 Tom Tromey <tromey@redhat.com>
7913
7914 * linespec.c (symbol_found): Restore line-based result for
7915 non-LOC_LABEL symbols.
7916
a7417d46
KT
79172011-03-25 Kai Tietz <ktietz@redhat.com>
7918
7919 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7920 instead of strcmp for comparison.
7921 (tui_source_is_displayed): Likewise.
7922 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7923
55f1336d
TT
79242011-03-24 Mark Wielaard <mjw@redhat.com>
7925
f33edef8
PP
7926 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7927 complaint.
7928 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7929 (find_partial_die_in_comp_unit): Likewise in comment.
7930 (read_attribute_value): Likewise.
7931 (lookup_die_type): Likewise.
7932 (dwarf_form_name): Likewise.
7933 (dump_die_shallow): Likewise.
7934 (follow_die_ref_or_sig): Likewise.
55f1336d 7935
9ef07c8c
TT
79362011-03-24 Tom Tromey <tromey@redhat.com>
7937
7938 PR breakpoints/11816:
7939 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7940 (decode_compound): Update.
7941 (find_function_symbol): New function.
7942 (decode_dollar): Update.
7943 (decode_label): Add 'function_symbol' parameter. Handle
7944 function-relative labels.
7945 (decode_variable): Update.
7946 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7947 not its line. Set `special_display' and canonical name for
7948 labels.
7949
56435ebe
TT
79502011-03-24 Tom Tromey <tromey@redhat.com>
7951
7952 * linespec.h (struct linespec_result) <special_display>: New
7953 field.
7954 * breakpoint.h (struct breakpoint) <display_canonical>: New
7955 field.
7956 * breakpoint.c (print_breakpoint_location): Respect
7957 display_canonical.
7958 (create_breakpoint_sal): Add 'display_canonical' parameter.
7959 (create_breakpoints_sal): Update.
7960 (create_breakpoint): Update.
7961
7efd8fc2
TT
79622011-03-24 Tom Tromey <tromey@redhat.com>
7963
7964 * symtab.c (decode_line_spec): Update.
7965 * linespec.c (build_canonical_line_spec): Change type of
7966 'canonical'.
7967 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7968 (find_method, decode_all_digits, decode_dollar, decode_label)
7969 (symbol_found): Likewise.
7970 (init_linespec_result): New function.
7971 * breakpoint.c (struct captured_parse_breakpoint_args)
7972 <canonical_p>: New field, replaces addr_string_p.
7973 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7974 'addr_string'.
7975 (parse_breakpoint_sals): Likewise.
7976 (do_captured_parse_breakpoint): Update.
7977 (create_breakpoint): Use struct linespec_result.
7978 (until_break_command): Update.
7979 (breakpoint_re_set_one): Update.
7980 (decode_line_spec_1): Update.
7981 * linespec.h (struct linespec_result): New.
7982 (init_linespec_result): Declare.
7983
788c8b10
PA
79842011-03-23 Pedro Alves <pedro@codesourcery.com>
7985
7986 * regcache.c (regcache_raw_read): If the target didn't supply a
7987 given raw register, mark it as unavailable.
7988
0ba1096a
KT
79892011-03-23 Kai Tietz <ktietz@redhat.com>
7990
7991 * breakpoint.c (clear_command): Use filename_cmp
7992 instead of strcmp for comparison.
7993 * buildsym.c (watch_main_source_file_lossage): Likewise.
7994 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7995 checking just for slash.
7996 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7997 strrchr and filename_cmp instead of strcmp for filenames.
7998 (add_old_header_file): Use filename_cmp
7999 instead of strcmp for comparison.
8000 * exec.c (exec_set_section_address): Likewise.
8001 * macrotab.c (macro_lookup_inclusion): Likewise.
8002 (macro_lookup_inclusion): Likewise.
8003 * elfread.c (_initialize_elfread): Likewise.
8004 (elfstab_offset_sections): Likewise.
8005 (elfstab_offset_sections): Use lbasename instead of
8006 strrchr.
8007 * mdebugread.c (parse_partial_symbols): Likewise.
8008 (arse_partial_symbols): Use filename_(n)cmp instead of
8009 str(n)cmp for comparison.
8010 * minsyms.c (lookup_minimal_symbol): Likewise.
8011 * psymtab.c (read_psymtabs_with_filename): Likewise.
8012 * solib.c (solib_read_symbols): Likewise.
8013 (reload_shared_libraries_1): Likewise.
8014 * symmisc.c (maintenance_print_symbols): Likewise.
8015 * symfile.c (separate_debug_file_exists): Likewise.
8016 (reread_symbols): Likewise.
8017 (find_separate_debug_file_by_debuglink): Likewise.
8018 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8019 * source.c (add_path): Likewise.
8020 * symtab.c (filename_seen): Likewise.
8021 (file_matches): Likewise.
8022 (print_symbol_info): Likewise.
8023 (maybe_add_partial_symtab_filename): Likewise.
8024 (make_source_files_completion_list): Likewise.
8025 * xml-syscall.c (init_sysinfo): Likewise.
8026 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8027 IS_DIR_SEPARATOR for checking for trailing path separator.
8028
dd90784c
JK
80292011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8032 label abort_expression.
8033 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8034 DWARF_VALUE_OPTIMIZED_OUT.
8035
3167638f
JK
80362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8037
8038 Code cleanup.
8039 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8040 to linkage_name. Invert its value. Update the function comment.
8041 (c_type_print_varspec_suffix): Invert it at the caller.
8042 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8043
ce406537
PA
80442011-03-22 Pedro Alves <pedro@codesourcery.com>
8045
8046 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8047 errors when reading the `stop_pc'.
8048 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8049 get_frame_pc.
8050
da5d4055
PM
80512011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8052
8053 * NEWS: Document gdb.Write stream keyword.
8054
29e0eb9c
JK
80552011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8056
8057 Revert:
8058 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8059 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8060 (dwarf2_add_field): Fix new_field->accessibility for
8061 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8062
05775840
PM
80632011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8064
f33edef8 8065 PR python/12183
05775840
PM
8066
8067 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8068 other error classes. Do not print stack trace.
8069
a0cb7835
JK
80702011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8073 (dwarf2_add_field): Fix new_field->accessibility for
8074 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8075
d19f7eee
UW
80762011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8077
8078 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8079 encountering a load via a non-SP register.
8080
4a2fbb50
UW
80812011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8082
8083 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8084 field in returned unwinder.
8085
3489610d
JB
80862012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8087
8088 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8089
8c1a34e7
JB
80902012-03-21 Joel Brobecker <brobecker@adacore.com>
8091
8092 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8093 of xmalloc.
8094
8fbca658
PA
80952012-03-18 Pedro Alves <pedro@codesourcery.com>
8096
8097 * frame.c (frame_unwind_register): Throw an error if unwinding the
8098 register failed.
8099 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8100 an unwind stop reason.
8101 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8102 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8103 UNWIND_UNAVAILABLE>: New.
8104 * inline-frame.c (inline_frame_unwind): Install
8105 default_frame_unwind_stop_reason.
8106 * frame-unwind.c: Include "exceptions.h".
8107 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8108 (default_frame_unwind_stop_reason): New.
8109 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8110 (default_frame_unwind_stop_reason): Declare.
8111 (struct frame_unwind) <stop_reason>: New function pointer.
8112
8113 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8114 * dwarf2-frame.c: Include exceptions.h.
8115 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8116 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8117 computing the CFA. If such an error was thrown, set
8118 unavailable_retaddr.
8119 (dwarf2_frame_unwind_stop_reason): New.
8120 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8121 unavailable.
8122 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8123 (dwarf2_signal_frame_unwind): Ditto.
8124
8125 * amd64-tdep.c: Include "exceptions.h".
8126 (struct amd64_frame_cache): New field "base_p".
8127 (amd64_init_frame_cache): Clear it.
8128 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8129 Avoid reading registers with functions that throw if the register
8130 is not necessary to compute the frame base.
8131 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8132 swallowing NOT_AVAILABLE_ERROR.
8133 (amd64_frame_unwind_stop_reason): New.
8134 (amd64_frame_this_id): Don't build a frame id if the frame base
8135 was unavailable.
8136 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8137 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8138 base_p if the frame base was computable.
8139 (amd64_sigtramp_frame_unwind_stop_reason): New.
8140 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8141 frame base was unavailable.
8142 (amd64_sigtramp_frame_unwind): Install
8143 amd64_sigtramp_frame_unwind_stop_reason.
8144 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8145 base_p if the frame base was computable.
8146 (amd64_epilogue_frame_unwind_stop_reason): New.
8147 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8148 frame base was unavailable.
8149 (amd64_epilogue_frame_unwind): Install
8150 amd64_epilogue_frame_unwind_stop_reason.
8151 * i386-tdep.c: Include "exceptions.h".
8152 (struct i386_frame_cache): New field "base_p".
8153 (i386_init_frame_cache): Clear it.
8154 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8155 Avoid reading registers with functions that throw if the register
8156 is not necessary to compute the frame base.
8157 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8158 swallowing NOT_AVAILABLE_ERROR.
8159 (i386_frame_unwind_stop_reason): New.
8160 (i386_frame_this_id): Don't build a frame id if the frame base was
8161 unavailable.
8162 (i386_frame_prev_register): Handle unavailable SP.
8163 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8164 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8165 base_p if the frame base was computable.
8166 (i386_epilogue_frame_unwind_stop_reason): New.
8167 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8168 base was unavailable.
8169 (i386_epilogue_frame_unwind): Install
8170 i386_epilogue_frame_unwind_stop_reason.
8171 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8172 base_p if the frame base was computable.
8173 (i386_sigtramp_frame_unwind_stop_reason): New.
8174 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8175 base was unavailable.
8176 (i386_sigtramp_frame_unwind): Install
8177 i386_sigtramp_frame_unwind_stop_reason.
8178 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8179 type's size, not the register's.
8180 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8181
8182 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8183 default_frame_unwind_stop_reason.
8184 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8185 (alpha_heuristic_frame_unwind): Ditto.
8186 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8187 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8188 * avr-tdep.c (avr_frame_unwind): Ditto.
8189 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8190 Ditto.
8191 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8192 * frv-tdep.c (frv_frame_unwind): Ditto.
8193 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8194 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8195 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8196 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8197 (hppa_stub_frame_unwind): Ditto.
8198 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8199 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8200 (ia64_libunwind_frame_unwind)
8201 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8202 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8203 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8204 * m32c-tdep.c (m32c_unwind): Ditto.
8205 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8206 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8207 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8208 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8209 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8210 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8211 * mep-tdep.c (mep_frame_unwind): Ditto.
8212 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8213 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8214 (mips_stub_frame_unwind): Ditto.
8215 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8216 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8217 * mt-tdep.c (mt_frame_unwind): Ditto.
8218 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8219 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8220 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8221 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8222 (s390_sigtramp_frame_unwind): Ditto.
8223 * score-tdep.c (score_prologue_unwind): Ditto.
8224 * sh-tdep.c (sh_frame_unwind): Ditto.
8225 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8226 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8227 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8228 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8229 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8230 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8231 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8232 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8233 (sparc64obsd_trapframe_unwind): Ditto.
8234 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8235 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8236 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8237 * v850-tdep.c (v850_frame_unwind): Ditto.
8238 * vax-tdep.c (vax_frame_unwind): Ditto.
8239 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8240 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8241 * xtensa-tdep.c (xtensa_unwind): Ditto.
8242
f23d1b92
PA
82432011-03-18 Pedro Alves <pedro@codesourcery.com>
8244
8245 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8246 there's always a frame. Use get_frame_pc_if_available instead of
8247 get_frame_pc, and if there's no PC available, don't look up a
8248 symtab.
8249
1d4f5741
PA
82502011-03-18 Pedro Alves <pedro@codesourcery.com>
8251
8252 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8253 unavailable PC.
8254
dba09041
PA
82552011-03-18 Pedro Alves <pedro@codesourcery.com>
8256
8257 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8258 gracefully.
8259
9a26e44c
PA
82602011-03-18 Pedro Alves <pedro@codesourcery.com>
8261
8262 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8263 * frame.c (frame_unwind_caller_pc_if_available): New.
8264 * stack.c (frame_info): Handle unavailable PC.
8265
82662011-03-18 Pedro Alves <pedro@codesourcery.com>
8267
8268 * frame.c (frame_unwind_pc): Rename to ...
8269 (frame_unwind_pc_if_available): ... this. New `pc' output
8270 parameter. Change return type to int. Gracefully handle
8271 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8272 happened, or 1 otherwise.
8273 (frame_unwind_pc): Reimplement on top of
8274 frame_unwind_pc_if_available.
8275 (get_frame_func): Rename to ...
8276 (get_frame_func_if_available): New `pc' output parameter. Change
8277 return type to int. Gracefully handle the PC not being available.
8278 (get_frame_func): Reimplement on top of
8279 get_frame_func_if_available.
8280 (select_frame): Handle the PC being unavailable.
8281 (get_prev_frame): Handle the PC being unavailable.
8282 (get_frame_pc_if_available): New.
8283 (get_frame_address_in_block_if_available): New.
8284 (find_frame_sal): Handle the frame PC not being available.
8285 * frame.h (get_frame_pc_if_available): Declare.
8286 (get_frame_address_in_block_if_available): Declare.
8287 (get_frame_func_if_available): Declare.
8288 * stack.c (print_frame_info): Handle the PC being unavailable.
8289 (find_frame_funname): Ditto.
8290 (print_frame): Handle the PC being unavailable.
8291 (get_frame_language): Ditto.
8292 * blockframe.c (get_frame_block): Ditto.
8293 * macroscope.c (default_macro_scope): Ditto.
8294 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8295
82962011-03-18 Pedro Alves <pedro@codesourcery.com>
8297
8298 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8299 NOT_AVAILABLE_ERROR when evaluating the location expression.
8300
83012011-03-18 Pedro Alves <pedro@codesourcery.com>
8302
8303 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8304 returning that the register piece is unavailable/optimized out.
8305 (write_pieced_value): Handle get_frame_register_bytes returning
8306 that the register piece is unavailable/optimized out when doing a
8307 read-modify write of a bitfield.
8308 * findvar.c (value_from_register): Handle get_frame_register_bytes
8309 returning that the register piece is unavailable/optimized out.
8310 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8311 and `unavailablep'. Throw error on bad debug info. Use
8312 frame_register instead of frame_register_read, to fill in the new
8313 arguments.
8314 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8315 and `unavailablep'.
8316 * valops.c: (value_assign): Adjust, and handle
8317 get_frame_register_bytes failing.
8318 * spu-tdep.c: Include exceptions.h.
8319 (spu_software_single_step): Adjust, and handle
8320 get_frame_register_bytes failing.
8321 (spu_get_longjmp_target): Ditto.
8322 * gdbarch.sh (register_to_value): Change to return int. New
8323 parameters `optimizedp' and `unavailablep'.
8324 * gdbarch.h, gdbarch.c: Regenerate.
8325 * i386-tdep.c (i386_register_to_value): Adjust to new
8326 gdbarch_register_to_value interface.
8327 * i387-tdep.c (i387_register_to_value): Ditto.
8328 * i387-tdep.h (i387_register_to_value): Ditto.
8329 * alpha-tdep.c (alpha_register_to_value): Ditto.
8330 * ia64-tdep.c (ia64_register_to_value): Ditto.
8331 * m68k-tdep.c (m68k_register_to_value): Ditto.
8332 * mips-tdep.c (mips_register_to_value): Ditto.
8333 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8334
0fdb4f18
PA
83352011-03-18 Pedro Alves <pedro@codesourcery.com>
8336
8337 * findvar.c (value_of_register): Mark the value as unavailable, if
8338 the register is unavailable.
8339 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8340 (frame_register): New `unavailablep' parameter.
8341 (frame_register_read): Update comment.
8342 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8343 Set it if the register is unavailable. If the register is
8344 unavailable, clear the output buffer.
8345 (frame_register): New `unavailablep' parameter. Pass it down.
8346 (frame_unwind_register): Adjust.
8347 (put_frame_register): Adjust.
8348 (frame_register_read): Adjust. Also return false if the register
8349 is not available.
8350 (frame_register_unwind_location): Adjust.
8351 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8352 is unavailable, mark the value accordingly.
8353 * stack.c (frame_info): Handle unavailable registers.
8354
e69aa73e
PA
83552011-03-18 Pedro Alves <pedro@codesourcery.com>
8356
8357 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8358 simplify, using regcache_cooked_read.
8359
05d1431c
PA
83602011-03-18 Pedro Alves <pedro@codesourcery.com>
8361
8362 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8363 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8364 (regcache_raw_read_unsigned, regcache_raw_read_part)
8365 (regcache_cooked_read, regcache_cooked_read_signed)
8366 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8367 (regcache_cooked_read_ftype): Change return to enum
8368 register_status.
8369 * regcache.c: Include exceptions.h
8370 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8371 (do_cooked_read): Change return to enum register_status. Always
8372 forward to regcache_cooked_read.
8373 (regcache_raw_read): Change return to enum register_status. If
8374 the register is not REG_VALID, memset the buffer. Return the
8375 register's status.
8376 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8377 return the register's status.
8378 (regcache_raw_read_unsigned): Ditto.
8379 (regcache_cooked_read): Change return to enum register_status.
8380 Assert that with read-only regcaches, the register's status must
8381 be known. If the regcache is read-only, and the register is not
8382 REG_VALID, memset the buffer. Return the register's status.
8383 (regcache_cooked_read_signed): Change return to enum
8384 register_status. Handle non-REG_VALID registers and return the
8385 register's status.
8386 (regcache_cooked_read_unsigned): Change return to enum
8387 register_status. Handle non-REG_VALID registers and return the
8388 register's status.
8389 (regcache_xfer_part, regcache_raw_read_part)
8390 (regcache_cooked_read_part): Change return to enum
8391 register_status. Return the register's status.
8392 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8393 unavailable.
8394 (regcache_dump): Handle unavailable cooked registers.
8395 * frame.c (do_frame_register_read): Adjust interface to match
8396 regcache_cooked_read_ftype.
8397 * gdbarch.sh (pseudo_register_read): Change return to enum
8398 register_status.
8399 * gdbarch.h, gdbarch.c: Regenerate.
8400
8401 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8402 register_status.
8403 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8404 register_status. If reading a raw register indicates the raw
8405 register is not valid, return the raw register's status,
8406 otherwise, return REG_VALID.
8407 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8408 register_status. Handle non-REG_VALID raw registers and return
8409 the register's status.
8410 * arm-tdep.c (arm_neon_quad_read)
8411 (arm_pseudo_read): Change return to enum register_status. Handle
8412 non-REG_VALID raw registers and return the register's status.
8413 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8414 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8415 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8416 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8417 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8418 register_status.
8419 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8420 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8421 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8422 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8423 (m32c_pseudo_register_read): Change return to enum
8424 register_status. Adjust.
8425 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8426 enum register_status. Return the register's status.
8427 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8428 register_status. Return the register's status.
8429 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8430 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8431 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8432 * rs6000-tdep.c (move_ev_register_func): New typedef.
8433 (e500_move_ev_register): Use it. Change return to enum
8434 register_status. Return the register's status.
8435 (do_regcache_raw_read): New function.
8436 (do_regcache_raw_write): New function.
8437 (e500_pseudo_register_read): Change return to enum
8438 register_status. Return the register's status. Use
8439 do_regcache_raw_read.
8440 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8441 (dfp_pseudo_register_read): Change return to enum register_status.
8442 Return the register's status.
8443 (vsx_pseudo_register_read): Ditto.
8444 (efpr_pseudo_register_read): Ditto.
8445 (rs6000_pseudo_register_read): Ditto.
8446 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8447 register_status. Return the register's status.
8448 * sh64-tdep.c (pseudo_register_read_portions): New function.
8449 (sh64_pseudo_register_read): Change return to enum
8450 register_status. Use pseudo_register_read_portions. Return the
8451 register's status.
8452 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8453 register_status. Return the register's status.
8454 * sh-tdep.c (pseudo_register_read_portions): New function.
8455 (sh_pseudo_register_read): Change return to enum register_status.
8456 Use pseudo_register_read_portions. Return the register's status.
8457 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8458 enum register_status. Return the register's status.
8459 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8460 * spu-tdep.c (spu_pseudo_register_read_spu)
8461 (spu_pseudo_register_read): Ditto.
8462 * xtensa-tdep.c (xtensa_register_read_masked)
8463 (xtensa_pseudo_register_read): Ditto.
8464 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8465
e10abd8f
PM
84662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8467
8468 * python/py-value.c (valpy_getitem): Fix formatting of error function
8469 call.
8470
7ea6d463
PM
84712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8472
8473 ARI fixes: Add missing internationalization markups throughout
8474 C source files.
8475 * darwin-nat-info.c: Ditto.
8476 * record.c: Ditto.
8477 * remote.c: Ditto.
8478 * mi/mi-main.c: Ditto.
8479
001083c6
PM
84802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8481
8482 ARI fixes: Add missing internationalization markups throughout
8483 yacc files.
8484 * c-exp.y: Ditto.
8485 * cp-name-parser.y: Ditto.
8486 * f-exp.y: Ditto.
8487 * m2-exp.y: Ditto.
8488 * objc-exp.y: Ditto.
8489 * p-exp.y: Ditto.
8490
4f1cdeec
PM
84912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8492
8493 ARI fixes: Messages should have no trailing new lines.
8494 * darwin-nat.c (mach_check_error): Remove trailing new line from
8495 warning function call message.
8496 * record.c (bfdcore_read): Idem for error call.
8497
28e698f1
PM
84982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8499
8500 * common/signals.c (target_signal_from_host): Add _ markup to error
8501 function call message.
8502 (target_signal_to_host): Add _ markup and remove trailing new line
8503 from warning call message.
8504 (target_signal_from_command): Add _ markup to error function call
8505 message.
8506
99c3dc11
PM
85072011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8508
f33edef8 8509 PR python/12149
99c3dc11
PM
8510
8511 * python/python.c (gdbpy_write): Accept a stream argument and
8512 operate to the appropriate stream.
8513 (gdbpy_flush): Likewise.
8514 (_initialize_python): Add stream constants.
8515 (finish_python_initialization): Add GdbOutputErrorFile class.
8516
c20800be
KY
85172011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8518
8519 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8520
f4a1794a
KY
85212011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8522
8523 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8524 to store_signed_integer. Add debug message when relocating CALL
8525 instructions. Fix formatting of debug message.
8526 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8527
d4862372
JB
85282011-03-17 Joel Brobecker <brobecker@gnat.com>
8529
8530 * target.h (struct target_ops): Remove to_lookup_symbol field.
8531 (target_lookup_symbol): Delete macro.
8532 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8533 (update_current_target, setup_target_debug): Remove handling
8534 of to_lookup_symbol target_ops field.
8535 * ada-tasks.c (get_known_tasks_addr): Remove use of
8536 target_lookup_symbol.
8537 * coffread.c (coff_symtab_read): Likewise.
8538 * dbxread.c (read_dbx_symtab): Ditto.
8539
d645e32e
JB
85402011-03-17 Joel Brobecker <brobecker@gnat.com>
8541
8542 PR gdb/12116:
8543 * configure.ac: Add getthrds declaration check.
8544 * configure, config.in: Regenerate.
8545 * aix-thread.c (getthrds): Declare only if not already declared
8546 in procinfo.h. More declaration out of get_signaled_thread to
8547 global scope.
8548
29703da4
PM
85492011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8550
8551 * python/py-symtab.c: Populate symtab_object_methods,
8552 sal_object_methods.
8553 (stpy_is_valid): New function.
8554 (salpy_is_valid): Ditto.
8555 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8556 (sympy_is_valid): New function.
8557 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8558 (objfpy_is_valid): New function.
8559 * python/py-inferior.c: Populate inferior_object_methods.
8560 (infpy_is_valid): New function.
8561 * python/py-infthread.c: Populate thread_object_methods.
8562 (thpy_is_valid): New function.
8563 * python/py-block.c: Declare block_object_methods. Populate. Declare
8564 block_iterator_object_methods. Populate.
8565 (blpy_is_valid): New function.
8566 (blpy_iter_is_valid): Ditto.
8567
c00f8484
KS
85682011-03-16 Keith Seitz <keiths@redhat.com>
8569
8570 * linespec.c (find_methods): Canonicalize NAME before looking
8571 up the symbol.
8572 (name_end): New function.
8573 (keep_name_info): New function.
8574 (decode_line_1): Use keep_name_info.
8575 (decode_compound): Likewise.
8576 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8577 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8578
8579 PR c++/12273
8580 * linespec.c (locate_first_half): Keep overload information, too.
8581 (decode_compound): Use a string to represent break characters
8582 to escape the loop.
8583 If P points to a break character, do not increment it.
8584 For C++ and Java, keep overload information and relevant keywords.
8585 If we cannot find a symbol, search the minimal symbols.
8586
8587 PR c++/11734
8588 * linespec.c (decode_compound): Rename SAVED_ARG to
8589 THE_REAL_SAVED_ARG.
8590 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8591 single-quotes.
8592 Pass a valid block to lookup_symbol.
8593 (lookup_prefix_sym): Likewise.
8594 (find_method): Construct search name based on SYM_CLASS instead
8595 of SAVED_ARG.
8596 * psymtab.c (lookup_partial_symbol): Add language parameter.
8597 (lookup_symbol_aux_psymtabs): Likewise.
8598 Don't assume that the psymtab we found was the right one. Search
8599 for the desired symbol in the symtab to be certain.
8600 (psymtab_search_name): New function.
8601 (lookup_partial_symbol): Use psymtab_search_name.
8602 Add language parameter.
8603 (read_symtabs_for_function): Add language parameter and pass to
8604 lookup_partial_symbol.
8605 (find_symbol_file_from_partial): Likewise.
8606
c91513d8
PP
86072011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8608
8609 PR gdb/12528
8610 * dwarf2read.c (noop_record_line): New function.
8611 (dwarf_decode_lines): Ignore line tables for GCd functions.
8612
b37520b6
PM
86132011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8614
8615 Fix ARI warnings about new lines at the end of messages, which
8616 are unneeded as there is a new line added at the end of the message
8617 automatically.
8618 * darwin-nat.c (darwin_stop_inferior): Ditto.
8619 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8620 * dfp.c (decimal_to_number): Ditto.
8621 * exec.c (print_section_info): Ditto.
8622 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8623 * osdata.c (get_osdata): Ditto.
8624 * record.c (bfdcore_write): Ditto.
8625 * remote-mips.c (mips_readchar): Ditto.
8626 * remote.c (read_ptid): Ditto.
8627 * ser-mingw.c (ser_windows_raw): Ditto.
8628 * tracepoint.c (add_local_symbols): Ditto.
8629 * windows-nat.c (fake_create_process): Ditto.
8630
b08ee6a2
TT
86312011-03-16 Tom Tromey <tromey@redhat.com>
8632
8633 * tracepoint.c (stop_tracing): Don't declare.
8634 * event-top.c (after_char_processing_hook): Add `(void)'.
8635
9a6f1302
PM
86362011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8637
8638 * NEWS: Add Parameter sub-classing description.
8639
7ceb86b1
KT
86402011-03-16 Kai Tietz <ktietz@redhat.com>
8641
8642 * MAINTAINERS: Update my e-mail address.
8643
efeff6cf
AT
86442011-03-15 Andreas Tobler <andreast@fgznet.ch>
8645
8646 * MAINTAINERS: Add myself for write after approval privileges.
8647
681c238c
MS
86482011-03-15 Michael Snyder <msnyder@vmware.com>
8649
f3df5b08
MS
8650 * frame.c (find_frame_sal): Assert sym is not null.
8651
13f6513c
MS
8652 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8653
50412521
MS
8654 * objc-lang.c (selectors_info): Check strchr for null result.
8655
681c238c
MS
8656 * stabsread.c (define_symbol): Guard against bad stabstring input.
8657
6ced1581
PM
86582011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8659
8660 Remove trailing spaces and tabulations from pascal language
8661 support sources.
8662 p-exp.y: Ditto.
8663 p-lang.c: Ditto.
8664 p-lang.h: Ditto.
8665 p-valprint.c: Ditto.
8666
9373cf26
JK
86672011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8668
8669 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8670 than LOW. Comment it.
8671 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8672 HIGHPC not strictly higher than LOWPC.
8673
9a1edae6
PM
86742011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8675
8676 Fix formatting of function declarations returning a pointer in
8677 previous commit.
8678 * varobj.c (varobj_add_child): Ditto.
8679 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8680 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8681
24e9cda0
UW
86822011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8683
8684 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8685 for the "generic" vector ABI used with GCC 4.3 and later.
8686 (ppc64_sysv_abi_return_value): Likewise.
8687
86882011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8689
8690 * infcall.c (call_function_by_hand): Function return value is
8691 always a non_lval, even when using struct_return.
8692
c9174737
PA
86932011-03-15 Pedro Alves <pedro@codesourcery.com>
8694
8695 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8696 (map_display_numbers): New.
8697 (do_delete_display): New.
8698 (undisplay_command): Use map_display_numbers.
8699 (do_enable_disable_display): New.
8700 (enable_disable_display_command): New function.
8701 (enable_display): Delete.
8702 (enable_display_command): New.
8703 (disable_display_command): Reimplement.
8704 (_initialize_printcmd): Adjust "enable display" command to use
8705 `enable_display_command' as callback.
8706
350c6c65
PM
87072011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8708
8709 * NEWS: Add Python breakpoint 'stop' operation.
8710
824446ad
PM
87112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8712
8713 * NEWS: Delete duplicate entry. Fix typo.
8714
2021ad3a
PM
87152011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8716
8717 Fix ARI warning about function names in first column.
8718 Put prototype declaration on same line as return type.
8719 * objc-exp.y: Ditto.
8720 * p-exp.y: Ditto.
8721 * python/py-stopevent.h: Ditto.
8722 For long function names, split parameters to
8723 allow function name on same line as return type.
8724 * solib-pa64.c: Ditto.
8725 * varobj.c: Ditto.
8726 * varobj.h: Ditto.
8727 For long function declaration, use single line.
8728 * hppa-tdep.h: Ditto.
8729 * inferior.h: Ditto.
8730
7371cf6d
PM
87312011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8732
8733 * python/python.h: Declare gdbpy_should_stop and
8734 gdbpy_breakpoint_has_py_cond.
8735 * python/python.c: Add python.h to includes. Remove python.h from
8736 HAVE_PYTHON definition
8737 (gdbpy_should_stop): New dummy function.
8738 (gdbpy_breakpoint_has_py_cond): New dummy function.
8739 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8740 sub-classing capabilities.
8741 (gdbpy_should_stop): New function.
8742 (gdbpy_breakpoint_has_py_cond): New function.
8743 (local_setattro): New function.
8744 * breakpoint.c (condition_command): Add check for Python 'stop'
8745 operation.
8746 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8747 operation function as part of stop/continue tests.
8748
37b50a69
TT
87492011-03-14 Tom Tromey <tromey@redhat.com>
8750
8751 PR gdb/12576:
8752 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8753 (needs_frame_dwarf_call): Likewise.
8754
eeae04df
PM
87552011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8756
8757 Fix ARI warning about functions without parameters that do not
8758 use (void).
8759 * breakpoint.c (all_tracepoints): Replace () by (void).
8760 * f-exp.y (match_string_literal): Ditto.
8761 (yylex): Ditto.
8762 * m2-exp.y (yylex): Ditto.
8763 * mep-tdep.c (current_me_module): Ditto.
8764 (current_options): Ditto.
8765 (current_cop_data_bus_width): Ditto.
8766 (current_cr_names): Ditto.
8767 (current_cr_is_float): Ditto.
8768 (current_ccr_names): Ditto.
8769 * objc-exp.y (yylex): Ditto.
8770 * p-exp.y (yylex): Ditto.
8771 * remote.c (send_interrupt_sequence): Ditto.
8772 * tracepoint.c (current_trace_status): Ditto.
8773 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8774 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8775
6dc3565d
MS
87762011-03-11 Michael Snyder <msnyder@vmware.com>
8777
1427fe5e
MS
8778 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8779 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8780 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8781 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8782 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8783
60bc018f
MS
8784 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8785 (delete_async_event_handler): Ditto.
8786
f3be5b64
MS
8787 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8788
4c2d5724
MS
8789 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8790
6dc3565d
MS
8791 * top.c (set_verbose): Assert showcmd was found.
8792
4e6ca6d5
MG
87932011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8794
8795 * xtensa-tdep.c (warning_once): Correct style issues.
8796
815a83e4
YQ
87972011-03-11 Yao Qi <yao@codesourcery.com>
8798
8799 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8800
f2eb0bc8
AS
88012011-03-11 Andreas Schwab <schwab@redhat.com>
8802
8803 * common/aclocal.m4: Remove.
8804
b801de47
MG
88052011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8806
8807 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8808 (xtensa_write_register, xtensa_read_register): Likewise.
8809 (xtensa_hextochar): Removed.
8810 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8811
dbab50de
MG
88122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8813
8814 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8815 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8816 (xtensa_alloc_frame_cache): Add initialization for new fields.
8817 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8818 (warning_once): New function.
8819 (xtensa_insn_kind): New item c0opc_and.
8820 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8821 (call0_track_op): Change arguments. New local variable litbase.
8822 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8823 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8824 in the prologue.
dbab50de 8825 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8826 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8827 Add the variety of updates to handle extended prologues, which now can
8828 conduct dynamic stack adjustments.
8829 (call0_frame_cache): Likewise.
8830 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8831 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8832
b2c04452
MS
88332011-03-10 Michael Snyder <msnyder@vmware.com>
8834
f8f67713
MS
8835 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8836 (cmd_qtframe): Ditto.
8837 (cmd_qtbuffer): Ditto.
8838 (cmd_bigqtbuffer): Ditto.
8839
197f0a60
TT
88402011-03-10 Tom Tromey <tromey@redhat.com>
8841
8842 * tracepoint.c (trace_actions_command): Update.
8843 * thread.c (thread_apply_command): Update.
8844 * reverse.c (delete_bookmark_command): Update.
8845 (bookmarks_info): Update.
8846 * printcmd.c (undisplay_command): Update.
8847 * memattr.c (mem_enable_command): Update.
8848 (mem_disable_command): Update.
8849 (mem_delete_command): Update.
8850 * inferior.c (detach_inferior_command): Update.
8851 (kill_inferior_command): Update.
8852 (remove_inferior_command): Update.
8853 * cli/cli-utils.h (struct get_number_or_range_state): New.
8854 (init_number_or_range): Declare.
8855 (get_number_or_range): Update.
8856 * cli/cli-utils.c (init_number_or_range): New function.
8857 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8858 static variables.
8859 (number_is_in_list): Update.
8860 * breakpoint.h (get_tracepoint_by_number): Update.
8861 * breakpoint.c (map_breakpoint_numbers): Update for change to
8862 get_number_or_range.
8863 (find_location_by_number): Use get_number, not
8864 get_number_or_range.
8865 (trace_pass_set_count): New function.
8866 (trace_pass_command): Update for change to get_number_or_range.
8867 Rework loop logic.
8868 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8869 'state' parameter.
8870
ecec24e6
PM
88712011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8872
8873 * python/py-param.c (add_setshow_generic): Add set/show callback
8874 parameters. Register Python object context.
8875 (get_show_value): New function.
8876 (get_set_value): New function.
8877 (call_doc_function): New function.
8878 (get_doc_string): Move behind get_show_value/get_set_value.
8879
6d6c6b1f
JK
88802011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8881
8882 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8883
68d6df83
MG
88842011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8885
dbab50de 8886 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8887 (xtensa_write_register): Likewise.
8888 (xtensa_hextochar): Add comment and update to match coding conventions.
8889 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8890 (execute_l32e, execute_s32e, execute_code): Update comments.
8891 (xtensa_exception_handler_t): Update to match coding conventions.
8892 (xtensa_insn_kind): Likewise.
8893
85c9d6a6
MS
88942011-03-09 Michael Snyder <msnyder@vmware.com>
8895
8896 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8897
91495617
PA
88982011-03-09 Pedro Alves <pedro@codesourcery.com>
8899
8900 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8901
eb8c0621
TT
89022011-03-09 Tom Tromey <tromey@redhat.com>
8903
8904 * thread.c (restore_selected_frame): Handle frame_level == -1.
8905 (make_cleanup_restore_current_thread): Use
8906 get_selected_frame_if_set.
8907 * frame.h (get_selected_frame_if_set): Declare.
8908 * frame.c (get_selected_frame_if_set): New function.
8909
9f37bbcc
PA
89102011-03-09 Pedro Alves <pedro@codesourcery.com>
8911
8912 * cli/cli-cmds.c (shell_escape): Use lbasename.
8913 * coffread.c (coff_start_symtab): Constify parameter.
8914 (complete_symtab): Constify `name' parameter.
8915 (coff_symtab_read): Constify `filestring' local.
8916 (coff_getfilename): Constify return and `result' local.
8917 Use lbasename.
8918 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8919 * linux-fork.c (info_checkpoints_command): Use lbasename.
8920 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8921 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8922 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8923 * procfs.c (procfs_make_note_section): Use lbasename.
8924 * tui/tui-io.c (printable_part): Constity return and parameter.
8925 Use lbasename.
8926 (print_filename): Constify parameters, and local `s'.
8927 (tui_rl_display_match_list): Constify local `temp'.
8928
f8de3c55
JK
89292011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8930
8931 Revert:
8932 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8933 Fix DWARF-3+ DW_AT_accessibility default assumption.
8934 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8935 cu->header.version >= 3.
8936
d9837b00
YQ
89372011-03-09 Yao Qi <yao@codesourcery.com>
8938
8939 * common/Makefile.in: Remove.
8940 * common/configure: Remove.
8941 * common/configure.ac: Remove.
8942
e637a4f5
YQ
89432011-03-09 Yao Qi <yao@codesourcery.com>
8944
8945 Revert:
8946 2011-02-11 Yao Qi <yao@codesourcery.com>
8947
8948 * common/Makefile.in: Add copyright header.
8949
8950 2011-02-11 Yao Qi <yao@codesourcery.com>
8951
8952 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8953 libcommon.a.
8954 * configure.ac: Add common to sub dir.
8955 * configure: Regenerate.
8956
f976a05d
MG
89572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8958
8959 * xtensa-tdep.c (call0_ret): New function.
8960 (xtensa_skip_prologue): Speed up analysis.
8961
57041825
MG
89622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8963
8964 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8965 while executing MI command -data-list-changed-registers.
8966
08b9c608
MG
89672011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8968
8969 * xtensa-tdep.c (xtensa_read_register): New function.
8970 (xtensa_write_register): New function.
8971 (xtensa_find_register_by_name): New function.
8972 (xtensa_windowed_frame_cache): Update comments in type description.
8973 (xtensa_frame_cache): Likewise.
8974 (xtensa_window_interrupt_insn): New function.
8975 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8976 (xtensa_insn_kind): Add new instructions.
8977 (rwx_special_register): New function.
8978 (call0_classify_opcode): Add new instructions to the analysis.
8979 (a0_saved, a7_saved, a11_saved): New variables.
8980 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8981 (execute_l32e): New function.
8982 (execute_s32e): New function.
8983 (xtensa_exception_handler_t): New type.
8984 (execute_code): New function.
8985 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8986 analysis for Xtensa Window Exception handlers.
8987
4d1acb11
MG
89882011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8989
98689b25
MG
8990 * xtensa-tdep.c (TX_PS): New.
8991 (windowing_enabled): Update to count for Call0 ABI.
8992 (xtensa_hextochar): New.
8993 (xtensa_init_reggroups): Make algorithm generic.
8994 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8995
89962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8997
8998 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8999
d3f323f3
MS
90002011-03-08 Michael Snyder <msnyder@vmware.com>
9001
3dcabaa8
MS
9002 * i386-tdep.c (i386_follow_jump): Check return value of
9003 target_read_memory.
9004 (i386_analyze_struct_return): Ditto.
9005 (i386_skip_probe): Ditto.
9006 (i386_match_insn): Ditto.
9007 (i386_skip_noop): Ditto.
9008 (i386_analyze_frame_setup): Ditto.
9009 (i386_analyze_register_saves): Ditto.
9010 (i386_skip_prologue): Ditto.
9011 (i386_skip_main_prologue): Ditto.
9012
13b3fd9b
MS
9013 * target.c (read_whatever_is_readable): Fix memory leak.
9014
d3f323f3
MS
9015 * i386-tdep.c (i386_process_record): Document fall through.
9016
421d5c74
JK
90172011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9018
9019 Fix DWARF-3+ DW_AT_accessibility default assumption.
9020 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9021 cu->header.version >= 3.
9022
63154eca
PA
90232011-03-08 Pedro Alves <pedro@codesourcery.com>
9024
9025 * remote.c (remote_check_symbols): Skip if the target has no
9026 execution.
9027
f1a507a1
JB
90282011-03-08 Joel Brobecker <brobecker@adacore.com>
9029
9030 * target.c (read_whatever_is_readable): Reformat comment,
9031 with a minor typo fix. Minor reformatting of the code.
9032
36073a92
YQ
90332011-03-08 Yao Qi <yao@codesourcery.com>
9034
9035 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9036 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9037 Use cached result instead of calling displaced_in_arm_mode again.
9038 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9039 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9040 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9041 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9042 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9043 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9044 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9045 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9046 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9047 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9048 (arm_catch_kernel_helper_return): Likewise.
9049 * gdb/arm-tdep.h : Update function declarations.
9050
d3f323f3 90512011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9052
e0e40094
MS
9053 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9054
0b2381f5
MS
9055 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9056
0350914a
MS
9057 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9058
69feea6f
MS
9059 * elfread.c (elf_symtab_read): Stop memory leak.
9060
e6040cbd
MS
9061 * main.c (captured_main): Fix memory leak.
9062
052874e8
AS
90632011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9064
9065 * ada-lang.c (compare_names): Call is_name_suffix with string1
9066 instead of string2.
9067
b11896a5
TT
90682011-03-07 Tom Tromey <tromey@redhat.com>
9069
9070 * xcoffread.c (xcoff_sym_fns): Update.
9071 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9072 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9073 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9074 (symbol_file_add_with_addrs_or_offsets): Likewise.
9075 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9076 * somread.c (som_sym_fns): Update.
9077 * psymtab.h (require_partial_symbols): Declare.
9078 * psymtab.c (require_partial_symbols): New function.
9079 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9080 (ALL_OBJFILE_PSYMTABS): Undef.
9081 (ALL_PSYMTABS): Move from psympriv.h.
9082 (lookup_partial_symtab, find_pc_sect_psymtab)
9083 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9084 (find_last_source_symtab_from_partial)
9085 (forget_cached_source_info_partial)
9086 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9087 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9088 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9089 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9090 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9091 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9092 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9093 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9094 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9095 psymtabs.
9096 * mipsread.c (ecoff_sym_fns): Update.
9097 * machoread.c (macho_sym_fns): Update.
9098 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9099 (read_psyms): New function.
9100 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9101 (elf_sym_fns_lazy_psyms): New global.
9102 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9103 dwarf2_build_psymtabs.
9104 * dbxread.c (aout_sym_fns): Update.
9105 * coffread.c (coff_sym_fns): Update.
9106
fda326dd
TT
91072011-03-07 Tom Tromey <tromey@redhat.com>
9108
9109 * infrun.c (print_exited_reason): Include inferior id and pid in
9110 message.
9111
aeaec162
TT
91122011-03-07 Tom Tromey <tromey@redhat.com>
9113
9114 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9115 parameter.
9116 (target_has_execution_1): Update.
9117 (target_has_execution_current): Declare.
9118 (target_has_execution): Call target_has_execution_current.
9119 (default_child_has_execution): Update.
9120 * target.c (default_child_has_execution): Add 'the_ptid'
9121 parameter.
9122 (target_has_execution_1): Likewise.
9123 (target_has_execution_current): New function.
9124 (add_target): Update.
9125 (init_dummy_target): Update.
9126 * remote-m32r-sdi.c (m32r_has_execution): New function.
9127 (init_m32r_ops): Use it.
9128 * record.c (record_core_has_execution): Now static. Add
9129 'the_ptid' parameter.
9130 * inferior.c (have_live_inferiors): Don't save current thread.
9131 Use target_has_execution_1.
9132
08e14083
YQ
91332011-03-07 Yao Qi <yao@codesourcery.com>
9134
9135 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9136
c05d19c5
JB
91372011-03-07 Joel Brobecker <brobecker@adacore.com>
9138
9139 * elfread.c (elf_symtab_read): Minor reformatting.
9140
3e6ef9e4
JB
91412011-03-07 Joel Brobecker <brobecker@adacore.com>
9142
9143 * objc-lang.c (selectors_info): Minor reformatting.
9144
dbb8534f
JB
91452011-03-07 Joel Brobecker <brobecker@adacore.com>
9146
9147 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9148
dd70cc93
JB
91492011-03-07 Joel Brobecker <brobecker@adacore.com>
9150 Michael Snyder <msnyder@vmware.com>
9151
9152 * ada-valprint.c (ada_val_print_array): Move the declaration of
9153 "byte_order" and "elttype" inside the block where these variables
9154 are actually used. Remove some special handling for the case
9155 where "elttype" and "eltlen" are null. Replace by a comment
9156 and a couple of assertion checks.
9157
b27cf2b3
MS
91582011-03-05 Michael Snyder <msnyder@vmware.com>
9159
9160 * source.c (add_path): Replace semicolon at end of block.
9161 * dwarf2expr.c (execute_stack_op): Ditto.
9162
5387a0c6
MF
91632011-03-05 Mike Frysinger <vapier@gentoo.org>
9164
9165 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9166 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9167 (bfin-*-*): Likewise.
9168
e3aa49af
MS
91692011-03-05 Michael Snyder <msnyder@vmware.com>
9170
82ae4854
MS
9171 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9172 * mdebugread.c (parse_symbol): Ditto.
9173 * parse.c (parse_exp_in_context): Ditto.
9174 * source.c (add_path): Ditto.
9175 * utils.c (gnu_debuglink_crc32): Ditto.
9176 * varobj.c (variable_language): Ditto.
9177
e3aa49af
MS
9178 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9179
154f592e
MS
91802011-03-04 Michael Snyder <msnyder@vmware.com>
9181
da3ecdc6
MS
9182 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9183
9cc89665
MS
9184 * symfile.c (simple_overlay_update): Check for null return value
9185 from lookup_minimal_symbol.
9186
154f592e
MS
9187 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9188
63ffa6ee
TJB
91892011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9190
9191 * eval.c (parse_and_eval_address_1): Remove function.
9192 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9193 instead of parse_and_eval_address_1.
9194 * value.h (parse_and_eval_address_1): Remove prototype.
9195
a17d146e
MS
91962011-03-04 Michael Snyder <msnyder@vmware.com>
9197
9198 * remote.c (putpkt_binary): Document that case stmt falls through.
9199
1a6a67de
TJB
92002011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9201
9202 * breakpointc (print_it_typical): Move NULL check from here...
9203 (print_bp_stop_message): ... to here.
9204
488919c4
MS
92052011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9206
9207 * breakpoint.c (enable_command): Use break instead of continue,
9208 and fill in a missing break.
9209 (disable_command): Ditto.
9210
1e182ce8
UW
92112011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9212
9213 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9214 (terminal_save_ours): Remove misleading comment.
9215 (inflow_inferior_data_cleanup): Free ttystate.
9216 (inflow_inferior_exit): Likewise.
9217 (copy_terminal_info): Copy ttystate.
9218
9219 * serial.c (serial_copy_tty_state): New function.
9220 * serial.h (serial_copy_tty_state): Add prototype.
9221 (struct serial_ops): Add copy_tty_state callback.
9222 * ser-base.c (ser_base_copy_tty_state): New function.
9223 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9224 * ser-go32.c (dos_copy_tty_state): New function.
9225 (dos_ops): Install copy_tty_state callback.
9226 * ser-mingw.c (_initialize_ser_windows): Likewise.
9227 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9228 * ser-unix.c (hardwire_copy_tty_state): New function.
9229 (_initialize_ser_hardwire): Install it.
9230
b2c5f112
MS
92312011-03-04 Michael Snyder <msnyder@vmware.com>
9232
2abae994
MS
9233 * breakpoint.c (create_breakpoint): Add missing break statement.
9234
7f5936f9
MS
9235 Reverting this patch:
9236 * infcall.c (call_function_by_hand): Add break statements for lint.
9237
b2c5f112
MS
9238 Reverting this patch:
9239 * cli/cli-script.c (script_from_file): Add break for lint.
9240
42b1321c
MS
92412011-03-04 Michael Snyder <msnyder@vmware.com>
9242
9243 * solib.c (reload_shared_libraries_1): Close memory leak.
9244
3e2a0cee
TT
92452011-03-03 Tom Tromey <tromey@redhat.com>
9246
9247 PR gdb/12538:
9248 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9249 DW_STRING is NULL.
9250
58397cb7
MS
92512011-03-03 Michael Snyder <msnyder@vmware.com>
9252
2e3fd767
MS
9253 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9254 fields of struct 'st' to zero.
9255
58397cb7
MS
9256 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9257 sal.pspace before calling set_current_source_symtab_and_line.
9258
ced54c8f
YQ
92592011-03-03 Yao Qi <yao@codesourcery.com>
9260
9261 * Makefile.in (configure-common): Remove. Let Makefile
9262 in dir common to rebuild itself.
9263 (common/Makefile): Likewise.
9264
3351ea09
JB
92652011-03-03 Joel Brobecker <brobecker@adacore.com>
9266
9267 * utils.c (parse_escape): Add i18n markup in error message.
9268
bf9f652a
YQ
92692011-03-03 Yao Qi <yao@codesourcery.com>
9270
9271 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9272 ARM_PC_REGNUM.
9273 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9274 (displaced_write_reg, displaced_read_reg): Likewise.
9275 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9276 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9277 (cleanup_branch): Replace magic number 14 and 15 with
9278 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9279
d42de051
MS
92802011-03-02 Michael Snyder <msnyder@vmware.com>
9281
240f9570
MS
9282 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9283
10dd8b54
MS
9284 * cli/cli-script.c (script_from_file): Add break for lint.
9285
b98bd911
MS
9286 * mdebugread.c (parse_partial_symbols): Fix indent.
9287
3494b66d
MS
9288 * target-descriptions.c (tdesc_gdb_type): No need to call
9289 xstrdup, callee saves a copy.
9290
daac021a
MS
9291 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9292
c38d16a7
MS
9293 * infcall.c (call_function_by_hand): Add break statements for lint.
9294
905b671b
MS
9295 * utils.c (parse_escape): Escape the escape char.
9296
f2eb0bc8 9297 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9298 PyList_Append fails.
9299 (gdbpy_inferiors): Error out if build_inferior_list fails.
9300
8c6a60d1
MS
9301 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9302 a function call.
9303
d42de051
MS
9304 * record.c (record_restore): Move printf to before error return.
9305
4db71c0b
YQ
93062011-03-02 Yao Qi <yao@codesourcery.com>
9307
9308 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9309 is_thumb and insn_size.
9310 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9311 on both ARM and Thumb mode.
9312 (arm_process_displaced_insn): Set is_thumb and insn_size.
9313 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9314 (arm_displaced_step_fixup): Likewise.
9315
a9dc8dcc
MS
93162011-03-01 Michael Snyder <msnyder@vmware.com>
9317
53624a93
MS
9318 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9319
77766669
MS
9320 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9321
62d5b8da
MS
9322 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9323
5e9e105f
MS
9324 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9325
dc19db01
MS
9326 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9327 with xmalloc.
9328
5ce64950
MS
9329 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9330 which shadows function parameter.
9331
a0aa2878
MS
9332 * tracepoint.c (create_tsv_from_upload): Superfluous call
9333 to xstrdup. Callee already calls xstrdup.
9334
e325fb69
MS
9335 * linespec.c (decode_line_1): Remove unnecessary null check.
9336
21cbba77
MS
9337 * tracepoint.c (scope_info): Fix mem leak, remove underused
9338 variable.
9339
63360adc
MS
9340 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9341 superfluous null check.
9342
18ea20ac 9343 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9344 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9345
d014929c
MS
9346 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9347
6e9130cf
MS
9348 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9349 be null.
9350
5f01dbc0
MS
9351 * linespec.c (decode_line_1): Check for null before dereference.
9352
d684ab85
MS
9353 * reverse.c (record_restore): Move null-check to before pointer
9354 dereference.
9355
bfffb7e3
MS
9356 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9357
a9dc8dcc
MS
9358 * objc-lang.c (selectors_info): Add explanitory comment.
9359 (classes_info): Ditto.
9360
478fd957
UW
93612011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9362
9363 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9364 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9365 versions of the trampoline. Handle Thumb vs. ARM addresses.
9366 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9367 (arm_linux_init_abi): Install it.
9368 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9369 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9370
0480cefa
MS
93712011-02-28 Michael Snyder <msnyder@vmware.com>
9372
ac50ab3b
MS
9373 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9374 a little bigger, to avoid possibility of an overflow.
9375
f63fbe86
MS
9376 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9377 buffers a little bigger, to avoid possibility of an overflow.
9378
9e91a352
MS
9379 * coffread.c (coff_getfilename): Add check to avoid overflow.
9380
f2eb0bc8 9381 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9382 avoid overflow.
9383 (classes_info): Error out on too long REGEXP.
9384
098ab512
MS
9385 * infrun.c (handle_inferior_event): Remove unused function call.
9386
bcbd1de9
MS
9387 * fork-child.c (fork_inferior): Remove ifdef'd code and
9388 unused variable.
9389
2e456570
MS
9390 * linux-thread-db.c (attach_thread): Discard unused value.
9391
14571dad
MS
9392 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9393
a9cbf802
MS
9394 * remote.c (remote_get_noisy_reply): Discard unused value.
9395 (remote_vcont_resume): Ditto.
9396 (remote_stop_ns): Ditto.
9397
5715d26e
MS
9398 * linespec.c (decode_objc): Delete unused variable.
9399
4a9bca80
MS
9400 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9401
f47fb265
MS
9402 * dwarf2read.c (add_partial_symbol): Discard unused values.
9403 (read_base_type): Delete unused variable.
9404
e81cff30
MS
9405 * dbxread.c (read_dbx_symtab): Discard unused value.
9406
262acaeb
MS
9407 * eval.c (evaluate_subexp_standard): Delete unused variable,
9408 and discard unused values.
9409
df983543
MS
9410 * infcmd.c (_initialize_infcmd): Discard unused values.
9411
89acf84d
MS
9412 * stabsread.c (rs6000_builtin_type): Missing break statement.
9413
ab8b8aca
MS
9414 * dbxread.c (process_one_symbol): Discard unused value.
9415
6b4511ab
MS
9416 * coffread.c (coff_end_symtab): Delete unused variable.
9417
e8e80198
MS
9418 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9419 (dwarf2_add_typedef): Delete unused variable.
9420 (read_namespace): Ditto.
9421 (dwarf_decode_macros): Ditto.
9422
976aa66e
MS
9423 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9424
5b92b49f
MS
9425 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9426
91e8df85
MS
9427 * p-valprint.c (pascal_val_print): Discard unused value.
9428
899500d6
MS
9429 * utils.c (nquery): Call va_end before return;
9430 (yquery): Ditto.
9431 (query): Ditto.
9432
0480cefa
MS
9433 * proc-service.c (ps_plog): Call va_end before return.
9434
fb6a3ed3
TT
94352011-02-28 Tom Tromey <tromey@redhat.com>
9436
9437 * python/python.c (gdbpy_value_cst): New global.
9438 (_initialize_python): Initialize it.
9439 * python/python-internal.h (gdbpy_value_cst): Declare.
9440 * python/py-value.c (convert_value_from_python): Use
9441 gdbpy_value_cst.
9442
c05202a1
MS
94432011-02-28 Michael Snyder <msnyder@vmware.com>
9444
e463f587
MS
9445 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9446
c38eea1a
MS
9447 * breakpoint.c (catch_syscall_completer): Free malloced list.
9448
3ef09ab5
MS
9449 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9450
8f9a01ee
MS
9451 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9452 (lval_func_check_synthetic_pointer): Ditto.
9453 (lval_func_free_closure): Fix use-after-free.
c05202a1 9454
477d0d57
TT
94552011-02-28 Tom Tromey <tromey@redhat.com>
9456
9457 * psymtab.c (expand_partial_symbol_tables): Use
9458 ALL_OBJFILE_PSYMTABS.
9459
20937029
JK
94602011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9461
9462 * objc-lang.c (selectors_info): Error on too long REGEXP.
9463
907b7f4f
MS
94642011-02-28 Michael Snyder <msnyder@vmware.com>
9465
92e96192
MS
9466 * python/py-param.c (set_parameter_value): Add missing
9467 break statement.
9468
907b7f4f
MS
9469 * linux-record.c (record_linux_system_call): Add missing
9470 break statement.
9471
12c5a436
UW
94722011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9473
9474 * breakpoint.c (print_one_breakpoint_location): Remove unused
9475 argument PRINT_ADDRESS_BITS. Update callers.
9476 (print_one_breakpoint): Likewise.
9477
170b53b2
UW
94782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9479
9480 * breakpoint.c (wrap_indent_at_field): New function.
9481 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9482 Allocate ui_stream locally instead of using STB argument.
9483 (print_one_breakpoint_location): Update call.
9484 * ui-out.c (ui_out_query_field): New function.
9485 * ui-out.h (ui_out_query_field): Add prototype.
9486
8ab1f94d
JB
94872011-02-28 Joel Brobecker <brobecker@adacore.com>
9488
9489 From Michael Snyder <msnyder@vmware.com>
9490 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9491
7d488639
MS
94922011-02-27 Michael Snyder <msnyder@vmware.com>
9493
ae179fba
MS
9494 * objc-lang.c (selectors_info): Prevent string overrun.
9495
086dbf66
MS
9496 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9497 error in strncpy.
9498
f2eb0bc8 9499 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9500 outer scope.
9501
7d488639
MS
9502 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9503 param with a local variable of the same name.
9504
3bd0f5ef
MS
95052011-02-27 Michael Snyder <msnyder@vmware.com>
9506
9507 * value.c (value_from_history_ref): New function.
9508 * value.h (value_from_history_ref): Export.
9509 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9510 to parse value history references.
9511 * cli/cli-utils.h (get_number_trailer): Update comment.
9512
95132011-02-27 Michael Snyder <msnyder@vmware.com>
9514
9515 * inferior.c (detach_inferior_command): Use get_number_or_range.
9516 (kill_inferior_command): Ditto.
9517 (remove_inferior_command): Ditto.
9518 (initialize_inferiors): Make command names plural.
9519 Update help strings.
9520
766062f6
MS
95212011-02-27 Michael Snyder <msnyder@vmware.com>
9522
9523 * darwin-nat-info.c: Fix comment typo.
9524 * dwarf2expr.h: Ditto.
9525 * fbsd-nat.c: Ditto.
9526 * fbsd-nat.h: Ditto.
9527 * frame-unwind.h: Ditto.
9528 * frame.h: Ditto.
9529 * hppa-hpux-tdep.c: Ditto.
9530 * i386-linux-nat.c: Ditto.
9531 * linux-nat.c: Ditto.
9532 * nbsd-nat.c: Ditto.
9533 * nbsd-nat.h: Ditto.
9534 * ppc-linux-tdep.c: Ditto.
9535 * serial.c: Ditto.
9536 * ui-file.h: Ditto.
9537 * tui/tui-winsource.c: Ditto.
9538
f2c4ead5
MS
95392011-02-26 Michael Snyder <msnyder@vmware.com>
9540
86b887df
MS
9541 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9542
66fd3b1e
MS
9543 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9544
8c814cdd
MS
9545 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9546 with a local variable of the same name.
9547
6d5e094a 9548 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9549 param with a local variable of the same name.
6d5e094a 9550 (i387_supply_xsave): Ditto.
e5b3d7d6 9551
5eee517d
MS
9552 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9553 that it does not shadow a function parameter.
9554
8fbf6b93
MS
9555 * i386-nat.c (i386_length_and_rw_bits): Document that case
9556 statement is meant to fall through.
9557
cb969d61
MS
9558 * expprint.c (dump_subexp_body_standard): Document that case
9559 statement is meant to fall through.
9560
f2c4ead5
MS
9561 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9562 dead if statement. Condition can't be false.
9563
b021a221
MS
95642011-02-25 Michael Snyder <msnyder@vmware.com>
9565
9566 * arm-tdep.c: Fix typos in comments.
9567 * bsd-uthread.c: Ditto.
9568 * completer.c: Ditto.
9569 * corelow.c: Ditto.
9570 * cp-namespace.c: Ditto.
9571 * cp-support.c: Ditto.
9572 * cris-tdep.c: Ditto.
9573 * dbxread.c: Ditto.
9574 * dwarf2read.c: Ditto.
9575 * frame.h: Ditto.
9576 * gdbtypes.h: Ditto.
9577 * inferior.h: Ditto.
9578 * mdebugread.c: Ditto.
9579 * mips-tdep.c: Ditto.
9580 * ppc-linux-nat.c: Ditto.
9581 * ppc-linux-tdep.c: Ditto.
9582 * printcmd.c: Ditto.
9583 * sol-thread.c: Ditto.
9584 * solib-frv.c: Ditto.
9585 * solist.h: Ditto.
9586 * sparc64-tdep.c: Ditto.
9587 * spu-tdep.c: Ditto.
9588 * stabsread.c: Ditto.
9589 * symfile.c: Ditto.
9590 * valops.c: Ditto.
9591 * varobj.c: Ditto.
9592 * vax-nat.c: Ditto.
9593 * python/py-block.c: Ditto.
9594 * python/py-symbol.c: Ditto.
9595 * python/py-symtab.c: Ditto.
9596 * python/py-value.c: Ditto.
9597 * tui/tui-win.c: Ditto.
9598
c82c0b55
MS
95992011-02-25 Michael Snyder <msnyder@vmware.com>
9600
9601 * inferior.c (print_inferior): Accept a string instead of an int
9602 for requested_inferiors, and use get_number_or_range to parse it.
9603 (info_inferiors_command): Pass args string to print_inferior.
9604 (initialize_inferiors): Change help string for info inferiors.
9605 * inferior.h (print_inferior): Export prototype change.
9606
ee00cd23
TT
96072011-02-25 Tom Tromey <tromey@redhat.com>
9608
9609 * common/ax.def (invalid2): Set to 0x31.
9610
0502ed8c
JK
96112011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9612
9613 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9614 L and plongest.
9615 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9616 use L and plongest.
9617 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9618
2c9de912
MS
96192011-02-24 Michael Snyder <msnyder@vmware.com>
9620
9621 * Makefile.in (clean): Make clean should remove generated files
9622 observer.h and observer.inc.
9623
a04b0428
JB
96242011-02-24 Joel Brobecker <brobecker@adacore.com>
9625
9626 Revert the following patch (not approved yet):
9627 2011-02-21 Hui Zhu <teawater@gmail.com>
9628 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9629 * ax-gdb.c (gen_printf_expr_callback): New function.
9630 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9631 * ax-general.c (ax_memcpy): New function.
9632 (ax_print): Handle "printf".
9633 (ax_reqs): Ditto.
9634 * ax.h (ax_memcpy): Forward declare.
9635 * common/ax.def (invalid2): Removed.
9636 (printf): New entry.
9637 * printcmd.c (printcmd.h): New include.
9638 (string_printf): New function.
9639 (ui_printf): Removed.
9640 (printf_command): Remove static. Call string_printf.
9641 (eval_command): Call string_printf.
9642 * printcmd.h: New file.
9643 * tracepoint.c (validate_actionline,
9644 encode_actions_1): handle printf_command.
9645
2b52013f
TT
96462011-02-23 Tom Tromey <tromey@redhat.com>
9647
9648 * ax-general.c (ax_pick): Add missing newline.
9649
e5a67952
MS
96502011-02-23 Michael Snyder <msnyder@vmware.com>
9651
9652 * breakpoint.c (breakpoint_1): Change first argument from an int
9653 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9654 breakpoints rather than just one. Use new function
e5a67952
MS
9655 'number_is_in_list' to implement.
9656 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9657 (watchpoints_info): Ditto.
9658 (tracepoints_info): Ditto.
9659 (maintenance_info_breakpoints): Ditto.
9660 (_initialize_breakpoint): Update help strings to reflect the fact
9661 that these functions can now take more than one argument.
9662 * cli/cli-utils.c (number_is_in_list): New function.
9663 * cli/cli-utils.h (number_is_in_list): Export.
9664
96652011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9666
9667 * memattr.c (mem_enable_command): Use get_number_or_range.
9668 (mem_disable_command): Ditto.
9669 (mem_delete_command): Ditto.
9670 (_initialize_mem): Tweak usage message to reflect multiple
9671 arguments.
9672
6e6fbe60
DE
96732011-02-22 Doug Evans <dje@google.com>
9674
9675 Add gdb.lookup_global_symbol python function.
9676 * NEWS: Add entry.
9677 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9678 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9679 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9680
79b97fa8
TT
96812011-02-22 Tom Tromey <tromey@redhat.com>
9682
9683 * language.c (language_class_name_from_physname): Rename
9684 'curr_language' argument to 'lang'; use in body.
9685
298f437a
MS
96862011-02-22 Michael Snyder <msnyder@vmware.com>
9687
9688 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9689
b7ea3126
PA
96902011-02-22 Pedro Alves <pedro@codesourcery.com>
9691
9692 * frame-unwind.h: Fix comment to mention the this frame, not the
9693 next.
9694
58ee6d60
TT
96952011-02-22 Tom Tromey <tromey@redhat.com>
9696
9697 * symfile.c (auto_solib_limit): Remove.
9698 * symfile.h (auto_solib_limit): Remove.
9699
36238dbc
JB
97002011-02-22 Joel Brobecker <brobecker@adacore.com>
9701
9702 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9703
aea5b279
MS
97042011-02-21 Michael Snyder <msnyder@vmware.com>
9705
9706 * gdbthread.h (print_thread_info): Change prototype.
9707 * thread.c (print_thread_info): Accept char* instead of int for
9708 requested_threads argument. Use new function number_is_in_list
9709 to determine which threads to list.
9710 (info_threads_command): Pass char* to print_thread_info.
9711 * cli/cli-utils.c (number_is_in_list): New function.
9712 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9713 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9714 print_thread_info.
9715 (print_one_inferior): Ditto.
9716 (mi_cmd_list_thread_groups): Ditto.
9717
8caa75ee
JK
97182011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * common/Makefile.in (CFLAGS): New.
9721 (COMPILE): Add $(CFLAGS).
9722
ea666128
TT
97232011-02-21 Tom Tromey <tromey@redhat.com>
9724
9725 * breakpoint.c (catch_syscall_command_1): Fix typo.
9726
e9cafbcc
TT
97272011-02-21 Tom Tromey <tromey@redhat.com>
9728
9729 * reverse.c: Include cli-utils.h.
9730 * printcmd.c: Include cli-utils.h.
9731 (string_printf): Use skip_spaces.
9732 * cli/cli-utils.h: New file.
9733 * cli/cli-utils.c: New file.
9734 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9735 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9736 * breakpoint.h (get_number, get_number_or_range): Move to
9737 cli-utils.h.
9738 * breakpoint.c: Include cli-utils.h.
9739 (get_number_trailer, get_number, get_number_or_range)
9740 (ep_skip_leading_whitespace): Move to cli-utils.c.
9741 (create_breakpoint_sal, find_condition_and_thread)
9742 (decode_static_tracepoint_spec, watch_command_1)
9743 (watch_maybe_just_location, ep_parse_optional_if_clause)
9744 (catch_fork_command_1, catch_exec_command_1)
9745 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9746 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9747 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9748 (HFILES_NO_SRCDIR): Add cli-utils.h.
9749 (cli-utils.o): New target.
9750
f67fd822
PM
97512011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9752
9753 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9754 before calling discard_all_inferiors.
9755
c9def01d
UW
97562011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9757
9758 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9759 (struct builtin_opencl_type): Remove.
9760 (builtin_opencl_type): Change return type to "struct type **".
9761 (lookup_opencl_vector_type): Update caller.
9762 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9763 (build_opencl_types): Install plain array of "struct type *"
9764 instead of "struct builtin_opencl_type".
9765
e3039479
UW
97662011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9767 Ulrich Weigand <uweigand@de.ibm.com>
9768
9769 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9770 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9771 (struct arm_linux_hwbp_cap): New type.
9772 (arm_linux_get_hwbp_cap): New function.
9773 (arm_linux_get_hw_breakpoint_count): Likewise.
9774 (arm_linux_get_hw_watchpoint_count): Likewise.
9775 (arm_linux_can_use_hw_breakpoint): Likewise.
9776 (arm_hwbp_type): New type.
9777 (arm_hwbp_control_t): Likewise.
9778 (struct arm_linux_hw_breakpoint): Likewise.
9779 (struct arm_linux_thread_points): Likewise.
9780 (arm_threads): New global variable.
9781 (arm_linux_find_breakpoints_by_tid): New function.
9782 (arm_hwbp_control_initialize): Likewise.
9783 (arm_hwbp_control_is_enabled): Likewise.
9784 (arm_hwbp_control_disable): Likewise.
9785 (arm_linux_hw_breakpoint_initialize): Likewise.
9786 (arm_linux_get_hwbp_type): Likewise.
9787 (arm_linux_hw_watchpoint_initialize): Likewise.
9788 (arm_linux_hw_breakpoint_equal): Likewise.
9789 (arm_linux_insert_hw_breakpoint1): Likewise.
9790 (arm_linux_remove_hw_breakpoint1): Likewise.
9791 (arm_linux_insert_hw_breakpoint): Likewise.
9792 (arm_linux_remove_hw_breakpoint): Likewise.
9793 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9794 (arm_linux_insert_watchpoint): Likewise.
9795 (arm_linux_remove_watchpoint): Likewise.
9796 (arm_linux_stopped_data_address): Likewise.
9797 (arm_linux_stopped_by_watchpoint): Likewise.
9798 (arm_linux_watchpoint_addr_within_range): Likewise.
9799 (arm_linux_new_thread): Likewise.
9800 (arm_linux_thread_exit): Likewise.
9801 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9802 related target callbacks. Register arm_linux_new_thread and
9803 arm_linux_thread_exit.
9804 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9805 * arm-tdep.c (arm_pc_is_thumb): Make global.
9806 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9807
b5db5dfc
UW
98082011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9809
9810 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9811 per-frame locations while within a function epilogue.
9812
e25b2cfa
PM
98132011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9814
9815 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9816 to GNU coding standards.
9817
4af53f97
PM
98182011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9819
9820 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9821 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9822 (ser_windows_close): Only call CancelIo if function exists.
9823 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9824 to check for existence of CancelIo function in kernel32 DLL.
9825
d0e92d82
HZ
98262011-02-21 Hui Zhu <teawater@gmail.com>
9827
9828 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9829 * ax-gdb.c (gen_printf_expr_callback): New function.
9830 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9831 * ax-general.c (ax_memcpy): New function.
9832 (ax_print): Handle "printf".
9833 (ax_reqs): Ditto.
9834 * ax.h (ax_memcpy): Forward declare.
9835 * common/ax.def (invalid2): Removed.
9836 (printf): New entry.
9837 * printcmd.c (printcmd.h): New include.
9838 (string_printf): New function.
9839 (ui_printf): Removed.
9840 (printf_command): Remove static. Call string_printf.
9841 (eval_command): Call string_printf.
9842 * printcmd.h: New file.
9843 * tracepoint.c (validate_actionline,
9844 encode_actions_1): handle printf_command.
9845
7d357efd
MS
98462011-02-19 Michael Snyder <msnyder@vmware.com>
9847
9848 * reverse.c (delete_one_bookmark): Argument is now bookmark
9849 id rather than pointer to bookmark struct.
9850 (delete_bookmark_command): Use get_number_or_range.
9851 (goto_bookmark_command): Parse with get_number instead of strtoul.
9852 (bookmark_1): New function. Print info for one bookmark.
9853 (bookmarks_info): Use get_number_or_range and bookmark_1.
9854
7a45ebd7
MS
98552011-02-18 Michael Snyder <msnyder@vmware.com>
9856
f2eb0bc8 9857 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9858 get_number_or_range.
65ebfb52 9859 (thread_apply_command): Ditto.
7a45ebd7 9860
94d5e490
TT
98612011-02-18 Tom Tromey <tromey@redhat.com>
9862
9863 * common/ax.def: New file.
9864 * ax.h (enum agent_op): Use ax.def.
9865 * ax-general.c (aop_map): Use ax.def.
9866
c7f96d2b
TT
98672011-02-18 Tom Tromey <tromey@redhat.com>
9868
9869 * ax-general.c (aop_map): Add pick and rot.
9870 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9871 <DW_OP_rot>: Implement.
9872 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9873 (ax_pick): Declare.
9874 * ax-general.c (ax_pick): New function.
9875
66694b75
TT
98762011-02-18 Tom Tromey <tromey@redhat.com>
9877
9878 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9879
eeaafae2
JK
98802011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9881 Tom Tromey <tromey@redhat.com>
9882
9883 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9884 make_symbol_overload_list_block with NULL BLOCK.
9885 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9886
3c3fe74c
PA
98872011-02-18 Pedro Alves <pedro@codesourcery.com>
9888
9889 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9890 * breakpoint.h (get_number_or_range): Declare.
9891 * printcmd.c (ALL_DISPLAYS): Declare.
9892 (delete_display): Reimplement taking a display pointer.
9893 (undisplay_command): Accept a range of displays to delete, using
9894 get_number_or_range.
9895
13163d80
PM
98962011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9897
9898 * c-valprint.c (c_val_print): Add embedded_offset to address
9899 for arrays of unspecified length.
9900 * p-valprint.c (pascal_val_print): Likewise.
9901
b434a28f
YQ
99022011-02-18 Yao Qi <yao@codesourcery.com>
9903
9904 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9905 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9906 (thumb_process_displaced_insn): New.
9907 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9908 call to arm_process_displaced_insn.
9909 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9910
9f6f94ff
TT
99112011-02-17 Tom Tromey <tromey@redhat.com>
9912
9913 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9914 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9915 compile_dwarf_to_ax. No longer static. Call
9916 dwarf2_compile_cfa_to_ax.
9917 (locexpr_tracepoint_var_ref): Update.
9918 (loclist_tracepoint_var_ref): Update.
9919 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9920 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9921 argument; add 'gdbarch' and 'pc'.
9922 (dwarf2_compile_cfa_to_ax): New function.
9923 (dwarf2_frame_cache): Update.
9924
e67ad678
JB
99252011-02-17 Joel Brobecker <brobecker@adacore.com>
9926
9927 * ada-lang.c (ada_type_of_array): Fix the size of the array
9928 in the case of an unconstrained packed array.
9929
946ebb0d
YQ
99302011-02-17 Yao Qi <yao@codesourcery.com>
9931
9932 * common/Makefile.in: Add more targets for make.
9933
1ba1b353
TT
99342011-02-16 Tom Tromey <tromey@redhat.com>
9935
9936 * dwarf2loc.c (unimplemented): Fix typo.
9937
b1bfef65
TT
99382011-02-16 Tom Tromey <tromey@redhat.com>
9939
9940 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9941 (compile_dwarf_to_ax) <default>: Use unimplemented.
9942 <DW_OP_deref>: Update.
9943 (disassemble_dwarf_expression): Update.
9944 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9945 (decode_locdesc): Update.
9946 * dwarf2expr.h (dwarf_stack_op_name): Update.
9947
5f1e6f19
TT
99482011-02-16 Tom Tromey <tromey@redhat.com>
9949
9950 * ax.h (struct aop_map) <name>: Now const.
9951
a0c78a73
PA
99522011-02-16 Tom Tromey <tromey@redhat.com>
9953
9954 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9955 than axs_rvalue.
9956
946ebb0d 99572011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9958
9959 * infrun.c (get_displaced_step_closure_by_addr): New.
9960 * inferior.h: Declare it.
9961 * arm-tdep.c: (arm_pc_is_thumb): Call
9962 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9963 returns non-NULL.
9964
08807d5a
PA
99652011-02-16 Pedro Alves <pedro@codesourcery.com>
9966 Jan Kratochvil <jan.kratochvil@redhat.com>
9967
9968 gdb/
9969 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9970
29976f3f
PA
99712011-02-16 Pedro Alves <pedro@codesourcery.com>
9972 Jan Kratochvil <jan.kratochvil@redhat.com>
9973
9974 * value.c (value_contents_copy_raw): Extend describing comment.
9975 Assert that the destination contents we're overwriting are wholly
9976 available.
fb68ae73 9977 (value_contents_copy): Extend describing comment.
29976f3f 9978
cd24cfaa
PA
99792011-02-16 Pedro Alves <pedro@codesourcery.com>
9980 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 * value.c (value_available_contents_eq): Remove redundant local
9983 variables. Fix available contents comparision.
9984 * value.h (value_available_contents_eq): Extend describing
9985 comment.
9986
60bbf338
YQ
99872011-02-16 Yao Qi <yao@codesourcery.com>
9988
9989 * thread.c (info_threads_command): Add missing i18n markup and remove
9990 trailing newline.
9991
17450429
PP
99922011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9993
9994 * breakpoint.c (longjmp_names): New variable.
9995 (struct breakpoint_objfile_data): New type.
9996 (breakpoint_objfile_key): New variable.
9997 (msym_not_found): New variable.
9998 (msym_not_found_p): New predicate.
9999 (get_breakpoint_objfile_data): New function.
10000 (create_overlay_event_breakpoint): Check per-objfile cache for
10001 symbols first.
10002 (create_longjmp_master_breakpoint): Likewise.
10003 (create_std_terminate_master_breakpoint): Likewise.
10004 (create_exception_master_breakpoint): Likewise.
10005 (_initialize_breakpoint): Register per-objfile data key.
10006
af02033e
PP
100072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10008
10009 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10010 parameter value.
10011 (create_longjmp_master_breakpoint): Loop over longjmp names.
10012 (create_std_terminate_master_breakpoint): Const-propagate parameter
10013 value.
10014 (update_breakpoints_after_exec): Adjust.
10015 (breakpoint_re_set): Adjust.
10016
60f98dde
MS
100172011-02-15 Michael Snyder <msnyder@vmware.com>
10018
cdf99611
MS
10019 * thread.c (info_threads_command): Process arg as thread id,
10020 or list of thread ids.
10021 (thread_find_command): New command.
10022 (_initialize_thread): Document argument for info threads.
10023 Document 'thread find' command.
10024 * NEWS: Document new command "thread find".
60f98dde 10025
0feedb2c
JK
100262011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10029 * aclocal.m4: Regenerated with aclocal-1.11.1.
10030 * common/configure: Regenerate with autoconf-2.64.
10031
648cd113
KW
100322011-02-15 Ken Werner <ken.werner@de.ibm.com>
10033
10034 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10035 bool data type to a size of one byte.
10036
5657161f
PA
100372011-02-15 Pedro Alves <pedro@codesourcery.com>
10038 Jan Kratochvil <jan.kratochvil@redhat.com>
10039
10040 * target.c (memory_xfer_live_readonly_partial): Document where to
10041 look for interface description.
10042
494e194e
YQ
100432011-02-15 Yao Qi <yao@codesourcery.com>
10044
10045 PR tdep/12352
10046 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10047 order to store PC value on stack instead of text section.
10048
d9492458
TJB
100492011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10050
10051 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10052 the EFP register set size.
10053 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10054 data from the VMX register.
10055 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10056 and write data from/to the VMX register.
10057
cdf99611
MS
100582011-02-14 Michael Snyder <msnyder@vmware.com>
10059
10060 * command.h (enum command_class): New class 'no_set_class', for
10061 "show" commands without a corresponding "set" command.
10062 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10063 * copying.c (_initialize_copying): Ditto for "show copying" and
10064 "show warranty".
10065 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10066 "show version".
10067 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10068 which there is no corresponding "set" command (eg. "show copying").
10069
424447ee
PA
100702011-02-14 Pedro Alves <pedro@codesourcery.com>
10071 Jan Kratochvil <jan.kratochvil@redhat.com>
10072
10073 * exec.c (section_table_available_memory): Change `len' parameter
10074 type to ULONGEST.
10075 * exec.h (section_table_available_memory): Ditto.
10076 * value.h (read_value_memory): Rename the `offset' parameter to
10077 `embedded_offset'.
10078
c0f61f9c 100792011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10080 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10081
10082 * memrange.c (compare_mem_ranges): Mention sort order in
10083 describing comment.
10084 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10085 * tracepoint.c (traceframe_available_memory): Extend comment to
10086 mention what happens to RESULT when the target does not support
10087 the query.
10088
6bfc80c7
PA
100892011-02-14 Pedro Alves <pedro@codesourcery.com>
10090 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10093 range.
10094
e7303042
PA
100952011-02-14 Pedro Alves <pedro@codesourcery.com>
10096
10097 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10098 No longer handle NULL values.
10099
8af8e3bc
PA
101002011-02-14 Pedro Alves <pedro@codesourcery.com>
10101
10102 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10103 * value.c: Include "exceptions.h".
10104 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10105 generic error.
10106 * cp-abi.c: Include gdb_assert.h.
10107 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10108 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10109 errors.
10110 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10111 parameters. No longer returns -1 on error.
10112 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10113 `val' parameters.
10114 * cp-valprint.c: Include exceptions.h.
10115 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10116 the baseclass_offset. Handle unavailable base classes. Use
10117 val_print_invalid_address.
10118 * p-valprint.c: Include exceptions.h.
10119 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10120 when fetching the baseclass_offset. No longer expect
10121 baseclass_offset returning -1. Handle unavailable base classes.
10122 Use val_print_invalid_address.
10123 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10124 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10125 `embedded_offset' and `val' parameters. Adjust.
10126 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10127 parameter, and change its type to gdb_byte pointer. Add
10128 `embedded_offset' and `val' parameters. Adjust. No longer expect
10129 baseclass_offset returning -1.
10130 (value_dynamic_cast): Use value_contents_for_printing rather than
10131 value_contents. Adjust.
10132 (search_struct_field): No longer expect baseclass_offset returning
10133 -1.
10134 (search_struct_method): If reading memory from the target is
10135 necessary, wrap it in a new value to pass to baseclass_offset. No
10136 longer expect baseclass_offset returning -1.
10137 (find_method_list): No longer expect baseclass_offset returning
10138 -1. Use value_contents_for_printing rather than value_contents.
10139 * valprint.c (val_print_invalid_address): New function.
10140 * valprint.h (val_print_invalid_address): Declare.
10141 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10142 and `val' parameters. No longer expect baseclass_offset returning
10143 -1. Adjust.
10144 * gnu-v2-abi.c: Include "exceptions.h".
10145 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10146 parameters. Handle unavailable memory. Recurse through
10147 gnuv2_baseclass_offset directly, rather than through
10148 baseclass_offset. No longer returns -1 on not found, instead
10149 throw an error.
10150 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10151 `val' parameters. Adjust.
10152
1b28d0b3
PA
101532011-02-14 Pedro Alves <pedro@codesourcery.com>
10154
10155 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10156 almost but not quite adjacent.
10157
ec0a52e1
PA
101582011-02-14 Pedro Alves <pedro@codesourcery.com>
10159
10160 * value.h (value_entirely_available): Declare.
10161 * value.c (value_entirely_available): New function.
10162 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10163 real type if the pointer is unavailable.
10164
24e6bcee
PA
101652011-02-14 Pedro Alves <pedro@codesourcery.com>
10166
10167 * valops.c (value_repeat): Use read_value_memory instead of
10168 read_memory.
10169
39d37385
PA
101702011-02-14 Pedro Alves <pedro@codesourcery.com>
10171
10172 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10173 * value.c (value_contents_copy_raw, value_contents_copy): New
10174 functions.
10175 (value_primitive_field): Use value_contents_copy_raw instead of
10176 memcpy.
10177 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10178 memcpy.
10179 (value_array, value_slice): Ditto.
10180 * valarith.c (value_subscripted_rvalue): Use
10181 value_contents_copy_raw instead of memcpy.
10182
a3d34bf4
PA
101832011-02-14 Pedro Alves <pedro@codesourcery.com>
10184
10185 <unavailable> references.
10186
10187 * valops.c (get_value_at): Use value_from_contents_and_address,
10188 avoiding read_memory.
10189
9fc6d940
PA
101902011-02-14 Pedro Alves <pedro@codesourcery.com>
10191
10192 * c-valprint.c (c_val_print): Print a string with unavailable
10193 contents as an array.
10194
5467c6c8
PA
101952011-02-14 Pedro Alves <pedro@codesourcery.com>
10196
10197 * value.h (unpack_bits_as_long): Delete declaration.
10198 (unpack_value_bits_as_long): Declare.
10199 (unpack_value_field_as_long): Declare.
10200 (value_field_bitfield): Declare.
10201 * value.c (unpack_bits_as_long): Rename to...
10202 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10203 value parameters. Return the extracted result in a new output
10204 parameter. If the value contents are unavailable, return false,
10205 otherwise return true.
10206 (unpack_value_bits_as_long): New.
10207 (unpack_field_as_long): Rename to...
10208 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10209 Add embedded_offset and value parameters. Return the extracted
10210 result in a new output parameter. If the value contents are
10211 unavailable, return false, otherwise return true.
10212 (unpack_value_field_as_long): New.
10213 (unpack_field_as_long_1): New.
10214 (unpack_field_as_long): Reimplement as wrapper around
10215 unpack_value_field_as_long_1.
10216 (value_field_bitfield): New function.
10217 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10218 unpack_value_bits_as_long. Mark the value as unavailable, if it
10219 is unavailable.
10220 * jv-valprint.c (java_print_value_fields): Use
10221 value_field_bitfield.
10222 * p-valprint.c (pascal_object_print_value_fields): Use
10223 value_field_bitfield.
10224 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10225
3158c6ed
PA
102262011-02-14 Pedro Alves <pedro@codesourcery.com>
10227
10228 * value.c (get_internalvar_integer): Also return the int value of
10229 TYPE_CODE_INT INTERNALVAR_VALUE values.
10230 (set_internalvar): Don't special case TYPE_CODE_INT.
10231
9fbdca0d
PA
102322011-02-14 Pedro Alves <pedro@codesourcery.com>
10233
10234 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10235 INTERNALVAR_POINTER.
10236 <pointer>: Delete.
10237 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10238 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10239 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10240
c8c1c22f
PA
102412011-02-14 Pedro Alves <pedro@codesourcery.com>
10242
10243 * value.h (value_available_contents_eq): Declare.
10244 * value.c (find_first_range_overlap): New function.
10245 (value_available_contents_eq): New function.
10246 * valprint.c (val_print_array_elements): Use
10247 value_available_contents_eq.
10248 * ada-valprint.c (val_print_packed_array_elements): Use
10249 value_available_contents_eq.
10250 * jv-valprint.c (java_value_print): Use
10251 value_available_contents_eq.
10252
e6e4e701
PA
102532011-02-14 Pedro Alves <pedro@codesourcery.com>
10254
10255 * target.c (target_read_live_memory): New function.
10256 (memory_xfer_live_readonly_partial): New.
10257 (memory_xfer_partial): If reading from a traceframe, fallback to
10258 reading unavailable read-only memory from read-only regions of
10259 live target memory.
10260 * tracepoint.c (disconnect_tracing): Adjust.
10261 (set_current_traceframe): New, factored out from
10262 set_traceframe_number.
10263 (set_traceframe_number): Reimplement to only change the traceframe
10264 number on the GDB side.
10265 (do_restore_current_traceframe_cleanup): Adjust.
10266 (make_cleanup_restore_traceframe_number): New.
10267 (cur_traceframe_number): New global.
10268 (tfile_open): Set cur_traceframe_number to no traceframe.
10269 (set_tfile_traceframe): New function.
10270 (tfile_trace_find): If looking up a traceframe using any method
10271 other than by number, make sure the current tfile traceframe
10272 matches gdb's current traceframe. Update the current tfile
10273 traceframe if the lookup succeeded.
10274 (tfile_fetch_registers, tfile_xfer_partial)
10275 (tfile_get_trace_state_variable_value): Make sure the remote
10276 traceframe matches gdb's current traceframe.
10277 * remote.c (remote_traceframe_number): New global.
10278 (remote_open_1): Set it to -1.
10279 (set_remote_traceframe): New function.
10280 (remote_fetch_registers, remote_store_registers)
10281 (remote_xfer_memory, remote_xfer_partial)
10282 (remote_get_trace_state_variable_value): Make sure the remote
10283 traceframe matches gdb's current traceframe.
10284 (remote_trace_find): If looking up a traceframe using any method
10285 other than by number, make sure the current remote traceframe
10286 matches gdb's current traceframe. Update the current remote
10287 traceframe if the lookup succeeded.
10288 * infrun.c (fetch_inferior_event): Adjust.
10289 * tracepoint.h (set_current_traceframe): Declare.
10290 (get_traceframe_number, set_traceframe_number): Add describing
10291 comments.
10292
e6ca34fc
PA
102932011-02-14 Pedro Alves <pedro@codesourcery.com>
10294
10295 Mark pieces of values as unavailable if the corresponding memory
10296 is unavailable.
10297
10298 * valops.c: Include tracepoint.h.
10299 (value_fetch_lazy): Use read_value_memory.
10300 (read_value_memory): New.
10301 * value.h (read_value_memory): Declare.
10302 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10303 * exec.c (section_table_available_memory): New function.
10304 * exec.h (section_table_available_memory): Declare.
10305
2a7498d8
PA
103062011-02-14 Pedro Alves <pedro@codesourcery.com>
10307
10308 * Makefile.in (SFILES): Add memrange.c.
10309 (HFILES_NO_SRCDIR): Add memrange.h.
10310 (COMMON_OBS): Add memrange.o.
10311 * memrange.c: New file.
10312 * memrange.h: New file.
10313 * tracepoint.c: Include memrange.h.
10314 (struct mem_range): Delete.
10315 (mem_range_s): Delete.
10316 (traceframe_available_memory): New function.
10317 * tracepoint.h (traceframe_available_memory): Declare.
10318
b3b9301e
PA
103192011-02-14 Pedro Alves <pedro@codesourcery.com>
10320
10321 * target.h (struct traceframe_info): Forward declare.
10322 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10323 (struct target_ops) <to_traceframe_info>: New field.
10324 (target_traceframe_info): New.
10325 * target.c (update_current_target): Inherit and default
10326 to_traceframe_info.
10327 * remote.c (PACKET_qXfer_traceframe_info): New.
10328 (remote_protocol_features): Register qXfer:traceframe-info:read.
10329 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10330 (remote_traceframe_info): New.
10331 (init_remote_ops): Install it.
10332 (_initialize_remote): Install "set/show remote traceframe-info"
10333 commands.
10334 * tracepoint.h (parse_traceframe_info): Declare.
10335 * tracepoint.c (struct mem_range): New.
10336 (mem_range_s): New typedef.
10337 (struct traceframe_info): New.
10338 (traceframe_info): New global.
10339 (free_traceframe_info): New function.
10340 (clear_traceframe_info): New function.
10341 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10342 info.
10343 (build_traceframe_info): New function.
10344 (tfile_traceframe_info): New function.
10345 (init_tfile_ops): Install tfile_traceframe_info.
10346 (traceframe_info_start_memory, free_result): New functions.
10347 (memory_attributes, traceframe_info_elements): New globals.
10348 (parse_traceframe_info, get_traceframe_info): New functions.
10349 * features/traceframe-info.dtd: New file.
10350 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10351
4e07d55f
PA
103522011-02-14 Pedro Alves <pedro@codesourcery.com>
10353
10354 Base support for <unavailable> value contents.
10355
4e07d55f
PA
10356 * value.h (value_bytes_available): Declare.
10357 (mark_value_bytes_unavailable): Declare.
10358 * value.c (struct range): New struct.
10359 (range_s): New typedef.
10360 (ranges_overlap): New function.
10361 (range_lessthan): New function.
10362 (ranges_contain_p): New function.
10363 (struct value) <unavailable>: New field.
10364 (value_bytes_available): New function.
10365 (mark_value_bytes_unavailable): New function.
10366 (require_not_optimized_out): Constify parameter.
10367 (require_available): New function.
10368 (value_contents_all, value_contents): Require all bytes be
10369 available.
10370 (value_free): Free `unavailable'.
10371 (value_copy): Copy `unavailable'.
10372 * valprint.h (val_print_unavailable): Declare.
10373 * valprint.c (valprint_check_validity): Rename `offset' parameter
10374 to `embedded_offset'. If printing a scalar, check whether the
10375 value chunk is available.
10376 (val_print_unavailable): New.
10377 (val_print_scalar_formatted): Check whether the value is
10378 available.
10379 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10380 pretty-printing unavailable values.
10381
bc9a5551
JK
103822011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10383
10384 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10385 * c-typeprint.c (c_type_print_args): Update the function comment. New
10386 variable param_type, initialize it. Remove const/volatile qualifiers
10387 for language_cplus and !show_artificial. Use param_type.
10388
93b55aa1
JK
103892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
10391 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10392 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10393 * symtab.h (struct symtab) <next>: Comment extension.
10394
181d9476
YQ
103952011-02-12 Yao Qi <yao@codesourcery.com>
10396
10397 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10398
b708a5c7
JK
103992011-02-11 Yao Qi <yao@codesourcery.com>
10400
10401 * common/Makefile.in: Add copyright header.
10402
c5187ac6
PA
104032011-02-11 Pedro Alves <pedro@codesourcery.com>
10404
10405 * infrun.c (proceed): Move switching out and in of tfind mode from
10406 here ...
10407 (fetch_inferior_event): ... to here.
10408
4f3e6fb7
YQ
104092011-02-11 Yao Qi <yao@codesourcery.com>
10410
10411 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10412 libcommon.a.
10413 * configure.ac: Add common to sub dir.
10414 * configure: Regenerate.
10415
b708a5c7
JK
104162011-02-11 Yao Qi <yao@codesourcery.com>
10417
10418 Build libcommon.a.
10419
10420 * common/Makefile.in: New.
10421 * common/configure.ac: New.
10422 * common/aclocal.m4: New.
10423 * common/configure: Generate.
10424
2287cc7e
PA
104252011-02-10 Pedro Alves <pedro@codesourcery.com>
10426
10427 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10428 side of the parenthesis.
10429
10430 Merge from GCC:
10431 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10432 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10433
fd62cb89
MS
104342011-02-08 Michael Snyder <msnyder@vmware.com>
10435
10436 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10437
56d2815c
JK
104382011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10439
10440 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10441 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10442 psubd and paddd.
10443
4f7d61a8
JK
104442011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10445
10446 PR 12361.
10447 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10448 phsubsw.
10449 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10450 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10451
54fcddd0
UW
104522011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10453
10454 * dwarf2read.c (read_subroutine_type): Set special calling
10455 convention flag for functions compiled by IBM XL C for OpenCL.
10456 * ppc-sysv-tdep.c: Include "dwarf2.h"
10457 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10458 calling convention.
10459 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10460 IBM OpenCL vector types calling convention.
10461 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10462 (ppc_sysv_abi_broken_return_value): Likewise.
10463 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10464 types calling convention.
10465 (ppc64_sysv_abi_return_value): Likewise.
10466 * spu-tdep.c: Include "dwarf2.h"
10467 (spu_return_value): Implement IBM OpenCL vector types calling
10468 convention.
10469
d6dafb7c
UW
104702011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10471
10472 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10473 correct ABI for AltiVec vector arguments.
10474
32b72a42
PA
104752011-02-07 Pedro Alves <pedro@codesourcery.com>
10476
10477 * valprint.c (val_print): Extend comment.
10478 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10479 interface explanation to val_print.
10480 (ada_val_print_array): Adjust comment to current interface.
10481 (print_field_values): Adjust comment to current interface.
10482 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10483 explanation to val_print.
10484 * f-valprint.c (f_val_print): Ditto.
10485 * jv-valprint.c (java_val_print): Ditto.
10486 * m2-valprint.c (m2_val_print): Ditto.
10487 * p-valprint.c (pascal_val_print): Ditto.
10488
9998af43
TJB
104892011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10490
10491 * breakpoint.c (parse_breakpoint_sals): Fix description.
10492
505500db 104932011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10494 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10495
10496 * python/py-inferior.c (python_on_normal_stop): New function.
10497 (python_on_resume): New function.
10498 (python_inferior_exit): New function.
10499 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10500 inferior_exit observers.
10501 * python/py-evtregistry.c: New file.
10502 * python/py-threadevent.c : New file.
10503 * python/py-event.c: New file.
10504 * python/py-evts.c: New file.
10505 * python/py-continueevent.c: New file.
10506 * python/py-bpevent.c: New file.
10507 * python/py-signalevent.c: New file.
10508 * python/py-exetiedevent.c: New file.
10509 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10510 Move struct breakpoint_object from here...
10511 * python/python-internal.h: ... to here.
10512 * python/py-event.h: New file.
10513 * python/py-events.h: New file.
10514 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10515 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10516 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10517 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10518 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10519 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10520 Add build rules for all the above.
10521
9e0ac564
TT
105222011-02-04 Tom Tromey <tromey@redhat.com>
10523
10524 * dwarf2read.c (dwarf2_section_empty_p): New function.
10525 (dwarf2_read_section): Use dwarf2_section_empty_p.
10526 (dwarf2_section_size): New function.
10527 (dwarf2_get_section_info): Unconditionally read section.
10528 (dwarf2_read_index): Use dwarf2_section_empty_p.
10529 (partial_read_comp_unit_head): Use dwarf2_section_size.
10530 (dwarf2_symbol_mark_computed): Likewise.
10531
eee5b35e
DD
105322011-02-04 David Daney <ddaney@caviumnetworks.com>
10533
10534 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10535
385203ed
DD
105362011-02-04 David Daney <ddaney@caviumnetworks.com>
10537
10538 * mips-linux-tdep.c: Include xml-syscall.h.
10539 (mips_linux_get_syscall_number): New function.
10540 (mips_linux_init_abi): Add calls to
10541 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10542 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10543 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10544 * syscalls/mips-n32-linux.xml: New file.
10545 * syscalls/mips-n64-linux.xml: New file.
10546 * syscalls/mips-o32-linux.xml: New file.
10547
9277c30c
UW
105482011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10549
10550 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10551 Complain about inverted range entries.
10552 (dwarf2_record_block_ranges): Likewise.
10553
a3be7890
TJB
105542011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10555
10556 Fix some typos.
10557 * breakpoint.c (update_watchpoint): Fix name of the
10558 update_global_location_list function.
10559 (print_one_breakpoint): Fix typo.
10560 (_initialize_breakpoint): Remove extra space in hbreak help
10561 string.
10562 * breakpoint.h (struct bp_location) <length>: Fix field
10563 description.
10564
041274d8
PA
105652011-02-04 Pedro Alves <pedro@codesourcery.com>
10566
10567 * regcache.c (registers_changed_ptid): Don't explictly always
10568 clear `current_regcache'. Only clear current_thread_ptid and
10569 current_thread_arch when PTID matches. Only reinit the frame
10570 cache if PTID matches the current inferior_ptid. Move alloca(0)
10571 call to ...
10572 (registers_changed): ... here.
10573
c1c2ab58
UW
105742011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10575
10576 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10577 starts with __stack_chk_guard as stack guard symbol.
10578
9011945e
AB
105792011-02-03 Andrew Burgess <aburgess@broadcom.com>
10580
10581 * disasm.c (compare_lines): Handle the end of sequence markers
10582 within the line table to better support disassembling over
10583 compilation unit boundaries.
10584
e0634ccf
UW
105852011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10586
10587 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10588 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10589 implementation even if no symbols are available.
10590 (thumb_analyze_prologue): Update call to skip_prologue_function.
10591 (arm_analyze_prologue): Likewise.
10592
0e9e9abd
UW
105932011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10594
10595 * arm-tdep.c: Include "observer.h".
10596 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10597 (arm_exidx_data_key): New static variable.
10598 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10599 (struct arm_exidx_data): Likewise.
10600 (arm_exidx_data_free): New function.
10601 (arm_compare_exidx_entries): Likewise.
10602 (arm_obj_section_from_vma): Likewise.
10603 (arm_exidx_new_objfile): Likewise.
10604 (arm_find_exidx_entry): Likewise.
10605 (arm_exidx_fill_cache): Likewise.
10606 (arm_exidx_unwind_sniffer): Likewise.
10607 (arm_exidx_unwind): New global variable.
10608 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10609 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10610 observer. Register arm_exidx_data_key as objfile data.
10611
2e9e421f
UW
106122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10613
10614 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10615 due to accessing uninitialized variable. Fix indentation.
10616
580688f3
PA
106172011-02-02 Pedro Alves <pedro@codesourcery.com>
10618
10619 * c-valprint.c (c_value_print): When doing virtual base pointer
10620 adjustment, create a new value with adjusted contents rather than
10621 changing the contents of the value being printed (and getting it
10622 wrong).
10623
3d2c1d41
PA
106242011-02-02 Pedro Alves <pedro@codesourcery.com>
10625
10626 * xml-support.c (xml_find_attribute): New.
10627 (xinclude_start_include): Use it.
10628 * xml-support.h (xml_find_attribute): Declare.
10629 * memory-map.c (memory_map_start_memory)
10630 (memory_map_start_property): Use xml_find_attribute.
10631 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10632 xml_find_attribute.
10633 * remote.c (start_thread): Use xml_find_attribute.
10634 * solib-target.c (library_list_start_segment)
10635 (library_list_start_section, library_list_start_library)
10636 (library_list_start_list): Use xml_find_attribute.
10637 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10638 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10639 (tdesc_start_field): Use xml_find_attribute.
10640
0af3e2db
UW
106412011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10642
10643 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10644 (BUILD_OCL_VTYPES): Update.
10645
c1039e3c
JB
106462011-02-02 Joel Brobecker <brobecker@adacore.com>
10647
10648 * configure.ac: Work around non-GNU sed limitation when computing
10649 python version number.
10650 * configure: Regenerate.
10651
600ea1be
JK
106522011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10653
10654 Fix debug printing of TYPE_INSTANCE.
10655 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10656 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10657
56c12414
JK
106582011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10661 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10662 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10663 * ada-operator.inc: Rename the file to ...
10664 * ada-operator.def: ... here, wrap all the entries by macro OP.
10665 * expprint.c (op_name_standard): Remove all the entries. Include
10666 "std-operator.def" instead.
10667 * expression.h (enum exp_opcode): Include "std-operator.def" and
10668 "ada-operator.def". Move all the entries ...
10669 * std-operator.def: ... here, wrap all the entries by macro OP.
10670
c52b559d
PP
106712011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10672
10673 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10674 * breakpoint.c (remove_jit_event_breakpoints): New function.
10675 * jit.c (jit_descriptor_addr): Delete.
10676 (registering_code): Delete.
10677 (clear_int): Delete.
10678 (jit_inferior_data): New variable.
10679 (struct jit_inferior_data): New type.
10680 (get_jit_inferior_data): New function.
10681 (jit_inferior_data_cleanup): New function.
10682 (jit_read_descriptor): Adjust.
10683 (jit_register_code): Adjust.
10684 (jit_breakpoint_re_set_internal): New function; move code here ...
10685 (jit_inferior_init): ... from here.
10686 (jit_breakpoint_re_set): Adjust.
10687 (jit_reset_inferior_data_and_breakpoints): New function.
10688 (jit_inferior_created_observer): Adjust.
10689 (jit_inferior_exit_hook): Adjust.
10690 (jit_executable_changed_observer): New function.
10691 (jit_event_handler): Adjust.
10692 (_initialize_jit): Adjust.
10693
e839132d
MS
106942011-01-31 Michael Snyder <msnyder@vmware.com>
10695
10696 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10697 line.
10698
47a80e90
TT
106992011-01-31 Tom Tromey <tromey@redhat.com>
10700
10701 PR python/12216:
10702 * python/python.c (execute_gdb_command): Call
10703 prevent_dont_repeat.
10704 * top.c (suppress_dont_repeat): New global.
10705 (dont_repeat): Use it.
10706 (prevent_dont_repeat): New function.
10707 * command.h (prevent_dont_repeat): Declare.
10708
45a43567
TT
107092011-01-31 Tom Tromey <tromey@redhat.com>
10710
10711 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10712 * python/py-breakpoint.c (bppy_set_silent): Use
10713 breakpoint_set_silent.
10714 (bppy_set_thread): Use breakpoint_set_thread.
10715 (bppy_set_task): Use breakpoint_set_task.
10716 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10717 (breakpoint_set_task): Declare.
10718 (make_breakpoint_silent): Remove.
10719 * breakpoint.c (breakpoint_set_silent): New function.
10720 (breakpoint_set_thread): Likewise.
10721 (breakpoint_set_task): Likewise.
10722 (make_breakpoint_silent): Remove.
10723
09d682a4
TT
107242011-01-31 Tom Tromey <tromey@redhat.com>
10725
10726 * breakpoint.h (user_breakpoint_p): Declare.
10727 * breakpoint.c (user_breakpoint_p): New function.
10728 (breakpoint_1): Use it.
10729 (save_breakpoints): Likewise.
10730
9c4ea6c5
JB
107312011-01-31 Joel Brobecker <brobecker@adacore.com>
10732
10733 * configure.ac: Add handling of Python distribution on Windows.
10734 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10735 sysconfig variables are not defined, then do not use them.
10736 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10737 instead. On Windows, return all paths using forward-slashes
10738 rather than backslashes.
10739
ac534cba
JB
107402011-01-31 Joel Brobecker <brobecker@adacore.com>
10741
10742 * configure.ac: Remove fallback behavior for building
10743 against Python. Remove tweaking of Python include path.
10744 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10745 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10746 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10747 Always restore CPPFLAGS and LIBS after linking test.
10748 * configure: Regenerated.
10749 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10750 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10751 * python/python-internal.h: Adjust includes of Python .h files.
10752
c2f0d045
JB
107532011-01-31 Joel Brobecker <brobecker@adacore.com>
10754
10755 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10756 in error message.
10757
6b0c4c1f
JB
107582011-01-31 Joel Brobecker <brobecker@adacore.com>
10759
10760 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10761 value test.
10762
672c9795
YQ
107632011-01-31 Yao Qi <yao@codesourcery.com>
10764
10765 * arm-linux-nat.c: Update calls to regcache_register_status
10766 instead of regcache_valid_p.
10767 * aix-thread.c: Likewise.
10768 * i386gnu-nat.c: Likewise.
10769
80b23b6a
JK
107702011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10771
10772 Fix crash.
10773 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10774 touching TYPE_FIELD_ARTIFICIAL.
10775
4cd712bd
RE
107762011-01-28 Richard Earnshaw <rearnsha@arm.com>
10777
10778 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10779 Committers.
10780
ffd5ec24
PA
107812011-01-28 Pedro Alves <pedro@codesourcery.com>
10782
10783 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10784 selected, don't try iterating over the traceframe's blocks.
10785 (tfile_has_stack): If there's no traceframe selected, then there's
10786 no stack.
10787 (tfile_has_registers): If there's no traceframe selected, then
10788 there's no registers.
10789
e8c9e0a1
PA
107902011-01-28 Pedro Alves <pedro@codesourcery.com>
10791
10792 * target.c (memory_xfer_partial): No need to restore shadows if we
10793 haven't read anything.
10794
de15c4ab
PA
107952011-01-28 Pedro Alves <pedro@codesourcery.com>
10796
10797 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10798 and val_print_scalar_formatted.
10799
9f41c731
PA
108002011-01-27 Pedro Alves <pedro@codesourcery.com>
10801
10802 * tracepoint.c (tfile_read): New.
10803 (tfile_open): Use it.
10804 (tfile_get_traceframe_address): Use it.
10805 (tfile_trace_find): Use it.
10806 (walk_blocks_callback_func): New typedef.
10807 (match_blocktype): New function.
10808 (traceframe_walk_blocks): New function.
10809 (traceframe_find_block_type): New function.
10810 (tfile_fetch_registers, tfile_xfer_partial)
10811 (tfile_get_trace_state_variable_value): Use
10812 traceframe_find_block_type and tfile_read.
10813
cdefc55d
KB
108142011-01-26 Kevin Buettner <kevinb@redhat.com>
10815
10816 * remote-mips.c: Add internationalization mark ups. Remove
10817 trailing \n from already marked up strings.
10818
a81766d8
TT
108192011-01-26 Tom Tromey <tromey@redhat.com>
10820
10821 * python/py-prettyprint.c (print_string_repr): Clear
10822 'addressprint' option when calling val_print_string.
10823 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10824 option when calling val_print_string.
10825
74aedc46
TT
108262011-01-26 Tom Tromey <tromey@redhat.com>
10827
10828 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10829 GDB_PY_LL_ARG.
10830 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10831 macros.
10832 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10833 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10834 (gdb_py_long_as_ulongest): New defines.
10835 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10836 (gdb_py_int_as_long): Declare.
10837 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10838 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10839 (valpy_long): Add comment.
10840 * python/py-utils.c (get_addr_from_python): Use
10841 gdb_py_long_as_ulongest. Handle overflow properly.
10842 (gdb_py_object_from_longest): New function.
10843 (gdb_py_object_from_ulongest): Likewise.
10844 (gdb_py_int_as_long): Likewise.
10845 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10846 * python/py-symtab.c (salpy_get_pc): Use
10847 gdb_py_long_from_ulongest.
10848 (salpy_get_line): Use PyInt_FromLong.
10849 * python/py-param.c (set_parameter_value): Use
10850 gdb_py_int_as_long.
10851 * python/py-lazy-string.c (stpy_get_address): Use
10852 gdb_py_long_from_ulongest.
10853 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10854 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10855 * python/py-breakpoint.c (bppy_set_thread): Use
10856 gdb_py_int_as_long.
10857 (bppy_set_task): Likewise.
10858 (bppy_set_ignore_count): Likewise.
10859 (bppy_set_hit_count): Likewise.
10860 * python/py-block.c (blpy_get_start): Use
10861 gdb_py_object_from_ulongest.
10862 (blpy_get_end): Likewise.
10863 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10864
e4f6d2ec
TJB
108652011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10866
10867 PR/symtab 11766:
10868 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10869 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10870 equality test for objfile, initialize addr_low if needed.
10871
b30aa278
PA
108722011-01-25 Pedro Alves <pedro@codesourcery.com>
10873
10874 * tui/tui-regs.c (tui_register_format): Remove dead code.
10875
ab2188aa
PA
108762011-01-25 Pedro Alves <pedro@codesourcery.com>
10877
10878 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10879 instead of print_scalar_formatted.
10880 (print_scalar_formatted): Don't handle 's' format strings here,
10881 and add an assertion that we never see such format here.
10882 * valprint.h (val_print_scalar_formatted): Declare.
10883 * valprint.c (val_print_scalar_formatted): New.
10884 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10885 instead of print_scalar_formatted.
10886 * jv-valprint.c (java_val_print): Ditto.
10887 * p-valprint.c (pascal_val_print): Ditto.
10888 * ada-valprint.c (ada_val_print_1): Ditto.
10889 * f-valprint.c (f_val_print): Ditto.
10890 * infcmd.c (registers_info): Ditto.
10891 * m2-valprint.c (m2_val_print): Ditto.
10892
66d61a4c
PA
108932011-01-25 Pedro Alves <pedro@codesourcery.com>
10894
10895 * m2-valprint.c (print_unbounded_array): Pass
10896 value_contents_for_printing rather than value_contents, to
10897 m2_print_array_contents. Also pass in the value.
10898
831adc1f
JK
108992011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10900
10901 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10902 (save_gdb_index_command): Switch to .gdb_index version 4.
10903
20622269
PA
109042011-01-25 Pedro Alves <pedro@codesourcery.com>
10905
10906 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10907 than frame_register, and always pass a valid value to val_print.
10908
585fdaa1
PA
109092011-01-25 Pedro Alves <pedro@codesourcery.com>
10910
10911 Centralize printing "<optimized out>".
10912
10913 * valprint.h (val_print_optimized_out): Declare.
10914 * cp-valprint.c (cp_print_value_fields): Use
10915 val_print_optimized_out.
10916 * jv-valprint.c (java_print_value_fields): Ditto.
10917 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10918 * printcmd.c (print_formatted): Ditto.
10919 * valprint.c (valprint_check_validity): Ditto.
10920 (value_check_printable): Ditto.
10921 (val_print_optimized_out): New.
10922
29ec5263
PA
109232011-01-25 Pedro Alves <pedro@codesourcery.com>
10924
10925 * infcmd.c (default_print_registers_info): Allocate values so to
10926 never pass a NULL value to val_print.
10927
de4127a3
PA
109282011-01-25 Pedro Alves <pedro@codesourcery.com>
10929
10930 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10931 boolean. Make sure to always pass a value that matches the
10932 contents buffer to callees. Preserve `address' for following
10933 iterations.
10934 * value.c (value_contents_for_printing_const): New.
10935 (value_address): Constify value argument.
10936 * value.h (value_contents_for_printing_const): Declare.
10937 (value_address): Constify value argument.
10938
ee99023e
PA
109392011-01-25 Pedro Alves <pedro@codesourcery.com>
10940
10941 * regcache.c (struct regcache_descr): Rename
10942 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10943 and sizeof_cooked_register_valid_p to
10944 sizeof_cooked_register_status.
10945 (init_regcache_descr): Adjust.
10946 (struct regcache): Rename register_valid_p field to
10947 register_status.
10948 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10949 (do_cooked_read): Adjust.
10950 (regcache_valid_p): Rename to ...
10951 (regcache_register_status): ... this. Adjust.
10952 (regcache_invalidate): Adjust.
10953 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10954 Adjust.
10955 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10956 as unavailable, not valid.
10957 (regcache_dump): Adjust.
10958 * regcache.h (enum register_status): New.
10959 (regcache_register_status): Declare.
10960 (regcache_invalidate): Delete declaration.
10961 * corelow.c (get_core_registers): Adjust.
10962 * tracepoint.c (tfile_fetch_registers): Adjust.
10963 * trad-frame.c (REG_VALUE): Rename to ...
10964 (TF_REG_VALUE): ... this.
10965 (REG_UNKNOWN): Rename to ...
10966 (TF_REG_UNKNOWN): ... this.
10967 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10968 * mi/mi-main.c (register_changed_p): Adjust.
10969
99e42fd8
PA
109702011-01-25 Pedro Alves <pedro@codesourcery.com>
10971
10972 * regcache.c (struct regcache_descr): Remove outdated comment.
10973 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10974 overallocate hack.
10975 (regcache_xmalloc): Rename to ...
10976 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10977 Allocate the regcache type accordingly.
10978 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10979 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10980 cooked registers, not raw.
10981 (regcache_dup_no_passthrough): Delete.
10982 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10983 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10984 mention obsolete write_register_bytes.
10985 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10986
f7605bc2
PA
109872011-01-25 Pedro Alves <pedro@codesourcery.com>
10988
10989 Stop remote_read_bytes from handling partial reads itself.
10990
10991 * remote-fileio.c: Include target.h.
10992 (remote_fileio_write_bytes): Delete.
10993 (remote_fileio_func_open, remote_fileio_func_write)
10994 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10995 target_read_memory.
10996 (remote_fileio_func_stat): Use target_read_memory and
10997 target_write_memory.
10998 (remote_fileio_func_gettimeofday): Use target_write_memory.
10999 (remote_fileio_func_system): Use target_read_memory.
11000 * remote.c (remote_write_bytes): Make it static.
11001 (remote_read_bytes): Don't handle partial reads here.
11002 * remote.h (remote_read_bytes): Delete declaration.
11003
efc0eabd
PA
110042011-01-25 Pedro Alves <pedro@codesourcery.com>
11005
11006 Simplify XML parsing a bit.
11007
11008 * xml-support.h (gdb_xml_parse_quick): Declare.
11009 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11010 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11011 parameter.
11012 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11013 gdb_xml_create_parser_and_cleanup_1.
11014 (gdb_xml_parse_quick): New.
11015 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11016 * osdata.c (osdata_parse): Ditto.
11017 * remote.c (remote_threads_info): Ditto.
11018 * solib-target.c (solib_target_parse_libraries): Ditto.
11019 * xml-syscall.c (syscall_parse_xml): Ditto.
11020 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11021
314d366a
KB
110222011-01-24 Kevin Buettner <kevinb@redhat.com>
11023
11024 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11025 with remote-mips.o added to gdb_target_obs.
11026 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11027
a491d753
PA
110282011-01-24 Pedro Alves <pedro@codesourcery.com>
11029
11030 * ada-valprint.c (val_print_packed_array_elements): Pass the
11031 correct struct value to val_print.
11032 (ada_val_print_1): Ditto.
11033
490f124f
PA
110342011-01-24 Pedro Alves <pedro@codesourcery.com>
11035
11036 Don't lose embedded_offset in printing routines throughout.
11037
11038 * valprint.h (val_print_array_elements): Change prototype.
11039 * valprint.c (val_print_array_elements): Add `embedded_offset'
11040 parameter, and adjust to pass it down to val_print, while passing
11041 `valaddr' or `address' unmodified. Take embedded_offset into
11042 account when checking repetitions.
11043 * c-valprint.c (c_val_print): Pass embedded_offset to
11044 val_print_array_elements instead of adjusting `valaddr' and
11045 `address'.
11046 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11047 embedded_offset to val_print_array_elements instead of adjusting
11048 `valaddr'.
11049 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11050 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11051 val_print_array_elements and pascal_object_print_value_fields
11052 instead of adjusting `valaddr'.
11053 (pascal_object_print_value_fields): Add `offset' parameter, and
11054 adjust to use it.
11055 (pascal_object_print_value): Add `offset' parameter, and adjust to
11056 use it.
11057 (pascal_object_print_static_field): Use
11058 value_contents_for_printing/value_embedded_offset, rather than
11059 value_contents.
11060 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11061 parameter, and adjust to use it. Use
11062 value_contents_for_printing/value_embedded_offset, rather than
11063 value_contents.
11064 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11065 (ada_val_print_array): Add `offset' parameter, and adjust to use
11066 it.
11067 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11068 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11069 Instead work with offsets. Use
11070 value_contents_for_printing/value_embedded_offset, rather than
11071 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11072 and use value_from_pointer to extract a target pointer, rather
11073 than value_from_longest.
11074 (print_variant_part): Add `offset' parameter. Replace
11075 `outer_valaddr' parameter by a new `outer_offset' parameter.
11076 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11077 (ada_value_print): Use
11078 value_contents_for_printing/value_embedded_offset, rather than
11079 value_contents.
11080 (print_record): Add `offset' parameter, and adjust to pass it
11081 down.
11082 (print_field_values): Add `offset' parameter. Replace
11083 `outer_valaddr' parameter by a new `outer_offset' parameter.
11084 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11085 Use value_contents_for_printing/value_embedded_offset, rather than
11086 value_contents.
11087 * d-valprint.c (dynamic_array_type): Use
11088 value_contents_for_printing/value_embedded_offset, rather than
11089 value_contents.
11090 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11091 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11092 (java_print_value_fields): Take `offset' into account. Don't
11093 re-adjust `valaddr'. Instead pass down adjusted offsets.
11094 (java_val_print): Take `embedded_offset' into account. Pass it to
11095 java_print_value_fields.
11096 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11097 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11098 down adjusted offsets.
11099 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11100 (f_val_print): Take `embedded_offset' into account.
11101
7bfc9434
JB
111022011-01-21 Joel Brobecker <brobecker@adacore.com>
11103
11104 * inflow.c: Include "gdbcmd.h".
11105 (interactive_mode): New static global, moved here from top.c.
11106 (show_interactive_mode): New function, moved here from top.c.
11107 use gdb_has_a_terminal instead of input_from_terminal_p to
11108 determine the current mode.
11109 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11110 setting.
11111 (_initialize_inflow): Add the "set/show interactive-mode"
11112 commands. Moved here from top.c, after having adjusted slightly
11113 the help text.
11114 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11115 to inflow.c.
11116 (input_from_terminal_p): Remove handling of "interactive-mode"
11117 setting, moved to infow.c.
11118 (init_main): Remove creation of the "set/show interactive-mode"
11119 commands, moved to inflow.c.
11120
44603653
JB
111212011-01-19 Joel Brobecker <brobecker@adacore.com>
11122
11123 * NEWS: Add entry for native ia64-hpux support.
11124
4694da01
TT
111252011-01-19 Tom Tromey <tromey@redhat.com>
11126
11127 PR mi/8618:
11128 * thread.c (free_thread): Free 'name'.
11129 (print_thread_info): Emit thread name. Change CLI output.
11130 (thread_name_command): New function.
11131 (do_captured_thread_select): Emit newline.
11132 (_initialize_thread): Register 'thread name' command.
11133 * target.h (struct target_ops) <to_thread_name>: New field.
11134 (target_thread_name): New macro.
11135 * target.c (update_current_target): Handle to_thread_name.
11136 * python/py-infthread.c (thpy_get_name): New function.
11137 (thpy_set_name): Likewise.
11138 (thread_object_getset): Add "name".
11139 * linux-nat.c (linux_nat_thread_name): New function.
11140 (linux_nat_add_target): Set to_thread_name.
11141 * gdbthread.h (struct thread_info) <name>: New field.
11142
10d44370
JB
111432011-01-18 Joel Brobecker <brobecker@adacore.com>
11144
11145 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11146 (ada_val_print_1): Likewise.
11147
e3acb115
JB
111482011-01-18 Joel Brobecker <brobecker@adacore.com>
11149
11150 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11151 upper limit address is not greater than the function end address
11152 when the upper limit could not be computed using the debugging
11153 info.
11154
dc92e161
TT
111552011-01-17 Tom Tromey <tromey@redhat.com>
11156
11157 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11158 get_regcomp_error.
11159 * utils.c: Include gdb_regex.h.
11160 (do_regfree_cleanup): New function.
11161 (make_regfree_cleanup): Likewise.
11162 (get_regcomp_error): Likewise.
11163 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11164
f55af66d
TT
111652011-01-17 Tom Tromey <tromey@redhat.com>
11166
11167 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11168 re_compile_fastmap.
11169
a5a44b53
PM
111702011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11171
11172 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11173 for internal variables.
11174 (last_was_structop): New static variable.
11175 (COMPLETE): New token.
11176 (field_exp): New rule to group all '.' suffix handling.
11177 Add mark_struct_expression calls when approriate to be able
11178 to correctly find fields for completion.
11179 (yylex): Adapt to handle field completion and set INTVAR when
11180 required.
11181
2c291032
YQ
111822011-01-14 Yao Qi <yao@codesourcery.com>
11183
11184 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11185 save_reggroup, restore_reggroup and all_reggroup.
11186
447b483c
JB
111872011-01-14 Joel Brobecker <brobecker@adacore.com>
11188
11189 * ada-valprint. (ada_printchar): Use the correct type length
11190 in call to ada_emit_char.
11191 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11192
7b64a93b
PM
111932011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11194
11195 * solib-som.h (hpux_major_release): Declare variable here.
11196 * solib-som.c: Remove <sys/utsname.h> header.
11197 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11198 (hpux_major_release): Make global, change default value to
11199 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11200 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11201 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11202 Add "solib-som.h" header.
11203 (set_hpux_major_release): New function.
11204 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11205
4e18c053
MF
112062011-01-14 Mike Frysinger <vapier@gentoo.org>
11207
11208 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11209
a9df6b22
JB
112102011-01-14 Joel Brobecker <brobecker@adacore.com>
11211
11212 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11213 new-line at end of warning message.
11214 (ia64_hpux_store_register): Remove trailing new-line at end of
11215 error message.
11216 * ia64-hpux-tdep.c: Rephrase comment.
11217 * solib-ia64-hpux.c (struct dld_info): Change type of field
11218 dld_flags from "long long" to ULONGEST.
11219
ecb956dd
PA
112202011-01-14 Pedro Alves <pedro@codesourcery.com>
11221
11222 * target.h (deprecated_child_ops): Delete declaration.
11223 * target.c (deprecated_child_ops): Delete definition.
11224
76adfcae
PA
112252011-01-14 Pedro Alves <pedro@codesourcery.com>
11226
11227 * Makefile.in (hpux-thread.o): Delete rule.
11228 * configure.ac: Don't check for HPUX DCE threads support.
11229 * configure, config.in: Regenerate.
11230 * hppa-hpux-nat.c (child_suppress_run): Delete.
11231 (hppa_hpux_child_can_run): Delete.
11232 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11233 * hpux-thread.c: Delete.
11234
042e866e
JB
112352011-01-13 Joel Brobecker <brobecker@adacore.com>
11236
11237 * hpux-thread.c (hpux_pid_to_str): Delete.
11238
4ffa5a33
JB
112392011-01-13 Joel Brobecker <brobecker@adacore.com>
11240
11241 * ada-valprint.c (ada_emit_char): Remove strange code.
11242 Check that c is <= UCHAR_MAX before passing it to isascii.
11243 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11244
de8fa76c
JB
112452011-01-13 Joel Brobecker <brobecker@adacore.com>
11246
11247 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11248 to the case where instream is stdin.
11249
c4de7027
JB
112502011-01-13 Joel Brobecker <brobecker@adacore.com>
11251
11252 * ia64-tdep.h (struct regcache): Forward declare.
11253 (struct ia64_infcall_ops): New struct type.
11254 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11255 and "infcall_ops".
11256 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11257 Renames ia64_find_global_pointer.
11258 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11259 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11260 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11261 methods.
11262 (ia64_infcall_ops): New static global constant.
11263 (ia64_gdbarch_init): Set tdep->infcall_ops.
11264 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11265 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11266 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11267 (ia64_hpux_dummy_code): New static global constant.
11268 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11269 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11270 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11271 New function.
11272 (ia64_hpux_infcall_ops): New static global constant.
11273 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11274 for inferior function calls to work properly on ia64-hpux.
11275
77ca787b
JB
112762011-01-13 Joel Brobecker <brobecker@adacore.com>
11277
11278 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11279 * ia64-tdep.h (struct frame_info): forward declaration.
11280 (struct gdbarch_tdep): Add field size_of_register_frame.
11281 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11282 to determine the size of the register frame.
11283 (ia64_size_of_register_frame): New function.
11284 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11285 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11286 (IA64_HPUX_UREG_REASON): New macro.
11287 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11288 New functions.
11289 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11290 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11291 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11292 objects.
11293
92c9a463
JB
112942011-01-13 Joel Brobecker <brobecker@adacore.com>
11295
11296 Add support for ia64-hpux.
11297 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11298 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11299
11300 * configure.host: Add handling for ia64-hpux hosts. Add associated
11301 floatformats.
11302 * configure.tgt: Add handling for ia64-hpux targets.
11303 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11304 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11305 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11306
f688d93f
JB
113072011-01-13 Joel Brobecker <brobecker@adacore.com>
11308
11309 [ttrace] Compute thread list immediately after attach.
11310 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11311 New subprogram.
11312 (inf_ttrace_attach): Use it.
11313
1b89e62f
JB
113142011-01-13 Joel Brobecker <brobecker@adacore.com>
11315
11316 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11317 if we could not determine the frame's function address. Instead,
11318 use the frame's PC, and then continue.
11319
3e5e6e2a
JB
113202011-01-13 Joel Brobecker <brobecker@adacore.com>
11321
11322 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11323 not already defined.
11324
825d6d8a
JB
113252011-01-13 Joel Brobecker <brobecker@adacore.com>
11326
11327 * ia64-tdep.c (ia64_struct_type_p): New function.
11328 (ia64_extract_return_value): Handle integral values that are
11329 less than 8 bytes long.
11330 (ia64_push_dummy_call): Likewise.
11331
7458e667
JB
113322011-01-13 Joel Brobecker <brobecker@adacore.com>
11333
11334 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11335 floatformat_ia64_ext.
11336 (floatformat_ia64_ext_big): New static const.
11337 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11338
1b05df00
TT
113392011-01-12 Tom Tromey <tromey@redhat.com>
11340
11341 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11342 messages.
11343 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11344 (mi_cmd_thread_list_ids): Likewise.
11345 (mi_cmd_data_list_changed_registers): Likewise.
11346 (mi_cmd_data_list_register_values): Likewise.
11347 (mi_cmd_data_write_register_values): Likewise.
11348 (mi_cmd_data_evaluate_expression): Likewise.
11349 (mi_cmd_data_read_memory): Likewise.
11350 (mi_cmd_data_read_memory_bytes): Likewise.
11351 (mi_cmd_data_write_memory): Likewise.
11352 (mi_cmd_enable_timings): Likewise.
11353 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11354 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11355 (mi_cmd_var_delete): Likewise.
11356 (mi_cmd_var_set_format): Likewise.
11357 (mi_cmd_var_show_format): Likewise.
11358 (mi_cmd_var_info_num_children): Likewise.
11359 (mi_cmd_var_list_children): Likewise.
11360 (mi_cmd_var_info_type): Likewise.
11361 (mi_cmd_var_info_expression): Likewise.
11362 (mi_cmd_var_show_attributes): Likewise.
11363 (mi_cmd_var_assign): Likewise.
11364 (mi_cmd_var_update): Likewise.
11365 (mi_cmd_enable_pretty_printing): Likewise.
11366 (mi_cmd_var_set_update_range): Likewise.
11367 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11368 messages.
11369 (mi_cmd_target_file_put): Likewise.
11370 (mi_cmd_target_file_delete): Likewise.
11371 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11372 messages.
11373 (mi_cmd_stack_info_depth): Likewise.
11374 (mi_cmd_stack_list_locals): Likewise.
11375 (mi_cmd_stack_list_args): Likewise.
11376 (mi_cmd_stack_select_frame): Likewise.
11377 (mi_cmd_stack_select_frame): Likewise.
11378 (mi_cmd_stack_info_frame): Likewise.
11379 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11380 messages.
11381 (mi_cmd_file_list_exec_source_files): Likewise.
11382 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11383 (mi_cmd_env_cd): Likewise.
11384 (mi_cmd_env_path): Likewise.
11385 (mi_cmd_env_dir): Likewise.
11386 (mi_cmd_inferior_tty_show): Likewise.
11387 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11388 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11389 (mi_cmd_break_watch): Likewise.
11390
ad422571
TJB
113912011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11392
11393 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11394 (ppc_linux_insert_hw_breakpoint): Likewise.
11395 (ppc_linux_remove_hw_breakpoint): Likewise.
11396 (ppc_linux_insert_watchpoint): Likewise.
11397
c2ff108b
JK
113982011-01-12 Andrew Burgess <aburgess@broadcom.com>
11399 Jan Kratochvil <jan.kratochvil@redhat.com>
11400
11401 PR fortran/11104 and DWARF unbound arrays detection.
11402 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11403 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11404 unspecified upper bound.
11405 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11406 variables array_size_array, tmp_type and offset_item. New variable
11407 array. Remove call to f77_get_upperbound. New variables array_type
11408 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11409 the final call to deprecated_set_value_type.
11410
41e8491f
JK
114112011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11412
11413 Make value allocations more lazy.
11414 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11415 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11416 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11417 instead of allocate_value and set_value_lazy.
11418 * findvar.c (value_of_register_lazy): Likewise.
11419 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11420 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11421 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11422 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11423 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11424 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11425 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11426 the end, remove set_value_lazy there.
11427 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11428 instead of allocate_value and set_value_lazy when possible.
11429 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11430 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11431 of allocate_value and set_value_lazy.
11432 (value_from_contents_and_address): Use allocate_value_lazy instead of
11433 allocate_value and set_value_lazy when possible.
11434
b716877b
AB
114352011-01-12 Andrew Burgess <aburgess@broadcom.com>
11436
11437 * disasm.c (dump_insns): Support dumping opcodes for MI.
11438 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11439 dumping of instruction opcodes.
11440
d5ae309f
JB
114412011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11442
11443 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11444 appropiately.
11445
98871305
TT
114462011-01-11 Tom Tromey <tromey@redhat.com>
11447
11448 * thread.c (do_captured_thread_select): Emit newline before
11449 printing frame.
11450
c378eb4e
MS
114512011-01-11 Michael Snyder <msnyder@vmware.com>
11452
11453 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11454 * score-tdep.c: Ditto.
11455 * score-tdep.h: Ditto.
11456 * ser-base.c: Ditto.
11457 * ser-go32.c: Ditto.
11458 * serial.c: Ditto.
11459 * serial.h: Ditto.
11460 * ser-mingw.c: Ditto.
11461 * ser-pipe.c: Ditto.
11462 * ser-tcp.c: Ditto.
11463 * ser-unix.c: Ditto.
11464 * sh64-tdep.c: Ditto.
11465 * shnbsd-nat.c: Ditto.
11466 * sh-tdep.c: Ditto.
11467 * sh-tdep.h: Ditto.
11468 * solib.c: Ditto.
11469 * solib-darwin.c: Ditto.
11470 * solib-frv.c: Ditto.
11471 * solib.h: Ditto.
11472 * solib-irix.c: Ditto.
11473 * solib-osf.c: Ditto.
11474 * solib-pa64.c: Ditto.
11475 * solib-som.c: Ditto.
11476 * solib-spu.c: Ditto.
11477 * solib-sunos.c: Ditto.
11478 * solib-svr4.c: Ditto.
11479 * solist.h: Ditto.
11480 * sol-thread.c: Ditto.
11481 * somread.c: Ditto.
11482 * source.c: Ditto.
11483 * source.h: Ditto.
11484 * sparc64-linux-tdep.c: Ditto.
11485 * sparc64-tdep.c: Ditto.
11486 * sparc-linux-nat.c: Ditto.
11487 * sparc-linux-tdep.c: Ditto.
11488 * sparc-sol2-nat.c: Ditto.
11489 * sparc-sol2-tdep.c: Ditto.
11490 * sparc-tdep.c: Ditto.
11491 * sparc-tdep.h: Ditto.
11492 * spu-tdep.c: Ditto.
11493 * stabsread.c: Ditto.
11494 * stabsread.h: Ditto.
11495 * stack.c: Ditto.
11496 * symfile.c: Ditto.
11497 * symfile.h: Ditto.
11498 * symmisc.c: Ditto.
11499 * symtab.c: Ditto.
11500 * symtab.h: Ditto.
11501 * target.c: Ditto.
11502 * target-descriptions.c: Ditto.
11503 * target-descriptions.h: Ditto.
11504 * target.h: Ditto.
11505 * target-memory.c: Ditto.
11506 * terminal.h: Ditto.
11507 * thread.c: Ditto.
11508 * top.c: Ditto.
11509 * tracepoint.c: Ditto.
11510 * tracepoint.h: Ditto.
11511 * trad-frame.h: Ditto.
11512 * typeprint.c: Ditto.
11513
581e13c1
MS
115142011-01-11 Michael Snyder <msnyder@vmware.com>
11515
11516 * ui-file.c: Comment cleanup, mostly periods and spaces.
11517 * ui-file.h: Ditto.
11518 * ui-out.c: Ditto.
11519 * ui-out.h: Ditto.
11520 * utils.c: Ditto.
11521 * v850-tdep.c: Ditto.
11522 * valarith.c: Ditto.
11523 * valops.c: Ditto.
11524 * valprint.c: Ditto.
11525 * valprint.h: Ditto.
11526 * value.c: Ditto.
11527 * value.h: Ditto.
11528 * varobj.c: Ditto.
11529 * varobj.h: Ditto.
11530 * vax-tdep.c: Ditto.
11531 * vec.c: Ditto.
11532 * vec.h: Ditto.
11533 * version.h: Ditto.
11534 * windows-nat.c: Ditto.
11535 * windows-tdep.c: Ditto.
11536 * xcoffread.c: Ditto.
11537 * xcoffsolib.c: Ditto.
11538 * xml-support.c: Ditto.
11539 * xstormy16-tdep.c: Ditto.
11540 * xtensa-tdep.c: Ditto.
11541 * xtensa-tdep.h: Ditto.
11542
90e4670f
TJB
115432011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11544
11545 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11546 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11547
e09342b5
TJB
115482011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11549 Thiago Jung Bauermann <bauerman@br.ibm.com>
11550
11551 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11552 * breakpoint.h
e09342b5
TJB
11553 (struct breakpoint_ops) <resources_needed>: New method.
11554 Initialize to NULL in all existing breakpoint_ops instances.
11555 (struct breakpoint) <exact>: New field.
11556 (target_exact_watchpoints): Declare external global.
11557 * breakpoint.c (target_exact_watchpoints): New global flag.
11558 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11559 b->enable_state to bp_enabled before calling
11560 hw_watchpoint_used_count.
11561 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11562 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11563 if available.
11564 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11565 if the watchpoint is exact.
11566 (resources_needed_watchpoint): New function.
11567 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11568 (watch_command_1): Set b->exact if the user asked for an exact
11569 watchpoint and one can be set.
11570 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11571 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11572 the user asks for an exact watchpoint and one can be set. Return
11573 number of needed debug registers to watch the expression.
11574 * gdbtypes.c (is_scalar_type): New function, based on
11575 valprint.c:scalar_type_p.
11576 (is_scalar_type_recursive): New function.
11577 * gdbtypes.h (is_scalar_type_recursive): Declare.
11578 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11579 handle regions when ranged watchpoints are available.
11580 (create_watchpoint_request): New function.
11581 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11582 create_watchpoint_request.
11583 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11584 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11585 `set powerpc' and `show powerpc' commands.
11586 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11587 Mention documentation comment in the target macro.
11588 (target_region_ok_for_hw_watchpoint): Document return value.
11589
9fa40276
TJB
115902011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11591
11592 * breakpoint.c (update_watchpoint): Decide on using a software or
11593 hardware watchpoint after the bp_locations are created.
11594
77b06cd7
TJB
115952010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11596
11597 Convert hardware watchpoints to use breakpoint_ops.
11598 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11599 <insert_location>: ... this. Return int instead of void.
11600 Accept pointer to struct bp_location instead of pointer to
11601 struct breakpoint. Adapt all implementations.
f2eb0bc8 11602 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11603 <remove_location>: ... this. Accept pointer to struct bp_location
11604 instead of pointer to struct breakpoint. Adapt all implementations.
11605 * breakpoint.c (insert_catchpoint): Delete function.
11606 (insert_bp_location): Call the watchpoint or catchpoint's
11607 breakpoint_ops.insert method.
11608 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11609 breakpoint_ops.remove method.
11610 (insert_watchpoint, remove_watchpoint): New functions.
11611 (watchpoint_breakpoint_ops): New structure.
11612 (watch_command_1): Initialize the OPS field.
11613 * inf-child.c (inf_child_insert_fork_catchpoint)
11614 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11615 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11616 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11617 Delete functions.
11618 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11619 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11620 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11621 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11622 * target.c (update_current_target): Change default implementation of
11623 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11624 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11625 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11626 to_set_syscall_catchpoint to return_one.
11627 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11628 (debug_to_insert_exec_catchpoint): Report return value.
11629 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11630 (to_insert_exec_catchpoint): Change declaration to return int instead
11631 of void.
11632
9b20d036
MS
116332011-01-11 Michael Snyder <msnyder@vmware.com>
11634
11635 * arm-tdep.c: Internationalization.
11636 * c-lang.c: Ditto.
11637 * charset.c: Ditto.
11638 * fork-child.c: Ditto.
11639 * nto-procfs.c: Ditto.
11640 * ppc-sysv-tdep.c: Ditto.
11641 * procfs.c: Ditto.
11642 * remote-mips.c: Ditto.
11643 * remote.c: Ditto.
11644 * rs6000-nat.c: Ditto.
11645 * rs6000-tdep.c: Ditto.
11646 * target.c: Ditto.
11647 * valops.c: Ditto.
11648 * value.c: Ditto.
11649 * xml-support.c: Ditto.
11650 * mi/mi-cmd-break.c: Ditto.
11651 * mi/mi-cmd-var.c: Ditto.
11652 * mi/mi-interp.c: Ditto.
11653 * mi/mi-main.c: Ditto.
11654
dae477fe
AB
116552011-01-11 Andrew Burgess <aburgess@broadcom.com>
11656
11657 * remote-sim.c (gdbsim_store_register): Update API to
11658 sim_store_register to check more error conditions.
11659
0df8b418
MS
116602011-01-10 Michael Snyder <msnyder@vmware.com>
11661
11662 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11663 * nto-tdep.c: Ditto.
11664 * nto-tdep.h: Ditto.
11665 * objc-exp.y: Ditto.
11666 * objc-lang.c: Ditto.
11667 * objfiles.c: Ditto.
11668 * objfiles.h: Ditto.
11669 * observer.c: Ditto.
11670 * opencl-lang.c: Ditto.
11671 * osabi.c: Ditto.
11672 * parse.c: Ditto.
11673 * parser-defs.h: Ditto.
11674 * p-exp.y: Ditto.
11675 * p-lang.c: Ditto.
11676 * posix-hdep.c: Ditto.
11677 * ppcbug-rom.c: Ditto.
11678 * ppc-linux-nat.c: Ditto.
11679 * ppc-linux-tdep.c: Ditto.
11680 * ppc-linux-tdep.h: Ditto.
11681 * ppcnbsd-tdep.c: Ditto.
11682 * ppcobsd-tdep.c: Ditto.
11683 * ppcobsd-tdep.h: Ditto.
11684 * ppc-sysv-tdep.c: Ditto.
11685 * ppc-tdep.h: Ditto.
11686 * printcmd.c: Ditto.
11687 * proc-abi.c: Ditto.
11688 * proc-flags.c: Ditto.
11689 * procfs.c: Ditto.
11690 * proc-utils.h: Ditto.
11691 * progspace.h: Ditto.
11692 * prologue-value.c: Ditto.
11693 * prologue-value.h: Ditto.
11694 * psympriv.h: Ditto.
11695 * psymtab.c: Ditto.
11696 * p-typeprint.c: Ditto.
11697 * p-valprint.c: Ditto.
11698 * ravenscar-sparc-thread.c: Ditto.
11699 * ravenscar-thread.c: Ditto.
11700 * ravenscar-thread.h: Ditto.
11701 * record.c: Ditto.
11702 * regcache.c: Ditto.
11703 * regcache.h: Ditto.
11704 * remote.c: Ditto.
11705 * remote-fileio.c: Ditto.
11706 * remote-fileio.h: Ditto.
11707 * remote.h: Ditto.
11708 * remote-m32r-sdi.c: Ditto.
11709 * remote-mips.c: Ditto.
11710 * remote-sim.c: Ditto.
11711 * rs6000-aix-tdep.c: Ditto.
11712 * rs6000-nat.c: Ditto.
11713 * rs6000-tdep.c: Ditto.
11714
0d7a18f7
MS
117152011-01-10 Michael Snyder <msnyder@vmware.com>
11716
11717 * charset.c (validate): Internationalization.
11718 * coffread.c (read_one_sym): Ditto.
11719 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11720 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11721 * inflow.c (new_tty): Ditto.
11722 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11723 * m32c-tdep.c (m32c_return_value): Ditto.
11724 * mep-tdep.c (mep_store_return_value): Ditto.
11725 * score-tdep.c (score7_fetch_insn): Ditto.
11726 * ser-mingw.c (pipe_windows_open): Ditto.
11727 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11728 * spu-tdep.c (spu_register_type): Ditto.
11729 * tracepoint.c (trace_find_command): Ditto.
11730 * valarith.c (value_pos): Ditto.
11731
9a153e0b
JB
117322011-01-10 Joel Brobecker <brobecker@adacore.com>
11733
11734 * ada-valprint.c (printstr): Minor comment reformatting.
11735
35ecd2d6
MS
117362011-01-08 Michael Snyder <msnyder@vmware.com>
11737
11738 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11739 markup.
11740
1777feb0
MS
117412011-01-08 Michael Snyder <msnyder@vmware.com>
11742
11743 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11744 * hppa-hpux-tdep.c: Ditto.
11745 * hppa-linux-nat.c: Ditto.
11746 * hppa-linux-tdep.c: Ditto.
11747 * hppanbsd-tdep.c: Ditto.
11748 * hppa-tdep.c: Ditto.
11749 * hppa-tdep.h: Ditto.
11750 * hpux-thread.c: Ditto.
11751 * i386-cygwin-tdep.c: Ditto.
11752 * i386-darwin-nat.c: Ditto.
11753 * i386gnu-nat.c: Ditto.
11754 * i386-linux-nat.c: Ditto.
11755 * i386-linux-tdep.c: Ditto.
11756 * i386-nat.c: Ditto.
11757 * i386-nat.h: Ditto.
11758 * i386nbsd-tdep.c: Ditto.
11759 * i386-sol2-nat.c: Ditto.
11760 * i386-stub.c: Ditto.
11761 * i386-tdep.c: Ditto.
11762 * i386-tdep.h: Ditto.
11763 * i387-tdep.c: Ditto.
11764 * ia64-linux-nat.c: Ditto.
11765 * ia64-linux-tdep.c: Ditto.
11766 * ia64-tdep.c: Ditto.
11767 * infcall.c: Ditto.
11768 * infcall.h: Ditto.
11769 * infcmd.c: Ditto.
11770 * inferior.c: Ditto.
11771 * inferior.h: Ditto.
11772 * infloop.c: Ditto.
11773 * inflow.c: Ditto.
11774 * infrun.c: Ditto.
11775 * interps.c: Ditto.
11776 * interps.h: Ditto.
11777 * iq2000-tdep.c: Ditto.
11778 * irix5-nat.c: Ditto.
11779 * jit.c: Ditto.
11780 * jit.h: Ditto.
11781 * jv-exp.y: Ditto.
11782 * jv-lang.c: Ditto.
11783 * jv-lang.h: Ditto.
11784 * jv-typeprint.c: Ditto.
11785 * jv-valprint.c: Ditto.
11786 * language.c: Ditto.
11787 * language.h: Ditto.
11788 * linespec.c: Ditto.
11789 * linux-fork.c: Ditto.
11790 * linux-nat.c: Ditto.
11791 * linux-thread-db.c: Ditto.
11792 * lm32-tdep.c: Ditto.
11793
025bb325
MS
117942011-01-08 Michael Snyder <msnyder@vmware.com>
11795
11796 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11797 * m2-lang.c: Ditto.
11798 * m2-typeprint.c: Ditto.
11799 * m2-valprint.c: Ditto.
11800 * m32c-tdep.c: Ditto.
11801 * m32r-linux-nat.c: Ditto.
11802 * m32r-rom.c: Ditto.
11803 * m32r-tdep.c: Ditto.
11804 * m32r-tdep.h: Ditto.
11805 * m68hc11-tdep.c: Ditto.
11806 * m58klinux-nat.c: Ditto.
11807 * m68k-tdep.c: Ditto.
11808 * m88k-tdep.c: Ditto.
11809 * m88k-tdep.h: Ditto.
11810 * machoread.c: Ditto.
11811 * macrocmd.c: Ditto.
11812 * macroexp.c: Ditto.
11813 * macrotab.c: Ditto.
11814 * main.c: Ditto.
11815 * maint.c: Ditto.
11816 * mdebugread.c: Ditto.
11817 * mdebugread.h: Ditto.
11818 * memattr.c: Ditto.
11819 * memattr.h: Ditto.
11820 * memory-map.h: Ditto.
11821 * mep-tdep.c: Ditto.
11822 * microblaze-rom.c: Ditto.
11823 * microblaze-tdep.c: Ditto.
11824 * minsyms.c: Ditto.
11825 * mips-irix-tdep.c: Ditto.
11826 * mips-linux-nat.c: Ditto.
11827 * mips-linux-tdep.c: Ditto.
11828 * mips-linux-tdep.h: Ditto.
11829 * mipsnbsd-nat.c: Ditto.
11830 * mipsnbsd-tdep.c: Ditto.
11831 * mipsread.c: Ditto.
11832 * mips-tdep.c: Ditto.
11833 * mips-tdep.h: Ditto.
11834 * mn10300-linux-tdep.c: Ditto.
11835 * mn10300-tdep.c: Ditto.
11836 * mn10300-tdep.h: Ditto.
11837 * monitor.c: Ditto.
11838 * monitor.h: Ditto.
11839 * moxie-tdep.c: Ditto.
11840 * moxie-tdep.h: Ditto.
11841 * mt-tdep.c: Ditto.
11842
1642781b
MF
118432011-01-08 Mike Frysinger <vapier@gentoo.org>
11844
11845 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11846
394b0adb
JB
118472011-01-08 Robert Millan <rmh@gnu.org>
11848
11849 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11850
b670013c
MS
118512011-01-07 Michael Snyder <msnyder@vmware.com>
11852
11853 * charset.c (_initialize_charset): Fix typo in string.
11854
a743e542
MS
118552011-01-07 Michael Snyder <msnyder@vmware.com>
11856
11857 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11858 for i18n.
f2eb0bc8 11859 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11860 Split line so that operator goes to beginning of line.
11861 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11862 assignment out of if statement.
11863
0963b4bd
MS
118642011-01-07 Michael Snyder <msnyder@vmware.com>
11865
11866 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11867 * ada-lang.h: Ditto.
11868 * ada-tasks.c: Ditto.
11869 * ada-valprint.c: Ditto.
11870 * aix-threads.c: Ditto.
11871 * alpha-linux-nat.c: Ditto.
11872 * alpha-linux-tdep.c: Ditto.
11873 * alpha-mdebug-tdep.c: Ditto.
11874 * alpha-nat.c: Ditto.
11875 * alpha-osf1-tdep.c: Ditto.
11876 * alpha-tdep.c: Ditto.
11877 * alphabsd-nat.c: Ditto.
11878 * alphabsd-tdep.c: Ditto.
11879 * amd64-darwin-tdep.c: Ditto.
11880 * amd64-linux-nat.c: Ditto.
11881 * amd64-linux-tdep.c: Ditto.
11882 * amd64-sol2-tdep.c: Ditto.
11883 * amd64-tdep.c: Ditto.
11884 * amd64-fbsd-tdep.c: Ditto.
11885 * amd64-nbsd-tdep.c: Ditto.
11886 * amd64-obsd-tdep.c: Ditto.
11887 * amd64-linux-nat.c: Ditto.
11888 * amd64-linux-tdep.c: Ditto.
11889 * arm-tdep.c: Ditto.
11890 * arm-tdep.h: Ditto.
11891 * armnbsd-nat.c: Ditto.
11892 * avr-tdep.c: Ditto.
11893 * bfin-tdep.c: Ditto.
11894 * bsd-kvm.c: Ditto.
11895 * c-typeprintc: Ditto.
11896 * c-valprint.c: Ditto.
11897 * coff-pe-read.h: Ditto.
11898 * coffreead.c: Ditto.
11899 * cris-tdep.c: Ditto.
11900 * d-lang.c: Ditto.
11901 * darwin-nat-info.c: Ditto.
11902 * darwin-nat.c: Ditto.
11903 * dbug-rom.c: Ditto.
11904 * dbxread.c: Ditto.
11905 * dcache.c: Ditto.
11906 * dcache.h: Ditto.
11907 * dec-thread.c: Ditto.
11908 * defs.h: Ditto.
11909 * demangle.c: Ditto.
11910 * dicos-tdep.c: Ditto.
11911 * dictionary.c: Ditto.
11912 * dictionary.h: Ditto.
11913 * dink32-rom.c: Ditto.
11914 * disasm.c: Ditto.
11915 * doublest.c: Ditto.
11916 * dsrec.c: Ditto.
11917 * dummy-frame.c: Ditto.
11918 * dwarf2-frame.c: Ditto.
11919 * dwarf2expr.c: Ditto.
11920 * dwarf2loc.c: Ditto.
11921 * dwarf2read.c: Ditto.
11922 * elfread.c: Ditto.
11923 * environ.c: Ditto.
11924 * eval.c: Ditto.
11925 * event-top.h: Ditto.
11926 * exceptions.c: Ditto.
11927 * exceptions.h: Ditto.
11928 * exec.c: Ditto.
11929 * expprint.c: Ditto.
11930 * expression.h: Ditto.
11931 * f-exp.y: Ditto.
11932 * f-lang.c: Ditto.
11933 * f-lang.h: Ditto.
11934 * f-typeprint.c: Ditto.
11935 * f-valprint.c: Ditto.
11936 * fbsd-nat.c: Ditto.
11937 * findvar.c: Ditto.
11938 * fork-child.c: Ditto.
11939 * frame.c: Ditto.
11940 * frame.h: Ditto.
11941 * frv-linux-tdep.c: Ditto.
11942 * frv-tdep.c: Ditto.
11943 * gcore.c: Ditto.
11944 * gdb-stabs.h: Ditto.
11945 * gdb_assert.h: Ditto.
11946 * gdb_string.h: Ditto.
11947 * gdb_thread_db.h: Ditto.
11948 * gdb_wait.h: Ditto.
11949 * gdbarch.sh: Ditto.
11950 * gdbcore.h: Ditto.
11951 * gdbthread.h: Ditto.
11952 * gdbtypes.c: Ditto.
11953 * gdbtypes.h: Ditto.
11954 * gnu-nat.c: Ditto.
11955 * gnu-nat.h: Ditto.
11956 * gnu-v2-abi.c: Ditto.
11957 * gnu-v3-abi.c: Ditto.
11958 * go32-nat.c: Ditto.
11959 * gdbarch.c: Regenerate.
11960 * gdbarch.h: Regenerate.
11961
ac74f770
MS
119622011-01-07 Michael Snyder <msnyder@vmware.com>
11963
11964 * ax-gdb.c: Adjust some long output strings.
11965 * breakpoint.c: Ditto.
11966 * charset.c: Ditto.
11967 * cp-abi.c: Ditto.
11968 * infcall.c: Ditto.
11969 * infrun.c: Ditto.
11970 * linux-nat.c: Ditto.
11971 * solib-pa64.c: Ditto.
11972 * solib-som.c: Ditto.
11973
d8e22779
TT
119742011-01-06 Tom Tromey <tromey@redhat.com>
11975
11976 PR python/12367:
11977 * NEWS: Add item.
11978 * python/python.c (GdbMethods): Add "newest_frame" method.
11979 * python/python-internal.h (gdbpy_newest_frame): Declare.
11980 * python/py-frame.c (gdbpy_newest_frame): New function.
11981
a255712f
PP
119822010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11983
11984 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11985 * jit.c (jit_debug): New variable.
11986 (show_jit_debug): New function.
11987 (struct target_buffer): Use ULONGEST.
11988 (bfd_open_from_target_memory): Likewise.
11989 (jit_register_code, jit_inferior_init): Add debug output.
11990 (_initialize_jit): Register "debug jit" command.
11991
ccfc3d6e
TT
119922011-01-06 Tom Tromey <tromey@redhat.com>
11993
11994 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11995 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11996 and ARCH_FRAME.
11997
57126e4a
TT
119982011-01-06 Tom Tromey <tromey@redhat.com>
11999
12000 * python/py-frame.c (frapy_block): Use get_frame_block.
12001
16dfc9ce
JB
120022011-01-06 Joel Brobecker <brobecker@adacore.com>
12003
12004 Do not stop on SIGPRIO signals by default
12005 * infrun.c (_initialize_infrun): Unset signal_stop and
12006 signal_print for TARGET_SIGNAL_PRIO.
12007
b1ce2347
JB
120082011-01-06 Joel Brobecker <brobecker@adacore.com>
12009
12010 * ada-tasks.c: Fix style violation in comment.
12011
8f7e195f
JB
120122011-01-06 Joel Brobecker <brobecker@adacore.com>
12013
12014 * linespec.c (decode_compound, find_method): Remove trailing \n
12015 at end of error string.
12016 * solib-irix.c (irix_current_sos): Likewise.
12017 * varobj.c (uninstall_variable): Likewise.
12018
e9bdf92c
JB
120192011-01-06 Joel Brobecker <brobecker@adacore.com>
12020
12021 * copyright.py: New script.
12022 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12023 Launch emacs without exec'ing. Call copyright.py afterwards.
12024
3e43a32a
MS
120252011-01-05 Michael Snyder <msnyder@vmware.com>
12026
12027 * addrmap.c: Shorten lines of >= 80 columns.
12028 * arch-utils.c: Ditto.
12029 * arch-utils.h: Ditto.
12030 * ax-gdb.c: Ditto.
12031 * ax-general.c: Ditto.
12032 * bcache.c: Ditto.
12033 * blockframe.c: Ditto.
12034 * breakpoint.c: Ditto.
12035 * buildsym.c: Ditto.
12036 * c-lang.c: Ditto.
12037 * c-typeprint.c: Ditto.
12038 * charset.c: Ditto.
12039 * coffread.c: Ditto.
12040 * command.h: Ditto.
12041 * corelow.c: Ditto.
12042 * cp-abi.c: Ditto.
12043 * cp-namespace.c: Ditto.
12044 * cp-support.c: Ditto.
12045 * dbug-rom.c: Ditto.
12046 * dbxread.c: Ditto.
12047 * defs.h: Ditto.
12048 * dfp.c: Ditto.
12049 * dfp.h: Ditto.
12050 * dictionary.c: Ditto.
12051 * disasm.c: Ditto.
12052 * doublest.c: Ditto.
12053 * dwarf2-frame.c: Ditto.
12054 * dwarf2expr.c: Ditto.
12055 * dwarf2loc.c: Ditto.
12056 * dwarf2read.c: Ditto.
12057 * elfread.c: Ditto.
12058 * eval.c: Ditto.
12059 * event-loop.c: Ditto.
12060 * event-loop.h: Ditto.
12061 * exceptions.h: Ditto.
12062 * exec.c: Ditto.
12063 * expprint.c: Ditto.
12064 * expression.h: Ditto.
12065 * f-lang.c: Ditto.
12066 * f-valprint.c: Ditto.
12067 * findcmd.c: Ditto.
12068 * frame-base.c: Ditto.
12069 * frame-unwind.c: Ditto.
12070 * frame-unwind.h: Ditto.
12071 * frame.c: Ditto.
12072 * frame.h: Ditto.
12073 * gcore.c: Ditto.
12074 * gdb-stabs.h: Ditto.
12075 * gdb_assert.h: Ditto.
12076 * gdb_dirent.h: Ditto.
12077 * gdb_obstack.h: Ditto.
12078 * gdbcore.h: Ditto.
12079 * gdbtypes.c: Ditto.
12080 * gdbtypes.h: Ditto.
12081 * inf-ttrace.c: Ditto.
12082 * infcall.c: Ditto.
12083 * infcmd.c: Ditto.
12084 * inflow.c: Ditto.
12085 * infrun.c: Ditto.
12086 * inline-frame.h: Ditto.
12087 * language.c: Ditto.
12088 * language.h: Ditto.
12089 * libunwind-frame.c: Ditto.
12090 * libunwind-frame.h: Ditto.
12091 * linespec.c: Ditto.
12092 * linux-nat.c: Ditto.
12093 * linux-nat.h: Ditto.
12094 * linux-thread-db.c: Ditto.
12095 * machoread.c: Ditto.
12096 * macroexp.c: Ditto.
12097 * macrotab.c: Ditto.
12098 * main.c: Ditto.
12099 * maint.c: Ditto.
12100 * mdebugread.c: Ditto.
12101 * memattr.c: Ditto.
12102 * minsyms.c: Ditto.
12103 * monitor.c: Ditto.
12104 * monitor.h: Ditto.
12105 * objfiles.c: Ditto.
12106 * objfiles.h: Ditto.
12107 * osabi.c: Ditto.
12108 * p-typeprint.c: Ditto.
12109 * p-valprint.c: Ditto.
12110 * parse.c: Ditto.
12111 * printcmd.c: Ditto.
12112 * proc-events.c: Ditto.
12113 * procfs.c: Ditto.
12114 * progspace.c: Ditto.
12115 * progspace.h: Ditto.
12116 * psympriv.h: Ditto.
12117 * psymtab.c: Ditto.
12118 * record.c: Ditto.
12119 * regcache.c: Ditto.
12120 * regcache.h: Ditto.
12121 * remote-fileio.c: Ditto.
12122 * remote.c: Ditto.
12123 * ser-mingw.c: Ditto.
12124 * ser-tcp.c: Ditto.
12125 * ser-unix.c: Ditto.
12126 * serial.c: Ditto.
12127 * serial.h: Ditto.
12128 * solib-frv.c: Ditto.
12129 * solib-irix.c: Ditto.
12130 * solib-osf.c: Ditto.
12131 * solib-pa64.c: Ditto.
12132 * solib-som.c: Ditto.
12133 * solib-sunos.c: Ditto.
12134 * solib-svr4.c: Ditto.
12135 * solib-target.c: Ditto.
12136 * solib.c: Ditto.
12137 * somread.c: Ditto.
12138 * source.c: Ditto.
12139 * stabsread.c: Ditto.
12140 * stabsread.c: Ditto.
12141 * stack.c: Ditto.
12142 * stack.h: Ditto.
12143 * symfile-mem.c: Ditto.
12144 * symfile.c: Ditto.
12145 * symfile.h: Ditto.
12146 * symmisc.c: Ditto.
12147 * symtab.c: Ditto.
12148 * symtab.h: Ditto.
12149 * target-descriptions.c: Ditto.
12150 * target-memory.c: Ditto.
12151 * target.c: Ditto.
12152 * target.h: Ditto.
12153 * terminal.h: Ditto.
12154 * thread.c: Ditto.
12155 * top.c: Ditto.
12156 * tracepoint.c: Ditto.
12157 * tracepoint.h: Ditto.
12158 * ui-file.c: Ditto.
12159 * ui-file.h: Ditto.
12160 * ui-out.h: Ditto.
12161 * user-regs.c: Ditto.
12162 * user-regs.h: Ditto.
12163 * utils.c: Ditto.
12164 * valarith.c: Ditto.
12165 * valops.c: Ditto.
12166 * valprint.c: Ditto.
12167 * valprint.h: Ditto.
12168 * value.c: Ditto.
12169 * varobj.c: Ditto.
12170 * varobj.h: Ditto.
12171 * vec.h: Ditto.
12172 * xcoffread.c: Ditto.
12173 * xcoffsolib.c: Ditto.
12174 * xcoffsolib.h: Ditto.
12175 * xml-syscall.c: Ditto.
12176 * xml-tdesc.c: Ditto.
12177
9a2b4c1b
MS
121782011-01-05 Michael Snyder <msnyder@vmware.com>
12179
12180 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12181 * cli/cli-decode.c: Ditto.
12182 * cli/cli-dump.c: Ditto.
12183 * cli/cli-logging.c: Ditto.
12184 * cli/cli-script.c: Ditto.
12185 * cli/cli-setshow.c: Ditto.
12186 * common/signals.c: Ditto.
12187 * mi/mi-cmd-break.c: Ditto.
12188 * mi/mi-cmd-disas.c: Ditto.
12189 * mi/mi-cmd-stack.c: Ditto.
12190 * mi/mi-cmd-var.c: Ditto.
12191 * mi/mi-cmds.c: Ditto.
12192 * mi/mi-common.h: Ditto.
12193 * mi/mi-console.c: Ditto.
12194 * mi/mi-interp.c: Ditto.
12195 * mi/mi-main.c: Ditto.
12196 * osf-share/cma_attr.c: Ditto.
12197 * osf-share/cma_deb_core.h: Ditto.
12198 * osf-share/cma_debug_client.h: Ditto.
12199 * osf-share/cma_handle.h: Ditto.
12200 * osf-share/cma_mutex.h: Ditto.
12201 * osf-share/cma_stack_int.h: Ditto.
12202 * osf-share/cma_tcb_defs.h: Ditto.
12203 * python/py-auto-load.c: Ditto.
12204 * python/py-breakpoint.c: Ditto.
12205 * python/py-cmd.c: Ditto.
12206 * python/py-frame.c: Ditto.
12207 * python/py-objfile.c: Ditto.
12208 * python/py-param.c: Ditto.
12209 * python/py-progspace.c: Ditto.
12210 * python/py-symbol.c: Ditto.
12211 * python/py-value.c: Ditto.
12212 * python/python-internal.h: Ditto.
12213 * python/python.c: Ditto.
12214 * tui/tui-data.c: Ditto.
12215 * tui/tui-disasm.c: Ditto.
12216 * tui/tui-hooks.c: Ditto.
12217 * tui/tui-io.c: Ditto.
12218 * tui/tui-layout.c: Ditto.
12219 * tui/tui-regs.c: Ditto.
12220 * tui/tui-source.c: Ditto.
12221 * tui/tui-stack.c: Ditto.
12222 * tui/tui-win.c: Ditto.
12223 * tui/tui-windata.c: Ditto.
12224 * tui/tui-winsource.c: Ditto.
12225
44944448
JB
122262011-01-05 Joel Brobecker <brobecker@adacore.com>
12227
12228 * configure.ac, gdb.1: Copyright year update.
12229
ebedcab5
JK
122302011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12231
12232 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12233 this_pc_in_block, morestack_msym and morestack_name. Check for
12234 "__morestack" minimal symbol there.
12235
e5cc9f32
JB
122362011-01-03 Joel Brobecker <brobecker@adacore.com>
12237
12238 * symfile.c (find_sym_fns): Add call to dont_repeat.
12239
7b6bb8da
JB
122402011-01-01 Joel Brobecker <brobecker@adacore.com>
12241
12242 Copyright year update in most files (performed by copyright.sh).
12243
71ce852c
JB
122442011-01-01 Joel Brobecker <brobecker@adacore.com>
12245
12246 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12247
c3c1ebe8 12248For older changes see ChangeLog-2010.
c906108c
SS
12249\f
12250Local Variables:
12251mode: change-log
12252left-margin: 8
12253fill-column: 74
12254version-control: never
57da7796 12255coding: utf-8
c906108c 12256End:
This page took 1.800826 seconds and 4 git commands to generate.