* linespec.c (struct collect_info) <objfile>: Remove field.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-16 Tom Tromey <tromey@redhat.com>
2
3 * linespec.c (struct collect_info) <objfile>: Remove field.
4 (decode_objc): Update.
5 (find_method): Update.
6 (decode_variable): Update.
7 (struct minsym_and_objfile): New.
8 (struct collect_minsyms): New.
9 (classify_mtype): New function.
10 (compare_msyms): Likewise.
11 (add_minsym): Likewise.
12 (check_minsym): Remove.
13 (search_minsyms_for_name): Sort minsyms and apply only those with
14 top priority.
15
16 2011-12-16 Tom Tromey <tromey@redhat.com>
17
18 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
19
20 2011-12-16 Pedro Alves <pedro@codesourcery.com>
21
22 * inf-loop.c: Include top.h.
23 (inferior_event_handler): Call check_frame_language.
24 * top.c (check_frame_language_change): New, factored out from ...
25 (execute_command): ... this. Use check_frame_language_change.
26 * top.h (check_frame_language_change): Declare.
27
28 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
29
30 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
31 prototypes.
32
33 2011-12-16 Doug Evans <dje@google.com>
34
35 * NEWS: Add entry for stdio gdbserver.
36
37 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
38
39 * python/python.c: Define python_excp_enums.
40 (eval_python_from_control_command): Do not call gdbpy_print_stack.
41 (python_command): Ditto.
42 (gdbpy_print_stack): Rewrite to use new enum constants.
43 (maint_set_python): Remove function.
44 (maint_show_python): Ditto.
45 (_initialize_python): Do not add "maint" commands. Add "set/show
46 python print-stack commands".
47 * NEWS: Update to reflect removal for "maint set/show
48 print-stack"
49
50 2011-12-15 Doug Evans <dje@google.com>
51
52 * exceptions.c (catcher_list_size): New function.
53 (last_message): Delete.
54 (exception_messages, exception_messages_size): New static globals.
55 (throw_it): Use exception_messages array to handle nested calls.
56
57 2011-12-15 Tom Tromey <tromey@redhat.com>
58
59 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
60 do_cleanups call.
61
62 2011-12-14 Doug Evans <dje@google.com>
63
64 * defs.h (wait_to_die_with_timeout): Declare.
65 * utils.c: #include "gdb_wait.h".
66 (sigalrm_handler, wait_to_die_with_timeout): New functions.
67 * ser-pipe.c: Don't #include "gdb_wait.h".
68 (pipe_close): Give child a chance to die on its own after closing
69 its stdin before SIGTERM'ing it.
70
71 2011-12-14 Joel Brobecker <brobecker@adacore.com>
72 Tom Tromey <tromey@redhat.com>
73
74 * ada-lang.c (add_nonlocal_symbols): Initialize data to
75 all zeros. Remove setting of data.arg_sym to NULL.
76
77 2011-12-14 Pedro Alves <pedro@codesourcery.com>
78
79 PR threads/10729
80
81 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
82 pointer.
83 (linux_nat_prepare_to_resume): New global.
84 (lwp_free): New.
85 (purge_lwp_list): Use it.
86 (add_lwp): Call linux_nat_new_thread even on the first LWP.
87 Adjust to interface change.
88 (delete_lwp): Call lwp_free instead of xfree.
89 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
90 (linux_handle_syscall_trap, linux_handle_extended_wait)
91 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
92 linux_nat_prepare_to_resume before resuming.
93 (linux_stop_lwp): New.
94 (linux_nat_set_new_thread): Adjust.
95 (linux_nat_set_prepare_to_resume): New.
96 * linux-nat.h (struct arch_lwp_info): Forward declare.
97 (struct lwp_info) <arch_private>: New field.
98 (linux_stop_lwp): Declare.
99 (linux_nat_set_new_thread): Adjust.
100 (linux_nat_set_prepare_to_resume): New.
101
102 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
103 (struct i386_debug_reg_state): Move to i386-nat.h.
104 (dr_mirror): Comment.
105 (i386_debug_reg_state): New.
106 (i386_update_inferior_debug_regs): Simplify.
107 (i386_stopped_data_address): Use the debug register state from the
108 inferior, not from the local cache.
109 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
110 unset_status fields. New get_addr and get_control fields.
111 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
112 (DR_NADDR, DR_STATUS): New.
113 (struct i386_debug_reg_state): Moved from i386-nat.c.
114
115 * amd64-linux-nat.c (struct arch_lwp_info): New.
116 (amd64_linux_dr): Delete global.
117 (amd64_linux_dr_get_addr): New.
118 (amd64_linux_dr_get_control): New.
119 (amd64_linux_dr_unset_status): Delete.
120 (amd64_linux_dr_set_addr): Reimplement.
121 (amd64_linux_dr_reset_addr): Delete.
122 (update_debug_registers_callback): New.
123 (amd64_linux_dr_set_control): Reimplement.
124 (amd64_linux_dr_set_addr): Reimplement.
125 (amd64_linux_prepare_to_resume): New.
126 (amd64_linux_new_thread): Change parameter to an lwp pointer.
127 Reimplement.
128 (_initialize_amd64_linux_nat): No longer install
129 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
130 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
131 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
132 amd64_linux_prepare_to_resume.
133 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
134 (DR_CONTROL): Delete.
135 (struct arch_lwp_info): New.
136 (i386_linux_dr): Delete global.
137 (i386_linux_dr_set_control): Reimplement.
138 (i386_linux_dr_get_addr): New.
139 (i386_linux_dr_set_addr): Reimplement.
140 (i386_linux_dr_get_control): New.
141 (update_debug_registers_callback): New.
142 (i386_linux_dr_unset_status): Delete.
143 (i386_linux_dr_set_addr): Reimplement.
144 (i386_linux_prepare_to_resume): New.
145 (i386_linux_new_thread): Change parameter to an lwp pointer.
146 Reimplement.
147 (_initialize_i386_linux_nat): No longer install
148 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
149 i386_linux_dr_get_control as i386_dr_low.get_control. Install
150 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
151 i386_linux_prepare_to_resume.
152
153 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
154 lwp pointer. Adjust.
155 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
156 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
157 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
158 * s390-nat.c (s390_fix_watch_points): Likewise.
159
160 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
161 (DR_CONTROL): Delete.
162 (i386_darwin_dr_reset_addr): Delete.
163 (i386_darwin_dr_get_addr): New.
164 (i386_darwin_dr_get_control): New.
165 * go32-nat.c
166 (go32_get_dr7, go32_get_dr): New.
167 (init_go32_ops): No longer install i386_dr_low.reset_addr.
168 Install go32_get_dr7 as i386_dr_low.get_control. Install
169 go32_get_dr as i386_dr_low.get_addr.
170 * i386bsd-nat.c (i386bsd_dr_get): New.
171 (i386bsd_dr_reset_addr): Delete.
172 (i386bsd_dr_get_addr): New.
173 (i386bsd_dr_get_status): Use i386bsd_dr_get.
174 (i386bsd_dr_get_control): New.
175 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
176 (i386bsd_dr_get_addr): New.
177 (i386bsd_dr_get_control): New.
178 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
179 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
180 i386bsd_dr_get_control as i386_dr_low.get_control. Install
181 i386bsd_dr_get_addr as i386_dr_low.get_addr.
182 * windows-nat.c (init_windows_ops): No longer install
183 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
184 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
185 as i386_dr_low.get_addr.
186 (cygwin_get_dr): New.
187 (cygwin_get_dr7): New.
188
189 2011-12-14 Pedro Alves <pedro@codesourcery.com>
190
191 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
192 target_write_raw_memory.
193 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
194 target_write_raw_memory.
195 * microblaze-linux-tdep.c
196 (microblaze_linux_memory_remove_breakpoint): Use
197 target_write_raw_memory.
198 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
199 target_write_raw_memory.
200
201 2011-12-14 Joel Brobecker <brobecker@adacore.com>
202
203 * linespec.c (decode_line_internal): Make static.
204
205 2011-12-14 Yao Qi <yao@codesourcery.com>
206
207 * breakpoint.c (create_breakpoint): Set canonical.addr_string
208 for static tracepoint.
209
210 2011-12-13 Joel Brobecker <brobecker@adacore.com>
211
212 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
213 * version.in: Bump version to 7.4.50.20111213-cvs.
214
215 2011-12-13 Joel Brobecker <brobecker@adacore.com>
216
217 * NEWS: Create a new section for the next release branch.
218 Rename the section of the current branch, now that it has
219 been cut.
220
221 2011-12-11 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-lang.c (ada_exception_support_info_sniffer): Improve
224 error message.
225
226 2011-12-11 Joel Brobecker <brobecker@adacore.com>
227
228 * ada-lang.c (struct ada_inferior_data) [exception_info]:
229 New field.
230 (exception_info): Delete.
231 (ada_exception_support_info_sniffer): Get exception_support_info
232 data from our per-inferior data. Adjust code accordingly.
233 (ada_unhandled_exception_name_addr_from_raise): Likewise.
234 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
235 (ada_executable_changed_observer): Delete.
236 (_initialize_ada_language): Remove call to
237 observer_attach_executable_changed.
238
239 2011-12-11 Joel Brobecker <brobecker@adacore.com>
240
241 * ada-lang.c (ada_has_this_exception_support): Raise an error
242 if we could find the Ada exception hook in the Ada runtime,
243 but no debugging info for that hook.
244
245 2011-12-11 Joel Brobecker <brobecker@adacore.com>
246
247 * ada-lang.c (ada_has_this_exception_support): New function,
248 extracted out of ada_exception_sal and ada_exception_sal.
249 (ada_exception_support_info_sniffer): Simplify by using
250 ada_has_this_exception_support.
251 (ada_exception_sal): Replace unnecessary checks by assertions.
252 Minor simplifications.
253
254 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
255
256 * breakpoint.c (update_global_location_list): Remove nested
257 definition of `b'(-Wshadow).
258
259 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
260
261 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
262 `error_flag'(-Wshadow).
263
264 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
265
266 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
267 `abfd'(-Wshadow).
268
269 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
270
271 * annotate.c (annotate_array_section_begin): Rename `index' to
272 `idx'(-Wshadow).
273
274 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
275
276 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
277 `idx'(-Wshadow).
278
279 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
280
281 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
282 `syscall' to `syscall_number'(-Wshadow).
283
284 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
285
286 * ada-lang.c (remove_extra_symbols): Rename `remove' to
287 `remove_p'(-Wshadow).
288
289 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
290
291 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
292 `ren_sym'(-Wshadow).
293
294 2011-12-10 Doug Evans <dje@google.com>
295
296 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
297 debug_types_section. All uses updated.
298 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
299 to is_debug_types_section.
300
301 * python/py-auto-load.c (source_section_scripts): Call xfree
302 instead of free.
303
304 2011-12-10 Hui Zhu <teawater@gmail.com>
305 Yao Qi <yao@codesourcery.com>
306
307 * tracepoint.c (start_tracing): Clear `inserted' flag.
308
309 2011-12-10 Hui Zhu <teawater@gmail.com>
310
311 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
312
313 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
314
315 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
316 `bpoint'(-Wshadow).
317
318 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
319
320 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
321 `marker' variables to `sal2' and `tpmarker' respectively
322 (-Wshadow).
323
324 2011-12-09 Andrew Pinski <apinski@cavium.com>
325
326 * linespec.c (hash_address_entry): Use iterative_hash_object on each
327 field rather than the struct itself.
328
329 2011-12-09 Tom Tromey <tromey@redhat.com>
330
331 * breakpoint.c (compare_breakpoints): New function.
332 (clear_command): Remove duplicate breakpoints. Properly clean
333 up.
334
335 2011-12-08 Maciej W. Rozycki <macro@mips.com>
336 Maciej W. Rozycki <macro@codesourcery.com>
337
338 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
339 address chunks retrieved from decoded lui/addiu pairs.
340
341 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
342
343 * mips-tdep.c (extended_offset): Correct calculation.
344 (unpack_mips16): Correct bitfield positions used for extraction
345 of the immediate argument; fix sign-extension of same.
346 (extended_mips16_next_pc): Correct B instruction's offset
347 calculation. Correct register decoding of the BEQZ and BNEZ
348 as well as jump-register instructions. Handle compact jumps.
349
350 2011-12-08 Tom Tromey <tromey@redhat.com>
351
352 * objfiles.h (struct objfile): Remove obsolete comment.
353 * objfiles.c (build_objfile_section_table): Remove obsolete
354 comment.
355
356 2011-12-07 Stan Shebs <stan@codesourcery.com>
357
358 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
359 maintainer of the tic6x target.
360
361 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
362
363 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
364 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
365 (arm_deal_with_atomic_sequence_raw): Likewise.
366 (arm_deal_with_atomic_sequence): Likewise.
367 (arm_software_single_step): Call it.
368 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
369
370 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
371
372 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
373 where appropriate.
374 * s390-tdep.h: Likewise.
375
376 2011-12-07 Tristan Gingold <gingold@adacore.com>
377
378 * machoread.c (macho_symtab_read): Do not consider N_OPT as
379 a debugging stab. Improve complaint message.
380
381 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
382
383 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
384 load adjustment if still within the prologue.
385
386 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
387
388 * mips-tdep.c (mips32_next_pc): Fix floating point condition
389 code mask.
390
391 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
392
393 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
394 of BLTZ* and BGEZ* instructions.
395
396 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
397
398 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
399 performed to determine whether an address refers to standard
400 MIPS or MIPS16 code.
401 (mips16_next_pc): Use mips_pc_is_mips16 instead of
402 is_mips16_addr.
403
404 2011-12-06 Pedro Alves <pedro@codesourcery.com>
405
406 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
407 (breakpoint_xfer_memory): ... this. Change prototype. Handle
408 memory writes too.
409 * breakpoint.h (breakpoint_restore_shadows): Delete.
410 (breakpoint_xfer_memory): Declare.
411 * mem-break.c (default_memory_insert_breakpoint)
412 (default_memory_remove_breakpoint): Use target_write_raw_memory.
413 (memory_xfer_partial): Rename to ...
414 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
415 here.
416 (memory_xfer_partial): New.
417 (target_write_raw_memory): New.
418 * target.h (target_write_raw_memory): New.
419
420 2011-12-06 Doug Evans <dje@google.com>
421
422 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
423
424 2011-12-06 Joel Brobecker <brobecker@acacore.com>
425
426 * language.h (struct language_defn): Add new component
427 la_symbol_name_compare.
428 * symfile.h (struct quick_symbol_functions): Update the profile
429 of parameter "name_matcher" for the expand_symtabs_matching
430 method. Update the documentation accordingly.
431 * ada-lang.h (ada_name_for_lookup): Add declaration.
432 * ada-lang.c (ada_name_for_lookup): New function, extracted out
433 from ada_iterate_over_symbols.
434 (ada_iterate_over_symbols): Do not encode symbol name anymore.
435 (ada_expand_partial_symbol_name): Adjust profile.
436 (ada_language_defn): Add value for la_symbol_name_compare field.
437 * linespec.c: #include "ada-lang.h".
438 (iterate_name_matcher): Add language parameter. Replace call
439 to strcmp_iw by call to language->la_symbol_name_compare.
440 (decode_variable): Encode COPY if current language is Ada.
441 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
442 of name_matcher parameter. Adjust call to name_matcher.
443 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
444 (expand_partial_symbol_names): Update profile of parameter "fun".
445 * psymtab.h (expand_partial_symbol_names): Update profile of
446 parameter "fun".
447 * symtab.c (demangle_for_lookup): Update function documentation.
448 (search_symbols_name_matches): Add language parameter.
449 (expand_partial_symbol_name): Likewise.
450 * c-lang.c (c_language_defn, cplus_language_defn)
451 (asm_language_defn, minimal_language_defn): Add value for
452 la_symbol_name_compare field.
453 * d-lang.c (d_language_defn): Likewise.
454 * f-lang.c (f_language_defn): Ditto.
455 * jv-lang.c (java_language_defn): Ditto.
456 * m2-lang.c (m2_language_defn): Ditto.
457 * objc-lang.c (objc_language_defn): Ditto.
458 * opencl-lang.c (opencl_language_defn): Ditto.
459 * p-lang.c (pascal_language_defn): Ditto.
460 * language.c (unknown_language_defn, auto_language_defn)
461 (local_language_defn): Ditto.
462
463 2011-12-06 Tom Tromey <tromey@redhat.com>
464
465 * linespec.c (iterate_over_all_matching_symtabs): Use
466 LA_ITERATE_OVER_SYMBOLS.
467 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
468 (find_function_symbols, decode_variable): Remove Ada special
469 case.
470 * language.h (struct language_defn) <la_iterate_over_symbols>: New
471 field.
472 (LA_ITERATE_OVER_SYMBOLS): New macro.
473 * language.c (unknown_language_defn, auto_language_defn)
474 (local_language_defn): Update.
475 * c-lang.c (c_language_defn, cplus_language_defn)
476 (asm_language_defn, minimal_language_defn): Update.
477 * d-lang.c (d_language_defn): Update.
478 * f-lang.c (f_language_defn): Update.
479 * jv-lang.c (java_language_defn): Update.
480 * m2-lang.c (m2_language_defn): Update.
481 * objc-lang.c (objc_language_defn): Update.
482 * opencl-lang.c (opencl_language_defn): Update.
483 * p-lang.c (pascal_language_defn): Update.
484 * ada-lang.c (ada_iterate_over_symbols): New function.
485 (ada_language_defn): Update.
486
487 2011-12-06 Tom Tromey <tromey@redhat.com>
488 Joel Brobecker <brobecker@acacore.com>
489
490 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
491 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
492 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
493 PR shlibs/8929, PR shlibs/7393:
494 * python/py-type.c (compare_maybe_null_strings): Rename from
495 compare_strings.
496 (check_types_equal): Update.
497 * utils.c (compare_strings): New function.
498 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
499 location changes.
500 * tracepoint.c (scope_info): Update.
501 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
502 * symtab.h (iterate_over_minimal_symbols)
503 (iterate_over_some_symtabs, iterate_over_symtabs)
504 (find_pcs_for_symtab_line, iterate_over_symbols)
505 (demangle_for_lookup): Declare.
506 (expand_line_sal): Remove.
507 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
508 (lookup_symtab_callback): New functions.
509 (lookup_symtab): Rewrite.
510 (demangle_for_lookup): New function, extract from
511 lookup_symbol_in_language.
512 (lookup_symbol_in_language): Use it.
513 (iterate_over_symbols): New function.
514 (find_line_symtab): Update.
515 (find_pcs_for_symtab_line): New functions.
516 (find_line_common): Add 'start' argument.
517 (decode_line_spec): Update. Change argument to 'flags', change
518 interpretation.
519 (append_expanded_sal): Remove.
520 (append_exact_match_to_sals): Remove.
521 (expand_line_sal): Remove.
522 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
523 Remove.
524 <map_symtabs_matching_filename>: New field.
525 * stack.c (func_command): Only look in the current program space.
526 Use DECODE_LINE_FUNFIRSTLINE.
527 * source.c (line_info): Set pspace on sal. Check program space in
528 the loop. Use DECODE_LINE_LIST_MODE.
529 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
530 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
531 * python/python.c (gdbpy_decode_line): Update.
532 * psymtab.c (partial_map_expand_apply): New function.
533 (partial_map_symtabs_matching_filename): Rename from
534 lookup_partial_symbol. Update arguments.
535 (lookup_symtab_via_partial_symtab): Remove.
536 (psym_functions): Update.
537 * objc-lang.h (parse_selector, parse_method): Don't declare.
538 (find_imps): Update.
539 * objc-lang.c (parse_selector, parse_method): Now static.
540 (find_methods): Change arguments. Fill in a vector of symbol
541 names.
542 (uniquify_strings): New function.
543 (find_imps): Change arguments.
544 * minsyms.c (iterate_over_minimal_symbols): New function.
545 * linespec.h (enum decode_line_flags): New.
546 (struct linespec_sals): New.
547 (struct linespec_result) <canonical>: Remove.
548 <pre_expanded, addr_string, sals>: New fields.
549 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
550 (decode_line_full): Declare.
551 (decode_line_1): Update.
552 * linespec.c (struct address_entry, struct linespec_state, struct
553 collect_info): New types.
554 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
555 (eq_address_entry, maybe_add_address): New functions.
556 (total_number_of_methods): Remove.
557 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
558 functions.
559 (find_methods): Change arguments. Don't canonicalize input.
560 Simplify logic.
561 (add_matching_methods, add_constructors)
562 (build_canonical_line_spec): Remove.
563 (filter_results, convert_results_to_lsals): New functions.
564 (decode_line_2): Change arguments. Rewrite for new data
565 structures.
566 (decode_line_internal): Rename from decode_line_1. Change
567 arguments. Add cleanups. Update for new data structures.
568 (linespec_state_constructor, linespec_state_destructor)
569 (decode_line_full, decode_line_1): New functions.
570 (decode_indirect): Change arguments. Update.
571 (locate_first_half): Use skip_spaces.
572 (decode_objc): Change arguments. Update for new data structures.
573 Simplify logic.
574 (decode_compound): Change arguments. Add cleanups. Remove
575 fallback code, replace with error.
576 (struct decode_compound_collector): New type.
577 (collect_one_symbol): New function.
578 (lookup_prefix_sym): Change arguments. Update.
579 (compare_symbol_name, add_all_symbol_names_from_pspace)
580 (find_superclass_methods ): New functions.
581 (find_method): Rewrite.
582 (struct symtab_collector): New type.
583 (add_symtabs_to_list, collect_symtabs_from_filename): New
584 functions.
585 (symtabs_from_filename): Change API. Rename from
586 symtab_from_filename.
587 (collect_function_symbols): New function.
588 (find_function_symbols): Change API. Rename from
589 find_function_symbol. Rewrite.
590 (decode_all_digits): Change arguments. Rewrite.
591 (decode_dollar): Change arguments. Use decode_variable.
592 (decode_label): Change arguments. Rewrite.
593 (collect_symbols): New function.
594 (minsym_found): Change arguments. Rewrite.
595 (check_minsym, search_minsyms_for_name)
596 (add_matching_symbols_to_info): New function.
597 (decode_variable): Change arguments. Iterate over all symbols.
598 (symbol_found): Remove.
599 (symbol_to_sal): New function.
600 (init_linespec_result, destroy_linespec_result)
601 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
602 New functions.
603 (decode_digits_list_mode, decode_digits_ordinary): New functions.
604 * dwarf2read.c (dw2_map_expand_apply): New function.
605 (dw2_map_symtabs_matching_filename): Rename from
606 dw2_lookup_symtab. Change arguments.
607 (dwarf2_gdb_index_functions): Update.
608 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
609 * defs.h (compare_strings): Declare.
610 * cli/cli-cmds.c (compare_strings): Move to utils.c.
611 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
612 filter_sals.
613 (compare_symtabs, filter_sals): New functions.
614 * breakpoint.h (struct bp_location) <line_number, source_file>:
615 New fields.
616 (struct breakpoint) <line_number, source_file>: Remove.
617 <filter>: New field.
618 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
619 (momentary_breakpoint_from_master, add_location_to_breakpoint):
620 Update for changes to locations.
621 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
622 breakpoint.
623 (create_breakpoint_sal): Add 'filter' argument.
624 (remove_sal, expand_line_sal_maybe): Remove.
625 (create_breakpoints_sal): Remove 'sals' argument. Handle
626 pre-expanded sals and the filter.
627 (parse_breakpoint_sals): Use decode_line_full.
628 (check_fast_tracepoint_sals): Use get_sal_arch.
629 (create_breakpoint): Create a linespec_sals. Update.
630 (break_range_command): Use decode_line_full. Update.
631 (until_break_command): Update.
632 (clear_command): Update match conditions for linespec.c changes.
633 Use DECODE_LINE_LIST_MODE.
634 (say_where): Update for changes to locations.
635 (bp_location_dtor): Free 'source_file'.
636 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
637 (update_static_tracepoint): Update for changes to locations.
638 (update_breakpoint_locations): Disable ranged breakpoint if too
639 many locations match. Update.
640 (addr_string_to_sals): Use decode_line_full. Resolve all sal
641 PCs.
642 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
643 (decode_line_spec_1): Update. Change argument name to 'flags',
644 change interpretation.
645 * block.h (block_containing_function): Declare.
646 * block.c (block_containing_function): New function.
647 * skip.c (skip_function_command): Update.
648 (skip_re_set): Update.
649 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
650 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
651 * NEWS: Add entry.
652
653 2011-12-06 Tom Tromey <tromey@redhat.com>
654
655 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
656 breakpoint's pspace to be NULL.
657 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
658 * breakpoint.c (init_raw_breakpoint): Conditionally set
659 breakpoint's pspace.
660 (init_breakpoint_sal): Don't set breakpoint's pspace.
661 (prepare_re_set_context): Conditionally switch program space.
662 (addr_string_to_sals): Check executing_startup on location's
663 program space.
664
665 2011-12-06 Tom Tromey <tromey@redhat.com>
666
667 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
668 * breakpoint.c (should_be_inserted): Explicitly check if program
669 space is executing startup.
670 (describe_other_breakpoints): Update.
671 (disable_breakpoints_before_startup): Change executing_startup
672 earlier. Remove loop.
673 (enable_breakpoints_after_startup): Likewise.
674 (init_breakpoint_sal): Don't use bp_startup_disabled.
675 (create_breakpoint): Don't use bp_startup_disabled.
676 (update_global_location_list): Use should_be_inserted.
677 (bkpt_re_set): Update.
678
679 2011-12-06 Tom Tromey <tromey@redhat.com>
680
681 * python/lib/gdb/command/pretty_printers.py
682 (InfoPrettyPrinter.invoke1): Remove extra double quote.
683
684 2011-12-06 Tom Tromey <tromey@redhat.com>
685
686 * NEWS: Add MI news.
687
688 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
689
690 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
691 (S390_LAST_BREAK_REGNUM): Likewise.
692 (S390_SYSTEM_CALL_REGNUM): Likewise.
693 (S390_NUM_REGS): Update.
694
695 (s390_regmap_last_break): Add declaration.
696 (s390x_regmap_last_break): Likewise.
697 (s390_regmap_system_call): Likewise.
698
699 (tdesc_s390_linux32v1): Add declaration.
700 (tdesc_s390_linux32v2): Likewise.
701 (tdesc_s390_linux64v1): Likewise.
702 (tdesc_s390_linux64v2): Likewise.
703 (tdesc_s390x_linux64v1): Likewise.
704 (tdesc_s390x_linux64v2): Likewise.
705
706 * s390-tdep.c: Include new target description files
707 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
708 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
709 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
710 (s390_cannot_store_register): New function.
711 (s390_write_pc): Likewise.
712 (s390_dwarf_regmap): Add fields for new registers.
713 (s390_regmap_gregset): Likewise.
714 (s390x_regmap_gregset): Likewise.
715 (s390_regmap_fpregset): Likewise.
716 (s390_regmap_upper): Likewise.
717 (s390_regmap_last_break): New variable.
718 (s390x_regmap_last_break): Likewise.
719 (s390_regmap_system_call): Likewise.
720 (s390_last_break_regset): Likewise.
721 (s390x_last_break_regset): Likewise.
722 (s390_system_call_regset): Likewise.
723 (s390_upper_regset_sections): Rename to ...
724 (s390_linux64_regset_sections): ... this.
725 (s390_linux32_regset_sections): New variable.
726 (s390x_linux64_regset_sections): Likewise.
727 (s390_linux32v1_regset_sections): Likewise.
728 (s390_linux32v2_regset_sections): Likewise.
729 (s390_linux64v1_regset_sections): Likewise.
730 (s390_linux64v2_regset_sections): Likewise.
731 (s390x_linux64v1_regset_sections): Likewise.
732 (s390x_linux64v2_regset_sections): Likewise.
733 (s390_regset_from_core_section): Handle .reg-s390-last-break and
734 .reg-s390-system-call core file sections.
735 (s390_core_read_description): Check for presence of
736 .reg-s390-last-break and .reg-s390-system-call core file
737 sections and return appropriate target description.
738 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
739 "last_break" and "system_call" in target description. Install
740 appropriate gdbarch_core_regset_sections array.
741 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
742 (_initialize_s390_tdep): Initialize additional target descriptions.
743
744 * s390-nat.c: Include "elf/common.h".
745 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
746 (have_regset_last_break): New static variable.
747 (have_regset_system_call): Likewise.
748 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
749 (s390_native_collect): Likewise.
750 (fetch_regset, store_regset, check_regset): New functions.
751 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
752 and S390_SYSTEM_CALL_REGNUM.
753 (s390_linux_store_inferior_registers): Likewise.
754 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
755 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
756
757 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
758 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
759 (s390-linux32v1-expedite): Define.
760 (s390-linux32v2-expedite): Likewise.
761 (s390-linux64v1-expedite): Likewise.
762 (s390-linux64v2-expedite): Likewise.
763 (s390x-linux64v1-expedite): Likewise.
764 (s390x-linux64v2-expedite): Likewise.
765
766 * features/s390-linux32.xml: Add orig_r2 register.
767 * features/s390-linux64.xml: Likewise.
768 * features/s390x-linux64.xml: Likewise.
769 * features/s390-linux32v1.xml: New file.
770 * features/s390-linux32v2.xml: Likewise.
771 * features/s390-linux64v1.xml: Likewise.
772 * features/s390-linux64v2.xml: Likewise.
773 * features/s390x-linux64v1.xml: Likewise.
774 * features/s390x-linux64v2.xml: Likewise.
775
776 * features/s390-linux32.c: Regenerate.
777 * features/s390-linux64.c: Likewise.
778 * features/s390x-linux64.c: Likewise.
779 * features/s390-linux32v1.c: New generated file.
780 * features/s390-linux32v2.c: Likewise.
781 * features/s390-linux64v1.c: Likewise.
782 * features/s390-linux64v2.c: Likewise.
783 * features/s390x-linux64v1.c: Likewise.
784 * features/s390x-linux64v2.c: Likewise.
785
786 * regformats/s390-linux32.dat: Regenerate.
787 * regformats/s390-linux64.dat: Regenerate.
788 * regformats/s390x-linux64.dat: Regenerate.
789 * regformats/s390-linux32v1.dat: New generated file.
790 * regformats/s390-linux32v2.dat: Likewise.
791 * regformats/s390-linux64v1.dat: Likewise.
792 * regformats/s390-linux64v2.dat: Likewise.
793 * regformats/s390x-linux64v1.dat: Likewise.
794 * regformats/s390x-linux64v2.dat: Likewise.
795
796 2011-12-05 Pedro Alves <pedro@codesourcery.com>
797
798 * linux-nat.c (resume_stopped_resumed_lwps): Call
799 registers_changed.
800
801 2011-12-05 Pedro Alves <pedro@codesourcery.com>
802
803 * breakpoint.c: Include record.h.
804 (breakpoints_always_inserted_mode): Return false when the record
805 target is in use.
806
807 2011-12-05 Pedro Alves <pedro@codesourcery.com>
808
809 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
810 Reinstate perror_with_name call on ptrace error. Remove #if 0.
811 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
812 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
813
814 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
815
816 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
817 `i'(-Wshadow).
818
819 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
820
821 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
822
823 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
824
825 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
826 of `tdep'(-Wshadow).
827
828 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
829
830 Fix compilation --without-expat.
831 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
832 from ...
833 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
834
835 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
836 Jan Kratochvil <jan.kratochvil@redhat.com>
837
838 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
839 * features/library-list-svr4.dtd: New file.
840 * remote.c (PACKET_qXfer_libraries_svr4): New.
841 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
842 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
843 * solib-svr4.c (struct svr4_library_list): New.
844 [HAVE_LIBEXPAT]: Include xml-support.h.
845 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
846 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
847 [HAVE_LIBEXPAT] (svr4_library_list_children)
848 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
849 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
850 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
851 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
852 (svr4_read_so_list): Extend the corruption message by addresses.
853 (svr4_current_sos): New variable library_list, call
854 svr4_current_sos_via_xfer_libraries.
855 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
856
857 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 PR threads/13448
860 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
861 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
862
863 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
864
865 PR breakpoints/13346
866 * dwarf2read.c (process_psymtab_comp_unit): Set
867 PSYMTABS_ADDRMAP_SUPPORTED.
868 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
869 validity. New field psymtabs_addrmap_supported.
870 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
871 psymtabs_addrmap_supported.
872 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
873 !PSYMTABS_ADDRMAP_SUPPORTED.
874 (dump_psymtab, maintenance_info_psymtabs): Print also
875 psymtabs_addrmap_supported.
876
877 2011-12-01 Doug Evans <dje@google.com>
878
879 * python/py-type.c (type_object_methods): Fix "array" doc string.
880
881 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
882
883 * source.c (print_source_lines_base): Fix missing braces on else
884 clause leading to additional output.
885
886 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
887
888 * s390-nat.c (SUBOFF): Remove.
889 (s390_native_supply, s390_native_collect): New functions.
890 (supply_gregset, supply_fpregset): Use s390_native_supply.
891 (fill_gregset, fill_fpregset): Use s390_native_collect.
892
893 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
894 (s390_unwind_pseudo_register): New function.
895 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
896 registers instead of PC and CC.
897 (s390_backchain_frame_unwind_cache): Likewise.
898 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
899 full GPR pseudos.
900 (s390_trad_frame_prev_register): New function.
901 (s390_frame_prev_register): Use it.
902 (s390_sigtramp_frame_prev_register): Likewise.
903 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
904 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
905 special callback to unwind any pseudo.
906
907 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
908 * features/s390-core64.xml: Likewise.
909 * features/s390x-core64.xml: Likewise.
910 * features/s390-linux32.c: Regenerate.
911 * features/s390-linux64.c: Likewise.
912 * features/s390x-linux64.c: Likewise.
913
914 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
915
916 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
917
918 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
919
920 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
921 instruction. Add more diagnostic output.
922
923 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
924
925 * MAINTAINERS (Write After Approval): Add myself to the list.
926
927 2011-11-29 Sanjoy Das <sdas@igalia.com>
928
929 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
930 (jit_bfd_try_read_symtab): Fix comments.
931
932 2011-11-28 DJ Delorie <dj@redhat.com>
933
934 * NEWS: Mention RL78 simulator.
935
936 2011-11-28 Joel Brobecker <brobecker@adacore.com>
937
938 * symfile.h (struct quick_symbol_functions): Fix the documentation
939 of field map_matching_symbols, as symbols are sorted using
940 strcmp_iw_ordered, not strcmp_iw.
941
942 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
943
944 * symfile.h (struct quick_symbol_functions): Update the
945 documentation for field map_matching_symbols.
946
947 2011-11-28 Joel Brobecker <brobecker@adacore.com>
948
949 * ada-lang.c (compare_names): Fix wrong return value in case
950 string1 starts with the same contents as string2, followed
951 by an underscore that do not start a symbol name suffix.
952
953 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
954
955 PR python/13369
956 PR python/13374
957
958 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
959 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
960 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
961 exceptions.
962 * python/py-type.c (typy_strip_typedefs): Ditto.
963 (typy_legacy_template_argument): Ditto.
964 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
965 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
966
967 2011-11-27 Joel Brobecker <brobecker@acacore.com>
968
969 * remote.c (remote_get_tracepoint_status): Delete addrbuf
970 local variable. Avoid use of sprintf_vma.
971
972 2011-11-27 Sanjoy Das <sdas@igalia.com>
973
974 Fix regression in jit.exp.
975 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
976 (jit_register_code): Set the jit_objfile_data field to the correct
977 value.
978
979 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
980
981 * alpha-tdep.c (br_opcode): New.
982 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
983 (alpha_deal_with_atomic_sequence): New function.
984 (alpha_gdbarch_init): Handle single stepping of atomic sequences
985 with alpha_deal_with_atomic_sequence.
986
987 2011-11-24 Tristan Gingold <gingold@adacore.com>
988
989 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
990 fields. Add oso_sym, end_sym and nbr_syms.
991 (macho_register_oso): Change interface.
992 (macho_symtab_add_minsym): New function.
993 (macho_symtab_read): Rewritten.
994 (get_archive_prefix_len): Remove trailing blanks.
995 (oso_el_compare_name): Add comment.
996 (struct macho_sym_hash_entry): New structure.
997 (macho_relocate_common_syms): Remove.
998 (macho_sym_hash_newfunc): New function.
999 (macho_resolve_oso_sym_with_minsym): Likewise.
1000 (macho_add_oso_symfile): Rewritten.
1001 (macho_symfile_read_all_oso): Remove trailing blanks.
1002 Adjust code to free oso vector.
1003 (macho_symfile_read): Likewise.
1004 Move code to initialize minimal symbol
1005
1006 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1007
1008 * mips-tdep.c (extended_offset): Fix formatting.
1009
1010 2011-11-23 Doug Evans <dje@google.com>
1011
1012 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1013 (dw2_expand_symtabs_with_filename): Ditto.
1014 (dw2_expand_symtabs_matching): Ditto.
1015 (dw2_map_symbol_filenames): Ditto.
1016
1017 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1018
1019 * ada-lang.c (assign_aggregate): Minor reformatting.
1020
1021 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1022
1023 * ada-lang.c (assign_aggregate): Remove declaration of local
1024 variable `i' which is shadowing another variable with the same
1025 name declared in the outer scope.
1026
1027 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1028
1029 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1030 calls throughout this file.
1031
1032 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1033
1034 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1035 FormatMessage.
1036
1037 2011-11-22 Tom Tromey <tromey@redhat.com>
1038
1039 PR mi/8444:
1040 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1041 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1042 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1043 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1044 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1045 (print_it_catch_syscall, print_it_catch_exec)
1046 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1047 (bpstat_print): Add 'kind' argument. Handle
1048 TARGET_WAITKIND_LOADED.
1049 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1050 handle TARGET_WAITKIND_LOADED here.
1051 * breakpoint.h (bpstat_print): Update.
1052
1053 2011-11-22 Tom Tromey <tromey@redhat.com>
1054
1055 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1056
1057 2011-11-22 Tom Tromey <tromey@redhat.com>
1058
1059 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1060 Use static_assert to check the size of
1061 async_reason_string_lookup.
1062 * common/gdb_assert.h (static_assert): New macro.
1063
1064 2011-11-22 Alan Modra <amodra@gmail.com>
1065
1066 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1067 destination calculation. Don't expect >> to sign extend. Don't
1068 add a break if branch lands inside the sequence anywhere.
1069
1070 2011-11-21 Keith Seitz <keiths@redhat.com>
1071
1072 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1073 -var-evaluate-expression of an enumeration and fix expected result.
1074 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1075
1076 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1077
1078 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1079 the case where osdata->items is empty. Rename column names to a
1080 canonical form to avoid problems with unusual column names.
1081
1082 2011-11-21 Yao Qi <yao@codesourcery.com>
1083
1084 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1085
1086 2011-11-20 Stan Shebs <stan@codesourcery.com>
1087
1088 * NEWS: Mention tracepoint additions.
1089 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1090 * breakpoint.c (print_one_breakpoint_location): Identify
1091 tracepoints as such when reporting hit counts, report
1092 trace buffer usage.
1093 (create_tracepoint_from_upload): Copy status info.
1094 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1095 add fields user_name, notes, start_time, stop_time.
1096 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1097 * tracepoint.c (trace_user): New global.
1098 (trace_notes): New global.
1099 (trace_stop_notes): New global.
1100 (start_tracing): Add argument and trace note handling.
1101 (stop_tracing): Ditto.
1102 (trace_start_command): Add notes argument.
1103 (trace_stop_command): Ditto.
1104 (trace_status_command): Report additional status info.
1105 (trace_status_mi): Similarly.
1106 (trace_save): Update, record tracepoint status.
1107 (set_disconnected_tracing): Call target method directly.
1108 (send_disconnected_tracing_value): Remove.
1109 (set_trace_user): New function.
1110 (set_trace_notes): New function.
1111 (set_trace_stop_notes): New function.
1112 (parse_trace_status): Handle additional status.
1113 (parse_tracepoint_status): New function.
1114 (parse_tracepoint_definition): Call it.
1115 (tfile_get_tracepoint_status): New function.
1116 (init_tfile_ops): Use it.
1117 (_initialize_tracepoint): Add new setshows.
1118 * target.h (struct target_ops): New methods to_get_tracepoint_status
1119 and to_set_trace_notes.
1120 (target_get_tracepoint_status): New macro.
1121 (target_set_trace_notes): New macro.
1122 * target.c (update_current_target): Add new methods.
1123 * remote.c (remote_get_tracepoint_status): New function.
1124 (remote_set_trace_notes): New function.
1125 (init_remote_ops): Add them.
1126 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1127 (mi_cmd_trace_stop): Ditto.
1128
1129 2011-11-20 Sanjoy Das <sdas@igalia.com>
1130
1131 * jit.c: Include regcache.h.
1132 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1133 (jit_unwind_reg_set_impl, free_reg_value_impl)
1134 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1135 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1136 (jit_frame_prev_register, jit_dealloc_cache)
1137 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1138 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1139 jit_prepend_unwinder.
1140 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1141
1142 2011-11-20 Sanjoy Das <sdas@igalia.com>
1143
1144 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1145 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1146 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1147 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1148 (finalize_symtab, jit_object_close_impl)
1149 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1150 (free_objfile_data): New functions.
1151 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1152 function.
1153
1154 2011-11-20 Sanjoy Das <sdas@igalia.com>
1155
1156 * jit.c: Include gdb-dlfcn.h.
1157 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1158 (jit_reader_load, jit_reader_load_command)
1159 (jit_reader_unload_command): New functions.
1160 (_initialize_jit): Add commands "jit-reader-load" and
1161 "jit-reader-unload".
1162
1163 2011-11-20 Sanjoy Das <sdas@igalia.com>
1164
1165 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1166 * config.in: Add new #define HAVE_LIBDL.
1167 * configure.ac: Add check for -ldl.
1168 * configure: Re-generated by autoconf.
1169 * gdb-dlfcn.c: New file.
1170 * gdb-dlfcn.h: New file.
1171
1172 2011-11-20 Sanjoy Das <sdas@igalia.com>
1173
1174 * config.in: Add new #defines: JIT_READER_DIR and
1175 JIT_READER_DIR_RELOCATABLE.
1176 * configure.ac: New GDB directory entry for jit-reader-dir.
1177 * configure: Re-generated by autoconf.
1178 * jit.c: New static variable: const char *jit_reader_dir.
1179 (_initialize_jit): Relocate jit_reader_dir.
1180
1181 2011-11-20 Sanjoy Das <sdas@igalia.com>
1182
1183 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1184 $(includedir)/gdb.
1185 * configure.ac: Generate a correct value for TARGET_PTR for
1186 jit-reader.h. Tell configure to generate jit-reader.h from
1187 jit-reader.in.
1188 * configure: Re-generated by autoconf.
1189 * jit-reader.in: New file.
1190 * jit.c: Include jit-reader.h.
1191
1192 2011-11-20 Sanjoy Das <sdas@igalia.com>
1193
1194 * MAINTAINERS (Write After Approval): Add myself to the list.
1195
1196 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1197
1198 * findvar.c (read_frame_register_value): Respect value_offset
1199 of the register value. Remove big-endian special case.
1200
1201 2011-11-18 Tom Tromey <tromey@redhat.com>
1202
1203 PR build/7196:
1204 * remote.c (putpkt_for_catch_errors): New function.
1205 (remote_kill): Use it.
1206
1207 2011-11-18 Yao Qi <yao@codesourcery.com>
1208
1209 * breakpoint.c (create_breakpoint): Produce query message according to
1210 breakpoint's type.
1211 Allocate tracepoint per correct type.
1212 Don't check SALs for pending fast tracepoints.
1213 * tracepoint.c (process_tracepoint_on_disconnect): New.
1214 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1215
1216 2011-11-18 Yao Qi <yao@codesourcery.com>
1217
1218 * breakpoint.c (install_breakpoint): Add one more parameter so that
1219 update_global_location_list is called conditionally.
1220 (create_fork_vfork_event_catchpoint): Update.
1221 (create_syscall_event_catchpoint): Update.
1222 (create_breakpoint_sal): Update.
1223 (create_breakpoint_sal): Update. Call do_cleanups before
1224 install_breakpoint.
1225 * ada-lang.c (create_ada_exception_catchpoint): Update.
1226 * breakpoint.h (install_breakpoint): Update declaration.
1227
1228 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1229
1230 * spu-tdep.c (spu_return_value): Fix handling of
1231 TYPE_CALLING_CONVENTION annotation.
1232
1233 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1234
1235 * skip.c (skip_function_command): Work around uninitialized
1236 variable warning.
1237
1238 2011-11-16 David S. Miller <davem@davemloft.net>
1239
1240 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1241 'tv_usec' to long for printf since these fields have a type which
1242 varies.
1243
1244 2011-11-15 Doug Evans <dje@google.com>
1245
1246 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1247
1248 2011-11-15 Paul Koning <paul_koning@dell.com>
1249
1250 * python/py-type.c (typy_get_composite): New function.
1251 (typy_nonzero): New function.
1252 (typy_values): Rename from typy_fields.
1253 (typy_fields): New function.
1254 (typy_length): Raise exception if not struct, union, or enum type.
1255 (typy_getitem): Ditto.
1256 (typy_has_key): Ditto.
1257 (typy_make_iter): Ditto.
1258
1259 2011-11-15 Doug Evans <dje@google.com>
1260
1261 PR gdb/8367
1262 * NEWS: Mention new parameter basenames-may-differ.
1263 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1264 ! basenames_may_differ.
1265 * psymtab.c (lookup_partial_symtab): Ditto.
1266 * symtab.c (lookup_symtab): Ditto.
1267 (basenames_may_differ): New global.
1268 (_initialize_symtab): New parameter basenames-may-differ.
1269 * symtab.h (basenames_may_differ): Declare.
1270
1271 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1272 Luis Machado <lgustavo@codesourcery.com>
1273
1274 * auxv.c: Include observer.h.
1275 (auxv_inferior_data_cleanup): New.
1276 (invalidate_auxv_cache_inf): New.
1277 (invalidate_auxv_cache): New.
1278 (get_auxv_inferior_data): New.
1279 (auxv_inferior_data): New static global.
1280 (auxv_info): New structure.
1281 (target_auxv_search): Use get_auxv_inferior_data instead of
1282 target_read_alloc and don't free cached buffers.
1283 (fprint_target_auxv): Likewise
1284 (_initialize_auxv): Register per-inferior auxv cache and register
1285 observers to invalidate auxv cache when needed.
1286
1287 2011-11-14 Doug Evans <dje@google.com>
1288
1289 PR gdb/7200 Make "!" an alias for "shell".
1290 * NEWS: Add mention.
1291 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1292 adding "!" command, always add it.
1293 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1294 command of length one.
1295
1296 2011-11-14 Stan Shebs <stan@codesourcery.com>
1297 Kwok Cheung Yeung <kcy@codesourcery.com>
1298
1299 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1300 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1301 the minimum instruction size for fast tracepoints.
1302 * target.h (struct target_ops): Add new method
1303 to_get_min_fast_tracepoint_insn_len.
1304 (target_get_min_fast_tracepoint_insn_len): New.
1305 * target.c (update_current_target): Set up new target operation.
1306 * remote.c (remote_write_bytes_aux): Fix typo.
1307 (remote_get_min_fast_tracepoint_insn_len): New.
1308 (init_remote_ops): Initialize new field.
1309
1310 2011-11-14 Tom Tromey <tromey@redhat.com>
1311
1312 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1313 (encode_actions): Likewise.
1314
1315 2011-11-14 Yao Qi <yao@codesourcery.com>
1316
1317 * remote.c (struct remote_state): <install_in_trace> new field.
1318 (PACKET_InstallInTrace): New enum value.
1319 (remote_install_in_trace_feature): Support InstallInTrace.
1320 (remote_supports_install_in_trace): Likewise.
1321 (remote_protocol_features): Likewise.
1322 (_initialize_remote): Likewise.
1323 (remote_can_download_tracepoint): New.
1324 * target.h (struct target): New field
1325 `to_can_download_tracepoint'.
1326 (target_can_download_tracepoint): New macro.
1327 * target.c (update_current_target): Update.
1328 * breakpoint.h (struct bp_location): Add comment on field
1329 `duplicate'.
1330 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1331 and tracepoint.
1332 (remove_breakpoints): Don't remove tracepoints.
1333 (tracepoint_locations_match ): New.
1334 (breakpoint_locations_match): Call it.
1335 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1336 (download_tracepoint_locations): New.
1337 (update_global_location_list): Call it.
1338 * tracepoint.c (find_matching_tracepoint): Delete.
1339 (find_matching_tracepoint_location): Renamed from
1340 find_matching_tracepoint. Return bp_location rather than
1341 tracepoint.
1342 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1343 tracepoint is found.
1344
1345 2011-11-14 Yao Qi <yao@codesourcery.com>
1346
1347 * target.h (struct target): <to_download_tracepoint> Change type
1348 of parameter from tracepoint to bp_location.
1349 * target.c (update_current_target): Update.
1350 * tracepoint.c (start_tracing): Update.
1351 * remote.c (remote_download_tracepoint): Remove loop for each location
1352 of a tracepoint.
1353
1354 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1355
1356 * i386-nat.c (i386_insert_hw_breakpoint): Call
1357 i386_update_inferior_debug_regs.
1358 (i386_remove_hw_breakpoint): Likewise.
1359
1360 2011-11-14 Yao Qi <yao@codesourcery.com>
1361
1362 * breakpoint.c (init_raw_breakpoint): Call
1363 add_location_to_breakpoint to replace duplicated code.
1364 (add_location_to_breakpoint): Adjust the breakpoint's
1365 address prior to allocating a location.
1366
1367 2011-11-12 Matt Rice <ratmice@gmail.com>
1368
1369 * macrocmd.c (macro_no_macro_info): New function.
1370 (macro_expand_command): Use macro_no_macro_info.
1371 (macro_expand_once_command): Ditto.
1372 (info_macro_command): Add argument processing,
1373 move info_definitions_command here.
1374 (_initialize_macrocmd): Remove info definitions command.
1375 Add arguments to info macro help text.
1376 * NEWS: Replace info definitions command with new info macro options.
1377
1378 2011-11-11 Keith Seitz <keiths@redhat.com>
1379
1380 PR gdb/12843
1381 * linespec.c (locate_first_half): Keep ':' if it looks
1382 like it could be part of a Windows path starting with
1383 a drive letter.
1384
1385 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1386
1387 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1388 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1389
1390 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1391
1392 * target.c (target_waitstatus_to_string): Handle
1393 TARGET_WAITKIND_NO_RESUMED.
1394
1395 2011-11-10 Doug Evans <dje@google.com>
1396
1397 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1398 `need_fullname'.
1399 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1400 (map_partial_symbol_filenames): Ditto. All callers updated.
1401 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1402 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1403 parameter need_fullname.
1404
1405 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1406 * source.c (symtab_to_fullname): Ditto.
1407
1408 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1409 * gdb-demangle.h: ... here. New file.
1410 * demangle.c: #include "gdb-demangle.h".
1411 (_initialize_demangler): Use initialize_file_ftype for prototype.
1412 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1413 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1414 from utils.c
1415 * utils.c: Update. #include "gdb-demangle.h".
1416 * symtab.h (asm_demangle): Delete.
1417 (demangle): Move declaration next to use.
1418 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1419 * dwarf2read.c: #include "gdb-demangle.h".
1420 * gnu-v2-abi.c: Ditto.
1421 * jv-typeprint.c: Ditto.
1422 * mdebugread.c: Ditto.
1423 * p-typeprint.c: Ditto.
1424 * stabsread.c: Ditto.
1425 * printcmd.c: Ditto.
1426 (asm_demangle): Delete declaration.
1427 * tui/tui-stack.c: #include "gdb-demangle.h".
1428
1429 * python/py-type.c (typy_fields_items): Call check_typedef.
1430
1431 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1432
1433 * findvar.c (read_frame_register_value): Read the correct bytes
1434 from registers on big-endian architectures.
1435
1436 2011-11-10 Tom Tromey <tromey@redhat.com>
1437
1438 * procfs.c (load_syscalls): Make a cleanup.
1439 (open_procinfo_files): fd==0 is ok.
1440
1441 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1442
1443 * procfs.c (iterate_over_mappings): Call do_cleanups before
1444 returning.
1445
1446 2011-11-09 Doug Evans <dje@google.com>
1447
1448 * gdbtypes.c (check_typedef): Document that this function can
1449 throw an exception.
1450
1451 2011-11-09 Tom Tromey <tromey@redhat.com>
1452
1453 PR c++/13342:
1454 * valops.c (value_full_object): Return early if real type is
1455 smaller than the enclosing type.
1456
1457 2011-11-08 Yao Qi <yao@codesourcery.com>
1458
1459 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1460
1461 2011-11-08 Meador Inge <meadori@codesourcery.com>
1462
1463 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1464 register when the frame can't be determined.
1465 * arm-tdep.c (arm_analyze_prologue): Ditto.
1466
1467 2011-11-07 Stan Shebs <stan@codesourcery.com>
1468
1469 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1470
1471 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1472
1473 * infrun.c (handle_inferior_event): Minor reformatting.
1474
1475 2011-11-05 Doug Evans <dje@google.com>
1476
1477 * source.c (forget_cached_source_info_for_objfile): Move call to
1478 objfile->sf->qf->forget_cached_source_info outside of
1479 ALL_OBJFILE_SYMTABS loop.
1480 (forget_cached_source_info): Delete unused variable `s'.
1481
1482 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1483
1484 * i386-nat.c (dr_ref_count): Remove unused variable.
1485
1486 2011-11-05 Doug Evans <dje@google.com>
1487
1488 * main.c (captured_main): Set lim_at_start before calling
1489 make_command_stats_cleanup.
1490
1491 2011-11-04 Doug Evans <dje@google.com>
1492
1493 * utils.c: #include "timeval-utils.h".
1494 (cmd_stats): Rename start_time to start_cpu_time.
1495 New member start_wall_time.
1496 (report_command_stats): Report wall time.
1497 (make_command_stats_cleanup): Record start wall time.
1498
1499 2011-11-04 Tom Tromey <tromey@redhat.com>
1500
1501 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1502
1503 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1504
1505 * coff-pe-read.c: Include defs.h before bfd.h.
1506
1507 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1508
1509 PR Python/13345
1510
1511 * python/python.c (python_run_simple_file): Expand tilde in path.
1512
1513 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1514
1515 PR Python/13363
1516
1517 * python/py-type.c (typy_lookup_type): Do not return a type in
1518 an exception handler.
1519
1520 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1521 Eli Zaretskii <eliz@gnu.org>
1522
1523 * linux-nat.c (_initialize_linux_nat): Improve help
1524 for `info proc stat', `info proc status', `info proc cwd',
1525 `info proc cmdline' and `info proc exe'.
1526
1527 2011-11-02 Stan Shebs <stan@codesourcery.com>
1528
1529 String collection for tracepoints.
1530 * NEWS: Mention string collection.
1531 * common/ax.def (tracenz): New bytecode.
1532 * ax-gdb.h (trace_string_kludge): Declare.
1533 * ax-gdb.c: Include valprint.h and c-lang.h.
1534 (trace_string_kludge): New global.
1535 (gen_traced_pop): Add string case.
1536 (agent_command): Add string case.
1537 * tracepoint.h (decode_agent_options): Declare.
1538 * tracepoint.c: Include cli-utils.h.
1539 (decode_agent_options): New function.
1540 (validate_actionline): Call it.
1541 (encode_actions_1): Ditto.
1542 * target.h (struct target_ops): New method to_supports_string_tracing.
1543 (target_supports_string_tracing): New macro.
1544 * target.c (update_current_target): Add to_supports_string_tracing.
1545 * remote.c (struct remote_state): New field string_tracing.
1546 (remote_string_tracing_feature): New function.
1547 (remote_protocol_features): New feature tracenz.
1548 (remote_supports_string_tracing): New function.
1549 (init_remote_ops): Set to_supports_string_tracing.
1550
1551 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1552 Jan Kratochvil <jan.kratochvil@redhat.com>
1553
1554 * linux-nat.c: Include cli/cli-utils.h.
1555 (enum info_proc_what): New.
1556 (linux_nat_info_proc_cmd): Rename to ...
1557 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1558 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1559 status_f and stat_f from WHAT. Throw error on extra parameters.
1560 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1561 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1562 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1563 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1564 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1565 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1566 `info proc cmdline', `info proc exe' and `info proc all' as real
1567 subcommands of `info proc'.
1568
1569 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1570
1571 * Makefile.in: (SFILES): Add skip.c.
1572 (HFILES_NO_SRCDIR): Add skip.h.
1573 (COMMON_OBS): Add skip.o.
1574 * skip.h, skip.c: New.
1575 * breakpoint.h (set_default_breakpoint): Remove.
1576 (get_sal_arch): Declare.
1577 * breakpoint.c: Remove default_breakpoint_valid,
1578 default_breakpoint_address, default_breakpoint_symtab,
1579 default_breakpoint_line, default_breakpoint_pspace variables.
1580 (get_sal_arch): Make public.
1581 (set_default_breakpoint): Remove.
1582 (parse_breakpoint_sals, create_breakpoint, clear_command,
1583 decode_line_spec_1): Remove uses of default_breakpoint variables;
1584 replaced with function calls into stack.c.
1585 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1586 * cli/cli-cmds.c: Add skiplist.
1587 (init_cmd_lists): Initialize skiplist.
1588 (init_cli_cmds): Fix comment (classes of commands appear in
1589 alphabetical order).
1590 * infrun.c (handle_inferior_event): Add check that we don't step into
1591 a function whose pc is marked for skip.
1592 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1593 last_displayed_addr, last_displayed_symtab, last_displayed_line
1594 variables.
1595 (set_last_displayed_sal): New static function.
1596 (print_frame_info): Switch call to set_default_breakpoint to call to
1597 set_last_displayed_sal.
1598 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1599 get_last_displayed_pspace, get_last_displayed_addr,
1600 get_last_displayed_symtab, get_last_displayed_line,
1601 get_last_displayed_sal): New public functions.
1602 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1603 get_last_displayed_pspace, get_last_displayed_addr,
1604 get_last_displayed_symtab, get_last_displayed_line,
1605 get_last_displayed_sal): Declare.
1606
1607 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1608
1609 * MAINTAINERS (Write After Approval): Add myself to the list.
1610
1611 2011-10-29 Yao Qi <yao@codesourcery.com>
1612
1613 * infcmd.c (disconnect_command): Call disconnect_tracing.
1614
1615 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1616
1617 Code cleanup.
1618 * symtab.c (skip_prologue_sal): Code reformatting.
1619
1620 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1621
1622 PR symtab/13208
1623 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1624 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1625 SAI.
1626
1627 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1628
1629 * linux-nat.c (linux_nat_filter_event): Remove `options'
1630 parameter, and dead code that used it. If we're handling a
1631 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1632 in our lwp list, re-add it.
1633 (check_zombie_leaders): New.
1634 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1635 wait for children with WNOHANG, and always wait for all children.
1636 Don't check for no resumed children upfront. Simplify wait loop.
1637 Check for zombie thread group leaders after handling all wait
1638 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1639 unwaited-for children left.
1640 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1641 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1642 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1643 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1644
1645 2011-10-28 Sterling Augustine <saugustine@google.com>
1646
1647 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1648 * symtab.c (free_completion_list): New function.
1649 (do_free_completion_list): Likewise.
1650 (default_make_symbol_completion_list_break_on): New variable
1651 back_to. Call make_cleanup and discard_cleanups.
1652 (make_source_files_completion_list): Likewise.
1653
1654 2011-10-28 Paul Koning <paul_koning@dell.com>
1655
1656 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1657 * NEWS: Mention deep_items.
1658
1659 2011-10-28 Alen Skondro <askondro@gmail.com>
1660
1661 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1662 defined.
1663
1664 2011-10-27 Meador Inge <meadori@codesourcery.com>
1665
1666 * MAINTAINERS (Write After Approval): Add myself to the list.
1667
1668 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1669
1670 * value.h (read_frame_register_value): Add declaration.
1671 * findvar.c (read_frame_register_value): New function.
1672 (value_from_register): Use read_frame_register_value
1673 instead of get_frame_register_value + value_contents_copy
1674 to get value contents.
1675
1676 2011-10-27 Doug Evans <dje@google.com>
1677
1678 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1679 source_script_from_stream if it may have been found on the search path.
1680 * python/py-auto-load.c (source_section_scripts): Pass full path to
1681 source_python_script_for_objfile.
1682 * python/python.c (source_python_script): Delete stream parameter.
1683 All callers updated.
1684 (source_python_script_for_objfile): Ditto.
1685 * python/python-internal.h (source_python_script_for_objfile): Update.
1686 * python/python.h (source_python_script): Update.
1687
1688 2011-10-27 Tom Tromey <tromey@redhat.com>
1689
1690 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1691 (ada_sals_for_line): Remove declarations.
1692
1693 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1694
1695 Move unwind reasons to an external .def file
1696 * frame.c (frame_stop_reason_string): Rewrite using
1697 unwind_stop_reasons.def.
1698 * frame.h (enum unwind_stop_reason): Likewise.
1699 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1700 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1701 constants for bound-checking.
1702 * unwind_stop_reasons.def: New file.
1703 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1704 instead of a distinct value.
1705
1706 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1707
1708 PR python/13331
1709
1710 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1711 (convert_values_to_python): Return on Python tuple allocation
1712 failure. Return NULL on value conversion error.
1713
1714 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1715
1716 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1717 (bppy_set_task): Ditto.
1718 (bppy_delete_breakpoint): Ditto.
1719 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1720 (gdbpy_lookup_global_symbol): Ditto.
1721 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1722 * python/py-frame.c (frapy_is_valid): Ditto.
1723 (frame_info_to_frame_object): Ditto.
1724 * python/py-type.c (typy_lookup_type): Ditto.
1725 (typy_getitem): Ditto.
1726 (typy_has_key): Ditto.
1727 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1728
1729 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1730
1731 * gdbarch.h: Regenerate.
1732
1733 2011-10-26 Meador Inge <meadori@codesourcery.com>
1734
1735 * gdbarch.sh (function_list): Use 'pstring' when printing
1736 'gcore_bfd_target'.
1737 * gdbarch.c: Regenerate.
1738
1739 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1740
1741 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1742 and frame caches if PTID refers to all threads of a process.
1743
1744 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1747 to create_breakpoint.
1748
1749 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1750
1751 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1752 (ppc_sysv_abi_push_dummy_call): Use it.
1753 (do_ppc_sysv_return_value): Likewise.
1754 (ppc64_sysv_abi_push_dummy_call): Likewise.
1755 (ppc64_sysv_abi_return_value): Likewise.
1756
1757 2011-10-26 Paul Koning <paul_koning@dell.com>
1758
1759 * python/lib/gdb/types.py (deepitems): New function.
1760
1761 2011-10-25 Paul Koning <paul_koning@dell.com>
1762
1763 PR python/13327
1764
1765 * python/py-value.c (value_to_value_object): Remove fetching of
1766 the value if it was lazy.
1767 (valpy_get_is_lazy): New function.
1768 (valpy_fetch_lazy): New function.
1769
1770 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1773 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1774
1775 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1776
1777 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1778 event, in non-stop, if not stopping, make sure the new lwp has
1779 last_resume_kind set to resume_continue. Assert that when we're
1780 resuming the new lwp, its last_resume_kind is resume_continue.
1781
1782 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1783
1784 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1785 already set when marking the event thread as not executing in
1786 non-stop mode.
1787
1788 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1789
1790 * infrun.c (handle_inferior_event): Add debug output for
1791 TARGET_WAITKIND_NO_HISTORY.
1792
1793 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1794
1795 * NEWS: Move set/show extended-prompt to "New Options". Expand
1796 description. Fix typos.
1797
1798 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1799
1800 PR python/13310
1801
1802 * python/py-param.c (call_doc_function): Correctly deference on
1803 function exit.
1804
1805 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1806
1807 * ada-tasks.c (print_ada_task_info): Fix computation of
1808 number of tasks displayed in command output.
1809
1810 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 Ulrich Weigand <uweigand@de.ibm.com>
1812
1813 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1814 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1815 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1816 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1817 gdbarch_unwind_pc.
1818
1819 2011-10-20 Cary Coutant <ccoutant@google.com>
1820
1821 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1822 section to...
1823 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1824 flag. Adjust all callers.
1825 (process_psymtab_comp_unit): Remove adjustment for type section.
1826
1827 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1828
1829 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1830 arguments by adding OBJFILE. Instead of getting objfile from
1831 symbol's symtab, use new argument OBJFILE.
1832 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1833 arguments by adding OBJFILE.
1834 * gdb/dwarf2read.c (new_symbol_full): Change call to
1835 cp_scan_for_anonymous_namespaces to match new signature.
1836 * gdb/stabsread.c (define_symbol): Change call to
1837 cp_scan_for_anonymous_namespaces to match new signature.
1838
1839 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1840
1841 PR python/13308
1842 PR python/13309
1843
1844 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1845 leak.
1846 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1847 leak. Delete unused variables.
1848
1849 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1850
1851 PR python/12656
1852
1853 * python/py-frame.c (frapy_read_var): Use const struct *block.
1854 * python/py-type.c (typy_lookup_typename): Likewise.
1855 (typy_lookup_type): Likewise.
1856 (typy_legacy_template_argument): Likewise.
1857 (typy_template_argument): Likewise.
1858 (gdbpy_lookup_type): Likewise.
1859 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1860 * python/py-block.c (blpy_block_object): Likewise.
1861 (blpy_iter): Likewise.
1862 (blpy_get_start): Likewise.
1863 (blpy_get_end): Likewise.
1864 (blpy_get_function): Likewise.
1865 (blpy_get_superblock): Likewise.
1866 (set_block): Likewise.
1867 (block_to_block_object): Likewise.
1868 (block_object_to_block): Likewise.
1869 (blpy_is_valid): Likewise.
1870 (blpy_get_global_block): New function.
1871 (blpy_get_static_block): New function.
1872 (blpy_is_global): New function.
1873 (blpy_is_static): New function.
1874 * blockframe.c (block_innermost_frame): Likewise.
1875 * valops.c (value_of_variable): Likewise.
1876 * frame.h: Update prototypes.
1877 * python/python-internal.h: Likewise.
1878 * value.h: Likewise.
1879
1880 2011-10-19 Cary Coutant <ccoutant@google.com>
1881
1882 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1883 type_offset field.
1884
1885 2011-10-19 Cary Coutant <ccoutant@google.com>
1886
1887 * dwarf2read.c (peek_abbrev_code): New function.
1888 (dw2_get_file_names): Check for dummy compilation units.
1889 (create_debug_types_hash_table): Likewise.
1890 (process_psymtab_comp_unit): Likewise.
1891 (load_partial_comp_unit): Likewise.
1892 (load_full_comp_unit): Likewise.
1893
1894 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1895
1896 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1897 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1898 pt_phdr if PT_PHDR was found.
1899
1900 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1901
1902 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1903 type or "<unnamed type"> when there is no name assigned.
1904 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1905 avoid a sigint when no name is assigned.
1906
1907 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1908
1909 Revert:
1910 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * dwarf2expr.c (ctx_no_read_reg): New function.
1912 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1913 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1914 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1915 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1916
1917 2011-10-16 Doug Evans <dje@google.com>
1918
1919 * NEWS: Document python gdb.printing.register_pretty_printer's new
1920 `replace' parameter.
1921
1922 2011-10-14 Keith Seitz <keiths@redhat.com>
1923
1924 PR c++/13225
1925 * eval.c (evaluate_subexp_standard): Do not construct
1926 an array of types; pass the value array directly to
1927 find_overload_match.
1928 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1929 (rank_function): Take an array of values instead of types.
1930 (rank_one_type): Add struct value * parameter.
1931 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1932 (rank_function): For each argument, pass the argument's
1933 value to rank_one_type.
1934 (rank_one_type): Add VALUE parameter.
1935 If the parameter type is a pointer and the argument type
1936 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1937 VALUE is zero.
1938 Update all calls to rank_one_type, passing NULL for new
1939 VALUE parameter.
1940 * valarith.c (value_user_defined_cpp_op): Do not construct
1941 an array of types; pass the value array directly to
1942 find_overload_match.
1943 * valops.c (find_overload_method_list): Take an array of
1944 values instead of types.
1945 Save the type of OBJP for later use.
1946 Update calls to find_oload_champ, and find_oload_champ_namespace.
1947 (find_oload_champ_namespace): Take an array of values instead
1948 of types.
1949 (find_oload_champ_namespace_loop): Likewise.
1950 (find_oload_champ): Likewise.
1951 (classify_oload_match): Inspect all arguments
1952 until INCOMPATIBLE is found. Return the worst badness found
1953 otherwise.
1954 (compare_parameters): Update call to rank_one_type.
1955 * value.h (find_overload_match): Take an array of values instead
1956 of types.
1957
1958 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 Drop lazy lm_info reading.
1961 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1962 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1963 (lm_info_read): New function.
1964 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1965 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1966 lm_dynamic_from_link_map.
1967 (lm_next, lm_prev, lm_name): Remove.
1968 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1969 initialization incl. read_memory. No longer use lm_name.
1970 (svr4_free_so): Drop lm_info->lm freeing.
1971 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1972 explicit lm_addr and lm initialization.
1973 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1974 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1975 lm_name.
1976
1977 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Paul Pluzhnikov <ppluzhnikov@google.com>
1979
1980 * defs.h (struct so_list): New forward declaration.
1981 (make_cleanup_free_so): New declaration.
1982 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1983 (svr4_free_so): Move the function here from downwards. Handle NULL
1984 so->lm_info.
1985 (svr4_free_library_list): New.
1986 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1987 Use more cleanups. Use new parameter ignore_first instead of
1988 ignore_first_link_map_entry.
1989 (svr4_current_sos): New variable ignore_first, initialize it. New
1990 variable back_to, use it for svr4_free_library_list protection.
1991 (svr4_free_so): Remove - move upwards.
1992 * utils.c: Include solist.h.
1993 (do_free_so, make_cleanup_free_so): New functions.
1994
1995 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 Fix internal error regression.
1998 * value.c (value_primitive_field): Handle value_optimized_out. Move
1999 packed bitfields comment.
2000
2001 2011-10-13 Tom Tromey <tromey@redhat.com>
2002
2003 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2004 always released.
2005
2006 2011-10-13 Tom Tromey <tromey@redhat.com>
2007
2008 * python/py-type.c (typy_has_key): Make 'field' const.
2009
2010 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2011
2012 * remote.c (remote_save_trace_data): Invert comparison.
2013
2014 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2015
2016 * tracepoint.c (trace_save_command): Use filename instead of
2017 args when printing.
2018
2019 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2020
2021 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2022 if .size is 0.
2023
2024 2011-10-13 Yao Qi <yao@codesourcery.com>
2025
2026 PR gdb/12703
2027 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2028 whether insn is a 32-bit Thumb-2 instruction.
2029 (thumb_in_function_epilogue_p): Likewise.
2030 (thumb_get_next_pc_raw): Likewise.
2031 (arm_breakpoint_from_pc): Likewise.
2032
2033 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2034
2035 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2036 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2037 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2038 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2039 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2040 zero DATA.
2041 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2042 validity.
2043 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2044 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2045 clear DATA on zero SIZE.
2046
2047 2011-10-12 Doug Evans <dje@google.com>
2048
2049 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2050 header->first_die_offset here. All callers updated.
2051
2052 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 Fix compatibility with texinfo versions older than 4.12.
2055 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2056 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2057 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2058 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2059 * configure: Regenerate.
2060 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2061 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2062 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2063
2064 2011-10-12 Gary Benson <gbenson@redhat.com>
2065
2066 * breakpoint.h (pc_at_non_inline_function): Declare.
2067 * breakpoint.c (is_non_inline_function,
2068 pc_at_non_inline_function): New functions.
2069 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2070 if the stop is at a location where functions cannot be inlined.
2071
2072 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2073
2074 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2075 the core wanted them stopped, or if they now have a pending event
2076 to report.
2077 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2078 down to stop_and_resume_callback.
2079 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2080 having new pending events after calling linux_nat_filter_event.
2081
2082 2011-10-11 Sterling Augustine <saugustine@google.com>
2083
2084 * dwarf2read.c: Undo inadvertent changes in previous commit.
2085
2086 2011-10-11 Sterling Augustine <saugustine@google.com>
2087
2088 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2089 logic.
2090
2091 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2092
2093 * symfile.c (separate_debug_file_exists): Fix condition.
2094
2095 2011-10-11 David S. Miller <davem@davemloft.net>
2096
2097 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2098 static.
2099 * regcache.h (regcache_restore): Remove declaration.
2100
2101 * gdbarch.sh: New field 'long_long_align_bit'.
2102 * gdbarch.c, gdbarch.h: Regenerate.
2103 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2104 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2105
2106 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 Revert this part of:
2109 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 Support @entry in input expressions.
2111 * c-exp.y (ENTRY, unknown_cpp_name): New.
2112 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2113 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2114 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2115 (name_not_typename: ENTRY): New.
2116 (yylex): Recognize ENTRY.
2117
2118 Reimplement @entry in input expressions.
2119 * c-exp.y (ENTRY): New.
2120 (variable: name_not_typename ENTRY): New.
2121 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2122
2123 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2124
2125 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2126 parent and child's pids as soon as we detect a clone event.
2127 Adjust another debug message.
2128
2129 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2130
2131 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2132 not zombie instead of reading the whole file.
2133
2134 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 Fix separate debuginfo warning with "remote:" access.
2137 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2138 * symfile.c (get_file_crc): New function with the code moved from ...
2139 (separate_debug_file_exists): ... this function, specifically variables
2140 buffer and count. New variable verified_as_different, set it. Remove
2141 file_crc initialization. Verify also if both files are not the same
2142 manually, if needed.
2143
2144 2011-10-11 Yao Qi <yao@codesourcery.com>
2145
2146 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2147 to get address.
2148
2149 2011-10-10 Doug Evans <dje@google.com>
2150
2151 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2152 libthread_db when we load libpthread or the main symbol file.
2153 (thread_db_inferior_created): New function.
2154 (_initialize_thread_db): Attach inferior_created observer.
2155 * linux-nat.c (linux_child_post_attach): Remove call to
2156 check_for_thread_db.
2157 (linux_child_post_startup_inferior): Ditto.
2158 * objfiles.h (OBJF_MAINLINE): Define.
2159 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2160 allocate_objfile when appropriate.
2161
2162 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2163
2164 PR gdb/13218
2165 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2166 Remove unused variables.
2167 (get_linux_version): Remove function.
2168 (_initialize_arm_linux_nat): Do not call it.
2169
2170 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2171
2172 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2173 new clone lwp if the core asked it to stop. Don't pass on
2174 unexpected signals to the new clone; leave them pending instead.
2175
2176 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2177
2178 * linux-nat.c (resume_lwp): Remove redundant debug output.
2179
2180 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2181
2182 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2183 last_resume_kind before clearing it, and use the copy instead to
2184 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2185 resume_clear_callback in the non-stop path too.
2186
2187 2011-10-09 Yao Qi <yao@codesourcery.com>
2188
2189 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2190 Honor OPTIONS and VAL's type.
2191 (common_val_print, value_print): Update to pass one more parameter.
2192
2193 2011-10-09 Doug Evans <dje@google.com>
2194
2195 Add new "alias" command.
2196 * NEWS: Mention new command.
2197 * command.h (valid_user_defined_cmd_name_p): Declare.
2198 * defs.h (make_cleanup_dyn_string_delete): Declare.
2199 * utils.c: #include "dyn-string.h".
2200 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2201 * cli/cli-cmds.c: #include "dyn-string.h".
2202 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2203 (init_cli_cmds): Add new command.
2204 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2205
2206 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 Fix compatibility with older GCCs.
2209 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2210 * stack.c (read_frame_arg): Initialize val_deref.
2211
2212 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 Entry values NEWS entries, DWARF disassembly support.
2215 * NEWS: New entry values entry.
2216 (set print entry-values, show print entry-values)
2217 (set debug entry-values, show debug entry-values): New entries.
2218 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2219 indent. Remove variable start. Move header printing out. Respect
2220 INDENT. Support DW_OP_GNU_entry_value.
2221 (locexpr_describe_location_1): Move the header printing here, extend
2222 the disassemble_dwarf_expression passed parameters.
2223
2224 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 Display @entry parameter values even for references.
2227 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2228 coerce_ref_if_computed.
2229 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2230 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2231 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2232 existing push_dwarf_reg_entry_value call. Add new detection calling
2233 dwarf_block_to_dwarf_reg_deref. Update the error message.
2234 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2235 * dwarf2expr.h
2236 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2237 parameter deref_size, describe it in the comment.
2238 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2239 (dwarf_block_to_dwarf_reg_deref): New declaration.
2240 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2241 deref_size, describe it in the function comment. New variables
2242 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2243 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2244 describe it in the function comment. Fetch the alternative block
2245 accoring to DEREF_SIZE.
2246 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2247 (entry_data_value_free_closure, entry_data_value_funcs): New.
2248 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2249 outer_val, target_val, val and addr. Try to fetch and create also
2250 referenced value content.
2251 (pieced_value_funcs): NULL value for coerce_ref.
2252 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2253 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2254 coerce_ref_if_computed.
2255 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2256 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2257 * stack.c (read_frame_arg): Compare also dereferenced values.
2258 * value.c (value_computed_funcs): Make the parameter v const, use
2259 value_lval_const for it.
2260 (value_lval_const, coerce_ref_if_computed): New function.
2261 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2262 * value.h (struct lval_funcs): New field coerce_ref.
2263 (value_computed_funcs): Make the parameter v const.
2264 (value_lval_const, coerce_ref_if_computed): New declarations.
2265
2266 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2267
2268 Support @entry in input expressions.
2269 * c-exp.y (ENTRY, unknown_cpp_name): New.
2270 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2271 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2272 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2273 (name_not_typename: ENTRY): New.
2274 (yylex): Recognize ENTRY.
2275 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2276 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2277 Likewise.
2278 * parse.c (operator_length_standard): Likewise.
2279 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2280
2281 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2282
2283 Display referenced values in backtraces.
2284 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2285 * stack.c (print_frame_arg): Likewise.
2286
2287 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2288
2289 Make some lval_funcs methods to default on NULL.
2290 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2291 NULL.
2292 (value_assign): Check if lval_computed write method is NULL.
2293 * value.h (struct lval_funcs): Comment NULL values for read and write
2294 methods.
2295
2296 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 Display @entry parameter values (without references).
2299 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2300 New functions.
2301 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2302 New declarations.
2303 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2304 entry record.
2305 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2306 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2307 functions.
2308 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2309 (loclist_read_variable_at_entry): New function.
2310 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2311 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2312 DW_AT_location, call dwarf_block_to_sp_offset for it.
2313 * frame.h (print_entry_values_no, print_entry_values_only)
2314 (print_entry_values_preferred, print_entry_values_if_needed)
2315 (print_entry_values_both, print_entry_values_compact)
2316 (print_entry_values_default, print_entry_values): New declarations.
2317 (struct frame_arg): New field entry_kind.
2318 (read_frame_arg): New parameter entryargp.
2319 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2320 arg->entry_kind. Optionally print the `@entry' suffix.
2321 (list_args_or_locals): New variable entryarg, initialize it.
2322 Initialize also entry_kind of arg and entryarg. Conditionalize
2323 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2324 xfree for entryarg.error.
2325 * stack.c (print_entry_values_no, print_entry_values_only)
2326 (print_entry_values_preferred, print_entry_values_if_needed)
2327 (print_entry_values_both, print_entry_values_compact)
2328 (print_entry_values_default, print_entry_values_choices)
2329 (print_entry_values): New variables.
2330 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2331 print the `@entry' suffix, possibly in combination for
2332 print_entry_values_compact.
2333 (read_frame_arg): New parameter entryargp, new variables entryval,
2334 entryval_error and val_equal. Read in also entryargp, respect
2335 print_entry_values, compare the values using val_equal, fill in also
2336 argp->entry_kind (together with entryargp->entry_kind).
2337 (print_frame_args): New variable entryarg, initialize it.
2338 Conditionalize print_frame_arg for arg, add print_frame_arg for
2339 entryarg. Call xfree for entryarg.error.
2340 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2341 * symtab.h (struct symbol_computed_ops): New field
2342 read_variable_at_entry.
2343
2344 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2345
2346 Code reshuffle.
2347 * frame.h (struct frame_arg): New definition.
2348 (read_frame_arg): New declaration.
2349 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2350 (list_args_or_locals): ... the code here. New variable arg, call
2351 read_frame_arg and list_arg_or_local with it. Unify the
2352 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2353 arg.error.
2354 * stack.c (print_frame_arg): New functiom from the code of
2355 print_frame_args.
2356 (read_frame_arg): New function.
2357 (print_frame_args): Remove variable val. New variable arg, call
2358 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2359
2360 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2361
2362 Protect entry values against self tail calls.
2363 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2364 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2365
2366 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 Recognize virtual tail call frames.
2369 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2370 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2371 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2372 * dwarf2-frame-tailcall.c: New file.
2373 * dwarf2-frame-tailcall.h: New file.
2374 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2375 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2376 REGS.PREV only after CIE execution.
2377 (struct dwarf2_frame_cache): New field tailcall_cache.
2378 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2379 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2380 parts, try to find entry_cfa_sp_offset. Call
2381 dwarf2_tailcall_sniffer_first.
2382 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2383 when appropriate.
2384 (dwarf2_frame_dealloc_cache): New function.
2385 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2386 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2387 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2388 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2389 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2390 * dwarf2loc.c (func_addr_to_tail_call_list)
2391 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2392 (call_site_find_chain_1, call_site_find_chain): New.
2393 * dwarf2loc.h (struct call_site_chain): New.
2394 (call_site_find_chain): New declaration.
2395 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2396 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2397 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2398 * stack.c (frame_info): Support also TAILCALL_FRAME.
2399
2400 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 Tail call sites reader implementation.
2403 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2404 fill in TYPE_TAIL_CALL_LIST.
2405 * gdbtypes.h (struct func_type): New field tail_call_list.
2406 (struct call_site): New field tail_call_next.
2407 (TYPE_TAIL_CALL_LIST): New definition.
2408
2409 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 Implement basic support for DW_TAG_GNU_call_site.
2412 * block.c: Include gdbtypes.h and exceptions.h.
2413 (call_site_for_pc): New function.
2414 * block.h (call_site_for_pc): New declaration.
2415 * defs.h: Include hashtab.h.
2416 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2417 declarations.
2418 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2419 ctx_no_push_dwarf_reg_entry_value.
2420 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2421 (dwarf_block_to_dwarf_reg): New function.
2422 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2423 (ctx_no_push_dwarf_reg_entry_value): New function.
2424 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2425 push_dwarf_reg_entry_value.
2426 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2427 declarations.
2428 * dwarf2loc.c: Include gdbcmd.h.
2429 (dwarf_expr_ctx_funcs): New forward declaration.
2430 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2431 (dwarf_expr_reg_to_entry_parameter)
2432 (dwarf_expr_push_dwarf_reg_entry_value): New.
2433 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2434 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2435 (needs_dwarf_reg_entry_value): New function.
2436 (needs_frame_ctx_funcs): Install it.
2437 (_initialize_dwarf2loc): New function.
2438 * dwarf2loc.h (entry_values_debug): New declaration.
2439 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2440 (read_call_site_scope): New forward declaration.
2441 (process_full_comp_unit): Copy call_site_htab.
2442 (process_die): Support DW_TAG_GNU_call_site.
2443 (read_call_site_scope): New function.
2444 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2445 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2446 (cleanup_htab): Delete.
2447 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2448 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2449 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2450 FIELD_LOC_KIND_DWARF_BLOCK.
2451 * gdbtypes.h (enum field_loc_kind): New entry
2452 FIELD_LOC_KIND_DWARF_BLOCK.
2453 (struct main_type): New loc entry dwarf_block.
2454 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2455 (TYPE_FIELD_DWARF_BLOCK): New.
2456 * python/py-type.c: Include dwarf2loc.h.
2457 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2458 internal_error call on unknown FIELD_LOC_KIND.
2459 * symtab.h (struct symtab): New field call_site_htab.
2460 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2461 (core_addr_hash, core_addr_eq): New functions.
2462
2463 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 Code reshuffle.
2466 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2467 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2468 calling_convention under func_stuff there.
2469 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2470 (init_type) <TYPE_CODE_FUNC>: Likewise.
2471 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2472 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2473 * gdbtypes.h (enum type_specific_kind): Change
2474 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2475 (struct main_type) <type_specific>: Change calling_convention to
2476 func_stuff. Move calling_convention to ...
2477 (struct func_type): ... this new struct.
2478 (INIT_FUNC_SPECIFIC): New #define.
2479 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2480
2481 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2482
2483 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2484 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2485 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2486 ctx->ref_addr_size. Handle its invalid value.
2487 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2488 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2489 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2490 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2491 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2492 (dwarf2_per_cu_ref_addr_size): New function.
2493
2494 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 Code cleanup.
2497 * dwarf2read.c (per_cu_header_read_in): New function.
2498 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2499 variables cu_header_local and cu_headerp.
2500
2501 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 Fix initial language detection with -readnow.
2504 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2505 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2506 searches only for global symbols.
2507
2508 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 Fix printed anonymous struct name.
2511 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2512 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2513 (anonymous_struct_prefix): New function.
2514 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2515 (dwarf2_name): Strip for anonymous structs any prefixes.
2516
2517 2011-10-07 Doug Evans <dje@google.com>
2518
2519 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2520 `replace'.
2521
2522 * python/lib/gdb/printing.py: Whitespace cleanup.
2523
2524 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2525 warning.
2526
2527 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2528
2529 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2530 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2531 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2532 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2533 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2534 (arm_linux_remove_watchpoint): Adjust.
2535 * i386-linux-nat.c (i386_linux_dr_set_control)
2536 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2537 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2538 (ia64_linux_remove_watchpoint): Adjust.
2539 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2540 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2541 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2542 (ppc_linux_insert_mask_watchpoint)
2543 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2544 (ppc_linux_remove_watchpoint): Adjust.
2545 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2546 Adjust.
2547
2548 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2549
2550 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2551 (clear_win32_environment): New function for Cygwin to clear out
2552 Win32 environment.
2553 (windows_create_inferior): Prepare new environment from in_env
2554 for Cygwin, too.
2555
2556 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2557
2558 PR python/13264
2559 * python/py-value.c (valpy_call): Check that arguments are
2560 a tuple.
2561 (is_intlike): Remove call to CHECK_TYPEDEF.
2562 (valpy_nonzero): Catch GDB exceptions.
2563 (valpy_absolute): Ditto.
2564 (valpy_lazy_string): Ditto.
2565 (valpy_call): Ditto.
2566 (valpy_get_is_optimized_out): Ditto.
2567 (valpy_long): Ditto.
2568 (valpy_float): Ditto.
2569 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2570 (valpy_richcompare): Ditto.
2571
2572 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2573
2574 * inferior.h (disable_randomization): Declare.
2575 * infrun.c (disable_randomization): New global variable.
2576 (show_disable_randomization): New function.
2577 (set_disable_randomization): Likewise.
2578 (_initialize_infrun): Install set/show disable-randomization
2579 commands.
2580 * linux-nat.c (disable_randomization): Remove.
2581 (show_disable_randomization): Likewise.
2582 (set_disable_randomization): Likewise.
2583 (_initialize_linux_nat): No longer install set/show
2584 disable-randomization commands here.
2585 (linux_nat_supports_disable_randomization): New function.
2586 (linux_nat_add_target): Install it.
2587 * remote.c (PACKET_QDisableRandomization): New enum value.
2588 (remote_protocol_packets): Support QDisableRandomization.
2589 (_initialize_remote): Likewise.
2590 (remote_supports_disable_randomization): New function.
2591 (init_remote_ops): Install it.
2592 (extended_remote_supports_disable_randomization): New function.
2593 (init_extended_remote_ops): Install it.
2594 (extended_remote_disable_randomization): New function.
2595 (extended_remote_create_inferior_1): Call it.
2596 * target.h (struct target_ops): Add to_supports_disable_randomization.
2597 (target_supports_disable_randomization): Add prototype.
2598 * target.c (target_supports_disable_randomization): New function.
2599 (find_default_supports_disable_randomization): Likewise.
2600 (init_dummy_target): Install it.
2601
2602 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2603
2604 Allow Python notification of new object-file loadings.
2605 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2606 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2607 Add build rule for this file.
2608 * python/py-event.h (emit_new_objfile_event): New prototype.
2609 (newobjfile): New Python event emitter.
2610 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2611 Python event registry.
2612 * python/py-inferior.c: Include objfiles.h
2613 (python_new_objfile): New function.
2614 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2615 observers.
2616 * python/py-newobjfileevent.c: New file.
2617 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2618 prototype.
2619 * python/python.c (_initialize_python): Add
2620 gdbpy_initialize_new_objfile_event call.
2621 * NEWS: Add item for new Python event "gdb.newobjfile"
2622
2623 2011-10-05 Tristan Gingold <gingold@adacore.com>
2624
2625 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2626 Extract the ravenscar task name from the symbol for the atcb.
2627
2628 2011-10-04 Paul Koning <paul_koning@dell.com>
2629
2630 * python/py-type.c (typy_make_iter): Add forward declaration.
2631 (typy_fields_items): Use the gdb.Type iterator.
2632
2633 2011-10-04 Paul Koning <paul_koning@dell.com>
2634
2635 * NEWS: Add entry for Python gdb.Type mapping methods.
2636
2637 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2638
2639 PR python/12691: Add the inferior to Python exited event
2640 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2641 to exited_event.
2642 * python/py-event.h (emit_exited_event): Likewise
2643 * python/-inferior.c (python_inferior_exit): Likewise
2644
2645 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2646
2647 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2648 in output of -ada-task-info GDB/MI command.
2649
2650 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2651
2652 * ada-lang.h (struct inferior): Declare.
2653 (print_ada_task_info): Add declaration.
2654 * ada-tasks.c (print_ada_task_info): Make non-static.
2655 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2656 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2657 * mi/mi-main.c: #include "ada-lang.h".
2658 (mi_cmd_list_features): Add "ada-task-info" to the list
2659 of supported features.
2660 (mi_cmd_ada_task_info): New function.
2661
2662 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2663
2664 * python/python.c (python_run_simple_file): New function.
2665 (source_python_script, source_python_script_for_objfile):
2666 Replace call to PyRun_SimpleFile by call to
2667 python_run_simple_file.
2668
2669 2011-10-03 Paul Koning <paul_koning@dell.com>
2670
2671 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2672 (value_to_value_object): Fetch value if it was lazy.
2673
2674 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 Code cleanup.
2677 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2678 Rearrange the code for it.
2679
2680 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2681
2682 * breakpoint.c (bkpt_print_recreate): Add call to
2683 print_recreate_thread.
2684
2685 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2686
2687 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2688 PTRACE_GETFDPIC_INTERP): Define.
2689
2690 2011-09-28 Yao Qi <yao@codesourcery.com>
2691
2692 * symfile.c (add_symbol_file_command): Update message on usage.
2693
2694 2011-09-28 Paul Koning <paul_koning@dell.com>
2695
2696 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2697 (typy_length, typy_get, typy_has_key, typy_make_iter)
2698 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2699 (typy_iterator_iter, typy_iterator_iternext)
2700 (typy_iterator_dealloc): New functions to implement standard
2701 Python mapping methods on gdb.Type object.
2702 (gdb.TypeIterator): New Python type.
2703 * python/python-internal.h (gdbpy_iter_kind): New enum.
2704
2705 2011-09-28 David S. Miller <davem@davemloft.net>
2706
2707 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2708 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2709 * sparc-tdep.c (sparc_complex_floating_p): New function.
2710 (sparc32_store_arguments): Handle complex floats.
2711 (sparc32_extract_return_value): Likewise.
2712 (sparc32_store_return_value): Likewise.
2713 (sparc32_stabs_argument_has_addr): Likewise.
2714 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2715 (sparc64_store_floating_fields): Handle complex floats.
2716 (sparc64_store_arguments): Likewise.
2717 (sparc64_store_return_value): Likewise.
2718
2719 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2720
2721 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2722 before the change on 2006-12-09.
2723 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2724 generates the environment block for CreateProcessA, modulo the
2725 Cygwin-specific parts that are not needed here.
2726
2727 2011-09-27 Tristan Gingold <gingold@adacore.com>
2728
2729 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2730 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2731 (darwin_solib_get_all_image_info_addr_at_init): New function.
2732 (darwin_solib_read_all_image_info_addr): Likewise.
2733 (darwin_solib_create_inferior_hook): Use the above two functions.
2734 * darwin-nat.c (darwin_execvp): Renames retval to res.
2735 (darwin_read_write_inferior): Update comment.
2736 (darwin_read_dyld_info): New function.
2737 (darwin_xfer_partial): Handle DYLD_INFO.
2738
2739 2011-09-27 Stan Shebs <stan@codesourcery.com>
2740
2741 Add return address collection for tracepoints.
2742 * tracepoint.c (encode_actions_1): Add case for $_ret.
2743 (validate_actionline): Check for $_ret.
2744 (trace_dump_actions): Ditto.
2745 * ax-gdb.h (gen_trace_for_return_address): Declare.
2746 * ax-gdb.c: Include arch-utils.h.
2747 (gen_trace_for_return_address): New function.
2748 (agent_command): Add return address special case.
2749 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2750 (amd64_gen_return_address): New function.
2751 (amd64_init_abi): Call it.
2752 * i386-tdep.c: Include ax.h and ax-gdb.h.
2753 (i386_gen_return_address): New function.
2754 (i386_init_abi): Call it.
2755 * arch-utils.h (default_gen_return_address): Declare.
2756 * arch-utils.c (default_gen_return_address): New function.
2757 * gdbarch.sh (gen_return_address): New method.
2758 * gdbarch.h, gdbarch.c: Regenerate.
2759
2760 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2761
2762 PR gdb/13079
2763 * i386-tdep.c (i386_frame_align): New.
2764 (i386_gdbarch_init): Use i386_frame_align.
2765
2766 2011-09-23 Yao Qi <yao@codesourcery.com>
2767
2768 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2769 to get address.
2770
2771 2011-09-22 Tristan Gingold <gingold@adacore.com>
2772
2773 * fork-child.c (fork_inferior): Add exec_fun parameter.
2774 Call exec_fun or execvp.
2775 * inferior.h: Adjust prototype.
2776 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2777 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2778 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2779 * procfs.c (procfs_create_inferior): Ditto.
2780 * darwin-nat.c (darwin_execvp): New function.
2781 (darwin_create_inferior): Use it.
2782
2783 2011-09-22 Yao Qi <yao@codesourcery.com>
2784
2785 * infrun.c (context_switch): Print debug message when switching to
2786 a different thread.
2787
2788 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2789
2790 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2791 complex and vector types.
2792 (s390_return_value_convention): Likewise.
2793
2794 (s390_value_from_register): Call check_typedef.
2795 (extend_simple_arg): Likewise.
2796 (alignment_of): Likewise.
2797 (s390_push_dummy_call): Likewise.
2798 (s390_return_value): Likewise.
2799
2800 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2801
2802 * event-top.c (async_disconnect): If an exception is thrown from
2803 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2804 catch_errors.
2805 * top.c (quit_cover): Return void and take no arguments.
2806 * top.h (quit_cover): Update prototype.
2807
2808 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2809
2810 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2811 current_uiout, not uiout.
2812
2813 2011-09-19 Doug Evans <dje@google.com>
2814
2815 * python/py-auto-load.c (source_section_scripts): Fix file
2816 descriptor leak.
2817 * python/python.c (source_python_script_for_objfile): Tweak comments.
2818
2819 2011-09-18 Yao Qi <yao@codesourcery.com>
2820 Ulrich Weigand <ulrich.weigand@linaro.org>
2821
2822 Support displaced stepping for Thumb 16-bit insns.
2823 * arm-tdep.c (THUMB_NOP) Define.
2824 (thumb_copy_unmodified_16bit): New.
2825 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2826 (thumb_copy_alu_reg): New.
2827 (arm_copy_svc): Move some common code to ...
2828 (install_svc): ... here. New.
2829 (thumb_copy_svc): New.
2830 (install_pc_relative): New.
2831 (thumb_copy_pc_relative_16bit): New.
2832 (thumb_decode_pc_relative_16bit): New.
2833 (thumb_copy_16bit_ldr_literal): New.
2834 (thumb_copy_cbnz_cbz): New.
2835 (cleanup_pop_pc_16bit_all): New.
2836 (thumb_copy_pop_pc_16bit): New.
2837 (thumb_process_displaced_16bit_insn): New.
2838 (thumb_process_displaced_32bit_insn): New.
2839 (thumb_process_displaced_insn): process thumb instruction.
2840
2841 Support displaced stepping for Thumb 32-bit insns.
2842 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2843 (thumb2_copy_preload): New.
2844 (thumb2_copy_copro_load_store): New.
2845 (thumb2_copy_b_bl_blx): New.
2846 (thumb2_copy_alu_imm): New.
2847 (thumb2_copy_load_reg_imm): New.
2848 (thumb2_copy_load_literal): New
2849 (thumb2_copy_block_xfer): New.
2850 (thumb_32bit_copy_undef): New.
2851 (thumb_32bit_copy_unpred): New.
2852 (thumb2_decode_ext_reg_ld_st): New.
2853 (thumb2_decode_svc_copro): New.
2854 (decode_thumb_32bit_store_single_data_item): New.
2855 (thumb_copy_pc_relative_32bit): New.
2856 (thumb_decode_pc_relative_32bit): New.
2857 (decode_thumb_32bit_ld_mem_hints): New.
2858 (thumb2_copy_table_branch): New
2859 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2860 instructions.
2861
2862 2011-09-18 Yao Qi <yao@codesourcery.com>
2863
2864 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2865 (install_b_bl_blx): Likewise.
2866
2867 2011-09-17 Yao Qi <yao@codesourcery.com>
2868
2869 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2870 (install_load_store): ... this. New.
2871 Change parameter BYTE to SIZE.
2872 (arm_copy_ldr_str_ldrb_strb): Update caller.
2873 (arm_decode_ld_st_word_ubyte): Update caller.
2874
2875 2011-09-17 Yao Qi <yao@codesourcery.com>
2876
2877 * infrun.c (displaced_step_fixup): Move some code ...
2878 (displaced_step_restore): ... here. New function.
2879 (handle_inferior_event): Cleanup displaced stepping state for both
2880 child and parent when get forked or vforked event.
2881 * regcache.c (get_thread_arch_aspace_regcache): New function.
2882 get_thread_arch_regcache (): Call it.
2883
2884 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2885
2886 * ada-tasks.c (print_ada_task_info): New function, merging
2887 short_task_info and info_tasks together. Reimplement using
2888 ui-out instead of printing to stdout directly. Move the code
2889 building and checking the task list here, instead of leaving it
2890 in info_tasks_command.
2891 (info_task): Move the code building and checking the task
2892 list here, instead of leaving it in info_tasks_command.
2893 (info_tasks_command): Delete code building and checking
2894 the task list - moved elsewhere. Update calls to info_tasks
2895 and info_task.
2896
2897 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2898
2899 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2900
2901 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2902
2903 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2904
2905 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2906
2907 * ada-lang.h (ada_build_task_list): Remove parameter
2908 `warn_if_null'.
2909 * ada-tasks.c (ada_build_task_list): Remove parameter
2910 `warn_if_null'. Adjust implementation and documentation.
2911 (valid_task_id, ada_get_environment_task)
2912 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2913 (info_tasks_command): Adjust implementation.
2914 (task_command): Likewise.
2915 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2916 to ada_build_task_list.
2917
2918 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2919
2920 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2921 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2922 (ada_tasks_inferior_data_handle): New static global.
2923 (get_ada_tasks_inferior_data): New function.
2924 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2925 (ada_get_environment_task, iterate_over_live_ada_tasks)
2926 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2927 Adjust.
2928 (ada_set_current_inferior_known_tasks_addr): New function.
2929 (read_known_tasks, ada_build_task_list, short_task_info)
2930 (info_tasks, info_task, info_tasks_command, task_command_1)
2931 (task_command, ada_task_list_changed): Adjust.
2932 (ada_tasks_invalidate_inferior_data): New function.
2933 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2934 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2935 * ada-lang.h (struct inferior): Add declaration.
2936 (ada_task_list_changed): Update profile.
2937 * remote-wtx-pd.c: #include "inferior.h".
2938 (switch_to_pd_internal): Update call to ada_task_list_changed.
2939
2940 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2941
2942 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2943 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2944 (atcb_fieldno): Delete these static globals.
2945 (struct ada_tasks_pspace_data): New struct.
2946 (ada_tasks_pspace_data_handle): New static global.
2947 (get_ada_tasks_pspace_data): New function.
2948 (ada_tasks_invalidate_pspace_data): New function.
2949 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2950 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2951 (_initialize_tasks): Create this module's per-progspace
2952 data handle.
2953
2954 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2955
2956 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2957
2958 2011-09-16 Tristan Gingold <gingold@adacore.com>
2959
2960 * fork-child.c (fork_inferior): Update comment. Use alloca
2961 instead of xmalloc for argv. Move len and shell_command
2962 declarations in the block where they are used.
2963 Only call execvp. Factorize failure code.
2964
2965 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2966
2967 Code cleanup.
2968 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2969 `exp_element' instead of an element of the same and make the function
2970 static.
2971 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2972 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2973 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2974 Change argument of `write_exp_elt' function call.
2975 Remove extra spaces from comments.
2976 * parser-defs.h (write_exp_elt): Remove prototype.
2977
2978 2011-09-15 Paul Koning <paul_koning@dell.com>
2979
2980 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2981 count of item appended to list.
2982 * python/py-type.c (typy_fields): Likewise.
2983
2984 2011-09-15 Paul Koning <paul_koning@dell.com>
2985
2986 * MAINTAINERS (Write After Approval): Add myself to the list.
2987
2988 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2989
2990 PR threads/12628
2991 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2992 processes with multiple threads.
2993 (inf_has_multiple_thread_cb): New function.
2994 (inf_has_multiple_threads): New function.
2995
2996 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2997
2998 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2999 * python/py-inferior.c (GdbMethods): New Python method definition.
3000
3001 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3002
3003 Handle multiple breakpoint hits in Python interface:
3004 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3005 variable to breakpoints.
3006 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3007 bps instead of single breakpoint. Fix some space typos.
3008 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3009 variable to breakpoints.
3010
3011 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3012
3013 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3014 note if the breakpoint is internal.
3015
3016 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3017
3018 * MAINTAINERS (Write After Approval): Add myself to the list
3019
3020 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3021
3022 * infrun.c (prepare_for_detach, wait_for_inferior)
3023 (fetch_inferior_event): Don't flush the register cache.
3024 * remote.c (struct stop_reply) <regcache>: Add comment.
3025
3026 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 Remove excessive DWARF expressions memory duplication.
3029 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3030 for block.data.
3031 (indirect_pieced_value): Remove variable result. Remove variable
3032 back_to and its use for baton.data.
3033 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3034 block.data.
3035 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3036 Update the function comment.
3037
3038 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3039
3040 * inferior.h (ALL_INFERIORS): New.
3041 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3042 for a stopped thread.
3043 (thread_db_find_new_threads): Look for threads in all inferiors.
3044
3045 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3046
3047 * breakpoint.c (update_watchpoint): Handle the case of the
3048 watchpoint to update not being in the breakpoint list yet.
3049 (hw_watchpoint_use_count): New, factored out from
3050 hw_watchpoint_used_count.
3051 (hw_watchpoint_used_count): Rename to ...
3052 (hw_watchpoint_used_count_others): ... this. Add `except'
3053 parameter. Don't count resources of `except'. Use
3054 hw_watchpoint_use_count.
3055
3056 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3057
3058 * gdbthread.h (enum thread_state): Moved here.
3059 (struct thread_info): Rename `executing_' field to `executing' and
3060 `state_' to `state'.
3061 * thread.c (enum thread_state): Moved to gdbthread.h.
3062 (new_thread, add_thread_silent, delete_thread_1)
3063 (any_live_thread_of_process, thread_alive, set_running)
3064 (set_running, is_thread_state, any_running, is_executing)
3065 (set_executing, finish_thread_state, print_thread_info)
3066 (do_captured_thread_select): Adjust.
3067
3068 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3069
3070 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3071 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3072
3073 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3074 Matt Rice <ratmice@gmail.com>
3075
3076 PR gdb/13175
3077
3078 * interps.c (struct interp) <interpreter_out>: Delete field.
3079 (interp_new): Remove the data and uiout parameters and adjust.
3080 (interp_set): Only set the current_uiout from the interpreter's
3081 uiout after initializing the interpreter. Adjust call to
3082 init_proc.
3083 (interp_ui_out): Adjust to call procs->ui_out_proc.
3084 (interp_data, interp_name): New.
3085 * interps.h (interp_init_ftype): Add `self' parameter.
3086 (interp_ui_out_ftype): New typedef.
3087 (struct interp_procs) <ui_out_proc>: New method pointer.
3088 (interp_new): Remove the data and uiout parameters.
3089 (interp_data, interp_name): Declare.
3090 * tui/tui-interp.c (tui_init): Adjust prototype.
3091 (tui_ui_out): New.
3092 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3093 tui_out here. Adjust call to interp_new.
3094 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3095 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3096 (cli_ui_out): New.
3097 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3098 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3099 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3100 Initialize mi->uiout depending on the mi_version as extracted from
3101 the interpreter's name.
3102 (mi_ui_out): New.
3103 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3104 interp_new. Don't allocate the ui_out's of the interpreters here.
3105
3106 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3107
3108 * solib.c (solib_used): New function.
3109 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3110 by another so_list object before freeing it.
3111
3112 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 Code cleanup.
3115 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3116 values.
3117
3118 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 Code cleanup.
3121 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3122 (amd64_skip_xmm_prologue): ... this new function. Describe its
3123 parameters. No longer use amd64_prologue_line_bug.
3124 * defs.h (producer_is_gcc_ge_4): New declaration.
3125 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3126 (process_full_comp_unit): Update its caller. Remove
3127 amd64_prologue_line_bug initialization.
3128 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3129 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3130
3131 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3132
3133 * linux-nat.h (enum resume_kind): New.
3134 (struct lwp_info) <last_resume_kind>: New field.
3135 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3136 resume_stop on the new lwp.
3137 (add_lwp): Set last_resume_kind as resume_continue by default.
3138 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3139 (resume_lwp): New, factored out from resume_callback. Also check
3140 for pending status in lp->waitstatus.
3141 (resume_callback): Reimplement.
3142 (resume_clear_callback): Set last_resume_kind as resume_stop.
3143 (resume_set_callback): Set last_resume_kind as resume_continue.
3144 (linux_nat_resume, linux_handle_extended_wait): Set
3145 last_resume_kind.
3146 (running_callback): Also check lp->waitstatus for pending events.
3147 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3148 is resume_step.
3149 (stop_and_resume_callback): Don't re-resume if the core wanted the
3150 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3151 using an invalidated pointer.
3152 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3153 SIGSTOPs if the core wanted the LWP to stop.
3154 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3155 wanted the lwp to stop. If the core wanted the lwp to stop, and
3156 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3157 of TARGET_SIGNAL_STOP.
3158 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3159 here. Instead, signal the lwp, and set the last_resume_kind to
3160 resume_stop.
3161
3162 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3163
3164 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3165 -1 (error), if the lwp exits right after attaching.
3166
3167 2011-09-08 Doug Evans <dje@google.com>
3168
3169 * py-cmd.c: Some minor formatting fixes.
3170 (gdbpy_parse_command_name): Rename text arg to name, make const.
3171 All callers updated.
3172 * python-internal.h (gdbpy_parse_command_name): Update.
3173
3174 * cli/cli-decode.c (add_cmd): Add comment.
3175
3176 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3177
3178 PR breakpoints/12435
3179 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3180 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3181 * dwarf2read.c (process_full_comp_unit): Initialize
3182 amd64_prologue_line_bug.
3183 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3184
3185 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 Fix TUI screen corruption.
3188 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3189 batch_flag.
3190
3191 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3192
3193 * findvar.c (read_var_value): Never return NULL, throw an error
3194 instead. Update the function comment. State symbol name in the error
3195 messages.
3196 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3197 read_var_value.
3198 * stack.c (print_frame_args): Likewise.
3199 * valops.c (value_of_variable): Likewise.
3200
3201 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 * stack.c (print_frame_args): New variable except. Wrap
3204 read_var_value and common_val_print into TRY_CATCH.
3205
3206 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3207
3208 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3209 caller to value_of_this.
3210 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3211 Twice.
3212 * valops.c (value_of_this): Remove parameter complain and variable ret.
3213 Update function comment. Never return NULL by this code.
3214 (value_of_this_silent): New function.
3215 * value.h (value_of_this): Remove parameter complain.
3216 (value_of_this_silent): New declaration.
3217
3218 2011-09-07 Yao Qi <yao@codesourcery.com>
3219
3220 * gdbthread.h (struct thread_info): Remove fields
3221 `stepping_through_solib_after_catch' and
3222 `stepping_through_solib_catchpoints'.
3223 * infrun.c (init_thread_stepping_state): Update.
3224 (process_event_stop_test, currently_stepping): Update.
3225 (currently_stepping_or_nexting_callback): Update.
3226
3227 2011-09-07 Yao Qi <yao@codesourcery.com>
3228
3229 * gdbthread.h (struct thread_info): Comment on field
3230 `step_after_step_resume_breakpoint'.
3231
3232 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3233
3234 * remote.c (remote_console_output): Reindent.
3235
3236 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3237
3238 * frame.c (has_stack_frames): Check for currently selected
3239 traceframe.
3240
3241 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3242
3243 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3244 (set_async_annotation_level, set_async_prompt, pop_prompt)
3245 (push_prompt, new_async_prompt): Delete declarations.
3246 * top.h (get_prompt, set_prompt): Change prototype.
3247 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3248 declarations.
3249 * top.c (command_loop):
3250 (top_prompt): New global.
3251 (get_prefix, set_prefix, get_suffix, ): Delete.
3252 (get_prompt, set_prompt): Rewrite.
3253 (show_new_async_prompt): Rename to ...
3254 (show_prompt): ... this.
3255 (init_main): Adjust. Don't handle --annotate=2 here.
3256 * event-top.c (new_async_prompt): Delete.
3257 (the_prompts): Delete.
3258 (more_to_come): Make static.
3259 (display_gdb_prompt): Use top_level_prompt() to compute the top
3260 level prompt, and don't notify the before_prompt observers
3261 directly here. Always trick readline into not trying to display
3262 the prompt if sync_execution and displaying the primary prompt.
3263 If displaying a local/secondary prompt, always show it, even if
3264 sync_execution is set.
3265 (change_annotation_level): Delete.
3266 (top_level_prompt): New, based on change_annotation_level.
3267 (push_prompt, pop_prompt): Delete.
3268 (async_disable_stdin): No longer pushes prompt.
3269 (command_line_handler): No longer pushes or pops prompt. If more
3270 input is expected, call display_gdb_prompt with an explicit empty
3271 prompt.
3272 (async_stop_sig): Adjust.
3273 (set_async_annotation_level, set_async_prompt): Delete.
3274 * python/python.c (before_prompt_hook): Adjust.
3275
3276 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3277
3278 PR cli/13110
3279
3280 * infrun.c (fetch_inferior_event): Check if there's a selected
3281 thread before checking if the selected thread is executing.
3282
3283 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3284
3285 * inf-loop.c (execute_command): Don't check if the current thread
3286 if running before synchronously waiting for command completion.
3287 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3288 here.
3289 (normal_stop): Call async_enable_stdin here.
3290 * inf-loop.c (inferior_event_handler): Don't call
3291 async_enable_stdin, nor handle "set exec-done-display" here.
3292
3293 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3294
3295 GDB 7.3.1 released.
3296
3297 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3298
3299 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3300
3301 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3302
3303 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3304
3305 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3306
3307 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3308
3309 2011-09-02 Matt Rice <ratmice@gmail.com>
3310
3311 PR gdb/10720
3312 * event-top.c (cli_command_loop): Replace readline setup with
3313 direct call to display_gdb_prompt.
3314 (display_gdb_prompt): Do not call observer mechanism during
3315 synchronous execution.
3316
3317 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3318
3319 * linux-nat.c (in_pid_list_p): New.
3320 (linux_record_stopped_pid): Delete.
3321 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3322 already attached to the LWP. Return an indication if so.
3323 (linux_nat_filter_event): Adjust.
3324 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3325 returning an indication to ignore this thread.
3326
3327 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3328
3329 * top.c: Include interps.h.
3330 (execute_command): If the target can async, but the interpreter is
3331 in sync mode, synchronously wait for the command to finish before
3332 returning.
3333 (execute_command_to_string): Force the interpreter to sync mode.
3334 * infrun.c: Include interps.h.
3335 (fetch_inferior_event): Don't restore the prompt yet if the
3336 interpreter is in sync mode.
3337 * interps.c (interpreter_async): New global.
3338 * interps.h (interpreter_async): Declare.
3339 * inf-loop.c: Include interps.h.
3340 (inferior_event_handler): Don't print the language change or run
3341 breakpoint commands yet if the interpreter in is sync mode.
3342 * main.c (captured_command_loop): Flip the interpreter to async
3343 mode.
3344 * cli/cli-script.c: Include interps.h.
3345 (execute_user_command, while_command, if_command): Force the
3346 interpreter to sync mode.
3347 * python/python.c: Include interps.h.
3348 (python_command, execute_gdb_command): Force the interpreter to
3349 sync mode.
3350
3351 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3352
3353 * value.c (show_convenience): Catch errors thrown while printing
3354 each internal variable.
3355 * infrun.c (validate_siginfo_access): New function.
3356 (siginfo_value_read, siginfo_value_write): Call it.
3357
3358 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3359
3360 Revert:
3361 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3362 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3363 attribute.
3364
3365 2011-08-29 Yao Qi <yao@codesourcery.com>
3366
3367 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3368 (cmp_name): New.
3369 (enable_break2): Update caller.
3370 * solib-frv.c (bfd_lookup_symbol): Removed.
3371 (cmp_name): New.
3372 (enable_break2): Update caller.
3373 * solib-pa64.c (bfd_lookup_symbol): Removed.
3374 (cmp_name): New.
3375 * solib-svr4.c (bfd_lookup_symbol): Removed.
3376 (cmp_name_and_sec_flags): New.
3377 (enable_break): Update caller.
3378 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3379 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3380 (gdb_bfd_lookup_symbol): New.
3381 * solib.h: Functions declarations.
3382
3383 2011-08-29 Yao Qi <yao@codesourcery.com>
3384
3385 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3386 and solib-dsbt.o.
3387
3388 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3389
3390 Fix TUI stepi on code without symbols.
3391 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3392 current PC instead.
3393
3394 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Code cleanup.
3397 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3398 and the static keyword.
3399 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3400 Make prefix an array.
3401 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3402 * mi/mi-main.c (get_register): Remove stb initialization and the static
3403 keyword.
3404
3405 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3406
3407 Code cleanup - make mi_opt const.
3408 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3409 opts const.
3410 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3411 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3412 (mi_cmd_env_dir): Likewise.
3413 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3414 (mi_cmd_target_file_put): Likewise.
3415 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3416 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3417 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3418 (mi_valid_noargs): Make opts const.
3419 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3420 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3421 (mi_cmd_data_read_memory): Likewise.
3422 (mi_cmd_data_read_memory_bytes): Likewise.
3423 (mi_cmd_data_write_memory): Likewise.
3424
3425 2011-08-26 Matt Rice <ratmice@gmail.com>
3426
3427 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3428 bcache_xmalloc, replace bcache_xmalloc with call to
3429 psymbol_bcache_init for psymbol_cache.
3430 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3431
3432 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 * inf-loop.c (inferior_event_handler): Add exception_print in
3435 INF_EXEC_COMPLETE.
3436
3437 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3438
3439 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3440 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3441 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3442 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3443 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3444 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3445 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3446 * infrun.c (fetch_inferior_event): Call
3447 make_bpstat_clear_actions_cleanup.
3448 * top.c (execute_command): New variable cleanup_if_error, call
3449 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3450 * utils.c (do_bpstat_clear_actions_cleanup)
3451 (make_bpstat_clear_actions_cleanup): New functions.
3452
3453 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3454
3455 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3456 either the parent or the child forks. Rename a couple locals.
3457
3458 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3459
3460 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3461 library call. Avoid reading the `status' local if all waitpid
3462 calls failed.
3463
3464 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3465
3466 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3467 opening /proc/PID/task always succeeds.
3468
3469 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3470
3471 * linespec.c (symtab_from_filename): Check for the end of string.
3472
3473 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3474
3475 PR mi/11912
3476 * varobj.c (cplus_describe_child): Add the keyword
3477 'class' to the output of the method when dealing
3478 with a cast to a base class.
3479
3480 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 No functionality change.
3483 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3484 function comment a reference, new variables tp and bs, move here code
3485 from throw_exception.
3486 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3487 describe it in the comment.
3488 * exceptions.c (throw_exception): Remove variable tp, move the code for
3489 bpstat_clear_actions to bpstat_clear_actions.
3490
3491 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3492
3493 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3494 * linux-nat.c: Include linux-procfs.h.
3495 (linux_proc_get_tgid): Move to ...
3496 * common/linux-procfs.c: ... here. New file.
3497 * common/linux-procfs.h: New file.
3498 * linux-thread-db.c: Include linux-procfs.h.
3499 * Makefile.in: Update dependencies.
3500 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3501 * config/arm/linux.mh: Likewise.
3502 * config/i386/linux.mh: Likewise.
3503 * config/i386/linux64.mh: Likewise.
3504 * config/ia64/linux.mh: Likewise.
3505 * config/m32r/linux.mh: Likewise.
3506 * config/m68k/linux.mh: Likewise.
3507 * config/mips/linux.mh: Likewise.
3508 * config/pa/linux.mh: Likewise.
3509 * config/pa/linux.mh: Likewise.
3510 * config/powerpc/linux.mh: Likewise.
3511 * config/powerpc/ppc64-linux.mh: Likewise.
3512 * config/powerpc/spu-linux.mh: Likewise.
3513 * config/sparc/linux.mh: Likewise.
3514 * config/sparc/linux64.mh: Likewise.
3515 * config/xtensa/linux.mh: Likewise.
3516
3517 2011-08-24 Hui Zhu <teawater@gmail.com>
3518
3519 * tracepoint.c (cond_string_is_same): New function.
3520 (find_matching_tracepoint): Add condition check
3521 by cond_string_is_same.
3522
3523 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3524
3525 Fix build error in Darwin port.
3526 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3527
3528 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 Code cleanup.
3531 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3532 (command_line_is_silent): New function.
3533 (bpstat_do_actions_1): No longer use commands_left, use
3534 command_line_is_silent for commands.
3535 (bpstat_alloc): Remove clearing of commands_left.
3536 (bpstat_stop_status): Remove initialization of commands_left, use
3537 command_line_is_silent.
3538 * breakpoint.h (struct bpstats): Remove commands_left.
3539
3540 2011-08-18 Keith Seitz <keiths@redhat.com>
3541
3542 PR c++/12266
3543 * cp-name-parser.y (struct demangle_info): Remove unused
3544 member PREV.
3545 (d_grab): Likewise.
3546 (allocate_info): Change return type to struct demangle_info *.
3547 Always allocate a new demangle_info.
3548 Remove unused PREV pointer.
3549 (cp_new_demangle_parse_info): New function.
3550 (cp_demangled_name_parse_free): New function.
3551 (do_demangled_name_parse_free_cleanup): New function.
3552 (make_cleanup_cp_demangled_name_parse_free): New function.
3553 (cp_demangled_name_to_comp): Change return type to
3554 struct demangle_parse_info *.
3555 Allocate a new storage for each call.
3556 (main): Update usage for cp_demangled_name_to_comp
3557 API change.
3558 * cp-support.h (struct demangle_parse_info): New structure.
3559 (cp_demangled_name_to_comp): Update API change for
3560 return type.
3561 (cp_new_demangle_parse_info): Declare.
3562 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3563 (cp_demangled_name_parse_free): Declare.
3564 * cp-support.c (cp_canonicalize_string): Update API
3565 change for cp_demangled_name_to_comp.
3566 (mangled_name_to_comp): Likewise.
3567 Return struct demangle_parse_info, too.
3568 (cp_class_name_from_physname): Update mangled_name_to_comp
3569 API change.
3570 (method_name_from_physname): Likewise.
3571 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3572 (cp_remove_params): Likewise.
3573 * python/py-type.c (typy_legacy_template_argument): Likewise.
3574
3575 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3576 (cp_merge_demangle_parse_infos): Declare.
3577 * cp-support.c (ignore_typedefs): New file global.
3578 (copy_string_to_obstack): New function.
3579 (inspect_type): New function.
3580 (replace_typedefs): New function.
3581 (replace_typedefs_qualified_name): New function.
3582 (cp_canonicalize_string_no_typedefs): New function.
3583 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3584 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3585 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3586 instead of cp_canonicalize_string.
3587 (find_method): Likewise.
3588 (decode_compound): Before looking up the name, call
3589 cp_canonicalize_string_no_typedefs.
3590 (decode_variable): Likewise.
3591
3592 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3593 Tom Tromey <tromey@redhat.com>
3594 Matt Rice <ratmice@gmail.com>
3595
3596 * python/lib/gdb/prompt.py: New file.
3597 * python/lib/gdb/command/prompt.py: New file.
3598 * NEWS: Document set extended-prompt and gdb.prompt library
3599
3600 2011-08-16 Yao Qi <yao@codesourcery.com>
3601
3602 * tic6x-linux-tdep.c: Move const arrays definition from here...
3603 * tic6x-tdep.c: to here ...
3604
3605 2011-08-14 Yao Qi <yao@codesourcery.com>
3606
3607 * NEWS: New port to Texas Instruments TMS320C6x.
3608
3609 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3610 Bernd Schmidt <bernds@codesourcery.com>
3611 Yao Qi <yao@codesourcery.com>
3612
3613 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3614 * solib-dsbt.c: New file. Support DSBT shared object.
3615 * tic6x-linux-tdep.c: New file.
3616 * tic6x-tdep.c: New file.
3617 * tic6x-tdep.h: New file.
3618
3619 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3620 Yao Qi <yao@codesourcery.com>
3621
3622 * remote.c (PACKET_qXfer_fdpic): New enum value.
3623 (remote_protocol_features): Add qXfer:fdpic:read packet.
3624 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3625 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3626 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3627
3628 2011-08-14 Yao Qi <yao@codesourcery.com>
3629
3630 Target description for tic6x.
3631 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3632 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3633 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3634 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3635 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3636 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3637 * features/tic6x-c64xp-linux.xml: New.
3638 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3639 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3640 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3641 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3642 * regformats/tic6x-c64xp.dat,
3643 regformats/tic6x-c62x-linux.dat: Generated.
3644 * regformats/tic6x-c64x-linux.dat,
3645 regformats/tic6x-c64xp-linux.dat: Generated.
3646 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3647 features/tic6x-*.c files.
3648 Add regformats/tic6x-*.dat files.
3649
3650 2011-08-12 Doug Evans <dje@google.com>
3651
3652 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3653 * python/py-symbol.c (sympy_get_type): New function.
3654 (symbol_object_getset): Add "type".
3655
3656 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3657
3658 PR tui/13073
3659
3660 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3661 empty name.
3662 (tui_show_register_group): Don't store a byte buffer in the data
3663 element's value.
3664 (tui_register_format): Skip registers with an empty name.
3665 (tui_get_register): Store a struct value in the data element's
3666 value field instead of a byte buffer holding the raw register
3667 contents. Account for optimized-out and unavailable registers
3668 when comparing register contents.
3669
3670 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3671
3672 * printcmd.c (current_display_number): Update comment.
3673 (disable_current_display_cleanup): Delete.
3674 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3675 catch errors thrown while evaluating and printing the display.
3676
3677 2011-08-09 Tom Tromey <tromey@redhat.com>
3678
3679 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3680
3681 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3682
3683 * elfread.c (elf_symtab_read): Rework comments.
3684 * maint.c (maintenance_command): Ditto.
3685 * somread.c (som_symtab_read): Ditto.
3686 * solib.c (solib_find, solib_map_sections, update_solib_list)
3687 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3688 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3689 (sharedlibrary_command, no_shared_libraries): Ditto.
3690 * solib-irix.c (locate_base, disable_break, enable_break)
3691 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3692 (irix_current_sos, irix_open_symbol_file_object)
3693 (irix_special_symbol_handling): Ditto.
3694 * solib-sunos.c (locate_base, first_link_map_member)
3695 (sunos_current_sos, disable_break, enable_break)
3696 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3697 Ditto.
3698 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3699 (open_symbol_file_object, svr4_current_sos, enable_break)
3700 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3701 Ditto.
3702 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3703 (frv_current_sos, enable_break, frv_special_symbol_handling)
3704 (frv_solib_create_inferior_hook): Ditto.
3705 * solist.h (struct target_so_ops): Extend the comments of the
3706 special_symbol_handling, current_sos and open_symbol_file_object
3707 methods.
3708
3709 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3710
3711 * python/lib/gdb/__init__.py: Auto-load files in command and
3712 function directories.
3713 * python/python.c (finish_python_initialization): Use
3714 os.path.join.
3715 * python/lib/gdb/command/pretty_printers.py: Self register
3716 command.
3717 * NEWS: Document auto-loading.
3718
3719 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3720
3721 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3722 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3723 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3724
3725 2011-08-08 Tom Tromey <tromey@redhat.com>
3726
3727 * breakpoint.c (clean_up_filters): Remove.
3728 (catch_syscall_split_args): Use VEC_cleanup.
3729
3730 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3731
3732 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3733 (main): Uncomment "Demangling error\n".
3734
3735 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3736
3737 * solib-target.c (segment_attributes): Make them static.
3738 (section_attributes, library_children, library_attributes): Likewise.
3739 (library_list_children, library_list_attributes): Likesise.
3740 (library_list_elements): Likewise.
3741
3742 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3743
3744 * exceptions.c (throw_exception): Don't disable the current
3745 display.
3746 * printcmd.c (disable_current_display_cleanup): New function.
3747 (do_one_display): Install a cleanup to disable the current display
3748 if doing the display throws.
3749
3750 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3751
3752 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3753 initialization of the tp_new member to the corresponding
3754 gdbpy_initialize_* function.
3755 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3756 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3757 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3758 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3759 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3760
3761 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3764 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3765 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3766 references to current_uiout.
3767
3768 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3769
3770 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3771 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3772 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3773 * top.c (gdb_readline_wrapper): Adjust.
3774 * tui/tui-interp.c (tui_command_loop):
3775 (_initialize_tui_interp): Don't install it.
3776
3777 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3778
3779 * ui-out.h (uiout): Rename to ...
3780 (current_uiout): ... this.
3781 * ui-out.c (uiout): Rename to ...
3782 (current_uiout): ... this.
3783 * ada-lang.c (print_it_exception, print_one_exception)
3784 (print_mention_exception): Adjust.
3785 * breakpoint.c (watchpoint_check): Adjust.
3786 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3787 (default_collect_info, watchpoints_info, print_one_catch_fork)
3788 (print_one_catch_vfork, print_one_catch_syscall)
3789 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3790 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3791 (print_it_watchpoint, print_mention_watchpoint)
3792 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3793 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3794 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3795 (bkpt_print_mention, momentary_bkpt_print_it)
3796 (tracepoint_print_mention, update_static_tracepoint)
3797 (tracepoints_info, save_breakpoints): Adjust.
3798 * cli-out.c (field_separator): Adjust.
3799 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3800 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3801 * frame.c (get_current_frame): Adjust.
3802 * infcmd.c (run_command_1, print_return_value): Adjust.
3803 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3804 * infrun.c (print_end_stepping_range_reason): Adjust.
3805 (print_signal_exited_reason, print_exited_reason): Adjust.
3806 (print_signal_received_reason, print_no_history_reason): Adjust.
3807 * interps.c (interp_set): Adjust.
3808 * osdata.c (info_osdata_command): Adjust.
3809 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3810 * remote-fileio.c (remote_fileio_request): Adjust.
3811 * remote.c (show_remote_cmd): Adjust.
3812 * solib.c (info_sharedlibrary_command): Adjust.
3813 * source.c (print_source_lines_base): Adjust.
3814 * stack.c (print_stack_frame): Adjust.
3815 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3816 * symfile-mem.c (add_vsyscall_page): Adjust.
3817 * symfile.c (load_progress, generic_load)
3818 (print_transfer_performance): Adjust.
3819 * thread.c (info_threads_command, restore_selected_frame)
3820 (thread_command): Adjust.
3821 * top.c (make_cleanup_restore_ui_file): Adjust.
3822 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3823 (print_one_static_tracepoint_marker): Adjust.
3824 * cli/cli-cmds.c (print_disassembly): Adjust.
3825 * cli/cli-decode.c (print_doc_line): Adjust.
3826 * cli/cli-interp.c (safe_execute_command): Adjust.
3827 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3828 (handle_redirections): Adjust.
3829 * cli/cli-script.c (show_user_1): Adjust.
3830 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3831 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3832 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3833 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3834 (mi_cmd_env_dir): Adjust.
3835 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3836 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3837 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3838 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3839 (list_args_or_locals): Adjust.
3840 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3841 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3842 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3843 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3844 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3845 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3846 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3847 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3848 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3849 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3850 (list_available_thread_groups, mi_cmd_list_thread_groups)
3851 (mi_cmd_data_list_register_names)
3852 (mi_cmd_data_list_changed_registers)
3853 (mi_cmd_data_list_register_values, get_register)
3854 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3855 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3856 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3857 (mi_execute_command, mi_load_progress): Adjust.
3858 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3859 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3860 Adjust.
3861 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3862 * tui/tui-interp.c (tui_command_loop): Adjust.
3863 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3864
3865 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3866
3867 * exceptions.c (struct catcher): Remove saved_uiout field.
3868 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3869 no longer save/resvore the global ui_out builder.
3870 (catch_exceptions_with_msg): Save/override/restore the global
3871 ui_out builder manually instead of relying on TRY_CATCH to do it.
3872 (catch_errors): Save/restore the global ui_out builder manually
3873 instead of relying on TRY_CATCH to do it.
3874 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3875 parameter.
3876 (TRY_CATCH): Adjust.
3877 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3878 the global ui_out builder manually instead of relying on TRY_CATCH
3879 to do it.
3880
3881 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3882
3883 * breakpoint.c (update_global_location_list): Ensure
3884 invariant 'first loc marked not duplicated and inserted,
3885 following locs marked duplicated/not inserted' is respected
3886 for multiple locations at the same address.
3887 (unduplicated_should_be_inserted) New function.
3888 (swap_insertion) New function.
3889
3890 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3891
3892 * stack.c (print_frame_arguments_choices): Comment typo fix.
3893
3894 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3895
3896 Revert:
3897 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3898 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3899 argument. Update callers.
3900
3901 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3902
3903 PR gdb/13045
3904 * doublest.c (convert_doublest_to_floatformat): Pass correct
3905 mantissa length to put_field.
3906
3907 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3908
3909 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3910 exception_print code path.
3911 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3912 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3913 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3914
3915 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 Code cleanup.
3918 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3919 Remove, merge them into ...
3920 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3921 variable args and its initialization.
3922 (struct print_args_args, print_args_stub): Remove, merge them into
3923 print_frame.
3924 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3925 them into ...
3926 (do_gdb_disassembly): ... here. Remove variable args and its
3927 initialization.
3928 (print_frame): Remove variable args and its initialization, new
3929 variable gdbarch and numargs (from print_args_stub), inline here
3930 print_args_stub with a TRY_CATCH.
3931 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3932 them into ...
3933 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3934 New variable e, remove variable btargs and its initialization.
3935
3936 2011-08-01 Tristan Gingold <gingold@adacore.com>
3937
3938 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3939
3940 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3941
3942 * breakpoint.c (insert_bp_location): Document return value.
3943 (insert_breakpoint_locations): Fix documentation.
3944 (remove_breakpoints): Add documentation.
3945
3946 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3947
3948 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3949 argument. Update callers.
3950
3951 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3952
3953 * stack.c (print_frame_info): Comment typo fix.
3954
3955 2011-07-29 Sterling Augustine <saugustine@google.com>
3956
3957 * MAINTAINERS (Write After Approval): Add myself to the list.
3958
3959 2011-07-29 Tom Tromey <tromey@redhat.com>
3960
3961 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3962 (library_list_start_segment): Update.
3963 (library_list_start_section): Update.
3964
3965 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3966
3967 * varobj.c (value_get_print_value): Move hint check later into the
3968 function. Comment function. Free thevalue before reusing it.
3969
3970 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3971 Pedro Alves <pedro@codesourcery.com>
3972
3973 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3974 value_one.
3975 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3976 Assert the result kind.
3977 * value.h (value_one): Remove parameter lv.
3978
3979 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 Fix crash on lval_computed values.
3982 * valops.c (value_zero): Use not_lval for lval_computed.
3983
3984 2011-07-27 Tom Tromey <tromey@redhat.com>
3985
3986 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3987 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3988
3989 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3990
3991 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3992 "ptype" by their typedefs difference.
3993
3994 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3995
3996 * dwarf2expr.c (ctx_no_read_reg): New function.
3997 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3998 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3999 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4000 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4001
4002 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4003
4004 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4005 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4006 file.
4007 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4008 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4009 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4010 (ctx_no_get_base_type): Move the functions here.
4011 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4012 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4013 (ctx_no_get_base_type): New declarations.
4014
4015 2011-07-27 Tom Tromey <tromey@redhat.com>
4016
4017 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4018 entries.
4019 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4020 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4021
4022 2011-07-26 Sterling Augustine <saugustine@google.com>
4023
4024 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4025 ULONGEST.
4026 (dump_bfd_file): Likewise.
4027
4028 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4029
4030 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4031 (remote_hw_watchpoint_length_limit): New variable.
4032 (_initialize_remote) add set,show cmds for this new variable.
4033 * gdb.texinfo: document these new commands.
4034 * NEWS: Mention these new commands.
4035
4036 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4037
4038 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4039 true for software watchpoints.
4040
4041 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4042
4043 GDB 7.3 released.
4044
4045 2011-07-26 Tom Tromey <tromey@redhat.com>
4046
4047 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4048 * dwarf2read.c (read_indirect_string_at_offset): New function.
4049 (read_indirect_string): Use it.
4050 (dwarf_decode_macro_bytes): New function, taken from
4051 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4052 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4053 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4054 New functions.
4055 (struct dwarf2_per_objfile) <macro>: New field.
4056 (dwarf2_elf_names): Add .debug_macro.
4057 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4058 (dwarf2_locate_sections): Handle new section.
4059 (read_file_scope): Handle DW_AT_GNU_macros.
4060 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4061
4062 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4063
4064 * NEWS: Mention dcache configuration.
4065 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4066 (dcache_size, dcache_line_size): New variables.
4067 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4068 (struct dcache_block): Make it expandable.
4069 (struct dcache_struct): New field.
4070 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4071 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4072 (dcache_poke_byte, dcache_print_line): Adjust.
4073 (set_dcache_size, set_dcache_line_size): New functions.
4074 (set_dcache_command, show_dcache_command): New functions.
4075 (_initialize_dcache): Add new commands.
4076
4077 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4078
4079 * progspace.h (struct program_space): Add solib_add_generation.
4080 * infcmd.c (post_create_inferior): Only call solib_add if not
4081 already done.
4082 * solib.c (solib_add): Increment solib_add_generation.
4083
4084 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4085
4086 Fix implicit pointer offsets.
4087 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4088 ptr.OFFSET.
4089
4090 2011-07-25 Tom Tromey <tromey@redhat.com>
4091
4092 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4093 const.
4094 (ada_exception_sal): Make 'ops' const.
4095 (ada_decode_exception_location): Likewise.
4096 (ada_decode_assert_location): Likewise.
4097 (catch_assert_command): Update.
4098 (catch_ada_exception_command): Update.
4099 (create_ada_exception_catchpoint): Make 'ops' const.
4100 * breakpoint.c (set_raw_breakpoint_without_location)
4101 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4102 const.
4103 (create_internal_breakpoint): Update.
4104 (init_raw_breakpoint_without_location): Make 'ops' const.
4105 (init_raw_breakpoint, init_catchpoint)
4106 (create_fork_vfork_event_catchpoint)
4107 (create_syscall_event_catchpoint, init_breakpoint_sal)
4108 (create_breakpoint_sal, create_breakpoints_sal)
4109 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4110 * breakpoint.h (struct breakpoint) <ops>: Now const.
4111 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4112 const.
4113
4114 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4115
4116 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4117
4118 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4119
4120 * breakpoint.h (print_recreate_thread): Declare.
4121 (struct breakpoint): Move step_count, pass_count,
4122 number_on_target, static_trace_marker_id,
4123 static_trace_marker_id_idx ...
4124 (struct tracepoint): ... to this new struct.
4125 (get_tracepoint, get_tracepoint_by_number_on_target)
4126 (get_tracepoint_by_number): Change return type to struct
4127 tracepoint pointer.
4128 * breakpoint.c (is_tracepoint_type): New, factored out from
4129 is_tracepoint.
4130 (is_tracepoint): Adjust.
4131 (print_one_breakpoint_location): Cast to struct tracepoint as
4132 necessary, and adjust.
4133 (print_recreate_catch_fork, print_recreate_catch_vfork)
4134 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4135 print_recreate_thread.
4136 (init_breakpoint_sal): New, factored out from
4137 create_breakpoint_sal.
4138 (create_breakpoint_sal): Reimplement.
4139 (create_breakpoint): Allocate a struct tracecepoint if the caller
4140 wanted a tracepoint. Use init_breakpoint_sal and
4141 install_breakpoint.
4142 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4143 (print_recreate_masked_watchpoint)
4144 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4145 (tracepoint_print_one_detail): Adjust.
4146 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4147 Dump the pass count here.
4148 (update_static_tracepoint): Adjust.
4149 (addr_string_to_sals): Adjust.
4150 (create_tracepoint_from_upload): Adjust. Change return type to
4151 struct tracepoint pointer.
4152 (trace_pass_set_count): Change parameter type to struct tracepoint
4153 pointer, and adjust.
4154 (trace_pass_command): Adjust.
4155 (get_tracepoint, get_tracepoint_by_number_on_target)
4156 (get_tracepoint_by_number): Change return type to struct
4157 tracepoint pointer, and adjust.
4158 (print_recreate_thread): New, factored out from save_breakpoints.
4159 (save_breakpoints): Don't print thread and task and passcount
4160 recreation here.
4161 * remote.c (remote_download_tracepoint): Adjust.
4162 * tracepoint.c (trace_actions_command, validate_actionline)
4163 (start_tracing, tfind_1, trace_find_tracepoint_command)
4164 (trace_dump_command): Adjust.
4165 (find_matching_tracepoint): Change return type to struct
4166 tracepoint pointer, and adjust.
4167 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4168 (tfile_trace_find, tfile_fetch_registers): Adjust.
4169 * tracepoint.h (create_tracepoint_from_upload): Change return type
4170 to struct tracepoint pointer.
4171 * ada-lang.c (print_recreate_exception): Call
4172 print_recreate_thread.
4173 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4174
4175 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4176
4177 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4178 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4179 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4180 watchpoint_thread, watchpoint_triggered ...
4181 (struct watchpoint): ... to this new struct.
4182 (is_watchpoint): Declare.
4183 (install_breakpoint): Add new `internal' parameter.
4184 * breakpoint.c (is_watchpoint): Delete declaration.
4185 (set_breakpoint_condition): Handle watchpoints.
4186 (is_watchpoint): Make public.
4187 (watchpoint_in_thread_scope): Change parameter type to struct
4188 watchpoint.
4189 (watchpoint_del_at_next_stop): Change parameter type to struct
4190 watchpoint. Remove assertion. Adjust.
4191 (update_watchpoint): Ditto.
4192 (insert_breakpoints, breakpoint_init_inferior)
4193 (watchpoints_triggered, watchpoint_check)
4194 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4195 (bpstat_stop_status, print_one_breakpoint_location)
4196 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4197 to struct watchpoint as necessary, and adjust.
4198 (install_breakpoint): Add `internal' argument. If true, don't
4199 mention the new breakpoint. Use set_breakpoint_number.
4200 (create_fork_vfork_event_catchpoint)
4201 (create_syscall_event_catchpoint): Adjust.
4202 (dtor_watchpoint): New.
4203 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4204 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4205 (print_it_watchpoint, print_mention_watchpoint)
4206 (print_recreate_watchpoint, insert_masked_watchpoint)
4207 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4208 (print_one_detail_masked_watchpoint)
4209 (print_mention_masked_watchpoint)
4210 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4211 necessary, and adjust.
4212 (watch_command_1): Allocate and initialize a struct watchpoint
4213 instead of a struct breakpoint. Use install_breakpoint.
4214 (catch_exec_command_1): Adjust.
4215 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4216 fields.
4217 (delete_breakpoint, enable_breakpoint_disp)
4218 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4219 as necessary, and adjust.
4220 (initialize_breakpoint_ops): Install dtor_watchpoint as
4221 watchpoints' dtor method.
4222 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4223 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4224 to struct watchpoint as necessary, and adjust.
4225
4226 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4227
4228 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4229 the the base class ops table.
4230 (catch_exception_breakpoint_ops)
4231 (catch_exception_unhandled_breakpoint_ops)
4232 (catch_assert_breakpoint_ops): Don't statically initialize.
4233 (initialize_ada_catchpoint_ops): New.
4234 (_initialize_ada_language): Call it.
4235 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4236 (bkpt_breakpoint_ops): Forward declare.
4237 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4238 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4239 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4240 (masked_watchpoint_breakpoint_ops)
4241 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4242 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4243 base class ops table.
4244 (null_re_set, null_check_status, null_works_in_software_mode)
4245 (null_resources_needed, null_print_one_detail): Delete.
4246 (bkpt_dtor): Rename to ...
4247 (base_breakpoint_dtor): ... this. Make static.
4248 (bkpt_allocate_location): Rename to ...
4249 (base_breakpoint_allocate_location): ... this. Make static.
4250 (base_breakpoint_re_set): New.
4251 (internal_error_pure_virtual_called): New.
4252 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4253 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4254 (base_breakpoint_works_in_software_mode)
4255 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4256 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4257 (base_breakpoint_print_recreate): New functions.
4258 (base_breakpoint_ops): New global.
4259 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4260 (bkpt_breakpoint_hit): Make static.
4261 (bkpt_check_status): Delete.
4262 (bkpt_resources_needed): Make static.
4263 (bkpt_works_in_software_mode): Delete.
4264 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4265 static.
4266 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4267 (momentary_breakpoint_ops): Don't statically initialize.
4268 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4269 Delete.
4270 (tracepoint_insert_location, tracepoint_remove_location)
4271 (tracepoint_check_status, tracepoint_works_in_software_mode)
4272 (tracepoint_print_it): Delete.
4273 (tracepoint_breakpoint_ops): Don't statically initialize.
4274 (initialize_breakpoint_ops): New.
4275 (_initialize_breakpoint): Call it.
4276 * breakpoint.h (null_re_set, null_works_in_software_mode)
4277 (null_resources_needed, null_check_status, null_print_one_detail):
4278 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4279 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4280 (bkpt_check_status, bkpt_resources_needed)
4281 (bkpt_works_in_software_mode, bkpt_print_it)
4282 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4283 Delete declarations.
4284 (initialize_breakpoint_ops): Declare.
4285
4286 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4287
4288 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4289 (momentary_bkpt_print_it): Simplify.
4290
4291 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4292
4293 Split internal, momentary and user breakpoints breakpoint_ops
4294 tables.
4295
4296 * breakpoint.c (internal_breakpoint_ops)
4297 (momentary_breakpoint_ops): Forward declare.
4298 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4299 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4300 (create_overlay_event_breakpoint)
4301 (create_std_terminate_master_breakpoint)
4302 (create_exception_master_breakpoint): Create breakpoints with
4303 internal_breakpoint_ops vtable.
4304 (set_longjmp_breakpoint): Create momentary breakpoints with
4305 momentary_breakpoint_ops vtable, using
4306 momentary_breakpoint_from_master.
4307 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4308 (create_solib_event_breakpoint): Create breakpoints with
4309 internal_breakpoint_ops vtable.
4310 (set_momentary_breakpoint): Create breakpoints with
4311 momentary_breakpoint_ops vtable.
4312 (momentary_breakpoint_from_master): New, factored out from
4313 clone_momentary_breakpoint.
4314 (clone_momentary_breakpoint): Adjust.
4315 (watch_command_1): Create scope breakpoints with
4316 momentary_breakpoint_ops vtable.
4317 (bkpt_re_set): Remove handling of internal and momentary
4318 breakpoints.
4319 (bkpt_print_mention, bkpt_print_recreate): New.
4320 (bkpt_breakpoint_ops): Adjust.
4321 (internal_bkpt_re_set, internal_bkpt_check_status)
4322 (internal_bkpt_print_it, internal_bkpt_print_mention)
4323 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4324 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4325 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4326 (momentary_bkpt_print_recreate): New.
4327 (momentary_breakpoint_ops): New.
4328
4329 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4330
4331 Implement most breakpoint_ops methods for all breakpoint types,
4332 and move the default handlings to the proper callbacks.
4333
4334 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4335 works_in_software_mode method.
4336 (insert_bp_location): Go through breakpoint_ops->insert_location
4337 for software and hardware watchpoints.
4338 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4339 breakpoint_ops.
4340 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4341 for software and hardware watchpoints.
4342 (print_it_typical): Delete.
4343 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4344 method.
4345 (watchpoint_check): Adjust comment.
4346 (bpstat_check_location): Simply always call the breakpoint's
4347 breakpoint_hit method.
4348 (bpstat_stop_status): Always call the breakpoint's check_status
4349 method. Remove special cases for watchpoints and internal event
4350 breakpoints from here (moved to the check_status implementations).
4351 (print_one_breakpoint_location): Assume b->ops is never NULL.
4352 Remove static tracepoint marker id printing from here (moved to
4353 the print_one_detail callback implementation of tracepoints).
4354 (init_bp_location): Assert OPS is never NULL.
4355 (allocate_bp_location): Always call the breakpoint's
4356 allocate_location method, and remove the default code from here.
4357 (free_bp_location): Always call the location's dtor method, and
4358 remove the default code from here.
4359 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4360 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4361 parameter. Pass it down.
4362 (set_raw_breakpoint): Ditto.
4363 (print_it_catch_fork): Adjust to take a bpstat as argument.
4364 (catch_fork_breakpoint_ops): Install methods.
4365 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4366 (catch_vfork_breakpoint_ops): Install methods.
4367 (dtor_catch_syscall): Call the base dtor.
4368 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4369 (catch_syscall_breakpoint_ops): Install methods.
4370 (dtor_catch_exec): Call the base dtor.
4371 (print_it_catch_exec): Adjust to take a bpstat as argument.
4372 (catch_exec_breakpoint_ops): Install methods.
4373 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4374 the breakpoint's resources_needed method, and remove the default
4375 code from here.
4376 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4377 breakpoint_ops.
4378 (clone_momentary_breakpoint): Clone the original's ops.
4379 (mention): Always call the breakpoint's print_mention method, and
4380 remove the default code from here.
4381 (create_breakpoint_sal): Adjust to pass the ops to
4382 set_raw_breakpoint rather than setting it manually.
4383 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4384 ops to set_raw_breakpoint_without_location rather than setting it
4385 manually.
4386 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4387 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4388 (ranged_breakpoint_ops): Install methods.
4389 (break_range_command): Adjust to pass the ops to
4390 set_raw_breakpoint rather than setting it manually.
4391 (re_set_watchpoint, breakpoint_hit_watchpoint)
4392 (check_status_watchpoint, resources_needed_watchpoint)
4393 (works_in_software_mode_watchpoint, print_it_watchpoint)
4394 (print_mention_watchpoint, print_recreate_watchpoint): New
4395 functions.
4396 (watchpoint_breakpoint_ops): Install new methods.
4397 (print_it_masked_watchpoint): New function.
4398 (masked_watchpoint_breakpoint_ops): Install new methods.
4399 (watch_command_1): Adjust to pass the right breakpoint_ops to
4400 set_raw_breakpoint_without_location rather than setting it
4401 manually later. Record the current pspace.
4402 (print_it_exception_catchpoint): Adjust to take a bpstat as
4403 argument.
4404 (gnu_v3_exception_catchpoint_ops): Install new methods.
4405 (say_where): New function.
4406 (null_re_set, null_check_status, null_works_in_software_mode)
4407 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4408 New functions.
4409 (bp_location_ops): New global.
4410 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4411 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4412 (bkpt_check_status, bkpt_resources_needed)
4413 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4414 (bkpt_print_recreate): New functions.
4415 (bkpt_breakpoint_ops): New global.
4416 (tracepoint_re_set, tracepoint_insert_location)
4417 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4418 (tracepoint_check_status, tracepoint_works_in_software_mode)
4419 (tracepoint_print_it, tracepoint_print_one_detail)
4420 (tracepoint_print_mention, tracepoint_print_recreate): New
4421 functions.
4422 (tracepoint_breakpoint_ops): New global.
4423 (delete_breakpoint): Always call the breakpoint's dtor method, and
4424 remove the default handling from here.
4425 (breakpoint_re_set_default): Make static.
4426 (breakpoint_re_set_one): Always call the breakpoints re_set
4427 method, and remove the default handling from here.
4428 (trace_command, ftrace_command, strace_command)
4429 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4430 to create_breakpoint.
4431 (save_breakpoints): Always call the breakpoint's print_recreate
4432 method, and remove the default handling from here.
4433
4434 * ada-lang.c (dtor_exception): Call the base dtor.
4435 (re_set_exception): Call the base method.
4436 (print_it_exception, print_it_catch_exception): Adjust to take a
4437 bpstat as argument.
4438 (catch_exception_breakpoint_ops): Install methods.
4439 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4440 argument.
4441 (catch_exception_unhandled_breakpoint_ops): Install methods.
4442 (print_it_catch_assert): Adjust to take a bpstat as argument.
4443 (catch_assert_breakpoint_ops): Install methods.
4444
4445 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4446 to take a bpstat as argument.
4447 (enum print_stop_action): Add describing comments to each enum
4448 value.
4449 (breakpoint_re_set_default): Delete declaration.
4450 (null_re_set, null_works_in_software_mode, null_resources_needed)
4451 (null_check_status, null_print_one_detail): Declare.
4452 (bkpt_breakpoint_ops): Declare.
4453 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4454 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4455 (bkpt_check_status, bkpt_resources_needed)
4456 (bkpt_works_in_software_mode, bkpt_print_it)
4457 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4458 Declare.
4459
4460 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4461 bkpt_breakpoint_ops.
4462 * python/py-breakpoint.c (bppy_init): Ditto.
4463
4464 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4465
4466 * MAINTAINERS (Write After Approval): Add myself to the list.
4467
4468 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4469
4470 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4471
4472 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4473
4474 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4475 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4476 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4477 adjust.
4478 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4479 (struct i386_debug_reg_state): New.
4480 (i386_init_dregs): New.
4481 (dr_mirror): New.
4482 (i386_cleanup_dregs): Use i386_init_dregs.
4483 (i386_show_dr): Add state parameter and adjust.
4484 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4485 the inferior here.
4486 (i386_remove_aligned_watchpoint): Likewise.
4487 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4488 (i386_update_inferior_debug_regs): New.
4489 (i386_insert_watchpoint): Work on a local mirror of the debug
4490 registers, and only update the inferior on success.
4491 (i386_remove_watchpoint): Ditto.
4492 (i386_region_ok_for_watchpoint): Adjust.
4493 (i386_stopped_data_address): Adjust.
4494 (i386_insert_hw_breakpoint): Adjust.
4495 (i386_remove_hw_breakpoint): Adjust.
4496
4497 2011-07-22 Tom Tromey <tromey@redhat.com>
4498
4499 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4500 from amd64_pseudo_register_read. Change arguments. Call
4501 mark_value_bytes_unavailable when needed.
4502 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4503 set_gdbarch_pseudo_register_read.
4504 * sentinel-frame.c (sentinel_frame_prev_register): Use
4505 regcache_cooked_read_value.
4506 * regcache.h (regcache_cooked_read_value): Declare.
4507 * regcache.c (regcache_cooked_read_value): New function.
4508 (regcache_cooked_read): Call
4509 gdbarch_pseudo_register_read_value if available.
4510 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4511 (i386_pseudo_register_read): Remove.
4512 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4513 i386_pseudo_register_read. Change arguments. Call
4514 mark_value_bytes_unavailable when needed.
4515 (i386_pseudo_register_read_value): New function.
4516 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4517 not set_gdbarch_pseudo_register_read.
4518 * gdbarch.sh (pseudo_register_read_value): New method.
4519 * gdbarch.c, gdbarch.h: Rebuild.
4520 * findvar.c (value_from_register): Call get_frame_register_value.
4521
4522 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4523
4524 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4525 get_prefix.
4526 (display_gdb_prompt): Likewise.
4527 (change_annotation_level): Likewise.
4528 (push_prompt): Likewise.
4529 (pop_prompt): Likewise.
4530 (handle_stop_sig): Use get_prompt with a level.
4531 * top.c (command_loop): Use get_prompt with a level.
4532 (set_async_annotation_level): Use set_prompt with a level.
4533 (get_prefix): New function.
4534 (set_prefix): Ditto.
4535 (set_suffix): Ditto.
4536 (get_suffix): Ditto.
4537 (get_prompt): Accept a level argument.
4538 (set_prompt): Accept a level argument. Free old prompts. Set
4539 new_async_prompt if level is 0.
4540 (init_main): Use set_prompt with a level. Do not set
4541 new_async_prompt.
4542 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4543 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4544 Modify set_prompt, get_prompt to account for levels.
4545 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4546 level.
4547 * python/python.c (before_prompt_hook): Use set_prompt.
4548
4549 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4550
4551 * defs.h: Add guard against inclusion in gdbserver.
4552 (struct ptid, ptid_t): Move to common/ptid.h.
4553 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4554 xsnprintf, internal_error): Move to common/common-utils.h.
4555 (nomem): Delete.
4556 * gdb_assert.h: Move into common/ sub-directory.
4557 * gdb_locale.h: Ditto.
4558 * gdb_dirent.h: Ditto.
4559 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4560 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4561 Move into common/ptid.h.
4562 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4563 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4564 Change nomem to malloc_failure.
4565 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4566 * utils.c (nomem): Rename to malloc_failure.
4567 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4568 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4569 (gdb_buildargv): Change nomem to malloc_failure.
4570 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4571 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4572 ptid_is_pid): Move into common/ptid.c.
4573 (initialize_infrun): Delete initialization of null_ptid and
4574 minus_one_ptid.
4575 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4576 linux_common_xfer_osdata.
4577 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4578 common/ptid.c and common/buffer.c.
4579 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4580 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4581 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4582 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4583 rules.
4584 * common/gdb_assert.h: New.
4585 * common/gdb_dirent.h: New.
4586 * common/gdb_locale.h: New.
4587 * common/buffer.c: New.
4588 * common/buffer.h: New.
4589 * common/ptid.c: New.
4590 * common/ptid.h: New.
4591 * common/xml-utils.c: New.
4592 * common/xml-utils.h: New.
4593 * common/common-utils.c: New.
4594 * common/common-utils.h: New.
4595 * common/linux-osdata.c: New.
4596 * common/linux-osdata.h: New.
4597 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4598 * config/arm/linux.mh (NATDEPFILES): Ditto.
4599 * config/i386/linux.mh (NATDEPFILES): Ditto.
4600 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4601 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4602 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4603 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4604 * config/mips/linux.mh (NATDEPFILES): Ditto.
4605 * config/pa/linux.mh (NATDEPFILES): Ditto.
4606 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4607 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4608 * config/s390/s390.mh (NATDEPFILES): Ditto.
4609 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4610 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4611 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4612
4613 2011-07-21 Matt Rice <ratmice@gmail.com>
4614
4615 * NEWS: Add info macros and info definitions commands.
4616
4617 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4618
4619 * NEWS: Document Python prompt substitution hook.
4620
4621 2011-07-18 Matt Rice <ratmice@gmail.com>
4622
4623 PR macros/12999
4624 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4625 * macrotab.c (foreach_macro): Ditto.
4626 (foreach_macro_in_scope): Ditto.
4627 * macrocmd.c (print_macro_callback): New function.
4628 (info_macro_command): Move some code to print_macro_definition.
4629 (print_macro_definition): New function.
4630 (print_one_macro): Add new arguments to callback.
4631 (info_definitions_command): New function.
4632 (info_macros_command): Ditto.
4633 (_initialize_macrocmd): Add info macros and info definitions commands.
4634 * symtab.c (add_macro_name): Add new arguments to callback.
4635
4636 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4637 Tom Tromey <tromey@redhat.com>
4638
4639 * top.c (set_prompt): Rewrite to free previous prompt, free
4640 asynch_new_prompt and set both on new prompts.
4641 * event-top.c (display_gdb_prompt): Add prompt substitution
4642 logic.
4643 * python/python.c (before_prompt_hook): New function.
4644
4645 2011-07-20 Matt Rice <ratmice@gmail.com>
4646
4647 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4648 arguments to store_unsigned_integer.
4649
4650 2011-07-20 Tom Tromey <tromey@redhat.com>
4651
4652 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4653 in some declaration-only cases.
4654
4655 2011-07-18 Tom Tromey <tromey@redhat.com>
4656
4657 PR symtab/12984:
4658 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4659 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4660 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4661 <debug_type_section>: New field.
4662 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4663 (load_cu): Use appropriate section.
4664 (create_signatured_type_table_from_index): Add 'section'
4665 argument.
4666 (dwarf2_read_index): Only allow a single .debug_types section.
4667 (dw2_get_file_names): Use appropriate section.
4668 (read_type_comp_unit_head): Add 'section' argument.
4669 (create_debug_types_hash_table): Loop over all .debug_types
4670 sections.
4671 (init_cu_die_reader): Use appropriate section.
4672 (process_psymtab_comp_unit, load_partial_comp_unit)
4673 (load_full_comp_unit, read_die_and_children, find_partial_die)
4674 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4675 (lookup_signatured_type_at_offset): Add 'section' argument.
4676 (read_signatured_type_at_offset): Add 'sect' argument.
4677 (read_signatured_type): Use appropriate section.
4678 (set_die_type, get_die_type_at_offset): Update.
4679 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4680 VEC.
4681 (write_psymtabs_to_index): Don't allow index with more than one
4682 .debug_types section.
4683
4684 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4685
4686 Fix crash if referenced CU is aged out.
4687 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4688 xfree of block.data.
4689 (indirect_pieced_value): New variable back_to, use to for xfree of
4690 baton.data.
4691 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4692 block.data.
4693 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4694 (load_cu): New function from ...
4695 (dw2_do_instantiate_symtab): ... the code here ...
4696 (process_full_comp_unit): ... and here.
4697 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4698 retval.data.
4699
4700 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4701
4702 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4703 type.
4704
4705 2011-07-19 Gary Benson <gbenson@redhat.com>
4706
4707 * infrun.c (struct execution_control_state): New member
4708 stop_func_filled_in.
4709 (clear_stop_func, fill_in_stop_func): New functions.
4710 (handle_inferior_event): Call clear_stop_func rather than
4711 manipulating the execution control state directly.
4712 Call fill_in_stop_func lazily as required rather than
4713 directly calling find_pc_partial_function in all cases.
4714
4715 2011-07-18 Tom Tromey <tromey@redhat.com>
4716
4717 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4718 checking for variable-sized array.
4719
4720 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4721
4722 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4723 of supported languages.
4724 * varobj.c: Add top definitions and basic implementation of the
4725 following callbacks: ada_number_of_children, ada_name_of_variable,
4726 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4727 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4728 (languages): Register Ada-specific callbacks.
4729 (variable_language): Add the Ada case in the language setter switch.
4730
4731 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4732
4733 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4734
4735 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 Code cleanup.
4738 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4739 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4740 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4741 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4742 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4743 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4744 (struct dwarf_expr_context_funcs): New, move here methods from ...
4745 (struct dwarf_expr_context): ... here. New fields funcs.
4746 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4747 (dwarf_expr_ctx_funcs): New.
4748 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4749 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4750 (needs_frame_ctx_funcs): New.
4751 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4752
4753 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4754
4755 * MAINTAINERS (Write After Approval): Add myself to the list.
4756
4757 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4758
4759 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4760 that CIE pointer of an FDE really points to a CIE .
4761
4762 2011-07-15 Hui Zhu <teawater@gmail.com>
4763
4764 * remote.c (remote_get_trace_status): Add comments.
4765
4766 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 Code cleanup - constify struct lval_funcs.
4769 * dwarf2loc.c (pieced_value_funcs): Make it const.
4770 * infrun.c (siginfo_value_funcs): Likewise.
4771 * opencl-lang.c (opencl_value_funcs): Likewise.
4772 * valops.c (value_assign, value_ind): Make the funcs variable const.
4773 * value.c (struct value): Make location.computed.funcs target const.
4774 Rearrange the comments.
4775 (allocate_computed_value): Make the funcs parameter target const.
4776 (value_computed_funcs): Return the funcs target const.
4777 (value_free, value_copy, set_value_component_location): Make the funcs
4778 variable const.
4779 * value.h (allocate_computed_value): Make the funcs parameter target
4780 const.
4781 (value_computed_funcs): Return the funcs target const.
4782 * windows-tdep.c (tlb_value_funcs): Make it const.
4783
4784 2011-07-14 Hui Zhu <teawater@gmail.com>
4785
4786 * remote.c (remote_get_trace_status): Initialize p.
4787
4788 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4789
4790 Work around kgdb.
4791 * remote.c (remote_get_trace_status): New variable ex. Put
4792 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4793
4794 2011-07-13 Tom Tromey <tromey@redhat.com>
4795
4796 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4797 value_from_contents for final conversion.
4798
4799 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4800
4801 Code cleanup.
4802 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4803 Indent prototypes so they do not get into tags.
4804
4805 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 Code cleanup making also optimized out values lazy.
4808 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4809 allocate_optimized_out_value. Twice.
4810 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4811 * findvar.c (read_var_value): Likewise.
4812 * value.c (allocate_optimized_out_value): New function.
4813 * value.h (allocate_optimized_out_value): New declaration.
4814
4815 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4816
4817 Fix occasional crash of CTRL-C during DWARF read in.
4818 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4819
4820 2011-07-11 Tom Tromey <tromey@redhat.com>
4821
4822 * regcache.c (struct regcache_descr): Fix typo.
4823 * i387-tdep.c (i387_supply_xsave): Fix typo.
4824
4825 2011-07-11 Tom Tromey <tromey@redhat.com>
4826
4827 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4828 (read_file_scope, read_type_unit_scope): Use it.
4829
4830 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4833 `int'.
4834
4835 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4836
4837 PR python/12438
4838 * python/python.c: Set gdbpy_should_print_stack default to off.
4839 (set_python): Deprecate maint set python print-stack to
4840 class_deprecate.
4841 (_initialize_python): Deprecate maint set/show python print-stack.
4842 Add new prefix command, python. Add new setting, print-backtrace.
4843 * NEWS: Document set python print-stack. Document default change.
4844
4845 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4846
4847 * python/py-inferior.c (infpy_dealloc): New function.
4848 (inferior_to_inferior_object): Return a new object, or a
4849 new reference to the existing object.
4850 (find_thread_object): Cleanup references to inferior.
4851 (delete_thread_object): Ditto.
4852 * python/py-infthread.c (create_thread_object): Do not increment
4853 inferior reference count.
4854
4855 2011-07-08 Tom Tromey <tromey@redhat.com>
4856
4857 * dwarf2loc.c (locexpr_regname): New function.
4858 (locexpr_describe_location_piece): Use it.
4859 (disassemble_dwarf_expression): Add per_cu argument. Use
4860 locexpr_regname.
4861 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4862 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4863 New cases.
4864 (locexpr_describe_location_1): Add per_cu argument.
4865 (locexpr_describe_location): Update.
4866 (loclist_describe_location): Update.
4867
4868 2011-07-08 Tom Tromey <tromey@redhat.com>
4869
4870 * dwarf2expr.c (execute_stack_op): Add QUIT.
4871
4872 2011-07-07 Hui Zhu <teawater@gmail.com>
4873
4874 Revert:
4875 2011-07-06 Hui Zhu <teawater@gmail.com>
4876 * remote.c (remote_start_remote): Add TRY_CATCH for
4877 remote_get_trace_status.
4878 * tracepoint.c (disconnect_tracing): Ditto.
4879
4880 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4881
4882 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4883 variables as signed, not unsigned.
4884
4885 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4886
4887 * jit.c (jit_inferior_init): Reformat forward declaration.
4888
4889 2011-07-06 Matt Rice <ratmice@gmail.com>
4890
4891 * MAINTAINERS (Write After Approval): Add myself to the list.
4892
4893 2011-07-06 Hui Zhu <teawater@gmail.com>
4894
4895 * remote.c (remote_start_remote): Add TRY_CATCH for
4896 remote_get_trace_status.
4897 * tracepoint.c (disconnect_tracing): Ditto.
4898
4899 2011-07-05 Tom Tromey <tromey@redhat.com>
4900
4901 * symtab.c (operator_chars): Now static.
4902 * linespec.c (operator_chars): Don't declare.
4903
4904 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4905
4906 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4907
4908 2011-07-05 Tom Tromey <tromey@redhat.com>
4909
4910 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4911 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4912 (TYPE_CPLUS_REALLY_JAVA): New macro.
4913 * dwarf2read.c (process_structure_scope): Set
4914 TYPE_CPLUS_REALLY_JAVA.
4915
4916 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4917
4918 * ada-lang.c: Fix typos.
4919 * amd64-tdep.c: Likewise.
4920 * breakpoint.c: Likewise.
4921 * cli/cli-decode.c: Likewise.
4922 * findcmd.c: Likewise.
4923 * inline-frame.c: Likewise.
4924 * mi/mi-main.c: Likewise.
4925 * minsyms.c: Likewise.
4926 * monitor.c: Likewise.
4927 * monitor.h: Likewise.
4928 * prologue-value.c: Likewise.
4929 * reverse.c: Likewise.
4930 * s390-tdep.c: Likewise.
4931
4932 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4933
4934 * jit.c (jit_inferior_init): Forward declare.
4935 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4936
4937 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4938
4939 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4940
4941 2011-07-04 Tristan Gingold <gingold@adacore.com>
4942
4943 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4944 (tcb_fieldno): Add activation_link field.
4945 (get_known_tasks_addr): Moved and rewritten.
4946 (get_tcb_types_info): Set activation_link field.
4947 (read_known_tasks_array): Add parameter. Rewritten.
4948 (read_known_tasks_list): New function.
4949 (read_known_tasks): New function.
4950 (ada_build_task_list): Call read_known_tasks instead of
4951 read_known_tasks_array.
4952 * ravenscar-thread.c: Add first_task_name constant.
4953 (has_ravenscar_runtime): Check for task list too.
4954
4955 2011-07-04 Tristan Gingold <gingold@adacore.com>
4956
4957 * ada-tasks.c: Renames fieldno to actb_fieldno.
4958 (ada_get_task_number): Indentation.
4959 (get_tcb_types_info): Remove all parameters. Write directly
4960 the globals.
4961 (ptid_from_atcb_common): Adjust.
4962 (read_atcb): Adjust.
4963
4964 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4965
4966 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4967
4968 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4969
4970 * ui-out.c (ui_out_field_core_addr): Mention that the function
4971 description is in the header file.
4972 * ui-out.h (ui_out_field_core_addr): Document function.
4973
4974 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4975
4976 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4977 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4978
4979 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4980
4981 * symtab.c (expand_line_sal): Remove empty line.
4982
4983 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4984
4985 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4986 same way as ELFOSABI_NONE.
4987 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4988
4989 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4990
4991 * breakpoint.c: Fix typos in comments.
4992 * linespec.c: Likewise.
4993 * symtab.c: Likewise.
4994
4995 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4996
4997 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4998 section in separate object files.
4999
5000 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5001
5002 Fix false GCC warning.
5003 * linespec.c (decode_line_1): Initialize values.
5004
5005 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5006
5007 * linespec.c (find_method): Accept the function type automatically only
5008 if it was specified with parameter types.
5009
5010 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5011
5012 Stop on first linespec terminator instead of eating what we can.
5013 * linespec.c (is_linespec_boundary): New function.
5014 (name_end): Remove function.
5015 (keep_name_info): New parameter on_boundary, replace the body.
5016 (decode_line_1): Provide the parameter to keep_name_info.
5017 (decode_compound): Likewise. Drop the trailing java return type
5018 handling. Twice.
5019
5020 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5021
5022 Fall back linespec to minimal symbols.
5023 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5024 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5025 (find_method, symbol_found): Change error to cplusplus_error.
5026
5027 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5028
5029 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5030
5031 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5032 Tom Tromey <tromey@redhat.com>
5033
5034 * dwarf2read.c (check_physname): New variable.
5035 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5036 (show_check_physname): New function.
5037 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5038
5039 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5040
5041 * machoread.c (macho_symfile_read): Delete OBE comment.
5042
5043 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5044
5045 * machoread.c (struct macho_oso_data): Delete.
5046 (current_oso): Delete.
5047 (macho_relocate_common_syms): New function, mostly extracted
5048 out of
5049 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5050 Remove code that sets and unset current_oso.
5051 (macho_symfile_relocate): Delete handling of common symbols,
5052 now moved to macho_relocate_common_syms.
5053
5054 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5055
5056 * darwin-nat.c (darwin_ptrace): Add documentation.
5057 Set errno to zero before calling ptrace. If ptrace returns
5058 -1 and errno is zero, then change then return zero.
5059 (darwin_kill_inferior): Issue a warning instead of triggering
5060 a failed assertion when the PT_KILL ptrace operations returned
5061 nonzero.
5062
5063 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5064
5065 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5066 only when inf->private->no_ptrace.
5067
5068 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5069
5070 * ada-lang.c (print_it_exception): Print temporary catchpoints
5071 as "Temporary catchpoint".
5072 (print_mention_exception): Likewise.
5073
5074 2011-07-01 Tom Tromey <tromey@redhat.com>
5075
5076 * jv-lang.c (java_language_defn): Use java_printchar,
5077 java_printstr.
5078 (java_get_encoding): New function.
5079 (java_emit_char): Use generic_emit_char.
5080 (java_printchar): New function.
5081 (java_printstr): Likewise.
5082
5083 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5084
5085 * ada-typeprint.c (print_record_type): If unable to decode
5086 the name of the parent type, use the encoded name.
5087
5088 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5089
5090 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5091 pointer to constrained packed array type output.
5092 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5093 packed array output.
5094
5095 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5096
5097 * ada-typeprint.c (print_array_type): removed if condition on show
5098 being negative for bounds printing.
5099
5100 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5101
5102 * ada-lang.c (ada_identical_enum_types_p): New function.
5103 (symbols_are_identical_enums): New function.
5104 (remove_extra_symbols): Do nothing if NSYMS < 2.
5105 Use symbols_are_identical_enums.
5106
5107 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5108
5109 * ada-valprint.c (ada_value_print): Handle typedefs.
5110
5111 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5112
5113 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5114
5115 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5116
5117 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5118 (decode_constrained_packed_array): Likewise.
5119 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5120
5121 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5122
5123 * ada-exp.y (convert_char_literal): Handle typedef types.
5124
5125 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5126
5127 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5128
5129 2011-06-30 Tom Tromey <tromey@redhat.com>
5130
5131 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5132 * valops.c (find_overload_match): Call do_cleanups on early exit
5133 path.
5134 * solib.c (solib_find): Call do_cleanups on early exit path.
5135
5136 2011-06-30 Tom Tromey <tromey@redhat.com>
5137
5138 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5139 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5140 return paths. Defer final do_cleanups until last return.
5141 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5142 early return.
5143
5144 2011-06-30 Tom Tromey <tromey@redhat.com>
5145
5146 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5147
5148 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5149
5150 * MAINTAINERS (Write After Approval): Add myself to the list.
5151
5152 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5153
5154 Disable epilogue unwinders on recent GCCs.
5155 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5156 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5157 * dwarf2read.c (process_full_comp_unit): Initialize
5158 EPILOGUE_UNWIND_VALID.
5159 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5160 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5161 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5162
5163 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5164
5165 Code cleanup - reformatting.
5166 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5167 (producer_is_gcc_ge_4): ... here, change the return value.
5168 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5169 interpretation.
5170
5171 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5172
5173 Fix non-only rename list for Fortran modules import.
5174 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5175 cp_add_using_directive caller.
5176 (cp_add_using_directive): New parameter excludes, describe it. New
5177 variables ix and param. Compare if also excludes match. Allocate NEW
5178 with variable size, initialize EXCLUDES there.
5179 (cp_lookup_symbol_imports): New variable excludep, test
5180 current->EXCLUDES with it.
5181 * cp-support.h: Include vec.h.
5182 (struct using_direct): New field excludes, describe it.
5183 (DEF_VEC_P (const_char_ptr)): New.
5184 (cp_add_using_directive): New parameter excludes.
5185 * defs.h (const_char_ptr): New typedef.
5186 * dwarf2read.c (read_import_statement): New variables child_die,
5187 excludes and cleanups, read in excludes.
5188 (read_namespace): Adjust the cp_add_using_directive caller.
5189
5190 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5191
5192 Code cleanup.
5193 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5194 negative comparisons.
5195
5196 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5197
5198 * mi/mi-main.c (mi_cmd_list_features): Emit
5199 breakpoint-notifications.
5200
5201 2011-06-29 Tom Tromey <tromey@redhat.com>
5202
5203 PR fortran/10036:
5204 * valprint.h (generic_emit_char, generic_printstr): Declare.
5205 * valprint.c (wchar_printable, append_string_as_wide)
5206 (print_wchar): Move from c-lang.c.
5207 (generic_emit_char): New function; mostly taken from c_emit_char.
5208 (generic_printstr): New function; mostly taken from c_printstr.
5209 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5210 represented as arrays.
5211 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5212 type.
5213 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5214 identically to TYPE_CODE_INT.
5215 * f-lang.c (f_get_encoding): New function.
5216 (f_emit_char): Use generic_emit_char.
5217 (f_printchar): Replace comment.
5218 (f_printstr): Use generic_printstr.
5219 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5220 "character" types specially.
5221 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5222 for Fortran.
5223 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5224 Move to valprint.c
5225 (c_emit_char): Call generic_emit_char.
5226 (c_printstr): Call generic_printstr.
5227
5228 2011-06-29 Gary Benson <gbenson@redhat.com>
5229
5230 * breakpoint.c (bpstat_what): Removed duplicated case.
5231
5232 2011-06-28 Tom Tromey <tromey@redhat.com>
5233
5234 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5235
5236 2011-06-27 Tom Tromey <tromey@redhat.com>
5237
5238 * valops.c (find_overload_match): Call do_cleanups before early
5239 return.
5240 * top.c (execute_command): Call do_cleanups before early return.
5241 (command_loop): Likewise.
5242 * stack.c (backtrace_command): Make a null cleanup early. Don't
5243 conditionally call do_cleanups.
5244 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5245 TRY_CATCH.
5246 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5247 so cleanups are always run.
5248 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5249 * findcmd.c (parse_find_args): Call do_cleanups on early return
5250 path.
5251 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5252 Don't conditionally call do_cleanups.
5253 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5254 later.
5255
5256 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5257
5258 * MAINTAINERS (Write After Approval): Use default email address.
5259
5260 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5261
5262 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5263
5264 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5265
5266 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5267 saved_regs_mask and copied_regs_mask fields.
5268 (sparc_record_save_insn): New prototype.
5269 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5270 (sparc_record_save_insn): New function.
5271 (sparc_analyze_prologue): Add head comment. Recognize store insns
5272 of call-saved registers. Use OFFSET consistently. Recognize flat
5273 frames and cache their settings.
5274 (sparc32_skip_prologue): Handle flat frames.
5275 (sparc_frame_cache): Add frame_offset to the base address.
5276 (sparc32_frame_cache): Adjust to new frame description.
5277 (sparc32_frame_prev_register): Likewise.
5278 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5279 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5280 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5281 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5282 frame by calling sparc_record_save_insn.
5283 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5284 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5285 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5286
5287 2011-06-27 Tristan Gingold <gingold@adacore.com>
5288
5289 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5290 field by map_addr and map_len.
5291 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5292 (munmap_section_buffer): Likewise.
5293
5294 2011-06-24 Tom Tromey <tromey@redhat.com>
5295
5296 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5297 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5298 * python/python.c (gdbpy_parameter): Make 'arg' const.
5299 (execute_gdb_command): Likewise.
5300 (gdbpy_decode_line): Likewise. Copy it.
5301 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5302 (gdbpy_write): Make 'arg' const.
5303 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5304 const.
5305 (gdbpy_lookup_type): Likewise.
5306 * python/py-prettyprint.c (print_children): Make 'name' const.
5307 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5308 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5309 Py_ssize_t.
5310 * python/py-function.c (fnpy_init): Make 'name' const.
5311 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5312 (gdbpy_string_to_argv): Make 'input' const.
5313 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5314 it.
5315 * gdbtypes.h (lookup_typename): Update.
5316 * gdbtypes.c (lookup_typename): Make 'name' const.
5317 (lookup_struct): Likewise.
5318 (lookup_union): Likewise.
5319 (lookup_enum): Likewise.
5320
5321 2011-06-24 Tom Tromey <tromey@redhat.com>
5322
5323 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5324 gdb_thread_db.h. Move all common/ entries to be together.
5325 (TAGS): Don't depend on DEPFILES.
5326
5327 2011-06-23 Yao Qi <yao@codesourcery.com>
5328
5329 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5330 * remote.c (remote_start_remote): ... here.
5331 * monitor.c (monitor_open): ... here.
5332
5333 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5334
5335 * gdbtypes.c (append_composite_type_field_aligned): Fix
5336 calculation of bit position based on alignment.
5337
5338 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5339
5340 * breakpoint.c (bpstat_stop_status): Call the check_status
5341 breakpoint_ops method.
5342 (print_one_breakpoint_location): Also print the condition for Ada
5343 exception catchpoints.
5344 (allocate_bp_location): New, factored out from
5345 allocate_bp_location.
5346 (allocate_bp_location): Adjust. Call the owner breakpoint's
5347 allocate_location method, if there is one.
5348 (free_bp_location): Call the locations's dtor method, if there is
5349 one.
5350 (init_raw_breakpoint_without_location): New breakpoint_ops
5351 parameter. Use it.
5352 (set_raw_breakpoint_without_location): Adjust.
5353 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5354 (set_raw_breakpoint): Adjust.
5355 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5356 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5357 re_set and check_status methods.
5358 (init_catchpoint): Don't memset, initialize thread, addr_string
5359 and enable_state. Pass the ops down to init_raw_breakpoint.
5360 (install_catchpoint): Rename to ...
5361 (install_breakpoint): ... this, and make extern.
5362 (create_fork_vfork_event_catchpoint): Adjust.
5363 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5364 re_set and check_status methods.
5365 (create_syscall_event_catchpoint): Adjust.
5366 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5367 (masked_watchpoint_breakpoint_ops): Install NULL
5368 allocate_location, re_set and check_status methods.
5369 (catch_exec_command_1): Adjust.
5370 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5371 re_set and check_status methods.
5372 (create_ada_exception_breakpoint): Rename to ...
5373 (init_ada_exception_breakpoint): ... this. Add a struct
5374 breakpoint parameter, and delete the exp_string, cond_string and
5375 cond parameters. Use init_raw_breakpoint, and don't install or
5376 mention the breakpoint yet. Don't clear breakpoint fields that
5377 init_raw_breakpoint already clears.
5378 (re_set_breakpoint): Delete, split into ...
5379 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5380 functions.
5381 (breakpoint_re_set_one): Call the breakpoint's
5382 breakpoint_ops->re_set implementation, if there's one. Adjust.
5383 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5384 (struct bp_location_ops): New type.
5385 (struct bp_location): New field `ops'.
5386 (struct breakpoint_ops): New `allocate_location', `re_set' and
5387 `check_status' fields. Make `breakpoint_hit''s description match
5388 reality.
5389 (init_bp_location): Declare.
5390 (breakpoint_re_set_default): Declare.
5391 (create_ada_exception_breakpoint): Rename to ...
5392 (init_ada_exception_breakpoint): ... this. Add a struct
5393 breakpoint parameter, and delete the exp_string, cond_string and
5394 cond parameters.
5395 (install_breakpoint): Declare.
5396 * ada-lang.c: Include exceptions.h.
5397 <Ada exceptions description>: Update.
5398 (struct ada_catchpoint_location): New type.
5399 (ada_catchpoint_location_dtor): New function.
5400 (ada_catchpoint_location_ops): New global.
5401 (ada_catchpoint): New type.
5402 (create_excep_cond_exprs): New function.
5403 (dtor_exception, allocate_location_exception, re_set_exception)
5404 (should_stop_exception, check_status_exception): New functions.
5405 (print_one_exception, print_mention_exception)
5406 (print_recreate_exception): Adjust.
5407 (dtor_catch_exception, allocate_location_catch_exception)
5408 (re_set_catch_exception, check_status_catch_exception): New
5409 functions.
5410 (catch_exception_breakpoint_ops): Install them.
5411 (dtor_catch_exception_unhandled)
5412 (allocate_location_catch_exception_unhandled)
5413 (re_set_catch_exception_unhandled)
5414 (check_status_catch_exception_unhandled): New functions.
5415 (catch_exception_unhandled_breakpoint_ops): Install them.
5416 (dtor_catch_assert, allocate_location_catch_assert)
5417 (re_set_catch_assert, check_status_catch_assert): New functions.
5418 (catch_assert_breakpoint_ops): Install them.
5419 (ada_exception_catchpoint_p): Delete.
5420 (catch_ada_exception_command_split)
5421 (ada_exception_catchpoint_cond_string): Rename exp_string
5422 parameter to excep_string. Adjust.
5423 (ada_parse_catchpoint_condition): Delete.
5424 (ada_exception_sal): Rename the exp_string parameter to
5425 excep_string. Delete the cond_string and cond parameters.
5426 Adjust.
5427 (ada_decode_exception_location): Rename the exp_string parameter
5428 to excep_string. Delete the cond_string and cond parameters.
5429 Adjust.
5430 (create_ada_exception_catchpoint): New function.
5431 (catch_ada_exception_command, ada_decode_assert_location)
5432 (catch_assert_command): Adjust.
5433 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5434
5435 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5436
5437 * ada-lang.c: Include arch-utils.h.
5438 (ada_decode_exception_location): Make static.
5439 (catch_ada_exception_command): Moved here from breakpoint.c.
5440 (ada_decode_assert_location): Make static.
5441 (catch_assert_command): Moved here from breakpoint.c.
5442 (_initialize_ada_lang): Install the exception and assert
5443 catchpoint commands here.
5444 * ada-lang.h (ada_decode_exception_location)
5445 (ada_decode_assert_location): Delete declarations.
5446 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5447 breakpoint.h.
5448 (create_ada_exception_breakpoint): Make extern.
5449 (catch_ada_exception_command, catch_assert_command): Moved to
5450 ada-lang.c.
5451 (add_catch_command): Make extern.
5452 (_initilize_breakpoint): Don't install the exception and assert
5453 catchpoint commands here.
5454 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5455 breakpoint.c
5456 (add_catch_command, create_ada_exception_breakpoint): Declare.
5457
5458 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5459
5460 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5461 the breakpoint to the breakpoint chain here.
5462 (set_raw_breakpoint_without_location): Add the breakpoint to the
5463 breakpoint chain here.
5464 (init_raw_breakpoint): Adjust comments.
5465 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5466 here.
5467 (init_catchpoint): Don't set the catchpoint's breakpoint number
5468 here.
5469 (install_catchpoint): New function.
5470 (create_fork_vfork_event_catchpoint)
5471 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5472 use install_catchpoint.
5473
5474 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5475
5476 * breakpoint.c (create_catchpoint_without_mention)
5477 (create_catchpoint): Delete.
5478
5479 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5480
5481 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5482 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5483 reference to exec_pathname.
5484 (struct exec_catchpoint): New type.
5485 (dtor_catch_exec): New function.
5486 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5487 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5488 (catch_exec_command_1): Adjust to use init_catchpoint.
5489 (delete_breakpoint): Remove reference to exec_pathname.
5490
5491 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5492
5493 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5494 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5495 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5496 reference to syscalls_to_be_caught.
5497 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5498 NULL `dtor'.
5499 (struct syscall_catchpoint): New type.
5500 (dtor_catch_syscall): New function.
5501 (insert_catch_syscall, remove_catch_syscall)
5502 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5503 (print_recreate_catch_syscall): Adjust.
5504 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5505 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5506 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5507 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5508 (masked_watchpoint_breakpoint_ops)
5509 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5510 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5511 there is one. Remove references to syscalls_to_be_caught.
5512 (catching_syscall_number): Adjust.
5513 * ada-lang.c (catch_exception_breakpoint_ops)
5514 (catch_exception_unhandled_breakpoint_ops)
5515 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5516
5517 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5518
5519 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5520 field.
5521 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5522 reference to forked_inferior_pid.
5523 (struct fork_catchpoint): New type.
5524 (breakpoint_hit_catch_fork, print_it_catch_fork)
5525 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5526 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5527 (create_fork_vfork_event_catchpoint): Adjust to use
5528 init_catchpoint.
5529
5530 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5531
5532 * breakpoint.c (add_to_breakpoint_chain)
5533 (init_raw_breakpoint_without_location): New functions, factored
5534 out from ...
5535 (set_raw_breakpoint_without_location): ... this one.
5536 (init_raw_breakpoint): New function, factored out from
5537 set_raw_breakpoint and adjusted to use
5538 init_raw_breakpoint_without_location.
5539 (set_raw_breakpoint): Adjust.
5540 (init_catchpoint): New function, factored out from
5541 create_catchpoint_without_mention and adjusted to use
5542 init_raw_breakpoint.
5543 (create_catchpoint_without_mention): Adjust.
5544
5545 2011-06-22 Tom Tromey <tromey@redhat.com>
5546
5547 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5548 argument of 0 specially.
5549
5550 2011-06-22 Yao Qi <yao@codesourcery.com>
5551
5552 * infrun.c (handle_inferior_event): Remove write-only local variable
5553 `sw_single_step_trap_p'.
5554
5555 2011-06-20 Tom Tromey <tromey@redhat.com>
5556
5557 * symtab.c (lookup_language_this): End loop if block is NULL.
5558
5559 2011-06-17 Tom Tromey <tromey@redhat.com>
5560
5561 * valops.c (value_of_this): Use lookup_language_this.
5562 * symtab.h (lookup_language_this): Declare.
5563 * symtab.c (lookup_language_this): New function.
5564 (lookup_symbol_aux): Use lookup_language_this.
5565 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5566
5567 2011-06-17 Tom Tromey <tromey@redhat.com>
5568
5569 * value.h (value_of_this): Update.
5570 (value_of_local): Remove.
5571 * valops.c (value_of_this): Rename from value_of_local. Change
5572 parameters.
5573 * p-exp.y (exp): Update.
5574 (variable): Likewise.
5575 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5576
5577 2011-06-17 Tom Tromey <tromey@redhat.com>
5578
5579 * valops.c (value_of_local): Complain if NAME is NULL.
5580 * std-operator.def (OP_OBJC_SELF): Remove.
5581 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5582 * objc-exp.y (name_not_typename): Use OP_THIS.
5583 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5584 name for "this".
5585 <OP_OBJC_SELF>: Remove.
5586 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5587
5588 2011-06-16 Tristan Gingold <gingold@adacore.com>
5589
5590 * python/py-events.h (gdb_py_events): Make it extern.
5591 * python/py-evtregistry.c (gdb_py_events): Declare.
5592
5593 2011-06-16 Hui Zhu <teawater@gmail.com>
5594
5595 * remote.c (remote_trace_set_readonly_regions): Add check for
5596 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5597 output warning.
5598
5599 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5600
5601 * arm-linux-tdep.c: Include "auxv.h".
5602 (AT_HWCAP): Define.
5603 (ARM_LINUX_SIZEOF_VFP): Define.
5604 (arm_linux_supply_vfp): New function.
5605 (arm_linux_collect_vfp): Likewise.
5606 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5607 (arm_linux_fpa_regset_sections): New variable.
5608 (arm_linux_vfp_regset_sections): Likewise.
5609 (arm_linux_core_read_description): New function.
5610 (arm_linux_init_abi): Install arm_linux_core_read_description and
5611 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5612 appropriate for the architecture.
5613 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5614 (tdesc_arm_with_m): Declare.
5615 (tdesc_arm_with_iwmmxt): Likewise.
5616 (tdesc_arm_with_vfpv2): Likewise.
5617 (tdesc_arm_with_vfpv3): Likewise.
5618 (tdesc_arm_with_neon): Likewise.
5619 * arm-linux-nat.c: Move features/*.c includes ...
5620 * arm-tdep.c: ... here.
5621 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5622 target description data structures ...
5623 * arm-tdep.c (_initialize_arm_tdep): ... here.
5624 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5625 HWCAP_VFPv3D16): Move definitions ...
5626 * arm-linux-tdep.h: ... here.
5627
5628 2011-06-15 Hui Zhu <teawater@gmail.com>
5629
5630 * remote.c (remote_trace_set_readonly_regions): Add a check for
5631 target_buf_size.
5632
5633 2011-06-14 Tom Tromey <tromey@redhat.com>
5634
5635 * coffread.c (coffread_objfile): Rename from current_objfile.
5636 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5637 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5638
5639 2011-06-14 Tom Tromey <tromey@redhat.com>
5640
5641 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5642 (class_symtab): Remove.
5643 (jv_dynamics_progspace_key): New global.
5644 (jv_per_objfile_free): Reset program space data. Update assert.
5645 Don't clear globals.
5646 (get_dynamics_objfile): Use and set program space data.
5647 (get_java_class_symtab): Use get_dynamics_objfile.
5648 (add_class_symbol): Likewise.
5649 (java_link_class_type): Likewise.
5650 (java_object_type, jv_clear_object_type, set_java_object_type):
5651 Remove.
5652 (get_java_object_type): Update. Don't cache result.
5653 (is_object_type): Don't call set_java_object_type.
5654 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5655 initialize jv_dynamics_progspace_key.
5656
5657 2011-06-14 Tom Tromey <tromey@redhat.com>
5658
5659 * symtab.h (current_objfile): Don't declare.
5660 * objfiles.h (current_objfile): Don't declare.
5661 * objfiles.c (current_objfile): Remove.
5662 * mdebugread.c (current_objfile): New file-scope global.
5663 * dbxread.c (current_objfile): New file-scope global.
5664 * coffread.c (current_objfile): New file-scope global.
5665
5666 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5667
5668 * top.h (line): Rename to ...
5669 (saved_command_line): ... this.
5670 (linesize): Rename to ...
5671 (saved_command_line_size): ... this.
5672 * top.c (line): Rename to ...
5673 (saved_command_line): ... this.
5674 (linesize): Rename to ...
5675 (saved_command_line_size): ... this.
5676 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5677 * event-top.c (command_line_handler): Adjust.
5678 * main.c (captured_main): Adjust.
5679
5680 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5681
5682 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5683 get_frame_func instead of get_frame_pc to determine the code
5684 address used to construct the frame ID.
5685 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5686 (i386_epilogue_frame_this_id): Likewise.
5687 (i386_epilogue_frame_prev_register): New function.
5688 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5689 (i386_stack_tramp_frame_sniffer): Fix coding style.
5690 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5691 (i386_gdbarch_init): Fix comments.
5692
5693 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5694
5695 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5696 instruction when walking back through the instruction stream.
5697
5698 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5699
5700 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5701 fullname parameters order.
5702
5703 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5704
5705 Code cleanup.
5706 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5707 for fun.
5708 * psymtab.c (map_symbol_filenames_psymtab)
5709 (map_partial_symbol_filenames): Likewise.
5710 * psymtab.h: Include symfile.h.
5711 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5712 * symfile.h (symbol_filename_ftype): New.
5713 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5714 map_symbol_filenames, clarify more the naming in comment.
5715
5716 2011-06-07 Doug Evans <dje@google.com>
5717
5718 * cc-with-index.sh: Fix typos in comment.
5719 Look for ../../gdb, for fullname.exp.
5720
5721 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5722 Pedro Alves <pedro@codesourcery.com>
5723
5724 * cli/cli-cmds.c (shell_escape): Use waitpid.
5725 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5726
5727 2011-06-07 Tristan Gingold <gingold@adacore.com>
5728
5729 * xcoffread.c (dwarf2_xcoff_names): New variable.
5730 (aix_process_linenos): Add a guard.
5731 (xcoff_symfile_finish): Free dwarf2.
5732 (xcoff_initial_scan): Add dwarf2 support.
5733
5734 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5735
5736 * infcall.c (run_inferior_call): Don't mask async. Instead force
5737 a synchronous wait, if the target can async.
5738
5739 * target.h (struct target_ops): Delete to_async_mask.
5740 (target_async_mask): Delete.
5741 * target.c (update_current_target): Delete references to to_async_mask.
5742 * linux-nat.c (linux_nat_async_mask_value): Delete.
5743 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5744 to linux_nat_async_mask_value.
5745 (linux_nat_async_mask): Delete.
5746 (linux_nat_async, linux_nat_close): Remove references to
5747 linux_nat_async_mask_value.
5748 * record.c (record_async_mask_value): Delete.
5749 (record_async): Remove references to record_async_mask_value.
5750 (record_async_mask): Delete.
5751 (record_can_async_p, record_is_async_p): Remove references to
5752 record_async_mask_value.
5753 (init_record_ops, init_record_core_ops): Remove references to
5754 record_async_mask.
5755 * remote.c (remote_async_mask_value): Delete.
5756 (init_remote_ops): Remove reference to remote_async_mask.
5757 (remote_can_async_p, remote_is_async_p): Remove references to
5758 remote_async_mask_value.
5759 (remote_async): Remove references to remote_async_mask_value.
5760 (remote_async_mask): Delete.
5761
5762 * infrun.c (fetch_inferior_event): Don't claim registers changed
5763 if the current thread is already not executing.
5764
5765 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5766
5767 From Stephen Kitt <steve@sk2.org>
5768 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5769 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5770
5771 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5772
5773 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5774 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5775
5776 2011-06-03 Tom Tromey <tromey@redhat.com>
5777
5778 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5779 code fields.
5780 * python/py-exitedevent.c (create_exited_event_object): Change
5781 type of 'exit_code'. Optionally add exit_code attribute.
5782 (emit_exited_event): Change type of 'exit_code'.
5783 * python/py-event.h (emit_exited_event): Update.
5784 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5785 * infrun.c (handle_inferior_event): Set exit code fields on
5786 inferior.
5787 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5788 fields.
5789 * inferior.c (exit_inferior_1): Initialize new fields.
5790
5791 2011-06-03 Tom Tromey <tromey@redhat.com>
5792
5793 * dwarf2expr.c (get_signed_type): New function.
5794 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5795
5796 2011-06-02 Keith Seitz <keiths@redhat.com>
5797
5798 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5799
5800 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5801
5802 * top.h (simplified_command_loop): Delete declaration.
5803
5804 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5805
5806 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5807 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5808
5809 2011-06-01 Yao Qi <yao@codesourcery.com>
5810
5811 * objfiles.h (obj_section_addr): Update reference to objfile from
5812 `abfd' to `obfd'.
5813 (obj_section_endaddr): Likewise.
5814
5815 2011-06-01 Daniel Jacobowitz <drow@false.org>
5816
5817 * MAINTAINERS: Update my email address and affiliation. Also
5818 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5819
5820 2010-05-31 Keith Seitz <keiths@redhat.com>
5821
5822 PR c++/12750
5823 * linespec.c (get_search_block): New function.
5824 (find_methods): Add FILE_SYMTATB parameter and use it and
5825 get_search_block to pass an appropriate block to
5826 lookup_symbol_in_namespace.
5827 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5828 Check if *ARGPTR starts with a filename first.
5829 If it does, call locate_first_half again to locate the next
5830 "first half" of the linespec.
5831 Pass FILE_SYMTATB to decode_objc and decode_compound.
5832 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5833 (locate_first_half): Stop on the first colon seen.
5834 (decode_compound): Add FILE_SYMTAB parameter.
5835 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5836 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5837 get_search_block with lookup_symbol.
5838 (find_method): Add FILE_SYMTAB parameter and pass it to
5839 find_methods.
5840 (decode_objc): Use get_search_block.
5841
5842 2010-05-31 Keith Seitz <keiths@redhat.com>
5843
5844 PR symtab/12704
5845 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5846 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5847 and CP_ANONYMOUS_NAMESPACE_LEN.
5848 (cp_is_anonymous): Likewise.
5849 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5850 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5851 * dwarf2read.c (namespace_name): Likewise.
5852 (fixup_partial_die): Likewise.
5853 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5854 seen in the input, keep it.
5855
5856 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5857
5858 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5859 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5860 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5861 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5862 * remote.c (_initialize_remote): Register
5863 async_remote_interrupt_twice directly as
5864 sigint_remote_twice_token event.
5865
5866 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5867
5868 * target.h (enum inferior_event_type): Delete INF_ERROR.
5869 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5870
5871 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5872
5873 * interps.c (interp_set): Don't cancel continuations.
5874
5875 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5876
5877 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5878
5879 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5880
5881 * continuations.h (continuation_ftype): Add `err' parameter.
5882 Document parameters.
5883 (do_all_continuations, do_all_continuations_thread)
5884 (do_all_intermediate_continuations)
5885 (do_all_intermediate_continuations_thread)
5886 (do_all_inferior_continuations): Add `err' parameter.
5887 * continuations.c (do_my_continuations_1, do_my_continuations)
5888 (do_all_inferior_continuations, do_all_continuations_ptid)
5889 (do_all_continuations_thread_callback)
5890 (do_all_continuations_thread, do_all_continuations)
5891 (do_all_intermediate_continuations_thread_callback)
5892 (do_all_intermediate_continuations_thread)
5893 (do_all_intermediate_continuations): Add `err' parameter, and pass
5894 it down all the way to the continuations proper.
5895 * inf-loop.c (inferior_event_handler): If fetching an inferior
5896 event throws an error, don't pop the target, and still call the
5897 continuations, but with `err' set. Adjust all other continuation
5898 calls.
5899 * breakpoint.c (until_break_command_continuation): Add `err'
5900 parameter.
5901 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5902 issue another step if `err' is set.
5903 (struct until_next_continuation_args): New.
5904 (until_next_continuation): Add `err' parameter. Adjust.
5905 (until_next_command): Adjust.
5906 (struct finish_command_continuation_args): Add `thread' field.
5907 (finish_command_continuation): Add `err' parameter. Handle it.
5908 (finish_forward): Adjust.
5909 (attach_command_continuation): Add `err' parameter. Handle it.
5910 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5911 cancel the continuations.
5912 * interps.c (interp_set): Adjust to cancel the continuations.
5913 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5914 continuations rather than discarding.
5915 (free_thread): Don't clear thread inferior resources here.
5916 (delete_thread_1): Do it here instead. And do it before removing
5917 the thread from the threads list. Tag the thread as exited before
5918 clearing thread inferior resources.
5919
5920 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5921
5922 * infcall.c (call_function_by_hand): Rephrase error message.
5923
5924 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5925
5926 * defs.h (struct thread_info, struct inferior): Delete forward
5927 declarations.
5928 * breakpoint.h (struct thread_info): New forward declaration.
5929 * observer.sh (struct inferior): New forward declaration.
5930 * python/python-internal.h (struct inferior): New forward
5931 declaration.
5932
5933 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5934
5935 * defs.h (struct continuation, continuation_ftype)
5936 (continuation_free_arg_ftype, add_continuation)
5937 (do_all_continuations, do_all_continuations_thread)
5938 (discard_all_continuations, discard_all_continuations_thread)
5939 (add_intermediate_continuation, do_all_intermediate_continuations)
5940 (do_all_intermediate_continuations_thread)
5941 (discard_all_intermediate_continuations)
5942 (discard_all_intermediate_continuations_thread)
5943 (add_inferior_continuation, do_all_inferior_continuations)
5944 (discard_all_inferior_continuations): Move to ...
5945 * continuations.h: ... this new file.
5946 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5947 infcmd.c, inferior.c, infrun.c, interps.c: Include
5948 continuations.h.
5949
5950 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5951 Doug Evans <dje@google.com>
5952
5953 Fix PR 10970, PR 12702.
5954 * linux-nat.c (linux_lwp_is_zombie): New function.
5955 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5956 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5957
5958 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5959
5960 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5961 typedefs.
5962 (add_continuation, add_intermediate_continuation)
5963 (add_inferior_continuation): Use them.
5964 * continuations.c (struct continuation): Use them.
5965 (make_continuation_ftype): Delete.
5966 (make_continuation, add_inferior_continuation, add_continuation)
5967 (add_intermediate_continuation): Use continuation_ftype and
5968 continuation_free_arg_ftype. Rename parameters to shorter names.
5969
5970 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5971
5972 * continuations.c (make_continuation): Make it return void.
5973 (do_my_continuations): Rename to ...
5974 (do_my_continuations_1): ... this. Remove old_chain parameter and
5975 adjust.
5976 (do_my_continuations): New.
5977 (discard_my_continuations): Rename to ...
5978 (discard_my_continuations_1): ... this. Remove old_chain
5979 parameter and adjust.
5980 (discard_my_continuations): New.
5981 (add_inferior_continuation): Simplify.
5982 (do_all_inferior_continuations): Reimplement on top
5983 do_my_continuations.
5984 (discard_all_inferior_continuations): Simplify.
5985 (add_continuation): Simplify.
5986 (do_all_continuations_ptid): Simplify.
5987 (discard_all_continuations_thread_callback): Simplify.
5988 (add_intermediate_continuation): Simplify.
5989 (discard_all_intermediate_continuations_thread_callback):
5990 Simplify.
5991
5992 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5993
5994 * utils.c (struct continuation, add_continuation)
5995 (add_inferior_continuation)
5996 (do_all_inferior_continuations, discard_all_inferior_continuations)
5997 (restore_thread_cleanup, do_all_continuations_ptid)
5998 (do_all_continuations_thread_callback)
5999 (do_all_continuations_thread, do_all_continuations)
6000 (discard_all_continuations_thread_callback)
6001 (discard_all_continuations_thread, discard_all_continuations)
6002 (add_intermediate_continuation)
6003 (do_all_intermediate_continuations_thread_callback)
6004 (do_all_intermediate_continuations_thread)
6005 (do_all_intermediate_continuations)
6006 (discard_all_intermediate_continuations_thread_callback)
6007 (discard_all_intermediate_continuations_thread)
6008 (discard_all_intermediate_continuations): Move to ...
6009 * continuations.c: ... this new file, and adjust to no longer
6010 implement continuations on top of cleanups.
6011 * Makefile.in (SFILES): Add continuations.c.
6012 (COMMON_OBS): Add continuations.o.
6013
6014 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6015
6016 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6017 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6018 Internal error on invalid values.
6019 * reverse.c: Don't handle EXEC_ERROR.
6020 * mi/mi-main.c: Don't handle EXEC_ERROR.
6021
6022 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6023
6024 * record.c: Include event-loop.h, inf-loop.h.
6025 (record_beneath_to_async): New global.
6026 (tmp_to_async): New global.
6027 (record_async_inferior_event_token): New global.
6028 (record_open_1): Don't error out if async is enabled.
6029 (record_open): Handle to_async. Create an async event source in
6030 the event loop.
6031 (record_close): Delete the async event source.
6032 (record_resumed): New global.
6033 (record_execution_dir): New global.
6034 (record_resume, record_core_resume): Set them. Register the
6035 target on the event loop.
6036 (record_wait): Rename to ...
6037 (record_wait_1): ... this. Add more debug output. Handle
6038 TARGET_WNOHANG, and the target beneath returning
6039 TARGET_WAITKIND_IGNORE.
6040 (record_wait): Reimplement on top of record_wait_1.
6041 (record_async_mask_value): New global.
6042 (record_async, record_async_mask, record_can_async_p)
6043 (record_is_async_p, record_execution_direction): New functions.
6044 (init_record_ops, init_record_core_ops): Install new methods.
6045 * infrun.c (fetch_inferior_event): Temporarily switch the global
6046 execution direction to the direction the target was going.
6047 (execution_direction): Change type to int.
6048 * target.c (default_execution_direction): New function.
6049 (update_current_target): Inherit and de_fault
6050 to_execution_direction.
6051 * target.h (struct target_ops) <to_execution_direction>: New
6052 field.
6053 (target_execution_direction): New macro.
6054 * inferior.h (execution_direction): Change type to int.
6055
6056 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6057
6058 * infcall.c (call_function_by_hand): Don't allow calling functions
6059 in reverse execution mode.
6060
6061 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6062
6063 * infcmd.c (finish_command): Allow async finish in reverse.
6064
6065 2011-05-26 Yao Qi <yao@codesourcery.com>
6066
6067 * gdb_thread_db.h: Delete. Move to ...
6068 * common/gdb_thread_db.h: ... here.
6069
6070 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6071
6072 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6073 function's entry point instead of a manually managed momentary
6074 breakpoint, and only ever issue one proceed call.
6075 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6076 doing a reverse-finish, switch to stepi mode, to do another step.
6077 (insert_step_resume_breakpoint_at_sal): Make public.
6078 (normal_stop): No need to save function value return registers if
6079 going reverse.
6080 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6081
6082 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6083
6084 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6085 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6086 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6087 at the end.
6088 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6089 step-resume breakpoints.
6090 (print_it_typical): Handle bp_hp_step_resume.
6091 (bpstat_what): Ditto.
6092 (bptype_string): Ditto.
6093 (print_one_breakpoint_location): Ditto.
6094 (allocate_bp_location): Ditto.
6095 (mention): Ditto.
6096 (breakpoint_re_set_one): Ditto.
6097 * infrun.c (handle_inferior_event): Adjust. Split
6098 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6099 BPSTAT_WHAT_HP_STEP_RESUME.
6100 (insert_step_resume_breakpoint_at_sal): Rename to ...
6101 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6102 parameter. Handle it.
6103 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6104 insert_step_resume_breakpoint_at_sal_1.
6105 (insert_step_resume_breakpoint_at_frame): Rename to ...
6106 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6107 set a high-priority step-resume breakpoint.
6108 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6109 (insert_step_resume_breakpoint_at_caller): Ditto.
6110
6111 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6112
6113 * breakpoint.c (iterate_over_related_breakpoints): New.
6114 (do_map_delete_breakpoint): New.
6115 (delete_command): Pass do_map_delete_breakpoint to
6116 map_breakpoint_numbers.
6117 (do_disable_breakpoint): New.
6118 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6119 breakpoints.
6120 (do_enable_breakpoint): Rename to ...
6121 (enable_breakpoint_disp): ... this.
6122 (enable_breakpoint): Adjust.
6123 (do_enable_breakpoint): New.
6124 (enable_once_breakpoint): Delete.
6125 (do_map_enable_breakpoint): New.
6126 (do_map_enable_once_breakpoint): New.
6127 (enable_once_command, enable_delete_command)
6128 (delete_trace_command): Iterate over the breakpoint's related
6129 breakpoints.
6130
6131 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6132
6133 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6134 for ALPHA_ZERO_REGNUM.
6135 (alpha_supply_int_regs): Explicitly supply zero as the value for
6136 ALPHA_ZERO_REGNUM in the register cache.
6137 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6138
6139 2011-05-26 Yao Qi <yao@codesourcery.com>
6140
6141 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6142
6143 2011-05-26 Tristan Gingold <gingold@adacore.com>
6144
6145 * symfile.h (struct dwarf2_section_names): New type.
6146 (struct dwarf2_debug_sections): New type.
6147 (dwarf2_has_info): Add parameter.
6148 * dwarf2read.c (dwarf2_elf_names): New variable.
6149 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6150 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6151 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6152 (dwarf2_has_info): Add names parameter. Pass names
6153 to dwarf2_locate_sections.
6154 (section_is_p): Rewrite using the names parameter.
6155 (dwarf2_locate_sections): Use section names from the names parameter.
6156 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6157 * elfread.c (read_psyms): Ditto.
6158 * machoread.c (macho_symfile_read): Ditto.
6159
6160 2011-05-25 Andreas Schwab <schwab@redhat.com>
6161
6162 PR gdb/8677
6163 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6164
6165 2011-05-24 Keith Seitz <keiths@redhat.com>
6166
6167 PR breakpoint/12803
6168 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6169 (decode_compound): Unconditionally call keep_name_info.
6170
6171 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6172
6173 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6174 scope, clear its command list.
6175 (map_breakpoint_numbers): Don't walk the related breakpoints list
6176 of each breakpoint.
6177
6178 2011-05-24 Tom Tromey <tromey@redhat.com>
6179
6180 * MAINTAINERS: Move Jim Blandy to past maintainers.
6181
6182 2011-05-24 Tristan Gingold <gingold@adacore.com>
6183
6184 * symfile.h (enum dwarf2_section_enum): New type.
6185 (dwarf2_get_section_info): New prototype.
6186 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6187 section_name by sect. Use a switch to select the info.
6188 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6189 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6190
6191 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6192
6193 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6194 shared library event breakpoint if there's no execution.
6195
6196 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6197
6198 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6199 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6200
6201 2011-05-23 Tom Tromey <tromey@redhat.com>
6202
6203 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6204 NULL.
6205
6206 2011-05-23 Doug Evans <dje@google.com>
6207
6208 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6209 entry for RuntimeError to doc string.
6210
6211 2011-05-23 Jerome Guitton <guitton@adacore.com>
6212
6213 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6214 sequence for probing loops.
6215
6216 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6217
6218 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6219 comment.
6220
6221 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6222
6223 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6224 zero as the value for %g0 in the register cache.
6225 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6226 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6227
6228 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6229
6230 * infrun.c (proceed): Set previous_inferior_ptid here.
6231 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6232 inferior_ptid, not null_ptid.
6233 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6234 (fetch_inferior_event): Nor here.
6235
6236 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6237
6238 * inf-loop.c (inferior_event_handler): Only output a message if
6239 verbose.
6240
6241 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6242
6243 * MAINTAINERS: Update my e-mail address.
6244
6245 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6246
6247 * infrun.c (proceed): Switch the inferior event loop to
6248 INF_EXEC_COMPLETE if the target refused to resume from a
6249 vfork/fork.
6250
6251 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6252
6253 * infcmd.c: Include "inf-loop.h".
6254 (step_once): When stepping into an inline subroutine, pretend the
6255 target has run. If the target can async, switch the inferior
6256 event loop to INF_EXEC_COMPLETE.
6257 * inferior.h (user_visible_resume_ptid): Declare.
6258 * infrun.c (user_visible_resume_ptid): New function, factored out
6259 from `resume'.
6260 (resume): Use it.
6261 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6262 that the current thread is running. Merge async and sync
6263 branches.
6264
6265 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6266
6267 * infcmd.c (step_1): Simplify synchronous case.
6268
6269 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6270
6271 * tracepoint.c: Include exceptions.h.
6272 (TFILE_PID): Move higher in file.
6273 (tfile_open): Delay pushing the tfile target until we're assured
6274 the tfile header is present in the file. Wrap reading the initial
6275 newline-terminated lines in TRY_CATCH. Pop the target if the
6276 initial setup failed. Add the tfile's thread immediately
6277 aftwards, before any non-essential setup. Don't skip
6278 post_create_inferior if there are no traceframes present in the
6279 file.
6280 (tfile_close): Remove redundant check for null before xfree call.
6281 (tfile_thread_alive): New function.
6282 (init_tfile_ops): Register it as to_thread_alive callback.
6283
6284 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6285
6286 * tracepoint.c (tfile_open): Delete #if 0'd code.
6287
6288 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6289
6290 Fix -readnow for -gdwarf-4 unused type units.
6291 * dwarf2read.c (struct signatured_type): Remove the field offset.
6292 (create_signatured_type_table_from_index): Remove its initialization.
6293 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6294 instead. Add a complaint call.
6295 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6296 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6297 (lookup_signatured_type_at_offset, read_signatured_type)
6298 (write_one_signatured_type): Update the field for per_cu.
6299
6300 2011-05-19 Tom Tromey <tromey@redhat.com>
6301
6302 * python/py-inferior.c (python_inferior_exit): Use
6303 target_gdbarch.
6304 (python_on_resume): Likewise.
6305
6306 2011-05-19 Matt Rice <ratmice@gmail.com>
6307
6308 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6309
6310 2011-05-19 Hui Zhu <teawater@gmail.com>
6311
6312 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6313
6314 2011-05-19 Hui Zhu <teawater@gmail.com>
6315
6316 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6317
6318 2011-05-18 Tom Tromey <tromey@redhat.com>
6319
6320 * dwarf2read.c (dwarf2_add_field): Constify.
6321 * value.c (value_static_field): Constify.
6322 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6323 Now const.
6324 * ax-gdb.c (gen_static_field): Constify
6325
6326 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * linux-nat.c (kill_callback): Use SIGKILL first.
6329
6330 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6331
6332 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6333
6334 2011-05-18 Tom Tromey <tromey@redhat.com>
6335
6336 * value.c (value_fn_field): Constify.
6337 * symtab.c (gdb_mangle_name): Constify.
6338 * stabsread.c (update_method_name_from_physname): Make 'physname'
6339 argument const.
6340 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6341 const. Use explicit fputc_filtered loop.
6342 (pascal_type_print_base): Constify.
6343 * p-lang.h (pascal_type_print_method_args): Update.
6344 * linespec.c (add_matching_methods): Constify.
6345 (add_constructors): Likewise.
6346 * jv-typeprint.c (java_type_print_base): Constify.
6347 * gdbtypes.h (struct cplus_struct_type)
6348 <fn_fieldlist.fn_field.physname>: Now const.
6349 * dwarf2read.c (compute_delayed_physnames): Constify.
6350 (dwarf2_add_member_fn): Likewise.
6351 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6352
6353 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6354
6355 * infrun.c (resume): Mention which is the current thread, and its
6356 current PC in debug output.
6357 (prepare_to_proceed): Mention the thread switching in debug
6358 output.
6359
6360 2011-05-18 Tom Tromey <tromey@redhat.com>
6361
6362 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6363 path check. Use xmalloc and cleanups.
6364 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6365
6366 2011-05-17 Tom Tromey <tromey@redhat.com>
6367
6368 * cp-valprint.c (cp_print_value_fields): Catch errors from
6369 value_static_field.
6370
6371 2011-05-17 Tom Tromey <tromey@redhat.com>
6372
6373 * dwarf2read.c (dwarf2_get_die_type): Call
6374 get_die_type_at_offset.
6375 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6376 get_base_type function.
6377
6378 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6379
6380 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6381 trap_expected.
6382
6383 2011-05-16 Doug Evans <dje@google.com>
6384
6385 * python/py-auto-load.c (source_section_scripts): Mention objfile
6386 name in warning.
6387
6388 2011-05-15 Doug Evans <dje@google.com>
6389
6390 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6391 (try_thread_db_load_from_pdir): Call it. If unable to find
6392 libthread_db in directory of libpthread, see if we're looking at
6393 the separate-debug-info copy.
6394
6395 * python/py-autoload.c (print_script): Print "Missing" instead of
6396 "No" for missing scripts.
6397 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6398
6399 2011-05-13 Doug Evans <dje@google.com>
6400
6401 * ui-file.c (stdio_file_write_async_safe): Add comment.
6402
6403 2011-05-14 Hui Zhu <teawater@gmail.com>
6404
6405 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6406
6407 2011-05-13 Doug Evans <dje@google.com>
6408
6409 Support $pdir and $sdir in libthread-db-search-path.
6410 * NEWS: Mention $sdir,$pdir.
6411 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6412 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6413 (try_thread_db_load_from_sdir): New function.
6414 (try_thread_db_load_from_dir): New function.
6415 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6416 system directories if search of libthread-db-search-path fails,
6417 that is now done via $sdir.
6418 (has_libpthread): New function.
6419 (thread_db_load): Remove search for libthread_db in directory of
6420 libpthread, that is now done via $pdir.
6421
6422 * NEWS: Mention "info auto-load-scripts".
6423 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6424 script_not_found_warning_printed.
6425 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6426 all callers updated. Initialize script_not_found_warning_printed.
6427 (get_auto_load_pspace_data_for_loading): New function.
6428 (maybe_add_script): New function.
6429 (source_section_scripts): Simplify. Only print one warning regardless
6430 of the number of auto-load scripts not found.
6431 (clear_section_scripts): Clear script_not_found_warning_printed.
6432 (auto_load_objfile_script): Record script in hash table.
6433 (count_matching_scripts): New function.
6434 (maybe_print_script): Renamed from maybe_print_section_script, all
6435 callers updated. Rewrite to use ui_out_*.
6436 (info_auto_load_scripts): Renamed from
6437 maintenance_print_section_scripts, all callers updated.
6438 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6439 renamed as "info auto-load-scripts".
6440
6441 2011-05-13 Tom Tromey <tromey@redhat.com>
6442
6443 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6444 (read_sleb128): Likewise.
6445
6446 2011-05-13 Tom Tromey <tromey@redhat.com>
6447
6448 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6449 offset display.
6450
6451 2011-05-13 Doug Evans <dje@google.com>
6452
6453 * linux-nat.c (debug_linux_nat_async): Delete.
6454 Replace all references to use debug_linux_nat instead.
6455 (show_debug_linux_nat_async): Delete.
6456 (sigchld_handler): Call ui_file_write_async_safe instead of
6457 fprintf_unfiltered.
6458 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6459 * ui-file.c (struct ui_file): New member to_write_async_safe.
6460 (null_file_write_async_safe): New function.
6461 (ui_file_write_async_safe): New function.
6462 (set_ui_file_write_async_safe): New function.
6463 (ui_file_new): Initialize to_write_async_safe.
6464 (stdio_file_write_async_safe): New function.
6465 (struct stdio_file): New member fd.
6466 (stdio_file_new): Initialize to_write_async_safe, fd.
6467 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6468 fileno.
6469 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6470 (set_ui_file_write_async_safe): Declare.
6471 (ui_file_write_async_safe): Declare.
6472
6473 2011-05-13 Tom Tromey <tromey@redhat.com>
6474
6475 * utils.c (do_value_free): New function.
6476 (make_cleanup_value_free): Likewise.
6477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6478 freeing correctly.
6479 (dwarf2_loc_desc_needs_frame): Call
6480 make_cleanup_value_free_to_mark.
6481 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6482 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6483 value_free_to_mark.
6484 (new_dwarf_expr_context): Don't call value_mark.
6485 * dwarf2-frame.c (execute_stack_op): Call
6486 make_cleanup_value_free_to_mark.
6487 * defs.h (make_cleanup_value_free): Declare.
6488
6489 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6490
6491 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6492 prepare_execute_command.
6493 * top.c (prepare_execute_command): Return cleanup.
6494 (execute_command): Use cleanup from prepare_execute_command.
6495 * top.h (prepare_execute_command): Change prototype to return
6496 cleanup.
6497 * defs.h (struct value): Add opaque declaration.
6498 (make_cleanup_value_free_to_mark): Add prototype.
6499 * utils.c (do_value_free_to_mark): New function.
6500 (make_cleanup_value_free_to_mark): Likewise.
6501
6502 2011-05-12 Tom Tromey <tromey@redhat.com>
6503
6504 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6505 cast left-hand-side to unsigned.
6506
6507 2011-05-12 Tom Tromey <tromey@redhat.com>
6508
6509 PR gdb/12617:
6510 * value.h (value_from_contents): Declare.
6511 * value.c (value_from_contents): New function.
6512 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6513 (dwarf2_get_die_type): New function.
6514 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6515 (allocate_piece_closure): Acquire reference to values.
6516 (read_pieced_value): Update for value-based expressions.
6517 (write_pieced_value): Likewise.
6518 (free_pieced_value_closure): Call value_free as needed.
6519 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6520 Update for value-based expressions.
6521 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6522 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6523 <get_base_type>: New field.
6524 (struct dwarf_expr_piece) <v.value>: Change type.
6525 <v.regno>: New field.
6526 (struct dwarf_expr_context) <mark>: New field.
6527 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6528 (dwarf_expr_pop, dwarf_expr_push): Remove.
6529 (dwarf_expr_push_address): Declare.
6530 * dwarf2expr.c (dwarf_arch_cookie): New global.
6531 (struct dwarf_gdbarch_types): New.
6532 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6533 functions.
6534 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6535 static.
6536 (dwarf_expr_push_address): New function.
6537 (dwarf_expr_pop): Now static.
6538 (dwarf_expr_fetch): Change return type.
6539 (dwarf_require_integral): New function.
6540 (dwarf_expr_fetch): Simplify.
6541 (add_piece): Update.
6542 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6543 functions.
6544 (execute_stack_op) <sign_ext>: Remove.
6545 Use values for DWARF stack.
6546 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6547 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6548 New cases.
6549 (_initialize_dwarf2expr): New function.
6550 (add_piece): Update.
6551 (new_dwarf_expr_context): Set new field.
6552 (free_dwarf_expr_context): Call value_free_to_mark.
6553 * dwarf2-frame.c (no_base_type): New function.
6554 (execute_stack_op): Set get_base_type field. Update.
6555
6556 2011-05-12 Tom Tromey <tromey@redhat.com>
6557
6558 * dwarf2read.c (read_common_block): Fix formatting.
6559
6560 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6561
6562 * breakpoint.c (disable_breakpoint): Disable all locations
6563 associated with a tracepoint on target if a trace experiment is
6564 running.
6565 (disable_command): Disable a specific tracepoint location on target if
6566 a trace experiment is running.
6567 (do_enable_breakpoint): Enable all locations associated with a
6568 tracepoint on target if a trace experiment is running.
6569 (enable_command) Enable a specific tracepoint location on target if a
6570 trace experiment is running.
6571 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6572 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6573 to_disable_tracepoint.
6574 * target.h: Add declaration of struct bp_location.
6575 (struct target_ops): Add new functions
6576 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6577 to_disable_tracepoint to target operations.
6578 (target_supports_enable_disable_tracepoint): New macro.
6579 (target_enable_tracepoint): New macro.
6580 (target_disable_tracepoint): New macro.
6581 * remote.c (struct remote_state): Add new field.
6582 (remote_enable_disable_tracepoint_feature): New.
6583 (remote_protocol_features): Add new entry.
6584 (remote_supports_enable_disable_tracepoint): New.
6585 (remote_enable_tracepoint): New.
6586 (remote_disable_tracepoint): New.
6587 (init_remote_ops): Add remote_enable_tracepoint,
6588 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6589 to remote operations.
6590 * tracepoint.c (start_tracing): Allow tracing to start without any
6591 tracepoints enabled with just a warning if they can be re-enabled
6592 later.
6593 * NEWS: Add news item for the new behaviour of the enable and disable
6594 GDB commands when applied to tracepoints.
6595 Add news items for the new remote packets QTEnable and QTDisable.
6596
6597 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 * config.in: Regenerate.
6600 * configure: Regenerate.
6601 * configure.ac <--with-system-readline> (for readline_echoing_p):
6602 Remove the test.
6603 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6604 (tui_old_rl_echoing_p): ... here.
6605 (tui_setup_io): Rename extern declaration readline_echoing_p to
6606 _rl_echoing_p. Adjust assignments for the both renames.
6607
6608 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6609
6610 * symtab.c (lookup_symtab): Run cleanup before returning.
6611
6612 2011-05-11 Tom Tromey <tromey@redhat.com>
6613
6614 * dwarf2read.c (handle_data_member_location): New function.
6615 (dwarf2_add_field): Use it.
6616 (read_common_block): Likewise.
6617
6618 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6619
6620 Make addrs->SECTINDEX always defined.
6621 * symfile.c (relative_addr_info_to_section_offsets): Check for
6622 SECTINDEX -1, not for zero ADDR.
6623 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6624 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6625 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6626 on its validity.
6627
6628 2011-05-10 Doug Evans <dje@google.com>
6629
6630 * linux-thread-db.c: Whitespace cleanup.
6631 (try_thread_db_load_1): Fix comment.
6632
6633 * linux-thread-db.c (set_libthread_db_search_path): New function.
6634 (_initialize_thread_db): Add setter for libthread-db-search-path.
6635
6636 2011-05-09 Doug Evans <dje@google.com>
6637
6638 * NEWS: Mention --with-iconv-bin.
6639 * configure.ac: New option --with-iconv-bin.
6640 * configure: Regenerate.
6641 * config.in: Regenerate.
6642 * defs.h (relocate_gdb_directory): Declare.
6643 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6644 removed progname parameter, and exported. All callers updated.
6645 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6646
6647 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6648 adding missing call to restore_child_signals_mask.
6649
6650 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6651
6652 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6653 parameter.
6654 * infrun.c (proceed, start_remote): Adjust.
6655 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6656 and adjust to not handle it.
6657 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6658 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6659 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6660 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6661 * windows-nat.c (do_initial_windows_stuff): Adjust.
6662 * infcmd.c (attach_command): Adjust.
6663 (notice_new_inferior): Adjust.
6664
6665 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6668 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6669 * spu-tdep.c (op_selb): Use correct value.
6670
6671 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6672
6673 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6674 "parent" parameter to symbol_file_add_from_bfd call.
6675
6676 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6677 Thiago Jung Bauermann <bauerman@br.ibm.com>
6678
6679 Implement support for PowerPC BookE masked watchpoints.
6680 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6681 section.
6682 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6683 method. Initialize to NULL in all existing breakpoint_ops instances.
6684 (struct breakpoint) <hw_wp_mask>: New field.
6685 * breakpoint.c (is_masked_watchpoint): Add prototype.
6686 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6687 breakpoint's breakpoint_ops.works_in_software_mode if available.
6688 (watchpoints_triggered): Handle the case of a hardware masked
6689 watchpoint trigger.
6690 (watchpoint_check): Likewise.
6691 (works_in_software_mode_watchpoint): New function.
6692 (insert_masked_watchpoint, remove_masked_watchpoint)
6693 (resources_needed_masked_watchpoint)
6694 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6695 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6696 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6697 functions.
6698 (masked_watchpoint_breakpoint_ops): New structure.
6699 (watch_command_1): Check for the existence of the `mask' parameter.
6700 Set b->ops according to the type of hardware watchpoint being created.
6701 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6702 (ppc_linux_remove_mask_watchpoint)
6703 (ppc_linux_masked_watch_num_registers): New functions.
6704 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6705 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6706 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6707 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6708 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6709 (target_masked_watch_num_registers): New functions.
6710 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6711 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6712 methods.
6713 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6714 (target_masked_watch_num_registers): Add prototypes.
6715
6716 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6717
6718 PR 12573
6719 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6720 (producer_is_gcc_ge_4_0): New function.
6721 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6722 symtab->language code.
6723 (var_decode_location): Set cu->has_loclist.
6724 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6725 skip. Intialize force_skip from locations_valid. Move the prologue
6726 skipping code into two passes.
6727 * symtab.h (struct symtab): Make the primary field a bitfield. New
6728 field locations_valid.
6729
6730 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6731
6732 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6733 (classify_inner_name): Call cp_lookup_nested_type with
6734 yylval.tsym.type.
6735 * cp-namespace.c (cp_lookup_nested_type): New variable
6736 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6737 type_name_no_tag_or_error with saved_parent_type.
6738 * dwarf2read.c (load_partial_dies): Read in any children of
6739 DW_TAG_typedef with complaint in such case.
6740 * gdbtypes.c (type_name_no_tag_or_error): New function.
6741 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6742 * valops.c (destructor_name_p): New comment for parameter type. Remove
6743 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6744 * value.h (destructor_name_p): Remove type const.
6745
6746 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6747
6748 * symtab.c (compare_symbol_name): New function.
6749 (completion_list_add_name, expand_partial_symbol_name): Call it,
6750 remove the variable ncmp.
6751 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6752 gdb_assert it.
6753
6754 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6755
6756 Demote to sw watchpoint only in update_watchpoint.
6757 * breakpoint.c (update_watchpoint): Change between software and
6758 hardware watchpoint for all kinds of watchpoints, not just
6759 read/write ones. Determine b->exact value here instead of
6760 in watch_command_1. Error out if there are not enough resources
6761 for a read or access hardware watchpoint.
6762 (watch_command_1): Remove logic of checking whether there are
6763 enough resources available, since update_watchpoint will do that
6764 work now. Don't set b->exact here. Catch exceptions thrown by
6765 update_watchpoint and delete the watchpoint.
6766 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6767 Use target_exact_watchpoints instead.
6768 (delete_breakpoint): Notify observers only if deleted watchpoint
6769 has a breakpoint number assigned to it.
6770
6771 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6772
6773 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6774
6775 2011-05-05 Jerome Guitton <guitton@adacore.com>
6776
6777 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6778 New functions.
6779 (i386_stack_tramp_frame_unwind): New static global.
6780 (i386_match_pattern): New function, extracted from i386_match_insn.
6781 (i386_match_insn): Use i386_match_pattern.
6782 (i386_match_insn_block): New function.
6783 (i386_tramp_chain_in_reg_insns)
6784 (i386_tramp_chain_on_stack_insns): New static variables.
6785 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6786 of unwinders.
6787
6788 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6789
6790 * configure.host (xscale*): Don't handle target.
6791 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6792 handle targets.
6793
6794 2011-05-04 Yao Qi <yao@codesourcery.com>
6795
6796 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6797
6798 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6799
6800 Revert:
6801 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6802 | * elfread.c (elf_symtab_read): Stop memory leak.
6803
6804 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6805
6806 * nto-tdep.c (nto_target): Replace deprecated call to
6807 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6808
6809 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 Fix false GCC warning.
6812 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6813
6814 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6815
6816 * breakpoint.c (update_watchpoint): Move code to change
6817 the enable state of breakpoint from here ...
6818 (do_enable_breakpoint): ... to here.
6819
6820 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6821
6822 * valprint.c (val_print_array_elements): Fixed poor performance
6823 of printing very large arrays with repeat_count_threshold set
6824 to unlimited. New comment.
6825
6826 2011-04-29 Tom Tromey <tromey@redhat.com>
6827
6828 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6829 (mi_parse): Likewise.
6830 * breakpoint.c (break_range_command): Use sizeof char*, not
6831 char**.
6832 (create_breakpoint): Likewise.
6833 (parse_breakpoint_sals): Likewise.
6834
6835 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6836
6837 * linux-nat.c (linux_child_remove_fork_catchpoint)
6838 (linux_child_remove_vfork_catchpoint)
6839 (linux_child_remove_exec_catchpoint): New functions.
6840 (linux_target_install_ops): Install them.
6841
6842 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6843
6844 PR mi/12531
6845
6846 * varobj.c (install_default_visualizer): Do not install a
6847 visualizer if the varobj is CPLUS_FAKE_CHILD.
6848 (construct_visualizer): Likewise.
6849
6850 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6851
6852 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6853 case insensitive comparison.
6854
6855 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6856
6857 * infrun.c (proceed): Revert previous change.
6858 (resume): Instead, handle the case of signal delivery while stepping
6859 off a breakpoint location here, and only if software single-stepping
6860 is used. Handle nested signals.
6861
6862 2011-04-28 Yao Qi <yao@codesourcery.com>
6863
6864 * arm-tdep.c (copy_unmodified): Rename to ...
6865 (arm_copy_unmodified): .. this. New.
6866 (copy_preload): Move common part to ...
6867 (install_preload): .. this. New.
6868 (arm_copy_preload): New.
6869 (copy_preload_reg): Move common part to ...
6870 (install_preload_reg): ... this. New.
6871 (arm_copy_preload_reg): New.
6872 (copy_b_bl_blx): Move common part to ...
6873 (install_b_bl_blx): .. this. New.
6874 (arm_copy_b_bl_blx): New.
6875 (copy_bx_blx_reg): Move common part to ...
6876 (install_bx_blx_reg): ... this. New.
6877 (arm_copy_bx_blx_reg): New.
6878 (copy_alu_reg): Move common part to ...
6879 (install_alu_reg): ... this. New.
6880 (arm_copy_alu_reg): New.
6881 (copy_alu_shifted_reg): Move common part to ...
6882 (install_alu_shifted_reg): ... this. New.
6883 (copy_ldr_str_ldrb_strb): Move common part to ...
6884 (install_ldr_str_ldrb_strb): ... this. New.
6885 (arm_copy_ldr_str_ldrb_strb): New.
6886 (copy_copro_load_store): Move some common part to ...
6887 (install_copy_copro_load_store): ... this. New.
6888 (arm_copy_copro_load_store): New.
6889 (copy_svc): Delete.
6890 (arm_copy_svc): Renamed from copy_svc.
6891 (copy_undef): Delete.
6892 (arm_copy_undef): Renamed from copy_undef.
6893 (decode_ext_reg_ld_st): Delete.
6894 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6895 (decode_svc_copro): Delete.
6896 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6897 (copy_copro_load_store, copy_alu_imm): update callers.
6898 (copy_extra_ld_st, copy_block_xfer): Likewise.
6899 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6900 (decode_miscellaneous, decode_dp_misc): Likewise.
6901 (decode_ld_st_word_ubyte, decode_media): Likewise.
6902 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6903 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6904 (decode_unconditional, decode_miscellaneous): Likewise.
6905 (decode_media, decode_b_bl_ldmstm): Likewise.
6906 (arm_process_displaced_insn): Likewise..
6907 (decode_misc_memhint_neon): Delete.
6908 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6909 (decode_miscellaneous): Delete.
6910 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6911 (decode_dp_misc): Delete.
6912 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6913 (decode_ld_st_word_ubyte): Delete.
6914 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6915 (decode_media): Delete.
6916 (arm_decode_media): Renamed from decode_media.
6917 (decode_b_bl_ldmstm): Delete.
6918 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6919 (decode_ext_reg_ld_st): Delete.
6920 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6921 (decode_unconditional): Delete.
6922 (arm_decode_unconditional): Renamed from decode_unconditional.
6923
6924 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6925
6926 Case insensitive lookups implementation.
6927 * dwarf2read.c: Include ctype.h.
6928 (struct mapped_index): New field version.
6929 (mapped_index_string_hash): New parameter index_version. New comment
6930 for it. Call tolower appropriately.
6931 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6932 Choose the right index version for mapped_index_string_hash.
6933 (dwarf2_read_index): Support also the index version 5. Initialize the
6934 new struct mapped_index field version.
6935 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6936 (find_slot): Explain the version needs. Pass INT_MAX for the new
6937 parameter.
6938 (write_psymtabs_to_index): Produce version 5.
6939 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6940 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6941 * psymtab.c (lookup_partial_symbol): Find the
6942 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6943 entries.
6944 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6945 NAME lowercasing.
6946 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6947 (completion_list_add_name): New variable ncmp, initialize it, use it.
6948 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6949 * utils.c (strcmp_iw): Support case_sensitive_off.
6950 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6951 New function comment part. New variables saved_string1,
6952 saved_string2 and case_pass. Add a proper second pass.
6953
6954 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956 Replace re_comp/re_exec by regcomp/regexec.
6957 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6958 (search_symbols_name_matches): Use them, use regexec.
6959 (search_symbols): New variable retval_chain, adjust the use of
6960 old_chain against it. Replace re_comp by regcomp. Use the new struct
6961 search_symbols_data fields, use regexec instead of re_exec.
6962
6963 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6964
6965 Format the code for the next patch.
6966 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6967 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6968 New variables c1 and c2.
6969
6970 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6971
6972 * infrun.c (proceed): Do not single-step into signal delivery
6973 when stepping off a breakpoint location.
6974 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6975 (insert_step_resume_breakpoint_at_caller): Likewise.
6976 (insert_step_resume_breakpoint_at_sal): Likewise.
6977 (insert_longjmp_resume_breakpoint): Likewise.
6978
6979 2011-04-27 Yao Qi <yao@codesourcery.com>
6980
6981 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6982
6983 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6984
6985 * procfs.c (procfs_pass_signals): Fix advance declaration.
6986
6987 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6988
6989 * target.h (struct target_ops): Remove to_notice_signals;
6990 add to_pass_signals.
6991 (target_notice_signals): Remove.
6992 (target_pass_signals): Add prototype.
6993 * target.c (update_current_target): Remove to_notice_signals;
6994 mention to_pass_signals.
6995 (target_pass_signals): New function.
6996 (debug_to_notice_signals): Remove.
6997 (setup_target_debug): Do not install debug_to_notice_signals.
6998
6999 * infrun.c (signal_pass): New global.
7000 (resume): Call target_pass_signals.
7001 (handle_inferior_event): Report all signals while stepping over
7002 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7003 are re-inserted when stepping over a signal handler.
7004 (signal_cache_update): New function.
7005 (signal_stop_update): Call it.
7006 (signal_print_update): Likewise.
7007 (signal_pass_update): Likewise.
7008 (handle_command): Call signal_cache_update and target_pass_signals
7009 instead of target_notice_signals.
7010 (_initialize_infrun): Initialize signal_pass.
7011
7012 * linux-nat.c (pass_mask): New global.
7013 (linux_nat_pass_signals): New function.
7014 (linux_nat_create_inferior): Report all signals initially.
7015 (linux_nat_attach): Likewise.
7016 (linux_nat_resume): Use pass_mask to decide whether to directly
7017 handle an inferior signal.
7018 (linux_nat_wait_1): Likewise.
7019 (linux_nat_add_target): Install to_pass_signals callback.
7020
7021 * nto-procfs.c (notice_signals): Remove.
7022 (procfs_resume): Do not call notice_signals.
7023 (procfs_notice_signals): Remove.
7024 (procfs_pass_signals): New function.
7025 (init_procfs_ops): Install to_pass_signals callback instead of
7026 to_notice_signals callback.
7027 (_initialize_procfs): Report all signals initially.
7028
7029 * procfs.c (procfs_notice_signals): Remove.
7030 (procfs_pass_signals): New function.
7031 (procfs_target): Install to_pass_signals callback instead of
7032 to_notice_signals callback.
7033 (register_gdb_signals): Remove.
7034 (procfs_debug_inferior): Report all signals initially.
7035 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7036
7037 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7038 parameters; use them instead of calling signal_..._state routines.
7039 (remote_notice_signals): Remove.
7040 (remote_start_remote): Report all signals initially.
7041 (remote_resume): Do not call remote_pass_signals.
7042 (_initialize_remote): Install to_pass_signals callback instead of
7043 to_notice_signals callback.
7044
7045 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7046
7047 * breakpoint.c (user_settable_breakpoint): Delete.
7048 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7049 (delete_command): Check user_breakpoint_p instead of looking at
7050 the breakpoint's type.
7051 (disable_command): Ditto.
7052 (enable_command): Ditto.
7053 (delete_trace_command): Use user_breakpoint_p instead of looking
7054 at the breakpoint number directly. When checking if there are
7055 user visible tracepoints, in order to know whether to ask the user
7056 for confirmation, check whether the breakpoint is actually a
7057 tracepoint.
7058
7059 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7060
7061 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7062 compilation.
7063
7064 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7065
7066 MI breakpoint notifications.
7067
7068 * annotate.c (breakpoint_changed): Adjust parameter type.
7069 * breakpoint.c (set_breakpoint_condition): Adjust to change
7070 in breakpoint_modified type.
7071 (breakpoint_set_commands): Likewise.
7072 (do_map_commands_command): Likewise.
7073 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7074 changed after bumping hit count.
7075 (bpstat_stop_status): Likewise.
7076 (print_one_breakpoint_location): Don't wrap in tuple here.
7077 (print_one_breakpoint): Always print individual locations.
7078 For locations, use unnamed tuple.
7079 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7080 has changed.
7081 (create_catchpoint, create_syscall_event_catchpoint): Call
7082 breakpoint_created obsever.
7083 (mention): Don't call breakpoint_created observer.
7084 (create_breakpoint_sal): Call breakpoint_created observer.
7085 (create_breakpoint, watch_command_1): Likewise.
7086 (create_ada_exception_breakpoint): Likewise.
7087 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7088 (locations_are_equal): New.
7089 (update_breakpoint_locations): If locations were changed, notify.
7090 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7091 Call breakpoint_modified observer.
7092
7093 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7094 (mi_cmd_break_insert): Don't set observers for modify and delete.
7095 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7096 (mi_breakpoint_created, mi_breakpoint_deleted)
7097 (mi_breakpoint_modified): New.
7098 (mi_interpreter_init): Hook the above.
7099 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7100 while -break-* commands are executing.
7101 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7102 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7103 (mi_redirect): New.
7104 (mi_ui_out_impl): Hook in mi_redirect.
7105 (mi_field_skip): True to the name, skip the field, don't output
7106 a field with an empty value.
7107
7108 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7109 (gdbpy_breakpoint_deleted): Adjust.
7110 * tui/tui-hooks.c (tui_event_create_breakpoint)
7111 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7112
7113 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7114
7115 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7116 (procfs_remove_hw_watchpoint): Likewise.
7117
7118 2011-04-26 Michael Walle <michael@walle.cc>
7119
7120 * remote.c (remote_start_remote): Ack packet after sending the
7121 interrupt sequence.
7122
7123 2011-04-26 Yao Qi <yao@codesourcery.com>
7124
7125 * linux-nat.c: Move common macros to ...
7126 Include linux-ptrace.h.
7127 * common/linux-ptrace.h: ... here. New.
7128
7129 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7132 !objfile_has_partial_symbols. New comment.
7133 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7134 SYM_READ_PSYMBOLS is not present. Extend the comment.
7135 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7136
7137 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 * defs.h (ENUM_BITFIELD): Remove.
7140
7141 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7142 Eli Zaretskii <eliz@gnu.org>
7143
7144 * NEWS: Document the new gdbserver --once option.
7145
7146 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7147
7148 * MAINTAINERS: Update my email address.
7149
7150 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7151
7152 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7153 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7154 function call if __STDC_ISO_10646__ macro is defined.
7155 (intermediate_encoding): New prototype.
7156 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7157 to generate compile time error for unsupported gdb_wchar_t size.
7158 (ENDIAN_SUFFIX): New macro.
7159 (intermediate_encoding): New function.
7160
7161 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7162
7163 * ada-lang.c (struct add_partial_datum): Update the comment for
7164 expand_partial_symbol_name.
7165 (ada_add_partial_symbol_completions): Rename to ...
7166 (ada_expand_partial_symbol_name): ... here, change return type, update
7167 function comment, call symbol_completion_match instead of
7168 symbol_completion_add.
7169 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7170 and ada_expand_partial_symbol_name.
7171 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7172 FILE_MATCHER.
7173 (dw2_map_symbol_names): Remove.
7174 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7175 * psymtab.c (map_symbol_names_psymtab): Remove.
7176 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7177 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7178 order.
7179 (psym_functions): Unlist map_symbol_names_psymtab.
7180 (map_partial_symbol_names): Rename to ...
7181 (expand_partial_symbol_names): ... here, change the FUN type, call
7182 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7183 * psymtab.h (map_partial_symbol_names): Rename to ...
7184 (expand_partial_symbol_names): ... here, change the FUN type.
7185 * symfile.h (struct quick_symbol_functions): Update the description of
7186 expand_symtabs_matching. Remove map_symbol_names.
7187 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7188 (struct add_name_data): Update the comment for
7189 expand_partial_symbol_name.
7190 (add_partial_symbol_name): Rename to ...
7191 (expand_partial_symbol_name): ... here. Replace
7192 completion_list_add_name call by strncmp.
7193 (default_make_symbol_completion_list_break_on): Use now
7194 expand_partial_symbol_names and expand_partial_symbol_name.
7195 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7196
7197 2011-04-20 Tom Tromey <tromey@redhat.com>
7198
7199 * dwarf2read.c (save_gdb_index_command): Replace format
7200 documentation with a pointer to the manual.
7201
7202 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7203
7204 * regcache.c: Include remote.h.
7205 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7206 (regcache_dump): Handle regcache_dump_remote.
7207 (maintenance_print_remote_registers): New function.
7208 (_initialize_regcache): Install "maint print remote-registers"
7209 command.
7210 * remote.c (map_regcache_remote_table): New function, factored out
7211 from ...
7212 (init_remote_state): ... here.
7213 (remote_register_number_and_offset): New.
7214 * remote.h (remote_register_number_and_offset): Declare.
7215
7216 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7217
7218 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7219 null_ptid, assume and allow a NULL address space, instead of
7220 asking the target for the ptid's address space.
7221 * infrun.c (ptid_is_pid): Remove assertion.
7222
7223 2011-04-19 Tom Tromey <tromey@redhat.com>
7224
7225 * windows-tdep.c (windows_xfer_shared_library):
7226 * windows-nat.c (get_module_name, windows_make_so):
7227 * v850-tdep.c (v850_handle_pushm):
7228 * utils.c (null_cleanup, gdb_realpath):
7229 * ui-out.c (get_next_header):
7230 * tracepoint.c (clear_traceframe_info):
7231 * symtab.c (lookup_symtab):
7232 * serial.h (struct serial_ops):
7233 * mipsread.c (read_alphacoff_dynamic_symtab):
7234 * infcmd.c (print_return_value):
7235 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7236 * f-exp.y (parse_number):
7237 * exceptions.c (catch_exceptions):
7238 * dummy-frame.c (dummy_frame_this_id):
7239 * defs.h (struct cleanup):
7240 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7241 * arm-tdep.c (arm_push_dummy_call):
7242 * amd64-tdep.h (amd64_collect_xsave):
7243 * amd64-tdep.c (amd64_collect_xsave):
7244 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7245 * README (typing): Remove duplicate words.
7246 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7247 * infrun.c (siginfo_value_read): Fix typo.
7248 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7249 * top.c (source_line_number): Add comma.
7250
7251 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7252
7253 * thread.c (any_live_thread_of_process): Prioritize threads
7254 that are not executing.
7255 * gdbthread.h (any_live_thread_of_process): Update comment
7256 as per above change.
7257
7258 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7259
7260 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7261 (scan_xcoff_symtab): Likewise.
7262
7263 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7264
7265 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7266 inside if clause.
7267
7268 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7269 Pedro Alves <pedro@codesourcery.com>
7270
7271 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7272 variables to simplify code and avoid == operator at end of
7273 line as this is against GNU coding standards.
7274
7275 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7276
7277 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7278 lm_name to name_lm to avoid conflict with lm_name function.
7279
7280 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7281
7282 ARI fixes: Use only lowercase function name for static functions.
7283 * nto-tdep.c (LM_ADDR): Rename to...
7284 (lm_addr): New function name.
7285 (nto_relocate_section_addresses): Adapt to change above.
7286 * solib-sunos.c (LM_ADDR): Rename to...
7287 (lm_addr): New function name.
7288 (LM_NEXT): Rename to...
7289 (lm_next): New function name.
7290 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7291 function name changes above.
7292 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7293 (lm_addr_from_link_map): New function name.
7294 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7295 (has_lm_dynamic_from_link_map): New function name.
7296 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7297 (lm_dynamic_from_link_map): New function name.
7298 (LM_ADDR_CHECK): Rename to...
7299 (lm_addr_check): New function name.
7300 (LM_NEXT): Rename to...
7301 (lm_next): New function name.
7302 (LM_PREV): Rename to...
7303 (lm_prev): New function name.
7304 (LM_NAME): Rename to...
7305 (lm_name): New function name.
7306 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7307 (ignore_first_link_map_entry): New function name.
7308 (svr4_keep_data_in_core): Adapt to function name changes above.
7309 (svr4_current_sos): Likewise.
7310 (enable_break): Likewise.
7311 (svr4_relocate_section_addresses): Likewise.
7312
7313 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7314
7315 ARI cleanup.
7316 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7317 sprintf. Simplify code and avoid loosing memory.
7318 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7319 (call0_frame_cache): Remove && operator from end of line.
7320
7321 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7322
7323 Fix libraries displacement if they change whether they were prelinked.
7324 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7325 does not match. Comment why.
7326
7327 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 * corelow.c: Include wrapper.h.
7330 (core_open): Call now gdb_target_find_new_threads.
7331 * wrapper.c: Include target.h.
7332 (gdb_target_find_new_threads): New.
7333 * wrapper.h (gdb_target_find_new_threads): New declaration.
7334
7335 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7336
7337 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7338 even if !TARGET_HAS_EXECUTION.
7339
7340 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7341
7342 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7343 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7344 bfd_get_synthetic_symtab.
7345 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7346 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7347 parameter parent, remove the call to add_separate_debug_objfile.
7348 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7349 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7350 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7351 parent, new comment for it, call add_separate_debug_objfile for it.
7352 (symbol_file_add_separate): Pass objfile as the parameter parent,
7353 remove the call to add_separate_debug_objfile.
7354 (symbol_file_add_from_bfd): New parameter parent, pass it.
7355 (symbol_file_add): Pass NULL to the new parameter parent.
7356 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7357
7358 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7359
7360 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7361 BSF_SYNTHETIC.
7362
7363 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 Fix Python access to inlined frames.
7366 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7367 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7368
7369 2011-04-15 Tom Tromey <tromey@redhat.com>
7370
7371 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7372
7373 2011-04-15 Gary Benson <gbenson@redhat.com>
7374
7375 * MAINTAINERS: Add myself to write-after-approval section.
7376
7377 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7378
7379 * remote-sim.c (sim_command_completer): New function.
7380 (_initialize_remote_sim): Set completer to sim_command_completer.
7381
7382 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7383
7384 * breakpoint.c (print_exception_catchpoint): Rename to ...
7385 (print_it_exception_catchpoint): ... this.
7386 (gnu_v3_exception_catchpoint_ops): Update with new name
7387 for print_it_exception_catchpoint.
7388
7389 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7390
7391 * MAINTAINERS: Add myself for write after approval privileges.
7392
7393 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7394
7395 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7396
7397 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7398
7399 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7400
7401 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7402
7403 * breakpoint.c (save_breakpoints): Verify whether
7404 breakpoint_ops.print_recreate is defined before calling it.
7405
7406 2011-04-11 Gary Benson <gbenson@redhat.com>
7407
7408 Fix failure with --enable-maintainer-mode.
7409 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7410
7411 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7412
7413 Code cleanup.
7414 * symtab.c (search_symbols): Reorder the KIND description in the
7415 function comment. Remove the unused 4th element of types, types2,
7416 types3 and types4. New gdb_assert on KIND.
7417 (symtab_symbol_info): Remove the unused 4th element of classnames.
7418 New gdb_assert on KIND.
7419 * symtab.h (enum search_domain): New warning in the enum comment.
7420 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7421 TYPES_DOMAIN.
7422
7423 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 Fix crash of gdb save-index on a STABS file.
7426 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7427 PSYMTABS_ADDRMAP.
7428
7429 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7430
7431 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7432 * dwarf2read.c: Include ctype.h.
7433 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7434 functions.
7435 (dwarf2_add_field): Fix new_field->accessibility by calling
7436 dwarf2_default_access_attribute. Restructure setting accessibility
7437 vs. virtuality.
7438 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7439 is_private and is_protected by calling
7440 dwarf2_default_access_attribute.
7441
7442 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7443
7444 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7445 to the initialization.
7446
7447 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7448
7449 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7450 initalization.
7451
7452 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7453
7454 Remove support for old Cygwin 1.5 versions.
7455 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7456 function on old Cygwin version.
7457 * windows-nat.c: Remove cygwin version check and always define
7458 __USEWIDE for Cygwin compilation.
7459
7460 2011-04-07 Yao Qi <yao@codesourcery.com>
7461
7462 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7463 and TO.
7464 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7465 (arm_copy_svc): Remove parameters INSN and TO.
7466 (decode_svc_copro): Update caller.
7467 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7468 from function pointer `copy_svc_os'.
7469
7470 2011-04-07 Yao Qi <yao@codesourcery.com>
7471
7472 * arm-tdep.c (cleanup_branch): Set a correct return address in
7473 LR for ARM and Thumb.
7474
7475 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7476
7477 Code cleanup.
7478 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7479 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7480 in the function comment, a new note on values compatibility.
7481 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7482 * symtab.h (SYMBOL_HASH_NEXT): New.
7483
7484 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7485
7486 * ppc-linux-nat.c (check_condition): Add len output parameter.
7487 Set it based on the memory region referenced in the condition
7488 expression. Update all callers.
7489
7490 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7491
7492 Fix crash regression on systems featuring .gdb_index.
7493 * objfiles.c (free_objfile): Move the
7494 forget_cached_source_info_for_objfile call earlier. Comment it.
7495 Extend the comment for objfile_free_data.
7496
7497 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7498
7499 Fix regression of displaying the debug format.
7500 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7501 subfile.
7502
7503 2011-04-04 Tom Tromey <tromey@redhat.com>
7504
7505 * cli/cli-interp.c (struct captured_execute_command_args):
7506 Remove.
7507 (do_captured_execute_command): Remove.
7508 (safe_execute_command): Use TRY_CATCH.
7509 * cli/cli-script.c (struct wrapped_read_command_file_args):
7510 Remove.
7511 (wrapped_read_command_file): Remove.
7512 (script_from_file): Use TRY_CATCH.
7513 * exceptions.c (catch_exception): Remove.
7514 * exceptions.h (catch_exception): Remove.
7515 (deprecated_throw_reason): Update comment.
7516 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7517 argument to 'context'.
7518 (mi_execute_command): Use TRY_CATCH.
7519 * remote.c (struct start_remote_args): Remove.
7520 (remote_start_remote): Update; change arguments.
7521 (remote_open_1): Use TRY_CATCH.
7522
7523 2011-04-04 Tom Tromey <tromey@redhat.com>
7524
7525 * tracepoint.c (scope_info): Update.
7526 * symtab.c (decode_line_spec): Update.
7527 * python/python.c (gdbpy_decode_line): Update.
7528 * linespec.h (decode_line_1): Update.
7529 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7530 (decode_compound, find_method, symtab_from_filename)
7531 (decode_variable): Likewise.
7532 * cli/cli-cmds.c (edit_command): Update.
7533 (list_command): Update.
7534 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7535 argument.
7536 (create_breakpoint): Update.
7537 (until_break_command): Update.
7538 (addr_string_to_sals): Update.
7539 (decode_line_spec_1): Update.
7540
7541 2011-04-04 Tom Tromey <tromey@redhat.com>
7542
7543 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7544 (do_captured_parse_breakpoint): Remove.
7545 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7546 Use TRY_CATCH directly.
7547
7548 2011-04-04 Tom Tromey <tromey@redhat.com>
7549
7550 * symtab.h (free_symtab): Remove.
7551 (forget_cached_source_info_for_objfile): Declare.
7552 * symmisc.c (free_symtab): Remove.
7553 * source.c (forget_cached_source_info_for_objfile): New function.
7554 (forget_cached_source_info): Use it.
7555 * objfiles.c (free_objfile): Simplify check before calling
7556 clear_current_source_symtab_and_line. Call
7557 forget_cached_source_info_for_objfile.
7558
7559 2011-04-04 Tom Tromey <tromey@redhat.com>
7560
7561 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7562 (new_symtab): Don't set `free_code' on symtab.
7563 (new_linetable): Properly handle size==0.
7564 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7565 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7566 free_func.
7567 * jv-lang.c (struct jv_per_objfile_data): New.
7568 (jv_per_objfile_free): Free the data.
7569 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7570 (get_java_class_symtab): Set the `dict' field on the
7571 jv_per_objfile_data.
7572 (free_class_block): Remove.
7573 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7574 the symtab.
7575
7576 2011-04-04 Tom Tromey <tromey@redhat.com>
7577
7578 * symfile.c (reread_symbols): Update.
7579 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7580 field.
7581 * objfiles.c (allocate_objfile): Update.
7582 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7583 declare.
7584 * cp-namespace.c (lookup_symbol_file): Don't call
7585 lookup_possible_namespace_symbol.
7586 (initialize_namespace_symtab, get_possible_namespace_block)
7587 (free_namespace_block, cp_check_possible_namespace_symbols)
7588 (check_possible_namespace_symbols_loop)
7589 (check_one_possible_namespace_symbol)
7590 (lookup_possible_namespace_symbol): Remove.
7591 (maintenance_cplus_namespace): Replace with notice.
7592 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7593
7594 2011-04-04 Tom Tromey <tromey@redhat.com>
7595
7596 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7597 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7598 * symmisc.c (free_symtab): Don't free debugformat.
7599 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7600 (record_debugformat, record_producer): Document.
7601 * buildsym.c (end_symtab): Don't save debugformat and producer
7602 names on obstack.
7603 (end_symtab): Don't free debugformat and producer fields.
7604 (record_debugformat): Don't call xstrdup.
7605 (record_producer): Likewise.
7606
7607 2011-04-04 Tom Tromey <tromey@redhat.com>
7608
7609 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7610 (source_line_charpos, source_charpos_line): Remove.
7611
7612 2011-04-04 Tom Tromey <tromey@redhat.com>
7613
7614 * symtab.h (domain_enum): Split in two...
7615 (enum search_domain): New.
7616 (search_symbols): Update.
7617 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7618 redundant declarations.
7619 (search_symbols): Change 'kind' argument to search_domain.
7620 Update.
7621 (print_symbol_info): Likewise.
7622 (symtab_symbol_info): Likewise.
7623 * symfile.h (struct quick_symbol_functions)
7624 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7625 <expand_symtabs_matching>: Likewise.
7626 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7627 (expand_symtabs_matching_via_partial): Update.
7628 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7629 (dw2_expand_symtabs_for_function): Update.
7630 * block.h: Moved anonymous enum...
7631 * defs.h (enum block_enum): ... here. Now named.
7632
7633 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7634
7635 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7636 * version.in: Bump version to 7.3.50.20110403-cvs.
7637
7638 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7639
7640 * NEWS: Create a new section for the next release branch.
7641 Rename the section of the current branch, now that it has
7642 been cut.
7643
7644 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7645
7646 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7647 for "fpscr" in target description.
7648
7649 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7652 initialize it. Delay HASH initialization. Strip the part after open
7653 parenthesis for languages with qualifiers. Call do_cleanups.
7654
7655 2011-04-01 Tom Tromey <tromey@redhat.com>
7656
7657 * utils.c (report_command_stats): Don't print `-' for negative
7658 number.
7659
7660 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7661
7662 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7663 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7664 typedefs.
7665
7666 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7667
7668 * breakpoint.h (bpdisp_text): Add declaration.
7669 * breakpoint.c (bpdisp_text): Make non-static.
7670 * ada-lang.c: #include "mi/mi-common.h".
7671 (print_it_exception): Rewrite to improve GDB/MI output.
7672
7673 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7674
7675 * arm-tdep.h (struct address_space): Add forward declaration.
7676
7677 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7678
7679 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7680 * arm-tdep.c (arm_override_mode): New global.
7681 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7682 execution mode heuristics.
7683 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7684 second single-step breakpoint if needed, using
7685 arm_insert_single_step_breakpoint.
7686 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7687 ARM execution mode, do not call thumb_get_next_pc_raw.
7688 (arm_get_next_pc): Encode execution mode in return value. Call
7689 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7690 (arm_insert_single_step_breakpoint): New function.
7691 (arm_software_single_step): Call it.
7692 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7693 argument to return execution mode of sigreturn target.
7694 (arm_linux_syscall_next_pc): Use it.
7695 (arm_linux_copy_svc): Update call.
7696 (arm_linux_software_single_step): Call
7697 arm_insert_single_step_breakpoint.
7698
7699 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7700
7701 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7702 the comment.
7703
7704 2011-03-31 Tom Tromey <tromey@redhat.com>
7705
7706 * varobj.c (update_dynamic_varobj_children): Properly handle
7707 errors from iterator.
7708
7709 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7712 struct linkage name twice.
7713
7714 2011-03-31 Tom Tromey <tromey@redhat.com>
7715
7716 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7717 missing ">" to message.
7718
7719 2011-03-31 Tom Tromey <tromey@redhat.com>
7720
7721 * varobj.c (instantiate_pretty_printer): Remove duplicate
7722 'return'.
7723
7724 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7725
7726 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7727 if neither saved value nor register available (e.g. signal frame).
7728
7729 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7730
7731 * macroexp.c (expand): Avoid uninitialized variable
7732 compiler warning.
7733
7734 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7735
7736 * breakpoint.c (break_range_command): Fix typo in comment.
7737
7738 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7739 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7740
7741 Implement support for PowerPC BookE ranged breakpoints.
7742 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7743 * breakpoint.h (struct bp_target_info) <length>: New member
7744 variable.
7745 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7746 instead of struct breakpoint as argument, and also add ASPACE
7747 and BP_ADDR arguments. Update all callers.
7748 (struct breakpoint_ops) <print_one_detail>: New method.
7749 (struct breakpoint) <addr_string_range_end>: New member variable.
7750 * breakpoint.c (breakpoint_location_address_match): Add function
7751 prototype.
7752 (insert_bp_location): Set bl->target_info.length.
7753 (breakpoint_here_p): Call breakpoint_location_address_match.
7754 (moribund_breakpoint_here_p): Likewise.
7755 (regular_breakpoint_inserted_here_p): Likewise.
7756 (breakpoint_thread_match): Likewise.
7757 (bpstat_stop_status): Likewise.
7758 (bpstat_check_location): Move call to
7759 breakpoint_ops.breakpoint_hit to the top.
7760 (print_one_breakpoint_location): Call
7761 breakpoint_ops.print_one_detail if available.
7762 (breakpoint_address_match_range): New function.
7763 (breakpoint_location_address_match): Likewise.
7764 (breakpoint_locations_match): Compare the length field of the
7765 locations too.
7766 (hw_breakpoint_used_count): Count resources used by all locations
7767 in a breakpoint, and use breakpoint_ops.resources_needed if
7768 available.
7769 (breakpoint_hit_ranged_breakpoint): New function.
7770 (resources_needed_ranged_breakpoint): Likewise.
7771 (print_it_ranged_breakpoint): Likewise.
7772 (print_one_ranged_breakpoint): Likewise.
7773 (print_one_detail_ranged_breakpoint): Likewise.
7774 (print_mention_ranged_breakpoint): Likewise.
7775 (print_recreate_ranged_breakpoint): Likewise.
7776 (ranged_breakpoint_ops): New structure.
7777 (find_breakpoint_range_end): New function.
7778 (break_range_command): Likewise.
7779 (delete_breakpoint): Free addr_string_range_end.
7780 (update_breakpoint_locations): Add SALS_END argument. Update
7781 all callers. Calculate breakpoint length if a non-zero SALS_END
7782 is given. Call breakpoint_locations_match instead of
7783 breakpoint_address_match.
7784 (reset_breakpoint): Find SaL of the end of the range if B is a
7785 ranged breakpoint.
7786 (_initialize_breakpoint): Register break-range command.
7787 * defs.h (print_core_address): Add function prototype.
7788 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7789 function.
7790 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7791 (ppc_linux_remove_hw_breakpoint): Likewise.
7792 (_initialize_ppc_linux_nat): Initialize
7793 to_ranged_break_num_registers.
7794 * target.c (update_current_target): Add comment about
7795 to_ranged_break_num_registers.
7796 (target_ranged_break_num_registers): New function.
7797 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7798 New method.
7799 (target_ranged_break_num_registers): Add function prototype.
7800 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7801 * utils.c (print_core_address): ... here.
7802
7803 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7804
7805 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7806 variable compiler warning.
7807
7808 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7809
7810 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7811 code from here ...
7812 (re_set_breakpoint): ... to here ...
7813 (addr_string_to_sals): ... and here.
7814
7815 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7816
7817 * Makefile.in (SFILES): Add missing C sources.
7818 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7819 Add missing headers.
7820
7821 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7822
7823 * .gitignore: New file.
7824
7825 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7826
7827 * NEWS: Mention new cfi device simulation.
7828
7829 2011-03-29 Tom Tromey <tromey@redhat.com>
7830
7831 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7832 otherwise anonymous types.
7833 (dwarf2_name): Likewise.
7834 * valops.c (value_struct_elt_for_reference): Refine artificial
7835 type logic. Call error if j==-1.
7836
7837 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7838
7839 Fix false GCC warning.
7840 * infcall.c (find_function_addr): Initialize funaddr.
7841
7842 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7843
7844 Fix mingw compilation with --enable-targets=all.
7845 * remote-mips.c (gdb_usleep.h): Include header.
7846 (mips_enter_debug): Use gdb_usleep instead of sleep.
7847
7848 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Support resolution of STT_GNU_IFUNC via breakpoints.
7851 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7852 bp_gnu_ifunc_resolver_return.
7853 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7854 the loop. Support bp_gnu_ifunc_resolver and
7855 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7856 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7857 breakpoints.
7858 (bptype_string, print_one_breakpoint_location): Support
7859 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7860 (user_settable_breakpoint): Return true also for
7861 bp_gnu_ifunc_resolver.
7862 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7863 bp_gnu_ifunc_resolver_return.
7864 (set_breakpoint_location_function): New parameter explicit_loc,
7865 describe it. Call find_pc_partial_function_gnu_ifunc with new
7866 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7867 EXPLICIT_LOC is not set.
7868 (set_raw_breakpoint): Set EXPLICIT_LOC for
7869 set_breakpoint_location_function.
7870 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7871 set_breakpoint_location_function.
7872 (mention): Support bp_gnu_ifunc_resolver and
7873 bp_gnu_ifunc_resolver_return.
7874 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7875 set_breakpoint_location_function.
7876 (update_breakpoint_locations): Remove static.
7877 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7878 bp_gnu_ifunc_resolver_return.
7879 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7880 bp_gnu_ifunc_resolver_return.
7881 (update_breakpoint_locations): New declaration.
7882 * elfread.c: Include gdbthread.h and regcache.h.
7883 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7884 functions.
7885 (elf_gnu_ifunc_fns): Install them.
7886 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7887 (stub_gnu_ifunc_resolver_return_stop): New functions.
7888 (stub_gnu_ifunc_fns): Install them.
7889 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7890 and gnu_ifunc_resolver_return_stop.
7891 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7892
7893 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 STT_GNU_IFUNC reader implementation.
7896 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7897 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7898 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7899 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7900 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7901 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7902 (elf_gnu_ifunc_resolve_addr): New.
7903 (elf_symfile_read): Call elf_rel_plt_read.
7904 (elf_gnu_ifunc_fns): New.
7905 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7906 Install elf_gnu_ifunc_fns.
7907 * infcall.c (find_function_return_type): New function.
7908 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7909 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7910 (stub_gnu_ifunc_resolve_name): New functions.
7911 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7912 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7913 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7914
7915 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7916
7917 Code cleanup for later STT_GNU_IFUNC support.
7918 * infcall.c (find_function_addr): Remove variable code, use explicit
7919 dereferences for it. Move VALUE_TYPE initialization later.
7920
7921 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7922
7923 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7924 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7925 (clear_pc_function_cache): Clear it.
7926 (find_pc_partial_function): Rename to ...
7927 (find_pc_partial_function_gnu_ifunc): ... this function. New
7928 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7929 (find_pc_partial_function): New wrapper for this function.
7930 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7931
7932 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7933
7934 GDB internal type support for STT_GNU_IFUNC.
7935 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7936 (elf_symtab_read): Set mst_text_gnu_ifunc for
7937 BSF_GNU_INDIRECT_FUNCTION.
7938 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7939 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7940 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7941 nodebug_got_plt_symbol.
7942 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7943 (TYPE_GNU_IFUNC): New.
7944 (struct main_type): New field flag_gnu_ifunc.
7945 (struct builtin_type): New field builtin_func_func.
7946 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7947 nodebug_got_plt_symbol.
7948 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7949 (in_gnu_ifunc_stub): New.
7950 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7951 mst_text_gnu_ifunc.
7952 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7953 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7954 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7955 in_gnu_ifunc_stub.
7956 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7957 * symtab.c (search_symbols): Likewise.
7958 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7959 and mst_slot_got_plt.
7960 (in_gnu_ifunc_stub): New declaration.
7961
7962 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 Support a ring of related breakpoints.
7965 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7966 other functions, add gdb_assert.
7967 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7968 watchpoint_del_at_next_stop.
7969 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7970 (bpstat_stop_status): Handle ring in related_breakpoint.
7971 (set_raw_breakpoint_without_location): Initialize ring in
7972 related_breakpoint.
7973 (delete_breakpoint): Handle ring in related_breakpoint, use
7974 watchpoint_del_at_next_stop.
7975 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7976
7977 2011-03-28 Tom Tromey <tromey@redhat.com>
7978
7979 PR symtab/12441:
7980 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7981 with `language_minimal'.
7982
7983 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7984
7985 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7986 instead of checking for STT_ARM_TFUNC symbol type.
7987
7988 2011-03-25 Tom Tromey <tromey@redhat.com>
7989
7990 * linespec.c (symbol_found): Restore line-based result for
7991 non-LOC_LABEL symbols.
7992
7993 2011-03-25 Kai Tietz <ktietz@redhat.com>
7994
7995 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7996 instead of strcmp for comparison.
7997 (tui_source_is_displayed): Likewise.
7998 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7999
8000 2011-03-24 Mark Wielaard <mjw@redhat.com>
8001
8002 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8003 complaint.
8004 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8005 (find_partial_die_in_comp_unit): Likewise in comment.
8006 (read_attribute_value): Likewise.
8007 (lookup_die_type): Likewise.
8008 (dwarf_form_name): Likewise.
8009 (dump_die_shallow): Likewise.
8010 (follow_die_ref_or_sig): Likewise.
8011
8012 2011-03-24 Tom Tromey <tromey@redhat.com>
8013
8014 PR breakpoints/11816:
8015 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8016 (decode_compound): Update.
8017 (find_function_symbol): New function.
8018 (decode_dollar): Update.
8019 (decode_label): Add 'function_symbol' parameter. Handle
8020 function-relative labels.
8021 (decode_variable): Update.
8022 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8023 not its line. Set `special_display' and canonical name for
8024 labels.
8025
8026 2011-03-24 Tom Tromey <tromey@redhat.com>
8027
8028 * linespec.h (struct linespec_result) <special_display>: New
8029 field.
8030 * breakpoint.h (struct breakpoint) <display_canonical>: New
8031 field.
8032 * breakpoint.c (print_breakpoint_location): Respect
8033 display_canonical.
8034 (create_breakpoint_sal): Add 'display_canonical' parameter.
8035 (create_breakpoints_sal): Update.
8036 (create_breakpoint): Update.
8037
8038 2011-03-24 Tom Tromey <tromey@redhat.com>
8039
8040 * symtab.c (decode_line_spec): Update.
8041 * linespec.c (build_canonical_line_spec): Change type of
8042 'canonical'.
8043 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8044 (find_method, decode_all_digits, decode_dollar, decode_label)
8045 (symbol_found): Likewise.
8046 (init_linespec_result): New function.
8047 * breakpoint.c (struct captured_parse_breakpoint_args)
8048 <canonical_p>: New field, replaces addr_string_p.
8049 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8050 'addr_string'.
8051 (parse_breakpoint_sals): Likewise.
8052 (do_captured_parse_breakpoint): Update.
8053 (create_breakpoint): Use struct linespec_result.
8054 (until_break_command): Update.
8055 (breakpoint_re_set_one): Update.
8056 (decode_line_spec_1): Update.
8057 * linespec.h (struct linespec_result): New.
8058 (init_linespec_result): Declare.
8059
8060 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8061
8062 * regcache.c (regcache_raw_read): If the target didn't supply a
8063 given raw register, mark it as unavailable.
8064
8065 2011-03-23 Kai Tietz <ktietz@redhat.com>
8066
8067 * breakpoint.c (clear_command): Use filename_cmp
8068 instead of strcmp for comparison.
8069 * buildsym.c (watch_main_source_file_lossage): Likewise.
8070 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8071 checking just for slash.
8072 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8073 strrchr and filename_cmp instead of strcmp for filenames.
8074 (add_old_header_file): Use filename_cmp
8075 instead of strcmp for comparison.
8076 * exec.c (exec_set_section_address): Likewise.
8077 * macrotab.c (macro_lookup_inclusion): Likewise.
8078 (macro_lookup_inclusion): Likewise.
8079 * elfread.c (_initialize_elfread): Likewise.
8080 (elfstab_offset_sections): Likewise.
8081 (elfstab_offset_sections): Use lbasename instead of
8082 strrchr.
8083 * mdebugread.c (parse_partial_symbols): Likewise.
8084 (arse_partial_symbols): Use filename_(n)cmp instead of
8085 str(n)cmp for comparison.
8086 * minsyms.c (lookup_minimal_symbol): Likewise.
8087 * psymtab.c (read_psymtabs_with_filename): Likewise.
8088 * solib.c (solib_read_symbols): Likewise.
8089 (reload_shared_libraries_1): Likewise.
8090 * symmisc.c (maintenance_print_symbols): Likewise.
8091 * symfile.c (separate_debug_file_exists): Likewise.
8092 (reread_symbols): Likewise.
8093 (find_separate_debug_file_by_debuglink): Likewise.
8094 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8095 * source.c (add_path): Likewise.
8096 * symtab.c (filename_seen): Likewise.
8097 (file_matches): Likewise.
8098 (print_symbol_info): Likewise.
8099 (maybe_add_partial_symtab_filename): Likewise.
8100 (make_source_files_completion_list): Likewise.
8101 * xml-syscall.c (init_sysinfo): Likewise.
8102 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8103 IS_DIR_SEPARATOR for checking for trailing path separator.
8104
8105 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8106
8107 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8108 label abort_expression.
8109 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8110 DWARF_VALUE_OPTIMIZED_OUT.
8111
8112 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8113
8114 Code cleanup.
8115 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8116 to linkage_name. Invert its value. Update the function comment.
8117 (c_type_print_varspec_suffix): Invert it at the caller.
8118 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8119
8120 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8121
8122 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8123 errors when reading the `stop_pc'.
8124 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8125 get_frame_pc.
8126
8127 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8128
8129 * NEWS: Document gdb.Write stream keyword.
8130
8131 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8132
8133 Revert:
8134 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8135 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8136 (dwarf2_add_field): Fix new_field->accessibility for
8137 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8138
8139 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8140
8141 PR python/12183
8142
8143 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8144 other error classes. Do not print stack trace.
8145
8146 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8147
8148 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8149 (dwarf2_add_field): Fix new_field->accessibility for
8150 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8151
8152 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8153
8154 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8155 encountering a load via a non-SP register.
8156
8157 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8158
8159 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8160 field in returned unwinder.
8161
8162 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8163
8164 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8165
8166 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8167
8168 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8169 of xmalloc.
8170
8171 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8172
8173 * frame.c (frame_unwind_register): Throw an error if unwinding the
8174 register failed.
8175 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8176 an unwind stop reason.
8177 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8178 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8179 UNWIND_UNAVAILABLE>: New.
8180 * inline-frame.c (inline_frame_unwind): Install
8181 default_frame_unwind_stop_reason.
8182 * frame-unwind.c: Include "exceptions.h".
8183 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8184 (default_frame_unwind_stop_reason): New.
8185 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8186 (default_frame_unwind_stop_reason): Declare.
8187 (struct frame_unwind) <stop_reason>: New function pointer.
8188
8189 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8190 * dwarf2-frame.c: Include exceptions.h.
8191 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8192 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8193 computing the CFA. If such an error was thrown, set
8194 unavailable_retaddr.
8195 (dwarf2_frame_unwind_stop_reason): New.
8196 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8197 unavailable.
8198 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8199 (dwarf2_signal_frame_unwind): Ditto.
8200
8201 * amd64-tdep.c: Include "exceptions.h".
8202 (struct amd64_frame_cache): New field "base_p".
8203 (amd64_init_frame_cache): Clear it.
8204 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8205 Avoid reading registers with functions that throw if the register
8206 is not necessary to compute the frame base.
8207 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8208 swallowing NOT_AVAILABLE_ERROR.
8209 (amd64_frame_unwind_stop_reason): New.
8210 (amd64_frame_this_id): Don't build a frame id if the frame base
8211 was unavailable.
8212 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8213 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8214 base_p if the frame base was computable.
8215 (amd64_sigtramp_frame_unwind_stop_reason): New.
8216 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8217 frame base was unavailable.
8218 (amd64_sigtramp_frame_unwind): Install
8219 amd64_sigtramp_frame_unwind_stop_reason.
8220 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8221 base_p if the frame base was computable.
8222 (amd64_epilogue_frame_unwind_stop_reason): New.
8223 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8224 frame base was unavailable.
8225 (amd64_epilogue_frame_unwind): Install
8226 amd64_epilogue_frame_unwind_stop_reason.
8227 * i386-tdep.c: Include "exceptions.h".
8228 (struct i386_frame_cache): New field "base_p".
8229 (i386_init_frame_cache): Clear it.
8230 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8231 Avoid reading registers with functions that throw if the register
8232 is not necessary to compute the frame base.
8233 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8234 swallowing NOT_AVAILABLE_ERROR.
8235 (i386_frame_unwind_stop_reason): New.
8236 (i386_frame_this_id): Don't build a frame id if the frame base was
8237 unavailable.
8238 (i386_frame_prev_register): Handle unavailable SP.
8239 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8240 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8241 base_p if the frame base was computable.
8242 (i386_epilogue_frame_unwind_stop_reason): New.
8243 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8244 base was unavailable.
8245 (i386_epilogue_frame_unwind): Install
8246 i386_epilogue_frame_unwind_stop_reason.
8247 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8248 base_p if the frame base was computable.
8249 (i386_sigtramp_frame_unwind_stop_reason): New.
8250 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8251 base was unavailable.
8252 (i386_sigtramp_frame_unwind): Install
8253 i386_sigtramp_frame_unwind_stop_reason.
8254 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8255 type's size, not the register's.
8256 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8257
8258 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8259 default_frame_unwind_stop_reason.
8260 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8261 (alpha_heuristic_frame_unwind): Ditto.
8262 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8263 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8264 * avr-tdep.c (avr_frame_unwind): Ditto.
8265 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8266 Ditto.
8267 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8268 * frv-tdep.c (frv_frame_unwind): Ditto.
8269 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8270 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8271 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8272 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8273 (hppa_stub_frame_unwind): Ditto.
8274 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8275 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8276 (ia64_libunwind_frame_unwind)
8277 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8278 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8279 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8280 * m32c-tdep.c (m32c_unwind): Ditto.
8281 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8282 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8283 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8284 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8285 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8286 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8287 * mep-tdep.c (mep_frame_unwind): Ditto.
8288 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8289 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8290 (mips_stub_frame_unwind): Ditto.
8291 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8292 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8293 * mt-tdep.c (mt_frame_unwind): Ditto.
8294 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8295 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8296 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8297 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8298 (s390_sigtramp_frame_unwind): Ditto.
8299 * score-tdep.c (score_prologue_unwind): Ditto.
8300 * sh-tdep.c (sh_frame_unwind): Ditto.
8301 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8302 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8303 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8304 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8305 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8306 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8307 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8308 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8309 (sparc64obsd_trapframe_unwind): Ditto.
8310 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8311 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8312 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8313 * v850-tdep.c (v850_frame_unwind): Ditto.
8314 * vax-tdep.c (vax_frame_unwind): Ditto.
8315 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8316 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8317 * xtensa-tdep.c (xtensa_unwind): Ditto.
8318
8319 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8320
8321 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8322 there's always a frame. Use get_frame_pc_if_available instead of
8323 get_frame_pc, and if there's no PC available, don't look up a
8324 symtab.
8325
8326 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8327
8328 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8329 unavailable PC.
8330
8331 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8332
8333 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8334 gracefully.
8335
8336 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8337
8338 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8339 * frame.c (frame_unwind_caller_pc_if_available): New.
8340 * stack.c (frame_info): Handle unavailable PC.
8341
8342 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8343
8344 * frame.c (frame_unwind_pc): Rename to ...
8345 (frame_unwind_pc_if_available): ... this. New `pc' output
8346 parameter. Change return type to int. Gracefully handle
8347 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8348 happened, or 1 otherwise.
8349 (frame_unwind_pc): Reimplement on top of
8350 frame_unwind_pc_if_available.
8351 (get_frame_func): Rename to ...
8352 (get_frame_func_if_available): New `pc' output parameter. Change
8353 return type to int. Gracefully handle the PC not being available.
8354 (get_frame_func): Reimplement on top of
8355 get_frame_func_if_available.
8356 (select_frame): Handle the PC being unavailable.
8357 (get_prev_frame): Handle the PC being unavailable.
8358 (get_frame_pc_if_available): New.
8359 (get_frame_address_in_block_if_available): New.
8360 (find_frame_sal): Handle the frame PC not being available.
8361 * frame.h (get_frame_pc_if_available): Declare.
8362 (get_frame_address_in_block_if_available): Declare.
8363 (get_frame_func_if_available): Declare.
8364 * stack.c (print_frame_info): Handle the PC being unavailable.
8365 (find_frame_funname): Ditto.
8366 (print_frame): Handle the PC being unavailable.
8367 (get_frame_language): Ditto.
8368 * blockframe.c (get_frame_block): Ditto.
8369 * macroscope.c (default_macro_scope): Ditto.
8370 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8371
8372 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8373
8374 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8375 NOT_AVAILABLE_ERROR when evaluating the location expression.
8376
8377 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8378
8379 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8380 returning that the register piece is unavailable/optimized out.
8381 (write_pieced_value): Handle get_frame_register_bytes returning
8382 that the register piece is unavailable/optimized out when doing a
8383 read-modify write of a bitfield.
8384 * findvar.c (value_from_register): Handle get_frame_register_bytes
8385 returning that the register piece is unavailable/optimized out.
8386 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8387 and `unavailablep'. Throw error on bad debug info. Use
8388 frame_register instead of frame_register_read, to fill in the new
8389 arguments.
8390 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8391 and `unavailablep'.
8392 * valops.c: (value_assign): Adjust, and handle
8393 get_frame_register_bytes failing.
8394 * spu-tdep.c: Include exceptions.h.
8395 (spu_software_single_step): Adjust, and handle
8396 get_frame_register_bytes failing.
8397 (spu_get_longjmp_target): Ditto.
8398 * gdbarch.sh (register_to_value): Change to return int. New
8399 parameters `optimizedp' and `unavailablep'.
8400 * gdbarch.h, gdbarch.c: Regenerate.
8401 * i386-tdep.c (i386_register_to_value): Adjust to new
8402 gdbarch_register_to_value interface.
8403 * i387-tdep.c (i387_register_to_value): Ditto.
8404 * i387-tdep.h (i387_register_to_value): Ditto.
8405 * alpha-tdep.c (alpha_register_to_value): Ditto.
8406 * ia64-tdep.c (ia64_register_to_value): Ditto.
8407 * m68k-tdep.c (m68k_register_to_value): Ditto.
8408 * mips-tdep.c (mips_register_to_value): Ditto.
8409 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8410
8411 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8412
8413 * findvar.c (value_of_register): Mark the value as unavailable, if
8414 the register is unavailable.
8415 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8416 (frame_register): New `unavailablep' parameter.
8417 (frame_register_read): Update comment.
8418 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8419 Set it if the register is unavailable. If the register is
8420 unavailable, clear the output buffer.
8421 (frame_register): New `unavailablep' parameter. Pass it down.
8422 (frame_unwind_register): Adjust.
8423 (put_frame_register): Adjust.
8424 (frame_register_read): Adjust. Also return false if the register
8425 is not available.
8426 (frame_register_unwind_location): Adjust.
8427 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8428 is unavailable, mark the value accordingly.
8429 * stack.c (frame_info): Handle unavailable registers.
8430
8431 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8432
8433 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8434 simplify, using regcache_cooked_read.
8435
8436 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8437
8438 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8439 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8440 (regcache_raw_read_unsigned, regcache_raw_read_part)
8441 (regcache_cooked_read, regcache_cooked_read_signed)
8442 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8443 (regcache_cooked_read_ftype): Change return to enum
8444 register_status.
8445 * regcache.c: Include exceptions.h
8446 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8447 (do_cooked_read): Change return to enum register_status. Always
8448 forward to regcache_cooked_read.
8449 (regcache_raw_read): Change return to enum register_status. If
8450 the register is not REG_VALID, memset the buffer. Return the
8451 register's status.
8452 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8453 return the register's status.
8454 (regcache_raw_read_unsigned): Ditto.
8455 (regcache_cooked_read): Change return to enum register_status.
8456 Assert that with read-only regcaches, the register's status must
8457 be known. If the regcache is read-only, and the register is not
8458 REG_VALID, memset the buffer. Return the register's status.
8459 (regcache_cooked_read_signed): Change return to enum
8460 register_status. Handle non-REG_VALID registers and return the
8461 register's status.
8462 (regcache_cooked_read_unsigned): Change return to enum
8463 register_status. Handle non-REG_VALID registers and return the
8464 register's status.
8465 (regcache_xfer_part, regcache_raw_read_part)
8466 (regcache_cooked_read_part): Change return to enum
8467 register_status. Return the register's status.
8468 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8469 unavailable.
8470 (regcache_dump): Handle unavailable cooked registers.
8471 * frame.c (do_frame_register_read): Adjust interface to match
8472 regcache_cooked_read_ftype.
8473 * gdbarch.sh (pseudo_register_read): Change return to enum
8474 register_status.
8475 * gdbarch.h, gdbarch.c: Regenerate.
8476
8477 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8478 register_status.
8479 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8480 register_status. If reading a raw register indicates the raw
8481 register is not valid, return the raw register's status,
8482 otherwise, return REG_VALID.
8483 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8484 register_status. Handle non-REG_VALID raw registers and return
8485 the register's status.
8486 * arm-tdep.c (arm_neon_quad_read)
8487 (arm_pseudo_read): Change return to enum register_status. Handle
8488 non-REG_VALID raw registers and return the register's status.
8489 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8490 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8491 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8492 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8493 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8494 register_status.
8495 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8496 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8497 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8498 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8499 (m32c_pseudo_register_read): Change return to enum
8500 register_status. Adjust.
8501 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8502 enum register_status. Return the register's status.
8503 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8504 register_status. Return the register's status.
8505 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8506 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8507 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8508 * rs6000-tdep.c (move_ev_register_func): New typedef.
8509 (e500_move_ev_register): Use it. Change return to enum
8510 register_status. Return the register's status.
8511 (do_regcache_raw_read): New function.
8512 (do_regcache_raw_write): New function.
8513 (e500_pseudo_register_read): Change return to enum
8514 register_status. Return the register's status. Use
8515 do_regcache_raw_read.
8516 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8517 (dfp_pseudo_register_read): Change return to enum register_status.
8518 Return the register's status.
8519 (vsx_pseudo_register_read): Ditto.
8520 (efpr_pseudo_register_read): Ditto.
8521 (rs6000_pseudo_register_read): Ditto.
8522 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8523 register_status. Return the register's status.
8524 * sh64-tdep.c (pseudo_register_read_portions): New function.
8525 (sh64_pseudo_register_read): Change return to enum
8526 register_status. Use pseudo_register_read_portions. Return the
8527 register's status.
8528 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8529 register_status. Return the register's status.
8530 * sh-tdep.c (pseudo_register_read_portions): New function.
8531 (sh_pseudo_register_read): Change return to enum register_status.
8532 Use pseudo_register_read_portions. Return the register's status.
8533 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8534 enum register_status. Return the register's status.
8535 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8536 * spu-tdep.c (spu_pseudo_register_read_spu)
8537 (spu_pseudo_register_read): Ditto.
8538 * xtensa-tdep.c (xtensa_register_read_masked)
8539 (xtensa_pseudo_register_read): Ditto.
8540 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8541
8542 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8543
8544 * python/py-value.c (valpy_getitem): Fix formatting of error function
8545 call.
8546
8547 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8548
8549 ARI fixes: Add missing internationalization markups throughout
8550 C source files.
8551 * darwin-nat-info.c: Ditto.
8552 * record.c: Ditto.
8553 * remote.c: Ditto.
8554 * mi/mi-main.c: Ditto.
8555
8556 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8557
8558 ARI fixes: Add missing internationalization markups throughout
8559 yacc files.
8560 * c-exp.y: Ditto.
8561 * cp-name-parser.y: Ditto.
8562 * f-exp.y: Ditto.
8563 * m2-exp.y: Ditto.
8564 * objc-exp.y: Ditto.
8565 * p-exp.y: Ditto.
8566
8567 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8568
8569 ARI fixes: Messages should have no trailing new lines.
8570 * darwin-nat.c (mach_check_error): Remove trailing new line from
8571 warning function call message.
8572 * record.c (bfdcore_read): Idem for error call.
8573
8574 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8575
8576 * common/signals.c (target_signal_from_host): Add _ markup to error
8577 function call message.
8578 (target_signal_to_host): Add _ markup and remove trailing new line
8579 from warning call message.
8580 (target_signal_from_command): Add _ markup to error function call
8581 message.
8582
8583 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8584
8585 PR python/12149
8586
8587 * python/python.c (gdbpy_write): Accept a stream argument and
8588 operate to the appropriate stream.
8589 (gdbpy_flush): Likewise.
8590 (_initialize_python): Add stream constants.
8591 (finish_python_initialization): Add GdbOutputErrorFile class.
8592
8593 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8594
8595 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8596
8597 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8598
8599 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8600 to store_signed_integer. Add debug message when relocating CALL
8601 instructions. Fix formatting of debug message.
8602 * i386-tdep.c (i386_relocate_instruction): Ditto.
8603
8604 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8605
8606 * target.h (struct target_ops): Remove to_lookup_symbol field.
8607 (target_lookup_symbol): Delete macro.
8608 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8609 (update_current_target, setup_target_debug): Remove handling
8610 of to_lookup_symbol target_ops field.
8611 * ada-tasks.c (get_known_tasks_addr): Remove use of
8612 target_lookup_symbol.
8613 * coffread.c (coff_symtab_read): Likewise.
8614 * dbxread.c (read_dbx_symtab): Ditto.
8615
8616 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8617
8618 PR gdb/12116:
8619 * configure.ac: Add getthrds declaration check.
8620 * configure, config.in: Regenerate.
8621 * aix-thread.c (getthrds): Declare only if not already declared
8622 in procinfo.h. More declaration out of get_signaled_thread to
8623 global scope.
8624
8625 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8626
8627 * python/py-symtab.c: Populate symtab_object_methods,
8628 sal_object_methods.
8629 (stpy_is_valid): New function.
8630 (salpy_is_valid): Ditto.
8631 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8632 (sympy_is_valid): New function.
8633 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8634 (objfpy_is_valid): New function.
8635 * python/py-inferior.c: Populate inferior_object_methods.
8636 (infpy_is_valid): New function.
8637 * python/py-infthread.c: Populate thread_object_methods.
8638 (thpy_is_valid): New function.
8639 * python/py-block.c: Declare block_object_methods. Populate. Declare
8640 block_iterator_object_methods. Populate.
8641 (blpy_is_valid): New function.
8642 (blpy_iter_is_valid): Ditto.
8643
8644 2011-03-16 Keith Seitz <keiths@redhat.com>
8645
8646 * linespec.c (find_methods): Canonicalize NAME before looking
8647 up the symbol.
8648 (name_end): New function.
8649 (keep_name_info): New function.
8650 (decode_line_1): Use keep_name_info.
8651 (decode_compound): Likewise.
8652 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8653 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8654
8655 PR c++/12273
8656 * linespec.c (locate_first_half): Keep overload information, too.
8657 (decode_compound): Use a string to represent break characters
8658 to escape the loop.
8659 If P points to a break character, do not increment it.
8660 For C++ and Java, keep overload information and relevant keywords.
8661 If we cannot find a symbol, search the minimal symbols.
8662
8663 PR c++/11734
8664 * linespec.c (decode_compound): Rename SAVED_ARG to
8665 THE_REAL_SAVED_ARG.
8666 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8667 single-quotes.
8668 Pass a valid block to lookup_symbol.
8669 (lookup_prefix_sym): Likewise.
8670 (find_method): Construct search name based on SYM_CLASS instead
8671 of SAVED_ARG.
8672 * psymtab.c (lookup_partial_symbol): Add language parameter.
8673 (lookup_symbol_aux_psymtabs): Likewise.
8674 Don't assume that the psymtab we found was the right one. Search
8675 for the desired symbol in the symtab to be certain.
8676 (psymtab_search_name): New function.
8677 (lookup_partial_symbol): Use psymtab_search_name.
8678 Add language parameter.
8679 (read_symtabs_for_function): Add language parameter and pass to
8680 lookup_partial_symbol.
8681 (find_symbol_file_from_partial): Likewise.
8682
8683 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8684
8685 PR gdb/12528
8686 * dwarf2read.c (noop_record_line): New function.
8687 (dwarf_decode_lines): Ignore line tables for GCd functions.
8688
8689 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8690
8691 Fix ARI warnings about new lines at the end of messages, which
8692 are unneeded as there is a new line added at the end of the message
8693 automatically.
8694 * darwin-nat.c (darwin_stop_inferior): Ditto.
8695 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8696 * dfp.c (decimal_to_number): Ditto.
8697 * exec.c (print_section_info): Ditto.
8698 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8699 * osdata.c (get_osdata): Ditto.
8700 * record.c (bfdcore_write): Ditto.
8701 * remote-mips.c (mips_readchar): Ditto.
8702 * remote.c (read_ptid): Ditto.
8703 * ser-mingw.c (ser_windows_raw): Ditto.
8704 * tracepoint.c (add_local_symbols): Ditto.
8705 * windows-nat.c (fake_create_process): Ditto.
8706
8707 2011-03-16 Tom Tromey <tromey@redhat.com>
8708
8709 * tracepoint.c (stop_tracing): Don't declare.
8710 * event-top.c (after_char_processing_hook): Add `(void)'.
8711
8712 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8713
8714 * NEWS: Add Parameter sub-classing description.
8715
8716 2011-03-16 Kai Tietz <ktietz@redhat.com>
8717
8718 * MAINTAINERS: Update my e-mail address.
8719
8720 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8721
8722 * MAINTAINERS: Add myself for write after approval privileges.
8723
8724 2011-03-15 Michael Snyder <msnyder@vmware.com>
8725
8726 * frame.c (find_frame_sal): Assert sym is not null.
8727
8728 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8729
8730 * objc-lang.c (selectors_info): Check strchr for null result.
8731
8732 * stabsread.c (define_symbol): Guard against bad stabstring input.
8733
8734 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8735
8736 Remove trailing spaces and tabulations from pascal language
8737 support sources.
8738 p-exp.y: Ditto.
8739 p-lang.c: Ditto.
8740 p-lang.h: Ditto.
8741 p-valprint.c: Ditto.
8742
8743 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8744
8745 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8746 than LOW. Comment it.
8747 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8748 HIGHPC not strictly higher than LOWPC.
8749
8750 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8751
8752 Fix formatting of function declarations returning a pointer in
8753 previous commit.
8754 * varobj.c (varobj_add_child): Ditto.
8755 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8756 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8757
8758 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8759
8760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8761 for the "generic" vector ABI used with GCC 4.3 and later.
8762 (ppc64_sysv_abi_return_value): Likewise.
8763
8764 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8765
8766 * infcall.c (call_function_by_hand): Function return value is
8767 always a non_lval, even when using struct_return.
8768
8769 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8770
8771 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8772 (map_display_numbers): New.
8773 (do_delete_display): New.
8774 (undisplay_command): Use map_display_numbers.
8775 (do_enable_disable_display): New.
8776 (enable_disable_display_command): New function.
8777 (enable_display): Delete.
8778 (enable_display_command): New.
8779 (disable_display_command): Reimplement.
8780 (_initialize_printcmd): Adjust "enable display" command to use
8781 `enable_display_command' as callback.
8782
8783 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8784
8785 * NEWS: Add Python breakpoint 'stop' operation.
8786
8787 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8788
8789 * NEWS: Delete duplicate entry. Fix typo.
8790
8791 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8792
8793 Fix ARI warning about function names in first column.
8794 Put prototype declaration on same line as return type.
8795 * objc-exp.y: Ditto.
8796 * p-exp.y: Ditto.
8797 * python/py-stopevent.h: Ditto.
8798 For long function names, split parameters to
8799 allow function name on same line as return type.
8800 * solib-pa64.c: Ditto.
8801 * varobj.c: Ditto.
8802 * varobj.h: Ditto.
8803 For long function declaration, use single line.
8804 * hppa-tdep.h: Ditto.
8805 * inferior.h: Ditto.
8806
8807 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8808
8809 * python/python.h: Declare gdbpy_should_stop and
8810 gdbpy_breakpoint_has_py_cond.
8811 * python/python.c: Add python.h to includes. Remove python.h from
8812 HAVE_PYTHON definition
8813 (gdbpy_should_stop): New dummy function.
8814 (gdbpy_breakpoint_has_py_cond): New dummy function.
8815 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8816 sub-classing capabilities.
8817 (gdbpy_should_stop): New function.
8818 (gdbpy_breakpoint_has_py_cond): New function.
8819 (local_setattro): New function.
8820 * breakpoint.c (condition_command): Add check for Python 'stop'
8821 operation.
8822 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8823 operation function as part of stop/continue tests.
8824
8825 2011-03-14 Tom Tromey <tromey@redhat.com>
8826
8827 PR gdb/12576:
8828 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8829 (needs_frame_dwarf_call): Likewise.
8830
8831 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8832
8833 Fix ARI warning about functions without parameters that do not
8834 use (void).
8835 * breakpoint.c (all_tracepoints): Replace () by (void).
8836 * f-exp.y (match_string_literal): Ditto.
8837 (yylex): Ditto.
8838 * m2-exp.y (yylex): Ditto.
8839 * mep-tdep.c (current_me_module): Ditto.
8840 (current_options): Ditto.
8841 (current_cop_data_bus_width): Ditto.
8842 (current_cr_names): Ditto.
8843 (current_cr_is_float): Ditto.
8844 (current_ccr_names): Ditto.
8845 * objc-exp.y (yylex): Ditto.
8846 * p-exp.y (yylex): Ditto.
8847 * remote.c (send_interrupt_sequence): Ditto.
8848 * tracepoint.c (current_trace_status): Ditto.
8849 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8850 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8851
8852 2011-03-11 Michael Snyder <msnyder@vmware.com>
8853
8854 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8855 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8856 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8857 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8858 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8859
8860 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8861 (delete_async_event_handler): Ditto.
8862
8863 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8864
8865 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8866
8867 * top.c (set_verbose): Assert showcmd was found.
8868
8869 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8870
8871 * xtensa-tdep.c (warning_once): Correct style issues.
8872
8873 2011-03-11 Yao Qi <yao@codesourcery.com>
8874
8875 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8876
8877 2011-03-11 Andreas Schwab <schwab@redhat.com>
8878
8879 * common/aclocal.m4: Remove.
8880
8881 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8882
8883 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8884 (xtensa_write_register, xtensa_read_register): Likewise.
8885 (xtensa_hextochar): Removed.
8886 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8887
8888 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8889
8890 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8891 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8892 (xtensa_alloc_frame_cache): Add initialization for new fields.
8893 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8894 (warning_once): New function.
8895 (xtensa_insn_kind): New item c0opc_and.
8896 (call0_classify_opcode): Add the case for AND instruction.
8897 (call0_track_op): Change arguments. New local variable litbase.
8898 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8899 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8900 in the prologue.
8901 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8902 (call0_analyze_prologue): Update the comments. Change arguments.
8903 Add the variety of updates to handle extended prologues, which now can
8904 conduct dynamic stack adjustments.
8905 (call0_frame_cache): Likewise.
8906 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8907 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8908
8909 2011-03-10 Michael Snyder <msnyder@vmware.com>
8910
8911 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8912 (cmd_qtframe): Ditto.
8913 (cmd_qtbuffer): Ditto.
8914 (cmd_bigqtbuffer): Ditto.
8915
8916 2011-03-10 Tom Tromey <tromey@redhat.com>
8917
8918 * tracepoint.c (trace_actions_command): Update.
8919 * thread.c (thread_apply_command): Update.
8920 * reverse.c (delete_bookmark_command): Update.
8921 (bookmarks_info): Update.
8922 * printcmd.c (undisplay_command): Update.
8923 * memattr.c (mem_enable_command): Update.
8924 (mem_disable_command): Update.
8925 (mem_delete_command): Update.
8926 * inferior.c (detach_inferior_command): Update.
8927 (kill_inferior_command): Update.
8928 (remove_inferior_command): Update.
8929 * cli/cli-utils.h (struct get_number_or_range_state): New.
8930 (init_number_or_range): Declare.
8931 (get_number_or_range): Update.
8932 * cli/cli-utils.c (init_number_or_range): New function.
8933 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8934 static variables.
8935 (number_is_in_list): Update.
8936 * breakpoint.h (get_tracepoint_by_number): Update.
8937 * breakpoint.c (map_breakpoint_numbers): Update for change to
8938 get_number_or_range.
8939 (find_location_by_number): Use get_number, not
8940 get_number_or_range.
8941 (trace_pass_set_count): New function.
8942 (trace_pass_command): Update for change to get_number_or_range.
8943 Rework loop logic.
8944 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8945 'state' parameter.
8946
8947 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8948
8949 * python/py-param.c (add_setshow_generic): Add set/show callback
8950 parameters. Register Python object context.
8951 (get_show_value): New function.
8952 (get_set_value): New function.
8953 (call_doc_function): New function.
8954 (get_doc_string): Move behind get_show_value/get_set_value.
8955
8956 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8957
8958 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8959
8960 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8961
8962 * xtensa-tdep.c (xtensa_read_register): Add comment.
8963 (xtensa_write_register): Likewise.
8964 (xtensa_hextochar): Add comment and update to match coding conventions.
8965 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8966 (execute_l32e, execute_s32e, execute_code): Update comments.
8967 (xtensa_exception_handler_t): Update to match coding conventions.
8968 (xtensa_insn_kind): Likewise.
8969
8970 2011-03-09 Michael Snyder <msnyder@vmware.com>
8971
8972 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8973
8974 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8975
8976 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8977
8978 2011-03-09 Tom Tromey <tromey@redhat.com>
8979
8980 * thread.c (restore_selected_frame): Handle frame_level == -1.
8981 (make_cleanup_restore_current_thread): Use
8982 get_selected_frame_if_set.
8983 * frame.h (get_selected_frame_if_set): Declare.
8984 * frame.c (get_selected_frame_if_set): New function.
8985
8986 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8987
8988 * cli/cli-cmds.c (shell_escape): Use lbasename.
8989 * coffread.c (coff_start_symtab): Constify parameter.
8990 (complete_symtab): Constify `name' parameter.
8991 (coff_symtab_read): Constify `filestring' local.
8992 (coff_getfilename): Constify return and `result' local.
8993 Use lbasename.
8994 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8995 * linux-fork.c (info_checkpoints_command): Use lbasename.
8996 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8997 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8998 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8999 * procfs.c (procfs_make_note_section): Use lbasename.
9000 * tui/tui-io.c (printable_part): Constity return and parameter.
9001 Use lbasename.
9002 (print_filename): Constify parameters, and local `s'.
9003 (tui_rl_display_match_list): Constify local `temp'.
9004
9005 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 Revert:
9008 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9009 Fix DWARF-3+ DW_AT_accessibility default assumption.
9010 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9011 cu->header.version >= 3.
9012
9013 2011-03-09 Yao Qi <yao@codesourcery.com>
9014
9015 * common/Makefile.in: Remove.
9016 * common/configure: Remove.
9017 * common/configure.ac: Remove.
9018
9019 2011-03-09 Yao Qi <yao@codesourcery.com>
9020
9021 Revert:
9022 2011-02-11 Yao Qi <yao@codesourcery.com>
9023
9024 * common/Makefile.in: Add copyright header.
9025
9026 2011-02-11 Yao Qi <yao@codesourcery.com>
9027
9028 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9029 libcommon.a.
9030 * configure.ac: Add common to sub dir.
9031 * configure: Regenerate.
9032
9033 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9034
9035 * xtensa-tdep.c (call0_ret): New function.
9036 (xtensa_skip_prologue): Speed up analysis.
9037
9038 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9039
9040 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9041 while executing MI command -data-list-changed-registers.
9042
9043 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9044
9045 * xtensa-tdep.c (xtensa_read_register): New function.
9046 (xtensa_write_register): New function.
9047 (xtensa_find_register_by_name): New function.
9048 (xtensa_windowed_frame_cache): Update comments in type description.
9049 (xtensa_frame_cache): Likewise.
9050 (xtensa_window_interrupt_insn): New function.
9051 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9052 (xtensa_insn_kind): Add new instructions.
9053 (rwx_special_register): New function.
9054 (call0_classify_opcode): Add new instructions to the analysis.
9055 (a0_saved, a7_saved, a11_saved): New variables.
9056 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9057 (execute_l32e): New function.
9058 (execute_s32e): New function.
9059 (xtensa_exception_handler_t): New type.
9060 (execute_code): New function.
9061 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9062 analysis for Xtensa Window Exception handlers.
9063
9064 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9065
9066 * xtensa-tdep.c (TX_PS): New.
9067 (windowing_enabled): Update to count for Call0 ABI.
9068 (xtensa_hextochar): New.
9069 (xtensa_init_reggroups): Make algorithm generic.
9070 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9071
9072 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9073
9074 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9075
9076 2011-03-08 Michael Snyder <msnyder@vmware.com>
9077
9078 * i386-tdep.c (i386_follow_jump): Check return value of
9079 target_read_memory.
9080 (i386_analyze_struct_return): Ditto.
9081 (i386_skip_probe): Ditto.
9082 (i386_match_insn): Ditto.
9083 (i386_skip_noop): Ditto.
9084 (i386_analyze_frame_setup): Ditto.
9085 (i386_analyze_register_saves): Ditto.
9086 (i386_skip_prologue): Ditto.
9087 (i386_skip_main_prologue): Ditto.
9088
9089 * target.c (read_whatever_is_readable): Fix memory leak.
9090
9091 * i386-tdep.c (i386_process_record): Document fall through.
9092
9093 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9094
9095 Fix DWARF-3+ DW_AT_accessibility default assumption.
9096 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9097 cu->header.version >= 3.
9098
9099 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9100
9101 * remote.c (remote_check_symbols): Skip if the target has no
9102 execution.
9103
9104 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9105
9106 * target.c (read_whatever_is_readable): Reformat comment,
9107 with a minor typo fix. Minor reformatting of the code.
9108
9109 2011-03-08 Yao Qi <yao@codesourcery.com>
9110
9111 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9112 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9113 Use cached result instead of calling displaced_in_arm_mode again.
9114 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9115 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9116 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9117 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9118 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9119 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9120 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9121 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9122 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9123 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9124 (arm_catch_kernel_helper_return): Likewise.
9125 * gdb/arm-tdep.h : Update function declarations.
9126
9127 2011-03-07 Michael Snyder <msnyder@vmware.com>
9128
9129 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9130
9131 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9132
9133 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9134
9135 * elfread.c (elf_symtab_read): Stop memory leak.
9136
9137 * main.c (captured_main): Fix memory leak.
9138
9139 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9140
9141 * ada-lang.c (compare_names): Call is_name_suffix with string1
9142 instead of string2.
9143
9144 2011-03-07 Tom Tromey <tromey@redhat.com>
9145
9146 * xcoffread.c (xcoff_sym_fns): Update.
9147 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9148 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9149 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9150 (symbol_file_add_with_addrs_or_offsets): Likewise.
9151 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9152 * somread.c (som_sym_fns): Update.
9153 * psymtab.h (require_partial_symbols): Declare.
9154 * psymtab.c (require_partial_symbols): New function.
9155 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9156 (ALL_OBJFILE_PSYMTABS): Undef.
9157 (ALL_PSYMTABS): Move from psympriv.h.
9158 (lookup_partial_symtab, find_pc_sect_psymtab)
9159 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9160 (find_last_source_symtab_from_partial)
9161 (forget_cached_source_info_partial)
9162 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9163 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9164 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9165 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9166 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9167 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9168 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9169 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9170 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9171 psymtabs.
9172 * mipsread.c (ecoff_sym_fns): Update.
9173 * machoread.c (macho_sym_fns): Update.
9174 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9175 (read_psyms): New function.
9176 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9177 (elf_sym_fns_lazy_psyms): New global.
9178 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9179 dwarf2_build_psymtabs.
9180 * dbxread.c (aout_sym_fns): Update.
9181 * coffread.c (coff_sym_fns): Update.
9182
9183 2011-03-07 Tom Tromey <tromey@redhat.com>
9184
9185 * infrun.c (print_exited_reason): Include inferior id and pid in
9186 message.
9187
9188 2011-03-07 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9191 parameter.
9192 (target_has_execution_1): Update.
9193 (target_has_execution_current): Declare.
9194 (target_has_execution): Call target_has_execution_current.
9195 (default_child_has_execution): Update.
9196 * target.c (default_child_has_execution): Add 'the_ptid'
9197 parameter.
9198 (target_has_execution_1): Likewise.
9199 (target_has_execution_current): New function.
9200 (add_target): Update.
9201 (init_dummy_target): Update.
9202 * remote-m32r-sdi.c (m32r_has_execution): New function.
9203 (init_m32r_ops): Use it.
9204 * record.c (record_core_has_execution): Now static. Add
9205 'the_ptid' parameter.
9206 * inferior.c (have_live_inferiors): Don't save current thread.
9207 Use target_has_execution_1.
9208
9209 2011-03-07 Yao Qi <yao@codesourcery.com>
9210
9211 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9212
9213 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9214
9215 * elfread.c (elf_symtab_read): Minor reformatting.
9216
9217 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9218
9219 * objc-lang.c (selectors_info): Minor reformatting.
9220
9221 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9222
9223 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9224
9225 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9226 Michael Snyder <msnyder@vmware.com>
9227
9228 * ada-valprint.c (ada_val_print_array): Move the declaration of
9229 "byte_order" and "elttype" inside the block where these variables
9230 are actually used. Remove some special handling for the case
9231 where "elttype" and "eltlen" are null. Replace by a comment
9232 and a couple of assertion checks.
9233
9234 2011-03-05 Michael Snyder <msnyder@vmware.com>
9235
9236 * source.c (add_path): Replace semicolon at end of block.
9237 * dwarf2expr.c (execute_stack_op): Ditto.
9238
9239 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9240
9241 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9242 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9243 (bfin-*-*): Likewise.
9244
9245 2011-03-05 Michael Snyder <msnyder@vmware.com>
9246
9247 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9248 * mdebugread.c (parse_symbol): Ditto.
9249 * parse.c (parse_exp_in_context): Ditto.
9250 * source.c (add_path): Ditto.
9251 * utils.c (gnu_debuglink_crc32): Ditto.
9252 * varobj.c (variable_language): Ditto.
9253
9254 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9255
9256 2011-03-04 Michael Snyder <msnyder@vmware.com>
9257
9258 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9259
9260 * symfile.c (simple_overlay_update): Check for null return value
9261 from lookup_minimal_symbol.
9262
9263 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9264
9265 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9266
9267 * eval.c (parse_and_eval_address_1): Remove function.
9268 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9269 instead of parse_and_eval_address_1.
9270 * value.h (parse_and_eval_address_1): Remove prototype.
9271
9272 2011-03-04 Michael Snyder <msnyder@vmware.com>
9273
9274 * remote.c (putpkt_binary): Document that case stmt falls through.
9275
9276 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9277
9278 * breakpointc (print_it_typical): Move NULL check from here...
9279 (print_bp_stop_message): ... to here.
9280
9281 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9282
9283 * breakpoint.c (enable_command): Use break instead of continue,
9284 and fill in a missing break.
9285 (disable_command): Ditto.
9286
9287 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9288
9289 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9290 (terminal_save_ours): Remove misleading comment.
9291 (inflow_inferior_data_cleanup): Free ttystate.
9292 (inflow_inferior_exit): Likewise.
9293 (copy_terminal_info): Copy ttystate.
9294
9295 * serial.c (serial_copy_tty_state): New function.
9296 * serial.h (serial_copy_tty_state): Add prototype.
9297 (struct serial_ops): Add copy_tty_state callback.
9298 * ser-base.c (ser_base_copy_tty_state): New function.
9299 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9300 * ser-go32.c (dos_copy_tty_state): New function.
9301 (dos_ops): Install copy_tty_state callback.
9302 * ser-mingw.c (_initialize_ser_windows): Likewise.
9303 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9304 * ser-unix.c (hardwire_copy_tty_state): New function.
9305 (_initialize_ser_hardwire): Install it.
9306
9307 2011-03-04 Michael Snyder <msnyder@vmware.com>
9308
9309 * breakpoint.c (create_breakpoint): Add missing break statement.
9310
9311 Reverting this patch:
9312 * infcall.c (call_function_by_hand): Add break statements for lint.
9313
9314 Reverting this patch:
9315 * cli/cli-script.c (script_from_file): Add break for lint.
9316
9317 2011-03-04 Michael Snyder <msnyder@vmware.com>
9318
9319 * solib.c (reload_shared_libraries_1): Close memory leak.
9320
9321 2011-03-03 Tom Tromey <tromey@redhat.com>
9322
9323 PR gdb/12538:
9324 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9325 DW_STRING is NULL.
9326
9327 2011-03-03 Michael Snyder <msnyder@vmware.com>
9328
9329 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9330 fields of struct 'st' to zero.
9331
9332 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9333 sal.pspace before calling set_current_source_symtab_and_line.
9334
9335 2011-03-03 Yao Qi <yao@codesourcery.com>
9336
9337 * Makefile.in (configure-common): Remove. Let Makefile
9338 in dir common to rebuild itself.
9339 (common/Makefile): Likewise.
9340
9341 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9342
9343 * utils.c (parse_escape): Add i18n markup in error message.
9344
9345 2011-03-03 Yao Qi <yao@codesourcery.com>
9346
9347 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9348 ARM_PC_REGNUM.
9349 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9350 (displaced_write_reg, displaced_read_reg): Likewise.
9351 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9352 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9353 (cleanup_branch): Replace magic number 14 and 15 with
9354 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9355
9356 2011-03-02 Michael Snyder <msnyder@vmware.com>
9357
9358 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9359
9360 * cli/cli-script.c (script_from_file): Add break for lint.
9361
9362 * mdebugread.c (parse_partial_symbols): Fix indent.
9363
9364 * target-descriptions.c (tdesc_gdb_type): No need to call
9365 xstrdup, callee saves a copy.
9366
9367 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9368
9369 * infcall.c (call_function_by_hand): Add break statements for lint.
9370
9371 * utils.c (parse_escape): Escape the escape char.
9372
9373 * python/py-inferior.c (build_inferior_list): Error out if
9374 PyList_Append fails.
9375 (gdbpy_inferiors): Error out if build_inferior_list fails.
9376
9377 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9378 a function call.
9379
9380 * record.c (record_restore): Move printf to before error return.
9381
9382 2011-03-02 Yao Qi <yao@codesourcery.com>
9383
9384 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9385 is_thumb and insn_size.
9386 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9387 on both ARM and Thumb mode.
9388 (arm_process_displaced_insn): Set is_thumb and insn_size.
9389 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9390 (arm_displaced_step_fixup): Likewise.
9391
9392 2011-03-01 Michael Snyder <msnyder@vmware.com>
9393
9394 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9395
9396 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9397
9398 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9399
9400 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9401
9402 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9403 with xmalloc.
9404
9405 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9406 which shadows function parameter.
9407
9408 * tracepoint.c (create_tsv_from_upload): Superfluous call
9409 to xstrdup. Callee already calls xstrdup.
9410
9411 * linespec.c (decode_line_1): Remove unnecessary null check.
9412
9413 * tracepoint.c (scope_info): Fix mem leak, remove underused
9414 variable.
9415
9416 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9417 superfluous null check.
9418
9419 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9420 (value_of_builtin_frame_fp_reg): Ditto.
9421
9422 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9423
9424 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9425 be null.
9426
9427 * linespec.c (decode_line_1): Check for null before dereference.
9428
9429 * reverse.c (record_restore): Move null-check to before pointer
9430 dereference.
9431
9432 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9433
9434 * objc-lang.c (selectors_info): Add explanitory comment.
9435 (classes_info): Ditto.
9436
9437 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9438
9439 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9440 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9441 versions of the trampoline. Handle Thumb vs. ARM addresses.
9442 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9443 (arm_linux_init_abi): Install it.
9444 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9445 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9446
9447 2011-02-28 Michael Snyder <msnyder@vmware.com>
9448
9449 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9450 a little bigger, to avoid possibility of an overflow.
9451
9452 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9453 buffers a little bigger, to avoid possibility of an overflow.
9454
9455 * coffread.c (coff_getfilename): Add check to avoid overflow.
9456
9457 * objc-lang.c (selectors_info): Add a small safety margin to
9458 avoid overflow.
9459 (classes_info): Error out on too long REGEXP.
9460
9461 * infrun.c (handle_inferior_event): Remove unused function call.
9462
9463 * fork-child.c (fork_inferior): Remove ifdef'd code and
9464 unused variable.
9465
9466 * linux-thread-db.c (attach_thread): Discard unused value.
9467
9468 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9469
9470 * remote.c (remote_get_noisy_reply): Discard unused value.
9471 (remote_vcont_resume): Ditto.
9472 (remote_stop_ns): Ditto.
9473
9474 * linespec.c (decode_objc): Delete unused variable.
9475
9476 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9477
9478 * dwarf2read.c (add_partial_symbol): Discard unused values.
9479 (read_base_type): Delete unused variable.
9480
9481 * dbxread.c (read_dbx_symtab): Discard unused value.
9482
9483 * eval.c (evaluate_subexp_standard): Delete unused variable,
9484 and discard unused values.
9485
9486 * infcmd.c (_initialize_infcmd): Discard unused values.
9487
9488 * stabsread.c (rs6000_builtin_type): Missing break statement.
9489
9490 * dbxread.c (process_one_symbol): Discard unused value.
9491
9492 * coffread.c (coff_end_symtab): Delete unused variable.
9493
9494 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9495 (dwarf2_add_typedef): Delete unused variable.
9496 (read_namespace): Ditto.
9497 (dwarf_decode_macros): Ditto.
9498
9499 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9500
9501 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9502
9503 * p-valprint.c (pascal_val_print): Discard unused value.
9504
9505 * utils.c (nquery): Call va_end before return;
9506 (yquery): Ditto.
9507 (query): Ditto.
9508
9509 * proc-service.c (ps_plog): Call va_end before return.
9510
9511 2011-02-28 Tom Tromey <tromey@redhat.com>
9512
9513 * python/python.c (gdbpy_value_cst): New global.
9514 (_initialize_python): Initialize it.
9515 * python/python-internal.h (gdbpy_value_cst): Declare.
9516 * python/py-value.c (convert_value_from_python): Use
9517 gdbpy_value_cst.
9518
9519 2011-02-28 Michael Snyder <msnyder@vmware.com>
9520
9521 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9522
9523 * breakpoint.c (catch_syscall_completer): Free malloced list.
9524
9525 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9526
9527 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9528 (lval_func_check_synthetic_pointer): Ditto.
9529 (lval_func_free_closure): Fix use-after-free.
9530
9531 2011-02-28 Tom Tromey <tromey@redhat.com>
9532
9533 * psymtab.c (expand_partial_symbol_tables): Use
9534 ALL_OBJFILE_PSYMTABS.
9535
9536 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 * objc-lang.c (selectors_info): Error on too long REGEXP.
9539
9540 2011-02-28 Michael Snyder <msnyder@vmware.com>
9541
9542 * python/py-param.c (set_parameter_value): Add missing
9543 break statement.
9544
9545 * linux-record.c (record_linux_system_call): Add missing
9546 break statement.
9547
9548 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9549
9550 * breakpoint.c (print_one_breakpoint_location): Remove unused
9551 argument PRINT_ADDRESS_BITS. Update callers.
9552 (print_one_breakpoint): Likewise.
9553
9554 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9555
9556 * breakpoint.c (wrap_indent_at_field): New function.
9557 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9558 Allocate ui_stream locally instead of using STB argument.
9559 (print_one_breakpoint_location): Update call.
9560 * ui-out.c (ui_out_query_field): New function.
9561 * ui-out.h (ui_out_query_field): Add prototype.
9562
9563 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9564
9565 From Michael Snyder <msnyder@vmware.com>
9566 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9567
9568 2011-02-27 Michael Snyder <msnyder@vmware.com>
9569
9570 * objc-lang.c (selectors_info): Prevent string overrun.
9571
9572 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9573 error in strncpy.
9574
9575 * symtab.c (rbreak_command): Move variable 'file_name' to
9576 outer scope.
9577
9578 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9579 param with a local variable of the same name.
9580
9581 2011-02-27 Michael Snyder <msnyder@vmware.com>
9582
9583 * value.c (value_from_history_ref): New function.
9584 * value.h (value_from_history_ref): Export.
9585 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9586 to parse value history references.
9587 * cli/cli-utils.h (get_number_trailer): Update comment.
9588
9589 2011-02-27 Michael Snyder <msnyder@vmware.com>
9590
9591 * inferior.c (detach_inferior_command): Use get_number_or_range.
9592 (kill_inferior_command): Ditto.
9593 (remove_inferior_command): Ditto.
9594 (initialize_inferiors): Make command names plural.
9595 Update help strings.
9596
9597 2011-02-27 Michael Snyder <msnyder@vmware.com>
9598
9599 * darwin-nat-info.c: Fix comment typo.
9600 * dwarf2expr.h: Ditto.
9601 * fbsd-nat.c: Ditto.
9602 * fbsd-nat.h: Ditto.
9603 * frame-unwind.h: Ditto.
9604 * frame.h: Ditto.
9605 * hppa-hpux-tdep.c: Ditto.
9606 * i386-linux-nat.c: Ditto.
9607 * linux-nat.c: Ditto.
9608 * nbsd-nat.c: Ditto.
9609 * nbsd-nat.h: Ditto.
9610 * ppc-linux-tdep.c: Ditto.
9611 * serial.c: Ditto.
9612 * ui-file.h: Ditto.
9613 * tui/tui-winsource.c: Ditto.
9614
9615 2011-02-26 Michael Snyder <msnyder@vmware.com>
9616
9617 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9618
9619 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9620
9621 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9622 with a local variable of the same name.
9623
9624 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9625 param with a local variable of the same name.
9626 (i387_supply_xsave): Ditto.
9627
9628 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9629 that it does not shadow a function parameter.
9630
9631 * i386-nat.c (i386_length_and_rw_bits): Document that case
9632 statement is meant to fall through.
9633
9634 * expprint.c (dump_subexp_body_standard): Document that case
9635 statement is meant to fall through.
9636
9637 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9638 dead if statement. Condition can't be false.
9639
9640 2011-02-25 Michael Snyder <msnyder@vmware.com>
9641
9642 * arm-tdep.c: Fix typos in comments.
9643 * bsd-uthread.c: Ditto.
9644 * completer.c: Ditto.
9645 * corelow.c: Ditto.
9646 * cp-namespace.c: Ditto.
9647 * cp-support.c: Ditto.
9648 * cris-tdep.c: Ditto.
9649 * dbxread.c: Ditto.
9650 * dwarf2read.c: Ditto.
9651 * frame.h: Ditto.
9652 * gdbtypes.h: Ditto.
9653 * inferior.h: Ditto.
9654 * mdebugread.c: Ditto.
9655 * mips-tdep.c: Ditto.
9656 * ppc-linux-nat.c: Ditto.
9657 * ppc-linux-tdep.c: Ditto.
9658 * printcmd.c: Ditto.
9659 * sol-thread.c: Ditto.
9660 * solib-frv.c: Ditto.
9661 * solist.h: Ditto.
9662 * sparc64-tdep.c: Ditto.
9663 * spu-tdep.c: Ditto.
9664 * stabsread.c: Ditto.
9665 * symfile.c: Ditto.
9666 * valops.c: Ditto.
9667 * varobj.c: Ditto.
9668 * vax-nat.c: Ditto.
9669 * python/py-block.c: Ditto.
9670 * python/py-symbol.c: Ditto.
9671 * python/py-symtab.c: Ditto.
9672 * python/py-value.c: Ditto.
9673 * tui/tui-win.c: Ditto.
9674
9675 2011-02-25 Michael Snyder <msnyder@vmware.com>
9676
9677 * inferior.c (print_inferior): Accept a string instead of an int
9678 for requested_inferiors, and use get_number_or_range to parse it.
9679 (info_inferiors_command): Pass args string to print_inferior.
9680 (initialize_inferiors): Change help string for info inferiors.
9681 * inferior.h (print_inferior): Export prototype change.
9682
9683 2011-02-25 Tom Tromey <tromey@redhat.com>
9684
9685 * common/ax.def (invalid2): Set to 0x31.
9686
9687 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9688
9689 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9690 L and plongest.
9691 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9692 use L and plongest.
9693 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9694
9695 2011-02-24 Michael Snyder <msnyder@vmware.com>
9696
9697 * Makefile.in (clean): Make clean should remove generated files
9698 observer.h and observer.inc.
9699
9700 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9701
9702 Revert the following patch (not approved yet):
9703 2011-02-21 Hui Zhu <teawater@gmail.com>
9704 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9705 * ax-gdb.c (gen_printf_expr_callback): New function.
9706 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9707 * ax-general.c (ax_memcpy): New function.
9708 (ax_print): Handle "printf".
9709 (ax_reqs): Ditto.
9710 * ax.h (ax_memcpy): Forward declare.
9711 * common/ax.def (invalid2): Removed.
9712 (printf): New entry.
9713 * printcmd.c (printcmd.h): New include.
9714 (string_printf): New function.
9715 (ui_printf): Removed.
9716 (printf_command): Remove static. Call string_printf.
9717 (eval_command): Call string_printf.
9718 * printcmd.h: New file.
9719 * tracepoint.c (validate_actionline,
9720 encode_actions_1): handle printf_command.
9721
9722 2011-02-23 Tom Tromey <tromey@redhat.com>
9723
9724 * ax-general.c (ax_pick): Add missing newline.
9725
9726 2011-02-23 Michael Snyder <msnyder@vmware.com>
9727
9728 * breakpoint.c (breakpoint_1): Change first argument from an int
9729 to a char pointer, so that the function now accepts a list of
9730 breakpoints rather than just one. Use new function
9731 'number_is_in_list' to implement.
9732 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9733 (watchpoints_info): Ditto.
9734 (tracepoints_info): Ditto.
9735 (maintenance_info_breakpoints): Ditto.
9736 (_initialize_breakpoint): Update help strings to reflect the fact
9737 that these functions can now take more than one argument.
9738 * cli/cli-utils.c (number_is_in_list): New function.
9739 * cli/cli-utils.h (number_is_in_list): Export.
9740
9741 2011-02-23 Michael Snyder <msnyder@vmware.com>
9742
9743 * memattr.c (mem_enable_command): Use get_number_or_range.
9744 (mem_disable_command): Ditto.
9745 (mem_delete_command): Ditto.
9746 (_initialize_mem): Tweak usage message to reflect multiple
9747 arguments.
9748
9749 2011-02-22 Doug Evans <dje@google.com>
9750
9751 Add gdb.lookup_global_symbol python function.
9752 * NEWS: Add entry.
9753 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9754 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9755 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9756
9757 2011-02-22 Tom Tromey <tromey@redhat.com>
9758
9759 * language.c (language_class_name_from_physname): Rename
9760 'curr_language' argument to 'lang'; use in body.
9761
9762 2011-02-22 Michael Snyder <msnyder@vmware.com>
9763
9764 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9765
9766 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9767
9768 * frame-unwind.h: Fix comment to mention the this frame, not the
9769 next.
9770
9771 2011-02-22 Tom Tromey <tromey@redhat.com>
9772
9773 * symfile.c (auto_solib_limit): Remove.
9774 * symfile.h (auto_solib_limit): Remove.
9775
9776 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9777
9778 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9779
9780 2011-02-21 Michael Snyder <msnyder@vmware.com>
9781
9782 * gdbthread.h (print_thread_info): Change prototype.
9783 * thread.c (print_thread_info): Accept char* instead of int for
9784 requested_threads argument. Use new function number_is_in_list
9785 to determine which threads to list.
9786 (info_threads_command): Pass char* to print_thread_info.
9787 * cli/cli-utils.c (number_is_in_list): New function.
9788 * cli/cli-utils.h (number_is_in_list): Export.
9789 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9790 print_thread_info.
9791 (print_one_inferior): Ditto.
9792 (mi_cmd_list_thread_groups): Ditto.
9793
9794 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 * common/Makefile.in (CFLAGS): New.
9797 (COMPILE): Add $(CFLAGS).
9798
9799 2011-02-21 Tom Tromey <tromey@redhat.com>
9800
9801 * breakpoint.c (catch_syscall_command_1): Fix typo.
9802
9803 2011-02-21 Tom Tromey <tromey@redhat.com>
9804
9805 * reverse.c: Include cli-utils.h.
9806 * printcmd.c: Include cli-utils.h.
9807 (string_printf): Use skip_spaces.
9808 * cli/cli-utils.h: New file.
9809 * cli/cli-utils.c: New file.
9810 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9811 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9812 * breakpoint.h (get_number, get_number_or_range): Move to
9813 cli-utils.h.
9814 * breakpoint.c: Include cli-utils.h.
9815 (get_number_trailer, get_number, get_number_or_range)
9816 (ep_skip_leading_whitespace): Move to cli-utils.c.
9817 (create_breakpoint_sal, find_condition_and_thread)
9818 (decode_static_tracepoint_spec, watch_command_1)
9819 (watch_maybe_just_location, ep_parse_optional_if_clause)
9820 (catch_fork_command_1, catch_exec_command_1)
9821 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9822 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9823 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9824 (HFILES_NO_SRCDIR): Add cli-utils.h.
9825 (cli-utils.o): New target.
9826
9827 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9828
9829 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9830 before calling discard_all_inferiors.
9831
9832 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9833
9834 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9835 (struct builtin_opencl_type): Remove.
9836 (builtin_opencl_type): Change return type to "struct type **".
9837 (lookup_opencl_vector_type): Update caller.
9838 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9839 (build_opencl_types): Install plain array of "struct type *"
9840 instead of "struct builtin_opencl_type".
9841
9842 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9843 Ulrich Weigand <uweigand@de.ibm.com>
9844
9845 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9846 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9847 (struct arm_linux_hwbp_cap): New type.
9848 (arm_linux_get_hwbp_cap): New function.
9849 (arm_linux_get_hw_breakpoint_count): Likewise.
9850 (arm_linux_get_hw_watchpoint_count): Likewise.
9851 (arm_linux_can_use_hw_breakpoint): Likewise.
9852 (arm_hwbp_type): New type.
9853 (arm_hwbp_control_t): Likewise.
9854 (struct arm_linux_hw_breakpoint): Likewise.
9855 (struct arm_linux_thread_points): Likewise.
9856 (arm_threads): New global variable.
9857 (arm_linux_find_breakpoints_by_tid): New function.
9858 (arm_hwbp_control_initialize): Likewise.
9859 (arm_hwbp_control_is_enabled): Likewise.
9860 (arm_hwbp_control_disable): Likewise.
9861 (arm_linux_hw_breakpoint_initialize): Likewise.
9862 (arm_linux_get_hwbp_type): Likewise.
9863 (arm_linux_hw_watchpoint_initialize): Likewise.
9864 (arm_linux_hw_breakpoint_equal): Likewise.
9865 (arm_linux_insert_hw_breakpoint1): Likewise.
9866 (arm_linux_remove_hw_breakpoint1): Likewise.
9867 (arm_linux_insert_hw_breakpoint): Likewise.
9868 (arm_linux_remove_hw_breakpoint): Likewise.
9869 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9870 (arm_linux_insert_watchpoint): Likewise.
9871 (arm_linux_remove_watchpoint): Likewise.
9872 (arm_linux_stopped_data_address): Likewise.
9873 (arm_linux_stopped_by_watchpoint): Likewise.
9874 (arm_linux_watchpoint_addr_within_range): Likewise.
9875 (arm_linux_new_thread): Likewise.
9876 (arm_linux_thread_exit): Likewise.
9877 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9878 related target callbacks. Register arm_linux_new_thread and
9879 arm_linux_thread_exit.
9880 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9881 * arm-tdep.c (arm_pc_is_thumb): Make global.
9882 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9883
9884 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9885
9886 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9887 per-frame locations while within a function epilogue.
9888
9889 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9890
9891 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9892 to GNU coding standards.
9893
9894 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9895
9896 Allow use of mingw native on Windows 95 OS.
9897 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9898 (ser_windows_close): Only call CancelIo if function exists.
9899 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9900 to check for existence of CancelIo function in kernel32 DLL.
9901
9902 2011-02-21 Hui Zhu <teawater@gmail.com>
9903
9904 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9905 * ax-gdb.c (gen_printf_expr_callback): New function.
9906 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9907 * ax-general.c (ax_memcpy): New function.
9908 (ax_print): Handle "printf".
9909 (ax_reqs): Ditto.
9910 * ax.h (ax_memcpy): Forward declare.
9911 * common/ax.def (invalid2): Removed.
9912 (printf): New entry.
9913 * printcmd.c (printcmd.h): New include.
9914 (string_printf): New function.
9915 (ui_printf): Removed.
9916 (printf_command): Remove static. Call string_printf.
9917 (eval_command): Call string_printf.
9918 * printcmd.h: New file.
9919 * tracepoint.c (validate_actionline,
9920 encode_actions_1): handle printf_command.
9921
9922 2011-02-19 Michael Snyder <msnyder@vmware.com>
9923
9924 * reverse.c (delete_one_bookmark): Argument is now bookmark
9925 id rather than pointer to bookmark struct.
9926 (delete_bookmark_command): Use get_number_or_range.
9927 (goto_bookmark_command): Parse with get_number instead of strtoul.
9928 (bookmark_1): New function. Print info for one bookmark.
9929 (bookmarks_info): Use get_number_or_range and bookmark_1.
9930
9931 2011-02-18 Michael Snyder <msnyder@vmware.com>
9932
9933 * thread.c (info_threads_command): Re-implement using
9934 get_number_or_range.
9935 (thread_apply_command): Ditto.
9936
9937 2011-02-18 Tom Tromey <tromey@redhat.com>
9938
9939 * common/ax.def: New file.
9940 * ax.h (enum agent_op): Use ax.def.
9941 * ax-general.c (aop_map): Use ax.def.
9942
9943 2011-02-18 Tom Tromey <tromey@redhat.com>
9944
9945 * ax-general.c (aop_map): Add pick and rot.
9946 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9947 <DW_OP_rot>: Implement.
9948 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9949 (ax_pick): Declare.
9950 * ax-general.c (ax_pick): New function.
9951
9952 2011-02-18 Tom Tromey <tromey@redhat.com>
9953
9954 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9955
9956 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9957 Tom Tromey <tromey@redhat.com>
9958
9959 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9960 make_symbol_overload_list_block with NULL BLOCK.
9961 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9962
9963 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9964
9965 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9966 * breakpoint.h (get_number_or_range): Declare.
9967 * printcmd.c (ALL_DISPLAYS): Declare.
9968 (delete_display): Reimplement taking a display pointer.
9969 (undisplay_command): Accept a range of displays to delete, using
9970 get_number_or_range.
9971
9972 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9973
9974 * c-valprint.c (c_val_print): Add embedded_offset to address
9975 for arrays of unspecified length.
9976 * p-valprint.c (pascal_val_print): Likewise.
9977
9978 2011-02-18 Yao Qi <yao@codesourcery.com>
9979
9980 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9981 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9982 (thumb_process_displaced_insn): New.
9983 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9984 call to arm_process_displaced_insn.
9985 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9986
9987 2011-02-17 Tom Tromey <tromey@redhat.com>
9988
9989 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9990 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9991 compile_dwarf_to_ax. No longer static. Call
9992 dwarf2_compile_cfa_to_ax.
9993 (locexpr_tracepoint_var_ref): Update.
9994 (loclist_tracepoint_var_ref): Update.
9995 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9996 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9997 argument; add 'gdbarch' and 'pc'.
9998 (dwarf2_compile_cfa_to_ax): New function.
9999 (dwarf2_frame_cache): Update.
10000
10001 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10002
10003 * ada-lang.c (ada_type_of_array): Fix the size of the array
10004 in the case of an unconstrained packed array.
10005
10006 2011-02-17 Yao Qi <yao@codesourcery.com>
10007
10008 * common/Makefile.in: Add more targets for make.
10009
10010 2011-02-16 Tom Tromey <tromey@redhat.com>
10011
10012 * dwarf2loc.c (unimplemented): Fix typo.
10013
10014 2011-02-16 Tom Tromey <tromey@redhat.com>
10015
10016 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10017 (compile_dwarf_to_ax) <default>: Use unimplemented.
10018 <DW_OP_deref>: Update.
10019 (disassemble_dwarf_expression): Update.
10020 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10021 (decode_locdesc): Update.
10022 * dwarf2expr.h (dwarf_stack_op_name): Update.
10023
10024 2011-02-16 Tom Tromey <tromey@redhat.com>
10025
10026 * ax.h (struct aop_map) <name>: Now const.
10027
10028 2011-02-16 Tom Tromey <tromey@redhat.com>
10029
10030 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10031 than axs_rvalue.
10032
10033 2011-02-16 Yao Qi <yao@codesourcery.com>
10034
10035 * infrun.c (get_displaced_step_closure_by_addr): New.
10036 * inferior.h: Declare it.
10037 * arm-tdep.c: (arm_pc_is_thumb): Call
10038 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10039 returns non-NULL.
10040
10041 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10042 Jan Kratochvil <jan.kratochvil@redhat.com>
10043
10044 gdb/
10045 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10046
10047 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10048 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 * value.c (value_contents_copy_raw): Extend describing comment.
10051 Assert that the destination contents we're overwriting are wholly
10052 available.
10053 (value_contents_copy): Extend describing comment.
10054
10055 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10056 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 * value.c (value_available_contents_eq): Remove redundant local
10059 variables. Fix available contents comparision.
10060 * value.h (value_available_contents_eq): Extend describing
10061 comment.
10062
10063 2011-02-16 Yao Qi <yao@codesourcery.com>
10064
10065 * thread.c (info_threads_command): Add missing i18n markup and remove
10066 trailing newline.
10067
10068 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10069
10070 * breakpoint.c (longjmp_names): New variable.
10071 (struct breakpoint_objfile_data): New type.
10072 (breakpoint_objfile_key): New variable.
10073 (msym_not_found): New variable.
10074 (msym_not_found_p): New predicate.
10075 (get_breakpoint_objfile_data): New function.
10076 (create_overlay_event_breakpoint): Check per-objfile cache for
10077 symbols first.
10078 (create_longjmp_master_breakpoint): Likewise.
10079 (create_std_terminate_master_breakpoint): Likewise.
10080 (create_exception_master_breakpoint): Likewise.
10081 (_initialize_breakpoint): Register per-objfile data key.
10082
10083 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10084
10085 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10086 parameter value.
10087 (create_longjmp_master_breakpoint): Loop over longjmp names.
10088 (create_std_terminate_master_breakpoint): Const-propagate parameter
10089 value.
10090 (update_breakpoints_after_exec): Adjust.
10091 (breakpoint_re_set): Adjust.
10092
10093 2011-02-15 Michael Snyder <msnyder@vmware.com>
10094
10095 * thread.c (info_threads_command): Process arg as thread id,
10096 or list of thread ids.
10097 (thread_find_command): New command.
10098 (_initialize_thread): Document argument for info threads.
10099 Document 'thread find' command.
10100 * NEWS: Document new command "thread find".
10101
10102 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10103
10104 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10105 * aclocal.m4: Regenerated with aclocal-1.11.1.
10106 * common/configure: Regenerate with autoconf-2.64.
10107
10108 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10109
10110 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10111 bool data type to a size of one byte.
10112
10113 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10114 Jan Kratochvil <jan.kratochvil@redhat.com>
10115
10116 * target.c (memory_xfer_live_readonly_partial): Document where to
10117 look for interface description.
10118
10119 2011-02-15 Yao Qi <yao@codesourcery.com>
10120
10121 PR tdep/12352
10122 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10123 order to store PC value on stack instead of text section.
10124
10125 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10126
10127 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10128 the EFP register set size.
10129 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10130 data from the VMX register.
10131 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10132 and write data from/to the VMX register.
10133
10134 2011-02-14 Michael Snyder <msnyder@vmware.com>
10135
10136 * command.h (enum command_class): New class 'no_set_class', for
10137 "show" commands without a corresponding "set" command.
10138 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10139 * copying.c (_initialize_copying): Ditto for "show copying" and
10140 "show warranty".
10141 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10142 "show version".
10143 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10144 which there is no corresponding "set" command (eg. "show copying").
10145
10146 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10147 Jan Kratochvil <jan.kratochvil@redhat.com>
10148
10149 * exec.c (section_table_available_memory): Change `len' parameter
10150 type to ULONGEST.
10151 * exec.h (section_table_available_memory): Ditto.
10152 * value.h (read_value_memory): Rename the `offset' parameter to
10153 `embedded_offset'.
10154
10155 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10156 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 * memrange.c (compare_mem_ranges): Mention sort order in
10159 describing comment.
10160 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10161 * tracepoint.c (traceframe_available_memory): Extend comment to
10162 mention what happens to RESULT when the target does not support
10163 the query.
10164
10165 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10166 Jan Kratochvil <jan.kratochvil@redhat.com>
10167
10168 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10169 range.
10170
10171 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10172
10173 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10174 No longer handle NULL values.
10175
10176 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10177
10178 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10179 * value.c: Include "exceptions.h".
10180 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10181 generic error.
10182 * cp-abi.c: Include gdb_assert.h.
10183 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10184 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10185 errors.
10186 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10187 parameters. No longer returns -1 on error.
10188 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10189 `val' parameters.
10190 * cp-valprint.c: Include exceptions.h.
10191 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10192 the baseclass_offset. Handle unavailable base classes. Use
10193 val_print_invalid_address.
10194 * p-valprint.c: Include exceptions.h.
10195 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10196 when fetching the baseclass_offset. No longer expect
10197 baseclass_offset returning -1. Handle unavailable base classes.
10198 Use val_print_invalid_address.
10199 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10200 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10201 `embedded_offset' and `val' parameters. Adjust.
10202 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10203 parameter, and change its type to gdb_byte pointer. Add
10204 `embedded_offset' and `val' parameters. Adjust. No longer expect
10205 baseclass_offset returning -1.
10206 (value_dynamic_cast): Use value_contents_for_printing rather than
10207 value_contents. Adjust.
10208 (search_struct_field): No longer expect baseclass_offset returning
10209 -1.
10210 (search_struct_method): If reading memory from the target is
10211 necessary, wrap it in a new value to pass to baseclass_offset. No
10212 longer expect baseclass_offset returning -1.
10213 (find_method_list): No longer expect baseclass_offset returning
10214 -1. Use value_contents_for_printing rather than value_contents.
10215 * valprint.c (val_print_invalid_address): New function.
10216 * valprint.h (val_print_invalid_address): Declare.
10217 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10218 and `val' parameters. No longer expect baseclass_offset returning
10219 -1. Adjust.
10220 * gnu-v2-abi.c: Include "exceptions.h".
10221 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10222 parameters. Handle unavailable memory. Recurse through
10223 gnuv2_baseclass_offset directly, rather than through
10224 baseclass_offset. No longer returns -1 on not found, instead
10225 throw an error.
10226 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10227 `val' parameters. Adjust.
10228
10229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10230
10231 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10232 almost but not quite adjacent.
10233
10234 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10235
10236 * value.h (value_entirely_available): Declare.
10237 * value.c (value_entirely_available): New function.
10238 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10239 real type if the pointer is unavailable.
10240
10241 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10242
10243 * valops.c (value_repeat): Use read_value_memory instead of
10244 read_memory.
10245
10246 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10247
10248 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10249 * value.c (value_contents_copy_raw, value_contents_copy): New
10250 functions.
10251 (value_primitive_field): Use value_contents_copy_raw instead of
10252 memcpy.
10253 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10254 memcpy.
10255 (value_array, value_slice): Ditto.
10256 * valarith.c (value_subscripted_rvalue): Use
10257 value_contents_copy_raw instead of memcpy.
10258
10259 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10260
10261 <unavailable> references.
10262
10263 * valops.c (get_value_at): Use value_from_contents_and_address,
10264 avoiding read_memory.
10265
10266 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10267
10268 * c-valprint.c (c_val_print): Print a string with unavailable
10269 contents as an array.
10270
10271 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10272
10273 * value.h (unpack_bits_as_long): Delete declaration.
10274 (unpack_value_bits_as_long): Declare.
10275 (unpack_value_field_as_long): Declare.
10276 (value_field_bitfield): Declare.
10277 * value.c (unpack_bits_as_long): Rename to...
10278 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10279 value parameters. Return the extracted result in a new output
10280 parameter. If the value contents are unavailable, return false,
10281 otherwise return true.
10282 (unpack_value_bits_as_long): New.
10283 (unpack_field_as_long): Rename to...
10284 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10285 Add embedded_offset and value parameters. Return the extracted
10286 result in a new output parameter. If the value contents are
10287 unavailable, return false, otherwise return true.
10288 (unpack_value_field_as_long): New.
10289 (unpack_field_as_long_1): New.
10290 (unpack_field_as_long): Reimplement as wrapper around
10291 unpack_value_field_as_long_1.
10292 (value_field_bitfield): New function.
10293 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10294 unpack_value_bits_as_long. Mark the value as unavailable, if it
10295 is unavailable.
10296 * jv-valprint.c (java_print_value_fields): Use
10297 value_field_bitfield.
10298 * p-valprint.c (pascal_object_print_value_fields): Use
10299 value_field_bitfield.
10300 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10301
10302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10303
10304 * value.c (get_internalvar_integer): Also return the int value of
10305 TYPE_CODE_INT INTERNALVAR_VALUE values.
10306 (set_internalvar): Don't special case TYPE_CODE_INT.
10307
10308 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10309
10310 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10311 INTERNALVAR_POINTER.
10312 <pointer>: Delete.
10313 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10314 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10315 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10316
10317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10318
10319 * value.h (value_available_contents_eq): Declare.
10320 * value.c (find_first_range_overlap): New function.
10321 (value_available_contents_eq): New function.
10322 * valprint.c (val_print_array_elements): Use
10323 value_available_contents_eq.
10324 * ada-valprint.c (val_print_packed_array_elements): Use
10325 value_available_contents_eq.
10326 * jv-valprint.c (java_value_print): Use
10327 value_available_contents_eq.
10328
10329 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10330
10331 * target.c (target_read_live_memory): New function.
10332 (memory_xfer_live_readonly_partial): New.
10333 (memory_xfer_partial): If reading from a traceframe, fallback to
10334 reading unavailable read-only memory from read-only regions of
10335 live target memory.
10336 * tracepoint.c (disconnect_tracing): Adjust.
10337 (set_current_traceframe): New, factored out from
10338 set_traceframe_number.
10339 (set_traceframe_number): Reimplement to only change the traceframe
10340 number on the GDB side.
10341 (do_restore_current_traceframe_cleanup): Adjust.
10342 (make_cleanup_restore_traceframe_number): New.
10343 (cur_traceframe_number): New global.
10344 (tfile_open): Set cur_traceframe_number to no traceframe.
10345 (set_tfile_traceframe): New function.
10346 (tfile_trace_find): If looking up a traceframe using any method
10347 other than by number, make sure the current tfile traceframe
10348 matches gdb's current traceframe. Update the current tfile
10349 traceframe if the lookup succeeded.
10350 (tfile_fetch_registers, tfile_xfer_partial)
10351 (tfile_get_trace_state_variable_value): Make sure the remote
10352 traceframe matches gdb's current traceframe.
10353 * remote.c (remote_traceframe_number): New global.
10354 (remote_open_1): Set it to -1.
10355 (set_remote_traceframe): New function.
10356 (remote_fetch_registers, remote_store_registers)
10357 (remote_xfer_memory, remote_xfer_partial)
10358 (remote_get_trace_state_variable_value): Make sure the remote
10359 traceframe matches gdb's current traceframe.
10360 (remote_trace_find): If looking up a traceframe using any method
10361 other than by number, make sure the current remote traceframe
10362 matches gdb's current traceframe. Update the current remote
10363 traceframe if the lookup succeeded.
10364 * infrun.c (fetch_inferior_event): Adjust.
10365 * tracepoint.h (set_current_traceframe): Declare.
10366 (get_traceframe_number, set_traceframe_number): Add describing
10367 comments.
10368
10369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10370
10371 Mark pieces of values as unavailable if the corresponding memory
10372 is unavailable.
10373
10374 * valops.c: Include tracepoint.h.
10375 (value_fetch_lazy): Use read_value_memory.
10376 (read_value_memory): New.
10377 * value.h (read_value_memory): Declare.
10378 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10379 * exec.c (section_table_available_memory): New function.
10380 * exec.h (section_table_available_memory): Declare.
10381
10382 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10383
10384 * Makefile.in (SFILES): Add memrange.c.
10385 (HFILES_NO_SRCDIR): Add memrange.h.
10386 (COMMON_OBS): Add memrange.o.
10387 * memrange.c: New file.
10388 * memrange.h: New file.
10389 * tracepoint.c: Include memrange.h.
10390 (struct mem_range): Delete.
10391 (mem_range_s): Delete.
10392 (traceframe_available_memory): New function.
10393 * tracepoint.h (traceframe_available_memory): Declare.
10394
10395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10396
10397 * target.h (struct traceframe_info): Forward declare.
10398 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10399 (struct target_ops) <to_traceframe_info>: New field.
10400 (target_traceframe_info): New.
10401 * target.c (update_current_target): Inherit and default
10402 to_traceframe_info.
10403 * remote.c (PACKET_qXfer_traceframe_info): New.
10404 (remote_protocol_features): Register qXfer:traceframe-info:read.
10405 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10406 (remote_traceframe_info): New.
10407 (init_remote_ops): Install it.
10408 (_initialize_remote): Install "set/show remote traceframe-info"
10409 commands.
10410 * tracepoint.h (parse_traceframe_info): Declare.
10411 * tracepoint.c (struct mem_range): New.
10412 (mem_range_s): New typedef.
10413 (struct traceframe_info): New.
10414 (traceframe_info): New global.
10415 (free_traceframe_info): New function.
10416 (clear_traceframe_info): New function.
10417 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10418 info.
10419 (build_traceframe_info): New function.
10420 (tfile_traceframe_info): New function.
10421 (init_tfile_ops): Install tfile_traceframe_info.
10422 (traceframe_info_start_memory, free_result): New functions.
10423 (memory_attributes, traceframe_info_elements): New globals.
10424 (parse_traceframe_info, get_traceframe_info): New functions.
10425 * features/traceframe-info.dtd: New file.
10426 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10427
10428 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10429
10430 Base support for <unavailable> value contents.
10431
10432 * value.h (value_bytes_available): Declare.
10433 (mark_value_bytes_unavailable): Declare.
10434 * value.c (struct range): New struct.
10435 (range_s): New typedef.
10436 (ranges_overlap): New function.
10437 (range_lessthan): New function.
10438 (ranges_contain_p): New function.
10439 (struct value) <unavailable>: New field.
10440 (value_bytes_available): New function.
10441 (mark_value_bytes_unavailable): New function.
10442 (require_not_optimized_out): Constify parameter.
10443 (require_available): New function.
10444 (value_contents_all, value_contents): Require all bytes be
10445 available.
10446 (value_free): Free `unavailable'.
10447 (value_copy): Copy `unavailable'.
10448 * valprint.h (val_print_unavailable): Declare.
10449 * valprint.c (valprint_check_validity): Rename `offset' parameter
10450 to `embedded_offset'. If printing a scalar, check whether the
10451 value chunk is available.
10452 (val_print_unavailable): New.
10453 (val_print_scalar_formatted): Check whether the value is
10454 available.
10455 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10456 pretty-printing unavailable values.
10457
10458 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10459
10460 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10461 * c-typeprint.c (c_type_print_args): Update the function comment. New
10462 variable param_type, initialize it. Remove const/volatile qualifiers
10463 for language_cplus and !show_artificial. Use param_type.
10464
10465 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10468 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10469 * symtab.h (struct symtab) <next>: Comment extension.
10470
10471 2011-02-12 Yao Qi <yao@codesourcery.com>
10472
10473 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10474
10475 2011-02-11 Yao Qi <yao@codesourcery.com>
10476
10477 * common/Makefile.in: Add copyright header.
10478
10479 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10480
10481 * infrun.c (proceed): Move switching out and in of tfind mode from
10482 here ...
10483 (fetch_inferior_event): ... to here.
10484
10485 2011-02-11 Yao Qi <yao@codesourcery.com>
10486
10487 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10488 libcommon.a.
10489 * configure.ac: Add common to sub dir.
10490 * configure: Regenerate.
10491
10492 2011-02-11 Yao Qi <yao@codesourcery.com>
10493
10494 Build libcommon.a.
10495
10496 * common/Makefile.in: New.
10497 * common/configure.ac: New.
10498 * common/aclocal.m4: New.
10499 * common/configure: Generate.
10500
10501 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10502
10503 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10504 side of the parenthesis.
10505
10506 Merge from GCC:
10507 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10508 * vec.h (VEC_block_remove): Fix comment.
10509
10510 2011-02-08 Michael Snyder <msnyder@vmware.com>
10511
10512 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10513
10514 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10515
10516 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10517 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10518 psubd and paddd.
10519
10520 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10521
10522 PR 12361.
10523 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10524 phsubsw.
10525 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10526 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10527
10528 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10529
10530 * dwarf2read.c (read_subroutine_type): Set special calling
10531 convention flag for functions compiled by IBM XL C for OpenCL.
10532 * ppc-sysv-tdep.c: Include "dwarf2.h"
10533 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10534 calling convention.
10535 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10536 IBM OpenCL vector types calling convention.
10537 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10538 (ppc_sysv_abi_broken_return_value): Likewise.
10539 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10540 types calling convention.
10541 (ppc64_sysv_abi_return_value): Likewise.
10542 * spu-tdep.c: Include "dwarf2.h"
10543 (spu_return_value): Implement IBM OpenCL vector types calling
10544 convention.
10545
10546 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10547
10548 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10549 correct ABI for AltiVec vector arguments.
10550
10551 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10552
10553 * valprint.c (val_print): Extend comment.
10554 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10555 interface explanation to val_print.
10556 (ada_val_print_array): Adjust comment to current interface.
10557 (print_field_values): Adjust comment to current interface.
10558 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10559 explanation to val_print.
10560 * f-valprint.c (f_val_print): Ditto.
10561 * jv-valprint.c (java_val_print): Ditto.
10562 * m2-valprint.c (m2_val_print): Ditto.
10563 * p-valprint.c (pascal_val_print): Ditto.
10564
10565 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10566
10567 * breakpoint.c (parse_breakpoint_sals): Fix description.
10568
10569 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10570 Oguz Kayral <oguzkayral@gmail.com>
10571
10572 * python/py-inferior.c (python_on_normal_stop): New function.
10573 (python_on_resume): New function.
10574 (python_inferior_exit): New function.
10575 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10576 inferior_exit observers.
10577 * python/py-evtregistry.c: New file.
10578 * python/py-threadevent.c : New file.
10579 * python/py-event.c: New file.
10580 * python/py-evts.c: New file.
10581 * python/py-continueevent.c: New file.
10582 * python/py-bpevent.c: New file.
10583 * python/py-signalevent.c: New file.
10584 * python/py-exetiedevent.c: New file.
10585 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10586 Move struct breakpoint_object from here...
10587 * python/python-internal.h: ... to here.
10588 * python/py-event.h: New file.
10589 * python/py-events.h: New file.
10590 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10591 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10592 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10593 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10594 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10595 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10596 Add build rules for all the above.
10597
10598 2011-02-04 Tom Tromey <tromey@redhat.com>
10599
10600 * dwarf2read.c (dwarf2_section_empty_p): New function.
10601 (dwarf2_read_section): Use dwarf2_section_empty_p.
10602 (dwarf2_section_size): New function.
10603 (dwarf2_get_section_info): Unconditionally read section.
10604 (dwarf2_read_index): Use dwarf2_section_empty_p.
10605 (partial_read_comp_unit_head): Use dwarf2_section_size.
10606 (dwarf2_symbol_mark_computed): Likewise.
10607
10608 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10609
10610 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10611
10612 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10613
10614 * mips-linux-tdep.c: Include xml-syscall.h.
10615 (mips_linux_get_syscall_number): New function.
10616 (mips_linux_init_abi): Add calls to
10617 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10618 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10619 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10620 * syscalls/mips-n32-linux.xml: New file.
10621 * syscalls/mips-n64-linux.xml: New file.
10622 * syscalls/mips-o32-linux.xml: New file.
10623
10624 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10625
10626 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10627 Complain about inverted range entries.
10628 (dwarf2_record_block_ranges): Likewise.
10629
10630 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10631
10632 Fix some typos.
10633 * breakpoint.c (update_watchpoint): Fix name of the
10634 update_global_location_list function.
10635 (print_one_breakpoint): Fix typo.
10636 (_initialize_breakpoint): Remove extra space in hbreak help
10637 string.
10638 * breakpoint.h (struct bp_location) <length>: Fix field
10639 description.
10640
10641 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10642
10643 * regcache.c (registers_changed_ptid): Don't explictly always
10644 clear `current_regcache'. Only clear current_thread_ptid and
10645 current_thread_arch when PTID matches. Only reinit the frame
10646 cache if PTID matches the current inferior_ptid. Move alloca(0)
10647 call to ...
10648 (registers_changed): ... here.
10649
10650 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10651
10652 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10653 starts with __stack_chk_guard as stack guard symbol.
10654
10655 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10656
10657 * disasm.c (compare_lines): Handle the end of sequence markers
10658 within the line table to better support disassembling over
10659 compilation unit boundaries.
10660
10661 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10662
10663 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10664 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10665 implementation even if no symbols are available.
10666 (thumb_analyze_prologue): Update call to skip_prologue_function.
10667 (arm_analyze_prologue): Likewise.
10668
10669 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10670
10671 * arm-tdep.c: Include "observer.h".
10672 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10673 (arm_exidx_data_key): New static variable.
10674 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10675 (struct arm_exidx_data): Likewise.
10676 (arm_exidx_data_free): New function.
10677 (arm_compare_exidx_entries): Likewise.
10678 (arm_obj_section_from_vma): Likewise.
10679 (arm_exidx_new_objfile): Likewise.
10680 (arm_find_exidx_entry): Likewise.
10681 (arm_exidx_fill_cache): Likewise.
10682 (arm_exidx_unwind_sniffer): Likewise.
10683 (arm_exidx_unwind): New global variable.
10684 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10685 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10686 observer. Register arm_exidx_data_key as objfile data.
10687
10688 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10689
10690 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10691 due to accessing uninitialized variable. Fix indentation.
10692
10693 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10694
10695 * c-valprint.c (c_value_print): When doing virtual base pointer
10696 adjustment, create a new value with adjusted contents rather than
10697 changing the contents of the value being printed (and getting it
10698 wrong).
10699
10700 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10701
10702 * xml-support.c (xml_find_attribute): New.
10703 (xinclude_start_include): Use it.
10704 * xml-support.h (xml_find_attribute): Declare.
10705 * memory-map.c (memory_map_start_memory)
10706 (memory_map_start_property): Use xml_find_attribute.
10707 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10708 xml_find_attribute.
10709 * remote.c (start_thread): Use xml_find_attribute.
10710 * solib-target.c (library_list_start_segment)
10711 (library_list_start_section, library_list_start_library)
10712 (library_list_start_list): Use xml_find_attribute.
10713 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10714 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10715 (tdesc_start_field): Use xml_find_attribute.
10716
10717 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10718
10719 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10720 (BUILD_OCL_VTYPES): Update.
10721
10722 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10723
10724 * configure.ac: Work around non-GNU sed limitation when computing
10725 python version number.
10726 * configure: Regenerate.
10727
10728 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10729
10730 Fix debug printing of TYPE_INSTANCE.
10731 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10732 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10733
10734 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10735
10736 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10737 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10738 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10739 * ada-operator.inc: Rename the file to ...
10740 * ada-operator.def: ... here, wrap all the entries by macro OP.
10741 * expprint.c (op_name_standard): Remove all the entries. Include
10742 "std-operator.def" instead.
10743 * expression.h (enum exp_opcode): Include "std-operator.def" and
10744 "ada-operator.def". Move all the entries ...
10745 * std-operator.def: ... here, wrap all the entries by macro OP.
10746
10747 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10748
10749 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10750 * breakpoint.c (remove_jit_event_breakpoints): New function.
10751 * jit.c (jit_descriptor_addr): Delete.
10752 (registering_code): Delete.
10753 (clear_int): Delete.
10754 (jit_inferior_data): New variable.
10755 (struct jit_inferior_data): New type.
10756 (get_jit_inferior_data): New function.
10757 (jit_inferior_data_cleanup): New function.
10758 (jit_read_descriptor): Adjust.
10759 (jit_register_code): Adjust.
10760 (jit_breakpoint_re_set_internal): New function; move code here ...
10761 (jit_inferior_init): ... from here.
10762 (jit_breakpoint_re_set): Adjust.
10763 (jit_reset_inferior_data_and_breakpoints): New function.
10764 (jit_inferior_created_observer): Adjust.
10765 (jit_inferior_exit_hook): Adjust.
10766 (jit_executable_changed_observer): New function.
10767 (jit_event_handler): Adjust.
10768 (_initialize_jit): Adjust.
10769
10770 2011-01-31 Michael Snyder <msnyder@vmware.com>
10771
10772 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10773 line.
10774
10775 2011-01-31 Tom Tromey <tromey@redhat.com>
10776
10777 PR python/12216:
10778 * python/python.c (execute_gdb_command): Call
10779 prevent_dont_repeat.
10780 * top.c (suppress_dont_repeat): New global.
10781 (dont_repeat): Use it.
10782 (prevent_dont_repeat): New function.
10783 * command.h (prevent_dont_repeat): Declare.
10784
10785 2011-01-31 Tom Tromey <tromey@redhat.com>
10786
10787 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10788 * python/py-breakpoint.c (bppy_set_silent): Use
10789 breakpoint_set_silent.
10790 (bppy_set_thread): Use breakpoint_set_thread.
10791 (bppy_set_task): Use breakpoint_set_task.
10792 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10793 (breakpoint_set_task): Declare.
10794 (make_breakpoint_silent): Remove.
10795 * breakpoint.c (breakpoint_set_silent): New function.
10796 (breakpoint_set_thread): Likewise.
10797 (breakpoint_set_task): Likewise.
10798 (make_breakpoint_silent): Remove.
10799
10800 2011-01-31 Tom Tromey <tromey@redhat.com>
10801
10802 * breakpoint.h (user_breakpoint_p): Declare.
10803 * breakpoint.c (user_breakpoint_p): New function.
10804 (breakpoint_1): Use it.
10805 (save_breakpoints): Likewise.
10806
10807 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10808
10809 * configure.ac: Add handling of Python distribution on Windows.
10810 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10811 sysconfig variables are not defined, then do not use them.
10812 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10813 instead. On Windows, return all paths using forward-slashes
10814 rather than backslashes.
10815
10816 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10817
10818 * configure.ac: Remove fallback behavior for building
10819 against Python. Remove tweaking of Python include path.
10820 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10821 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10822 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10823 Always restore CPPFLAGS and LIBS after linking test.
10824 * configure: Regenerated.
10825 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10826 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10827 * python/python-internal.h: Adjust includes of Python .h files.
10828
10829 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10830
10831 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10832 in error message.
10833
10834 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10835
10836 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10837 value test.
10838
10839 2011-01-31 Yao Qi <yao@codesourcery.com>
10840
10841 * arm-linux-nat.c: Update calls to regcache_register_status
10842 instead of regcache_valid_p.
10843 * aix-thread.c: Likewise.
10844 * i386gnu-nat.c: Likewise.
10845
10846 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Fix crash.
10849 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10850 touching TYPE_FIELD_ARTIFICIAL.
10851
10852 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10853
10854 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10855 Committers.
10856
10857 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10858
10859 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10860 selected, don't try iterating over the traceframe's blocks.
10861 (tfile_has_stack): If there's no traceframe selected, then there's
10862 no stack.
10863 (tfile_has_registers): If there's no traceframe selected, then
10864 there's no registers.
10865
10866 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10867
10868 * target.c (memory_xfer_partial): No need to restore shadows if we
10869 haven't read anything.
10870
10871 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10872
10873 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10874 and val_print_scalar_formatted.
10875
10876 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10877
10878 * tracepoint.c (tfile_read): New.
10879 (tfile_open): Use it.
10880 (tfile_get_traceframe_address): Use it.
10881 (tfile_trace_find): Use it.
10882 (walk_blocks_callback_func): New typedef.
10883 (match_blocktype): New function.
10884 (traceframe_walk_blocks): New function.
10885 (traceframe_find_block_type): New function.
10886 (tfile_fetch_registers, tfile_xfer_partial)
10887 (tfile_get_trace_state_variable_value): Use
10888 traceframe_find_block_type and tfile_read.
10889
10890 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10891
10892 * remote-mips.c: Add internationalization mark ups. Remove
10893 trailing \n from already marked up strings.
10894
10895 2011-01-26 Tom Tromey <tromey@redhat.com>
10896
10897 * python/py-prettyprint.c (print_string_repr): Clear
10898 'addressprint' option when calling val_print_string.
10899 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10900 option when calling val_print_string.
10901
10902 2011-01-26 Tom Tromey <tromey@redhat.com>
10903
10904 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10905 GDB_PY_LL_ARG.
10906 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10907 macros.
10908 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10909 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10910 (gdb_py_long_as_ulongest): New defines.
10911 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10912 (gdb_py_int_as_long): Declare.
10913 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10914 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10915 (valpy_long): Add comment.
10916 * python/py-utils.c (get_addr_from_python): Use
10917 gdb_py_long_as_ulongest. Handle overflow properly.
10918 (gdb_py_object_from_longest): New function.
10919 (gdb_py_object_from_ulongest): Likewise.
10920 (gdb_py_int_as_long): Likewise.
10921 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10922 * python/py-symtab.c (salpy_get_pc): Use
10923 gdb_py_long_from_ulongest.
10924 (salpy_get_line): Use PyInt_FromLong.
10925 * python/py-param.c (set_parameter_value): Use
10926 gdb_py_int_as_long.
10927 * python/py-lazy-string.c (stpy_get_address): Use
10928 gdb_py_long_from_ulongest.
10929 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10930 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10931 * python/py-breakpoint.c (bppy_set_thread): Use
10932 gdb_py_int_as_long.
10933 (bppy_set_task): Likewise.
10934 (bppy_set_ignore_count): Likewise.
10935 (bppy_set_hit_count): Likewise.
10936 * python/py-block.c (blpy_get_start): Use
10937 gdb_py_object_from_ulongest.
10938 (blpy_get_end): Likewise.
10939 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10940
10941 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10942
10943 PR/symtab 11766:
10944 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10945 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10946 equality test for objfile, initialize addr_low if needed.
10947
10948 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10949
10950 * tui/tui-regs.c (tui_register_format): Remove dead code.
10951
10952 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10953
10954 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10955 instead of print_scalar_formatted.
10956 (print_scalar_formatted): Don't handle 's' format strings here,
10957 and add an assertion that we never see such format here.
10958 * valprint.h (val_print_scalar_formatted): Declare.
10959 * valprint.c (val_print_scalar_formatted): New.
10960 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10961 instead of print_scalar_formatted.
10962 * jv-valprint.c (java_val_print): Ditto.
10963 * p-valprint.c (pascal_val_print): Ditto.
10964 * ada-valprint.c (ada_val_print_1): Ditto.
10965 * f-valprint.c (f_val_print): Ditto.
10966 * infcmd.c (registers_info): Ditto.
10967 * m2-valprint.c (m2_val_print): Ditto.
10968
10969 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10970
10971 * m2-valprint.c (print_unbounded_array): Pass
10972 value_contents_for_printing rather than value_contents, to
10973 m2_print_array_contents. Also pass in the value.
10974
10975 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10976
10977 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10978 (save_gdb_index_command): Switch to .gdb_index version 4.
10979
10980 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10981
10982 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10983 than frame_register, and always pass a valid value to val_print.
10984
10985 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10986
10987 Centralize printing "<optimized out>".
10988
10989 * valprint.h (val_print_optimized_out): Declare.
10990 * cp-valprint.c (cp_print_value_fields): Use
10991 val_print_optimized_out.
10992 * jv-valprint.c (java_print_value_fields): Ditto.
10993 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10994 * printcmd.c (print_formatted): Ditto.
10995 * valprint.c (valprint_check_validity): Ditto.
10996 (value_check_printable): Ditto.
10997 (val_print_optimized_out): New.
10998
10999 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11000
11001 * infcmd.c (default_print_registers_info): Allocate values so to
11002 never pass a NULL value to val_print.
11003
11004 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11005
11006 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11007 boolean. Make sure to always pass a value that matches the
11008 contents buffer to callees. Preserve `address' for following
11009 iterations.
11010 * value.c (value_contents_for_printing_const): New.
11011 (value_address): Constify value argument.
11012 * value.h (value_contents_for_printing_const): Declare.
11013 (value_address): Constify value argument.
11014
11015 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11016
11017 * regcache.c (struct regcache_descr): Rename
11018 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11019 and sizeof_cooked_register_valid_p to
11020 sizeof_cooked_register_status.
11021 (init_regcache_descr): Adjust.
11022 (struct regcache): Rename register_valid_p field to
11023 register_status.
11024 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11025 (do_cooked_read): Adjust.
11026 (regcache_valid_p): Rename to ...
11027 (regcache_register_status): ... this. Adjust.
11028 (regcache_invalidate): Adjust.
11029 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11030 Adjust.
11031 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11032 as unavailable, not valid.
11033 (regcache_dump): Adjust.
11034 * regcache.h (enum register_status): New.
11035 (regcache_register_status): Declare.
11036 (regcache_invalidate): Delete declaration.
11037 * corelow.c (get_core_registers): Adjust.
11038 * tracepoint.c (tfile_fetch_registers): Adjust.
11039 * trad-frame.c (REG_VALUE): Rename to ...
11040 (TF_REG_VALUE): ... this.
11041 (REG_UNKNOWN): Rename to ...
11042 (TF_REG_UNKNOWN): ... this.
11043 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11044 * mi/mi-main.c (register_changed_p): Adjust.
11045
11046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11047
11048 * regcache.c (struct regcache_descr): Remove outdated comment.
11049 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11050 overallocate hack.
11051 (regcache_xmalloc): Rename to ...
11052 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11053 Allocate the regcache type accordingly.
11054 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11055 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11056 cooked registers, not raw.
11057 (regcache_dup_no_passthrough): Delete.
11058 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11059 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11060 mention obsolete write_register_bytes.
11061 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11062
11063 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11064
11065 Stop remote_read_bytes from handling partial reads itself.
11066
11067 * remote-fileio.c: Include target.h.
11068 (remote_fileio_write_bytes): Delete.
11069 (remote_fileio_func_open, remote_fileio_func_write)
11070 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11071 target_read_memory.
11072 (remote_fileio_func_stat): Use target_read_memory and
11073 target_write_memory.
11074 (remote_fileio_func_gettimeofday): Use target_write_memory.
11075 (remote_fileio_func_system): Use target_read_memory.
11076 * remote.c (remote_write_bytes): Make it static.
11077 (remote_read_bytes): Don't handle partial reads here.
11078 * remote.h (remote_read_bytes): Delete declaration.
11079
11080 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11081
11082 Simplify XML parsing a bit.
11083
11084 * xml-support.h (gdb_xml_parse_quick): Declare.
11085 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11086 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11087 parameter.
11088 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11089 gdb_xml_create_parser_and_cleanup_1.
11090 (gdb_xml_parse_quick): New.
11091 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11092 * osdata.c (osdata_parse): Ditto.
11093 * remote.c (remote_threads_info): Ditto.
11094 * solib-target.c (solib_target_parse_libraries): Ditto.
11095 * xml-syscall.c (syscall_parse_xml): Ditto.
11096 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11097
11098 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11099
11100 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11101 with remote-mips.o added to gdb_target_obs.
11102 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11103
11104 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11105
11106 * ada-valprint.c (val_print_packed_array_elements): Pass the
11107 correct struct value to val_print.
11108 (ada_val_print_1): Ditto.
11109
11110 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11111
11112 Don't lose embedded_offset in printing routines throughout.
11113
11114 * valprint.h (val_print_array_elements): Change prototype.
11115 * valprint.c (val_print_array_elements): Add `embedded_offset'
11116 parameter, and adjust to pass it down to val_print, while passing
11117 `valaddr' or `address' unmodified. Take embedded_offset into
11118 account when checking repetitions.
11119 * c-valprint.c (c_val_print): Pass embedded_offset to
11120 val_print_array_elements instead of adjusting `valaddr' and
11121 `address'.
11122 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11123 embedded_offset to val_print_array_elements instead of adjusting
11124 `valaddr'.
11125 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11126 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11127 val_print_array_elements and pascal_object_print_value_fields
11128 instead of adjusting `valaddr'.
11129 (pascal_object_print_value_fields): Add `offset' parameter, and
11130 adjust to use it.
11131 (pascal_object_print_value): Add `offset' parameter, and adjust to
11132 use it.
11133 (pascal_object_print_static_field): Use
11134 value_contents_for_printing/value_embedded_offset, rather than
11135 value_contents.
11136 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11137 parameter, and adjust to use it. Use
11138 value_contents_for_printing/value_embedded_offset, rather than
11139 value_contents.
11140 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11141 (ada_val_print_array): Add `offset' parameter, and adjust to use
11142 it.
11143 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11144 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11145 Instead work with offsets. Use
11146 value_contents_for_printing/value_embedded_offset, rather than
11147 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11148 and use value_from_pointer to extract a target pointer, rather
11149 than value_from_longest.
11150 (print_variant_part): Add `offset' parameter. Replace
11151 `outer_valaddr' parameter by a new `outer_offset' parameter.
11152 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11153 (ada_value_print): Use
11154 value_contents_for_printing/value_embedded_offset, rather than
11155 value_contents.
11156 (print_record): Add `offset' parameter, and adjust to pass it
11157 down.
11158 (print_field_values): Add `offset' parameter. Replace
11159 `outer_valaddr' parameter by a new `outer_offset' parameter.
11160 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11161 Use value_contents_for_printing/value_embedded_offset, rather than
11162 value_contents.
11163 * d-valprint.c (dynamic_array_type): Use
11164 value_contents_for_printing/value_embedded_offset, rather than
11165 value_contents.
11166 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11167 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11168 (java_print_value_fields): Take `offset' into account. Don't
11169 re-adjust `valaddr'. Instead pass down adjusted offsets.
11170 (java_val_print): Take `embedded_offset' into account. Pass it to
11171 java_print_value_fields.
11172 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11173 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11174 down adjusted offsets.
11175 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11176 (f_val_print): Take `embedded_offset' into account.
11177
11178 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11179
11180 * inflow.c: Include "gdbcmd.h".
11181 (interactive_mode): New static global, moved here from top.c.
11182 (show_interactive_mode): New function, moved here from top.c.
11183 use gdb_has_a_terminal instead of input_from_terminal_p to
11184 determine the current mode.
11185 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11186 setting.
11187 (_initialize_inflow): Add the "set/show interactive-mode"
11188 commands. Moved here from top.c, after having adjusted slightly
11189 the help text.
11190 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11191 to inflow.c.
11192 (input_from_terminal_p): Remove handling of "interactive-mode"
11193 setting, moved to infow.c.
11194 (init_main): Remove creation of the "set/show interactive-mode"
11195 commands, moved to inflow.c.
11196
11197 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11198
11199 * NEWS: Add entry for native ia64-hpux support.
11200
11201 2011-01-19 Tom Tromey <tromey@redhat.com>
11202
11203 PR mi/8618:
11204 * thread.c (free_thread): Free 'name'.
11205 (print_thread_info): Emit thread name. Change CLI output.
11206 (thread_name_command): New function.
11207 (do_captured_thread_select): Emit newline.
11208 (_initialize_thread): Register 'thread name' command.
11209 * target.h (struct target_ops) <to_thread_name>: New field.
11210 (target_thread_name): New macro.
11211 * target.c (update_current_target): Handle to_thread_name.
11212 * python/py-infthread.c (thpy_get_name): New function.
11213 (thpy_set_name): Likewise.
11214 (thread_object_getset): Add "name".
11215 * linux-nat.c (linux_nat_thread_name): New function.
11216 (linux_nat_add_target): Set to_thread_name.
11217 * gdbthread.h (struct thread_info) <name>: New field.
11218
11219 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11220
11221 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11222 (ada_val_print_1): Likewise.
11223
11224 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11225
11226 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11227 upper limit address is not greater than the function end address
11228 when the upper limit could not be computed using the debugging
11229 info.
11230
11231 2011-01-17 Tom Tromey <tromey@redhat.com>
11232
11233 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11234 get_regcomp_error.
11235 * utils.c: Include gdb_regex.h.
11236 (do_regfree_cleanup): New function.
11237 (make_regfree_cleanup): Likewise.
11238 (get_regcomp_error): Likewise.
11239 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11240
11241 2011-01-17 Tom Tromey <tromey@redhat.com>
11242
11243 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11244 re_compile_fastmap.
11245
11246 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11247
11248 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11249 for internal variables.
11250 (last_was_structop): New static variable.
11251 (COMPLETE): New token.
11252 (field_exp): New rule to group all '.' suffix handling.
11253 Add mark_struct_expression calls when approriate to be able
11254 to correctly find fields for completion.
11255 (yylex): Adapt to handle field completion and set INTVAR when
11256 required.
11257
11258 2011-01-14 Yao Qi <yao@codesourcery.com>
11259
11260 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11261 save_reggroup, restore_reggroup and all_reggroup.
11262
11263 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11264
11265 * ada-valprint. (ada_printchar): Use the correct type length
11266 in call to ada_emit_char.
11267 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11268
11269 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11270
11271 * solib-som.h (hpux_major_release): Declare variable here.
11272 * solib-som.c: Remove <sys/utsname.h> header.
11273 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11274 (hpux_major_release): Make global, change default value to
11275 DEFAULT_HPUX_MAJOR_RELEASE.
11276 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11277 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11278 Add "solib-som.h" header.
11279 (set_hpux_major_release): New function.
11280 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11281
11282 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11283
11284 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11285
11286 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11287
11288 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11289 new-line at end of warning message.
11290 (ia64_hpux_store_register): Remove trailing new-line at end of
11291 error message.
11292 * ia64-hpux-tdep.c: Rephrase comment.
11293 * solib-ia64-hpux.c (struct dld_info): Change type of field
11294 dld_flags from "long long" to ULONGEST.
11295
11296 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11297
11298 * target.h (deprecated_child_ops): Delete declaration.
11299 * target.c (deprecated_child_ops): Delete definition.
11300
11301 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11302
11303 * Makefile.in (hpux-thread.o): Delete rule.
11304 * configure.ac: Don't check for HPUX DCE threads support.
11305 * configure, config.in: Regenerate.
11306 * hppa-hpux-nat.c (child_suppress_run): Delete.
11307 (hppa_hpux_child_can_run): Delete.
11308 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11309 * hpux-thread.c: Delete.
11310
11311 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11312
11313 * hpux-thread.c (hpux_pid_to_str): Delete.
11314
11315 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11316
11317 * ada-valprint.c (ada_emit_char): Remove strange code.
11318 Check that c is <= UCHAR_MAX before passing it to isascii.
11319 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11320
11321 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11322
11323 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11324 to the case where instream is stdin.
11325
11326 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11327
11328 * ia64-tdep.h (struct regcache): Forward declare.
11329 (struct ia64_infcall_ops): New struct type.
11330 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11331 and "infcall_ops".
11332 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11333 Renames ia64_find_global_pointer.
11334 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11335 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11336 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11337 methods.
11338 (ia64_infcall_ops): New static global constant.
11339 (ia64_gdbarch_init): Set tdep->infcall_ops.
11340 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11341 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11342 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11343 (ia64_hpux_dummy_code): New static global constant.
11344 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11345 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11346 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11347 New function.
11348 (ia64_hpux_infcall_ops): New static global constant.
11349 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11350 for inferior function calls to work properly on ia64-hpux.
11351
11352 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11353
11354 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11355 * ia64-tdep.h (struct frame_info): forward declaration.
11356 (struct gdbarch_tdep): Add field size_of_register_frame.
11357 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11358 to determine the size of the register frame.
11359 (ia64_size_of_register_frame): New function.
11360 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11361 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11362 (IA64_HPUX_UREG_REASON): New macro.
11363 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11364 New functions.
11365 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11366 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11367 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11368 objects.
11369
11370 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11371
11372 Add support for ia64-hpux.
11373 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11374 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11375
11376 * configure.host: Add handling for ia64-hpux hosts. Add associated
11377 floatformats.
11378 * configure.tgt: Add handling for ia64-hpux targets.
11379 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11380 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11381 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11382
11383 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11384
11385 [ttrace] Compute thread list immediately after attach.
11386 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11387 New subprogram.
11388 (inf_ttrace_attach): Use it.
11389
11390 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11391
11392 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11393 if we could not determine the frame's function address. Instead,
11394 use the frame's PC, and then continue.
11395
11396 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11397
11398 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11399 not already defined.
11400
11401 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11402
11403 * ia64-tdep.c (ia64_struct_type_p): New function.
11404 (ia64_extract_return_value): Handle integral values that are
11405 less than 8 bytes long.
11406 (ia64_push_dummy_call): Likewise.
11407
11408 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11409
11410 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11411 floatformat_ia64_ext.
11412 (floatformat_ia64_ext_big): New static const.
11413 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11414
11415 2011-01-12 Tom Tromey <tromey@redhat.com>
11416
11417 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11418 messages.
11419 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11420 (mi_cmd_thread_list_ids): Likewise.
11421 (mi_cmd_data_list_changed_registers): Likewise.
11422 (mi_cmd_data_list_register_values): Likewise.
11423 (mi_cmd_data_write_register_values): Likewise.
11424 (mi_cmd_data_evaluate_expression): Likewise.
11425 (mi_cmd_data_read_memory): Likewise.
11426 (mi_cmd_data_read_memory_bytes): Likewise.
11427 (mi_cmd_data_write_memory): Likewise.
11428 (mi_cmd_enable_timings): Likewise.
11429 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11430 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11431 (mi_cmd_var_delete): Likewise.
11432 (mi_cmd_var_set_format): Likewise.
11433 (mi_cmd_var_show_format): Likewise.
11434 (mi_cmd_var_info_num_children): Likewise.
11435 (mi_cmd_var_list_children): Likewise.
11436 (mi_cmd_var_info_type): Likewise.
11437 (mi_cmd_var_info_expression): Likewise.
11438 (mi_cmd_var_show_attributes): Likewise.
11439 (mi_cmd_var_assign): Likewise.
11440 (mi_cmd_var_update): Likewise.
11441 (mi_cmd_enable_pretty_printing): Likewise.
11442 (mi_cmd_var_set_update_range): Likewise.
11443 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11444 messages.
11445 (mi_cmd_target_file_put): Likewise.
11446 (mi_cmd_target_file_delete): Likewise.
11447 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11448 messages.
11449 (mi_cmd_stack_info_depth): Likewise.
11450 (mi_cmd_stack_list_locals): Likewise.
11451 (mi_cmd_stack_list_args): Likewise.
11452 (mi_cmd_stack_select_frame): Likewise.
11453 (mi_cmd_stack_select_frame): Likewise.
11454 (mi_cmd_stack_info_frame): Likewise.
11455 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11456 messages.
11457 (mi_cmd_file_list_exec_source_files): Likewise.
11458 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11459 (mi_cmd_env_cd): Likewise.
11460 (mi_cmd_env_path): Likewise.
11461 (mi_cmd_env_dir): Likewise.
11462 (mi_cmd_inferior_tty_show): Likewise.
11463 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11464 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11465 (mi_cmd_break_watch): Likewise.
11466
11467 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11468
11469 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11470 (ppc_linux_insert_hw_breakpoint): Likewise.
11471 (ppc_linux_remove_hw_breakpoint): Likewise.
11472 (ppc_linux_insert_watchpoint): Likewise.
11473
11474 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11475 Jan Kratochvil <jan.kratochvil@redhat.com>
11476
11477 PR fortran/11104 and DWARF unbound arrays detection.
11478 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11479 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11480 unspecified upper bound.
11481 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11482 variables array_size_array, tmp_type and offset_item. New variable
11483 array. Remove call to f77_get_upperbound. New variables array_type
11484 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11485 the final call to deprecated_set_value_type.
11486
11487 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11488
11489 Make value allocations more lazy.
11490 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11491 instead of allocate_value and set_value_lazy when possible.
11492 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11493 instead of allocate_value and set_value_lazy.
11494 * findvar.c (value_of_register_lazy): Likewise.
11495 (read_var_value): Remove V preallocation, call just check_typedef in
11496 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11497 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11498 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11499 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11500 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11501 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11502 the end, remove set_value_lazy there.
11503 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11504 instead of allocate_value and set_value_lazy when possible.
11505 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11506 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11507 of allocate_value and set_value_lazy.
11508 (value_from_contents_and_address): Use allocate_value_lazy instead of
11509 allocate_value and set_value_lazy when possible.
11510
11511 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11512
11513 * disasm.c (dump_insns): Support dumping opcodes for MI.
11514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11515 dumping of instruction opcodes.
11516
11517 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11518
11519 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11520 appropiately.
11521
11522 2011-01-11 Tom Tromey <tromey@redhat.com>
11523
11524 * thread.c (do_captured_thread_select): Emit newline before
11525 printing frame.
11526
11527 2011-01-11 Michael Snyder <msnyder@vmware.com>
11528
11529 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11530 * score-tdep.c: Ditto.
11531 * score-tdep.h: Ditto.
11532 * ser-base.c: Ditto.
11533 * ser-go32.c: Ditto.
11534 * serial.c: Ditto.
11535 * serial.h: Ditto.
11536 * ser-mingw.c: Ditto.
11537 * ser-pipe.c: Ditto.
11538 * ser-tcp.c: Ditto.
11539 * ser-unix.c: Ditto.
11540 * sh64-tdep.c: Ditto.
11541 * shnbsd-nat.c: Ditto.
11542 * sh-tdep.c: Ditto.
11543 * sh-tdep.h: Ditto.
11544 * solib.c: Ditto.
11545 * solib-darwin.c: Ditto.
11546 * solib-frv.c: Ditto.
11547 * solib.h: Ditto.
11548 * solib-irix.c: Ditto.
11549 * solib-osf.c: Ditto.
11550 * solib-pa64.c: Ditto.
11551 * solib-som.c: Ditto.
11552 * solib-spu.c: Ditto.
11553 * solib-sunos.c: Ditto.
11554 * solib-svr4.c: Ditto.
11555 * solist.h: Ditto.
11556 * sol-thread.c: Ditto.
11557 * somread.c: Ditto.
11558 * source.c: Ditto.
11559 * source.h: Ditto.
11560 * sparc64-linux-tdep.c: Ditto.
11561 * sparc64-tdep.c: Ditto.
11562 * sparc-linux-nat.c: Ditto.
11563 * sparc-linux-tdep.c: Ditto.
11564 * sparc-sol2-nat.c: Ditto.
11565 * sparc-sol2-tdep.c: Ditto.
11566 * sparc-tdep.c: Ditto.
11567 * sparc-tdep.h: Ditto.
11568 * spu-tdep.c: Ditto.
11569 * stabsread.c: Ditto.
11570 * stabsread.h: Ditto.
11571 * stack.c: Ditto.
11572 * symfile.c: Ditto.
11573 * symfile.h: Ditto.
11574 * symmisc.c: Ditto.
11575 * symtab.c: Ditto.
11576 * symtab.h: Ditto.
11577 * target.c: Ditto.
11578 * target-descriptions.c: Ditto.
11579 * target-descriptions.h: Ditto.
11580 * target.h: Ditto.
11581 * target-memory.c: Ditto.
11582 * terminal.h: Ditto.
11583 * thread.c: Ditto.
11584 * top.c: Ditto.
11585 * tracepoint.c: Ditto.
11586 * tracepoint.h: Ditto.
11587 * trad-frame.h: Ditto.
11588 * typeprint.c: Ditto.
11589
11590 2011-01-11 Michael Snyder <msnyder@vmware.com>
11591
11592 * ui-file.c: Comment cleanup, mostly periods and spaces.
11593 * ui-file.h: Ditto.
11594 * ui-out.c: Ditto.
11595 * ui-out.h: Ditto.
11596 * utils.c: Ditto.
11597 * v850-tdep.c: Ditto.
11598 * valarith.c: Ditto.
11599 * valops.c: Ditto.
11600 * valprint.c: Ditto.
11601 * valprint.h: Ditto.
11602 * value.c: Ditto.
11603 * value.h: Ditto.
11604 * varobj.c: Ditto.
11605 * varobj.h: Ditto.
11606 * vax-tdep.c: Ditto.
11607 * vec.c: Ditto.
11608 * vec.h: Ditto.
11609 * version.h: Ditto.
11610 * windows-nat.c: Ditto.
11611 * windows-tdep.c: Ditto.
11612 * xcoffread.c: Ditto.
11613 * xcoffsolib.c: Ditto.
11614 * xml-support.c: Ditto.
11615 * xstormy16-tdep.c: Ditto.
11616 * xtensa-tdep.c: Ditto.
11617 * xtensa-tdep.h: Ditto.
11618
11619 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11620
11621 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11622 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11623
11624 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11625 Thiago Jung Bauermann <bauerman@br.ibm.com>
11626
11627 Implement support for PowerPC BookE ranged watchpoints.
11628 * breakpoint.h
11629 (struct breakpoint_ops) <resources_needed>: New method.
11630 Initialize to NULL in all existing breakpoint_ops instances.
11631 (struct breakpoint) <exact>: New field.
11632 (target_exact_watchpoints): Declare external global.
11633 * breakpoint.c (target_exact_watchpoints): New global flag.
11634 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11635 b->enable_state to bp_enabled before calling
11636 hw_watchpoint_used_count.
11637 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11638 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11639 if available.
11640 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11641 if the watchpoint is exact.
11642 (resources_needed_watchpoint): New function.
11643 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11644 (watch_command_1): Set b->exact if the user asked for an exact
11645 watchpoint and one can be set.
11646 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11647 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11648 the user asks for an exact watchpoint and one can be set. Return
11649 number of needed debug registers to watch the expression.
11650 * gdbtypes.c (is_scalar_type): New function, based on
11651 valprint.c:scalar_type_p.
11652 (is_scalar_type_recursive): New function.
11653 * gdbtypes.h (is_scalar_type_recursive): Declare.
11654 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11655 handle regions when ranged watchpoints are available.
11656 (create_watchpoint_request): New function.
11657 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11658 create_watchpoint_request.
11659 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11660 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11661 `set powerpc' and `show powerpc' commands.
11662 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11663 Mention documentation comment in the target macro.
11664 (target_region_ok_for_hw_watchpoint): Document return value.
11665
11666 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11667
11668 * breakpoint.c (update_watchpoint): Decide on using a software or
11669 hardware watchpoint after the bp_locations are created.
11670
11671 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11672
11673 Convert hardware watchpoints to use breakpoint_ops.
11674 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11675 <insert_location>: ... this. Return int instead of void.
11676 Accept pointer to struct bp_location instead of pointer to
11677 struct breakpoint. Adapt all implementations.
11678 (breakpoint_ops) <remove>: Rename to...
11679 <remove_location>: ... this. Accept pointer to struct bp_location
11680 instead of pointer to struct breakpoint. Adapt all implementations.
11681 * breakpoint.c (insert_catchpoint): Delete function.
11682 (insert_bp_location): Call the watchpoint or catchpoint's
11683 breakpoint_ops.insert method.
11684 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11685 breakpoint_ops.remove method.
11686 (insert_watchpoint, remove_watchpoint): New functions.
11687 (watchpoint_breakpoint_ops): New structure.
11688 (watch_command_1): Initialize the OPS field.
11689 * inf-child.c (inf_child_insert_fork_catchpoint)
11690 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11691 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11692 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11693 Delete functions.
11694 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11695 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11696 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11697 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11698 * target.c (update_current_target): Change default implementation of
11699 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11700 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11701 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11702 to_set_syscall_catchpoint to return_one.
11703 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11704 (debug_to_insert_exec_catchpoint): Report return value.
11705 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11706 (to_insert_exec_catchpoint): Change declaration to return int instead
11707 of void.
11708
11709 2011-01-11 Michael Snyder <msnyder@vmware.com>
11710
11711 * arm-tdep.c: Internationalization.
11712 * c-lang.c: Ditto.
11713 * charset.c: Ditto.
11714 * fork-child.c: Ditto.
11715 * nto-procfs.c: Ditto.
11716 * ppc-sysv-tdep.c: Ditto.
11717 * procfs.c: Ditto.
11718 * remote-mips.c: Ditto.
11719 * remote.c: Ditto.
11720 * rs6000-nat.c: Ditto.
11721 * rs6000-tdep.c: Ditto.
11722 * target.c: Ditto.
11723 * valops.c: Ditto.
11724 * value.c: Ditto.
11725 * xml-support.c: Ditto.
11726 * mi/mi-cmd-break.c: Ditto.
11727 * mi/mi-cmd-var.c: Ditto.
11728 * mi/mi-interp.c: Ditto.
11729 * mi/mi-main.c: Ditto.
11730
11731 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11732
11733 * remote-sim.c (gdbsim_store_register): Update API to
11734 sim_store_register to check more error conditions.
11735
11736 2011-01-10 Michael Snyder <msnyder@vmware.com>
11737
11738 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11739 * nto-tdep.c: Ditto.
11740 * nto-tdep.h: Ditto.
11741 * objc-exp.y: Ditto.
11742 * objc-lang.c: Ditto.
11743 * objfiles.c: Ditto.
11744 * objfiles.h: Ditto.
11745 * observer.c: Ditto.
11746 * opencl-lang.c: Ditto.
11747 * osabi.c: Ditto.
11748 * parse.c: Ditto.
11749 * parser-defs.h: Ditto.
11750 * p-exp.y: Ditto.
11751 * p-lang.c: Ditto.
11752 * posix-hdep.c: Ditto.
11753 * ppcbug-rom.c: Ditto.
11754 * ppc-linux-nat.c: Ditto.
11755 * ppc-linux-tdep.c: Ditto.
11756 * ppc-linux-tdep.h: Ditto.
11757 * ppcnbsd-tdep.c: Ditto.
11758 * ppcobsd-tdep.c: Ditto.
11759 * ppcobsd-tdep.h: Ditto.
11760 * ppc-sysv-tdep.c: Ditto.
11761 * ppc-tdep.h: Ditto.
11762 * printcmd.c: Ditto.
11763 * proc-abi.c: Ditto.
11764 * proc-flags.c: Ditto.
11765 * procfs.c: Ditto.
11766 * proc-utils.h: Ditto.
11767 * progspace.h: Ditto.
11768 * prologue-value.c: Ditto.
11769 * prologue-value.h: Ditto.
11770 * psympriv.h: Ditto.
11771 * psymtab.c: Ditto.
11772 * p-typeprint.c: Ditto.
11773 * p-valprint.c: Ditto.
11774 * ravenscar-sparc-thread.c: Ditto.
11775 * ravenscar-thread.c: Ditto.
11776 * ravenscar-thread.h: Ditto.
11777 * record.c: Ditto.
11778 * regcache.c: Ditto.
11779 * regcache.h: Ditto.
11780 * remote.c: Ditto.
11781 * remote-fileio.c: Ditto.
11782 * remote-fileio.h: Ditto.
11783 * remote.h: Ditto.
11784 * remote-m32r-sdi.c: Ditto.
11785 * remote-mips.c: Ditto.
11786 * remote-sim.c: Ditto.
11787 * rs6000-aix-tdep.c: Ditto.
11788 * rs6000-nat.c: Ditto.
11789 * rs6000-tdep.c: Ditto.
11790
11791 2011-01-10 Michael Snyder <msnyder@vmware.com>
11792
11793 * charset.c (validate): Internationalization.
11794 * coffread.c (read_one_sym): Ditto.
11795 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11796 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11797 * inflow.c (new_tty): Ditto.
11798 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11799 * m32c-tdep.c (m32c_return_value): Ditto.
11800 * mep-tdep.c (mep_store_return_value): Ditto.
11801 * score-tdep.c (score7_fetch_insn): Ditto.
11802 * ser-mingw.c (pipe_windows_open): Ditto.
11803 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11804 * spu-tdep.c (spu_register_type): Ditto.
11805 * tracepoint.c (trace_find_command): Ditto.
11806 * valarith.c (value_pos): Ditto.
11807
11808 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11809
11810 * ada-valprint.c (printstr): Minor comment reformatting.
11811
11812 2011-01-08 Michael Snyder <msnyder@vmware.com>
11813
11814 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11815 markup.
11816
11817 2011-01-08 Michael Snyder <msnyder@vmware.com>
11818
11819 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11820 * hppa-hpux-tdep.c: Ditto.
11821 * hppa-linux-nat.c: Ditto.
11822 * hppa-linux-tdep.c: Ditto.
11823 * hppanbsd-tdep.c: Ditto.
11824 * hppa-tdep.c: Ditto.
11825 * hppa-tdep.h: Ditto.
11826 * hpux-thread.c: Ditto.
11827 * i386-cygwin-tdep.c: Ditto.
11828 * i386-darwin-nat.c: Ditto.
11829 * i386gnu-nat.c: Ditto.
11830 * i386-linux-nat.c: Ditto.
11831 * i386-linux-tdep.c: Ditto.
11832 * i386-nat.c: Ditto.
11833 * i386-nat.h: Ditto.
11834 * i386nbsd-tdep.c: Ditto.
11835 * i386-sol2-nat.c: Ditto.
11836 * i386-stub.c: Ditto.
11837 * i386-tdep.c: Ditto.
11838 * i386-tdep.h: Ditto.
11839 * i387-tdep.c: Ditto.
11840 * ia64-linux-nat.c: Ditto.
11841 * ia64-linux-tdep.c: Ditto.
11842 * ia64-tdep.c: Ditto.
11843 * infcall.c: Ditto.
11844 * infcall.h: Ditto.
11845 * infcmd.c: Ditto.
11846 * inferior.c: Ditto.
11847 * inferior.h: Ditto.
11848 * infloop.c: Ditto.
11849 * inflow.c: Ditto.
11850 * infrun.c: Ditto.
11851 * interps.c: Ditto.
11852 * interps.h: Ditto.
11853 * iq2000-tdep.c: Ditto.
11854 * irix5-nat.c: Ditto.
11855 * jit.c: Ditto.
11856 * jit.h: Ditto.
11857 * jv-exp.y: Ditto.
11858 * jv-lang.c: Ditto.
11859 * jv-lang.h: Ditto.
11860 * jv-typeprint.c: Ditto.
11861 * jv-valprint.c: Ditto.
11862 * language.c: Ditto.
11863 * language.h: Ditto.
11864 * linespec.c: Ditto.
11865 * linux-fork.c: Ditto.
11866 * linux-nat.c: Ditto.
11867 * linux-thread-db.c: Ditto.
11868 * lm32-tdep.c: Ditto.
11869
11870 2011-01-08 Michael Snyder <msnyder@vmware.com>
11871
11872 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11873 * m2-lang.c: Ditto.
11874 * m2-typeprint.c: Ditto.
11875 * m2-valprint.c: Ditto.
11876 * m32c-tdep.c: Ditto.
11877 * m32r-linux-nat.c: Ditto.
11878 * m32r-rom.c: Ditto.
11879 * m32r-tdep.c: Ditto.
11880 * m32r-tdep.h: Ditto.
11881 * m68hc11-tdep.c: Ditto.
11882 * m58klinux-nat.c: Ditto.
11883 * m68k-tdep.c: Ditto.
11884 * m88k-tdep.c: Ditto.
11885 * m88k-tdep.h: Ditto.
11886 * machoread.c: Ditto.
11887 * macrocmd.c: Ditto.
11888 * macroexp.c: Ditto.
11889 * macrotab.c: Ditto.
11890 * main.c: Ditto.
11891 * maint.c: Ditto.
11892 * mdebugread.c: Ditto.
11893 * mdebugread.h: Ditto.
11894 * memattr.c: Ditto.
11895 * memattr.h: Ditto.
11896 * memory-map.h: Ditto.
11897 * mep-tdep.c: Ditto.
11898 * microblaze-rom.c: Ditto.
11899 * microblaze-tdep.c: Ditto.
11900 * minsyms.c: Ditto.
11901 * mips-irix-tdep.c: Ditto.
11902 * mips-linux-nat.c: Ditto.
11903 * mips-linux-tdep.c: Ditto.
11904 * mips-linux-tdep.h: Ditto.
11905 * mipsnbsd-nat.c: Ditto.
11906 * mipsnbsd-tdep.c: Ditto.
11907 * mipsread.c: Ditto.
11908 * mips-tdep.c: Ditto.
11909 * mips-tdep.h: Ditto.
11910 * mn10300-linux-tdep.c: Ditto.
11911 * mn10300-tdep.c: Ditto.
11912 * mn10300-tdep.h: Ditto.
11913 * monitor.c: Ditto.
11914 * monitor.h: Ditto.
11915 * moxie-tdep.c: Ditto.
11916 * moxie-tdep.h: Ditto.
11917 * mt-tdep.c: Ditto.
11918
11919 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11920
11921 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11922
11923 2011-01-08 Robert Millan <rmh@gnu.org>
11924
11925 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11926
11927 2011-01-07 Michael Snyder <msnyder@vmware.com>
11928
11929 * charset.c (_initialize_charset): Fix typo in string.
11930
11931 2011-01-07 Michael Snyder <msnyder@vmware.com>
11932
11933 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11934 for i18n.
11935 * tui/tui-layout.c (tui_set_layout_for_display_command):
11936 Split line so that operator goes to beginning of line.
11937 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11938 assignment out of if statement.
11939
11940 2011-01-07 Michael Snyder <msnyder@vmware.com>
11941
11942 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11943 * ada-lang.h: Ditto.
11944 * ada-tasks.c: Ditto.
11945 * ada-valprint.c: Ditto.
11946 * aix-threads.c: Ditto.
11947 * alpha-linux-nat.c: Ditto.
11948 * alpha-linux-tdep.c: Ditto.
11949 * alpha-mdebug-tdep.c: Ditto.
11950 * alpha-nat.c: Ditto.
11951 * alpha-osf1-tdep.c: Ditto.
11952 * alpha-tdep.c: Ditto.
11953 * alphabsd-nat.c: Ditto.
11954 * alphabsd-tdep.c: Ditto.
11955 * amd64-darwin-tdep.c: Ditto.
11956 * amd64-linux-nat.c: Ditto.
11957 * amd64-linux-tdep.c: Ditto.
11958 * amd64-sol2-tdep.c: Ditto.
11959 * amd64-tdep.c: Ditto.
11960 * amd64-fbsd-tdep.c: Ditto.
11961 * amd64-nbsd-tdep.c: Ditto.
11962 * amd64-obsd-tdep.c: Ditto.
11963 * amd64-linux-nat.c: Ditto.
11964 * amd64-linux-tdep.c: Ditto.
11965 * arm-tdep.c: Ditto.
11966 * arm-tdep.h: Ditto.
11967 * armnbsd-nat.c: Ditto.
11968 * avr-tdep.c: Ditto.
11969 * bfin-tdep.c: Ditto.
11970 * bsd-kvm.c: Ditto.
11971 * c-typeprintc: Ditto.
11972 * c-valprint.c: Ditto.
11973 * coff-pe-read.h: Ditto.
11974 * coffreead.c: Ditto.
11975 * cris-tdep.c: Ditto.
11976 * d-lang.c: Ditto.
11977 * darwin-nat-info.c: Ditto.
11978 * darwin-nat.c: Ditto.
11979 * dbug-rom.c: Ditto.
11980 * dbxread.c: Ditto.
11981 * dcache.c: Ditto.
11982 * dcache.h: Ditto.
11983 * dec-thread.c: Ditto.
11984 * defs.h: Ditto.
11985 * demangle.c: Ditto.
11986 * dicos-tdep.c: Ditto.
11987 * dictionary.c: Ditto.
11988 * dictionary.h: Ditto.
11989 * dink32-rom.c: Ditto.
11990 * disasm.c: Ditto.
11991 * doublest.c: Ditto.
11992 * dsrec.c: Ditto.
11993 * dummy-frame.c: Ditto.
11994 * dwarf2-frame.c: Ditto.
11995 * dwarf2expr.c: Ditto.
11996 * dwarf2loc.c: Ditto.
11997 * dwarf2read.c: Ditto.
11998 * elfread.c: Ditto.
11999 * environ.c: Ditto.
12000 * eval.c: Ditto.
12001 * event-top.h: Ditto.
12002 * exceptions.c: Ditto.
12003 * exceptions.h: Ditto.
12004 * exec.c: Ditto.
12005 * expprint.c: Ditto.
12006 * expression.h: Ditto.
12007 * f-exp.y: Ditto.
12008 * f-lang.c: Ditto.
12009 * f-lang.h: Ditto.
12010 * f-typeprint.c: Ditto.
12011 * f-valprint.c: Ditto.
12012 * fbsd-nat.c: Ditto.
12013 * findvar.c: Ditto.
12014 * fork-child.c: Ditto.
12015 * frame.c: Ditto.
12016 * frame.h: Ditto.
12017 * frv-linux-tdep.c: Ditto.
12018 * frv-tdep.c: Ditto.
12019 * gcore.c: Ditto.
12020 * gdb-stabs.h: Ditto.
12021 * gdb_assert.h: Ditto.
12022 * gdb_string.h: Ditto.
12023 * gdb_thread_db.h: Ditto.
12024 * gdb_wait.h: Ditto.
12025 * gdbarch.sh: Ditto.
12026 * gdbcore.h: Ditto.
12027 * gdbthread.h: Ditto.
12028 * gdbtypes.c: Ditto.
12029 * gdbtypes.h: Ditto.
12030 * gnu-nat.c: Ditto.
12031 * gnu-nat.h: Ditto.
12032 * gnu-v2-abi.c: Ditto.
12033 * gnu-v3-abi.c: Ditto.
12034 * go32-nat.c: Ditto.
12035 * gdbarch.c: Regenerate.
12036 * gdbarch.h: Regenerate.
12037
12038 2011-01-07 Michael Snyder <msnyder@vmware.com>
12039
12040 * ax-gdb.c: Adjust some long output strings.
12041 * breakpoint.c: Ditto.
12042 * charset.c: Ditto.
12043 * cp-abi.c: Ditto.
12044 * infcall.c: Ditto.
12045 * infrun.c: Ditto.
12046 * linux-nat.c: Ditto.
12047 * solib-pa64.c: Ditto.
12048 * solib-som.c: Ditto.
12049
12050 2011-01-06 Tom Tromey <tromey@redhat.com>
12051
12052 PR python/12367:
12053 * NEWS: Add item.
12054 * python/python.c (GdbMethods): Add "newest_frame" method.
12055 * python/python-internal.h (gdbpy_newest_frame): Declare.
12056 * python/py-frame.c (gdbpy_newest_frame): New function.
12057
12058 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12059
12060 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12061 * jit.c (jit_debug): New variable.
12062 (show_jit_debug): New function.
12063 (struct target_buffer): Use ULONGEST.
12064 (bfd_open_from_target_memory): Likewise.
12065 (jit_register_code, jit_inferior_init): Add debug output.
12066 (_initialize_jit): Register "debug jit" command.
12067
12068 2011-01-06 Tom Tromey <tromey@redhat.com>
12069
12070 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12071 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12072 and ARCH_FRAME.
12073
12074 2011-01-06 Tom Tromey <tromey@redhat.com>
12075
12076 * python/py-frame.c (frapy_block): Use get_frame_block.
12077
12078 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12079
12080 Do not stop on SIGPRIO signals by default
12081 * infrun.c (_initialize_infrun): Unset signal_stop and
12082 signal_print for TARGET_SIGNAL_PRIO.
12083
12084 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12085
12086 * ada-tasks.c: Fix style violation in comment.
12087
12088 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12089
12090 * linespec.c (decode_compound, find_method): Remove trailing \n
12091 at end of error string.
12092 * solib-irix.c (irix_current_sos): Likewise.
12093 * varobj.c (uninstall_variable): Likewise.
12094
12095 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12096
12097 * copyright.py: New script.
12098 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12099 Launch emacs without exec'ing. Call copyright.py afterwards.
12100
12101 2011-01-05 Michael Snyder <msnyder@vmware.com>
12102
12103 * addrmap.c: Shorten lines of >= 80 columns.
12104 * arch-utils.c: Ditto.
12105 * arch-utils.h: Ditto.
12106 * ax-gdb.c: Ditto.
12107 * ax-general.c: Ditto.
12108 * bcache.c: Ditto.
12109 * blockframe.c: Ditto.
12110 * breakpoint.c: Ditto.
12111 * buildsym.c: Ditto.
12112 * c-lang.c: Ditto.
12113 * c-typeprint.c: Ditto.
12114 * charset.c: Ditto.
12115 * coffread.c: Ditto.
12116 * command.h: Ditto.
12117 * corelow.c: Ditto.
12118 * cp-abi.c: Ditto.
12119 * cp-namespace.c: Ditto.
12120 * cp-support.c: Ditto.
12121 * dbug-rom.c: Ditto.
12122 * dbxread.c: Ditto.
12123 * defs.h: Ditto.
12124 * dfp.c: Ditto.
12125 * dfp.h: Ditto.
12126 * dictionary.c: Ditto.
12127 * disasm.c: Ditto.
12128 * doublest.c: Ditto.
12129 * dwarf2-frame.c: Ditto.
12130 * dwarf2expr.c: Ditto.
12131 * dwarf2loc.c: Ditto.
12132 * dwarf2read.c: Ditto.
12133 * elfread.c: Ditto.
12134 * eval.c: Ditto.
12135 * event-loop.c: Ditto.
12136 * event-loop.h: Ditto.
12137 * exceptions.h: Ditto.
12138 * exec.c: Ditto.
12139 * expprint.c: Ditto.
12140 * expression.h: Ditto.
12141 * f-lang.c: Ditto.
12142 * f-valprint.c: Ditto.
12143 * findcmd.c: Ditto.
12144 * frame-base.c: Ditto.
12145 * frame-unwind.c: Ditto.
12146 * frame-unwind.h: Ditto.
12147 * frame.c: Ditto.
12148 * frame.h: Ditto.
12149 * gcore.c: Ditto.
12150 * gdb-stabs.h: Ditto.
12151 * gdb_assert.h: Ditto.
12152 * gdb_dirent.h: Ditto.
12153 * gdb_obstack.h: Ditto.
12154 * gdbcore.h: Ditto.
12155 * gdbtypes.c: Ditto.
12156 * gdbtypes.h: Ditto.
12157 * inf-ttrace.c: Ditto.
12158 * infcall.c: Ditto.
12159 * infcmd.c: Ditto.
12160 * inflow.c: Ditto.
12161 * infrun.c: Ditto.
12162 * inline-frame.h: Ditto.
12163 * language.c: Ditto.
12164 * language.h: Ditto.
12165 * libunwind-frame.c: Ditto.
12166 * libunwind-frame.h: Ditto.
12167 * linespec.c: Ditto.
12168 * linux-nat.c: Ditto.
12169 * linux-nat.h: Ditto.
12170 * linux-thread-db.c: Ditto.
12171 * machoread.c: Ditto.
12172 * macroexp.c: Ditto.
12173 * macrotab.c: Ditto.
12174 * main.c: Ditto.
12175 * maint.c: Ditto.
12176 * mdebugread.c: Ditto.
12177 * memattr.c: Ditto.
12178 * minsyms.c: Ditto.
12179 * monitor.c: Ditto.
12180 * monitor.h: Ditto.
12181 * objfiles.c: Ditto.
12182 * objfiles.h: Ditto.
12183 * osabi.c: Ditto.
12184 * p-typeprint.c: Ditto.
12185 * p-valprint.c: Ditto.
12186 * parse.c: Ditto.
12187 * printcmd.c: Ditto.
12188 * proc-events.c: Ditto.
12189 * procfs.c: Ditto.
12190 * progspace.c: Ditto.
12191 * progspace.h: Ditto.
12192 * psympriv.h: Ditto.
12193 * psymtab.c: Ditto.
12194 * record.c: Ditto.
12195 * regcache.c: Ditto.
12196 * regcache.h: Ditto.
12197 * remote-fileio.c: Ditto.
12198 * remote.c: Ditto.
12199 * ser-mingw.c: Ditto.
12200 * ser-tcp.c: Ditto.
12201 * ser-unix.c: Ditto.
12202 * serial.c: Ditto.
12203 * serial.h: Ditto.
12204 * solib-frv.c: Ditto.
12205 * solib-irix.c: Ditto.
12206 * solib-osf.c: Ditto.
12207 * solib-pa64.c: Ditto.
12208 * solib-som.c: Ditto.
12209 * solib-sunos.c: Ditto.
12210 * solib-svr4.c: Ditto.
12211 * solib-target.c: Ditto.
12212 * solib.c: Ditto.
12213 * somread.c: Ditto.
12214 * source.c: Ditto.
12215 * stabsread.c: Ditto.
12216 * stabsread.c: Ditto.
12217 * stack.c: Ditto.
12218 * stack.h: Ditto.
12219 * symfile-mem.c: Ditto.
12220 * symfile.c: Ditto.
12221 * symfile.h: Ditto.
12222 * symmisc.c: Ditto.
12223 * symtab.c: Ditto.
12224 * symtab.h: Ditto.
12225 * target-descriptions.c: Ditto.
12226 * target-memory.c: Ditto.
12227 * target.c: Ditto.
12228 * target.h: Ditto.
12229 * terminal.h: Ditto.
12230 * thread.c: Ditto.
12231 * top.c: Ditto.
12232 * tracepoint.c: Ditto.
12233 * tracepoint.h: Ditto.
12234 * ui-file.c: Ditto.
12235 * ui-file.h: Ditto.
12236 * ui-out.h: Ditto.
12237 * user-regs.c: Ditto.
12238 * user-regs.h: Ditto.
12239 * utils.c: Ditto.
12240 * valarith.c: Ditto.
12241 * valops.c: Ditto.
12242 * valprint.c: Ditto.
12243 * valprint.h: Ditto.
12244 * value.c: Ditto.
12245 * varobj.c: Ditto.
12246 * varobj.h: Ditto.
12247 * vec.h: Ditto.
12248 * xcoffread.c: Ditto.
12249 * xcoffsolib.c: Ditto.
12250 * xcoffsolib.h: Ditto.
12251 * xml-syscall.c: Ditto.
12252 * xml-tdesc.c: Ditto.
12253
12254 2011-01-05 Michael Snyder <msnyder@vmware.com>
12255
12256 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12257 * cli/cli-decode.c: Ditto.
12258 * cli/cli-dump.c: Ditto.
12259 * cli/cli-logging.c: Ditto.
12260 * cli/cli-script.c: Ditto.
12261 * cli/cli-setshow.c: Ditto.
12262 * common/signals.c: Ditto.
12263 * mi/mi-cmd-break.c: Ditto.
12264 * mi/mi-cmd-disas.c: Ditto.
12265 * mi/mi-cmd-stack.c: Ditto.
12266 * mi/mi-cmd-var.c: Ditto.
12267 * mi/mi-cmds.c: Ditto.
12268 * mi/mi-common.h: Ditto.
12269 * mi/mi-console.c: Ditto.
12270 * mi/mi-interp.c: Ditto.
12271 * mi/mi-main.c: Ditto.
12272 * osf-share/cma_attr.c: Ditto.
12273 * osf-share/cma_deb_core.h: Ditto.
12274 * osf-share/cma_debug_client.h: Ditto.
12275 * osf-share/cma_handle.h: Ditto.
12276 * osf-share/cma_mutex.h: Ditto.
12277 * osf-share/cma_stack_int.h: Ditto.
12278 * osf-share/cma_tcb_defs.h: Ditto.
12279 * python/py-auto-load.c: Ditto.
12280 * python/py-breakpoint.c: Ditto.
12281 * python/py-cmd.c: Ditto.
12282 * python/py-frame.c: Ditto.
12283 * python/py-objfile.c: Ditto.
12284 * python/py-param.c: Ditto.
12285 * python/py-progspace.c: Ditto.
12286 * python/py-symbol.c: Ditto.
12287 * python/py-value.c: Ditto.
12288 * python/python-internal.h: Ditto.
12289 * python/python.c: Ditto.
12290 * tui/tui-data.c: Ditto.
12291 * tui/tui-disasm.c: Ditto.
12292 * tui/tui-hooks.c: Ditto.
12293 * tui/tui-io.c: Ditto.
12294 * tui/tui-layout.c: Ditto.
12295 * tui/tui-regs.c: Ditto.
12296 * tui/tui-source.c: Ditto.
12297 * tui/tui-stack.c: Ditto.
12298 * tui/tui-win.c: Ditto.
12299 * tui/tui-windata.c: Ditto.
12300 * tui/tui-winsource.c: Ditto.
12301
12302 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12303
12304 * configure.ac, gdb.1: Copyright year update.
12305
12306 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12307
12308 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12309 this_pc_in_block, morestack_msym and morestack_name. Check for
12310 "__morestack" minimal symbol there.
12311
12312 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12313
12314 * symfile.c (find_sym_fns): Add call to dont_repeat.
12315
12316 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12317
12318 Copyright year update in most files (performed by copyright.sh).
12319
12320 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12321
12322 * top.c (print_gdb_version): Update copyright year in version output.
12323
12324 For older changes see ChangeLog-2010.
12325 \f
12326 Local Variables:
12327 mode: change-log
12328 left-margin: 8
12329 fill-column: 74
12330 version-control: never
12331 coding: utf-8
12332 End:
This page took 0.26605 seconds and 5 git commands to generate.