2011-12-16 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ef140872
DE
12011-12-15 Doug Evans <dje@google.com>
2
3 * exceptions.c (catcher_list_size): New function.
4 (last_message): Delete.
5 (exception_messages, exception_messages_size): New static globals.
6 (throw_it): Use exception_messages array to handle nested calls.
7
b5b445a3
TT
82011-12-15 Tom Tromey <tromey@redhat.com>
9
10 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
11 do_cleanups call.
12
0b6cb71e
DE
132011-12-14 Doug Evans <dje@google.com>
14
15 * defs.h (wait_to_die_with_timeout): Declare.
16 * utils.c: #include "gdb_wait.h".
17 (sigalrm_handler, wait_to_die_with_timeout): New functions.
18 * ser-pipe.c: Don't #include "gdb_wait.h".
19 (pipe_close): Give child a chance to die on its own after closing
20 its stdin before SIGTERM'ing it.
21
6475f2fe 222011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 23 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
24
25 * ada-lang.c (add_nonlocal_symbols): Initialize data to
26 all zeros. Remove setting of data.arg_sym to NULL.
27
7b50312a
PA
282011-12-14 Pedro Alves <pedro@codesourcery.com>
29
30 PR threads/10729
31
32 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
33 pointer.
34 (linux_nat_prepare_to_resume): New global.
35 (lwp_free): New.
36 (purge_lwp_list): Use it.
37 (add_lwp): Call linux_nat_new_thread even on the first LWP.
38 Adjust to interface change.
39 (delete_lwp): Call lwp_free instead of xfree.
40 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
41 (linux_handle_syscall_trap, linux_handle_extended_wait)
42 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
43 linux_nat_prepare_to_resume before resuming.
44 (linux_stop_lwp): New.
45 (linux_nat_set_new_thread): Adjust.
46 (linux_nat_set_prepare_to_resume): New.
47 * linux-nat.h (struct arch_lwp_info): Forward declare.
48 (struct lwp_info) <arch_private>: New field.
49 (linux_stop_lwp): Declare.
50 (linux_nat_set_new_thread): Adjust.
51 (linux_nat_set_prepare_to_resume): New.
52
53 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
54 (struct i386_debug_reg_state): Move to i386-nat.h.
55 (dr_mirror): Comment.
56 (i386_debug_reg_state): New.
57 (i386_update_inferior_debug_regs): Simplify.
58 (i386_stopped_data_address): Use the debug register state from the
59 inferior, not from the local cache.
60 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
61 unset_status fields. New get_addr and get_control fields.
62 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
63 (DR_NADDR, DR_STATUS): New.
64 (struct i386_debug_reg_state): Moved from i386-nat.c.
65
66 * amd64-linux-nat.c (struct arch_lwp_info): New.
67 (amd64_linux_dr): Delete global.
68 (amd64_linux_dr_get_addr): New.
69 (amd64_linux_dr_get_control): New.
70 (amd64_linux_dr_unset_status): Delete.
71 (amd64_linux_dr_set_addr): Reimplement.
72 (amd64_linux_dr_reset_addr): Delete.
73 (update_debug_registers_callback): New.
74 (amd64_linux_dr_set_control): Reimplement.
75 (amd64_linux_dr_set_addr): Reimplement.
76 (amd64_linux_prepare_to_resume): New.
77 (amd64_linux_new_thread): Change parameter to an lwp pointer.
78 Reimplement.
79 (_initialize_amd64_linux_nat): No longer install
80 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
81 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
82 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
83 amd64_linux_prepare_to_resume.
84 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
85 (DR_CONTROL): Delete.
86 (struct arch_lwp_info): New.
87 (i386_linux_dr): Delete global.
88 (i386_linux_dr_set_control): Reimplement.
89 (i386_linux_dr_get_addr): New.
90 (i386_linux_dr_set_addr): Reimplement.
91 (i386_linux_dr_get_control): New.
92 (update_debug_registers_callback): New.
93 (i386_linux_dr_unset_status): Delete.
94 (i386_linux_dr_set_addr): Reimplement.
95 (i386_linux_prepare_to_resume): New.
96 (i386_linux_new_thread): Change parameter to an lwp pointer.
97 Reimplement.
98 (_initialize_i386_linux_nat): No longer install
99 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
100 i386_linux_dr_get_control as i386_dr_low.get_control. Install
101 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
102 i386_linux_prepare_to_resume.
103
104 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
105 lwp pointer. Adjust.
106 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
107 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
108 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
109 * s390-nat.c (s390_fix_watch_points): Likewise.
110
111 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
112 (DR_CONTROL): Delete.
113 (i386_darwin_dr_reset_addr): Delete.
114 (i386_darwin_dr_get_addr): New.
115 (i386_darwin_dr_get_control): New.
116 * go32-nat.c
117 (go32_get_dr7, go32_get_dr): New.
118 (init_go32_ops): No longer install i386_dr_low.reset_addr.
119 Install go32_get_dr7 as i386_dr_low.get_control. Install
120 go32_get_dr as i386_dr_low.get_addr.
121 * i386bsd-nat.c (i386bsd_dr_get): New.
122 (i386bsd_dr_reset_addr): Delete.
123 (i386bsd_dr_get_addr): New.
124 (i386bsd_dr_get_status): Use i386bsd_dr_get.
125 (i386bsd_dr_get_control): New.
126 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
127 (i386bsd_dr_get_addr): New.
128 (i386bsd_dr_get_control): New.
129 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
130 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
131 i386bsd_dr_get_control as i386_dr_low.get_control. Install
132 i386bsd_dr_get_addr as i386_dr_low.get_addr.
133 * windows-nat.c (init_windows_ops): No longer install
134 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
135 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
136 as i386_dr_low.get_addr.
137 (cygwin_get_dr): New.
138 (cygwin_get_dr7): New.
139
dd110abf
PA
1402011-12-14 Pedro Alves <pedro@codesourcery.com>
141
142 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
143 target_write_raw_memory.
144 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
145 target_write_raw_memory.
146 * microblaze-linux-tdep.c
147 (microblaze_linux_memory_remove_breakpoint): Use
148 target_write_raw_memory.
149 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
150 target_write_raw_memory.
151
ad32032e
JB
1522011-12-14 Joel Brobecker <brobecker@adacore.com>
153
154 * linespec.c (decode_line_internal): Make static.
155
d14c4eb7
YQ
1562011-12-14 Yao Qi <yao@codesourcery.com>
157
158 * breakpoint.c (create_breakpoint): Set canonical.addr_string
159 for static tracepoint.
160
25564b66 1612011-12-13 Joel Brobecker <brobecker@adacore.com>
162
163 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
164 * version.in: Bump version to 7.4.50.20111213-cvs.
165
8837a20f
JB
1662011-12-13 Joel Brobecker <brobecker@adacore.com>
167
168 * NEWS: Create a new section for the next release branch.
169 Rename the section of the current branch, now that it has
170 been cut.
171
7dda8cff
JB
1722011-12-11 Joel Brobecker <brobecker@adacore.com>
173
174 * ada-lang.c (ada_exception_support_info_sniffer): Improve
175 error message.
176
3eecfa55
JB
1772011-12-11 Joel Brobecker <brobecker@adacore.com>
178
179 * ada-lang.c (struct ada_inferior_data) [exception_info]:
180 New field.
181 (exception_info): Delete.
182 (ada_exception_support_info_sniffer): Get exception_support_info
183 data from our per-inferior data. Adjust code accordingly.
184 (ada_unhandled_exception_name_addr_from_raise): Likewise.
185 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
186 (ada_executable_changed_observer): Delete.
187 (_initialize_ada_language): Remove call to
188 observer_attach_executable_changed.
189
a6af7abe
JB
1902011-12-11 Joel Brobecker <brobecker@adacore.com>
191
192 * ada-lang.c (ada_has_this_exception_support): Raise an error
193 if we could find the Ada exception hook in the Ada runtime,
194 but no debugging info for that hook.
195
f17011e0
JB
1962011-12-11 Joel Brobecker <brobecker@adacore.com>
197
198 * ada-lang.c (ada_has_this_exception_support): New function,
199 extracted out of ada_exception_sal and ada_exception_sal.
200 (ada_exception_support_info_sniffer): Simplify by using
201 ada_has_this_exception_support.
202 (ada_exception_sal): Replace unnecessary checks by assertions.
203 Minor simplifications.
204
d3fbdd86
AS
2052011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
206
207 * breakpoint.c (update_global_location_list): Remove nested
208 definition of `b'(-Wshadow).
209
eacd795a
AS
2102011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
211
212 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
213 `error_flag'(-Wshadow).
214
ad13d8df
AS
2152011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
216
217 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
218 `abfd'(-Wshadow).
219
917793af
AS
2202011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
221
222 * annotate.c (annotate_array_section_begin): Rename `index' to
223 `idx'(-Wshadow).
224
d48ebb5b
AS
2252011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
226
227 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
228 `idx'(-Wshadow).
229
9ed936ec
AS
2302011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
231
232 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
233 `syscall' to `syscall_number'(-Wshadow).
234
a35ddb44
AS
2352011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
236
237 * ada-lang.c (remove_extra_symbols): Rename `remove' to
238 `remove_p'(-Wshadow).
239
e5e61bd7
AS
2402011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
241
242 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
243 `ren_sym'(-Wshadow).
244
d200ab1e
DE
2452011-12-10 Doug Evans <dje@google.com>
246
b0df02fd
DE
247 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
248 debug_types_section. All uses updated.
249 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
250 to is_debug_types_section.
251
d200ab1e
DE
252 * python/py-auto-load.c (source_section_scripts): Call xfree
253 instead of free.
254
4511b1ba
YQ
2552011-12-10 Hui Zhu <teawater@gmail.com>
256 Yao Qi <yao@codesourcery.com>
257
258 * tracepoint.c (start_tracing): Clear `inserted' flag.
259
df5a4bd3
HZ
2602011-12-10 Hui Zhu <teawater@gmail.com>
261
262 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
263
1afeeb75
AS
2642011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
265
266 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
267 `bpoint'(-Wshadow).
268
80e1d417
AS
2692011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
270
271 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
272 `marker' variables to `sal2' and `tpmarker' respectively
273 (-Wshadow).
274
04ca3c22
AP
2752011-12-09 Andrew Pinski <apinski@cavium.com>
276
277 * linespec.c (hash_address_entry): Use iterative_hash_object on each
278 field rather than the struct itself.
279
8a2c437b
TT
2802011-12-09 Tom Tromey <tromey@redhat.com>
281
282 * breakpoint.c (compare_breakpoints): New function.
283 (clear_command): Remove duplicate breakpoints. Properly clean
284 up.
285
280711e7
MR
2862011-12-08 Maciej W. Rozycki <macro@mips.com>
287 Maciej W. Rozycki <macro@codesourcery.com>
288
289 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
290 address chunks retrieved from decoded lui/addiu pairs.
291
4c2051c6
MR
2922011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
293
294 * mips-tdep.c (extended_offset): Correct calculation.
295 (unpack_mips16): Correct bitfield positions used for extraction
296 of the immediate argument; fix sign-extension of same.
297 (extended_mips16_next_pc): Correct B instruction's offset
298 calculation. Correct register decoding of the BEQZ and BNEZ
299 as well as jump-register instructions. Handle compact jumps.
300
ff011ed7
TT
3012011-12-08 Tom Tromey <tromey@redhat.com>
302
303 * objfiles.h (struct objfile): Remove obsolete comment.
304 * objfiles.c (build_objfile_section_table): Remove obsolete
305 comment.
306
7cd3876c
SS
3072011-12-07 Stan Shebs <stan@codesourcery.com>
308
309 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
310 maintainer of the tic6x target.
311
35f73cfc
UW
3122011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
313
314 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
315 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
316 (arm_deal_with_atomic_sequence_raw): Likewise.
317 (arm_deal_with_atomic_sequence): Likewise.
318 (arm_software_single_step): Call it.
319 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
320
94eae614
UW
3212011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
322
323 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
324 where appropriate.
325 * s390-tdep.h: Likewise.
326
13b8d0c6
TG
3272011-12-07 Tristan Gingold <gingold@adacore.com>
328
329 * machoread.c (macho_symtab_read): Do not consider N_OPT as
330 a debugging stab. Improve complaint message.
331
5436df95
MR
3322011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
333
334 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
335 load adjustment if still within the prologue.
336
040dff2a
MR
3372011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
338
339 * mips-tdep.c (mips32_next_pc): Fix floating point condition
340 code mask.
341
754d7c78
MR
3422011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
343
344 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
345 of BLTZ* and BGEZ* instructions.
346
91912e4d
MR
3472011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
348
349 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
350 performed to determine whether an address refers to standard
351 MIPS or MIPS16 code.
352 (mips16_next_pc): Use mips_pc_is_mips16 instead of
353 is_mips16_addr.
354
f0ba3972
PA
3552011-12-06 Pedro Alves <pedro@codesourcery.com>
356
357 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
358 (breakpoint_xfer_memory): ... this. Change prototype. Handle
359 memory writes too.
360 * breakpoint.h (breakpoint_restore_shadows): Delete.
361 (breakpoint_xfer_memory): Declare.
362 * mem-break.c (default_memory_insert_breakpoint)
363 (default_memory_remove_breakpoint): Use target_write_raw_memory.
364 (memory_xfer_partial): Rename to ...
365 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
366 here.
367 (memory_xfer_partial): New.
368 (target_write_raw_memory): New.
369 * target.h (target_write_raw_memory): New.
370
31aba06f
DE
3712011-12-06 Doug Evans <dje@google.com>
372
373 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
374
f8eba3c6
TT
3752011-12-06 Joel Brobecker <brobecker@acacore.com>
376
377 * language.h (struct language_defn): Add new component
378 la_symbol_name_compare.
379 * symfile.h (struct quick_symbol_functions): Update the profile
380 of parameter "name_matcher" for the expand_symtabs_matching
381 method. Update the documentation accordingly.
382 * ada-lang.h (ada_name_for_lookup): Add declaration.
383 * ada-lang.c (ada_name_for_lookup): New function, extracted out
384 from ada_iterate_over_symbols.
385 (ada_iterate_over_symbols): Do not encode symbol name anymore.
386 (ada_expand_partial_symbol_name): Adjust profile.
387 (ada_language_defn): Add value for la_symbol_name_compare field.
388 * linespec.c: #include "ada-lang.h".
389 (iterate_name_matcher): Add language parameter. Replace call
390 to strcmp_iw by call to language->la_symbol_name_compare.
391 (decode_variable): Encode COPY if current language is Ada.
392 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
393 of name_matcher parameter. Adjust call to name_matcher.
394 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
395 (expand_partial_symbol_names): Update profile of parameter "fun".
396 * psymtab.h (expand_partial_symbol_names): Update profile of
397 parameter "fun".
398 * symtab.c (demangle_for_lookup): Update function documentation.
399 (search_symbols_name_matches): Add language parameter.
400 (expand_partial_symbol_name): Likewise.
401 * c-lang.c (c_language_defn, cplus_language_defn)
402 (asm_language_defn, minimal_language_defn): Add value for
403 la_symbol_name_compare field.
404 * d-lang.c (d_language_defn): Likewise.
405 * f-lang.c (f_language_defn): Ditto.
406 * jv-lang.c (java_language_defn): Ditto.
407 * m2-lang.c (m2_language_defn): Ditto.
408 * objc-lang.c (objc_language_defn): Ditto.
409 * opencl-lang.c (opencl_language_defn): Ditto.
410 * p-lang.c (pascal_language_defn): Ditto.
411 * language.c (unknown_language_defn, auto_language_defn)
412 (local_language_defn): Ditto.
413
4142011-12-06 Tom Tromey <tromey@redhat.com>
415
416 * linespec.c (iterate_over_all_matching_symtabs): Use
417 LA_ITERATE_OVER_SYMBOLS.
418 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
419 (find_function_symbols, decode_variable): Remove Ada special
420 case.
421 * language.h (struct language_defn) <la_iterate_over_symbols>: New
422 field.
423 (LA_ITERATE_OVER_SYMBOLS): New macro.
424 * language.c (unknown_language_defn, auto_language_defn)
425 (local_language_defn): Update.
426 * c-lang.c (c_language_defn, cplus_language_defn)
427 (asm_language_defn, minimal_language_defn): Update.
428 * d-lang.c (d_language_defn): Update.
429 * f-lang.c (f_language_defn): Update.
430 * jv-lang.c (java_language_defn): Update.
431 * m2-lang.c (m2_language_defn): Update.
432 * objc-lang.c (objc_language_defn): Update.
433 * opencl-lang.c (opencl_language_defn): Update.
434 * p-lang.c (pascal_language_defn): Update.
435 * ada-lang.c (ada_iterate_over_symbols): New function.
436 (ada_language_defn): Update.
437
4382011-12-06 Tom Tromey <tromey@redhat.com>
439 Joel Brobecker <brobecker@acacore.com>
440
441 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
442 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
443 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
444 PR shlibs/8929, PR shlibs/7393:
445 * python/py-type.c (compare_maybe_null_strings): Rename from
446 compare_strings.
447 (check_types_equal): Update.
448 * utils.c (compare_strings): New function.
449 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
450 location changes.
451 * tracepoint.c (scope_info): Update.
452 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
453 * symtab.h (iterate_over_minimal_symbols)
454 (iterate_over_some_symtabs, iterate_over_symtabs)
455 (find_pcs_for_symtab_line, iterate_over_symbols)
456 (demangle_for_lookup): Declare.
457 (expand_line_sal): Remove.
458 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
459 (lookup_symtab_callback): New functions.
460 (lookup_symtab): Rewrite.
461 (demangle_for_lookup): New function, extract from
462 lookup_symbol_in_language.
463 (lookup_symbol_in_language): Use it.
464 (iterate_over_symbols): New function.
465 (find_line_symtab): Update.
466 (find_pcs_for_symtab_line): New functions.
467 (find_line_common): Add 'start' argument.
468 (decode_line_spec): Update. Change argument to 'flags', change
469 interpretation.
470 (append_expanded_sal): Remove.
471 (append_exact_match_to_sals): Remove.
472 (expand_line_sal): Remove.
473 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
474 Remove.
475 <map_symtabs_matching_filename>: New field.
476 * stack.c (func_command): Only look in the current program space.
477 Use DECODE_LINE_FUNFIRSTLINE.
478 * source.c (line_info): Set pspace on sal. Check program space in
479 the loop. Use DECODE_LINE_LIST_MODE.
480 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
481 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
482 * python/python.c (gdbpy_decode_line): Update.
483 * psymtab.c (partial_map_expand_apply): New function.
484 (partial_map_symtabs_matching_filename): Rename from
485 lookup_partial_symbol. Update arguments.
486 (lookup_symtab_via_partial_symtab): Remove.
487 (psym_functions): Update.
488 * objc-lang.h (parse_selector, parse_method): Don't declare.
489 (find_imps): Update.
490 * objc-lang.c (parse_selector, parse_method): Now static.
491 (find_methods): Change arguments. Fill in a vector of symbol
492 names.
493 (uniquify_strings): New function.
494 (find_imps): Change arguments.
495 * minsyms.c (iterate_over_minimal_symbols): New function.
496 * linespec.h (enum decode_line_flags): New.
497 (struct linespec_sals): New.
498 (struct linespec_result) <canonical>: Remove.
499 <pre_expanded, addr_string, sals>: New fields.
500 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
501 (decode_line_full): Declare.
502 (decode_line_1): Update.
503 * linespec.c (struct address_entry, struct linespec_state, struct
504 collect_info): New types.
505 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
506 (eq_address_entry, maybe_add_address): New functions.
507 (total_number_of_methods): Remove.
508 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
509 functions.
510 (find_methods): Change arguments. Don't canonicalize input.
511 Simplify logic.
512 (add_matching_methods, add_constructors)
513 (build_canonical_line_spec): Remove.
514 (filter_results, convert_results_to_lsals): New functions.
515 (decode_line_2): Change arguments. Rewrite for new data
516 structures.
517 (decode_line_internal): Rename from decode_line_1. Change
518 arguments. Add cleanups. Update for new data structures.
519 (linespec_state_constructor, linespec_state_destructor)
520 (decode_line_full, decode_line_1): New functions.
521 (decode_indirect): Change arguments. Update.
522 (locate_first_half): Use skip_spaces.
523 (decode_objc): Change arguments. Update for new data structures.
524 Simplify logic.
525 (decode_compound): Change arguments. Add cleanups. Remove
526 fallback code, replace with error.
527 (struct decode_compound_collector): New type.
528 (collect_one_symbol): New function.
529 (lookup_prefix_sym): Change arguments. Update.
530 (compare_symbol_name, add_all_symbol_names_from_pspace)
531 (find_superclass_methods ): New functions.
532 (find_method): Rewrite.
533 (struct symtab_collector): New type.
534 (add_symtabs_to_list, collect_symtabs_from_filename): New
535 functions.
536 (symtabs_from_filename): Change API. Rename from
537 symtab_from_filename.
538 (collect_function_symbols): New function.
539 (find_function_symbols): Change API. Rename from
540 find_function_symbol. Rewrite.
541 (decode_all_digits): Change arguments. Rewrite.
542 (decode_dollar): Change arguments. Use decode_variable.
543 (decode_label): Change arguments. Rewrite.
544 (collect_symbols): New function.
545 (minsym_found): Change arguments. Rewrite.
546 (check_minsym, search_minsyms_for_name)
547 (add_matching_symbols_to_info): New function.
548 (decode_variable): Change arguments. Iterate over all symbols.
549 (symbol_found): Remove.
550 (symbol_to_sal): New function.
551 (init_linespec_result, destroy_linespec_result)
552 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
553 New functions.
554 (decode_digits_list_mode, decode_digits_ordinary): New functions.
555 * dwarf2read.c (dw2_map_expand_apply): New function.
556 (dw2_map_symtabs_matching_filename): Rename from
557 dw2_lookup_symtab. Change arguments.
558 (dwarf2_gdb_index_functions): Update.
559 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
560 * defs.h (compare_strings): Declare.
561 * cli/cli-cmds.c (compare_strings): Move to utils.c.
562 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
563 filter_sals.
564 (compare_symtabs, filter_sals): New functions.
565 * breakpoint.h (struct bp_location) <line_number, source_file>:
566 New fields.
567 (struct breakpoint) <line_number, source_file>: Remove.
568 <filter>: New field.
569 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
570 (momentary_breakpoint_from_master, add_location_to_breakpoint):
571 Update for changes to locations.
572 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
573 breakpoint.
574 (create_breakpoint_sal): Add 'filter' argument.
575 (remove_sal, expand_line_sal_maybe): Remove.
576 (create_breakpoints_sal): Remove 'sals' argument. Handle
577 pre-expanded sals and the filter.
578 (parse_breakpoint_sals): Use decode_line_full.
579 (check_fast_tracepoint_sals): Use get_sal_arch.
580 (create_breakpoint): Create a linespec_sals. Update.
581 (break_range_command): Use decode_line_full. Update.
582 (until_break_command): Update.
583 (clear_command): Update match conditions for linespec.c changes.
584 Use DECODE_LINE_LIST_MODE.
585 (say_where): Update for changes to locations.
586 (bp_location_dtor): Free 'source_file'.
587 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
588 (update_static_tracepoint): Update for changes to locations.
589 (update_breakpoint_locations): Disable ranged breakpoint if too
590 many locations match. Update.
591 (addr_string_to_sals): Use decode_line_full. Resolve all sal
592 PCs.
593 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
594 (decode_line_spec_1): Update. Change argument name to 'flags',
595 change interpretation.
596 * block.h (block_containing_function): Declare.
597 * block.c (block_containing_function): New function.
598 * skip.c (skip_function_command): Update.
599 (skip_re_set): Update.
600 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
601 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
602 * NEWS: Add entry.
603
6042011-12-06 Tom Tromey <tromey@redhat.com>
605
606 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
607 breakpoint's pspace to be NULL.
608 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
609 * breakpoint.c (init_raw_breakpoint): Conditionally set
610 breakpoint's pspace.
611 (init_breakpoint_sal): Don't set breakpoint's pspace.
612 (prepare_re_set_context): Conditionally switch program space.
613 (addr_string_to_sals): Check executing_startup on location's
614 program space.
615
6162011-12-06 Tom Tromey <tromey@redhat.com>
617
618 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
619 * breakpoint.c (should_be_inserted): Explicitly check if program
620 space is executing startup.
621 (describe_other_breakpoints): Update.
622 (disable_breakpoints_before_startup): Change executing_startup
623 earlier. Remove loop.
624 (enable_breakpoints_after_startup): Likewise.
625 (init_breakpoint_sal): Don't use bp_startup_disabled.
626 (create_breakpoint): Don't use bp_startup_disabled.
627 (update_global_location_list): Use should_be_inserted.
628 (bkpt_re_set): Update.
629
75c8c9d7
TT
6302011-12-06 Tom Tromey <tromey@redhat.com>
631
632 * python/lib/gdb/command/pretty_printers.py
633 (InfoPrettyPrinter.invoke1): Remove extra double quote.
634
7376e450
TT
6352011-12-06 Tom Tromey <tromey@redhat.com>
636
637 * NEWS: Add MI news.
638
c642a434
UW
6392011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
640
641 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
642 (S390_LAST_BREAK_REGNUM): Likewise.
643 (S390_SYSTEM_CALL_REGNUM): Likewise.
644 (S390_NUM_REGS): Update.
645
646 (s390_regmap_last_break): Add declaration.
647 (s390x_regmap_last_break): Likewise.
648 (s390_regmap_system_call): Likewise.
649
650 (tdesc_s390_linux32v1): Add declaration.
651 (tdesc_s390_linux32v2): Likewise.
652 (tdesc_s390_linux64v1): Likewise.
653 (tdesc_s390_linux64v2): Likewise.
654 (tdesc_s390x_linux64v1): Likewise.
655 (tdesc_s390x_linux64v2): Likewise.
656
657 * s390-tdep.c: Include new target description files
658 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
659 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
660 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
661 (s390_cannot_store_register): New function.
662 (s390_write_pc): Likewise.
663 (s390_dwarf_regmap): Add fields for new registers.
664 (s390_regmap_gregset): Likewise.
665 (s390x_regmap_gregset): Likewise.
666 (s390_regmap_fpregset): Likewise.
667 (s390_regmap_upper): Likewise.
668 (s390_regmap_last_break): New variable.
669 (s390x_regmap_last_break): Likewise.
670 (s390_regmap_system_call): Likewise.
671 (s390_last_break_regset): Likewise.
672 (s390x_last_break_regset): Likewise.
673 (s390_system_call_regset): Likewise.
674 (s390_upper_regset_sections): Rename to ...
675 (s390_linux64_regset_sections): ... this.
676 (s390_linux32_regset_sections): New variable.
677 (s390x_linux64_regset_sections): Likewise.
678 (s390_linux32v1_regset_sections): Likewise.
679 (s390_linux32v2_regset_sections): Likewise.
680 (s390_linux64v1_regset_sections): Likewise.
681 (s390_linux64v2_regset_sections): Likewise.
682 (s390x_linux64v1_regset_sections): Likewise.
683 (s390x_linux64v2_regset_sections): Likewise.
684 (s390_regset_from_core_section): Handle .reg-s390-last-break and
685 .reg-s390-system-call core file sections.
686 (s390_core_read_description): Check for presence of
687 .reg-s390-last-break and .reg-s390-system-call core file
688 sections and return appropriate target description.
689 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
690 "last_break" and "system_call" in target description. Install
691 appropriate gdbarch_core_regset_sections array.
692 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
693 (_initialize_s390_tdep): Initialize additional target descriptions.
694
695 * s390-nat.c: Include "elf/common.h".
696 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
697 (have_regset_last_break): New static variable.
698 (have_regset_system_call): Likewise.
699 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
700 (s390_native_collect): Likewise.
701 (fetch_regset, store_regset, check_regset): New functions.
702 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
703 and S390_SYSTEM_CALL_REGNUM.
704 (s390_linux_store_inferior_registers): Likewise.
705 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
706 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
707
708 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
709 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
710 (s390-linux32v1-expedite): Define.
711 (s390-linux32v2-expedite): Likewise.
712 (s390-linux64v1-expedite): Likewise.
713 (s390-linux64v2-expedite): Likewise.
714 (s390x-linux64v1-expedite): Likewise.
715 (s390x-linux64v2-expedite): Likewise.
716
717 * features/s390-linux32.xml: Add orig_r2 register.
718 * features/s390-linux64.xml: Likewise.
719 * features/s390x-linux64.xml: Likewise.
720 * features/s390-linux32v1.xml: New file.
721 * features/s390-linux32v2.xml: Likewise.
722 * features/s390-linux64v1.xml: Likewise.
723 * features/s390-linux64v2.xml: Likewise.
724 * features/s390x-linux64v1.xml: Likewise.
725 * features/s390x-linux64v2.xml: Likewise.
726
727 * features/s390-linux32.c: Regenerate.
728 * features/s390-linux64.c: Likewise.
729 * features/s390x-linux64.c: Likewise.
730 * features/s390-linux32v1.c: New generated file.
731 * features/s390-linux32v2.c: Likewise.
732 * features/s390-linux64v1.c: Likewise.
733 * features/s390-linux64v2.c: Likewise.
734 * features/s390x-linux64v1.c: Likewise.
735 * features/s390x-linux64v2.c: Likewise.
736
737 * regformats/s390-linux32.dat: Regenerate.
738 * regformats/s390-linux64.dat: Regenerate.
739 * regformats/s390x-linux64.dat: Regenerate.
740 * regformats/s390-linux32v1.dat: New generated file.
741 * regformats/s390-linux32v2.dat: Likewise.
742 * regformats/s390-linux64v1.dat: Likewise.
743 * regformats/s390-linux64v2.dat: Likewise.
744 * regformats/s390x-linux64v1.dat: Likewise.
745 * regformats/s390x-linux64v2.dat: Likewise.
746
336060f3
PA
7472011-12-05 Pedro Alves <pedro@codesourcery.com>
748
749 * linux-nat.c (resume_stopped_resumed_lwps): Call
750 registers_changed.
751
049e32d3
PA
7522011-12-05 Pedro Alves <pedro@codesourcery.com>
753
754 * breakpoint.c: Include record.h.
755 (breakpoints_always_inserted_mode): Return false when the record
756 target is in use.
757
5c03c7f9 7582011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
759
760 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
761 Reinstate perror_with_name call on ptrace error. Remove #if 0.
762 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
763 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
764
fbbd034e
AS
7652011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
766
767 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
768 `i'(-Wshadow).
769
a5ff8356 7702011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
771
772 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
773
7742011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
775
a5ff8356
AS
776 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
777 of `tdep'(-Wshadow).
778
93f2a35e
JK
7792011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
780
781 Fix compilation --without-expat.
782 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
783 from ...
784 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
785
2268b414
JK
7862011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
787 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
790 * features/library-list-svr4.dtd: New file.
791 * remote.c (PACKET_qXfer_libraries_svr4): New.
792 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
793 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
794 * solib-svr4.c (struct svr4_library_list): New.
795 [HAVE_LIBEXPAT]: Include xml-support.h.
796 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
797 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
798 [HAVE_LIBEXPAT] (svr4_library_list_children)
799 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
800 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
801 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
802 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
803 (svr4_read_so_list): Extend the corruption message by addresses.
804 (svr4_current_sos): New variable library_list, call
805 svr4_current_sos_via_xfer_libraries.
806 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
807
585861ea
JK
8082011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 PR threads/13448
811 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
812 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
813
9750bca9
JK
8142011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 PR breakpoints/13346
817 * dwarf2read.c (process_psymtab_comp_unit): Set
818 PSYMTABS_ADDRMAP_SUPPORTED.
819 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
820 validity. New field psymtabs_addrmap_supported.
821 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
822 psymtabs_addrmap_supported.
823 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
824 !PSYMTABS_ADDRMAP_SUPPORTED.
825 (dump_psymtab, maintenance_info_psymtabs): Print also
826 psymtabs_addrmap_supported.
827
f28c316a
DE
8282011-12-01 Doug Evans <dje@google.com>
829
830 * python/py-type.c (type_object_methods): Fix "array" doc string.
831
fc0ae648
AB
8322011-12-01 Andrew Burgess <aburgess@broadcom.com>
833
834 * source.c (print_source_lines_base): Fix missing braces on else
835 clause leading to additional output.
836
d6db1fab
UW
8372011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
838
839 * s390-nat.c (SUBOFF): Remove.
840 (s390_native_supply, s390_native_collect): New functions.
841 (supply_gregset, supply_fpregset): Use s390_native_supply.
842 (fill_gregset, fill_fpregset): Use s390_native_collect.
843
844 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
845 (s390_unwind_pseudo_register): New function.
846 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
847 registers instead of PC and CC.
848 (s390_backchain_frame_unwind_cache): Likewise.
849 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
850 full GPR pseudos.
851 (s390_trad_frame_prev_register): New function.
852 (s390_frame_prev_register): Use it.
853 (s390_sigtramp_frame_prev_register): Likewise.
854 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
855 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
856 special callback to unwind any pseudo.
857
858 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
859 * features/s390-core64.xml: Likewise.
860 * features/s390x-core64.xml: Likewise.
861 * features/s390-linux32.c: Regenerate.
862 * features/s390-linux64.c: Likewise.
863 * features/s390x-linux64.c: Likewise.
864
1dd635ac
UW
8652011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
866
867 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
868
0161e4b9
UW
8692011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
870
871 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
872 instruction. Add more diagnostic output.
873
0c36327f
AS
8742011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
875
876 * MAINTAINERS (Write After Approval): Add myself to the list.
877
b4264740
SD
8782011-11-29 Sanjoy Das <sdas@igalia.com>
879
880 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
881 (jit_bfd_try_read_symtab): Fix comments.
882
87326c78
DD
8832011-11-28 DJ Delorie <dj@redhat.com>
884
885 * NEWS: Mention RL78 simulator.
886
1e3a8f45
JB
8872011-11-28 Joel Brobecker <brobecker@adacore.com>
888
889 * symfile.h (struct quick_symbol_functions): Fix the documentation
890 of field map_matching_symbols, as symbols are sorted using
891 strcmp_iw_ordered, not strcmp_iw.
892
265e52c3
JB
8932011-11-28 Paul Hilfinger <hilfinger@adacore.com>
894
895 * symfile.h (struct quick_symbol_functions): Update the
896 documentation for field map_matching_symbols.
897
1a1d5513
JB
8982011-11-28 Joel Brobecker <brobecker@adacore.com>
899
900 * ada-lang.c (compare_names): Fix wrong return value in case
901 string1 starts with the same contents as string2, followed
902 by an underscore that do not start a symbol name suffix.
903
5d9c5995
PM
9042011-11-28 Phil Muldoon <pmuldoon@redhat.com>
905
906 PR python/13369
907 PR python/13374
908
909 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
910 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
911 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
912 exceptions.
913 * python/py-type.c (typy_strip_typedefs): Ditto.
914 (typy_legacy_template_argument): Ditto.
915 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
916 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
917
2bf50f6f
JB
9182011-11-27 Joel Brobecker <brobecker@acacore.com>
919
920 * remote.c (remote_get_tracepoint_status): Delete addrbuf
921 local variable. Avoid use of sprintf_vma.
922
744ab88c
SD
9232011-11-27 Sanjoy Das <sdas@igalia.com>
924
925 Fix regression in jit.exp.
926 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
927 (jit_register_code): Set the jit_objfile_data field to the correct
928 value.
929
46ad3598
UW
9302011-11-25  Uros Bizjak  <ubizjak@gmail.com>
931
932 * alpha-tdep.c (br_opcode): New.
933 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
934 (alpha_deal_with_atomic_sequence): New function.
935 (alpha_gdbarch_init): Handle single stepping of atomic sequences
936 with alpha_deal_with_atomic_sequence.
937
e4c5f296
TG
9382011-11-24 Tristan Gingold <gingold@adacore.com>
939
940 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
941 fields. Add oso_sym, end_sym and nbr_syms.
942 (macho_register_oso): Change interface.
943 (macho_symtab_add_minsym): New function.
944 (macho_symtab_read): Rewritten.
945 (get_archive_prefix_len): Remove trailing blanks.
946 (oso_el_compare_name): Add comment.
947 (struct macho_sym_hash_entry): New structure.
948 (macho_relocate_common_syms): Remove.
949 (macho_sym_hash_newfunc): New function.
950 (macho_resolve_oso_sym_with_minsym): Likewise.
951 (macho_add_oso_symfile): Rewritten.
952 (macho_symfile_read_all_oso): Remove trailing blanks.
953 Adjust code to free oso vector.
954 (macho_symfile_read): Likewise.
955 Move code to initialize minimal symbol
956
130854df
MR
9572011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
958
959 * mips-tdep.c (extended_offset): Fix formatting.
960
3d7bb9d9
DE
9612011-11-23 Doug Evans <dje@google.com>
962
963 * dwarf2read.c (dw2_lookup_symtab): Add comment.
964 (dw2_expand_symtabs_with_filename): Ditto.
965 (dw2_expand_symtabs_matching): Ditto.
966 (dw2_map_symbol_filenames): Ditto.
967
1fbf5ada
JB
9682011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
969
970 * ada-lang.c (assign_aggregate): Minor reformatting.
971
d984108d
JB
9722011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
973
974 * ada-lang.c (assign_aggregate): Remove declaration of local
975 variable `i' which is shadowing another variable with the same
976 name declared in the outer scope.
977
18af8284
JB
9782011-11-23 Joel Brobecker <brobecker@adacore.com>
979
980 * ada-lang.c (get_base_type): Renames base_type. Adjust all
981 calls throughout this file.
982
1fc7b5d7
JB
9832011-11-23 Joel Brobecker <brobecker@adacore.com>
984
985 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
986 FormatMessage.
987
36dfb11c
TT
9882011-11-22 Tom Tromey <tromey@redhat.com>
989
990 PR mi/8444:
991 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
992 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
993 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
994 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
995 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
996 (print_it_catch_syscall, print_it_catch_exec)
997 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
998 (bpstat_print): Add 'kind' argument. Handle
999 TARGET_WAITKIND_LOADED.
1000 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1001 handle TARGET_WAITKIND_LOADED here.
1002 * breakpoint.h (bpstat_print): Update.
1003
5bd6aa83
TT
10042011-11-22 Tom Tromey <tromey@redhat.com>
1005
1006 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1007
f5afdc18
TT
10082011-11-22 Tom Tromey <tromey@redhat.com>
1009
1010 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1011 Use static_assert to check the size of
1012 async_reason_string_lookup.
1013 * common/gdb_assert.h (static_assert): New macro.
1014
a3769e0c
AM
10152011-11-22 Alan Modra <amodra@gmail.com>
1016
1017 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1018 destination calculation. Don't expect >> to sign extend. Don't
1019 add a break if branch lands inside the sequence anywhere.
1020
56767571
KS
10212011-11-21 Keith Seitz <keiths@redhat.com>
1022
1023 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1024 -var-evaluate-expression of an enumeration and fix expected result.
1025 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1026
8443c207
KY
10272011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1028
1029 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1030 the case where osdata->items is empty. Rename column names to a
1031 canonical form to avoid problems with unusual column names.
1032
97643830
YQ
10332011-11-21 Yao Qi <yao@codesourcery.com>
1034
1035 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1036
f196051f
SS
10372011-11-20 Stan Shebs <stan@codesourcery.com>
1038
1039 * NEWS: Mention tracepoint additions.
1040 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1041 * breakpoint.c (print_one_breakpoint_location): Identify
1042 tracepoints as such when reporting hit counts, report
1043 trace buffer usage.
1044 (create_tracepoint_from_upload): Copy status info.
1045 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1046 add fields user_name, notes, start_time, stop_time.
1047 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1048 * tracepoint.c (trace_user): New global.
1049 (trace_notes): New global.
1050 (trace_stop_notes): New global.
1051 (start_tracing): Add argument and trace note handling.
1052 (stop_tracing): Ditto.
1053 (trace_start_command): Add notes argument.
1054 (trace_stop_command): Ditto.
1055 (trace_status_command): Report additional status info.
1056 (trace_status_mi): Similarly.
1057 (trace_save): Update, record tracepoint status.
1058 (set_disconnected_tracing): Call target method directly.
1059 (send_disconnected_tracing_value): Remove.
1060 (set_trace_user): New function.
1061 (set_trace_notes): New function.
1062 (set_trace_stop_notes): New function.
1063 (parse_trace_status): Handle additional status.
1064 (parse_tracepoint_status): New function.
1065 (parse_tracepoint_definition): Call it.
1066 (tfile_get_tracepoint_status): New function.
1067 (init_tfile_ops): Use it.
1068 (_initialize_tracepoint): Add new setshows.
1069 * target.h (struct target_ops): New methods to_get_tracepoint_status
1070 and to_set_trace_notes.
1071 (target_get_tracepoint_status): New macro.
1072 (target_set_trace_notes): New macro.
1073 * target.c (update_current_target): Add new methods.
1074 * remote.c (remote_get_tracepoint_status): New function.
1075 (remote_set_trace_notes): New function.
1076 (init_remote_ops): Add them.
1077 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1078 (mi_cmd_trace_stop): Ditto.
1079
3623dc3a
SD
10802011-11-20 Sanjoy Das <sdas@igalia.com>
1081
1082 * jit.c: Include regcache.h.
1083 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1084 (jit_unwind_reg_set_impl, free_reg_value_impl)
1085 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1086 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1087 (jit_frame_prev_register, jit_dealloc_cache)
1088 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1089 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1090 jit_prepend_unwinder.
1091 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1092
1825a88d
SD
10932011-11-20 Sanjoy Das <sdas@igalia.com>
1094
1095 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1096 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1097 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1098 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1099 (finalize_symtab, jit_object_close_impl)
1100 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1101 (free_objfile_data): New functions.
1102 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1103 function.
1104
784c47ee
SD
11052011-11-20 Sanjoy Das <sdas@igalia.com>
1106
1107 * jit.c: Include gdb-dlfcn.h.
1108 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1109 (jit_reader_load, jit_reader_load_command)
1110 (jit_reader_unload_command): New functions.
1111 (_initialize_jit): Add commands "jit-reader-load" and
1112 "jit-reader-unload".
1113
a2d08b9e
SD
11142011-11-20 Sanjoy Das <sdas@igalia.com>
1115
1116 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1117 * config.in: Add new #define HAVE_LIBDL.
1118 * configure.ac: Add check for -ldl.
1119 * configure: Re-generated by autoconf.
1120 * gdb-dlfcn.c: New file.
1121 * gdb-dlfcn.h: New file.
1122
b8e0a31c
SD
11232011-11-20 Sanjoy Das <sdas@igalia.com>
1124
1125 * config.in: Add new #defines: JIT_READER_DIR and
1126 JIT_READER_DIR_RELOCATABLE.
1127 * configure.ac: New GDB directory entry for jit-reader-dir.
1128 * configure: Re-generated by autoconf.
1129 * jit.c: New static variable: const char *jit_reader_dir.
1130 (_initialize_jit): Relocate jit_reader_dir.
1131
f997c383
SD
11322011-11-20 Sanjoy Das <sdas@igalia.com>
1133
1134 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1135 $(includedir)/gdb.
1136 * configure.ac: Generate a correct value for TARGET_PTR for
1137 jit-reader.h. Tell configure to generate jit-reader.h from
1138 jit-reader.in.
1139 * configure: Re-generated by autoconf.
1140 * jit-reader.in: New file.
1141 * jit.c: Include jit-reader.h.
1142
dc8c0494
SD
11432011-11-20 Sanjoy Das <sdas@igalia.com>
1144
1145 * MAINTAINERS (Write After Approval): Add myself to the list.
1146
01efb936
UW
11472011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1148
1149 * findvar.c (read_frame_register_value): Respect value_offset
1150 of the register value. Remove big-endian special case.
1151
732f3f12
TT
11522011-11-18 Tom Tromey <tromey@redhat.com>
1153
1154 PR build/7196:
1155 * remote.c (putpkt_for_catch_errors): New function.
1156 (remote_kill): Use it.
1157
bfccc43c
YQ
11582011-11-18 Yao Qi <yao@codesourcery.com>
1159
1160 * breakpoint.c (create_breakpoint): Produce query message according to
1161 breakpoint's type.
1162 Allocate tracepoint per correct type.
1163 Don't check SALs for pending fast tracepoints.
1164 * tracepoint.c (process_tracepoint_on_disconnect): New.
1165 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1166
3ea46bff
YQ
11672011-11-18 Yao Qi <yao@codesourcery.com>
1168
1169 * breakpoint.c (install_breakpoint): Add one more parameter so that
1170 update_global_location_list is called conditionally.
1171 (create_fork_vfork_event_catchpoint): Update.
1172 (create_syscall_event_catchpoint): Update.
1173 (create_breakpoint_sal): Update.
1174 (create_breakpoint_sal): Update. Call do_cleanups before
1175 install_breakpoint.
1176 * ada-lang.c (create_ada_exception_catchpoint): Update.
1177 * breakpoint.h (install_breakpoint): Update declaration.
1178
598cfb71
UW
11792011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1180
1181 * spu-tdep.c (spu_return_value): Fix handling of
1182 TYPE_CALLING_CONVENTION annotation.
1183
caf4328c
UW
11842011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1185
1186 * skip.c (skip_function_command): Work around uninitialized
1187 variable warning.
1188
2b54dda2
DM
11892011-11-16 David S. Miller <davem@davemloft.net>
1190
1191 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1192 'tv_usec' to long for printf since these fields have a type which
1193 varies.
1194
93bf33fd
DE
11952011-11-15 Doug Evans <dje@google.com>
1196
1197 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1198
9cc10fd1
PK
11992011-11-15 Paul Koning <paul_koning@dell.com>
1200
1201 * python/py-type.c (typy_get_composite): New function.
1202 (typy_nonzero): New function.
1203 (typy_values): Rename from typy_fields.
1204 (typy_fields): New function.
1205 (typy_length): Raise exception if not struct, union, or enum type.
1206 (typy_getitem): Ditto.
1207 (typy_has_key): Ditto.
1208 (typy_make_iter): Ditto.
1209
c011a4f4
DE
12102011-11-15 Doug Evans <dje@google.com>
1211
1963ff96 1212 PR gdb/8367
c011a4f4
DE
1213 * NEWS: Mention new parameter basenames-may-differ.
1214 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1215 ! basenames_may_differ.
1216 * psymtab.c (lookup_partial_symtab): Ditto.
1217 * symtab.c (lookup_symtab): Ditto.
1218 (basenames_may_differ): New global.
1219 (_initialize_symtab): New parameter basenames-may-differ.
1220 * symtab.h (basenames_may_differ): Declare.
1221
865ecab4
LM
12222011-11-15 Pedro Alves <pedro@codesourcery.com>
1223 Luis Machado <lgustavo@codesourcery.com>
1224
1225 * auxv.c: Include observer.h.
1226 (auxv_inferior_data_cleanup): New.
1227 (invalidate_auxv_cache_inf): New.
1228 (invalidate_auxv_cache): New.
1229 (get_auxv_inferior_data): New.
1230 (auxv_inferior_data): New static global.
1231 (auxv_info): New structure.
1232 (target_auxv_search): Use get_auxv_inferior_data instead of
1233 target_read_alloc and don't free cached buffers.
1234 (fprint_target_auxv): Likewise
1235 (_initialize_auxv): Register per-inferior auxv cache and register
1236 observers to invalidate auxv cache when needed.
1237
ed59ded5
DE
12382011-11-14 Doug Evans <dje@google.com>
1239
37acd67c 1240 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1241 * NEWS: Add mention.
1242 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1243 adding "!" command, always add it.
1244 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1245 command of length one.
1246
405f8e94
SS
12472011-11-14 Stan Shebs <stan@codesourcery.com>
1248 Kwok Cheung Yeung <kcy@codesourcery.com>
1249
1250 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1251 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1252 the minimum instruction size for fast tracepoints.
1253 * target.h (struct target_ops): Add new method
1254 to_get_min_fast_tracepoint_insn_len.
1255 (target_get_min_fast_tracepoint_insn_len): New.
1256 * target.c (update_current_target): Set up new target operation.
1257 * remote.c (remote_write_bytes_aux): Fix typo.
1258 (remote_get_min_fast_tracepoint_insn_len): New.
1259 (init_remote_ops): Initialize new field.
1260
3e05895e
TT
12612011-11-14 Tom Tromey <tromey@redhat.com>
1262
1263 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1264 (encode_actions): Likewise.
1265
1e4d1764
YQ
12662011-11-14 Yao Qi <yao@codesourcery.com>
1267
1268 * remote.c (struct remote_state): <install_in_trace> new field.
1269 (PACKET_InstallInTrace): New enum value.
1270 (remote_install_in_trace_feature): Support InstallInTrace.
1271 (remote_supports_install_in_trace): Likewise.
1272 (remote_protocol_features): Likewise.
1273 (_initialize_remote): Likewise.
1274 (remote_can_download_tracepoint): New.
1275 * target.h (struct target): New field
1276 `to_can_download_tracepoint'.
1277 (target_can_download_tracepoint): New macro.
1278 * target.c (update_current_target): Update.
1279 * breakpoint.h (struct bp_location): Add comment on field
1280 `duplicate'.
3ccd4ac6
YQ
1281 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1282 and tracepoint.
1e4d1764
YQ
1283 (remove_breakpoints): Don't remove tracepoints.
1284 (tracepoint_locations_match ): New.
1285 (breakpoint_locations_match): Call it.
1286 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1287 (download_tracepoint_locations): New.
1288 (update_global_location_list): Call it.
1289 * tracepoint.c (find_matching_tracepoint): Delete.
1290 (find_matching_tracepoint_location): Renamed from
1291 find_matching_tracepoint. Return bp_location rather than
1292 tracepoint.
1293 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1294 tracepoint is found.
1295
e8ba3115
YQ
12962011-11-14 Yao Qi <yao@codesourcery.com>
1297
1298 * target.h (struct target): <to_download_tracepoint> Change type
1299 of parameter from tracepoint to bp_location.
1300 * target.c (update_current_target): Update.
1301 * tracepoint.c (start_tracing): Update.
1302 * remote.c (remote_download_tracepoint): Remove loop for each location
1303 of a tracepoint.
1304
edcc485a
MR
13052011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1306
1307 * i386-nat.c (i386_insert_hw_breakpoint): Call
1308 i386_update_inferior_debug_regs.
1309 (i386_remove_hw_breakpoint): Likewise.
1310
3742cc8b
YQ
13112011-11-14 Yao Qi <yao@codesourcery.com>
1312
1313 * breakpoint.c (init_raw_breakpoint): Call
1314 add_location_to_breakpoint to replace duplicated code.
1315 (add_location_to_breakpoint): Adjust the breakpoint's
1316 address prior to allocating a location.
1317
71eba9c2 13182011-11-12 Matt Rice <ratmice@gmail.com>
1319
1320 * macrocmd.c (macro_no_macro_info): New function.
1321 (macro_expand_command): Use macro_no_macro_info.
1322 (macro_expand_once_command): Ditto.
1323 (info_macro_command): Add argument processing,
1324 move info_definitions_command here.
1325 (_initialize_macrocmd): Remove info definitions command.
1326 Add arguments to info macro help text.
1327 * NEWS: Replace info definitions command with new info macro options.
1328
731971ed
KS
13292011-11-11 Keith Seitz <keiths@redhat.com>
1330
1331 PR gdb/12843
1332 * linespec.c (locate_first_half): Keep ':' if it looks
1333 like it could be part of a Windows path starting with
1334 a drive letter.
1335
6953d224
PA
13362011-11-10 Pedro Alves <pedro@codesourcery.com>
1337
1338 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1339 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1340
0c94aa73
PA
13412011-11-10 Pedro Alves <pedro@codesourcery.com>
1342
1343 * target.c (target_waitstatus_to_string): Handle
1344 TARGET_WAITKIND_NO_RESUMED.
1345
f6b47be4
DE
13462011-11-10 Doug Evans <dje@google.com>
1347
74e2f255
DE
1348 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1349 `need_fullname'.
1350 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1351 (map_partial_symbol_filenames): Ditto. All callers updated.
1352 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1353 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1354 parameter need_fullname.
1355
256f06f3
DE
1356 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1357 * source.c (symtab_to_fullname): Ditto.
1358
50f182aa
DE
1359 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1360 * gdb-demangle.h: ... here. New file.
1361 * demangle.c: #include "gdb-demangle.h".
1362 (_initialize_demangler): Use initialize_file_ftype for prototype.
1363 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1364 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1365 from utils.c
1366 * utils.c: Update. #include "gdb-demangle.h".
1367 * symtab.h (asm_demangle): Delete.
1368 (demangle): Move declaration next to use.
1369 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1370 * dwarf2read.c: #include "gdb-demangle.h".
1371 * gnu-v2-abi.c: Ditto.
1372 * jv-typeprint.c: Ditto.
1373 * mdebugread.c: Ditto.
1374 * p-typeprint.c: Ditto.
1375 * stabsread.c: Ditto.
1376 * printcmd.c: Ditto.
1377 (asm_demangle): Delete declaration.
1378 * tui/tui-stack.c: #include "gdb-demangle.h".
1379
f6b47be4
DE
1380 * python/py-type.c (typy_fields_items): Call check_typedef.
1381
22355c90
JB
13822011-11-10 Joel Brobecker <brobecker@adacore.com>
1383
1384 * findvar.c (read_frame_register_value): Read the correct bytes
1385 from registers on big-endian architectures.
1386
bd119cf1 13872011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1388
1389 * procfs.c (load_syscalls): Make a cleanup.
1390 (open_procinfo_files): fd==0 is ok.
1391
0a86f364
JB
13922011-11-10 Joel Brobecker <brobecker@adacore.com>
1393
1394 * procfs.c (iterate_over_mappings): Call do_cleanups before
1395 returning.
1396
9bc118a5
DE
13972011-11-09 Doug Evans <dje@google.com>
1398
1399 * gdbtypes.c (check_typedef): Document that this function can
1400 throw an exception.
1401
a7860e76
TT
14022011-11-09 Tom Tromey <tromey@redhat.com>
1403
1404 PR c++/13342:
1405 * valops.c (value_full_object): Return early if real type is
1406 smaller than the enclosing type.
1407
60965737
YQ
14082011-11-08 Yao Qi <yao@codesourcery.com>
1409
1410 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1411
72a2e3dc
MI
14122011-11-08 Meador Inge <meadori@codesourcery.com>
1413
1414 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1415 register when the frame can't be determined.
1416 * arm-tdep.c (arm_analyze_prologue): Ditto.
1417
ce3b0ff7
SS
14182011-11-07 Stan Shebs <stan@codesourcery.com>
1419
1420 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1421
2b914b52
JB
14222011-11-07 Joel Brobecker <brobecker@adacore.com>
1423
1424 * infrun.c (handle_inferior_event): Minor reformatting.
1425
6f809020
DE
14262011-11-05 Doug Evans <dje@google.com>
1427
1428 * source.c (forget_cached_source_info_for_objfile): Move call to
1429 objfile->sf->qf->forget_cached_source_info outside of
1430 ALL_OBJFILE_SYMTABS loop.
1431 (forget_cached_source_info): Delete unused variable `s'.
1432
75d12218
JK
14332011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1434
1435 * i386-nat.c (dr_ref_count): Remove unused variable.
1436
e565b837
DE
14372011-11-05 Doug Evans <dje@google.com>
1438
1439 * main.c (captured_main): Set lim_at_start before calling
1440 make_command_stats_cleanup.
1441
0a1c4d10
DE
14422011-11-04 Doug Evans <dje@google.com>
1443
1444 * utils.c: #include "timeval-utils.h".
1445 (cmd_stats): Rename start_time to start_cpu_time.
1446 New member start_wall_time.
1447 (report_command_stats): Report wall time.
1448 (make_command_stats_cleanup): Record start wall time.
1449
a1d705ee
TT
14502011-11-04 Tom Tromey <tromey@redhat.com>
1451
1452 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1453
81de56be
RO
14542011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1455
1456 * coff-pe-read.c: Include defs.h before bfd.h.
1457
3ab1ec27
PM
14582011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1459
1460 PR Python/13345
1461
1462 * python/python.c (python_run_simple_file): Expand tilde in path.
1463
cd829959
PM
14642011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1465
1466 PR Python/13363
1467
1468 * python/py-type.c (typy_lookup_type): Do not return a type in
1469 an exception handler.
1470
080ad648
JK
14712011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1472 Eli Zaretskii <eliz@gnu.org>
1473
1474 * linux-nat.c (_initialize_linux_nat): Improve help
1475 for `info proc stat', `info proc status', `info proc cwd',
1476 `info proc cmdline' and `info proc exe'.
1477
3065dfb6
SS
14782011-11-02 Stan Shebs <stan@codesourcery.com>
1479
1480 String collection for tracepoints.
1481 * NEWS: Mention string collection.
1482 * common/ax.def (tracenz): New bytecode.
1483 * ax-gdb.h (trace_string_kludge): Declare.
1484 * ax-gdb.c: Include valprint.h and c-lang.h.
1485 (trace_string_kludge): New global.
1486 (gen_traced_pop): Add string case.
1487 (agent_command): Add string case.
1488 * tracepoint.h (decode_agent_options): Declare.
1489 * tracepoint.c: Include cli-utils.h.
1490 (decode_agent_options): New function.
1491 (validate_actionline): Call it.
1492 (encode_actions_1): Ditto.
1493 * target.h (struct target_ops): New method to_supports_string_tracing.
1494 (target_supports_string_tracing): New macro.
1495 * target.c (update_current_target): Add to_supports_string_tracing.
1496 * remote.c (struct remote_state): New field string_tracing.
1497 (remote_string_tracing_feature): New function.
1498 (remote_protocol_features): New feature tracenz.
1499 (remote_supports_string_tracing): New function.
1500 (init_remote_ops): Set to_supports_string_tracing.
1501
f179e162
JK
15022011-11-02 Pedro Alves <pedro@codesourcery.com>
1503 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 * linux-nat.c: Include cli/cli-utils.h.
1506 (enum info_proc_what): New.
1507 (linux_nat_info_proc_cmd): Rename to ...
1508 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1509 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1510 status_f and stat_f from WHAT. Throw error on extra parameters.
1511 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1512 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1513 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1514 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1515 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1516 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1517 `info proc cmdline', `info proc exe' and `info proc all' as real
1518 subcommands of `info proc'.
1519
7b35ec7f 15202011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1521
1522 * Makefile.in: (SFILES): Add skip.c.
1523 (HFILES_NO_SRCDIR): Add skip.h.
1524 (COMMON_OBS): Add skip.o.
1525 * skip.h, skip.c: New.
1526 * breakpoint.h (set_default_breakpoint): Remove.
1527 (get_sal_arch): Declare.
1528 * breakpoint.c: Remove default_breakpoint_valid,
1529 default_breakpoint_address, default_breakpoint_symtab,
1530 default_breakpoint_line, default_breakpoint_pspace variables.
1531 (get_sal_arch): Make public.
1532 (set_default_breakpoint): Remove.
1533 (parse_breakpoint_sals, create_breakpoint, clear_command,
1534 decode_line_spec_1): Remove uses of default_breakpoint variables;
1535 replaced with function calls into stack.c.
1536 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1537 * cli/cli-cmds.c: Add skiplist.
1538 (init_cmd_lists): Initialize skiplist.
1539 (init_cli_cmds): Fix comment (classes of commands appear in
1540 alphabetical order).
1541 * infrun.c (handle_inferior_event): Add check that we don't step into
1542 a function whose pc is marked for skip.
1543 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1544 last_displayed_addr, last_displayed_symtab, last_displayed_line
1545 variables.
1546 (set_last_displayed_sal): New static function.
1547 (print_frame_info): Switch call to set_default_breakpoint to call to
1548 set_last_displayed_sal.
1549 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1550 get_last_displayed_pspace, get_last_displayed_addr,
1551 get_last_displayed_symtab, get_last_displayed_line,
1552 get_last_displayed_sal): New public functions.
1553 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1554 get_last_displayed_pspace, get_last_displayed_addr,
1555 get_last_displayed_symtab, get_last_displayed_line,
1556 get_last_displayed_sal): Declare.
1557
b60e1588
JL
15582011-11-01 Justin Lebar <justin.lebar@gmail.com>
1559
1560 * MAINTAINERS (Write After Approval): Add myself to the list.
1561
d31647d2
YQ
15622011-10-29 Yao Qi <yao@codesourcery.com>
1563
1564 * infcmd.c (disconnect_command): Call disconnect_tracing.
1565
b1d96efd
JK
15662011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1567
1568 Code cleanup.
1569 * symtab.c (skip_prologue_sal): Code reformatting.
1570
4dfb2365
JK
15712011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1572
1573 PR symtab/13208
1574 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1575 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1576 SAI.
1577
0e5bf2a8
PA
15782011-10-28 Pedro Alves <pedro@codesourcery.com>
1579
1580 * linux-nat.c (linux_nat_filter_event): Remove `options'
1581 parameter, and dead code that used it. If we're handling a
1582 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1583 in our lwp list, re-add it.
1584 (check_zombie_leaders): New.
1585 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1586 wait for children with WNOHANG, and always wait for all children.
1587 Don't check for no resumed children upfront. Simplify wait loop.
1588 Check for zombie thread group leaders after handling all wait
1589 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1590 unwaited-for children left.
1591 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1592 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1593 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1594 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1595
821296b7
SA
15962011-10-28 Sterling Augustine <saugustine@google.com>
1597
1598 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1599 * symtab.c (free_completion_list): New function.
1600 (do_free_completion_list): Likewise.
1601 (default_make_symbol_completion_list_break_on): New variable
1602 back_to. Call make_cleanup and discard_cleanups.
1603 (make_source_files_completion_list): Likewise.
1604
03c3051a
PK
16052011-10-28 Paul Koning <paul_koning@dell.com>
1606
1607 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1608 * NEWS: Mention deep_items.
1609
8e7ebaf5
PA
16102011-10-28 Alen Skondro <askondro@gmail.com>
1611
8de33dc2 1612 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1613 defined.
1614
e0c6ef61
MI
16152011-10-27 Meador Inge <meadori@codesourcery.com>
1616
1617 * MAINTAINERS (Write After Approval): Add myself to the list.
1618
b56d6f31
JB
16192011-10-27 Joel Brobecker <brobecker@adacore.com>
1620
1621 * value.h (read_frame_register_value): Add declaration.
1622 * findvar.c (read_frame_register_value): New function.
1623 (value_from_register): Use read_frame_register_value
1624 instead of get_frame_register_value + value_contents_copy
1625 to get value contents.
1626
d234ef5c
DE
16272011-10-27 Doug Evans <dje@google.com>
1628
1629 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1630 source_script_from_stream if it may have been found on the search path.
1631 * python/py-auto-load.c (source_section_scripts): Pass full path to
1632 source_python_script_for_objfile.
1633 * python/python.c (source_python_script): Delete stream parameter.
1634 All callers updated.
1635 (source_python_script_for_objfile): Ditto.
1636 * python/python-internal.h (source_python_script_for_objfile): Update.
1637 * python/python.h (source_python_script): Update.
1638
d849d44f
TT
16392011-10-27 Tom Tromey <tromey@redhat.com>
1640
1641 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1642 (ada_sals_for_line): Remove declarations.
1643
2231f1fb
KP
16442011-10-27 Kevin Pouget <kevin.pouget@st.com>
1645
1646 Move unwind reasons to an external .def file
1647 * frame.c (frame_stop_reason_string): Rewrite using
1648 unwind_stop_reasons.def.
1649 * frame.h (enum unwind_stop_reason): Likewise.
1650 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1651 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1652 constants for bound-checking.
1653 * unwind_stop_reasons.def: New file.
1654 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1655 instead of a distinct value.
1656
f77b9a5d
PM
16572011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1658
1659 PR python/13331
1660
1661 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1662 (convert_values_to_python): Return on Python tuple allocation
1663 failure. Return NULL on value conversion error.
1664
76dce0be
PM
16652011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1666
1667 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1668 (bppy_set_task): Ditto.
1669 (bppy_delete_breakpoint): Ditto.
1670 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1671 (gdbpy_lookup_global_symbol): Ditto.
1672 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1673 * python/py-frame.c (frapy_is_valid): Ditto.
1674 (frame_info_to_frame_object): Ditto.
1675 * python/py-type.c (typy_lookup_type): Ditto.
1676 (typy_getitem): Ditto.
1677 (typy_has_key): Ditto.
1678 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1679
f17b6955
JB
16802011-10-26 Joel Brobecker <brobecker@adacore.com>
1681
1682 * gdbarch.h: Regenerate.
1683
86ba1042
JB
16842011-10-26 Meador Inge <meadori@codesourcery.com>
1685
1686 * gdbarch.sh (function_list): Use 'pstring' when printing
1687 'gcore_bfd_target'.
1688 * gdbarch.c: Regenerate.
1689
c34fd852
UW
16902011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1691
1692 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1693 and frame caches if PTID refers to all threads of a process.
1694
931bb47f
UW
16952011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1696
1697 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1698 to create_breakpoint.
1699
88aed45e
UW
17002011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1701
1702 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1703 (ppc_sysv_abi_push_dummy_call): Use it.
1704 (do_ppc_sysv_return_value): Likewise.
1705 (ppc64_sysv_abi_push_dummy_call): Likewise.
1706 (ppc64_sysv_abi_return_value): Likewise.
1707
3eaf3fa2
PK
17082011-10-26 Paul Koning <paul_koning@dell.com>
1709
1710 * python/lib/gdb/types.py (deepitems): New function.
1711
913460fc
PK
17122011-10-25 Paul Koning <paul_koning@dell.com>
1713
1714 PR python/13327
1715
1716 * python/py-value.c (value_to_value_object): Remove fetching of
1717 the value if it was lazy.
1718 (valpy_get_is_lazy): New function.
1719 (valpy_fetch_lazy): New function.
1720
2b5b9d09
JB
17212011-10-24 Joel Brobecker <brobecker@adacore.com>
1722
1723 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1724 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1725
e21ffe51
PA
17262011-10-24 Pedro Alves <pedro@codesourcery.com>
1727
1728 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1729 event, in non-stop, if not stopping, make sure the new lwp has
1730 last_resume_kind set to resume_continue. Assert that when we're
1731 resuming the new lwp, its last_resume_kind is resume_continue.
1732
7aee8dc2
PA
17332011-10-24 Pedro Alves <pedro@codesourcery.com>
1734
1735 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1736 already set when marking the event thread as not executing in
1737 non-stop mode.
1738
4b4e080e
PA
17392011-10-24 Pedro Alves <pedro@codesourcery.com>
1740
1741 * infrun.c (handle_inferior_event): Add debug output for
1742 TARGET_WAITKIND_NO_HISTORY.
1743
baacfb07
PM
17442011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1745
1746 * NEWS: Move set/show extended-prompt to "New Options". Expand
1747 description. Fix typos.
1748
8432bc41
PM
17492011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1750
1751 PR python/13310
1752
1753 * python/py-param.c (call_doc_function): Correctly deference on
1754 function exit.
1755
6cda5a20
JB
17562011-10-21 Joel Brobecker <brobecker@adacore.com>
1757
1758 * ada-tasks.c (print_ada_task_info): Fix computation of
1759 number of tasks displayed in command output.
1760
13294f7d
JK
17612011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Ulrich Weigand <uweigand@de.ibm.com>
1763
1764 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1765 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1766 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1767 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1768 gdbarch_unwind_pc.
1769
460c1c54
CC
17702011-10-20 Cary Coutant <ccoutant@google.com>
1771
1772 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1773 section to...
1774 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1775 flag. Adjust all callers.
1776 (process_psymtab_comp_unit): Remove adjustment for type section.
1777
a10964d1
AR
17782011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1779
1780 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1781 arguments by adding OBJFILE. Instead of getting objfile from
1782 symbol's symtab, use new argument OBJFILE.
1783 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1784 arguments by adding OBJFILE.
1785 * gdb/dwarf2read.c (new_symbol_full): Change call to
1786 cp_scan_for_anonymous_namespaces to match new signature.
1787 * gdb/stabsread.c (define_symbol): Change call to
1788 cp_scan_for_anonymous_namespaces to match new signature.
1789
27ca1a5b
PM
17902011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1791
1792 PR python/13308
1793 PR python/13309
1794
1795 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1796 leak.
1797 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1798 leak. Delete unused variables.
1799
9df2fbc4
PM
18002011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1801
1802 PR python/12656
1803
1804 * python/py-frame.c (frapy_read_var): Use const struct *block.
1805 * python/py-type.c (typy_lookup_typename): Likewise.
1806 (typy_lookup_type): Likewise.
1807 (typy_legacy_template_argument): Likewise.
1808 (typy_template_argument): Likewise.
1809 (gdbpy_lookup_type): Likewise.
1810 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1811 * python/py-block.c (blpy_block_object): Likewise.
1812 (blpy_iter): Likewise.
1813 (blpy_get_start): Likewise.
1814 (blpy_get_end): Likewise.
1815 (blpy_get_function): Likewise.
1816 (blpy_get_superblock): Likewise.
1817 (set_block): Likewise.
1818 (block_to_block_object): Likewise.
1819 (block_object_to_block): Likewise.
1820 (blpy_is_valid): Likewise.
1821 (blpy_get_global_block): New function.
1822 (blpy_get_static_block): New function.
1823 (blpy_is_global): New function.
1824 (blpy_is_static): New function.
1825 * blockframe.c (block_innermost_frame): Likewise.
1826 * valops.c (value_of_variable): Likewise.
1827 * frame.h: Update prototypes.
1828 * python/python-internal.h: Likewise.
1829 * value.h: Likewise.
1830
4743b735
CC
18312011-10-19 Cary Coutant <ccoutant@google.com>
1832
1833 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1834 type_offset field.
1835
6caca83c
CC
18362011-10-19 Cary Coutant <ccoutant@google.com>
1837
1838 * dwarf2read.c (peek_abbrev_code): New function.
1839 (dw2_get_file_names): Check for dummy compilation units.
1840 (create_debug_types_hash_table): Likewise.
1841 (process_psymtab_comp_unit): Likewise.
1842 (load_partial_comp_unit): Likewise.
1843 (load_full_comp_unit): Likewise.
1844
43136979
AR
18452011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1846
1847 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1848 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1849 pt_phdr if PT_PHDR was found.
1850
0a07729b
TT
18512011-10-17 Joost van der Sluis <joost@cnoc.nl>
1852
1853 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1854 type or "<unnamed type"> when there is no name assigned.
1855 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1856 avoid a sigint when no name is assigned.
1857
21ae7a4d
JK
18582011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1859
1860 Revert:
1861 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1862 * dwarf2expr.c (ctx_no_read_reg): New function.
1863 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1864 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1865 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1866 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1867
32d1c362
DE
18682011-10-16 Doug Evans <dje@google.com>
1869
1870 * NEWS: Document python gdb.printing.register_pretty_printer's new
1871 `replace' parameter.
1872
da096638
KS
18732011-10-14 Keith Seitz <keiths@redhat.com>
1874
1875 PR c++/13225
1876 * eval.c (evaluate_subexp_standard): Do not construct
1877 an array of types; pass the value array directly to
1878 find_overload_match.
1879 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1880 (rank_function): Take an array of values instead of types.
1881 (rank_one_type): Add struct value * parameter.
1882 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1883 (rank_function): For each argument, pass the argument's
1884 value to rank_one_type.
1885 (rank_one_type): Add VALUE parameter.
1886 If the parameter type is a pointer and the argument type
1887 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1888 VALUE is zero.
1889 Update all calls to rank_one_type, passing NULL for new
1890 VALUE parameter.
1891 * valarith.c (value_user_defined_cpp_op): Do not construct
1892 an array of types; pass the value array directly to
1893 find_overload_match.
1894 * valops.c (find_overload_method_list): Take an array of
1895 values instead of types.
1896 Save the type of OBJP for later use.
1897 Update calls to find_oload_champ, and find_oload_champ_namespace.
1898 (find_oload_champ_namespace): Take an array of values instead
1899 of types.
1900 (find_oload_champ_namespace_loop): Likewise.
1901 (find_oload_champ): Likewise.
1902 (classify_oload_match): Inspect all arguments
1903 until INCOMPATIBLE is found. Return the worst badness found
1904 otherwise.
1905 (compare_parameters): Update call to rank_one_type.
1906 * value.h (find_overload_match): Take an array of values instead
1907 of types.
1908
3957565a
JK
19092011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 Drop lazy lm_info reading.
1912 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1913 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1914 (lm_info_read): New function.
1915 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1916 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1917 lm_dynamic_from_link_map.
1918 (lm_next, lm_prev, lm_name): Remove.
1919 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1920 initialization incl. read_memory. No longer use lm_name.
1921 (svr4_free_so): Drop lm_info->lm freeing.
1922 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1923 explicit lm_addr and lm initialization.
1924 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1925 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1926 lm_name.
1927
cb08cc53
JK
19282011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1929 Paul Pluzhnikov <ppluzhnikov@google.com>
1930
1931 * defs.h (struct so_list): New forward declaration.
1932 (make_cleanup_free_so): New declaration.
1933 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1934 (svr4_free_so): Move the function here from downwards. Handle NULL
1935 so->lm_info.
1936 (svr4_free_library_list): New.
1937 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1938 Use more cleanups. Use new parameter ignore_first instead of
1939 ignore_first_link_map_entry.
1940 (svr4_current_sos): New variable ignore_first, initialize it. New
1941 variable back_to, use it for svr4_free_library_list protection.
1942 (svr4_free_so): Remove - move upwards.
1943 * utils.c: Include solist.h.
1944 (do_free_so, make_cleanup_free_so): New functions.
1945
22c05d8a
JK
19462011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 Fix internal error regression.
1949 * value.c (value_primitive_field): Handle value_optimized_out. Move
1950 packed bitfields comment.
1951
d930d06e
TT
19522011-10-13 Tom Tromey <tromey@redhat.com>
1953
1954 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1955 always released.
1956
2ff6b080
TT
19572011-10-13 Tom Tromey <tromey@redhat.com>
1958
1959 * python/py-type.c (typy_has_key): Make 'field' const.
1960
d6c5869f
LM
19612011-10-13 Luis Machado <lgustavo@codesourcery.com>
1962
1963 * remote.c (remote_save_trace_data): Invert comparison.
1964
a70633a2
LM
19652011-10-13 Luis Machado <lgustavo@codesourcery.com>
1966
1967 * tracepoint.c (trace_save_command): Use filename instead of
1968 args when printing.
1969
e103e986
JK
19702011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1973 if .size is 0.
1974
db24da6d
YQ
19752011-10-13 Yao Qi <yao@codesourcery.com>
1976
1977 PR gdb/12703
1978 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1979 whether insn is a 32-bit Thumb-2 instruction.
1980 (thumb_in_function_epilogue_p): Likewise.
1981 (thumb_get_next_pc_raw): Likewise.
1982 (arm_breakpoint_from_pc): Likewise.
1983
1d6edc3c
JK
19842011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1987 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1988 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1989 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1990 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1991 zero DATA.
1992 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1993 validity.
1994 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1995 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1996 clear DATA on zero SIZE.
1997
adabb602
DE
19982011-10-12 Doug Evans <dje@google.com>
1999
2000 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2001 header->first_die_offset here. All callers updated.
2002
5048e516
JK
20032011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 Fix compatibility with texinfo versions older than 4.12.
2006 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2007 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2008 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2009 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2010 * configure: Regenerate.
2011 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2012 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2013 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2014
0574c78f
GB
20152011-10-12 Gary Benson <gbenson@redhat.com>
2016
2017 * breakpoint.h (pc_at_non_inline_function): Declare.
2018 * breakpoint.c (is_non_inline_function,
2019 pc_at_non_inline_function): New functions.
2020 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2021 if the stop is at a location where functions cannot be inlined.
2022
12d9289a
PA
20232011-10-12 Pedro Alves <pedro@codesourcery.com>
2024
2025 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2026 the core wanted them stopped, or if they now have a pending event
2027 to report.
ecf8e7f5
PA
2028 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2029 down to stop_and_resume_callback.
2030 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2031 having new pending events after calling linux_nat_filter_event.
12d9289a 2032
96408a79
SA
20332011-10-11 Sterling Augustine <saugustine@google.com>
2034
2035 * dwarf2read.c: Undo inadvertent changes in previous commit.
2036
9c6c53f7
SA
20372011-10-11 Sterling Augustine <saugustine@google.com>
2038
2039 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2040 logic.
2041
0e8aefe7
UW
20422011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2043
2044 * symfile.c (separate_debug_file_exists): Fix condition.
2045
349d1385
DM
20462011-10-11 David S. Miller <davem@davemloft.net>
2047
2048 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2049 static.
2050 * regcache.h (regcache_restore): Remove declaration.
2051
205c306f
DM
2052 * gdbarch.sh: New field 'long_long_align_bit'.
2053 * gdbarch.c, gdbarch.h: Regenerate.
2054 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2055 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2056
941b2081
JK
20572011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2058
2059 Revert this part of:
2060 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 Support @entry in input expressions.
2062 * c-exp.y (ENTRY, unknown_cpp_name): New.
2063 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2064 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2065 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2066 (name_not_typename: ENTRY): New.
2067 (yylex): Recognize ENTRY.
2068
2069 Reimplement @entry in input expressions.
2070 * c-exp.y (ENTRY): New.
2071 (variable: name_not_typename ENTRY): New.
2072 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2073
3c4d7e12
PA
20742011-10-11 Pedro Alves <pedro@codesourcery.com>
2075
2076 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2077 parent and child's pids as soon as we detect a clone event.
2078 Adjust another debug message.
2079
ea23808b
PA
20802011-10-11 Pedro Alves <pedro@codesourcery.com>
2081
2082 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2083 not zombie instead of reading the whole file.
2084
904578ed
JK
20852011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2086
2087 Fix separate debuginfo warning with "remote:" access.
2088 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2089 * symfile.c (get_file_crc): New function with the code moved from ...
2090 (separate_debug_file_exists): ... this function, specifically variables
2091 buffer and count. New variable verified_as_different, set it. Remove
2092 file_crc initialization. Verify also if both files are not the same
2093 manually, if needed.
2094
51370a33
YQ
20952011-10-11 Yao Qi <yao@codesourcery.com>
2096
2097 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2098 to get address.
2099
0838fb57
DE
21002011-10-10 Doug Evans <dje@google.com>
2101
2102 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2103 libthread_db when we load libpthread or the main symbol file.
2104 (thread_db_inferior_created): New function.
2105 (_initialize_thread_db): Attach inferior_created observer.
2106 * linux-nat.c (linux_child_post_attach): Remove call to
2107 check_for_thread_db.
2108 (linux_child_post_startup_inferior): Ditto.
2109 * objfiles.h (OBJF_MAINLINE): Define.
2110 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2111 allocate_objfile when appropriate.
2112
623bd5b7
UW
21132011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2114
2115 PR gdb/13218
2116 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2117 Remove unused variables.
2118 (get_linux_version): Remove function.
2119 (_initialize_arm_linux_nat): Do not call it.
2120
79395f92
PA
21212011-10-10 Pedro Alves <pedro@codesourcery.com>
2122
2123 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2124 new clone lwp if the core asked it to stop. Don't pass on
2125 unexpected signals to the new clone; leave them pending instead.
2126
eff3df78
PA
21272011-10-10 Pedro Alves <pedro@codesourcery.com>
2128
2129 * linux-nat.c (resume_lwp): Remove redundant debug output.
2130
4b60df3d
PA
21312011-10-10 Pedro Alves <pedro@codesourcery.com>
2132
2133 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2134 last_resume_kind before clearing it, and use the copy instead to
2135 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2136 resume_clear_callback in the non-stop path too.
2137
6501578c
YQ
21382011-10-09 Yao Qi <yao@codesourcery.com>
2139
2140 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2141 Honor OPTIONS and VAL's type.
2142 (common_val_print, value_print): Update to pass one more parameter.
2143
5a56e9c5
DE
21442011-10-09 Doug Evans <dje@google.com>
2145
2146 Add new "alias" command.
2147 * NEWS: Mention new command.
2148 * command.h (valid_user_defined_cmd_name_p): Declare.
2149 * defs.h (make_cleanup_dyn_string_delete): Declare.
2150 * utils.c: #include "dyn-string.h".
2151 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2152 * cli/cli-cmds.c: #include "dyn-string.h".
2153 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2154 (init_cli_cmds): Add new command.
2155 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2156
509f0fd9
JK
21572011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 Fix compatibility with older GCCs.
2160 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2161 * stack.c (read_frame_arg): Initialize val_deref.
2162
2bda9cc5
JK
21632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Entry values NEWS entries, DWARF disassembly support.
2166 * NEWS: New entry values entry.
2167 (set print entry-values, show print entry-values)
2168 (set debug entry-values, show debug entry-values): New entries.
2169 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2170 indent. Remove variable start. Move header printing out. Respect
2171 INDENT. Support DW_OP_GNU_entry_value.
2172 (locexpr_describe_location_1): Move the header printing here, extend
2173 the disassemble_dwarf_expression passed parameters.
2174
a471c594
JK
21752011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2176
2177 Display @entry parameter values even for references.
2178 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2179 coerce_ref_if_computed.
2180 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2181 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2182 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2183 existing push_dwarf_reg_entry_value call. Add new detection calling
2184 dwarf_block_to_dwarf_reg_deref. Update the error message.
2185 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2186 * dwarf2expr.h
2187 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2188 parameter deref_size, describe it in the comment.
2189 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2190 (dwarf_block_to_dwarf_reg_deref): New declaration.
2191 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2192 deref_size, describe it in the function comment. New variables
2193 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2194 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2195 describe it in the function comment. Fetch the alternative block
2196 accoring to DEREF_SIZE.
2197 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2198 (entry_data_value_free_closure, entry_data_value_funcs): New.
2199 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2200 outer_val, target_val, val and addr. Try to fetch and create also
2201 referenced value content.
2202 (pieced_value_funcs): NULL value for coerce_ref.
2203 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2204 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2205 coerce_ref_if_computed.
2206 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2207 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2208 * stack.c (read_frame_arg): Compare also dereferenced values.
2209 * value.c (value_computed_funcs): Make the parameter v const, use
2210 value_lval_const for it.
2211 (value_lval_const, coerce_ref_if_computed): New function.
2212 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2213 * value.h (struct lval_funcs): New field coerce_ref.
2214 (value_computed_funcs): Make the parameter v const.
2215 (value_lval_const, coerce_ref_if_computed): New declarations.
2216
36b11add
JK
22172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 Support @entry in input expressions.
2220 * c-exp.y (ENTRY, unknown_cpp_name): New.
2221 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2222 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2223 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2224 (name_not_typename: ENTRY): New.
2225 (yylex): Recognize ENTRY.
2226 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2227 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2228 Likewise.
2229 * parse.c (operator_length_standard): Likewise.
2230 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2231
3343315b
JK
22322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 Display referenced values in backtraces.
2235 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2236 * stack.c (print_frame_arg): Likewise.
2237
ac71a68c
JK
22382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2239
2240 Make some lval_funcs methods to default on NULL.
2241 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2242 NULL.
2243 (value_assign): Check if lval_computed write method is NULL.
2244 * value.h (struct lval_funcs): Comment NULL values for read and write
2245 methods.
2246
e18b2753
JK
22472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 Display @entry parameter values (without references).
2250 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2251 New functions.
2252 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2253 New declarations.
2254 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2255 entry record.
2256 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2257 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2258 functions.
2259 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2260 (loclist_read_variable_at_entry): New function.
2261 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2262 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2263 DW_AT_location, call dwarf_block_to_sp_offset for it.
2264 * frame.h (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): New declarations.
2268 (struct frame_arg): New field entry_kind.
2269 (read_frame_arg): New parameter entryargp.
2270 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2271 arg->entry_kind. Optionally print the `@entry' suffix.
2272 (list_args_or_locals): New variable entryarg, initialize it.
2273 Initialize also entry_kind of arg and entryarg. Conditionalize
2274 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2275 xfree for entryarg.error.
2276 * stack.c (print_entry_values_no, print_entry_values_only)
2277 (print_entry_values_preferred, print_entry_values_if_needed)
2278 (print_entry_values_both, print_entry_values_compact)
2279 (print_entry_values_default, print_entry_values_choices)
2280 (print_entry_values): New variables.
2281 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2282 print the `@entry' suffix, possibly in combination for
2283 print_entry_values_compact.
2284 (read_frame_arg): New parameter entryargp, new variables entryval,
2285 entryval_error and val_equal. Read in also entryargp, respect
2286 print_entry_values, compare the values using val_equal, fill in also
2287 argp->entry_kind (together with entryargp->entry_kind).
2288 (print_frame_args): New variable entryarg, initialize it.
2289 Conditionalize print_frame_arg for arg, add print_frame_arg for
2290 entryarg. Call xfree for entryarg.error.
2291 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2292 * symtab.h (struct symbol_computed_ops): New field
2293 read_variable_at_entry.
2294
93d86cef
JK
22952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2296
2297 Code reshuffle.
2298 * frame.h (struct frame_arg): New definition.
2299 (read_frame_arg): New declaration.
2300 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2301 (list_args_or_locals): ... the code here. New variable arg, call
2302 read_frame_arg and list_arg_or_local with it. Unify the
2303 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2304 arg.error.
2305 * stack.c (print_frame_arg): New functiom from the code of
2306 print_frame_args.
2307 (read_frame_arg): New function.
2308 (print_frame_args): Remove variable val. New variable arg, call
2309 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2310
2d6c5dc2
JK
23112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Protect entry values against self tail calls.
2314 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2315 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2316
111c6489
JK
23172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2318
2319 Recognize virtual tail call frames.
2320 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2321 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2322 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2323 * dwarf2-frame-tailcall.c: New file.
2324 * dwarf2-frame-tailcall.h: New file.
2325 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2326 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2327 REGS.PREV only after CIE execution.
2328 (struct dwarf2_frame_cache): New field tailcall_cache.
2329 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2330 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2331 parts, try to find entry_cfa_sp_offset. Call
2332 dwarf2_tailcall_sniffer_first.
2333 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2334 when appropriate.
2335 (dwarf2_frame_dealloc_cache): New function.
2336 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2337 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2338 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2339 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2340 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2341 * dwarf2loc.c (func_addr_to_tail_call_list)
2342 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2343 (call_site_find_chain_1, call_site_find_chain): New.
2344 * dwarf2loc.h (struct call_site_chain): New.
2345 (call_site_find_chain): New declaration.
2346 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2347 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2348 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2349 * stack.c (frame_info): Support also TAILCALL_FRAME.
2350
bb984ff1
JK
23512011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2352
2353 Tail call sites reader implementation.
2354 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2355 fill in TYPE_TAIL_CALL_LIST.
2356 * gdbtypes.h (struct func_type): New field tail_call_list.
2357 (struct call_site): New field tail_call_next.
2358 (TYPE_TAIL_CALL_LIST): New definition.
2359
8e3b41a9
JK
23602011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2361
2362 Implement basic support for DW_TAG_GNU_call_site.
2363 * block.c: Include gdbtypes.h and exceptions.h.
2364 (call_site_for_pc): New function.
2365 * block.h (call_site_for_pc): New declaration.
2366 * defs.h: Include hashtab.h.
2367 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2368 declarations.
2369 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2370 ctx_no_push_dwarf_reg_entry_value.
2371 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2372 (dwarf_block_to_dwarf_reg): New function.
2373 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2374 (ctx_no_push_dwarf_reg_entry_value): New function.
2375 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2376 push_dwarf_reg_entry_value.
2377 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2378 declarations.
2379 * dwarf2loc.c: Include gdbcmd.h.
2380 (dwarf_expr_ctx_funcs): New forward declaration.
2381 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2382 (dwarf_expr_reg_to_entry_parameter)
2383 (dwarf_expr_push_dwarf_reg_entry_value): New.
2384 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2385 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2386 (needs_dwarf_reg_entry_value): New function.
2387 (needs_frame_ctx_funcs): Install it.
2388 (_initialize_dwarf2loc): New function.
2389 * dwarf2loc.h (entry_values_debug): New declaration.
2390 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2391 (read_call_site_scope): New forward declaration.
2392 (process_full_comp_unit): Copy call_site_htab.
2393 (process_die): Support DW_TAG_GNU_call_site.
2394 (read_call_site_scope): New function.
2395 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2396 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2397 (cleanup_htab): Delete.
2398 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2399 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2400 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2401 FIELD_LOC_KIND_DWARF_BLOCK.
2402 * gdbtypes.h (enum field_loc_kind): New entry
2403 FIELD_LOC_KIND_DWARF_BLOCK.
2404 (struct main_type): New loc entry dwarf_block.
2405 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2406 (TYPE_FIELD_DWARF_BLOCK): New.
2407 * python/py-type.c: Include dwarf2loc.h.
2408 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2409 internal_error call on unknown FIELD_LOC_KIND.
2410 * symtab.h (struct symtab): New field call_site_htab.
2411 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2412 (core_addr_hash, core_addr_eq): New functions.
2413
b6cdc2c1
JK
24142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Code reshuffle.
2417 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2418 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2419 calling_convention under func_stuff there.
2420 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2421 (init_type) <TYPE_CODE_FUNC>: Likewise.
2422 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2423 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2424 * gdbtypes.h (enum type_specific_kind): Change
2425 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2426 (struct main_type) <type_specific>: Change calling_convention to
2427 func_stuff. Move calling_convention to ...
2428 (struct func_type): ... this new struct.
2429 (INIT_FUNC_SPECIFIC): New #define.
2430 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2431
181cebd4
JK
24322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2433
2434 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2435 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2436 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2437 ctx->ref_addr_size. Handle its invalid value.
2438 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2439 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2440 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2441 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2442 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2443 (dwarf2_per_cu_ref_addr_size): New function.
2444
c471e790
JK
24452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2446
2447 Code cleanup.
2448 * dwarf2read.c (per_cu_header_read_in): New function.
2449 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2450 variables cu_header_local and cu_headerp.
2451
741f5e3c
JK
24522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2453
2454 Fix initial language detection with -readnow.
2455 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2456 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2457 searches only for global symbols.
2458
a73d2258
JK
24592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 Fix printed anonymous struct name.
2462 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2463 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2464 (anonymous_struct_prefix): New function.
2465 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2466 (dwarf2_name): Strip for anonymous structs any prefixes.
2467
749fd4ea
DE
24682011-10-07 Doug Evans <dje@google.com>
2469
1fa57852
DE
2470 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2471 `replace'.
2472
690a4937
DE
2473 * python/lib/gdb/printing.py: Whitespace cleanup.
2474
749fd4ea
DE
2475 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2476 warning.
2477
4c38200f
PA
24782011-10-07 Pedro Alves <pedro@codesourcery.com>
2479
2480 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2481 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2482 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2483 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2484 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2485 (arm_linux_remove_watchpoint): Adjust.
2486 * i386-linux-nat.c (i386_linux_dr_set_control)
2487 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2488 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2489 (ia64_linux_remove_watchpoint): Adjust.
2490 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2491 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2492 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2493 (ppc_linux_insert_mask_watchpoint)
2494 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2495 (ppc_linux_remove_watchpoint): Adjust.
2496 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2497 Adjust.
2498
b7ff339d
CV
24992011-10-07 Corinna Vinschen <vinschen@redhat.com>
2500
2501 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2502 (clear_win32_environment): New function for Cygwin to clear out
2503 Win32 environment.
2504 (windows_create_inferior): Prepare new environment from in_env
2505 for Cygwin, too.
2506
f287c1f3
PM
25072011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2508
5631e596 2509 PR python/13264
f287c1f3
PM
2510 * python/py-value.c (valpy_call): Check that arguments are
2511 a tuple.
2512 (is_intlike): Remove call to CHECK_TYPEDEF.
2513 (valpy_nonzero): Catch GDB exceptions.
2514 (valpy_absolute): Ditto.
2515 (valpy_lazy_string): Ditto.
2516 (valpy_call): Ditto.
2517 (valpy_get_is_optimized_out): Ditto.
2518 (valpy_long): Ditto.
2519 (valpy_float): Ditto.
2520 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2521 (valpy_richcompare): Ditto.
2522
03583c20
UW
25232011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2524
2525 * inferior.h (disable_randomization): Declare.
2526 * infrun.c (disable_randomization): New global variable.
2527 (show_disable_randomization): New function.
2528 (set_disable_randomization): Likewise.
2529 (_initialize_infrun): Install set/show disable-randomization
2530 commands.
2531 * linux-nat.c (disable_randomization): Remove.
2532 (show_disable_randomization): Likewise.
2533 (set_disable_randomization): Likewise.
2534 (_initialize_linux_nat): No longer install set/show
2535 disable-randomization commands here.
2536 (linux_nat_supports_disable_randomization): New function.
2537 (linux_nat_add_target): Install it.
2538 * remote.c (PACKET_QDisableRandomization): New enum value.
2539 (remote_protocol_packets): Support QDisableRandomization.
2540 (_initialize_remote): Likewise.
2541 (remote_supports_disable_randomization): New function.
2542 (init_remote_ops): Install it.
2543 (extended_remote_supports_disable_randomization): New function.
2544 (init_extended_remote_ops): Install it.
2545 (extended_remote_disable_randomization): New function.
2546 (extended_remote_create_inferior_1): Call it.
2547 * target.h (struct target_ops): Add to_supports_disable_randomization.
2548 (target_supports_disable_randomization): Add prototype.
2549 * target.c (target_supports_disable_randomization): New function.
2550 (find_default_supports_disable_randomization): Likewise.
2551 (init_dummy_target): Install it.
2552
20c168b5
KP
25532011-10-07 Kevin Pouget <kevin.pouget@st.com>
2554
2555 Allow Python notification of new object-file loadings.
2556 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2557 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2558 Add build rule for this file.
2559 * python/py-event.h (emit_new_objfile_event): New prototype.
2560 (newobjfile): New Python event emitter.
2561 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2562 Python event registry.
2563 * python/py-inferior.c: Include objfiles.h
2564 (python_new_objfile): New function.
2565 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2566 observers.
2567 * python/py-newobjfileevent.c: New file.
2568 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2569 prototype.
2570 * python/python.c (_initialize_python): Add
2571 gdbpy_initialize_new_objfile_event call.
2572 * NEWS: Add item for new Python event "gdb.newobjfile"
2573
b1c8db38
TG
25742011-10-05 Tristan Gingold <gingold@adacore.com>
2575
2576 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2577 Extract the ravenscar task name from the symbol for the atcb.
2578
0dab82e9
PK
25792011-10-04 Paul Koning <paul_koning@dell.com>
2580
2581 * python/py-type.c (typy_make_iter): Add forward declaration.
2582 (typy_fields_items): Use the gdb.Type iterator.
2583
84ad80e6
PK
25842011-10-04 Paul Koning <paul_koning@dell.com>
2585
2586 * NEWS: Add entry for Python gdb.Type mapping methods.
2587
cb6be26b
KP
25882011-10-04 Kevin Pouget <kevin.pouget@st.com>
2589
2590 PR python/12691: Add the inferior to Python exited event
2591 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2592 to exited_event.
2593 * python/py-event.h (emit_exited_event): Likewise
2594 * python/-inferior.c (python_inferior_exit): Likewise
2595
6005b210
JB
25962011-10-03 Joel Brobecker <brobecker@adacore.com>
2597
2598 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2599 in output of -ada-task-info GDB/MI command.
2600
75082e8c
JB
26012011-10-03 Joel Brobecker <brobecker@adacore.com>
2602
2603 * ada-lang.h (struct inferior): Declare.
2604 (print_ada_task_info): Add declaration.
2605 * ada-tasks.c (print_ada_task_info): Make non-static.
2606 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2607 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2608 * mi/mi-main.c: #include "ada-lang.h".
2609 (mi_cmd_list_features): Add "ada-task-info" to the list
2610 of supported features.
2611 (mi_cmd_ada_task_info): New function.
2612
7ed7d719
JB
26132011-10-03 Joel Brobecker <brobecker@adacore.com>
2614
2615 * python/python.c (python_run_simple_file): New function.
2616 (source_python_script, source_python_script_for_objfile):
2617 Replace call to PyRun_SimpleFile by call to
2618 python_run_simple_file.
2619
3fcaed38
PK
26202011-10-03 Paul Koning <paul_koning@dell.com>
2621
2622 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2623 (value_to_value_object): Fetch value if it was lazy.
2624
8e5c319d
JK
26252011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2626
2627 Code cleanup.
2628 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2629 Rearrange the code for it.
2630
dd11a36c
JB
26312011-10-02 Joel Brobecker <brobecker@adacore.com>
2632
2633 * breakpoint.c (bkpt_print_recreate): Add call to
2634 print_recreate_thread.
2635
723b724b
MF
26362011-09-29 Mike Frysinger <vapier@gentoo.org>
2637
2638 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2639 PTRACE_GETFDPIC_INTERP): Define.
2640
412946b6
YQ
26412011-09-28 Yao Qi <yao@codesourcery.com>
2642
2643 * symfile.c (add_symbol_file_command): Update message on usage.
2644
a73bb892
PK
26452011-09-28 Paul Koning <paul_koning@dell.com>
2646
2647 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2648 (typy_length, typy_get, typy_has_key, typy_make_iter)
2649 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2650 (typy_iterator_iter, typy_iterator_iternext)
2651 (typy_iterator_dealloc): New functions to implement standard
2652 Python mapping methods on gdb.Type object.
2653 (gdb.TypeIterator): New Python type.
2654 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2655
fe10a582
DM
26562011-09-28 David S. Miller <davem@davemloft.net>
2657
2658 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2659 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2660 * sparc-tdep.c (sparc_complex_floating_p): New function.
2661 (sparc32_store_arguments): Handle complex floats.
2662 (sparc32_extract_return_value): Likewise.
2663 (sparc32_store_return_value): Likewise.
2664 (sparc32_stabs_argument_has_addr): Likewise.
2665 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2666 (sparc64_store_floating_fields): Handle complex floats.
2667 (sparc64_store_arguments): Likewise.
2668 (sparc64_store_return_value): Likewise.
2669
c93dbcba
EZ
26702011-09-28 Eli Zaretskii <eliz@gnu.org>
2671
2672 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2673 before the change on 2006-12-09.
2674 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2675 generates the environment block for CreateProcessA, modulo the
2676 Cygwin-specific parts that are not needed here.
2677
f00c55f8
TG
26782011-09-27 Tristan Gingold <gingold@adacore.com>
2679
2680 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2681 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2682 (darwin_solib_get_all_image_info_addr_at_init): New function.
2683 (darwin_solib_read_all_image_info_addr): Likewise.
2684 (darwin_solib_create_inferior_hook): Use the above two functions.
2685 * darwin-nat.c (darwin_execvp): Renames retval to res.
2686 (darwin_read_write_inferior): Update comment.
2687 (darwin_read_dyld_info): New function.
2688 (darwin_xfer_partial): Handle DYLD_INFO.
2689
6710bf39
SS
26902011-09-27 Stan Shebs <stan@codesourcery.com>
2691
2692 Add return address collection for tracepoints.
2693 * tracepoint.c (encode_actions_1): Add case for $_ret.
2694 (validate_actionline): Check for $_ret.
2695 (trace_dump_actions): Ditto.
2696 * ax-gdb.h (gen_trace_for_return_address): Declare.
2697 * ax-gdb.c: Include arch-utils.h.
2698 (gen_trace_for_return_address): New function.
2699 (agent_command): Add return address special case.
2700 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2701 (amd64_gen_return_address): New function.
2702 (amd64_init_abi): Call it.
2703 * i386-tdep.c: Include ax.h and ax-gdb.h.
2704 (i386_gen_return_address): New function.
2705 (i386_init_abi): Call it.
2706 * arch-utils.h (default_gen_return_address): Declare.
2707 * arch-utils.c (default_gen_return_address): New function.
2708 * gdbarch.sh (gen_return_address): New method.
2709 * gdbarch.h, gdbarch.c: Regenerate.
2710
e04e5beb
JM
27112011-09-23 Joseph Myers <joseph@codesourcery.com>
2712
2713 PR gdb/13079
2714 * i386-tdep.c (i386_frame_align): New.
2715 (i386_gdbarch_init): Use i386_frame_align.
2716
f3d6df6d
YQ
27172011-09-23 Yao Qi <yao@codesourcery.com>
2718
2719 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2720 to get address.
2721
e69860f1
TG
27222011-09-22 Tristan Gingold <gingold@adacore.com>
2723
2724 * fork-child.c (fork_inferior): Add exec_fun parameter.
2725 Call exec_fun or execvp.
2726 * inferior.h: Adjust prototype.
2727 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2728 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2729 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2730 * procfs.c (procfs_create_inferior): Ditto.
2731 * darwin-nat.c (darwin_execvp): New function.
2732 (darwin_create_inferior): Use it.
2733
4b51d87b
YQ
27342011-09-22 Yao Qi <yao@codesourcery.com>
2735
2736 * infrun.c (context_switch): Print debug message when switching to
2737 a different thread.
2738
56b9d9ac
UW
27392011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2740
2741 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2742 complex and vector types.
2743 (s390_return_value_convention): Likewise.
2744
2745 (s390_value_from_register): Call check_typedef.
2746 (extend_simple_arg): Likewise.
2747 (alignment_of): Likewise.
2748 (s390_push_dummy_call): Likewise.
2749 (s390_return_value): Likewise.
2750
b2cd6b29
JM
27512011-09-21 Joseph Myers <joseph@codesourcery.com>
2752
2753 * event-top.c (async_disconnect): If an exception is thrown from
2754 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2755 catch_errors.
2756 * top.c (quit_cover): Return void and take no arguments.
2757 * top.h (quit_cover): Update prototype.
2758
67ba4e42
JM
27592011-09-20 Joseph Myers <joseph@codesourcery.com>
2760
2761 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2762 current_uiout, not uiout.
2763
562f943b
DE
27642011-09-19 Doug Evans <dje@google.com>
2765
2766 * python/py-auto-load.c (source_section_scripts): Fix file
2767 descriptor leak.
2768 * python/python.c (source_python_script_for_objfile): Tweak comments.
2769
34518530
YQ
27702011-09-18 Yao Qi <yao@codesourcery.com>
2771 Ulrich Weigand <ulrich.weigand@linaro.org>
2772
2773 Support displaced stepping for Thumb 16-bit insns.
2774 * arm-tdep.c (THUMB_NOP) Define.
2775 (thumb_copy_unmodified_16bit): New.
2776 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2777 (thumb_copy_alu_reg): New.
2778 (arm_copy_svc): Move some common code to ...
2779 (install_svc): ... here. New.
2780 (thumb_copy_svc): New.
2781 (install_pc_relative): New.
2782 (thumb_copy_pc_relative_16bit): New.
2783 (thumb_decode_pc_relative_16bit): New.
2784 (thumb_copy_16bit_ldr_literal): New.
2785 (thumb_copy_cbnz_cbz): New.
2786 (cleanup_pop_pc_16bit_all): New.
2787 (thumb_copy_pop_pc_16bit): New.
2788 (thumb_process_displaced_16bit_insn): New.
2789 (thumb_process_displaced_32bit_insn): New.
2790 (thumb_process_displaced_insn): process thumb instruction.
2791
2792 Support displaced stepping for Thumb 32-bit insns.
2793 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2794 (thumb2_copy_preload): New.
2795 (thumb2_copy_copro_load_store): New.
2796 (thumb2_copy_b_bl_blx): New.
2797 (thumb2_copy_alu_imm): New.
2798 (thumb2_copy_load_reg_imm): New.
2799 (thumb2_copy_load_literal): New
2800 (thumb2_copy_block_xfer): New.
2801 (thumb_32bit_copy_undef): New.
2802 (thumb_32bit_copy_unpred): New.
2803 (thumb2_decode_ext_reg_ld_st): New.
2804 (thumb2_decode_svc_copro): New.
2805 (decode_thumb_32bit_store_single_data_item): New.
2806 (thumb_copy_pc_relative_32bit): New.
2807 (thumb_decode_pc_relative_32bit): New.
2808 (decode_thumb_32bit_ld_mem_hints): New.
2809 (thumb2_copy_table_branch): New
2810 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2811 instructions.
2812
2b16b2e3
YQ
28132011-09-18 Yao Qi <yao@codesourcery.com>
2814
2815 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2816 (install_b_bl_blx): Likewise.
2817
0f6f04ba
YQ
28182011-09-17 Yao Qi <yao@codesourcery.com>
2819
2820 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2821 (install_load_store): ... this. New.
2822 Change parameter BYTE to SIZE.
2823 (arm_copy_ldr_str_ldrb_strb): Update caller.
2824 (arm_decode_ld_st_word_ubyte): Update caller.
2825
e2d96639
YQ
28262011-09-17 Yao Qi <yao@codesourcery.com>
2827
2828 * infrun.c (displaced_step_fixup): Move some code ...
2829 (displaced_step_restore): ... here. New function.
2830 (handle_inferior_event): Cleanup displaced stepping state for both
2831 child and parent when get forked or vforked event.
2832 * regcache.c (get_thread_arch_aspace_regcache): New function.
2833 get_thread_arch_regcache (): Call it.
2834
a8123151
JB
28352011-09-16 Joel Brobecker <brobecker@adacore.com>
2836
2837 * ada-tasks.c (print_ada_task_info): New function, merging
2838 short_task_info and info_tasks together. Reimplement using
2839 ui-out instead of printing to stdout directly. Move the code
2840 building and checking the task list here, instead of leaving it
2841 in info_tasks_command.
2842 (info_task): Move the code building and checking the task
2843 list here, instead of leaving it in info_tasks_command.
2844 (info_tasks_command): Delete code building and checking
2845 the task list - moved elsewhere. Update calls to info_tasks
2846 and info_task.
2847
fbf06824
JB
28482011-09-16 Joel Brobecker <brobecker@adacore.com>
2849
2850 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2851
34a0bc90
JB
28522011-09-16 Joel Brobecker <brobecker@adacore.com>
2853
2854 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2855
79779fa9
JB
28562011-09-16 Joel Brobecker <brobecker@adacore.com>
2857
2858 * ada-lang.h (ada_build_task_list): Remove parameter
2859 `warn_if_null'.
2860 * ada-tasks.c (ada_build_task_list): Remove parameter
2861 `warn_if_null'. Adjust implementation and documentation.
2862 (valid_task_id, ada_get_environment_task)
2863 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2864 (info_tasks_command): Adjust implementation.
2865 (task_command): Likewise.
2866 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2867 to ada_build_task_list.
2868
e225eb91
JB
28692011-09-16 Joel Brobecker <brobecker@adacore.com>
2870
2871 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2872 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2873 (ada_tasks_inferior_data_handle): New static global.
2874 (get_ada_tasks_inferior_data): New function.
2875 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2876 (ada_get_environment_task, iterate_over_live_ada_tasks)
2877 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2878 Adjust.
2879 (ada_set_current_inferior_known_tasks_addr): New function.
2880 (read_known_tasks, ada_build_task_list, short_task_info)
2881 (info_tasks, info_task, info_tasks_command, task_command_1)
2882 (task_command, ada_task_list_changed): Adjust.
2883 (ada_tasks_invalidate_inferior_data): New function.
2884 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2885 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2886 * ada-lang.h (struct inferior): Add declaration.
2887 (ada_task_list_changed): Update profile.
2888 * remote-wtx-pd.c: #include "inferior.h".
2889 (switch_to_pd_internal): Update call to ada_task_list_changed.
2890
6da9ca05
JB
28912011-09-16 Joel Brobecker <brobecker@adacore.com>
2892
2893 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2894 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2895 (atcb_fieldno): Delete these static globals.
2896 (struct ada_tasks_pspace_data): New struct.
2897 (ada_tasks_pspace_data_handle): New static global.
2898 (get_ada_tasks_pspace_data): New function.
2899 (ada_tasks_invalidate_pspace_data): New function.
2900 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2901 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2902 (_initialize_tasks): Create this module's per-progspace
2903 data handle.
2904
dccd3cbd
JB
29052011-09-16 Joel Brobecker <brobecker@adacore.com>
2906
2907 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2908
f877b031
TG
29092011-09-16 Tristan Gingold <gingold@adacore.com>
2910
2911 * fork-child.c (fork_inferior): Update comment. Use alloca
2912 instead of xmalloc for argv. Move len and shell_command
2913 declarations in the block where they are used.
2914 Only call execvp. Factorize failure code.
2915
ae0c443d
JK
29162011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2917
2918 Code cleanup.
2919 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2920 `exp_element' instead of an element of the same and make the function
2921 static.
2922 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2923 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2924 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2925 Change argument of `write_exp_elt' function call.
2926 Remove extra spaces from comments.
2927 * parser-defs.h (write_exp_elt): Remove prototype.
2928
5af65ec0
PK
29292011-09-15 Paul Koning <paul_koning@dell.com>
2930
2931 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2932 count of item appended to list.
2933 * python/py-type.c (typy_fields): Likewise.
2934
72be8ccc
PK
29352011-09-15 Paul Koning <paul_koning@dell.com>
2936
883640a8 2937 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2938
92f6badc
KP
29392011-09-15 Kevin Pouget <kevin.pouget@st.com>
2940
2941 PR threads/12628
2942 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2943 processes with multiple threads.
2944 (inf_has_multiple_thread_cb): New function.
2945 (inf_has_multiple_threads): New function.
2946
0672bf41 29472011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2948
2949 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2950 * python/py-inferior.c (GdbMethods): New Python method definition.
2951
6839b47f
KP
29522011-09-15 Kevin Pouget <kevin.pouget@st.com>
2953
2954 Handle multiple breakpoint hits in Python interface:
2955 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2956 variable to breakpoints.
2957 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2958 bps instead of single breakpoint. Fix some space typos.
2959 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2960 variable to breakpoints.
2961
672f9b60
KP
29622011-09-15 Kevin Pouget <kevin.pouget@st.com>
2963
2964 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2965 note if the breakpoint is internal.
2966
43675ae4
KP
29672011-09-15 Kevin Pouget <kevin.pouget@st.com>
2968
0672bf41 2969 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2970
15148d6a
PA
29712011-09-14 Pedro Alves <pedro@codesourcery.com>
2972
2973 * infrun.c (prepare_for_detach, wait_for_inferior)
2974 (fetch_inferior_event): Don't flush the register cache.
2975 * remote.c (struct stop_reply) <regcache>: Add comment.
2976
d83e736b
JK
29772011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 Remove excessive DWARF expressions memory duplication.
2980 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2981 for block.data.
2982 (indirect_pieced_value): Remove variable result. Remove variable
2983 back_to and its use for baton.data.
2984 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2985 block.data.
2986 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2987 Update the function comment.
2988
c65b3e0d
PA
29892011-09-13 Pedro Alves <pedro@codesourcery.com>
2990
2991 * inferior.h (ALL_INFERIORS): New.
2992 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2993 for a stopped thread.
2994 (thread_db_find_new_threads): Look for threads in all inferiors.
2995
a1398e0c
PA
29962011-09-13 Pedro Alves <pedro@codesourcery.com>
2997
2998 * breakpoint.c (update_watchpoint): Handle the case of the
2999 watchpoint to update not being in the breakpoint list yet.
3000 (hw_watchpoint_use_count): New, factored out from
3001 hw_watchpoint_used_count.
3002 (hw_watchpoint_used_count): Rename to ...
3003 (hw_watchpoint_used_count_others): ... this. Add `except'
3004 parameter. Don't count resources of `except'. Use
3005 hw_watchpoint_use_count.
3006
30596231
PA
30072011-09-13 Pedro Alves <pedro@codesourcery.com>
3008
3009 * gdbthread.h (enum thread_state): Moved here.
3010 (struct thread_info): Rename `executing_' field to `executing' and
3011 `state_' to `state'.
3012 * thread.c (enum thread_state): Moved to gdbthread.h.
3013 (new_thread, add_thread_silent, delete_thread_1)
3014 (any_live_thread_of_process, thread_alive, set_running)
3015 (set_running, is_thread_state, any_running, is_executing)
3016 (set_executing, finish_thread_state, print_thread_info)
3017 (do_captured_thread_select): Adjust.
3018
bede5f5f
JK
30192011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3020
3021 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3022 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3023
4801a9a3
PA
30242011-09-12 Pedro Alves <pedro@codesourcery.com>
3025 Matt Rice <ratmice@gmail.com>
3026
3027 PR gdb/13175
3028
3029 * interps.c (struct interp) <interpreter_out>: Delete field.
3030 (interp_new): Remove the data and uiout parameters and adjust.
3031 (interp_set): Only set the current_uiout from the interpreter's
3032 uiout after initializing the interpreter. Adjust call to
3033 init_proc.
3034 (interp_ui_out): Adjust to call procs->ui_out_proc.
3035 (interp_data, interp_name): New.
3036 * interps.h (interp_init_ftype): Add `self' parameter.
3037 (interp_ui_out_ftype): New typedef.
3038 (struct interp_procs) <ui_out_proc>: New method pointer.
3039 (interp_new): Remove the data and uiout parameters.
3040 (interp_data, interp_name): Declare.
3041 * tui/tui-interp.c (tui_init): Adjust prototype.
3042 (tui_ui_out): New.
3043 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3044 tui_out here. Adjust call to interp_new.
3045 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3046 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3047 (cli_ui_out): New.
3048 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3049 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3050 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3051 Initialize mi->uiout depending on the mi_version as extracted from
3052 the interpreter's name.
3053 (mi_ui_out): New.
3054 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3055 interp_new. Don't allocate the ui_out's of the interpreters here.
3056
d0afda03 30572011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3058
d0afda03 3059 * solib.c (solib_used): New function.
59145f8c
AR
3060 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3061 by another so_list object before freeing it.
3062
bdaf8d4a
JK
30632011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 Code cleanup.
3066 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3067 values.
3068
df15bd07
JK
30692011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3070
3071 Code cleanup.
3072 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3073 (amd64_skip_xmm_prologue): ... this new function. Describe its
3074 parameters. No longer use amd64_prologue_line_bug.
3075 * defs.h (producer_is_gcc_ge_4): New declaration.
3076 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3077 (process_full_comp_unit): Update its caller. Remove
3078 amd64_prologue_line_bug initialization.
3079 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3080 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3081
25289eb2
PA
30822011-09-09 Pedro Alves <pedro@codesourcery.com>
3083
3084 * linux-nat.h (enum resume_kind): New.
3085 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3086 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3087 resume_stop on the new lwp.
25289eb2
PA
3088 (add_lwp): Set last_resume_kind as resume_continue by default.
3089 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3090 (resume_lwp): New, factored out from resume_callback. Also check
3091 for pending status in lp->waitstatus.
3092 (resume_callback): Reimplement.
3093 (resume_clear_callback): Set last_resume_kind as resume_stop.
3094 (resume_set_callback): Set last_resume_kind as resume_continue.
3095 (linux_nat_resume, linux_handle_extended_wait): Set
3096 last_resume_kind.
3097 (running_callback): Also check lp->waitstatus for pending events.
3098 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3099 is resume_step.
3100 (stop_and_resume_callback): Don't re-resume if the core wanted the
3101 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3102 using an invalidated pointer.
3103 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3104 SIGSTOPs if the core wanted the LWP to stop.
3105 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3106 wanted the lwp to stop. If the core wanted the lwp to stop, and
3107 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3108 of TARGET_SIGNAL_STOP.
3109 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3110 here. Instead, signal the lwp, and set the last_resume_kind to
3111 resume_stop.
3112
f687d035
PA
31132011-09-09 Pedro Alves <pedro@codesourcery.com>
3114
3115 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3116 -1 (error), if the lwp exits right after attaching.
3117
bc587a6b
DE
31182011-09-08 Doug Evans <dje@google.com>
3119
63d97a20
DE
3120 * py-cmd.c: Some minor formatting fixes.
3121 (gdbpy_parse_command_name): Rename text arg to name, make const.
3122 All callers updated.
3123 * python-internal.h (gdbpy_parse_command_name): Update.
3124
bc587a6b
DE
3125 * cli/cli-decode.c (add_cmd): Add comment.
3126
08711b9a
JK
31272011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 PR breakpoints/12435
3130 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3131 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3132 * dwarf2read.c (process_full_comp_unit): Initialize
3133 amd64_prologue_line_bug.
3134 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3135
b2e7f004
JK
31362011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3137
3138 Fix TUI screen corruption.
3139 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3140 batch_flag.
3141
8afd712c
JK
31422011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3143
3144 * findvar.c (read_var_value): Never return NULL, throw an error
3145 instead. Update the function comment. State symbol name in the error
3146 messages.
3147 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3148 read_var_value.
3149 * stack.c (print_frame_args): Likewise.
3150 * valops.c (value_of_variable): Likewise.
3151
b99b5f66
JK
31522011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 * stack.c (print_frame_args): New variable except. Wrap
3155 read_var_value and common_val_print into TRY_CATCH.
3156
85bc8cb7
JK
31572011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3160 caller to value_of_this.
3161 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3162 Twice.
3163 * valops.c (value_of_this): Remove parameter complain and variable ret.
3164 Update function comment. Never return NULL by this code.
3165 (value_of_this_silent): New function.
3166 * value.h (value_of_this): Remove parameter complain.
3167 (value_of_this_silent): New declaration.
3168
ede1849f
YQ
31692011-09-07 Yao Qi <yao@codesourcery.com>
3170
3171 * gdbthread.h (struct thread_info): Remove fields
3172 `stepping_through_solib_after_catch' and
3173 `stepping_through_solib_catchpoints'.
3174 * infrun.c (init_thread_stepping_state): Update.
3175 (process_event_stop_test, currently_stepping): Update.
3176 (currently_stepping_or_nexting_callback): Update.
3177
6aa27652
YQ
31782011-09-07 Yao Qi <yao@codesourcery.com>
3179
3180 * gdbthread.h (struct thread_info): Comment on field
3181 `step_after_step_resume_breakpoint'.
3182
00db5b94
PA
31832011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3184
3185 * remote.c (remote_console_output): Reindent.
3186
861152be
LM
31872011-09-06 Luis Machado <lgustavo@codesourcery.com>
3188
3189 * frame.c (has_stack_frames): Check for currently selected
3190 traceframe.
3191
ab821bc6
PA
31922011-09-06 Pedro Alves <pedro@codesourcery.com>
3193
3194 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3195 (set_async_annotation_level, set_async_prompt, pop_prompt)
3196 (push_prompt, new_async_prompt): Delete declarations.
3197 * top.h (get_prompt, set_prompt): Change prototype.
3198 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3199 declarations.
3200 * top.c (command_loop):
3201 (top_prompt): New global.
3202 (get_prefix, set_prefix, get_suffix, ): Delete.
3203 (get_prompt, set_prompt): Rewrite.
3204 (show_new_async_prompt): Rename to ...
3205 (show_prompt): ... this.
3206 (init_main): Adjust. Don't handle --annotate=2 here.
3207 * event-top.c (new_async_prompt): Delete.
3208 (the_prompts): Delete.
3209 (more_to_come): Make static.
3210 (display_gdb_prompt): Use top_level_prompt() to compute the top
3211 level prompt, and don't notify the before_prompt observers
3212 directly here. Always trick readline into not trying to display
3213 the prompt if sync_execution and displaying the primary prompt.
3214 If displaying a local/secondary prompt, always show it, even if
3215 sync_execution is set.
3216 (change_annotation_level): Delete.
3217 (top_level_prompt): New, based on change_annotation_level.
3218 (push_prompt, pop_prompt): Delete.
3219 (async_disable_stdin): No longer pushes prompt.
3220 (command_line_handler): No longer pushes or pops prompt. If more
3221 input is expected, call display_gdb_prompt with an explicit empty
3222 prompt.
3223 (async_stop_sig): Adjust.
3224 (set_async_annotation_level, set_async_prompt): Delete.
3225 * python/python.c (before_prompt_hook): Adjust.
3226
f1d90504
PA
32272011-09-05 Pedro Alves <pedro@codesourcery.com>
3228
3229 PR cli/13110
3230
3231 * infrun.c (fetch_inferior_event): Check if there's a selected
3232 thread before checking if the selected thread is executing.
3233
0f641c01
PA
32342011-09-05 Pedro Alves <pedro@codesourcery.com>
3235
3236 * inf-loop.c (execute_command): Don't check if the current thread
3237 if running before synchronously waiting for command completion.
3238 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3239 here.
3240 (normal_stop): Call async_enable_stdin here.
3241 * inf-loop.c (inferior_event_handler): Don't call
3242 async_enable_stdin, nor handle "set exec-done-display" here.
3243
30368258 32442011-09-04 Joel Brobecker <brobecker@adacore.com>
3245
3246 GDB 7.3.1 released.
3247
31916278
JB
32482011-09-04 Joel Brobecker <brobecker@adacore.com>
3249
3250 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3251
e8d56f18
JB
32522011-09-04 Joel Brobecker <brobecker@adacore.com>
3253
3254 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3255
5dd05d8c
JK
32562011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3257
3258 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3259
7d8e6458 32602011-09-02 Matt Rice <ratmice@gmail.com>
3261
3262 PR gdb/10720
3263 * event-top.c (cli_command_loop): Replace readline setup with
3264 direct call to display_gdb_prompt.
3265 (display_gdb_prompt): Do not call observer mechanism during
3266 synchronous execution.
3267
84636d28
PA
32682011-09-02 Pedro Alves <pedro@codesourcery.com>
3269
3270 * linux-nat.c (in_pid_list_p): New.
3271 (linux_record_stopped_pid): Delete.
3272 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3273 already attached to the LWP. Return an indication if so.
3274 (linux_nat_filter_event): Adjust.
3275 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3276 returning an indication to ignore this thread.
3277
b4a14fd0
PA
32782011-09-02 Pedro Alves <pedro@codesourcery.com>
3279
3280 * top.c: Include interps.h.
3281 (execute_command): If the target can async, but the interpreter is
3282 in sync mode, synchronously wait for the command to finish before
3283 returning.
3284 (execute_command_to_string): Force the interpreter to sync mode.
3285 * infrun.c: Include interps.h.
3286 (fetch_inferior_event): Don't restore the prompt yet if the
3287 interpreter is in sync mode.
3288 * interps.c (interpreter_async): New global.
3289 * interps.h (interpreter_async): Declare.
3290 * inf-loop.c: Include interps.h.
3291 (inferior_event_handler): Don't print the language change or run
3292 breakpoint commands yet if the interpreter in is sync mode.
3293 * main.c (captured_command_loop): Flip the interpreter to async
3294 mode.
3295 * cli/cli-script.c: Include interps.h.
3296 (execute_user_command, while_command, if_command): Force the
3297 interpreter to sync mode.
3298 * python/python.c: Include interps.h.
3299 (python_command, execute_gdb_command): Force the interpreter to
3300 sync mode.
3301
c709acd1
PA
33022011-09-02 Pedro Alves <pedro@codesourcery.com>
3303
3304 * value.c (show_convenience): Catch errors thrown while printing
3305 each internal variable.
3306 * infrun.c (validate_siginfo_access): New function.
3307 (siginfo_value_read, siginfo_value_write): Call it.
3308
9655e943
JK
33092011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3310
3311 Revert:
3312 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3313 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3314 attribute.
3315
cb457ae2
YQ
33162011-08-29 Yao Qi <yao@codesourcery.com>
3317
3318 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3319 (cmp_name): New.
3320 (enable_break2): Update caller.
3321 * solib-frv.c (bfd_lookup_symbol): Removed.
3322 (cmp_name): New.
3323 (enable_break2): Update caller.
3324 * solib-pa64.c (bfd_lookup_symbol): Removed.
3325 (cmp_name): New.
3326 * solib-svr4.c (bfd_lookup_symbol): Removed.
3327 (cmp_name_and_sec_flags): New.
3328 (enable_break): Update caller.
3329 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3330 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3331 (gdb_bfd_lookup_symbol): New.
3332 * solib.h: Functions declarations.
3333
83d1a36a
YQ
33342011-08-29 Yao Qi <yao@codesourcery.com>
3335
3336 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3337 and solib-dsbt.o.
3338
c04b3e8f
JK
33392011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 Fix TUI stepi on code without symbols.
3342 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3343 current PC instead.
3344
cb0fd152
JK
33452011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 Code cleanup.
3348 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3349 and the static keyword.
3350 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3351 Make prefix an array.
3352 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3353 * mi/mi-main.c (get_register): Remove stb initialization and the static
3354 keyword.
3355
91174723
JK
33562011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3357
3358 Code cleanup - make mi_opt const.
3359 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3360 opts const.
3361 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3362 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3363 (mi_cmd_env_dir): Likewise.
3364 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3365 (mi_cmd_target_file_put): Likewise.
3366 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3367 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3368 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3369 (mi_valid_noargs): Make opts const.
3370 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3371 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3372 (mi_cmd_data_read_memory): Likewise.
3373 (mi_cmd_data_read_memory_bytes): Likewise.
3374 (mi_cmd_data_write_memory): Likewise.
3375
5068b8e8 33762011-08-26 Matt Rice <ratmice@gmail.com>
3377
3378 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3379 bcache_xmalloc, replace bcache_xmalloc with call to
3380 psymbol_bcache_init for psymbol_cache.
3381 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3382
a4f2ce05
JK
33832011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 * inf-loop.c (inferior_event_handler): Add exception_print in
3386 INF_EXEC_COMPLETE.
3387
353d1d73
JK
33882011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3389
3390 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3391 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3392 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3393 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3394 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3395 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3396 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3397 * infrun.c (fetch_inferior_event): Call
3398 make_bpstat_clear_actions_cleanup.
3399 * top.c (execute_command): New variable cleanup_if_error, call
3400 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3401 * utils.c (do_bpstat_clear_actions_cleanup)
3402 (make_bpstat_clear_actions_cleanup): New functions.
3403
3ced3da4
PA
34042011-08-26 Pedro Alves <pedro@codesourcery.com>
3405
3406 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3407 either the parent or the child forks. Rename a couple locals.
3408
a9f4bb21
PA
34092011-08-26 Pedro Alves <pedro@codesourcery.com>
3410
3411 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3412 library call. Avoid reading the `status' local if all waitpid
3413 calls failed.
3414
e5798bef
PA
34152011-08-26 Pedro Alves <pedro@codesourcery.com>
3416
3417 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3418 opening /proc/PID/task always succeeds.
3419
edb2aadf
AR
34202011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3421
3422 * linespec.c (symtab_from_filename): Check for the end of string.
3423
0d932b2f
MK
34242011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3425
3426 PR mi/11912
3427 * varobj.c (cplus_describe_child): Add the keyword
3428 'class' to the output of the method when dealing
3429 with a cast to a base class.
3430
e93ca019
JK
34312011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3432
3433 No functionality change.
3434 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3435 function comment a reference, new variables tp and bs, move here code
3436 from throw_exception.
3437 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3438 describe it in the comment.
3439 * exceptions.c (throw_exception): Remove variable tp, move the code for
3440 bpstat_clear_actions to bpstat_clear_actions.
3441
13da1c97
LM
34422011-08-24 Luis Machado <lgustavo@codesourcery.com>
3443
3444 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3445 * linux-nat.c: Include linux-procfs.h.
3446 (linux_proc_get_tgid): Move to ...
3447 * common/linux-procfs.c: ... here. New file.
3448 * common/linux-procfs.h: New file.
3449 * linux-thread-db.c: Include linux-procfs.h.
3450 * Makefile.in: Update dependencies.
3451 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3452 * config/arm/linux.mh: Likewise.
3453 * config/i386/linux.mh: Likewise.
3454 * config/i386/linux64.mh: Likewise.
3455 * config/ia64/linux.mh: Likewise.
3456 * config/m32r/linux.mh: Likewise.
3457 * config/m68k/linux.mh: Likewise.
3458 * config/mips/linux.mh: Likewise.
3459 * config/pa/linux.mh: Likewise.
3460 * config/pa/linux.mh: Likewise.
3461 * config/powerpc/linux.mh: Likewise.
3462 * config/powerpc/ppc64-linux.mh: Likewise.
3463 * config/powerpc/spu-linux.mh: Likewise.
3464 * config/sparc/linux.mh: Likewise.
3465 * config/sparc/linux64.mh: Likewise.
3466 * config/xtensa/linux.mh: Likewise.
3467
4e5c165d
HZ
34682011-08-24 Hui Zhu <teawater@gmail.com>
3469
3470 * tracepoint.c (cond_string_is_same): New function.
3471 (find_matching_tracepoint): Add condition check
3472 by cond_string_is_same.
3473
6e2f5b22
JK
34742011-08-23 Josh Matthews <josh@joshmatthews.net>
3475
3476 Fix build error in Darwin port.
3477 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3478
abf85f46
JK
34792011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 Code cleanup.
3482 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3483 (command_line_is_silent): New function.
3484 (bpstat_do_actions_1): No longer use commands_left, use
3485 command_line_is_silent for commands.
3486 (bpstat_alloc): Remove clearing of commands_left.
3487 (bpstat_stop_status): Remove initialization of commands_left, use
3488 command_line_is_silent.
3489 * breakpoint.h (struct bpstats): Remove commands_left.
3490
3a93a0c2
KS
34912011-08-18 Keith Seitz <keiths@redhat.com>
3492
3493 PR c++/12266
3494 * cp-name-parser.y (struct demangle_info): Remove unused
3495 member PREV.
3496 (d_grab): Likewise.
3497 (allocate_info): Change return type to struct demangle_info *.
3498 Always allocate a new demangle_info.
3499 Remove unused PREV pointer.
3500 (cp_new_demangle_parse_info): New function.
3501 (cp_demangled_name_parse_free): New function.
3502 (do_demangled_name_parse_free_cleanup): New function.
3503 (make_cleanup_cp_demangled_name_parse_free): New function.
3504 (cp_demangled_name_to_comp): Change return type to
3505 struct demangle_parse_info *.
3506 Allocate a new storage for each call.
3507 (main): Update usage for cp_demangled_name_to_comp
3508 API change.
3509 * cp-support.h (struct demangle_parse_info): New structure.
3510 (cp_demangled_name_to_comp): Update API change for
3511 return type.
3512 (cp_new_demangle_parse_info): Declare.
3513 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3514 (cp_demangled_name_parse_free): Declare.
3515 * cp-support.c (cp_canonicalize_string): Update API
3516 change for cp_demangled_name_to_comp.
3517 (mangled_name_to_comp): Likewise.
3518 Return struct demangle_parse_info, too.
3519 (cp_class_name_from_physname): Update mangled_name_to_comp
3520 API change.
3521 (method_name_from_physname): Likewise.
3522 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3523 (cp_remove_params): Likewise.
3524 * python/py-type.c (typy_legacy_template_argument): Likewise.
3525
3526 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3527 (cp_merge_demangle_parse_infos): Declare.
3528 * cp-support.c (ignore_typedefs): New file global.
3529 (copy_string_to_obstack): New function.
3530 (inspect_type): New function.
3531 (replace_typedefs): New function.
3532 (replace_typedefs_qualified_name): New function.
3533 (cp_canonicalize_string_no_typedefs): New function.
3534 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3535 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3536 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3537 instead of cp_canonicalize_string.
3538 (find_method): Likewise.
3539 (decode_compound): Before looking up the name, call
3540 cp_canonicalize_string_no_typedefs.
3541 (decode_variable): Likewise.
3542
fa3a4f15
PM
35432011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3544 Tom Tromey <tromey@redhat.com>
3545 Matt Rice <ratmice@gmail.com>
3546
3547 * python/lib/gdb/prompt.py: New file.
3548 * python/lib/gdb/command/prompt.py: New file.
3549 * NEWS: Document set extended-prompt and gdb.prompt library
3550
85661b1e
YQ
35512011-08-16 Yao Qi <yao@codesourcery.com>
3552
3553 * tic6x-linux-tdep.c: Move const arrays definition from here...
3554 * tic6x-tdep.c: to here ...
3555
11315641
YQ
35562011-08-14 Yao Qi <yao@codesourcery.com>
3557
3558 * NEWS: New port to Texas Instruments TMS320C6x.
3559
8cd64e00
YQ
35602011-08-14 Andrew Jenner <andrew@codesourcery.com>
3561 Bernd Schmidt <bernds@codesourcery.com>
3562 Yao Qi <yao@codesourcery.com>
3563
3564 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3565 * solib-dsbt.c: New file. Support DSBT shared object.
3566 * tic6x-linux-tdep.c: New file.
3567 * tic6x-tdep.c: New file.
3568 * tic6x-tdep.h: New file.
3569
78d85199
YQ
35702011-08-14 Andrew Stubbs <ams@codesourcery.com>
3571 Yao Qi <yao@codesourcery.com>
3572
3573 * remote.c (PACKET_qXfer_fdpic): New enum value.
3574 (remote_protocol_features): Add qXfer:fdpic:read packet.
3575 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3576 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3577 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3578
224bbe49
YQ
35792011-08-14 Yao Qi <yao@codesourcery.com>
3580
3581 Target description for tic6x.
3582 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3583 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3584 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3585 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3586 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3587 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3588 * features/tic6x-c64xp-linux.xml: New.
3589 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3590 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3591 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3592 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3593 * regformats/tic6x-c64xp.dat,
3594 regformats/tic6x-c62x-linux.dat: Generated.
3595 * regformats/tic6x-c64x-linux.dat,
3596 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3597 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3598 features/tic6x-*.c files.
3599 Add regformats/tic6x-*.dat files.
3600
457e09f0
DE
36012011-08-12 Doug Evans <dje@google.com>
3602
3603 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3604 * python/py-symbol.c (sympy_get_type): New function.
3605 (symbol_object_getset): Add "type".
3606
d20c1c3f
PA
36072011-08-12 Pedro Alves <pedro@codesourcery.com>
3608
3609 PR tui/13073
3610
3611 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3612 empty name.
3613 (tui_show_register_group): Don't store a byte buffer in the data
3614 element's value.
3615 (tui_register_format): Skip registers with an empty name.
3616 (tui_get_register): Store a struct value in the data element's
3617 value field instead of a byte buffer holding the raw register
3618 contents. Account for optimized-out and unavailable registers
3619 when comparing register contents.
3620
9d8fa392
PA
36212011-08-09 Pedro Alves <pedro@codesourcery.com>
3622
3623 * printcmd.c (current_display_number): Update comment.
3624 (disable_current_display_cleanup): Delete.
3625 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3626 catch errors thrown while evaluating and printing the display.
3627
401a70b8
TT
36282011-08-09 Tom Tromey <tromey@redhat.com>
3629
3630 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3631
7f86f058
PA
36322011-08-09 Pedro Alves <pedro@codesourcery.com>
3633
94b71cca 3634 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3635 * maint.c (maintenance_command): Ditto.
3636 * somread.c (som_symtab_read): Ditto.
3637 * solib.c (solib_find, solib_map_sections, update_solib_list)
3638 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3639 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3640 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3641 * solib-irix.c (locate_base, disable_break, enable_break)
3642 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3643 (irix_current_sos, irix_open_symbol_file_object)
3644 (irix_special_symbol_handling): Ditto.
3645 * solib-sunos.c (locate_base, first_link_map_member)
3646 (sunos_current_sos, disable_break, enable_break)
3647 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3648 Ditto.
3649 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3650 (open_symbol_file_object, svr4_current_sos, enable_break)
3651 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3652 Ditto.
3653 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3654 (frv_current_sos, enable_break, frv_special_symbol_handling)
3655 (frv_solib_create_inferior_hook): Ditto.
3656 * solist.h (struct target_so_ops): Extend the comments of the
3657 special_symbol_handling, current_sos and open_symbol_file_object
3658 methods.
3659
5e239b84
PM
36602011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3661
3662 * python/lib/gdb/__init__.py: Auto-load files in command and
3663 function directories.
3664 * python/python.c (finish_python_initialization): Use
3665 os.path.join.
3666 * python/lib/gdb/command/pretty_printers.py: Self register
3667 command.
3668 * NEWS: Document auto-loading.
3669
b6cede78
JK
36702011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3673 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3674 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3675
29d0bb3d
TT
36762011-08-08 Tom Tromey <tromey@redhat.com>
3677
3678 * breakpoint.c (clean_up_filters): Remove.
3679 (catch_syscall_split_args): Use VEC_cleanup.
3680
2f7fb8e4
JK
36812011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3682
3683 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3684 (main): Uncomment "Demangling error\n".
3685
d6c10e95
PP
36862011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3687
3688 * solib-target.c (segment_attributes): Make them static.
3689 (section_attributes, library_children, library_attributes): Likewise.
3690 (library_list_children, library_list_attributes): Likesise.
3691 (library_list_elements): Likewise.
3692
af6e93b2
PA
36932011-08-05 Pedro Alves <pedro@codesourcery.com>
3694
3695 * exceptions.c (throw_exception): Don't disable the current
3696 display.
3697 * printcmd.c (disable_current_display_cleanup): New function.
3698 (do_one_display): Install a cleanup to disable the current display
3699 if doing the display throws.
3700
6a1b1664
EZ
37012011-08-05 Eli Zaretskii <eliz@gnu.org>
3702
3703 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3704 initialization of the tp_new member to the corresponding
3705 gdbpy_initialize_* function.
3706 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3707 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3708 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3709 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3710 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3711
31a0ae49
JK
37122011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3715 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3716 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3717 references to current_uiout.
3718
e0dd0826
PA
37192011-08-04 Pedro Alves <pedro@codesourcery.com>
3720
3721 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3722 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3723 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3724 * top.c (gdb_readline_wrapper): Adjust.
3725 * tui/tui-interp.c (tui_command_loop):
3726 (_initialize_tui_interp): Don't install it.
3727
79a45e25
PA
37282011-08-04 Pedro Alves <pedro@codesourcery.com>
3729
3730 * ui-out.h (uiout): Rename to ...
3731 (current_uiout): ... this.
3732 * ui-out.c (uiout): Rename to ...
3733 (current_uiout): ... this.
3734 * ada-lang.c (print_it_exception, print_one_exception)
3735 (print_mention_exception): Adjust.
3736 * breakpoint.c (watchpoint_check): Adjust.
3737 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3738 (default_collect_info, watchpoints_info, print_one_catch_fork)
3739 (print_one_catch_vfork, print_one_catch_syscall)
3740 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3741 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3742 (print_it_watchpoint, print_mention_watchpoint)
3743 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3744 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3745 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3746 (bkpt_print_mention, momentary_bkpt_print_it)
3747 (tracepoint_print_mention, update_static_tracepoint)
3748 (tracepoints_info, save_breakpoints): Adjust.
3749 * cli-out.c (field_separator): Adjust.
3750 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3751 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3752 * frame.c (get_current_frame): Adjust.
3753 * infcmd.c (run_command_1, print_return_value): Adjust.
3754 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3755 * infrun.c (print_end_stepping_range_reason): Adjust.
3756 (print_signal_exited_reason, print_exited_reason): Adjust.
3757 (print_signal_received_reason, print_no_history_reason): Adjust.
3758 * interps.c (interp_set): Adjust.
3759 * osdata.c (info_osdata_command): Adjust.
3760 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3761 * remote-fileio.c (remote_fileio_request): Adjust.
3762 * remote.c (show_remote_cmd): Adjust.
3763 * solib.c (info_sharedlibrary_command): Adjust.
3764 * source.c (print_source_lines_base): Adjust.
3765 * stack.c (print_stack_frame): Adjust.
3766 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3767 * symfile-mem.c (add_vsyscall_page): Adjust.
3768 * symfile.c (load_progress, generic_load)
3769 (print_transfer_performance): Adjust.
3770 * thread.c (info_threads_command, restore_selected_frame)
3771 (thread_command): Adjust.
3772 * top.c (make_cleanup_restore_ui_file): Adjust.
3773 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3774 (print_one_static_tracepoint_marker): Adjust.
3775 * cli/cli-cmds.c (print_disassembly): Adjust.
3776 * cli/cli-decode.c (print_doc_line): Adjust.
3777 * cli/cli-interp.c (safe_execute_command): Adjust.
3778 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3779 (handle_redirections): Adjust.
3780 * cli/cli-script.c (show_user_1): Adjust.
3781 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3782 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3783 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3784 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3785 (mi_cmd_env_dir): Adjust.
3786 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3787 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3788 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3789 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3790 (list_args_or_locals): Adjust.
3791 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3792 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3793 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3794 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3795 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3796 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3797 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3798 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3799 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3800 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3801 (list_available_thread_groups, mi_cmd_list_thread_groups)
3802 (mi_cmd_data_list_register_names)
3803 (mi_cmd_data_list_changed_registers)
3804 (mi_cmd_data_list_register_values, get_register)
3805 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3806 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3807 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3808 (mi_execute_command, mi_load_progress): Adjust.
3809 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3810 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3811 Adjust.
3812 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3813 * tui/tui-interp.c (tui_command_loop): Adjust.
3814 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3815
f9679975
PA
38162011-08-04 Pedro Alves <pedro@codesourcery.com>
3817
3818 * exceptions.c (struct catcher): Remove saved_uiout field.
3819 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3820 no longer save/resvore the global ui_out builder.
3821 (catch_exceptions_with_msg): Save/override/restore the global
3822 ui_out builder manually instead of relying on TRY_CATCH to do it.
3823 (catch_errors): Save/restore the global ui_out builder manually
3824 instead of relying on TRY_CATCH to do it.
3825 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3826 parameter.
3827 (TRY_CATCH): Adjust.
3828 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3829 the global ui_out builder manually instead of relying on TRY_CATCH
3830 to do it.
3831
934709f0
PW
38322011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3833
3834 * breakpoint.c (update_global_location_list): Ensure
3835 invariant 'first loc marked not duplicated and inserted,
3836 following locs marked duplicated/not inserted' is respected
3837 for multiple locations at the same address.
3838 (unduplicated_should_be_inserted) New function.
3839 (swap_insertion) New function.
3840
2421fe6f
JK
38412011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 * stack.c (print_frame_arguments_choices): Comment typo fix.
3844
3fbb6ffa
TJB
38452011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3846
3847 Revert:
3848 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3849 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3850 argument. Update callers.
3851
fbe12357
PP
38522011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3853
3854 PR gdb/13045
3855 * doublest.c (convert_doublest_to_floatformat): Pass correct
3856 mantissa length to put_field.
3857
b1d288d3
JK
38582011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3861 exception_print code path.
3862 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3863 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3864 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3865
311b5970
JK
38662011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3867
3868 Code cleanup.
3869 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3870 Remove, merge them into ...
3871 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3872 variable args and its initialization.
3873 (struct print_args_args, print_args_stub): Remove, merge them into
3874 print_frame.
3875 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3876 them into ...
3877 (do_gdb_disassembly): ... here. Remove variable args and its
3878 initialization.
3879 (print_frame): Remove variable args and its initialization, new
3880 variable gdbarch and numargs (from print_args_stub), inline here
3881 print_args_stub with a TRY_CATCH.
3882 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3883 them into ...
3884 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3885 New variable e, remove variable btargs and its initialization.
311b5970 3886
484a26a8
TG
38872011-08-01 Tristan Gingold <gingold@adacore.com>
3888
3889 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3890
c30eee59
TJB
38912011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3892
3893 * breakpoint.c (insert_bp_location): Document return value.
3894 (insert_breakpoint_locations): Fix documentation.
3895 (remove_breakpoints): Add documentation.
3896
f116073b
TJB
38972011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3898
3899 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3900 argument. Update callers.
3901
65aa373f
JK
39022011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3903
3904 * stack.c (print_frame_info): Comment typo fix.
3905
a50242fb
SA
39062011-07-29 Sterling Augustine <saugustine@google.com>
3907
3908 * MAINTAINERS (Write After Approval): Add myself to the list.
3909
267f6504
TT
39102011-07-29 Tom Tromey <tromey@redhat.com>
3911
3912 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3913 (library_list_start_segment): Update.
3914 (library_list_start_section): Update.
3915
00bd41d6
PM
39162011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3917
3918 * varobj.c (value_get_print_value): Move hint check later into the
3919 function. Comment function. Free thevalue before reusing it.
3920
18a46dbe
JK
39212011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3922 Pedro Alves <pedro@codesourcery.com>
3923
3924 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3925 value_one.
3926 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3927 Assert the result kind.
3928 * value.h (value_one): Remove parameter lv.
3929
bb7da2bf
JK
39302011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3931
3932 Fix crash on lval_computed values.
3933 * valops.c (value_zero): Use not_lval for lval_computed.
3934
2d5213f8
TT
39352011-07-27 Tom Tromey <tromey@redhat.com>
3936
3937 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3938 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3939
11081198
JK
39402011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3941
3942 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3943 "ptype" by their typedefs difference.
3944
3c6e0cb3
JK
39452011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3946
3947 * dwarf2expr.c (ctx_no_read_reg): New function.
3948 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3949 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3950 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3951 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3952
523f3620
JK
39532011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3956 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3957 file.
3958 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3959 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3960 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3961 (ctx_no_get_base_type): Move the functions here.
3962 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3963 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3964 (ctx_no_get_base_type): New declarations.
3965
24d3216f
TT
39662011-07-27 Tom Tromey <tromey@redhat.com>
3967
3968 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3969 entries.
3970 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3971 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3972
5005c8a9
PP
39732011-07-26 Sterling Augustine <saugustine@google.com>
3974
3975 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3976 ULONGEST.
3977 (dump_bfd_file): Likewise.
3978
480a3f21
PW
39792011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3980
3981 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3982 (remote_hw_watchpoint_length_limit): New variable.
3983 (_initialize_remote) add set,show cmds for this new variable.
3984 * gdb.texinfo: document these new commands.
3985 * NEWS: Mention these new commands.
3986
efa80663
PA
39872011-07-26 Pedro Alves <pedro@codesourcery.com>
3988
3989 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3990 true for software watchpoints.
3991
dbdaa232 39922011-07-26 Joel Brobecker <brobecker@adacore.com>
3993
3994 GDB 7.3 released.
3995
cf2c3c16
TT
39962011-07-26 Tom Tromey <tromey@redhat.com>
3997
3998 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3999 * dwarf2read.c (read_indirect_string_at_offset): New function.
4000 (read_indirect_string): Use it.
4001 (dwarf_decode_macro_bytes): New function, taken from
4002 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4003 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4004 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4005 New functions.
4006 (struct dwarf2_per_objfile) <macro>: New field.
4007 (dwarf2_elf_names): Add .debug_macro.
4008 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4009 (dwarf2_locate_sections): Handle new section.
4010 (read_file_scope): Handle DW_AT_GNU_macros.
4011 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4012
1a532630
PP
40132011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4014
4015 * NEWS: Mention dcache configuration.
4016 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4017 (dcache_size, dcache_line_size): New variables.
4018 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4019 (struct dcache_block): Make it expandable.
4020 (struct dcache_struct): New field.
4021 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4022 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4023 (dcache_poke_byte, dcache_print_line): Adjust.
4024 (set_dcache_size, set_dcache_line_size): New functions.
4025 (set_dcache_command, show_dcache_command): New functions.
4026 (_initialize_dcache): Add new commands.
4027
2eff07b3
PP
40282011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4029
4030 * progspace.h (struct program_space): Add solib_add_generation.
4031 * infcmd.c (post_create_inferior): Only call solib_add if not
4032 already done.
4033 * solib.c (solib_add): Increment solib_add_generation.
4034
543305c9
JK
40352011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 Fix implicit pointer offsets.
4038 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4039 ptr.OFFSET.
4040
c0a91b2b
TT
40412011-07-25 Tom Tromey <tromey@redhat.com>
4042
4043 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4044 const.
4045 (ada_exception_sal): Make 'ops' const.
4046 (ada_decode_exception_location): Likewise.
4047 (ada_decode_assert_location): Likewise.
4048 (catch_assert_command): Update.
4049 (catch_ada_exception_command): Update.
4050 (create_ada_exception_catchpoint): Make 'ops' const.
4051 * breakpoint.c (set_raw_breakpoint_without_location)
4052 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4053 const.
4054 (create_internal_breakpoint): Update.
4055 (init_raw_breakpoint_without_location): Make 'ops' const.
4056 (init_raw_breakpoint, init_catchpoint)
4057 (create_fork_vfork_event_catchpoint)
4058 (create_syscall_event_catchpoint, init_breakpoint_sal)
4059 (create_breakpoint_sal, create_breakpoints_sal)
4060 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4061 * breakpoint.h (struct breakpoint) <ops>: Now const.
4062 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4063 const.
4064
6cb9b55b
PP
40652011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4066
4067 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4068
d9b3f62e
PA
40692011-07-25 Pedro Alves <pedro@codesourcery.com>
4070
4071 * breakpoint.h (print_recreate_thread): Declare.
4072 (struct breakpoint): Move step_count, pass_count,
4073 number_on_target, static_trace_marker_id,
4074 static_trace_marker_id_idx ...
4075 (struct tracepoint): ... to this new struct.
4076 (get_tracepoint, get_tracepoint_by_number_on_target)
4077 (get_tracepoint_by_number): Change return type to struct
4078 tracepoint pointer.
4079 * breakpoint.c (is_tracepoint_type): New, factored out from
4080 is_tracepoint.
4081 (is_tracepoint): Adjust.
4082 (print_one_breakpoint_location): Cast to struct tracepoint as
4083 necessary, and adjust.
4084 (print_recreate_catch_fork, print_recreate_catch_vfork)
4085 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4086 print_recreate_thread.
4087 (init_breakpoint_sal): New, factored out from
4088 create_breakpoint_sal.
4089 (create_breakpoint_sal): Reimplement.
4090 (create_breakpoint): Allocate a struct tracecepoint if the caller
4091 wanted a tracepoint. Use init_breakpoint_sal and
4092 install_breakpoint.
4093 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4094 (print_recreate_masked_watchpoint)
4095 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4096 (tracepoint_print_one_detail): Adjust.
4097 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4098 Dump the pass count here.
4099 (update_static_tracepoint): Adjust.
4100 (addr_string_to_sals): Adjust.
4101 (create_tracepoint_from_upload): Adjust. Change return type to
4102 struct tracepoint pointer.
4103 (trace_pass_set_count): Change parameter type to struct tracepoint
4104 pointer, and adjust.
4105 (trace_pass_command): Adjust.
4106 (get_tracepoint, get_tracepoint_by_number_on_target)
4107 (get_tracepoint_by_number): Change return type to struct
4108 tracepoint pointer, and adjust.
4109 (print_recreate_thread): New, factored out from save_breakpoints.
4110 (save_breakpoints): Don't print thread and task and passcount
4111 recreation here.
4112 * remote.c (remote_download_tracepoint): Adjust.
4113 * tracepoint.c (trace_actions_command, validate_actionline)
4114 (start_tracing, tfind_1, trace_find_tracepoint_command)
4115 (trace_dump_command): Adjust.
4116 (find_matching_tracepoint): Change return type to struct
4117 tracepoint pointer, and adjust.
4118 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4119 (tfile_trace_find, tfile_fetch_registers): Adjust.
4120 * tracepoint.h (create_tracepoint_from_upload): Change return type
4121 to struct tracepoint pointer.
4122 * ada-lang.c (print_recreate_exception): Call
4123 print_recreate_thread.
4124 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4125
3a5c3e22
PA
41262011-07-25 Pedro Alves <pedro@codesourcery.com>
4127
4128 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4129 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4130 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4131 watchpoint_thread, watchpoint_triggered ...
4132 (struct watchpoint): ... to this new struct.
4133 (is_watchpoint): Declare.
4134 (install_breakpoint): Add new `internal' parameter.
4135 * breakpoint.c (is_watchpoint): Delete declaration.
4136 (set_breakpoint_condition): Handle watchpoints.
4137 (is_watchpoint): Make public.
4138 (watchpoint_in_thread_scope): Change parameter type to struct
4139 watchpoint.
4140 (watchpoint_del_at_next_stop): Change parameter type to struct
4141 watchpoint. Remove assertion. Adjust.
4142 (update_watchpoint): Ditto.
4143 (insert_breakpoints, breakpoint_init_inferior)
4144 (watchpoints_triggered, watchpoint_check)
4145 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4146 (bpstat_stop_status, print_one_breakpoint_location)
4147 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4148 to struct watchpoint as necessary, and adjust.
4149 (install_breakpoint): Add `internal' argument. If true, don't
4150 mention the new breakpoint. Use set_breakpoint_number.
4151 (create_fork_vfork_event_catchpoint)
4152 (create_syscall_event_catchpoint): Adjust.
4153 (dtor_watchpoint): New.
4154 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4155 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4156 (print_it_watchpoint, print_mention_watchpoint)
4157 (print_recreate_watchpoint, insert_masked_watchpoint)
4158 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4159 (print_one_detail_masked_watchpoint)
4160 (print_mention_masked_watchpoint)
4161 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4162 necessary, and adjust.
4163 (watch_command_1): Allocate and initialize a struct watchpoint
4164 instead of a struct breakpoint. Use install_breakpoint.
4165 (catch_exec_command_1): Adjust.
4166 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4167 fields.
4168 (delete_breakpoint, enable_breakpoint_disp)
4169 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4170 as necessary, and adjust.
4171 (initialize_breakpoint_ops): Install dtor_watchpoint as
4172 watchpoints' dtor method.
4173 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4174 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4175 to struct watchpoint as necessary, and adjust.
4176
2060206e
PA
41772011-07-25 Pedro Alves <pedro@codesourcery.com>
4178
4179 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4180 the the base class ops table.
4181 (catch_exception_breakpoint_ops)
4182 (catch_exception_unhandled_breakpoint_ops)
4183 (catch_assert_breakpoint_ops): Don't statically initialize.
4184 (initialize_ada_catchpoint_ops): New.
4185 (_initialize_ada_language): Call it.
4186 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4187 (bkpt_breakpoint_ops): Forward declare.
4188 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4189 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4190 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4191 (masked_watchpoint_breakpoint_ops)
4192 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4193 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4194 base class ops table.
4195 (null_re_set, null_check_status, null_works_in_software_mode)
4196 (null_resources_needed, null_print_one_detail): Delete.
4197 (bkpt_dtor): Rename to ...
4198 (base_breakpoint_dtor): ... this. Make static.
4199 (bkpt_allocate_location): Rename to ...
4200 (base_breakpoint_allocate_location): ... this. Make static.
4201 (base_breakpoint_re_set): New.
4202 (internal_error_pure_virtual_called): New.
4203 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4204 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4205 (base_breakpoint_works_in_software_mode)
4206 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4207 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4208 (base_breakpoint_print_recreate): New functions.
4209 (base_breakpoint_ops): New global.
4210 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4211 (bkpt_breakpoint_hit): Make static.
4212 (bkpt_check_status): Delete.
4213 (bkpt_resources_needed): Make static.
4214 (bkpt_works_in_software_mode): Delete.
4215 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4216 static.
4217 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4218 (momentary_breakpoint_ops): Don't statically initialize.
4219 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4220 Delete.
4221 (tracepoint_insert_location, tracepoint_remove_location)
4222 (tracepoint_check_status, tracepoint_works_in_software_mode)
4223 (tracepoint_print_it): Delete.
4224 (tracepoint_breakpoint_ops): Don't statically initialize.
4225 (initialize_breakpoint_ops): New.
4226 (_initialize_breakpoint): Call it.
4227 * breakpoint.h (null_re_set, null_works_in_software_mode)
4228 (null_resources_needed, null_check_status, null_print_one_detail):
4229 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4230 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4231 (bkpt_check_status, bkpt_resources_needed)
4232 (bkpt_works_in_software_mode, bkpt_print_it)
4233 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4234 Delete declarations.
4235 (initialize_breakpoint_ops): Declare.
4236
001c8c33
PA
42372011-07-25 Pedro Alves <pedro@codesourcery.com>
4238
4239 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4240 (momentary_bkpt_print_it): Simplify.
4241
06edf0c0
PA
42422011-07-25 Pedro Alves <pedro@codesourcery.com>
4243
4244 Split internal, momentary and user breakpoints breakpoint_ops
4245 tables.
4246
4247 * breakpoint.c (internal_breakpoint_ops)
4248 (momentary_breakpoint_ops): Forward declare.
4249 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4250 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4251 (create_overlay_event_breakpoint)
4252 (create_std_terminate_master_breakpoint)
4253 (create_exception_master_breakpoint): Create breakpoints with
4254 internal_breakpoint_ops vtable.
4255 (set_longjmp_breakpoint): Create momentary breakpoints with
4256 momentary_breakpoint_ops vtable, using
4257 momentary_breakpoint_from_master.
4258 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4259 (create_solib_event_breakpoint): Create breakpoints with
4260 internal_breakpoint_ops vtable.
4261 (set_momentary_breakpoint): Create breakpoints with
4262 momentary_breakpoint_ops vtable.
4263 (momentary_breakpoint_from_master): New, factored out from
4264 clone_momentary_breakpoint.
4265 (clone_momentary_breakpoint): Adjust.
4266 (watch_command_1): Create scope breakpoints with
4267 momentary_breakpoint_ops vtable.
4268 (bkpt_re_set): Remove handling of internal and momentary
4269 breakpoints.
4270 (bkpt_print_mention, bkpt_print_recreate): New.
4271 (bkpt_breakpoint_ops): Adjust.
4272 (internal_bkpt_re_set, internal_bkpt_check_status)
4273 (internal_bkpt_print_it, internal_bkpt_print_mention)
4274 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4275 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4276 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4277 (momentary_bkpt_print_recreate): New.
4278 (momentary_breakpoint_ops): New.
4279
348d480f
PA
42802011-07-25 Pedro Alves <pedro@codesourcery.com>
4281
4282 Implement most breakpoint_ops methods for all breakpoint types,
4283 and move the default handlings to the proper callbacks.
4284
4285 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4286 works_in_software_mode method.
4287 (insert_bp_location): Go through breakpoint_ops->insert_location
4288 for software and hardware watchpoints.
4289 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4290 breakpoint_ops.
4291 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4292 for software and hardware watchpoints.
4293 (print_it_typical): Delete.
4294 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4295 method.
4296 (watchpoint_check): Adjust comment.
4297 (bpstat_check_location): Simply always call the breakpoint's
4298 breakpoint_hit method.
4299 (bpstat_stop_status): Always call the breakpoint's check_status
4300 method. Remove special cases for watchpoints and internal event
4301 breakpoints from here (moved to the check_status implementations).
4302 (print_one_breakpoint_location): Assume b->ops is never NULL.
4303 Remove static tracepoint marker id printing from here (moved to
4304 the print_one_detail callback implementation of tracepoints).
4305 (init_bp_location): Assert OPS is never NULL.
4306 (allocate_bp_location): Always call the breakpoint's
4307 allocate_location method, and remove the default code from here.
4308 (free_bp_location): Always call the location's dtor method, and
4309 remove the default code from here.
4310 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4311 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4312 parameter. Pass it down.
4313 (set_raw_breakpoint): Ditto.
4314 (print_it_catch_fork): Adjust to take a bpstat as argument.
4315 (catch_fork_breakpoint_ops): Install methods.
4316 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4317 (catch_vfork_breakpoint_ops): Install methods.
4318 (dtor_catch_syscall): Call the base dtor.
4319 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4320 (catch_syscall_breakpoint_ops): Install methods.
4321 (dtor_catch_exec): Call the base dtor.
4322 (print_it_catch_exec): Adjust to take a bpstat as argument.
4323 (catch_exec_breakpoint_ops): Install methods.
4324 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4325 the breakpoint's resources_needed method, and remove the default
4326 code from here.
4327 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4328 breakpoint_ops.
4329 (clone_momentary_breakpoint): Clone the original's ops.
4330 (mention): Always call the breakpoint's print_mention method, and
4331 remove the default code from here.
4332 (create_breakpoint_sal): Adjust to pass the ops to
4333 set_raw_breakpoint rather than setting it manually.
4334 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4335 ops to set_raw_breakpoint_without_location rather than setting it
4336 manually.
4337 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4338 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4339 (ranged_breakpoint_ops): Install methods.
4340 (break_range_command): Adjust to pass the ops to
4341 set_raw_breakpoint rather than setting it manually.
4342 (re_set_watchpoint, breakpoint_hit_watchpoint)
4343 (check_status_watchpoint, resources_needed_watchpoint)
4344 (works_in_software_mode_watchpoint, print_it_watchpoint)
4345 (print_mention_watchpoint, print_recreate_watchpoint): New
4346 functions.
4347 (watchpoint_breakpoint_ops): Install new methods.
4348 (print_it_masked_watchpoint): New function.
4349 (masked_watchpoint_breakpoint_ops): Install new methods.
4350 (watch_command_1): Adjust to pass the right breakpoint_ops to
4351 set_raw_breakpoint_without_location rather than setting it
4352 manually later. Record the current pspace.
4353 (print_it_exception_catchpoint): Adjust to take a bpstat as
4354 argument.
4355 (gnu_v3_exception_catchpoint_ops): Install new methods.
4356 (say_where): New function.
4357 (null_re_set, null_check_status, null_works_in_software_mode)
4358 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4359 New functions.
4360 (bp_location_ops): New global.
4361 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4362 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4363 (bkpt_check_status, bkpt_resources_needed)
4364 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4365 (bkpt_print_recreate): New functions.
4366 (bkpt_breakpoint_ops): New global.
4367 (tracepoint_re_set, tracepoint_insert_location)
4368 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4369 (tracepoint_check_status, tracepoint_works_in_software_mode)
4370 (tracepoint_print_it, tracepoint_print_one_detail)
4371 (tracepoint_print_mention, tracepoint_print_recreate): New
4372 functions.
4373 (tracepoint_breakpoint_ops): New global.
4374 (delete_breakpoint): Always call the breakpoint's dtor method, and
4375 remove the default handling from here.
4376 (breakpoint_re_set_default): Make static.
4377 (breakpoint_re_set_one): Always call the breakpoints re_set
4378 method, and remove the default handling from here.
4379 (trace_command, ftrace_command, strace_command)
4380 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4381 to create_breakpoint.
4382 (save_breakpoints): Always call the breakpoint's print_recreate
4383 method, and remove the default handling from here.
4384
4385 * ada-lang.c (dtor_exception): Call the base dtor.
4386 (re_set_exception): Call the base method.
4387 (print_it_exception, print_it_catch_exception): Adjust to take a
4388 bpstat as argument.
4389 (catch_exception_breakpoint_ops): Install methods.
4390 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4391 argument.
4392 (catch_exception_unhandled_breakpoint_ops): Install methods.
4393 (print_it_catch_assert): Adjust to take a bpstat as argument.
4394 (catch_assert_breakpoint_ops): Install methods.
4395
4396 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4397 to take a bpstat as argument.
4398 (enum print_stop_action): Add describing comments to each enum
4399 value.
4400 (breakpoint_re_set_default): Delete declaration.
4401 (null_re_set, null_works_in_software_mode, null_resources_needed)
4402 (null_check_status, null_print_one_detail): Declare.
4403 (bkpt_breakpoint_ops): Declare.
4404 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4405 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4406 (bkpt_check_status, bkpt_resources_needed)
4407 (bkpt_works_in_software_mode, bkpt_print_it)
4408 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4409 Declare.
4410
4411 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4412 bkpt_breakpoint_ops.
4413 * python/py-breakpoint.c (bppy_init): Ditto.
4414
be8f8133
PW
44152011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4416
4417 * MAINTAINERS (Write After Approval): Add myself to the list.
4418
3807f613
PP
44192011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4420
4421 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4422
1ced966e
PA
44232011-07-22 Pedro Alves <pedro@codesourcery.com>
4424
4425 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4426 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4427 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4428 adjust.
4429 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4430 (struct i386_debug_reg_state): New.
4431 (i386_init_dregs): New.
4432 (dr_mirror): New.
4433 (i386_cleanup_dregs): Use i386_init_dregs.
4434 (i386_show_dr): Add state parameter and adjust.
4435 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4436 the inferior here.
4437 (i386_remove_aligned_watchpoint): Likewise.
4438 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4439 (i386_update_inferior_debug_regs): New.
4440 (i386_insert_watchpoint): Work on a local mirror of the debug
4441 registers, and only update the inferior on success.
4442 (i386_remove_watchpoint): Ditto.
4443 (i386_region_ok_for_watchpoint): Adjust.
4444 (i386_stopped_data_address): Adjust.
4445 (i386_insert_hw_breakpoint): Adjust.
4446 (i386_remove_hw_breakpoint): Adjust.
4447
3543a589
TT
44482011-07-22 Tom Tromey <tromey@redhat.com>
4449
4450 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4451 from amd64_pseudo_register_read. Change arguments. Call
4452 mark_value_bytes_unavailable when needed.
4453 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4454 set_gdbarch_pseudo_register_read.
4455 * sentinel-frame.c (sentinel_frame_prev_register): Use
4456 regcache_cooked_read_value.
4457 * regcache.h (regcache_cooked_read_value): Declare.
4458 * regcache.c (regcache_cooked_read_value): New function.
4459 (regcache_cooked_read): Call
4460 gdbarch_pseudo_register_read_value if available.
4461 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4462 (i386_pseudo_register_read): Remove.
4463 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4464 i386_pseudo_register_read. Change arguments. Call
4465 mark_value_bytes_unavailable when needed.
4466 (i386_pseudo_register_read_value): New function.
4467 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4468 not set_gdbarch_pseudo_register_read.
4469 * gdbarch.sh (pseudo_register_read_value): New method.
4470 * gdbarch.c, gdbarch.h: Rebuild.
4471 * findvar.c (value_from_register): Call get_frame_register_value.
4472
95298e72
PM
44732011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4474
4475 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4476 get_prefix.
4477 (display_gdb_prompt): Likewise.
4478 (change_annotation_level): Likewise.
4479 (push_prompt): Likewise.
4480 (pop_prompt): Likewise.
4481 (handle_stop_sig): Use get_prompt with a level.
4482 * top.c (command_loop): Use get_prompt with a level.
4483 (set_async_annotation_level): Use set_prompt with a level.
4484 (get_prefix): New function.
4485 (set_prefix): Ditto.
4486 (set_suffix): Ditto.
4487 (get_suffix): Ditto.
4488 (get_prompt): Accept a level argument.
4489 (set_prompt): Accept a level argument. Free old prompts. Set
4490 new_async_prompt if level is 0.
4491 (init_main): Use set_prompt with a level. Do not set
4492 new_async_prompt.
4493 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4494 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4495 Modify set_prompt, get_prompt to account for levels.
4496 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4497 level.
4498 * python/python.c (before_prompt_hook): Use set_prompt.
4499
d26e3629
KY
45002011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4501
4502 * defs.h: Add guard against inclusion in gdbserver.
4503 (struct ptid, ptid_t): Move to common/ptid.h.
4504 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4505 xsnprintf, internal_error): Move to common/common-utils.h.
4506 (nomem): Delete.
4507 * gdb_assert.h: Move into common/ sub-directory.
4508 * gdb_locale.h: Ditto.
4509 * gdb_dirent.h: Ditto.
4510 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4511 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4512 Move into common/ptid.h.
4513 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4514 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4515 Change nomem to malloc_failure.
4516 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4517 * utils.c (nomem): Rename to malloc_failure.
4518 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4519 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4520 (gdb_buildargv): Change nomem to malloc_failure.
4521 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4522 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4523 ptid_is_pid): Move into common/ptid.c.
4524 (initialize_infrun): Delete initialization of null_ptid and
4525 minus_one_ptid.
4526 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4527 linux_common_xfer_osdata.
4528 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4529 common/ptid.c and common/buffer.c.
4530 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4531 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4532 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4533 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4534 rules.
4535 * common/gdb_assert.h: New.
4536 * common/gdb_dirent.h: New.
4537 * common/gdb_locale.h: New.
4538 * common/buffer.c: New.
4539 * common/buffer.h: New.
4540 * common/ptid.c: New.
4541 * common/ptid.h: New.
4542 * common/xml-utils.c: New.
4543 * common/xml-utils.h: New.
4544 * common/common-utils.c: New.
4545 * common/common-utils.h: New.
4546 * common/linux-osdata.c: New.
4547 * common/linux-osdata.h: New.
4548 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4549 * config/arm/linux.mh (NATDEPFILES): Ditto.
4550 * config/i386/linux.mh (NATDEPFILES): Ditto.
4551 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4552 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4553 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4554 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4555 * config/mips/linux.mh (NATDEPFILES): Ditto.
4556 * config/pa/linux.mh (NATDEPFILES): Ditto.
4557 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4558 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4559 * config/s390/s390.mh (NATDEPFILES): Ditto.
4560 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4561 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4562 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4563
edc84990 45642011-07-21 Matt Rice <ratmice@gmail.com>
4565
4566 * NEWS: Add info macros and info definitions commands.
4567
3a7bf607
PM
45682011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4569
4570 * NEWS: Document Python prompt substitution hook.
4571
9b158ba0 45722011-07-18 Matt Rice <ratmice@gmail.com>
4573
4574 PR macros/12999
4575 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4576 * macrotab.c (foreach_macro): Ditto.
4577 (foreach_macro_in_scope): Ditto.
4578 * macrocmd.c (print_macro_callback): New function.
4579 (info_macro_command): Move some code to print_macro_definition.
4580 (print_macro_definition): New function.
4581 (print_one_macro): Add new arguments to callback.
4582 (info_definitions_command): New function.
4583 (info_macros_command): Ditto.
4584 (_initialize_macrocmd): Add info macros and info definitions commands.
4585 * symtab.c (add_macro_name): Add new arguments to callback.
4586
d17b6f81
PM
45872011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4588 Tom Tromey <tromey@redhat.com>
4589
4590 * top.c (set_prompt): Rewrite to free previous prompt, free
4591 asynch_new_prompt and set both on new prompts.
4592 * event-top.c (display_gdb_prompt): Add prompt substitution
4593 logic.
4594 * python/python.c (before_prompt_hook): New function.
4595
1364323a 45962011-07-20 Matt Rice <ratmice@gmail.com>
4597
4598 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4599 arguments to store_unsigned_integer.
4600
8b70b953
TT
46012011-07-20 Tom Tromey <tromey@redhat.com>
4602
6c83ed52
TT
4603 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4604 in some declaration-only cases.
4605
46062011-07-18 Tom Tromey <tromey@redhat.com>
4607
8b70b953
TT
4608 PR symtab/12984:
4609 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4610 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4611 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4612 <debug_type_section>: New field.
4613 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4614 (load_cu): Use appropriate section.
4615 (create_signatured_type_table_from_index): Add 'section'
4616 argument.
4617 (dwarf2_read_index): Only allow a single .debug_types section.
4618 (dw2_get_file_names): Use appropriate section.
4619 (read_type_comp_unit_head): Add 'section' argument.
4620 (create_debug_types_hash_table): Loop over all .debug_types
4621 sections.
4622 (init_cu_die_reader): Use appropriate section.
4623 (process_psymtab_comp_unit, load_partial_comp_unit)
4624 (load_full_comp_unit, read_die_and_children, find_partial_die)
4625 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4626 (lookup_signatured_type_at_offset): Add 'section' argument.
4627 (read_signatured_type_at_offset): Add 'sect' argument.
4628 (read_signatured_type): Use appropriate section.
4629 (set_die_type, get_die_type_at_offset): Update.
4630 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4631 VEC.
4632 (write_psymtabs_to_index): Don't allow index with more than one
4633 .debug_types section.
4634
918dd910
JK
46352011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4636
4637 Fix crash if referenced CU is aged out.
4638 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4639 xfree of block.data.
4640 (indirect_pieced_value): New variable back_to, use to for xfree of
4641 baton.data.
4642 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4643 block.data.
4644 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4645 (load_cu): New function from ...
4646 (dw2_do_instantiate_symtab): ... the code here ...
4647 (process_full_comp_unit): ... and here.
4648 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4649 retval.data.
4650
0e37a63c
JK
46512011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4654 type.
4655
7e324e48
GB
46562011-07-19 Gary Benson <gbenson@redhat.com>
4657
4658 * infrun.c (struct execution_control_state): New member
4659 stop_func_filled_in.
4660 (clear_stop_func, fill_in_stop_func): New functions.
4661 (handle_inferior_event): Call clear_stop_func rather than
4662 manipulating the execution control state directly.
4663 Call fill_in_stop_func lazily as required rather than
4664 directly calling find_pc_partial_function in all cases.
4665
d48323d8
TT
46662011-07-18 Tom Tromey <tromey@redhat.com>
4667
4668 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4669 checking for variable-sized array.
4670
40591b7d
JCD
46712011-07-18 Jean-Charles Delay <delay@adacore.com>
4672
4673 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4674 of supported languages.
4675 * varobj.c: Add top definitions and basic implementation of the
4676 following callbacks: ada_number_of_children, ada_name_of_variable,
4677 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4678 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4679 (languages): Register Ada-specific callbacks.
4680 (variable_language): Add the Ada case in the language setter switch.
4681
2e424e08
JK
46822011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4683
4684 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4685
9e8b7a03
JK
46862011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4687
4688 Code cleanup.
4689 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4690 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4691 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4692 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4693 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4694 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4695 (struct dwarf_expr_context_funcs): New, move here methods from ...
4696 (struct dwarf_expr_context): ... here. New fields funcs.
4697 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4698 (dwarf_expr_ctx_funcs): New.
4699 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4700 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4701 (needs_frame_ctx_funcs): New.
4702 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4703
2b1260ab
FM
47042011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4705
4706 * MAINTAINERS (Write After Approval): Add myself to the list.
4707
8bd90839
FM
47082011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4709
4710 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4711 that CIE pointer of an FDE really points to a CIE .
4712
953b98d1
HZ
47132011-07-15 Hui Zhu <teawater@gmail.com>
4714
4715 * remote.c (remote_get_trace_status): Add comments.
4716
c8f2448a
JK
47172011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4718
4719 Code cleanup - constify struct lval_funcs.
4720 * dwarf2loc.c (pieced_value_funcs): Make it const.
4721 * infrun.c (siginfo_value_funcs): Likewise.
4722 * opencl-lang.c (opencl_value_funcs): Likewise.
4723 * valops.c (value_assign, value_ind): Make the funcs variable const.
4724 * value.c (struct value): Make location.computed.funcs target const.
4725 Rearrange the comments.
4726 (allocate_computed_value): Make the funcs parameter target const.
4727 (value_computed_funcs): Return the funcs target const.
4728 (value_free, value_copy, set_value_component_location): Make the funcs
4729 variable const.
4730 * value.h (allocate_computed_value): Make the funcs parameter target
4731 const.
4732 (value_computed_funcs): Return the funcs target const.
4733 * windows-tdep.c (tlb_value_funcs): Make it const.
4734
f652de6f
HZ
47352011-07-14 Hui Zhu <teawater@gmail.com>
4736
4737 * remote.c (remote_get_trace_status): Initialize p.
4738
67f41397
JK
47392011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4740
4741 Work around kgdb.
4742 * remote.c (remote_get_trace_status): New variable ex. Put
4743 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4744
d1b66e6d
TT
47452011-07-13 Tom Tromey <tromey@redhat.com>
4746
4747 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4748 value_from_contents for final conversion.
4749
1632a688
JK
47502011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4751
4752 Code cleanup.
4753 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4754 Indent prototypes so they do not get into tags.
4755
a7035dbb
JK
47562011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4757
4758 Code cleanup making also optimized out values lazy.
4759 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4760 allocate_optimized_out_value. Twice.
4761 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4762 * findvar.c (read_var_value): Likewise.
4763 * value.c (allocate_optimized_out_value): New function.
4764 * value.h (allocate_optimized_out_value): New declaration.
4765
d07ed419
JK
47662011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 Fix occasional crash of CTRL-C during DWARF read in.
4769 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4770
86d31898
TT
47712011-07-11 Tom Tromey <tromey@redhat.com>
4772
4773 * regcache.c (struct regcache_descr): Fix typo.
4774 * i387-tdep.c (i387_supply_xsave): Fix typo.
4775
2ab95328
TT
47762011-07-11 Tom Tromey <tromey@redhat.com>
4777
4778 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4779 (read_file_scope, read_type_unit_scope): Use it.
4780
04ad99e6
JK
47812011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4782
4783 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4784 `int'.
4785
713389e0
PM
47862011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4787
4788 PR python/12438
4789 * python/python.c: Set gdbpy_should_print_stack default to off.
4790 (set_python): Deprecate maint set python print-stack to
4791 class_deprecate.
4792 (_initialize_python): Deprecate maint set/show python print-stack.
4793 Add new prefix command, python. Add new setting, print-backtrace.
4794 * NEWS: Document set python print-stack. Document default change.
4795
754eadd1
PM
47962011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4797
4798 * python/py-inferior.c (infpy_dealloc): New function.
4799 (inferior_to_inferior_object): Return a new object, or a
4800 new reference to the existing object.
4801 (find_thread_object): Cleanup references to inferior.
4802 (delete_thread_object): Ditto.
4803 * python/py-infthread.c (create_thread_object): Do not increment
4804 inferior reference count.
4805
5e44ecb3
TT
48062011-07-08 Tom Tromey <tromey@redhat.com>
4807
4808 * dwarf2loc.c (locexpr_regname): New function.
4809 (locexpr_describe_location_piece): Use it.
4810 (disassemble_dwarf_expression): Add per_cu argument. Use
4811 locexpr_regname.
4812 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4813 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4814 New cases.
4815 (locexpr_describe_location_1): Add per_cu argument.
4816 (locexpr_describe_location): Update.
4817 (loclist_describe_location): Update.
4818
e0e9434c
TT
48192011-07-08 Tom Tromey <tromey@redhat.com>
4820
4821 * dwarf2expr.c (execute_stack_op): Add QUIT.
4822
26afc0d7
HZ
48232011-07-07 Hui Zhu <teawater@gmail.com>
4824
4825 Revert:
4826 2011-07-06 Hui Zhu <teawater@gmail.com>
4827 * remote.c (remote_start_remote): Add TRY_CATCH for
4828 remote_get_trace_status.
4829 * tracepoint.c (disconnect_tracing): Ditto.
4830
a40a111f
AB
48312011-07-07 Andrew Burgess <aburgess@broadcom.com>
4832
4833 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4834 variables as signed, not unsigned.
4835
e2bd3b15
JB
48362011-07-06 Joel Brobecker <brobecker@adacore.com>
4837
4838 * jit.c (jit_inferior_init): Reformat forward declaration.
4839
e3d961fe 48402011-07-06 Matt Rice <ratmice@gmail.com>
4841
4842 * MAINTAINERS (Write After Approval): Add myself to the list.
4843
0f3428f0
HZ
48442011-07-06 Hui Zhu <teawater@gmail.com>
4845
4846 * remote.c (remote_start_remote): Add TRY_CATCH for
4847 remote_get_trace_status.
4848 * tracepoint.c (disconnect_tracing): Ditto.
4849
fc9f3a69
TT
48502011-07-05 Tom Tromey <tromey@redhat.com>
4851
4852 * symtab.c (operator_chars): Now static.
4853 * linespec.c (operator_chars): Don't declare.
4854
26e519b9
TJB
48552011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4856
4857 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4858
eb2a6f42
TT
48592011-07-05 Tom Tromey <tromey@redhat.com>
4860
4861 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4862 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4863 (TYPE_CPLUS_REALLY_JAVA): New macro.
4864 * dwarf2read.c (process_structure_scope): Set
4865 TYPE_CPLUS_REALLY_JAVA.
4866
21083d0f 48672011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4868
4869 * ada-lang.c: Fix typos.
4870 * amd64-tdep.c: Likewise.
4871 * breakpoint.c: Likewise.
4872 * cli/cli-decode.c: Likewise.
4873 * findcmd.c: Likewise.
4874 * inline-frame.c: Likewise.
4875 * mi/mi-main.c: Likewise.
4876 * minsyms.c: Likewise.
4877 * monitor.c: Likewise.
4878 * monitor.h: Likewise.
4879 * prologue-value.c: Likewise.
4880 * reverse.c: Likewise.
4881 * s390-tdep.c: Likewise.
4882
3b2a0cf2
JB
48832011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4884
4885 * jit.c (jit_inferior_init): Forward declare.
4886 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4887
efae1d92
JB
48882011-07-04 Joel Brobecker <brobecker@adacore.com>
4889
4890 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4891
6040a59d
JB
48922011-07-04 Tristan Gingold <gingold@adacore.com>
4893
4894 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4895 (tcb_fieldno): Add activation_link field.
4896 (get_known_tasks_addr): Moved and rewritten.
4897 (get_tcb_types_info): Set activation_link field.
4898 (read_known_tasks_array): Add parameter. Rewritten.
4899 (read_known_tasks_list): New function.
4900 (read_known_tasks): New function.
4901 (ada_build_task_list): Call read_known_tasks instead of
4902 read_known_tasks_array.
4903 * ravenscar-thread.c: Add first_task_name constant.
4904 (has_ravenscar_runtime): Check for task list too.
4905
cb741e45
JB
49062011-07-04 Tristan Gingold <gingold@adacore.com>
4907
4908 * ada-tasks.c: Renames fieldno to actb_fieldno.
4909 (ada_get_task_number): Indentation.
4910 (get_tcb_types_info): Remove all parameters. Write directly
4911 the globals.
4912 (ptid_from_atcb_common): Adjust.
4913 (read_atcb): Adjust.
4914
7475b06c
TJB
49152011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4916
4917 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4918
15230f37
TJB
49192011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4920
4921 * ui-out.c (ui_out_field_core_addr): Mention that the function
4922 description is in the header file.
4923 * ui-out.h (ui_out_field_core_addr): Document function.
4924
65743aba
TJB
49252011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4926
4927 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4928 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4929
c37a5aab
TJB
49302011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4931
4932 * symtab.c (expand_line_sal): Remove empty line.
4933
59adf69e
TS
49342011-07-04 Thomas Schwinge <thomas@schwinge.name>
4935
4936 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4937 same way as ELFOSABI_NONE.
4938 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4939
e5dd4106
TJB
49402011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4941
4942 * breakpoint.c: Fix typos in comments.
4943 * linespec.c: Likewise.
4944 * symtab.c: Likewise.
4945
d40102a1
JB
49462011-07-04 Joel Brobecker <brobecker@adacore.com>
4947
4948 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4949 section in separate object files.
4950
2f741504
JK
49512011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 Fix false GCC warning.
4954 * linespec.c (decode_line_1): Initialize values.
4955
418c7cf7
JK
49562011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4957
4958 * linespec.c (find_method): Accept the function type automatically only
4959 if it was specified with parameter types.
4960
3d50dd94
JK
49612011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4962
4963 Stop on first linespec terminator instead of eating what we can.
4964 * linespec.c (is_linespec_boundary): New function.
4965 (name_end): Remove function.
4966 (keep_name_info): New parameter on_boundary, replace the body.
4967 (decode_line_1): Provide the parameter to keep_name_info.
4968 (decode_compound): Likewise. Drop the trailing java return type
4969 handling. Twice.
4970
dcf9f4ab
JK
49712011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 Fall back linespec to minimal symbols.
4974 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4975 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4976 (find_method, symbol_found): Change error to cplusplus_error.
4977
3f542ed1
JK
49782011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4979
bc68c4e5 4980 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4981
900e11f9
JK
49822011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4983 Tom Tromey <tromey@redhat.com>
4984
4985 * dwarf2read.c (check_physname): New variable.
4986 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4987 (show_check_physname): New function.
4988 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4989
2301925d
JB
49902011-07-01 Joel Brobecker <brobecker@adacore.com>
4991
4992 * machoread.c (macho_symfile_read): Delete OBE comment.
4993
38947cca
JB
49942011-07-01 Joel Brobecker <brobecker@adacore.com>
4995
4996 * machoread.c (struct macho_oso_data): Delete.
4997 (current_oso): Delete.
4998 (macho_relocate_common_syms): New function, mostly extracted
4999 out of
5000 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5001 Remove code that sets and unset current_oso.
5002 (macho_symfile_relocate): Delete handling of common symbols,
5003 now moved to macho_relocate_common_syms.
5004
a7aa0d73
JB
50052011-07-01 Joel Brobecker <brobecker@adacore.com>
5006
5007 * darwin-nat.c (darwin_ptrace): Add documentation.
5008 Set errno to zero before calling ptrace. If ptrace returns
5009 -1 and errno is zero, then change then return zero.
5010 (darwin_kill_inferior): Issue a warning instead of triggering
5011 a failed assertion when the PT_KILL ptrace operations returned
5012 nonzero.
5013
5e9bc145
JB
50142011-07-01 Joel Brobecker <brobecker@adacore.com>
5015
5016 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5017 only when inf->private->no_ptrace.
5018
00eb2c4a
JB
50192011-07-01 Joel Brobecker <brobecker@adacore.com>
5020
5021 * ada-lang.c (print_it_exception): Print temporary catchpoints
5022 as "Temporary catchpoint".
5023 (print_mention_exception): Likewise.
5024
127c81bc
TT
50252011-07-01 Tom Tromey <tromey@redhat.com>
5026
5027 * jv-lang.c (java_language_defn): Use java_printchar,
5028 java_printstr.
5029 (java_get_encoding): New function.
5030 (java_emit_char): Use generic_emit_char.
5031 (java_printchar): New function.
5032 (java_printstr): Likewise.
5033
25552254
JB
50342011-07-01 Joel Brobecker <brobecker@adacore.com>
5035
5036 * ada-typeprint.c (print_record_type): If unable to decode
5037 the name of the parent type, use the encoded name.
5038
d2d43431
JB
50392011-07-01 Jean-Charles Delay <delay@adacore.com>
5040
5041 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5042 pointer to constrained packed array type output.
5043 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5044 packed array output.
5045
54ae186f
JB
50462011-07-01 Jean-Charles Delay <delay@adacore.com>
5047
5048 * ada-typeprint.c (print_array_type): removed if condition on show
5049 being negative for bounds printing.
5050
8f17729f
JB
50512011-07-01 Joel Brobecker <brobecker@adacore.com>
5052
5053 * ada-lang.c (ada_identical_enum_types_p): New function.
5054 (symbols_are_identical_enums): New function.
5055 (remove_extra_symbols): Do nothing if NSYMS < 2.
5056 Use symbols_are_identical_enums.
5057
f5aa6869
JB
50582011-07-01 Joel Brobecker <brobecker@adacore.com>
5059
5060 * ada-valprint.c (ada_value_print): Handle typedefs.
5061
8f465ea7
JB
50622011-07-01 Joel Brobecker <brobecker@adacore.com>
5063
5064 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5065
828292f2
JB
50662011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5067
5068 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5069 (decode_constrained_packed_array): Likewise.
5070 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5071
18920c42
JB
50722011-07-01 Joel Brobecker <brobecker@adacore.com>
5073
5074 * ada-exp.y (convert_char_literal): Handle typedef types.
5075
c90092fe
JB
50762011-07-01 Joel Brobecker <brobecker@adacore.com>
5077
5078 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5079
f748fb40
TT
50802011-06-30 Tom Tromey <tromey@redhat.com>
5081
5082 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5083 * valops.c (find_overload_match): Call do_cleanups on early exit
5084 path.
5085 * solib.c (solib_find): Call do_cleanups on early exit path.
5086
3bb47e8b
TT
50872011-06-30 Tom Tromey <tromey@redhat.com>
5088
5089 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5090 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5091 return paths. Defer final do_cleanups until last return.
5092 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5093 early return.
5094
4727bad3
TT
50952011-06-30 Tom Tromey <tromey@redhat.com>
5096
5097 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5098
bb361dbf
AB
50992011-06-30 Andrew Burgess <aburgess@broadcom.com>
5100
5101 * MAINTAINERS (Write After Approval): Add myself to the list.
5102
e0d00bc7
JK
51032011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5104
5105 Disable epilogue unwinders on recent GCCs.
5106 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5107 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5108 * dwarf2read.c (process_full_comp_unit): Initialize
5109 EPILOGUE_UNWIND_VALID.
5110 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5111 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5112 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5113
4632c0d0
JK
51142011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5115
5116 Code cleanup - reformatting.
5117 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5118 (producer_is_gcc_ge_4): ... here, change the return value.
5119 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5120 interpretation.
5121
32019081
JK
51222011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5123
5124 Fix non-only rename list for Fortran modules import.
5125 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5126 cp_add_using_directive caller.
5127 (cp_add_using_directive): New parameter excludes, describe it. New
5128 variables ix and param. Compare if also excludes match. Allocate NEW
5129 with variable size, initialize EXCLUDES there.
5130 (cp_lookup_symbol_imports): New variable excludep, test
5131 current->EXCLUDES with it.
5132 * cp-support.h: Include vec.h.
5133 (struct using_direct): New field excludes, describe it.
5134 (DEF_VEC_P (const_char_ptr)): New.
5135 (cp_add_using_directive): New parameter excludes.
5136 * defs.h (const_char_ptr): New typedef.
5137 * dwarf2read.c (read_import_statement): New variables child_die,
5138 excludes and cleanups, read in excludes.
5139 (read_namespace): Adjust the cp_add_using_directive caller.
5140
70c622a3
JK
51412011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5142
5143 Code cleanup.
5144 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5145 negative comparisons.
5146
39c4d40a
TT
51472011-06-29 André Pönitz <andre.poenitz@nokia.com>
5148
5149 * mi/mi-main.c (mi_cmd_list_features): Emit
5150 breakpoint-notifications.
5151
3b2b8fea
TT
51522011-06-29 Tom Tromey <tromey@redhat.com>
5153
5154 PR fortran/10036:
5155 * valprint.h (generic_emit_char, generic_printstr): Declare.
5156 * valprint.c (wchar_printable, append_string_as_wide)
5157 (print_wchar): Move from c-lang.c.
5158 (generic_emit_char): New function; mostly taken from c_emit_char.
5159 (generic_printstr): New function; mostly taken from c_printstr.
5160 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5161 represented as arrays.
5162 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5163 type.
5164 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5165 identically to TYPE_CODE_INT.
5166 * f-lang.c (f_get_encoding): New function.
5167 (f_emit_char): Use generic_emit_char.
5168 (f_printchar): Replace comment.
5169 (f_printstr): Use generic_printstr.
5170 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5171 "character" types specially.
5172 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5173 for Fortran.
5174 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5175 Move to valprint.c
5176 (c_emit_char): Call generic_emit_char.
5177 (c_printstr): Call generic_printstr.
5178
168e6d44
GB
51792011-06-29 Gary Benson <gbenson@redhat.com>
5180
5181 * breakpoint.c (bpstat_what): Removed duplicated case.
5182
1c033f8c
TT
51832011-06-28 Tom Tromey <tromey@redhat.com>
5184
5185 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5186
5fe41fbf
TT
51872011-06-27 Tom Tromey <tromey@redhat.com>
5188
5189 * valops.c (find_overload_match): Call do_cleanups before early
5190 return.
5191 * top.c (execute_command): Call do_cleanups before early return.
5192 (command_loop): Likewise.
5193 * stack.c (backtrace_command): Make a null cleanup early. Don't
5194 conditionally call do_cleanups.
5195 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5196 TRY_CATCH.
5197 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5198 so cleanups are always run.
5199 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5200 * findcmd.c (parse_find_args): Call do_cleanups on early return
5201 path.
5202 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5203 Don't conditionally call do_cleanups.
5204 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5205 later.
5206
e26bd57d
EB
52072011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5208
5209 * MAINTAINERS (Write After Approval): Use default email address.
5210
6c3097fc
JB
52112011-06-27 Joel Brobecker <brobecker@adacore.com>
5212
5213 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5214
369c397b
JB
52152011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5216
5217 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5218 saved_regs_mask and copied_regs_mask fields.
5219 (sparc_record_save_insn): New prototype.
5220 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5221 (sparc_record_save_insn): New function.
5222 (sparc_analyze_prologue): Add head comment. Recognize store insns
5223 of call-saved registers. Use OFFSET consistently. Recognize flat
5224 frames and cache their settings.
5225 (sparc32_skip_prologue): Handle flat frames.
5226 (sparc_frame_cache): Add frame_offset to the base address.
5227 (sparc32_frame_cache): Adjust to new frame description.
5228 (sparc32_frame_prev_register): Likewise.
5229 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5230 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5231 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5232 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5233 frame by calling sparc_record_save_insn.
5234 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5235 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5236 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5237
b315ab21
TG
52382011-06-27 Tristan Gingold <gingold@adacore.com>
5239
5240 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5241 field by map_addr and map_len.
5242 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5243 (munmap_section_buffer): Likewise.
5244
ddd49eee
TT
52452011-06-24 Tom Tromey <tromey@redhat.com>
5246
5247 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5248 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5249 * python/python.c (gdbpy_parameter): Make 'arg' const.
5250 (execute_gdb_command): Likewise.
5251 (gdbpy_decode_line): Likewise. Copy it.
5252 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5253 (gdbpy_write): Make 'arg' const.
5254 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5255 const.
5256 (gdbpy_lookup_type): Likewise.
5257 * python/py-prettyprint.c (print_children): Make 'name' const.
5258 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5259 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5260 Py_ssize_t.
5261 * python/py-function.c (fnpy_init): Make 'name' const.
5262 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5263 (gdbpy_string_to_argv): Make 'input' const.
5264 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5265 it.
5266 * gdbtypes.h (lookup_typename): Update.
5267 * gdbtypes.c (lookup_typename): Make 'name' const.
5268 (lookup_struct): Likewise.
5269 (lookup_union): Likewise.
5270 (lookup_enum): Likewise.
5271
5998129b
TT
52722011-06-24 Tom Tromey <tromey@redhat.com>
5273
5274 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5275 gdb_thread_db.h. Move all common/ entries to be together.
5276 (TAGS): Don't depend on DEPFILES.
5277
6e586cc5
YQ
52782011-06-23 Yao Qi <yao@codesourcery.com>
5279
5280 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5281 * remote.c (remote_start_remote): ... here.
5282 * monitor.c (monitor_open): ... here.
5283
86c3c1fc
AB
52842011-06-23 Andrew Burgess <aburgess@broadcom.com>
5285
5286 * gdbtypes.c (append_composite_type_field_aligned): Fix
5287 calculation of bit position based on alignment.
5288
28010a5d
PA
52892011-06-22 Pedro Alves <pedro@codesourcery.com>
5290
5291 * breakpoint.c (bpstat_stop_status): Call the check_status
5292 breakpoint_ops method.
5293 (print_one_breakpoint_location): Also print the condition for Ada
5294 exception catchpoints.
5295 (allocate_bp_location): New, factored out from
5296 allocate_bp_location.
5297 (allocate_bp_location): Adjust. Call the owner breakpoint's
5298 allocate_location method, if there is one.
5299 (free_bp_location): Call the locations's dtor method, if there is
5300 one.
5301 (init_raw_breakpoint_without_location): New breakpoint_ops
5302 parameter. Use it.
5303 (set_raw_breakpoint_without_location): Adjust.
5304 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5305 (set_raw_breakpoint): Adjust.
5306 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5307 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5308 re_set and check_status methods.
5309 (init_catchpoint): Don't memset, initialize thread, addr_string
5310 and enable_state. Pass the ops down to init_raw_breakpoint.
5311 (install_catchpoint): Rename to ...
5312 (install_breakpoint): ... this, and make extern.
5313 (create_fork_vfork_event_catchpoint): Adjust.
5314 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5315 re_set and check_status methods.
5316 (create_syscall_event_catchpoint): Adjust.
5317 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5318 (masked_watchpoint_breakpoint_ops): Install NULL
5319 allocate_location, re_set and check_status methods.
5320 (catch_exec_command_1): Adjust.
5321 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5322 re_set and check_status methods.
5323 (create_ada_exception_breakpoint): Rename to ...
5324 (init_ada_exception_breakpoint): ... this. Add a struct
5325 breakpoint parameter, and delete the exp_string, cond_string and
5326 cond parameters. Use init_raw_breakpoint, and don't install or
5327 mention the breakpoint yet. Don't clear breakpoint fields that
5328 init_raw_breakpoint already clears.
5329 (re_set_breakpoint): Delete, split into ...
5330 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5331 functions.
5332 (breakpoint_re_set_one): Call the breakpoint's
5333 breakpoint_ops->re_set implementation, if there's one. Adjust.
5334 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5335 (struct bp_location_ops): New type.
5336 (struct bp_location): New field `ops'.
5337 (struct breakpoint_ops): New `allocate_location', `re_set' and
5338 `check_status' fields. Make `breakpoint_hit''s description match
5339 reality.
5340 (init_bp_location): Declare.
5341 (breakpoint_re_set_default): Declare.
5342 (create_ada_exception_breakpoint): Rename to ...
5343 (init_ada_exception_breakpoint): ... this. Add a struct
5344 breakpoint parameter, and delete the exp_string, cond_string and
5345 cond parameters.
5346 (install_breakpoint): Declare.
5347 * ada-lang.c: Include exceptions.h.
5348 <Ada exceptions description>: Update.
5349 (struct ada_catchpoint_location): New type.
5350 (ada_catchpoint_location_dtor): New function.
5351 (ada_catchpoint_location_ops): New global.
5352 (ada_catchpoint): New type.
5353 (create_excep_cond_exprs): New function.
5354 (dtor_exception, allocate_location_exception, re_set_exception)
5355 (should_stop_exception, check_status_exception): New functions.
5356 (print_one_exception, print_mention_exception)
5357 (print_recreate_exception): Adjust.
5358 (dtor_catch_exception, allocate_location_catch_exception)
5359 (re_set_catch_exception, check_status_catch_exception): New
5360 functions.
5361 (catch_exception_breakpoint_ops): Install them.
5362 (dtor_catch_exception_unhandled)
5363 (allocate_location_catch_exception_unhandled)
5364 (re_set_catch_exception_unhandled)
5365 (check_status_catch_exception_unhandled): New functions.
5366 (catch_exception_unhandled_breakpoint_ops): Install them.
5367 (dtor_catch_assert, allocate_location_catch_assert)
5368 (re_set_catch_assert, check_status_catch_assert): New functions.
5369 (catch_assert_breakpoint_ops): Install them.
5370 (ada_exception_catchpoint_p): Delete.
5371 (catch_ada_exception_command_split)
5372 (ada_exception_catchpoint_cond_string): Rename exp_string
5373 parameter to excep_string. Adjust.
5374 (ada_parse_catchpoint_condition): Delete.
5375 (ada_exception_sal): Rename the exp_string parameter to
5376 excep_string. Delete the cond_string and cond parameters.
5377 Adjust.
5378 (ada_decode_exception_location): Rename the exp_string parameter
5379 to excep_string. Delete the cond_string and cond parameters.
5380 Adjust.
5381 (create_ada_exception_catchpoint): New function.
5382 (catch_ada_exception_command, ada_decode_assert_location)
5383 (catch_assert_command): Adjust.
5384 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5385
9ac4176b
PA
53862011-06-22 Pedro Alves <pedro@codesourcery.com>
5387
5388 * ada-lang.c: Include arch-utils.h.
5389 (ada_decode_exception_location): Make static.
5390 (catch_ada_exception_command): Moved here from breakpoint.c.
5391 (ada_decode_assert_location): Make static.
5392 (catch_assert_command): Moved here from breakpoint.c.
5393 (_initialize_ada_lang): Install the exception and assert
5394 catchpoint commands here.
5395 * ada-lang.h (ada_decode_exception_location)
5396 (ada_decode_assert_location): Delete declarations.
5397 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5398 breakpoint.h.
5399 (create_ada_exception_breakpoint): Make extern.
5400 (catch_ada_exception_command, catch_assert_command): Moved to
5401 ada-lang.c.
5402 (add_catch_command): Make extern.
5403 (_initilize_breakpoint): Don't install the exception and assert
5404 catchpoint commands here.
5405 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5406 breakpoint.c
5407 (add_catch_command, create_ada_exception_breakpoint): Declare.
5408
c56053d2
PA
54092011-06-22 Pedro Alves <pedro@codesourcery.com>
5410
5411 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5412 the breakpoint to the breakpoint chain here.
5413 (set_raw_breakpoint_without_location): Add the breakpoint to the
5414 breakpoint chain here.
5415 (init_raw_breakpoint): Adjust comments.
5416 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5417 here.
5418 (init_catchpoint): Don't set the catchpoint's breakpoint number
5419 here.
5420 (install_catchpoint): New function.
5421 (create_fork_vfork_event_catchpoint)
5422 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5423 use install_catchpoint.
5424
d2f3fc74
PA
54252011-06-22 Pedro Alves <pedro@codesourcery.com>
5426
5427 * breakpoint.c (create_catchpoint_without_mention)
5428 (create_catchpoint): Delete.
5429
b4d90040
PA
54302011-06-22 Pedro Alves <pedro@codesourcery.com>
5431
5432 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5433 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5434 reference to exec_pathname.
5435 (struct exec_catchpoint): New type.
5436 (dtor_catch_exec): New function.
5437 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5438 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5439 (catch_exec_command_1): Adjust to use init_catchpoint.
5440 (delete_breakpoint): Remove reference to exec_pathname.
5441
be5c67c1
PA
54422011-06-22 Pedro Alves <pedro@codesourcery.com>
5443
5444 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5445 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5446 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5447 reference to syscalls_to_be_caught.
5448 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5449 NULL `dtor'.
5450 (struct syscall_catchpoint): New type.
5451 (dtor_catch_syscall): New function.
5452 (insert_catch_syscall, remove_catch_syscall)
5453 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5454 (print_recreate_catch_syscall): Adjust.
5455 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5456 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5457 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5458 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5459 (masked_watchpoint_breakpoint_ops)
5460 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5461 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5462 there is one. Remove references to syscalls_to_be_caught.
5463 (catching_syscall_number): Adjust.
5464 * ada-lang.c (catch_exception_breakpoint_ops)
5465 (catch_exception_unhandled_breakpoint_ops)
5466 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5467
e29a4733
PA
54682011-06-22 Pedro Alves <pedro@codesourcery.com>
5469
5470 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5471 field.
5472 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5473 reference to forked_inferior_pid.
5474 (struct fork_catchpoint): New type.
5475 (breakpoint_hit_catch_fork, print_it_catch_fork)
5476 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5477 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5478 (create_fork_vfork_event_catchpoint): Adjust to use
5479 init_catchpoint.
5480
346774a9
PA
54812011-06-22 Pedro Alves <pedro@codesourcery.com>
5482
5483 * breakpoint.c (add_to_breakpoint_chain)
5484 (init_raw_breakpoint_without_location): New functions, factored
5485 out from ...
5486 (set_raw_breakpoint_without_location): ... this one.
5487 (init_raw_breakpoint): New function, factored out from
5488 set_raw_breakpoint and adjusted to use
5489 init_raw_breakpoint_without_location.
5490 (set_raw_breakpoint): Adjust.
5491 (init_catchpoint): New function, factored out from
5492 create_catchpoint_without_mention and adjusted to use
5493 init_raw_breakpoint.
5494 (create_catchpoint_without_mention): Adjust.
5495
c38c4bc5
TT
54962011-06-22 Tom Tromey <tromey@redhat.com>
5497
5498 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5499 argument of 0 specially.
5500
b138ce37
YQ
55012011-06-22 Yao Qi <yao@codesourcery.com>
5502
5503 * infrun.c (handle_inferior_event): Remove write-only local variable
5504 `sw_single_step_trap_p'.
5505
03de6823
TT
55062011-06-20 Tom Tromey <tromey@redhat.com>
5507
5508 * symtab.c (lookup_language_this): End loop if block is NULL.
5509
66a17cb6
TT
55102011-06-17 Tom Tromey <tromey@redhat.com>
5511
5512 * valops.c (value_of_this): Use lookup_language_this.
5513 * symtab.h (lookup_language_this): Declare.
5514 * symtab.c (lookup_language_this): New function.
5515 (lookup_symbol_aux): Use lookup_language_this.
5516 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5517
7518bff5
TT
55182011-06-17 Tom Tromey <tromey@redhat.com>
5519
5520 * value.h (value_of_this): Update.
5521 (value_of_local): Remove.
5522 * valops.c (value_of_this): Rename from value_of_local. Change
5523 parameters.
5524 * p-exp.y (exp): Update.
5525 (variable): Likewise.
5526 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5527
aee28ec6
TT
55282011-06-17 Tom Tromey <tromey@redhat.com>
5529
5530 * valops.c (value_of_local): Complain if NAME is NULL.
5531 * std-operator.def (OP_OBJC_SELF): Remove.
5532 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5533 * objc-exp.y (name_not_typename): Use OP_THIS.
5534 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5535 name for "this".
5536 <OP_OBJC_SELF>: Remove.
5537 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5538
eed8f803
TG
55392011-06-16 Tristan Gingold <gingold@adacore.com>
5540
5541 * python/py-events.h (gdb_py_events): Make it extern.
5542 * python/py-evtregistry.c (gdb_py_events): Declare.
5543
864ac8a7
HZ
55442011-06-16 Hui Zhu <teawater@gmail.com>
5545
5546 * remote.c (remote_trace_set_readonly_regions): Add check for
5547 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5548 output warning.
5549
ef7e8358
UW
55502011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5551
5552 * arm-linux-tdep.c: Include "auxv.h".
5553 (AT_HWCAP): Define.
5554 (ARM_LINUX_SIZEOF_VFP): Define.
5555 (arm_linux_supply_vfp): New function.
5556 (arm_linux_collect_vfp): Likewise.
5557 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5558 (arm_linux_fpa_regset_sections): New variable.
5559 (arm_linux_vfp_regset_sections): Likewise.
5560 (arm_linux_core_read_description): New function.
5561 (arm_linux_init_abi): Install arm_linux_core_read_description and
5562 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5563 appropriate for the architecture.
5564 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5565 (tdesc_arm_with_m): Declare.
5566 (tdesc_arm_with_iwmmxt): Likewise.
5567 (tdesc_arm_with_vfpv2): Likewise.
5568 (tdesc_arm_with_vfpv3): Likewise.
5569 (tdesc_arm_with_neon): Likewise.
5570 * arm-linux-nat.c: Move features/*.c includes ...
5571 * arm-tdep.c: ... here.
5572 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5573 target description data structures ...
5574 * arm-tdep.c (_initialize_arm_tdep): ... here.
5575 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5576 HWCAP_VFPv3D16): Move definitions ...
5577 * arm-linux-tdep.h: ... here.
5578
c2fa21f1
HZ
55792011-06-15 Hui Zhu <teawater@gmail.com>
5580
5581 * remote.c (remote_trace_set_readonly_regions): Add a check for
5582 target_buf_size.
5583
dd707e8e
TT
55842011-06-14 Tom Tromey <tromey@redhat.com>
5585
5586 * coffread.c (coffread_objfile): Rename from current_objfile.
5587 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5588 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5589
86cc0029
TT
55902011-06-14 Tom Tromey <tromey@redhat.com>
5591
5592 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5593 (class_symtab): Remove.
5594 (jv_dynamics_progspace_key): New global.
5595 (jv_per_objfile_free): Reset program space data. Update assert.
5596 Don't clear globals.
5597 (get_dynamics_objfile): Use and set program space data.
5598 (get_java_class_symtab): Use get_dynamics_objfile.
5599 (add_class_symbol): Likewise.
5600 (java_link_class_type): Likewise.
5601 (java_object_type, jv_clear_object_type, set_java_object_type):
5602 Remove.
5603 (get_java_object_type): Update. Don't cache result.
5604 (is_object_type): Don't call set_java_object_type.
5605 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5606 initialize jv_dynamics_progspace_key.
5607
91a81f69
TT
56082011-06-14 Tom Tromey <tromey@redhat.com>
5609
5610 * symtab.h (current_objfile): Don't declare.
5611 * objfiles.h (current_objfile): Don't declare.
5612 * objfiles.c (current_objfile): Remove.
5613 * mdebugread.c (current_objfile): New file-scope global.
5614 * dbxread.c (current_objfile): New file-scope global.
5615 * coffread.c (current_objfile): New file-scope global.
5616
dc7eb48e
PA
56172011-06-13 Pedro Alves <pedro@codesourcery.com>
5618
5619 * top.h (line): Rename to ...
5620 (saved_command_line): ... this.
5621 (linesize): Rename to ...
5622 (saved_command_line_size): ... this.
5623 * top.c (line): Rename to ...
5624 (saved_command_line): ... this.
5625 (linesize): Rename to ...
5626 (saved_command_line_size): ... this.
5627 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5628 * event-top.c (command_line_handler): Adjust.
5629 * main.c (captured_main): Adjust.
5630
0d6c2135
MK
56312011-06-12 Mark Kettenis <kettenis@gnu.org>
5632
5633 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5634 get_frame_func instead of get_frame_pc to determine the code
5635 address used to construct the frame ID.
5636 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5637 (i386_epilogue_frame_this_id): Likewise.
5638 (i386_epilogue_frame_prev_register): New function.
5639 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5640 (i386_stack_tramp_frame_sniffer): Fix coding style.
5641 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5642 (i386_gdbarch_init): Fix comments.
5643
8bbdd3f4
MK
56442011-06-12 Mark Kettenis <kettenis@gnu.org>
5645
5646 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5647 instruction when walking back through the instruction stream.
5648
533a737e
JK
56492011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5650
5651 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5652 fullname parameters order.
5653
44b13c5a
JK
56542011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 Code cleanup.
5657 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5658 for fun.
5659 * psymtab.c (map_symbol_filenames_psymtab)
5660 (map_partial_symbol_filenames): Likewise.
5661 * psymtab.h: Include symfile.h.
5662 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5663 * symfile.h (symbol_filename_ftype): New.
5664 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5665 map_symbol_filenames, clarify more the naming in comment.
5666
0b5574da
DE
56672011-06-07 Doug Evans <dje@google.com>
5668
5669 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5670 Look for ../../gdb, for fullname.exp.
0b5574da 5671
5be4dfca
JK
56722011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5673 Pedro Alves <pedro@codesourcery.com>
5674
5675 * cli/cli-cmds.c (shell_escape): Use waitpid.
5676 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5677
316a8b21
TG
56782011-06-07 Tristan Gingold <gingold@adacore.com>
5679
5680 * xcoffread.c (dwarf2_xcoff_names): New variable.
5681 (aix_process_linenos): Add a guard.
5682 (xcoff_symfile_finish): Free dwarf2.
5683 (xcoff_initial_scan): Add dwarf2 support.
5684
3dd5b83d
PA
56852011-06-06 Pedro Alves <pedro@codesourcery.com>
5686
5687 * infcall.c (run_inferior_call): Don't mask async. Instead force
5688 a synchronous wait, if the target can async.
5689
5690 * target.h (struct target_ops): Delete to_async_mask.
5691 (target_async_mask): Delete.
5692 * target.c (update_current_target): Delete references to to_async_mask.
5693 * linux-nat.c (linux_nat_async_mask_value): Delete.
5694 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5695 to linux_nat_async_mask_value.
5696 (linux_nat_async_mask): Delete.
5697 (linux_nat_async, linux_nat_close): Remove references to
5698 linux_nat_async_mask_value.
5699 * record.c (record_async_mask_value): Delete.
5700 (record_async): Remove references to record_async_mask_value.
5701 (record_async_mask): Delete.
5702 (record_can_async_p, record_is_async_p): Remove references to
5703 record_async_mask_value.
5704 (init_record_ops, init_record_core_ops): Remove references to
5705 record_async_mask.
5706 * remote.c (remote_async_mask_value): Delete.
5707 (init_remote_ops): Remove reference to remote_async_mask.
5708 (remote_can_async_p, remote_is_async_p): Remove references to
5709 remote_async_mask_value.
5710 (remote_async): Remove references to remote_async_mask_value.
5711 (remote_async_mask): Delete.
5712
5713 * infrun.c (fetch_inferior_event): Don't claim registers changed
5714 if the current thread is already not executing.
5715
64b9b334
JB
57162011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5717
5718 From Stephen Kitt <steve@sk2.org>
5719 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5720 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5721
325663dc
JB
57222011-06-03 Joel Brobecker <brobecker@adacore.com>
5723
5724 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5725 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5726
8cf64490
TT
57272011-06-03 Tom Tromey <tromey@redhat.com>
5728
5729 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5730 code fields.
5731 * python/py-exitedevent.c (create_exited_event_object): Change
5732 type of 'exit_code'. Optionally add exit_code attribute.
5733 (emit_exited_event): Change type of 'exit_code'.
5734 * python/py-event.h (emit_exited_event): Update.
5735 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5736 * infrun.c (handle_inferior_event): Set exit code fields on
5737 inferior.
5738 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5739 fields.
5740 * inferior.c (exit_inferior_1): Initialize new fields.
5741
8ddd9a20
TT
57422011-06-03 Tom Tromey <tromey@redhat.com>
5743
5744 * dwarf2expr.c (get_signed_type): New function.
5745 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5746
8dfd1e6d
KS
57472011-06-02 Keith Seitz <keiths@redhat.com>
5748
5749 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5750
65fdb766
PA
57512011-06-02 Pedro Alves <pedro@codesourcery.com>
5752
5753 * top.h (simplified_command_loop): Delete declaration.
5754
f4b8c29b
MF
57552011-06-01 Mike Frysinger <vapier@gentoo.org>
5756
5757 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5758 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5759
1706c199
YQ
57602011-06-01 Yao Qi <yao@codesourcery.com>
5761
5762 * objfiles.h (obj_section_addr): Update reference to objfile from
5763 `abfd' to `obfd'.
5764 (obj_section_endaddr): Likewise.
5765
d19cd713 57662011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5767
5768 * MAINTAINERS: Update my email address and affiliation. Also
5769 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5770
e8eb7bc5
KS
57712010-05-31 Keith Seitz <keiths@redhat.com>
5772
5773 PR c++/12750
5774 * linespec.c (get_search_block): New function.
5775 (find_methods): Add FILE_SYMTATB parameter and use it and
5776 get_search_block to pass an appropriate block to
5777 lookup_symbol_in_namespace.
5778 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5779 Check if *ARGPTR starts with a filename first.
5780 If it does, call locate_first_half again to locate the next
5781 "first half" of the linespec.
5782 Pass FILE_SYMTATB to decode_objc and decode_compound.
5783 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5784 (locate_first_half): Stop on the first colon seen.
5785 (decode_compound): Add FILE_SYMTAB parameter.
5786 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5787 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5788 get_search_block with lookup_symbol.
5789 (find_method): Add FILE_SYMTAB parameter and pass it to
5790 find_methods.
5791 (decode_objc): Use get_search_block.
5792
2b1dbab0
KS
57932010-05-31 Keith Seitz <keiths@redhat.com>
5794
5795 PR symtab/12704
5796 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5797 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5798 and CP_ANONYMOUS_NAMESPACE_LEN.
5799 (cp_is_anonymous): Likewise.
5800 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5801 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5802 * dwarf2read.c (namespace_name): Likewise.
5803 (fixup_partial_die): Likewise.
5804 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5805 seen in the input, keep it.
5806
6d549500
PA
58072011-05-30 Pedro Alves <pedro@codesourcery.com>
5808
5809 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5810 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5811 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5812 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5813 * remote.c (_initialize_remote): Register
5814 async_remote_interrupt_twice directly as
5815 sigint_remote_twice_token event.
5816
395bff70
PA
58172011-05-30 Pedro Alves <pedro@codesourcery.com>
5818
5819 * target.h (enum inferior_event_type): Delete INF_ERROR.
5820 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5821
97224164
PA
58222011-05-30 Pedro Alves <pedro@codesourcery.com>
5823
5824 * interps.c (interp_set): Don't cancel continuations.
5825
07e78767
JK
58262011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5827
5828 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5829
fa4cd53f
PA
58302011-05-30 Pedro Alves <pedro@codesourcery.com>
5831
5832 * continuations.h (continuation_ftype): Add `err' parameter.
5833 Document parameters.
5834 (do_all_continuations, do_all_continuations_thread)
5835 (do_all_intermediate_continuations)
5836 (do_all_intermediate_continuations_thread)
5837 (do_all_inferior_continuations): Add `err' parameter.
5838 * continuations.c (do_my_continuations_1, do_my_continuations)
5839 (do_all_inferior_continuations, do_all_continuations_ptid)
5840 (do_all_continuations_thread_callback)
5841 (do_all_continuations_thread, do_all_continuations)
5842 (do_all_intermediate_continuations_thread_callback)
5843 (do_all_intermediate_continuations_thread)
5844 (do_all_intermediate_continuations): Add `err' parameter, and pass
5845 it down all the way to the continuations proper.
5846 * inf-loop.c (inferior_event_handler): If fetching an inferior
5847 event throws an error, don't pop the target, and still call the
5848 continuations, but with `err' set. Adjust all other continuation
5849 calls.
5850 * breakpoint.c (until_break_command_continuation): Add `err'
5851 parameter.
5852 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5853 issue another step if `err' is set.
5854 (struct until_next_continuation_args): New.
5855 (until_next_continuation): Add `err' parameter. Adjust.
5856 (until_next_command): Adjust.
5857 (struct finish_command_continuation_args): Add `thread' field.
5858 (finish_command_continuation): Add `err' parameter. Handle it.
5859 (finish_forward): Adjust.
5860 (attach_command_continuation): Add `err' parameter. Handle it.
5861 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5862 cancel the continuations.
5863 * interps.c (interp_set): Adjust to cancel the continuations.
5864 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5865 continuations rather than discarding.
5866 (free_thread): Don't clear thread inferior resources here.
5867 (delete_thread_1): Do it here instead. And do it before removing
5868 the thread from the threads list. Tag the thread as exited before
5869 clearing thread inferior resources.
5870
c2949be0
JB
58712011-05-30 Joel Brobecker <brobecker@adacore.com>
5872
5873 * infcall.c (call_function_by_hand): Rephrase error message.
5874
619cebe8
PA
58752011-05-27 Pedro Alves <pedro@codesourcery.com>
5876
5877 * defs.h (struct thread_info, struct inferior): Delete forward
5878 declarations.
5879 * breakpoint.h (struct thread_info): New forward declaration.
5880 * observer.sh (struct inferior): New forward declaration.
5881 * python/python-internal.h (struct inferior): New forward
5882 declaration.
5883
be34f849
PA
58842011-05-27 Pedro Alves <pedro@codesourcery.com>
5885
5886 * defs.h (struct continuation, continuation_ftype)
5887 (continuation_free_arg_ftype, add_continuation)
5888 (do_all_continuations, do_all_continuations_thread)
5889 (discard_all_continuations, discard_all_continuations_thread)
5890 (add_intermediate_continuation, do_all_intermediate_continuations)
5891 (do_all_intermediate_continuations_thread)
5892 (discard_all_intermediate_continuations)
5893 (discard_all_intermediate_continuations_thread)
5894 (add_inferior_continuation, do_all_inferior_continuations)
5895 (discard_all_inferior_continuations): Move to ...
5896 * continuations.h: ... this new file.
5897 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5898 infcmd.c, inferior.c, infrun.c, interps.c: Include
5899 continuations.h.
5900
432b4d03
JK
59012011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5902 Doug Evans <dje@google.com>
5903
5904 Fix PR 10970, PR 12702.
5905 * linux-nat.c (linux_lwp_is_zombie): New function.
5906 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5907 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5908
b0f260d6
PA
59092011-05-27 Pedro Alves <pedro@codesourcery.com>
5910
5911 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5912 typedefs.
5913 (add_continuation, add_intermediate_continuation)
5914 (add_inferior_continuation): Use them.
5915 * continuations.c (struct continuation): Use them.
5916 (make_continuation_ftype): Delete.
5917 (make_continuation, add_inferior_continuation, add_continuation)
5918 (add_intermediate_continuation): Use continuation_ftype and
5919 continuation_free_arg_ftype. Rename parameters to shorter names.
5920
af1e9a32
PA
59212011-05-27 Pedro Alves <pedro@codesourcery.com>
5922
5923 * continuations.c (make_continuation): Make it return void.
5924 (do_my_continuations): Rename to ...
5925 (do_my_continuations_1): ... this. Remove old_chain parameter and
5926 adjust.
5927 (do_my_continuations): New.
5928 (discard_my_continuations): Rename to ...
5929 (discard_my_continuations_1): ... this. Remove old_chain
5930 parameter and adjust.
5931 (discard_my_continuations): New.
5932 (add_inferior_continuation): Simplify.
5933 (do_all_inferior_continuations): Reimplement on top
5934 do_my_continuations.
5935 (discard_all_inferior_continuations): Simplify.
5936 (add_continuation): Simplify.
5937 (do_all_continuations_ptid): Simplify.
5938 (discard_all_continuations_thread_callback): Simplify.
5939 (add_intermediate_continuation): Simplify.
5940 (discard_all_intermediate_continuations_thread_callback):
5941 Simplify.
5942
50c0c017
PA
59432011-05-27 Pedro Alves <pedro@codesourcery.com>
5944
5945 * utils.c (struct continuation, add_continuation)
5946 (add_inferior_continuation)
5947 (do_all_inferior_continuations, discard_all_inferior_continuations)
5948 (restore_thread_cleanup, do_all_continuations_ptid)
5949 (do_all_continuations_thread_callback)
5950 (do_all_continuations_thread, do_all_continuations)
5951 (discard_all_continuations_thread_callback)
5952 (discard_all_continuations_thread, discard_all_continuations)
5953 (add_intermediate_continuation)
5954 (do_all_intermediate_continuations_thread_callback)
5955 (do_all_intermediate_continuations_thread)
5956 (do_all_intermediate_continuations)
5957 (discard_all_intermediate_continuations_thread_callback)
5958 (discard_all_intermediate_continuations_thread)
5959 (discard_all_intermediate_continuations): Move to ...
5960 * continuations.c: ... this new file, and adjust to no longer
5961 implement continuations on top of cleanups.
5962 * Makefile.in (SFILES): Add continuations.c.
5963 (COMMON_OBS): Add continuations.o.
5964
d8b34453
PA
59652011-05-26 Pedro Alves <pedro@codesourcery.com>
5966
5967 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5968 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5969 Internal error on invalid values.
5970 * reverse.c: Don't handle EXEC_ERROR.
5971 * mi/mi-main.c: Don't handle EXEC_ERROR.
5972
32231432
PA
59732011-05-26 Pedro Alves <pedro@codesourcery.com>
5974
5975 * record.c: Include event-loop.h, inf-loop.h.
5976 (record_beneath_to_async): New global.
5977 (tmp_to_async): New global.
5978 (record_async_inferior_event_token): New global.
5979 (record_open_1): Don't error out if async is enabled.
5980 (record_open): Handle to_async. Create an async event source in
5981 the event loop.
5982 (record_close): Delete the async event source.
5983 (record_resumed): New global.
5984 (record_execution_dir): New global.
5985 (record_resume, record_core_resume): Set them. Register the
5986 target on the event loop.
5987 (record_wait): Rename to ...
5988 (record_wait_1): ... this. Add more debug output. Handle
5989 TARGET_WNOHANG, and the target beneath returning
5990 TARGET_WAITKIND_IGNORE.
5991 (record_wait): Reimplement on top of record_wait_1.
5992 (record_async_mask_value): New global.
5993 (record_async, record_async_mask, record_can_async_p)
5994 (record_is_async_p, record_execution_direction): New functions.
5995 (init_record_ops, init_record_core_ops): Install new methods.
5996 * infrun.c (fetch_inferior_event): Temporarily switch the global
5997 execution direction to the direction the target was going.
5998 (execution_direction): Change type to int.
5999 * target.c (default_execution_direction): New function.
6000 (update_current_target): Inherit and de_fault
6001 to_execution_direction.
6002 * target.h (struct target_ops) <to_execution_direction>: New
6003 field.
6004 (target_execution_direction): New macro.
6005 * inferior.h (execution_direction): Change type to int.
6006
949dc678
PA
60072011-05-26 Pedro Alves <pedro@codesourcery.com>
6008
6009 * infcall.c (call_function_by_hand): Don't allow calling functions
6010 in reverse execution mode.
6011
c13bd2b5
PA
60122011-05-26 Pedro Alves <pedro@codesourcery.com>
6013
6014 * infcmd.c (finish_command): Allow async finish in reverse.
6015
6938fd34
YQ
60162011-05-26 Yao Qi <yao@codesourcery.com>
6017
6018 * gdb_thread_db.h: Delete. Move to ...
6019 * common/gdb_thread_db.h: ... here.
6020
9da8c2a0
PA
60212011-05-26 Pedro Alves <pedro@codesourcery.com>
6022
6023 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6024 function's entry point instead of a manually managed momentary
6025 breakpoint, and only ever issue one proceed call.
6026 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6027 doing a reverse-finish, switch to stepi mode, to do another step.
6028 (insert_step_resume_breakpoint_at_sal): Make public.
6029 (normal_stop): No need to save function value return registers if
6030 going reverse.
6031 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6032
2c03e5be
PA
60332011-05-26 Pedro Alves <pedro@codesourcery.com>
6034
6035 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6036 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6037 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6038 at the end.
6039 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6040 step-resume breakpoints.
6041 (print_it_typical): Handle bp_hp_step_resume.
6042 (bpstat_what): Ditto.
6043 (bptype_string): Ditto.
6044 (print_one_breakpoint_location): Ditto.
6045 (allocate_bp_location): Ditto.
6046 (mention): Ditto.
6047 (breakpoint_re_set_one): Ditto.
6048 * infrun.c (handle_inferior_event): Adjust. Split
6049 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6050 BPSTAT_WHAT_HP_STEP_RESUME.
6051 (insert_step_resume_breakpoint_at_sal): Rename to ...
6052 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6053 parameter. Handle it.
6054 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6055 insert_step_resume_breakpoint_at_sal_1.
6056 (insert_step_resume_breakpoint_at_frame): Rename to ...
6057 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6058 set a high-priority step-resume breakpoint.
6059 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6060 (insert_step_resume_breakpoint_at_caller): Ditto.
6061
51be5b68
PA
60622011-05-26 Pedro Alves <pedro@codesourcery.com>
6063
6064 * breakpoint.c (iterate_over_related_breakpoints): New.
6065 (do_map_delete_breakpoint): New.
6066 (delete_command): Pass do_map_delete_breakpoint to
6067 map_breakpoint_numbers.
6068 (do_disable_breakpoint): New.
6069 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6070 breakpoints.
6071 (do_enable_breakpoint): Rename to ...
6072 (enable_breakpoint_disp): ... this.
6073 (enable_breakpoint): Adjust.
6074 (do_enable_breakpoint): New.
6075 (enable_once_breakpoint): Delete.
6076 (do_map_enable_breakpoint): New.
6077 (do_map_enable_once_breakpoint): New.
6078 (enable_once_command, enable_delete_command)
6079 (delete_trace_command): Iterate over the breakpoint's related
6080 breakpoints.
6081
4a1be8d2
PA
60822011-05-26 Pedro Alves <pedro@codesourcery.com>
6083
6084 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6085 for ALPHA_ZERO_REGNUM.
6086 (alpha_supply_int_regs): Explicitly supply zero as the value for
6087 ALPHA_ZERO_REGNUM in the register cache.
6088 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6089
59d70315
YQ
60902011-05-26 Yao Qi <yao@codesourcery.com>
6091
6092 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6093
251d32d9
TG
60942011-05-26 Tristan Gingold <gingold@adacore.com>
6095
6096 * symfile.h (struct dwarf2_section_names): New type.
6097 (struct dwarf2_debug_sections): New type.
6098 (dwarf2_has_info): Add parameter.
6099 * dwarf2read.c (dwarf2_elf_names): New variable.
6100 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6101 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6102 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6103 (dwarf2_has_info): Add names parameter. Pass names
6104 to dwarf2_locate_sections.
6105 (section_is_p): Rewrite using the names parameter.
6106 (dwarf2_locate_sections): Use section names from the names parameter.
6107 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6108 * elfread.c (read_psyms): Ditto.
6109 * machoread.c (macho_symfile_read): Ditto.
6110
652c71b4
AS
61112011-05-25 Andreas Schwab <schwab@redhat.com>
6112
6113 PR gdb/8677
6114 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6115
f17170e5
KS
61162011-05-24 Keith Seitz <keiths@redhat.com>
6117
6118 PR breakpoint/12803
6119 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6120 (decode_compound): Unconditionally call keep_name_info.
6121
cdac0397
PA
61222011-05-24 Pedro Alves <pedro@codesourcery.com>
6123
6124 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6125 scope, clear its command list.
6126 (map_breakpoint_numbers): Don't walk the related breakpoints list
6127 of each breakpoint.
6128
91d4fe3f
TT
61292011-05-24 Tom Tromey <tromey@redhat.com>
6130
6131 * MAINTAINERS: Move Jim Blandy to past maintainers.
6132
3017a003
TG
61332011-05-24 Tristan Gingold <gingold@adacore.com>
6134
6135 * symfile.h (enum dwarf2_section_enum): New type.
6136 (dwarf2_get_section_info): New prototype.
6137 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6138 section_name by sect. Use a switch to select the info.
6139 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6140 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6141
c91c8c16
PA
61422011-05-24 Pedro Alves <pedro@codesourcery.com>
6143
6144 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6145 shared library event breakpoint if there's no execution.
6146
77bc418a
TJB
61472011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6148
6149 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6150 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6151
c50491a7
TT
61522011-05-23 Tom Tromey <tromey@redhat.com>
6153
6154 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6155 NULL.
6156
6d64e6d4
DE
61572011-05-23 Doug Evans <dje@google.com>
6158
6159 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6160 entry for RuntimeError to doc string.
6161
2067c8d4
JG
61622011-05-23 Jerome Guitton <guitton@adacore.com>
6163
6164 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6165 sequence for probing loops.
6166
b136cd05
PA
61672011-05-23 Pedro Alves <pedro@codesourcery.com>
6168
6169 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6170 comment.
6171
22e74ef9
MK
61722011-05-21 Mark Kettenis <kettenis@gnu.org>
6173
6174 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6175 zero as the value for %g0 in the register cache.
6176 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6177 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6178
842951eb
PA
61792011-05-20 Pedro Alves <pedro@codesourcery.com>
6180
6181 * infrun.c (proceed): Set previous_inferior_ptid here.
6182 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6183 inferior_ptid, not null_ptid.
6184 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6185 (fetch_inferior_event): Nor here.
6186
46cf51e6
PA
61872011-05-20 Pedro Alves <pedro@codesourcery.com>
6188
6189 * inf-loop.c (inferior_event_handler): Only output a message if
6190 verbose.
6191
29ef4c46
LM
61922011-05-20 Luis Machado <lgustavo@codesourcery.com>
6193
6194 * MAINTAINERS: Update my e-mail address.
6195
f148b27e
PA
61962011-05-20 Pedro Alves <pedro@codesourcery.com>
6197
6198 * infrun.c (proceed): Switch the inferior event loop to
6199 INF_EXEC_COMPLETE if the target refused to resume from a
6200 vfork/fork.
6201
09cee04b
PA
62022011-05-20 Pedro Alves <pedro@codesourcery.com>
6203
6204 * infcmd.c: Include "inf-loop.h".
6205 (step_once): When stepping into an inline subroutine, pretend the
6206 target has run. If the target can async, switch the inferior
6207 event loop to INF_EXEC_COMPLETE.
6208 * inferior.h (user_visible_resume_ptid): Declare.
6209 * infrun.c (user_visible_resume_ptid): New function, factored out
6210 from `resume'.
6211 (resume): Use it.
6212 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6213 that the current thread is running. Merge async and sync
6214 branches.
6215
751b8ce1
PA
62162011-05-20 Pedro Alves <pedro@codesourcery.com>
6217
6218 * infcmd.c (step_1): Simplify synchronous case.
6219
e93a69ed
PA
62202011-05-20 Pedro Alves <pedro@codesourcery.com>
6221
6222 * tracepoint.c: Include exceptions.h.
6223 (TFILE_PID): Move higher in file.
6224 (tfile_open): Delay pushing the tfile target until we're assured
6225 the tfile header is present in the file. Wrap reading the initial
6226 newline-terminated lines in TRY_CATCH. Pop the target if the
6227 initial setup failed. Add the tfile's thread immediately
6228 aftwards, before any non-essential setup. Don't skip
6229 post_create_inferior if there are no traceframes present in the
6230 file.
6231 (tfile_close): Remove redundant check for null before xfree call.
6232 (tfile_thread_alive): New function.
6233 (init_tfile_ops): Register it as to_thread_alive callback.
6234
6823e2b1
PA
62352011-05-20 Pedro Alves <pedro@codesourcery.com>
6236
6237 * tracepoint.c (tfile_open): Delete #if 0'd code.
6238
b3c8eb43
JK
62392011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6240
6241 Fix -readnow for -gdwarf-4 unused type units.
6242 * dwarf2read.c (struct signatured_type): Remove the field offset.
6243 (create_signatured_type_table_from_index): Remove its initialization.
6244 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6245 instead. Add a complaint call.
6246 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6247 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6248 (lookup_signatured_type_at_offset, read_signatured_type)
6249 (write_one_signatured_type): Update the field for per_cu.
6250
310afc76
TT
62512011-05-19 Tom Tromey <tromey@redhat.com>
6252
6253 * python/py-inferior.c (python_inferior_exit): Use
6254 target_gdbarch.
6255 (python_on_resume): Likewise.
6256
cf6c5ffb
TT
62572011-05-19 Matt Rice <ratmice@gmail.com>
6258
6259 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6260
fb80a3c5
HZ
62612011-05-19 Hui Zhu <teawater@gmail.com>
6262
6263 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6264
3672b1be
HZ
62652011-05-19 Hui Zhu <teawater@gmail.com>
6266
6267 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6268
ff355380
TT
62692011-05-18 Tom Tromey <tromey@redhat.com>
6270
6271 * dwarf2read.c (dwarf2_add_field): Constify.
6272 * value.c (value_static_field): Constify.
6273 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6274 Now const.
6275 * ax-gdb.c (gen_static_field): Constify
6276
ed731959
JK
62772011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6278
6279 * linux-nat.c (kill_callback): Use SIGKILL first.
6280
967cff16
JB
62812011-05-18 Joel Brobecker <brobecker@adacore.com>
6282
6283 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6284
1d06ead6
TT
62852011-05-18 Tom Tromey <tromey@redhat.com>
6286
6287 * value.c (value_fn_field): Constify.
6288 * symtab.c (gdb_mangle_name): Constify.
6289 * stabsread.c (update_method_name_from_physname): Make 'physname'
6290 argument const.
6291 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6292 const. Use explicit fputc_filtered loop.
6293 (pascal_type_print_base): Constify.
6294 * p-lang.h (pascal_type_print_method_args): Update.
6295 * linespec.c (add_matching_methods): Constify.
6296 (add_constructors): Likewise.
6297 * jv-typeprint.c (java_type_print_base): Constify.
6298 * gdbtypes.h (struct cplus_struct_type)
6299 <fn_fieldlist.fn_field.physname>: Now const.
6300 * dwarf2read.c (compute_delayed_physnames): Constify.
6301 (dwarf2_add_member_fn): Likewise.
6302 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6303
0d9a9a5f
PA
63042011-05-18 Pedro Alves <pedro@codesourcery.com>
6305
6306 * infrun.c (resume): Mention which is the current thread, and its
6307 current PC in debug output.
6308 (prepare_to_proceed): Mention the thread switching in debug
6309 output.
6310
05386e9e
TT
63112011-05-18 Tom Tromey <tromey@redhat.com>
6312
6313 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6314 path check. Use xmalloc and cleanups.
6315 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6316
ee86786c
TT
63172011-05-17 Tom Tromey <tromey@redhat.com>
6318
6319 * cp-valprint.c (cp_print_value_fields): Catch errors from
6320 value_static_field.
6321
9ff3b74f
TT
63222011-05-17 Tom Tromey <tromey@redhat.com>
6323
6324 * dwarf2read.c (dwarf2_get_die_type): Call
6325 get_die_type_at_offset.
6326 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6327 get_base_type function.
6328
cd3da28e
PA
63292011-05-17 Tomas Martinec <fyzmat@gmail.com>
6330
6331 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6332 trap_expected.
6333
fd20d931
DE
63342011-05-16 Doug Evans <dje@google.com>
6335
6336 * python/py-auto-load.c (source_section_scripts): Mention objfile
6337 name in warning.
6338
75fc9810
DE
63392011-05-15 Doug Evans <dje@google.com>
6340
290351b8
DE
6341 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6342 (try_thread_db_load_from_pdir): Call it. If unable to find
6343 libthread_db in directory of libpthread, see if we're looking at
6344 the separate-debug-info copy.
6345
75fc9810
DE
6346 * python/py-autoload.c (print_script): Print "Missing" instead of
6347 "No" for missing scripts.
6348 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6349
9f7bc587
DE
63502011-05-13 Doug Evans <dje@google.com>
6351
6352 * ui-file.c (stdio_file_write_async_safe): Add comment.
6353
093cee7d
HZ
63542011-05-14 Hui Zhu <teawater@gmail.com>
6355
6356 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6357
dbaefcf7
DE
63582011-05-13 Doug Evans <dje@google.com>
6359
98a5dd13
DE
6360 Support $pdir and $sdir in libthread-db-search-path.
6361 * NEWS: Mention $sdir,$pdir.
6362 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6363 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6364 (try_thread_db_load_from_sdir): New function.
6365 (try_thread_db_load_from_dir): New function.
6366 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6367 system directories if search of libthread-db-search-path fails,
6368 that is now done via $sdir.
6369 (has_libpthread): New function.
6370 (thread_db_load): Remove search for libthread_db in directory of
6371 libpthread, that is now done via $pdir.
6372
dbaefcf7
DE
6373 * NEWS: Mention "info auto-load-scripts".
6374 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6375 script_not_found_warning_printed.
6376 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6377 all callers updated. Initialize script_not_found_warning_printed.
6378 (get_auto_load_pspace_data_for_loading): New function.
6379 (maybe_add_script): New function.
6380 (source_section_scripts): Simplify. Only print one warning regardless
6381 of the number of auto-load scripts not found.
6382 (clear_section_scripts): Clear script_not_found_warning_printed.
6383 (auto_load_objfile_script): Record script in hash table.
6384 (count_matching_scripts): New function.
6385 (maybe_print_script): Renamed from maybe_print_section_script, all
6386 callers updated. Rewrite to use ui_out_*.
6387 (info_auto_load_scripts): Renamed from
6388 maintenance_print_section_scripts, all callers updated.
6389 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6390 renamed as "info auto-load-scripts".
6391
9930639c
TT
63922011-05-13 Tom Tromey <tromey@redhat.com>
6393
6394 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6395 (read_sleb128): Likewise.
6396
06826322
TT
63972011-05-13 Tom Tromey <tromey@redhat.com>
6398
6399 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6400 offset display.
6401
01124a23
DE
64022011-05-13 Doug Evans <dje@google.com>
6403
6404 * linux-nat.c (debug_linux_nat_async): Delete.
6405 Replace all references to use debug_linux_nat instead.
6406 (show_debug_linux_nat_async): Delete.
6407 (sigchld_handler): Call ui_file_write_async_safe instead of
6408 fprintf_unfiltered.
6409 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6410 * ui-file.c (struct ui_file): New member to_write_async_safe.
6411 (null_file_write_async_safe): New function.
6412 (ui_file_write_async_safe): New function.
6413 (set_ui_file_write_async_safe): New function.
6414 (ui_file_new): Initialize to_write_async_safe.
6415 (stdio_file_write_async_safe): New function.
6416 (struct stdio_file): New member fd.
6417 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6418 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6419 fileno.
01124a23
DE
6420 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6421 (set_ui_file_write_async_safe): Declare.
6422 (ui_file_write_async_safe): Declare.
6423
72fc29ff
TT
64242011-05-13 Tom Tromey <tromey@redhat.com>
6425
6426 * utils.c (do_value_free): New function.
6427 (make_cleanup_value_free): Likewise.
6428 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6429 freeing correctly.
6430 (dwarf2_loc_desc_needs_frame): Call
6431 make_cleanup_value_free_to_mark.
6432 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6433 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6434 value_free_to_mark.
6435 (new_dwarf_expr_context): Don't call value_mark.
6436 * dwarf2-frame.c (execute_stack_op): Call
6437 make_cleanup_value_free_to_mark.
6438 * defs.h (make_cleanup_value_free): Declare.
6439
028d0ed5
TJB
64402011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6441
6442 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6443 prepare_execute_command.
6444 * top.c (prepare_execute_command): Return cleanup.
6445 (execute_command): Use cleanup from prepare_execute_command.
6446 * top.h (prepare_execute_command): Change prototype to return
6447 cleanup.
6448 * defs.h (struct value): Add opaque declaration.
6449 (make_cleanup_value_free_to_mark): Add prototype.
6450 * utils.c (do_value_free_to_mark): New function.
6451 (make_cleanup_value_free_to_mark): Likewise.
6452
b087e0ed
TT
64532011-05-12 Tom Tromey <tromey@redhat.com>
6454
6455 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6456 cast left-hand-side to unsigned.
6457
8a9b8146
TT
64582011-05-12 Tom Tromey <tromey@redhat.com>
6459
6460 PR gdb/12617:
6461 * value.h (value_from_contents): Declare.
6462 * value.c (value_from_contents): New function.
6463 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6464 (dwarf2_get_die_type): New function.
6465 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6466 (allocate_piece_closure): Acquire reference to values.
6467 (read_pieced_value): Update for value-based expressions.
6468 (write_pieced_value): Likewise.
6469 (free_pieced_value_closure): Call value_free as needed.
6470 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6471 Update for value-based expressions.
6472 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6473 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6474 <get_base_type>: New field.
6475 (struct dwarf_expr_piece) <v.value>: Change type.
6476 <v.regno>: New field.
6477 (struct dwarf_expr_context) <mark>: New field.
6478 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6479 (dwarf_expr_pop, dwarf_expr_push): Remove.
6480 (dwarf_expr_push_address): Declare.
6481 * dwarf2expr.c (dwarf_arch_cookie): New global.
6482 (struct dwarf_gdbarch_types): New.
6483 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6484 functions.
6485 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6486 static.
6487 (dwarf_expr_push_address): New function.
6488 (dwarf_expr_pop): Now static.
6489 (dwarf_expr_fetch): Change return type.
6490 (dwarf_require_integral): New function.
6491 (dwarf_expr_fetch): Simplify.
6492 (add_piece): Update.
6493 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6494 functions.
6495 (execute_stack_op) <sign_ext>: Remove.
6496 Use values for DWARF stack.
6497 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6498 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6499 New cases.
6500 (_initialize_dwarf2expr): New function.
6501 (add_piece): Update.
6502 (new_dwarf_expr_context): Set new field.
6503 (free_dwarf_expr_context): Call value_free_to_mark.
6504 * dwarf2-frame.c (no_base_type): New function.
6505 (execute_stack_op): Set get_base_type field. Update.
6506
e8d28ef4
TT
65072011-05-12 Tom Tromey <tromey@redhat.com>
6508
6509 * dwarf2read.c (read_common_block): Fix formatting.
6510
d248b706
KY
65112011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6512
6513 * breakpoint.c (disable_breakpoint): Disable all locations
6514 associated with a tracepoint on target if a trace experiment is
6515 running.
6516 (disable_command): Disable a specific tracepoint location on target if
6517 a trace experiment is running.
6518 (do_enable_breakpoint): Enable all locations associated with a
6519 tracepoint on target if a trace experiment is running.
6520 (enable_command) Enable a specific tracepoint location on target if a
6521 trace experiment is running.
6522 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6523 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6524 to_disable_tracepoint.
6525 * target.h: Add declaration of struct bp_location.
6526 (struct target_ops): Add new functions
6527 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6528 to_disable_tracepoint to target operations.
6529 (target_supports_enable_disable_tracepoint): New macro.
6530 (target_enable_tracepoint): New macro.
6531 (target_disable_tracepoint): New macro.
6532 * remote.c (struct remote_state): Add new field.
6533 (remote_enable_disable_tracepoint_feature): New.
6534 (remote_protocol_features): Add new entry.
6535 (remote_supports_enable_disable_tracepoint): New.
6536 (remote_enable_tracepoint): New.
6537 (remote_disable_tracepoint): New.
6538 (init_remote_ops): Add remote_enable_tracepoint,
6539 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6540 to remote operations.
6541 * tracepoint.c (start_tracing): Allow tracing to start without any
6542 tracepoints enabled with just a warning if they can be re-enabled
6543 later.
6544 * NEWS: Add news item for the new behaviour of the enable and disable
6545 GDB commands when applied to tracepoints.
6546 Add news items for the new remote packets QTEnable and QTDisable.
6547
cc88a640
JK
65482011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 * config.in: Regenerate.
6551 * configure: Regenerate.
6552 * configure.ac <--with-system-readline> (for readline_echoing_p):
6553 Remove the test.
6554 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6555 (tui_old_rl_echoing_p): ... here.
6556 (tui_setup_io): Rename extern declaration readline_echoing_p to
6557 _rl_echoing_p. Adjust assignments for the both renames.
6558
1f84b619
TJB
65592011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6560
6561 * symtab.c (lookup_symtab): Run cleanup before returning.
6562
74ac6d43
TT
65632011-05-11 Tom Tromey <tromey@redhat.com>
6564
6565 * dwarf2read.c (handle_data_member_location): New function.
6566 (dwarf2_add_field): Use it.
6567 (read_common_block): Likewise.
6568
5488dafb
JK
65692011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6570
6571 Make addrs->SECTINDEX always defined.
6572 * symfile.c (relative_addr_info_to_section_offsets): Check for
6573 SECTINDEX -1, not for zero ADDR.
6574 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6575 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6576 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6577 on its validity.
6578
84e578fb
DE
65792011-05-10 Doug Evans <dje@google.com>
6580
2471d008
DE
6581 * linux-thread-db.c: Whitespace cleanup.
6582 (try_thread_db_load_1): Fix comment.
6583
84e578fb
DE
6584 * linux-thread-db.c (set_libthread_db_search_path): New function.
6585 (_initialize_thread_db): Add setter for libthread-db-search-path.
6586
673c2bbe
DE
65872011-05-09 Doug Evans <dje@google.com>
6588
478aac75
DE
6589 * NEWS: Mention --with-iconv-bin.
6590 * configure.ac: New option --with-iconv-bin.
6591 * configure: Regenerate.
6592 * config.in: Regenerate.
6593 * defs.h (relocate_gdb_directory): Declare.
6594 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6595 removed progname parameter, and exported. All callers updated.
6596 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6597
673c2bbe
DE
6598 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6599 adding missing call to restore_child_signals_mask.
6600
e4c8541f
PA
66012011-05-09 Pedro Alves <pedro@codesourcery.com>
6602
6603 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6604 parameter.
6605 * infrun.c (proceed, start_remote): Adjust.
6606 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6607 and adjust to not handle it.
6608 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6609 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6610 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6611 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6612 * windows-nat.c (do_initial_windows_stuff): Adjust.
6613 * infcmd.c (attach_command): Adjust.
6614 (notice_new_inferior): Adjust.
6615
a536c6d7
UW
66162011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6617
6618 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6619 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6620 * spu-tdep.c (op_selb): Use correct value.
6621
7845b013
UW
66222011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6623
6624 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6625 "parent" parameter to symbol_file_add_from_bfd call.
6626
9c06b0b4
TJB
66272011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6628 Thiago Jung Bauermann <bauerman@br.ibm.com>
6629
6630 Implement support for PowerPC BookE masked watchpoints.
6631 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6632 section.
6633 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6634 method. Initialize to NULL in all existing breakpoint_ops instances.
6635 (struct breakpoint) <hw_wp_mask>: New field.
6636 * breakpoint.c (is_masked_watchpoint): Add prototype.
6637 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6638 breakpoint's breakpoint_ops.works_in_software_mode if available.
6639 (watchpoints_triggered): Handle the case of a hardware masked
6640 watchpoint trigger.
6641 (watchpoint_check): Likewise.
6642 (works_in_software_mode_watchpoint): New function.
6643 (insert_masked_watchpoint, remove_masked_watchpoint)
6644 (resources_needed_masked_watchpoint)
6645 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6646 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6647 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6648 functions.
6649 (masked_watchpoint_breakpoint_ops): New structure.
6650 (watch_command_1): Check for the existence of the `mask' parameter.
6651 Set b->ops according to the type of hardware watchpoint being created.
6652 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6653 (ppc_linux_remove_mask_watchpoint)
6654 (ppc_linux_masked_watch_num_registers): New functions.
6655 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6656 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6657 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6658 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6659 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6660 (target_masked_watch_num_registers): New functions.
6661 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6662 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6663 methods.
6664 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6665 (target_masked_watch_num_registers): Add prototypes.
6666
8be455d7
JK
66672011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6668
6669 PR 12573
6670 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6671 (producer_is_gcc_ge_4_0): New function.
6672 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6673 symtab->language code.
6674 (var_decode_location): Set cu->has_loclist.
6675 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6676 skip. Intialize force_skip from locations_valid. Move the prologue
6677 skipping code into two passes.
6678 * symtab.h (struct symtab): Make the primary field a bitfield. New
6679 field locations_valid.
6680
d8228535
JK
66812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6682
6683 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6684 (classify_inner_name): Call cp_lookup_nested_type with
6685 yylval.tsym.type.
6686 * cp-namespace.c (cp_lookup_nested_type): New variable
6687 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6688 type_name_no_tag_or_error with saved_parent_type.
6689 * dwarf2read.c (load_partial_dies): Read in any children of
6690 DW_TAG_typedef with complaint in such case.
6691 * gdbtypes.c (type_name_no_tag_or_error): New function.
6692 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6693 * valops.c (destructor_name_p): New comment for parameter type. Remove
6694 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6695 * value.h (destructor_name_p): Remove type const.
6696
1976171a
JK
66972011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 * symtab.c (compare_symbol_name): New function.
6700 (completion_list_add_name, expand_partial_symbol_name): Call it,
6701 remove the variable ncmp.
6702 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6703 gdb_assert it.
6704
a9634178
TJB
67052011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6706
6707 Demote to sw watchpoint only in update_watchpoint.
6708 * breakpoint.c (update_watchpoint): Change between software and
6709 hardware watchpoint for all kinds of watchpoints, not just
6710 read/write ones. Determine b->exact value here instead of
6711 in watch_command_1. Error out if there are not enough resources
6712 for a read or access hardware watchpoint.
6713 (watch_command_1): Remove logic of checking whether there are
6714 enough resources available, since update_watchpoint will do that
6715 work now. Don't set b->exact here. Catch exceptions thrown by
6716 update_watchpoint and delete the watchpoint.
6717 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6718 Use target_exact_watchpoints instead.
6719 (delete_breakpoint): Notify observers only if deleted watchpoint
6720 has a breakpoint number assigned to it.
6721
4c67c798
JJ
67222011-05-05 Janis Johnson <janisjo@codesourcery.com>
6723
6724 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6725
a3fcb948
JG
67262011-05-05 Jerome Guitton <guitton@adacore.com>
6727
6728 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6729 New functions.
6730 (i386_stack_tramp_frame_unwind): New static global.
6731 (i386_match_pattern): New function, extracted from i386_match_insn.
6732 (i386_match_insn): Use i386_match_pattern.
6733 (i386_match_insn_block): New function.
6734 (i386_tramp_chain_in_reg_insns)
6735 (i386_tramp_chain_on_stack_insns): New static variables.
6736 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6737 of unwinders.
6738
4d393d60
JM
67392011-05-04 Joseph Myers <joseph@codesourcery.com>
6740
6741 * configure.host (xscale*): Don't handle target.
6742 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6743 handle targets.
6744
f70bd40b
YQ
67452011-05-04 Yao Qi <yao@codesourcery.com>
6746
6747 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6748
dd3295ee
JB
67492011-05-03 Joel Brobecker <brobecker@adacore.com>
6750
6751 Revert:
6752 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6753 | * elfread.c (elf_symtab_read): Stop memory leak.
6754
90375a0e
PM
67552011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6756
6757 * nto-tdep.c (nto_target): Replace deprecated call to
6758 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6759
d07205c2
JK
67602011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6761
6762 Fix false GCC warning.
6763 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6764
1e718ff1
TJB
67652011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6766
6767 * breakpoint.c (update_watchpoint): Move code to change
6768 the enable state of breakpoint from here ...
6769 (do_enable_breakpoint): ... to here.
6770
35bef4fd
TT
67712011-04-26 Andrew Gontarek <andrewg@cray.com>
6772
78290264
PP
6773 * valprint.c (val_print_array_elements): Fixed poor performance
6774 of printing very large arrays with repeat_count_threshold set
6775 to unlimited. New comment.
35bef4fd 6776
38a714bb
TT
67772011-04-29 Tom Tromey <tromey@redhat.com>
6778
6779 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6780 (mi_parse): Likewise.
6781 * breakpoint.c (break_range_command): Use sizeof char*, not
6782 char**.
6783 (create_breakpoint): Likewise.
6784 (parse_breakpoint_sals): Likewise.
6785
eb73ad13
PA
67862011-04-29 Pedro Alves <pedro@codesourcery.com>
6787
6788 * linux-nat.c (linux_child_remove_fork_catchpoint)
6789 (linux_child_remove_vfork_catchpoint)
6790 (linux_child_remove_exec_catchpoint): New functions.
6791 (linux_target_install_ops): Install them.
6792
d65aec65
PM
67932011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6794
6795 PR mi/12531
6796
6797 * varobj.c (install_default_visualizer): Do not install a
6798 visualizer if the varobj is CPLUS_FAKE_CHILD.
6799 (construct_visualizer): Likewise.
6800
165195f4
JK
68012011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6804 case insensitive comparison.
6805
30852783
UW
68062011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6807
6808 * infrun.c (proceed): Revert previous change.
6809 (resume): Instead, handle the case of signal delivery while stepping
6810 off a breakpoint location here, and only if software single-stepping
6811 is used. Handle nested signals.
6812
7ff120b4
YQ
68132011-04-28 Yao Qi <yao@codesourcery.com>
6814
6815 * arm-tdep.c (copy_unmodified): Rename to ...
6816 (arm_copy_unmodified): .. this. New.
6817 (copy_preload): Move common part to ...
6818 (install_preload): .. this. New.
6819 (arm_copy_preload): New.
6820 (copy_preload_reg): Move common part to ...
6821 (install_preload_reg): ... this. New.
6822 (arm_copy_preload_reg): New.
6823 (copy_b_bl_blx): Move common part to ...
6824 (install_b_bl_blx): .. this. New.
6825 (arm_copy_b_bl_blx): New.
6826 (copy_bx_blx_reg): Move common part to ...
6827 (install_bx_blx_reg): ... this. New.
6828 (arm_copy_bx_blx_reg): New.
6829 (copy_alu_reg): Move common part to ...
6830 (install_alu_reg): ... this. New.
6831 (arm_copy_alu_reg): New.
6832 (copy_alu_shifted_reg): Move common part to ...
6833 (install_alu_shifted_reg): ... this. New.
6834 (copy_ldr_str_ldrb_strb): Move common part to ...
6835 (install_ldr_str_ldrb_strb): ... this. New.
6836 (arm_copy_ldr_str_ldrb_strb): New.
6837 (copy_copro_load_store): Move some common part to ...
6838 (install_copy_copro_load_store): ... this. New.
6839 (arm_copy_copro_load_store): New.
6840 (copy_svc): Delete.
6841 (arm_copy_svc): Renamed from copy_svc.
6842 (copy_undef): Delete.
6843 (arm_copy_undef): Renamed from copy_undef.
6844 (decode_ext_reg_ld_st): Delete.
6845 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6846 (decode_svc_copro): Delete.
6847 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6848 (copy_copro_load_store, copy_alu_imm): update callers.
6849 (copy_extra_ld_st, copy_block_xfer): Likewise.
6850 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6851 (decode_miscellaneous, decode_dp_misc): Likewise.
6852 (decode_ld_st_word_ubyte, decode_media): Likewise.
6853 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6854 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6855 (decode_unconditional, decode_miscellaneous): Likewise.
6856 (decode_media, decode_b_bl_ldmstm): Likewise.
6857 (arm_process_displaced_insn): Likewise..
6858 (decode_misc_memhint_neon): Delete.
6859 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6860 (decode_miscellaneous): Delete.
6861 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6862 (decode_dp_misc): Delete.
6863 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6864 (decode_ld_st_word_ubyte): Delete.
6865 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6866 (decode_media): Delete.
6867 (arm_decode_media): Renamed from decode_media.
6868 (decode_b_bl_ldmstm): Delete.
6869 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6870 (decode_ext_reg_ld_st): Delete.
6871 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6872 (decode_unconditional): Delete.
6873 (arm_decode_unconditional): Renamed from decode_unconditional.
6874
559a7a62
JK
68752011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6876
6877 Case insensitive lookups implementation.
6878 * dwarf2read.c: Include ctype.h.
6879 (struct mapped_index): New field version.
6880 (mapped_index_string_hash): New parameter index_version. New comment
6881 for it. Call tolower appropriately.
6882 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6883 Choose the right index version for mapped_index_string_hash.
6884 (dwarf2_read_index): Support also the index version 5. Initialize the
6885 new struct mapped_index field version.
6886 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6887 (find_slot): Explain the version needs. Pass INT_MAX for the new
6888 parameter.
6889 (write_psymtabs_to_index): Produce version 5.
6890 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6891 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6892 * psymtab.c (lookup_partial_symbol): Find the
6893 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6894 entries.
6895 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6896 NAME lowercasing.
6897 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6898 (completion_list_add_name): New variable ncmp, initialize it, use it.
6899 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6900 * utils.c (strcmp_iw): Support case_sensitive_off.
6901 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6902 New function comment part. New variables saved_string1,
6903 saved_string2 and case_pass. Add a proper second pass.
6904
681bf369
JK
69052011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Replace re_comp/re_exec by regcomp/regexec.
6908 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6909 (search_symbols_name_matches): Use them, use regexec.
6910 (search_symbols): New variable retval_chain, adjust the use of
6911 old_chain against it. Replace re_comp by regcomp. Use the new struct
6912 search_symbols_data fields, use regexec instead of re_exec.
6913
b11b1f88
JK
69142011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6915
6916 Format the code for the next patch.
6917 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6918 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6919 New variables c1 and c2.
6920
2484c66b
UW
69212011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6922
6923 * infrun.c (proceed): Do not single-step into signal delivery
6924 when stepping off a breakpoint location.
6925 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6926 (insert_step_resume_breakpoint_at_caller): Likewise.
6927 (insert_step_resume_breakpoint_at_sal): Likewise.
6928 (insert_longjmp_resume_breakpoint): Likewise.
6929
47423772
YQ
69302011-04-27 Yao Qi <yao@codesourcery.com>
6931
6932 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6933
13bdd2e7
JB
69342011-04-27 Joel Brobecker <brobecker@adacore.com>
6935
6936 * procfs.c (procfs_pass_signals): Fix advance declaration.
6937
2455069d
UW
69382011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6939
6940 * target.h (struct target_ops): Remove to_notice_signals;
6941 add to_pass_signals.
6942 (target_notice_signals): Remove.
6943 (target_pass_signals): Add prototype.
6944 * target.c (update_current_target): Remove to_notice_signals;
6945 mention to_pass_signals.
6946 (target_pass_signals): New function.
6947 (debug_to_notice_signals): Remove.
6948 (setup_target_debug): Do not install debug_to_notice_signals.
6949
6950 * infrun.c (signal_pass): New global.
6951 (resume): Call target_pass_signals.
6952 (handle_inferior_event): Report all signals while stepping over
6953 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6954 are re-inserted when stepping over a signal handler.
6955 (signal_cache_update): New function.
6956 (signal_stop_update): Call it.
6957 (signal_print_update): Likewise.
6958 (signal_pass_update): Likewise.
6959 (handle_command): Call signal_cache_update and target_pass_signals
6960 instead of target_notice_signals.
6961 (_initialize_infrun): Initialize signal_pass.
6962
6963 * linux-nat.c (pass_mask): New global.
6964 (linux_nat_pass_signals): New function.
6965 (linux_nat_create_inferior): Report all signals initially.
6966 (linux_nat_attach): Likewise.
6967 (linux_nat_resume): Use pass_mask to decide whether to directly
6968 handle an inferior signal.
6969 (linux_nat_wait_1): Likewise.
6970 (linux_nat_add_target): Install to_pass_signals callback.
6971
6972 * nto-procfs.c (notice_signals): Remove.
6973 (procfs_resume): Do not call notice_signals.
6974 (procfs_notice_signals): Remove.
6975 (procfs_pass_signals): New function.
6976 (init_procfs_ops): Install to_pass_signals callback instead of
6977 to_notice_signals callback.
6978 (_initialize_procfs): Report all signals initially.
6979
6980 * procfs.c (procfs_notice_signals): Remove.
6981 (procfs_pass_signals): New function.
6982 (procfs_target): Install to_pass_signals callback instead of
6983 to_notice_signals callback.
6984 (register_gdb_signals): Remove.
6985 (procfs_debug_inferior): Report all signals initially.
6986 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6987
6988 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6989 parameters; use them instead of calling signal_..._state routines.
6990 (remote_notice_signals): Remove.
6991 (remote_start_remote): Report all signals initially.
6992 (remote_resume): Do not call remote_pass_signals.
6993 (_initialize_remote): Install to_pass_signals callback instead of
6994 to_notice_signals callback.
6995
46c6471b
PA
69962011-04-27 Pedro Alves <pedro@codesourcery.com>
6997
6998 * breakpoint.c (user_settable_breakpoint): Delete.
6999 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7000 (delete_command): Check user_breakpoint_p instead of looking at
7001 the breakpoint's type.
7002 (disable_command): Ditto.
7003 (enable_command): Ditto.
7004 (delete_trace_command): Use user_breakpoint_p instead of looking
7005 at the breakpoint number directly. When checking if there are
7006 user visible tracepoints, in order to know whether to ask the user
7007 for confirmation, check whether the breakpoint is actually a
7008 tracepoint.
7009
f6d90398
VP
70102011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7011
7012 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7013 compilation.
7014
8d3788bd
VP
70152011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7016
7017 MI breakpoint notifications.
7018
f33edef8
PP
7019 * annotate.c (breakpoint_changed): Adjust parameter type.
7020 * breakpoint.c (set_breakpoint_condition): Adjust to change
7021 in breakpoint_modified type.
7022 (breakpoint_set_commands): Likewise.
7023 (do_map_commands_command): Likewise.
7024 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7025 changed after bumping hit count.
7026 (bpstat_stop_status): Likewise.
7027 (print_one_breakpoint_location): Don't wrap in tuple here.
7028 (print_one_breakpoint): Always print individual locations.
7029 For locations, use unnamed tuple.
7030 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7031 has changed.
7032 (create_catchpoint, create_syscall_event_catchpoint): Call
7033 breakpoint_created obsever.
7034 (mention): Don't call breakpoint_created observer.
7035 (create_breakpoint_sal): Call breakpoint_created observer.
7036 (create_breakpoint, watch_command_1): Likewise.
7037 (create_ada_exception_breakpoint): Likewise.
7038 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7039 (locations_are_equal): New.
7040 (update_breakpoint_locations): If locations were changed, notify.
7041 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7042 Call breakpoint_modified observer.
7043
7044 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7045 (mi_cmd_break_insert): Don't set observers for modify and delete.
7046 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7047 (mi_breakpoint_created, mi_breakpoint_deleted)
7048 (mi_breakpoint_modified): New.
7049 (mi_interpreter_init): Hook the above.
7050 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7051 while -break-* commands are executing.
7052 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7053 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7054 (mi_redirect): New.
7055 (mi_ui_out_impl): Hook in mi_redirect.
7056 (mi_field_skip): True to the name, skip the field, don't output
7057 a field with an empty value.
7058
7059 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7060 (gdbpy_breakpoint_deleted): Adjust.
7061 * tui/tui-hooks.c (tui_event_create_breakpoint)
7062 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7063
a8f42b45
UW
70642011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7065
7066 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7067 (procfs_remove_hw_watchpoint): Likewise.
7068
57e12211
TT
70692011-04-26 Michael Walle <michael@walle.cc>
7070
7071 * remote.c (remote_start_remote): Ack packet after sending the
7072 interrupt sequence.
7073
af96c192
YQ
70742011-04-26 Yao Qi <yao@codesourcery.com>
7075
f33edef8
PP
7076 * linux-nat.c: Move common macros to ...
7077 Include linux-ptrace.h.
7078 * common/linux-ptrace.h: ... here. New.
af96c192 7079
3e03848b
JK
70802011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7083 !objfile_has_partial_symbols. New comment.
7084 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7085 SYM_READ_PSYMBOLS is not present. Extend the comment.
7086 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7087
1ae0d051
JK
70882011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 * defs.h (ENUM_BITFIELD): Remove.
7091
03f2bd59
JK
70922011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7093 Eli Zaretskii <eliz@gnu.org>
7094
7095 * NEWS: Document the new gdbserver --once option.
7096
4161fbb0
JZ
70972011-04-21 Jie Zhang <jzhang918@gmail.com>
7098
7099 * MAINTAINERS: Update my email address.
7100
bcb28afc
PM
71012011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7102
7103 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7104 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7105 function call if __STDC_ISO_10646__ macro is defined.
7106 (intermediate_encoding): New prototype.
7107 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7108 to generate compile time error for unsupported gdb_wchar_t size.
7109 (ENDIAN_SUFFIX): New macro.
7110 (intermediate_encoding): New function.
7111
7b08b9eb
JK
71122011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7113
7114 * ada-lang.c (struct add_partial_datum): Update the comment for
7115 expand_partial_symbol_name.
7116 (ada_add_partial_symbol_completions): Rename to ...
7117 (ada_expand_partial_symbol_name): ... here, change return type, update
7118 function comment, call symbol_completion_match instead of
7119 symbol_completion_add.
7120 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7121 and ada_expand_partial_symbol_name.
7122 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7123 FILE_MATCHER.
7124 (dw2_map_symbol_names): Remove.
7125 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7126 * psymtab.c (map_symbol_names_psymtab): Remove.
7127 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7128 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7129 order.
7130 (psym_functions): Unlist map_symbol_names_psymtab.
7131 (map_partial_symbol_names): Rename to ...
7132 (expand_partial_symbol_names): ... here, change the FUN type, call
7133 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7134 * psymtab.h (map_partial_symbol_names): Rename to ...
7135 (expand_partial_symbol_names): ... here, change the FUN type.
7136 * symfile.h (struct quick_symbol_functions): Update the description of
7137 expand_symtabs_matching. Remove map_symbol_names.
7138 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7139 (struct add_name_data): Update the comment for
7140 expand_partial_symbol_name.
7141 (add_partial_symbol_name): Rename to ...
7142 (expand_partial_symbol_name): ... here. Replace
7143 completion_list_add_name call by strncmp.
7144 (default_make_symbol_completion_list_break_on): Use now
7145 expand_partial_symbol_names and expand_partial_symbol_name.
7146 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7147
90476074
TT
71482011-04-20 Tom Tromey <tromey@redhat.com>
7149
7150 * dwarf2read.c (save_gdb_index_command): Replace format
7151 documentation with a pointer to the manual.
7152
c21236dc
PA
71532011-04-20 Pedro Alves <pedro@codesourcery.com>
7154
7155 * regcache.c: Include remote.h.
7156 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7157 (regcache_dump): Handle regcache_dump_remote.
7158 (maintenance_print_remote_registers): New function.
7159 (_initialize_regcache): Install "maint print remote-registers"
7160 command.
7161 * remote.c (map_regcache_remote_table): New function, factored out
7162 from ...
7163 (init_remote_state): ... here.
7164 (remote_register_number_and_offset): New.
7165 * remote.h (remote_register_number_and_offset): Declare.
7166
b78974c3
PA
71672011-04-20 Pedro Alves <pedro@codesourcery.com>
7168
7169 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7170 null_ptid, assume and allow a NULL address space, instead of
7171 asking the target for the ptid's address space.
7172 * infrun.c (ptid_is_pid): Remove assertion.
7173
7a9dd1b2
TT
71742011-04-19 Tom Tromey <tromey@redhat.com>
7175
7176 * windows-tdep.c (windows_xfer_shared_library):
7177 * windows-nat.c (get_module_name, windows_make_so):
7178 * v850-tdep.c (v850_handle_pushm):
7179 * utils.c (null_cleanup, gdb_realpath):
7180 * ui-out.c (get_next_header):
7181 * tracepoint.c (clear_traceframe_info):
7182 * symtab.c (lookup_symtab):
7183 * serial.h (struct serial_ops):
7184 * mipsread.c (read_alphacoff_dynamic_symtab):
7185 * infcmd.c (print_return_value):
7186 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7187 * f-exp.y (parse_number):
7188 * exceptions.c (catch_exceptions):
7189 * dummy-frame.c (dummy_frame_this_id):
7190 * defs.h (struct cleanup):
7191 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7192 * arm-tdep.c (arm_push_dummy_call):
7193 * amd64-tdep.h (amd64_collect_xsave):
7194 * amd64-tdep.c (amd64_collect_xsave):
7195 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7196 * README (typing): Remove duplicate words.
7197 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7198 * infrun.c (siginfo_value_read): Fix typo.
7199 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7200 * top.c (source_line_number): Add comma.
7201
9941e0c5
MK
72022011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7203
7204 * thread.c (any_live_thread_of_process): Prioritize threads
7205 that are not executing.
7206 * gdbthread.h (any_live_thread_of_process): Update comment
7207 as per above change.
7208
ed4b0e6a
AS
72092011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7210
7211 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7212 (scan_xcoff_symtab): Likewise.
7213
9b13a2db
PM
72142011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7215
7216 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7217 inside if clause.
7218
1c6e1b0d
PM
72192011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7220 Pedro Alves <pedro@codesourcery.com>
7221
7222 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7223 variables to simplify code and avoid == operator at end of
7224 line as this is against GNU coding standards.
7225
74de0234
PM
72262011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7227
7228 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7229 lm_name to name_lm to avoid conflict with lm_name function.
7230
b23518f0
PM
72312011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7232
7233 ARI fixes: Use only lowercase function name for static functions.
7234 * nto-tdep.c (LM_ADDR): Rename to...
7235 (lm_addr): New function name.
7236 (nto_relocate_section_addresses): Adapt to change above.
7237 * solib-sunos.c (LM_ADDR): Rename to...
7238 (lm_addr): New function name.
7239 (LM_NEXT): Rename to...
7240 (lm_next): New function name.
7241 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7242 function name changes above.
7243 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7244 (lm_addr_from_link_map): New function name.
7245 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7246 (has_lm_dynamic_from_link_map): New function name.
7247 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7248 (lm_dynamic_from_link_map): New function name.
7249 (LM_ADDR_CHECK): Rename to...
7250 (lm_addr_check): New function name.
7251 (LM_NEXT): Rename to...
7252 (lm_next): New function name.
7253 (LM_PREV): Rename to...
7254 (lm_prev): New function name.
7255 (LM_NAME): Rename to...
7256 (lm_name): New function name.
7257 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7258 (ignore_first_link_map_entry): New function name.
7259 (svr4_keep_data_in_core): Adapt to function name changes above.
7260 (svr4_current_sos): Likewise.
7261 (enable_break): Likewise.
7262 (svr4_relocate_section_addresses): Likewise.
7263
1448a0a2
PM
72642011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7265
7266 ARI cleanup.
7267 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7268 sprintf. Simplify code and avoid loosing memory.
7269 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7270 (call0_frame_cache): Remove && operator from end of line.
7271
02835898
JK
72722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7273
7274 Fix libraries displacement if they change whether they were prelinked.
7275 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7276 does not match. Comment why.
7277
9a845ea2
JK
72782011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7279
7280 * corelow.c: Include wrapper.h.
7281 (core_open): Call now gdb_target_find_new_threads.
7282 * wrapper.c: Include target.h.
7283 (gdb_target_find_new_threads): New.
7284 * wrapper.h (gdb_target_find_new_threads): New declaration.
7285
254f582e
JK
72862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7287
7288 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7289 even if !TARGET_HAS_EXECUTION.
7290
63524580
JK
72912011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7292
7293 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7294 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7295 bfd_get_synthetic_symtab.
7296 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7297 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7298 parameter parent, remove the call to add_separate_debug_objfile.
7299 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7300 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7301 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7302 parent, new comment for it, call add_separate_debug_objfile for it.
7303 (symbol_file_add_separate): Pass objfile as the parameter parent,
7304 remove the call to add_separate_debug_objfile.
7305 (symbol_file_add_from_bfd): New parameter parent, pass it.
7306 (symbol_file_add): Pass NULL to the new parameter parent.
7307 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7308
90359a16
JK
73092011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7312 BSF_SYNTHETIC.
7313
626e7282
JK
73142011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7315
7316 Fix Python access to inlined frames.
7317 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7318 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7319
cf31e6f9
TT
73202011-04-15 Tom Tromey <tromey@redhat.com>
7321
7322 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7323
c8d895f1
GB
73242011-04-15 Gary Benson <gbenson@redhat.com>
7325
7326 * MAINTAINERS: Add myself to write-after-approval section.
7327
56a9aa1d
MF
73282011-04-14 Mike Frysinger <vapier@gentoo.org>
7329
7330 * remote-sim.c (sim_command_completer): New function.
7331 (_initialize_remote_sim): Set completer to sim_command_completer.
7332
ba770c9c
TJB
73332011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7334
7335 * breakpoint.c (print_exception_catchpoint): Rename to ...
7336 (print_it_exception_catchpoint): ... this.
7337 (gnu_v3_exception_catchpoint_ops): Update with new name
7338 for print_it_exception_catchpoint.
7339
51bf2553
EBM
73402011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7341
7342 * MAINTAINERS: Add myself for write after approval privileges.
7343
d242658c
MP
73442011-04-13 Marek Polacek <mpolacek@redhat.com>
7345
7346 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7347
4a4106ca
TJB
73482011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7349
7350 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7351
26063d49
TJB
73522011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7353
7354 * breakpoint.c (save_breakpoints): Verify whether
7355 breakpoint_ops.print_recreate is defined before calling it.
7356
7782b183
GB
73572011-04-11 Gary Benson <gbenson@redhat.com>
7358
7359 Fix failure with --enable-maintainer-mode.
7360 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7361
e8930875
JK
73622011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7363
7364 Code cleanup.
7365 * symtab.c (search_symbols): Reorder the KIND description in the
7366 function comment. Remove the unused 4th element of types, types2,
7367 types3 and types4. New gdb_assert on KIND.
7368 (symtab_symbol_info): Remove the unused 4th element of classnames.
7369 New gdb_assert on KIND.
7370 * symtab.h (enum search_domain): New warning in the enum comment.
7371 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7372 TYPES_DOMAIN.
7373
b4f2f049
JK
73742011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7375
7376 Fix crash of gdb save-index on a STABS file.
7377 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7378 PSYMTABS_ADDRMAP.
7379
60d5a603
JK
73802011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7383 * dwarf2read.c: Include ctype.h.
7384 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7385 functions.
7386 (dwarf2_add_field): Fix new_field->accessibility by calling
7387 dwarf2_default_access_attribute. Restructure setting accessibility
7388 vs. virtuality.
7389 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7390 is_private and is_protected by calling
7391 dwarf2_default_access_attribute.
7392
e0f68161
KB
73932011-04-08 Kevin Buettner <kevinb@redhat.com>
7394
7395 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7396 to the initialization.
7397
2e1aae43
SE
73982011-04-08 Steve Ellcey <sje@cup.hp.com>
7399
7400 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7401 initalization.
7402
c6ca3dab
PM
74032011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7404
7405 Remove support for old Cygwin 1.5 versions.
7406 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7407 function on old Cygwin version.
7408 * windows-nat.c: Remove cygwin version check and always define
7409 __USEWIDE for Cygwin compilation.
7410
bd18283a
YQ
74112011-04-07 Yao Qi <yao@codesourcery.com>
7412
7413 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7414 and TO.
7415 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7416 (arm_copy_svc): Remove parameters INSN and TO.
7417 (decode_svc_copro): Update caller.
7418 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7419 from function pointer `copy_svc_os'.
7420
8c8dba6d
YQ
74212011-04-07 Yao Qi <yao@codesourcery.com>
7422
7423 * arm-tdep.c (cleanup_branch): Set a correct return address in
7424 LR for ARM and Thumb.
7425
59d7bcaf
JK
74262011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 Code cleanup.
7429 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7430 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7431 in the function comment, a new note on values compatibility.
7432 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7433 * symtab.h (SYMBOL_HASH_NEXT): New.
7434
e7db58ea
TJB
74352011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7436
7437 * ppc-linux-nat.c (check_condition): Add len output parameter.
7438 Set it based on the memory region referenced in the condition
7439 expression. Update all callers.
7440
9f743ef6
JK
74412011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7442
7443 Fix crash regression on systems featuring .gdb_index.
7444 * objfiles.c (free_objfile): Move the
7445 forget_cached_source_info_for_objfile call earlier. Comment it.
7446 Extend the comment for objfile_free_data.
7447
9182c5bc
JK
74482011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7449
7450 Fix regression of displaying the debug format.
7451 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7452 subfile.
7453
04bd08de
TT
74542011-04-04 Tom Tromey <tromey@redhat.com>
7455
7456 * cli/cli-interp.c (struct captured_execute_command_args):
7457 Remove.
7458 (do_captured_execute_command): Remove.
7459 (safe_execute_command): Use TRY_CATCH.
7460 * cli/cli-script.c (struct wrapped_read_command_file_args):
7461 Remove.
7462 (wrapped_read_command_file): Remove.
7463 (script_from_file): Use TRY_CATCH.
7464 * exceptions.c (catch_exception): Remove.
7465 * exceptions.h (catch_exception): Remove.
7466 (deprecated_throw_reason): Update comment.
7467 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7468 argument to 'context'.
7469 (mi_execute_command): Use TRY_CATCH.
7470 * remote.c (struct start_remote_args): Remove.
7471 (remote_start_remote): Update; change arguments.
7472 (remote_open_1): Use TRY_CATCH.
7473
58438ac1
TT
74742011-04-04 Tom Tromey <tromey@redhat.com>
7475
7476 * tracepoint.c (scope_info): Update.
7477 * symtab.c (decode_line_spec): Update.
7478 * python/python.c (gdbpy_decode_line): Update.
7479 * linespec.h (decode_line_1): Update.
7480 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7481 (decode_compound, find_method, symtab_from_filename)
7482 (decode_variable): Likewise.
7483 * cli/cli-cmds.c (edit_command): Update.
7484 (list_command): Update.
7485 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7486 argument.
7487 (create_breakpoint): Update.
7488 (until_break_command): Update.
7489 (addr_string_to_sals): Update.
7490 (decode_line_spec_1): Update.
7491
b78a6381
TT
74922011-04-04 Tom Tromey <tromey@redhat.com>
7493
7494 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7495 (do_captured_parse_breakpoint): Remove.
7496 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7497 Use TRY_CATCH directly.
7498
00174a86
TT
74992011-04-04 Tom Tromey <tromey@redhat.com>
7500
7501 * symtab.h (free_symtab): Remove.
7502 (forget_cached_source_info_for_objfile): Declare.
7503 * symmisc.c (free_symtab): Remove.
7504 * source.c (forget_cached_source_info_for_objfile): New function.
7505 (forget_cached_source_info): Use it.
7506 * objfiles.c (free_objfile): Simplify check before calling
7507 clear_current_source_symtab_and_line. Call
7508 forget_cached_source_info_for_objfile.
7509
30cc903e
TT
75102011-04-04 Tom Tromey <tromey@redhat.com>
7511
7512 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7513 (new_symtab): Don't set `free_code' on symtab.
7514 (new_linetable): Properly handle size==0.
7515 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7516 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7517 free_func.
7518 * jv-lang.c (struct jv_per_objfile_data): New.
7519 (jv_per_objfile_free): Free the data.
7520 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7521 (get_java_class_symtab): Set the `dict' field on the
7522 jv_per_objfile_data.
7523 (free_class_block): Remove.
7524 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7525 the symtab.
7526
0c2e6019
TT
75272011-04-04 Tom Tromey <tromey@redhat.com>
7528
7529 * symfile.c (reread_symbols): Update.
7530 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7531 field.
7532 * objfiles.c (allocate_objfile): Update.
7533 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7534 declare.
7535 * cp-namespace.c (lookup_symbol_file): Don't call
7536 lookup_possible_namespace_symbol.
7537 (initialize_namespace_symtab, get_possible_namespace_block)
7538 (free_namespace_block, cp_check_possible_namespace_symbols)
7539 (check_possible_namespace_symbols_loop)
7540 (check_one_possible_namespace_symbol)
7541 (lookup_possible_namespace_symbol): Remove.
7542 (maintenance_cplus_namespace): Replace with notice.
7543 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7544
554d387d
TT
75452011-04-04 Tom Tromey <tromey@redhat.com>
7546
7547 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7548 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7549 * symmisc.c (free_symtab): Don't free debugformat.
7550 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7551 (record_debugformat, record_producer): Document.
7552 * buildsym.c (end_symtab): Don't save debugformat and producer
7553 names on obstack.
7554 (end_symtab): Don't free debugformat and producer fields.
7555 (record_debugformat): Don't call xstrdup.
7556 (record_producer): Likewise.
7557
d4d4db8a
TT
75582011-04-04 Tom Tromey <tromey@redhat.com>
7559
7560 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7561 (source_line_charpos, source_charpos_line): Remove.
7562
8903c50d
TT
75632011-04-04 Tom Tromey <tromey@redhat.com>
7564
7565 * symtab.h (domain_enum): Split in two...
7566 (enum search_domain): New.
7567 (search_symbols): Update.
7568 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7569 redundant declarations.
7570 (search_symbols): Change 'kind' argument to search_domain.
7571 Update.
7572 (print_symbol_info): Likewise.
7573 (symtab_symbol_info): Likewise.
7574 * symfile.h (struct quick_symbol_functions)
7575 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7576 <expand_symtabs_matching>: Likewise.
7577 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7578 (expand_symtabs_matching_via_partial): Update.
7579 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7580 (dw2_expand_symtabs_for_function): Update.
7581 * block.h: Moved anonymous enum...
7582 * defs.h (enum block_enum): ... here. Now named.
7583
d9351f5f 75842011-04-03 Joel Brobecker <brobecker@adacore.com>
7585
7586 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7587 * version.in: Bump version to 7.3.50.20110403-cvs.
7588
d6e00af6
JB
75892011-04-03 Joel Brobecker <brobecker@adacore.com>
7590
7591 * NEWS: Create a new section for the next release branch.
7592 Rename the section of the current branch, now that it has
7593 been cut.
7594
2b9e5ea6
UW
75952011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7596
7597 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7598 for "fpscr" in target description.
7599
0cf03b49
JK
76002011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7603 initialize it. Delay HASH initialization. Strip the part after open
7604 parenthesis for languages with qualifiers. Call do_cleanups.
7605
5d901a73
TT
76062011-04-01 Tom Tromey <tromey@redhat.com>
7607
7608 * utils.c (report_command_stats): Don't print `-' for negative
7609 number.
7610
b0dd7688
JB
76112011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7612
7613 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7614 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7615 typedefs.
7616
956a9fb9
JB
76172011-04-01 Joel Brobecker <brobecker@adacore.com>
7618
7619 * breakpoint.h (bpdisp_text): Add declaration.
7620 * breakpoint.c (bpdisp_text): Make non-static.
7621 * ada-lang.c: #include "mi/mi-common.h".
7622 (print_it_exception): Rewrite to improve GDB/MI output.
7623
3352110b
PA
76242011-04-01 Pedro Alves <pedro@codesourcery.com>
7625
7626 * arm-tdep.h (struct address_space): Add forward declaration.
7627
18819fa6
UW
76282011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7629
7630 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7631 * arm-tdep.c (arm_override_mode): New global.
7632 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7633 execution mode heuristics.
7634 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7635 second single-step breakpoint if needed, using
7636 arm_insert_single_step_breakpoint.
7637 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7638 ARM execution mode, do not call thumb_get_next_pc_raw.
7639 (arm_get_next_pc): Encode execution mode in return value. Call
7640 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7641 (arm_insert_single_step_breakpoint): New function.
7642 (arm_software_single_step): Call it.
7643 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7644 argument to return execution mode of sigreturn target.
7645 (arm_linux_syscall_next_pc): Use it.
7646 (arm_linux_copy_svc): Update call.
7647 (arm_linux_software_single_step): Call
7648 arm_insert_single_step_breakpoint.
7649
a6e293d1
JK
76502011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7651
7652 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7653 the comment.
7654
a4c8e806
TT
76552011-03-31 Tom Tromey <tromey@redhat.com>
7656
7657 * varobj.c (update_dynamic_varobj_children): Properly handle
7658 errors from iterator.
7659
df5c6c50
JK
76602011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7663 struct linkage name twice.
7664
1dae3efc
TT
76652011-03-31 Tom Tromey <tromey@redhat.com>
7666
7667 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7668 missing ">" to message.
7669
f4f7ab05
TT
76702011-03-31 Tom Tromey <tromey@redhat.com>
7671
7672 * varobj.c (instantiate_pretty_printer): Remove duplicate
7673 'return'.
7674
fcf250e2
UW
76752011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7676
7677 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7678 if neither saved value nor register available (e.g. signal frame).
7679
ee6436e3
TJB
76802011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7681
7682 * macroexp.c (expand): Avoid uninitialized variable
7683 compiler warning.
7684
423f41a5
TJB
76852011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7686
7687 * breakpoint.c (break_range_command): Fix typo in comment.
7688
f1310107
TJB
76892011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7690 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7691
7692 Implement support for PowerPC BookE ranged breakpoints.
7693 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7694 * breakpoint.h (struct bp_target_info) <length>: New member
7695 variable.
7696 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7697 instead of struct breakpoint as argument, and also add ASPACE
7698 and BP_ADDR arguments. Update all callers.
7699 (struct breakpoint_ops) <print_one_detail>: New method.
7700 (struct breakpoint) <addr_string_range_end>: New member variable.
7701 * breakpoint.c (breakpoint_location_address_match): Add function
7702 prototype.
7703 (insert_bp_location): Set bl->target_info.length.
7704 (breakpoint_here_p): Call breakpoint_location_address_match.
7705 (moribund_breakpoint_here_p): Likewise.
7706 (regular_breakpoint_inserted_here_p): Likewise.
7707 (breakpoint_thread_match): Likewise.
7708 (bpstat_stop_status): Likewise.
7709 (bpstat_check_location): Move call to
7710 breakpoint_ops.breakpoint_hit to the top.
7711 (print_one_breakpoint_location): Call
7712 breakpoint_ops.print_one_detail if available.
7713 (breakpoint_address_match_range): New function.
7714 (breakpoint_location_address_match): Likewise.
7715 (breakpoint_locations_match): Compare the length field of the
7716 locations too.
7717 (hw_breakpoint_used_count): Count resources used by all locations
7718 in a breakpoint, and use breakpoint_ops.resources_needed if
7719 available.
7720 (breakpoint_hit_ranged_breakpoint): New function.
7721 (resources_needed_ranged_breakpoint): Likewise.
7722 (print_it_ranged_breakpoint): Likewise.
7723 (print_one_ranged_breakpoint): Likewise.
7724 (print_one_detail_ranged_breakpoint): Likewise.
7725 (print_mention_ranged_breakpoint): Likewise.
7726 (print_recreate_ranged_breakpoint): Likewise.
7727 (ranged_breakpoint_ops): New structure.
7728 (find_breakpoint_range_end): New function.
7729 (break_range_command): Likewise.
7730 (delete_breakpoint): Free addr_string_range_end.
7731 (update_breakpoint_locations): Add SALS_END argument. Update
7732 all callers. Calculate breakpoint length if a non-zero SALS_END
7733 is given. Call breakpoint_locations_match instead of
7734 breakpoint_address_match.
7735 (reset_breakpoint): Find SaL of the end of the range if B is a
7736 ranged breakpoint.
7737 (_initialize_breakpoint): Register break-range command.
7738 * defs.h (print_core_address): Add function prototype.
7739 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7740 function.
7741 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7742 (ppc_linux_remove_hw_breakpoint): Likewise.
7743 (_initialize_ppc_linux_nat): Initialize
7744 to_ranged_break_num_registers.
7745 * target.c (update_current_target): Add comment about
7746 to_ranged_break_num_registers.
7747 (target_ranged_break_num_registers): New function.
7748 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7749 New method.
7750 (target_ranged_break_num_registers): Add function prototype.
7751 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7752 * utils.c (print_core_address): ... here.
7753
02d20e4a
UW
77542011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7755
7756 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7757 variable compiler warning.
7758
ef23e705
TJB
77592011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7760
7761 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7762 code from here ...
7763 (re_set_breakpoint): ... to here ...
7764 (addr_string_to_sals): ... and here.
7765
311e6ab3
PM
77662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7767
7768 * Makefile.in (SFILES): Add missing C sources.
7769 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7770 Add missing headers.
7771
acd1d99c
MF
77722011-03-29 Mike Frysinger <vapier@gentoo.org>
7773
7774 * .gitignore: New file.
7775
66ee2731
MF
77762011-03-29 Mike Frysinger <vapier@gentoo.org>
7777
7778 * NEWS: Mention new cfi device simulation.
7779
53832f31
TT
77802011-03-29 Tom Tromey <tromey@redhat.com>
7781
7782 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7783 otherwise anonymous types.
7784 (dwarf2_name): Likewise.
7785 * valops.c (value_struct_elt_for_reference): Refine artificial
7786 type logic. Call error if j==-1.
7787
09b58708
JK
77882011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7789
7790 Fix false GCC warning.
7791 * infcall.c (find_function_addr): Initialize funaddr.
7792
6023c606
PM
77932011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7794
7795 Fix mingw compilation with --enable-targets=all.
7796 * remote-mips.c (gdb_usleep.h): Include header.
7797 (mips_enter_debug): Use gdb_usleep instead of sleep.
7798
0e30163f
JK
77992011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7800
7801 Support resolution of STT_GNU_IFUNC via breakpoints.
7802 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7803 bp_gnu_ifunc_resolver_return.
7804 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7805 the loop. Support bp_gnu_ifunc_resolver and
7806 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7807 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7808 breakpoints.
7809 (bptype_string, print_one_breakpoint_location): Support
7810 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7811 (user_settable_breakpoint): Return true also for
7812 bp_gnu_ifunc_resolver.
7813 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7814 bp_gnu_ifunc_resolver_return.
7815 (set_breakpoint_location_function): New parameter explicit_loc,
7816 describe it. Call find_pc_partial_function_gnu_ifunc with new
7817 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7818 EXPLICIT_LOC is not set.
7819 (set_raw_breakpoint): Set EXPLICIT_LOC for
7820 set_breakpoint_location_function.
7821 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7822 set_breakpoint_location_function.
7823 (mention): Support bp_gnu_ifunc_resolver and
7824 bp_gnu_ifunc_resolver_return.
7825 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7826 set_breakpoint_location_function.
7827 (update_breakpoint_locations): Remove static.
7828 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7829 bp_gnu_ifunc_resolver_return.
7830 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7831 bp_gnu_ifunc_resolver_return.
7832 (update_breakpoint_locations): New declaration.
7833 * elfread.c: Include gdbthread.h and regcache.h.
7834 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7835 functions.
7836 (elf_gnu_ifunc_fns): Install them.
7837 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7838 (stub_gnu_ifunc_resolver_return_stop): New functions.
7839 (stub_gnu_ifunc_fns): Install them.
7840 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7841 and gnu_ifunc_resolver_return_stop.
7842 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7843
07be84bf
JK
78442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7845
7846 STT_GNU_IFUNC reader implementation.
7847 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7848 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7849 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7850 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7851 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7852 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7853 (elf_gnu_ifunc_resolve_addr): New.
7854 (elf_symfile_read): Call elf_rel_plt_read.
7855 (elf_gnu_ifunc_fns): New.
7856 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7857 Install elf_gnu_ifunc_fns.
7858 * infcall.c (find_function_return_type): New function.
7859 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7860 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7861 (stub_gnu_ifunc_resolve_name): New functions.
7862 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7863 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7864 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7865
300f8e10
JK
78662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7867
7868 Code cleanup for later STT_GNU_IFUNC support.
7869 * infcall.c (find_function_addr): Remove variable code, use explicit
7870 dereferences for it. Move VALUE_TYPE initialization later.
7871
11c81455
JK
78722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7875 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7876 (clear_pc_function_cache): Clear it.
7877 (find_pc_partial_function): Rename to ...
7878 (find_pc_partial_function_gnu_ifunc): ... this function. New
7879 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7880 (find_pc_partial_function): New wrapper for this function.
7881 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7882
0875794a
JK
78832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 GDB internal type support for STT_GNU_IFUNC.
7886 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7887 (elf_symtab_read): Set mst_text_gnu_ifunc for
7888 BSF_GNU_INDIRECT_FUNCTION.
7889 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7890 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7891 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7892 nodebug_got_plt_symbol.
7893 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7894 (TYPE_GNU_IFUNC): New.
7895 (struct main_type): New field flag_gnu_ifunc.
7896 (struct builtin_type): New field builtin_func_func.
7897 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7898 nodebug_got_plt_symbol.
7899 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7900 (in_gnu_ifunc_stub): New.
7901 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7902 mst_text_gnu_ifunc.
7903 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7904 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7905 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7906 in_gnu_ifunc_stub.
7907 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7908 * symtab.c (search_symbols): Likewise.
7909 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7910 and mst_slot_got_plt.
7911 (in_gnu_ifunc_stub): New declaration.
7912
d0fb5eae
JK
79132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7914
7915 Support a ring of related breakpoints.
7916 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7917 other functions, add gdb_assert.
7918 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7919 watchpoint_del_at_next_stop.
7920 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7921 (bpstat_stop_status): Handle ring in related_breakpoint.
7922 (set_raw_breakpoint_without_location): Initialize ring in
7923 related_breakpoint.
7924 (delete_breakpoint): Handle ring in related_breakpoint, use
7925 watchpoint_del_at_next_stop.
7926 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7927
9cded63f
TT
79282011-03-28 Tom Tromey <tromey@redhat.com>
7929
7930 PR symtab/12441:
7931 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7932 with `language_minimal'.
7933
467d42c4
UW
79342011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7935
7936 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7937 instead of checking for STT_ARM_TFUNC symbol type.
7938
62853458
TT
79392011-03-25 Tom Tromey <tromey@redhat.com>
7940
7941 * linespec.c (symbol_found): Restore line-based result for
7942 non-LOC_LABEL symbols.
7943
a7417d46
KT
79442011-03-25 Kai Tietz <ktietz@redhat.com>
7945
7946 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7947 instead of strcmp for comparison.
7948 (tui_source_is_displayed): Likewise.
7949 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7950
55f1336d
TT
79512011-03-24 Mark Wielaard <mjw@redhat.com>
7952
f33edef8
PP
7953 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7954 complaint.
7955 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7956 (find_partial_die_in_comp_unit): Likewise in comment.
7957 (read_attribute_value): Likewise.
7958 (lookup_die_type): Likewise.
7959 (dwarf_form_name): Likewise.
7960 (dump_die_shallow): Likewise.
7961 (follow_die_ref_or_sig): Likewise.
55f1336d 7962
9ef07c8c
TT
79632011-03-24 Tom Tromey <tromey@redhat.com>
7964
7965 PR breakpoints/11816:
7966 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7967 (decode_compound): Update.
7968 (find_function_symbol): New function.
7969 (decode_dollar): Update.
7970 (decode_label): Add 'function_symbol' parameter. Handle
7971 function-relative labels.
7972 (decode_variable): Update.
7973 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7974 not its line. Set `special_display' and canonical name for
7975 labels.
7976
56435ebe
TT
79772011-03-24 Tom Tromey <tromey@redhat.com>
7978
7979 * linespec.h (struct linespec_result) <special_display>: New
7980 field.
7981 * breakpoint.h (struct breakpoint) <display_canonical>: New
7982 field.
7983 * breakpoint.c (print_breakpoint_location): Respect
7984 display_canonical.
7985 (create_breakpoint_sal): Add 'display_canonical' parameter.
7986 (create_breakpoints_sal): Update.
7987 (create_breakpoint): Update.
7988
7efd8fc2
TT
79892011-03-24 Tom Tromey <tromey@redhat.com>
7990
7991 * symtab.c (decode_line_spec): Update.
7992 * linespec.c (build_canonical_line_spec): Change type of
7993 'canonical'.
7994 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7995 (find_method, decode_all_digits, decode_dollar, decode_label)
7996 (symbol_found): Likewise.
7997 (init_linespec_result): New function.
7998 * breakpoint.c (struct captured_parse_breakpoint_args)
7999 <canonical_p>: New field, replaces addr_string_p.
8000 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8001 'addr_string'.
8002 (parse_breakpoint_sals): Likewise.
8003 (do_captured_parse_breakpoint): Update.
8004 (create_breakpoint): Use struct linespec_result.
8005 (until_break_command): Update.
8006 (breakpoint_re_set_one): Update.
8007 (decode_line_spec_1): Update.
8008 * linespec.h (struct linespec_result): New.
8009 (init_linespec_result): Declare.
8010
788c8b10
PA
80112011-03-23 Pedro Alves <pedro@codesourcery.com>
8012
8013 * regcache.c (regcache_raw_read): If the target didn't supply a
8014 given raw register, mark it as unavailable.
8015
0ba1096a
KT
80162011-03-23 Kai Tietz <ktietz@redhat.com>
8017
8018 * breakpoint.c (clear_command): Use filename_cmp
8019 instead of strcmp for comparison.
8020 * buildsym.c (watch_main_source_file_lossage): Likewise.
8021 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8022 checking just for slash.
8023 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8024 strrchr and filename_cmp instead of strcmp for filenames.
8025 (add_old_header_file): Use filename_cmp
8026 instead of strcmp for comparison.
8027 * exec.c (exec_set_section_address): Likewise.
8028 * macrotab.c (macro_lookup_inclusion): Likewise.
8029 (macro_lookup_inclusion): Likewise.
8030 * elfread.c (_initialize_elfread): Likewise.
8031 (elfstab_offset_sections): Likewise.
8032 (elfstab_offset_sections): Use lbasename instead of
8033 strrchr.
8034 * mdebugread.c (parse_partial_symbols): Likewise.
8035 (arse_partial_symbols): Use filename_(n)cmp instead of
8036 str(n)cmp for comparison.
8037 * minsyms.c (lookup_minimal_symbol): Likewise.
8038 * psymtab.c (read_psymtabs_with_filename): Likewise.
8039 * solib.c (solib_read_symbols): Likewise.
8040 (reload_shared_libraries_1): Likewise.
8041 * symmisc.c (maintenance_print_symbols): Likewise.
8042 * symfile.c (separate_debug_file_exists): Likewise.
8043 (reread_symbols): Likewise.
8044 (find_separate_debug_file_by_debuglink): Likewise.
8045 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8046 * source.c (add_path): Likewise.
8047 * symtab.c (filename_seen): Likewise.
8048 (file_matches): Likewise.
8049 (print_symbol_info): Likewise.
8050 (maybe_add_partial_symtab_filename): Likewise.
8051 (make_source_files_completion_list): Likewise.
8052 * xml-syscall.c (init_sysinfo): Likewise.
8053 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8054 IS_DIR_SEPARATOR for checking for trailing path separator.
8055
dd90784c
JK
80562011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8057
8058 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8059 label abort_expression.
8060 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8061 DWARF_VALUE_OPTIMIZED_OUT.
8062
3167638f
JK
80632011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8064
8065 Code cleanup.
8066 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8067 to linkage_name. Invert its value. Update the function comment.
8068 (c_type_print_varspec_suffix): Invert it at the caller.
8069 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8070
ce406537
PA
80712011-03-22 Pedro Alves <pedro@codesourcery.com>
8072
8073 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8074 errors when reading the `stop_pc'.
8075 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8076 get_frame_pc.
8077
da5d4055
PM
80782011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8079
8080 * NEWS: Document gdb.Write stream keyword.
8081
29e0eb9c
JK
80822011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8083
8084 Revert:
8085 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8086 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8087 (dwarf2_add_field): Fix new_field->accessibility for
8088 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8089
05775840
PM
80902011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8091
f33edef8 8092 PR python/12183
05775840
PM
8093
8094 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8095 other error classes. Do not print stack trace.
8096
a0cb7835
JK
80972011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8098
8099 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8100 (dwarf2_add_field): Fix new_field->accessibility for
8101 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8102
d19f7eee
UW
81032011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8104
8105 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8106 encountering a load via a non-SP register.
8107
4a2fbb50
UW
81082011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8109
8110 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8111 field in returned unwinder.
8112
3489610d
JB
81132012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8116
8c1a34e7
JB
81172012-03-21 Joel Brobecker <brobecker@adacore.com>
8118
8119 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8120 of xmalloc.
8121
8fbca658
PA
81222012-03-18 Pedro Alves <pedro@codesourcery.com>
8123
8124 * frame.c (frame_unwind_register): Throw an error if unwinding the
8125 register failed.
8126 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8127 an unwind stop reason.
8128 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8129 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8130 UNWIND_UNAVAILABLE>: New.
8131 * inline-frame.c (inline_frame_unwind): Install
8132 default_frame_unwind_stop_reason.
8133 * frame-unwind.c: Include "exceptions.h".
8134 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8135 (default_frame_unwind_stop_reason): New.
8136 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8137 (default_frame_unwind_stop_reason): Declare.
8138 (struct frame_unwind) <stop_reason>: New function pointer.
8139
8140 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8141 * dwarf2-frame.c: Include exceptions.h.
8142 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8143 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8144 computing the CFA. If such an error was thrown, set
8145 unavailable_retaddr.
8146 (dwarf2_frame_unwind_stop_reason): New.
8147 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8148 unavailable.
8149 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8150 (dwarf2_signal_frame_unwind): Ditto.
8151
8152 * amd64-tdep.c: Include "exceptions.h".
8153 (struct amd64_frame_cache): New field "base_p".
8154 (amd64_init_frame_cache): Clear it.
8155 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8156 Avoid reading registers with functions that throw if the register
8157 is not necessary to compute the frame base.
8158 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8159 swallowing NOT_AVAILABLE_ERROR.
8160 (amd64_frame_unwind_stop_reason): New.
8161 (amd64_frame_this_id): Don't build a frame id if the frame base
8162 was unavailable.
8163 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8164 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8165 base_p if the frame base was computable.
8166 (amd64_sigtramp_frame_unwind_stop_reason): New.
8167 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8168 frame base was unavailable.
8169 (amd64_sigtramp_frame_unwind): Install
8170 amd64_sigtramp_frame_unwind_stop_reason.
8171 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8172 base_p if the frame base was computable.
8173 (amd64_epilogue_frame_unwind_stop_reason): New.
8174 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8175 frame base was unavailable.
8176 (amd64_epilogue_frame_unwind): Install
8177 amd64_epilogue_frame_unwind_stop_reason.
8178 * i386-tdep.c: Include "exceptions.h".
8179 (struct i386_frame_cache): New field "base_p".
8180 (i386_init_frame_cache): Clear it.
8181 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8182 Avoid reading registers with functions that throw if the register
8183 is not necessary to compute the frame base.
8184 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8185 swallowing NOT_AVAILABLE_ERROR.
8186 (i386_frame_unwind_stop_reason): New.
8187 (i386_frame_this_id): Don't build a frame id if the frame base was
8188 unavailable.
8189 (i386_frame_prev_register): Handle unavailable SP.
8190 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8191 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8192 base_p if the frame base was computable.
8193 (i386_epilogue_frame_unwind_stop_reason): New.
8194 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8195 base was unavailable.
8196 (i386_epilogue_frame_unwind): Install
8197 i386_epilogue_frame_unwind_stop_reason.
8198 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8199 base_p if the frame base was computable.
8200 (i386_sigtramp_frame_unwind_stop_reason): New.
8201 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8202 base was unavailable.
8203 (i386_sigtramp_frame_unwind): Install
8204 i386_sigtramp_frame_unwind_stop_reason.
8205 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8206 type's size, not the register's.
8207 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8208
8209 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8210 default_frame_unwind_stop_reason.
8211 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8212 (alpha_heuristic_frame_unwind): Ditto.
8213 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8214 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8215 * avr-tdep.c (avr_frame_unwind): Ditto.
8216 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8217 Ditto.
8218 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8219 * frv-tdep.c (frv_frame_unwind): Ditto.
8220 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8221 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8222 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8223 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8224 (hppa_stub_frame_unwind): Ditto.
8225 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8226 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8227 (ia64_libunwind_frame_unwind)
8228 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8229 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8230 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8231 * m32c-tdep.c (m32c_unwind): Ditto.
8232 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8233 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8234 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8235 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8236 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8237 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8238 * mep-tdep.c (mep_frame_unwind): Ditto.
8239 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8240 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8241 (mips_stub_frame_unwind): Ditto.
8242 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8243 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8244 * mt-tdep.c (mt_frame_unwind): Ditto.
8245 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8246 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8247 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8248 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8249 (s390_sigtramp_frame_unwind): Ditto.
8250 * score-tdep.c (score_prologue_unwind): Ditto.
8251 * sh-tdep.c (sh_frame_unwind): Ditto.
8252 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8253 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8254 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8255 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8256 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8257 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8258 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8259 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8260 (sparc64obsd_trapframe_unwind): Ditto.
8261 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8262 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8263 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8264 * v850-tdep.c (v850_frame_unwind): Ditto.
8265 * vax-tdep.c (vax_frame_unwind): Ditto.
8266 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8267 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8268 * xtensa-tdep.c (xtensa_unwind): Ditto.
8269
f23d1b92
PA
82702011-03-18 Pedro Alves <pedro@codesourcery.com>
8271
8272 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8273 there's always a frame. Use get_frame_pc_if_available instead of
8274 get_frame_pc, and if there's no PC available, don't look up a
8275 symtab.
8276
1d4f5741
PA
82772011-03-18 Pedro Alves <pedro@codesourcery.com>
8278
8279 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8280 unavailable PC.
8281
dba09041
PA
82822011-03-18 Pedro Alves <pedro@codesourcery.com>
8283
8284 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8285 gracefully.
8286
9a26e44c
PA
82872011-03-18 Pedro Alves <pedro@codesourcery.com>
8288
8289 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8290 * frame.c (frame_unwind_caller_pc_if_available): New.
8291 * stack.c (frame_info): Handle unavailable PC.
8292
82932011-03-18 Pedro Alves <pedro@codesourcery.com>
8294
8295 * frame.c (frame_unwind_pc): Rename to ...
8296 (frame_unwind_pc_if_available): ... this. New `pc' output
8297 parameter. Change return type to int. Gracefully handle
8298 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8299 happened, or 1 otherwise.
8300 (frame_unwind_pc): Reimplement on top of
8301 frame_unwind_pc_if_available.
8302 (get_frame_func): Rename to ...
8303 (get_frame_func_if_available): New `pc' output parameter. Change
8304 return type to int. Gracefully handle the PC not being available.
8305 (get_frame_func): Reimplement on top of
8306 get_frame_func_if_available.
8307 (select_frame): Handle the PC being unavailable.
8308 (get_prev_frame): Handle the PC being unavailable.
8309 (get_frame_pc_if_available): New.
8310 (get_frame_address_in_block_if_available): New.
8311 (find_frame_sal): Handle the frame PC not being available.
8312 * frame.h (get_frame_pc_if_available): Declare.
8313 (get_frame_address_in_block_if_available): Declare.
8314 (get_frame_func_if_available): Declare.
8315 * stack.c (print_frame_info): Handle the PC being unavailable.
8316 (find_frame_funname): Ditto.
8317 (print_frame): Handle the PC being unavailable.
8318 (get_frame_language): Ditto.
8319 * blockframe.c (get_frame_block): Ditto.
8320 * macroscope.c (default_macro_scope): Ditto.
8321 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8322
83232011-03-18 Pedro Alves <pedro@codesourcery.com>
8324
8325 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8326 NOT_AVAILABLE_ERROR when evaluating the location expression.
8327
83282011-03-18 Pedro Alves <pedro@codesourcery.com>
8329
8330 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8331 returning that the register piece is unavailable/optimized out.
8332 (write_pieced_value): Handle get_frame_register_bytes returning
8333 that the register piece is unavailable/optimized out when doing a
8334 read-modify write of a bitfield.
8335 * findvar.c (value_from_register): Handle get_frame_register_bytes
8336 returning that the register piece is unavailable/optimized out.
8337 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8338 and `unavailablep'. Throw error on bad debug info. Use
8339 frame_register instead of frame_register_read, to fill in the new
8340 arguments.
8341 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8342 and `unavailablep'.
8343 * valops.c: (value_assign): Adjust, and handle
8344 get_frame_register_bytes failing.
8345 * spu-tdep.c: Include exceptions.h.
8346 (spu_software_single_step): Adjust, and handle
8347 get_frame_register_bytes failing.
8348 (spu_get_longjmp_target): Ditto.
8349 * gdbarch.sh (register_to_value): Change to return int. New
8350 parameters `optimizedp' and `unavailablep'.
8351 * gdbarch.h, gdbarch.c: Regenerate.
8352 * i386-tdep.c (i386_register_to_value): Adjust to new
8353 gdbarch_register_to_value interface.
8354 * i387-tdep.c (i387_register_to_value): Ditto.
8355 * i387-tdep.h (i387_register_to_value): Ditto.
8356 * alpha-tdep.c (alpha_register_to_value): Ditto.
8357 * ia64-tdep.c (ia64_register_to_value): Ditto.
8358 * m68k-tdep.c (m68k_register_to_value): Ditto.
8359 * mips-tdep.c (mips_register_to_value): Ditto.
8360 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8361
0fdb4f18
PA
83622011-03-18 Pedro Alves <pedro@codesourcery.com>
8363
8364 * findvar.c (value_of_register): Mark the value as unavailable, if
8365 the register is unavailable.
8366 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8367 (frame_register): New `unavailablep' parameter.
8368 (frame_register_read): Update comment.
8369 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8370 Set it if the register is unavailable. If the register is
8371 unavailable, clear the output buffer.
8372 (frame_register): New `unavailablep' parameter. Pass it down.
8373 (frame_unwind_register): Adjust.
8374 (put_frame_register): Adjust.
8375 (frame_register_read): Adjust. Also return false if the register
8376 is not available.
8377 (frame_register_unwind_location): Adjust.
8378 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8379 is unavailable, mark the value accordingly.
8380 * stack.c (frame_info): Handle unavailable registers.
8381
e69aa73e
PA
83822011-03-18 Pedro Alves <pedro@codesourcery.com>
8383
8384 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8385 simplify, using regcache_cooked_read.
8386
05d1431c
PA
83872011-03-18 Pedro Alves <pedro@codesourcery.com>
8388
8389 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8390 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8391 (regcache_raw_read_unsigned, regcache_raw_read_part)
8392 (regcache_cooked_read, regcache_cooked_read_signed)
8393 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8394 (regcache_cooked_read_ftype): Change return to enum
8395 register_status.
8396 * regcache.c: Include exceptions.h
8397 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8398 (do_cooked_read): Change return to enum register_status. Always
8399 forward to regcache_cooked_read.
8400 (regcache_raw_read): Change return to enum register_status. If
8401 the register is not REG_VALID, memset the buffer. Return the
8402 register's status.
8403 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8404 return the register's status.
8405 (regcache_raw_read_unsigned): Ditto.
8406 (regcache_cooked_read): Change return to enum register_status.
8407 Assert that with read-only regcaches, the register's status must
8408 be known. If the regcache is read-only, and the register is not
8409 REG_VALID, memset the buffer. Return the register's status.
8410 (regcache_cooked_read_signed): Change return to enum
8411 register_status. Handle non-REG_VALID registers and return the
8412 register's status.
8413 (regcache_cooked_read_unsigned): Change return to enum
8414 register_status. Handle non-REG_VALID registers and return the
8415 register's status.
8416 (regcache_xfer_part, regcache_raw_read_part)
8417 (regcache_cooked_read_part): Change return to enum
8418 register_status. Return the register's status.
8419 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8420 unavailable.
8421 (regcache_dump): Handle unavailable cooked registers.
8422 * frame.c (do_frame_register_read): Adjust interface to match
8423 regcache_cooked_read_ftype.
8424 * gdbarch.sh (pseudo_register_read): Change return to enum
8425 register_status.
8426 * gdbarch.h, gdbarch.c: Regenerate.
8427
8428 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8429 register_status.
8430 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8431 register_status. If reading a raw register indicates the raw
8432 register is not valid, return the raw register's status,
8433 otherwise, return REG_VALID.
8434 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8435 register_status. Handle non-REG_VALID raw registers and return
8436 the register's status.
8437 * arm-tdep.c (arm_neon_quad_read)
8438 (arm_pseudo_read): Change return to enum register_status. Handle
8439 non-REG_VALID raw registers and return the register's status.
8440 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8441 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8442 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8443 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8444 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8445 register_status.
8446 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8447 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8448 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8449 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8450 (m32c_pseudo_register_read): Change return to enum
8451 register_status. Adjust.
8452 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8453 enum register_status. Return the register's status.
8454 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8455 register_status. Return the register's status.
8456 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8457 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8458 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8459 * rs6000-tdep.c (move_ev_register_func): New typedef.
8460 (e500_move_ev_register): Use it. Change return to enum
8461 register_status. Return the register's status.
8462 (do_regcache_raw_read): New function.
8463 (do_regcache_raw_write): New function.
8464 (e500_pseudo_register_read): Change return to enum
8465 register_status. Return the register's status. Use
8466 do_regcache_raw_read.
8467 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8468 (dfp_pseudo_register_read): Change return to enum register_status.
8469 Return the register's status.
8470 (vsx_pseudo_register_read): Ditto.
8471 (efpr_pseudo_register_read): Ditto.
8472 (rs6000_pseudo_register_read): Ditto.
8473 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8474 register_status. Return the register's status.
8475 * sh64-tdep.c (pseudo_register_read_portions): New function.
8476 (sh64_pseudo_register_read): Change return to enum
8477 register_status. Use pseudo_register_read_portions. Return the
8478 register's status.
8479 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8480 register_status. Return the register's status.
8481 * sh-tdep.c (pseudo_register_read_portions): New function.
8482 (sh_pseudo_register_read): Change return to enum register_status.
8483 Use pseudo_register_read_portions. Return the register's status.
8484 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8485 enum register_status. Return the register's status.
8486 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8487 * spu-tdep.c (spu_pseudo_register_read_spu)
8488 (spu_pseudo_register_read): Ditto.
8489 * xtensa-tdep.c (xtensa_register_read_masked)
8490 (xtensa_pseudo_register_read): Ditto.
8491 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8492
e10abd8f
PM
84932011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8494
8495 * python/py-value.c (valpy_getitem): Fix formatting of error function
8496 call.
8497
7ea6d463
PM
84982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8499
8500 ARI fixes: Add missing internationalization markups throughout
8501 C source files.
8502 * darwin-nat-info.c: Ditto.
8503 * record.c: Ditto.
8504 * remote.c: Ditto.
8505 * mi/mi-main.c: Ditto.
8506
001083c6
PM
85072011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8508
8509 ARI fixes: Add missing internationalization markups throughout
8510 yacc files.
8511 * c-exp.y: Ditto.
8512 * cp-name-parser.y: Ditto.
8513 * f-exp.y: Ditto.
8514 * m2-exp.y: Ditto.
8515 * objc-exp.y: Ditto.
8516 * p-exp.y: Ditto.
8517
4f1cdeec
PM
85182011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8519
8520 ARI fixes: Messages should have no trailing new lines.
8521 * darwin-nat.c (mach_check_error): Remove trailing new line from
8522 warning function call message.
8523 * record.c (bfdcore_read): Idem for error call.
8524
28e698f1
PM
85252011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8526
8527 * common/signals.c (target_signal_from_host): Add _ markup to error
8528 function call message.
8529 (target_signal_to_host): Add _ markup and remove trailing new line
8530 from warning call message.
8531 (target_signal_from_command): Add _ markup to error function call
8532 message.
8533
99c3dc11
PM
85342011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8535
f33edef8 8536 PR python/12149
99c3dc11
PM
8537
8538 * python/python.c (gdbpy_write): Accept a stream argument and
8539 operate to the appropriate stream.
8540 (gdbpy_flush): Likewise.
8541 (_initialize_python): Add stream constants.
8542 (finish_python_initialization): Add GdbOutputErrorFile class.
8543
c20800be
KY
85442011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8545
8546 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8547
f4a1794a
KY
85482011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8549
8550 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8551 to store_signed_integer. Add debug message when relocating CALL
8552 instructions. Fix formatting of debug message.
8553 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8554
d4862372
JB
85552011-03-17 Joel Brobecker <brobecker@gnat.com>
8556
8557 * target.h (struct target_ops): Remove to_lookup_symbol field.
8558 (target_lookup_symbol): Delete macro.
8559 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8560 (update_current_target, setup_target_debug): Remove handling
8561 of to_lookup_symbol target_ops field.
8562 * ada-tasks.c (get_known_tasks_addr): Remove use of
8563 target_lookup_symbol.
8564 * coffread.c (coff_symtab_read): Likewise.
8565 * dbxread.c (read_dbx_symtab): Ditto.
8566
d645e32e
JB
85672011-03-17 Joel Brobecker <brobecker@gnat.com>
8568
8569 PR gdb/12116:
8570 * configure.ac: Add getthrds declaration check.
8571 * configure, config.in: Regenerate.
8572 * aix-thread.c (getthrds): Declare only if not already declared
8573 in procinfo.h. More declaration out of get_signaled_thread to
8574 global scope.
8575
29703da4
PM
85762011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8577
8578 * python/py-symtab.c: Populate symtab_object_methods,
8579 sal_object_methods.
8580 (stpy_is_valid): New function.
8581 (salpy_is_valid): Ditto.
8582 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8583 (sympy_is_valid): New function.
8584 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8585 (objfpy_is_valid): New function.
8586 * python/py-inferior.c: Populate inferior_object_methods.
8587 (infpy_is_valid): New function.
8588 * python/py-infthread.c: Populate thread_object_methods.
8589 (thpy_is_valid): New function.
8590 * python/py-block.c: Declare block_object_methods. Populate. Declare
8591 block_iterator_object_methods. Populate.
8592 (blpy_is_valid): New function.
8593 (blpy_iter_is_valid): Ditto.
8594
c00f8484
KS
85952011-03-16 Keith Seitz <keiths@redhat.com>
8596
8597 * linespec.c (find_methods): Canonicalize NAME before looking
8598 up the symbol.
8599 (name_end): New function.
8600 (keep_name_info): New function.
8601 (decode_line_1): Use keep_name_info.
8602 (decode_compound): Likewise.
8603 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8604 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8605
8606 PR c++/12273
8607 * linespec.c (locate_first_half): Keep overload information, too.
8608 (decode_compound): Use a string to represent break characters
8609 to escape the loop.
8610 If P points to a break character, do not increment it.
8611 For C++ and Java, keep overload information and relevant keywords.
8612 If we cannot find a symbol, search the minimal symbols.
8613
8614 PR c++/11734
8615 * linespec.c (decode_compound): Rename SAVED_ARG to
8616 THE_REAL_SAVED_ARG.
8617 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8618 single-quotes.
8619 Pass a valid block to lookup_symbol.
8620 (lookup_prefix_sym): Likewise.
8621 (find_method): Construct search name based on SYM_CLASS instead
8622 of SAVED_ARG.
8623 * psymtab.c (lookup_partial_symbol): Add language parameter.
8624 (lookup_symbol_aux_psymtabs): Likewise.
8625 Don't assume that the psymtab we found was the right one. Search
8626 for the desired symbol in the symtab to be certain.
8627 (psymtab_search_name): New function.
8628 (lookup_partial_symbol): Use psymtab_search_name.
8629 Add language parameter.
8630 (read_symtabs_for_function): Add language parameter and pass to
8631 lookup_partial_symbol.
8632 (find_symbol_file_from_partial): Likewise.
8633
c91513d8
PP
86342011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8635
8636 PR gdb/12528
8637 * dwarf2read.c (noop_record_line): New function.
8638 (dwarf_decode_lines): Ignore line tables for GCd functions.
8639
b37520b6
PM
86402011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8641
8642 Fix ARI warnings about new lines at the end of messages, which
8643 are unneeded as there is a new line added at the end of the message
8644 automatically.
8645 * darwin-nat.c (darwin_stop_inferior): Ditto.
8646 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8647 * dfp.c (decimal_to_number): Ditto.
8648 * exec.c (print_section_info): Ditto.
8649 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8650 * osdata.c (get_osdata): Ditto.
8651 * record.c (bfdcore_write): Ditto.
8652 * remote-mips.c (mips_readchar): Ditto.
8653 * remote.c (read_ptid): Ditto.
8654 * ser-mingw.c (ser_windows_raw): Ditto.
8655 * tracepoint.c (add_local_symbols): Ditto.
8656 * windows-nat.c (fake_create_process): Ditto.
8657
b08ee6a2
TT
86582011-03-16 Tom Tromey <tromey@redhat.com>
8659
8660 * tracepoint.c (stop_tracing): Don't declare.
8661 * event-top.c (after_char_processing_hook): Add `(void)'.
8662
9a6f1302
PM
86632011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8664
8665 * NEWS: Add Parameter sub-classing description.
8666
7ceb86b1
KT
86672011-03-16 Kai Tietz <ktietz@redhat.com>
8668
8669 * MAINTAINERS: Update my e-mail address.
8670
efeff6cf
AT
86712011-03-15 Andreas Tobler <andreast@fgznet.ch>
8672
8673 * MAINTAINERS: Add myself for write after approval privileges.
8674
681c238c
MS
86752011-03-15 Michael Snyder <msnyder@vmware.com>
8676
f3df5b08
MS
8677 * frame.c (find_frame_sal): Assert sym is not null.
8678
13f6513c
MS
8679 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8680
50412521
MS
8681 * objc-lang.c (selectors_info): Check strchr for null result.
8682
681c238c
MS
8683 * stabsread.c (define_symbol): Guard against bad stabstring input.
8684
6ced1581
PM
86852011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8686
8687 Remove trailing spaces and tabulations from pascal language
8688 support sources.
8689 p-exp.y: Ditto.
8690 p-lang.c: Ditto.
8691 p-lang.h: Ditto.
8692 p-valprint.c: Ditto.
8693
9373cf26
JK
86942011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8695
8696 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8697 than LOW. Comment it.
8698 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8699 HIGHPC not strictly higher than LOWPC.
8700
9a1edae6
PM
87012011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8702
8703 Fix formatting of function declarations returning a pointer in
8704 previous commit.
8705 * varobj.c (varobj_add_child): Ditto.
8706 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8707 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8708
24e9cda0
UW
87092011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8710
8711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8712 for the "generic" vector ABI used with GCC 4.3 and later.
8713 (ppc64_sysv_abi_return_value): Likewise.
8714
87152011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8716
8717 * infcall.c (call_function_by_hand): Function return value is
8718 always a non_lval, even when using struct_return.
8719
c9174737
PA
87202011-03-15 Pedro Alves <pedro@codesourcery.com>
8721
8722 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8723 (map_display_numbers): New.
8724 (do_delete_display): New.
8725 (undisplay_command): Use map_display_numbers.
8726 (do_enable_disable_display): New.
8727 (enable_disable_display_command): New function.
8728 (enable_display): Delete.
8729 (enable_display_command): New.
8730 (disable_display_command): Reimplement.
8731 (_initialize_printcmd): Adjust "enable display" command to use
8732 `enable_display_command' as callback.
8733
350c6c65
PM
87342011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8735
8736 * NEWS: Add Python breakpoint 'stop' operation.
8737
824446ad
PM
87382011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8739
8740 * NEWS: Delete duplicate entry. Fix typo.
8741
2021ad3a
PM
87422011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8743
8744 Fix ARI warning about function names in first column.
8745 Put prototype declaration on same line as return type.
8746 * objc-exp.y: Ditto.
8747 * p-exp.y: Ditto.
8748 * python/py-stopevent.h: Ditto.
8749 For long function names, split parameters to
8750 allow function name on same line as return type.
8751 * solib-pa64.c: Ditto.
8752 * varobj.c: Ditto.
8753 * varobj.h: Ditto.
8754 For long function declaration, use single line.
8755 * hppa-tdep.h: Ditto.
8756 * inferior.h: Ditto.
8757
7371cf6d
PM
87582011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8759
8760 * python/python.h: Declare gdbpy_should_stop and
8761 gdbpy_breakpoint_has_py_cond.
8762 * python/python.c: Add python.h to includes. Remove python.h from
8763 HAVE_PYTHON definition
8764 (gdbpy_should_stop): New dummy function.
8765 (gdbpy_breakpoint_has_py_cond): New dummy function.
8766 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8767 sub-classing capabilities.
8768 (gdbpy_should_stop): New function.
8769 (gdbpy_breakpoint_has_py_cond): New function.
8770 (local_setattro): New function.
8771 * breakpoint.c (condition_command): Add check for Python 'stop'
8772 operation.
8773 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8774 operation function as part of stop/continue tests.
8775
37b50a69
TT
87762011-03-14 Tom Tromey <tromey@redhat.com>
8777
8778 PR gdb/12576:
8779 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8780 (needs_frame_dwarf_call): Likewise.
8781
eeae04df
PM
87822011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8783
8784 Fix ARI warning about functions without parameters that do not
8785 use (void).
8786 * breakpoint.c (all_tracepoints): Replace () by (void).
8787 * f-exp.y (match_string_literal): Ditto.
8788 (yylex): Ditto.
8789 * m2-exp.y (yylex): Ditto.
8790 * mep-tdep.c (current_me_module): Ditto.
8791 (current_options): Ditto.
8792 (current_cop_data_bus_width): Ditto.
8793 (current_cr_names): Ditto.
8794 (current_cr_is_float): Ditto.
8795 (current_ccr_names): Ditto.
8796 * objc-exp.y (yylex): Ditto.
8797 * p-exp.y (yylex): Ditto.
8798 * remote.c (send_interrupt_sequence): Ditto.
8799 * tracepoint.c (current_trace_status): Ditto.
8800 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8801 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8802
6dc3565d
MS
88032011-03-11 Michael Snyder <msnyder@vmware.com>
8804
1427fe5e
MS
8805 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8806 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8807 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8808 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8809 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8810
60bc018f
MS
8811 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8812 (delete_async_event_handler): Ditto.
8813
f3be5b64
MS
8814 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8815
4c2d5724
MS
8816 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8817
6dc3565d
MS
8818 * top.c (set_verbose): Assert showcmd was found.
8819
4e6ca6d5
MG
88202011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8821
8822 * xtensa-tdep.c (warning_once): Correct style issues.
8823
815a83e4
YQ
88242011-03-11 Yao Qi <yao@codesourcery.com>
8825
8826 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8827
f2eb0bc8
AS
88282011-03-11 Andreas Schwab <schwab@redhat.com>
8829
8830 * common/aclocal.m4: Remove.
8831
b801de47
MG
88322011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8833
8834 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8835 (xtensa_write_register, xtensa_read_register): Likewise.
8836 (xtensa_hextochar): Removed.
8837 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8838
dbab50de
MG
88392011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8840
8841 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8842 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8843 (xtensa_alloc_frame_cache): Add initialization for new fields.
8844 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8845 (warning_once): New function.
8846 (xtensa_insn_kind): New item c0opc_and.
8847 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8848 (call0_track_op): Change arguments. New local variable litbase.
8849 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8850 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8851 in the prologue.
dbab50de 8852 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8853 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8854 Add the variety of updates to handle extended prologues, which now can
8855 conduct dynamic stack adjustments.
8856 (call0_frame_cache): Likewise.
8857 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8858 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8859
b2c04452
MS
88602011-03-10 Michael Snyder <msnyder@vmware.com>
8861
f8f67713
MS
8862 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8863 (cmd_qtframe): Ditto.
8864 (cmd_qtbuffer): Ditto.
8865 (cmd_bigqtbuffer): Ditto.
8866
197f0a60
TT
88672011-03-10 Tom Tromey <tromey@redhat.com>
8868
8869 * tracepoint.c (trace_actions_command): Update.
8870 * thread.c (thread_apply_command): Update.
8871 * reverse.c (delete_bookmark_command): Update.
8872 (bookmarks_info): Update.
8873 * printcmd.c (undisplay_command): Update.
8874 * memattr.c (mem_enable_command): Update.
8875 (mem_disable_command): Update.
8876 (mem_delete_command): Update.
8877 * inferior.c (detach_inferior_command): Update.
8878 (kill_inferior_command): Update.
8879 (remove_inferior_command): Update.
8880 * cli/cli-utils.h (struct get_number_or_range_state): New.
8881 (init_number_or_range): Declare.
8882 (get_number_or_range): Update.
8883 * cli/cli-utils.c (init_number_or_range): New function.
8884 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8885 static variables.
8886 (number_is_in_list): Update.
8887 * breakpoint.h (get_tracepoint_by_number): Update.
8888 * breakpoint.c (map_breakpoint_numbers): Update for change to
8889 get_number_or_range.
8890 (find_location_by_number): Use get_number, not
8891 get_number_or_range.
8892 (trace_pass_set_count): New function.
8893 (trace_pass_command): Update for change to get_number_or_range.
8894 Rework loop logic.
8895 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8896 'state' parameter.
8897
ecec24e6
PM
88982011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8899
8900 * python/py-param.c (add_setshow_generic): Add set/show callback
8901 parameters. Register Python object context.
8902 (get_show_value): New function.
8903 (get_set_value): New function.
8904 (call_doc_function): New function.
8905 (get_doc_string): Move behind get_show_value/get_set_value.
8906
6d6c6b1f
JK
89072011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8908
8909 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8910
68d6df83
MG
89112011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8912
dbab50de 8913 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8914 (xtensa_write_register): Likewise.
8915 (xtensa_hextochar): Add comment and update to match coding conventions.
8916 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8917 (execute_l32e, execute_s32e, execute_code): Update comments.
8918 (xtensa_exception_handler_t): Update to match coding conventions.
8919 (xtensa_insn_kind): Likewise.
8920
85c9d6a6
MS
89212011-03-09 Michael Snyder <msnyder@vmware.com>
8922
8923 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8924
91495617
PA
89252011-03-09 Pedro Alves <pedro@codesourcery.com>
8926
8927 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8928
eb8c0621
TT
89292011-03-09 Tom Tromey <tromey@redhat.com>
8930
8931 * thread.c (restore_selected_frame): Handle frame_level == -1.
8932 (make_cleanup_restore_current_thread): Use
8933 get_selected_frame_if_set.
8934 * frame.h (get_selected_frame_if_set): Declare.
8935 * frame.c (get_selected_frame_if_set): New function.
8936
9f37bbcc
PA
89372011-03-09 Pedro Alves <pedro@codesourcery.com>
8938
8939 * cli/cli-cmds.c (shell_escape): Use lbasename.
8940 * coffread.c (coff_start_symtab): Constify parameter.
8941 (complete_symtab): Constify `name' parameter.
8942 (coff_symtab_read): Constify `filestring' local.
8943 (coff_getfilename): Constify return and `result' local.
8944 Use lbasename.
8945 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8946 * linux-fork.c (info_checkpoints_command): Use lbasename.
8947 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8948 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8949 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8950 * procfs.c (procfs_make_note_section): Use lbasename.
8951 * tui/tui-io.c (printable_part): Constity return and parameter.
8952 Use lbasename.
8953 (print_filename): Constify parameters, and local `s'.
8954 (tui_rl_display_match_list): Constify local `temp'.
8955
f8de3c55
JK
89562011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8957
8958 Revert:
8959 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8960 Fix DWARF-3+ DW_AT_accessibility default assumption.
8961 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8962 cu->header.version >= 3.
8963
d9837b00
YQ
89642011-03-09 Yao Qi <yao@codesourcery.com>
8965
8966 * common/Makefile.in: Remove.
8967 * common/configure: Remove.
8968 * common/configure.ac: Remove.
8969
e637a4f5
YQ
89702011-03-09 Yao Qi <yao@codesourcery.com>
8971
8972 Revert:
8973 2011-02-11 Yao Qi <yao@codesourcery.com>
8974
8975 * common/Makefile.in: Add copyright header.
8976
8977 2011-02-11 Yao Qi <yao@codesourcery.com>
8978
8979 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8980 libcommon.a.
8981 * configure.ac: Add common to sub dir.
8982 * configure: Regenerate.
8983
f976a05d
MG
89842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8985
8986 * xtensa-tdep.c (call0_ret): New function.
8987 (xtensa_skip_prologue): Speed up analysis.
8988
57041825
MG
89892011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8990
8991 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8992 while executing MI command -data-list-changed-registers.
8993
08b9c608
MG
89942011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8995
8996 * xtensa-tdep.c (xtensa_read_register): New function.
8997 (xtensa_write_register): New function.
8998 (xtensa_find_register_by_name): New function.
8999 (xtensa_windowed_frame_cache): Update comments in type description.
9000 (xtensa_frame_cache): Likewise.
9001 (xtensa_window_interrupt_insn): New function.
9002 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9003 (xtensa_insn_kind): Add new instructions.
9004 (rwx_special_register): New function.
9005 (call0_classify_opcode): Add new instructions to the analysis.
9006 (a0_saved, a7_saved, a11_saved): New variables.
9007 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9008 (execute_l32e): New function.
9009 (execute_s32e): New function.
9010 (xtensa_exception_handler_t): New type.
9011 (execute_code): New function.
9012 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9013 analysis for Xtensa Window Exception handlers.
9014
4d1acb11
MG
90152011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9016
98689b25
MG
9017 * xtensa-tdep.c (TX_PS): New.
9018 (windowing_enabled): Update to count for Call0 ABI.
9019 (xtensa_hextochar): New.
9020 (xtensa_init_reggroups): Make algorithm generic.
9021 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9022
90232011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9024
9025 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9026
d3f323f3
MS
90272011-03-08 Michael Snyder <msnyder@vmware.com>
9028
3dcabaa8
MS
9029 * i386-tdep.c (i386_follow_jump): Check return value of
9030 target_read_memory.
9031 (i386_analyze_struct_return): Ditto.
9032 (i386_skip_probe): Ditto.
9033 (i386_match_insn): Ditto.
9034 (i386_skip_noop): Ditto.
9035 (i386_analyze_frame_setup): Ditto.
9036 (i386_analyze_register_saves): Ditto.
9037 (i386_skip_prologue): Ditto.
9038 (i386_skip_main_prologue): Ditto.
9039
13b3fd9b
MS
9040 * target.c (read_whatever_is_readable): Fix memory leak.
9041
d3f323f3
MS
9042 * i386-tdep.c (i386_process_record): Document fall through.
9043
421d5c74
JK
90442011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9045
9046 Fix DWARF-3+ DW_AT_accessibility default assumption.
9047 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9048 cu->header.version >= 3.
9049
63154eca
PA
90502011-03-08 Pedro Alves <pedro@codesourcery.com>
9051
9052 * remote.c (remote_check_symbols): Skip if the target has no
9053 execution.
9054
f1a507a1
JB
90552011-03-08 Joel Brobecker <brobecker@adacore.com>
9056
9057 * target.c (read_whatever_is_readable): Reformat comment,
9058 with a minor typo fix. Minor reformatting of the code.
9059
36073a92
YQ
90602011-03-08 Yao Qi <yao@codesourcery.com>
9061
9062 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9063 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9064 Use cached result instead of calling displaced_in_arm_mode again.
9065 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9066 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9067 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9068 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9069 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9070 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9071 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9072 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9073 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9074 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9075 (arm_catch_kernel_helper_return): Likewise.
9076 * gdb/arm-tdep.h : Update function declarations.
9077
d3f323f3 90782011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9079
e0e40094
MS
9080 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9081
0b2381f5
MS
9082 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9083
0350914a
MS
9084 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9085
69feea6f
MS
9086 * elfread.c (elf_symtab_read): Stop memory leak.
9087
e6040cbd
MS
9088 * main.c (captured_main): Fix memory leak.
9089
052874e8
AS
90902011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9091
9092 * ada-lang.c (compare_names): Call is_name_suffix with string1
9093 instead of string2.
9094
b11896a5
TT
90952011-03-07 Tom Tromey <tromey@redhat.com>
9096
9097 * xcoffread.c (xcoff_sym_fns): Update.
9098 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9099 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9100 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9101 (symbol_file_add_with_addrs_or_offsets): Likewise.
9102 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9103 * somread.c (som_sym_fns): Update.
9104 * psymtab.h (require_partial_symbols): Declare.
9105 * psymtab.c (require_partial_symbols): New function.
9106 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9107 (ALL_OBJFILE_PSYMTABS): Undef.
9108 (ALL_PSYMTABS): Move from psympriv.h.
9109 (lookup_partial_symtab, find_pc_sect_psymtab)
9110 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9111 (find_last_source_symtab_from_partial)
9112 (forget_cached_source_info_partial)
9113 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9114 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9115 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9116 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9117 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9118 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9119 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9120 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9121 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9122 psymtabs.
9123 * mipsread.c (ecoff_sym_fns): Update.
9124 * machoread.c (macho_sym_fns): Update.
9125 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9126 (read_psyms): New function.
9127 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9128 (elf_sym_fns_lazy_psyms): New global.
9129 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9130 dwarf2_build_psymtabs.
9131 * dbxread.c (aout_sym_fns): Update.
9132 * coffread.c (coff_sym_fns): Update.
9133
fda326dd
TT
91342011-03-07 Tom Tromey <tromey@redhat.com>
9135
9136 * infrun.c (print_exited_reason): Include inferior id and pid in
9137 message.
9138
aeaec162
TT
91392011-03-07 Tom Tromey <tromey@redhat.com>
9140
9141 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9142 parameter.
9143 (target_has_execution_1): Update.
9144 (target_has_execution_current): Declare.
9145 (target_has_execution): Call target_has_execution_current.
9146 (default_child_has_execution): Update.
9147 * target.c (default_child_has_execution): Add 'the_ptid'
9148 parameter.
9149 (target_has_execution_1): Likewise.
9150 (target_has_execution_current): New function.
9151 (add_target): Update.
9152 (init_dummy_target): Update.
9153 * remote-m32r-sdi.c (m32r_has_execution): New function.
9154 (init_m32r_ops): Use it.
9155 * record.c (record_core_has_execution): Now static. Add
9156 'the_ptid' parameter.
9157 * inferior.c (have_live_inferiors): Don't save current thread.
9158 Use target_has_execution_1.
9159
08e14083
YQ
91602011-03-07 Yao Qi <yao@codesourcery.com>
9161
9162 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9163
c05d19c5
JB
91642011-03-07 Joel Brobecker <brobecker@adacore.com>
9165
9166 * elfread.c (elf_symtab_read): Minor reformatting.
9167
3e6ef9e4
JB
91682011-03-07 Joel Brobecker <brobecker@adacore.com>
9169
9170 * objc-lang.c (selectors_info): Minor reformatting.
9171
dbb8534f
JB
91722011-03-07 Joel Brobecker <brobecker@adacore.com>
9173
9174 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9175
dd70cc93
JB
91762011-03-07 Joel Brobecker <brobecker@adacore.com>
9177 Michael Snyder <msnyder@vmware.com>
9178
9179 * ada-valprint.c (ada_val_print_array): Move the declaration of
9180 "byte_order" and "elttype" inside the block where these variables
9181 are actually used. Remove some special handling for the case
9182 where "elttype" and "eltlen" are null. Replace by a comment
9183 and a couple of assertion checks.
9184
b27cf2b3
MS
91852011-03-05 Michael Snyder <msnyder@vmware.com>
9186
9187 * source.c (add_path): Replace semicolon at end of block.
9188 * dwarf2expr.c (execute_stack_op): Ditto.
9189
5387a0c6
MF
91902011-03-05 Mike Frysinger <vapier@gentoo.org>
9191
9192 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9193 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9194 (bfin-*-*): Likewise.
9195
e3aa49af
MS
91962011-03-05 Michael Snyder <msnyder@vmware.com>
9197
82ae4854
MS
9198 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9199 * mdebugread.c (parse_symbol): Ditto.
9200 * parse.c (parse_exp_in_context): Ditto.
9201 * source.c (add_path): Ditto.
9202 * utils.c (gnu_debuglink_crc32): Ditto.
9203 * varobj.c (variable_language): Ditto.
9204
e3aa49af
MS
9205 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9206
154f592e
MS
92072011-03-04 Michael Snyder <msnyder@vmware.com>
9208
da3ecdc6
MS
9209 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9210
9cc89665
MS
9211 * symfile.c (simple_overlay_update): Check for null return value
9212 from lookup_minimal_symbol.
9213
154f592e
MS
9214 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9215
63ffa6ee
TJB
92162011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9217
9218 * eval.c (parse_and_eval_address_1): Remove function.
9219 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9220 instead of parse_and_eval_address_1.
9221 * value.h (parse_and_eval_address_1): Remove prototype.
9222
a17d146e
MS
92232011-03-04 Michael Snyder <msnyder@vmware.com>
9224
9225 * remote.c (putpkt_binary): Document that case stmt falls through.
9226
1a6a67de
TJB
92272011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9228
9229 * breakpointc (print_it_typical): Move NULL check from here...
9230 (print_bp_stop_message): ... to here.
9231
488919c4
MS
92322011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9233
9234 * breakpoint.c (enable_command): Use break instead of continue,
9235 and fill in a missing break.
9236 (disable_command): Ditto.
9237
1e182ce8
UW
92382011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9239
9240 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9241 (terminal_save_ours): Remove misleading comment.
9242 (inflow_inferior_data_cleanup): Free ttystate.
9243 (inflow_inferior_exit): Likewise.
9244 (copy_terminal_info): Copy ttystate.
9245
9246 * serial.c (serial_copy_tty_state): New function.
9247 * serial.h (serial_copy_tty_state): Add prototype.
9248 (struct serial_ops): Add copy_tty_state callback.
9249 * ser-base.c (ser_base_copy_tty_state): New function.
9250 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9251 * ser-go32.c (dos_copy_tty_state): New function.
9252 (dos_ops): Install copy_tty_state callback.
9253 * ser-mingw.c (_initialize_ser_windows): Likewise.
9254 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9255 * ser-unix.c (hardwire_copy_tty_state): New function.
9256 (_initialize_ser_hardwire): Install it.
9257
b2c5f112
MS
92582011-03-04 Michael Snyder <msnyder@vmware.com>
9259
2abae994
MS
9260 * breakpoint.c (create_breakpoint): Add missing break statement.
9261
7f5936f9
MS
9262 Reverting this patch:
9263 * infcall.c (call_function_by_hand): Add break statements for lint.
9264
b2c5f112
MS
9265 Reverting this patch:
9266 * cli/cli-script.c (script_from_file): Add break for lint.
9267
42b1321c
MS
92682011-03-04 Michael Snyder <msnyder@vmware.com>
9269
9270 * solib.c (reload_shared_libraries_1): Close memory leak.
9271
3e2a0cee
TT
92722011-03-03 Tom Tromey <tromey@redhat.com>
9273
9274 PR gdb/12538:
9275 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9276 DW_STRING is NULL.
9277
58397cb7
MS
92782011-03-03 Michael Snyder <msnyder@vmware.com>
9279
2e3fd767
MS
9280 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9281 fields of struct 'st' to zero.
9282
58397cb7
MS
9283 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9284 sal.pspace before calling set_current_source_symtab_and_line.
9285
ced54c8f
YQ
92862011-03-03 Yao Qi <yao@codesourcery.com>
9287
9288 * Makefile.in (configure-common): Remove. Let Makefile
9289 in dir common to rebuild itself.
9290 (common/Makefile): Likewise.
9291
3351ea09
JB
92922011-03-03 Joel Brobecker <brobecker@adacore.com>
9293
9294 * utils.c (parse_escape): Add i18n markup in error message.
9295
bf9f652a
YQ
92962011-03-03 Yao Qi <yao@codesourcery.com>
9297
9298 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9299 ARM_PC_REGNUM.
9300 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9301 (displaced_write_reg, displaced_read_reg): Likewise.
9302 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9303 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9304 (cleanup_branch): Replace magic number 14 and 15 with
9305 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9306
d42de051
MS
93072011-03-02 Michael Snyder <msnyder@vmware.com>
9308
240f9570
MS
9309 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9310
10dd8b54
MS
9311 * cli/cli-script.c (script_from_file): Add break for lint.
9312
b98bd911
MS
9313 * mdebugread.c (parse_partial_symbols): Fix indent.
9314
3494b66d
MS
9315 * target-descriptions.c (tdesc_gdb_type): No need to call
9316 xstrdup, callee saves a copy.
9317
daac021a
MS
9318 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9319
c38d16a7
MS
9320 * infcall.c (call_function_by_hand): Add break statements for lint.
9321
905b671b
MS
9322 * utils.c (parse_escape): Escape the escape char.
9323
f2eb0bc8 9324 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9325 PyList_Append fails.
9326 (gdbpy_inferiors): Error out if build_inferior_list fails.
9327
8c6a60d1
MS
9328 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9329 a function call.
9330
d42de051
MS
9331 * record.c (record_restore): Move printf to before error return.
9332
4db71c0b
YQ
93332011-03-02 Yao Qi <yao@codesourcery.com>
9334
9335 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9336 is_thumb and insn_size.
9337 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9338 on both ARM and Thumb mode.
9339 (arm_process_displaced_insn): Set is_thumb and insn_size.
9340 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9341 (arm_displaced_step_fixup): Likewise.
9342
a9dc8dcc
MS
93432011-03-01 Michael Snyder <msnyder@vmware.com>
9344
53624a93
MS
9345 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9346
77766669
MS
9347 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9348
62d5b8da
MS
9349 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9350
5e9e105f
MS
9351 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9352
dc19db01
MS
9353 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9354 with xmalloc.
9355
5ce64950
MS
9356 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9357 which shadows function parameter.
9358
a0aa2878
MS
9359 * tracepoint.c (create_tsv_from_upload): Superfluous call
9360 to xstrdup. Callee already calls xstrdup.
9361
e325fb69
MS
9362 * linespec.c (decode_line_1): Remove unnecessary null check.
9363
21cbba77
MS
9364 * tracepoint.c (scope_info): Fix mem leak, remove underused
9365 variable.
9366
63360adc
MS
9367 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9368 superfluous null check.
9369
18ea20ac 9370 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9371 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9372
d014929c
MS
9373 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9374
6e9130cf
MS
9375 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9376 be null.
9377
5f01dbc0
MS
9378 * linespec.c (decode_line_1): Check for null before dereference.
9379
d684ab85
MS
9380 * reverse.c (record_restore): Move null-check to before pointer
9381 dereference.
9382
bfffb7e3
MS
9383 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9384
a9dc8dcc
MS
9385 * objc-lang.c (selectors_info): Add explanitory comment.
9386 (classes_info): Ditto.
9387
478fd957
UW
93882011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9389
9390 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9391 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9392 versions of the trampoline. Handle Thumb vs. ARM addresses.
9393 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9394 (arm_linux_init_abi): Install it.
9395 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9396 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9397
0480cefa
MS
93982011-02-28 Michael Snyder <msnyder@vmware.com>
9399
ac50ab3b
MS
9400 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9401 a little bigger, to avoid possibility of an overflow.
9402
f63fbe86
MS
9403 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9404 buffers a little bigger, to avoid possibility of an overflow.
9405
9e91a352
MS
9406 * coffread.c (coff_getfilename): Add check to avoid overflow.
9407
f2eb0bc8 9408 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9409 avoid overflow.
9410 (classes_info): Error out on too long REGEXP.
9411
098ab512
MS
9412 * infrun.c (handle_inferior_event): Remove unused function call.
9413
bcbd1de9
MS
9414 * fork-child.c (fork_inferior): Remove ifdef'd code and
9415 unused variable.
9416
2e456570
MS
9417 * linux-thread-db.c (attach_thread): Discard unused value.
9418
14571dad
MS
9419 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9420
a9cbf802
MS
9421 * remote.c (remote_get_noisy_reply): Discard unused value.
9422 (remote_vcont_resume): Ditto.
9423 (remote_stop_ns): Ditto.
9424
5715d26e
MS
9425 * linespec.c (decode_objc): Delete unused variable.
9426
4a9bca80
MS
9427 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9428
f47fb265
MS
9429 * dwarf2read.c (add_partial_symbol): Discard unused values.
9430 (read_base_type): Delete unused variable.
9431
e81cff30
MS
9432 * dbxread.c (read_dbx_symtab): Discard unused value.
9433
262acaeb
MS
9434 * eval.c (evaluate_subexp_standard): Delete unused variable,
9435 and discard unused values.
9436
df983543
MS
9437 * infcmd.c (_initialize_infcmd): Discard unused values.
9438
89acf84d
MS
9439 * stabsread.c (rs6000_builtin_type): Missing break statement.
9440
ab8b8aca
MS
9441 * dbxread.c (process_one_symbol): Discard unused value.
9442
6b4511ab
MS
9443 * coffread.c (coff_end_symtab): Delete unused variable.
9444
e8e80198
MS
9445 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9446 (dwarf2_add_typedef): Delete unused variable.
9447 (read_namespace): Ditto.
9448 (dwarf_decode_macros): Ditto.
9449
976aa66e
MS
9450 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9451
5b92b49f
MS
9452 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9453
91e8df85
MS
9454 * p-valprint.c (pascal_val_print): Discard unused value.
9455
899500d6
MS
9456 * utils.c (nquery): Call va_end before return;
9457 (yquery): Ditto.
9458 (query): Ditto.
9459
0480cefa
MS
9460 * proc-service.c (ps_plog): Call va_end before return.
9461
fb6a3ed3
TT
94622011-02-28 Tom Tromey <tromey@redhat.com>
9463
9464 * python/python.c (gdbpy_value_cst): New global.
9465 (_initialize_python): Initialize it.
9466 * python/python-internal.h (gdbpy_value_cst): Declare.
9467 * python/py-value.c (convert_value_from_python): Use
9468 gdbpy_value_cst.
9469
c05202a1
MS
94702011-02-28 Michael Snyder <msnyder@vmware.com>
9471
e463f587
MS
9472 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9473
c38eea1a
MS
9474 * breakpoint.c (catch_syscall_completer): Free malloced list.
9475
3ef09ab5
MS
9476 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9477
8f9a01ee
MS
9478 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9479 (lval_func_check_synthetic_pointer): Ditto.
9480 (lval_func_free_closure): Fix use-after-free.
c05202a1 9481
477d0d57
TT
94822011-02-28 Tom Tromey <tromey@redhat.com>
9483
9484 * psymtab.c (expand_partial_symbol_tables): Use
9485 ALL_OBJFILE_PSYMTABS.
9486
20937029
JK
94872011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9488
9489 * objc-lang.c (selectors_info): Error on too long REGEXP.
9490
907b7f4f
MS
94912011-02-28 Michael Snyder <msnyder@vmware.com>
9492
92e96192
MS
9493 * python/py-param.c (set_parameter_value): Add missing
9494 break statement.
9495
907b7f4f
MS
9496 * linux-record.c (record_linux_system_call): Add missing
9497 break statement.
9498
12c5a436
UW
94992011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9500
9501 * breakpoint.c (print_one_breakpoint_location): Remove unused
9502 argument PRINT_ADDRESS_BITS. Update callers.
9503 (print_one_breakpoint): Likewise.
9504
170b53b2
UW
95052011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9506
9507 * breakpoint.c (wrap_indent_at_field): New function.
9508 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9509 Allocate ui_stream locally instead of using STB argument.
9510 (print_one_breakpoint_location): Update call.
9511 * ui-out.c (ui_out_query_field): New function.
9512 * ui-out.h (ui_out_query_field): Add prototype.
9513
8ab1f94d
JB
95142011-02-28 Joel Brobecker <brobecker@adacore.com>
9515
9516 From Michael Snyder <msnyder@vmware.com>
9517 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9518
7d488639
MS
95192011-02-27 Michael Snyder <msnyder@vmware.com>
9520
ae179fba
MS
9521 * objc-lang.c (selectors_info): Prevent string overrun.
9522
086dbf66
MS
9523 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9524 error in strncpy.
9525
f2eb0bc8 9526 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9527 outer scope.
9528
7d488639
MS
9529 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9530 param with a local variable of the same name.
9531
3bd0f5ef
MS
95322011-02-27 Michael Snyder <msnyder@vmware.com>
9533
9534 * value.c (value_from_history_ref): New function.
9535 * value.h (value_from_history_ref): Export.
9536 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9537 to parse value history references.
9538 * cli/cli-utils.h (get_number_trailer): Update comment.
9539
95402011-02-27 Michael Snyder <msnyder@vmware.com>
9541
9542 * inferior.c (detach_inferior_command): Use get_number_or_range.
9543 (kill_inferior_command): Ditto.
9544 (remove_inferior_command): Ditto.
9545 (initialize_inferiors): Make command names plural.
9546 Update help strings.
9547
766062f6
MS
95482011-02-27 Michael Snyder <msnyder@vmware.com>
9549
9550 * darwin-nat-info.c: Fix comment typo.
9551 * dwarf2expr.h: Ditto.
9552 * fbsd-nat.c: Ditto.
9553 * fbsd-nat.h: Ditto.
9554 * frame-unwind.h: Ditto.
9555 * frame.h: Ditto.
9556 * hppa-hpux-tdep.c: Ditto.
9557 * i386-linux-nat.c: Ditto.
9558 * linux-nat.c: Ditto.
9559 * nbsd-nat.c: Ditto.
9560 * nbsd-nat.h: Ditto.
9561 * ppc-linux-tdep.c: Ditto.
9562 * serial.c: Ditto.
9563 * ui-file.h: Ditto.
9564 * tui/tui-winsource.c: Ditto.
9565
f2c4ead5
MS
95662011-02-26 Michael Snyder <msnyder@vmware.com>
9567
86b887df
MS
9568 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9569
66fd3b1e
MS
9570 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9571
8c814cdd
MS
9572 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9573 with a local variable of the same name.
9574
6d5e094a 9575 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9576 param with a local variable of the same name.
6d5e094a 9577 (i387_supply_xsave): Ditto.
e5b3d7d6 9578
5eee517d
MS
9579 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9580 that it does not shadow a function parameter.
9581
8fbf6b93
MS
9582 * i386-nat.c (i386_length_and_rw_bits): Document that case
9583 statement is meant to fall through.
9584
cb969d61
MS
9585 * expprint.c (dump_subexp_body_standard): Document that case
9586 statement is meant to fall through.
9587
f2c4ead5
MS
9588 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9589 dead if statement. Condition can't be false.
9590
b021a221
MS
95912011-02-25 Michael Snyder <msnyder@vmware.com>
9592
9593 * arm-tdep.c: Fix typos in comments.
9594 * bsd-uthread.c: Ditto.
9595 * completer.c: Ditto.
9596 * corelow.c: Ditto.
9597 * cp-namespace.c: Ditto.
9598 * cp-support.c: Ditto.
9599 * cris-tdep.c: Ditto.
9600 * dbxread.c: Ditto.
9601 * dwarf2read.c: Ditto.
9602 * frame.h: Ditto.
9603 * gdbtypes.h: Ditto.
9604 * inferior.h: Ditto.
9605 * mdebugread.c: Ditto.
9606 * mips-tdep.c: Ditto.
9607 * ppc-linux-nat.c: Ditto.
9608 * ppc-linux-tdep.c: Ditto.
9609 * printcmd.c: Ditto.
9610 * sol-thread.c: Ditto.
9611 * solib-frv.c: Ditto.
9612 * solist.h: Ditto.
9613 * sparc64-tdep.c: Ditto.
9614 * spu-tdep.c: Ditto.
9615 * stabsread.c: Ditto.
9616 * symfile.c: Ditto.
9617 * valops.c: Ditto.
9618 * varobj.c: Ditto.
9619 * vax-nat.c: Ditto.
9620 * python/py-block.c: Ditto.
9621 * python/py-symbol.c: Ditto.
9622 * python/py-symtab.c: Ditto.
9623 * python/py-value.c: Ditto.
9624 * tui/tui-win.c: Ditto.
9625
c82c0b55
MS
96262011-02-25 Michael Snyder <msnyder@vmware.com>
9627
9628 * inferior.c (print_inferior): Accept a string instead of an int
9629 for requested_inferiors, and use get_number_or_range to parse it.
9630 (info_inferiors_command): Pass args string to print_inferior.
9631 (initialize_inferiors): Change help string for info inferiors.
9632 * inferior.h (print_inferior): Export prototype change.
9633
ee00cd23
TT
96342011-02-25 Tom Tromey <tromey@redhat.com>
9635
9636 * common/ax.def (invalid2): Set to 0x31.
9637
0502ed8c
JK
96382011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9639
9640 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9641 L and plongest.
9642 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9643 use L and plongest.
9644 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9645
2c9de912
MS
96462011-02-24 Michael Snyder <msnyder@vmware.com>
9647
9648 * Makefile.in (clean): Make clean should remove generated files
9649 observer.h and observer.inc.
9650
a04b0428
JB
96512011-02-24 Joel Brobecker <brobecker@adacore.com>
9652
9653 Revert the following patch (not approved yet):
9654 2011-02-21 Hui Zhu <teawater@gmail.com>
9655 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9656 * ax-gdb.c (gen_printf_expr_callback): New function.
9657 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9658 * ax-general.c (ax_memcpy): New function.
9659 (ax_print): Handle "printf".
9660 (ax_reqs): Ditto.
9661 * ax.h (ax_memcpy): Forward declare.
9662 * common/ax.def (invalid2): Removed.
9663 (printf): New entry.
9664 * printcmd.c (printcmd.h): New include.
9665 (string_printf): New function.
9666 (ui_printf): Removed.
9667 (printf_command): Remove static. Call string_printf.
9668 (eval_command): Call string_printf.
9669 * printcmd.h: New file.
9670 * tracepoint.c (validate_actionline,
9671 encode_actions_1): handle printf_command.
9672
2b52013f
TT
96732011-02-23 Tom Tromey <tromey@redhat.com>
9674
9675 * ax-general.c (ax_pick): Add missing newline.
9676
e5a67952
MS
96772011-02-23 Michael Snyder <msnyder@vmware.com>
9678
9679 * breakpoint.c (breakpoint_1): Change first argument from an int
9680 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9681 breakpoints rather than just one. Use new function
e5a67952
MS
9682 'number_is_in_list' to implement.
9683 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9684 (watchpoints_info): Ditto.
9685 (tracepoints_info): Ditto.
9686 (maintenance_info_breakpoints): Ditto.
9687 (_initialize_breakpoint): Update help strings to reflect the fact
9688 that these functions can now take more than one argument.
9689 * cli/cli-utils.c (number_is_in_list): New function.
9690 * cli/cli-utils.h (number_is_in_list): Export.
9691
96922011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9693
9694 * memattr.c (mem_enable_command): Use get_number_or_range.
9695 (mem_disable_command): Ditto.
9696 (mem_delete_command): Ditto.
9697 (_initialize_mem): Tweak usage message to reflect multiple
9698 arguments.
9699
6e6fbe60
DE
97002011-02-22 Doug Evans <dje@google.com>
9701
9702 Add gdb.lookup_global_symbol python function.
9703 * NEWS: Add entry.
9704 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9705 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9706 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9707
79b97fa8
TT
97082011-02-22 Tom Tromey <tromey@redhat.com>
9709
9710 * language.c (language_class_name_from_physname): Rename
9711 'curr_language' argument to 'lang'; use in body.
9712
298f437a
MS
97132011-02-22 Michael Snyder <msnyder@vmware.com>
9714
9715 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9716
b7ea3126
PA
97172011-02-22 Pedro Alves <pedro@codesourcery.com>
9718
9719 * frame-unwind.h: Fix comment to mention the this frame, not the
9720 next.
9721
58ee6d60
TT
97222011-02-22 Tom Tromey <tromey@redhat.com>
9723
9724 * symfile.c (auto_solib_limit): Remove.
9725 * symfile.h (auto_solib_limit): Remove.
9726
36238dbc
JB
97272011-02-22 Joel Brobecker <brobecker@adacore.com>
9728
9729 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9730
aea5b279
MS
97312011-02-21 Michael Snyder <msnyder@vmware.com>
9732
9733 * gdbthread.h (print_thread_info): Change prototype.
9734 * thread.c (print_thread_info): Accept char* instead of int for
9735 requested_threads argument. Use new function number_is_in_list
9736 to determine which threads to list.
9737 (info_threads_command): Pass char* to print_thread_info.
9738 * cli/cli-utils.c (number_is_in_list): New function.
9739 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9740 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9741 print_thread_info.
9742 (print_one_inferior): Ditto.
9743 (mi_cmd_list_thread_groups): Ditto.
9744
8caa75ee
JK
97452011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9746
9747 * common/Makefile.in (CFLAGS): New.
9748 (COMPILE): Add $(CFLAGS).
9749
ea666128
TT
97502011-02-21 Tom Tromey <tromey@redhat.com>
9751
9752 * breakpoint.c (catch_syscall_command_1): Fix typo.
9753
e9cafbcc
TT
97542011-02-21 Tom Tromey <tromey@redhat.com>
9755
9756 * reverse.c: Include cli-utils.h.
9757 * printcmd.c: Include cli-utils.h.
9758 (string_printf): Use skip_spaces.
9759 * cli/cli-utils.h: New file.
9760 * cli/cli-utils.c: New file.
9761 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9762 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9763 * breakpoint.h (get_number, get_number_or_range): Move to
9764 cli-utils.h.
9765 * breakpoint.c: Include cli-utils.h.
9766 (get_number_trailer, get_number, get_number_or_range)
9767 (ep_skip_leading_whitespace): Move to cli-utils.c.
9768 (create_breakpoint_sal, find_condition_and_thread)
9769 (decode_static_tracepoint_spec, watch_command_1)
9770 (watch_maybe_just_location, ep_parse_optional_if_clause)
9771 (catch_fork_command_1, catch_exec_command_1)
9772 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9773 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9774 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9775 (HFILES_NO_SRCDIR): Add cli-utils.h.
9776 (cli-utils.o): New target.
9777
f67fd822
PM
97782011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9779
9780 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9781 before calling discard_all_inferiors.
9782
c9def01d
UW
97832011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9784
9785 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9786 (struct builtin_opencl_type): Remove.
9787 (builtin_opencl_type): Change return type to "struct type **".
9788 (lookup_opencl_vector_type): Update caller.
9789 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9790 (build_opencl_types): Install plain array of "struct type *"
9791 instead of "struct builtin_opencl_type".
9792
e3039479
UW
97932011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9794 Ulrich Weigand <uweigand@de.ibm.com>
9795
9796 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9797 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9798 (struct arm_linux_hwbp_cap): New type.
9799 (arm_linux_get_hwbp_cap): New function.
9800 (arm_linux_get_hw_breakpoint_count): Likewise.
9801 (arm_linux_get_hw_watchpoint_count): Likewise.
9802 (arm_linux_can_use_hw_breakpoint): Likewise.
9803 (arm_hwbp_type): New type.
9804 (arm_hwbp_control_t): Likewise.
9805 (struct arm_linux_hw_breakpoint): Likewise.
9806 (struct arm_linux_thread_points): Likewise.
9807 (arm_threads): New global variable.
9808 (arm_linux_find_breakpoints_by_tid): New function.
9809 (arm_hwbp_control_initialize): Likewise.
9810 (arm_hwbp_control_is_enabled): Likewise.
9811 (arm_hwbp_control_disable): Likewise.
9812 (arm_linux_hw_breakpoint_initialize): Likewise.
9813 (arm_linux_get_hwbp_type): Likewise.
9814 (arm_linux_hw_watchpoint_initialize): Likewise.
9815 (arm_linux_hw_breakpoint_equal): Likewise.
9816 (arm_linux_insert_hw_breakpoint1): Likewise.
9817 (arm_linux_remove_hw_breakpoint1): Likewise.
9818 (arm_linux_insert_hw_breakpoint): Likewise.
9819 (arm_linux_remove_hw_breakpoint): Likewise.
9820 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9821 (arm_linux_insert_watchpoint): Likewise.
9822 (arm_linux_remove_watchpoint): Likewise.
9823 (arm_linux_stopped_data_address): Likewise.
9824 (arm_linux_stopped_by_watchpoint): Likewise.
9825 (arm_linux_watchpoint_addr_within_range): Likewise.
9826 (arm_linux_new_thread): Likewise.
9827 (arm_linux_thread_exit): Likewise.
9828 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9829 related target callbacks. Register arm_linux_new_thread and
9830 arm_linux_thread_exit.
9831 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9832 * arm-tdep.c (arm_pc_is_thumb): Make global.
9833 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9834
b5db5dfc
UW
98352011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9836
9837 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9838 per-frame locations while within a function epilogue.
9839
e25b2cfa
PM
98402011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9841
9842 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9843 to GNU coding standards.
9844
4af53f97
PM
98452011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9846
9847 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9848 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9849 (ser_windows_close): Only call CancelIo if function exists.
9850 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9851 to check for existence of CancelIo function in kernel32 DLL.
9852
d0e92d82
HZ
98532011-02-21 Hui Zhu <teawater@gmail.com>
9854
9855 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9856 * ax-gdb.c (gen_printf_expr_callback): New function.
9857 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9858 * ax-general.c (ax_memcpy): New function.
9859 (ax_print): Handle "printf".
9860 (ax_reqs): Ditto.
9861 * ax.h (ax_memcpy): Forward declare.
9862 * common/ax.def (invalid2): Removed.
9863 (printf): New entry.
9864 * printcmd.c (printcmd.h): New include.
9865 (string_printf): New function.
9866 (ui_printf): Removed.
9867 (printf_command): Remove static. Call string_printf.
9868 (eval_command): Call string_printf.
9869 * printcmd.h: New file.
9870 * tracepoint.c (validate_actionline,
9871 encode_actions_1): handle printf_command.
9872
7d357efd
MS
98732011-02-19 Michael Snyder <msnyder@vmware.com>
9874
9875 * reverse.c (delete_one_bookmark): Argument is now bookmark
9876 id rather than pointer to bookmark struct.
9877 (delete_bookmark_command): Use get_number_or_range.
9878 (goto_bookmark_command): Parse with get_number instead of strtoul.
9879 (bookmark_1): New function. Print info for one bookmark.
9880 (bookmarks_info): Use get_number_or_range and bookmark_1.
9881
7a45ebd7
MS
98822011-02-18 Michael Snyder <msnyder@vmware.com>
9883
f2eb0bc8 9884 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9885 get_number_or_range.
65ebfb52 9886 (thread_apply_command): Ditto.
7a45ebd7 9887
94d5e490
TT
98882011-02-18 Tom Tromey <tromey@redhat.com>
9889
9890 * common/ax.def: New file.
9891 * ax.h (enum agent_op): Use ax.def.
9892 * ax-general.c (aop_map): Use ax.def.
9893
c7f96d2b
TT
98942011-02-18 Tom Tromey <tromey@redhat.com>
9895
9896 * ax-general.c (aop_map): Add pick and rot.
9897 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9898 <DW_OP_rot>: Implement.
9899 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9900 (ax_pick): Declare.
9901 * ax-general.c (ax_pick): New function.
9902
66694b75
TT
99032011-02-18 Tom Tromey <tromey@redhat.com>
9904
9905 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9906
eeaafae2
JK
99072011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9908 Tom Tromey <tromey@redhat.com>
9909
9910 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9911 make_symbol_overload_list_block with NULL BLOCK.
9912 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9913
3c3fe74c
PA
99142011-02-18 Pedro Alves <pedro@codesourcery.com>
9915
9916 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9917 * breakpoint.h (get_number_or_range): Declare.
9918 * printcmd.c (ALL_DISPLAYS): Declare.
9919 (delete_display): Reimplement taking a display pointer.
9920 (undisplay_command): Accept a range of displays to delete, using
9921 get_number_or_range.
9922
13163d80
PM
99232011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9924
9925 * c-valprint.c (c_val_print): Add embedded_offset to address
9926 for arrays of unspecified length.
9927 * p-valprint.c (pascal_val_print): Likewise.
9928
b434a28f
YQ
99292011-02-18 Yao Qi <yao@codesourcery.com>
9930
9931 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9932 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9933 (thumb_process_displaced_insn): New.
9934 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9935 call to arm_process_displaced_insn.
9936 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9937
9f6f94ff
TT
99382011-02-17 Tom Tromey <tromey@redhat.com>
9939
9940 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9941 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9942 compile_dwarf_to_ax. No longer static. Call
9943 dwarf2_compile_cfa_to_ax.
9944 (locexpr_tracepoint_var_ref): Update.
9945 (loclist_tracepoint_var_ref): Update.
9946 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9947 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9948 argument; add 'gdbarch' and 'pc'.
9949 (dwarf2_compile_cfa_to_ax): New function.
9950 (dwarf2_frame_cache): Update.
9951
e67ad678
JB
99522011-02-17 Joel Brobecker <brobecker@adacore.com>
9953
9954 * ada-lang.c (ada_type_of_array): Fix the size of the array
9955 in the case of an unconstrained packed array.
9956
946ebb0d
YQ
99572011-02-17 Yao Qi <yao@codesourcery.com>
9958
9959 * common/Makefile.in: Add more targets for make.
9960
1ba1b353
TT
99612011-02-16 Tom Tromey <tromey@redhat.com>
9962
9963 * dwarf2loc.c (unimplemented): Fix typo.
9964
b1bfef65
TT
99652011-02-16 Tom Tromey <tromey@redhat.com>
9966
9967 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9968 (compile_dwarf_to_ax) <default>: Use unimplemented.
9969 <DW_OP_deref>: Update.
9970 (disassemble_dwarf_expression): Update.
9971 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9972 (decode_locdesc): Update.
9973 * dwarf2expr.h (dwarf_stack_op_name): Update.
9974
5f1e6f19
TT
99752011-02-16 Tom Tromey <tromey@redhat.com>
9976
9977 * ax.h (struct aop_map) <name>: Now const.
9978
a0c78a73
PA
99792011-02-16 Tom Tromey <tromey@redhat.com>
9980
9981 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9982 than axs_rvalue.
9983
946ebb0d 99842011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9985
9986 * infrun.c (get_displaced_step_closure_by_addr): New.
9987 * inferior.h: Declare it.
9988 * arm-tdep.c: (arm_pc_is_thumb): Call
9989 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9990 returns non-NULL.
9991
08807d5a
PA
99922011-02-16 Pedro Alves <pedro@codesourcery.com>
9993 Jan Kratochvil <jan.kratochvil@redhat.com>
9994
9995 gdb/
9996 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9997
29976f3f
PA
99982011-02-16 Pedro Alves <pedro@codesourcery.com>
9999 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 * value.c (value_contents_copy_raw): Extend describing comment.
10002 Assert that the destination contents we're overwriting are wholly
10003 available.
fb68ae73 10004 (value_contents_copy): Extend describing comment.
29976f3f 10005
cd24cfaa
PA
100062011-02-16 Pedro Alves <pedro@codesourcery.com>
10007 Jan Kratochvil <jan.kratochvil@redhat.com>
10008
10009 * value.c (value_available_contents_eq): Remove redundant local
10010 variables. Fix available contents comparision.
10011 * value.h (value_available_contents_eq): Extend describing
10012 comment.
10013
60bbf338
YQ
100142011-02-16 Yao Qi <yao@codesourcery.com>
10015
10016 * thread.c (info_threads_command): Add missing i18n markup and remove
10017 trailing newline.
10018
17450429
PP
100192011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10020
10021 * breakpoint.c (longjmp_names): New variable.
10022 (struct breakpoint_objfile_data): New type.
10023 (breakpoint_objfile_key): New variable.
10024 (msym_not_found): New variable.
10025 (msym_not_found_p): New predicate.
10026 (get_breakpoint_objfile_data): New function.
10027 (create_overlay_event_breakpoint): Check per-objfile cache for
10028 symbols first.
10029 (create_longjmp_master_breakpoint): Likewise.
10030 (create_std_terminate_master_breakpoint): Likewise.
10031 (create_exception_master_breakpoint): Likewise.
10032 (_initialize_breakpoint): Register per-objfile data key.
10033
af02033e
PP
100342011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10035
10036 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10037 parameter value.
10038 (create_longjmp_master_breakpoint): Loop over longjmp names.
10039 (create_std_terminate_master_breakpoint): Const-propagate parameter
10040 value.
10041 (update_breakpoints_after_exec): Adjust.
10042 (breakpoint_re_set): Adjust.
10043
60f98dde
MS
100442011-02-15 Michael Snyder <msnyder@vmware.com>
10045
cdf99611
MS
10046 * thread.c (info_threads_command): Process arg as thread id,
10047 or list of thread ids.
10048 (thread_find_command): New command.
10049 (_initialize_thread): Document argument for info threads.
10050 Document 'thread find' command.
10051 * NEWS: Document new command "thread find".
60f98dde 10052
0feedb2c
JK
100532011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10056 * aclocal.m4: Regenerated with aclocal-1.11.1.
10057 * common/configure: Regenerate with autoconf-2.64.
10058
648cd113
KW
100592011-02-15 Ken Werner <ken.werner@de.ibm.com>
10060
10061 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10062 bool data type to a size of one byte.
10063
5657161f
PA
100642011-02-15 Pedro Alves <pedro@codesourcery.com>
10065 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 * target.c (memory_xfer_live_readonly_partial): Document where to
10068 look for interface description.
10069
494e194e
YQ
100702011-02-15 Yao Qi <yao@codesourcery.com>
10071
10072 PR tdep/12352
10073 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10074 order to store PC value on stack instead of text section.
10075
d9492458
TJB
100762011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10077
10078 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10079 the EFP register set size.
10080 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10081 data from the VMX register.
10082 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10083 and write data from/to the VMX register.
10084
cdf99611
MS
100852011-02-14 Michael Snyder <msnyder@vmware.com>
10086
10087 * command.h (enum command_class): New class 'no_set_class', for
10088 "show" commands without a corresponding "set" command.
10089 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10090 * copying.c (_initialize_copying): Ditto for "show copying" and
10091 "show warranty".
10092 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10093 "show version".
10094 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10095 which there is no corresponding "set" command (eg. "show copying").
10096
424447ee
PA
100972011-02-14 Pedro Alves <pedro@codesourcery.com>
10098 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * exec.c (section_table_available_memory): Change `len' parameter
10101 type to ULONGEST.
10102 * exec.h (section_table_available_memory): Ditto.
10103 * value.h (read_value_memory): Rename the `offset' parameter to
10104 `embedded_offset'.
10105
c0f61f9c 101062011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10107 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10108
10109 * memrange.c (compare_mem_ranges): Mention sort order in
10110 describing comment.
10111 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10112 * tracepoint.c (traceframe_available_memory): Extend comment to
10113 mention what happens to RESULT when the target does not support
10114 the query.
10115
6bfc80c7
PA
101162011-02-14 Pedro Alves <pedro@codesourcery.com>
10117 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10120 range.
10121
e7303042
PA
101222011-02-14 Pedro Alves <pedro@codesourcery.com>
10123
10124 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10125 No longer handle NULL values.
10126
8af8e3bc
PA
101272011-02-14 Pedro Alves <pedro@codesourcery.com>
10128
10129 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10130 * value.c: Include "exceptions.h".
10131 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10132 generic error.
10133 * cp-abi.c: Include gdb_assert.h.
10134 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10135 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10136 errors.
10137 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10138 parameters. No longer returns -1 on error.
10139 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10140 `val' parameters.
10141 * cp-valprint.c: Include exceptions.h.
10142 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10143 the baseclass_offset. Handle unavailable base classes. Use
10144 val_print_invalid_address.
10145 * p-valprint.c: Include exceptions.h.
10146 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10147 when fetching the baseclass_offset. No longer expect
10148 baseclass_offset returning -1. Handle unavailable base classes.
10149 Use val_print_invalid_address.
10150 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10151 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10152 `embedded_offset' and `val' parameters. Adjust.
10153 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10154 parameter, and change its type to gdb_byte pointer. Add
10155 `embedded_offset' and `val' parameters. Adjust. No longer expect
10156 baseclass_offset returning -1.
10157 (value_dynamic_cast): Use value_contents_for_printing rather than
10158 value_contents. Adjust.
10159 (search_struct_field): No longer expect baseclass_offset returning
10160 -1.
10161 (search_struct_method): If reading memory from the target is
10162 necessary, wrap it in a new value to pass to baseclass_offset. No
10163 longer expect baseclass_offset returning -1.
10164 (find_method_list): No longer expect baseclass_offset returning
10165 -1. Use value_contents_for_printing rather than value_contents.
10166 * valprint.c (val_print_invalid_address): New function.
10167 * valprint.h (val_print_invalid_address): Declare.
10168 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10169 and `val' parameters. No longer expect baseclass_offset returning
10170 -1. Adjust.
10171 * gnu-v2-abi.c: Include "exceptions.h".
10172 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10173 parameters. Handle unavailable memory. Recurse through
10174 gnuv2_baseclass_offset directly, rather than through
10175 baseclass_offset. No longer returns -1 on not found, instead
10176 throw an error.
10177 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10178 `val' parameters. Adjust.
10179
1b28d0b3
PA
101802011-02-14 Pedro Alves <pedro@codesourcery.com>
10181
10182 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10183 almost but not quite adjacent.
10184
ec0a52e1
PA
101852011-02-14 Pedro Alves <pedro@codesourcery.com>
10186
10187 * value.h (value_entirely_available): Declare.
10188 * value.c (value_entirely_available): New function.
10189 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10190 real type if the pointer is unavailable.
10191
24e6bcee
PA
101922011-02-14 Pedro Alves <pedro@codesourcery.com>
10193
10194 * valops.c (value_repeat): Use read_value_memory instead of
10195 read_memory.
10196
39d37385
PA
101972011-02-14 Pedro Alves <pedro@codesourcery.com>
10198
10199 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10200 * value.c (value_contents_copy_raw, value_contents_copy): New
10201 functions.
10202 (value_primitive_field): Use value_contents_copy_raw instead of
10203 memcpy.
10204 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10205 memcpy.
10206 (value_array, value_slice): Ditto.
10207 * valarith.c (value_subscripted_rvalue): Use
10208 value_contents_copy_raw instead of memcpy.
10209
a3d34bf4
PA
102102011-02-14 Pedro Alves <pedro@codesourcery.com>
10211
10212 <unavailable> references.
10213
10214 * valops.c (get_value_at): Use value_from_contents_and_address,
10215 avoiding read_memory.
10216
9fc6d940
PA
102172011-02-14 Pedro Alves <pedro@codesourcery.com>
10218
10219 * c-valprint.c (c_val_print): Print a string with unavailable
10220 contents as an array.
10221
5467c6c8
PA
102222011-02-14 Pedro Alves <pedro@codesourcery.com>
10223
10224 * value.h (unpack_bits_as_long): Delete declaration.
10225 (unpack_value_bits_as_long): Declare.
10226 (unpack_value_field_as_long): Declare.
10227 (value_field_bitfield): Declare.
10228 * value.c (unpack_bits_as_long): Rename to...
10229 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10230 value parameters. Return the extracted result in a new output
10231 parameter. If the value contents are unavailable, return false,
10232 otherwise return true.
10233 (unpack_value_bits_as_long): New.
10234 (unpack_field_as_long): Rename to...
10235 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10236 Add embedded_offset and value parameters. Return the extracted
10237 result in a new output parameter. If the value contents are
10238 unavailable, return false, otherwise return true.
10239 (unpack_value_field_as_long): New.
10240 (unpack_field_as_long_1): New.
10241 (unpack_field_as_long): Reimplement as wrapper around
10242 unpack_value_field_as_long_1.
10243 (value_field_bitfield): New function.
10244 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10245 unpack_value_bits_as_long. Mark the value as unavailable, if it
10246 is unavailable.
10247 * jv-valprint.c (java_print_value_fields): Use
10248 value_field_bitfield.
10249 * p-valprint.c (pascal_object_print_value_fields): Use
10250 value_field_bitfield.
10251 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10252
3158c6ed
PA
102532011-02-14 Pedro Alves <pedro@codesourcery.com>
10254
10255 * value.c (get_internalvar_integer): Also return the int value of
10256 TYPE_CODE_INT INTERNALVAR_VALUE values.
10257 (set_internalvar): Don't special case TYPE_CODE_INT.
10258
9fbdca0d
PA
102592011-02-14 Pedro Alves <pedro@codesourcery.com>
10260
10261 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10262 INTERNALVAR_POINTER.
10263 <pointer>: Delete.
10264 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10265 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10266 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10267
c8c1c22f
PA
102682011-02-14 Pedro Alves <pedro@codesourcery.com>
10269
10270 * value.h (value_available_contents_eq): Declare.
10271 * value.c (find_first_range_overlap): New function.
10272 (value_available_contents_eq): New function.
10273 * valprint.c (val_print_array_elements): Use
10274 value_available_contents_eq.
10275 * ada-valprint.c (val_print_packed_array_elements): Use
10276 value_available_contents_eq.
10277 * jv-valprint.c (java_value_print): Use
10278 value_available_contents_eq.
10279
e6e4e701
PA
102802011-02-14 Pedro Alves <pedro@codesourcery.com>
10281
10282 * target.c (target_read_live_memory): New function.
10283 (memory_xfer_live_readonly_partial): New.
10284 (memory_xfer_partial): If reading from a traceframe, fallback to
10285 reading unavailable read-only memory from read-only regions of
10286 live target memory.
10287 * tracepoint.c (disconnect_tracing): Adjust.
10288 (set_current_traceframe): New, factored out from
10289 set_traceframe_number.
10290 (set_traceframe_number): Reimplement to only change the traceframe
10291 number on the GDB side.
10292 (do_restore_current_traceframe_cleanup): Adjust.
10293 (make_cleanup_restore_traceframe_number): New.
10294 (cur_traceframe_number): New global.
10295 (tfile_open): Set cur_traceframe_number to no traceframe.
10296 (set_tfile_traceframe): New function.
10297 (tfile_trace_find): If looking up a traceframe using any method
10298 other than by number, make sure the current tfile traceframe
10299 matches gdb's current traceframe. Update the current tfile
10300 traceframe if the lookup succeeded.
10301 (tfile_fetch_registers, tfile_xfer_partial)
10302 (tfile_get_trace_state_variable_value): Make sure the remote
10303 traceframe matches gdb's current traceframe.
10304 * remote.c (remote_traceframe_number): New global.
10305 (remote_open_1): Set it to -1.
10306 (set_remote_traceframe): New function.
10307 (remote_fetch_registers, remote_store_registers)
10308 (remote_xfer_memory, remote_xfer_partial)
10309 (remote_get_trace_state_variable_value): Make sure the remote
10310 traceframe matches gdb's current traceframe.
10311 (remote_trace_find): If looking up a traceframe using any method
10312 other than by number, make sure the current remote traceframe
10313 matches gdb's current traceframe. Update the current remote
10314 traceframe if the lookup succeeded.
10315 * infrun.c (fetch_inferior_event): Adjust.
10316 * tracepoint.h (set_current_traceframe): Declare.
10317 (get_traceframe_number, set_traceframe_number): Add describing
10318 comments.
10319
e6ca34fc
PA
103202011-02-14 Pedro Alves <pedro@codesourcery.com>
10321
10322 Mark pieces of values as unavailable if the corresponding memory
10323 is unavailable.
10324
10325 * valops.c: Include tracepoint.h.
10326 (value_fetch_lazy): Use read_value_memory.
10327 (read_value_memory): New.
10328 * value.h (read_value_memory): Declare.
10329 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10330 * exec.c (section_table_available_memory): New function.
10331 * exec.h (section_table_available_memory): Declare.
10332
2a7498d8
PA
103332011-02-14 Pedro Alves <pedro@codesourcery.com>
10334
10335 * Makefile.in (SFILES): Add memrange.c.
10336 (HFILES_NO_SRCDIR): Add memrange.h.
10337 (COMMON_OBS): Add memrange.o.
10338 * memrange.c: New file.
10339 * memrange.h: New file.
10340 * tracepoint.c: Include memrange.h.
10341 (struct mem_range): Delete.
10342 (mem_range_s): Delete.
10343 (traceframe_available_memory): New function.
10344 * tracepoint.h (traceframe_available_memory): Declare.
10345
b3b9301e
PA
103462011-02-14 Pedro Alves <pedro@codesourcery.com>
10347
10348 * target.h (struct traceframe_info): Forward declare.
10349 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10350 (struct target_ops) <to_traceframe_info>: New field.
10351 (target_traceframe_info): New.
10352 * target.c (update_current_target): Inherit and default
10353 to_traceframe_info.
10354 * remote.c (PACKET_qXfer_traceframe_info): New.
10355 (remote_protocol_features): Register qXfer:traceframe-info:read.
10356 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10357 (remote_traceframe_info): New.
10358 (init_remote_ops): Install it.
10359 (_initialize_remote): Install "set/show remote traceframe-info"
10360 commands.
10361 * tracepoint.h (parse_traceframe_info): Declare.
10362 * tracepoint.c (struct mem_range): New.
10363 (mem_range_s): New typedef.
10364 (struct traceframe_info): New.
10365 (traceframe_info): New global.
10366 (free_traceframe_info): New function.
10367 (clear_traceframe_info): New function.
10368 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10369 info.
10370 (build_traceframe_info): New function.
10371 (tfile_traceframe_info): New function.
10372 (init_tfile_ops): Install tfile_traceframe_info.
10373 (traceframe_info_start_memory, free_result): New functions.
10374 (memory_attributes, traceframe_info_elements): New globals.
10375 (parse_traceframe_info, get_traceframe_info): New functions.
10376 * features/traceframe-info.dtd: New file.
10377 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10378
4e07d55f
PA
103792011-02-14 Pedro Alves <pedro@codesourcery.com>
10380
10381 Base support for <unavailable> value contents.
10382
4e07d55f
PA
10383 * value.h (value_bytes_available): Declare.
10384 (mark_value_bytes_unavailable): Declare.
10385 * value.c (struct range): New struct.
10386 (range_s): New typedef.
10387 (ranges_overlap): New function.
10388 (range_lessthan): New function.
10389 (ranges_contain_p): New function.
10390 (struct value) <unavailable>: New field.
10391 (value_bytes_available): New function.
10392 (mark_value_bytes_unavailable): New function.
10393 (require_not_optimized_out): Constify parameter.
10394 (require_available): New function.
10395 (value_contents_all, value_contents): Require all bytes be
10396 available.
10397 (value_free): Free `unavailable'.
10398 (value_copy): Copy `unavailable'.
10399 * valprint.h (val_print_unavailable): Declare.
10400 * valprint.c (valprint_check_validity): Rename `offset' parameter
10401 to `embedded_offset'. If printing a scalar, check whether the
10402 value chunk is available.
10403 (val_print_unavailable): New.
10404 (val_print_scalar_formatted): Check whether the value is
10405 available.
10406 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10407 pretty-printing unavailable values.
10408
bc9a5551
JK
104092011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10410
10411 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10412 * c-typeprint.c (c_type_print_args): Update the function comment. New
10413 variable param_type, initialize it. Remove const/volatile qualifiers
10414 for language_cplus and !show_artificial. Use param_type.
10415
93b55aa1
JK
104162011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10417
10418 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10419 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10420 * symtab.h (struct symtab) <next>: Comment extension.
10421
181d9476
YQ
104222011-02-12 Yao Qi <yao@codesourcery.com>
10423
10424 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10425
b708a5c7
JK
104262011-02-11 Yao Qi <yao@codesourcery.com>
10427
10428 * common/Makefile.in: Add copyright header.
10429
c5187ac6
PA
104302011-02-11 Pedro Alves <pedro@codesourcery.com>
10431
10432 * infrun.c (proceed): Move switching out and in of tfind mode from
10433 here ...
10434 (fetch_inferior_event): ... to here.
10435
4f3e6fb7
YQ
104362011-02-11 Yao Qi <yao@codesourcery.com>
10437
10438 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10439 libcommon.a.
10440 * configure.ac: Add common to sub dir.
10441 * configure: Regenerate.
10442
b708a5c7
JK
104432011-02-11 Yao Qi <yao@codesourcery.com>
10444
10445 Build libcommon.a.
10446
10447 * common/Makefile.in: New.
10448 * common/configure.ac: New.
10449 * common/aclocal.m4: New.
10450 * common/configure: Generate.
10451
2287cc7e
PA
104522011-02-10 Pedro Alves <pedro@codesourcery.com>
10453
10454 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10455 side of the parenthesis.
10456
10457 Merge from GCC:
10458 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10459 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10460
fd62cb89
MS
104612011-02-08 Michael Snyder <msnyder@vmware.com>
10462
10463 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10464
56d2815c
JK
104652011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10468 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10469 psubd and paddd.
10470
4f7d61a8
JK
104712011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10472
10473 PR 12361.
10474 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10475 phsubsw.
10476 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10477 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10478
54fcddd0
UW
104792011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10480
10481 * dwarf2read.c (read_subroutine_type): Set special calling
10482 convention flag for functions compiled by IBM XL C for OpenCL.
10483 * ppc-sysv-tdep.c: Include "dwarf2.h"
10484 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10485 calling convention.
10486 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10487 IBM OpenCL vector types calling convention.
10488 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10489 (ppc_sysv_abi_broken_return_value): Likewise.
10490 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10491 types calling convention.
10492 (ppc64_sysv_abi_return_value): Likewise.
10493 * spu-tdep.c: Include "dwarf2.h"
10494 (spu_return_value): Implement IBM OpenCL vector types calling
10495 convention.
10496
d6dafb7c
UW
104972011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10498
10499 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10500 correct ABI for AltiVec vector arguments.
10501
32b72a42
PA
105022011-02-07 Pedro Alves <pedro@codesourcery.com>
10503
10504 * valprint.c (val_print): Extend comment.
10505 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10506 interface explanation to val_print.
10507 (ada_val_print_array): Adjust comment to current interface.
10508 (print_field_values): Adjust comment to current interface.
10509 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10510 explanation to val_print.
10511 * f-valprint.c (f_val_print): Ditto.
10512 * jv-valprint.c (java_val_print): Ditto.
10513 * m2-valprint.c (m2_val_print): Ditto.
10514 * p-valprint.c (pascal_val_print): Ditto.
10515
9998af43
TJB
105162011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10517
10518 * breakpoint.c (parse_breakpoint_sals): Fix description.
10519
505500db 105202011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10521 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10522
10523 * python/py-inferior.c (python_on_normal_stop): New function.
10524 (python_on_resume): New function.
10525 (python_inferior_exit): New function.
10526 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10527 inferior_exit observers.
10528 * python/py-evtregistry.c: New file.
10529 * python/py-threadevent.c : New file.
10530 * python/py-event.c: New file.
10531 * python/py-evts.c: New file.
10532 * python/py-continueevent.c: New file.
10533 * python/py-bpevent.c: New file.
10534 * python/py-signalevent.c: New file.
10535 * python/py-exetiedevent.c: New file.
10536 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10537 Move struct breakpoint_object from here...
10538 * python/python-internal.h: ... to here.
10539 * python/py-event.h: New file.
10540 * python/py-events.h: New file.
10541 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10542 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10543 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10544 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10545 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10546 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10547 Add build rules for all the above.
10548
9e0ac564
TT
105492011-02-04 Tom Tromey <tromey@redhat.com>
10550
10551 * dwarf2read.c (dwarf2_section_empty_p): New function.
10552 (dwarf2_read_section): Use dwarf2_section_empty_p.
10553 (dwarf2_section_size): New function.
10554 (dwarf2_get_section_info): Unconditionally read section.
10555 (dwarf2_read_index): Use dwarf2_section_empty_p.
10556 (partial_read_comp_unit_head): Use dwarf2_section_size.
10557 (dwarf2_symbol_mark_computed): Likewise.
10558
eee5b35e
DD
105592011-02-04 David Daney <ddaney@caviumnetworks.com>
10560
10561 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10562
385203ed
DD
105632011-02-04 David Daney <ddaney@caviumnetworks.com>
10564
10565 * mips-linux-tdep.c: Include xml-syscall.h.
10566 (mips_linux_get_syscall_number): New function.
10567 (mips_linux_init_abi): Add calls to
10568 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10569 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10570 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10571 * syscalls/mips-n32-linux.xml: New file.
10572 * syscalls/mips-n64-linux.xml: New file.
10573 * syscalls/mips-o32-linux.xml: New file.
10574
9277c30c
UW
105752011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10576
10577 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10578 Complain about inverted range entries.
10579 (dwarf2_record_block_ranges): Likewise.
10580
a3be7890
TJB
105812011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10582
10583 Fix some typos.
10584 * breakpoint.c (update_watchpoint): Fix name of the
10585 update_global_location_list function.
10586 (print_one_breakpoint): Fix typo.
10587 (_initialize_breakpoint): Remove extra space in hbreak help
10588 string.
10589 * breakpoint.h (struct bp_location) <length>: Fix field
10590 description.
10591
041274d8
PA
105922011-02-04 Pedro Alves <pedro@codesourcery.com>
10593
10594 * regcache.c (registers_changed_ptid): Don't explictly always
10595 clear `current_regcache'. Only clear current_thread_ptid and
10596 current_thread_arch when PTID matches. Only reinit the frame
10597 cache if PTID matches the current inferior_ptid. Move alloca(0)
10598 call to ...
10599 (registers_changed): ... here.
10600
c1c2ab58
UW
106012011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10602
10603 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10604 starts with __stack_chk_guard as stack guard symbol.
10605
9011945e
AB
106062011-02-03 Andrew Burgess <aburgess@broadcom.com>
10607
10608 * disasm.c (compare_lines): Handle the end of sequence markers
10609 within the line table to better support disassembling over
10610 compilation unit boundaries.
10611
e0634ccf
UW
106122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10613
10614 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10615 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10616 implementation even if no symbols are available.
10617 (thumb_analyze_prologue): Update call to skip_prologue_function.
10618 (arm_analyze_prologue): Likewise.
10619
0e9e9abd
UW
106202011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10621
10622 * arm-tdep.c: Include "observer.h".
10623 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10624 (arm_exidx_data_key): New static variable.
10625 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10626 (struct arm_exidx_data): Likewise.
10627 (arm_exidx_data_free): New function.
10628 (arm_compare_exidx_entries): Likewise.
10629 (arm_obj_section_from_vma): Likewise.
10630 (arm_exidx_new_objfile): Likewise.
10631 (arm_find_exidx_entry): Likewise.
10632 (arm_exidx_fill_cache): Likewise.
10633 (arm_exidx_unwind_sniffer): Likewise.
10634 (arm_exidx_unwind): New global variable.
10635 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10636 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10637 observer. Register arm_exidx_data_key as objfile data.
10638
2e9e421f
UW
106392011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10640
10641 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10642 due to accessing uninitialized variable. Fix indentation.
10643
580688f3
PA
106442011-02-02 Pedro Alves <pedro@codesourcery.com>
10645
10646 * c-valprint.c (c_value_print): When doing virtual base pointer
10647 adjustment, create a new value with adjusted contents rather than
10648 changing the contents of the value being printed (and getting it
10649 wrong).
10650
3d2c1d41
PA
106512011-02-02 Pedro Alves <pedro@codesourcery.com>
10652
10653 * xml-support.c (xml_find_attribute): New.
10654 (xinclude_start_include): Use it.
10655 * xml-support.h (xml_find_attribute): Declare.
10656 * memory-map.c (memory_map_start_memory)
10657 (memory_map_start_property): Use xml_find_attribute.
10658 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10659 xml_find_attribute.
10660 * remote.c (start_thread): Use xml_find_attribute.
10661 * solib-target.c (library_list_start_segment)
10662 (library_list_start_section, library_list_start_library)
10663 (library_list_start_list): Use xml_find_attribute.
10664 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10665 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10666 (tdesc_start_field): Use xml_find_attribute.
10667
0af3e2db
UW
106682011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10669
10670 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10671 (BUILD_OCL_VTYPES): Update.
10672
c1039e3c
JB
106732011-02-02 Joel Brobecker <brobecker@adacore.com>
10674
10675 * configure.ac: Work around non-GNU sed limitation when computing
10676 python version number.
10677 * configure: Regenerate.
10678
600ea1be
JK
106792011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 Fix debug printing of TYPE_INSTANCE.
10682 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10683 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10684
56c12414
JK
106852011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10686
10687 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10688 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10689 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10690 * ada-operator.inc: Rename the file to ...
10691 * ada-operator.def: ... here, wrap all the entries by macro OP.
10692 * expprint.c (op_name_standard): Remove all the entries. Include
10693 "std-operator.def" instead.
10694 * expression.h (enum exp_opcode): Include "std-operator.def" and
10695 "ada-operator.def". Move all the entries ...
10696 * std-operator.def: ... here, wrap all the entries by macro OP.
10697
c52b559d
PP
106982011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10699
10700 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10701 * breakpoint.c (remove_jit_event_breakpoints): New function.
10702 * jit.c (jit_descriptor_addr): Delete.
10703 (registering_code): Delete.
10704 (clear_int): Delete.
10705 (jit_inferior_data): New variable.
10706 (struct jit_inferior_data): New type.
10707 (get_jit_inferior_data): New function.
10708 (jit_inferior_data_cleanup): New function.
10709 (jit_read_descriptor): Adjust.
10710 (jit_register_code): Adjust.
10711 (jit_breakpoint_re_set_internal): New function; move code here ...
10712 (jit_inferior_init): ... from here.
10713 (jit_breakpoint_re_set): Adjust.
10714 (jit_reset_inferior_data_and_breakpoints): New function.
10715 (jit_inferior_created_observer): Adjust.
10716 (jit_inferior_exit_hook): Adjust.
10717 (jit_executable_changed_observer): New function.
10718 (jit_event_handler): Adjust.
10719 (_initialize_jit): Adjust.
10720
e839132d
MS
107212011-01-31 Michael Snyder <msnyder@vmware.com>
10722
10723 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10724 line.
10725
47a80e90
TT
107262011-01-31 Tom Tromey <tromey@redhat.com>
10727
10728 PR python/12216:
10729 * python/python.c (execute_gdb_command): Call
10730 prevent_dont_repeat.
10731 * top.c (suppress_dont_repeat): New global.
10732 (dont_repeat): Use it.
10733 (prevent_dont_repeat): New function.
10734 * command.h (prevent_dont_repeat): Declare.
10735
45a43567
TT
107362011-01-31 Tom Tromey <tromey@redhat.com>
10737
10738 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10739 * python/py-breakpoint.c (bppy_set_silent): Use
10740 breakpoint_set_silent.
10741 (bppy_set_thread): Use breakpoint_set_thread.
10742 (bppy_set_task): Use breakpoint_set_task.
10743 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10744 (breakpoint_set_task): Declare.
10745 (make_breakpoint_silent): Remove.
10746 * breakpoint.c (breakpoint_set_silent): New function.
10747 (breakpoint_set_thread): Likewise.
10748 (breakpoint_set_task): Likewise.
10749 (make_breakpoint_silent): Remove.
10750
09d682a4
TT
107512011-01-31 Tom Tromey <tromey@redhat.com>
10752
10753 * breakpoint.h (user_breakpoint_p): Declare.
10754 * breakpoint.c (user_breakpoint_p): New function.
10755 (breakpoint_1): Use it.
10756 (save_breakpoints): Likewise.
10757
9c4ea6c5
JB
107582011-01-31 Joel Brobecker <brobecker@adacore.com>
10759
10760 * configure.ac: Add handling of Python distribution on Windows.
10761 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10762 sysconfig variables are not defined, then do not use them.
10763 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10764 instead. On Windows, return all paths using forward-slashes
10765 rather than backslashes.
10766
ac534cba
JB
107672011-01-31 Joel Brobecker <brobecker@adacore.com>
10768
10769 * configure.ac: Remove fallback behavior for building
10770 against Python. Remove tweaking of Python include path.
10771 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10772 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10773 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10774 Always restore CPPFLAGS and LIBS after linking test.
10775 * configure: Regenerated.
10776 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10777 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10778 * python/python-internal.h: Adjust includes of Python .h files.
10779
c2f0d045
JB
107802011-01-31 Joel Brobecker <brobecker@adacore.com>
10781
10782 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10783 in error message.
10784
6b0c4c1f
JB
107852011-01-31 Joel Brobecker <brobecker@adacore.com>
10786
10787 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10788 value test.
10789
672c9795
YQ
107902011-01-31 Yao Qi <yao@codesourcery.com>
10791
10792 * arm-linux-nat.c: Update calls to regcache_register_status
10793 instead of regcache_valid_p.
10794 * aix-thread.c: Likewise.
10795 * i386gnu-nat.c: Likewise.
10796
80b23b6a
JK
107972011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10798
10799 Fix crash.
10800 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10801 touching TYPE_FIELD_ARTIFICIAL.
10802
4cd712bd
RE
108032011-01-28 Richard Earnshaw <rearnsha@arm.com>
10804
10805 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10806 Committers.
10807
ffd5ec24
PA
108082011-01-28 Pedro Alves <pedro@codesourcery.com>
10809
10810 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10811 selected, don't try iterating over the traceframe's blocks.
10812 (tfile_has_stack): If there's no traceframe selected, then there's
10813 no stack.
10814 (tfile_has_registers): If there's no traceframe selected, then
10815 there's no registers.
10816
e8c9e0a1
PA
108172011-01-28 Pedro Alves <pedro@codesourcery.com>
10818
10819 * target.c (memory_xfer_partial): No need to restore shadows if we
10820 haven't read anything.
10821
de15c4ab
PA
108222011-01-28 Pedro Alves <pedro@codesourcery.com>
10823
10824 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10825 and val_print_scalar_formatted.
10826
9f41c731
PA
108272011-01-27 Pedro Alves <pedro@codesourcery.com>
10828
10829 * tracepoint.c (tfile_read): New.
10830 (tfile_open): Use it.
10831 (tfile_get_traceframe_address): Use it.
10832 (tfile_trace_find): Use it.
10833 (walk_blocks_callback_func): New typedef.
10834 (match_blocktype): New function.
10835 (traceframe_walk_blocks): New function.
10836 (traceframe_find_block_type): New function.
10837 (tfile_fetch_registers, tfile_xfer_partial)
10838 (tfile_get_trace_state_variable_value): Use
10839 traceframe_find_block_type and tfile_read.
10840
cdefc55d
KB
108412011-01-26 Kevin Buettner <kevinb@redhat.com>
10842
10843 * remote-mips.c: Add internationalization mark ups. Remove
10844 trailing \n from already marked up strings.
10845
a81766d8
TT
108462011-01-26 Tom Tromey <tromey@redhat.com>
10847
10848 * python/py-prettyprint.c (print_string_repr): Clear
10849 'addressprint' option when calling val_print_string.
10850 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10851 option when calling val_print_string.
10852
74aedc46
TT
108532011-01-26 Tom Tromey <tromey@redhat.com>
10854
10855 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10856 GDB_PY_LL_ARG.
10857 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10858 macros.
10859 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10860 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10861 (gdb_py_long_as_ulongest): New defines.
10862 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10863 (gdb_py_int_as_long): Declare.
10864 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10865 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10866 (valpy_long): Add comment.
10867 * python/py-utils.c (get_addr_from_python): Use
10868 gdb_py_long_as_ulongest. Handle overflow properly.
10869 (gdb_py_object_from_longest): New function.
10870 (gdb_py_object_from_ulongest): Likewise.
10871 (gdb_py_int_as_long): Likewise.
10872 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10873 * python/py-symtab.c (salpy_get_pc): Use
10874 gdb_py_long_from_ulongest.
10875 (salpy_get_line): Use PyInt_FromLong.
10876 * python/py-param.c (set_parameter_value): Use
10877 gdb_py_int_as_long.
10878 * python/py-lazy-string.c (stpy_get_address): Use
10879 gdb_py_long_from_ulongest.
10880 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10881 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10882 * python/py-breakpoint.c (bppy_set_thread): Use
10883 gdb_py_int_as_long.
10884 (bppy_set_task): Likewise.
10885 (bppy_set_ignore_count): Likewise.
10886 (bppy_set_hit_count): Likewise.
10887 * python/py-block.c (blpy_get_start): Use
10888 gdb_py_object_from_ulongest.
10889 (blpy_get_end): Likewise.
10890 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10891
e4f6d2ec
TJB
108922011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10893
10894 PR/symtab 11766:
10895 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10896 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10897 equality test for objfile, initialize addr_low if needed.
10898
b30aa278
PA
108992011-01-25 Pedro Alves <pedro@codesourcery.com>
10900
10901 * tui/tui-regs.c (tui_register_format): Remove dead code.
10902
ab2188aa
PA
109032011-01-25 Pedro Alves <pedro@codesourcery.com>
10904
10905 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10906 instead of print_scalar_formatted.
10907 (print_scalar_formatted): Don't handle 's' format strings here,
10908 and add an assertion that we never see such format here.
10909 * valprint.h (val_print_scalar_formatted): Declare.
10910 * valprint.c (val_print_scalar_formatted): New.
10911 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10912 instead of print_scalar_formatted.
10913 * jv-valprint.c (java_val_print): Ditto.
10914 * p-valprint.c (pascal_val_print): Ditto.
10915 * ada-valprint.c (ada_val_print_1): Ditto.
10916 * f-valprint.c (f_val_print): Ditto.
10917 * infcmd.c (registers_info): Ditto.
10918 * m2-valprint.c (m2_val_print): Ditto.
10919
66d61a4c
PA
109202011-01-25 Pedro Alves <pedro@codesourcery.com>
10921
10922 * m2-valprint.c (print_unbounded_array): Pass
10923 value_contents_for_printing rather than value_contents, to
10924 m2_print_array_contents. Also pass in the value.
10925
831adc1f
JK
109262011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10927
10928 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10929 (save_gdb_index_command): Switch to .gdb_index version 4.
10930
20622269
PA
109312011-01-25 Pedro Alves <pedro@codesourcery.com>
10932
10933 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10934 than frame_register, and always pass a valid value to val_print.
10935
585fdaa1
PA
109362011-01-25 Pedro Alves <pedro@codesourcery.com>
10937
10938 Centralize printing "<optimized out>".
10939
10940 * valprint.h (val_print_optimized_out): Declare.
10941 * cp-valprint.c (cp_print_value_fields): Use
10942 val_print_optimized_out.
10943 * jv-valprint.c (java_print_value_fields): Ditto.
10944 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10945 * printcmd.c (print_formatted): Ditto.
10946 * valprint.c (valprint_check_validity): Ditto.
10947 (value_check_printable): Ditto.
10948 (val_print_optimized_out): New.
10949
29ec5263
PA
109502011-01-25 Pedro Alves <pedro@codesourcery.com>
10951
10952 * infcmd.c (default_print_registers_info): Allocate values so to
10953 never pass a NULL value to val_print.
10954
de4127a3
PA
109552011-01-25 Pedro Alves <pedro@codesourcery.com>
10956
10957 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10958 boolean. Make sure to always pass a value that matches the
10959 contents buffer to callees. Preserve `address' for following
10960 iterations.
10961 * value.c (value_contents_for_printing_const): New.
10962 (value_address): Constify value argument.
10963 * value.h (value_contents_for_printing_const): Declare.
10964 (value_address): Constify value argument.
10965
ee99023e
PA
109662011-01-25 Pedro Alves <pedro@codesourcery.com>
10967
10968 * regcache.c (struct regcache_descr): Rename
10969 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10970 and sizeof_cooked_register_valid_p to
10971 sizeof_cooked_register_status.
10972 (init_regcache_descr): Adjust.
10973 (struct regcache): Rename register_valid_p field to
10974 register_status.
10975 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10976 (do_cooked_read): Adjust.
10977 (regcache_valid_p): Rename to ...
10978 (regcache_register_status): ... this. Adjust.
10979 (regcache_invalidate): Adjust.
10980 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10981 Adjust.
10982 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10983 as unavailable, not valid.
10984 (regcache_dump): Adjust.
10985 * regcache.h (enum register_status): New.
10986 (regcache_register_status): Declare.
10987 (regcache_invalidate): Delete declaration.
10988 * corelow.c (get_core_registers): Adjust.
10989 * tracepoint.c (tfile_fetch_registers): Adjust.
10990 * trad-frame.c (REG_VALUE): Rename to ...
10991 (TF_REG_VALUE): ... this.
10992 (REG_UNKNOWN): Rename to ...
10993 (TF_REG_UNKNOWN): ... this.
10994 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10995 * mi/mi-main.c (register_changed_p): Adjust.
10996
99e42fd8
PA
109972011-01-25 Pedro Alves <pedro@codesourcery.com>
10998
10999 * regcache.c (struct regcache_descr): Remove outdated comment.
11000 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11001 overallocate hack.
11002 (regcache_xmalloc): Rename to ...
11003 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11004 Allocate the regcache type accordingly.
11005 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11006 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11007 cooked registers, not raw.
11008 (regcache_dup_no_passthrough): Delete.
11009 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11010 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11011 mention obsolete write_register_bytes.
11012 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11013
f7605bc2
PA
110142011-01-25 Pedro Alves <pedro@codesourcery.com>
11015
11016 Stop remote_read_bytes from handling partial reads itself.
11017
11018 * remote-fileio.c: Include target.h.
11019 (remote_fileio_write_bytes): Delete.
11020 (remote_fileio_func_open, remote_fileio_func_write)
11021 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11022 target_read_memory.
11023 (remote_fileio_func_stat): Use target_read_memory and
11024 target_write_memory.
11025 (remote_fileio_func_gettimeofday): Use target_write_memory.
11026 (remote_fileio_func_system): Use target_read_memory.
11027 * remote.c (remote_write_bytes): Make it static.
11028 (remote_read_bytes): Don't handle partial reads here.
11029 * remote.h (remote_read_bytes): Delete declaration.
11030
efc0eabd
PA
110312011-01-25 Pedro Alves <pedro@codesourcery.com>
11032
11033 Simplify XML parsing a bit.
11034
11035 * xml-support.h (gdb_xml_parse_quick): Declare.
11036 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11037 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11038 parameter.
11039 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11040 gdb_xml_create_parser_and_cleanup_1.
11041 (gdb_xml_parse_quick): New.
11042 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11043 * osdata.c (osdata_parse): Ditto.
11044 * remote.c (remote_threads_info): Ditto.
11045 * solib-target.c (solib_target_parse_libraries): Ditto.
11046 * xml-syscall.c (syscall_parse_xml): Ditto.
11047 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11048
314d366a
KB
110492011-01-24 Kevin Buettner <kevinb@redhat.com>
11050
11051 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11052 with remote-mips.o added to gdb_target_obs.
11053 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11054
a491d753
PA
110552011-01-24 Pedro Alves <pedro@codesourcery.com>
11056
11057 * ada-valprint.c (val_print_packed_array_elements): Pass the
11058 correct struct value to val_print.
11059 (ada_val_print_1): Ditto.
11060
490f124f
PA
110612011-01-24 Pedro Alves <pedro@codesourcery.com>
11062
11063 Don't lose embedded_offset in printing routines throughout.
11064
11065 * valprint.h (val_print_array_elements): Change prototype.
11066 * valprint.c (val_print_array_elements): Add `embedded_offset'
11067 parameter, and adjust to pass it down to val_print, while passing
11068 `valaddr' or `address' unmodified. Take embedded_offset into
11069 account when checking repetitions.
11070 * c-valprint.c (c_val_print): Pass embedded_offset to
11071 val_print_array_elements instead of adjusting `valaddr' and
11072 `address'.
11073 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11074 embedded_offset to val_print_array_elements instead of adjusting
11075 `valaddr'.
11076 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11077 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11078 val_print_array_elements and pascal_object_print_value_fields
11079 instead of adjusting `valaddr'.
11080 (pascal_object_print_value_fields): Add `offset' parameter, and
11081 adjust to use it.
11082 (pascal_object_print_value): Add `offset' parameter, and adjust to
11083 use it.
11084 (pascal_object_print_static_field): Use
11085 value_contents_for_printing/value_embedded_offset, rather than
11086 value_contents.
11087 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11088 parameter, and adjust to use it. Use
11089 value_contents_for_printing/value_embedded_offset, rather than
11090 value_contents.
11091 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11092 (ada_val_print_array): Add `offset' parameter, and adjust to use
11093 it.
11094 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11095 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11096 Instead work with offsets. Use
11097 value_contents_for_printing/value_embedded_offset, rather than
11098 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11099 and use value_from_pointer to extract a target pointer, rather
11100 than value_from_longest.
11101 (print_variant_part): Add `offset' parameter. Replace
11102 `outer_valaddr' parameter by a new `outer_offset' parameter.
11103 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11104 (ada_value_print): Use
11105 value_contents_for_printing/value_embedded_offset, rather than
11106 value_contents.
11107 (print_record): Add `offset' parameter, and adjust to pass it
11108 down.
11109 (print_field_values): Add `offset' parameter. Replace
11110 `outer_valaddr' parameter by a new `outer_offset' parameter.
11111 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11112 Use value_contents_for_printing/value_embedded_offset, rather than
11113 value_contents.
11114 * d-valprint.c (dynamic_array_type): Use
11115 value_contents_for_printing/value_embedded_offset, rather than
11116 value_contents.
11117 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11118 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11119 (java_print_value_fields): Take `offset' into account. Don't
11120 re-adjust `valaddr'. Instead pass down adjusted offsets.
11121 (java_val_print): Take `embedded_offset' into account. Pass it to
11122 java_print_value_fields.
11123 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11124 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11125 down adjusted offsets.
11126 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11127 (f_val_print): Take `embedded_offset' into account.
11128
7bfc9434
JB
111292011-01-21 Joel Brobecker <brobecker@adacore.com>
11130
11131 * inflow.c: Include "gdbcmd.h".
11132 (interactive_mode): New static global, moved here from top.c.
11133 (show_interactive_mode): New function, moved here from top.c.
11134 use gdb_has_a_terminal instead of input_from_terminal_p to
11135 determine the current mode.
11136 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11137 setting.
11138 (_initialize_inflow): Add the "set/show interactive-mode"
11139 commands. Moved here from top.c, after having adjusted slightly
11140 the help text.
11141 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11142 to inflow.c.
11143 (input_from_terminal_p): Remove handling of "interactive-mode"
11144 setting, moved to infow.c.
11145 (init_main): Remove creation of the "set/show interactive-mode"
11146 commands, moved to inflow.c.
11147
44603653
JB
111482011-01-19 Joel Brobecker <brobecker@adacore.com>
11149
11150 * NEWS: Add entry for native ia64-hpux support.
11151
4694da01
TT
111522011-01-19 Tom Tromey <tromey@redhat.com>
11153
11154 PR mi/8618:
11155 * thread.c (free_thread): Free 'name'.
11156 (print_thread_info): Emit thread name. Change CLI output.
11157 (thread_name_command): New function.
11158 (do_captured_thread_select): Emit newline.
11159 (_initialize_thread): Register 'thread name' command.
11160 * target.h (struct target_ops) <to_thread_name>: New field.
11161 (target_thread_name): New macro.
11162 * target.c (update_current_target): Handle to_thread_name.
11163 * python/py-infthread.c (thpy_get_name): New function.
11164 (thpy_set_name): Likewise.
11165 (thread_object_getset): Add "name".
11166 * linux-nat.c (linux_nat_thread_name): New function.
11167 (linux_nat_add_target): Set to_thread_name.
11168 * gdbthread.h (struct thread_info) <name>: New field.
11169
10d44370
JB
111702011-01-18 Joel Brobecker <brobecker@adacore.com>
11171
11172 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11173 (ada_val_print_1): Likewise.
11174
e3acb115
JB
111752011-01-18 Joel Brobecker <brobecker@adacore.com>
11176
11177 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11178 upper limit address is not greater than the function end address
11179 when the upper limit could not be computed using the debugging
11180 info.
11181
dc92e161
TT
111822011-01-17 Tom Tromey <tromey@redhat.com>
11183
11184 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11185 get_regcomp_error.
11186 * utils.c: Include gdb_regex.h.
11187 (do_regfree_cleanup): New function.
11188 (make_regfree_cleanup): Likewise.
11189 (get_regcomp_error): Likewise.
11190 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11191
f55af66d
TT
111922011-01-17 Tom Tromey <tromey@redhat.com>
11193
11194 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11195 re_compile_fastmap.
11196
a5a44b53
PM
111972011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11198
11199 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11200 for internal variables.
11201 (last_was_structop): New static variable.
11202 (COMPLETE): New token.
11203 (field_exp): New rule to group all '.' suffix handling.
11204 Add mark_struct_expression calls when approriate to be able
11205 to correctly find fields for completion.
11206 (yylex): Adapt to handle field completion and set INTVAR when
11207 required.
11208
2c291032
YQ
112092011-01-14 Yao Qi <yao@codesourcery.com>
11210
11211 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11212 save_reggroup, restore_reggroup and all_reggroup.
11213
447b483c
JB
112142011-01-14 Joel Brobecker <brobecker@adacore.com>
11215
11216 * ada-valprint. (ada_printchar): Use the correct type length
11217 in call to ada_emit_char.
11218 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11219
7b64a93b
PM
112202011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11221
11222 * solib-som.h (hpux_major_release): Declare variable here.
11223 * solib-som.c: Remove <sys/utsname.h> header.
11224 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11225 (hpux_major_release): Make global, change default value to
11226 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11227 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11228 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11229 Add "solib-som.h" header.
11230 (set_hpux_major_release): New function.
11231 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11232
4e18c053
MF
112332011-01-14 Mike Frysinger <vapier@gentoo.org>
11234
11235 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11236
a9df6b22
JB
112372011-01-14 Joel Brobecker <brobecker@adacore.com>
11238
11239 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11240 new-line at end of warning message.
11241 (ia64_hpux_store_register): Remove trailing new-line at end of
11242 error message.
11243 * ia64-hpux-tdep.c: Rephrase comment.
11244 * solib-ia64-hpux.c (struct dld_info): Change type of field
11245 dld_flags from "long long" to ULONGEST.
11246
ecb956dd
PA
112472011-01-14 Pedro Alves <pedro@codesourcery.com>
11248
11249 * target.h (deprecated_child_ops): Delete declaration.
11250 * target.c (deprecated_child_ops): Delete definition.
11251
76adfcae
PA
112522011-01-14 Pedro Alves <pedro@codesourcery.com>
11253
11254 * Makefile.in (hpux-thread.o): Delete rule.
11255 * configure.ac: Don't check for HPUX DCE threads support.
11256 * configure, config.in: Regenerate.
11257 * hppa-hpux-nat.c (child_suppress_run): Delete.
11258 (hppa_hpux_child_can_run): Delete.
11259 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11260 * hpux-thread.c: Delete.
11261
042e866e
JB
112622011-01-13 Joel Brobecker <brobecker@adacore.com>
11263
11264 * hpux-thread.c (hpux_pid_to_str): Delete.
11265
4ffa5a33
JB
112662011-01-13 Joel Brobecker <brobecker@adacore.com>
11267
11268 * ada-valprint.c (ada_emit_char): Remove strange code.
11269 Check that c is <= UCHAR_MAX before passing it to isascii.
11270 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11271
de8fa76c
JB
112722011-01-13 Joel Brobecker <brobecker@adacore.com>
11273
11274 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11275 to the case where instream is stdin.
11276
c4de7027
JB
112772011-01-13 Joel Brobecker <brobecker@adacore.com>
11278
11279 * ia64-tdep.h (struct regcache): Forward declare.
11280 (struct ia64_infcall_ops): New struct type.
11281 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11282 and "infcall_ops".
11283 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11284 Renames ia64_find_global_pointer.
11285 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11286 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11287 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11288 methods.
11289 (ia64_infcall_ops): New static global constant.
11290 (ia64_gdbarch_init): Set tdep->infcall_ops.
11291 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11292 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11293 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11294 (ia64_hpux_dummy_code): New static global constant.
11295 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11296 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11297 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11298 New function.
11299 (ia64_hpux_infcall_ops): New static global constant.
11300 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11301 for inferior function calls to work properly on ia64-hpux.
11302
77ca787b
JB
113032011-01-13 Joel Brobecker <brobecker@adacore.com>
11304
11305 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11306 * ia64-tdep.h (struct frame_info): forward declaration.
11307 (struct gdbarch_tdep): Add field size_of_register_frame.
11308 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11309 to determine the size of the register frame.
11310 (ia64_size_of_register_frame): New function.
11311 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11312 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11313 (IA64_HPUX_UREG_REASON): New macro.
11314 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11315 New functions.
11316 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11317 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11318 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11319 objects.
11320
92c9a463
JB
113212011-01-13 Joel Brobecker <brobecker@adacore.com>
11322
11323 Add support for ia64-hpux.
11324 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11325 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11326
11327 * configure.host: Add handling for ia64-hpux hosts. Add associated
11328 floatformats.
11329 * configure.tgt: Add handling for ia64-hpux targets.
11330 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11331 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11332 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11333
f688d93f
JB
113342011-01-13 Joel Brobecker <brobecker@adacore.com>
11335
11336 [ttrace] Compute thread list immediately after attach.
11337 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11338 New subprogram.
11339 (inf_ttrace_attach): Use it.
11340
1b89e62f
JB
113412011-01-13 Joel Brobecker <brobecker@adacore.com>
11342
11343 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11344 if we could not determine the frame's function address. Instead,
11345 use the frame's PC, and then continue.
11346
3e5e6e2a
JB
113472011-01-13 Joel Brobecker <brobecker@adacore.com>
11348
11349 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11350 not already defined.
11351
825d6d8a
JB
113522011-01-13 Joel Brobecker <brobecker@adacore.com>
11353
11354 * ia64-tdep.c (ia64_struct_type_p): New function.
11355 (ia64_extract_return_value): Handle integral values that are
11356 less than 8 bytes long.
11357 (ia64_push_dummy_call): Likewise.
11358
7458e667
JB
113592011-01-13 Joel Brobecker <brobecker@adacore.com>
11360
11361 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11362 floatformat_ia64_ext.
11363 (floatformat_ia64_ext_big): New static const.
11364 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11365
1b05df00
TT
113662011-01-12 Tom Tromey <tromey@redhat.com>
11367
11368 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11369 messages.
11370 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11371 (mi_cmd_thread_list_ids): Likewise.
11372 (mi_cmd_data_list_changed_registers): Likewise.
11373 (mi_cmd_data_list_register_values): Likewise.
11374 (mi_cmd_data_write_register_values): Likewise.
11375 (mi_cmd_data_evaluate_expression): Likewise.
11376 (mi_cmd_data_read_memory): Likewise.
11377 (mi_cmd_data_read_memory_bytes): Likewise.
11378 (mi_cmd_data_write_memory): Likewise.
11379 (mi_cmd_enable_timings): Likewise.
11380 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11381 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11382 (mi_cmd_var_delete): Likewise.
11383 (mi_cmd_var_set_format): Likewise.
11384 (mi_cmd_var_show_format): Likewise.
11385 (mi_cmd_var_info_num_children): Likewise.
11386 (mi_cmd_var_list_children): Likewise.
11387 (mi_cmd_var_info_type): Likewise.
11388 (mi_cmd_var_info_expression): Likewise.
11389 (mi_cmd_var_show_attributes): Likewise.
11390 (mi_cmd_var_assign): Likewise.
11391 (mi_cmd_var_update): Likewise.
11392 (mi_cmd_enable_pretty_printing): Likewise.
11393 (mi_cmd_var_set_update_range): Likewise.
11394 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11395 messages.
11396 (mi_cmd_target_file_put): Likewise.
11397 (mi_cmd_target_file_delete): Likewise.
11398 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11399 messages.
11400 (mi_cmd_stack_info_depth): Likewise.
11401 (mi_cmd_stack_list_locals): Likewise.
11402 (mi_cmd_stack_list_args): Likewise.
11403 (mi_cmd_stack_select_frame): Likewise.
11404 (mi_cmd_stack_select_frame): Likewise.
11405 (mi_cmd_stack_info_frame): Likewise.
11406 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11407 messages.
11408 (mi_cmd_file_list_exec_source_files): Likewise.
11409 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11410 (mi_cmd_env_cd): Likewise.
11411 (mi_cmd_env_path): Likewise.
11412 (mi_cmd_env_dir): Likewise.
11413 (mi_cmd_inferior_tty_show): Likewise.
11414 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11415 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11416 (mi_cmd_break_watch): Likewise.
11417
ad422571
TJB
114182011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11419
11420 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11421 (ppc_linux_insert_hw_breakpoint): Likewise.
11422 (ppc_linux_remove_hw_breakpoint): Likewise.
11423 (ppc_linux_insert_watchpoint): Likewise.
11424
c2ff108b
JK
114252011-01-12 Andrew Burgess <aburgess@broadcom.com>
11426 Jan Kratochvil <jan.kratochvil@redhat.com>
11427
11428 PR fortran/11104 and DWARF unbound arrays detection.
11429 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11430 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11431 unspecified upper bound.
11432 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11433 variables array_size_array, tmp_type and offset_item. New variable
11434 array. Remove call to f77_get_upperbound. New variables array_type
11435 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11436 the final call to deprecated_set_value_type.
11437
41e8491f
JK
114382011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11439
11440 Make value allocations more lazy.
11441 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11442 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11443 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11444 instead of allocate_value and set_value_lazy.
11445 * findvar.c (value_of_register_lazy): Likewise.
11446 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11447 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11448 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11449 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11450 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11451 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11452 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11453 the end, remove set_value_lazy there.
11454 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11455 instead of allocate_value and set_value_lazy when possible.
11456 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11457 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11458 of allocate_value and set_value_lazy.
11459 (value_from_contents_and_address): Use allocate_value_lazy instead of
11460 allocate_value and set_value_lazy when possible.
11461
b716877b
AB
114622011-01-12 Andrew Burgess <aburgess@broadcom.com>
11463
11464 * disasm.c (dump_insns): Support dumping opcodes for MI.
11465 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11466 dumping of instruction opcodes.
11467
d5ae309f
JB
114682011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11469
11470 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11471 appropiately.
11472
98871305
TT
114732011-01-11 Tom Tromey <tromey@redhat.com>
11474
11475 * thread.c (do_captured_thread_select): Emit newline before
11476 printing frame.
11477
c378eb4e
MS
114782011-01-11 Michael Snyder <msnyder@vmware.com>
11479
11480 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11481 * score-tdep.c: Ditto.
11482 * score-tdep.h: Ditto.
11483 * ser-base.c: Ditto.
11484 * ser-go32.c: Ditto.
11485 * serial.c: Ditto.
11486 * serial.h: Ditto.
11487 * ser-mingw.c: Ditto.
11488 * ser-pipe.c: Ditto.
11489 * ser-tcp.c: Ditto.
11490 * ser-unix.c: Ditto.
11491 * sh64-tdep.c: Ditto.
11492 * shnbsd-nat.c: Ditto.
11493 * sh-tdep.c: Ditto.
11494 * sh-tdep.h: Ditto.
11495 * solib.c: Ditto.
11496 * solib-darwin.c: Ditto.
11497 * solib-frv.c: Ditto.
11498 * solib.h: Ditto.
11499 * solib-irix.c: Ditto.
11500 * solib-osf.c: Ditto.
11501 * solib-pa64.c: Ditto.
11502 * solib-som.c: Ditto.
11503 * solib-spu.c: Ditto.
11504 * solib-sunos.c: Ditto.
11505 * solib-svr4.c: Ditto.
11506 * solist.h: Ditto.
11507 * sol-thread.c: Ditto.
11508 * somread.c: Ditto.
11509 * source.c: Ditto.
11510 * source.h: Ditto.
11511 * sparc64-linux-tdep.c: Ditto.
11512 * sparc64-tdep.c: Ditto.
11513 * sparc-linux-nat.c: Ditto.
11514 * sparc-linux-tdep.c: Ditto.
11515 * sparc-sol2-nat.c: Ditto.
11516 * sparc-sol2-tdep.c: Ditto.
11517 * sparc-tdep.c: Ditto.
11518 * sparc-tdep.h: Ditto.
11519 * spu-tdep.c: Ditto.
11520 * stabsread.c: Ditto.
11521 * stabsread.h: Ditto.
11522 * stack.c: Ditto.
11523 * symfile.c: Ditto.
11524 * symfile.h: Ditto.
11525 * symmisc.c: Ditto.
11526 * symtab.c: Ditto.
11527 * symtab.h: Ditto.
11528 * target.c: Ditto.
11529 * target-descriptions.c: Ditto.
11530 * target-descriptions.h: Ditto.
11531 * target.h: Ditto.
11532 * target-memory.c: Ditto.
11533 * terminal.h: Ditto.
11534 * thread.c: Ditto.
11535 * top.c: Ditto.
11536 * tracepoint.c: Ditto.
11537 * tracepoint.h: Ditto.
11538 * trad-frame.h: Ditto.
11539 * typeprint.c: Ditto.
11540
581e13c1
MS
115412011-01-11 Michael Snyder <msnyder@vmware.com>
11542
11543 * ui-file.c: Comment cleanup, mostly periods and spaces.
11544 * ui-file.h: Ditto.
11545 * ui-out.c: Ditto.
11546 * ui-out.h: Ditto.
11547 * utils.c: Ditto.
11548 * v850-tdep.c: Ditto.
11549 * valarith.c: Ditto.
11550 * valops.c: Ditto.
11551 * valprint.c: Ditto.
11552 * valprint.h: Ditto.
11553 * value.c: Ditto.
11554 * value.h: Ditto.
11555 * varobj.c: Ditto.
11556 * varobj.h: Ditto.
11557 * vax-tdep.c: Ditto.
11558 * vec.c: Ditto.
11559 * vec.h: Ditto.
11560 * version.h: Ditto.
11561 * windows-nat.c: Ditto.
11562 * windows-tdep.c: Ditto.
11563 * xcoffread.c: Ditto.
11564 * xcoffsolib.c: Ditto.
11565 * xml-support.c: Ditto.
11566 * xstormy16-tdep.c: Ditto.
11567 * xtensa-tdep.c: Ditto.
11568 * xtensa-tdep.h: Ditto.
11569
90e4670f
TJB
115702011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11571
11572 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11573 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11574
e09342b5
TJB
115752011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11576 Thiago Jung Bauermann <bauerman@br.ibm.com>
11577
11578 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11579 * breakpoint.h
e09342b5
TJB
11580 (struct breakpoint_ops) <resources_needed>: New method.
11581 Initialize to NULL in all existing breakpoint_ops instances.
11582 (struct breakpoint) <exact>: New field.
11583 (target_exact_watchpoints): Declare external global.
11584 * breakpoint.c (target_exact_watchpoints): New global flag.
11585 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11586 b->enable_state to bp_enabled before calling
11587 hw_watchpoint_used_count.
11588 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11589 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11590 if available.
11591 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11592 if the watchpoint is exact.
11593 (resources_needed_watchpoint): New function.
11594 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11595 (watch_command_1): Set b->exact if the user asked for an exact
11596 watchpoint and one can be set.
11597 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11598 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11599 the user asks for an exact watchpoint and one can be set. Return
11600 number of needed debug registers to watch the expression.
11601 * gdbtypes.c (is_scalar_type): New function, based on
11602 valprint.c:scalar_type_p.
11603 (is_scalar_type_recursive): New function.
11604 * gdbtypes.h (is_scalar_type_recursive): Declare.
11605 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11606 handle regions when ranged watchpoints are available.
11607 (create_watchpoint_request): New function.
11608 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11609 create_watchpoint_request.
11610 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11611 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11612 `set powerpc' and `show powerpc' commands.
11613 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11614 Mention documentation comment in the target macro.
11615 (target_region_ok_for_hw_watchpoint): Document return value.
11616
9fa40276
TJB
116172011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11618
11619 * breakpoint.c (update_watchpoint): Decide on using a software or
11620 hardware watchpoint after the bp_locations are created.
11621
77b06cd7
TJB
116222010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11623
11624 Convert hardware watchpoints to use breakpoint_ops.
11625 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11626 <insert_location>: ... this. Return int instead of void.
11627 Accept pointer to struct bp_location instead of pointer to
11628 struct breakpoint. Adapt all implementations.
f2eb0bc8 11629 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11630 <remove_location>: ... this. Accept pointer to struct bp_location
11631 instead of pointer to struct breakpoint. Adapt all implementations.
11632 * breakpoint.c (insert_catchpoint): Delete function.
11633 (insert_bp_location): Call the watchpoint or catchpoint's
11634 breakpoint_ops.insert method.
11635 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11636 breakpoint_ops.remove method.
11637 (insert_watchpoint, remove_watchpoint): New functions.
11638 (watchpoint_breakpoint_ops): New structure.
11639 (watch_command_1): Initialize the OPS field.
11640 * inf-child.c (inf_child_insert_fork_catchpoint)
11641 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11642 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11643 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11644 Delete functions.
11645 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11646 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11647 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11648 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11649 * target.c (update_current_target): Change default implementation of
11650 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11651 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11652 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11653 to_set_syscall_catchpoint to return_one.
11654 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11655 (debug_to_insert_exec_catchpoint): Report return value.
11656 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11657 (to_insert_exec_catchpoint): Change declaration to return int instead
11658 of void.
11659
9b20d036
MS
116602011-01-11 Michael Snyder <msnyder@vmware.com>
11661
11662 * arm-tdep.c: Internationalization.
11663 * c-lang.c: Ditto.
11664 * charset.c: Ditto.
11665 * fork-child.c: Ditto.
11666 * nto-procfs.c: Ditto.
11667 * ppc-sysv-tdep.c: Ditto.
11668 * procfs.c: Ditto.
11669 * remote-mips.c: Ditto.
11670 * remote.c: Ditto.
11671 * rs6000-nat.c: Ditto.
11672 * rs6000-tdep.c: Ditto.
11673 * target.c: Ditto.
11674 * valops.c: Ditto.
11675 * value.c: Ditto.
11676 * xml-support.c: Ditto.
11677 * mi/mi-cmd-break.c: Ditto.
11678 * mi/mi-cmd-var.c: Ditto.
11679 * mi/mi-interp.c: Ditto.
11680 * mi/mi-main.c: Ditto.
11681
dae477fe
AB
116822011-01-11 Andrew Burgess <aburgess@broadcom.com>
11683
11684 * remote-sim.c (gdbsim_store_register): Update API to
11685 sim_store_register to check more error conditions.
11686
0df8b418
MS
116872011-01-10 Michael Snyder <msnyder@vmware.com>
11688
11689 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11690 * nto-tdep.c: Ditto.
11691 * nto-tdep.h: Ditto.
11692 * objc-exp.y: Ditto.
11693 * objc-lang.c: Ditto.
11694 * objfiles.c: Ditto.
11695 * objfiles.h: Ditto.
11696 * observer.c: Ditto.
11697 * opencl-lang.c: Ditto.
11698 * osabi.c: Ditto.
11699 * parse.c: Ditto.
11700 * parser-defs.h: Ditto.
11701 * p-exp.y: Ditto.
11702 * p-lang.c: Ditto.
11703 * posix-hdep.c: Ditto.
11704 * ppcbug-rom.c: Ditto.
11705 * ppc-linux-nat.c: Ditto.
11706 * ppc-linux-tdep.c: Ditto.
11707 * ppc-linux-tdep.h: Ditto.
11708 * ppcnbsd-tdep.c: Ditto.
11709 * ppcobsd-tdep.c: Ditto.
11710 * ppcobsd-tdep.h: Ditto.
11711 * ppc-sysv-tdep.c: Ditto.
11712 * ppc-tdep.h: Ditto.
11713 * printcmd.c: Ditto.
11714 * proc-abi.c: Ditto.
11715 * proc-flags.c: Ditto.
11716 * procfs.c: Ditto.
11717 * proc-utils.h: Ditto.
11718 * progspace.h: Ditto.
11719 * prologue-value.c: Ditto.
11720 * prologue-value.h: Ditto.
11721 * psympriv.h: Ditto.
11722 * psymtab.c: Ditto.
11723 * p-typeprint.c: Ditto.
11724 * p-valprint.c: Ditto.
11725 * ravenscar-sparc-thread.c: Ditto.
11726 * ravenscar-thread.c: Ditto.
11727 * ravenscar-thread.h: Ditto.
11728 * record.c: Ditto.
11729 * regcache.c: Ditto.
11730 * regcache.h: Ditto.
11731 * remote.c: Ditto.
11732 * remote-fileio.c: Ditto.
11733 * remote-fileio.h: Ditto.
11734 * remote.h: Ditto.
11735 * remote-m32r-sdi.c: Ditto.
11736 * remote-mips.c: Ditto.
11737 * remote-sim.c: Ditto.
11738 * rs6000-aix-tdep.c: Ditto.
11739 * rs6000-nat.c: Ditto.
11740 * rs6000-tdep.c: Ditto.
11741
0d7a18f7
MS
117422011-01-10 Michael Snyder <msnyder@vmware.com>
11743
11744 * charset.c (validate): Internationalization.
11745 * coffread.c (read_one_sym): Ditto.
11746 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11747 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11748 * inflow.c (new_tty): Ditto.
11749 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11750 * m32c-tdep.c (m32c_return_value): Ditto.
11751 * mep-tdep.c (mep_store_return_value): Ditto.
11752 * score-tdep.c (score7_fetch_insn): Ditto.
11753 * ser-mingw.c (pipe_windows_open): Ditto.
11754 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11755 * spu-tdep.c (spu_register_type): Ditto.
11756 * tracepoint.c (trace_find_command): Ditto.
11757 * valarith.c (value_pos): Ditto.
11758
9a153e0b
JB
117592011-01-10 Joel Brobecker <brobecker@adacore.com>
11760
11761 * ada-valprint.c (printstr): Minor comment reformatting.
11762
35ecd2d6
MS
117632011-01-08 Michael Snyder <msnyder@vmware.com>
11764
11765 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11766 markup.
11767
1777feb0
MS
117682011-01-08 Michael Snyder <msnyder@vmware.com>
11769
11770 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11771 * hppa-hpux-tdep.c: Ditto.
11772 * hppa-linux-nat.c: Ditto.
11773 * hppa-linux-tdep.c: Ditto.
11774 * hppanbsd-tdep.c: Ditto.
11775 * hppa-tdep.c: Ditto.
11776 * hppa-tdep.h: Ditto.
11777 * hpux-thread.c: Ditto.
11778 * i386-cygwin-tdep.c: Ditto.
11779 * i386-darwin-nat.c: Ditto.
11780 * i386gnu-nat.c: Ditto.
11781 * i386-linux-nat.c: Ditto.
11782 * i386-linux-tdep.c: Ditto.
11783 * i386-nat.c: Ditto.
11784 * i386-nat.h: Ditto.
11785 * i386nbsd-tdep.c: Ditto.
11786 * i386-sol2-nat.c: Ditto.
11787 * i386-stub.c: Ditto.
11788 * i386-tdep.c: Ditto.
11789 * i386-tdep.h: Ditto.
11790 * i387-tdep.c: Ditto.
11791 * ia64-linux-nat.c: Ditto.
11792 * ia64-linux-tdep.c: Ditto.
11793 * ia64-tdep.c: Ditto.
11794 * infcall.c: Ditto.
11795 * infcall.h: Ditto.
11796 * infcmd.c: Ditto.
11797 * inferior.c: Ditto.
11798 * inferior.h: Ditto.
11799 * infloop.c: Ditto.
11800 * inflow.c: Ditto.
11801 * infrun.c: Ditto.
11802 * interps.c: Ditto.
11803 * interps.h: Ditto.
11804 * iq2000-tdep.c: Ditto.
11805 * irix5-nat.c: Ditto.
11806 * jit.c: Ditto.
11807 * jit.h: Ditto.
11808 * jv-exp.y: Ditto.
11809 * jv-lang.c: Ditto.
11810 * jv-lang.h: Ditto.
11811 * jv-typeprint.c: Ditto.
11812 * jv-valprint.c: Ditto.
11813 * language.c: Ditto.
11814 * language.h: Ditto.
11815 * linespec.c: Ditto.
11816 * linux-fork.c: Ditto.
11817 * linux-nat.c: Ditto.
11818 * linux-thread-db.c: Ditto.
11819 * lm32-tdep.c: Ditto.
11820
025bb325
MS
118212011-01-08 Michael Snyder <msnyder@vmware.com>
11822
11823 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11824 * m2-lang.c: Ditto.
11825 * m2-typeprint.c: Ditto.
11826 * m2-valprint.c: Ditto.
11827 * m32c-tdep.c: Ditto.
11828 * m32r-linux-nat.c: Ditto.
11829 * m32r-rom.c: Ditto.
11830 * m32r-tdep.c: Ditto.
11831 * m32r-tdep.h: Ditto.
11832 * m68hc11-tdep.c: Ditto.
11833 * m58klinux-nat.c: Ditto.
11834 * m68k-tdep.c: Ditto.
11835 * m88k-tdep.c: Ditto.
11836 * m88k-tdep.h: Ditto.
11837 * machoread.c: Ditto.
11838 * macrocmd.c: Ditto.
11839 * macroexp.c: Ditto.
11840 * macrotab.c: Ditto.
11841 * main.c: Ditto.
11842 * maint.c: Ditto.
11843 * mdebugread.c: Ditto.
11844 * mdebugread.h: Ditto.
11845 * memattr.c: Ditto.
11846 * memattr.h: Ditto.
11847 * memory-map.h: Ditto.
11848 * mep-tdep.c: Ditto.
11849 * microblaze-rom.c: Ditto.
11850 * microblaze-tdep.c: Ditto.
11851 * minsyms.c: Ditto.
11852 * mips-irix-tdep.c: Ditto.
11853 * mips-linux-nat.c: Ditto.
11854 * mips-linux-tdep.c: Ditto.
11855 * mips-linux-tdep.h: Ditto.
11856 * mipsnbsd-nat.c: Ditto.
11857 * mipsnbsd-tdep.c: Ditto.
11858 * mipsread.c: Ditto.
11859 * mips-tdep.c: Ditto.
11860 * mips-tdep.h: Ditto.
11861 * mn10300-linux-tdep.c: Ditto.
11862 * mn10300-tdep.c: Ditto.
11863 * mn10300-tdep.h: Ditto.
11864 * monitor.c: Ditto.
11865 * monitor.h: Ditto.
11866 * moxie-tdep.c: Ditto.
11867 * moxie-tdep.h: Ditto.
11868 * mt-tdep.c: Ditto.
11869
1642781b
MF
118702011-01-08 Mike Frysinger <vapier@gentoo.org>
11871
11872 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11873
394b0adb
JB
118742011-01-08 Robert Millan <rmh@gnu.org>
11875
11876 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11877
b670013c
MS
118782011-01-07 Michael Snyder <msnyder@vmware.com>
11879
11880 * charset.c (_initialize_charset): Fix typo in string.
11881
a743e542
MS
118822011-01-07 Michael Snyder <msnyder@vmware.com>
11883
11884 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11885 for i18n.
f2eb0bc8 11886 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11887 Split line so that operator goes to beginning of line.
11888 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11889 assignment out of if statement.
11890
0963b4bd
MS
118912011-01-07 Michael Snyder <msnyder@vmware.com>
11892
11893 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11894 * ada-lang.h: Ditto.
11895 * ada-tasks.c: Ditto.
11896 * ada-valprint.c: Ditto.
11897 * aix-threads.c: Ditto.
11898 * alpha-linux-nat.c: Ditto.
11899 * alpha-linux-tdep.c: Ditto.
11900 * alpha-mdebug-tdep.c: Ditto.
11901 * alpha-nat.c: Ditto.
11902 * alpha-osf1-tdep.c: Ditto.
11903 * alpha-tdep.c: Ditto.
11904 * alphabsd-nat.c: Ditto.
11905 * alphabsd-tdep.c: Ditto.
11906 * amd64-darwin-tdep.c: Ditto.
11907 * amd64-linux-nat.c: Ditto.
11908 * amd64-linux-tdep.c: Ditto.
11909 * amd64-sol2-tdep.c: Ditto.
11910 * amd64-tdep.c: Ditto.
11911 * amd64-fbsd-tdep.c: Ditto.
11912 * amd64-nbsd-tdep.c: Ditto.
11913 * amd64-obsd-tdep.c: Ditto.
11914 * amd64-linux-nat.c: Ditto.
11915 * amd64-linux-tdep.c: Ditto.
11916 * arm-tdep.c: Ditto.
11917 * arm-tdep.h: Ditto.
11918 * armnbsd-nat.c: Ditto.
11919 * avr-tdep.c: Ditto.
11920 * bfin-tdep.c: Ditto.
11921 * bsd-kvm.c: Ditto.
11922 * c-typeprintc: Ditto.
11923 * c-valprint.c: Ditto.
11924 * coff-pe-read.h: Ditto.
11925 * coffreead.c: Ditto.
11926 * cris-tdep.c: Ditto.
11927 * d-lang.c: Ditto.
11928 * darwin-nat-info.c: Ditto.
11929 * darwin-nat.c: Ditto.
11930 * dbug-rom.c: Ditto.
11931 * dbxread.c: Ditto.
11932 * dcache.c: Ditto.
11933 * dcache.h: Ditto.
11934 * dec-thread.c: Ditto.
11935 * defs.h: Ditto.
11936 * demangle.c: Ditto.
11937 * dicos-tdep.c: Ditto.
11938 * dictionary.c: Ditto.
11939 * dictionary.h: Ditto.
11940 * dink32-rom.c: Ditto.
11941 * disasm.c: Ditto.
11942 * doublest.c: Ditto.
11943 * dsrec.c: Ditto.
11944 * dummy-frame.c: Ditto.
11945 * dwarf2-frame.c: Ditto.
11946 * dwarf2expr.c: Ditto.
11947 * dwarf2loc.c: Ditto.
11948 * dwarf2read.c: Ditto.
11949 * elfread.c: Ditto.
11950 * environ.c: Ditto.
11951 * eval.c: Ditto.
11952 * event-top.h: Ditto.
11953 * exceptions.c: Ditto.
11954 * exceptions.h: Ditto.
11955 * exec.c: Ditto.
11956 * expprint.c: Ditto.
11957 * expression.h: Ditto.
11958 * f-exp.y: Ditto.
11959 * f-lang.c: Ditto.
11960 * f-lang.h: Ditto.
11961 * f-typeprint.c: Ditto.
11962 * f-valprint.c: Ditto.
11963 * fbsd-nat.c: Ditto.
11964 * findvar.c: Ditto.
11965 * fork-child.c: Ditto.
11966 * frame.c: Ditto.
11967 * frame.h: Ditto.
11968 * frv-linux-tdep.c: Ditto.
11969 * frv-tdep.c: Ditto.
11970 * gcore.c: Ditto.
11971 * gdb-stabs.h: Ditto.
11972 * gdb_assert.h: Ditto.
11973 * gdb_string.h: Ditto.
11974 * gdb_thread_db.h: Ditto.
11975 * gdb_wait.h: Ditto.
11976 * gdbarch.sh: Ditto.
11977 * gdbcore.h: Ditto.
11978 * gdbthread.h: Ditto.
11979 * gdbtypes.c: Ditto.
11980 * gdbtypes.h: Ditto.
11981 * gnu-nat.c: Ditto.
11982 * gnu-nat.h: Ditto.
11983 * gnu-v2-abi.c: Ditto.
11984 * gnu-v3-abi.c: Ditto.
11985 * go32-nat.c: Ditto.
11986 * gdbarch.c: Regenerate.
11987 * gdbarch.h: Regenerate.
11988
ac74f770
MS
119892011-01-07 Michael Snyder <msnyder@vmware.com>
11990
11991 * ax-gdb.c: Adjust some long output strings.
11992 * breakpoint.c: Ditto.
11993 * charset.c: Ditto.
11994 * cp-abi.c: Ditto.
11995 * infcall.c: Ditto.
11996 * infrun.c: Ditto.
11997 * linux-nat.c: Ditto.
11998 * solib-pa64.c: Ditto.
11999 * solib-som.c: Ditto.
12000
d8e22779
TT
120012011-01-06 Tom Tromey <tromey@redhat.com>
12002
12003 PR python/12367:
12004 * NEWS: Add item.
12005 * python/python.c (GdbMethods): Add "newest_frame" method.
12006 * python/python-internal.h (gdbpy_newest_frame): Declare.
12007 * python/py-frame.c (gdbpy_newest_frame): New function.
12008
a255712f
PP
120092010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12010
12011 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12012 * jit.c (jit_debug): New variable.
12013 (show_jit_debug): New function.
12014 (struct target_buffer): Use ULONGEST.
12015 (bfd_open_from_target_memory): Likewise.
12016 (jit_register_code, jit_inferior_init): Add debug output.
12017 (_initialize_jit): Register "debug jit" command.
12018
ccfc3d6e
TT
120192011-01-06 Tom Tromey <tromey@redhat.com>
12020
12021 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12022 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12023 and ARCH_FRAME.
12024
57126e4a
TT
120252011-01-06 Tom Tromey <tromey@redhat.com>
12026
12027 * python/py-frame.c (frapy_block): Use get_frame_block.
12028
16dfc9ce
JB
120292011-01-06 Joel Brobecker <brobecker@adacore.com>
12030
12031 Do not stop on SIGPRIO signals by default
12032 * infrun.c (_initialize_infrun): Unset signal_stop and
12033 signal_print for TARGET_SIGNAL_PRIO.
12034
b1ce2347
JB
120352011-01-06 Joel Brobecker <brobecker@adacore.com>
12036
12037 * ada-tasks.c: Fix style violation in comment.
12038
8f7e195f
JB
120392011-01-06 Joel Brobecker <brobecker@adacore.com>
12040
12041 * linespec.c (decode_compound, find_method): Remove trailing \n
12042 at end of error string.
12043 * solib-irix.c (irix_current_sos): Likewise.
12044 * varobj.c (uninstall_variable): Likewise.
12045
e9bdf92c
JB
120462011-01-06 Joel Brobecker <brobecker@adacore.com>
12047
12048 * copyright.py: New script.
12049 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12050 Launch emacs without exec'ing. Call copyright.py afterwards.
12051
3e43a32a
MS
120522011-01-05 Michael Snyder <msnyder@vmware.com>
12053
12054 * addrmap.c: Shorten lines of >= 80 columns.
12055 * arch-utils.c: Ditto.
12056 * arch-utils.h: Ditto.
12057 * ax-gdb.c: Ditto.
12058 * ax-general.c: Ditto.
12059 * bcache.c: Ditto.
12060 * blockframe.c: Ditto.
12061 * breakpoint.c: Ditto.
12062 * buildsym.c: Ditto.
12063 * c-lang.c: Ditto.
12064 * c-typeprint.c: Ditto.
12065 * charset.c: Ditto.
12066 * coffread.c: Ditto.
12067 * command.h: Ditto.
12068 * corelow.c: Ditto.
12069 * cp-abi.c: Ditto.
12070 * cp-namespace.c: Ditto.
12071 * cp-support.c: Ditto.
12072 * dbug-rom.c: Ditto.
12073 * dbxread.c: Ditto.
12074 * defs.h: Ditto.
12075 * dfp.c: Ditto.
12076 * dfp.h: Ditto.
12077 * dictionary.c: Ditto.
12078 * disasm.c: Ditto.
12079 * doublest.c: Ditto.
12080 * dwarf2-frame.c: Ditto.
12081 * dwarf2expr.c: Ditto.
12082 * dwarf2loc.c: Ditto.
12083 * dwarf2read.c: Ditto.
12084 * elfread.c: Ditto.
12085 * eval.c: Ditto.
12086 * event-loop.c: Ditto.
12087 * event-loop.h: Ditto.
12088 * exceptions.h: Ditto.
12089 * exec.c: Ditto.
12090 * expprint.c: Ditto.
12091 * expression.h: Ditto.
12092 * f-lang.c: Ditto.
12093 * f-valprint.c: Ditto.
12094 * findcmd.c: Ditto.
12095 * frame-base.c: Ditto.
12096 * frame-unwind.c: Ditto.
12097 * frame-unwind.h: Ditto.
12098 * frame.c: Ditto.
12099 * frame.h: Ditto.
12100 * gcore.c: Ditto.
12101 * gdb-stabs.h: Ditto.
12102 * gdb_assert.h: Ditto.
12103 * gdb_dirent.h: Ditto.
12104 * gdb_obstack.h: Ditto.
12105 * gdbcore.h: Ditto.
12106 * gdbtypes.c: Ditto.
12107 * gdbtypes.h: Ditto.
12108 * inf-ttrace.c: Ditto.
12109 * infcall.c: Ditto.
12110 * infcmd.c: Ditto.
12111 * inflow.c: Ditto.
12112 * infrun.c: Ditto.
12113 * inline-frame.h: Ditto.
12114 * language.c: Ditto.
12115 * language.h: Ditto.
12116 * libunwind-frame.c: Ditto.
12117 * libunwind-frame.h: Ditto.
12118 * linespec.c: Ditto.
12119 * linux-nat.c: Ditto.
12120 * linux-nat.h: Ditto.
12121 * linux-thread-db.c: Ditto.
12122 * machoread.c: Ditto.
12123 * macroexp.c: Ditto.
12124 * macrotab.c: Ditto.
12125 * main.c: Ditto.
12126 * maint.c: Ditto.
12127 * mdebugread.c: Ditto.
12128 * memattr.c: Ditto.
12129 * minsyms.c: Ditto.
12130 * monitor.c: Ditto.
12131 * monitor.h: Ditto.
12132 * objfiles.c: Ditto.
12133 * objfiles.h: Ditto.
12134 * osabi.c: Ditto.
12135 * p-typeprint.c: Ditto.
12136 * p-valprint.c: Ditto.
12137 * parse.c: Ditto.
12138 * printcmd.c: Ditto.
12139 * proc-events.c: Ditto.
12140 * procfs.c: Ditto.
12141 * progspace.c: Ditto.
12142 * progspace.h: Ditto.
12143 * psympriv.h: Ditto.
12144 * psymtab.c: Ditto.
12145 * record.c: Ditto.
12146 * regcache.c: Ditto.
12147 * regcache.h: Ditto.
12148 * remote-fileio.c: Ditto.
12149 * remote.c: Ditto.
12150 * ser-mingw.c: Ditto.
12151 * ser-tcp.c: Ditto.
12152 * ser-unix.c: Ditto.
12153 * serial.c: Ditto.
12154 * serial.h: Ditto.
12155 * solib-frv.c: Ditto.
12156 * solib-irix.c: Ditto.
12157 * solib-osf.c: Ditto.
12158 * solib-pa64.c: Ditto.
12159 * solib-som.c: Ditto.
12160 * solib-sunos.c: Ditto.
12161 * solib-svr4.c: Ditto.
12162 * solib-target.c: Ditto.
12163 * solib.c: Ditto.
12164 * somread.c: Ditto.
12165 * source.c: Ditto.
12166 * stabsread.c: Ditto.
12167 * stabsread.c: Ditto.
12168 * stack.c: Ditto.
12169 * stack.h: Ditto.
12170 * symfile-mem.c: Ditto.
12171 * symfile.c: Ditto.
12172 * symfile.h: Ditto.
12173 * symmisc.c: Ditto.
12174 * symtab.c: Ditto.
12175 * symtab.h: Ditto.
12176 * target-descriptions.c: Ditto.
12177 * target-memory.c: Ditto.
12178 * target.c: Ditto.
12179 * target.h: Ditto.
12180 * terminal.h: Ditto.
12181 * thread.c: Ditto.
12182 * top.c: Ditto.
12183 * tracepoint.c: Ditto.
12184 * tracepoint.h: Ditto.
12185 * ui-file.c: Ditto.
12186 * ui-file.h: Ditto.
12187 * ui-out.h: Ditto.
12188 * user-regs.c: Ditto.
12189 * user-regs.h: Ditto.
12190 * utils.c: Ditto.
12191 * valarith.c: Ditto.
12192 * valops.c: Ditto.
12193 * valprint.c: Ditto.
12194 * valprint.h: Ditto.
12195 * value.c: Ditto.
12196 * varobj.c: Ditto.
12197 * varobj.h: Ditto.
12198 * vec.h: Ditto.
12199 * xcoffread.c: Ditto.
12200 * xcoffsolib.c: Ditto.
12201 * xcoffsolib.h: Ditto.
12202 * xml-syscall.c: Ditto.
12203 * xml-tdesc.c: Ditto.
12204
9a2b4c1b
MS
122052011-01-05 Michael Snyder <msnyder@vmware.com>
12206
12207 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12208 * cli/cli-decode.c: Ditto.
12209 * cli/cli-dump.c: Ditto.
12210 * cli/cli-logging.c: Ditto.
12211 * cli/cli-script.c: Ditto.
12212 * cli/cli-setshow.c: Ditto.
12213 * common/signals.c: Ditto.
12214 * mi/mi-cmd-break.c: Ditto.
12215 * mi/mi-cmd-disas.c: Ditto.
12216 * mi/mi-cmd-stack.c: Ditto.
12217 * mi/mi-cmd-var.c: Ditto.
12218 * mi/mi-cmds.c: Ditto.
12219 * mi/mi-common.h: Ditto.
12220 * mi/mi-console.c: Ditto.
12221 * mi/mi-interp.c: Ditto.
12222 * mi/mi-main.c: Ditto.
12223 * osf-share/cma_attr.c: Ditto.
12224 * osf-share/cma_deb_core.h: Ditto.
12225 * osf-share/cma_debug_client.h: Ditto.
12226 * osf-share/cma_handle.h: Ditto.
12227 * osf-share/cma_mutex.h: Ditto.
12228 * osf-share/cma_stack_int.h: Ditto.
12229 * osf-share/cma_tcb_defs.h: Ditto.
12230 * python/py-auto-load.c: Ditto.
12231 * python/py-breakpoint.c: Ditto.
12232 * python/py-cmd.c: Ditto.
12233 * python/py-frame.c: Ditto.
12234 * python/py-objfile.c: Ditto.
12235 * python/py-param.c: Ditto.
12236 * python/py-progspace.c: Ditto.
12237 * python/py-symbol.c: Ditto.
12238 * python/py-value.c: Ditto.
12239 * python/python-internal.h: Ditto.
12240 * python/python.c: Ditto.
12241 * tui/tui-data.c: Ditto.
12242 * tui/tui-disasm.c: Ditto.
12243 * tui/tui-hooks.c: Ditto.
12244 * tui/tui-io.c: Ditto.
12245 * tui/tui-layout.c: Ditto.
12246 * tui/tui-regs.c: Ditto.
12247 * tui/tui-source.c: Ditto.
12248 * tui/tui-stack.c: Ditto.
12249 * tui/tui-win.c: Ditto.
12250 * tui/tui-windata.c: Ditto.
12251 * tui/tui-winsource.c: Ditto.
12252
44944448
JB
122532011-01-05 Joel Brobecker <brobecker@adacore.com>
12254
12255 * configure.ac, gdb.1: Copyright year update.
12256
ebedcab5
JK
122572011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12258
12259 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12260 this_pc_in_block, morestack_msym and morestack_name. Check for
12261 "__morestack" minimal symbol there.
12262
e5cc9f32
JB
122632011-01-03 Joel Brobecker <brobecker@adacore.com>
12264
12265 * symfile.c (find_sym_fns): Add call to dont_repeat.
12266
7b6bb8da
JB
122672011-01-01 Joel Brobecker <brobecker@adacore.com>
12268
12269 Copyright year update in most files (performed by copyright.sh).
12270
71ce852c
JB
122712011-01-01 Joel Brobecker <brobecker@adacore.com>
12272
12273 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12274
c3c1ebe8 12275For older changes see ChangeLog-2010.
c906108c
SS
12276\f
12277Local Variables:
12278mode: change-log
12279left-margin: 8
12280fill-column: 74
12281version-control: never
57da7796 12282coding: utf-8
c906108c 12283End:
This page took 1.889616 seconds and 4 git commands to generate.