2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0b6cb71e
DE
12011-12-14 Doug Evans <dje@google.com>
2
3 * defs.h (wait_to_die_with_timeout): Declare.
4 * utils.c: #include "gdb_wait.h".
5 (sigalrm_handler, wait_to_die_with_timeout): New functions.
6 * ser-pipe.c: Don't #include "gdb_wait.h".
7 (pipe_close): Give child a chance to die on its own after closing
8 its stdin before SIGTERM'ing it.
9
6475f2fe 102011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 11 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
12
13 * ada-lang.c (add_nonlocal_symbols): Initialize data to
14 all zeros. Remove setting of data.arg_sym to NULL.
15
7b50312a
PA
162011-12-14 Pedro Alves <pedro@codesourcery.com>
17
18 PR threads/10729
19
20 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
21 pointer.
22 (linux_nat_prepare_to_resume): New global.
23 (lwp_free): New.
24 (purge_lwp_list): Use it.
25 (add_lwp): Call linux_nat_new_thread even on the first LWP.
26 Adjust to interface change.
27 (delete_lwp): Call lwp_free instead of xfree.
28 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
29 (linux_handle_syscall_trap, linux_handle_extended_wait)
30 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
31 linux_nat_prepare_to_resume before resuming.
32 (linux_stop_lwp): New.
33 (linux_nat_set_new_thread): Adjust.
34 (linux_nat_set_prepare_to_resume): New.
35 * linux-nat.h (struct arch_lwp_info): Forward declare.
36 (struct lwp_info) <arch_private>: New field.
37 (linux_stop_lwp): Declare.
38 (linux_nat_set_new_thread): Adjust.
39 (linux_nat_set_prepare_to_resume): New.
40
41 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
42 (struct i386_debug_reg_state): Move to i386-nat.h.
43 (dr_mirror): Comment.
44 (i386_debug_reg_state): New.
45 (i386_update_inferior_debug_regs): Simplify.
46 (i386_stopped_data_address): Use the debug register state from the
47 inferior, not from the local cache.
48 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
49 unset_status fields. New get_addr and get_control fields.
50 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
51 (DR_NADDR, DR_STATUS): New.
52 (struct i386_debug_reg_state): Moved from i386-nat.c.
53
54 * amd64-linux-nat.c (struct arch_lwp_info): New.
55 (amd64_linux_dr): Delete global.
56 (amd64_linux_dr_get_addr): New.
57 (amd64_linux_dr_get_control): New.
58 (amd64_linux_dr_unset_status): Delete.
59 (amd64_linux_dr_set_addr): Reimplement.
60 (amd64_linux_dr_reset_addr): Delete.
61 (update_debug_registers_callback): New.
62 (amd64_linux_dr_set_control): Reimplement.
63 (amd64_linux_dr_set_addr): Reimplement.
64 (amd64_linux_prepare_to_resume): New.
65 (amd64_linux_new_thread): Change parameter to an lwp pointer.
66 Reimplement.
67 (_initialize_amd64_linux_nat): No longer install
68 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
69 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
70 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
71 amd64_linux_prepare_to_resume.
72 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
73 (DR_CONTROL): Delete.
74 (struct arch_lwp_info): New.
75 (i386_linux_dr): Delete global.
76 (i386_linux_dr_set_control): Reimplement.
77 (i386_linux_dr_get_addr): New.
78 (i386_linux_dr_set_addr): Reimplement.
79 (i386_linux_dr_get_control): New.
80 (update_debug_registers_callback): New.
81 (i386_linux_dr_unset_status): Delete.
82 (i386_linux_dr_set_addr): Reimplement.
83 (i386_linux_prepare_to_resume): New.
84 (i386_linux_new_thread): Change parameter to an lwp pointer.
85 Reimplement.
86 (_initialize_i386_linux_nat): No longer install
87 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
88 i386_linux_dr_get_control as i386_dr_low.get_control. Install
89 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
90 i386_linux_prepare_to_resume.
91
92 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
93 lwp pointer. Adjust.
94 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
95 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
96 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
97 * s390-nat.c (s390_fix_watch_points): Likewise.
98
99 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
100 (DR_CONTROL): Delete.
101 (i386_darwin_dr_reset_addr): Delete.
102 (i386_darwin_dr_get_addr): New.
103 (i386_darwin_dr_get_control): New.
104 * go32-nat.c
105 (go32_get_dr7, go32_get_dr): New.
106 (init_go32_ops): No longer install i386_dr_low.reset_addr.
107 Install go32_get_dr7 as i386_dr_low.get_control. Install
108 go32_get_dr as i386_dr_low.get_addr.
109 * i386bsd-nat.c (i386bsd_dr_get): New.
110 (i386bsd_dr_reset_addr): Delete.
111 (i386bsd_dr_get_addr): New.
112 (i386bsd_dr_get_status): Use i386bsd_dr_get.
113 (i386bsd_dr_get_control): New.
114 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
115 (i386bsd_dr_get_addr): New.
116 (i386bsd_dr_get_control): New.
117 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
118 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
119 i386bsd_dr_get_control as i386_dr_low.get_control. Install
120 i386bsd_dr_get_addr as i386_dr_low.get_addr.
121 * windows-nat.c (init_windows_ops): No longer install
122 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
123 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
124 as i386_dr_low.get_addr.
125 (cygwin_get_dr): New.
126 (cygwin_get_dr7): New.
127
dd110abf
PA
1282011-12-14 Pedro Alves <pedro@codesourcery.com>
129
130 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
131 target_write_raw_memory.
132 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
133 target_write_raw_memory.
134 * microblaze-linux-tdep.c
135 (microblaze_linux_memory_remove_breakpoint): Use
136 target_write_raw_memory.
137 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
138 target_write_raw_memory.
139
ad32032e
JB
1402011-12-14 Joel Brobecker <brobecker@adacore.com>
141
142 * linespec.c (decode_line_internal): Make static.
143
d14c4eb7
YQ
1442011-12-14 Yao Qi <yao@codesourcery.com>
145
146 * breakpoint.c (create_breakpoint): Set canonical.addr_string
147 for static tracepoint.
148
25564b66 1492011-12-13 Joel Brobecker <brobecker@adacore.com>
150
151 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
152 * version.in: Bump version to 7.4.50.20111213-cvs.
153
8837a20f
JB
1542011-12-13 Joel Brobecker <brobecker@adacore.com>
155
156 * NEWS: Create a new section for the next release branch.
157 Rename the section of the current branch, now that it has
158 been cut.
159
7dda8cff
JB
1602011-12-11 Joel Brobecker <brobecker@adacore.com>
161
162 * ada-lang.c (ada_exception_support_info_sniffer): Improve
163 error message.
164
3eecfa55
JB
1652011-12-11 Joel Brobecker <brobecker@adacore.com>
166
167 * ada-lang.c (struct ada_inferior_data) [exception_info]:
168 New field.
169 (exception_info): Delete.
170 (ada_exception_support_info_sniffer): Get exception_support_info
171 data from our per-inferior data. Adjust code accordingly.
172 (ada_unhandled_exception_name_addr_from_raise): Likewise.
173 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
174 (ada_executable_changed_observer): Delete.
175 (_initialize_ada_language): Remove call to
176 observer_attach_executable_changed.
177
a6af7abe
JB
1782011-12-11 Joel Brobecker <brobecker@adacore.com>
179
180 * ada-lang.c (ada_has_this_exception_support): Raise an error
181 if we could find the Ada exception hook in the Ada runtime,
182 but no debugging info for that hook.
183
f17011e0
JB
1842011-12-11 Joel Brobecker <brobecker@adacore.com>
185
186 * ada-lang.c (ada_has_this_exception_support): New function,
187 extracted out of ada_exception_sal and ada_exception_sal.
188 (ada_exception_support_info_sniffer): Simplify by using
189 ada_has_this_exception_support.
190 (ada_exception_sal): Replace unnecessary checks by assertions.
191 Minor simplifications.
192
d3fbdd86
AS
1932011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
194
195 * breakpoint.c (update_global_location_list): Remove nested
196 definition of `b'(-Wshadow).
197
eacd795a
AS
1982011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
199
200 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
201 `error_flag'(-Wshadow).
202
ad13d8df
AS
2032011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
204
205 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
206 `abfd'(-Wshadow).
207
917793af
AS
2082011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
209
210 * annotate.c (annotate_array_section_begin): Rename `index' to
211 `idx'(-Wshadow).
212
d48ebb5b
AS
2132011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
214
215 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
216 `idx'(-Wshadow).
217
9ed936ec
AS
2182011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
219
220 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
221 `syscall' to `syscall_number'(-Wshadow).
222
a35ddb44
AS
2232011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
224
225 * ada-lang.c (remove_extra_symbols): Rename `remove' to
226 `remove_p'(-Wshadow).
227
e5e61bd7
AS
2282011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
229
230 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
231 `ren_sym'(-Wshadow).
232
d200ab1e
DE
2332011-12-10 Doug Evans <dje@google.com>
234
b0df02fd
DE
235 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
236 debug_types_section. All uses updated.
237 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
238 to is_debug_types_section.
239
d200ab1e
DE
240 * python/py-auto-load.c (source_section_scripts): Call xfree
241 instead of free.
242
4511b1ba
YQ
2432011-12-10 Hui Zhu <teawater@gmail.com>
244 Yao Qi <yao@codesourcery.com>
245
246 * tracepoint.c (start_tracing): Clear `inserted' flag.
247
df5a4bd3
HZ
2482011-12-10 Hui Zhu <teawater@gmail.com>
249
250 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
251
1afeeb75
AS
2522011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
253
254 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
255 `bpoint'(-Wshadow).
256
80e1d417
AS
2572011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
258
259 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
260 `marker' variables to `sal2' and `tpmarker' respectively
261 (-Wshadow).
262
04ca3c22
AP
2632011-12-09 Andrew Pinski <apinski@cavium.com>
264
265 * linespec.c (hash_address_entry): Use iterative_hash_object on each
266 field rather than the struct itself.
267
8a2c437b
TT
2682011-12-09 Tom Tromey <tromey@redhat.com>
269
270 * breakpoint.c (compare_breakpoints): New function.
271 (clear_command): Remove duplicate breakpoints. Properly clean
272 up.
273
280711e7
MR
2742011-12-08 Maciej W. Rozycki <macro@mips.com>
275 Maciej W. Rozycki <macro@codesourcery.com>
276
277 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
278 address chunks retrieved from decoded lui/addiu pairs.
279
4c2051c6
MR
2802011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
281
282 * mips-tdep.c (extended_offset): Correct calculation.
283 (unpack_mips16): Correct bitfield positions used for extraction
284 of the immediate argument; fix sign-extension of same.
285 (extended_mips16_next_pc): Correct B instruction's offset
286 calculation. Correct register decoding of the BEQZ and BNEZ
287 as well as jump-register instructions. Handle compact jumps.
288
ff011ed7
TT
2892011-12-08 Tom Tromey <tromey@redhat.com>
290
291 * objfiles.h (struct objfile): Remove obsolete comment.
292 * objfiles.c (build_objfile_section_table): Remove obsolete
293 comment.
294
7cd3876c
SS
2952011-12-07 Stan Shebs <stan@codesourcery.com>
296
297 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
298 maintainer of the tic6x target.
299
35f73cfc
UW
3002011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
301
302 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
303 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
304 (arm_deal_with_atomic_sequence_raw): Likewise.
305 (arm_deal_with_atomic_sequence): Likewise.
306 (arm_software_single_step): Call it.
307 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
308
94eae614
UW
3092011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
310
311 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
312 where appropriate.
313 * s390-tdep.h: Likewise.
314
13b8d0c6
TG
3152011-12-07 Tristan Gingold <gingold@adacore.com>
316
317 * machoread.c (macho_symtab_read): Do not consider N_OPT as
318 a debugging stab. Improve complaint message.
319
5436df95
MR
3202011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
321
322 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
323 load adjustment if still within the prologue.
324
040dff2a
MR
3252011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
326
327 * mips-tdep.c (mips32_next_pc): Fix floating point condition
328 code mask.
329
754d7c78
MR
3302011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
331
332 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
333 of BLTZ* and BGEZ* instructions.
334
91912e4d
MR
3352011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
336
337 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
338 performed to determine whether an address refers to standard
339 MIPS or MIPS16 code.
340 (mips16_next_pc): Use mips_pc_is_mips16 instead of
341 is_mips16_addr.
342
f0ba3972
PA
3432011-12-06 Pedro Alves <pedro@codesourcery.com>
344
345 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
346 (breakpoint_xfer_memory): ... this. Change prototype. Handle
347 memory writes too.
348 * breakpoint.h (breakpoint_restore_shadows): Delete.
349 (breakpoint_xfer_memory): Declare.
350 * mem-break.c (default_memory_insert_breakpoint)
351 (default_memory_remove_breakpoint): Use target_write_raw_memory.
352 (memory_xfer_partial): Rename to ...
353 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
354 here.
355 (memory_xfer_partial): New.
356 (target_write_raw_memory): New.
357 * target.h (target_write_raw_memory): New.
358
31aba06f
DE
3592011-12-06 Doug Evans <dje@google.com>
360
361 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
362
f8eba3c6
TT
3632011-12-06 Joel Brobecker <brobecker@acacore.com>
364
365 * language.h (struct language_defn): Add new component
366 la_symbol_name_compare.
367 * symfile.h (struct quick_symbol_functions): Update the profile
368 of parameter "name_matcher" for the expand_symtabs_matching
369 method. Update the documentation accordingly.
370 * ada-lang.h (ada_name_for_lookup): Add declaration.
371 * ada-lang.c (ada_name_for_lookup): New function, extracted out
372 from ada_iterate_over_symbols.
373 (ada_iterate_over_symbols): Do not encode symbol name anymore.
374 (ada_expand_partial_symbol_name): Adjust profile.
375 (ada_language_defn): Add value for la_symbol_name_compare field.
376 * linespec.c: #include "ada-lang.h".
377 (iterate_name_matcher): Add language parameter. Replace call
378 to strcmp_iw by call to language->la_symbol_name_compare.
379 (decode_variable): Encode COPY if current language is Ada.
380 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
381 of name_matcher parameter. Adjust call to name_matcher.
382 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
383 (expand_partial_symbol_names): Update profile of parameter "fun".
384 * psymtab.h (expand_partial_symbol_names): Update profile of
385 parameter "fun".
386 * symtab.c (demangle_for_lookup): Update function documentation.
387 (search_symbols_name_matches): Add language parameter.
388 (expand_partial_symbol_name): Likewise.
389 * c-lang.c (c_language_defn, cplus_language_defn)
390 (asm_language_defn, minimal_language_defn): Add value for
391 la_symbol_name_compare field.
392 * d-lang.c (d_language_defn): Likewise.
393 * f-lang.c (f_language_defn): Ditto.
394 * jv-lang.c (java_language_defn): Ditto.
395 * m2-lang.c (m2_language_defn): Ditto.
396 * objc-lang.c (objc_language_defn): Ditto.
397 * opencl-lang.c (opencl_language_defn): Ditto.
398 * p-lang.c (pascal_language_defn): Ditto.
399 * language.c (unknown_language_defn, auto_language_defn)
400 (local_language_defn): Ditto.
401
4022011-12-06 Tom Tromey <tromey@redhat.com>
403
404 * linespec.c (iterate_over_all_matching_symtabs): Use
405 LA_ITERATE_OVER_SYMBOLS.
406 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
407 (find_function_symbols, decode_variable): Remove Ada special
408 case.
409 * language.h (struct language_defn) <la_iterate_over_symbols>: New
410 field.
411 (LA_ITERATE_OVER_SYMBOLS): New macro.
412 * language.c (unknown_language_defn, auto_language_defn)
413 (local_language_defn): Update.
414 * c-lang.c (c_language_defn, cplus_language_defn)
415 (asm_language_defn, minimal_language_defn): Update.
416 * d-lang.c (d_language_defn): Update.
417 * f-lang.c (f_language_defn): Update.
418 * jv-lang.c (java_language_defn): Update.
419 * m2-lang.c (m2_language_defn): Update.
420 * objc-lang.c (objc_language_defn): Update.
421 * opencl-lang.c (opencl_language_defn): Update.
422 * p-lang.c (pascal_language_defn): Update.
423 * ada-lang.c (ada_iterate_over_symbols): New function.
424 (ada_language_defn): Update.
425
4262011-12-06 Tom Tromey <tromey@redhat.com>
427 Joel Brobecker <brobecker@acacore.com>
428
429 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
430 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
431 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
432 PR shlibs/8929, PR shlibs/7393:
433 * python/py-type.c (compare_maybe_null_strings): Rename from
434 compare_strings.
435 (check_types_equal): Update.
436 * utils.c (compare_strings): New function.
437 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
438 location changes.
439 * tracepoint.c (scope_info): Update.
440 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
441 * symtab.h (iterate_over_minimal_symbols)
442 (iterate_over_some_symtabs, iterate_over_symtabs)
443 (find_pcs_for_symtab_line, iterate_over_symbols)
444 (demangle_for_lookup): Declare.
445 (expand_line_sal): Remove.
446 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
447 (lookup_symtab_callback): New functions.
448 (lookup_symtab): Rewrite.
449 (demangle_for_lookup): New function, extract from
450 lookup_symbol_in_language.
451 (lookup_symbol_in_language): Use it.
452 (iterate_over_symbols): New function.
453 (find_line_symtab): Update.
454 (find_pcs_for_symtab_line): New functions.
455 (find_line_common): Add 'start' argument.
456 (decode_line_spec): Update. Change argument to 'flags', change
457 interpretation.
458 (append_expanded_sal): Remove.
459 (append_exact_match_to_sals): Remove.
460 (expand_line_sal): Remove.
461 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
462 Remove.
463 <map_symtabs_matching_filename>: New field.
464 * stack.c (func_command): Only look in the current program space.
465 Use DECODE_LINE_FUNFIRSTLINE.
466 * source.c (line_info): Set pspace on sal. Check program space in
467 the loop. Use DECODE_LINE_LIST_MODE.
468 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
469 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
470 * python/python.c (gdbpy_decode_line): Update.
471 * psymtab.c (partial_map_expand_apply): New function.
472 (partial_map_symtabs_matching_filename): Rename from
473 lookup_partial_symbol. Update arguments.
474 (lookup_symtab_via_partial_symtab): Remove.
475 (psym_functions): Update.
476 * objc-lang.h (parse_selector, parse_method): Don't declare.
477 (find_imps): Update.
478 * objc-lang.c (parse_selector, parse_method): Now static.
479 (find_methods): Change arguments. Fill in a vector of symbol
480 names.
481 (uniquify_strings): New function.
482 (find_imps): Change arguments.
483 * minsyms.c (iterate_over_minimal_symbols): New function.
484 * linespec.h (enum decode_line_flags): New.
485 (struct linespec_sals): New.
486 (struct linespec_result) <canonical>: Remove.
487 <pre_expanded, addr_string, sals>: New fields.
488 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
489 (decode_line_full): Declare.
490 (decode_line_1): Update.
491 * linespec.c (struct address_entry, struct linespec_state, struct
492 collect_info): New types.
493 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
494 (eq_address_entry, maybe_add_address): New functions.
495 (total_number_of_methods): Remove.
496 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
497 functions.
498 (find_methods): Change arguments. Don't canonicalize input.
499 Simplify logic.
500 (add_matching_methods, add_constructors)
501 (build_canonical_line_spec): Remove.
502 (filter_results, convert_results_to_lsals): New functions.
503 (decode_line_2): Change arguments. Rewrite for new data
504 structures.
505 (decode_line_internal): Rename from decode_line_1. Change
506 arguments. Add cleanups. Update for new data structures.
507 (linespec_state_constructor, linespec_state_destructor)
508 (decode_line_full, decode_line_1): New functions.
509 (decode_indirect): Change arguments. Update.
510 (locate_first_half): Use skip_spaces.
511 (decode_objc): Change arguments. Update for new data structures.
512 Simplify logic.
513 (decode_compound): Change arguments. Add cleanups. Remove
514 fallback code, replace with error.
515 (struct decode_compound_collector): New type.
516 (collect_one_symbol): New function.
517 (lookup_prefix_sym): Change arguments. Update.
518 (compare_symbol_name, add_all_symbol_names_from_pspace)
519 (find_superclass_methods ): New functions.
520 (find_method): Rewrite.
521 (struct symtab_collector): New type.
522 (add_symtabs_to_list, collect_symtabs_from_filename): New
523 functions.
524 (symtabs_from_filename): Change API. Rename from
525 symtab_from_filename.
526 (collect_function_symbols): New function.
527 (find_function_symbols): Change API. Rename from
528 find_function_symbol. Rewrite.
529 (decode_all_digits): Change arguments. Rewrite.
530 (decode_dollar): Change arguments. Use decode_variable.
531 (decode_label): Change arguments. Rewrite.
532 (collect_symbols): New function.
533 (minsym_found): Change arguments. Rewrite.
534 (check_minsym, search_minsyms_for_name)
535 (add_matching_symbols_to_info): New function.
536 (decode_variable): Change arguments. Iterate over all symbols.
537 (symbol_found): Remove.
538 (symbol_to_sal): New function.
539 (init_linespec_result, destroy_linespec_result)
540 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
541 New functions.
542 (decode_digits_list_mode, decode_digits_ordinary): New functions.
543 * dwarf2read.c (dw2_map_expand_apply): New function.
544 (dw2_map_symtabs_matching_filename): Rename from
545 dw2_lookup_symtab. Change arguments.
546 (dwarf2_gdb_index_functions): Update.
547 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
548 * defs.h (compare_strings): Declare.
549 * cli/cli-cmds.c (compare_strings): Move to utils.c.
550 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
551 filter_sals.
552 (compare_symtabs, filter_sals): New functions.
553 * breakpoint.h (struct bp_location) <line_number, source_file>:
554 New fields.
555 (struct breakpoint) <line_number, source_file>: Remove.
556 <filter>: New field.
557 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
558 (momentary_breakpoint_from_master, add_location_to_breakpoint):
559 Update for changes to locations.
560 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
561 breakpoint.
562 (create_breakpoint_sal): Add 'filter' argument.
563 (remove_sal, expand_line_sal_maybe): Remove.
564 (create_breakpoints_sal): Remove 'sals' argument. Handle
565 pre-expanded sals and the filter.
566 (parse_breakpoint_sals): Use decode_line_full.
567 (check_fast_tracepoint_sals): Use get_sal_arch.
568 (create_breakpoint): Create a linespec_sals. Update.
569 (break_range_command): Use decode_line_full. Update.
570 (until_break_command): Update.
571 (clear_command): Update match conditions for linespec.c changes.
572 Use DECODE_LINE_LIST_MODE.
573 (say_where): Update for changes to locations.
574 (bp_location_dtor): Free 'source_file'.
575 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
576 (update_static_tracepoint): Update for changes to locations.
577 (update_breakpoint_locations): Disable ranged breakpoint if too
578 many locations match. Update.
579 (addr_string_to_sals): Use decode_line_full. Resolve all sal
580 PCs.
581 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
582 (decode_line_spec_1): Update. Change argument name to 'flags',
583 change interpretation.
584 * block.h (block_containing_function): Declare.
585 * block.c (block_containing_function): New function.
586 * skip.c (skip_function_command): Update.
587 (skip_re_set): Update.
588 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
589 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
590 * NEWS: Add entry.
591
5922011-12-06 Tom Tromey <tromey@redhat.com>
593
594 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
595 breakpoint's pspace to be NULL.
596 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
597 * breakpoint.c (init_raw_breakpoint): Conditionally set
598 breakpoint's pspace.
599 (init_breakpoint_sal): Don't set breakpoint's pspace.
600 (prepare_re_set_context): Conditionally switch program space.
601 (addr_string_to_sals): Check executing_startup on location's
602 program space.
603
6042011-12-06 Tom Tromey <tromey@redhat.com>
605
606 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
607 * breakpoint.c (should_be_inserted): Explicitly check if program
608 space is executing startup.
609 (describe_other_breakpoints): Update.
610 (disable_breakpoints_before_startup): Change executing_startup
611 earlier. Remove loop.
612 (enable_breakpoints_after_startup): Likewise.
613 (init_breakpoint_sal): Don't use bp_startup_disabled.
614 (create_breakpoint): Don't use bp_startup_disabled.
615 (update_global_location_list): Use should_be_inserted.
616 (bkpt_re_set): Update.
617
75c8c9d7
TT
6182011-12-06 Tom Tromey <tromey@redhat.com>
619
620 * python/lib/gdb/command/pretty_printers.py
621 (InfoPrettyPrinter.invoke1): Remove extra double quote.
622
7376e450
TT
6232011-12-06 Tom Tromey <tromey@redhat.com>
624
625 * NEWS: Add MI news.
626
c642a434
UW
6272011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
628
629 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
630 (S390_LAST_BREAK_REGNUM): Likewise.
631 (S390_SYSTEM_CALL_REGNUM): Likewise.
632 (S390_NUM_REGS): Update.
633
634 (s390_regmap_last_break): Add declaration.
635 (s390x_regmap_last_break): Likewise.
636 (s390_regmap_system_call): Likewise.
637
638 (tdesc_s390_linux32v1): Add declaration.
639 (tdesc_s390_linux32v2): Likewise.
640 (tdesc_s390_linux64v1): Likewise.
641 (tdesc_s390_linux64v2): Likewise.
642 (tdesc_s390x_linux64v1): Likewise.
643 (tdesc_s390x_linux64v2): Likewise.
644
645 * s390-tdep.c: Include new target description files
646 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
647 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
648 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
649 (s390_cannot_store_register): New function.
650 (s390_write_pc): Likewise.
651 (s390_dwarf_regmap): Add fields for new registers.
652 (s390_regmap_gregset): Likewise.
653 (s390x_regmap_gregset): Likewise.
654 (s390_regmap_fpregset): Likewise.
655 (s390_regmap_upper): Likewise.
656 (s390_regmap_last_break): New variable.
657 (s390x_regmap_last_break): Likewise.
658 (s390_regmap_system_call): Likewise.
659 (s390_last_break_regset): Likewise.
660 (s390x_last_break_regset): Likewise.
661 (s390_system_call_regset): Likewise.
662 (s390_upper_regset_sections): Rename to ...
663 (s390_linux64_regset_sections): ... this.
664 (s390_linux32_regset_sections): New variable.
665 (s390x_linux64_regset_sections): Likewise.
666 (s390_linux32v1_regset_sections): Likewise.
667 (s390_linux32v2_regset_sections): Likewise.
668 (s390_linux64v1_regset_sections): Likewise.
669 (s390_linux64v2_regset_sections): Likewise.
670 (s390x_linux64v1_regset_sections): Likewise.
671 (s390x_linux64v2_regset_sections): Likewise.
672 (s390_regset_from_core_section): Handle .reg-s390-last-break and
673 .reg-s390-system-call core file sections.
674 (s390_core_read_description): Check for presence of
675 .reg-s390-last-break and .reg-s390-system-call core file
676 sections and return appropriate target description.
677 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
678 "last_break" and "system_call" in target description. Install
679 appropriate gdbarch_core_regset_sections array.
680 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
681 (_initialize_s390_tdep): Initialize additional target descriptions.
682
683 * s390-nat.c: Include "elf/common.h".
684 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
685 (have_regset_last_break): New static variable.
686 (have_regset_system_call): Likewise.
687 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
688 (s390_native_collect): Likewise.
689 (fetch_regset, store_regset, check_regset): New functions.
690 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
691 and S390_SYSTEM_CALL_REGNUM.
692 (s390_linux_store_inferior_registers): Likewise.
693 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
694 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
695
696 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
697 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
698 (s390-linux32v1-expedite): Define.
699 (s390-linux32v2-expedite): Likewise.
700 (s390-linux64v1-expedite): Likewise.
701 (s390-linux64v2-expedite): Likewise.
702 (s390x-linux64v1-expedite): Likewise.
703 (s390x-linux64v2-expedite): Likewise.
704
705 * features/s390-linux32.xml: Add orig_r2 register.
706 * features/s390-linux64.xml: Likewise.
707 * features/s390x-linux64.xml: Likewise.
708 * features/s390-linux32v1.xml: New file.
709 * features/s390-linux32v2.xml: Likewise.
710 * features/s390-linux64v1.xml: Likewise.
711 * features/s390-linux64v2.xml: Likewise.
712 * features/s390x-linux64v1.xml: Likewise.
713 * features/s390x-linux64v2.xml: Likewise.
714
715 * features/s390-linux32.c: Regenerate.
716 * features/s390-linux64.c: Likewise.
717 * features/s390x-linux64.c: Likewise.
718 * features/s390-linux32v1.c: New generated file.
719 * features/s390-linux32v2.c: Likewise.
720 * features/s390-linux64v1.c: Likewise.
721 * features/s390-linux64v2.c: Likewise.
722 * features/s390x-linux64v1.c: Likewise.
723 * features/s390x-linux64v2.c: Likewise.
724
725 * regformats/s390-linux32.dat: Regenerate.
726 * regformats/s390-linux64.dat: Regenerate.
727 * regformats/s390x-linux64.dat: Regenerate.
728 * regformats/s390-linux32v1.dat: New generated file.
729 * regformats/s390-linux32v2.dat: Likewise.
730 * regformats/s390-linux64v1.dat: Likewise.
731 * regformats/s390-linux64v2.dat: Likewise.
732 * regformats/s390x-linux64v1.dat: Likewise.
733 * regformats/s390x-linux64v2.dat: Likewise.
734
336060f3
PA
7352011-12-05 Pedro Alves <pedro@codesourcery.com>
736
737 * linux-nat.c (resume_stopped_resumed_lwps): Call
738 registers_changed.
739
049e32d3
PA
7402011-12-05 Pedro Alves <pedro@codesourcery.com>
741
742 * breakpoint.c: Include record.h.
743 (breakpoints_always_inserted_mode): Return false when the record
744 target is in use.
745
5c03c7f9 7462011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
747
748 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
749 Reinstate perror_with_name call on ptrace error. Remove #if 0.
750 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
751 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
752
fbbd034e
AS
7532011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
754
755 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
756 `i'(-Wshadow).
757
a5ff8356 7582011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
759
760 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
761
7622011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
763
a5ff8356
AS
764 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
765 of `tdep'(-Wshadow).
766
93f2a35e
JK
7672011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
768
769 Fix compilation --without-expat.
770 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
771 from ...
772 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
773
2268b414
JK
7742011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
775 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
778 * features/library-list-svr4.dtd: New file.
779 * remote.c (PACKET_qXfer_libraries_svr4): New.
780 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
781 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
782 * solib-svr4.c (struct svr4_library_list): New.
783 [HAVE_LIBEXPAT]: Include xml-support.h.
784 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
785 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
786 [HAVE_LIBEXPAT] (svr4_library_list_children)
787 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
788 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
789 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
790 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
791 (svr4_read_so_list): Extend the corruption message by addresses.
792 (svr4_current_sos): New variable library_list, call
793 svr4_current_sos_via_xfer_libraries.
794 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
795
585861ea
JK
7962011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 PR threads/13448
799 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
800 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
801
9750bca9
JK
8022011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 PR breakpoints/13346
805 * dwarf2read.c (process_psymtab_comp_unit): Set
806 PSYMTABS_ADDRMAP_SUPPORTED.
807 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
808 validity. New field psymtabs_addrmap_supported.
809 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
810 psymtabs_addrmap_supported.
811 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
812 !PSYMTABS_ADDRMAP_SUPPORTED.
813 (dump_psymtab, maintenance_info_psymtabs): Print also
814 psymtabs_addrmap_supported.
815
f28c316a
DE
8162011-12-01 Doug Evans <dje@google.com>
817
818 * python/py-type.c (type_object_methods): Fix "array" doc string.
819
fc0ae648
AB
8202011-12-01 Andrew Burgess <aburgess@broadcom.com>
821
822 * source.c (print_source_lines_base): Fix missing braces on else
823 clause leading to additional output.
824
d6db1fab
UW
8252011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
826
827 * s390-nat.c (SUBOFF): Remove.
828 (s390_native_supply, s390_native_collect): New functions.
829 (supply_gregset, supply_fpregset): Use s390_native_supply.
830 (fill_gregset, fill_fpregset): Use s390_native_collect.
831
832 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
833 (s390_unwind_pseudo_register): New function.
834 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
835 registers instead of PC and CC.
836 (s390_backchain_frame_unwind_cache): Likewise.
837 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
838 full GPR pseudos.
839 (s390_trad_frame_prev_register): New function.
840 (s390_frame_prev_register): Use it.
841 (s390_sigtramp_frame_prev_register): Likewise.
842 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
843 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
844 special callback to unwind any pseudo.
845
846 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
847 * features/s390-core64.xml: Likewise.
848 * features/s390x-core64.xml: Likewise.
849 * features/s390-linux32.c: Regenerate.
850 * features/s390-linux64.c: Likewise.
851 * features/s390x-linux64.c: Likewise.
852
1dd635ac
UW
8532011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
854
855 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
856
0161e4b9
UW
8572011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
858
859 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
860 instruction. Add more diagnostic output.
861
0c36327f
AS
8622011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
863
864 * MAINTAINERS (Write After Approval): Add myself to the list.
865
b4264740
SD
8662011-11-29 Sanjoy Das <sdas@igalia.com>
867
868 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
869 (jit_bfd_try_read_symtab): Fix comments.
870
87326c78
DD
8712011-11-28 DJ Delorie <dj@redhat.com>
872
873 * NEWS: Mention RL78 simulator.
874
1e3a8f45
JB
8752011-11-28 Joel Brobecker <brobecker@adacore.com>
876
877 * symfile.h (struct quick_symbol_functions): Fix the documentation
878 of field map_matching_symbols, as symbols are sorted using
879 strcmp_iw_ordered, not strcmp_iw.
880
265e52c3
JB
8812011-11-28 Paul Hilfinger <hilfinger@adacore.com>
882
883 * symfile.h (struct quick_symbol_functions): Update the
884 documentation for field map_matching_symbols.
885
1a1d5513
JB
8862011-11-28 Joel Brobecker <brobecker@adacore.com>
887
888 * ada-lang.c (compare_names): Fix wrong return value in case
889 string1 starts with the same contents as string2, followed
890 by an underscore that do not start a symbol name suffix.
891
5d9c5995
PM
8922011-11-28 Phil Muldoon <pmuldoon@redhat.com>
893
894 PR python/13369
895 PR python/13374
896
897 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
898 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
899 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
900 exceptions.
901 * python/py-type.c (typy_strip_typedefs): Ditto.
902 (typy_legacy_template_argument): Ditto.
903 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
904 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
905
2bf50f6f
JB
9062011-11-27 Joel Brobecker <brobecker@acacore.com>
907
908 * remote.c (remote_get_tracepoint_status): Delete addrbuf
909 local variable. Avoid use of sprintf_vma.
910
744ab88c
SD
9112011-11-27 Sanjoy Das <sdas@igalia.com>
912
913 Fix regression in jit.exp.
914 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
915 (jit_register_code): Set the jit_objfile_data field to the correct
916 value.
917
46ad3598
UW
9182011-11-25  Uros Bizjak  <ubizjak@gmail.com>
919
920 * alpha-tdep.c (br_opcode): New.
921 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
922 (alpha_deal_with_atomic_sequence): New function.
923 (alpha_gdbarch_init): Handle single stepping of atomic sequences
924 with alpha_deal_with_atomic_sequence.
925
e4c5f296
TG
9262011-11-24 Tristan Gingold <gingold@adacore.com>
927
928 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
929 fields. Add oso_sym, end_sym and nbr_syms.
930 (macho_register_oso): Change interface.
931 (macho_symtab_add_minsym): New function.
932 (macho_symtab_read): Rewritten.
933 (get_archive_prefix_len): Remove trailing blanks.
934 (oso_el_compare_name): Add comment.
935 (struct macho_sym_hash_entry): New structure.
936 (macho_relocate_common_syms): Remove.
937 (macho_sym_hash_newfunc): New function.
938 (macho_resolve_oso_sym_with_minsym): Likewise.
939 (macho_add_oso_symfile): Rewritten.
940 (macho_symfile_read_all_oso): Remove trailing blanks.
941 Adjust code to free oso vector.
942 (macho_symfile_read): Likewise.
943 Move code to initialize minimal symbol
944
130854df
MR
9452011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
946
947 * mips-tdep.c (extended_offset): Fix formatting.
948
3d7bb9d9
DE
9492011-11-23 Doug Evans <dje@google.com>
950
951 * dwarf2read.c (dw2_lookup_symtab): Add comment.
952 (dw2_expand_symtabs_with_filename): Ditto.
953 (dw2_expand_symtabs_matching): Ditto.
954 (dw2_map_symbol_filenames): Ditto.
955
1fbf5ada
JB
9562011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
957
958 * ada-lang.c (assign_aggregate): Minor reformatting.
959
d984108d
JB
9602011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
961
962 * ada-lang.c (assign_aggregate): Remove declaration of local
963 variable `i' which is shadowing another variable with the same
964 name declared in the outer scope.
965
18af8284
JB
9662011-11-23 Joel Brobecker <brobecker@adacore.com>
967
968 * ada-lang.c (get_base_type): Renames base_type. Adjust all
969 calls throughout this file.
970
1fc7b5d7
JB
9712011-11-23 Joel Brobecker <brobecker@adacore.com>
972
973 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
974 FormatMessage.
975
36dfb11c
TT
9762011-11-22 Tom Tromey <tromey@redhat.com>
977
978 PR mi/8444:
979 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
980 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
981 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
982 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
983 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
984 (print_it_catch_syscall, print_it_catch_exec)
985 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
986 (bpstat_print): Add 'kind' argument. Handle
987 TARGET_WAITKIND_LOADED.
988 * infrun.c (normal_stop): Update for bpstat_print change. Don't
989 handle TARGET_WAITKIND_LOADED here.
990 * breakpoint.h (bpstat_print): Update.
991
5bd6aa83
TT
9922011-11-22 Tom Tromey <tromey@redhat.com>
993
994 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
995
f5afdc18
TT
9962011-11-22 Tom Tromey <tromey@redhat.com>
997
998 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
999 Use static_assert to check the size of
1000 async_reason_string_lookup.
1001 * common/gdb_assert.h (static_assert): New macro.
1002
a3769e0c
AM
10032011-11-22 Alan Modra <amodra@gmail.com>
1004
1005 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1006 destination calculation. Don't expect >> to sign extend. Don't
1007 add a break if branch lands inside the sequence anywhere.
1008
56767571
KS
10092011-11-21 Keith Seitz <keiths@redhat.com>
1010
1011 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1012 -var-evaluate-expression of an enumeration and fix expected result.
1013 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1014
8443c207
KY
10152011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1016
1017 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1018 the case where osdata->items is empty. Rename column names to a
1019 canonical form to avoid problems with unusual column names.
1020
97643830
YQ
10212011-11-21 Yao Qi <yao@codesourcery.com>
1022
1023 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1024
f196051f
SS
10252011-11-20 Stan Shebs <stan@codesourcery.com>
1026
1027 * NEWS: Mention tracepoint additions.
1028 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1029 * breakpoint.c (print_one_breakpoint_location): Identify
1030 tracepoints as such when reporting hit counts, report
1031 trace buffer usage.
1032 (create_tracepoint_from_upload): Copy status info.
1033 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1034 add fields user_name, notes, start_time, stop_time.
1035 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1036 * tracepoint.c (trace_user): New global.
1037 (trace_notes): New global.
1038 (trace_stop_notes): New global.
1039 (start_tracing): Add argument and trace note handling.
1040 (stop_tracing): Ditto.
1041 (trace_start_command): Add notes argument.
1042 (trace_stop_command): Ditto.
1043 (trace_status_command): Report additional status info.
1044 (trace_status_mi): Similarly.
1045 (trace_save): Update, record tracepoint status.
1046 (set_disconnected_tracing): Call target method directly.
1047 (send_disconnected_tracing_value): Remove.
1048 (set_trace_user): New function.
1049 (set_trace_notes): New function.
1050 (set_trace_stop_notes): New function.
1051 (parse_trace_status): Handle additional status.
1052 (parse_tracepoint_status): New function.
1053 (parse_tracepoint_definition): Call it.
1054 (tfile_get_tracepoint_status): New function.
1055 (init_tfile_ops): Use it.
1056 (_initialize_tracepoint): Add new setshows.
1057 * target.h (struct target_ops): New methods to_get_tracepoint_status
1058 and to_set_trace_notes.
1059 (target_get_tracepoint_status): New macro.
1060 (target_set_trace_notes): New macro.
1061 * target.c (update_current_target): Add new methods.
1062 * remote.c (remote_get_tracepoint_status): New function.
1063 (remote_set_trace_notes): New function.
1064 (init_remote_ops): Add them.
1065 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1066 (mi_cmd_trace_stop): Ditto.
1067
3623dc3a
SD
10682011-11-20 Sanjoy Das <sdas@igalia.com>
1069
1070 * jit.c: Include regcache.h.
1071 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1072 (jit_unwind_reg_set_impl, free_reg_value_impl)
1073 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1074 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1075 (jit_frame_prev_register, jit_dealloc_cache)
1076 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1077 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1078 jit_prepend_unwinder.
1079 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1080
1825a88d
SD
10812011-11-20 Sanjoy Das <sdas@igalia.com>
1082
1083 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1084 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1085 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1086 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1087 (finalize_symtab, jit_object_close_impl)
1088 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1089 (free_objfile_data): New functions.
1090 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1091 function.
1092
784c47ee
SD
10932011-11-20 Sanjoy Das <sdas@igalia.com>
1094
1095 * jit.c: Include gdb-dlfcn.h.
1096 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1097 (jit_reader_load, jit_reader_load_command)
1098 (jit_reader_unload_command): New functions.
1099 (_initialize_jit): Add commands "jit-reader-load" and
1100 "jit-reader-unload".
1101
a2d08b9e
SD
11022011-11-20 Sanjoy Das <sdas@igalia.com>
1103
1104 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1105 * config.in: Add new #define HAVE_LIBDL.
1106 * configure.ac: Add check for -ldl.
1107 * configure: Re-generated by autoconf.
1108 * gdb-dlfcn.c: New file.
1109 * gdb-dlfcn.h: New file.
1110
b8e0a31c
SD
11112011-11-20 Sanjoy Das <sdas@igalia.com>
1112
1113 * config.in: Add new #defines: JIT_READER_DIR and
1114 JIT_READER_DIR_RELOCATABLE.
1115 * configure.ac: New GDB directory entry for jit-reader-dir.
1116 * configure: Re-generated by autoconf.
1117 * jit.c: New static variable: const char *jit_reader_dir.
1118 (_initialize_jit): Relocate jit_reader_dir.
1119
f997c383
SD
11202011-11-20 Sanjoy Das <sdas@igalia.com>
1121
1122 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1123 $(includedir)/gdb.
1124 * configure.ac: Generate a correct value for TARGET_PTR for
1125 jit-reader.h. Tell configure to generate jit-reader.h from
1126 jit-reader.in.
1127 * configure: Re-generated by autoconf.
1128 * jit-reader.in: New file.
1129 * jit.c: Include jit-reader.h.
1130
dc8c0494
SD
11312011-11-20 Sanjoy Das <sdas@igalia.com>
1132
1133 * MAINTAINERS (Write After Approval): Add myself to the list.
1134
01efb936
UW
11352011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1136
1137 * findvar.c (read_frame_register_value): Respect value_offset
1138 of the register value. Remove big-endian special case.
1139
732f3f12
TT
11402011-11-18 Tom Tromey <tromey@redhat.com>
1141
1142 PR build/7196:
1143 * remote.c (putpkt_for_catch_errors): New function.
1144 (remote_kill): Use it.
1145
bfccc43c
YQ
11462011-11-18 Yao Qi <yao@codesourcery.com>
1147
1148 * breakpoint.c (create_breakpoint): Produce query message according to
1149 breakpoint's type.
1150 Allocate tracepoint per correct type.
1151 Don't check SALs for pending fast tracepoints.
1152 * tracepoint.c (process_tracepoint_on_disconnect): New.
1153 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1154
3ea46bff
YQ
11552011-11-18 Yao Qi <yao@codesourcery.com>
1156
1157 * breakpoint.c (install_breakpoint): Add one more parameter so that
1158 update_global_location_list is called conditionally.
1159 (create_fork_vfork_event_catchpoint): Update.
1160 (create_syscall_event_catchpoint): Update.
1161 (create_breakpoint_sal): Update.
1162 (create_breakpoint_sal): Update. Call do_cleanups before
1163 install_breakpoint.
1164 * ada-lang.c (create_ada_exception_catchpoint): Update.
1165 * breakpoint.h (install_breakpoint): Update declaration.
1166
598cfb71
UW
11672011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1168
1169 * spu-tdep.c (spu_return_value): Fix handling of
1170 TYPE_CALLING_CONVENTION annotation.
1171
caf4328c
UW
11722011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1173
1174 * skip.c (skip_function_command): Work around uninitialized
1175 variable warning.
1176
2b54dda2
DM
11772011-11-16 David S. Miller <davem@davemloft.net>
1178
1179 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1180 'tv_usec' to long for printf since these fields have a type which
1181 varies.
1182
93bf33fd
DE
11832011-11-15 Doug Evans <dje@google.com>
1184
1185 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1186
9cc10fd1
PK
11872011-11-15 Paul Koning <paul_koning@dell.com>
1188
1189 * python/py-type.c (typy_get_composite): New function.
1190 (typy_nonzero): New function.
1191 (typy_values): Rename from typy_fields.
1192 (typy_fields): New function.
1193 (typy_length): Raise exception if not struct, union, or enum type.
1194 (typy_getitem): Ditto.
1195 (typy_has_key): Ditto.
1196 (typy_make_iter): Ditto.
1197
c011a4f4
DE
11982011-11-15 Doug Evans <dje@google.com>
1199
1963ff96 1200 PR gdb/8367
c011a4f4
DE
1201 * NEWS: Mention new parameter basenames-may-differ.
1202 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1203 ! basenames_may_differ.
1204 * psymtab.c (lookup_partial_symtab): Ditto.
1205 * symtab.c (lookup_symtab): Ditto.
1206 (basenames_may_differ): New global.
1207 (_initialize_symtab): New parameter basenames-may-differ.
1208 * symtab.h (basenames_may_differ): Declare.
1209
865ecab4
LM
12102011-11-15 Pedro Alves <pedro@codesourcery.com>
1211 Luis Machado <lgustavo@codesourcery.com>
1212
1213 * auxv.c: Include observer.h.
1214 (auxv_inferior_data_cleanup): New.
1215 (invalidate_auxv_cache_inf): New.
1216 (invalidate_auxv_cache): New.
1217 (get_auxv_inferior_data): New.
1218 (auxv_inferior_data): New static global.
1219 (auxv_info): New structure.
1220 (target_auxv_search): Use get_auxv_inferior_data instead of
1221 target_read_alloc and don't free cached buffers.
1222 (fprint_target_auxv): Likewise
1223 (_initialize_auxv): Register per-inferior auxv cache and register
1224 observers to invalidate auxv cache when needed.
1225
ed59ded5
DE
12262011-11-14 Doug Evans <dje@google.com>
1227
37acd67c 1228 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1229 * NEWS: Add mention.
1230 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1231 adding "!" command, always add it.
1232 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1233 command of length one.
1234
405f8e94
SS
12352011-11-14 Stan Shebs <stan@codesourcery.com>
1236 Kwok Cheung Yeung <kcy@codesourcery.com>
1237
1238 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1239 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1240 the minimum instruction size for fast tracepoints.
1241 * target.h (struct target_ops): Add new method
1242 to_get_min_fast_tracepoint_insn_len.
1243 (target_get_min_fast_tracepoint_insn_len): New.
1244 * target.c (update_current_target): Set up new target operation.
1245 * remote.c (remote_write_bytes_aux): Fix typo.
1246 (remote_get_min_fast_tracepoint_insn_len): New.
1247 (init_remote_ops): Initialize new field.
1248
3e05895e
TT
12492011-11-14 Tom Tromey <tromey@redhat.com>
1250
1251 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1252 (encode_actions): Likewise.
1253
1e4d1764
YQ
12542011-11-14 Yao Qi <yao@codesourcery.com>
1255
1256 * remote.c (struct remote_state): <install_in_trace> new field.
1257 (PACKET_InstallInTrace): New enum value.
1258 (remote_install_in_trace_feature): Support InstallInTrace.
1259 (remote_supports_install_in_trace): Likewise.
1260 (remote_protocol_features): Likewise.
1261 (_initialize_remote): Likewise.
1262 (remote_can_download_tracepoint): New.
1263 * target.h (struct target): New field
1264 `to_can_download_tracepoint'.
1265 (target_can_download_tracepoint): New macro.
1266 * target.c (update_current_target): Update.
1267 * breakpoint.h (struct bp_location): Add comment on field
1268 `duplicate'.
3ccd4ac6
YQ
1269 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1270 and tracepoint.
1e4d1764
YQ
1271 (remove_breakpoints): Don't remove tracepoints.
1272 (tracepoint_locations_match ): New.
1273 (breakpoint_locations_match): Call it.
1274 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1275 (download_tracepoint_locations): New.
1276 (update_global_location_list): Call it.
1277 * tracepoint.c (find_matching_tracepoint): Delete.
1278 (find_matching_tracepoint_location): Renamed from
1279 find_matching_tracepoint. Return bp_location rather than
1280 tracepoint.
1281 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1282 tracepoint is found.
1283
e8ba3115
YQ
12842011-11-14 Yao Qi <yao@codesourcery.com>
1285
1286 * target.h (struct target): <to_download_tracepoint> Change type
1287 of parameter from tracepoint to bp_location.
1288 * target.c (update_current_target): Update.
1289 * tracepoint.c (start_tracing): Update.
1290 * remote.c (remote_download_tracepoint): Remove loop for each location
1291 of a tracepoint.
1292
edcc485a
MR
12932011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1294
1295 * i386-nat.c (i386_insert_hw_breakpoint): Call
1296 i386_update_inferior_debug_regs.
1297 (i386_remove_hw_breakpoint): Likewise.
1298
3742cc8b
YQ
12992011-11-14 Yao Qi <yao@codesourcery.com>
1300
1301 * breakpoint.c (init_raw_breakpoint): Call
1302 add_location_to_breakpoint to replace duplicated code.
1303 (add_location_to_breakpoint): Adjust the breakpoint's
1304 address prior to allocating a location.
1305
71eba9c2 13062011-11-12 Matt Rice <ratmice@gmail.com>
1307
1308 * macrocmd.c (macro_no_macro_info): New function.
1309 (macro_expand_command): Use macro_no_macro_info.
1310 (macro_expand_once_command): Ditto.
1311 (info_macro_command): Add argument processing,
1312 move info_definitions_command here.
1313 (_initialize_macrocmd): Remove info definitions command.
1314 Add arguments to info macro help text.
1315 * NEWS: Replace info definitions command with new info macro options.
1316
731971ed
KS
13172011-11-11 Keith Seitz <keiths@redhat.com>
1318
1319 PR gdb/12843
1320 * linespec.c (locate_first_half): Keep ':' if it looks
1321 like it could be part of a Windows path starting with
1322 a drive letter.
1323
6953d224
PA
13242011-11-10 Pedro Alves <pedro@codesourcery.com>
1325
1326 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1327 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1328
0c94aa73
PA
13292011-11-10 Pedro Alves <pedro@codesourcery.com>
1330
1331 * target.c (target_waitstatus_to_string): Handle
1332 TARGET_WAITKIND_NO_RESUMED.
1333
f6b47be4
DE
13342011-11-10 Doug Evans <dje@google.com>
1335
74e2f255
DE
1336 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1337 `need_fullname'.
1338 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1339 (map_partial_symbol_filenames): Ditto. All callers updated.
1340 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1341 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1342 parameter need_fullname.
1343
256f06f3
DE
1344 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1345 * source.c (symtab_to_fullname): Ditto.
1346
50f182aa
DE
1347 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1348 * gdb-demangle.h: ... here. New file.
1349 * demangle.c: #include "gdb-demangle.h".
1350 (_initialize_demangler): Use initialize_file_ftype for prototype.
1351 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1352 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1353 from utils.c
1354 * utils.c: Update. #include "gdb-demangle.h".
1355 * symtab.h (asm_demangle): Delete.
1356 (demangle): Move declaration next to use.
1357 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1358 * dwarf2read.c: #include "gdb-demangle.h".
1359 * gnu-v2-abi.c: Ditto.
1360 * jv-typeprint.c: Ditto.
1361 * mdebugread.c: Ditto.
1362 * p-typeprint.c: Ditto.
1363 * stabsread.c: Ditto.
1364 * printcmd.c: Ditto.
1365 (asm_demangle): Delete declaration.
1366 * tui/tui-stack.c: #include "gdb-demangle.h".
1367
f6b47be4
DE
1368 * python/py-type.c (typy_fields_items): Call check_typedef.
1369
22355c90
JB
13702011-11-10 Joel Brobecker <brobecker@adacore.com>
1371
1372 * findvar.c (read_frame_register_value): Read the correct bytes
1373 from registers on big-endian architectures.
1374
bd119cf1 13752011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1376
1377 * procfs.c (load_syscalls): Make a cleanup.
1378 (open_procinfo_files): fd==0 is ok.
1379
0a86f364
JB
13802011-11-10 Joel Brobecker <brobecker@adacore.com>
1381
1382 * procfs.c (iterate_over_mappings): Call do_cleanups before
1383 returning.
1384
9bc118a5
DE
13852011-11-09 Doug Evans <dje@google.com>
1386
1387 * gdbtypes.c (check_typedef): Document that this function can
1388 throw an exception.
1389
a7860e76
TT
13902011-11-09 Tom Tromey <tromey@redhat.com>
1391
1392 PR c++/13342:
1393 * valops.c (value_full_object): Return early if real type is
1394 smaller than the enclosing type.
1395
60965737
YQ
13962011-11-08 Yao Qi <yao@codesourcery.com>
1397
1398 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1399
72a2e3dc
MI
14002011-11-08 Meador Inge <meadori@codesourcery.com>
1401
1402 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1403 register when the frame can't be determined.
1404 * arm-tdep.c (arm_analyze_prologue): Ditto.
1405
ce3b0ff7
SS
14062011-11-07 Stan Shebs <stan@codesourcery.com>
1407
1408 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1409
2b914b52
JB
14102011-11-07 Joel Brobecker <brobecker@adacore.com>
1411
1412 * infrun.c (handle_inferior_event): Minor reformatting.
1413
6f809020
DE
14142011-11-05 Doug Evans <dje@google.com>
1415
1416 * source.c (forget_cached_source_info_for_objfile): Move call to
1417 objfile->sf->qf->forget_cached_source_info outside of
1418 ALL_OBJFILE_SYMTABS loop.
1419 (forget_cached_source_info): Delete unused variable `s'.
1420
75d12218
JK
14212011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 * i386-nat.c (dr_ref_count): Remove unused variable.
1424
e565b837
DE
14252011-11-05 Doug Evans <dje@google.com>
1426
1427 * main.c (captured_main): Set lim_at_start before calling
1428 make_command_stats_cleanup.
1429
0a1c4d10
DE
14302011-11-04 Doug Evans <dje@google.com>
1431
1432 * utils.c: #include "timeval-utils.h".
1433 (cmd_stats): Rename start_time to start_cpu_time.
1434 New member start_wall_time.
1435 (report_command_stats): Report wall time.
1436 (make_command_stats_cleanup): Record start wall time.
1437
a1d705ee
TT
14382011-11-04 Tom Tromey <tromey@redhat.com>
1439
1440 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1441
81de56be
RO
14422011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1443
1444 * coff-pe-read.c: Include defs.h before bfd.h.
1445
3ab1ec27
PM
14462011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1447
1448 PR Python/13345
1449
1450 * python/python.c (python_run_simple_file): Expand tilde in path.
1451
cd829959
PM
14522011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1453
1454 PR Python/13363
1455
1456 * python/py-type.c (typy_lookup_type): Do not return a type in
1457 an exception handler.
1458
080ad648
JK
14592011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 Eli Zaretskii <eliz@gnu.org>
1461
1462 * linux-nat.c (_initialize_linux_nat): Improve help
1463 for `info proc stat', `info proc status', `info proc cwd',
1464 `info proc cmdline' and `info proc exe'.
1465
3065dfb6
SS
14662011-11-02 Stan Shebs <stan@codesourcery.com>
1467
1468 String collection for tracepoints.
1469 * NEWS: Mention string collection.
1470 * common/ax.def (tracenz): New bytecode.
1471 * ax-gdb.h (trace_string_kludge): Declare.
1472 * ax-gdb.c: Include valprint.h and c-lang.h.
1473 (trace_string_kludge): New global.
1474 (gen_traced_pop): Add string case.
1475 (agent_command): Add string case.
1476 * tracepoint.h (decode_agent_options): Declare.
1477 * tracepoint.c: Include cli-utils.h.
1478 (decode_agent_options): New function.
1479 (validate_actionline): Call it.
1480 (encode_actions_1): Ditto.
1481 * target.h (struct target_ops): New method to_supports_string_tracing.
1482 (target_supports_string_tracing): New macro.
1483 * target.c (update_current_target): Add to_supports_string_tracing.
1484 * remote.c (struct remote_state): New field string_tracing.
1485 (remote_string_tracing_feature): New function.
1486 (remote_protocol_features): New feature tracenz.
1487 (remote_supports_string_tracing): New function.
1488 (init_remote_ops): Set to_supports_string_tracing.
1489
f179e162
JK
14902011-11-02 Pedro Alves <pedro@codesourcery.com>
1491 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 * linux-nat.c: Include cli/cli-utils.h.
1494 (enum info_proc_what): New.
1495 (linux_nat_info_proc_cmd): Rename to ...
1496 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1497 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1498 status_f and stat_f from WHAT. Throw error on extra parameters.
1499 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1500 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1501 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1502 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1503 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1504 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1505 `info proc cmdline', `info proc exe' and `info proc all' as real
1506 subcommands of `info proc'.
1507
7b35ec7f 15082011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1509
1510 * Makefile.in: (SFILES): Add skip.c.
1511 (HFILES_NO_SRCDIR): Add skip.h.
1512 (COMMON_OBS): Add skip.o.
1513 * skip.h, skip.c: New.
1514 * breakpoint.h (set_default_breakpoint): Remove.
1515 (get_sal_arch): Declare.
1516 * breakpoint.c: Remove default_breakpoint_valid,
1517 default_breakpoint_address, default_breakpoint_symtab,
1518 default_breakpoint_line, default_breakpoint_pspace variables.
1519 (get_sal_arch): Make public.
1520 (set_default_breakpoint): Remove.
1521 (parse_breakpoint_sals, create_breakpoint, clear_command,
1522 decode_line_spec_1): Remove uses of default_breakpoint variables;
1523 replaced with function calls into stack.c.
1524 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1525 * cli/cli-cmds.c: Add skiplist.
1526 (init_cmd_lists): Initialize skiplist.
1527 (init_cli_cmds): Fix comment (classes of commands appear in
1528 alphabetical order).
1529 * infrun.c (handle_inferior_event): Add check that we don't step into
1530 a function whose pc is marked for skip.
1531 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1532 last_displayed_addr, last_displayed_symtab, last_displayed_line
1533 variables.
1534 (set_last_displayed_sal): New static function.
1535 (print_frame_info): Switch call to set_default_breakpoint to call to
1536 set_last_displayed_sal.
1537 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1538 get_last_displayed_pspace, get_last_displayed_addr,
1539 get_last_displayed_symtab, get_last_displayed_line,
1540 get_last_displayed_sal): New public functions.
1541 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1542 get_last_displayed_pspace, get_last_displayed_addr,
1543 get_last_displayed_symtab, get_last_displayed_line,
1544 get_last_displayed_sal): Declare.
1545
b60e1588
JL
15462011-11-01 Justin Lebar <justin.lebar@gmail.com>
1547
1548 * MAINTAINERS (Write After Approval): Add myself to the list.
1549
d31647d2
YQ
15502011-10-29 Yao Qi <yao@codesourcery.com>
1551
1552 * infcmd.c (disconnect_command): Call disconnect_tracing.
1553
b1d96efd
JK
15542011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1555
1556 Code cleanup.
1557 * symtab.c (skip_prologue_sal): Code reformatting.
1558
4dfb2365
JK
15592011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1560
1561 PR symtab/13208
1562 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1563 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1564 SAI.
1565
0e5bf2a8
PA
15662011-10-28 Pedro Alves <pedro@codesourcery.com>
1567
1568 * linux-nat.c (linux_nat_filter_event): Remove `options'
1569 parameter, and dead code that used it. If we're handling a
1570 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1571 in our lwp list, re-add it.
1572 (check_zombie_leaders): New.
1573 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1574 wait for children with WNOHANG, and always wait for all children.
1575 Don't check for no resumed children upfront. Simplify wait loop.
1576 Check for zombie thread group leaders after handling all wait
1577 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1578 unwaited-for children left.
1579 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1580 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1581 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1582 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1583
821296b7
SA
15842011-10-28 Sterling Augustine <saugustine@google.com>
1585
1586 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1587 * symtab.c (free_completion_list): New function.
1588 (do_free_completion_list): Likewise.
1589 (default_make_symbol_completion_list_break_on): New variable
1590 back_to. Call make_cleanup and discard_cleanups.
1591 (make_source_files_completion_list): Likewise.
1592
03c3051a
PK
15932011-10-28 Paul Koning <paul_koning@dell.com>
1594
1595 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1596 * NEWS: Mention deep_items.
1597
8e7ebaf5
PA
15982011-10-28 Alen Skondro <askondro@gmail.com>
1599
8de33dc2 1600 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1601 defined.
1602
e0c6ef61
MI
16032011-10-27 Meador Inge <meadori@codesourcery.com>
1604
1605 * MAINTAINERS (Write After Approval): Add myself to the list.
1606
b56d6f31
JB
16072011-10-27 Joel Brobecker <brobecker@adacore.com>
1608
1609 * value.h (read_frame_register_value): Add declaration.
1610 * findvar.c (read_frame_register_value): New function.
1611 (value_from_register): Use read_frame_register_value
1612 instead of get_frame_register_value + value_contents_copy
1613 to get value contents.
1614
d234ef5c
DE
16152011-10-27 Doug Evans <dje@google.com>
1616
1617 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1618 source_script_from_stream if it may have been found on the search path.
1619 * python/py-auto-load.c (source_section_scripts): Pass full path to
1620 source_python_script_for_objfile.
1621 * python/python.c (source_python_script): Delete stream parameter.
1622 All callers updated.
1623 (source_python_script_for_objfile): Ditto.
1624 * python/python-internal.h (source_python_script_for_objfile): Update.
1625 * python/python.h (source_python_script): Update.
1626
d849d44f
TT
16272011-10-27 Tom Tromey <tromey@redhat.com>
1628
1629 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1630 (ada_sals_for_line): Remove declarations.
1631
2231f1fb
KP
16322011-10-27 Kevin Pouget <kevin.pouget@st.com>
1633
1634 Move unwind reasons to an external .def file
1635 * frame.c (frame_stop_reason_string): Rewrite using
1636 unwind_stop_reasons.def.
1637 * frame.h (enum unwind_stop_reason): Likewise.
1638 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1639 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1640 constants for bound-checking.
1641 * unwind_stop_reasons.def: New file.
1642 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1643 instead of a distinct value.
1644
f77b9a5d
PM
16452011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1646
1647 PR python/13331
1648
1649 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1650 (convert_values_to_python): Return on Python tuple allocation
1651 failure. Return NULL on value conversion error.
1652
76dce0be
PM
16532011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1654
1655 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1656 (bppy_set_task): Ditto.
1657 (bppy_delete_breakpoint): Ditto.
1658 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1659 (gdbpy_lookup_global_symbol): Ditto.
1660 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1661 * python/py-frame.c (frapy_is_valid): Ditto.
1662 (frame_info_to_frame_object): Ditto.
1663 * python/py-type.c (typy_lookup_type): Ditto.
1664 (typy_getitem): Ditto.
1665 (typy_has_key): Ditto.
1666 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1667
f17b6955
JB
16682011-10-26 Joel Brobecker <brobecker@adacore.com>
1669
1670 * gdbarch.h: Regenerate.
1671
86ba1042
JB
16722011-10-26 Meador Inge <meadori@codesourcery.com>
1673
1674 * gdbarch.sh (function_list): Use 'pstring' when printing
1675 'gcore_bfd_target'.
1676 * gdbarch.c: Regenerate.
1677
c34fd852
UW
16782011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1679
1680 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1681 and frame caches if PTID refers to all threads of a process.
1682
931bb47f
UW
16832011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1684
1685 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1686 to create_breakpoint.
1687
88aed45e
UW
16882011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1689
1690 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1691 (ppc_sysv_abi_push_dummy_call): Use it.
1692 (do_ppc_sysv_return_value): Likewise.
1693 (ppc64_sysv_abi_push_dummy_call): Likewise.
1694 (ppc64_sysv_abi_return_value): Likewise.
1695
3eaf3fa2
PK
16962011-10-26 Paul Koning <paul_koning@dell.com>
1697
1698 * python/lib/gdb/types.py (deepitems): New function.
1699
913460fc
PK
17002011-10-25 Paul Koning <paul_koning@dell.com>
1701
1702 PR python/13327
1703
1704 * python/py-value.c (value_to_value_object): Remove fetching of
1705 the value if it was lazy.
1706 (valpy_get_is_lazy): New function.
1707 (valpy_fetch_lazy): New function.
1708
2b5b9d09
JB
17092011-10-24 Joel Brobecker <brobecker@adacore.com>
1710
1711 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1712 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1713
e21ffe51
PA
17142011-10-24 Pedro Alves <pedro@codesourcery.com>
1715
1716 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1717 event, in non-stop, if not stopping, make sure the new lwp has
1718 last_resume_kind set to resume_continue. Assert that when we're
1719 resuming the new lwp, its last_resume_kind is resume_continue.
1720
7aee8dc2
PA
17212011-10-24 Pedro Alves <pedro@codesourcery.com>
1722
1723 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1724 already set when marking the event thread as not executing in
1725 non-stop mode.
1726
4b4e080e
PA
17272011-10-24 Pedro Alves <pedro@codesourcery.com>
1728
1729 * infrun.c (handle_inferior_event): Add debug output for
1730 TARGET_WAITKIND_NO_HISTORY.
1731
baacfb07
PM
17322011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1733
1734 * NEWS: Move set/show extended-prompt to "New Options". Expand
1735 description. Fix typos.
1736
8432bc41
PM
17372011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1738
1739 PR python/13310
1740
1741 * python/py-param.c (call_doc_function): Correctly deference on
1742 function exit.
1743
6cda5a20
JB
17442011-10-21 Joel Brobecker <brobecker@adacore.com>
1745
1746 * ada-tasks.c (print_ada_task_info): Fix computation of
1747 number of tasks displayed in command output.
1748
13294f7d
JK
17492011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 Ulrich Weigand <uweigand@de.ibm.com>
1751
1752 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1753 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1754 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1755 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1756 gdbarch_unwind_pc.
1757
460c1c54
CC
17582011-10-20 Cary Coutant <ccoutant@google.com>
1759
1760 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1761 section to...
1762 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1763 flag. Adjust all callers.
1764 (process_psymtab_comp_unit): Remove adjustment for type section.
1765
a10964d1
AR
17662011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1767
1768 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1769 arguments by adding OBJFILE. Instead of getting objfile from
1770 symbol's symtab, use new argument OBJFILE.
1771 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1772 arguments by adding OBJFILE.
1773 * gdb/dwarf2read.c (new_symbol_full): Change call to
1774 cp_scan_for_anonymous_namespaces to match new signature.
1775 * gdb/stabsread.c (define_symbol): Change call to
1776 cp_scan_for_anonymous_namespaces to match new signature.
1777
27ca1a5b
PM
17782011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1779
1780 PR python/13308
1781 PR python/13309
1782
1783 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1784 leak.
1785 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1786 leak. Delete unused variables.
1787
9df2fbc4
PM
17882011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1789
1790 PR python/12656
1791
1792 * python/py-frame.c (frapy_read_var): Use const struct *block.
1793 * python/py-type.c (typy_lookup_typename): Likewise.
1794 (typy_lookup_type): Likewise.
1795 (typy_legacy_template_argument): Likewise.
1796 (typy_template_argument): Likewise.
1797 (gdbpy_lookup_type): Likewise.
1798 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1799 * python/py-block.c (blpy_block_object): Likewise.
1800 (blpy_iter): Likewise.
1801 (blpy_get_start): Likewise.
1802 (blpy_get_end): Likewise.
1803 (blpy_get_function): Likewise.
1804 (blpy_get_superblock): Likewise.
1805 (set_block): Likewise.
1806 (block_to_block_object): Likewise.
1807 (block_object_to_block): Likewise.
1808 (blpy_is_valid): Likewise.
1809 (blpy_get_global_block): New function.
1810 (blpy_get_static_block): New function.
1811 (blpy_is_global): New function.
1812 (blpy_is_static): New function.
1813 * blockframe.c (block_innermost_frame): Likewise.
1814 * valops.c (value_of_variable): Likewise.
1815 * frame.h: Update prototypes.
1816 * python/python-internal.h: Likewise.
1817 * value.h: Likewise.
1818
4743b735
CC
18192011-10-19 Cary Coutant <ccoutant@google.com>
1820
1821 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1822 type_offset field.
1823
6caca83c
CC
18242011-10-19 Cary Coutant <ccoutant@google.com>
1825
1826 * dwarf2read.c (peek_abbrev_code): New function.
1827 (dw2_get_file_names): Check for dummy compilation units.
1828 (create_debug_types_hash_table): Likewise.
1829 (process_psymtab_comp_unit): Likewise.
1830 (load_partial_comp_unit): Likewise.
1831 (load_full_comp_unit): Likewise.
1832
43136979
AR
18332011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1834
1835 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1836 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1837 pt_phdr if PT_PHDR was found.
1838
0a07729b
TT
18392011-10-17 Joost van der Sluis <joost@cnoc.nl>
1840
1841 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1842 type or "<unnamed type"> when there is no name assigned.
1843 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1844 avoid a sigint when no name is assigned.
1845
21ae7a4d
JK
18462011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 Revert:
1849 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * dwarf2expr.c (ctx_no_read_reg): New function.
1851 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1852 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1853 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1854 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1855
32d1c362
DE
18562011-10-16 Doug Evans <dje@google.com>
1857
1858 * NEWS: Document python gdb.printing.register_pretty_printer's new
1859 `replace' parameter.
1860
da096638
KS
18612011-10-14 Keith Seitz <keiths@redhat.com>
1862
1863 PR c++/13225
1864 * eval.c (evaluate_subexp_standard): Do not construct
1865 an array of types; pass the value array directly to
1866 find_overload_match.
1867 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1868 (rank_function): Take an array of values instead of types.
1869 (rank_one_type): Add struct value * parameter.
1870 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1871 (rank_function): For each argument, pass the argument's
1872 value to rank_one_type.
1873 (rank_one_type): Add VALUE parameter.
1874 If the parameter type is a pointer and the argument type
1875 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1876 VALUE is zero.
1877 Update all calls to rank_one_type, passing NULL for new
1878 VALUE parameter.
1879 * valarith.c (value_user_defined_cpp_op): Do not construct
1880 an array of types; pass the value array directly to
1881 find_overload_match.
1882 * valops.c (find_overload_method_list): Take an array of
1883 values instead of types.
1884 Save the type of OBJP for later use.
1885 Update calls to find_oload_champ, and find_oload_champ_namespace.
1886 (find_oload_champ_namespace): Take an array of values instead
1887 of types.
1888 (find_oload_champ_namespace_loop): Likewise.
1889 (find_oload_champ): Likewise.
1890 (classify_oload_match): Inspect all arguments
1891 until INCOMPATIBLE is found. Return the worst badness found
1892 otherwise.
1893 (compare_parameters): Update call to rank_one_type.
1894 * value.h (find_overload_match): Take an array of values instead
1895 of types.
1896
3957565a
JK
18972011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 Drop lazy lm_info reading.
1900 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1901 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1902 (lm_info_read): New function.
1903 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1904 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1905 lm_dynamic_from_link_map.
1906 (lm_next, lm_prev, lm_name): Remove.
1907 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1908 initialization incl. read_memory. No longer use lm_name.
1909 (svr4_free_so): Drop lm_info->lm freeing.
1910 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1911 explicit lm_addr and lm initialization.
1912 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1913 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1914 lm_name.
1915
cb08cc53
JK
19162011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 Paul Pluzhnikov <ppluzhnikov@google.com>
1918
1919 * defs.h (struct so_list): New forward declaration.
1920 (make_cleanup_free_so): New declaration.
1921 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1922 (svr4_free_so): Move the function here from downwards. Handle NULL
1923 so->lm_info.
1924 (svr4_free_library_list): New.
1925 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1926 Use more cleanups. Use new parameter ignore_first instead of
1927 ignore_first_link_map_entry.
1928 (svr4_current_sos): New variable ignore_first, initialize it. New
1929 variable back_to, use it for svr4_free_library_list protection.
1930 (svr4_free_so): Remove - move upwards.
1931 * utils.c: Include solist.h.
1932 (do_free_so, make_cleanup_free_so): New functions.
1933
22c05d8a
JK
19342011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 Fix internal error regression.
1937 * value.c (value_primitive_field): Handle value_optimized_out. Move
1938 packed bitfields comment.
1939
d930d06e
TT
19402011-10-13 Tom Tromey <tromey@redhat.com>
1941
1942 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1943 always released.
1944
2ff6b080
TT
19452011-10-13 Tom Tromey <tromey@redhat.com>
1946
1947 * python/py-type.c (typy_has_key): Make 'field' const.
1948
d6c5869f
LM
19492011-10-13 Luis Machado <lgustavo@codesourcery.com>
1950
1951 * remote.c (remote_save_trace_data): Invert comparison.
1952
a70633a2
LM
19532011-10-13 Luis Machado <lgustavo@codesourcery.com>
1954
1955 * tracepoint.c (trace_save_command): Use filename instead of
1956 args when printing.
1957
e103e986
JK
19582011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1961 if .size is 0.
1962
db24da6d
YQ
19632011-10-13 Yao Qi <yao@codesourcery.com>
1964
1965 PR gdb/12703
1966 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1967 whether insn is a 32-bit Thumb-2 instruction.
1968 (thumb_in_function_epilogue_p): Likewise.
1969 (thumb_get_next_pc_raw): Likewise.
1970 (arm_breakpoint_from_pc): Likewise.
1971
1d6edc3c
JK
19722011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1973
1974 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1975 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1976 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1977 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1978 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1979 zero DATA.
1980 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1981 validity.
1982 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1983 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1984 clear DATA on zero SIZE.
1985
adabb602
DE
19862011-10-12 Doug Evans <dje@google.com>
1987
1988 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1989 header->first_die_offset here. All callers updated.
1990
5048e516
JK
19912011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1992
1993 Fix compatibility with texinfo versions older than 4.12.
1994 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1995 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1996 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1997 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1998 * configure: Regenerate.
1999 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2000 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2001 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2002
0574c78f
GB
20032011-10-12 Gary Benson <gbenson@redhat.com>
2004
2005 * breakpoint.h (pc_at_non_inline_function): Declare.
2006 * breakpoint.c (is_non_inline_function,
2007 pc_at_non_inline_function): New functions.
2008 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2009 if the stop is at a location where functions cannot be inlined.
2010
12d9289a
PA
20112011-10-12 Pedro Alves <pedro@codesourcery.com>
2012
2013 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2014 the core wanted them stopped, or if they now have a pending event
2015 to report.
ecf8e7f5
PA
2016 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2017 down to stop_and_resume_callback.
2018 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2019 having new pending events after calling linux_nat_filter_event.
12d9289a 2020
96408a79
SA
20212011-10-11 Sterling Augustine <saugustine@google.com>
2022
2023 * dwarf2read.c: Undo inadvertent changes in previous commit.
2024
9c6c53f7
SA
20252011-10-11 Sterling Augustine <saugustine@google.com>
2026
2027 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2028 logic.
2029
0e8aefe7
UW
20302011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2031
2032 * symfile.c (separate_debug_file_exists): Fix condition.
2033
349d1385
DM
20342011-10-11 David S. Miller <davem@davemloft.net>
2035
2036 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2037 static.
2038 * regcache.h (regcache_restore): Remove declaration.
2039
205c306f
DM
2040 * gdbarch.sh: New field 'long_long_align_bit'.
2041 * gdbarch.c, gdbarch.h: Regenerate.
2042 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2043 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2044
941b2081
JK
20452011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 Revert this part of:
2048 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 Support @entry in input expressions.
2050 * c-exp.y (ENTRY, unknown_cpp_name): New.
2051 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2052 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2053 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2054 (name_not_typename: ENTRY): New.
2055 (yylex): Recognize ENTRY.
2056
2057 Reimplement @entry in input expressions.
2058 * c-exp.y (ENTRY): New.
2059 (variable: name_not_typename ENTRY): New.
2060 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2061
3c4d7e12
PA
20622011-10-11 Pedro Alves <pedro@codesourcery.com>
2063
2064 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2065 parent and child's pids as soon as we detect a clone event.
2066 Adjust another debug message.
2067
ea23808b
PA
20682011-10-11 Pedro Alves <pedro@codesourcery.com>
2069
2070 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2071 not zombie instead of reading the whole file.
2072
904578ed
JK
20732011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2074
2075 Fix separate debuginfo warning with "remote:" access.
2076 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2077 * symfile.c (get_file_crc): New function with the code moved from ...
2078 (separate_debug_file_exists): ... this function, specifically variables
2079 buffer and count. New variable verified_as_different, set it. Remove
2080 file_crc initialization. Verify also if both files are not the same
2081 manually, if needed.
2082
51370a33
YQ
20832011-10-11 Yao Qi <yao@codesourcery.com>
2084
2085 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2086 to get address.
2087
0838fb57
DE
20882011-10-10 Doug Evans <dje@google.com>
2089
2090 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2091 libthread_db when we load libpthread or the main symbol file.
2092 (thread_db_inferior_created): New function.
2093 (_initialize_thread_db): Attach inferior_created observer.
2094 * linux-nat.c (linux_child_post_attach): Remove call to
2095 check_for_thread_db.
2096 (linux_child_post_startup_inferior): Ditto.
2097 * objfiles.h (OBJF_MAINLINE): Define.
2098 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2099 allocate_objfile when appropriate.
2100
623bd5b7
UW
21012011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2102
2103 PR gdb/13218
2104 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2105 Remove unused variables.
2106 (get_linux_version): Remove function.
2107 (_initialize_arm_linux_nat): Do not call it.
2108
79395f92
PA
21092011-10-10 Pedro Alves <pedro@codesourcery.com>
2110
2111 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2112 new clone lwp if the core asked it to stop. Don't pass on
2113 unexpected signals to the new clone; leave them pending instead.
2114
eff3df78
PA
21152011-10-10 Pedro Alves <pedro@codesourcery.com>
2116
2117 * linux-nat.c (resume_lwp): Remove redundant debug output.
2118
4b60df3d
PA
21192011-10-10 Pedro Alves <pedro@codesourcery.com>
2120
2121 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2122 last_resume_kind before clearing it, and use the copy instead to
2123 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2124 resume_clear_callback in the non-stop path too.
2125
6501578c
YQ
21262011-10-09 Yao Qi <yao@codesourcery.com>
2127
2128 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2129 Honor OPTIONS and VAL's type.
2130 (common_val_print, value_print): Update to pass one more parameter.
2131
5a56e9c5
DE
21322011-10-09 Doug Evans <dje@google.com>
2133
2134 Add new "alias" command.
2135 * NEWS: Mention new command.
2136 * command.h (valid_user_defined_cmd_name_p): Declare.
2137 * defs.h (make_cleanup_dyn_string_delete): Declare.
2138 * utils.c: #include "dyn-string.h".
2139 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2140 * cli/cli-cmds.c: #include "dyn-string.h".
2141 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2142 (init_cli_cmds): Add new command.
2143 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2144
509f0fd9
JK
21452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Fix compatibility with older GCCs.
2148 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2149 * stack.c (read_frame_arg): Initialize val_deref.
2150
2bda9cc5
JK
21512011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 Entry values NEWS entries, DWARF disassembly support.
2154 * NEWS: New entry values entry.
2155 (set print entry-values, show print entry-values)
2156 (set debug entry-values, show debug entry-values): New entries.
2157 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2158 indent. Remove variable start. Move header printing out. Respect
2159 INDENT. Support DW_OP_GNU_entry_value.
2160 (locexpr_describe_location_1): Move the header printing here, extend
2161 the disassemble_dwarf_expression passed parameters.
2162
a471c594
JK
21632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Display @entry parameter values even for references.
2166 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2167 coerce_ref_if_computed.
2168 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2169 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2170 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2171 existing push_dwarf_reg_entry_value call. Add new detection calling
2172 dwarf_block_to_dwarf_reg_deref. Update the error message.
2173 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2174 * dwarf2expr.h
2175 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2176 parameter deref_size, describe it in the comment.
2177 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2178 (dwarf_block_to_dwarf_reg_deref): New declaration.
2179 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2180 deref_size, describe it in the function comment. New variables
2181 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2182 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2183 describe it in the function comment. Fetch the alternative block
2184 accoring to DEREF_SIZE.
2185 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2186 (entry_data_value_free_closure, entry_data_value_funcs): New.
2187 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2188 outer_val, target_val, val and addr. Try to fetch and create also
2189 referenced value content.
2190 (pieced_value_funcs): NULL value for coerce_ref.
2191 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2192 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2193 coerce_ref_if_computed.
2194 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2195 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2196 * stack.c (read_frame_arg): Compare also dereferenced values.
2197 * value.c (value_computed_funcs): Make the parameter v const, use
2198 value_lval_const for it.
2199 (value_lval_const, coerce_ref_if_computed): New function.
2200 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2201 * value.h (struct lval_funcs): New field coerce_ref.
2202 (value_computed_funcs): Make the parameter v const.
2203 (value_lval_const, coerce_ref_if_computed): New declarations.
2204
36b11add
JK
22052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 Support @entry in input expressions.
2208 * c-exp.y (ENTRY, unknown_cpp_name): New.
2209 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2210 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2211 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2212 (name_not_typename: ENTRY): New.
2213 (yylex): Recognize ENTRY.
2214 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2215 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2216 Likewise.
2217 * parse.c (operator_length_standard): Likewise.
2218 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2219
3343315b
JK
22202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 Display referenced values in backtraces.
2223 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2224 * stack.c (print_frame_arg): Likewise.
2225
ac71a68c
JK
22262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 Make some lval_funcs methods to default on NULL.
2229 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2230 NULL.
2231 (value_assign): Check if lval_computed write method is NULL.
2232 * value.h (struct lval_funcs): Comment NULL values for read and write
2233 methods.
2234
e18b2753
JK
22352011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 Display @entry parameter values (without references).
2238 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2239 New functions.
2240 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2241 New declarations.
2242 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2243 entry record.
2244 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2245 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2246 functions.
2247 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2248 (loclist_read_variable_at_entry): New function.
2249 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2250 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2251 DW_AT_location, call dwarf_block_to_sp_offset for it.
2252 * frame.h (print_entry_values_no, print_entry_values_only)
2253 (print_entry_values_preferred, print_entry_values_if_needed)
2254 (print_entry_values_both, print_entry_values_compact)
2255 (print_entry_values_default, print_entry_values): New declarations.
2256 (struct frame_arg): New field entry_kind.
2257 (read_frame_arg): New parameter entryargp.
2258 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2259 arg->entry_kind. Optionally print the `@entry' suffix.
2260 (list_args_or_locals): New variable entryarg, initialize it.
2261 Initialize also entry_kind of arg and entryarg. Conditionalize
2262 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2263 xfree for entryarg.error.
2264 * stack.c (print_entry_values_no, print_entry_values_only)
2265 (print_entry_values_preferred, print_entry_values_if_needed)
2266 (print_entry_values_both, print_entry_values_compact)
2267 (print_entry_values_default, print_entry_values_choices)
2268 (print_entry_values): New variables.
2269 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2270 print the `@entry' suffix, possibly in combination for
2271 print_entry_values_compact.
2272 (read_frame_arg): New parameter entryargp, new variables entryval,
2273 entryval_error and val_equal. Read in also entryargp, respect
2274 print_entry_values, compare the values using val_equal, fill in also
2275 argp->entry_kind (together with entryargp->entry_kind).
2276 (print_frame_args): New variable entryarg, initialize it.
2277 Conditionalize print_frame_arg for arg, add print_frame_arg for
2278 entryarg. Call xfree for entryarg.error.
2279 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2280 * symtab.h (struct symbol_computed_ops): New field
2281 read_variable_at_entry.
2282
93d86cef
JK
22832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 Code reshuffle.
2286 * frame.h (struct frame_arg): New definition.
2287 (read_frame_arg): New declaration.
2288 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2289 (list_args_or_locals): ... the code here. New variable arg, call
2290 read_frame_arg and list_arg_or_local with it. Unify the
2291 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2292 arg.error.
2293 * stack.c (print_frame_arg): New functiom from the code of
2294 print_frame_args.
2295 (read_frame_arg): New function.
2296 (print_frame_args): Remove variable val. New variable arg, call
2297 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2298
2d6c5dc2
JK
22992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 Protect entry values against self tail calls.
2302 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2303 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2304
111c6489
JK
23052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 Recognize virtual tail call frames.
2308 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2309 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2310 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2311 * dwarf2-frame-tailcall.c: New file.
2312 * dwarf2-frame-tailcall.h: New file.
2313 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2314 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2315 REGS.PREV only after CIE execution.
2316 (struct dwarf2_frame_cache): New field tailcall_cache.
2317 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2318 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2319 parts, try to find entry_cfa_sp_offset. Call
2320 dwarf2_tailcall_sniffer_first.
2321 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2322 when appropriate.
2323 (dwarf2_frame_dealloc_cache): New function.
2324 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2325 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2326 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2327 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2328 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2329 * dwarf2loc.c (func_addr_to_tail_call_list)
2330 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2331 (call_site_find_chain_1, call_site_find_chain): New.
2332 * dwarf2loc.h (struct call_site_chain): New.
2333 (call_site_find_chain): New declaration.
2334 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2335 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2336 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2337 * stack.c (frame_info): Support also TAILCALL_FRAME.
2338
bb984ff1
JK
23392011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Tail call sites reader implementation.
2342 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2343 fill in TYPE_TAIL_CALL_LIST.
2344 * gdbtypes.h (struct func_type): New field tail_call_list.
2345 (struct call_site): New field tail_call_next.
2346 (TYPE_TAIL_CALL_LIST): New definition.
2347
8e3b41a9
JK
23482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2349
2350 Implement basic support for DW_TAG_GNU_call_site.
2351 * block.c: Include gdbtypes.h and exceptions.h.
2352 (call_site_for_pc): New function.
2353 * block.h (call_site_for_pc): New declaration.
2354 * defs.h: Include hashtab.h.
2355 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2356 declarations.
2357 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2358 ctx_no_push_dwarf_reg_entry_value.
2359 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2360 (dwarf_block_to_dwarf_reg): New function.
2361 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2362 (ctx_no_push_dwarf_reg_entry_value): New function.
2363 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2364 push_dwarf_reg_entry_value.
2365 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2366 declarations.
2367 * dwarf2loc.c: Include gdbcmd.h.
2368 (dwarf_expr_ctx_funcs): New forward declaration.
2369 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2370 (dwarf_expr_reg_to_entry_parameter)
2371 (dwarf_expr_push_dwarf_reg_entry_value): New.
2372 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2373 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2374 (needs_dwarf_reg_entry_value): New function.
2375 (needs_frame_ctx_funcs): Install it.
2376 (_initialize_dwarf2loc): New function.
2377 * dwarf2loc.h (entry_values_debug): New declaration.
2378 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2379 (read_call_site_scope): New forward declaration.
2380 (process_full_comp_unit): Copy call_site_htab.
2381 (process_die): Support DW_TAG_GNU_call_site.
2382 (read_call_site_scope): New function.
2383 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2384 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2385 (cleanup_htab): Delete.
2386 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2387 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2388 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2389 FIELD_LOC_KIND_DWARF_BLOCK.
2390 * gdbtypes.h (enum field_loc_kind): New entry
2391 FIELD_LOC_KIND_DWARF_BLOCK.
2392 (struct main_type): New loc entry dwarf_block.
2393 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2394 (TYPE_FIELD_DWARF_BLOCK): New.
2395 * python/py-type.c: Include dwarf2loc.h.
2396 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2397 internal_error call on unknown FIELD_LOC_KIND.
2398 * symtab.h (struct symtab): New field call_site_htab.
2399 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2400 (core_addr_hash, core_addr_eq): New functions.
2401
b6cdc2c1
JK
24022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2403
2404 Code reshuffle.
2405 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2406 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2407 calling_convention under func_stuff there.
2408 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2409 (init_type) <TYPE_CODE_FUNC>: Likewise.
2410 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2411 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2412 * gdbtypes.h (enum type_specific_kind): Change
2413 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2414 (struct main_type) <type_specific>: Change calling_convention to
2415 func_stuff. Move calling_convention to ...
2416 (struct func_type): ... this new struct.
2417 (INIT_FUNC_SPECIFIC): New #define.
2418 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2419
181cebd4
JK
24202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2421
2422 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2423 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2424 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2425 ctx->ref_addr_size. Handle its invalid value.
2426 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2427 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2428 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2429 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2430 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2431 (dwarf2_per_cu_ref_addr_size): New function.
2432
c471e790
JK
24332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 Code cleanup.
2436 * dwarf2read.c (per_cu_header_read_in): New function.
2437 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2438 variables cu_header_local and cu_headerp.
2439
741f5e3c
JK
24402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2441
2442 Fix initial language detection with -readnow.
2443 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2444 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2445 searches only for global symbols.
2446
a73d2258
JK
24472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2448
2449 Fix printed anonymous struct name.
2450 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2451 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2452 (anonymous_struct_prefix): New function.
2453 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2454 (dwarf2_name): Strip for anonymous structs any prefixes.
2455
749fd4ea
DE
24562011-10-07 Doug Evans <dje@google.com>
2457
1fa57852
DE
2458 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2459 `replace'.
2460
690a4937
DE
2461 * python/lib/gdb/printing.py: Whitespace cleanup.
2462
749fd4ea
DE
2463 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2464 warning.
2465
4c38200f
PA
24662011-10-07 Pedro Alves <pedro@codesourcery.com>
2467
2468 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2469 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2470 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2471 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2472 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2473 (arm_linux_remove_watchpoint): Adjust.
2474 * i386-linux-nat.c (i386_linux_dr_set_control)
2475 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2476 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2477 (ia64_linux_remove_watchpoint): Adjust.
2478 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2479 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2480 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2481 (ppc_linux_insert_mask_watchpoint)
2482 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2483 (ppc_linux_remove_watchpoint): Adjust.
2484 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2485 Adjust.
2486
b7ff339d
CV
24872011-10-07 Corinna Vinschen <vinschen@redhat.com>
2488
2489 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2490 (clear_win32_environment): New function for Cygwin to clear out
2491 Win32 environment.
2492 (windows_create_inferior): Prepare new environment from in_env
2493 for Cygwin, too.
2494
f287c1f3
PM
24952011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2496
5631e596 2497 PR python/13264
f287c1f3
PM
2498 * python/py-value.c (valpy_call): Check that arguments are
2499 a tuple.
2500 (is_intlike): Remove call to CHECK_TYPEDEF.
2501 (valpy_nonzero): Catch GDB exceptions.
2502 (valpy_absolute): Ditto.
2503 (valpy_lazy_string): Ditto.
2504 (valpy_call): Ditto.
2505 (valpy_get_is_optimized_out): Ditto.
2506 (valpy_long): Ditto.
2507 (valpy_float): Ditto.
2508 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2509 (valpy_richcompare): Ditto.
2510
03583c20
UW
25112011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2512
2513 * inferior.h (disable_randomization): Declare.
2514 * infrun.c (disable_randomization): New global variable.
2515 (show_disable_randomization): New function.
2516 (set_disable_randomization): Likewise.
2517 (_initialize_infrun): Install set/show disable-randomization
2518 commands.
2519 * linux-nat.c (disable_randomization): Remove.
2520 (show_disable_randomization): Likewise.
2521 (set_disable_randomization): Likewise.
2522 (_initialize_linux_nat): No longer install set/show
2523 disable-randomization commands here.
2524 (linux_nat_supports_disable_randomization): New function.
2525 (linux_nat_add_target): Install it.
2526 * remote.c (PACKET_QDisableRandomization): New enum value.
2527 (remote_protocol_packets): Support QDisableRandomization.
2528 (_initialize_remote): Likewise.
2529 (remote_supports_disable_randomization): New function.
2530 (init_remote_ops): Install it.
2531 (extended_remote_supports_disable_randomization): New function.
2532 (init_extended_remote_ops): Install it.
2533 (extended_remote_disable_randomization): New function.
2534 (extended_remote_create_inferior_1): Call it.
2535 * target.h (struct target_ops): Add to_supports_disable_randomization.
2536 (target_supports_disable_randomization): Add prototype.
2537 * target.c (target_supports_disable_randomization): New function.
2538 (find_default_supports_disable_randomization): Likewise.
2539 (init_dummy_target): Install it.
2540
20c168b5
KP
25412011-10-07 Kevin Pouget <kevin.pouget@st.com>
2542
2543 Allow Python notification of new object-file loadings.
2544 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2545 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2546 Add build rule for this file.
2547 * python/py-event.h (emit_new_objfile_event): New prototype.
2548 (newobjfile): New Python event emitter.
2549 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2550 Python event registry.
2551 * python/py-inferior.c: Include objfiles.h
2552 (python_new_objfile): New function.
2553 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2554 observers.
2555 * python/py-newobjfileevent.c: New file.
2556 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2557 prototype.
2558 * python/python.c (_initialize_python): Add
2559 gdbpy_initialize_new_objfile_event call.
2560 * NEWS: Add item for new Python event "gdb.newobjfile"
2561
b1c8db38
TG
25622011-10-05 Tristan Gingold <gingold@adacore.com>
2563
2564 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2565 Extract the ravenscar task name from the symbol for the atcb.
2566
0dab82e9
PK
25672011-10-04 Paul Koning <paul_koning@dell.com>
2568
2569 * python/py-type.c (typy_make_iter): Add forward declaration.
2570 (typy_fields_items): Use the gdb.Type iterator.
2571
84ad80e6
PK
25722011-10-04 Paul Koning <paul_koning@dell.com>
2573
2574 * NEWS: Add entry for Python gdb.Type mapping methods.
2575
cb6be26b
KP
25762011-10-04 Kevin Pouget <kevin.pouget@st.com>
2577
2578 PR python/12691: Add the inferior to Python exited event
2579 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2580 to exited_event.
2581 * python/py-event.h (emit_exited_event): Likewise
2582 * python/-inferior.c (python_inferior_exit): Likewise
2583
6005b210
JB
25842011-10-03 Joel Brobecker <brobecker@adacore.com>
2585
2586 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2587 in output of -ada-task-info GDB/MI command.
2588
75082e8c
JB
25892011-10-03 Joel Brobecker <brobecker@adacore.com>
2590
2591 * ada-lang.h (struct inferior): Declare.
2592 (print_ada_task_info): Add declaration.
2593 * ada-tasks.c (print_ada_task_info): Make non-static.
2594 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2595 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2596 * mi/mi-main.c: #include "ada-lang.h".
2597 (mi_cmd_list_features): Add "ada-task-info" to the list
2598 of supported features.
2599 (mi_cmd_ada_task_info): New function.
2600
7ed7d719
JB
26012011-10-03 Joel Brobecker <brobecker@adacore.com>
2602
2603 * python/python.c (python_run_simple_file): New function.
2604 (source_python_script, source_python_script_for_objfile):
2605 Replace call to PyRun_SimpleFile by call to
2606 python_run_simple_file.
2607
3fcaed38
PK
26082011-10-03 Paul Koning <paul_koning@dell.com>
2609
2610 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2611 (value_to_value_object): Fetch value if it was lazy.
2612
8e5c319d
JK
26132011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 Code cleanup.
2616 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2617 Rearrange the code for it.
2618
dd11a36c
JB
26192011-10-02 Joel Brobecker <brobecker@adacore.com>
2620
2621 * breakpoint.c (bkpt_print_recreate): Add call to
2622 print_recreate_thread.
2623
723b724b
MF
26242011-09-29 Mike Frysinger <vapier@gentoo.org>
2625
2626 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2627 PTRACE_GETFDPIC_INTERP): Define.
2628
412946b6
YQ
26292011-09-28 Yao Qi <yao@codesourcery.com>
2630
2631 * symfile.c (add_symbol_file_command): Update message on usage.
2632
a73bb892
PK
26332011-09-28 Paul Koning <paul_koning@dell.com>
2634
2635 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2636 (typy_length, typy_get, typy_has_key, typy_make_iter)
2637 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2638 (typy_iterator_iter, typy_iterator_iternext)
2639 (typy_iterator_dealloc): New functions to implement standard
2640 Python mapping methods on gdb.Type object.
2641 (gdb.TypeIterator): New Python type.
2642 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2643
fe10a582
DM
26442011-09-28 David S. Miller <davem@davemloft.net>
2645
2646 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2647 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2648 * sparc-tdep.c (sparc_complex_floating_p): New function.
2649 (sparc32_store_arguments): Handle complex floats.
2650 (sparc32_extract_return_value): Likewise.
2651 (sparc32_store_return_value): Likewise.
2652 (sparc32_stabs_argument_has_addr): Likewise.
2653 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2654 (sparc64_store_floating_fields): Handle complex floats.
2655 (sparc64_store_arguments): Likewise.
2656 (sparc64_store_return_value): Likewise.
2657
c93dbcba
EZ
26582011-09-28 Eli Zaretskii <eliz@gnu.org>
2659
2660 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2661 before the change on 2006-12-09.
2662 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2663 generates the environment block for CreateProcessA, modulo the
2664 Cygwin-specific parts that are not needed here.
2665
f00c55f8
TG
26662011-09-27 Tristan Gingold <gingold@adacore.com>
2667
2668 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2669 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2670 (darwin_solib_get_all_image_info_addr_at_init): New function.
2671 (darwin_solib_read_all_image_info_addr): Likewise.
2672 (darwin_solib_create_inferior_hook): Use the above two functions.
2673 * darwin-nat.c (darwin_execvp): Renames retval to res.
2674 (darwin_read_write_inferior): Update comment.
2675 (darwin_read_dyld_info): New function.
2676 (darwin_xfer_partial): Handle DYLD_INFO.
2677
6710bf39
SS
26782011-09-27 Stan Shebs <stan@codesourcery.com>
2679
2680 Add return address collection for tracepoints.
2681 * tracepoint.c (encode_actions_1): Add case for $_ret.
2682 (validate_actionline): Check for $_ret.
2683 (trace_dump_actions): Ditto.
2684 * ax-gdb.h (gen_trace_for_return_address): Declare.
2685 * ax-gdb.c: Include arch-utils.h.
2686 (gen_trace_for_return_address): New function.
2687 (agent_command): Add return address special case.
2688 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2689 (amd64_gen_return_address): New function.
2690 (amd64_init_abi): Call it.
2691 * i386-tdep.c: Include ax.h and ax-gdb.h.
2692 (i386_gen_return_address): New function.
2693 (i386_init_abi): Call it.
2694 * arch-utils.h (default_gen_return_address): Declare.
2695 * arch-utils.c (default_gen_return_address): New function.
2696 * gdbarch.sh (gen_return_address): New method.
2697 * gdbarch.h, gdbarch.c: Regenerate.
2698
e04e5beb
JM
26992011-09-23 Joseph Myers <joseph@codesourcery.com>
2700
2701 PR gdb/13079
2702 * i386-tdep.c (i386_frame_align): New.
2703 (i386_gdbarch_init): Use i386_frame_align.
2704
f3d6df6d
YQ
27052011-09-23 Yao Qi <yao@codesourcery.com>
2706
2707 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2708 to get address.
2709
e69860f1
TG
27102011-09-22 Tristan Gingold <gingold@adacore.com>
2711
2712 * fork-child.c (fork_inferior): Add exec_fun parameter.
2713 Call exec_fun or execvp.
2714 * inferior.h: Adjust prototype.
2715 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2716 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2717 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2718 * procfs.c (procfs_create_inferior): Ditto.
2719 * darwin-nat.c (darwin_execvp): New function.
2720 (darwin_create_inferior): Use it.
2721
4b51d87b
YQ
27222011-09-22 Yao Qi <yao@codesourcery.com>
2723
2724 * infrun.c (context_switch): Print debug message when switching to
2725 a different thread.
2726
56b9d9ac
UW
27272011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2728
2729 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2730 complex and vector types.
2731 (s390_return_value_convention): Likewise.
2732
2733 (s390_value_from_register): Call check_typedef.
2734 (extend_simple_arg): Likewise.
2735 (alignment_of): Likewise.
2736 (s390_push_dummy_call): Likewise.
2737 (s390_return_value): Likewise.
2738
b2cd6b29
JM
27392011-09-21 Joseph Myers <joseph@codesourcery.com>
2740
2741 * event-top.c (async_disconnect): If an exception is thrown from
2742 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2743 catch_errors.
2744 * top.c (quit_cover): Return void and take no arguments.
2745 * top.h (quit_cover): Update prototype.
2746
67ba4e42
JM
27472011-09-20 Joseph Myers <joseph@codesourcery.com>
2748
2749 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2750 current_uiout, not uiout.
2751
562f943b
DE
27522011-09-19 Doug Evans <dje@google.com>
2753
2754 * python/py-auto-load.c (source_section_scripts): Fix file
2755 descriptor leak.
2756 * python/python.c (source_python_script_for_objfile): Tweak comments.
2757
34518530
YQ
27582011-09-18 Yao Qi <yao@codesourcery.com>
2759 Ulrich Weigand <ulrich.weigand@linaro.org>
2760
2761 Support displaced stepping for Thumb 16-bit insns.
2762 * arm-tdep.c (THUMB_NOP) Define.
2763 (thumb_copy_unmodified_16bit): New.
2764 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2765 (thumb_copy_alu_reg): New.
2766 (arm_copy_svc): Move some common code to ...
2767 (install_svc): ... here. New.
2768 (thumb_copy_svc): New.
2769 (install_pc_relative): New.
2770 (thumb_copy_pc_relative_16bit): New.
2771 (thumb_decode_pc_relative_16bit): New.
2772 (thumb_copy_16bit_ldr_literal): New.
2773 (thumb_copy_cbnz_cbz): New.
2774 (cleanup_pop_pc_16bit_all): New.
2775 (thumb_copy_pop_pc_16bit): New.
2776 (thumb_process_displaced_16bit_insn): New.
2777 (thumb_process_displaced_32bit_insn): New.
2778 (thumb_process_displaced_insn): process thumb instruction.
2779
2780 Support displaced stepping for Thumb 32-bit insns.
2781 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2782 (thumb2_copy_preload): New.
2783 (thumb2_copy_copro_load_store): New.
2784 (thumb2_copy_b_bl_blx): New.
2785 (thumb2_copy_alu_imm): New.
2786 (thumb2_copy_load_reg_imm): New.
2787 (thumb2_copy_load_literal): New
2788 (thumb2_copy_block_xfer): New.
2789 (thumb_32bit_copy_undef): New.
2790 (thumb_32bit_copy_unpred): New.
2791 (thumb2_decode_ext_reg_ld_st): New.
2792 (thumb2_decode_svc_copro): New.
2793 (decode_thumb_32bit_store_single_data_item): New.
2794 (thumb_copy_pc_relative_32bit): New.
2795 (thumb_decode_pc_relative_32bit): New.
2796 (decode_thumb_32bit_ld_mem_hints): New.
2797 (thumb2_copy_table_branch): New
2798 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2799 instructions.
2800
2b16b2e3
YQ
28012011-09-18 Yao Qi <yao@codesourcery.com>
2802
2803 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2804 (install_b_bl_blx): Likewise.
2805
0f6f04ba
YQ
28062011-09-17 Yao Qi <yao@codesourcery.com>
2807
2808 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2809 (install_load_store): ... this. New.
2810 Change parameter BYTE to SIZE.
2811 (arm_copy_ldr_str_ldrb_strb): Update caller.
2812 (arm_decode_ld_st_word_ubyte): Update caller.
2813
e2d96639
YQ
28142011-09-17 Yao Qi <yao@codesourcery.com>
2815
2816 * infrun.c (displaced_step_fixup): Move some code ...
2817 (displaced_step_restore): ... here. New function.
2818 (handle_inferior_event): Cleanup displaced stepping state for both
2819 child and parent when get forked or vforked event.
2820 * regcache.c (get_thread_arch_aspace_regcache): New function.
2821 get_thread_arch_regcache (): Call it.
2822
a8123151
JB
28232011-09-16 Joel Brobecker <brobecker@adacore.com>
2824
2825 * ada-tasks.c (print_ada_task_info): New function, merging
2826 short_task_info and info_tasks together. Reimplement using
2827 ui-out instead of printing to stdout directly. Move the code
2828 building and checking the task list here, instead of leaving it
2829 in info_tasks_command.
2830 (info_task): Move the code building and checking the task
2831 list here, instead of leaving it in info_tasks_command.
2832 (info_tasks_command): Delete code building and checking
2833 the task list - moved elsewhere. Update calls to info_tasks
2834 and info_task.
2835
fbf06824
JB
28362011-09-16 Joel Brobecker <brobecker@adacore.com>
2837
2838 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2839
34a0bc90
JB
28402011-09-16 Joel Brobecker <brobecker@adacore.com>
2841
2842 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2843
79779fa9
JB
28442011-09-16 Joel Brobecker <brobecker@adacore.com>
2845
2846 * ada-lang.h (ada_build_task_list): Remove parameter
2847 `warn_if_null'.
2848 * ada-tasks.c (ada_build_task_list): Remove parameter
2849 `warn_if_null'. Adjust implementation and documentation.
2850 (valid_task_id, ada_get_environment_task)
2851 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2852 (info_tasks_command): Adjust implementation.
2853 (task_command): Likewise.
2854 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2855 to ada_build_task_list.
2856
e225eb91
JB
28572011-09-16 Joel Brobecker <brobecker@adacore.com>
2858
2859 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2860 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2861 (ada_tasks_inferior_data_handle): New static global.
2862 (get_ada_tasks_inferior_data): New function.
2863 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2864 (ada_get_environment_task, iterate_over_live_ada_tasks)
2865 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2866 Adjust.
2867 (ada_set_current_inferior_known_tasks_addr): New function.
2868 (read_known_tasks, ada_build_task_list, short_task_info)
2869 (info_tasks, info_task, info_tasks_command, task_command_1)
2870 (task_command, ada_task_list_changed): Adjust.
2871 (ada_tasks_invalidate_inferior_data): New function.
2872 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2873 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2874 * ada-lang.h (struct inferior): Add declaration.
2875 (ada_task_list_changed): Update profile.
2876 * remote-wtx-pd.c: #include "inferior.h".
2877 (switch_to_pd_internal): Update call to ada_task_list_changed.
2878
6da9ca05
JB
28792011-09-16 Joel Brobecker <brobecker@adacore.com>
2880
2881 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2882 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2883 (atcb_fieldno): Delete these static globals.
2884 (struct ada_tasks_pspace_data): New struct.
2885 (ada_tasks_pspace_data_handle): New static global.
2886 (get_ada_tasks_pspace_data): New function.
2887 (ada_tasks_invalidate_pspace_data): New function.
2888 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2889 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2890 (_initialize_tasks): Create this module's per-progspace
2891 data handle.
2892
dccd3cbd
JB
28932011-09-16 Joel Brobecker <brobecker@adacore.com>
2894
2895 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2896
f877b031
TG
28972011-09-16 Tristan Gingold <gingold@adacore.com>
2898
2899 * fork-child.c (fork_inferior): Update comment. Use alloca
2900 instead of xmalloc for argv. Move len and shell_command
2901 declarations in the block where they are used.
2902 Only call execvp. Factorize failure code.
2903
ae0c443d
JK
29042011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2905
2906 Code cleanup.
2907 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2908 `exp_element' instead of an element of the same and make the function
2909 static.
2910 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2911 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2912 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2913 Change argument of `write_exp_elt' function call.
2914 Remove extra spaces from comments.
2915 * parser-defs.h (write_exp_elt): Remove prototype.
2916
5af65ec0
PK
29172011-09-15 Paul Koning <paul_koning@dell.com>
2918
2919 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2920 count of item appended to list.
2921 * python/py-type.c (typy_fields): Likewise.
2922
72be8ccc
PK
29232011-09-15 Paul Koning <paul_koning@dell.com>
2924
883640a8 2925 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2926
92f6badc
KP
29272011-09-15 Kevin Pouget <kevin.pouget@st.com>
2928
2929 PR threads/12628
2930 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2931 processes with multiple threads.
2932 (inf_has_multiple_thread_cb): New function.
2933 (inf_has_multiple_threads): New function.
2934
0672bf41 29352011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2936
2937 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2938 * python/py-inferior.c (GdbMethods): New Python method definition.
2939
6839b47f
KP
29402011-09-15 Kevin Pouget <kevin.pouget@st.com>
2941
2942 Handle multiple breakpoint hits in Python interface:
2943 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2944 variable to breakpoints.
2945 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2946 bps instead of single breakpoint. Fix some space typos.
2947 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2948 variable to breakpoints.
2949
672f9b60
KP
29502011-09-15 Kevin Pouget <kevin.pouget@st.com>
2951
2952 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2953 note if the breakpoint is internal.
2954
43675ae4
KP
29552011-09-15 Kevin Pouget <kevin.pouget@st.com>
2956
0672bf41 2957 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2958
15148d6a
PA
29592011-09-14 Pedro Alves <pedro@codesourcery.com>
2960
2961 * infrun.c (prepare_for_detach, wait_for_inferior)
2962 (fetch_inferior_event): Don't flush the register cache.
2963 * remote.c (struct stop_reply) <regcache>: Add comment.
2964
d83e736b
JK
29652011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 Remove excessive DWARF expressions memory duplication.
2968 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2969 for block.data.
2970 (indirect_pieced_value): Remove variable result. Remove variable
2971 back_to and its use for baton.data.
2972 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2973 block.data.
2974 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2975 Update the function comment.
2976
c65b3e0d
PA
29772011-09-13 Pedro Alves <pedro@codesourcery.com>
2978
2979 * inferior.h (ALL_INFERIORS): New.
2980 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2981 for a stopped thread.
2982 (thread_db_find_new_threads): Look for threads in all inferiors.
2983
a1398e0c
PA
29842011-09-13 Pedro Alves <pedro@codesourcery.com>
2985
2986 * breakpoint.c (update_watchpoint): Handle the case of the
2987 watchpoint to update not being in the breakpoint list yet.
2988 (hw_watchpoint_use_count): New, factored out from
2989 hw_watchpoint_used_count.
2990 (hw_watchpoint_used_count): Rename to ...
2991 (hw_watchpoint_used_count_others): ... this. Add `except'
2992 parameter. Don't count resources of `except'. Use
2993 hw_watchpoint_use_count.
2994
30596231
PA
29952011-09-13 Pedro Alves <pedro@codesourcery.com>
2996
2997 * gdbthread.h (enum thread_state): Moved here.
2998 (struct thread_info): Rename `executing_' field to `executing' and
2999 `state_' to `state'.
3000 * thread.c (enum thread_state): Moved to gdbthread.h.
3001 (new_thread, add_thread_silent, delete_thread_1)
3002 (any_live_thread_of_process, thread_alive, set_running)
3003 (set_running, is_thread_state, any_running, is_executing)
3004 (set_executing, finish_thread_state, print_thread_info)
3005 (do_captured_thread_select): Adjust.
3006
bede5f5f
JK
30072011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3010 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3011
4801a9a3
PA
30122011-09-12 Pedro Alves <pedro@codesourcery.com>
3013 Matt Rice <ratmice@gmail.com>
3014
3015 PR gdb/13175
3016
3017 * interps.c (struct interp) <interpreter_out>: Delete field.
3018 (interp_new): Remove the data and uiout parameters and adjust.
3019 (interp_set): Only set the current_uiout from the interpreter's
3020 uiout after initializing the interpreter. Adjust call to
3021 init_proc.
3022 (interp_ui_out): Adjust to call procs->ui_out_proc.
3023 (interp_data, interp_name): New.
3024 * interps.h (interp_init_ftype): Add `self' parameter.
3025 (interp_ui_out_ftype): New typedef.
3026 (struct interp_procs) <ui_out_proc>: New method pointer.
3027 (interp_new): Remove the data and uiout parameters.
3028 (interp_data, interp_name): Declare.
3029 * tui/tui-interp.c (tui_init): Adjust prototype.
3030 (tui_ui_out): New.
3031 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3032 tui_out here. Adjust call to interp_new.
3033 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3034 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3035 (cli_ui_out): New.
3036 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3037 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3038 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3039 Initialize mi->uiout depending on the mi_version as extracted from
3040 the interpreter's name.
3041 (mi_ui_out): New.
3042 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3043 interp_new. Don't allocate the ui_out's of the interpreters here.
3044
d0afda03 30452011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3046
d0afda03 3047 * solib.c (solib_used): New function.
59145f8c
AR
3048 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3049 by another so_list object before freeing it.
3050
bdaf8d4a
JK
30512011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 Code cleanup.
3054 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3055 values.
3056
df15bd07
JK
30572011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3058
3059 Code cleanup.
3060 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3061 (amd64_skip_xmm_prologue): ... this new function. Describe its
3062 parameters. No longer use amd64_prologue_line_bug.
3063 * defs.h (producer_is_gcc_ge_4): New declaration.
3064 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3065 (process_full_comp_unit): Update its caller. Remove
3066 amd64_prologue_line_bug initialization.
3067 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3068 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3069
25289eb2
PA
30702011-09-09 Pedro Alves <pedro@codesourcery.com>
3071
3072 * linux-nat.h (enum resume_kind): New.
3073 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3074 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3075 resume_stop on the new lwp.
25289eb2
PA
3076 (add_lwp): Set last_resume_kind as resume_continue by default.
3077 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3078 (resume_lwp): New, factored out from resume_callback. Also check
3079 for pending status in lp->waitstatus.
3080 (resume_callback): Reimplement.
3081 (resume_clear_callback): Set last_resume_kind as resume_stop.
3082 (resume_set_callback): Set last_resume_kind as resume_continue.
3083 (linux_nat_resume, linux_handle_extended_wait): Set
3084 last_resume_kind.
3085 (running_callback): Also check lp->waitstatus for pending events.
3086 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3087 is resume_step.
3088 (stop_and_resume_callback): Don't re-resume if the core wanted the
3089 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3090 using an invalidated pointer.
3091 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3092 SIGSTOPs if the core wanted the LWP to stop.
3093 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3094 wanted the lwp to stop. If the core wanted the lwp to stop, and
3095 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3096 of TARGET_SIGNAL_STOP.
3097 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3098 here. Instead, signal the lwp, and set the last_resume_kind to
3099 resume_stop.
3100
f687d035
PA
31012011-09-09 Pedro Alves <pedro@codesourcery.com>
3102
3103 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3104 -1 (error), if the lwp exits right after attaching.
3105
bc587a6b
DE
31062011-09-08 Doug Evans <dje@google.com>
3107
63d97a20
DE
3108 * py-cmd.c: Some minor formatting fixes.
3109 (gdbpy_parse_command_name): Rename text arg to name, make const.
3110 All callers updated.
3111 * python-internal.h (gdbpy_parse_command_name): Update.
3112
bc587a6b
DE
3113 * cli/cli-decode.c (add_cmd): Add comment.
3114
08711b9a
JK
31152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 PR breakpoints/12435
3118 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3119 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3120 * dwarf2read.c (process_full_comp_unit): Initialize
3121 amd64_prologue_line_bug.
3122 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3123
b2e7f004
JK
31242011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Fix TUI screen corruption.
3127 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3128 batch_flag.
3129
8afd712c
JK
31302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 * findvar.c (read_var_value): Never return NULL, throw an error
3133 instead. Update the function comment. State symbol name in the error
3134 messages.
3135 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3136 read_var_value.
3137 * stack.c (print_frame_args): Likewise.
3138 * valops.c (value_of_variable): Likewise.
3139
b99b5f66
JK
31402011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3141
3142 * stack.c (print_frame_args): New variable except. Wrap
3143 read_var_value and common_val_print into TRY_CATCH.
3144
85bc8cb7
JK
31452011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3146
3147 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3148 caller to value_of_this.
3149 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3150 Twice.
3151 * valops.c (value_of_this): Remove parameter complain and variable ret.
3152 Update function comment. Never return NULL by this code.
3153 (value_of_this_silent): New function.
3154 * value.h (value_of_this): Remove parameter complain.
3155 (value_of_this_silent): New declaration.
3156
ede1849f
YQ
31572011-09-07 Yao Qi <yao@codesourcery.com>
3158
3159 * gdbthread.h (struct thread_info): Remove fields
3160 `stepping_through_solib_after_catch' and
3161 `stepping_through_solib_catchpoints'.
3162 * infrun.c (init_thread_stepping_state): Update.
3163 (process_event_stop_test, currently_stepping): Update.
3164 (currently_stepping_or_nexting_callback): Update.
3165
6aa27652
YQ
31662011-09-07 Yao Qi <yao@codesourcery.com>
3167
3168 * gdbthread.h (struct thread_info): Comment on field
3169 `step_after_step_resume_breakpoint'.
3170
00db5b94
PA
31712011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3172
3173 * remote.c (remote_console_output): Reindent.
3174
861152be
LM
31752011-09-06 Luis Machado <lgustavo@codesourcery.com>
3176
3177 * frame.c (has_stack_frames): Check for currently selected
3178 traceframe.
3179
ab821bc6
PA
31802011-09-06 Pedro Alves <pedro@codesourcery.com>
3181
3182 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3183 (set_async_annotation_level, set_async_prompt, pop_prompt)
3184 (push_prompt, new_async_prompt): Delete declarations.
3185 * top.h (get_prompt, set_prompt): Change prototype.
3186 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3187 declarations.
3188 * top.c (command_loop):
3189 (top_prompt): New global.
3190 (get_prefix, set_prefix, get_suffix, ): Delete.
3191 (get_prompt, set_prompt): Rewrite.
3192 (show_new_async_prompt): Rename to ...
3193 (show_prompt): ... this.
3194 (init_main): Adjust. Don't handle --annotate=2 here.
3195 * event-top.c (new_async_prompt): Delete.
3196 (the_prompts): Delete.
3197 (more_to_come): Make static.
3198 (display_gdb_prompt): Use top_level_prompt() to compute the top
3199 level prompt, and don't notify the before_prompt observers
3200 directly here. Always trick readline into not trying to display
3201 the prompt if sync_execution and displaying the primary prompt.
3202 If displaying a local/secondary prompt, always show it, even if
3203 sync_execution is set.
3204 (change_annotation_level): Delete.
3205 (top_level_prompt): New, based on change_annotation_level.
3206 (push_prompt, pop_prompt): Delete.
3207 (async_disable_stdin): No longer pushes prompt.
3208 (command_line_handler): No longer pushes or pops prompt. If more
3209 input is expected, call display_gdb_prompt with an explicit empty
3210 prompt.
3211 (async_stop_sig): Adjust.
3212 (set_async_annotation_level, set_async_prompt): Delete.
3213 * python/python.c (before_prompt_hook): Adjust.
3214
f1d90504
PA
32152011-09-05 Pedro Alves <pedro@codesourcery.com>
3216
3217 PR cli/13110
3218
3219 * infrun.c (fetch_inferior_event): Check if there's a selected
3220 thread before checking if the selected thread is executing.
3221
0f641c01
PA
32222011-09-05 Pedro Alves <pedro@codesourcery.com>
3223
3224 * inf-loop.c (execute_command): Don't check if the current thread
3225 if running before synchronously waiting for command completion.
3226 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3227 here.
3228 (normal_stop): Call async_enable_stdin here.
3229 * inf-loop.c (inferior_event_handler): Don't call
3230 async_enable_stdin, nor handle "set exec-done-display" here.
3231
30368258 32322011-09-04 Joel Brobecker <brobecker@adacore.com>
3233
3234 GDB 7.3.1 released.
3235
31916278
JB
32362011-09-04 Joel Brobecker <brobecker@adacore.com>
3237
3238 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3239
e8d56f18
JB
32402011-09-04 Joel Brobecker <brobecker@adacore.com>
3241
3242 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3243
5dd05d8c
JK
32442011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3245
3246 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3247
7d8e6458 32482011-09-02 Matt Rice <ratmice@gmail.com>
3249
3250 PR gdb/10720
3251 * event-top.c (cli_command_loop): Replace readline setup with
3252 direct call to display_gdb_prompt.
3253 (display_gdb_prompt): Do not call observer mechanism during
3254 synchronous execution.
3255
84636d28
PA
32562011-09-02 Pedro Alves <pedro@codesourcery.com>
3257
3258 * linux-nat.c (in_pid_list_p): New.
3259 (linux_record_stopped_pid): Delete.
3260 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3261 already attached to the LWP. Return an indication if so.
3262 (linux_nat_filter_event): Adjust.
3263 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3264 returning an indication to ignore this thread.
3265
b4a14fd0
PA
32662011-09-02 Pedro Alves <pedro@codesourcery.com>
3267
3268 * top.c: Include interps.h.
3269 (execute_command): If the target can async, but the interpreter is
3270 in sync mode, synchronously wait for the command to finish before
3271 returning.
3272 (execute_command_to_string): Force the interpreter to sync mode.
3273 * infrun.c: Include interps.h.
3274 (fetch_inferior_event): Don't restore the prompt yet if the
3275 interpreter is in sync mode.
3276 * interps.c (interpreter_async): New global.
3277 * interps.h (interpreter_async): Declare.
3278 * inf-loop.c: Include interps.h.
3279 (inferior_event_handler): Don't print the language change or run
3280 breakpoint commands yet if the interpreter in is sync mode.
3281 * main.c (captured_command_loop): Flip the interpreter to async
3282 mode.
3283 * cli/cli-script.c: Include interps.h.
3284 (execute_user_command, while_command, if_command): Force the
3285 interpreter to sync mode.
3286 * python/python.c: Include interps.h.
3287 (python_command, execute_gdb_command): Force the interpreter to
3288 sync mode.
3289
c709acd1
PA
32902011-09-02 Pedro Alves <pedro@codesourcery.com>
3291
3292 * value.c (show_convenience): Catch errors thrown while printing
3293 each internal variable.
3294 * infrun.c (validate_siginfo_access): New function.
3295 (siginfo_value_read, siginfo_value_write): Call it.
3296
9655e943
JK
32972011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3298
3299 Revert:
3300 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3301 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3302 attribute.
3303
cb457ae2
YQ
33042011-08-29 Yao Qi <yao@codesourcery.com>
3305
3306 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3307 (cmp_name): New.
3308 (enable_break2): Update caller.
3309 * solib-frv.c (bfd_lookup_symbol): Removed.
3310 (cmp_name): New.
3311 (enable_break2): Update caller.
3312 * solib-pa64.c (bfd_lookup_symbol): Removed.
3313 (cmp_name): New.
3314 * solib-svr4.c (bfd_lookup_symbol): Removed.
3315 (cmp_name_and_sec_flags): New.
3316 (enable_break): Update caller.
3317 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3318 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3319 (gdb_bfd_lookup_symbol): New.
3320 * solib.h: Functions declarations.
3321
83d1a36a
YQ
33222011-08-29 Yao Qi <yao@codesourcery.com>
3323
3324 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3325 and solib-dsbt.o.
3326
c04b3e8f
JK
33272011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3328
3329 Fix TUI stepi on code without symbols.
3330 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3331 current PC instead.
3332
cb0fd152
JK
33332011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3334
3335 Code cleanup.
3336 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3337 and the static keyword.
3338 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3339 Make prefix an array.
3340 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3341 * mi/mi-main.c (get_register): Remove stb initialization and the static
3342 keyword.
3343
91174723
JK
33442011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3345
3346 Code cleanup - make mi_opt const.
3347 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3348 opts const.
3349 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3350 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3351 (mi_cmd_env_dir): Likewise.
3352 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3353 (mi_cmd_target_file_put): Likewise.
3354 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3355 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3356 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3357 (mi_valid_noargs): Make opts const.
3358 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3359 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3360 (mi_cmd_data_read_memory): Likewise.
3361 (mi_cmd_data_read_memory_bytes): Likewise.
3362 (mi_cmd_data_write_memory): Likewise.
3363
5068b8e8 33642011-08-26 Matt Rice <ratmice@gmail.com>
3365
3366 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3367 bcache_xmalloc, replace bcache_xmalloc with call to
3368 psymbol_bcache_init for psymbol_cache.
3369 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3370
a4f2ce05
JK
33712011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 * inf-loop.c (inferior_event_handler): Add exception_print in
3374 INF_EXEC_COMPLETE.
3375
353d1d73
JK
33762011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3377
3378 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3379 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3380 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3381 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3382 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3383 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3384 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3385 * infrun.c (fetch_inferior_event): Call
3386 make_bpstat_clear_actions_cleanup.
3387 * top.c (execute_command): New variable cleanup_if_error, call
3388 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3389 * utils.c (do_bpstat_clear_actions_cleanup)
3390 (make_bpstat_clear_actions_cleanup): New functions.
3391
3ced3da4
PA
33922011-08-26 Pedro Alves <pedro@codesourcery.com>
3393
3394 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3395 either the parent or the child forks. Rename a couple locals.
3396
a9f4bb21
PA
33972011-08-26 Pedro Alves <pedro@codesourcery.com>
3398
3399 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3400 library call. Avoid reading the `status' local if all waitpid
3401 calls failed.
3402
e5798bef
PA
34032011-08-26 Pedro Alves <pedro@codesourcery.com>
3404
3405 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3406 opening /proc/PID/task always succeeds.
3407
edb2aadf
AR
34082011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3409
3410 * linespec.c (symtab_from_filename): Check for the end of string.
3411
0d932b2f
MK
34122011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3413
3414 PR mi/11912
3415 * varobj.c (cplus_describe_child): Add the keyword
3416 'class' to the output of the method when dealing
3417 with a cast to a base class.
3418
e93ca019
JK
34192011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 No functionality change.
3422 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3423 function comment a reference, new variables tp and bs, move here code
3424 from throw_exception.
3425 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3426 describe it in the comment.
3427 * exceptions.c (throw_exception): Remove variable tp, move the code for
3428 bpstat_clear_actions to bpstat_clear_actions.
3429
13da1c97
LM
34302011-08-24 Luis Machado <lgustavo@codesourcery.com>
3431
3432 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3433 * linux-nat.c: Include linux-procfs.h.
3434 (linux_proc_get_tgid): Move to ...
3435 * common/linux-procfs.c: ... here. New file.
3436 * common/linux-procfs.h: New file.
3437 * linux-thread-db.c: Include linux-procfs.h.
3438 * Makefile.in: Update dependencies.
3439 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3440 * config/arm/linux.mh: Likewise.
3441 * config/i386/linux.mh: Likewise.
3442 * config/i386/linux64.mh: Likewise.
3443 * config/ia64/linux.mh: Likewise.
3444 * config/m32r/linux.mh: Likewise.
3445 * config/m68k/linux.mh: Likewise.
3446 * config/mips/linux.mh: Likewise.
3447 * config/pa/linux.mh: Likewise.
3448 * config/pa/linux.mh: Likewise.
3449 * config/powerpc/linux.mh: Likewise.
3450 * config/powerpc/ppc64-linux.mh: Likewise.
3451 * config/powerpc/spu-linux.mh: Likewise.
3452 * config/sparc/linux.mh: Likewise.
3453 * config/sparc/linux64.mh: Likewise.
3454 * config/xtensa/linux.mh: Likewise.
3455
4e5c165d
HZ
34562011-08-24 Hui Zhu <teawater@gmail.com>
3457
3458 * tracepoint.c (cond_string_is_same): New function.
3459 (find_matching_tracepoint): Add condition check
3460 by cond_string_is_same.
3461
6e2f5b22
JK
34622011-08-23 Josh Matthews <josh@joshmatthews.net>
3463
3464 Fix build error in Darwin port.
3465 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3466
abf85f46
JK
34672011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 Code cleanup.
3470 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3471 (command_line_is_silent): New function.
3472 (bpstat_do_actions_1): No longer use commands_left, use
3473 command_line_is_silent for commands.
3474 (bpstat_alloc): Remove clearing of commands_left.
3475 (bpstat_stop_status): Remove initialization of commands_left, use
3476 command_line_is_silent.
3477 * breakpoint.h (struct bpstats): Remove commands_left.
3478
3a93a0c2
KS
34792011-08-18 Keith Seitz <keiths@redhat.com>
3480
3481 PR c++/12266
3482 * cp-name-parser.y (struct demangle_info): Remove unused
3483 member PREV.
3484 (d_grab): Likewise.
3485 (allocate_info): Change return type to struct demangle_info *.
3486 Always allocate a new demangle_info.
3487 Remove unused PREV pointer.
3488 (cp_new_demangle_parse_info): New function.
3489 (cp_demangled_name_parse_free): New function.
3490 (do_demangled_name_parse_free_cleanup): New function.
3491 (make_cleanup_cp_demangled_name_parse_free): New function.
3492 (cp_demangled_name_to_comp): Change return type to
3493 struct demangle_parse_info *.
3494 Allocate a new storage for each call.
3495 (main): Update usage for cp_demangled_name_to_comp
3496 API change.
3497 * cp-support.h (struct demangle_parse_info): New structure.
3498 (cp_demangled_name_to_comp): Update API change for
3499 return type.
3500 (cp_new_demangle_parse_info): Declare.
3501 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3502 (cp_demangled_name_parse_free): Declare.
3503 * cp-support.c (cp_canonicalize_string): Update API
3504 change for cp_demangled_name_to_comp.
3505 (mangled_name_to_comp): Likewise.
3506 Return struct demangle_parse_info, too.
3507 (cp_class_name_from_physname): Update mangled_name_to_comp
3508 API change.
3509 (method_name_from_physname): Likewise.
3510 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3511 (cp_remove_params): Likewise.
3512 * python/py-type.c (typy_legacy_template_argument): Likewise.
3513
3514 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3515 (cp_merge_demangle_parse_infos): Declare.
3516 * cp-support.c (ignore_typedefs): New file global.
3517 (copy_string_to_obstack): New function.
3518 (inspect_type): New function.
3519 (replace_typedefs): New function.
3520 (replace_typedefs_qualified_name): New function.
3521 (cp_canonicalize_string_no_typedefs): New function.
3522 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3523 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3524 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3525 instead of cp_canonicalize_string.
3526 (find_method): Likewise.
3527 (decode_compound): Before looking up the name, call
3528 cp_canonicalize_string_no_typedefs.
3529 (decode_variable): Likewise.
3530
fa3a4f15
PM
35312011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3532 Tom Tromey <tromey@redhat.com>
3533 Matt Rice <ratmice@gmail.com>
3534
3535 * python/lib/gdb/prompt.py: New file.
3536 * python/lib/gdb/command/prompt.py: New file.
3537 * NEWS: Document set extended-prompt and gdb.prompt library
3538
85661b1e
YQ
35392011-08-16 Yao Qi <yao@codesourcery.com>
3540
3541 * tic6x-linux-tdep.c: Move const arrays definition from here...
3542 * tic6x-tdep.c: to here ...
3543
11315641
YQ
35442011-08-14 Yao Qi <yao@codesourcery.com>
3545
3546 * NEWS: New port to Texas Instruments TMS320C6x.
3547
8cd64e00
YQ
35482011-08-14 Andrew Jenner <andrew@codesourcery.com>
3549 Bernd Schmidt <bernds@codesourcery.com>
3550 Yao Qi <yao@codesourcery.com>
3551
3552 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3553 * solib-dsbt.c: New file. Support DSBT shared object.
3554 * tic6x-linux-tdep.c: New file.
3555 * tic6x-tdep.c: New file.
3556 * tic6x-tdep.h: New file.
3557
78d85199
YQ
35582011-08-14 Andrew Stubbs <ams@codesourcery.com>
3559 Yao Qi <yao@codesourcery.com>
3560
3561 * remote.c (PACKET_qXfer_fdpic): New enum value.
3562 (remote_protocol_features): Add qXfer:fdpic:read packet.
3563 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3564 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3565 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3566
224bbe49
YQ
35672011-08-14 Yao Qi <yao@codesourcery.com>
3568
3569 Target description for tic6x.
3570 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3571 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3572 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3573 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3574 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3575 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3576 * features/tic6x-c64xp-linux.xml: New.
3577 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3578 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3579 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3580 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3581 * regformats/tic6x-c64xp.dat,
3582 regformats/tic6x-c62x-linux.dat: Generated.
3583 * regformats/tic6x-c64x-linux.dat,
3584 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3585 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3586 features/tic6x-*.c files.
3587 Add regformats/tic6x-*.dat files.
3588
457e09f0
DE
35892011-08-12 Doug Evans <dje@google.com>
3590
3591 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3592 * python/py-symbol.c (sympy_get_type): New function.
3593 (symbol_object_getset): Add "type".
3594
d20c1c3f
PA
35952011-08-12 Pedro Alves <pedro@codesourcery.com>
3596
3597 PR tui/13073
3598
3599 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3600 empty name.
3601 (tui_show_register_group): Don't store a byte buffer in the data
3602 element's value.
3603 (tui_register_format): Skip registers with an empty name.
3604 (tui_get_register): Store a struct value in the data element's
3605 value field instead of a byte buffer holding the raw register
3606 contents. Account for optimized-out and unavailable registers
3607 when comparing register contents.
3608
9d8fa392
PA
36092011-08-09 Pedro Alves <pedro@codesourcery.com>
3610
3611 * printcmd.c (current_display_number): Update comment.
3612 (disable_current_display_cleanup): Delete.
3613 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3614 catch errors thrown while evaluating and printing the display.
3615
401a70b8
TT
36162011-08-09 Tom Tromey <tromey@redhat.com>
3617
3618 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3619
7f86f058
PA
36202011-08-09 Pedro Alves <pedro@codesourcery.com>
3621
94b71cca 3622 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3623 * maint.c (maintenance_command): Ditto.
3624 * somread.c (som_symtab_read): Ditto.
3625 * solib.c (solib_find, solib_map_sections, update_solib_list)
3626 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3627 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3628 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3629 * solib-irix.c (locate_base, disable_break, enable_break)
3630 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3631 (irix_current_sos, irix_open_symbol_file_object)
3632 (irix_special_symbol_handling): Ditto.
3633 * solib-sunos.c (locate_base, first_link_map_member)
3634 (sunos_current_sos, disable_break, enable_break)
3635 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3636 Ditto.
3637 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3638 (open_symbol_file_object, svr4_current_sos, enable_break)
3639 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3640 Ditto.
3641 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3642 (frv_current_sos, enable_break, frv_special_symbol_handling)
3643 (frv_solib_create_inferior_hook): Ditto.
3644 * solist.h (struct target_so_ops): Extend the comments of the
3645 special_symbol_handling, current_sos and open_symbol_file_object
3646 methods.
3647
5e239b84
PM
36482011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3649
3650 * python/lib/gdb/__init__.py: Auto-load files in command and
3651 function directories.
3652 * python/python.c (finish_python_initialization): Use
3653 os.path.join.
3654 * python/lib/gdb/command/pretty_printers.py: Self register
3655 command.
3656 * NEWS: Document auto-loading.
3657
b6cede78
JK
36582011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3661 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3662 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3663
29d0bb3d
TT
36642011-08-08 Tom Tromey <tromey@redhat.com>
3665
3666 * breakpoint.c (clean_up_filters): Remove.
3667 (catch_syscall_split_args): Use VEC_cleanup.
3668
2f7fb8e4
JK
36692011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3670
3671 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3672 (main): Uncomment "Demangling error\n".
3673
d6c10e95
PP
36742011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3675
3676 * solib-target.c (segment_attributes): Make them static.
3677 (section_attributes, library_children, library_attributes): Likewise.
3678 (library_list_children, library_list_attributes): Likesise.
3679 (library_list_elements): Likewise.
3680
af6e93b2
PA
36812011-08-05 Pedro Alves <pedro@codesourcery.com>
3682
3683 * exceptions.c (throw_exception): Don't disable the current
3684 display.
3685 * printcmd.c (disable_current_display_cleanup): New function.
3686 (do_one_display): Install a cleanup to disable the current display
3687 if doing the display throws.
3688
6a1b1664
EZ
36892011-08-05 Eli Zaretskii <eliz@gnu.org>
3690
3691 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3692 initialization of the tp_new member to the corresponding
3693 gdbpy_initialize_* function.
3694 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3695 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3696 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3697 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3698 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3699
31a0ae49
JK
37002011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3701
3702 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3703 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3704 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3705 references to current_uiout.
3706
e0dd0826
PA
37072011-08-04 Pedro Alves <pedro@codesourcery.com>
3708
3709 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3710 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3711 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3712 * top.c (gdb_readline_wrapper): Adjust.
3713 * tui/tui-interp.c (tui_command_loop):
3714 (_initialize_tui_interp): Don't install it.
3715
79a45e25
PA
37162011-08-04 Pedro Alves <pedro@codesourcery.com>
3717
3718 * ui-out.h (uiout): Rename to ...
3719 (current_uiout): ... this.
3720 * ui-out.c (uiout): Rename to ...
3721 (current_uiout): ... this.
3722 * ada-lang.c (print_it_exception, print_one_exception)
3723 (print_mention_exception): Adjust.
3724 * breakpoint.c (watchpoint_check): Adjust.
3725 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3726 (default_collect_info, watchpoints_info, print_one_catch_fork)
3727 (print_one_catch_vfork, print_one_catch_syscall)
3728 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3729 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3730 (print_it_watchpoint, print_mention_watchpoint)
3731 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3732 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3733 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3734 (bkpt_print_mention, momentary_bkpt_print_it)
3735 (tracepoint_print_mention, update_static_tracepoint)
3736 (tracepoints_info, save_breakpoints): Adjust.
3737 * cli-out.c (field_separator): Adjust.
3738 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3739 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3740 * frame.c (get_current_frame): Adjust.
3741 * infcmd.c (run_command_1, print_return_value): Adjust.
3742 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3743 * infrun.c (print_end_stepping_range_reason): Adjust.
3744 (print_signal_exited_reason, print_exited_reason): Adjust.
3745 (print_signal_received_reason, print_no_history_reason): Adjust.
3746 * interps.c (interp_set): Adjust.
3747 * osdata.c (info_osdata_command): Adjust.
3748 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3749 * remote-fileio.c (remote_fileio_request): Adjust.
3750 * remote.c (show_remote_cmd): Adjust.
3751 * solib.c (info_sharedlibrary_command): Adjust.
3752 * source.c (print_source_lines_base): Adjust.
3753 * stack.c (print_stack_frame): Adjust.
3754 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3755 * symfile-mem.c (add_vsyscall_page): Adjust.
3756 * symfile.c (load_progress, generic_load)
3757 (print_transfer_performance): Adjust.
3758 * thread.c (info_threads_command, restore_selected_frame)
3759 (thread_command): Adjust.
3760 * top.c (make_cleanup_restore_ui_file): Adjust.
3761 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3762 (print_one_static_tracepoint_marker): Adjust.
3763 * cli/cli-cmds.c (print_disassembly): Adjust.
3764 * cli/cli-decode.c (print_doc_line): Adjust.
3765 * cli/cli-interp.c (safe_execute_command): Adjust.
3766 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3767 (handle_redirections): Adjust.
3768 * cli/cli-script.c (show_user_1): Adjust.
3769 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3770 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3771 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3772 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3773 (mi_cmd_env_dir): Adjust.
3774 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3775 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3776 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3777 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3778 (list_args_or_locals): Adjust.
3779 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3780 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3781 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3782 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3783 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3784 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3785 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3786 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3787 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3788 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3789 (list_available_thread_groups, mi_cmd_list_thread_groups)
3790 (mi_cmd_data_list_register_names)
3791 (mi_cmd_data_list_changed_registers)
3792 (mi_cmd_data_list_register_values, get_register)
3793 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3794 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3795 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3796 (mi_execute_command, mi_load_progress): Adjust.
3797 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3798 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3799 Adjust.
3800 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3801 * tui/tui-interp.c (tui_command_loop): Adjust.
3802 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3803
f9679975
PA
38042011-08-04 Pedro Alves <pedro@codesourcery.com>
3805
3806 * exceptions.c (struct catcher): Remove saved_uiout field.
3807 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3808 no longer save/resvore the global ui_out builder.
3809 (catch_exceptions_with_msg): Save/override/restore the global
3810 ui_out builder manually instead of relying on TRY_CATCH to do it.
3811 (catch_errors): Save/restore the global ui_out builder manually
3812 instead of relying on TRY_CATCH to do it.
3813 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3814 parameter.
3815 (TRY_CATCH): Adjust.
3816 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3817 the global ui_out builder manually instead of relying on TRY_CATCH
3818 to do it.
3819
934709f0
PW
38202011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3821
3822 * breakpoint.c (update_global_location_list): Ensure
3823 invariant 'first loc marked not duplicated and inserted,
3824 following locs marked duplicated/not inserted' is respected
3825 for multiple locations at the same address.
3826 (unduplicated_should_be_inserted) New function.
3827 (swap_insertion) New function.
3828
2421fe6f
JK
38292011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3830
3831 * stack.c (print_frame_arguments_choices): Comment typo fix.
3832
3fbb6ffa
TJB
38332011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3834
3835 Revert:
3836 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3837 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3838 argument. Update callers.
3839
fbe12357
PP
38402011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3841
3842 PR gdb/13045
3843 * doublest.c (convert_doublest_to_floatformat): Pass correct
3844 mantissa length to put_field.
3845
b1d288d3
JK
38462011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3847
3848 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3849 exception_print code path.
3850 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3851 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3852 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3853
311b5970
JK
38542011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3855
3856 Code cleanup.
3857 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3858 Remove, merge them into ...
3859 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3860 variable args and its initialization.
3861 (struct print_args_args, print_args_stub): Remove, merge them into
3862 print_frame.
3863 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3864 them into ...
3865 (do_gdb_disassembly): ... here. Remove variable args and its
3866 initialization.
3867 (print_frame): Remove variable args and its initialization, new
3868 variable gdbarch and numargs (from print_args_stub), inline here
3869 print_args_stub with a TRY_CATCH.
3870 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3871 them into ...
3872 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3873 New variable e, remove variable btargs and its initialization.
311b5970 3874
484a26a8
TG
38752011-08-01 Tristan Gingold <gingold@adacore.com>
3876
3877 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3878
c30eee59
TJB
38792011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3880
3881 * breakpoint.c (insert_bp_location): Document return value.
3882 (insert_breakpoint_locations): Fix documentation.
3883 (remove_breakpoints): Add documentation.
3884
f116073b
TJB
38852011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3886
3887 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3888 argument. Update callers.
3889
65aa373f
JK
38902011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3891
3892 * stack.c (print_frame_info): Comment typo fix.
3893
a50242fb
SA
38942011-07-29 Sterling Augustine <saugustine@google.com>
3895
3896 * MAINTAINERS (Write After Approval): Add myself to the list.
3897
267f6504
TT
38982011-07-29 Tom Tromey <tromey@redhat.com>
3899
3900 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3901 (library_list_start_segment): Update.
3902 (library_list_start_section): Update.
3903
00bd41d6
PM
39042011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3905
3906 * varobj.c (value_get_print_value): Move hint check later into the
3907 function. Comment function. Free thevalue before reusing it.
3908
18a46dbe
JK
39092011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 Pedro Alves <pedro@codesourcery.com>
3911
3912 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3913 value_one.
3914 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3915 Assert the result kind.
3916 * value.h (value_one): Remove parameter lv.
3917
bb7da2bf
JK
39182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3919
3920 Fix crash on lval_computed values.
3921 * valops.c (value_zero): Use not_lval for lval_computed.
3922
2d5213f8
TT
39232011-07-27 Tom Tromey <tromey@redhat.com>
3924
3925 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3926 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3927
11081198
JK
39282011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3929
3930 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3931 "ptype" by their typedefs difference.
3932
3c6e0cb3
JK
39332011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3934
3935 * dwarf2expr.c (ctx_no_read_reg): New function.
3936 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3937 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3938 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3939 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3940
523f3620
JK
39412011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3942
3943 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3944 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3945 file.
3946 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3947 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3948 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3949 (ctx_no_get_base_type): Move the functions here.
3950 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3951 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3952 (ctx_no_get_base_type): New declarations.
3953
24d3216f
TT
39542011-07-27 Tom Tromey <tromey@redhat.com>
3955
3956 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3957 entries.
3958 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3959 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3960
5005c8a9
PP
39612011-07-26 Sterling Augustine <saugustine@google.com>
3962
3963 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3964 ULONGEST.
3965 (dump_bfd_file): Likewise.
3966
480a3f21
PW
39672011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3968
3969 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3970 (remote_hw_watchpoint_length_limit): New variable.
3971 (_initialize_remote) add set,show cmds for this new variable.
3972 * gdb.texinfo: document these new commands.
3973 * NEWS: Mention these new commands.
3974
efa80663
PA
39752011-07-26 Pedro Alves <pedro@codesourcery.com>
3976
3977 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3978 true for software watchpoints.
3979
dbdaa232 39802011-07-26 Joel Brobecker <brobecker@adacore.com>
3981
3982 GDB 7.3 released.
3983
cf2c3c16
TT
39842011-07-26 Tom Tromey <tromey@redhat.com>
3985
3986 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3987 * dwarf2read.c (read_indirect_string_at_offset): New function.
3988 (read_indirect_string): Use it.
3989 (dwarf_decode_macro_bytes): New function, taken from
3990 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3991 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3992 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3993 New functions.
3994 (struct dwarf2_per_objfile) <macro>: New field.
3995 (dwarf2_elf_names): Add .debug_macro.
3996 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3997 (dwarf2_locate_sections): Handle new section.
3998 (read_file_scope): Handle DW_AT_GNU_macros.
3999 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4000
1a532630
PP
40012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4002
4003 * NEWS: Mention dcache configuration.
4004 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4005 (dcache_size, dcache_line_size): New variables.
4006 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4007 (struct dcache_block): Make it expandable.
4008 (struct dcache_struct): New field.
4009 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4010 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4011 (dcache_poke_byte, dcache_print_line): Adjust.
4012 (set_dcache_size, set_dcache_line_size): New functions.
4013 (set_dcache_command, show_dcache_command): New functions.
4014 (_initialize_dcache): Add new commands.
4015
2eff07b3
PP
40162011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4017
4018 * progspace.h (struct program_space): Add solib_add_generation.
4019 * infcmd.c (post_create_inferior): Only call solib_add if not
4020 already done.
4021 * solib.c (solib_add): Increment solib_add_generation.
4022
543305c9
JK
40232011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 Fix implicit pointer offsets.
4026 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4027 ptr.OFFSET.
4028
c0a91b2b
TT
40292011-07-25 Tom Tromey <tromey@redhat.com>
4030
4031 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4032 const.
4033 (ada_exception_sal): Make 'ops' const.
4034 (ada_decode_exception_location): Likewise.
4035 (ada_decode_assert_location): Likewise.
4036 (catch_assert_command): Update.
4037 (catch_ada_exception_command): Update.
4038 (create_ada_exception_catchpoint): Make 'ops' const.
4039 * breakpoint.c (set_raw_breakpoint_without_location)
4040 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4041 const.
4042 (create_internal_breakpoint): Update.
4043 (init_raw_breakpoint_without_location): Make 'ops' const.
4044 (init_raw_breakpoint, init_catchpoint)
4045 (create_fork_vfork_event_catchpoint)
4046 (create_syscall_event_catchpoint, init_breakpoint_sal)
4047 (create_breakpoint_sal, create_breakpoints_sal)
4048 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4049 * breakpoint.h (struct breakpoint) <ops>: Now const.
4050 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4051 const.
4052
6cb9b55b
PP
40532011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4054
4055 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4056
d9b3f62e
PA
40572011-07-25 Pedro Alves <pedro@codesourcery.com>
4058
4059 * breakpoint.h (print_recreate_thread): Declare.
4060 (struct breakpoint): Move step_count, pass_count,
4061 number_on_target, static_trace_marker_id,
4062 static_trace_marker_id_idx ...
4063 (struct tracepoint): ... to this new struct.
4064 (get_tracepoint, get_tracepoint_by_number_on_target)
4065 (get_tracepoint_by_number): Change return type to struct
4066 tracepoint pointer.
4067 * breakpoint.c (is_tracepoint_type): New, factored out from
4068 is_tracepoint.
4069 (is_tracepoint): Adjust.
4070 (print_one_breakpoint_location): Cast to struct tracepoint as
4071 necessary, and adjust.
4072 (print_recreate_catch_fork, print_recreate_catch_vfork)
4073 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4074 print_recreate_thread.
4075 (init_breakpoint_sal): New, factored out from
4076 create_breakpoint_sal.
4077 (create_breakpoint_sal): Reimplement.
4078 (create_breakpoint): Allocate a struct tracecepoint if the caller
4079 wanted a tracepoint. Use init_breakpoint_sal and
4080 install_breakpoint.
4081 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4082 (print_recreate_masked_watchpoint)
4083 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4084 (tracepoint_print_one_detail): Adjust.
4085 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4086 Dump the pass count here.
4087 (update_static_tracepoint): Adjust.
4088 (addr_string_to_sals): Adjust.
4089 (create_tracepoint_from_upload): Adjust. Change return type to
4090 struct tracepoint pointer.
4091 (trace_pass_set_count): Change parameter type to struct tracepoint
4092 pointer, and adjust.
4093 (trace_pass_command): Adjust.
4094 (get_tracepoint, get_tracepoint_by_number_on_target)
4095 (get_tracepoint_by_number): Change return type to struct
4096 tracepoint pointer, and adjust.
4097 (print_recreate_thread): New, factored out from save_breakpoints.
4098 (save_breakpoints): Don't print thread and task and passcount
4099 recreation here.
4100 * remote.c (remote_download_tracepoint): Adjust.
4101 * tracepoint.c (trace_actions_command, validate_actionline)
4102 (start_tracing, tfind_1, trace_find_tracepoint_command)
4103 (trace_dump_command): Adjust.
4104 (find_matching_tracepoint): Change return type to struct
4105 tracepoint pointer, and adjust.
4106 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4107 (tfile_trace_find, tfile_fetch_registers): Adjust.
4108 * tracepoint.h (create_tracepoint_from_upload): Change return type
4109 to struct tracepoint pointer.
4110 * ada-lang.c (print_recreate_exception): Call
4111 print_recreate_thread.
4112 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4113
3a5c3e22
PA
41142011-07-25 Pedro Alves <pedro@codesourcery.com>
4115
4116 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4117 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4118 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4119 watchpoint_thread, watchpoint_triggered ...
4120 (struct watchpoint): ... to this new struct.
4121 (is_watchpoint): Declare.
4122 (install_breakpoint): Add new `internal' parameter.
4123 * breakpoint.c (is_watchpoint): Delete declaration.
4124 (set_breakpoint_condition): Handle watchpoints.
4125 (is_watchpoint): Make public.
4126 (watchpoint_in_thread_scope): Change parameter type to struct
4127 watchpoint.
4128 (watchpoint_del_at_next_stop): Change parameter type to struct
4129 watchpoint. Remove assertion. Adjust.
4130 (update_watchpoint): Ditto.
4131 (insert_breakpoints, breakpoint_init_inferior)
4132 (watchpoints_triggered, watchpoint_check)
4133 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4134 (bpstat_stop_status, print_one_breakpoint_location)
4135 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4136 to struct watchpoint as necessary, and adjust.
4137 (install_breakpoint): Add `internal' argument. If true, don't
4138 mention the new breakpoint. Use set_breakpoint_number.
4139 (create_fork_vfork_event_catchpoint)
4140 (create_syscall_event_catchpoint): Adjust.
4141 (dtor_watchpoint): New.
4142 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4143 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4144 (print_it_watchpoint, print_mention_watchpoint)
4145 (print_recreate_watchpoint, insert_masked_watchpoint)
4146 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4147 (print_one_detail_masked_watchpoint)
4148 (print_mention_masked_watchpoint)
4149 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4150 necessary, and adjust.
4151 (watch_command_1): Allocate and initialize a struct watchpoint
4152 instead of a struct breakpoint. Use install_breakpoint.
4153 (catch_exec_command_1): Adjust.
4154 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4155 fields.
4156 (delete_breakpoint, enable_breakpoint_disp)
4157 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4158 as necessary, and adjust.
4159 (initialize_breakpoint_ops): Install dtor_watchpoint as
4160 watchpoints' dtor method.
4161 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4162 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4163 to struct watchpoint as necessary, and adjust.
4164
2060206e
PA
41652011-07-25 Pedro Alves <pedro@codesourcery.com>
4166
4167 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4168 the the base class ops table.
4169 (catch_exception_breakpoint_ops)
4170 (catch_exception_unhandled_breakpoint_ops)
4171 (catch_assert_breakpoint_ops): Don't statically initialize.
4172 (initialize_ada_catchpoint_ops): New.
4173 (_initialize_ada_language): Call it.
4174 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4175 (bkpt_breakpoint_ops): Forward declare.
4176 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4177 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4178 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4179 (masked_watchpoint_breakpoint_ops)
4180 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4181 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4182 base class ops table.
4183 (null_re_set, null_check_status, null_works_in_software_mode)
4184 (null_resources_needed, null_print_one_detail): Delete.
4185 (bkpt_dtor): Rename to ...
4186 (base_breakpoint_dtor): ... this. Make static.
4187 (bkpt_allocate_location): Rename to ...
4188 (base_breakpoint_allocate_location): ... this. Make static.
4189 (base_breakpoint_re_set): New.
4190 (internal_error_pure_virtual_called): New.
4191 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4192 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4193 (base_breakpoint_works_in_software_mode)
4194 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4195 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4196 (base_breakpoint_print_recreate): New functions.
4197 (base_breakpoint_ops): New global.
4198 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4199 (bkpt_breakpoint_hit): Make static.
4200 (bkpt_check_status): Delete.
4201 (bkpt_resources_needed): Make static.
4202 (bkpt_works_in_software_mode): Delete.
4203 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4204 static.
4205 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4206 (momentary_breakpoint_ops): Don't statically initialize.
4207 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4208 Delete.
4209 (tracepoint_insert_location, tracepoint_remove_location)
4210 (tracepoint_check_status, tracepoint_works_in_software_mode)
4211 (tracepoint_print_it): Delete.
4212 (tracepoint_breakpoint_ops): Don't statically initialize.
4213 (initialize_breakpoint_ops): New.
4214 (_initialize_breakpoint): Call it.
4215 * breakpoint.h (null_re_set, null_works_in_software_mode)
4216 (null_resources_needed, null_check_status, null_print_one_detail):
4217 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4218 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4219 (bkpt_check_status, bkpt_resources_needed)
4220 (bkpt_works_in_software_mode, bkpt_print_it)
4221 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4222 Delete declarations.
4223 (initialize_breakpoint_ops): Declare.
4224
001c8c33
PA
42252011-07-25 Pedro Alves <pedro@codesourcery.com>
4226
4227 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4228 (momentary_bkpt_print_it): Simplify.
4229
06edf0c0
PA
42302011-07-25 Pedro Alves <pedro@codesourcery.com>
4231
4232 Split internal, momentary and user breakpoints breakpoint_ops
4233 tables.
4234
4235 * breakpoint.c (internal_breakpoint_ops)
4236 (momentary_breakpoint_ops): Forward declare.
4237 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4238 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4239 (create_overlay_event_breakpoint)
4240 (create_std_terminate_master_breakpoint)
4241 (create_exception_master_breakpoint): Create breakpoints with
4242 internal_breakpoint_ops vtable.
4243 (set_longjmp_breakpoint): Create momentary breakpoints with
4244 momentary_breakpoint_ops vtable, using
4245 momentary_breakpoint_from_master.
4246 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4247 (create_solib_event_breakpoint): Create breakpoints with
4248 internal_breakpoint_ops vtable.
4249 (set_momentary_breakpoint): Create breakpoints with
4250 momentary_breakpoint_ops vtable.
4251 (momentary_breakpoint_from_master): New, factored out from
4252 clone_momentary_breakpoint.
4253 (clone_momentary_breakpoint): Adjust.
4254 (watch_command_1): Create scope breakpoints with
4255 momentary_breakpoint_ops vtable.
4256 (bkpt_re_set): Remove handling of internal and momentary
4257 breakpoints.
4258 (bkpt_print_mention, bkpt_print_recreate): New.
4259 (bkpt_breakpoint_ops): Adjust.
4260 (internal_bkpt_re_set, internal_bkpt_check_status)
4261 (internal_bkpt_print_it, internal_bkpt_print_mention)
4262 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4263 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4264 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4265 (momentary_bkpt_print_recreate): New.
4266 (momentary_breakpoint_ops): New.
4267
348d480f
PA
42682011-07-25 Pedro Alves <pedro@codesourcery.com>
4269
4270 Implement most breakpoint_ops methods for all breakpoint types,
4271 and move the default handlings to the proper callbacks.
4272
4273 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4274 works_in_software_mode method.
4275 (insert_bp_location): Go through breakpoint_ops->insert_location
4276 for software and hardware watchpoints.
4277 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4278 breakpoint_ops.
4279 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4280 for software and hardware watchpoints.
4281 (print_it_typical): Delete.
4282 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4283 method.
4284 (watchpoint_check): Adjust comment.
4285 (bpstat_check_location): Simply always call the breakpoint's
4286 breakpoint_hit method.
4287 (bpstat_stop_status): Always call the breakpoint's check_status
4288 method. Remove special cases for watchpoints and internal event
4289 breakpoints from here (moved to the check_status implementations).
4290 (print_one_breakpoint_location): Assume b->ops is never NULL.
4291 Remove static tracepoint marker id printing from here (moved to
4292 the print_one_detail callback implementation of tracepoints).
4293 (init_bp_location): Assert OPS is never NULL.
4294 (allocate_bp_location): Always call the breakpoint's
4295 allocate_location method, and remove the default code from here.
4296 (free_bp_location): Always call the location's dtor method, and
4297 remove the default code from here.
4298 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4299 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4300 parameter. Pass it down.
4301 (set_raw_breakpoint): Ditto.
4302 (print_it_catch_fork): Adjust to take a bpstat as argument.
4303 (catch_fork_breakpoint_ops): Install methods.
4304 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4305 (catch_vfork_breakpoint_ops): Install methods.
4306 (dtor_catch_syscall): Call the base dtor.
4307 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4308 (catch_syscall_breakpoint_ops): Install methods.
4309 (dtor_catch_exec): Call the base dtor.
4310 (print_it_catch_exec): Adjust to take a bpstat as argument.
4311 (catch_exec_breakpoint_ops): Install methods.
4312 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4313 the breakpoint's resources_needed method, and remove the default
4314 code from here.
4315 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4316 breakpoint_ops.
4317 (clone_momentary_breakpoint): Clone the original's ops.
4318 (mention): Always call the breakpoint's print_mention method, and
4319 remove the default code from here.
4320 (create_breakpoint_sal): Adjust to pass the ops to
4321 set_raw_breakpoint rather than setting it manually.
4322 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4323 ops to set_raw_breakpoint_without_location rather than setting it
4324 manually.
4325 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4326 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4327 (ranged_breakpoint_ops): Install methods.
4328 (break_range_command): Adjust to pass the ops to
4329 set_raw_breakpoint rather than setting it manually.
4330 (re_set_watchpoint, breakpoint_hit_watchpoint)
4331 (check_status_watchpoint, resources_needed_watchpoint)
4332 (works_in_software_mode_watchpoint, print_it_watchpoint)
4333 (print_mention_watchpoint, print_recreate_watchpoint): New
4334 functions.
4335 (watchpoint_breakpoint_ops): Install new methods.
4336 (print_it_masked_watchpoint): New function.
4337 (masked_watchpoint_breakpoint_ops): Install new methods.
4338 (watch_command_1): Adjust to pass the right breakpoint_ops to
4339 set_raw_breakpoint_without_location rather than setting it
4340 manually later. Record the current pspace.
4341 (print_it_exception_catchpoint): Adjust to take a bpstat as
4342 argument.
4343 (gnu_v3_exception_catchpoint_ops): Install new methods.
4344 (say_where): New function.
4345 (null_re_set, null_check_status, null_works_in_software_mode)
4346 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4347 New functions.
4348 (bp_location_ops): New global.
4349 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4350 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4351 (bkpt_check_status, bkpt_resources_needed)
4352 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4353 (bkpt_print_recreate): New functions.
4354 (bkpt_breakpoint_ops): New global.
4355 (tracepoint_re_set, tracepoint_insert_location)
4356 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4357 (tracepoint_check_status, tracepoint_works_in_software_mode)
4358 (tracepoint_print_it, tracepoint_print_one_detail)
4359 (tracepoint_print_mention, tracepoint_print_recreate): New
4360 functions.
4361 (tracepoint_breakpoint_ops): New global.
4362 (delete_breakpoint): Always call the breakpoint's dtor method, and
4363 remove the default handling from here.
4364 (breakpoint_re_set_default): Make static.
4365 (breakpoint_re_set_one): Always call the breakpoints re_set
4366 method, and remove the default handling from here.
4367 (trace_command, ftrace_command, strace_command)
4368 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4369 to create_breakpoint.
4370 (save_breakpoints): Always call the breakpoint's print_recreate
4371 method, and remove the default handling from here.
4372
4373 * ada-lang.c (dtor_exception): Call the base dtor.
4374 (re_set_exception): Call the base method.
4375 (print_it_exception, print_it_catch_exception): Adjust to take a
4376 bpstat as argument.
4377 (catch_exception_breakpoint_ops): Install methods.
4378 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4379 argument.
4380 (catch_exception_unhandled_breakpoint_ops): Install methods.
4381 (print_it_catch_assert): Adjust to take a bpstat as argument.
4382 (catch_assert_breakpoint_ops): Install methods.
4383
4384 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4385 to take a bpstat as argument.
4386 (enum print_stop_action): Add describing comments to each enum
4387 value.
4388 (breakpoint_re_set_default): Delete declaration.
4389 (null_re_set, null_works_in_software_mode, null_resources_needed)
4390 (null_check_status, null_print_one_detail): Declare.
4391 (bkpt_breakpoint_ops): Declare.
4392 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4393 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4394 (bkpt_check_status, bkpt_resources_needed)
4395 (bkpt_works_in_software_mode, bkpt_print_it)
4396 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4397 Declare.
4398
4399 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4400 bkpt_breakpoint_ops.
4401 * python/py-breakpoint.c (bppy_init): Ditto.
4402
be8f8133
PW
44032011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4404
4405 * MAINTAINERS (Write After Approval): Add myself to the list.
4406
3807f613
PP
44072011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4408
4409 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4410
1ced966e
PA
44112011-07-22 Pedro Alves <pedro@codesourcery.com>
4412
4413 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4414 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4415 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4416 adjust.
4417 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4418 (struct i386_debug_reg_state): New.
4419 (i386_init_dregs): New.
4420 (dr_mirror): New.
4421 (i386_cleanup_dregs): Use i386_init_dregs.
4422 (i386_show_dr): Add state parameter and adjust.
4423 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4424 the inferior here.
4425 (i386_remove_aligned_watchpoint): Likewise.
4426 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4427 (i386_update_inferior_debug_regs): New.
4428 (i386_insert_watchpoint): Work on a local mirror of the debug
4429 registers, and only update the inferior on success.
4430 (i386_remove_watchpoint): Ditto.
4431 (i386_region_ok_for_watchpoint): Adjust.
4432 (i386_stopped_data_address): Adjust.
4433 (i386_insert_hw_breakpoint): Adjust.
4434 (i386_remove_hw_breakpoint): Adjust.
4435
3543a589
TT
44362011-07-22 Tom Tromey <tromey@redhat.com>
4437
4438 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4439 from amd64_pseudo_register_read. Change arguments. Call
4440 mark_value_bytes_unavailable when needed.
4441 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4442 set_gdbarch_pseudo_register_read.
4443 * sentinel-frame.c (sentinel_frame_prev_register): Use
4444 regcache_cooked_read_value.
4445 * regcache.h (regcache_cooked_read_value): Declare.
4446 * regcache.c (regcache_cooked_read_value): New function.
4447 (regcache_cooked_read): Call
4448 gdbarch_pseudo_register_read_value if available.
4449 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4450 (i386_pseudo_register_read): Remove.
4451 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4452 i386_pseudo_register_read. Change arguments. Call
4453 mark_value_bytes_unavailable when needed.
4454 (i386_pseudo_register_read_value): New function.
4455 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4456 not set_gdbarch_pseudo_register_read.
4457 * gdbarch.sh (pseudo_register_read_value): New method.
4458 * gdbarch.c, gdbarch.h: Rebuild.
4459 * findvar.c (value_from_register): Call get_frame_register_value.
4460
95298e72
PM
44612011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4462
4463 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4464 get_prefix.
4465 (display_gdb_prompt): Likewise.
4466 (change_annotation_level): Likewise.
4467 (push_prompt): Likewise.
4468 (pop_prompt): Likewise.
4469 (handle_stop_sig): Use get_prompt with a level.
4470 * top.c (command_loop): Use get_prompt with a level.
4471 (set_async_annotation_level): Use set_prompt with a level.
4472 (get_prefix): New function.
4473 (set_prefix): Ditto.
4474 (set_suffix): Ditto.
4475 (get_suffix): Ditto.
4476 (get_prompt): Accept a level argument.
4477 (set_prompt): Accept a level argument. Free old prompts. Set
4478 new_async_prompt if level is 0.
4479 (init_main): Use set_prompt with a level. Do not set
4480 new_async_prompt.
4481 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4482 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4483 Modify set_prompt, get_prompt to account for levels.
4484 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4485 level.
4486 * python/python.c (before_prompt_hook): Use set_prompt.
4487
d26e3629
KY
44882011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4489
4490 * defs.h: Add guard against inclusion in gdbserver.
4491 (struct ptid, ptid_t): Move to common/ptid.h.
4492 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4493 xsnprintf, internal_error): Move to common/common-utils.h.
4494 (nomem): Delete.
4495 * gdb_assert.h: Move into common/ sub-directory.
4496 * gdb_locale.h: Ditto.
4497 * gdb_dirent.h: Ditto.
4498 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4499 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4500 Move into common/ptid.h.
4501 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4502 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4503 Change nomem to malloc_failure.
4504 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4505 * utils.c (nomem): Rename to malloc_failure.
4506 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4507 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4508 (gdb_buildargv): Change nomem to malloc_failure.
4509 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4510 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4511 ptid_is_pid): Move into common/ptid.c.
4512 (initialize_infrun): Delete initialization of null_ptid and
4513 minus_one_ptid.
4514 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4515 linux_common_xfer_osdata.
4516 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4517 common/ptid.c and common/buffer.c.
4518 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4519 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4520 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4521 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4522 rules.
4523 * common/gdb_assert.h: New.
4524 * common/gdb_dirent.h: New.
4525 * common/gdb_locale.h: New.
4526 * common/buffer.c: New.
4527 * common/buffer.h: New.
4528 * common/ptid.c: New.
4529 * common/ptid.h: New.
4530 * common/xml-utils.c: New.
4531 * common/xml-utils.h: New.
4532 * common/common-utils.c: New.
4533 * common/common-utils.h: New.
4534 * common/linux-osdata.c: New.
4535 * common/linux-osdata.h: New.
4536 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4537 * config/arm/linux.mh (NATDEPFILES): Ditto.
4538 * config/i386/linux.mh (NATDEPFILES): Ditto.
4539 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4540 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4541 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4542 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4543 * config/mips/linux.mh (NATDEPFILES): Ditto.
4544 * config/pa/linux.mh (NATDEPFILES): Ditto.
4545 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4546 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4547 * config/s390/s390.mh (NATDEPFILES): Ditto.
4548 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4549 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4550 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4551
edc84990 45522011-07-21 Matt Rice <ratmice@gmail.com>
4553
4554 * NEWS: Add info macros and info definitions commands.
4555
3a7bf607
PM
45562011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4557
4558 * NEWS: Document Python prompt substitution hook.
4559
9b158ba0 45602011-07-18 Matt Rice <ratmice@gmail.com>
4561
4562 PR macros/12999
4563 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4564 * macrotab.c (foreach_macro): Ditto.
4565 (foreach_macro_in_scope): Ditto.
4566 * macrocmd.c (print_macro_callback): New function.
4567 (info_macro_command): Move some code to print_macro_definition.
4568 (print_macro_definition): New function.
4569 (print_one_macro): Add new arguments to callback.
4570 (info_definitions_command): New function.
4571 (info_macros_command): Ditto.
4572 (_initialize_macrocmd): Add info macros and info definitions commands.
4573 * symtab.c (add_macro_name): Add new arguments to callback.
4574
d17b6f81
PM
45752011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4576 Tom Tromey <tromey@redhat.com>
4577
4578 * top.c (set_prompt): Rewrite to free previous prompt, free
4579 asynch_new_prompt and set both on new prompts.
4580 * event-top.c (display_gdb_prompt): Add prompt substitution
4581 logic.
4582 * python/python.c (before_prompt_hook): New function.
4583
1364323a 45842011-07-20 Matt Rice <ratmice@gmail.com>
4585
4586 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4587 arguments to store_unsigned_integer.
4588
8b70b953
TT
45892011-07-20 Tom Tromey <tromey@redhat.com>
4590
6c83ed52
TT
4591 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4592 in some declaration-only cases.
4593
45942011-07-18 Tom Tromey <tromey@redhat.com>
4595
8b70b953
TT
4596 PR symtab/12984:
4597 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4598 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4599 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4600 <debug_type_section>: New field.
4601 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4602 (load_cu): Use appropriate section.
4603 (create_signatured_type_table_from_index): Add 'section'
4604 argument.
4605 (dwarf2_read_index): Only allow a single .debug_types section.
4606 (dw2_get_file_names): Use appropriate section.
4607 (read_type_comp_unit_head): Add 'section' argument.
4608 (create_debug_types_hash_table): Loop over all .debug_types
4609 sections.
4610 (init_cu_die_reader): Use appropriate section.
4611 (process_psymtab_comp_unit, load_partial_comp_unit)
4612 (load_full_comp_unit, read_die_and_children, find_partial_die)
4613 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4614 (lookup_signatured_type_at_offset): Add 'section' argument.
4615 (read_signatured_type_at_offset): Add 'sect' argument.
4616 (read_signatured_type): Use appropriate section.
4617 (set_die_type, get_die_type_at_offset): Update.
4618 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4619 VEC.
4620 (write_psymtabs_to_index): Don't allow index with more than one
4621 .debug_types section.
4622
918dd910
JK
46232011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 Fix crash if referenced CU is aged out.
4626 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4627 xfree of block.data.
4628 (indirect_pieced_value): New variable back_to, use to for xfree of
4629 baton.data.
4630 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4631 block.data.
4632 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4633 (load_cu): New function from ...
4634 (dw2_do_instantiate_symtab): ... the code here ...
4635 (process_full_comp_unit): ... and here.
4636 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4637 retval.data.
4638
0e37a63c
JK
46392011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4642 type.
4643
7e324e48
GB
46442011-07-19 Gary Benson <gbenson@redhat.com>
4645
4646 * infrun.c (struct execution_control_state): New member
4647 stop_func_filled_in.
4648 (clear_stop_func, fill_in_stop_func): New functions.
4649 (handle_inferior_event): Call clear_stop_func rather than
4650 manipulating the execution control state directly.
4651 Call fill_in_stop_func lazily as required rather than
4652 directly calling find_pc_partial_function in all cases.
4653
d48323d8
TT
46542011-07-18 Tom Tromey <tromey@redhat.com>
4655
4656 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4657 checking for variable-sized array.
4658
40591b7d
JCD
46592011-07-18 Jean-Charles Delay <delay@adacore.com>
4660
4661 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4662 of supported languages.
4663 * varobj.c: Add top definitions and basic implementation of the
4664 following callbacks: ada_number_of_children, ada_name_of_variable,
4665 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4666 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4667 (languages): Register Ada-specific callbacks.
4668 (variable_language): Add the Ada case in the language setter switch.
4669
2e424e08
JK
46702011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4671
4672 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4673
9e8b7a03
JK
46742011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 Code cleanup.
4677 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4678 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4679 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4680 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4681 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4682 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4683 (struct dwarf_expr_context_funcs): New, move here methods from ...
4684 (struct dwarf_expr_context): ... here. New fields funcs.
4685 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4686 (dwarf_expr_ctx_funcs): New.
4687 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4688 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4689 (needs_frame_ctx_funcs): New.
4690 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4691
2b1260ab
FM
46922011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4693
4694 * MAINTAINERS (Write After Approval): Add myself to the list.
4695
8bd90839
FM
46962011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4697
4698 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4699 that CIE pointer of an FDE really points to a CIE .
4700
953b98d1
HZ
47012011-07-15 Hui Zhu <teawater@gmail.com>
4702
4703 * remote.c (remote_get_trace_status): Add comments.
4704
c8f2448a
JK
47052011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4706
4707 Code cleanup - constify struct lval_funcs.
4708 * dwarf2loc.c (pieced_value_funcs): Make it const.
4709 * infrun.c (siginfo_value_funcs): Likewise.
4710 * opencl-lang.c (opencl_value_funcs): Likewise.
4711 * valops.c (value_assign, value_ind): Make the funcs variable const.
4712 * value.c (struct value): Make location.computed.funcs target const.
4713 Rearrange the comments.
4714 (allocate_computed_value): Make the funcs parameter target const.
4715 (value_computed_funcs): Return the funcs target const.
4716 (value_free, value_copy, set_value_component_location): Make the funcs
4717 variable const.
4718 * value.h (allocate_computed_value): Make the funcs parameter target
4719 const.
4720 (value_computed_funcs): Return the funcs target const.
4721 * windows-tdep.c (tlb_value_funcs): Make it const.
4722
f652de6f
HZ
47232011-07-14 Hui Zhu <teawater@gmail.com>
4724
4725 * remote.c (remote_get_trace_status): Initialize p.
4726
67f41397
JK
47272011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4728
4729 Work around kgdb.
4730 * remote.c (remote_get_trace_status): New variable ex. Put
4731 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4732
d1b66e6d
TT
47332011-07-13 Tom Tromey <tromey@redhat.com>
4734
4735 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4736 value_from_contents for final conversion.
4737
1632a688
JK
47382011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4739
4740 Code cleanup.
4741 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4742 Indent prototypes so they do not get into tags.
4743
a7035dbb
JK
47442011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Code cleanup making also optimized out values lazy.
4747 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4748 allocate_optimized_out_value. Twice.
4749 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4750 * findvar.c (read_var_value): Likewise.
4751 * value.c (allocate_optimized_out_value): New function.
4752 * value.h (allocate_optimized_out_value): New declaration.
4753
d07ed419
JK
47542011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4755
4756 Fix occasional crash of CTRL-C during DWARF read in.
4757 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4758
86d31898
TT
47592011-07-11 Tom Tromey <tromey@redhat.com>
4760
4761 * regcache.c (struct regcache_descr): Fix typo.
4762 * i387-tdep.c (i387_supply_xsave): Fix typo.
4763
2ab95328
TT
47642011-07-11 Tom Tromey <tromey@redhat.com>
4765
4766 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4767 (read_file_scope, read_type_unit_scope): Use it.
4768
04ad99e6
JK
47692011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4772 `int'.
4773
713389e0
PM
47742011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4775
4776 PR python/12438
4777 * python/python.c: Set gdbpy_should_print_stack default to off.
4778 (set_python): Deprecate maint set python print-stack to
4779 class_deprecate.
4780 (_initialize_python): Deprecate maint set/show python print-stack.
4781 Add new prefix command, python. Add new setting, print-backtrace.
4782 * NEWS: Document set python print-stack. Document default change.
4783
754eadd1
PM
47842011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4785
4786 * python/py-inferior.c (infpy_dealloc): New function.
4787 (inferior_to_inferior_object): Return a new object, or a
4788 new reference to the existing object.
4789 (find_thread_object): Cleanup references to inferior.
4790 (delete_thread_object): Ditto.
4791 * python/py-infthread.c (create_thread_object): Do not increment
4792 inferior reference count.
4793
5e44ecb3
TT
47942011-07-08 Tom Tromey <tromey@redhat.com>
4795
4796 * dwarf2loc.c (locexpr_regname): New function.
4797 (locexpr_describe_location_piece): Use it.
4798 (disassemble_dwarf_expression): Add per_cu argument. Use
4799 locexpr_regname.
4800 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4801 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4802 New cases.
4803 (locexpr_describe_location_1): Add per_cu argument.
4804 (locexpr_describe_location): Update.
4805 (loclist_describe_location): Update.
4806
e0e9434c
TT
48072011-07-08 Tom Tromey <tromey@redhat.com>
4808
4809 * dwarf2expr.c (execute_stack_op): Add QUIT.
4810
26afc0d7
HZ
48112011-07-07 Hui Zhu <teawater@gmail.com>
4812
4813 Revert:
4814 2011-07-06 Hui Zhu <teawater@gmail.com>
4815 * remote.c (remote_start_remote): Add TRY_CATCH for
4816 remote_get_trace_status.
4817 * tracepoint.c (disconnect_tracing): Ditto.
4818
a40a111f
AB
48192011-07-07 Andrew Burgess <aburgess@broadcom.com>
4820
4821 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4822 variables as signed, not unsigned.
4823
e2bd3b15
JB
48242011-07-06 Joel Brobecker <brobecker@adacore.com>
4825
4826 * jit.c (jit_inferior_init): Reformat forward declaration.
4827
e3d961fe 48282011-07-06 Matt Rice <ratmice@gmail.com>
4829
4830 * MAINTAINERS (Write After Approval): Add myself to the list.
4831
0f3428f0
HZ
48322011-07-06 Hui Zhu <teawater@gmail.com>
4833
4834 * remote.c (remote_start_remote): Add TRY_CATCH for
4835 remote_get_trace_status.
4836 * tracepoint.c (disconnect_tracing): Ditto.
4837
fc9f3a69
TT
48382011-07-05 Tom Tromey <tromey@redhat.com>
4839
4840 * symtab.c (operator_chars): Now static.
4841 * linespec.c (operator_chars): Don't declare.
4842
26e519b9
TJB
48432011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4844
4845 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4846
eb2a6f42
TT
48472011-07-05 Tom Tromey <tromey@redhat.com>
4848
4849 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4850 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4851 (TYPE_CPLUS_REALLY_JAVA): New macro.
4852 * dwarf2read.c (process_structure_scope): Set
4853 TYPE_CPLUS_REALLY_JAVA.
4854
21083d0f 48552011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4856
4857 * ada-lang.c: Fix typos.
4858 * amd64-tdep.c: Likewise.
4859 * breakpoint.c: Likewise.
4860 * cli/cli-decode.c: Likewise.
4861 * findcmd.c: Likewise.
4862 * inline-frame.c: Likewise.
4863 * mi/mi-main.c: Likewise.
4864 * minsyms.c: Likewise.
4865 * monitor.c: Likewise.
4866 * monitor.h: Likewise.
4867 * prologue-value.c: Likewise.
4868 * reverse.c: Likewise.
4869 * s390-tdep.c: Likewise.
4870
3b2a0cf2
JB
48712011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4872
4873 * jit.c (jit_inferior_init): Forward declare.
4874 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4875
efae1d92
JB
48762011-07-04 Joel Brobecker <brobecker@adacore.com>
4877
4878 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4879
6040a59d
JB
48802011-07-04 Tristan Gingold <gingold@adacore.com>
4881
4882 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4883 (tcb_fieldno): Add activation_link field.
4884 (get_known_tasks_addr): Moved and rewritten.
4885 (get_tcb_types_info): Set activation_link field.
4886 (read_known_tasks_array): Add parameter. Rewritten.
4887 (read_known_tasks_list): New function.
4888 (read_known_tasks): New function.
4889 (ada_build_task_list): Call read_known_tasks instead of
4890 read_known_tasks_array.
4891 * ravenscar-thread.c: Add first_task_name constant.
4892 (has_ravenscar_runtime): Check for task list too.
4893
cb741e45
JB
48942011-07-04 Tristan Gingold <gingold@adacore.com>
4895
4896 * ada-tasks.c: Renames fieldno to actb_fieldno.
4897 (ada_get_task_number): Indentation.
4898 (get_tcb_types_info): Remove all parameters. Write directly
4899 the globals.
4900 (ptid_from_atcb_common): Adjust.
4901 (read_atcb): Adjust.
4902
7475b06c
TJB
49032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4904
4905 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4906
15230f37
TJB
49072011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4908
4909 * ui-out.c (ui_out_field_core_addr): Mention that the function
4910 description is in the header file.
4911 * ui-out.h (ui_out_field_core_addr): Document function.
4912
65743aba
TJB
49132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4914
4915 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4916 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4917
c37a5aab
TJB
49182011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4919
4920 * symtab.c (expand_line_sal): Remove empty line.
4921
59adf69e
TS
49222011-07-04 Thomas Schwinge <thomas@schwinge.name>
4923
4924 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4925 same way as ELFOSABI_NONE.
4926 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4927
e5dd4106
TJB
49282011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4929
4930 * breakpoint.c: Fix typos in comments.
4931 * linespec.c: Likewise.
4932 * symtab.c: Likewise.
4933
d40102a1
JB
49342011-07-04 Joel Brobecker <brobecker@adacore.com>
4935
4936 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4937 section in separate object files.
4938
2f741504
JK
49392011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4940
4941 Fix false GCC warning.
4942 * linespec.c (decode_line_1): Initialize values.
4943
418c7cf7
JK
49442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4945
4946 * linespec.c (find_method): Accept the function type automatically only
4947 if it was specified with parameter types.
4948
3d50dd94
JK
49492011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 Stop on first linespec terminator instead of eating what we can.
4952 * linespec.c (is_linespec_boundary): New function.
4953 (name_end): Remove function.
4954 (keep_name_info): New parameter on_boundary, replace the body.
4955 (decode_line_1): Provide the parameter to keep_name_info.
4956 (decode_compound): Likewise. Drop the trailing java return type
4957 handling. Twice.
4958
dcf9f4ab
JK
49592011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 Fall back linespec to minimal symbols.
4962 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4963 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4964 (find_method, symbol_found): Change error to cplusplus_error.
4965
3f542ed1
JK
49662011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4967
bc68c4e5 4968 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4969
900e11f9
JK
49702011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4971 Tom Tromey <tromey@redhat.com>
4972
4973 * dwarf2read.c (check_physname): New variable.
4974 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4975 (show_check_physname): New function.
4976 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4977
2301925d
JB
49782011-07-01 Joel Brobecker <brobecker@adacore.com>
4979
4980 * machoread.c (macho_symfile_read): Delete OBE comment.
4981
38947cca
JB
49822011-07-01 Joel Brobecker <brobecker@adacore.com>
4983
4984 * machoread.c (struct macho_oso_data): Delete.
4985 (current_oso): Delete.
4986 (macho_relocate_common_syms): New function, mostly extracted
4987 out of
4988 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4989 Remove code that sets and unset current_oso.
4990 (macho_symfile_relocate): Delete handling of common symbols,
4991 now moved to macho_relocate_common_syms.
4992
a7aa0d73
JB
49932011-07-01 Joel Brobecker <brobecker@adacore.com>
4994
4995 * darwin-nat.c (darwin_ptrace): Add documentation.
4996 Set errno to zero before calling ptrace. If ptrace returns
4997 -1 and errno is zero, then change then return zero.
4998 (darwin_kill_inferior): Issue a warning instead of triggering
4999 a failed assertion when the PT_KILL ptrace operations returned
5000 nonzero.
5001
5e9bc145
JB
50022011-07-01 Joel Brobecker <brobecker@adacore.com>
5003
5004 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5005 only when inf->private->no_ptrace.
5006
00eb2c4a
JB
50072011-07-01 Joel Brobecker <brobecker@adacore.com>
5008
5009 * ada-lang.c (print_it_exception): Print temporary catchpoints
5010 as "Temporary catchpoint".
5011 (print_mention_exception): Likewise.
5012
127c81bc
TT
50132011-07-01 Tom Tromey <tromey@redhat.com>
5014
5015 * jv-lang.c (java_language_defn): Use java_printchar,
5016 java_printstr.
5017 (java_get_encoding): New function.
5018 (java_emit_char): Use generic_emit_char.
5019 (java_printchar): New function.
5020 (java_printstr): Likewise.
5021
25552254
JB
50222011-07-01 Joel Brobecker <brobecker@adacore.com>
5023
5024 * ada-typeprint.c (print_record_type): If unable to decode
5025 the name of the parent type, use the encoded name.
5026
d2d43431
JB
50272011-07-01 Jean-Charles Delay <delay@adacore.com>
5028
5029 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5030 pointer to constrained packed array type output.
5031 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5032 packed array output.
5033
54ae186f
JB
50342011-07-01 Jean-Charles Delay <delay@adacore.com>
5035
5036 * ada-typeprint.c (print_array_type): removed if condition on show
5037 being negative for bounds printing.
5038
8f17729f
JB
50392011-07-01 Joel Brobecker <brobecker@adacore.com>
5040
5041 * ada-lang.c (ada_identical_enum_types_p): New function.
5042 (symbols_are_identical_enums): New function.
5043 (remove_extra_symbols): Do nothing if NSYMS < 2.
5044 Use symbols_are_identical_enums.
5045
f5aa6869
JB
50462011-07-01 Joel Brobecker <brobecker@adacore.com>
5047
5048 * ada-valprint.c (ada_value_print): Handle typedefs.
5049
8f465ea7
JB
50502011-07-01 Joel Brobecker <brobecker@adacore.com>
5051
5052 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5053
828292f2
JB
50542011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5055
5056 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5057 (decode_constrained_packed_array): Likewise.
5058 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5059
18920c42
JB
50602011-07-01 Joel Brobecker <brobecker@adacore.com>
5061
5062 * ada-exp.y (convert_char_literal): Handle typedef types.
5063
c90092fe
JB
50642011-07-01 Joel Brobecker <brobecker@adacore.com>
5065
5066 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5067
f748fb40
TT
50682011-06-30 Tom Tromey <tromey@redhat.com>
5069
5070 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5071 * valops.c (find_overload_match): Call do_cleanups on early exit
5072 path.
5073 * solib.c (solib_find): Call do_cleanups on early exit path.
5074
3bb47e8b
TT
50752011-06-30 Tom Tromey <tromey@redhat.com>
5076
5077 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5078 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5079 return paths. Defer final do_cleanups until last return.
5080 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5081 early return.
5082
4727bad3
TT
50832011-06-30 Tom Tromey <tromey@redhat.com>
5084
5085 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5086
bb361dbf
AB
50872011-06-30 Andrew Burgess <aburgess@broadcom.com>
5088
5089 * MAINTAINERS (Write After Approval): Add myself to the list.
5090
e0d00bc7
JK
50912011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 Disable epilogue unwinders on recent GCCs.
5094 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5095 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5096 * dwarf2read.c (process_full_comp_unit): Initialize
5097 EPILOGUE_UNWIND_VALID.
5098 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5099 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5100 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5101
4632c0d0
JK
51022011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 Code cleanup - reformatting.
5105 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5106 (producer_is_gcc_ge_4): ... here, change the return value.
5107 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5108 interpretation.
5109
32019081
JK
51102011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5111
5112 Fix non-only rename list for Fortran modules import.
5113 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5114 cp_add_using_directive caller.
5115 (cp_add_using_directive): New parameter excludes, describe it. New
5116 variables ix and param. Compare if also excludes match. Allocate NEW
5117 with variable size, initialize EXCLUDES there.
5118 (cp_lookup_symbol_imports): New variable excludep, test
5119 current->EXCLUDES with it.
5120 * cp-support.h: Include vec.h.
5121 (struct using_direct): New field excludes, describe it.
5122 (DEF_VEC_P (const_char_ptr)): New.
5123 (cp_add_using_directive): New parameter excludes.
5124 * defs.h (const_char_ptr): New typedef.
5125 * dwarf2read.c (read_import_statement): New variables child_die,
5126 excludes and cleanups, read in excludes.
5127 (read_namespace): Adjust the cp_add_using_directive caller.
5128
70c622a3
JK
51292011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5130
5131 Code cleanup.
5132 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5133 negative comparisons.
5134
39c4d40a
TT
51352011-06-29 André Pönitz <andre.poenitz@nokia.com>
5136
5137 * mi/mi-main.c (mi_cmd_list_features): Emit
5138 breakpoint-notifications.
5139
3b2b8fea
TT
51402011-06-29 Tom Tromey <tromey@redhat.com>
5141
5142 PR fortran/10036:
5143 * valprint.h (generic_emit_char, generic_printstr): Declare.
5144 * valprint.c (wchar_printable, append_string_as_wide)
5145 (print_wchar): Move from c-lang.c.
5146 (generic_emit_char): New function; mostly taken from c_emit_char.
5147 (generic_printstr): New function; mostly taken from c_printstr.
5148 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5149 represented as arrays.
5150 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5151 type.
5152 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5153 identically to TYPE_CODE_INT.
5154 * f-lang.c (f_get_encoding): New function.
5155 (f_emit_char): Use generic_emit_char.
5156 (f_printchar): Replace comment.
5157 (f_printstr): Use generic_printstr.
5158 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5159 "character" types specially.
5160 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5161 for Fortran.
5162 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5163 Move to valprint.c
5164 (c_emit_char): Call generic_emit_char.
5165 (c_printstr): Call generic_printstr.
5166
168e6d44
GB
51672011-06-29 Gary Benson <gbenson@redhat.com>
5168
5169 * breakpoint.c (bpstat_what): Removed duplicated case.
5170
1c033f8c
TT
51712011-06-28 Tom Tromey <tromey@redhat.com>
5172
5173 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5174
5fe41fbf
TT
51752011-06-27 Tom Tromey <tromey@redhat.com>
5176
5177 * valops.c (find_overload_match): Call do_cleanups before early
5178 return.
5179 * top.c (execute_command): Call do_cleanups before early return.
5180 (command_loop): Likewise.
5181 * stack.c (backtrace_command): Make a null cleanup early. Don't
5182 conditionally call do_cleanups.
5183 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5184 TRY_CATCH.
5185 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5186 so cleanups are always run.
5187 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5188 * findcmd.c (parse_find_args): Call do_cleanups on early return
5189 path.
5190 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5191 Don't conditionally call do_cleanups.
5192 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5193 later.
5194
e26bd57d
EB
51952011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5196
5197 * MAINTAINERS (Write After Approval): Use default email address.
5198
6c3097fc
JB
51992011-06-27 Joel Brobecker <brobecker@adacore.com>
5200
5201 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5202
369c397b
JB
52032011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5204
5205 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5206 saved_regs_mask and copied_regs_mask fields.
5207 (sparc_record_save_insn): New prototype.
5208 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5209 (sparc_record_save_insn): New function.
5210 (sparc_analyze_prologue): Add head comment. Recognize store insns
5211 of call-saved registers. Use OFFSET consistently. Recognize flat
5212 frames and cache their settings.
5213 (sparc32_skip_prologue): Handle flat frames.
5214 (sparc_frame_cache): Add frame_offset to the base address.
5215 (sparc32_frame_cache): Adjust to new frame description.
5216 (sparc32_frame_prev_register): Likewise.
5217 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5218 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5219 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5220 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5221 frame by calling sparc_record_save_insn.
5222 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5223 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5224 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5225
b315ab21
TG
52262011-06-27 Tristan Gingold <gingold@adacore.com>
5227
5228 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5229 field by map_addr and map_len.
5230 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5231 (munmap_section_buffer): Likewise.
5232
ddd49eee
TT
52332011-06-24 Tom Tromey <tromey@redhat.com>
5234
5235 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5236 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5237 * python/python.c (gdbpy_parameter): Make 'arg' const.
5238 (execute_gdb_command): Likewise.
5239 (gdbpy_decode_line): Likewise. Copy it.
5240 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5241 (gdbpy_write): Make 'arg' const.
5242 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5243 const.
5244 (gdbpy_lookup_type): Likewise.
5245 * python/py-prettyprint.c (print_children): Make 'name' const.
5246 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5247 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5248 Py_ssize_t.
5249 * python/py-function.c (fnpy_init): Make 'name' const.
5250 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5251 (gdbpy_string_to_argv): Make 'input' const.
5252 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5253 it.
5254 * gdbtypes.h (lookup_typename): Update.
5255 * gdbtypes.c (lookup_typename): Make 'name' const.
5256 (lookup_struct): Likewise.
5257 (lookup_union): Likewise.
5258 (lookup_enum): Likewise.
5259
5998129b
TT
52602011-06-24 Tom Tromey <tromey@redhat.com>
5261
5262 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5263 gdb_thread_db.h. Move all common/ entries to be together.
5264 (TAGS): Don't depend on DEPFILES.
5265
6e586cc5
YQ
52662011-06-23 Yao Qi <yao@codesourcery.com>
5267
5268 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5269 * remote.c (remote_start_remote): ... here.
5270 * monitor.c (monitor_open): ... here.
5271
86c3c1fc
AB
52722011-06-23 Andrew Burgess <aburgess@broadcom.com>
5273
5274 * gdbtypes.c (append_composite_type_field_aligned): Fix
5275 calculation of bit position based on alignment.
5276
28010a5d
PA
52772011-06-22 Pedro Alves <pedro@codesourcery.com>
5278
5279 * breakpoint.c (bpstat_stop_status): Call the check_status
5280 breakpoint_ops method.
5281 (print_one_breakpoint_location): Also print the condition for Ada
5282 exception catchpoints.
5283 (allocate_bp_location): New, factored out from
5284 allocate_bp_location.
5285 (allocate_bp_location): Adjust. Call the owner breakpoint's
5286 allocate_location method, if there is one.
5287 (free_bp_location): Call the locations's dtor method, if there is
5288 one.
5289 (init_raw_breakpoint_without_location): New breakpoint_ops
5290 parameter. Use it.
5291 (set_raw_breakpoint_without_location): Adjust.
5292 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5293 (set_raw_breakpoint): Adjust.
5294 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5295 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5296 re_set and check_status methods.
5297 (init_catchpoint): Don't memset, initialize thread, addr_string
5298 and enable_state. Pass the ops down to init_raw_breakpoint.
5299 (install_catchpoint): Rename to ...
5300 (install_breakpoint): ... this, and make extern.
5301 (create_fork_vfork_event_catchpoint): Adjust.
5302 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5303 re_set and check_status methods.
5304 (create_syscall_event_catchpoint): Adjust.
5305 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5306 (masked_watchpoint_breakpoint_ops): Install NULL
5307 allocate_location, re_set and check_status methods.
5308 (catch_exec_command_1): Adjust.
5309 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5310 re_set and check_status methods.
5311 (create_ada_exception_breakpoint): Rename to ...
5312 (init_ada_exception_breakpoint): ... this. Add a struct
5313 breakpoint parameter, and delete the exp_string, cond_string and
5314 cond parameters. Use init_raw_breakpoint, and don't install or
5315 mention the breakpoint yet. Don't clear breakpoint fields that
5316 init_raw_breakpoint already clears.
5317 (re_set_breakpoint): Delete, split into ...
5318 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5319 functions.
5320 (breakpoint_re_set_one): Call the breakpoint's
5321 breakpoint_ops->re_set implementation, if there's one. Adjust.
5322 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5323 (struct bp_location_ops): New type.
5324 (struct bp_location): New field `ops'.
5325 (struct breakpoint_ops): New `allocate_location', `re_set' and
5326 `check_status' fields. Make `breakpoint_hit''s description match
5327 reality.
5328 (init_bp_location): Declare.
5329 (breakpoint_re_set_default): Declare.
5330 (create_ada_exception_breakpoint): Rename to ...
5331 (init_ada_exception_breakpoint): ... this. Add a struct
5332 breakpoint parameter, and delete the exp_string, cond_string and
5333 cond parameters.
5334 (install_breakpoint): Declare.
5335 * ada-lang.c: Include exceptions.h.
5336 <Ada exceptions description>: Update.
5337 (struct ada_catchpoint_location): New type.
5338 (ada_catchpoint_location_dtor): New function.
5339 (ada_catchpoint_location_ops): New global.
5340 (ada_catchpoint): New type.
5341 (create_excep_cond_exprs): New function.
5342 (dtor_exception, allocate_location_exception, re_set_exception)
5343 (should_stop_exception, check_status_exception): New functions.
5344 (print_one_exception, print_mention_exception)
5345 (print_recreate_exception): Adjust.
5346 (dtor_catch_exception, allocate_location_catch_exception)
5347 (re_set_catch_exception, check_status_catch_exception): New
5348 functions.
5349 (catch_exception_breakpoint_ops): Install them.
5350 (dtor_catch_exception_unhandled)
5351 (allocate_location_catch_exception_unhandled)
5352 (re_set_catch_exception_unhandled)
5353 (check_status_catch_exception_unhandled): New functions.
5354 (catch_exception_unhandled_breakpoint_ops): Install them.
5355 (dtor_catch_assert, allocate_location_catch_assert)
5356 (re_set_catch_assert, check_status_catch_assert): New functions.
5357 (catch_assert_breakpoint_ops): Install them.
5358 (ada_exception_catchpoint_p): Delete.
5359 (catch_ada_exception_command_split)
5360 (ada_exception_catchpoint_cond_string): Rename exp_string
5361 parameter to excep_string. Adjust.
5362 (ada_parse_catchpoint_condition): Delete.
5363 (ada_exception_sal): Rename the exp_string parameter to
5364 excep_string. Delete the cond_string and cond parameters.
5365 Adjust.
5366 (ada_decode_exception_location): Rename the exp_string parameter
5367 to excep_string. Delete the cond_string and cond parameters.
5368 Adjust.
5369 (create_ada_exception_catchpoint): New function.
5370 (catch_ada_exception_command, ada_decode_assert_location)
5371 (catch_assert_command): Adjust.
5372 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5373
9ac4176b
PA
53742011-06-22 Pedro Alves <pedro@codesourcery.com>
5375
5376 * ada-lang.c: Include arch-utils.h.
5377 (ada_decode_exception_location): Make static.
5378 (catch_ada_exception_command): Moved here from breakpoint.c.
5379 (ada_decode_assert_location): Make static.
5380 (catch_assert_command): Moved here from breakpoint.c.
5381 (_initialize_ada_lang): Install the exception and assert
5382 catchpoint commands here.
5383 * ada-lang.h (ada_decode_exception_location)
5384 (ada_decode_assert_location): Delete declarations.
5385 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5386 breakpoint.h.
5387 (create_ada_exception_breakpoint): Make extern.
5388 (catch_ada_exception_command, catch_assert_command): Moved to
5389 ada-lang.c.
5390 (add_catch_command): Make extern.
5391 (_initilize_breakpoint): Don't install the exception and assert
5392 catchpoint commands here.
5393 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5394 breakpoint.c
5395 (add_catch_command, create_ada_exception_breakpoint): Declare.
5396
c56053d2
PA
53972011-06-22 Pedro Alves <pedro@codesourcery.com>
5398
5399 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5400 the breakpoint to the breakpoint chain here.
5401 (set_raw_breakpoint_without_location): Add the breakpoint to the
5402 breakpoint chain here.
5403 (init_raw_breakpoint): Adjust comments.
5404 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5405 here.
5406 (init_catchpoint): Don't set the catchpoint's breakpoint number
5407 here.
5408 (install_catchpoint): New function.
5409 (create_fork_vfork_event_catchpoint)
5410 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5411 use install_catchpoint.
5412
d2f3fc74
PA
54132011-06-22 Pedro Alves <pedro@codesourcery.com>
5414
5415 * breakpoint.c (create_catchpoint_without_mention)
5416 (create_catchpoint): Delete.
5417
b4d90040
PA
54182011-06-22 Pedro Alves <pedro@codesourcery.com>
5419
5420 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5421 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5422 reference to exec_pathname.
5423 (struct exec_catchpoint): New type.
5424 (dtor_catch_exec): New function.
5425 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5426 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5427 (catch_exec_command_1): Adjust to use init_catchpoint.
5428 (delete_breakpoint): Remove reference to exec_pathname.
5429
be5c67c1
PA
54302011-06-22 Pedro Alves <pedro@codesourcery.com>
5431
5432 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5433 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5434 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5435 reference to syscalls_to_be_caught.
5436 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5437 NULL `dtor'.
5438 (struct syscall_catchpoint): New type.
5439 (dtor_catch_syscall): New function.
5440 (insert_catch_syscall, remove_catch_syscall)
5441 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5442 (print_recreate_catch_syscall): Adjust.
5443 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5444 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5445 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5446 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5447 (masked_watchpoint_breakpoint_ops)
5448 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5449 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5450 there is one. Remove references to syscalls_to_be_caught.
5451 (catching_syscall_number): Adjust.
5452 * ada-lang.c (catch_exception_breakpoint_ops)
5453 (catch_exception_unhandled_breakpoint_ops)
5454 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5455
e29a4733
PA
54562011-06-22 Pedro Alves <pedro@codesourcery.com>
5457
5458 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5459 field.
5460 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5461 reference to forked_inferior_pid.
5462 (struct fork_catchpoint): New type.
5463 (breakpoint_hit_catch_fork, print_it_catch_fork)
5464 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5465 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5466 (create_fork_vfork_event_catchpoint): Adjust to use
5467 init_catchpoint.
5468
346774a9
PA
54692011-06-22 Pedro Alves <pedro@codesourcery.com>
5470
5471 * breakpoint.c (add_to_breakpoint_chain)
5472 (init_raw_breakpoint_without_location): New functions, factored
5473 out from ...
5474 (set_raw_breakpoint_without_location): ... this one.
5475 (init_raw_breakpoint): New function, factored out from
5476 set_raw_breakpoint and adjusted to use
5477 init_raw_breakpoint_without_location.
5478 (set_raw_breakpoint): Adjust.
5479 (init_catchpoint): New function, factored out from
5480 create_catchpoint_without_mention and adjusted to use
5481 init_raw_breakpoint.
5482 (create_catchpoint_without_mention): Adjust.
5483
c38c4bc5
TT
54842011-06-22 Tom Tromey <tromey@redhat.com>
5485
5486 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5487 argument of 0 specially.
5488
b138ce37
YQ
54892011-06-22 Yao Qi <yao@codesourcery.com>
5490
5491 * infrun.c (handle_inferior_event): Remove write-only local variable
5492 `sw_single_step_trap_p'.
5493
03de6823
TT
54942011-06-20 Tom Tromey <tromey@redhat.com>
5495
5496 * symtab.c (lookup_language_this): End loop if block is NULL.
5497
66a17cb6
TT
54982011-06-17 Tom Tromey <tromey@redhat.com>
5499
5500 * valops.c (value_of_this): Use lookup_language_this.
5501 * symtab.h (lookup_language_this): Declare.
5502 * symtab.c (lookup_language_this): New function.
5503 (lookup_symbol_aux): Use lookup_language_this.
5504 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5505
7518bff5
TT
55062011-06-17 Tom Tromey <tromey@redhat.com>
5507
5508 * value.h (value_of_this): Update.
5509 (value_of_local): Remove.
5510 * valops.c (value_of_this): Rename from value_of_local. Change
5511 parameters.
5512 * p-exp.y (exp): Update.
5513 (variable): Likewise.
5514 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5515
aee28ec6
TT
55162011-06-17 Tom Tromey <tromey@redhat.com>
5517
5518 * valops.c (value_of_local): Complain if NAME is NULL.
5519 * std-operator.def (OP_OBJC_SELF): Remove.
5520 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5521 * objc-exp.y (name_not_typename): Use OP_THIS.
5522 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5523 name for "this".
5524 <OP_OBJC_SELF>: Remove.
5525 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5526
eed8f803
TG
55272011-06-16 Tristan Gingold <gingold@adacore.com>
5528
5529 * python/py-events.h (gdb_py_events): Make it extern.
5530 * python/py-evtregistry.c (gdb_py_events): Declare.
5531
864ac8a7
HZ
55322011-06-16 Hui Zhu <teawater@gmail.com>
5533
5534 * remote.c (remote_trace_set_readonly_regions): Add check for
5535 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5536 output warning.
5537
ef7e8358
UW
55382011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5539
5540 * arm-linux-tdep.c: Include "auxv.h".
5541 (AT_HWCAP): Define.
5542 (ARM_LINUX_SIZEOF_VFP): Define.
5543 (arm_linux_supply_vfp): New function.
5544 (arm_linux_collect_vfp): Likewise.
5545 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5546 (arm_linux_fpa_regset_sections): New variable.
5547 (arm_linux_vfp_regset_sections): Likewise.
5548 (arm_linux_core_read_description): New function.
5549 (arm_linux_init_abi): Install arm_linux_core_read_description and
5550 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5551 appropriate for the architecture.
5552 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5553 (tdesc_arm_with_m): Declare.
5554 (tdesc_arm_with_iwmmxt): Likewise.
5555 (tdesc_arm_with_vfpv2): Likewise.
5556 (tdesc_arm_with_vfpv3): Likewise.
5557 (tdesc_arm_with_neon): Likewise.
5558 * arm-linux-nat.c: Move features/*.c includes ...
5559 * arm-tdep.c: ... here.
5560 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5561 target description data structures ...
5562 * arm-tdep.c (_initialize_arm_tdep): ... here.
5563 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5564 HWCAP_VFPv3D16): Move definitions ...
5565 * arm-linux-tdep.h: ... here.
5566
c2fa21f1
HZ
55672011-06-15 Hui Zhu <teawater@gmail.com>
5568
5569 * remote.c (remote_trace_set_readonly_regions): Add a check for
5570 target_buf_size.
5571
dd707e8e
TT
55722011-06-14 Tom Tromey <tromey@redhat.com>
5573
5574 * coffread.c (coffread_objfile): Rename from current_objfile.
5575 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5576 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5577
86cc0029
TT
55782011-06-14 Tom Tromey <tromey@redhat.com>
5579
5580 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5581 (class_symtab): Remove.
5582 (jv_dynamics_progspace_key): New global.
5583 (jv_per_objfile_free): Reset program space data. Update assert.
5584 Don't clear globals.
5585 (get_dynamics_objfile): Use and set program space data.
5586 (get_java_class_symtab): Use get_dynamics_objfile.
5587 (add_class_symbol): Likewise.
5588 (java_link_class_type): Likewise.
5589 (java_object_type, jv_clear_object_type, set_java_object_type):
5590 Remove.
5591 (get_java_object_type): Update. Don't cache result.
5592 (is_object_type): Don't call set_java_object_type.
5593 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5594 initialize jv_dynamics_progspace_key.
5595
91a81f69
TT
55962011-06-14 Tom Tromey <tromey@redhat.com>
5597
5598 * symtab.h (current_objfile): Don't declare.
5599 * objfiles.h (current_objfile): Don't declare.
5600 * objfiles.c (current_objfile): Remove.
5601 * mdebugread.c (current_objfile): New file-scope global.
5602 * dbxread.c (current_objfile): New file-scope global.
5603 * coffread.c (current_objfile): New file-scope global.
5604
dc7eb48e
PA
56052011-06-13 Pedro Alves <pedro@codesourcery.com>
5606
5607 * top.h (line): Rename to ...
5608 (saved_command_line): ... this.
5609 (linesize): Rename to ...
5610 (saved_command_line_size): ... this.
5611 * top.c (line): Rename to ...
5612 (saved_command_line): ... this.
5613 (linesize): Rename to ...
5614 (saved_command_line_size): ... this.
5615 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5616 * event-top.c (command_line_handler): Adjust.
5617 * main.c (captured_main): Adjust.
5618
0d6c2135
MK
56192011-06-12 Mark Kettenis <kettenis@gnu.org>
5620
5621 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5622 get_frame_func instead of get_frame_pc to determine the code
5623 address used to construct the frame ID.
5624 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5625 (i386_epilogue_frame_this_id): Likewise.
5626 (i386_epilogue_frame_prev_register): New function.
5627 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5628 (i386_stack_tramp_frame_sniffer): Fix coding style.
5629 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5630 (i386_gdbarch_init): Fix comments.
5631
8bbdd3f4
MK
56322011-06-12 Mark Kettenis <kettenis@gnu.org>
5633
5634 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5635 instruction when walking back through the instruction stream.
5636
533a737e
JK
56372011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5638
5639 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5640 fullname parameters order.
5641
44b13c5a
JK
56422011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5643
5644 Code cleanup.
5645 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5646 for fun.
5647 * psymtab.c (map_symbol_filenames_psymtab)
5648 (map_partial_symbol_filenames): Likewise.
5649 * psymtab.h: Include symfile.h.
5650 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5651 * symfile.h (symbol_filename_ftype): New.
5652 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5653 map_symbol_filenames, clarify more the naming in comment.
5654
0b5574da
DE
56552011-06-07 Doug Evans <dje@google.com>
5656
5657 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5658 Look for ../../gdb, for fullname.exp.
0b5574da 5659
5be4dfca
JK
56602011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5661 Pedro Alves <pedro@codesourcery.com>
5662
5663 * cli/cli-cmds.c (shell_escape): Use waitpid.
5664 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5665
316a8b21
TG
56662011-06-07 Tristan Gingold <gingold@adacore.com>
5667
5668 * xcoffread.c (dwarf2_xcoff_names): New variable.
5669 (aix_process_linenos): Add a guard.
5670 (xcoff_symfile_finish): Free dwarf2.
5671 (xcoff_initial_scan): Add dwarf2 support.
5672
3dd5b83d
PA
56732011-06-06 Pedro Alves <pedro@codesourcery.com>
5674
5675 * infcall.c (run_inferior_call): Don't mask async. Instead force
5676 a synchronous wait, if the target can async.
5677
5678 * target.h (struct target_ops): Delete to_async_mask.
5679 (target_async_mask): Delete.
5680 * target.c (update_current_target): Delete references to to_async_mask.
5681 * linux-nat.c (linux_nat_async_mask_value): Delete.
5682 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5683 to linux_nat_async_mask_value.
5684 (linux_nat_async_mask): Delete.
5685 (linux_nat_async, linux_nat_close): Remove references to
5686 linux_nat_async_mask_value.
5687 * record.c (record_async_mask_value): Delete.
5688 (record_async): Remove references to record_async_mask_value.
5689 (record_async_mask): Delete.
5690 (record_can_async_p, record_is_async_p): Remove references to
5691 record_async_mask_value.
5692 (init_record_ops, init_record_core_ops): Remove references to
5693 record_async_mask.
5694 * remote.c (remote_async_mask_value): Delete.
5695 (init_remote_ops): Remove reference to remote_async_mask.
5696 (remote_can_async_p, remote_is_async_p): Remove references to
5697 remote_async_mask_value.
5698 (remote_async): Remove references to remote_async_mask_value.
5699 (remote_async_mask): Delete.
5700
5701 * infrun.c (fetch_inferior_event): Don't claim registers changed
5702 if the current thread is already not executing.
5703
64b9b334
JB
57042011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5705
5706 From Stephen Kitt <steve@sk2.org>
5707 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5708 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5709
325663dc
JB
57102011-06-03 Joel Brobecker <brobecker@adacore.com>
5711
5712 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5713 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5714
8cf64490
TT
57152011-06-03 Tom Tromey <tromey@redhat.com>
5716
5717 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5718 code fields.
5719 * python/py-exitedevent.c (create_exited_event_object): Change
5720 type of 'exit_code'. Optionally add exit_code attribute.
5721 (emit_exited_event): Change type of 'exit_code'.
5722 * python/py-event.h (emit_exited_event): Update.
5723 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5724 * infrun.c (handle_inferior_event): Set exit code fields on
5725 inferior.
5726 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5727 fields.
5728 * inferior.c (exit_inferior_1): Initialize new fields.
5729
8ddd9a20
TT
57302011-06-03 Tom Tromey <tromey@redhat.com>
5731
5732 * dwarf2expr.c (get_signed_type): New function.
5733 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5734
8dfd1e6d
KS
57352011-06-02 Keith Seitz <keiths@redhat.com>
5736
5737 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5738
65fdb766
PA
57392011-06-02 Pedro Alves <pedro@codesourcery.com>
5740
5741 * top.h (simplified_command_loop): Delete declaration.
5742
f4b8c29b
MF
57432011-06-01 Mike Frysinger <vapier@gentoo.org>
5744
5745 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5746 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5747
1706c199
YQ
57482011-06-01 Yao Qi <yao@codesourcery.com>
5749
5750 * objfiles.h (obj_section_addr): Update reference to objfile from
5751 `abfd' to `obfd'.
5752 (obj_section_endaddr): Likewise.
5753
d19cd713 57542011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5755
5756 * MAINTAINERS: Update my email address and affiliation. Also
5757 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5758
e8eb7bc5
KS
57592010-05-31 Keith Seitz <keiths@redhat.com>
5760
5761 PR c++/12750
5762 * linespec.c (get_search_block): New function.
5763 (find_methods): Add FILE_SYMTATB parameter and use it and
5764 get_search_block to pass an appropriate block to
5765 lookup_symbol_in_namespace.
5766 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5767 Check if *ARGPTR starts with a filename first.
5768 If it does, call locate_first_half again to locate the next
5769 "first half" of the linespec.
5770 Pass FILE_SYMTATB to decode_objc and decode_compound.
5771 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5772 (locate_first_half): Stop on the first colon seen.
5773 (decode_compound): Add FILE_SYMTAB parameter.
5774 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5775 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5776 get_search_block with lookup_symbol.
5777 (find_method): Add FILE_SYMTAB parameter and pass it to
5778 find_methods.
5779 (decode_objc): Use get_search_block.
5780
2b1dbab0
KS
57812010-05-31 Keith Seitz <keiths@redhat.com>
5782
5783 PR symtab/12704
5784 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5785 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5786 and CP_ANONYMOUS_NAMESPACE_LEN.
5787 (cp_is_anonymous): Likewise.
5788 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5789 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5790 * dwarf2read.c (namespace_name): Likewise.
5791 (fixup_partial_die): Likewise.
5792 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5793 seen in the input, keep it.
5794
6d549500
PA
57952011-05-30 Pedro Alves <pedro@codesourcery.com>
5796
5797 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5798 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5799 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5800 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5801 * remote.c (_initialize_remote): Register
5802 async_remote_interrupt_twice directly as
5803 sigint_remote_twice_token event.
5804
395bff70
PA
58052011-05-30 Pedro Alves <pedro@codesourcery.com>
5806
5807 * target.h (enum inferior_event_type): Delete INF_ERROR.
5808 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5809
97224164
PA
58102011-05-30 Pedro Alves <pedro@codesourcery.com>
5811
5812 * interps.c (interp_set): Don't cancel continuations.
5813
07e78767
JK
58142011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5815
5816 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5817
fa4cd53f
PA
58182011-05-30 Pedro Alves <pedro@codesourcery.com>
5819
5820 * continuations.h (continuation_ftype): Add `err' parameter.
5821 Document parameters.
5822 (do_all_continuations, do_all_continuations_thread)
5823 (do_all_intermediate_continuations)
5824 (do_all_intermediate_continuations_thread)
5825 (do_all_inferior_continuations): Add `err' parameter.
5826 * continuations.c (do_my_continuations_1, do_my_continuations)
5827 (do_all_inferior_continuations, do_all_continuations_ptid)
5828 (do_all_continuations_thread_callback)
5829 (do_all_continuations_thread, do_all_continuations)
5830 (do_all_intermediate_continuations_thread_callback)
5831 (do_all_intermediate_continuations_thread)
5832 (do_all_intermediate_continuations): Add `err' parameter, and pass
5833 it down all the way to the continuations proper.
5834 * inf-loop.c (inferior_event_handler): If fetching an inferior
5835 event throws an error, don't pop the target, and still call the
5836 continuations, but with `err' set. Adjust all other continuation
5837 calls.
5838 * breakpoint.c (until_break_command_continuation): Add `err'
5839 parameter.
5840 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5841 issue another step if `err' is set.
5842 (struct until_next_continuation_args): New.
5843 (until_next_continuation): Add `err' parameter. Adjust.
5844 (until_next_command): Adjust.
5845 (struct finish_command_continuation_args): Add `thread' field.
5846 (finish_command_continuation): Add `err' parameter. Handle it.
5847 (finish_forward): Adjust.
5848 (attach_command_continuation): Add `err' parameter. Handle it.
5849 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5850 cancel the continuations.
5851 * interps.c (interp_set): Adjust to cancel the continuations.
5852 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5853 continuations rather than discarding.
5854 (free_thread): Don't clear thread inferior resources here.
5855 (delete_thread_1): Do it here instead. And do it before removing
5856 the thread from the threads list. Tag the thread as exited before
5857 clearing thread inferior resources.
5858
c2949be0
JB
58592011-05-30 Joel Brobecker <brobecker@adacore.com>
5860
5861 * infcall.c (call_function_by_hand): Rephrase error message.
5862
619cebe8
PA
58632011-05-27 Pedro Alves <pedro@codesourcery.com>
5864
5865 * defs.h (struct thread_info, struct inferior): Delete forward
5866 declarations.
5867 * breakpoint.h (struct thread_info): New forward declaration.
5868 * observer.sh (struct inferior): New forward declaration.
5869 * python/python-internal.h (struct inferior): New forward
5870 declaration.
5871
be34f849
PA
58722011-05-27 Pedro Alves <pedro@codesourcery.com>
5873
5874 * defs.h (struct continuation, continuation_ftype)
5875 (continuation_free_arg_ftype, add_continuation)
5876 (do_all_continuations, do_all_continuations_thread)
5877 (discard_all_continuations, discard_all_continuations_thread)
5878 (add_intermediate_continuation, do_all_intermediate_continuations)
5879 (do_all_intermediate_continuations_thread)
5880 (discard_all_intermediate_continuations)
5881 (discard_all_intermediate_continuations_thread)
5882 (add_inferior_continuation, do_all_inferior_continuations)
5883 (discard_all_inferior_continuations): Move to ...
5884 * continuations.h: ... this new file.
5885 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5886 infcmd.c, inferior.c, infrun.c, interps.c: Include
5887 continuations.h.
5888
432b4d03
JK
58892011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5890 Doug Evans <dje@google.com>
5891
5892 Fix PR 10970, PR 12702.
5893 * linux-nat.c (linux_lwp_is_zombie): New function.
5894 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5895 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5896
b0f260d6
PA
58972011-05-27 Pedro Alves <pedro@codesourcery.com>
5898
5899 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5900 typedefs.
5901 (add_continuation, add_intermediate_continuation)
5902 (add_inferior_continuation): Use them.
5903 * continuations.c (struct continuation): Use them.
5904 (make_continuation_ftype): Delete.
5905 (make_continuation, add_inferior_continuation, add_continuation)
5906 (add_intermediate_continuation): Use continuation_ftype and
5907 continuation_free_arg_ftype. Rename parameters to shorter names.
5908
af1e9a32
PA
59092011-05-27 Pedro Alves <pedro@codesourcery.com>
5910
5911 * continuations.c (make_continuation): Make it return void.
5912 (do_my_continuations): Rename to ...
5913 (do_my_continuations_1): ... this. Remove old_chain parameter and
5914 adjust.
5915 (do_my_continuations): New.
5916 (discard_my_continuations): Rename to ...
5917 (discard_my_continuations_1): ... this. Remove old_chain
5918 parameter and adjust.
5919 (discard_my_continuations): New.
5920 (add_inferior_continuation): Simplify.
5921 (do_all_inferior_continuations): Reimplement on top
5922 do_my_continuations.
5923 (discard_all_inferior_continuations): Simplify.
5924 (add_continuation): Simplify.
5925 (do_all_continuations_ptid): Simplify.
5926 (discard_all_continuations_thread_callback): Simplify.
5927 (add_intermediate_continuation): Simplify.
5928 (discard_all_intermediate_continuations_thread_callback):
5929 Simplify.
5930
50c0c017
PA
59312011-05-27 Pedro Alves <pedro@codesourcery.com>
5932
5933 * utils.c (struct continuation, add_continuation)
5934 (add_inferior_continuation)
5935 (do_all_inferior_continuations, discard_all_inferior_continuations)
5936 (restore_thread_cleanup, do_all_continuations_ptid)
5937 (do_all_continuations_thread_callback)
5938 (do_all_continuations_thread, do_all_continuations)
5939 (discard_all_continuations_thread_callback)
5940 (discard_all_continuations_thread, discard_all_continuations)
5941 (add_intermediate_continuation)
5942 (do_all_intermediate_continuations_thread_callback)
5943 (do_all_intermediate_continuations_thread)
5944 (do_all_intermediate_continuations)
5945 (discard_all_intermediate_continuations_thread_callback)
5946 (discard_all_intermediate_continuations_thread)
5947 (discard_all_intermediate_continuations): Move to ...
5948 * continuations.c: ... this new file, and adjust to no longer
5949 implement continuations on top of cleanups.
5950 * Makefile.in (SFILES): Add continuations.c.
5951 (COMMON_OBS): Add continuations.o.
5952
d8b34453
PA
59532011-05-26 Pedro Alves <pedro@codesourcery.com>
5954
5955 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5956 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5957 Internal error on invalid values.
5958 * reverse.c: Don't handle EXEC_ERROR.
5959 * mi/mi-main.c: Don't handle EXEC_ERROR.
5960
32231432
PA
59612011-05-26 Pedro Alves <pedro@codesourcery.com>
5962
5963 * record.c: Include event-loop.h, inf-loop.h.
5964 (record_beneath_to_async): New global.
5965 (tmp_to_async): New global.
5966 (record_async_inferior_event_token): New global.
5967 (record_open_1): Don't error out if async is enabled.
5968 (record_open): Handle to_async. Create an async event source in
5969 the event loop.
5970 (record_close): Delete the async event source.
5971 (record_resumed): New global.
5972 (record_execution_dir): New global.
5973 (record_resume, record_core_resume): Set them. Register the
5974 target on the event loop.
5975 (record_wait): Rename to ...
5976 (record_wait_1): ... this. Add more debug output. Handle
5977 TARGET_WNOHANG, and the target beneath returning
5978 TARGET_WAITKIND_IGNORE.
5979 (record_wait): Reimplement on top of record_wait_1.
5980 (record_async_mask_value): New global.
5981 (record_async, record_async_mask, record_can_async_p)
5982 (record_is_async_p, record_execution_direction): New functions.
5983 (init_record_ops, init_record_core_ops): Install new methods.
5984 * infrun.c (fetch_inferior_event): Temporarily switch the global
5985 execution direction to the direction the target was going.
5986 (execution_direction): Change type to int.
5987 * target.c (default_execution_direction): New function.
5988 (update_current_target): Inherit and de_fault
5989 to_execution_direction.
5990 * target.h (struct target_ops) <to_execution_direction>: New
5991 field.
5992 (target_execution_direction): New macro.
5993 * inferior.h (execution_direction): Change type to int.
5994
949dc678
PA
59952011-05-26 Pedro Alves <pedro@codesourcery.com>
5996
5997 * infcall.c (call_function_by_hand): Don't allow calling functions
5998 in reverse execution mode.
5999
c13bd2b5
PA
60002011-05-26 Pedro Alves <pedro@codesourcery.com>
6001
6002 * infcmd.c (finish_command): Allow async finish in reverse.
6003
6938fd34
YQ
60042011-05-26 Yao Qi <yao@codesourcery.com>
6005
6006 * gdb_thread_db.h: Delete. Move to ...
6007 * common/gdb_thread_db.h: ... here.
6008
9da8c2a0
PA
60092011-05-26 Pedro Alves <pedro@codesourcery.com>
6010
6011 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6012 function's entry point instead of a manually managed momentary
6013 breakpoint, and only ever issue one proceed call.
6014 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6015 doing a reverse-finish, switch to stepi mode, to do another step.
6016 (insert_step_resume_breakpoint_at_sal): Make public.
6017 (normal_stop): No need to save function value return registers if
6018 going reverse.
6019 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6020
2c03e5be
PA
60212011-05-26 Pedro Alves <pedro@codesourcery.com>
6022
6023 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6024 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6025 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6026 at the end.
6027 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6028 step-resume breakpoints.
6029 (print_it_typical): Handle bp_hp_step_resume.
6030 (bpstat_what): Ditto.
6031 (bptype_string): Ditto.
6032 (print_one_breakpoint_location): Ditto.
6033 (allocate_bp_location): Ditto.
6034 (mention): Ditto.
6035 (breakpoint_re_set_one): Ditto.
6036 * infrun.c (handle_inferior_event): Adjust. Split
6037 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6038 BPSTAT_WHAT_HP_STEP_RESUME.
6039 (insert_step_resume_breakpoint_at_sal): Rename to ...
6040 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6041 parameter. Handle it.
6042 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6043 insert_step_resume_breakpoint_at_sal_1.
6044 (insert_step_resume_breakpoint_at_frame): Rename to ...
6045 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6046 set a high-priority step-resume breakpoint.
6047 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6048 (insert_step_resume_breakpoint_at_caller): Ditto.
6049
51be5b68
PA
60502011-05-26 Pedro Alves <pedro@codesourcery.com>
6051
6052 * breakpoint.c (iterate_over_related_breakpoints): New.
6053 (do_map_delete_breakpoint): New.
6054 (delete_command): Pass do_map_delete_breakpoint to
6055 map_breakpoint_numbers.
6056 (do_disable_breakpoint): New.
6057 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6058 breakpoints.
6059 (do_enable_breakpoint): Rename to ...
6060 (enable_breakpoint_disp): ... this.
6061 (enable_breakpoint): Adjust.
6062 (do_enable_breakpoint): New.
6063 (enable_once_breakpoint): Delete.
6064 (do_map_enable_breakpoint): New.
6065 (do_map_enable_once_breakpoint): New.
6066 (enable_once_command, enable_delete_command)
6067 (delete_trace_command): Iterate over the breakpoint's related
6068 breakpoints.
6069
4a1be8d2
PA
60702011-05-26 Pedro Alves <pedro@codesourcery.com>
6071
6072 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6073 for ALPHA_ZERO_REGNUM.
6074 (alpha_supply_int_regs): Explicitly supply zero as the value for
6075 ALPHA_ZERO_REGNUM in the register cache.
6076 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6077
59d70315
YQ
60782011-05-26 Yao Qi <yao@codesourcery.com>
6079
6080 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6081
251d32d9
TG
60822011-05-26 Tristan Gingold <gingold@adacore.com>
6083
6084 * symfile.h (struct dwarf2_section_names): New type.
6085 (struct dwarf2_debug_sections): New type.
6086 (dwarf2_has_info): Add parameter.
6087 * dwarf2read.c (dwarf2_elf_names): New variable.
6088 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6089 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6090 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6091 (dwarf2_has_info): Add names parameter. Pass names
6092 to dwarf2_locate_sections.
6093 (section_is_p): Rewrite using the names parameter.
6094 (dwarf2_locate_sections): Use section names from the names parameter.
6095 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6096 * elfread.c (read_psyms): Ditto.
6097 * machoread.c (macho_symfile_read): Ditto.
6098
652c71b4
AS
60992011-05-25 Andreas Schwab <schwab@redhat.com>
6100
6101 PR gdb/8677
6102 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6103
f17170e5
KS
61042011-05-24 Keith Seitz <keiths@redhat.com>
6105
6106 PR breakpoint/12803
6107 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6108 (decode_compound): Unconditionally call keep_name_info.
6109
cdac0397
PA
61102011-05-24 Pedro Alves <pedro@codesourcery.com>
6111
6112 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6113 scope, clear its command list.
6114 (map_breakpoint_numbers): Don't walk the related breakpoints list
6115 of each breakpoint.
6116
91d4fe3f
TT
61172011-05-24 Tom Tromey <tromey@redhat.com>
6118
6119 * MAINTAINERS: Move Jim Blandy to past maintainers.
6120
3017a003
TG
61212011-05-24 Tristan Gingold <gingold@adacore.com>
6122
6123 * symfile.h (enum dwarf2_section_enum): New type.
6124 (dwarf2_get_section_info): New prototype.
6125 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6126 section_name by sect. Use a switch to select the info.
6127 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6128 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6129
c91c8c16
PA
61302011-05-24 Pedro Alves <pedro@codesourcery.com>
6131
6132 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6133 shared library event breakpoint if there's no execution.
6134
77bc418a
TJB
61352011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6136
6137 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6138 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6139
c50491a7
TT
61402011-05-23 Tom Tromey <tromey@redhat.com>
6141
6142 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6143 NULL.
6144
6d64e6d4
DE
61452011-05-23 Doug Evans <dje@google.com>
6146
6147 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6148 entry for RuntimeError to doc string.
6149
2067c8d4
JG
61502011-05-23 Jerome Guitton <guitton@adacore.com>
6151
6152 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6153 sequence for probing loops.
6154
b136cd05
PA
61552011-05-23 Pedro Alves <pedro@codesourcery.com>
6156
6157 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6158 comment.
6159
22e74ef9
MK
61602011-05-21 Mark Kettenis <kettenis@gnu.org>
6161
6162 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6163 zero as the value for %g0 in the register cache.
6164 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6165 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6166
842951eb
PA
61672011-05-20 Pedro Alves <pedro@codesourcery.com>
6168
6169 * infrun.c (proceed): Set previous_inferior_ptid here.
6170 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6171 inferior_ptid, not null_ptid.
6172 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6173 (fetch_inferior_event): Nor here.
6174
46cf51e6
PA
61752011-05-20 Pedro Alves <pedro@codesourcery.com>
6176
6177 * inf-loop.c (inferior_event_handler): Only output a message if
6178 verbose.
6179
29ef4c46
LM
61802011-05-20 Luis Machado <lgustavo@codesourcery.com>
6181
6182 * MAINTAINERS: Update my e-mail address.
6183
f148b27e
PA
61842011-05-20 Pedro Alves <pedro@codesourcery.com>
6185
6186 * infrun.c (proceed): Switch the inferior event loop to
6187 INF_EXEC_COMPLETE if the target refused to resume from a
6188 vfork/fork.
6189
09cee04b
PA
61902011-05-20 Pedro Alves <pedro@codesourcery.com>
6191
6192 * infcmd.c: Include "inf-loop.h".
6193 (step_once): When stepping into an inline subroutine, pretend the
6194 target has run. If the target can async, switch the inferior
6195 event loop to INF_EXEC_COMPLETE.
6196 * inferior.h (user_visible_resume_ptid): Declare.
6197 * infrun.c (user_visible_resume_ptid): New function, factored out
6198 from `resume'.
6199 (resume): Use it.
6200 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6201 that the current thread is running. Merge async and sync
6202 branches.
6203
751b8ce1
PA
62042011-05-20 Pedro Alves <pedro@codesourcery.com>
6205
6206 * infcmd.c (step_1): Simplify synchronous case.
6207
e93a69ed
PA
62082011-05-20 Pedro Alves <pedro@codesourcery.com>
6209
6210 * tracepoint.c: Include exceptions.h.
6211 (TFILE_PID): Move higher in file.
6212 (tfile_open): Delay pushing the tfile target until we're assured
6213 the tfile header is present in the file. Wrap reading the initial
6214 newline-terminated lines in TRY_CATCH. Pop the target if the
6215 initial setup failed. Add the tfile's thread immediately
6216 aftwards, before any non-essential setup. Don't skip
6217 post_create_inferior if there are no traceframes present in the
6218 file.
6219 (tfile_close): Remove redundant check for null before xfree call.
6220 (tfile_thread_alive): New function.
6221 (init_tfile_ops): Register it as to_thread_alive callback.
6222
6823e2b1
PA
62232011-05-20 Pedro Alves <pedro@codesourcery.com>
6224
6225 * tracepoint.c (tfile_open): Delete #if 0'd code.
6226
b3c8eb43
JK
62272011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6228
6229 Fix -readnow for -gdwarf-4 unused type units.
6230 * dwarf2read.c (struct signatured_type): Remove the field offset.
6231 (create_signatured_type_table_from_index): Remove its initialization.
6232 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6233 instead. Add a complaint call.
6234 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6235 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6236 (lookup_signatured_type_at_offset, read_signatured_type)
6237 (write_one_signatured_type): Update the field for per_cu.
6238
310afc76
TT
62392011-05-19 Tom Tromey <tromey@redhat.com>
6240
6241 * python/py-inferior.c (python_inferior_exit): Use
6242 target_gdbarch.
6243 (python_on_resume): Likewise.
6244
cf6c5ffb
TT
62452011-05-19 Matt Rice <ratmice@gmail.com>
6246
6247 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6248
fb80a3c5
HZ
62492011-05-19 Hui Zhu <teawater@gmail.com>
6250
6251 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6252
3672b1be
HZ
62532011-05-19 Hui Zhu <teawater@gmail.com>
6254
6255 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6256
ff355380
TT
62572011-05-18 Tom Tromey <tromey@redhat.com>
6258
6259 * dwarf2read.c (dwarf2_add_field): Constify.
6260 * value.c (value_static_field): Constify.
6261 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6262 Now const.
6263 * ax-gdb.c (gen_static_field): Constify
6264
ed731959
JK
62652011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6266
6267 * linux-nat.c (kill_callback): Use SIGKILL first.
6268
967cff16
JB
62692011-05-18 Joel Brobecker <brobecker@adacore.com>
6270
6271 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6272
1d06ead6
TT
62732011-05-18 Tom Tromey <tromey@redhat.com>
6274
6275 * value.c (value_fn_field): Constify.
6276 * symtab.c (gdb_mangle_name): Constify.
6277 * stabsread.c (update_method_name_from_physname): Make 'physname'
6278 argument const.
6279 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6280 const. Use explicit fputc_filtered loop.
6281 (pascal_type_print_base): Constify.
6282 * p-lang.h (pascal_type_print_method_args): Update.
6283 * linespec.c (add_matching_methods): Constify.
6284 (add_constructors): Likewise.
6285 * jv-typeprint.c (java_type_print_base): Constify.
6286 * gdbtypes.h (struct cplus_struct_type)
6287 <fn_fieldlist.fn_field.physname>: Now const.
6288 * dwarf2read.c (compute_delayed_physnames): Constify.
6289 (dwarf2_add_member_fn): Likewise.
6290 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6291
0d9a9a5f
PA
62922011-05-18 Pedro Alves <pedro@codesourcery.com>
6293
6294 * infrun.c (resume): Mention which is the current thread, and its
6295 current PC in debug output.
6296 (prepare_to_proceed): Mention the thread switching in debug
6297 output.
6298
05386e9e
TT
62992011-05-18 Tom Tromey <tromey@redhat.com>
6300
6301 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6302 path check. Use xmalloc and cleanups.
6303 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6304
ee86786c
TT
63052011-05-17 Tom Tromey <tromey@redhat.com>
6306
6307 * cp-valprint.c (cp_print_value_fields): Catch errors from
6308 value_static_field.
6309
9ff3b74f
TT
63102011-05-17 Tom Tromey <tromey@redhat.com>
6311
6312 * dwarf2read.c (dwarf2_get_die_type): Call
6313 get_die_type_at_offset.
6314 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6315 get_base_type function.
6316
cd3da28e
PA
63172011-05-17 Tomas Martinec <fyzmat@gmail.com>
6318
6319 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6320 trap_expected.
6321
fd20d931
DE
63222011-05-16 Doug Evans <dje@google.com>
6323
6324 * python/py-auto-load.c (source_section_scripts): Mention objfile
6325 name in warning.
6326
75fc9810
DE
63272011-05-15 Doug Evans <dje@google.com>
6328
290351b8
DE
6329 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6330 (try_thread_db_load_from_pdir): Call it. If unable to find
6331 libthread_db in directory of libpthread, see if we're looking at
6332 the separate-debug-info copy.
6333
75fc9810
DE
6334 * python/py-autoload.c (print_script): Print "Missing" instead of
6335 "No" for missing scripts.
6336 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6337
9f7bc587
DE
63382011-05-13 Doug Evans <dje@google.com>
6339
6340 * ui-file.c (stdio_file_write_async_safe): Add comment.
6341
093cee7d
HZ
63422011-05-14 Hui Zhu <teawater@gmail.com>
6343
6344 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6345
dbaefcf7
DE
63462011-05-13 Doug Evans <dje@google.com>
6347
98a5dd13
DE
6348 Support $pdir and $sdir in libthread-db-search-path.
6349 * NEWS: Mention $sdir,$pdir.
6350 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6351 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6352 (try_thread_db_load_from_sdir): New function.
6353 (try_thread_db_load_from_dir): New function.
6354 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6355 system directories if search of libthread-db-search-path fails,
6356 that is now done via $sdir.
6357 (has_libpthread): New function.
6358 (thread_db_load): Remove search for libthread_db in directory of
6359 libpthread, that is now done via $pdir.
6360
dbaefcf7
DE
6361 * NEWS: Mention "info auto-load-scripts".
6362 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6363 script_not_found_warning_printed.
6364 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6365 all callers updated. Initialize script_not_found_warning_printed.
6366 (get_auto_load_pspace_data_for_loading): New function.
6367 (maybe_add_script): New function.
6368 (source_section_scripts): Simplify. Only print one warning regardless
6369 of the number of auto-load scripts not found.
6370 (clear_section_scripts): Clear script_not_found_warning_printed.
6371 (auto_load_objfile_script): Record script in hash table.
6372 (count_matching_scripts): New function.
6373 (maybe_print_script): Renamed from maybe_print_section_script, all
6374 callers updated. Rewrite to use ui_out_*.
6375 (info_auto_load_scripts): Renamed from
6376 maintenance_print_section_scripts, all callers updated.
6377 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6378 renamed as "info auto-load-scripts".
6379
9930639c
TT
63802011-05-13 Tom Tromey <tromey@redhat.com>
6381
6382 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6383 (read_sleb128): Likewise.
6384
06826322
TT
63852011-05-13 Tom Tromey <tromey@redhat.com>
6386
6387 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6388 offset display.
6389
01124a23
DE
63902011-05-13 Doug Evans <dje@google.com>
6391
6392 * linux-nat.c (debug_linux_nat_async): Delete.
6393 Replace all references to use debug_linux_nat instead.
6394 (show_debug_linux_nat_async): Delete.
6395 (sigchld_handler): Call ui_file_write_async_safe instead of
6396 fprintf_unfiltered.
6397 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6398 * ui-file.c (struct ui_file): New member to_write_async_safe.
6399 (null_file_write_async_safe): New function.
6400 (ui_file_write_async_safe): New function.
6401 (set_ui_file_write_async_safe): New function.
6402 (ui_file_new): Initialize to_write_async_safe.
6403 (stdio_file_write_async_safe): New function.
6404 (struct stdio_file): New member fd.
6405 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6406 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6407 fileno.
01124a23
DE
6408 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6409 (set_ui_file_write_async_safe): Declare.
6410 (ui_file_write_async_safe): Declare.
6411
72fc29ff
TT
64122011-05-13 Tom Tromey <tromey@redhat.com>
6413
6414 * utils.c (do_value_free): New function.
6415 (make_cleanup_value_free): Likewise.
6416 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6417 freeing correctly.
6418 (dwarf2_loc_desc_needs_frame): Call
6419 make_cleanup_value_free_to_mark.
6420 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6421 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6422 value_free_to_mark.
6423 (new_dwarf_expr_context): Don't call value_mark.
6424 * dwarf2-frame.c (execute_stack_op): Call
6425 make_cleanup_value_free_to_mark.
6426 * defs.h (make_cleanup_value_free): Declare.
6427
028d0ed5
TJB
64282011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6429
6430 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6431 prepare_execute_command.
6432 * top.c (prepare_execute_command): Return cleanup.
6433 (execute_command): Use cleanup from prepare_execute_command.
6434 * top.h (prepare_execute_command): Change prototype to return
6435 cleanup.
6436 * defs.h (struct value): Add opaque declaration.
6437 (make_cleanup_value_free_to_mark): Add prototype.
6438 * utils.c (do_value_free_to_mark): New function.
6439 (make_cleanup_value_free_to_mark): Likewise.
6440
b087e0ed
TT
64412011-05-12 Tom Tromey <tromey@redhat.com>
6442
6443 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6444 cast left-hand-side to unsigned.
6445
8a9b8146
TT
64462011-05-12 Tom Tromey <tromey@redhat.com>
6447
6448 PR gdb/12617:
6449 * value.h (value_from_contents): Declare.
6450 * value.c (value_from_contents): New function.
6451 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6452 (dwarf2_get_die_type): New function.
6453 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6454 (allocate_piece_closure): Acquire reference to values.
6455 (read_pieced_value): Update for value-based expressions.
6456 (write_pieced_value): Likewise.
6457 (free_pieced_value_closure): Call value_free as needed.
6458 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6459 Update for value-based expressions.
6460 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6461 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6462 <get_base_type>: New field.
6463 (struct dwarf_expr_piece) <v.value>: Change type.
6464 <v.regno>: New field.
6465 (struct dwarf_expr_context) <mark>: New field.
6466 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6467 (dwarf_expr_pop, dwarf_expr_push): Remove.
6468 (dwarf_expr_push_address): Declare.
6469 * dwarf2expr.c (dwarf_arch_cookie): New global.
6470 (struct dwarf_gdbarch_types): New.
6471 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6472 functions.
6473 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6474 static.
6475 (dwarf_expr_push_address): New function.
6476 (dwarf_expr_pop): Now static.
6477 (dwarf_expr_fetch): Change return type.
6478 (dwarf_require_integral): New function.
6479 (dwarf_expr_fetch): Simplify.
6480 (add_piece): Update.
6481 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6482 functions.
6483 (execute_stack_op) <sign_ext>: Remove.
6484 Use values for DWARF stack.
6485 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6486 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6487 New cases.
6488 (_initialize_dwarf2expr): New function.
6489 (add_piece): Update.
6490 (new_dwarf_expr_context): Set new field.
6491 (free_dwarf_expr_context): Call value_free_to_mark.
6492 * dwarf2-frame.c (no_base_type): New function.
6493 (execute_stack_op): Set get_base_type field. Update.
6494
e8d28ef4
TT
64952011-05-12 Tom Tromey <tromey@redhat.com>
6496
6497 * dwarf2read.c (read_common_block): Fix formatting.
6498
d248b706
KY
64992011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6500
6501 * breakpoint.c (disable_breakpoint): Disable all locations
6502 associated with a tracepoint on target if a trace experiment is
6503 running.
6504 (disable_command): Disable a specific tracepoint location on target if
6505 a trace experiment is running.
6506 (do_enable_breakpoint): Enable all locations associated with a
6507 tracepoint on target if a trace experiment is running.
6508 (enable_command) Enable a specific tracepoint location on target if a
6509 trace experiment is running.
6510 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6511 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6512 to_disable_tracepoint.
6513 * target.h: Add declaration of struct bp_location.
6514 (struct target_ops): Add new functions
6515 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6516 to_disable_tracepoint to target operations.
6517 (target_supports_enable_disable_tracepoint): New macro.
6518 (target_enable_tracepoint): New macro.
6519 (target_disable_tracepoint): New macro.
6520 * remote.c (struct remote_state): Add new field.
6521 (remote_enable_disable_tracepoint_feature): New.
6522 (remote_protocol_features): Add new entry.
6523 (remote_supports_enable_disable_tracepoint): New.
6524 (remote_enable_tracepoint): New.
6525 (remote_disable_tracepoint): New.
6526 (init_remote_ops): Add remote_enable_tracepoint,
6527 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6528 to remote operations.
6529 * tracepoint.c (start_tracing): Allow tracing to start without any
6530 tracepoints enabled with just a warning if they can be re-enabled
6531 later.
6532 * NEWS: Add news item for the new behaviour of the enable and disable
6533 GDB commands when applied to tracepoints.
6534 Add news items for the new remote packets QTEnable and QTDisable.
6535
cc88a640
JK
65362011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6537
6538 * config.in: Regenerate.
6539 * configure: Regenerate.
6540 * configure.ac <--with-system-readline> (for readline_echoing_p):
6541 Remove the test.
6542 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6543 (tui_old_rl_echoing_p): ... here.
6544 (tui_setup_io): Rename extern declaration readline_echoing_p to
6545 _rl_echoing_p. Adjust assignments for the both renames.
6546
1f84b619
TJB
65472011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6548
6549 * symtab.c (lookup_symtab): Run cleanup before returning.
6550
74ac6d43
TT
65512011-05-11 Tom Tromey <tromey@redhat.com>
6552
6553 * dwarf2read.c (handle_data_member_location): New function.
6554 (dwarf2_add_field): Use it.
6555 (read_common_block): Likewise.
6556
5488dafb
JK
65572011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6558
6559 Make addrs->SECTINDEX always defined.
6560 * symfile.c (relative_addr_info_to_section_offsets): Check for
6561 SECTINDEX -1, not for zero ADDR.
6562 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6563 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6564 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6565 on its validity.
6566
84e578fb
DE
65672011-05-10 Doug Evans <dje@google.com>
6568
2471d008
DE
6569 * linux-thread-db.c: Whitespace cleanup.
6570 (try_thread_db_load_1): Fix comment.
6571
84e578fb
DE
6572 * linux-thread-db.c (set_libthread_db_search_path): New function.
6573 (_initialize_thread_db): Add setter for libthread-db-search-path.
6574
673c2bbe
DE
65752011-05-09 Doug Evans <dje@google.com>
6576
478aac75
DE
6577 * NEWS: Mention --with-iconv-bin.
6578 * configure.ac: New option --with-iconv-bin.
6579 * configure: Regenerate.
6580 * config.in: Regenerate.
6581 * defs.h (relocate_gdb_directory): Declare.
6582 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6583 removed progname parameter, and exported. All callers updated.
6584 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6585
673c2bbe
DE
6586 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6587 adding missing call to restore_child_signals_mask.
6588
e4c8541f
PA
65892011-05-09 Pedro Alves <pedro@codesourcery.com>
6590
6591 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6592 parameter.
6593 * infrun.c (proceed, start_remote): Adjust.
6594 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6595 and adjust to not handle it.
6596 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6597 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6598 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6599 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6600 * windows-nat.c (do_initial_windows_stuff): Adjust.
6601 * infcmd.c (attach_command): Adjust.
6602 (notice_new_inferior): Adjust.
6603
a536c6d7
UW
66042011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6605
6606 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6607 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6608 * spu-tdep.c (op_selb): Use correct value.
6609
7845b013
UW
66102011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6611
6612 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6613 "parent" parameter to symbol_file_add_from_bfd call.
6614
9c06b0b4
TJB
66152011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6616 Thiago Jung Bauermann <bauerman@br.ibm.com>
6617
6618 Implement support for PowerPC BookE masked watchpoints.
6619 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6620 section.
6621 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6622 method. Initialize to NULL in all existing breakpoint_ops instances.
6623 (struct breakpoint) <hw_wp_mask>: New field.
6624 * breakpoint.c (is_masked_watchpoint): Add prototype.
6625 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6626 breakpoint's breakpoint_ops.works_in_software_mode if available.
6627 (watchpoints_triggered): Handle the case of a hardware masked
6628 watchpoint trigger.
6629 (watchpoint_check): Likewise.
6630 (works_in_software_mode_watchpoint): New function.
6631 (insert_masked_watchpoint, remove_masked_watchpoint)
6632 (resources_needed_masked_watchpoint)
6633 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6634 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6635 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6636 functions.
6637 (masked_watchpoint_breakpoint_ops): New structure.
6638 (watch_command_1): Check for the existence of the `mask' parameter.
6639 Set b->ops according to the type of hardware watchpoint being created.
6640 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6641 (ppc_linux_remove_mask_watchpoint)
6642 (ppc_linux_masked_watch_num_registers): New functions.
6643 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6644 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6645 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6646 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6647 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6648 (target_masked_watch_num_registers): New functions.
6649 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6650 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6651 methods.
6652 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6653 (target_masked_watch_num_registers): Add prototypes.
6654
8be455d7
JK
66552011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6656
6657 PR 12573
6658 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6659 (producer_is_gcc_ge_4_0): New function.
6660 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6661 symtab->language code.
6662 (var_decode_location): Set cu->has_loclist.
6663 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6664 skip. Intialize force_skip from locations_valid. Move the prologue
6665 skipping code into two passes.
6666 * symtab.h (struct symtab): Make the primary field a bitfield. New
6667 field locations_valid.
6668
d8228535
JK
66692011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6670
6671 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6672 (classify_inner_name): Call cp_lookup_nested_type with
6673 yylval.tsym.type.
6674 * cp-namespace.c (cp_lookup_nested_type): New variable
6675 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6676 type_name_no_tag_or_error with saved_parent_type.
6677 * dwarf2read.c (load_partial_dies): Read in any children of
6678 DW_TAG_typedef with complaint in such case.
6679 * gdbtypes.c (type_name_no_tag_or_error): New function.
6680 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6681 * valops.c (destructor_name_p): New comment for parameter type. Remove
6682 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6683 * value.h (destructor_name_p): Remove type const.
6684
1976171a
JK
66852011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6686
6687 * symtab.c (compare_symbol_name): New function.
6688 (completion_list_add_name, expand_partial_symbol_name): Call it,
6689 remove the variable ncmp.
6690 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6691 gdb_assert it.
6692
a9634178
TJB
66932011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6694
6695 Demote to sw watchpoint only in update_watchpoint.
6696 * breakpoint.c (update_watchpoint): Change between software and
6697 hardware watchpoint for all kinds of watchpoints, not just
6698 read/write ones. Determine b->exact value here instead of
6699 in watch_command_1. Error out if there are not enough resources
6700 for a read or access hardware watchpoint.
6701 (watch_command_1): Remove logic of checking whether there are
6702 enough resources available, since update_watchpoint will do that
6703 work now. Don't set b->exact here. Catch exceptions thrown by
6704 update_watchpoint and delete the watchpoint.
6705 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6706 Use target_exact_watchpoints instead.
6707 (delete_breakpoint): Notify observers only if deleted watchpoint
6708 has a breakpoint number assigned to it.
6709
4c67c798
JJ
67102011-05-05 Janis Johnson <janisjo@codesourcery.com>
6711
6712 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6713
a3fcb948
JG
67142011-05-05 Jerome Guitton <guitton@adacore.com>
6715
6716 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6717 New functions.
6718 (i386_stack_tramp_frame_unwind): New static global.
6719 (i386_match_pattern): New function, extracted from i386_match_insn.
6720 (i386_match_insn): Use i386_match_pattern.
6721 (i386_match_insn_block): New function.
6722 (i386_tramp_chain_in_reg_insns)
6723 (i386_tramp_chain_on_stack_insns): New static variables.
6724 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6725 of unwinders.
6726
4d393d60
JM
67272011-05-04 Joseph Myers <joseph@codesourcery.com>
6728
6729 * configure.host (xscale*): Don't handle target.
6730 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6731 handle targets.
6732
f70bd40b
YQ
67332011-05-04 Yao Qi <yao@codesourcery.com>
6734
6735 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6736
dd3295ee
JB
67372011-05-03 Joel Brobecker <brobecker@adacore.com>
6738
6739 Revert:
6740 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6741 | * elfread.c (elf_symtab_read): Stop memory leak.
6742
90375a0e
PM
67432011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6744
6745 * nto-tdep.c (nto_target): Replace deprecated call to
6746 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6747
d07205c2
JK
67482011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6749
6750 Fix false GCC warning.
6751 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6752
1e718ff1
TJB
67532011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6754
6755 * breakpoint.c (update_watchpoint): Move code to change
6756 the enable state of breakpoint from here ...
6757 (do_enable_breakpoint): ... to here.
6758
35bef4fd
TT
67592011-04-26 Andrew Gontarek <andrewg@cray.com>
6760
78290264
PP
6761 * valprint.c (val_print_array_elements): Fixed poor performance
6762 of printing very large arrays with repeat_count_threshold set
6763 to unlimited. New comment.
35bef4fd 6764
38a714bb
TT
67652011-04-29 Tom Tromey <tromey@redhat.com>
6766
6767 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6768 (mi_parse): Likewise.
6769 * breakpoint.c (break_range_command): Use sizeof char*, not
6770 char**.
6771 (create_breakpoint): Likewise.
6772 (parse_breakpoint_sals): Likewise.
6773
eb73ad13
PA
67742011-04-29 Pedro Alves <pedro@codesourcery.com>
6775
6776 * linux-nat.c (linux_child_remove_fork_catchpoint)
6777 (linux_child_remove_vfork_catchpoint)
6778 (linux_child_remove_exec_catchpoint): New functions.
6779 (linux_target_install_ops): Install them.
6780
d65aec65
PM
67812011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6782
6783 PR mi/12531
6784
6785 * varobj.c (install_default_visualizer): Do not install a
6786 visualizer if the varobj is CPLUS_FAKE_CHILD.
6787 (construct_visualizer): Likewise.
6788
165195f4
JK
67892011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6790
6791 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6792 case insensitive comparison.
6793
30852783
UW
67942011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6795
6796 * infrun.c (proceed): Revert previous change.
6797 (resume): Instead, handle the case of signal delivery while stepping
6798 off a breakpoint location here, and only if software single-stepping
6799 is used. Handle nested signals.
6800
7ff120b4
YQ
68012011-04-28 Yao Qi <yao@codesourcery.com>
6802
6803 * arm-tdep.c (copy_unmodified): Rename to ...
6804 (arm_copy_unmodified): .. this. New.
6805 (copy_preload): Move common part to ...
6806 (install_preload): .. this. New.
6807 (arm_copy_preload): New.
6808 (copy_preload_reg): Move common part to ...
6809 (install_preload_reg): ... this. New.
6810 (arm_copy_preload_reg): New.
6811 (copy_b_bl_blx): Move common part to ...
6812 (install_b_bl_blx): .. this. New.
6813 (arm_copy_b_bl_blx): New.
6814 (copy_bx_blx_reg): Move common part to ...
6815 (install_bx_blx_reg): ... this. New.
6816 (arm_copy_bx_blx_reg): New.
6817 (copy_alu_reg): Move common part to ...
6818 (install_alu_reg): ... this. New.
6819 (arm_copy_alu_reg): New.
6820 (copy_alu_shifted_reg): Move common part to ...
6821 (install_alu_shifted_reg): ... this. New.
6822 (copy_ldr_str_ldrb_strb): Move common part to ...
6823 (install_ldr_str_ldrb_strb): ... this. New.
6824 (arm_copy_ldr_str_ldrb_strb): New.
6825 (copy_copro_load_store): Move some common part to ...
6826 (install_copy_copro_load_store): ... this. New.
6827 (arm_copy_copro_load_store): New.
6828 (copy_svc): Delete.
6829 (arm_copy_svc): Renamed from copy_svc.
6830 (copy_undef): Delete.
6831 (arm_copy_undef): Renamed from copy_undef.
6832 (decode_ext_reg_ld_st): Delete.
6833 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6834 (decode_svc_copro): Delete.
6835 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6836 (copy_copro_load_store, copy_alu_imm): update callers.
6837 (copy_extra_ld_st, copy_block_xfer): Likewise.
6838 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6839 (decode_miscellaneous, decode_dp_misc): Likewise.
6840 (decode_ld_st_word_ubyte, decode_media): Likewise.
6841 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6842 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6843 (decode_unconditional, decode_miscellaneous): Likewise.
6844 (decode_media, decode_b_bl_ldmstm): Likewise.
6845 (arm_process_displaced_insn): Likewise..
6846 (decode_misc_memhint_neon): Delete.
6847 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6848 (decode_miscellaneous): Delete.
6849 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6850 (decode_dp_misc): Delete.
6851 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6852 (decode_ld_st_word_ubyte): Delete.
6853 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6854 (decode_media): Delete.
6855 (arm_decode_media): Renamed from decode_media.
6856 (decode_b_bl_ldmstm): Delete.
6857 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6858 (decode_ext_reg_ld_st): Delete.
6859 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6860 (decode_unconditional): Delete.
6861 (arm_decode_unconditional): Renamed from decode_unconditional.
6862
559a7a62
JK
68632011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6864
6865 Case insensitive lookups implementation.
6866 * dwarf2read.c: Include ctype.h.
6867 (struct mapped_index): New field version.
6868 (mapped_index_string_hash): New parameter index_version. New comment
6869 for it. Call tolower appropriately.
6870 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6871 Choose the right index version for mapped_index_string_hash.
6872 (dwarf2_read_index): Support also the index version 5. Initialize the
6873 new struct mapped_index field version.
6874 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6875 (find_slot): Explain the version needs. Pass INT_MAX for the new
6876 parameter.
6877 (write_psymtabs_to_index): Produce version 5.
6878 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6879 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6880 * psymtab.c (lookup_partial_symbol): Find the
6881 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6882 entries.
6883 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6884 NAME lowercasing.
6885 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6886 (completion_list_add_name): New variable ncmp, initialize it, use it.
6887 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6888 * utils.c (strcmp_iw): Support case_sensitive_off.
6889 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6890 New function comment part. New variables saved_string1,
6891 saved_string2 and case_pass. Add a proper second pass.
6892
681bf369
JK
68932011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 Replace re_comp/re_exec by regcomp/regexec.
6896 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6897 (search_symbols_name_matches): Use them, use regexec.
6898 (search_symbols): New variable retval_chain, adjust the use of
6899 old_chain against it. Replace re_comp by regcomp. Use the new struct
6900 search_symbols_data fields, use regexec instead of re_exec.
6901
b11b1f88
JK
69022011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6903
6904 Format the code for the next patch.
6905 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6906 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6907 New variables c1 and c2.
6908
2484c66b
UW
69092011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6910
6911 * infrun.c (proceed): Do not single-step into signal delivery
6912 when stepping off a breakpoint location.
6913 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6914 (insert_step_resume_breakpoint_at_caller): Likewise.
6915 (insert_step_resume_breakpoint_at_sal): Likewise.
6916 (insert_longjmp_resume_breakpoint): Likewise.
6917
47423772
YQ
69182011-04-27 Yao Qi <yao@codesourcery.com>
6919
6920 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6921
13bdd2e7
JB
69222011-04-27 Joel Brobecker <brobecker@adacore.com>
6923
6924 * procfs.c (procfs_pass_signals): Fix advance declaration.
6925
2455069d
UW
69262011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6927
6928 * target.h (struct target_ops): Remove to_notice_signals;
6929 add to_pass_signals.
6930 (target_notice_signals): Remove.
6931 (target_pass_signals): Add prototype.
6932 * target.c (update_current_target): Remove to_notice_signals;
6933 mention to_pass_signals.
6934 (target_pass_signals): New function.
6935 (debug_to_notice_signals): Remove.
6936 (setup_target_debug): Do not install debug_to_notice_signals.
6937
6938 * infrun.c (signal_pass): New global.
6939 (resume): Call target_pass_signals.
6940 (handle_inferior_event): Report all signals while stepping over
6941 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6942 are re-inserted when stepping over a signal handler.
6943 (signal_cache_update): New function.
6944 (signal_stop_update): Call it.
6945 (signal_print_update): Likewise.
6946 (signal_pass_update): Likewise.
6947 (handle_command): Call signal_cache_update and target_pass_signals
6948 instead of target_notice_signals.
6949 (_initialize_infrun): Initialize signal_pass.
6950
6951 * linux-nat.c (pass_mask): New global.
6952 (linux_nat_pass_signals): New function.
6953 (linux_nat_create_inferior): Report all signals initially.
6954 (linux_nat_attach): Likewise.
6955 (linux_nat_resume): Use pass_mask to decide whether to directly
6956 handle an inferior signal.
6957 (linux_nat_wait_1): Likewise.
6958 (linux_nat_add_target): Install to_pass_signals callback.
6959
6960 * nto-procfs.c (notice_signals): Remove.
6961 (procfs_resume): Do not call notice_signals.
6962 (procfs_notice_signals): Remove.
6963 (procfs_pass_signals): New function.
6964 (init_procfs_ops): Install to_pass_signals callback instead of
6965 to_notice_signals callback.
6966 (_initialize_procfs): Report all signals initially.
6967
6968 * procfs.c (procfs_notice_signals): Remove.
6969 (procfs_pass_signals): New function.
6970 (procfs_target): Install to_pass_signals callback instead of
6971 to_notice_signals callback.
6972 (register_gdb_signals): Remove.
6973 (procfs_debug_inferior): Report all signals initially.
6974 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6975
6976 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6977 parameters; use them instead of calling signal_..._state routines.
6978 (remote_notice_signals): Remove.
6979 (remote_start_remote): Report all signals initially.
6980 (remote_resume): Do not call remote_pass_signals.
6981 (_initialize_remote): Install to_pass_signals callback instead of
6982 to_notice_signals callback.
6983
46c6471b
PA
69842011-04-27 Pedro Alves <pedro@codesourcery.com>
6985
6986 * breakpoint.c (user_settable_breakpoint): Delete.
6987 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6988 (delete_command): Check user_breakpoint_p instead of looking at
6989 the breakpoint's type.
6990 (disable_command): Ditto.
6991 (enable_command): Ditto.
6992 (delete_trace_command): Use user_breakpoint_p instead of looking
6993 at the breakpoint number directly. When checking if there are
6994 user visible tracepoints, in order to know whether to ask the user
6995 for confirmation, check whether the breakpoint is actually a
6996 tracepoint.
6997
f6d90398
VP
69982011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6999
7000 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7001 compilation.
7002
8d3788bd
VP
70032011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7004
7005 MI breakpoint notifications.
7006
f33edef8
PP
7007 * annotate.c (breakpoint_changed): Adjust parameter type.
7008 * breakpoint.c (set_breakpoint_condition): Adjust to change
7009 in breakpoint_modified type.
7010 (breakpoint_set_commands): Likewise.
7011 (do_map_commands_command): Likewise.
7012 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7013 changed after bumping hit count.
7014 (bpstat_stop_status): Likewise.
7015 (print_one_breakpoint_location): Don't wrap in tuple here.
7016 (print_one_breakpoint): Always print individual locations.
7017 For locations, use unnamed tuple.
7018 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7019 has changed.
7020 (create_catchpoint, create_syscall_event_catchpoint): Call
7021 breakpoint_created obsever.
7022 (mention): Don't call breakpoint_created observer.
7023 (create_breakpoint_sal): Call breakpoint_created observer.
7024 (create_breakpoint, watch_command_1): Likewise.
7025 (create_ada_exception_breakpoint): Likewise.
7026 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7027 (locations_are_equal): New.
7028 (update_breakpoint_locations): If locations were changed, notify.
7029 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7030 Call breakpoint_modified observer.
7031
7032 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7033 (mi_cmd_break_insert): Don't set observers for modify and delete.
7034 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7035 (mi_breakpoint_created, mi_breakpoint_deleted)
7036 (mi_breakpoint_modified): New.
7037 (mi_interpreter_init): Hook the above.
7038 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7039 while -break-* commands are executing.
7040 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7041 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7042 (mi_redirect): New.
7043 (mi_ui_out_impl): Hook in mi_redirect.
7044 (mi_field_skip): True to the name, skip the field, don't output
7045 a field with an empty value.
7046
7047 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7048 (gdbpy_breakpoint_deleted): Adjust.
7049 * tui/tui-hooks.c (tui_event_create_breakpoint)
7050 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7051
a8f42b45
UW
70522011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7053
7054 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7055 (procfs_remove_hw_watchpoint): Likewise.
7056
57e12211
TT
70572011-04-26 Michael Walle <michael@walle.cc>
7058
7059 * remote.c (remote_start_remote): Ack packet after sending the
7060 interrupt sequence.
7061
af96c192
YQ
70622011-04-26 Yao Qi <yao@codesourcery.com>
7063
f33edef8
PP
7064 * linux-nat.c: Move common macros to ...
7065 Include linux-ptrace.h.
7066 * common/linux-ptrace.h: ... here. New.
af96c192 7067
3e03848b
JK
70682011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7071 !objfile_has_partial_symbols. New comment.
7072 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7073 SYM_READ_PSYMBOLS is not present. Extend the comment.
7074 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7075
1ae0d051
JK
70762011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 * defs.h (ENUM_BITFIELD): Remove.
7079
03f2bd59
JK
70802011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7081 Eli Zaretskii <eliz@gnu.org>
7082
7083 * NEWS: Document the new gdbserver --once option.
7084
4161fbb0
JZ
70852011-04-21 Jie Zhang <jzhang918@gmail.com>
7086
7087 * MAINTAINERS: Update my email address.
7088
bcb28afc
PM
70892011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7090
7091 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7092 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7093 function call if __STDC_ISO_10646__ macro is defined.
7094 (intermediate_encoding): New prototype.
7095 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7096 to generate compile time error for unsupported gdb_wchar_t size.
7097 (ENDIAN_SUFFIX): New macro.
7098 (intermediate_encoding): New function.
7099
7b08b9eb
JK
71002011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7101
7102 * ada-lang.c (struct add_partial_datum): Update the comment for
7103 expand_partial_symbol_name.
7104 (ada_add_partial_symbol_completions): Rename to ...
7105 (ada_expand_partial_symbol_name): ... here, change return type, update
7106 function comment, call symbol_completion_match instead of
7107 symbol_completion_add.
7108 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7109 and ada_expand_partial_symbol_name.
7110 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7111 FILE_MATCHER.
7112 (dw2_map_symbol_names): Remove.
7113 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7114 * psymtab.c (map_symbol_names_psymtab): Remove.
7115 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7116 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7117 order.
7118 (psym_functions): Unlist map_symbol_names_psymtab.
7119 (map_partial_symbol_names): Rename to ...
7120 (expand_partial_symbol_names): ... here, change the FUN type, call
7121 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7122 * psymtab.h (map_partial_symbol_names): Rename to ...
7123 (expand_partial_symbol_names): ... here, change the FUN type.
7124 * symfile.h (struct quick_symbol_functions): Update the description of
7125 expand_symtabs_matching. Remove map_symbol_names.
7126 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7127 (struct add_name_data): Update the comment for
7128 expand_partial_symbol_name.
7129 (add_partial_symbol_name): Rename to ...
7130 (expand_partial_symbol_name): ... here. Replace
7131 completion_list_add_name call by strncmp.
7132 (default_make_symbol_completion_list_break_on): Use now
7133 expand_partial_symbol_names and expand_partial_symbol_name.
7134 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7135
90476074
TT
71362011-04-20 Tom Tromey <tromey@redhat.com>
7137
7138 * dwarf2read.c (save_gdb_index_command): Replace format
7139 documentation with a pointer to the manual.
7140
c21236dc
PA
71412011-04-20 Pedro Alves <pedro@codesourcery.com>
7142
7143 * regcache.c: Include remote.h.
7144 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7145 (regcache_dump): Handle regcache_dump_remote.
7146 (maintenance_print_remote_registers): New function.
7147 (_initialize_regcache): Install "maint print remote-registers"
7148 command.
7149 * remote.c (map_regcache_remote_table): New function, factored out
7150 from ...
7151 (init_remote_state): ... here.
7152 (remote_register_number_and_offset): New.
7153 * remote.h (remote_register_number_and_offset): Declare.
7154
b78974c3
PA
71552011-04-20 Pedro Alves <pedro@codesourcery.com>
7156
7157 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7158 null_ptid, assume and allow a NULL address space, instead of
7159 asking the target for the ptid's address space.
7160 * infrun.c (ptid_is_pid): Remove assertion.
7161
7a9dd1b2
TT
71622011-04-19 Tom Tromey <tromey@redhat.com>
7163
7164 * windows-tdep.c (windows_xfer_shared_library):
7165 * windows-nat.c (get_module_name, windows_make_so):
7166 * v850-tdep.c (v850_handle_pushm):
7167 * utils.c (null_cleanup, gdb_realpath):
7168 * ui-out.c (get_next_header):
7169 * tracepoint.c (clear_traceframe_info):
7170 * symtab.c (lookup_symtab):
7171 * serial.h (struct serial_ops):
7172 * mipsread.c (read_alphacoff_dynamic_symtab):
7173 * infcmd.c (print_return_value):
7174 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7175 * f-exp.y (parse_number):
7176 * exceptions.c (catch_exceptions):
7177 * dummy-frame.c (dummy_frame_this_id):
7178 * defs.h (struct cleanup):
7179 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7180 * arm-tdep.c (arm_push_dummy_call):
7181 * amd64-tdep.h (amd64_collect_xsave):
7182 * amd64-tdep.c (amd64_collect_xsave):
7183 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7184 * README (typing): Remove duplicate words.
7185 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7186 * infrun.c (siginfo_value_read): Fix typo.
7187 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7188 * top.c (source_line_number): Add comma.
7189
9941e0c5
MK
71902011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7191
7192 * thread.c (any_live_thread_of_process): Prioritize threads
7193 that are not executing.
7194 * gdbthread.h (any_live_thread_of_process): Update comment
7195 as per above change.
7196
ed4b0e6a
AS
71972011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7198
7199 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7200 (scan_xcoff_symtab): Likewise.
7201
9b13a2db
PM
72022011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7203
7204 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7205 inside if clause.
7206
1c6e1b0d
PM
72072011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7208 Pedro Alves <pedro@codesourcery.com>
7209
7210 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7211 variables to simplify code and avoid == operator at end of
7212 line as this is against GNU coding standards.
7213
74de0234
PM
72142011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7215
7216 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7217 lm_name to name_lm to avoid conflict with lm_name function.
7218
b23518f0
PM
72192011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7220
7221 ARI fixes: Use only lowercase function name for static functions.
7222 * nto-tdep.c (LM_ADDR): Rename to...
7223 (lm_addr): New function name.
7224 (nto_relocate_section_addresses): Adapt to change above.
7225 * solib-sunos.c (LM_ADDR): Rename to...
7226 (lm_addr): New function name.
7227 (LM_NEXT): Rename to...
7228 (lm_next): New function name.
7229 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7230 function name changes above.
7231 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7232 (lm_addr_from_link_map): New function name.
7233 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7234 (has_lm_dynamic_from_link_map): New function name.
7235 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7236 (lm_dynamic_from_link_map): New function name.
7237 (LM_ADDR_CHECK): Rename to...
7238 (lm_addr_check): New function name.
7239 (LM_NEXT): Rename to...
7240 (lm_next): New function name.
7241 (LM_PREV): Rename to...
7242 (lm_prev): New function name.
7243 (LM_NAME): Rename to...
7244 (lm_name): New function name.
7245 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7246 (ignore_first_link_map_entry): New function name.
7247 (svr4_keep_data_in_core): Adapt to function name changes above.
7248 (svr4_current_sos): Likewise.
7249 (enable_break): Likewise.
7250 (svr4_relocate_section_addresses): Likewise.
7251
1448a0a2
PM
72522011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7253
7254 ARI cleanup.
7255 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7256 sprintf. Simplify code and avoid loosing memory.
7257 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7258 (call0_frame_cache): Remove && operator from end of line.
7259
02835898
JK
72602011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 Fix libraries displacement if they change whether they were prelinked.
7263 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7264 does not match. Comment why.
7265
9a845ea2
JK
72662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7267
7268 * corelow.c: Include wrapper.h.
7269 (core_open): Call now gdb_target_find_new_threads.
7270 * wrapper.c: Include target.h.
7271 (gdb_target_find_new_threads): New.
7272 * wrapper.h (gdb_target_find_new_threads): New declaration.
7273
254f582e
JK
72742011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7277 even if !TARGET_HAS_EXECUTION.
7278
63524580
JK
72792011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7282 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7283 bfd_get_synthetic_symtab.
7284 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7285 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7286 parameter parent, remove the call to add_separate_debug_objfile.
7287 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7288 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7289 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7290 parent, new comment for it, call add_separate_debug_objfile for it.
7291 (symbol_file_add_separate): Pass objfile as the parameter parent,
7292 remove the call to add_separate_debug_objfile.
7293 (symbol_file_add_from_bfd): New parameter parent, pass it.
7294 (symbol_file_add): Pass NULL to the new parameter parent.
7295 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7296
90359a16
JK
72972011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7300 BSF_SYNTHETIC.
7301
626e7282
JK
73022011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7303
7304 Fix Python access to inlined frames.
7305 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7306 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7307
cf31e6f9
TT
73082011-04-15 Tom Tromey <tromey@redhat.com>
7309
7310 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7311
c8d895f1
GB
73122011-04-15 Gary Benson <gbenson@redhat.com>
7313
7314 * MAINTAINERS: Add myself to write-after-approval section.
7315
56a9aa1d
MF
73162011-04-14 Mike Frysinger <vapier@gentoo.org>
7317
7318 * remote-sim.c (sim_command_completer): New function.
7319 (_initialize_remote_sim): Set completer to sim_command_completer.
7320
ba770c9c
TJB
73212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7322
7323 * breakpoint.c (print_exception_catchpoint): Rename to ...
7324 (print_it_exception_catchpoint): ... this.
7325 (gnu_v3_exception_catchpoint_ops): Update with new name
7326 for print_it_exception_catchpoint.
7327
51bf2553
EBM
73282011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7329
7330 * MAINTAINERS: Add myself for write after approval privileges.
7331
d242658c
MP
73322011-04-13 Marek Polacek <mpolacek@redhat.com>
7333
7334 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7335
4a4106ca
TJB
73362011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7337
7338 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7339
26063d49
TJB
73402011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7341
7342 * breakpoint.c (save_breakpoints): Verify whether
7343 breakpoint_ops.print_recreate is defined before calling it.
7344
7782b183
GB
73452011-04-11 Gary Benson <gbenson@redhat.com>
7346
7347 Fix failure with --enable-maintainer-mode.
7348 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7349
e8930875
JK
73502011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 Code cleanup.
7353 * symtab.c (search_symbols): Reorder the KIND description in the
7354 function comment. Remove the unused 4th element of types, types2,
7355 types3 and types4. New gdb_assert on KIND.
7356 (symtab_symbol_info): Remove the unused 4th element of classnames.
7357 New gdb_assert on KIND.
7358 * symtab.h (enum search_domain): New warning in the enum comment.
7359 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7360 TYPES_DOMAIN.
7361
b4f2f049
JK
73622011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7363
7364 Fix crash of gdb save-index on a STABS file.
7365 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7366 PSYMTABS_ADDRMAP.
7367
60d5a603
JK
73682011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7369
7370 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7371 * dwarf2read.c: Include ctype.h.
7372 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7373 functions.
7374 (dwarf2_add_field): Fix new_field->accessibility by calling
7375 dwarf2_default_access_attribute. Restructure setting accessibility
7376 vs. virtuality.
7377 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7378 is_private and is_protected by calling
7379 dwarf2_default_access_attribute.
7380
e0f68161
KB
73812011-04-08 Kevin Buettner <kevinb@redhat.com>
7382
7383 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7384 to the initialization.
7385
2e1aae43
SE
73862011-04-08 Steve Ellcey <sje@cup.hp.com>
7387
7388 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7389 initalization.
7390
c6ca3dab
PM
73912011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7392
7393 Remove support for old Cygwin 1.5 versions.
7394 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7395 function on old Cygwin version.
7396 * windows-nat.c: Remove cygwin version check and always define
7397 __USEWIDE for Cygwin compilation.
7398
bd18283a
YQ
73992011-04-07 Yao Qi <yao@codesourcery.com>
7400
7401 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7402 and TO.
7403 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7404 (arm_copy_svc): Remove parameters INSN and TO.
7405 (decode_svc_copro): Update caller.
7406 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7407 from function pointer `copy_svc_os'.
7408
8c8dba6d
YQ
74092011-04-07 Yao Qi <yao@codesourcery.com>
7410
7411 * arm-tdep.c (cleanup_branch): Set a correct return address in
7412 LR for ARM and Thumb.
7413
59d7bcaf
JK
74142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7415
7416 Code cleanup.
7417 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7418 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7419 in the function comment, a new note on values compatibility.
7420 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7421 * symtab.h (SYMBOL_HASH_NEXT): New.
7422
e7db58ea
TJB
74232011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7424
7425 * ppc-linux-nat.c (check_condition): Add len output parameter.
7426 Set it based on the memory region referenced in the condition
7427 expression. Update all callers.
7428
9f743ef6
JK
74292011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7430
7431 Fix crash regression on systems featuring .gdb_index.
7432 * objfiles.c (free_objfile): Move the
7433 forget_cached_source_info_for_objfile call earlier. Comment it.
7434 Extend the comment for objfile_free_data.
7435
9182c5bc
JK
74362011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7437
7438 Fix regression of displaying the debug format.
7439 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7440 subfile.
7441
04bd08de
TT
74422011-04-04 Tom Tromey <tromey@redhat.com>
7443
7444 * cli/cli-interp.c (struct captured_execute_command_args):
7445 Remove.
7446 (do_captured_execute_command): Remove.
7447 (safe_execute_command): Use TRY_CATCH.
7448 * cli/cli-script.c (struct wrapped_read_command_file_args):
7449 Remove.
7450 (wrapped_read_command_file): Remove.
7451 (script_from_file): Use TRY_CATCH.
7452 * exceptions.c (catch_exception): Remove.
7453 * exceptions.h (catch_exception): Remove.
7454 (deprecated_throw_reason): Update comment.
7455 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7456 argument to 'context'.
7457 (mi_execute_command): Use TRY_CATCH.
7458 * remote.c (struct start_remote_args): Remove.
7459 (remote_start_remote): Update; change arguments.
7460 (remote_open_1): Use TRY_CATCH.
7461
58438ac1
TT
74622011-04-04 Tom Tromey <tromey@redhat.com>
7463
7464 * tracepoint.c (scope_info): Update.
7465 * symtab.c (decode_line_spec): Update.
7466 * python/python.c (gdbpy_decode_line): Update.
7467 * linespec.h (decode_line_1): Update.
7468 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7469 (decode_compound, find_method, symtab_from_filename)
7470 (decode_variable): Likewise.
7471 * cli/cli-cmds.c (edit_command): Update.
7472 (list_command): Update.
7473 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7474 argument.
7475 (create_breakpoint): Update.
7476 (until_break_command): Update.
7477 (addr_string_to_sals): Update.
7478 (decode_line_spec_1): Update.
7479
b78a6381
TT
74802011-04-04 Tom Tromey <tromey@redhat.com>
7481
7482 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7483 (do_captured_parse_breakpoint): Remove.
7484 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7485 Use TRY_CATCH directly.
7486
00174a86
TT
74872011-04-04 Tom Tromey <tromey@redhat.com>
7488
7489 * symtab.h (free_symtab): Remove.
7490 (forget_cached_source_info_for_objfile): Declare.
7491 * symmisc.c (free_symtab): Remove.
7492 * source.c (forget_cached_source_info_for_objfile): New function.
7493 (forget_cached_source_info): Use it.
7494 * objfiles.c (free_objfile): Simplify check before calling
7495 clear_current_source_symtab_and_line. Call
7496 forget_cached_source_info_for_objfile.
7497
30cc903e
TT
74982011-04-04 Tom Tromey <tromey@redhat.com>
7499
7500 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7501 (new_symtab): Don't set `free_code' on symtab.
7502 (new_linetable): Properly handle size==0.
7503 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7504 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7505 free_func.
7506 * jv-lang.c (struct jv_per_objfile_data): New.
7507 (jv_per_objfile_free): Free the data.
7508 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7509 (get_java_class_symtab): Set the `dict' field on the
7510 jv_per_objfile_data.
7511 (free_class_block): Remove.
7512 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7513 the symtab.
7514
0c2e6019
TT
75152011-04-04 Tom Tromey <tromey@redhat.com>
7516
7517 * symfile.c (reread_symbols): Update.
7518 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7519 field.
7520 * objfiles.c (allocate_objfile): Update.
7521 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7522 declare.
7523 * cp-namespace.c (lookup_symbol_file): Don't call
7524 lookup_possible_namespace_symbol.
7525 (initialize_namespace_symtab, get_possible_namespace_block)
7526 (free_namespace_block, cp_check_possible_namespace_symbols)
7527 (check_possible_namespace_symbols_loop)
7528 (check_one_possible_namespace_symbol)
7529 (lookup_possible_namespace_symbol): Remove.
7530 (maintenance_cplus_namespace): Replace with notice.
7531 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7532
554d387d
TT
75332011-04-04 Tom Tromey <tromey@redhat.com>
7534
7535 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7536 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7537 * symmisc.c (free_symtab): Don't free debugformat.
7538 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7539 (record_debugformat, record_producer): Document.
7540 * buildsym.c (end_symtab): Don't save debugformat and producer
7541 names on obstack.
7542 (end_symtab): Don't free debugformat and producer fields.
7543 (record_debugformat): Don't call xstrdup.
7544 (record_producer): Likewise.
7545
d4d4db8a
TT
75462011-04-04 Tom Tromey <tromey@redhat.com>
7547
7548 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7549 (source_line_charpos, source_charpos_line): Remove.
7550
8903c50d
TT
75512011-04-04 Tom Tromey <tromey@redhat.com>
7552
7553 * symtab.h (domain_enum): Split in two...
7554 (enum search_domain): New.
7555 (search_symbols): Update.
7556 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7557 redundant declarations.
7558 (search_symbols): Change 'kind' argument to search_domain.
7559 Update.
7560 (print_symbol_info): Likewise.
7561 (symtab_symbol_info): Likewise.
7562 * symfile.h (struct quick_symbol_functions)
7563 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7564 <expand_symtabs_matching>: Likewise.
7565 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7566 (expand_symtabs_matching_via_partial): Update.
7567 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7568 (dw2_expand_symtabs_for_function): Update.
7569 * block.h: Moved anonymous enum...
7570 * defs.h (enum block_enum): ... here. Now named.
7571
d9351f5f 75722011-04-03 Joel Brobecker <brobecker@adacore.com>
7573
7574 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7575 * version.in: Bump version to 7.3.50.20110403-cvs.
7576
d6e00af6
JB
75772011-04-03 Joel Brobecker <brobecker@adacore.com>
7578
7579 * NEWS: Create a new section for the next release branch.
7580 Rename the section of the current branch, now that it has
7581 been cut.
7582
2b9e5ea6
UW
75832011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7584
7585 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7586 for "fpscr" in target description.
7587
0cf03b49
JK
75882011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7589
7590 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7591 initialize it. Delay HASH initialization. Strip the part after open
7592 parenthesis for languages with qualifiers. Call do_cleanups.
7593
5d901a73
TT
75942011-04-01 Tom Tromey <tromey@redhat.com>
7595
7596 * utils.c (report_command_stats): Don't print `-' for negative
7597 number.
7598
b0dd7688
JB
75992011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7600
7601 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7602 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7603 typedefs.
7604
956a9fb9
JB
76052011-04-01 Joel Brobecker <brobecker@adacore.com>
7606
7607 * breakpoint.h (bpdisp_text): Add declaration.
7608 * breakpoint.c (bpdisp_text): Make non-static.
7609 * ada-lang.c: #include "mi/mi-common.h".
7610 (print_it_exception): Rewrite to improve GDB/MI output.
7611
3352110b
PA
76122011-04-01 Pedro Alves <pedro@codesourcery.com>
7613
7614 * arm-tdep.h (struct address_space): Add forward declaration.
7615
18819fa6
UW
76162011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7617
7618 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7619 * arm-tdep.c (arm_override_mode): New global.
7620 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7621 execution mode heuristics.
7622 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7623 second single-step breakpoint if needed, using
7624 arm_insert_single_step_breakpoint.
7625 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7626 ARM execution mode, do not call thumb_get_next_pc_raw.
7627 (arm_get_next_pc): Encode execution mode in return value. Call
7628 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7629 (arm_insert_single_step_breakpoint): New function.
7630 (arm_software_single_step): Call it.
7631 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7632 argument to return execution mode of sigreturn target.
7633 (arm_linux_syscall_next_pc): Use it.
7634 (arm_linux_copy_svc): Update call.
7635 (arm_linux_software_single_step): Call
7636 arm_insert_single_step_breakpoint.
7637
a6e293d1
JK
76382011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7639
7640 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7641 the comment.
7642
a4c8e806
TT
76432011-03-31 Tom Tromey <tromey@redhat.com>
7644
7645 * varobj.c (update_dynamic_varobj_children): Properly handle
7646 errors from iterator.
7647
df5c6c50
JK
76482011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7649
7650 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7651 struct linkage name twice.
7652
1dae3efc
TT
76532011-03-31 Tom Tromey <tromey@redhat.com>
7654
7655 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7656 missing ">" to message.
7657
f4f7ab05
TT
76582011-03-31 Tom Tromey <tromey@redhat.com>
7659
7660 * varobj.c (instantiate_pretty_printer): Remove duplicate
7661 'return'.
7662
fcf250e2
UW
76632011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7664
7665 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7666 if neither saved value nor register available (e.g. signal frame).
7667
ee6436e3
TJB
76682011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7669
7670 * macroexp.c (expand): Avoid uninitialized variable
7671 compiler warning.
7672
423f41a5
TJB
76732011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7674
7675 * breakpoint.c (break_range_command): Fix typo in comment.
7676
f1310107
TJB
76772011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7678 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7679
7680 Implement support for PowerPC BookE ranged breakpoints.
7681 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7682 * breakpoint.h (struct bp_target_info) <length>: New member
7683 variable.
7684 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7685 instead of struct breakpoint as argument, and also add ASPACE
7686 and BP_ADDR arguments. Update all callers.
7687 (struct breakpoint_ops) <print_one_detail>: New method.
7688 (struct breakpoint) <addr_string_range_end>: New member variable.
7689 * breakpoint.c (breakpoint_location_address_match): Add function
7690 prototype.
7691 (insert_bp_location): Set bl->target_info.length.
7692 (breakpoint_here_p): Call breakpoint_location_address_match.
7693 (moribund_breakpoint_here_p): Likewise.
7694 (regular_breakpoint_inserted_here_p): Likewise.
7695 (breakpoint_thread_match): Likewise.
7696 (bpstat_stop_status): Likewise.
7697 (bpstat_check_location): Move call to
7698 breakpoint_ops.breakpoint_hit to the top.
7699 (print_one_breakpoint_location): Call
7700 breakpoint_ops.print_one_detail if available.
7701 (breakpoint_address_match_range): New function.
7702 (breakpoint_location_address_match): Likewise.
7703 (breakpoint_locations_match): Compare the length field of the
7704 locations too.
7705 (hw_breakpoint_used_count): Count resources used by all locations
7706 in a breakpoint, and use breakpoint_ops.resources_needed if
7707 available.
7708 (breakpoint_hit_ranged_breakpoint): New function.
7709 (resources_needed_ranged_breakpoint): Likewise.
7710 (print_it_ranged_breakpoint): Likewise.
7711 (print_one_ranged_breakpoint): Likewise.
7712 (print_one_detail_ranged_breakpoint): Likewise.
7713 (print_mention_ranged_breakpoint): Likewise.
7714 (print_recreate_ranged_breakpoint): Likewise.
7715 (ranged_breakpoint_ops): New structure.
7716 (find_breakpoint_range_end): New function.
7717 (break_range_command): Likewise.
7718 (delete_breakpoint): Free addr_string_range_end.
7719 (update_breakpoint_locations): Add SALS_END argument. Update
7720 all callers. Calculate breakpoint length if a non-zero SALS_END
7721 is given. Call breakpoint_locations_match instead of
7722 breakpoint_address_match.
7723 (reset_breakpoint): Find SaL of the end of the range if B is a
7724 ranged breakpoint.
7725 (_initialize_breakpoint): Register break-range command.
7726 * defs.h (print_core_address): Add function prototype.
7727 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7728 function.
7729 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7730 (ppc_linux_remove_hw_breakpoint): Likewise.
7731 (_initialize_ppc_linux_nat): Initialize
7732 to_ranged_break_num_registers.
7733 * target.c (update_current_target): Add comment about
7734 to_ranged_break_num_registers.
7735 (target_ranged_break_num_registers): New function.
7736 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7737 New method.
7738 (target_ranged_break_num_registers): Add function prototype.
7739 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7740 * utils.c (print_core_address): ... here.
7741
02d20e4a
UW
77422011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7743
7744 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7745 variable compiler warning.
7746
ef23e705
TJB
77472011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7748
7749 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7750 code from here ...
7751 (re_set_breakpoint): ... to here ...
7752 (addr_string_to_sals): ... and here.
7753
311e6ab3
PM
77542011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7755
7756 * Makefile.in (SFILES): Add missing C sources.
7757 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7758 Add missing headers.
7759
acd1d99c
MF
77602011-03-29 Mike Frysinger <vapier@gentoo.org>
7761
7762 * .gitignore: New file.
7763
66ee2731
MF
77642011-03-29 Mike Frysinger <vapier@gentoo.org>
7765
7766 * NEWS: Mention new cfi device simulation.
7767
53832f31
TT
77682011-03-29 Tom Tromey <tromey@redhat.com>
7769
7770 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7771 otherwise anonymous types.
7772 (dwarf2_name): Likewise.
7773 * valops.c (value_struct_elt_for_reference): Refine artificial
7774 type logic. Call error if j==-1.
7775
09b58708
JK
77762011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7777
7778 Fix false GCC warning.
7779 * infcall.c (find_function_addr): Initialize funaddr.
7780
6023c606
PM
77812011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7782
7783 Fix mingw compilation with --enable-targets=all.
7784 * remote-mips.c (gdb_usleep.h): Include header.
7785 (mips_enter_debug): Use gdb_usleep instead of sleep.
7786
0e30163f
JK
77872011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 Support resolution of STT_GNU_IFUNC via breakpoints.
7790 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7791 bp_gnu_ifunc_resolver_return.
7792 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7793 the loop. Support bp_gnu_ifunc_resolver and
7794 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7795 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7796 breakpoints.
7797 (bptype_string, print_one_breakpoint_location): Support
7798 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7799 (user_settable_breakpoint): Return true also for
7800 bp_gnu_ifunc_resolver.
7801 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7802 bp_gnu_ifunc_resolver_return.
7803 (set_breakpoint_location_function): New parameter explicit_loc,
7804 describe it. Call find_pc_partial_function_gnu_ifunc with new
7805 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7806 EXPLICIT_LOC is not set.
7807 (set_raw_breakpoint): Set EXPLICIT_LOC for
7808 set_breakpoint_location_function.
7809 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7810 set_breakpoint_location_function.
7811 (mention): Support bp_gnu_ifunc_resolver and
7812 bp_gnu_ifunc_resolver_return.
7813 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7814 set_breakpoint_location_function.
7815 (update_breakpoint_locations): Remove static.
7816 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7817 bp_gnu_ifunc_resolver_return.
7818 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7819 bp_gnu_ifunc_resolver_return.
7820 (update_breakpoint_locations): New declaration.
7821 * elfread.c: Include gdbthread.h and regcache.h.
7822 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7823 functions.
7824 (elf_gnu_ifunc_fns): Install them.
7825 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7826 (stub_gnu_ifunc_resolver_return_stop): New functions.
7827 (stub_gnu_ifunc_fns): Install them.
7828 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7829 and gnu_ifunc_resolver_return_stop.
7830 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7831
07be84bf
JK
78322011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7833
7834 STT_GNU_IFUNC reader implementation.
7835 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7836 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7837 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7838 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7839 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7840 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7841 (elf_gnu_ifunc_resolve_addr): New.
7842 (elf_symfile_read): Call elf_rel_plt_read.
7843 (elf_gnu_ifunc_fns): New.
7844 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7845 Install elf_gnu_ifunc_fns.
7846 * infcall.c (find_function_return_type): New function.
7847 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7848 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7849 (stub_gnu_ifunc_resolve_name): New functions.
7850 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7851 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7852 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7853
300f8e10
JK
78542011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7855
7856 Code cleanup for later STT_GNU_IFUNC support.
7857 * infcall.c (find_function_addr): Remove variable code, use explicit
7858 dereferences for it. Move VALUE_TYPE initialization later.
7859
11c81455
JK
78602011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7861
7862 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7863 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7864 (clear_pc_function_cache): Clear it.
7865 (find_pc_partial_function): Rename to ...
7866 (find_pc_partial_function_gnu_ifunc): ... this function. New
7867 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7868 (find_pc_partial_function): New wrapper for this function.
7869 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7870
0875794a
JK
78712011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7872
7873 GDB internal type support for STT_GNU_IFUNC.
7874 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7875 (elf_symtab_read): Set mst_text_gnu_ifunc for
7876 BSF_GNU_INDIRECT_FUNCTION.
7877 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7878 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7879 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7880 nodebug_got_plt_symbol.
7881 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7882 (TYPE_GNU_IFUNC): New.
7883 (struct main_type): New field flag_gnu_ifunc.
7884 (struct builtin_type): New field builtin_func_func.
7885 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7886 nodebug_got_plt_symbol.
7887 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7888 (in_gnu_ifunc_stub): New.
7889 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7890 mst_text_gnu_ifunc.
7891 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7892 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7893 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7894 in_gnu_ifunc_stub.
7895 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7896 * symtab.c (search_symbols): Likewise.
7897 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7898 and mst_slot_got_plt.
7899 (in_gnu_ifunc_stub): New declaration.
7900
d0fb5eae
JK
79012011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7902
7903 Support a ring of related breakpoints.
7904 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7905 other functions, add gdb_assert.
7906 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7907 watchpoint_del_at_next_stop.
7908 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7909 (bpstat_stop_status): Handle ring in related_breakpoint.
7910 (set_raw_breakpoint_without_location): Initialize ring in
7911 related_breakpoint.
7912 (delete_breakpoint): Handle ring in related_breakpoint, use
7913 watchpoint_del_at_next_stop.
7914 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7915
9cded63f
TT
79162011-03-28 Tom Tromey <tromey@redhat.com>
7917
7918 PR symtab/12441:
7919 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7920 with `language_minimal'.
7921
467d42c4
UW
79222011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7923
7924 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7925 instead of checking for STT_ARM_TFUNC symbol type.
7926
62853458
TT
79272011-03-25 Tom Tromey <tromey@redhat.com>
7928
7929 * linespec.c (symbol_found): Restore line-based result for
7930 non-LOC_LABEL symbols.
7931
a7417d46
KT
79322011-03-25 Kai Tietz <ktietz@redhat.com>
7933
7934 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7935 instead of strcmp for comparison.
7936 (tui_source_is_displayed): Likewise.
7937 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7938
55f1336d
TT
79392011-03-24 Mark Wielaard <mjw@redhat.com>
7940
f33edef8
PP
7941 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7942 complaint.
7943 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7944 (find_partial_die_in_comp_unit): Likewise in comment.
7945 (read_attribute_value): Likewise.
7946 (lookup_die_type): Likewise.
7947 (dwarf_form_name): Likewise.
7948 (dump_die_shallow): Likewise.
7949 (follow_die_ref_or_sig): Likewise.
55f1336d 7950
9ef07c8c
TT
79512011-03-24 Tom Tromey <tromey@redhat.com>
7952
7953 PR breakpoints/11816:
7954 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7955 (decode_compound): Update.
7956 (find_function_symbol): New function.
7957 (decode_dollar): Update.
7958 (decode_label): Add 'function_symbol' parameter. Handle
7959 function-relative labels.
7960 (decode_variable): Update.
7961 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7962 not its line. Set `special_display' and canonical name for
7963 labels.
7964
56435ebe
TT
79652011-03-24 Tom Tromey <tromey@redhat.com>
7966
7967 * linespec.h (struct linespec_result) <special_display>: New
7968 field.
7969 * breakpoint.h (struct breakpoint) <display_canonical>: New
7970 field.
7971 * breakpoint.c (print_breakpoint_location): Respect
7972 display_canonical.
7973 (create_breakpoint_sal): Add 'display_canonical' parameter.
7974 (create_breakpoints_sal): Update.
7975 (create_breakpoint): Update.
7976
7efd8fc2
TT
79772011-03-24 Tom Tromey <tromey@redhat.com>
7978
7979 * symtab.c (decode_line_spec): Update.
7980 * linespec.c (build_canonical_line_spec): Change type of
7981 'canonical'.
7982 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7983 (find_method, decode_all_digits, decode_dollar, decode_label)
7984 (symbol_found): Likewise.
7985 (init_linespec_result): New function.
7986 * breakpoint.c (struct captured_parse_breakpoint_args)
7987 <canonical_p>: New field, replaces addr_string_p.
7988 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7989 'addr_string'.
7990 (parse_breakpoint_sals): Likewise.
7991 (do_captured_parse_breakpoint): Update.
7992 (create_breakpoint): Use struct linespec_result.
7993 (until_break_command): Update.
7994 (breakpoint_re_set_one): Update.
7995 (decode_line_spec_1): Update.
7996 * linespec.h (struct linespec_result): New.
7997 (init_linespec_result): Declare.
7998
788c8b10
PA
79992011-03-23 Pedro Alves <pedro@codesourcery.com>
8000
8001 * regcache.c (regcache_raw_read): If the target didn't supply a
8002 given raw register, mark it as unavailable.
8003
0ba1096a
KT
80042011-03-23 Kai Tietz <ktietz@redhat.com>
8005
8006 * breakpoint.c (clear_command): Use filename_cmp
8007 instead of strcmp for comparison.
8008 * buildsym.c (watch_main_source_file_lossage): Likewise.
8009 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8010 checking just for slash.
8011 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8012 strrchr and filename_cmp instead of strcmp for filenames.
8013 (add_old_header_file): Use filename_cmp
8014 instead of strcmp for comparison.
8015 * exec.c (exec_set_section_address): Likewise.
8016 * macrotab.c (macro_lookup_inclusion): Likewise.
8017 (macro_lookup_inclusion): Likewise.
8018 * elfread.c (_initialize_elfread): Likewise.
8019 (elfstab_offset_sections): Likewise.
8020 (elfstab_offset_sections): Use lbasename instead of
8021 strrchr.
8022 * mdebugread.c (parse_partial_symbols): Likewise.
8023 (arse_partial_symbols): Use filename_(n)cmp instead of
8024 str(n)cmp for comparison.
8025 * minsyms.c (lookup_minimal_symbol): Likewise.
8026 * psymtab.c (read_psymtabs_with_filename): Likewise.
8027 * solib.c (solib_read_symbols): Likewise.
8028 (reload_shared_libraries_1): Likewise.
8029 * symmisc.c (maintenance_print_symbols): Likewise.
8030 * symfile.c (separate_debug_file_exists): Likewise.
8031 (reread_symbols): Likewise.
8032 (find_separate_debug_file_by_debuglink): Likewise.
8033 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8034 * source.c (add_path): Likewise.
8035 * symtab.c (filename_seen): Likewise.
8036 (file_matches): Likewise.
8037 (print_symbol_info): Likewise.
8038 (maybe_add_partial_symtab_filename): Likewise.
8039 (make_source_files_completion_list): Likewise.
8040 * xml-syscall.c (init_sysinfo): Likewise.
8041 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8042 IS_DIR_SEPARATOR for checking for trailing path separator.
8043
dd90784c
JK
80442011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8045
8046 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8047 label abort_expression.
8048 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8049 DWARF_VALUE_OPTIMIZED_OUT.
8050
3167638f
JK
80512011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8052
8053 Code cleanup.
8054 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8055 to linkage_name. Invert its value. Update the function comment.
8056 (c_type_print_varspec_suffix): Invert it at the caller.
8057 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8058
ce406537
PA
80592011-03-22 Pedro Alves <pedro@codesourcery.com>
8060
8061 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8062 errors when reading the `stop_pc'.
8063 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8064 get_frame_pc.
8065
da5d4055
PM
80662011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8067
8068 * NEWS: Document gdb.Write stream keyword.
8069
29e0eb9c
JK
80702011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Revert:
8073 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8074 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8075 (dwarf2_add_field): Fix new_field->accessibility for
8076 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8077
05775840
PM
80782011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8079
f33edef8 8080 PR python/12183
05775840
PM
8081
8082 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8083 other error classes. Do not print stack trace.
8084
a0cb7835
JK
80852011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8086
8087 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8088 (dwarf2_add_field): Fix new_field->accessibility for
8089 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8090
d19f7eee
UW
80912011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8092
8093 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8094 encountering a load via a non-SP register.
8095
4a2fbb50
UW
80962011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8097
8098 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8099 field in returned unwinder.
8100
3489610d
JB
81012012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8102
8103 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8104
8c1a34e7
JB
81052012-03-21 Joel Brobecker <brobecker@adacore.com>
8106
8107 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8108 of xmalloc.
8109
8fbca658
PA
81102012-03-18 Pedro Alves <pedro@codesourcery.com>
8111
8112 * frame.c (frame_unwind_register): Throw an error if unwinding the
8113 register failed.
8114 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8115 an unwind stop reason.
8116 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8117 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8118 UNWIND_UNAVAILABLE>: New.
8119 * inline-frame.c (inline_frame_unwind): Install
8120 default_frame_unwind_stop_reason.
8121 * frame-unwind.c: Include "exceptions.h".
8122 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8123 (default_frame_unwind_stop_reason): New.
8124 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8125 (default_frame_unwind_stop_reason): Declare.
8126 (struct frame_unwind) <stop_reason>: New function pointer.
8127
8128 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8129 * dwarf2-frame.c: Include exceptions.h.
8130 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8131 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8132 computing the CFA. If such an error was thrown, set
8133 unavailable_retaddr.
8134 (dwarf2_frame_unwind_stop_reason): New.
8135 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8136 unavailable.
8137 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8138 (dwarf2_signal_frame_unwind): Ditto.
8139
8140 * amd64-tdep.c: Include "exceptions.h".
8141 (struct amd64_frame_cache): New field "base_p".
8142 (amd64_init_frame_cache): Clear it.
8143 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8144 Avoid reading registers with functions that throw if the register
8145 is not necessary to compute the frame base.
8146 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8147 swallowing NOT_AVAILABLE_ERROR.
8148 (amd64_frame_unwind_stop_reason): New.
8149 (amd64_frame_this_id): Don't build a frame id if the frame base
8150 was unavailable.
8151 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8152 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8153 base_p if the frame base was computable.
8154 (amd64_sigtramp_frame_unwind_stop_reason): New.
8155 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8156 frame base was unavailable.
8157 (amd64_sigtramp_frame_unwind): Install
8158 amd64_sigtramp_frame_unwind_stop_reason.
8159 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8160 base_p if the frame base was computable.
8161 (amd64_epilogue_frame_unwind_stop_reason): New.
8162 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8163 frame base was unavailable.
8164 (amd64_epilogue_frame_unwind): Install
8165 amd64_epilogue_frame_unwind_stop_reason.
8166 * i386-tdep.c: Include "exceptions.h".
8167 (struct i386_frame_cache): New field "base_p".
8168 (i386_init_frame_cache): Clear it.
8169 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8170 Avoid reading registers with functions that throw if the register
8171 is not necessary to compute the frame base.
8172 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8173 swallowing NOT_AVAILABLE_ERROR.
8174 (i386_frame_unwind_stop_reason): New.
8175 (i386_frame_this_id): Don't build a frame id if the frame base was
8176 unavailable.
8177 (i386_frame_prev_register): Handle unavailable SP.
8178 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8179 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8180 base_p if the frame base was computable.
8181 (i386_epilogue_frame_unwind_stop_reason): New.
8182 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8183 base was unavailable.
8184 (i386_epilogue_frame_unwind): Install
8185 i386_epilogue_frame_unwind_stop_reason.
8186 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8187 base_p if the frame base was computable.
8188 (i386_sigtramp_frame_unwind_stop_reason): New.
8189 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8190 base was unavailable.
8191 (i386_sigtramp_frame_unwind): Install
8192 i386_sigtramp_frame_unwind_stop_reason.
8193 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8194 type's size, not the register's.
8195 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8196
8197 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8198 default_frame_unwind_stop_reason.
8199 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8200 (alpha_heuristic_frame_unwind): Ditto.
8201 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8202 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8203 * avr-tdep.c (avr_frame_unwind): Ditto.
8204 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8205 Ditto.
8206 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8207 * frv-tdep.c (frv_frame_unwind): Ditto.
8208 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8209 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8210 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8211 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8212 (hppa_stub_frame_unwind): Ditto.
8213 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8214 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8215 (ia64_libunwind_frame_unwind)
8216 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8217 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8218 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8219 * m32c-tdep.c (m32c_unwind): Ditto.
8220 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8221 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8222 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8223 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8224 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8225 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8226 * mep-tdep.c (mep_frame_unwind): Ditto.
8227 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8228 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8229 (mips_stub_frame_unwind): Ditto.
8230 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8231 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8232 * mt-tdep.c (mt_frame_unwind): Ditto.
8233 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8234 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8235 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8236 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8237 (s390_sigtramp_frame_unwind): Ditto.
8238 * score-tdep.c (score_prologue_unwind): Ditto.
8239 * sh-tdep.c (sh_frame_unwind): Ditto.
8240 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8241 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8242 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8243 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8244 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8245 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8246 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8247 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8248 (sparc64obsd_trapframe_unwind): Ditto.
8249 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8250 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8251 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8252 * v850-tdep.c (v850_frame_unwind): Ditto.
8253 * vax-tdep.c (vax_frame_unwind): Ditto.
8254 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8255 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8256 * xtensa-tdep.c (xtensa_unwind): Ditto.
8257
f23d1b92
PA
82582011-03-18 Pedro Alves <pedro@codesourcery.com>
8259
8260 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8261 there's always a frame. Use get_frame_pc_if_available instead of
8262 get_frame_pc, and if there's no PC available, don't look up a
8263 symtab.
8264
1d4f5741
PA
82652011-03-18 Pedro Alves <pedro@codesourcery.com>
8266
8267 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8268 unavailable PC.
8269
dba09041
PA
82702011-03-18 Pedro Alves <pedro@codesourcery.com>
8271
8272 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8273 gracefully.
8274
9a26e44c
PA
82752011-03-18 Pedro Alves <pedro@codesourcery.com>
8276
8277 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8278 * frame.c (frame_unwind_caller_pc_if_available): New.
8279 * stack.c (frame_info): Handle unavailable PC.
8280
82812011-03-18 Pedro Alves <pedro@codesourcery.com>
8282
8283 * frame.c (frame_unwind_pc): Rename to ...
8284 (frame_unwind_pc_if_available): ... this. New `pc' output
8285 parameter. Change return type to int. Gracefully handle
8286 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8287 happened, or 1 otherwise.
8288 (frame_unwind_pc): Reimplement on top of
8289 frame_unwind_pc_if_available.
8290 (get_frame_func): Rename to ...
8291 (get_frame_func_if_available): New `pc' output parameter. Change
8292 return type to int. Gracefully handle the PC not being available.
8293 (get_frame_func): Reimplement on top of
8294 get_frame_func_if_available.
8295 (select_frame): Handle the PC being unavailable.
8296 (get_prev_frame): Handle the PC being unavailable.
8297 (get_frame_pc_if_available): New.
8298 (get_frame_address_in_block_if_available): New.
8299 (find_frame_sal): Handle the frame PC not being available.
8300 * frame.h (get_frame_pc_if_available): Declare.
8301 (get_frame_address_in_block_if_available): Declare.
8302 (get_frame_func_if_available): Declare.
8303 * stack.c (print_frame_info): Handle the PC being unavailable.
8304 (find_frame_funname): Ditto.
8305 (print_frame): Handle the PC being unavailable.
8306 (get_frame_language): Ditto.
8307 * blockframe.c (get_frame_block): Ditto.
8308 * macroscope.c (default_macro_scope): Ditto.
8309 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8310
83112011-03-18 Pedro Alves <pedro@codesourcery.com>
8312
8313 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8314 NOT_AVAILABLE_ERROR when evaluating the location expression.
8315
83162011-03-18 Pedro Alves <pedro@codesourcery.com>
8317
8318 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8319 returning that the register piece is unavailable/optimized out.
8320 (write_pieced_value): Handle get_frame_register_bytes returning
8321 that the register piece is unavailable/optimized out when doing a
8322 read-modify write of a bitfield.
8323 * findvar.c (value_from_register): Handle get_frame_register_bytes
8324 returning that the register piece is unavailable/optimized out.
8325 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8326 and `unavailablep'. Throw error on bad debug info. Use
8327 frame_register instead of frame_register_read, to fill in the new
8328 arguments.
8329 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8330 and `unavailablep'.
8331 * valops.c: (value_assign): Adjust, and handle
8332 get_frame_register_bytes failing.
8333 * spu-tdep.c: Include exceptions.h.
8334 (spu_software_single_step): Adjust, and handle
8335 get_frame_register_bytes failing.
8336 (spu_get_longjmp_target): Ditto.
8337 * gdbarch.sh (register_to_value): Change to return int. New
8338 parameters `optimizedp' and `unavailablep'.
8339 * gdbarch.h, gdbarch.c: Regenerate.
8340 * i386-tdep.c (i386_register_to_value): Adjust to new
8341 gdbarch_register_to_value interface.
8342 * i387-tdep.c (i387_register_to_value): Ditto.
8343 * i387-tdep.h (i387_register_to_value): Ditto.
8344 * alpha-tdep.c (alpha_register_to_value): Ditto.
8345 * ia64-tdep.c (ia64_register_to_value): Ditto.
8346 * m68k-tdep.c (m68k_register_to_value): Ditto.
8347 * mips-tdep.c (mips_register_to_value): Ditto.
8348 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8349
0fdb4f18
PA
83502011-03-18 Pedro Alves <pedro@codesourcery.com>
8351
8352 * findvar.c (value_of_register): Mark the value as unavailable, if
8353 the register is unavailable.
8354 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8355 (frame_register): New `unavailablep' parameter.
8356 (frame_register_read): Update comment.
8357 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8358 Set it if the register is unavailable. If the register is
8359 unavailable, clear the output buffer.
8360 (frame_register): New `unavailablep' parameter. Pass it down.
8361 (frame_unwind_register): Adjust.
8362 (put_frame_register): Adjust.
8363 (frame_register_read): Adjust. Also return false if the register
8364 is not available.
8365 (frame_register_unwind_location): Adjust.
8366 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8367 is unavailable, mark the value accordingly.
8368 * stack.c (frame_info): Handle unavailable registers.
8369
e69aa73e
PA
83702011-03-18 Pedro Alves <pedro@codesourcery.com>
8371
8372 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8373 simplify, using regcache_cooked_read.
8374
05d1431c
PA
83752011-03-18 Pedro Alves <pedro@codesourcery.com>
8376
8377 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8378 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8379 (regcache_raw_read_unsigned, regcache_raw_read_part)
8380 (regcache_cooked_read, regcache_cooked_read_signed)
8381 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8382 (regcache_cooked_read_ftype): Change return to enum
8383 register_status.
8384 * regcache.c: Include exceptions.h
8385 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8386 (do_cooked_read): Change return to enum register_status. Always
8387 forward to regcache_cooked_read.
8388 (regcache_raw_read): Change return to enum register_status. If
8389 the register is not REG_VALID, memset the buffer. Return the
8390 register's status.
8391 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8392 return the register's status.
8393 (regcache_raw_read_unsigned): Ditto.
8394 (regcache_cooked_read): Change return to enum register_status.
8395 Assert that with read-only regcaches, the register's status must
8396 be known. If the regcache is read-only, and the register is not
8397 REG_VALID, memset the buffer. Return the register's status.
8398 (regcache_cooked_read_signed): Change return to enum
8399 register_status. Handle non-REG_VALID registers and return the
8400 register's status.
8401 (regcache_cooked_read_unsigned): Change return to enum
8402 register_status. Handle non-REG_VALID registers and return the
8403 register's status.
8404 (regcache_xfer_part, regcache_raw_read_part)
8405 (regcache_cooked_read_part): Change return to enum
8406 register_status. Return the register's status.
8407 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8408 unavailable.
8409 (regcache_dump): Handle unavailable cooked registers.
8410 * frame.c (do_frame_register_read): Adjust interface to match
8411 regcache_cooked_read_ftype.
8412 * gdbarch.sh (pseudo_register_read): Change return to enum
8413 register_status.
8414 * gdbarch.h, gdbarch.c: Regenerate.
8415
8416 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8417 register_status.
8418 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8419 register_status. If reading a raw register indicates the raw
8420 register is not valid, return the raw register's status,
8421 otherwise, return REG_VALID.
8422 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8423 register_status. Handle non-REG_VALID raw registers and return
8424 the register's status.
8425 * arm-tdep.c (arm_neon_quad_read)
8426 (arm_pseudo_read): Change return to enum register_status. Handle
8427 non-REG_VALID raw registers and return the register's status.
8428 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8429 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8430 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8431 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8432 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8433 register_status.
8434 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8435 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8436 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8437 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8438 (m32c_pseudo_register_read): Change return to enum
8439 register_status. Adjust.
8440 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8441 enum register_status. Return the register's status.
8442 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8443 register_status. Return the register's status.
8444 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8445 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8446 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8447 * rs6000-tdep.c (move_ev_register_func): New typedef.
8448 (e500_move_ev_register): Use it. Change return to enum
8449 register_status. Return the register's status.
8450 (do_regcache_raw_read): New function.
8451 (do_regcache_raw_write): New function.
8452 (e500_pseudo_register_read): Change return to enum
8453 register_status. Return the register's status. Use
8454 do_regcache_raw_read.
8455 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8456 (dfp_pseudo_register_read): Change return to enum register_status.
8457 Return the register's status.
8458 (vsx_pseudo_register_read): Ditto.
8459 (efpr_pseudo_register_read): Ditto.
8460 (rs6000_pseudo_register_read): Ditto.
8461 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8462 register_status. Return the register's status.
8463 * sh64-tdep.c (pseudo_register_read_portions): New function.
8464 (sh64_pseudo_register_read): Change return to enum
8465 register_status. Use pseudo_register_read_portions. Return the
8466 register's status.
8467 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8468 register_status. Return the register's status.
8469 * sh-tdep.c (pseudo_register_read_portions): New function.
8470 (sh_pseudo_register_read): Change return to enum register_status.
8471 Use pseudo_register_read_portions. Return the register's status.
8472 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8473 enum register_status. Return the register's status.
8474 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8475 * spu-tdep.c (spu_pseudo_register_read_spu)
8476 (spu_pseudo_register_read): Ditto.
8477 * xtensa-tdep.c (xtensa_register_read_masked)
8478 (xtensa_pseudo_register_read): Ditto.
8479 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8480
e10abd8f
PM
84812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8482
8483 * python/py-value.c (valpy_getitem): Fix formatting of error function
8484 call.
8485
7ea6d463
PM
84862011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8487
8488 ARI fixes: Add missing internationalization markups throughout
8489 C source files.
8490 * darwin-nat-info.c: Ditto.
8491 * record.c: Ditto.
8492 * remote.c: Ditto.
8493 * mi/mi-main.c: Ditto.
8494
001083c6
PM
84952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8496
8497 ARI fixes: Add missing internationalization markups throughout
8498 yacc files.
8499 * c-exp.y: Ditto.
8500 * cp-name-parser.y: Ditto.
8501 * f-exp.y: Ditto.
8502 * m2-exp.y: Ditto.
8503 * objc-exp.y: Ditto.
8504 * p-exp.y: Ditto.
8505
4f1cdeec
PM
85062011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8507
8508 ARI fixes: Messages should have no trailing new lines.
8509 * darwin-nat.c (mach_check_error): Remove trailing new line from
8510 warning function call message.
8511 * record.c (bfdcore_read): Idem for error call.
8512
28e698f1
PM
85132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8514
8515 * common/signals.c (target_signal_from_host): Add _ markup to error
8516 function call message.
8517 (target_signal_to_host): Add _ markup and remove trailing new line
8518 from warning call message.
8519 (target_signal_from_command): Add _ markup to error function call
8520 message.
8521
99c3dc11
PM
85222011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8523
f33edef8 8524 PR python/12149
99c3dc11
PM
8525
8526 * python/python.c (gdbpy_write): Accept a stream argument and
8527 operate to the appropriate stream.
8528 (gdbpy_flush): Likewise.
8529 (_initialize_python): Add stream constants.
8530 (finish_python_initialization): Add GdbOutputErrorFile class.
8531
c20800be
KY
85322011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8533
8534 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8535
f4a1794a
KY
85362011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8537
8538 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8539 to store_signed_integer. Add debug message when relocating CALL
8540 instructions. Fix formatting of debug message.
8541 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8542
d4862372
JB
85432011-03-17 Joel Brobecker <brobecker@gnat.com>
8544
8545 * target.h (struct target_ops): Remove to_lookup_symbol field.
8546 (target_lookup_symbol): Delete macro.
8547 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8548 (update_current_target, setup_target_debug): Remove handling
8549 of to_lookup_symbol target_ops field.
8550 * ada-tasks.c (get_known_tasks_addr): Remove use of
8551 target_lookup_symbol.
8552 * coffread.c (coff_symtab_read): Likewise.
8553 * dbxread.c (read_dbx_symtab): Ditto.
8554
d645e32e
JB
85552011-03-17 Joel Brobecker <brobecker@gnat.com>
8556
8557 PR gdb/12116:
8558 * configure.ac: Add getthrds declaration check.
8559 * configure, config.in: Regenerate.
8560 * aix-thread.c (getthrds): Declare only if not already declared
8561 in procinfo.h. More declaration out of get_signaled_thread to
8562 global scope.
8563
29703da4
PM
85642011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8565
8566 * python/py-symtab.c: Populate symtab_object_methods,
8567 sal_object_methods.
8568 (stpy_is_valid): New function.
8569 (salpy_is_valid): Ditto.
8570 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8571 (sympy_is_valid): New function.
8572 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8573 (objfpy_is_valid): New function.
8574 * python/py-inferior.c: Populate inferior_object_methods.
8575 (infpy_is_valid): New function.
8576 * python/py-infthread.c: Populate thread_object_methods.
8577 (thpy_is_valid): New function.
8578 * python/py-block.c: Declare block_object_methods. Populate. Declare
8579 block_iterator_object_methods. Populate.
8580 (blpy_is_valid): New function.
8581 (blpy_iter_is_valid): Ditto.
8582
c00f8484
KS
85832011-03-16 Keith Seitz <keiths@redhat.com>
8584
8585 * linespec.c (find_methods): Canonicalize NAME before looking
8586 up the symbol.
8587 (name_end): New function.
8588 (keep_name_info): New function.
8589 (decode_line_1): Use keep_name_info.
8590 (decode_compound): Likewise.
8591 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8592 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8593
8594 PR c++/12273
8595 * linespec.c (locate_first_half): Keep overload information, too.
8596 (decode_compound): Use a string to represent break characters
8597 to escape the loop.
8598 If P points to a break character, do not increment it.
8599 For C++ and Java, keep overload information and relevant keywords.
8600 If we cannot find a symbol, search the minimal symbols.
8601
8602 PR c++/11734
8603 * linespec.c (decode_compound): Rename SAVED_ARG to
8604 THE_REAL_SAVED_ARG.
8605 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8606 single-quotes.
8607 Pass a valid block to lookup_symbol.
8608 (lookup_prefix_sym): Likewise.
8609 (find_method): Construct search name based on SYM_CLASS instead
8610 of SAVED_ARG.
8611 * psymtab.c (lookup_partial_symbol): Add language parameter.
8612 (lookup_symbol_aux_psymtabs): Likewise.
8613 Don't assume that the psymtab we found was the right one. Search
8614 for the desired symbol in the symtab to be certain.
8615 (psymtab_search_name): New function.
8616 (lookup_partial_symbol): Use psymtab_search_name.
8617 Add language parameter.
8618 (read_symtabs_for_function): Add language parameter and pass to
8619 lookup_partial_symbol.
8620 (find_symbol_file_from_partial): Likewise.
8621
c91513d8
PP
86222011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8623
8624 PR gdb/12528
8625 * dwarf2read.c (noop_record_line): New function.
8626 (dwarf_decode_lines): Ignore line tables for GCd functions.
8627
b37520b6
PM
86282011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8629
8630 Fix ARI warnings about new lines at the end of messages, which
8631 are unneeded as there is a new line added at the end of the message
8632 automatically.
8633 * darwin-nat.c (darwin_stop_inferior): Ditto.
8634 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8635 * dfp.c (decimal_to_number): Ditto.
8636 * exec.c (print_section_info): Ditto.
8637 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8638 * osdata.c (get_osdata): Ditto.
8639 * record.c (bfdcore_write): Ditto.
8640 * remote-mips.c (mips_readchar): Ditto.
8641 * remote.c (read_ptid): Ditto.
8642 * ser-mingw.c (ser_windows_raw): Ditto.
8643 * tracepoint.c (add_local_symbols): Ditto.
8644 * windows-nat.c (fake_create_process): Ditto.
8645
b08ee6a2
TT
86462011-03-16 Tom Tromey <tromey@redhat.com>
8647
8648 * tracepoint.c (stop_tracing): Don't declare.
8649 * event-top.c (after_char_processing_hook): Add `(void)'.
8650
9a6f1302
PM
86512011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8652
8653 * NEWS: Add Parameter sub-classing description.
8654
7ceb86b1
KT
86552011-03-16 Kai Tietz <ktietz@redhat.com>
8656
8657 * MAINTAINERS: Update my e-mail address.
8658
efeff6cf
AT
86592011-03-15 Andreas Tobler <andreast@fgznet.ch>
8660
8661 * MAINTAINERS: Add myself for write after approval privileges.
8662
681c238c
MS
86632011-03-15 Michael Snyder <msnyder@vmware.com>
8664
f3df5b08
MS
8665 * frame.c (find_frame_sal): Assert sym is not null.
8666
13f6513c
MS
8667 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8668
50412521
MS
8669 * objc-lang.c (selectors_info): Check strchr for null result.
8670
681c238c
MS
8671 * stabsread.c (define_symbol): Guard against bad stabstring input.
8672
6ced1581
PM
86732011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8674
8675 Remove trailing spaces and tabulations from pascal language
8676 support sources.
8677 p-exp.y: Ditto.
8678 p-lang.c: Ditto.
8679 p-lang.h: Ditto.
8680 p-valprint.c: Ditto.
8681
9373cf26
JK
86822011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8683
8684 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8685 than LOW. Comment it.
8686 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8687 HIGHPC not strictly higher than LOWPC.
8688
9a1edae6
PM
86892011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8690
8691 Fix formatting of function declarations returning a pointer in
8692 previous commit.
8693 * varobj.c (varobj_add_child): Ditto.
8694 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8695 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8696
24e9cda0
UW
86972011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8698
8699 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8700 for the "generic" vector ABI used with GCC 4.3 and later.
8701 (ppc64_sysv_abi_return_value): Likewise.
8702
87032011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8704
8705 * infcall.c (call_function_by_hand): Function return value is
8706 always a non_lval, even when using struct_return.
8707
c9174737
PA
87082011-03-15 Pedro Alves <pedro@codesourcery.com>
8709
8710 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8711 (map_display_numbers): New.
8712 (do_delete_display): New.
8713 (undisplay_command): Use map_display_numbers.
8714 (do_enable_disable_display): New.
8715 (enable_disable_display_command): New function.
8716 (enable_display): Delete.
8717 (enable_display_command): New.
8718 (disable_display_command): Reimplement.
8719 (_initialize_printcmd): Adjust "enable display" command to use
8720 `enable_display_command' as callback.
8721
350c6c65
PM
87222011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8723
8724 * NEWS: Add Python breakpoint 'stop' operation.
8725
824446ad
PM
87262011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8727
8728 * NEWS: Delete duplicate entry. Fix typo.
8729
2021ad3a
PM
87302011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8731
8732 Fix ARI warning about function names in first column.
8733 Put prototype declaration on same line as return type.
8734 * objc-exp.y: Ditto.
8735 * p-exp.y: Ditto.
8736 * python/py-stopevent.h: Ditto.
8737 For long function names, split parameters to
8738 allow function name on same line as return type.
8739 * solib-pa64.c: Ditto.
8740 * varobj.c: Ditto.
8741 * varobj.h: Ditto.
8742 For long function declaration, use single line.
8743 * hppa-tdep.h: Ditto.
8744 * inferior.h: Ditto.
8745
7371cf6d
PM
87462011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8747
8748 * python/python.h: Declare gdbpy_should_stop and
8749 gdbpy_breakpoint_has_py_cond.
8750 * python/python.c: Add python.h to includes. Remove python.h from
8751 HAVE_PYTHON definition
8752 (gdbpy_should_stop): New dummy function.
8753 (gdbpy_breakpoint_has_py_cond): New dummy function.
8754 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8755 sub-classing capabilities.
8756 (gdbpy_should_stop): New function.
8757 (gdbpy_breakpoint_has_py_cond): New function.
8758 (local_setattro): New function.
8759 * breakpoint.c (condition_command): Add check for Python 'stop'
8760 operation.
8761 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8762 operation function as part of stop/continue tests.
8763
37b50a69
TT
87642011-03-14 Tom Tromey <tromey@redhat.com>
8765
8766 PR gdb/12576:
8767 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8768 (needs_frame_dwarf_call): Likewise.
8769
eeae04df
PM
87702011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8771
8772 Fix ARI warning about functions without parameters that do not
8773 use (void).
8774 * breakpoint.c (all_tracepoints): Replace () by (void).
8775 * f-exp.y (match_string_literal): Ditto.
8776 (yylex): Ditto.
8777 * m2-exp.y (yylex): Ditto.
8778 * mep-tdep.c (current_me_module): Ditto.
8779 (current_options): Ditto.
8780 (current_cop_data_bus_width): Ditto.
8781 (current_cr_names): Ditto.
8782 (current_cr_is_float): Ditto.
8783 (current_ccr_names): Ditto.
8784 * objc-exp.y (yylex): Ditto.
8785 * p-exp.y (yylex): Ditto.
8786 * remote.c (send_interrupt_sequence): Ditto.
8787 * tracepoint.c (current_trace_status): Ditto.
8788 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8789 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8790
6dc3565d
MS
87912011-03-11 Michael Snyder <msnyder@vmware.com>
8792
1427fe5e
MS
8793 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8794 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8795 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8796 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8797 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8798
60bc018f
MS
8799 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8800 (delete_async_event_handler): Ditto.
8801
f3be5b64
MS
8802 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8803
4c2d5724
MS
8804 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8805
6dc3565d
MS
8806 * top.c (set_verbose): Assert showcmd was found.
8807
4e6ca6d5
MG
88082011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8809
8810 * xtensa-tdep.c (warning_once): Correct style issues.
8811
815a83e4
YQ
88122011-03-11 Yao Qi <yao@codesourcery.com>
8813
8814 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8815
f2eb0bc8
AS
88162011-03-11 Andreas Schwab <schwab@redhat.com>
8817
8818 * common/aclocal.m4: Remove.
8819
b801de47
MG
88202011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8821
8822 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8823 (xtensa_write_register, xtensa_read_register): Likewise.
8824 (xtensa_hextochar): Removed.
8825 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8826
dbab50de
MG
88272011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8828
8829 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8830 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8831 (xtensa_alloc_frame_cache): Add initialization for new fields.
8832 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8833 (warning_once): New function.
8834 (xtensa_insn_kind): New item c0opc_and.
8835 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8836 (call0_track_op): Change arguments. New local variable litbase.
8837 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8838 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8839 in the prologue.
dbab50de 8840 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8841 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8842 Add the variety of updates to handle extended prologues, which now can
8843 conduct dynamic stack adjustments.
8844 (call0_frame_cache): Likewise.
8845 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8846 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8847
b2c04452
MS
88482011-03-10 Michael Snyder <msnyder@vmware.com>
8849
f8f67713
MS
8850 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8851 (cmd_qtframe): Ditto.
8852 (cmd_qtbuffer): Ditto.
8853 (cmd_bigqtbuffer): Ditto.
8854
197f0a60
TT
88552011-03-10 Tom Tromey <tromey@redhat.com>
8856
8857 * tracepoint.c (trace_actions_command): Update.
8858 * thread.c (thread_apply_command): Update.
8859 * reverse.c (delete_bookmark_command): Update.
8860 (bookmarks_info): Update.
8861 * printcmd.c (undisplay_command): Update.
8862 * memattr.c (mem_enable_command): Update.
8863 (mem_disable_command): Update.
8864 (mem_delete_command): Update.
8865 * inferior.c (detach_inferior_command): Update.
8866 (kill_inferior_command): Update.
8867 (remove_inferior_command): Update.
8868 * cli/cli-utils.h (struct get_number_or_range_state): New.
8869 (init_number_or_range): Declare.
8870 (get_number_or_range): Update.
8871 * cli/cli-utils.c (init_number_or_range): New function.
8872 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8873 static variables.
8874 (number_is_in_list): Update.
8875 * breakpoint.h (get_tracepoint_by_number): Update.
8876 * breakpoint.c (map_breakpoint_numbers): Update for change to
8877 get_number_or_range.
8878 (find_location_by_number): Use get_number, not
8879 get_number_or_range.
8880 (trace_pass_set_count): New function.
8881 (trace_pass_command): Update for change to get_number_or_range.
8882 Rework loop logic.
8883 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8884 'state' parameter.
8885
ecec24e6
PM
88862011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8887
8888 * python/py-param.c (add_setshow_generic): Add set/show callback
8889 parameters. Register Python object context.
8890 (get_show_value): New function.
8891 (get_set_value): New function.
8892 (call_doc_function): New function.
8893 (get_doc_string): Move behind get_show_value/get_set_value.
8894
6d6c6b1f
JK
88952011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8896
8897 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8898
68d6df83
MG
88992011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8900
dbab50de 8901 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8902 (xtensa_write_register): Likewise.
8903 (xtensa_hextochar): Add comment and update to match coding conventions.
8904 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8905 (execute_l32e, execute_s32e, execute_code): Update comments.
8906 (xtensa_exception_handler_t): Update to match coding conventions.
8907 (xtensa_insn_kind): Likewise.
8908
85c9d6a6
MS
89092011-03-09 Michael Snyder <msnyder@vmware.com>
8910
8911 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8912
91495617
PA
89132011-03-09 Pedro Alves <pedro@codesourcery.com>
8914
8915 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8916
eb8c0621
TT
89172011-03-09 Tom Tromey <tromey@redhat.com>
8918
8919 * thread.c (restore_selected_frame): Handle frame_level == -1.
8920 (make_cleanup_restore_current_thread): Use
8921 get_selected_frame_if_set.
8922 * frame.h (get_selected_frame_if_set): Declare.
8923 * frame.c (get_selected_frame_if_set): New function.
8924
9f37bbcc
PA
89252011-03-09 Pedro Alves <pedro@codesourcery.com>
8926
8927 * cli/cli-cmds.c (shell_escape): Use lbasename.
8928 * coffread.c (coff_start_symtab): Constify parameter.
8929 (complete_symtab): Constify `name' parameter.
8930 (coff_symtab_read): Constify `filestring' local.
8931 (coff_getfilename): Constify return and `result' local.
8932 Use lbasename.
8933 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8934 * linux-fork.c (info_checkpoints_command): Use lbasename.
8935 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8936 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8937 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8938 * procfs.c (procfs_make_note_section): Use lbasename.
8939 * tui/tui-io.c (printable_part): Constity return and parameter.
8940 Use lbasename.
8941 (print_filename): Constify parameters, and local `s'.
8942 (tui_rl_display_match_list): Constify local `temp'.
8943
f8de3c55
JK
89442011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8945
8946 Revert:
8947 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8948 Fix DWARF-3+ DW_AT_accessibility default assumption.
8949 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8950 cu->header.version >= 3.
8951
d9837b00
YQ
89522011-03-09 Yao Qi <yao@codesourcery.com>
8953
8954 * common/Makefile.in: Remove.
8955 * common/configure: Remove.
8956 * common/configure.ac: Remove.
8957
e637a4f5
YQ
89582011-03-09 Yao Qi <yao@codesourcery.com>
8959
8960 Revert:
8961 2011-02-11 Yao Qi <yao@codesourcery.com>
8962
8963 * common/Makefile.in: Add copyright header.
8964
8965 2011-02-11 Yao Qi <yao@codesourcery.com>
8966
8967 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8968 libcommon.a.
8969 * configure.ac: Add common to sub dir.
8970 * configure: Regenerate.
8971
f976a05d
MG
89722011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8973
8974 * xtensa-tdep.c (call0_ret): New function.
8975 (xtensa_skip_prologue): Speed up analysis.
8976
57041825
MG
89772011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8978
8979 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8980 while executing MI command -data-list-changed-registers.
8981
08b9c608
MG
89822011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8983
8984 * xtensa-tdep.c (xtensa_read_register): New function.
8985 (xtensa_write_register): New function.
8986 (xtensa_find_register_by_name): New function.
8987 (xtensa_windowed_frame_cache): Update comments in type description.
8988 (xtensa_frame_cache): Likewise.
8989 (xtensa_window_interrupt_insn): New function.
8990 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8991 (xtensa_insn_kind): Add new instructions.
8992 (rwx_special_register): New function.
8993 (call0_classify_opcode): Add new instructions to the analysis.
8994 (a0_saved, a7_saved, a11_saved): New variables.
8995 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8996 (execute_l32e): New function.
8997 (execute_s32e): New function.
8998 (xtensa_exception_handler_t): New type.
8999 (execute_code): New function.
9000 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9001 analysis for Xtensa Window Exception handlers.
9002
4d1acb11
MG
90032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9004
98689b25
MG
9005 * xtensa-tdep.c (TX_PS): New.
9006 (windowing_enabled): Update to count for Call0 ABI.
9007 (xtensa_hextochar): New.
9008 (xtensa_init_reggroups): Make algorithm generic.
9009 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9010
90112011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9012
9013 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9014
d3f323f3
MS
90152011-03-08 Michael Snyder <msnyder@vmware.com>
9016
3dcabaa8
MS
9017 * i386-tdep.c (i386_follow_jump): Check return value of
9018 target_read_memory.
9019 (i386_analyze_struct_return): Ditto.
9020 (i386_skip_probe): Ditto.
9021 (i386_match_insn): Ditto.
9022 (i386_skip_noop): Ditto.
9023 (i386_analyze_frame_setup): Ditto.
9024 (i386_analyze_register_saves): Ditto.
9025 (i386_skip_prologue): Ditto.
9026 (i386_skip_main_prologue): Ditto.
9027
13b3fd9b
MS
9028 * target.c (read_whatever_is_readable): Fix memory leak.
9029
d3f323f3
MS
9030 * i386-tdep.c (i386_process_record): Document fall through.
9031
421d5c74
JK
90322011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9033
9034 Fix DWARF-3+ DW_AT_accessibility default assumption.
9035 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9036 cu->header.version >= 3.
9037
63154eca
PA
90382011-03-08 Pedro Alves <pedro@codesourcery.com>
9039
9040 * remote.c (remote_check_symbols): Skip if the target has no
9041 execution.
9042
f1a507a1
JB
90432011-03-08 Joel Brobecker <brobecker@adacore.com>
9044
9045 * target.c (read_whatever_is_readable): Reformat comment,
9046 with a minor typo fix. Minor reformatting of the code.
9047
36073a92
YQ
90482011-03-08 Yao Qi <yao@codesourcery.com>
9049
9050 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9051 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9052 Use cached result instead of calling displaced_in_arm_mode again.
9053 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9054 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9055 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9056 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9057 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9058 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9059 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9060 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9061 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9062 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9063 (arm_catch_kernel_helper_return): Likewise.
9064 * gdb/arm-tdep.h : Update function declarations.
9065
d3f323f3 90662011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9067
e0e40094
MS
9068 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9069
0b2381f5
MS
9070 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9071
0350914a
MS
9072 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9073
69feea6f
MS
9074 * elfread.c (elf_symtab_read): Stop memory leak.
9075
e6040cbd
MS
9076 * main.c (captured_main): Fix memory leak.
9077
052874e8
AS
90782011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9079
9080 * ada-lang.c (compare_names): Call is_name_suffix with string1
9081 instead of string2.
9082
b11896a5
TT
90832011-03-07 Tom Tromey <tromey@redhat.com>
9084
9085 * xcoffread.c (xcoff_sym_fns): Update.
9086 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9087 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9088 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9089 (symbol_file_add_with_addrs_or_offsets): Likewise.
9090 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9091 * somread.c (som_sym_fns): Update.
9092 * psymtab.h (require_partial_symbols): Declare.
9093 * psymtab.c (require_partial_symbols): New function.
9094 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9095 (ALL_OBJFILE_PSYMTABS): Undef.
9096 (ALL_PSYMTABS): Move from psympriv.h.
9097 (lookup_partial_symtab, find_pc_sect_psymtab)
9098 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9099 (find_last_source_symtab_from_partial)
9100 (forget_cached_source_info_partial)
9101 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9102 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9103 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9104 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9105 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9106 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9107 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9108 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9109 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9110 psymtabs.
9111 * mipsread.c (ecoff_sym_fns): Update.
9112 * machoread.c (macho_sym_fns): Update.
9113 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9114 (read_psyms): New function.
9115 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9116 (elf_sym_fns_lazy_psyms): New global.
9117 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9118 dwarf2_build_psymtabs.
9119 * dbxread.c (aout_sym_fns): Update.
9120 * coffread.c (coff_sym_fns): Update.
9121
fda326dd
TT
91222011-03-07 Tom Tromey <tromey@redhat.com>
9123
9124 * infrun.c (print_exited_reason): Include inferior id and pid in
9125 message.
9126
aeaec162
TT
91272011-03-07 Tom Tromey <tromey@redhat.com>
9128
9129 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9130 parameter.
9131 (target_has_execution_1): Update.
9132 (target_has_execution_current): Declare.
9133 (target_has_execution): Call target_has_execution_current.
9134 (default_child_has_execution): Update.
9135 * target.c (default_child_has_execution): Add 'the_ptid'
9136 parameter.
9137 (target_has_execution_1): Likewise.
9138 (target_has_execution_current): New function.
9139 (add_target): Update.
9140 (init_dummy_target): Update.
9141 * remote-m32r-sdi.c (m32r_has_execution): New function.
9142 (init_m32r_ops): Use it.
9143 * record.c (record_core_has_execution): Now static. Add
9144 'the_ptid' parameter.
9145 * inferior.c (have_live_inferiors): Don't save current thread.
9146 Use target_has_execution_1.
9147
08e14083
YQ
91482011-03-07 Yao Qi <yao@codesourcery.com>
9149
9150 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9151
c05d19c5
JB
91522011-03-07 Joel Brobecker <brobecker@adacore.com>
9153
9154 * elfread.c (elf_symtab_read): Minor reformatting.
9155
3e6ef9e4
JB
91562011-03-07 Joel Brobecker <brobecker@adacore.com>
9157
9158 * objc-lang.c (selectors_info): Minor reformatting.
9159
dbb8534f
JB
91602011-03-07 Joel Brobecker <brobecker@adacore.com>
9161
9162 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9163
dd70cc93
JB
91642011-03-07 Joel Brobecker <brobecker@adacore.com>
9165 Michael Snyder <msnyder@vmware.com>
9166
9167 * ada-valprint.c (ada_val_print_array): Move the declaration of
9168 "byte_order" and "elttype" inside the block where these variables
9169 are actually used. Remove some special handling for the case
9170 where "elttype" and "eltlen" are null. Replace by a comment
9171 and a couple of assertion checks.
9172
b27cf2b3
MS
91732011-03-05 Michael Snyder <msnyder@vmware.com>
9174
9175 * source.c (add_path): Replace semicolon at end of block.
9176 * dwarf2expr.c (execute_stack_op): Ditto.
9177
5387a0c6
MF
91782011-03-05 Mike Frysinger <vapier@gentoo.org>
9179
9180 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9181 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9182 (bfin-*-*): Likewise.
9183
e3aa49af
MS
91842011-03-05 Michael Snyder <msnyder@vmware.com>
9185
82ae4854
MS
9186 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9187 * mdebugread.c (parse_symbol): Ditto.
9188 * parse.c (parse_exp_in_context): Ditto.
9189 * source.c (add_path): Ditto.
9190 * utils.c (gnu_debuglink_crc32): Ditto.
9191 * varobj.c (variable_language): Ditto.
9192
e3aa49af
MS
9193 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9194
154f592e
MS
91952011-03-04 Michael Snyder <msnyder@vmware.com>
9196
da3ecdc6
MS
9197 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9198
9cc89665
MS
9199 * symfile.c (simple_overlay_update): Check for null return value
9200 from lookup_minimal_symbol.
9201
154f592e
MS
9202 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9203
63ffa6ee
TJB
92042011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9205
9206 * eval.c (parse_and_eval_address_1): Remove function.
9207 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9208 instead of parse_and_eval_address_1.
9209 * value.h (parse_and_eval_address_1): Remove prototype.
9210
a17d146e
MS
92112011-03-04 Michael Snyder <msnyder@vmware.com>
9212
9213 * remote.c (putpkt_binary): Document that case stmt falls through.
9214
1a6a67de
TJB
92152011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9216
9217 * breakpointc (print_it_typical): Move NULL check from here...
9218 (print_bp_stop_message): ... to here.
9219
488919c4
MS
92202011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9221
9222 * breakpoint.c (enable_command): Use break instead of continue,
9223 and fill in a missing break.
9224 (disable_command): Ditto.
9225
1e182ce8
UW
92262011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9227
9228 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9229 (terminal_save_ours): Remove misleading comment.
9230 (inflow_inferior_data_cleanup): Free ttystate.
9231 (inflow_inferior_exit): Likewise.
9232 (copy_terminal_info): Copy ttystate.
9233
9234 * serial.c (serial_copy_tty_state): New function.
9235 * serial.h (serial_copy_tty_state): Add prototype.
9236 (struct serial_ops): Add copy_tty_state callback.
9237 * ser-base.c (ser_base_copy_tty_state): New function.
9238 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9239 * ser-go32.c (dos_copy_tty_state): New function.
9240 (dos_ops): Install copy_tty_state callback.
9241 * ser-mingw.c (_initialize_ser_windows): Likewise.
9242 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9243 * ser-unix.c (hardwire_copy_tty_state): New function.
9244 (_initialize_ser_hardwire): Install it.
9245
b2c5f112
MS
92462011-03-04 Michael Snyder <msnyder@vmware.com>
9247
2abae994
MS
9248 * breakpoint.c (create_breakpoint): Add missing break statement.
9249
7f5936f9
MS
9250 Reverting this patch:
9251 * infcall.c (call_function_by_hand): Add break statements for lint.
9252
b2c5f112
MS
9253 Reverting this patch:
9254 * cli/cli-script.c (script_from_file): Add break for lint.
9255
42b1321c
MS
92562011-03-04 Michael Snyder <msnyder@vmware.com>
9257
9258 * solib.c (reload_shared_libraries_1): Close memory leak.
9259
3e2a0cee
TT
92602011-03-03 Tom Tromey <tromey@redhat.com>
9261
9262 PR gdb/12538:
9263 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9264 DW_STRING is NULL.
9265
58397cb7
MS
92662011-03-03 Michael Snyder <msnyder@vmware.com>
9267
2e3fd767
MS
9268 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9269 fields of struct 'st' to zero.
9270
58397cb7
MS
9271 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9272 sal.pspace before calling set_current_source_symtab_and_line.
9273
ced54c8f
YQ
92742011-03-03 Yao Qi <yao@codesourcery.com>
9275
9276 * Makefile.in (configure-common): Remove. Let Makefile
9277 in dir common to rebuild itself.
9278 (common/Makefile): Likewise.
9279
3351ea09
JB
92802011-03-03 Joel Brobecker <brobecker@adacore.com>
9281
9282 * utils.c (parse_escape): Add i18n markup in error message.
9283
bf9f652a
YQ
92842011-03-03 Yao Qi <yao@codesourcery.com>
9285
9286 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9287 ARM_PC_REGNUM.
9288 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9289 (displaced_write_reg, displaced_read_reg): Likewise.
9290 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9291 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9292 (cleanup_branch): Replace magic number 14 and 15 with
9293 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9294
d42de051
MS
92952011-03-02 Michael Snyder <msnyder@vmware.com>
9296
240f9570
MS
9297 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9298
10dd8b54
MS
9299 * cli/cli-script.c (script_from_file): Add break for lint.
9300
b98bd911
MS
9301 * mdebugread.c (parse_partial_symbols): Fix indent.
9302
3494b66d
MS
9303 * target-descriptions.c (tdesc_gdb_type): No need to call
9304 xstrdup, callee saves a copy.
9305
daac021a
MS
9306 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9307
c38d16a7
MS
9308 * infcall.c (call_function_by_hand): Add break statements for lint.
9309
905b671b
MS
9310 * utils.c (parse_escape): Escape the escape char.
9311
f2eb0bc8 9312 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9313 PyList_Append fails.
9314 (gdbpy_inferiors): Error out if build_inferior_list fails.
9315
8c6a60d1
MS
9316 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9317 a function call.
9318
d42de051
MS
9319 * record.c (record_restore): Move printf to before error return.
9320
4db71c0b
YQ
93212011-03-02 Yao Qi <yao@codesourcery.com>
9322
9323 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9324 is_thumb and insn_size.
9325 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9326 on both ARM and Thumb mode.
9327 (arm_process_displaced_insn): Set is_thumb and insn_size.
9328 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9329 (arm_displaced_step_fixup): Likewise.
9330
a9dc8dcc
MS
93312011-03-01 Michael Snyder <msnyder@vmware.com>
9332
53624a93
MS
9333 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9334
77766669
MS
9335 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9336
62d5b8da
MS
9337 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9338
5e9e105f
MS
9339 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9340
dc19db01
MS
9341 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9342 with xmalloc.
9343
5ce64950
MS
9344 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9345 which shadows function parameter.
9346
a0aa2878
MS
9347 * tracepoint.c (create_tsv_from_upload): Superfluous call
9348 to xstrdup. Callee already calls xstrdup.
9349
e325fb69
MS
9350 * linespec.c (decode_line_1): Remove unnecessary null check.
9351
21cbba77
MS
9352 * tracepoint.c (scope_info): Fix mem leak, remove underused
9353 variable.
9354
63360adc
MS
9355 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9356 superfluous null check.
9357
18ea20ac 9358 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9359 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9360
d014929c
MS
9361 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9362
6e9130cf
MS
9363 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9364 be null.
9365
5f01dbc0
MS
9366 * linespec.c (decode_line_1): Check for null before dereference.
9367
d684ab85
MS
9368 * reverse.c (record_restore): Move null-check to before pointer
9369 dereference.
9370
bfffb7e3
MS
9371 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9372
a9dc8dcc
MS
9373 * objc-lang.c (selectors_info): Add explanitory comment.
9374 (classes_info): Ditto.
9375
478fd957
UW
93762011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9377
9378 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9379 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9380 versions of the trampoline. Handle Thumb vs. ARM addresses.
9381 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9382 (arm_linux_init_abi): Install it.
9383 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9384 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9385
0480cefa
MS
93862011-02-28 Michael Snyder <msnyder@vmware.com>
9387
ac50ab3b
MS
9388 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9389 a little bigger, to avoid possibility of an overflow.
9390
f63fbe86
MS
9391 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9392 buffers a little bigger, to avoid possibility of an overflow.
9393
9e91a352
MS
9394 * coffread.c (coff_getfilename): Add check to avoid overflow.
9395
f2eb0bc8 9396 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9397 avoid overflow.
9398 (classes_info): Error out on too long REGEXP.
9399
098ab512
MS
9400 * infrun.c (handle_inferior_event): Remove unused function call.
9401
bcbd1de9
MS
9402 * fork-child.c (fork_inferior): Remove ifdef'd code and
9403 unused variable.
9404
2e456570
MS
9405 * linux-thread-db.c (attach_thread): Discard unused value.
9406
14571dad
MS
9407 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9408
a9cbf802
MS
9409 * remote.c (remote_get_noisy_reply): Discard unused value.
9410 (remote_vcont_resume): Ditto.
9411 (remote_stop_ns): Ditto.
9412
5715d26e
MS
9413 * linespec.c (decode_objc): Delete unused variable.
9414
4a9bca80
MS
9415 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9416
f47fb265
MS
9417 * dwarf2read.c (add_partial_symbol): Discard unused values.
9418 (read_base_type): Delete unused variable.
9419
e81cff30
MS
9420 * dbxread.c (read_dbx_symtab): Discard unused value.
9421
262acaeb
MS
9422 * eval.c (evaluate_subexp_standard): Delete unused variable,
9423 and discard unused values.
9424
df983543
MS
9425 * infcmd.c (_initialize_infcmd): Discard unused values.
9426
89acf84d
MS
9427 * stabsread.c (rs6000_builtin_type): Missing break statement.
9428
ab8b8aca
MS
9429 * dbxread.c (process_one_symbol): Discard unused value.
9430
6b4511ab
MS
9431 * coffread.c (coff_end_symtab): Delete unused variable.
9432
e8e80198
MS
9433 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9434 (dwarf2_add_typedef): Delete unused variable.
9435 (read_namespace): Ditto.
9436 (dwarf_decode_macros): Ditto.
9437
976aa66e
MS
9438 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9439
5b92b49f
MS
9440 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9441
91e8df85
MS
9442 * p-valprint.c (pascal_val_print): Discard unused value.
9443
899500d6
MS
9444 * utils.c (nquery): Call va_end before return;
9445 (yquery): Ditto.
9446 (query): Ditto.
9447
0480cefa
MS
9448 * proc-service.c (ps_plog): Call va_end before return.
9449
fb6a3ed3
TT
94502011-02-28 Tom Tromey <tromey@redhat.com>
9451
9452 * python/python.c (gdbpy_value_cst): New global.
9453 (_initialize_python): Initialize it.
9454 * python/python-internal.h (gdbpy_value_cst): Declare.
9455 * python/py-value.c (convert_value_from_python): Use
9456 gdbpy_value_cst.
9457
c05202a1
MS
94582011-02-28 Michael Snyder <msnyder@vmware.com>
9459
e463f587
MS
9460 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9461
c38eea1a
MS
9462 * breakpoint.c (catch_syscall_completer): Free malloced list.
9463
3ef09ab5
MS
9464 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9465
8f9a01ee
MS
9466 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9467 (lval_func_check_synthetic_pointer): Ditto.
9468 (lval_func_free_closure): Fix use-after-free.
c05202a1 9469
477d0d57
TT
94702011-02-28 Tom Tromey <tromey@redhat.com>
9471
9472 * psymtab.c (expand_partial_symbol_tables): Use
9473 ALL_OBJFILE_PSYMTABS.
9474
20937029
JK
94752011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 * objc-lang.c (selectors_info): Error on too long REGEXP.
9478
907b7f4f
MS
94792011-02-28 Michael Snyder <msnyder@vmware.com>
9480
92e96192
MS
9481 * python/py-param.c (set_parameter_value): Add missing
9482 break statement.
9483
907b7f4f
MS
9484 * linux-record.c (record_linux_system_call): Add missing
9485 break statement.
9486
12c5a436
UW
94872011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9488
9489 * breakpoint.c (print_one_breakpoint_location): Remove unused
9490 argument PRINT_ADDRESS_BITS. Update callers.
9491 (print_one_breakpoint): Likewise.
9492
170b53b2
UW
94932011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9494
9495 * breakpoint.c (wrap_indent_at_field): New function.
9496 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9497 Allocate ui_stream locally instead of using STB argument.
9498 (print_one_breakpoint_location): Update call.
9499 * ui-out.c (ui_out_query_field): New function.
9500 * ui-out.h (ui_out_query_field): Add prototype.
9501
8ab1f94d
JB
95022011-02-28 Joel Brobecker <brobecker@adacore.com>
9503
9504 From Michael Snyder <msnyder@vmware.com>
9505 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9506
7d488639
MS
95072011-02-27 Michael Snyder <msnyder@vmware.com>
9508
ae179fba
MS
9509 * objc-lang.c (selectors_info): Prevent string overrun.
9510
086dbf66
MS
9511 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9512 error in strncpy.
9513
f2eb0bc8 9514 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9515 outer scope.
9516
7d488639
MS
9517 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9518 param with a local variable of the same name.
9519
3bd0f5ef
MS
95202011-02-27 Michael Snyder <msnyder@vmware.com>
9521
9522 * value.c (value_from_history_ref): New function.
9523 * value.h (value_from_history_ref): Export.
9524 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9525 to parse value history references.
9526 * cli/cli-utils.h (get_number_trailer): Update comment.
9527
95282011-02-27 Michael Snyder <msnyder@vmware.com>
9529
9530 * inferior.c (detach_inferior_command): Use get_number_or_range.
9531 (kill_inferior_command): Ditto.
9532 (remove_inferior_command): Ditto.
9533 (initialize_inferiors): Make command names plural.
9534 Update help strings.
9535
766062f6
MS
95362011-02-27 Michael Snyder <msnyder@vmware.com>
9537
9538 * darwin-nat-info.c: Fix comment typo.
9539 * dwarf2expr.h: Ditto.
9540 * fbsd-nat.c: Ditto.
9541 * fbsd-nat.h: Ditto.
9542 * frame-unwind.h: Ditto.
9543 * frame.h: Ditto.
9544 * hppa-hpux-tdep.c: Ditto.
9545 * i386-linux-nat.c: Ditto.
9546 * linux-nat.c: Ditto.
9547 * nbsd-nat.c: Ditto.
9548 * nbsd-nat.h: Ditto.
9549 * ppc-linux-tdep.c: Ditto.
9550 * serial.c: Ditto.
9551 * ui-file.h: Ditto.
9552 * tui/tui-winsource.c: Ditto.
9553
f2c4ead5
MS
95542011-02-26 Michael Snyder <msnyder@vmware.com>
9555
86b887df
MS
9556 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9557
66fd3b1e
MS
9558 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9559
8c814cdd
MS
9560 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9561 with a local variable of the same name.
9562
6d5e094a 9563 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9564 param with a local variable of the same name.
6d5e094a 9565 (i387_supply_xsave): Ditto.
e5b3d7d6 9566
5eee517d
MS
9567 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9568 that it does not shadow a function parameter.
9569
8fbf6b93
MS
9570 * i386-nat.c (i386_length_and_rw_bits): Document that case
9571 statement is meant to fall through.
9572
cb969d61
MS
9573 * expprint.c (dump_subexp_body_standard): Document that case
9574 statement is meant to fall through.
9575
f2c4ead5
MS
9576 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9577 dead if statement. Condition can't be false.
9578
b021a221
MS
95792011-02-25 Michael Snyder <msnyder@vmware.com>
9580
9581 * arm-tdep.c: Fix typos in comments.
9582 * bsd-uthread.c: Ditto.
9583 * completer.c: Ditto.
9584 * corelow.c: Ditto.
9585 * cp-namespace.c: Ditto.
9586 * cp-support.c: Ditto.
9587 * cris-tdep.c: Ditto.
9588 * dbxread.c: Ditto.
9589 * dwarf2read.c: Ditto.
9590 * frame.h: Ditto.
9591 * gdbtypes.h: Ditto.
9592 * inferior.h: Ditto.
9593 * mdebugread.c: Ditto.
9594 * mips-tdep.c: Ditto.
9595 * ppc-linux-nat.c: Ditto.
9596 * ppc-linux-tdep.c: Ditto.
9597 * printcmd.c: Ditto.
9598 * sol-thread.c: Ditto.
9599 * solib-frv.c: Ditto.
9600 * solist.h: Ditto.
9601 * sparc64-tdep.c: Ditto.
9602 * spu-tdep.c: Ditto.
9603 * stabsread.c: Ditto.
9604 * symfile.c: Ditto.
9605 * valops.c: Ditto.
9606 * varobj.c: Ditto.
9607 * vax-nat.c: Ditto.
9608 * python/py-block.c: Ditto.
9609 * python/py-symbol.c: Ditto.
9610 * python/py-symtab.c: Ditto.
9611 * python/py-value.c: Ditto.
9612 * tui/tui-win.c: Ditto.
9613
c82c0b55
MS
96142011-02-25 Michael Snyder <msnyder@vmware.com>
9615
9616 * inferior.c (print_inferior): Accept a string instead of an int
9617 for requested_inferiors, and use get_number_or_range to parse it.
9618 (info_inferiors_command): Pass args string to print_inferior.
9619 (initialize_inferiors): Change help string for info inferiors.
9620 * inferior.h (print_inferior): Export prototype change.
9621
ee00cd23
TT
96222011-02-25 Tom Tromey <tromey@redhat.com>
9623
9624 * common/ax.def (invalid2): Set to 0x31.
9625
0502ed8c
JK
96262011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9627
9628 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9629 L and plongest.
9630 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9631 use L and plongest.
9632 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9633
2c9de912
MS
96342011-02-24 Michael Snyder <msnyder@vmware.com>
9635
9636 * Makefile.in (clean): Make clean should remove generated files
9637 observer.h and observer.inc.
9638
a04b0428
JB
96392011-02-24 Joel Brobecker <brobecker@adacore.com>
9640
9641 Revert the following patch (not approved yet):
9642 2011-02-21 Hui Zhu <teawater@gmail.com>
9643 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9644 * ax-gdb.c (gen_printf_expr_callback): New function.
9645 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9646 * ax-general.c (ax_memcpy): New function.
9647 (ax_print): Handle "printf".
9648 (ax_reqs): Ditto.
9649 * ax.h (ax_memcpy): Forward declare.
9650 * common/ax.def (invalid2): Removed.
9651 (printf): New entry.
9652 * printcmd.c (printcmd.h): New include.
9653 (string_printf): New function.
9654 (ui_printf): Removed.
9655 (printf_command): Remove static. Call string_printf.
9656 (eval_command): Call string_printf.
9657 * printcmd.h: New file.
9658 * tracepoint.c (validate_actionline,
9659 encode_actions_1): handle printf_command.
9660
2b52013f
TT
96612011-02-23 Tom Tromey <tromey@redhat.com>
9662
9663 * ax-general.c (ax_pick): Add missing newline.
9664
e5a67952
MS
96652011-02-23 Michael Snyder <msnyder@vmware.com>
9666
9667 * breakpoint.c (breakpoint_1): Change first argument from an int
9668 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9669 breakpoints rather than just one. Use new function
e5a67952
MS
9670 'number_is_in_list' to implement.
9671 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9672 (watchpoints_info): Ditto.
9673 (tracepoints_info): Ditto.
9674 (maintenance_info_breakpoints): Ditto.
9675 (_initialize_breakpoint): Update help strings to reflect the fact
9676 that these functions can now take more than one argument.
9677 * cli/cli-utils.c (number_is_in_list): New function.
9678 * cli/cli-utils.h (number_is_in_list): Export.
9679
96802011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9681
9682 * memattr.c (mem_enable_command): Use get_number_or_range.
9683 (mem_disable_command): Ditto.
9684 (mem_delete_command): Ditto.
9685 (_initialize_mem): Tweak usage message to reflect multiple
9686 arguments.
9687
6e6fbe60
DE
96882011-02-22 Doug Evans <dje@google.com>
9689
9690 Add gdb.lookup_global_symbol python function.
9691 * NEWS: Add entry.
9692 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9693 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9694 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9695
79b97fa8
TT
96962011-02-22 Tom Tromey <tromey@redhat.com>
9697
9698 * language.c (language_class_name_from_physname): Rename
9699 'curr_language' argument to 'lang'; use in body.
9700
298f437a
MS
97012011-02-22 Michael Snyder <msnyder@vmware.com>
9702
9703 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9704
b7ea3126
PA
97052011-02-22 Pedro Alves <pedro@codesourcery.com>
9706
9707 * frame-unwind.h: Fix comment to mention the this frame, not the
9708 next.
9709
58ee6d60
TT
97102011-02-22 Tom Tromey <tromey@redhat.com>
9711
9712 * symfile.c (auto_solib_limit): Remove.
9713 * symfile.h (auto_solib_limit): Remove.
9714
36238dbc
JB
97152011-02-22 Joel Brobecker <brobecker@adacore.com>
9716
9717 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9718
aea5b279
MS
97192011-02-21 Michael Snyder <msnyder@vmware.com>
9720
9721 * gdbthread.h (print_thread_info): Change prototype.
9722 * thread.c (print_thread_info): Accept char* instead of int for
9723 requested_threads argument. Use new function number_is_in_list
9724 to determine which threads to list.
9725 (info_threads_command): Pass char* to print_thread_info.
9726 * cli/cli-utils.c (number_is_in_list): New function.
9727 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9728 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9729 print_thread_info.
9730 (print_one_inferior): Ditto.
9731 (mi_cmd_list_thread_groups): Ditto.
9732
8caa75ee
JK
97332011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9734
9735 * common/Makefile.in (CFLAGS): New.
9736 (COMPILE): Add $(CFLAGS).
9737
ea666128
TT
97382011-02-21 Tom Tromey <tromey@redhat.com>
9739
9740 * breakpoint.c (catch_syscall_command_1): Fix typo.
9741
e9cafbcc
TT
97422011-02-21 Tom Tromey <tromey@redhat.com>
9743
9744 * reverse.c: Include cli-utils.h.
9745 * printcmd.c: Include cli-utils.h.
9746 (string_printf): Use skip_spaces.
9747 * cli/cli-utils.h: New file.
9748 * cli/cli-utils.c: New file.
9749 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9750 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9751 * breakpoint.h (get_number, get_number_or_range): Move to
9752 cli-utils.h.
9753 * breakpoint.c: Include cli-utils.h.
9754 (get_number_trailer, get_number, get_number_or_range)
9755 (ep_skip_leading_whitespace): Move to cli-utils.c.
9756 (create_breakpoint_sal, find_condition_and_thread)
9757 (decode_static_tracepoint_spec, watch_command_1)
9758 (watch_maybe_just_location, ep_parse_optional_if_clause)
9759 (catch_fork_command_1, catch_exec_command_1)
9760 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9761 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9762 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9763 (HFILES_NO_SRCDIR): Add cli-utils.h.
9764 (cli-utils.o): New target.
9765
f67fd822
PM
97662011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9767
9768 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9769 before calling discard_all_inferiors.
9770
c9def01d
UW
97712011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9772
9773 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9774 (struct builtin_opencl_type): Remove.
9775 (builtin_opencl_type): Change return type to "struct type **".
9776 (lookup_opencl_vector_type): Update caller.
9777 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9778 (build_opencl_types): Install plain array of "struct type *"
9779 instead of "struct builtin_opencl_type".
9780
e3039479
UW
97812011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9782 Ulrich Weigand <uweigand@de.ibm.com>
9783
9784 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9785 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9786 (struct arm_linux_hwbp_cap): New type.
9787 (arm_linux_get_hwbp_cap): New function.
9788 (arm_linux_get_hw_breakpoint_count): Likewise.
9789 (arm_linux_get_hw_watchpoint_count): Likewise.
9790 (arm_linux_can_use_hw_breakpoint): Likewise.
9791 (arm_hwbp_type): New type.
9792 (arm_hwbp_control_t): Likewise.
9793 (struct arm_linux_hw_breakpoint): Likewise.
9794 (struct arm_linux_thread_points): Likewise.
9795 (arm_threads): New global variable.
9796 (arm_linux_find_breakpoints_by_tid): New function.
9797 (arm_hwbp_control_initialize): Likewise.
9798 (arm_hwbp_control_is_enabled): Likewise.
9799 (arm_hwbp_control_disable): Likewise.
9800 (arm_linux_hw_breakpoint_initialize): Likewise.
9801 (arm_linux_get_hwbp_type): Likewise.
9802 (arm_linux_hw_watchpoint_initialize): Likewise.
9803 (arm_linux_hw_breakpoint_equal): Likewise.
9804 (arm_linux_insert_hw_breakpoint1): Likewise.
9805 (arm_linux_remove_hw_breakpoint1): Likewise.
9806 (arm_linux_insert_hw_breakpoint): Likewise.
9807 (arm_linux_remove_hw_breakpoint): Likewise.
9808 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9809 (arm_linux_insert_watchpoint): Likewise.
9810 (arm_linux_remove_watchpoint): Likewise.
9811 (arm_linux_stopped_data_address): Likewise.
9812 (arm_linux_stopped_by_watchpoint): Likewise.
9813 (arm_linux_watchpoint_addr_within_range): Likewise.
9814 (arm_linux_new_thread): Likewise.
9815 (arm_linux_thread_exit): Likewise.
9816 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9817 related target callbacks. Register arm_linux_new_thread and
9818 arm_linux_thread_exit.
9819 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9820 * arm-tdep.c (arm_pc_is_thumb): Make global.
9821 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9822
b5db5dfc
UW
98232011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9824
9825 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9826 per-frame locations while within a function epilogue.
9827
e25b2cfa
PM
98282011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9829
9830 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9831 to GNU coding standards.
9832
4af53f97
PM
98332011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9834
9835 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9836 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9837 (ser_windows_close): Only call CancelIo if function exists.
9838 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9839 to check for existence of CancelIo function in kernel32 DLL.
9840
d0e92d82
HZ
98412011-02-21 Hui Zhu <teawater@gmail.com>
9842
9843 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9844 * ax-gdb.c (gen_printf_expr_callback): New function.
9845 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9846 * ax-general.c (ax_memcpy): New function.
9847 (ax_print): Handle "printf".
9848 (ax_reqs): Ditto.
9849 * ax.h (ax_memcpy): Forward declare.
9850 * common/ax.def (invalid2): Removed.
9851 (printf): New entry.
9852 * printcmd.c (printcmd.h): New include.
9853 (string_printf): New function.
9854 (ui_printf): Removed.
9855 (printf_command): Remove static. Call string_printf.
9856 (eval_command): Call string_printf.
9857 * printcmd.h: New file.
9858 * tracepoint.c (validate_actionline,
9859 encode_actions_1): handle printf_command.
9860
7d357efd
MS
98612011-02-19 Michael Snyder <msnyder@vmware.com>
9862
9863 * reverse.c (delete_one_bookmark): Argument is now bookmark
9864 id rather than pointer to bookmark struct.
9865 (delete_bookmark_command): Use get_number_or_range.
9866 (goto_bookmark_command): Parse with get_number instead of strtoul.
9867 (bookmark_1): New function. Print info for one bookmark.
9868 (bookmarks_info): Use get_number_or_range and bookmark_1.
9869
7a45ebd7
MS
98702011-02-18 Michael Snyder <msnyder@vmware.com>
9871
f2eb0bc8 9872 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9873 get_number_or_range.
65ebfb52 9874 (thread_apply_command): Ditto.
7a45ebd7 9875
94d5e490
TT
98762011-02-18 Tom Tromey <tromey@redhat.com>
9877
9878 * common/ax.def: New file.
9879 * ax.h (enum agent_op): Use ax.def.
9880 * ax-general.c (aop_map): Use ax.def.
9881
c7f96d2b
TT
98822011-02-18 Tom Tromey <tromey@redhat.com>
9883
9884 * ax-general.c (aop_map): Add pick and rot.
9885 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9886 <DW_OP_rot>: Implement.
9887 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9888 (ax_pick): Declare.
9889 * ax-general.c (ax_pick): New function.
9890
66694b75
TT
98912011-02-18 Tom Tromey <tromey@redhat.com>
9892
9893 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9894
eeaafae2
JK
98952011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9896 Tom Tromey <tromey@redhat.com>
9897
9898 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9899 make_symbol_overload_list_block with NULL BLOCK.
9900 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9901
3c3fe74c
PA
99022011-02-18 Pedro Alves <pedro@codesourcery.com>
9903
9904 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9905 * breakpoint.h (get_number_or_range): Declare.
9906 * printcmd.c (ALL_DISPLAYS): Declare.
9907 (delete_display): Reimplement taking a display pointer.
9908 (undisplay_command): Accept a range of displays to delete, using
9909 get_number_or_range.
9910
13163d80
PM
99112011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9912
9913 * c-valprint.c (c_val_print): Add embedded_offset to address
9914 for arrays of unspecified length.
9915 * p-valprint.c (pascal_val_print): Likewise.
9916
b434a28f
YQ
99172011-02-18 Yao Qi <yao@codesourcery.com>
9918
9919 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9920 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9921 (thumb_process_displaced_insn): New.
9922 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9923 call to arm_process_displaced_insn.
9924 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9925
9f6f94ff
TT
99262011-02-17 Tom Tromey <tromey@redhat.com>
9927
9928 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9929 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9930 compile_dwarf_to_ax. No longer static. Call
9931 dwarf2_compile_cfa_to_ax.
9932 (locexpr_tracepoint_var_ref): Update.
9933 (loclist_tracepoint_var_ref): Update.
9934 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9935 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9936 argument; add 'gdbarch' and 'pc'.
9937 (dwarf2_compile_cfa_to_ax): New function.
9938 (dwarf2_frame_cache): Update.
9939
e67ad678
JB
99402011-02-17 Joel Brobecker <brobecker@adacore.com>
9941
9942 * ada-lang.c (ada_type_of_array): Fix the size of the array
9943 in the case of an unconstrained packed array.
9944
946ebb0d
YQ
99452011-02-17 Yao Qi <yao@codesourcery.com>
9946
9947 * common/Makefile.in: Add more targets for make.
9948
1ba1b353
TT
99492011-02-16 Tom Tromey <tromey@redhat.com>
9950
9951 * dwarf2loc.c (unimplemented): Fix typo.
9952
b1bfef65
TT
99532011-02-16 Tom Tromey <tromey@redhat.com>
9954
9955 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9956 (compile_dwarf_to_ax) <default>: Use unimplemented.
9957 <DW_OP_deref>: Update.
9958 (disassemble_dwarf_expression): Update.
9959 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9960 (decode_locdesc): Update.
9961 * dwarf2expr.h (dwarf_stack_op_name): Update.
9962
5f1e6f19
TT
99632011-02-16 Tom Tromey <tromey@redhat.com>
9964
9965 * ax.h (struct aop_map) <name>: Now const.
9966
a0c78a73
PA
99672011-02-16 Tom Tromey <tromey@redhat.com>
9968
9969 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9970 than axs_rvalue.
9971
946ebb0d 99722011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9973
9974 * infrun.c (get_displaced_step_closure_by_addr): New.
9975 * inferior.h: Declare it.
9976 * arm-tdep.c: (arm_pc_is_thumb): Call
9977 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9978 returns non-NULL.
9979
08807d5a
PA
99802011-02-16 Pedro Alves <pedro@codesourcery.com>
9981 Jan Kratochvil <jan.kratochvil@redhat.com>
9982
9983 gdb/
9984 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9985
29976f3f
PA
99862011-02-16 Pedro Alves <pedro@codesourcery.com>
9987 Jan Kratochvil <jan.kratochvil@redhat.com>
9988
9989 * value.c (value_contents_copy_raw): Extend describing comment.
9990 Assert that the destination contents we're overwriting are wholly
9991 available.
fb68ae73 9992 (value_contents_copy): Extend describing comment.
29976f3f 9993
cd24cfaa
PA
99942011-02-16 Pedro Alves <pedro@codesourcery.com>
9995 Jan Kratochvil <jan.kratochvil@redhat.com>
9996
9997 * value.c (value_available_contents_eq): Remove redundant local
9998 variables. Fix available contents comparision.
9999 * value.h (value_available_contents_eq): Extend describing
10000 comment.
10001
60bbf338
YQ
100022011-02-16 Yao Qi <yao@codesourcery.com>
10003
10004 * thread.c (info_threads_command): Add missing i18n markup and remove
10005 trailing newline.
10006
17450429
PP
100072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10008
10009 * breakpoint.c (longjmp_names): New variable.
10010 (struct breakpoint_objfile_data): New type.
10011 (breakpoint_objfile_key): New variable.
10012 (msym_not_found): New variable.
10013 (msym_not_found_p): New predicate.
10014 (get_breakpoint_objfile_data): New function.
10015 (create_overlay_event_breakpoint): Check per-objfile cache for
10016 symbols first.
10017 (create_longjmp_master_breakpoint): Likewise.
10018 (create_std_terminate_master_breakpoint): Likewise.
10019 (create_exception_master_breakpoint): Likewise.
10020 (_initialize_breakpoint): Register per-objfile data key.
10021
af02033e
PP
100222011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10023
10024 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10025 parameter value.
10026 (create_longjmp_master_breakpoint): Loop over longjmp names.
10027 (create_std_terminate_master_breakpoint): Const-propagate parameter
10028 value.
10029 (update_breakpoints_after_exec): Adjust.
10030 (breakpoint_re_set): Adjust.
10031
60f98dde
MS
100322011-02-15 Michael Snyder <msnyder@vmware.com>
10033
cdf99611
MS
10034 * thread.c (info_threads_command): Process arg as thread id,
10035 or list of thread ids.
10036 (thread_find_command): New command.
10037 (_initialize_thread): Document argument for info threads.
10038 Document 'thread find' command.
10039 * NEWS: Document new command "thread find".
60f98dde 10040
0feedb2c
JK
100412011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10044 * aclocal.m4: Regenerated with aclocal-1.11.1.
10045 * common/configure: Regenerate with autoconf-2.64.
10046
648cd113
KW
100472011-02-15 Ken Werner <ken.werner@de.ibm.com>
10048
10049 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10050 bool data type to a size of one byte.
10051
5657161f
PA
100522011-02-15 Pedro Alves <pedro@codesourcery.com>
10053 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 * target.c (memory_xfer_live_readonly_partial): Document where to
10056 look for interface description.
10057
494e194e
YQ
100582011-02-15 Yao Qi <yao@codesourcery.com>
10059
10060 PR tdep/12352
10061 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10062 order to store PC value on stack instead of text section.
10063
d9492458
TJB
100642011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10065
10066 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10067 the EFP register set size.
10068 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10069 data from the VMX register.
10070 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10071 and write data from/to the VMX register.
10072
cdf99611
MS
100732011-02-14 Michael Snyder <msnyder@vmware.com>
10074
10075 * command.h (enum command_class): New class 'no_set_class', for
10076 "show" commands without a corresponding "set" command.
10077 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10078 * copying.c (_initialize_copying): Ditto for "show copying" and
10079 "show warranty".
10080 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10081 "show version".
10082 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10083 which there is no corresponding "set" command (eg. "show copying").
10084
424447ee
PA
100852011-02-14 Pedro Alves <pedro@codesourcery.com>
10086 Jan Kratochvil <jan.kratochvil@redhat.com>
10087
10088 * exec.c (section_table_available_memory): Change `len' parameter
10089 type to ULONGEST.
10090 * exec.h (section_table_available_memory): Ditto.
10091 * value.h (read_value_memory): Rename the `offset' parameter to
10092 `embedded_offset'.
10093
c0f61f9c 100942011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10095 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10096
10097 * memrange.c (compare_mem_ranges): Mention sort order in
10098 describing comment.
10099 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10100 * tracepoint.c (traceframe_available_memory): Extend comment to
10101 mention what happens to RESULT when the target does not support
10102 the query.
10103
6bfc80c7
PA
101042011-02-14 Pedro Alves <pedro@codesourcery.com>
10105 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10108 range.
10109
e7303042
PA
101102011-02-14 Pedro Alves <pedro@codesourcery.com>
10111
10112 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10113 No longer handle NULL values.
10114
8af8e3bc
PA
101152011-02-14 Pedro Alves <pedro@codesourcery.com>
10116
10117 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10118 * value.c: Include "exceptions.h".
10119 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10120 generic error.
10121 * cp-abi.c: Include gdb_assert.h.
10122 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10123 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10124 errors.
10125 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10126 parameters. No longer returns -1 on error.
10127 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10128 `val' parameters.
10129 * cp-valprint.c: Include exceptions.h.
10130 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10131 the baseclass_offset. Handle unavailable base classes. Use
10132 val_print_invalid_address.
10133 * p-valprint.c: Include exceptions.h.
10134 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10135 when fetching the baseclass_offset. No longer expect
10136 baseclass_offset returning -1. Handle unavailable base classes.
10137 Use val_print_invalid_address.
10138 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10139 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10140 `embedded_offset' and `val' parameters. Adjust.
10141 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10142 parameter, and change its type to gdb_byte pointer. Add
10143 `embedded_offset' and `val' parameters. Adjust. No longer expect
10144 baseclass_offset returning -1.
10145 (value_dynamic_cast): Use value_contents_for_printing rather than
10146 value_contents. Adjust.
10147 (search_struct_field): No longer expect baseclass_offset returning
10148 -1.
10149 (search_struct_method): If reading memory from the target is
10150 necessary, wrap it in a new value to pass to baseclass_offset. No
10151 longer expect baseclass_offset returning -1.
10152 (find_method_list): No longer expect baseclass_offset returning
10153 -1. Use value_contents_for_printing rather than value_contents.
10154 * valprint.c (val_print_invalid_address): New function.
10155 * valprint.h (val_print_invalid_address): Declare.
10156 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10157 and `val' parameters. No longer expect baseclass_offset returning
10158 -1. Adjust.
10159 * gnu-v2-abi.c: Include "exceptions.h".
10160 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10161 parameters. Handle unavailable memory. Recurse through
10162 gnuv2_baseclass_offset directly, rather than through
10163 baseclass_offset. No longer returns -1 on not found, instead
10164 throw an error.
10165 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10166 `val' parameters. Adjust.
10167
1b28d0b3
PA
101682011-02-14 Pedro Alves <pedro@codesourcery.com>
10169
10170 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10171 almost but not quite adjacent.
10172
ec0a52e1
PA
101732011-02-14 Pedro Alves <pedro@codesourcery.com>
10174
10175 * value.h (value_entirely_available): Declare.
10176 * value.c (value_entirely_available): New function.
10177 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10178 real type if the pointer is unavailable.
10179
24e6bcee
PA
101802011-02-14 Pedro Alves <pedro@codesourcery.com>
10181
10182 * valops.c (value_repeat): Use read_value_memory instead of
10183 read_memory.
10184
39d37385
PA
101852011-02-14 Pedro Alves <pedro@codesourcery.com>
10186
10187 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10188 * value.c (value_contents_copy_raw, value_contents_copy): New
10189 functions.
10190 (value_primitive_field): Use value_contents_copy_raw instead of
10191 memcpy.
10192 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10193 memcpy.
10194 (value_array, value_slice): Ditto.
10195 * valarith.c (value_subscripted_rvalue): Use
10196 value_contents_copy_raw instead of memcpy.
10197
a3d34bf4
PA
101982011-02-14 Pedro Alves <pedro@codesourcery.com>
10199
10200 <unavailable> references.
10201
10202 * valops.c (get_value_at): Use value_from_contents_and_address,
10203 avoiding read_memory.
10204
9fc6d940
PA
102052011-02-14 Pedro Alves <pedro@codesourcery.com>
10206
10207 * c-valprint.c (c_val_print): Print a string with unavailable
10208 contents as an array.
10209
5467c6c8
PA
102102011-02-14 Pedro Alves <pedro@codesourcery.com>
10211
10212 * value.h (unpack_bits_as_long): Delete declaration.
10213 (unpack_value_bits_as_long): Declare.
10214 (unpack_value_field_as_long): Declare.
10215 (value_field_bitfield): Declare.
10216 * value.c (unpack_bits_as_long): Rename to...
10217 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10218 value parameters. Return the extracted result in a new output
10219 parameter. If the value contents are unavailable, return false,
10220 otherwise return true.
10221 (unpack_value_bits_as_long): New.
10222 (unpack_field_as_long): Rename to...
10223 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10224 Add embedded_offset and value parameters. Return the extracted
10225 result in a new output parameter. If the value contents are
10226 unavailable, return false, otherwise return true.
10227 (unpack_value_field_as_long): New.
10228 (unpack_field_as_long_1): New.
10229 (unpack_field_as_long): Reimplement as wrapper around
10230 unpack_value_field_as_long_1.
10231 (value_field_bitfield): New function.
10232 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10233 unpack_value_bits_as_long. Mark the value as unavailable, if it
10234 is unavailable.
10235 * jv-valprint.c (java_print_value_fields): Use
10236 value_field_bitfield.
10237 * p-valprint.c (pascal_object_print_value_fields): Use
10238 value_field_bitfield.
10239 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10240
3158c6ed
PA
102412011-02-14 Pedro Alves <pedro@codesourcery.com>
10242
10243 * value.c (get_internalvar_integer): Also return the int value of
10244 TYPE_CODE_INT INTERNALVAR_VALUE values.
10245 (set_internalvar): Don't special case TYPE_CODE_INT.
10246
9fbdca0d
PA
102472011-02-14 Pedro Alves <pedro@codesourcery.com>
10248
10249 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10250 INTERNALVAR_POINTER.
10251 <pointer>: Delete.
10252 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10253 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10254 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10255
c8c1c22f
PA
102562011-02-14 Pedro Alves <pedro@codesourcery.com>
10257
10258 * value.h (value_available_contents_eq): Declare.
10259 * value.c (find_first_range_overlap): New function.
10260 (value_available_contents_eq): New function.
10261 * valprint.c (val_print_array_elements): Use
10262 value_available_contents_eq.
10263 * ada-valprint.c (val_print_packed_array_elements): Use
10264 value_available_contents_eq.
10265 * jv-valprint.c (java_value_print): Use
10266 value_available_contents_eq.
10267
e6e4e701
PA
102682011-02-14 Pedro Alves <pedro@codesourcery.com>
10269
10270 * target.c (target_read_live_memory): New function.
10271 (memory_xfer_live_readonly_partial): New.
10272 (memory_xfer_partial): If reading from a traceframe, fallback to
10273 reading unavailable read-only memory from read-only regions of
10274 live target memory.
10275 * tracepoint.c (disconnect_tracing): Adjust.
10276 (set_current_traceframe): New, factored out from
10277 set_traceframe_number.
10278 (set_traceframe_number): Reimplement to only change the traceframe
10279 number on the GDB side.
10280 (do_restore_current_traceframe_cleanup): Adjust.
10281 (make_cleanup_restore_traceframe_number): New.
10282 (cur_traceframe_number): New global.
10283 (tfile_open): Set cur_traceframe_number to no traceframe.
10284 (set_tfile_traceframe): New function.
10285 (tfile_trace_find): If looking up a traceframe using any method
10286 other than by number, make sure the current tfile traceframe
10287 matches gdb's current traceframe. Update the current tfile
10288 traceframe if the lookup succeeded.
10289 (tfile_fetch_registers, tfile_xfer_partial)
10290 (tfile_get_trace_state_variable_value): Make sure the remote
10291 traceframe matches gdb's current traceframe.
10292 * remote.c (remote_traceframe_number): New global.
10293 (remote_open_1): Set it to -1.
10294 (set_remote_traceframe): New function.
10295 (remote_fetch_registers, remote_store_registers)
10296 (remote_xfer_memory, remote_xfer_partial)
10297 (remote_get_trace_state_variable_value): Make sure the remote
10298 traceframe matches gdb's current traceframe.
10299 (remote_trace_find): If looking up a traceframe using any method
10300 other than by number, make sure the current remote traceframe
10301 matches gdb's current traceframe. Update the current remote
10302 traceframe if the lookup succeeded.
10303 * infrun.c (fetch_inferior_event): Adjust.
10304 * tracepoint.h (set_current_traceframe): Declare.
10305 (get_traceframe_number, set_traceframe_number): Add describing
10306 comments.
10307
e6ca34fc
PA
103082011-02-14 Pedro Alves <pedro@codesourcery.com>
10309
10310 Mark pieces of values as unavailable if the corresponding memory
10311 is unavailable.
10312
10313 * valops.c: Include tracepoint.h.
10314 (value_fetch_lazy): Use read_value_memory.
10315 (read_value_memory): New.
10316 * value.h (read_value_memory): Declare.
10317 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10318 * exec.c (section_table_available_memory): New function.
10319 * exec.h (section_table_available_memory): Declare.
10320
2a7498d8
PA
103212011-02-14 Pedro Alves <pedro@codesourcery.com>
10322
10323 * Makefile.in (SFILES): Add memrange.c.
10324 (HFILES_NO_SRCDIR): Add memrange.h.
10325 (COMMON_OBS): Add memrange.o.
10326 * memrange.c: New file.
10327 * memrange.h: New file.
10328 * tracepoint.c: Include memrange.h.
10329 (struct mem_range): Delete.
10330 (mem_range_s): Delete.
10331 (traceframe_available_memory): New function.
10332 * tracepoint.h (traceframe_available_memory): Declare.
10333
b3b9301e
PA
103342011-02-14 Pedro Alves <pedro@codesourcery.com>
10335
10336 * target.h (struct traceframe_info): Forward declare.
10337 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10338 (struct target_ops) <to_traceframe_info>: New field.
10339 (target_traceframe_info): New.
10340 * target.c (update_current_target): Inherit and default
10341 to_traceframe_info.
10342 * remote.c (PACKET_qXfer_traceframe_info): New.
10343 (remote_protocol_features): Register qXfer:traceframe-info:read.
10344 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10345 (remote_traceframe_info): New.
10346 (init_remote_ops): Install it.
10347 (_initialize_remote): Install "set/show remote traceframe-info"
10348 commands.
10349 * tracepoint.h (parse_traceframe_info): Declare.
10350 * tracepoint.c (struct mem_range): New.
10351 (mem_range_s): New typedef.
10352 (struct traceframe_info): New.
10353 (traceframe_info): New global.
10354 (free_traceframe_info): New function.
10355 (clear_traceframe_info): New function.
10356 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10357 info.
10358 (build_traceframe_info): New function.
10359 (tfile_traceframe_info): New function.
10360 (init_tfile_ops): Install tfile_traceframe_info.
10361 (traceframe_info_start_memory, free_result): New functions.
10362 (memory_attributes, traceframe_info_elements): New globals.
10363 (parse_traceframe_info, get_traceframe_info): New functions.
10364 * features/traceframe-info.dtd: New file.
10365 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10366
4e07d55f
PA
103672011-02-14 Pedro Alves <pedro@codesourcery.com>
10368
10369 Base support for <unavailable> value contents.
10370
4e07d55f
PA
10371 * value.h (value_bytes_available): Declare.
10372 (mark_value_bytes_unavailable): Declare.
10373 * value.c (struct range): New struct.
10374 (range_s): New typedef.
10375 (ranges_overlap): New function.
10376 (range_lessthan): New function.
10377 (ranges_contain_p): New function.
10378 (struct value) <unavailable>: New field.
10379 (value_bytes_available): New function.
10380 (mark_value_bytes_unavailable): New function.
10381 (require_not_optimized_out): Constify parameter.
10382 (require_available): New function.
10383 (value_contents_all, value_contents): Require all bytes be
10384 available.
10385 (value_free): Free `unavailable'.
10386 (value_copy): Copy `unavailable'.
10387 * valprint.h (val_print_unavailable): Declare.
10388 * valprint.c (valprint_check_validity): Rename `offset' parameter
10389 to `embedded_offset'. If printing a scalar, check whether the
10390 value chunk is available.
10391 (val_print_unavailable): New.
10392 (val_print_scalar_formatted): Check whether the value is
10393 available.
10394 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10395 pretty-printing unavailable values.
10396
bc9a5551
JK
103972011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10398
10399 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10400 * c-typeprint.c (c_type_print_args): Update the function comment. New
10401 variable param_type, initialize it. Remove const/volatile qualifiers
10402 for language_cplus and !show_artificial. Use param_type.
10403
93b55aa1
JK
104042011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10405
10406 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10407 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10408 * symtab.h (struct symtab) <next>: Comment extension.
10409
181d9476
YQ
104102011-02-12 Yao Qi <yao@codesourcery.com>
10411
10412 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10413
b708a5c7
JK
104142011-02-11 Yao Qi <yao@codesourcery.com>
10415
10416 * common/Makefile.in: Add copyright header.
10417
c5187ac6
PA
104182011-02-11 Pedro Alves <pedro@codesourcery.com>
10419
10420 * infrun.c (proceed): Move switching out and in of tfind mode from
10421 here ...
10422 (fetch_inferior_event): ... to here.
10423
4f3e6fb7
YQ
104242011-02-11 Yao Qi <yao@codesourcery.com>
10425
10426 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10427 libcommon.a.
10428 * configure.ac: Add common to sub dir.
10429 * configure: Regenerate.
10430
b708a5c7
JK
104312011-02-11 Yao Qi <yao@codesourcery.com>
10432
10433 Build libcommon.a.
10434
10435 * common/Makefile.in: New.
10436 * common/configure.ac: New.
10437 * common/aclocal.m4: New.
10438 * common/configure: Generate.
10439
2287cc7e
PA
104402011-02-10 Pedro Alves <pedro@codesourcery.com>
10441
10442 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10443 side of the parenthesis.
10444
10445 Merge from GCC:
10446 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10447 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10448
fd62cb89
MS
104492011-02-08 Michael Snyder <msnyder@vmware.com>
10450
10451 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10452
56d2815c
JK
104532011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10454
10455 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10456 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10457 psubd and paddd.
10458
4f7d61a8
JK
104592011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10460
10461 PR 12361.
10462 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10463 phsubsw.
10464 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10465 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10466
54fcddd0
UW
104672011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10468
10469 * dwarf2read.c (read_subroutine_type): Set special calling
10470 convention flag for functions compiled by IBM XL C for OpenCL.
10471 * ppc-sysv-tdep.c: Include "dwarf2.h"
10472 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10473 calling convention.
10474 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10475 IBM OpenCL vector types calling convention.
10476 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10477 (ppc_sysv_abi_broken_return_value): Likewise.
10478 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10479 types calling convention.
10480 (ppc64_sysv_abi_return_value): Likewise.
10481 * spu-tdep.c: Include "dwarf2.h"
10482 (spu_return_value): Implement IBM OpenCL vector types calling
10483 convention.
10484
d6dafb7c
UW
104852011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10486
10487 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10488 correct ABI for AltiVec vector arguments.
10489
32b72a42
PA
104902011-02-07 Pedro Alves <pedro@codesourcery.com>
10491
10492 * valprint.c (val_print): Extend comment.
10493 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10494 interface explanation to val_print.
10495 (ada_val_print_array): Adjust comment to current interface.
10496 (print_field_values): Adjust comment to current interface.
10497 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10498 explanation to val_print.
10499 * f-valprint.c (f_val_print): Ditto.
10500 * jv-valprint.c (java_val_print): Ditto.
10501 * m2-valprint.c (m2_val_print): Ditto.
10502 * p-valprint.c (pascal_val_print): Ditto.
10503
9998af43
TJB
105042011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10505
10506 * breakpoint.c (parse_breakpoint_sals): Fix description.
10507
505500db 105082011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10509 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10510
10511 * python/py-inferior.c (python_on_normal_stop): New function.
10512 (python_on_resume): New function.
10513 (python_inferior_exit): New function.
10514 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10515 inferior_exit observers.
10516 * python/py-evtregistry.c: New file.
10517 * python/py-threadevent.c : New file.
10518 * python/py-event.c: New file.
10519 * python/py-evts.c: New file.
10520 * python/py-continueevent.c: New file.
10521 * python/py-bpevent.c: New file.
10522 * python/py-signalevent.c: New file.
10523 * python/py-exetiedevent.c: New file.
10524 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10525 Move struct breakpoint_object from here...
10526 * python/python-internal.h: ... to here.
10527 * python/py-event.h: New file.
10528 * python/py-events.h: New file.
10529 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10530 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10531 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10532 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10533 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10534 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10535 Add build rules for all the above.
10536
9e0ac564
TT
105372011-02-04 Tom Tromey <tromey@redhat.com>
10538
10539 * dwarf2read.c (dwarf2_section_empty_p): New function.
10540 (dwarf2_read_section): Use dwarf2_section_empty_p.
10541 (dwarf2_section_size): New function.
10542 (dwarf2_get_section_info): Unconditionally read section.
10543 (dwarf2_read_index): Use dwarf2_section_empty_p.
10544 (partial_read_comp_unit_head): Use dwarf2_section_size.
10545 (dwarf2_symbol_mark_computed): Likewise.
10546
eee5b35e
DD
105472011-02-04 David Daney <ddaney@caviumnetworks.com>
10548
10549 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10550
385203ed
DD
105512011-02-04 David Daney <ddaney@caviumnetworks.com>
10552
10553 * mips-linux-tdep.c: Include xml-syscall.h.
10554 (mips_linux_get_syscall_number): New function.
10555 (mips_linux_init_abi): Add calls to
10556 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10557 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10558 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10559 * syscalls/mips-n32-linux.xml: New file.
10560 * syscalls/mips-n64-linux.xml: New file.
10561 * syscalls/mips-o32-linux.xml: New file.
10562
9277c30c
UW
105632011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10564
10565 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10566 Complain about inverted range entries.
10567 (dwarf2_record_block_ranges): Likewise.
10568
a3be7890
TJB
105692011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10570
10571 Fix some typos.
10572 * breakpoint.c (update_watchpoint): Fix name of the
10573 update_global_location_list function.
10574 (print_one_breakpoint): Fix typo.
10575 (_initialize_breakpoint): Remove extra space in hbreak help
10576 string.
10577 * breakpoint.h (struct bp_location) <length>: Fix field
10578 description.
10579
041274d8
PA
105802011-02-04 Pedro Alves <pedro@codesourcery.com>
10581
10582 * regcache.c (registers_changed_ptid): Don't explictly always
10583 clear `current_regcache'. Only clear current_thread_ptid and
10584 current_thread_arch when PTID matches. Only reinit the frame
10585 cache if PTID matches the current inferior_ptid. Move alloca(0)
10586 call to ...
10587 (registers_changed): ... here.
10588
c1c2ab58
UW
105892011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10590
10591 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10592 starts with __stack_chk_guard as stack guard symbol.
10593
9011945e
AB
105942011-02-03 Andrew Burgess <aburgess@broadcom.com>
10595
10596 * disasm.c (compare_lines): Handle the end of sequence markers
10597 within the line table to better support disassembling over
10598 compilation unit boundaries.
10599
e0634ccf
UW
106002011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10601
10602 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10603 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10604 implementation even if no symbols are available.
10605 (thumb_analyze_prologue): Update call to skip_prologue_function.
10606 (arm_analyze_prologue): Likewise.
10607
0e9e9abd
UW
106082011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10609
10610 * arm-tdep.c: Include "observer.h".
10611 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10612 (arm_exidx_data_key): New static variable.
10613 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10614 (struct arm_exidx_data): Likewise.
10615 (arm_exidx_data_free): New function.
10616 (arm_compare_exidx_entries): Likewise.
10617 (arm_obj_section_from_vma): Likewise.
10618 (arm_exidx_new_objfile): Likewise.
10619 (arm_find_exidx_entry): Likewise.
10620 (arm_exidx_fill_cache): Likewise.
10621 (arm_exidx_unwind_sniffer): Likewise.
10622 (arm_exidx_unwind): New global variable.
10623 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10624 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10625 observer. Register arm_exidx_data_key as objfile data.
10626
2e9e421f
UW
106272011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10628
10629 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10630 due to accessing uninitialized variable. Fix indentation.
10631
580688f3
PA
106322011-02-02 Pedro Alves <pedro@codesourcery.com>
10633
10634 * c-valprint.c (c_value_print): When doing virtual base pointer
10635 adjustment, create a new value with adjusted contents rather than
10636 changing the contents of the value being printed (and getting it
10637 wrong).
10638
3d2c1d41
PA
106392011-02-02 Pedro Alves <pedro@codesourcery.com>
10640
10641 * xml-support.c (xml_find_attribute): New.
10642 (xinclude_start_include): Use it.
10643 * xml-support.h (xml_find_attribute): Declare.
10644 * memory-map.c (memory_map_start_memory)
10645 (memory_map_start_property): Use xml_find_attribute.
10646 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10647 xml_find_attribute.
10648 * remote.c (start_thread): Use xml_find_attribute.
10649 * solib-target.c (library_list_start_segment)
10650 (library_list_start_section, library_list_start_library)
10651 (library_list_start_list): Use xml_find_attribute.
10652 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10653 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10654 (tdesc_start_field): Use xml_find_attribute.
10655
0af3e2db
UW
106562011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10657
10658 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10659 (BUILD_OCL_VTYPES): Update.
10660
c1039e3c
JB
106612011-02-02 Joel Brobecker <brobecker@adacore.com>
10662
10663 * configure.ac: Work around non-GNU sed limitation when computing
10664 python version number.
10665 * configure: Regenerate.
10666
600ea1be
JK
106672011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10668
10669 Fix debug printing of TYPE_INSTANCE.
10670 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10671 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10672
56c12414
JK
106732011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10676 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10677 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10678 * ada-operator.inc: Rename the file to ...
10679 * ada-operator.def: ... here, wrap all the entries by macro OP.
10680 * expprint.c (op_name_standard): Remove all the entries. Include
10681 "std-operator.def" instead.
10682 * expression.h (enum exp_opcode): Include "std-operator.def" and
10683 "ada-operator.def". Move all the entries ...
10684 * std-operator.def: ... here, wrap all the entries by macro OP.
10685
c52b559d
PP
106862011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10687
10688 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10689 * breakpoint.c (remove_jit_event_breakpoints): New function.
10690 * jit.c (jit_descriptor_addr): Delete.
10691 (registering_code): Delete.
10692 (clear_int): Delete.
10693 (jit_inferior_data): New variable.
10694 (struct jit_inferior_data): New type.
10695 (get_jit_inferior_data): New function.
10696 (jit_inferior_data_cleanup): New function.
10697 (jit_read_descriptor): Adjust.
10698 (jit_register_code): Adjust.
10699 (jit_breakpoint_re_set_internal): New function; move code here ...
10700 (jit_inferior_init): ... from here.
10701 (jit_breakpoint_re_set): Adjust.
10702 (jit_reset_inferior_data_and_breakpoints): New function.
10703 (jit_inferior_created_observer): Adjust.
10704 (jit_inferior_exit_hook): Adjust.
10705 (jit_executable_changed_observer): New function.
10706 (jit_event_handler): Adjust.
10707 (_initialize_jit): Adjust.
10708
e839132d
MS
107092011-01-31 Michael Snyder <msnyder@vmware.com>
10710
10711 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10712 line.
10713
47a80e90
TT
107142011-01-31 Tom Tromey <tromey@redhat.com>
10715
10716 PR python/12216:
10717 * python/python.c (execute_gdb_command): Call
10718 prevent_dont_repeat.
10719 * top.c (suppress_dont_repeat): New global.
10720 (dont_repeat): Use it.
10721 (prevent_dont_repeat): New function.
10722 * command.h (prevent_dont_repeat): Declare.
10723
45a43567
TT
107242011-01-31 Tom Tromey <tromey@redhat.com>
10725
10726 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10727 * python/py-breakpoint.c (bppy_set_silent): Use
10728 breakpoint_set_silent.
10729 (bppy_set_thread): Use breakpoint_set_thread.
10730 (bppy_set_task): Use breakpoint_set_task.
10731 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10732 (breakpoint_set_task): Declare.
10733 (make_breakpoint_silent): Remove.
10734 * breakpoint.c (breakpoint_set_silent): New function.
10735 (breakpoint_set_thread): Likewise.
10736 (breakpoint_set_task): Likewise.
10737 (make_breakpoint_silent): Remove.
10738
09d682a4
TT
107392011-01-31 Tom Tromey <tromey@redhat.com>
10740
10741 * breakpoint.h (user_breakpoint_p): Declare.
10742 * breakpoint.c (user_breakpoint_p): New function.
10743 (breakpoint_1): Use it.
10744 (save_breakpoints): Likewise.
10745
9c4ea6c5
JB
107462011-01-31 Joel Brobecker <brobecker@adacore.com>
10747
10748 * configure.ac: Add handling of Python distribution on Windows.
10749 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10750 sysconfig variables are not defined, then do not use them.
10751 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10752 instead. On Windows, return all paths using forward-slashes
10753 rather than backslashes.
10754
ac534cba
JB
107552011-01-31 Joel Brobecker <brobecker@adacore.com>
10756
10757 * configure.ac: Remove fallback behavior for building
10758 against Python. Remove tweaking of Python include path.
10759 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10760 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10761 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10762 Always restore CPPFLAGS and LIBS after linking test.
10763 * configure: Regenerated.
10764 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10765 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10766 * python/python-internal.h: Adjust includes of Python .h files.
10767
c2f0d045
JB
107682011-01-31 Joel Brobecker <brobecker@adacore.com>
10769
10770 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10771 in error message.
10772
6b0c4c1f
JB
107732011-01-31 Joel Brobecker <brobecker@adacore.com>
10774
10775 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10776 value test.
10777
672c9795
YQ
107782011-01-31 Yao Qi <yao@codesourcery.com>
10779
10780 * arm-linux-nat.c: Update calls to regcache_register_status
10781 instead of regcache_valid_p.
10782 * aix-thread.c: Likewise.
10783 * i386gnu-nat.c: Likewise.
10784
80b23b6a
JK
107852011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 Fix crash.
10788 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10789 touching TYPE_FIELD_ARTIFICIAL.
10790
4cd712bd
RE
107912011-01-28 Richard Earnshaw <rearnsha@arm.com>
10792
10793 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10794 Committers.
10795
ffd5ec24
PA
107962011-01-28 Pedro Alves <pedro@codesourcery.com>
10797
10798 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10799 selected, don't try iterating over the traceframe's blocks.
10800 (tfile_has_stack): If there's no traceframe selected, then there's
10801 no stack.
10802 (tfile_has_registers): If there's no traceframe selected, then
10803 there's no registers.
10804
e8c9e0a1
PA
108052011-01-28 Pedro Alves <pedro@codesourcery.com>
10806
10807 * target.c (memory_xfer_partial): No need to restore shadows if we
10808 haven't read anything.
10809
de15c4ab
PA
108102011-01-28 Pedro Alves <pedro@codesourcery.com>
10811
10812 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10813 and val_print_scalar_formatted.
10814
9f41c731
PA
108152011-01-27 Pedro Alves <pedro@codesourcery.com>
10816
10817 * tracepoint.c (tfile_read): New.
10818 (tfile_open): Use it.
10819 (tfile_get_traceframe_address): Use it.
10820 (tfile_trace_find): Use it.
10821 (walk_blocks_callback_func): New typedef.
10822 (match_blocktype): New function.
10823 (traceframe_walk_blocks): New function.
10824 (traceframe_find_block_type): New function.
10825 (tfile_fetch_registers, tfile_xfer_partial)
10826 (tfile_get_trace_state_variable_value): Use
10827 traceframe_find_block_type and tfile_read.
10828
cdefc55d
KB
108292011-01-26 Kevin Buettner <kevinb@redhat.com>
10830
10831 * remote-mips.c: Add internationalization mark ups. Remove
10832 trailing \n from already marked up strings.
10833
a81766d8
TT
108342011-01-26 Tom Tromey <tromey@redhat.com>
10835
10836 * python/py-prettyprint.c (print_string_repr): Clear
10837 'addressprint' option when calling val_print_string.
10838 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10839 option when calling val_print_string.
10840
74aedc46
TT
108412011-01-26 Tom Tromey <tromey@redhat.com>
10842
10843 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10844 GDB_PY_LL_ARG.
10845 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10846 macros.
10847 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10848 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10849 (gdb_py_long_as_ulongest): New defines.
10850 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10851 (gdb_py_int_as_long): Declare.
10852 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10853 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10854 (valpy_long): Add comment.
10855 * python/py-utils.c (get_addr_from_python): Use
10856 gdb_py_long_as_ulongest. Handle overflow properly.
10857 (gdb_py_object_from_longest): New function.
10858 (gdb_py_object_from_ulongest): Likewise.
10859 (gdb_py_int_as_long): Likewise.
10860 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10861 * python/py-symtab.c (salpy_get_pc): Use
10862 gdb_py_long_from_ulongest.
10863 (salpy_get_line): Use PyInt_FromLong.
10864 * python/py-param.c (set_parameter_value): Use
10865 gdb_py_int_as_long.
10866 * python/py-lazy-string.c (stpy_get_address): Use
10867 gdb_py_long_from_ulongest.
10868 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10869 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10870 * python/py-breakpoint.c (bppy_set_thread): Use
10871 gdb_py_int_as_long.
10872 (bppy_set_task): Likewise.
10873 (bppy_set_ignore_count): Likewise.
10874 (bppy_set_hit_count): Likewise.
10875 * python/py-block.c (blpy_get_start): Use
10876 gdb_py_object_from_ulongest.
10877 (blpy_get_end): Likewise.
10878 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10879
e4f6d2ec
TJB
108802011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10881
10882 PR/symtab 11766:
10883 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10884 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10885 equality test for objfile, initialize addr_low if needed.
10886
b30aa278
PA
108872011-01-25 Pedro Alves <pedro@codesourcery.com>
10888
10889 * tui/tui-regs.c (tui_register_format): Remove dead code.
10890
ab2188aa
PA
108912011-01-25 Pedro Alves <pedro@codesourcery.com>
10892
10893 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10894 instead of print_scalar_formatted.
10895 (print_scalar_formatted): Don't handle 's' format strings here,
10896 and add an assertion that we never see such format here.
10897 * valprint.h (val_print_scalar_formatted): Declare.
10898 * valprint.c (val_print_scalar_formatted): New.
10899 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10900 instead of print_scalar_formatted.
10901 * jv-valprint.c (java_val_print): Ditto.
10902 * p-valprint.c (pascal_val_print): Ditto.
10903 * ada-valprint.c (ada_val_print_1): Ditto.
10904 * f-valprint.c (f_val_print): Ditto.
10905 * infcmd.c (registers_info): Ditto.
10906 * m2-valprint.c (m2_val_print): Ditto.
10907
66d61a4c
PA
109082011-01-25 Pedro Alves <pedro@codesourcery.com>
10909
10910 * m2-valprint.c (print_unbounded_array): Pass
10911 value_contents_for_printing rather than value_contents, to
10912 m2_print_array_contents. Also pass in the value.
10913
831adc1f
JK
109142011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10915
10916 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10917 (save_gdb_index_command): Switch to .gdb_index version 4.
10918
20622269
PA
109192011-01-25 Pedro Alves <pedro@codesourcery.com>
10920
10921 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10922 than frame_register, and always pass a valid value to val_print.
10923
585fdaa1
PA
109242011-01-25 Pedro Alves <pedro@codesourcery.com>
10925
10926 Centralize printing "<optimized out>".
10927
10928 * valprint.h (val_print_optimized_out): Declare.
10929 * cp-valprint.c (cp_print_value_fields): Use
10930 val_print_optimized_out.
10931 * jv-valprint.c (java_print_value_fields): Ditto.
10932 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10933 * printcmd.c (print_formatted): Ditto.
10934 * valprint.c (valprint_check_validity): Ditto.
10935 (value_check_printable): Ditto.
10936 (val_print_optimized_out): New.
10937
29ec5263
PA
109382011-01-25 Pedro Alves <pedro@codesourcery.com>
10939
10940 * infcmd.c (default_print_registers_info): Allocate values so to
10941 never pass a NULL value to val_print.
10942
de4127a3
PA
109432011-01-25 Pedro Alves <pedro@codesourcery.com>
10944
10945 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10946 boolean. Make sure to always pass a value that matches the
10947 contents buffer to callees. Preserve `address' for following
10948 iterations.
10949 * value.c (value_contents_for_printing_const): New.
10950 (value_address): Constify value argument.
10951 * value.h (value_contents_for_printing_const): Declare.
10952 (value_address): Constify value argument.
10953
ee99023e
PA
109542011-01-25 Pedro Alves <pedro@codesourcery.com>
10955
10956 * regcache.c (struct regcache_descr): Rename
10957 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10958 and sizeof_cooked_register_valid_p to
10959 sizeof_cooked_register_status.
10960 (init_regcache_descr): Adjust.
10961 (struct regcache): Rename register_valid_p field to
10962 register_status.
10963 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10964 (do_cooked_read): Adjust.
10965 (regcache_valid_p): Rename to ...
10966 (regcache_register_status): ... this. Adjust.
10967 (regcache_invalidate): Adjust.
10968 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10969 Adjust.
10970 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10971 as unavailable, not valid.
10972 (regcache_dump): Adjust.
10973 * regcache.h (enum register_status): New.
10974 (regcache_register_status): Declare.
10975 (regcache_invalidate): Delete declaration.
10976 * corelow.c (get_core_registers): Adjust.
10977 * tracepoint.c (tfile_fetch_registers): Adjust.
10978 * trad-frame.c (REG_VALUE): Rename to ...
10979 (TF_REG_VALUE): ... this.
10980 (REG_UNKNOWN): Rename to ...
10981 (TF_REG_UNKNOWN): ... this.
10982 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10983 * mi/mi-main.c (register_changed_p): Adjust.
10984
99e42fd8
PA
109852011-01-25 Pedro Alves <pedro@codesourcery.com>
10986
10987 * regcache.c (struct regcache_descr): Remove outdated comment.
10988 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10989 overallocate hack.
10990 (regcache_xmalloc): Rename to ...
10991 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10992 Allocate the regcache type accordingly.
10993 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10994 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10995 cooked registers, not raw.
10996 (regcache_dup_no_passthrough): Delete.
10997 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10998 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10999 mention obsolete write_register_bytes.
11000 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11001
f7605bc2
PA
110022011-01-25 Pedro Alves <pedro@codesourcery.com>
11003
11004 Stop remote_read_bytes from handling partial reads itself.
11005
11006 * remote-fileio.c: Include target.h.
11007 (remote_fileio_write_bytes): Delete.
11008 (remote_fileio_func_open, remote_fileio_func_write)
11009 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11010 target_read_memory.
11011 (remote_fileio_func_stat): Use target_read_memory and
11012 target_write_memory.
11013 (remote_fileio_func_gettimeofday): Use target_write_memory.
11014 (remote_fileio_func_system): Use target_read_memory.
11015 * remote.c (remote_write_bytes): Make it static.
11016 (remote_read_bytes): Don't handle partial reads here.
11017 * remote.h (remote_read_bytes): Delete declaration.
11018
efc0eabd
PA
110192011-01-25 Pedro Alves <pedro@codesourcery.com>
11020
11021 Simplify XML parsing a bit.
11022
11023 * xml-support.h (gdb_xml_parse_quick): Declare.
11024 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11025 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11026 parameter.
11027 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11028 gdb_xml_create_parser_and_cleanup_1.
11029 (gdb_xml_parse_quick): New.
11030 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11031 * osdata.c (osdata_parse): Ditto.
11032 * remote.c (remote_threads_info): Ditto.
11033 * solib-target.c (solib_target_parse_libraries): Ditto.
11034 * xml-syscall.c (syscall_parse_xml): Ditto.
11035 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11036
314d366a
KB
110372011-01-24 Kevin Buettner <kevinb@redhat.com>
11038
11039 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11040 with remote-mips.o added to gdb_target_obs.
11041 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11042
a491d753
PA
110432011-01-24 Pedro Alves <pedro@codesourcery.com>
11044
11045 * ada-valprint.c (val_print_packed_array_elements): Pass the
11046 correct struct value to val_print.
11047 (ada_val_print_1): Ditto.
11048
490f124f
PA
110492011-01-24 Pedro Alves <pedro@codesourcery.com>
11050
11051 Don't lose embedded_offset in printing routines throughout.
11052
11053 * valprint.h (val_print_array_elements): Change prototype.
11054 * valprint.c (val_print_array_elements): Add `embedded_offset'
11055 parameter, and adjust to pass it down to val_print, while passing
11056 `valaddr' or `address' unmodified. Take embedded_offset into
11057 account when checking repetitions.
11058 * c-valprint.c (c_val_print): Pass embedded_offset to
11059 val_print_array_elements instead of adjusting `valaddr' and
11060 `address'.
11061 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11062 embedded_offset to val_print_array_elements instead of adjusting
11063 `valaddr'.
11064 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11065 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11066 val_print_array_elements and pascal_object_print_value_fields
11067 instead of adjusting `valaddr'.
11068 (pascal_object_print_value_fields): Add `offset' parameter, and
11069 adjust to use it.
11070 (pascal_object_print_value): Add `offset' parameter, and adjust to
11071 use it.
11072 (pascal_object_print_static_field): Use
11073 value_contents_for_printing/value_embedded_offset, rather than
11074 value_contents.
11075 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11076 parameter, and adjust to use it. Use
11077 value_contents_for_printing/value_embedded_offset, rather than
11078 value_contents.
11079 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11080 (ada_val_print_array): Add `offset' parameter, and adjust to use
11081 it.
11082 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11083 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11084 Instead work with offsets. Use
11085 value_contents_for_printing/value_embedded_offset, rather than
11086 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11087 and use value_from_pointer to extract a target pointer, rather
11088 than value_from_longest.
11089 (print_variant_part): Add `offset' parameter. Replace
11090 `outer_valaddr' parameter by a new `outer_offset' parameter.
11091 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11092 (ada_value_print): Use
11093 value_contents_for_printing/value_embedded_offset, rather than
11094 value_contents.
11095 (print_record): Add `offset' parameter, and adjust to pass it
11096 down.
11097 (print_field_values): Add `offset' parameter. Replace
11098 `outer_valaddr' parameter by a new `outer_offset' parameter.
11099 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11100 Use value_contents_for_printing/value_embedded_offset, rather than
11101 value_contents.
11102 * d-valprint.c (dynamic_array_type): Use
11103 value_contents_for_printing/value_embedded_offset, rather than
11104 value_contents.
11105 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11106 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11107 (java_print_value_fields): Take `offset' into account. Don't
11108 re-adjust `valaddr'. Instead pass down adjusted offsets.
11109 (java_val_print): Take `embedded_offset' into account. Pass it to
11110 java_print_value_fields.
11111 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11112 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11113 down adjusted offsets.
11114 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11115 (f_val_print): Take `embedded_offset' into account.
11116
7bfc9434
JB
111172011-01-21 Joel Brobecker <brobecker@adacore.com>
11118
11119 * inflow.c: Include "gdbcmd.h".
11120 (interactive_mode): New static global, moved here from top.c.
11121 (show_interactive_mode): New function, moved here from top.c.
11122 use gdb_has_a_terminal instead of input_from_terminal_p to
11123 determine the current mode.
11124 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11125 setting.
11126 (_initialize_inflow): Add the "set/show interactive-mode"
11127 commands. Moved here from top.c, after having adjusted slightly
11128 the help text.
11129 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11130 to inflow.c.
11131 (input_from_terminal_p): Remove handling of "interactive-mode"
11132 setting, moved to infow.c.
11133 (init_main): Remove creation of the "set/show interactive-mode"
11134 commands, moved to inflow.c.
11135
44603653
JB
111362011-01-19 Joel Brobecker <brobecker@adacore.com>
11137
11138 * NEWS: Add entry for native ia64-hpux support.
11139
4694da01
TT
111402011-01-19 Tom Tromey <tromey@redhat.com>
11141
11142 PR mi/8618:
11143 * thread.c (free_thread): Free 'name'.
11144 (print_thread_info): Emit thread name. Change CLI output.
11145 (thread_name_command): New function.
11146 (do_captured_thread_select): Emit newline.
11147 (_initialize_thread): Register 'thread name' command.
11148 * target.h (struct target_ops) <to_thread_name>: New field.
11149 (target_thread_name): New macro.
11150 * target.c (update_current_target): Handle to_thread_name.
11151 * python/py-infthread.c (thpy_get_name): New function.
11152 (thpy_set_name): Likewise.
11153 (thread_object_getset): Add "name".
11154 * linux-nat.c (linux_nat_thread_name): New function.
11155 (linux_nat_add_target): Set to_thread_name.
11156 * gdbthread.h (struct thread_info) <name>: New field.
11157
10d44370
JB
111582011-01-18 Joel Brobecker <brobecker@adacore.com>
11159
11160 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11161 (ada_val_print_1): Likewise.
11162
e3acb115
JB
111632011-01-18 Joel Brobecker <brobecker@adacore.com>
11164
11165 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11166 upper limit address is not greater than the function end address
11167 when the upper limit could not be computed using the debugging
11168 info.
11169
dc92e161
TT
111702011-01-17 Tom Tromey <tromey@redhat.com>
11171
11172 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11173 get_regcomp_error.
11174 * utils.c: Include gdb_regex.h.
11175 (do_regfree_cleanup): New function.
11176 (make_regfree_cleanup): Likewise.
11177 (get_regcomp_error): Likewise.
11178 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11179
f55af66d
TT
111802011-01-17 Tom Tromey <tromey@redhat.com>
11181
11182 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11183 re_compile_fastmap.
11184
a5a44b53
PM
111852011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11186
11187 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11188 for internal variables.
11189 (last_was_structop): New static variable.
11190 (COMPLETE): New token.
11191 (field_exp): New rule to group all '.' suffix handling.
11192 Add mark_struct_expression calls when approriate to be able
11193 to correctly find fields for completion.
11194 (yylex): Adapt to handle field completion and set INTVAR when
11195 required.
11196
2c291032
YQ
111972011-01-14 Yao Qi <yao@codesourcery.com>
11198
11199 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11200 save_reggroup, restore_reggroup and all_reggroup.
11201
447b483c
JB
112022011-01-14 Joel Brobecker <brobecker@adacore.com>
11203
11204 * ada-valprint. (ada_printchar): Use the correct type length
11205 in call to ada_emit_char.
11206 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11207
7b64a93b
PM
112082011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11209
11210 * solib-som.h (hpux_major_release): Declare variable here.
11211 * solib-som.c: Remove <sys/utsname.h> header.
11212 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11213 (hpux_major_release): Make global, change default value to
11214 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11215 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11216 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11217 Add "solib-som.h" header.
11218 (set_hpux_major_release): New function.
11219 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11220
4e18c053
MF
112212011-01-14 Mike Frysinger <vapier@gentoo.org>
11222
11223 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11224
a9df6b22
JB
112252011-01-14 Joel Brobecker <brobecker@adacore.com>
11226
11227 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11228 new-line at end of warning message.
11229 (ia64_hpux_store_register): Remove trailing new-line at end of
11230 error message.
11231 * ia64-hpux-tdep.c: Rephrase comment.
11232 * solib-ia64-hpux.c (struct dld_info): Change type of field
11233 dld_flags from "long long" to ULONGEST.
11234
ecb956dd
PA
112352011-01-14 Pedro Alves <pedro@codesourcery.com>
11236
11237 * target.h (deprecated_child_ops): Delete declaration.
11238 * target.c (deprecated_child_ops): Delete definition.
11239
76adfcae
PA
112402011-01-14 Pedro Alves <pedro@codesourcery.com>
11241
11242 * Makefile.in (hpux-thread.o): Delete rule.
11243 * configure.ac: Don't check for HPUX DCE threads support.
11244 * configure, config.in: Regenerate.
11245 * hppa-hpux-nat.c (child_suppress_run): Delete.
11246 (hppa_hpux_child_can_run): Delete.
11247 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11248 * hpux-thread.c: Delete.
11249
042e866e
JB
112502011-01-13 Joel Brobecker <brobecker@adacore.com>
11251
11252 * hpux-thread.c (hpux_pid_to_str): Delete.
11253
4ffa5a33
JB
112542011-01-13 Joel Brobecker <brobecker@adacore.com>
11255
11256 * ada-valprint.c (ada_emit_char): Remove strange code.
11257 Check that c is <= UCHAR_MAX before passing it to isascii.
11258 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11259
de8fa76c
JB
112602011-01-13 Joel Brobecker <brobecker@adacore.com>
11261
11262 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11263 to the case where instream is stdin.
11264
c4de7027
JB
112652011-01-13 Joel Brobecker <brobecker@adacore.com>
11266
11267 * ia64-tdep.h (struct regcache): Forward declare.
11268 (struct ia64_infcall_ops): New struct type.
11269 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11270 and "infcall_ops".
11271 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11272 Renames ia64_find_global_pointer.
11273 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11274 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11275 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11276 methods.
11277 (ia64_infcall_ops): New static global constant.
11278 (ia64_gdbarch_init): Set tdep->infcall_ops.
11279 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11280 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11281 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11282 (ia64_hpux_dummy_code): New static global constant.
11283 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11284 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11285 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11286 New function.
11287 (ia64_hpux_infcall_ops): New static global constant.
11288 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11289 for inferior function calls to work properly on ia64-hpux.
11290
77ca787b
JB
112912011-01-13 Joel Brobecker <brobecker@adacore.com>
11292
11293 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11294 * ia64-tdep.h (struct frame_info): forward declaration.
11295 (struct gdbarch_tdep): Add field size_of_register_frame.
11296 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11297 to determine the size of the register frame.
11298 (ia64_size_of_register_frame): New function.
11299 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11300 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11301 (IA64_HPUX_UREG_REASON): New macro.
11302 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11303 New functions.
11304 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11305 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11306 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11307 objects.
11308
92c9a463
JB
113092011-01-13 Joel Brobecker <brobecker@adacore.com>
11310
11311 Add support for ia64-hpux.
11312 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11313 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11314
11315 * configure.host: Add handling for ia64-hpux hosts. Add associated
11316 floatformats.
11317 * configure.tgt: Add handling for ia64-hpux targets.
11318 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11319 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11320 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11321
f688d93f
JB
113222011-01-13 Joel Brobecker <brobecker@adacore.com>
11323
11324 [ttrace] Compute thread list immediately after attach.
11325 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11326 New subprogram.
11327 (inf_ttrace_attach): Use it.
11328
1b89e62f
JB
113292011-01-13 Joel Brobecker <brobecker@adacore.com>
11330
11331 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11332 if we could not determine the frame's function address. Instead,
11333 use the frame's PC, and then continue.
11334
3e5e6e2a
JB
113352011-01-13 Joel Brobecker <brobecker@adacore.com>
11336
11337 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11338 not already defined.
11339
825d6d8a
JB
113402011-01-13 Joel Brobecker <brobecker@adacore.com>
11341
11342 * ia64-tdep.c (ia64_struct_type_p): New function.
11343 (ia64_extract_return_value): Handle integral values that are
11344 less than 8 bytes long.
11345 (ia64_push_dummy_call): Likewise.
11346
7458e667
JB
113472011-01-13 Joel Brobecker <brobecker@adacore.com>
11348
11349 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11350 floatformat_ia64_ext.
11351 (floatformat_ia64_ext_big): New static const.
11352 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11353
1b05df00
TT
113542011-01-12 Tom Tromey <tromey@redhat.com>
11355
11356 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11357 messages.
11358 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11359 (mi_cmd_thread_list_ids): Likewise.
11360 (mi_cmd_data_list_changed_registers): Likewise.
11361 (mi_cmd_data_list_register_values): Likewise.
11362 (mi_cmd_data_write_register_values): Likewise.
11363 (mi_cmd_data_evaluate_expression): Likewise.
11364 (mi_cmd_data_read_memory): Likewise.
11365 (mi_cmd_data_read_memory_bytes): Likewise.
11366 (mi_cmd_data_write_memory): Likewise.
11367 (mi_cmd_enable_timings): Likewise.
11368 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11369 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11370 (mi_cmd_var_delete): Likewise.
11371 (mi_cmd_var_set_format): Likewise.
11372 (mi_cmd_var_show_format): Likewise.
11373 (mi_cmd_var_info_num_children): Likewise.
11374 (mi_cmd_var_list_children): Likewise.
11375 (mi_cmd_var_info_type): Likewise.
11376 (mi_cmd_var_info_expression): Likewise.
11377 (mi_cmd_var_show_attributes): Likewise.
11378 (mi_cmd_var_assign): Likewise.
11379 (mi_cmd_var_update): Likewise.
11380 (mi_cmd_enable_pretty_printing): Likewise.
11381 (mi_cmd_var_set_update_range): Likewise.
11382 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11383 messages.
11384 (mi_cmd_target_file_put): Likewise.
11385 (mi_cmd_target_file_delete): Likewise.
11386 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11387 messages.
11388 (mi_cmd_stack_info_depth): Likewise.
11389 (mi_cmd_stack_list_locals): Likewise.
11390 (mi_cmd_stack_list_args): Likewise.
11391 (mi_cmd_stack_select_frame): Likewise.
11392 (mi_cmd_stack_select_frame): Likewise.
11393 (mi_cmd_stack_info_frame): Likewise.
11394 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11395 messages.
11396 (mi_cmd_file_list_exec_source_files): Likewise.
11397 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11398 (mi_cmd_env_cd): Likewise.
11399 (mi_cmd_env_path): Likewise.
11400 (mi_cmd_env_dir): Likewise.
11401 (mi_cmd_inferior_tty_show): Likewise.
11402 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11403 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11404 (mi_cmd_break_watch): Likewise.
11405
ad422571
TJB
114062011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11407
11408 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11409 (ppc_linux_insert_hw_breakpoint): Likewise.
11410 (ppc_linux_remove_hw_breakpoint): Likewise.
11411 (ppc_linux_insert_watchpoint): Likewise.
11412
c2ff108b
JK
114132011-01-12 Andrew Burgess <aburgess@broadcom.com>
11414 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 PR fortran/11104 and DWARF unbound arrays detection.
11417 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11418 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11419 unspecified upper bound.
11420 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11421 variables array_size_array, tmp_type and offset_item. New variable
11422 array. Remove call to f77_get_upperbound. New variables array_type
11423 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11424 the final call to deprecated_set_value_type.
11425
41e8491f
JK
114262011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11427
11428 Make value allocations more lazy.
11429 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11430 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11431 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11432 instead of allocate_value and set_value_lazy.
11433 * findvar.c (value_of_register_lazy): Likewise.
11434 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11435 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11436 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11437 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11438 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11439 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11440 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11441 the end, remove set_value_lazy there.
11442 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11443 instead of allocate_value and set_value_lazy when possible.
11444 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11445 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11446 of allocate_value and set_value_lazy.
11447 (value_from_contents_and_address): Use allocate_value_lazy instead of
11448 allocate_value and set_value_lazy when possible.
11449
b716877b
AB
114502011-01-12 Andrew Burgess <aburgess@broadcom.com>
11451
11452 * disasm.c (dump_insns): Support dumping opcodes for MI.
11453 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11454 dumping of instruction opcodes.
11455
d5ae309f
JB
114562011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11457
11458 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11459 appropiately.
11460
98871305
TT
114612011-01-11 Tom Tromey <tromey@redhat.com>
11462
11463 * thread.c (do_captured_thread_select): Emit newline before
11464 printing frame.
11465
c378eb4e
MS
114662011-01-11 Michael Snyder <msnyder@vmware.com>
11467
11468 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11469 * score-tdep.c: Ditto.
11470 * score-tdep.h: Ditto.
11471 * ser-base.c: Ditto.
11472 * ser-go32.c: Ditto.
11473 * serial.c: Ditto.
11474 * serial.h: Ditto.
11475 * ser-mingw.c: Ditto.
11476 * ser-pipe.c: Ditto.
11477 * ser-tcp.c: Ditto.
11478 * ser-unix.c: Ditto.
11479 * sh64-tdep.c: Ditto.
11480 * shnbsd-nat.c: Ditto.
11481 * sh-tdep.c: Ditto.
11482 * sh-tdep.h: Ditto.
11483 * solib.c: Ditto.
11484 * solib-darwin.c: Ditto.
11485 * solib-frv.c: Ditto.
11486 * solib.h: Ditto.
11487 * solib-irix.c: Ditto.
11488 * solib-osf.c: Ditto.
11489 * solib-pa64.c: Ditto.
11490 * solib-som.c: Ditto.
11491 * solib-spu.c: Ditto.
11492 * solib-sunos.c: Ditto.
11493 * solib-svr4.c: Ditto.
11494 * solist.h: Ditto.
11495 * sol-thread.c: Ditto.
11496 * somread.c: Ditto.
11497 * source.c: Ditto.
11498 * source.h: Ditto.
11499 * sparc64-linux-tdep.c: Ditto.
11500 * sparc64-tdep.c: Ditto.
11501 * sparc-linux-nat.c: Ditto.
11502 * sparc-linux-tdep.c: Ditto.
11503 * sparc-sol2-nat.c: Ditto.
11504 * sparc-sol2-tdep.c: Ditto.
11505 * sparc-tdep.c: Ditto.
11506 * sparc-tdep.h: Ditto.
11507 * spu-tdep.c: Ditto.
11508 * stabsread.c: Ditto.
11509 * stabsread.h: Ditto.
11510 * stack.c: Ditto.
11511 * symfile.c: Ditto.
11512 * symfile.h: Ditto.
11513 * symmisc.c: Ditto.
11514 * symtab.c: Ditto.
11515 * symtab.h: Ditto.
11516 * target.c: Ditto.
11517 * target-descriptions.c: Ditto.
11518 * target-descriptions.h: Ditto.
11519 * target.h: Ditto.
11520 * target-memory.c: Ditto.
11521 * terminal.h: Ditto.
11522 * thread.c: Ditto.
11523 * top.c: Ditto.
11524 * tracepoint.c: Ditto.
11525 * tracepoint.h: Ditto.
11526 * trad-frame.h: Ditto.
11527 * typeprint.c: Ditto.
11528
581e13c1
MS
115292011-01-11 Michael Snyder <msnyder@vmware.com>
11530
11531 * ui-file.c: Comment cleanup, mostly periods and spaces.
11532 * ui-file.h: Ditto.
11533 * ui-out.c: Ditto.
11534 * ui-out.h: Ditto.
11535 * utils.c: Ditto.
11536 * v850-tdep.c: Ditto.
11537 * valarith.c: Ditto.
11538 * valops.c: Ditto.
11539 * valprint.c: Ditto.
11540 * valprint.h: Ditto.
11541 * value.c: Ditto.
11542 * value.h: Ditto.
11543 * varobj.c: Ditto.
11544 * varobj.h: Ditto.
11545 * vax-tdep.c: Ditto.
11546 * vec.c: Ditto.
11547 * vec.h: Ditto.
11548 * version.h: Ditto.
11549 * windows-nat.c: Ditto.
11550 * windows-tdep.c: Ditto.
11551 * xcoffread.c: Ditto.
11552 * xcoffsolib.c: Ditto.
11553 * xml-support.c: Ditto.
11554 * xstormy16-tdep.c: Ditto.
11555 * xtensa-tdep.c: Ditto.
11556 * xtensa-tdep.h: Ditto.
11557
90e4670f
TJB
115582011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11559
11560 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11561 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11562
e09342b5
TJB
115632011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11564 Thiago Jung Bauermann <bauerman@br.ibm.com>
11565
11566 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11567 * breakpoint.h
e09342b5
TJB
11568 (struct breakpoint_ops) <resources_needed>: New method.
11569 Initialize to NULL in all existing breakpoint_ops instances.
11570 (struct breakpoint) <exact>: New field.
11571 (target_exact_watchpoints): Declare external global.
11572 * breakpoint.c (target_exact_watchpoints): New global flag.
11573 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11574 b->enable_state to bp_enabled before calling
11575 hw_watchpoint_used_count.
11576 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11577 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11578 if available.
11579 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11580 if the watchpoint is exact.
11581 (resources_needed_watchpoint): New function.
11582 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11583 (watch_command_1): Set b->exact if the user asked for an exact
11584 watchpoint and one can be set.
11585 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11586 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11587 the user asks for an exact watchpoint and one can be set. Return
11588 number of needed debug registers to watch the expression.
11589 * gdbtypes.c (is_scalar_type): New function, based on
11590 valprint.c:scalar_type_p.
11591 (is_scalar_type_recursive): New function.
11592 * gdbtypes.h (is_scalar_type_recursive): Declare.
11593 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11594 handle regions when ranged watchpoints are available.
11595 (create_watchpoint_request): New function.
11596 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11597 create_watchpoint_request.
11598 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11599 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11600 `set powerpc' and `show powerpc' commands.
11601 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11602 Mention documentation comment in the target macro.
11603 (target_region_ok_for_hw_watchpoint): Document return value.
11604
9fa40276
TJB
116052011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11606
11607 * breakpoint.c (update_watchpoint): Decide on using a software or
11608 hardware watchpoint after the bp_locations are created.
11609
77b06cd7
TJB
116102010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11611
11612 Convert hardware watchpoints to use breakpoint_ops.
11613 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11614 <insert_location>: ... this. Return int instead of void.
11615 Accept pointer to struct bp_location instead of pointer to
11616 struct breakpoint. Adapt all implementations.
f2eb0bc8 11617 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11618 <remove_location>: ... this. Accept pointer to struct bp_location
11619 instead of pointer to struct breakpoint. Adapt all implementations.
11620 * breakpoint.c (insert_catchpoint): Delete function.
11621 (insert_bp_location): Call the watchpoint or catchpoint's
11622 breakpoint_ops.insert method.
11623 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11624 breakpoint_ops.remove method.
11625 (insert_watchpoint, remove_watchpoint): New functions.
11626 (watchpoint_breakpoint_ops): New structure.
11627 (watch_command_1): Initialize the OPS field.
11628 * inf-child.c (inf_child_insert_fork_catchpoint)
11629 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11630 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11631 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11632 Delete functions.
11633 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11634 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11635 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11636 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11637 * target.c (update_current_target): Change default implementation of
11638 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11639 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11640 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11641 to_set_syscall_catchpoint to return_one.
11642 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11643 (debug_to_insert_exec_catchpoint): Report return value.
11644 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11645 (to_insert_exec_catchpoint): Change declaration to return int instead
11646 of void.
11647
9b20d036
MS
116482011-01-11 Michael Snyder <msnyder@vmware.com>
11649
11650 * arm-tdep.c: Internationalization.
11651 * c-lang.c: Ditto.
11652 * charset.c: Ditto.
11653 * fork-child.c: Ditto.
11654 * nto-procfs.c: Ditto.
11655 * ppc-sysv-tdep.c: Ditto.
11656 * procfs.c: Ditto.
11657 * remote-mips.c: Ditto.
11658 * remote.c: Ditto.
11659 * rs6000-nat.c: Ditto.
11660 * rs6000-tdep.c: Ditto.
11661 * target.c: Ditto.
11662 * valops.c: Ditto.
11663 * value.c: Ditto.
11664 * xml-support.c: Ditto.
11665 * mi/mi-cmd-break.c: Ditto.
11666 * mi/mi-cmd-var.c: Ditto.
11667 * mi/mi-interp.c: Ditto.
11668 * mi/mi-main.c: Ditto.
11669
dae477fe
AB
116702011-01-11 Andrew Burgess <aburgess@broadcom.com>
11671
11672 * remote-sim.c (gdbsim_store_register): Update API to
11673 sim_store_register to check more error conditions.
11674
0df8b418
MS
116752011-01-10 Michael Snyder <msnyder@vmware.com>
11676
11677 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11678 * nto-tdep.c: Ditto.
11679 * nto-tdep.h: Ditto.
11680 * objc-exp.y: Ditto.
11681 * objc-lang.c: Ditto.
11682 * objfiles.c: Ditto.
11683 * objfiles.h: Ditto.
11684 * observer.c: Ditto.
11685 * opencl-lang.c: Ditto.
11686 * osabi.c: Ditto.
11687 * parse.c: Ditto.
11688 * parser-defs.h: Ditto.
11689 * p-exp.y: Ditto.
11690 * p-lang.c: Ditto.
11691 * posix-hdep.c: Ditto.
11692 * ppcbug-rom.c: Ditto.
11693 * ppc-linux-nat.c: Ditto.
11694 * ppc-linux-tdep.c: Ditto.
11695 * ppc-linux-tdep.h: Ditto.
11696 * ppcnbsd-tdep.c: Ditto.
11697 * ppcobsd-tdep.c: Ditto.
11698 * ppcobsd-tdep.h: Ditto.
11699 * ppc-sysv-tdep.c: Ditto.
11700 * ppc-tdep.h: Ditto.
11701 * printcmd.c: Ditto.
11702 * proc-abi.c: Ditto.
11703 * proc-flags.c: Ditto.
11704 * procfs.c: Ditto.
11705 * proc-utils.h: Ditto.
11706 * progspace.h: Ditto.
11707 * prologue-value.c: Ditto.
11708 * prologue-value.h: Ditto.
11709 * psympriv.h: Ditto.
11710 * psymtab.c: Ditto.
11711 * p-typeprint.c: Ditto.
11712 * p-valprint.c: Ditto.
11713 * ravenscar-sparc-thread.c: Ditto.
11714 * ravenscar-thread.c: Ditto.
11715 * ravenscar-thread.h: Ditto.
11716 * record.c: Ditto.
11717 * regcache.c: Ditto.
11718 * regcache.h: Ditto.
11719 * remote.c: Ditto.
11720 * remote-fileio.c: Ditto.
11721 * remote-fileio.h: Ditto.
11722 * remote.h: Ditto.
11723 * remote-m32r-sdi.c: Ditto.
11724 * remote-mips.c: Ditto.
11725 * remote-sim.c: Ditto.
11726 * rs6000-aix-tdep.c: Ditto.
11727 * rs6000-nat.c: Ditto.
11728 * rs6000-tdep.c: Ditto.
11729
0d7a18f7
MS
117302011-01-10 Michael Snyder <msnyder@vmware.com>
11731
11732 * charset.c (validate): Internationalization.
11733 * coffread.c (read_one_sym): Ditto.
11734 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11735 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11736 * inflow.c (new_tty): Ditto.
11737 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11738 * m32c-tdep.c (m32c_return_value): Ditto.
11739 * mep-tdep.c (mep_store_return_value): Ditto.
11740 * score-tdep.c (score7_fetch_insn): Ditto.
11741 * ser-mingw.c (pipe_windows_open): Ditto.
11742 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11743 * spu-tdep.c (spu_register_type): Ditto.
11744 * tracepoint.c (trace_find_command): Ditto.
11745 * valarith.c (value_pos): Ditto.
11746
9a153e0b
JB
117472011-01-10 Joel Brobecker <brobecker@adacore.com>
11748
11749 * ada-valprint.c (printstr): Minor comment reformatting.
11750
35ecd2d6
MS
117512011-01-08 Michael Snyder <msnyder@vmware.com>
11752
11753 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11754 markup.
11755
1777feb0
MS
117562011-01-08 Michael Snyder <msnyder@vmware.com>
11757
11758 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11759 * hppa-hpux-tdep.c: Ditto.
11760 * hppa-linux-nat.c: Ditto.
11761 * hppa-linux-tdep.c: Ditto.
11762 * hppanbsd-tdep.c: Ditto.
11763 * hppa-tdep.c: Ditto.
11764 * hppa-tdep.h: Ditto.
11765 * hpux-thread.c: Ditto.
11766 * i386-cygwin-tdep.c: Ditto.
11767 * i386-darwin-nat.c: Ditto.
11768 * i386gnu-nat.c: Ditto.
11769 * i386-linux-nat.c: Ditto.
11770 * i386-linux-tdep.c: Ditto.
11771 * i386-nat.c: Ditto.
11772 * i386-nat.h: Ditto.
11773 * i386nbsd-tdep.c: Ditto.
11774 * i386-sol2-nat.c: Ditto.
11775 * i386-stub.c: Ditto.
11776 * i386-tdep.c: Ditto.
11777 * i386-tdep.h: Ditto.
11778 * i387-tdep.c: Ditto.
11779 * ia64-linux-nat.c: Ditto.
11780 * ia64-linux-tdep.c: Ditto.
11781 * ia64-tdep.c: Ditto.
11782 * infcall.c: Ditto.
11783 * infcall.h: Ditto.
11784 * infcmd.c: Ditto.
11785 * inferior.c: Ditto.
11786 * inferior.h: Ditto.
11787 * infloop.c: Ditto.
11788 * inflow.c: Ditto.
11789 * infrun.c: Ditto.
11790 * interps.c: Ditto.
11791 * interps.h: Ditto.
11792 * iq2000-tdep.c: Ditto.
11793 * irix5-nat.c: Ditto.
11794 * jit.c: Ditto.
11795 * jit.h: Ditto.
11796 * jv-exp.y: Ditto.
11797 * jv-lang.c: Ditto.
11798 * jv-lang.h: Ditto.
11799 * jv-typeprint.c: Ditto.
11800 * jv-valprint.c: Ditto.
11801 * language.c: Ditto.
11802 * language.h: Ditto.
11803 * linespec.c: Ditto.
11804 * linux-fork.c: Ditto.
11805 * linux-nat.c: Ditto.
11806 * linux-thread-db.c: Ditto.
11807 * lm32-tdep.c: Ditto.
11808
025bb325
MS
118092011-01-08 Michael Snyder <msnyder@vmware.com>
11810
11811 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11812 * m2-lang.c: Ditto.
11813 * m2-typeprint.c: Ditto.
11814 * m2-valprint.c: Ditto.
11815 * m32c-tdep.c: Ditto.
11816 * m32r-linux-nat.c: Ditto.
11817 * m32r-rom.c: Ditto.
11818 * m32r-tdep.c: Ditto.
11819 * m32r-tdep.h: Ditto.
11820 * m68hc11-tdep.c: Ditto.
11821 * m58klinux-nat.c: Ditto.
11822 * m68k-tdep.c: Ditto.
11823 * m88k-tdep.c: Ditto.
11824 * m88k-tdep.h: Ditto.
11825 * machoread.c: Ditto.
11826 * macrocmd.c: Ditto.
11827 * macroexp.c: Ditto.
11828 * macrotab.c: Ditto.
11829 * main.c: Ditto.
11830 * maint.c: Ditto.
11831 * mdebugread.c: Ditto.
11832 * mdebugread.h: Ditto.
11833 * memattr.c: Ditto.
11834 * memattr.h: Ditto.
11835 * memory-map.h: Ditto.
11836 * mep-tdep.c: Ditto.
11837 * microblaze-rom.c: Ditto.
11838 * microblaze-tdep.c: Ditto.
11839 * minsyms.c: Ditto.
11840 * mips-irix-tdep.c: Ditto.
11841 * mips-linux-nat.c: Ditto.
11842 * mips-linux-tdep.c: Ditto.
11843 * mips-linux-tdep.h: Ditto.
11844 * mipsnbsd-nat.c: Ditto.
11845 * mipsnbsd-tdep.c: Ditto.
11846 * mipsread.c: Ditto.
11847 * mips-tdep.c: Ditto.
11848 * mips-tdep.h: Ditto.
11849 * mn10300-linux-tdep.c: Ditto.
11850 * mn10300-tdep.c: Ditto.
11851 * mn10300-tdep.h: Ditto.
11852 * monitor.c: Ditto.
11853 * monitor.h: Ditto.
11854 * moxie-tdep.c: Ditto.
11855 * moxie-tdep.h: Ditto.
11856 * mt-tdep.c: Ditto.
11857
1642781b
MF
118582011-01-08 Mike Frysinger <vapier@gentoo.org>
11859
11860 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11861
394b0adb
JB
118622011-01-08 Robert Millan <rmh@gnu.org>
11863
11864 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11865
b670013c
MS
118662011-01-07 Michael Snyder <msnyder@vmware.com>
11867
11868 * charset.c (_initialize_charset): Fix typo in string.
11869
a743e542
MS
118702011-01-07 Michael Snyder <msnyder@vmware.com>
11871
11872 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11873 for i18n.
f2eb0bc8 11874 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11875 Split line so that operator goes to beginning of line.
11876 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11877 assignment out of if statement.
11878
0963b4bd
MS
118792011-01-07 Michael Snyder <msnyder@vmware.com>
11880
11881 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11882 * ada-lang.h: Ditto.
11883 * ada-tasks.c: Ditto.
11884 * ada-valprint.c: Ditto.
11885 * aix-threads.c: Ditto.
11886 * alpha-linux-nat.c: Ditto.
11887 * alpha-linux-tdep.c: Ditto.
11888 * alpha-mdebug-tdep.c: Ditto.
11889 * alpha-nat.c: Ditto.
11890 * alpha-osf1-tdep.c: Ditto.
11891 * alpha-tdep.c: Ditto.
11892 * alphabsd-nat.c: Ditto.
11893 * alphabsd-tdep.c: Ditto.
11894 * amd64-darwin-tdep.c: Ditto.
11895 * amd64-linux-nat.c: Ditto.
11896 * amd64-linux-tdep.c: Ditto.
11897 * amd64-sol2-tdep.c: Ditto.
11898 * amd64-tdep.c: Ditto.
11899 * amd64-fbsd-tdep.c: Ditto.
11900 * amd64-nbsd-tdep.c: Ditto.
11901 * amd64-obsd-tdep.c: Ditto.
11902 * amd64-linux-nat.c: Ditto.
11903 * amd64-linux-tdep.c: Ditto.
11904 * arm-tdep.c: Ditto.
11905 * arm-tdep.h: Ditto.
11906 * armnbsd-nat.c: Ditto.
11907 * avr-tdep.c: Ditto.
11908 * bfin-tdep.c: Ditto.
11909 * bsd-kvm.c: Ditto.
11910 * c-typeprintc: Ditto.
11911 * c-valprint.c: Ditto.
11912 * coff-pe-read.h: Ditto.
11913 * coffreead.c: Ditto.
11914 * cris-tdep.c: Ditto.
11915 * d-lang.c: Ditto.
11916 * darwin-nat-info.c: Ditto.
11917 * darwin-nat.c: Ditto.
11918 * dbug-rom.c: Ditto.
11919 * dbxread.c: Ditto.
11920 * dcache.c: Ditto.
11921 * dcache.h: Ditto.
11922 * dec-thread.c: Ditto.
11923 * defs.h: Ditto.
11924 * demangle.c: Ditto.
11925 * dicos-tdep.c: Ditto.
11926 * dictionary.c: Ditto.
11927 * dictionary.h: Ditto.
11928 * dink32-rom.c: Ditto.
11929 * disasm.c: Ditto.
11930 * doublest.c: Ditto.
11931 * dsrec.c: Ditto.
11932 * dummy-frame.c: Ditto.
11933 * dwarf2-frame.c: Ditto.
11934 * dwarf2expr.c: Ditto.
11935 * dwarf2loc.c: Ditto.
11936 * dwarf2read.c: Ditto.
11937 * elfread.c: Ditto.
11938 * environ.c: Ditto.
11939 * eval.c: Ditto.
11940 * event-top.h: Ditto.
11941 * exceptions.c: Ditto.
11942 * exceptions.h: Ditto.
11943 * exec.c: Ditto.
11944 * expprint.c: Ditto.
11945 * expression.h: Ditto.
11946 * f-exp.y: Ditto.
11947 * f-lang.c: Ditto.
11948 * f-lang.h: Ditto.
11949 * f-typeprint.c: Ditto.
11950 * f-valprint.c: Ditto.
11951 * fbsd-nat.c: Ditto.
11952 * findvar.c: Ditto.
11953 * fork-child.c: Ditto.
11954 * frame.c: Ditto.
11955 * frame.h: Ditto.
11956 * frv-linux-tdep.c: Ditto.
11957 * frv-tdep.c: Ditto.
11958 * gcore.c: Ditto.
11959 * gdb-stabs.h: Ditto.
11960 * gdb_assert.h: Ditto.
11961 * gdb_string.h: Ditto.
11962 * gdb_thread_db.h: Ditto.
11963 * gdb_wait.h: Ditto.
11964 * gdbarch.sh: Ditto.
11965 * gdbcore.h: Ditto.
11966 * gdbthread.h: Ditto.
11967 * gdbtypes.c: Ditto.
11968 * gdbtypes.h: Ditto.
11969 * gnu-nat.c: Ditto.
11970 * gnu-nat.h: Ditto.
11971 * gnu-v2-abi.c: Ditto.
11972 * gnu-v3-abi.c: Ditto.
11973 * go32-nat.c: Ditto.
11974 * gdbarch.c: Regenerate.
11975 * gdbarch.h: Regenerate.
11976
ac74f770
MS
119772011-01-07 Michael Snyder <msnyder@vmware.com>
11978
11979 * ax-gdb.c: Adjust some long output strings.
11980 * breakpoint.c: Ditto.
11981 * charset.c: Ditto.
11982 * cp-abi.c: Ditto.
11983 * infcall.c: Ditto.
11984 * infrun.c: Ditto.
11985 * linux-nat.c: Ditto.
11986 * solib-pa64.c: Ditto.
11987 * solib-som.c: Ditto.
11988
d8e22779
TT
119892011-01-06 Tom Tromey <tromey@redhat.com>
11990
11991 PR python/12367:
11992 * NEWS: Add item.
11993 * python/python.c (GdbMethods): Add "newest_frame" method.
11994 * python/python-internal.h (gdbpy_newest_frame): Declare.
11995 * python/py-frame.c (gdbpy_newest_frame): New function.
11996
a255712f
PP
119972010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11998
11999 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12000 * jit.c (jit_debug): New variable.
12001 (show_jit_debug): New function.
12002 (struct target_buffer): Use ULONGEST.
12003 (bfd_open_from_target_memory): Likewise.
12004 (jit_register_code, jit_inferior_init): Add debug output.
12005 (_initialize_jit): Register "debug jit" command.
12006
ccfc3d6e
TT
120072011-01-06 Tom Tromey <tromey@redhat.com>
12008
12009 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12010 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12011 and ARCH_FRAME.
12012
57126e4a
TT
120132011-01-06 Tom Tromey <tromey@redhat.com>
12014
12015 * python/py-frame.c (frapy_block): Use get_frame_block.
12016
16dfc9ce
JB
120172011-01-06 Joel Brobecker <brobecker@adacore.com>
12018
12019 Do not stop on SIGPRIO signals by default
12020 * infrun.c (_initialize_infrun): Unset signal_stop and
12021 signal_print for TARGET_SIGNAL_PRIO.
12022
b1ce2347
JB
120232011-01-06 Joel Brobecker <brobecker@adacore.com>
12024
12025 * ada-tasks.c: Fix style violation in comment.
12026
8f7e195f
JB
120272011-01-06 Joel Brobecker <brobecker@adacore.com>
12028
12029 * linespec.c (decode_compound, find_method): Remove trailing \n
12030 at end of error string.
12031 * solib-irix.c (irix_current_sos): Likewise.
12032 * varobj.c (uninstall_variable): Likewise.
12033
e9bdf92c
JB
120342011-01-06 Joel Brobecker <brobecker@adacore.com>
12035
12036 * copyright.py: New script.
12037 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12038 Launch emacs without exec'ing. Call copyright.py afterwards.
12039
3e43a32a
MS
120402011-01-05 Michael Snyder <msnyder@vmware.com>
12041
12042 * addrmap.c: Shorten lines of >= 80 columns.
12043 * arch-utils.c: Ditto.
12044 * arch-utils.h: Ditto.
12045 * ax-gdb.c: Ditto.
12046 * ax-general.c: Ditto.
12047 * bcache.c: Ditto.
12048 * blockframe.c: Ditto.
12049 * breakpoint.c: Ditto.
12050 * buildsym.c: Ditto.
12051 * c-lang.c: Ditto.
12052 * c-typeprint.c: Ditto.
12053 * charset.c: Ditto.
12054 * coffread.c: Ditto.
12055 * command.h: Ditto.
12056 * corelow.c: Ditto.
12057 * cp-abi.c: Ditto.
12058 * cp-namespace.c: Ditto.
12059 * cp-support.c: Ditto.
12060 * dbug-rom.c: Ditto.
12061 * dbxread.c: Ditto.
12062 * defs.h: Ditto.
12063 * dfp.c: Ditto.
12064 * dfp.h: Ditto.
12065 * dictionary.c: Ditto.
12066 * disasm.c: Ditto.
12067 * doublest.c: Ditto.
12068 * dwarf2-frame.c: Ditto.
12069 * dwarf2expr.c: Ditto.
12070 * dwarf2loc.c: Ditto.
12071 * dwarf2read.c: Ditto.
12072 * elfread.c: Ditto.
12073 * eval.c: Ditto.
12074 * event-loop.c: Ditto.
12075 * event-loop.h: Ditto.
12076 * exceptions.h: Ditto.
12077 * exec.c: Ditto.
12078 * expprint.c: Ditto.
12079 * expression.h: Ditto.
12080 * f-lang.c: Ditto.
12081 * f-valprint.c: Ditto.
12082 * findcmd.c: Ditto.
12083 * frame-base.c: Ditto.
12084 * frame-unwind.c: Ditto.
12085 * frame-unwind.h: Ditto.
12086 * frame.c: Ditto.
12087 * frame.h: Ditto.
12088 * gcore.c: Ditto.
12089 * gdb-stabs.h: Ditto.
12090 * gdb_assert.h: Ditto.
12091 * gdb_dirent.h: Ditto.
12092 * gdb_obstack.h: Ditto.
12093 * gdbcore.h: Ditto.
12094 * gdbtypes.c: Ditto.
12095 * gdbtypes.h: Ditto.
12096 * inf-ttrace.c: Ditto.
12097 * infcall.c: Ditto.
12098 * infcmd.c: Ditto.
12099 * inflow.c: Ditto.
12100 * infrun.c: Ditto.
12101 * inline-frame.h: Ditto.
12102 * language.c: Ditto.
12103 * language.h: Ditto.
12104 * libunwind-frame.c: Ditto.
12105 * libunwind-frame.h: Ditto.
12106 * linespec.c: Ditto.
12107 * linux-nat.c: Ditto.
12108 * linux-nat.h: Ditto.
12109 * linux-thread-db.c: Ditto.
12110 * machoread.c: Ditto.
12111 * macroexp.c: Ditto.
12112 * macrotab.c: Ditto.
12113 * main.c: Ditto.
12114 * maint.c: Ditto.
12115 * mdebugread.c: Ditto.
12116 * memattr.c: Ditto.
12117 * minsyms.c: Ditto.
12118 * monitor.c: Ditto.
12119 * monitor.h: Ditto.
12120 * objfiles.c: Ditto.
12121 * objfiles.h: Ditto.
12122 * osabi.c: Ditto.
12123 * p-typeprint.c: Ditto.
12124 * p-valprint.c: Ditto.
12125 * parse.c: Ditto.
12126 * printcmd.c: Ditto.
12127 * proc-events.c: Ditto.
12128 * procfs.c: Ditto.
12129 * progspace.c: Ditto.
12130 * progspace.h: Ditto.
12131 * psympriv.h: Ditto.
12132 * psymtab.c: Ditto.
12133 * record.c: Ditto.
12134 * regcache.c: Ditto.
12135 * regcache.h: Ditto.
12136 * remote-fileio.c: Ditto.
12137 * remote.c: Ditto.
12138 * ser-mingw.c: Ditto.
12139 * ser-tcp.c: Ditto.
12140 * ser-unix.c: Ditto.
12141 * serial.c: Ditto.
12142 * serial.h: Ditto.
12143 * solib-frv.c: Ditto.
12144 * solib-irix.c: Ditto.
12145 * solib-osf.c: Ditto.
12146 * solib-pa64.c: Ditto.
12147 * solib-som.c: Ditto.
12148 * solib-sunos.c: Ditto.
12149 * solib-svr4.c: Ditto.
12150 * solib-target.c: Ditto.
12151 * solib.c: Ditto.
12152 * somread.c: Ditto.
12153 * source.c: Ditto.
12154 * stabsread.c: Ditto.
12155 * stabsread.c: Ditto.
12156 * stack.c: Ditto.
12157 * stack.h: Ditto.
12158 * symfile-mem.c: Ditto.
12159 * symfile.c: Ditto.
12160 * symfile.h: Ditto.
12161 * symmisc.c: Ditto.
12162 * symtab.c: Ditto.
12163 * symtab.h: Ditto.
12164 * target-descriptions.c: Ditto.
12165 * target-memory.c: Ditto.
12166 * target.c: Ditto.
12167 * target.h: Ditto.
12168 * terminal.h: Ditto.
12169 * thread.c: Ditto.
12170 * top.c: Ditto.
12171 * tracepoint.c: Ditto.
12172 * tracepoint.h: Ditto.
12173 * ui-file.c: Ditto.
12174 * ui-file.h: Ditto.
12175 * ui-out.h: Ditto.
12176 * user-regs.c: Ditto.
12177 * user-regs.h: Ditto.
12178 * utils.c: Ditto.
12179 * valarith.c: Ditto.
12180 * valops.c: Ditto.
12181 * valprint.c: Ditto.
12182 * valprint.h: Ditto.
12183 * value.c: Ditto.
12184 * varobj.c: Ditto.
12185 * varobj.h: Ditto.
12186 * vec.h: Ditto.
12187 * xcoffread.c: Ditto.
12188 * xcoffsolib.c: Ditto.
12189 * xcoffsolib.h: Ditto.
12190 * xml-syscall.c: Ditto.
12191 * xml-tdesc.c: Ditto.
12192
9a2b4c1b
MS
121932011-01-05 Michael Snyder <msnyder@vmware.com>
12194
12195 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12196 * cli/cli-decode.c: Ditto.
12197 * cli/cli-dump.c: Ditto.
12198 * cli/cli-logging.c: Ditto.
12199 * cli/cli-script.c: Ditto.
12200 * cli/cli-setshow.c: Ditto.
12201 * common/signals.c: Ditto.
12202 * mi/mi-cmd-break.c: Ditto.
12203 * mi/mi-cmd-disas.c: Ditto.
12204 * mi/mi-cmd-stack.c: Ditto.
12205 * mi/mi-cmd-var.c: Ditto.
12206 * mi/mi-cmds.c: Ditto.
12207 * mi/mi-common.h: Ditto.
12208 * mi/mi-console.c: Ditto.
12209 * mi/mi-interp.c: Ditto.
12210 * mi/mi-main.c: Ditto.
12211 * osf-share/cma_attr.c: Ditto.
12212 * osf-share/cma_deb_core.h: Ditto.
12213 * osf-share/cma_debug_client.h: Ditto.
12214 * osf-share/cma_handle.h: Ditto.
12215 * osf-share/cma_mutex.h: Ditto.
12216 * osf-share/cma_stack_int.h: Ditto.
12217 * osf-share/cma_tcb_defs.h: Ditto.
12218 * python/py-auto-load.c: Ditto.
12219 * python/py-breakpoint.c: Ditto.
12220 * python/py-cmd.c: Ditto.
12221 * python/py-frame.c: Ditto.
12222 * python/py-objfile.c: Ditto.
12223 * python/py-param.c: Ditto.
12224 * python/py-progspace.c: Ditto.
12225 * python/py-symbol.c: Ditto.
12226 * python/py-value.c: Ditto.
12227 * python/python-internal.h: Ditto.
12228 * python/python.c: Ditto.
12229 * tui/tui-data.c: Ditto.
12230 * tui/tui-disasm.c: Ditto.
12231 * tui/tui-hooks.c: Ditto.
12232 * tui/tui-io.c: Ditto.
12233 * tui/tui-layout.c: Ditto.
12234 * tui/tui-regs.c: Ditto.
12235 * tui/tui-source.c: Ditto.
12236 * tui/tui-stack.c: Ditto.
12237 * tui/tui-win.c: Ditto.
12238 * tui/tui-windata.c: Ditto.
12239 * tui/tui-winsource.c: Ditto.
12240
44944448
JB
122412011-01-05 Joel Brobecker <brobecker@adacore.com>
12242
12243 * configure.ac, gdb.1: Copyright year update.
12244
ebedcab5
JK
122452011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12246
12247 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12248 this_pc_in_block, morestack_msym and morestack_name. Check for
12249 "__morestack" minimal symbol there.
12250
e5cc9f32
JB
122512011-01-03 Joel Brobecker <brobecker@adacore.com>
12252
12253 * symfile.c (find_sym_fns): Add call to dont_repeat.
12254
7b6bb8da
JB
122552011-01-01 Joel Brobecker <brobecker@adacore.com>
12256
12257 Copyright year update in most files (performed by copyright.sh).
12258
71ce852c
JB
122592011-01-01 Joel Brobecker <brobecker@adacore.com>
12260
12261 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12262
c3c1ebe8 12263For older changes see ChangeLog-2010.
c906108c
SS
12264\f
12265Local Variables:
12266mode: change-log
12267left-margin: 8
12268fill-column: 74
12269version-control: never
57da7796 12270coding: utf-8
c906108c 12271End:
This page took 1.859399 seconds and 4 git commands to generate.