1 2011-12-17 Mark Kettenis <kettenis@gnu.org>
3 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
4 regset_from_core_section.
5 (amd64obsd_core_init_abi): New function that sets
6 regset_from_core_section.
7 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
8 traditional core dumps.
10 2011-12-17 Mark Kettenis <kettenis@gnu.org>
12 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
13 trampoline to be introduced in OpenBSD 5.0.
15 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
17 Fix build regression from the PR threads/10729 fix.
18 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
21 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
23 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
24 `optarg' to `oind' and `oarg', respectively(-Wshadow).
25 (mi_cmd_data_read_memory): Ditto.
26 (mi_cmd_data_read_memory_bytes): Ditto.
27 (mi_cmd_data_write_memory): Ditto.
29 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
31 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
32 `oind' and `oarg', respectively(-Wshadow).
33 (mi_valid_noargs): Ditto.
35 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
37 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
38 `oind' and `oarg', respectively(-Wshadow).
40 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
42 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
43 `optarg' to `oind' and `oarg', respectively(-Wshadow).
44 (mi_cmd_target_file_put): Ditto.
45 (mi_cmd_target_file_delete): Ditto.
47 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
49 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
50 `optarg' to `oind' and `oarg', respectively(-Wshadow).
51 (mi_cmd_env_dir): Ditto.
53 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
55 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
56 `optarg' to `oind' and `oarg', respectively(-Wshadow).
58 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
60 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
61 `optparg' to `oind' and `oarg', respectively(-Wshadow).
62 (mi_cmd_break_watch): Ditto.
64 2011-12-16 Tom Tromey <tromey@redhat.com>
66 * linespec.c (collect_symbols): Call maybe_add_address after
67 calling symbol_to_sal.
68 (minsym_found): Call maybe_add_address here.
69 (search_minsyms_for_name): Don't call maybe_add_address.
71 2011-12-16 Tom Tromey <tromey@redhat.com>
73 * linespec.c (struct collect_info) <objfile>: Remove field.
74 (decode_objc): Update.
75 (find_method): Update.
76 (decode_variable): Update.
77 (struct minsym_and_objfile): New.
78 (struct collect_minsyms): New.
79 (classify_mtype): New function.
80 (compare_msyms): Likewise.
81 (add_minsym): Likewise.
82 (check_minsym): Remove.
83 (search_minsyms_for_name): Sort minsyms and apply only those with
86 2011-12-16 Tom Tromey <tromey@redhat.com>
88 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
90 2011-12-16 Pedro Alves <pedro@codesourcery.com>
92 * inf-loop.c: Include top.h.
93 (inferior_event_handler): Call check_frame_language.
94 * top.c (check_frame_language_change): New, factored out from ...
95 (execute_command): ... this. Use check_frame_language_change.
96 * top.h (check_frame_language_change): Declare.
98 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
100 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
103 2011-12-16 Doug Evans <dje@google.com>
105 * NEWS: Add entry for stdio gdbserver.
107 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
109 * python/python.c: Define python_excp_enums.
110 (eval_python_from_control_command): Do not call gdbpy_print_stack.
111 (python_command): Ditto.
112 (gdbpy_print_stack): Rewrite to use new enum constants.
113 (maint_set_python): Remove function.
114 (maint_show_python): Ditto.
115 (_initialize_python): Do not add "maint" commands. Add "set/show
116 python print-stack commands".
117 * NEWS: Update to reflect removal for "maint set/show
120 2011-12-15 Doug Evans <dje@google.com>
122 * exceptions.c (catcher_list_size): New function.
123 (last_message): Delete.
124 (exception_messages, exception_messages_size): New static globals.
125 (throw_it): Use exception_messages array to handle nested calls.
127 2011-12-15 Tom Tromey <tromey@redhat.com>
129 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
132 2011-12-14 Doug Evans <dje@google.com>
134 * defs.h (wait_to_die_with_timeout): Declare.
135 * utils.c: #include "gdb_wait.h".
136 (sigalrm_handler, wait_to_die_with_timeout): New functions.
137 * ser-pipe.c: Don't #include "gdb_wait.h".
138 (pipe_close): Give child a chance to die on its own after closing
139 its stdin before SIGTERM'ing it.
141 2011-12-14 Joel Brobecker <brobecker@adacore.com>
142 Tom Tromey <tromey@redhat.com>
144 * ada-lang.c (add_nonlocal_symbols): Initialize data to
145 all zeros. Remove setting of data.arg_sym to NULL.
147 2011-12-14 Pedro Alves <pedro@codesourcery.com>
151 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
153 (linux_nat_prepare_to_resume): New global.
155 (purge_lwp_list): Use it.
156 (add_lwp): Call linux_nat_new_thread even on the first LWP.
157 Adjust to interface change.
158 (delete_lwp): Call lwp_free instead of xfree.
159 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
160 (linux_handle_syscall_trap, linux_handle_extended_wait)
161 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
162 linux_nat_prepare_to_resume before resuming.
163 (linux_stop_lwp): New.
164 (linux_nat_set_new_thread): Adjust.
165 (linux_nat_set_prepare_to_resume): New.
166 * linux-nat.h (struct arch_lwp_info): Forward declare.
167 (struct lwp_info) <arch_private>: New field.
168 (linux_stop_lwp): Declare.
169 (linux_nat_set_new_thread): Adjust.
170 (linux_nat_set_prepare_to_resume): New.
172 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
173 (struct i386_debug_reg_state): Move to i386-nat.h.
174 (dr_mirror): Comment.
175 (i386_debug_reg_state): New.
176 (i386_update_inferior_debug_regs): Simplify.
177 (i386_stopped_data_address): Use the debug register state from the
178 inferior, not from the local cache.
179 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
180 unset_status fields. New get_addr and get_control fields.
181 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
182 (DR_NADDR, DR_STATUS): New.
183 (struct i386_debug_reg_state): Moved from i386-nat.c.
185 * amd64-linux-nat.c (struct arch_lwp_info): New.
186 (amd64_linux_dr): Delete global.
187 (amd64_linux_dr_get_addr): New.
188 (amd64_linux_dr_get_control): New.
189 (amd64_linux_dr_unset_status): Delete.
190 (amd64_linux_dr_set_addr): Reimplement.
191 (amd64_linux_dr_reset_addr): Delete.
192 (update_debug_registers_callback): New.
193 (amd64_linux_dr_set_control): Reimplement.
194 (amd64_linux_dr_set_addr): Reimplement.
195 (amd64_linux_prepare_to_resume): New.
196 (amd64_linux_new_thread): Change parameter to an lwp pointer.
198 (_initialize_amd64_linux_nat): No longer install
199 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
200 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
201 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
202 amd64_linux_prepare_to_resume.
203 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
204 (DR_CONTROL): Delete.
205 (struct arch_lwp_info): New.
206 (i386_linux_dr): Delete global.
207 (i386_linux_dr_set_control): Reimplement.
208 (i386_linux_dr_get_addr): New.
209 (i386_linux_dr_set_addr): Reimplement.
210 (i386_linux_dr_get_control): New.
211 (update_debug_registers_callback): New.
212 (i386_linux_dr_unset_status): Delete.
213 (i386_linux_dr_set_addr): Reimplement.
214 (i386_linux_prepare_to_resume): New.
215 (i386_linux_new_thread): Change parameter to an lwp pointer.
217 (_initialize_i386_linux_nat): No longer install
218 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
219 i386_linux_dr_get_control as i386_dr_low.get_control. Install
220 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
221 i386_linux_prepare_to_resume.
223 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
225 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
226 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
227 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
228 * s390-nat.c (s390_fix_watch_points): Likewise.
230 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
231 (DR_CONTROL): Delete.
232 (i386_darwin_dr_reset_addr): Delete.
233 (i386_darwin_dr_get_addr): New.
234 (i386_darwin_dr_get_control): New.
236 (go32_get_dr7, go32_get_dr): New.
237 (init_go32_ops): No longer install i386_dr_low.reset_addr.
238 Install go32_get_dr7 as i386_dr_low.get_control. Install
239 go32_get_dr as i386_dr_low.get_addr.
240 * i386bsd-nat.c (i386bsd_dr_get): New.
241 (i386bsd_dr_reset_addr): Delete.
242 (i386bsd_dr_get_addr): New.
243 (i386bsd_dr_get_status): Use i386bsd_dr_get.
244 (i386bsd_dr_get_control): New.
245 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
246 (i386bsd_dr_get_addr): New.
247 (i386bsd_dr_get_control): New.
248 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
249 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
250 i386bsd_dr_get_control as i386_dr_low.get_control. Install
251 i386bsd_dr_get_addr as i386_dr_low.get_addr.
252 * windows-nat.c (init_windows_ops): No longer install
253 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
254 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
255 as i386_dr_low.get_addr.
256 (cygwin_get_dr): New.
257 (cygwin_get_dr7): New.
259 2011-12-14 Pedro Alves <pedro@codesourcery.com>
261 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
262 target_write_raw_memory.
263 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
264 target_write_raw_memory.
265 * microblaze-linux-tdep.c
266 (microblaze_linux_memory_remove_breakpoint): Use
267 target_write_raw_memory.
268 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
269 target_write_raw_memory.
271 2011-12-14 Joel Brobecker <brobecker@adacore.com>
273 * linespec.c (decode_line_internal): Make static.
275 2011-12-14 Yao Qi <yao@codesourcery.com>
277 * breakpoint.c (create_breakpoint): Set canonical.addr_string
278 for static tracepoint.
280 2011-12-13 Joel Brobecker <brobecker@adacore.com>
282 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
283 * version.in: Bump version to 7.4.50.20111213-cvs.
285 2011-12-13 Joel Brobecker <brobecker@adacore.com>
287 * NEWS: Create a new section for the next release branch.
288 Rename the section of the current branch, now that it has
291 2011-12-11 Joel Brobecker <brobecker@adacore.com>
293 * ada-lang.c (ada_exception_support_info_sniffer): Improve
296 2011-12-11 Joel Brobecker <brobecker@adacore.com>
298 * ada-lang.c (struct ada_inferior_data) [exception_info]:
300 (exception_info): Delete.
301 (ada_exception_support_info_sniffer): Get exception_support_info
302 data from our per-inferior data. Adjust code accordingly.
303 (ada_unhandled_exception_name_addr_from_raise): Likewise.
304 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
305 (ada_executable_changed_observer): Delete.
306 (_initialize_ada_language): Remove call to
307 observer_attach_executable_changed.
309 2011-12-11 Joel Brobecker <brobecker@adacore.com>
311 * ada-lang.c (ada_has_this_exception_support): Raise an error
312 if we could find the Ada exception hook in the Ada runtime,
313 but no debugging info for that hook.
315 2011-12-11 Joel Brobecker <brobecker@adacore.com>
317 * ada-lang.c (ada_has_this_exception_support): New function,
318 extracted out of ada_exception_sal and ada_exception_sal.
319 (ada_exception_support_info_sniffer): Simplify by using
320 ada_has_this_exception_support.
321 (ada_exception_sal): Replace unnecessary checks by assertions.
322 Minor simplifications.
324 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
326 * breakpoint.c (update_global_location_list): Remove nested
327 definition of `b'(-Wshadow).
329 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
331 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
332 `error_flag'(-Wshadow).
334 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
336 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
339 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
341 * annotate.c (annotate_array_section_begin): Rename `index' to
344 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
346 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
349 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
351 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
352 `syscall' to `syscall_number'(-Wshadow).
354 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
356 * ada-lang.c (remove_extra_symbols): Rename `remove' to
357 `remove_p'(-Wshadow).
359 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
361 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
364 2011-12-10 Doug Evans <dje@google.com>
366 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
367 debug_types_section. All uses updated.
368 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
369 to is_debug_types_section.
371 * python/py-auto-load.c (source_section_scripts): Call xfree
374 2011-12-10 Hui Zhu <teawater@gmail.com>
375 Yao Qi <yao@codesourcery.com>
377 * tracepoint.c (start_tracing): Clear `inserted' flag.
379 2011-12-10 Hui Zhu <teawater@gmail.com>
381 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
383 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
385 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
388 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
390 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
391 `marker' variables to `sal2' and `tpmarker' respectively
394 2011-12-09 Andrew Pinski <apinski@cavium.com>
396 * linespec.c (hash_address_entry): Use iterative_hash_object on each
397 field rather than the struct itself.
399 2011-12-09 Tom Tromey <tromey@redhat.com>
401 * breakpoint.c (compare_breakpoints): New function.
402 (clear_command): Remove duplicate breakpoints. Properly clean
405 2011-12-08 Maciej W. Rozycki <macro@mips.com>
406 Maciej W. Rozycki <macro@codesourcery.com>
408 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
409 address chunks retrieved from decoded lui/addiu pairs.
411 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
413 * mips-tdep.c (extended_offset): Correct calculation.
414 (unpack_mips16): Correct bitfield positions used for extraction
415 of the immediate argument; fix sign-extension of same.
416 (extended_mips16_next_pc): Correct B instruction's offset
417 calculation. Correct register decoding of the BEQZ and BNEZ
418 as well as jump-register instructions. Handle compact jumps.
420 2011-12-08 Tom Tromey <tromey@redhat.com>
422 * objfiles.h (struct objfile): Remove obsolete comment.
423 * objfiles.c (build_objfile_section_table): Remove obsolete
426 2011-12-07 Stan Shebs <stan@codesourcery.com>
428 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
429 maintainer of the tic6x target.
431 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
433 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
434 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
435 (arm_deal_with_atomic_sequence_raw): Likewise.
436 (arm_deal_with_atomic_sequence): Likewise.
437 (arm_software_single_step): Call it.
438 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
440 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
442 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
444 * s390-tdep.h: Likewise.
446 2011-12-07 Tristan Gingold <gingold@adacore.com>
448 * machoread.c (macho_symtab_read): Do not consider N_OPT as
449 a debugging stab. Improve complaint message.
451 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
453 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
454 load adjustment if still within the prologue.
456 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
458 * mips-tdep.c (mips32_next_pc): Fix floating point condition
461 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
463 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
464 of BLTZ* and BGEZ* instructions.
466 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
468 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
469 performed to determine whether an address refers to standard
471 (mips16_next_pc): Use mips_pc_is_mips16 instead of
474 2011-12-06 Pedro Alves <pedro@codesourcery.com>
476 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
477 (breakpoint_xfer_memory): ... this. Change prototype. Handle
479 * breakpoint.h (breakpoint_restore_shadows): Delete.
480 (breakpoint_xfer_memory): Declare.
481 * mem-break.c (default_memory_insert_breakpoint)
482 (default_memory_remove_breakpoint): Use target_write_raw_memory.
483 (memory_xfer_partial): Rename to ...
484 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
486 (memory_xfer_partial): New.
487 (target_write_raw_memory): New.
488 * target.h (target_write_raw_memory): New.
490 2011-12-06 Doug Evans <dje@google.com>
492 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
494 2011-12-06 Joel Brobecker <brobecker@acacore.com>
496 * language.h (struct language_defn): Add new component
497 la_symbol_name_compare.
498 * symfile.h (struct quick_symbol_functions): Update the profile
499 of parameter "name_matcher" for the expand_symtabs_matching
500 method. Update the documentation accordingly.
501 * ada-lang.h (ada_name_for_lookup): Add declaration.
502 * ada-lang.c (ada_name_for_lookup): New function, extracted out
503 from ada_iterate_over_symbols.
504 (ada_iterate_over_symbols): Do not encode symbol name anymore.
505 (ada_expand_partial_symbol_name): Adjust profile.
506 (ada_language_defn): Add value for la_symbol_name_compare field.
507 * linespec.c: #include "ada-lang.h".
508 (iterate_name_matcher): Add language parameter. Replace call
509 to strcmp_iw by call to language->la_symbol_name_compare.
510 (decode_variable): Encode COPY if current language is Ada.
511 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
512 of name_matcher parameter. Adjust call to name_matcher.
513 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
514 (expand_partial_symbol_names): Update profile of parameter "fun".
515 * psymtab.h (expand_partial_symbol_names): Update profile of
517 * symtab.c (demangle_for_lookup): Update function documentation.
518 (search_symbols_name_matches): Add language parameter.
519 (expand_partial_symbol_name): Likewise.
520 * c-lang.c (c_language_defn, cplus_language_defn)
521 (asm_language_defn, minimal_language_defn): Add value for
522 la_symbol_name_compare field.
523 * d-lang.c (d_language_defn): Likewise.
524 * f-lang.c (f_language_defn): Ditto.
525 * jv-lang.c (java_language_defn): Ditto.
526 * m2-lang.c (m2_language_defn): Ditto.
527 * objc-lang.c (objc_language_defn): Ditto.
528 * opencl-lang.c (opencl_language_defn): Ditto.
529 * p-lang.c (pascal_language_defn): Ditto.
530 * language.c (unknown_language_defn, auto_language_defn)
531 (local_language_defn): Ditto.
533 2011-12-06 Tom Tromey <tromey@redhat.com>
535 * linespec.c (iterate_over_all_matching_symtabs): Use
536 LA_ITERATE_OVER_SYMBOLS.
537 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
538 (find_function_symbols, decode_variable): Remove Ada special
540 * language.h (struct language_defn) <la_iterate_over_symbols>: New
542 (LA_ITERATE_OVER_SYMBOLS): New macro.
543 * language.c (unknown_language_defn, auto_language_defn)
544 (local_language_defn): Update.
545 * c-lang.c (c_language_defn, cplus_language_defn)
546 (asm_language_defn, minimal_language_defn): Update.
547 * d-lang.c (d_language_defn): Update.
548 * f-lang.c (f_language_defn): Update.
549 * jv-lang.c (java_language_defn): Update.
550 * m2-lang.c (m2_language_defn): Update.
551 * objc-lang.c (objc_language_defn): Update.
552 * opencl-lang.c (opencl_language_defn): Update.
553 * p-lang.c (pascal_language_defn): Update.
554 * ada-lang.c (ada_iterate_over_symbols): New function.
555 (ada_language_defn): Update.
557 2011-12-06 Tom Tromey <tromey@redhat.com>
558 Joel Brobecker <brobecker@acacore.com>
560 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
561 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
562 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
563 PR shlibs/8929, PR shlibs/7393:
564 * python/py-type.c (compare_maybe_null_strings): Rename from
566 (check_types_equal): Update.
567 * utils.c (compare_strings): New function.
568 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
570 * tracepoint.c (scope_info): Update.
571 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
572 * symtab.h (iterate_over_minimal_symbols)
573 (iterate_over_some_symtabs, iterate_over_symtabs)
574 (find_pcs_for_symtab_line, iterate_over_symbols)
575 (demangle_for_lookup): Declare.
576 (expand_line_sal): Remove.
577 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
578 (lookup_symtab_callback): New functions.
579 (lookup_symtab): Rewrite.
580 (demangle_for_lookup): New function, extract from
581 lookup_symbol_in_language.
582 (lookup_symbol_in_language): Use it.
583 (iterate_over_symbols): New function.
584 (find_line_symtab): Update.
585 (find_pcs_for_symtab_line): New functions.
586 (find_line_common): Add 'start' argument.
587 (decode_line_spec): Update. Change argument to 'flags', change
589 (append_expanded_sal): Remove.
590 (append_exact_match_to_sals): Remove.
591 (expand_line_sal): Remove.
592 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
594 <map_symtabs_matching_filename>: New field.
595 * stack.c (func_command): Only look in the current program space.
596 Use DECODE_LINE_FUNFIRSTLINE.
597 * source.c (line_info): Set pspace on sal. Check program space in
598 the loop. Use DECODE_LINE_LIST_MODE.
599 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
600 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
601 * python/python.c (gdbpy_decode_line): Update.
602 * psymtab.c (partial_map_expand_apply): New function.
603 (partial_map_symtabs_matching_filename): Rename from
604 lookup_partial_symbol. Update arguments.
605 (lookup_symtab_via_partial_symtab): Remove.
606 (psym_functions): Update.
607 * objc-lang.h (parse_selector, parse_method): Don't declare.
609 * objc-lang.c (parse_selector, parse_method): Now static.
610 (find_methods): Change arguments. Fill in a vector of symbol
612 (uniquify_strings): New function.
613 (find_imps): Change arguments.
614 * minsyms.c (iterate_over_minimal_symbols): New function.
615 * linespec.h (enum decode_line_flags): New.
616 (struct linespec_sals): New.
617 (struct linespec_result) <canonical>: Remove.
618 <pre_expanded, addr_string, sals>: New fields.
619 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
620 (decode_line_full): Declare.
621 (decode_line_1): Update.
622 * linespec.c (struct address_entry, struct linespec_state, struct
623 collect_info): New types.
624 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
625 (eq_address_entry, maybe_add_address): New functions.
626 (total_number_of_methods): Remove.
627 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
629 (find_methods): Change arguments. Don't canonicalize input.
631 (add_matching_methods, add_constructors)
632 (build_canonical_line_spec): Remove.
633 (filter_results, convert_results_to_lsals): New functions.
634 (decode_line_2): Change arguments. Rewrite for new data
636 (decode_line_internal): Rename from decode_line_1. Change
637 arguments. Add cleanups. Update for new data structures.
638 (linespec_state_constructor, linespec_state_destructor)
639 (decode_line_full, decode_line_1): New functions.
640 (decode_indirect): Change arguments. Update.
641 (locate_first_half): Use skip_spaces.
642 (decode_objc): Change arguments. Update for new data structures.
644 (decode_compound): Change arguments. Add cleanups. Remove
645 fallback code, replace with error.
646 (struct decode_compound_collector): New type.
647 (collect_one_symbol): New function.
648 (lookup_prefix_sym): Change arguments. Update.
649 (compare_symbol_name, add_all_symbol_names_from_pspace)
650 (find_superclass_methods ): New functions.
651 (find_method): Rewrite.
652 (struct symtab_collector): New type.
653 (add_symtabs_to_list, collect_symtabs_from_filename): New
655 (symtabs_from_filename): Change API. Rename from
656 symtab_from_filename.
657 (collect_function_symbols): New function.
658 (find_function_symbols): Change API. Rename from
659 find_function_symbol. Rewrite.
660 (decode_all_digits): Change arguments. Rewrite.
661 (decode_dollar): Change arguments. Use decode_variable.
662 (decode_label): Change arguments. Rewrite.
663 (collect_symbols): New function.
664 (minsym_found): Change arguments. Rewrite.
665 (check_minsym, search_minsyms_for_name)
666 (add_matching_symbols_to_info): New function.
667 (decode_variable): Change arguments. Iterate over all symbols.
668 (symbol_found): Remove.
669 (symbol_to_sal): New function.
670 (init_linespec_result, destroy_linespec_result)
671 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
673 (decode_digits_list_mode, decode_digits_ordinary): New functions.
674 * dwarf2read.c (dw2_map_expand_apply): New function.
675 (dw2_map_symtabs_matching_filename): Rename from
676 dw2_lookup_symtab. Change arguments.
677 (dwarf2_gdb_index_functions): Update.
678 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
679 * defs.h (compare_strings): Declare.
680 * cli/cli-cmds.c (compare_strings): Move to utils.c.
681 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
683 (compare_symtabs, filter_sals): New functions.
684 * breakpoint.h (struct bp_location) <line_number, source_file>:
686 (struct breakpoint) <line_number, source_file>: Remove.
688 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
689 (momentary_breakpoint_from_master, add_location_to_breakpoint):
690 Update for changes to locations.
691 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
693 (create_breakpoint_sal): Add 'filter' argument.
694 (remove_sal, expand_line_sal_maybe): Remove.
695 (create_breakpoints_sal): Remove 'sals' argument. Handle
696 pre-expanded sals and the filter.
697 (parse_breakpoint_sals): Use decode_line_full.
698 (check_fast_tracepoint_sals): Use get_sal_arch.
699 (create_breakpoint): Create a linespec_sals. Update.
700 (break_range_command): Use decode_line_full. Update.
701 (until_break_command): Update.
702 (clear_command): Update match conditions for linespec.c changes.
703 Use DECODE_LINE_LIST_MODE.
704 (say_where): Update for changes to locations.
705 (bp_location_dtor): Free 'source_file'.
706 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
707 (update_static_tracepoint): Update for changes to locations.
708 (update_breakpoint_locations): Disable ranged breakpoint if too
709 many locations match. Update.
710 (addr_string_to_sals): Use decode_line_full. Resolve all sal
712 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
713 (decode_line_spec_1): Update. Change argument name to 'flags',
714 change interpretation.
715 * block.h (block_containing_function): Declare.
716 * block.c (block_containing_function): New function.
717 * skip.c (skip_function_command): Update.
718 (skip_re_set): Update.
719 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
720 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
723 2011-12-06 Tom Tromey <tromey@redhat.com>
725 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
726 breakpoint's pspace to be NULL.
727 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
728 * breakpoint.c (init_raw_breakpoint): Conditionally set
730 (init_breakpoint_sal): Don't set breakpoint's pspace.
731 (prepare_re_set_context): Conditionally switch program space.
732 (addr_string_to_sals): Check executing_startup on location's
735 2011-12-06 Tom Tromey <tromey@redhat.com>
737 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
738 * breakpoint.c (should_be_inserted): Explicitly check if program
739 space is executing startup.
740 (describe_other_breakpoints): Update.
741 (disable_breakpoints_before_startup): Change executing_startup
742 earlier. Remove loop.
743 (enable_breakpoints_after_startup): Likewise.
744 (init_breakpoint_sal): Don't use bp_startup_disabled.
745 (create_breakpoint): Don't use bp_startup_disabled.
746 (update_global_location_list): Use should_be_inserted.
747 (bkpt_re_set): Update.
749 2011-12-06 Tom Tromey <tromey@redhat.com>
751 * python/lib/gdb/command/pretty_printers.py
752 (InfoPrettyPrinter.invoke1): Remove extra double quote.
754 2011-12-06 Tom Tromey <tromey@redhat.com>
758 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
760 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
761 (S390_LAST_BREAK_REGNUM): Likewise.
762 (S390_SYSTEM_CALL_REGNUM): Likewise.
763 (S390_NUM_REGS): Update.
765 (s390_regmap_last_break): Add declaration.
766 (s390x_regmap_last_break): Likewise.
767 (s390_regmap_system_call): Likewise.
769 (tdesc_s390_linux32v1): Add declaration.
770 (tdesc_s390_linux32v2): Likewise.
771 (tdesc_s390_linux64v1): Likewise.
772 (tdesc_s390_linux64v2): Likewise.
773 (tdesc_s390x_linux64v1): Likewise.
774 (tdesc_s390x_linux64v2): Likewise.
776 * s390-tdep.c: Include new target description files
777 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
778 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
779 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
780 (s390_cannot_store_register): New function.
781 (s390_write_pc): Likewise.
782 (s390_dwarf_regmap): Add fields for new registers.
783 (s390_regmap_gregset): Likewise.
784 (s390x_regmap_gregset): Likewise.
785 (s390_regmap_fpregset): Likewise.
786 (s390_regmap_upper): Likewise.
787 (s390_regmap_last_break): New variable.
788 (s390x_regmap_last_break): Likewise.
789 (s390_regmap_system_call): Likewise.
790 (s390_last_break_regset): Likewise.
791 (s390x_last_break_regset): Likewise.
792 (s390_system_call_regset): Likewise.
793 (s390_upper_regset_sections): Rename to ...
794 (s390_linux64_regset_sections): ... this.
795 (s390_linux32_regset_sections): New variable.
796 (s390x_linux64_regset_sections): Likewise.
797 (s390_linux32v1_regset_sections): Likewise.
798 (s390_linux32v2_regset_sections): Likewise.
799 (s390_linux64v1_regset_sections): Likewise.
800 (s390_linux64v2_regset_sections): Likewise.
801 (s390x_linux64v1_regset_sections): Likewise.
802 (s390x_linux64v2_regset_sections): Likewise.
803 (s390_regset_from_core_section): Handle .reg-s390-last-break and
804 .reg-s390-system-call core file sections.
805 (s390_core_read_description): Check for presence of
806 .reg-s390-last-break and .reg-s390-system-call core file
807 sections and return appropriate target description.
808 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
809 "last_break" and "system_call" in target description. Install
810 appropriate gdbarch_core_regset_sections array.
811 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
812 (_initialize_s390_tdep): Initialize additional target descriptions.
814 * s390-nat.c: Include "elf/common.h".
815 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
816 (have_regset_last_break): New static variable.
817 (have_regset_system_call): Likewise.
818 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
819 (s390_native_collect): Likewise.
820 (fetch_regset, store_regset, check_regset): New functions.
821 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
822 and S390_SYSTEM_CALL_REGNUM.
823 (s390_linux_store_inferior_registers): Likewise.
824 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
825 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
827 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
828 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
829 (s390-linux32v1-expedite): Define.
830 (s390-linux32v2-expedite): Likewise.
831 (s390-linux64v1-expedite): Likewise.
832 (s390-linux64v2-expedite): Likewise.
833 (s390x-linux64v1-expedite): Likewise.
834 (s390x-linux64v2-expedite): Likewise.
836 * features/s390-linux32.xml: Add orig_r2 register.
837 * features/s390-linux64.xml: Likewise.
838 * features/s390x-linux64.xml: Likewise.
839 * features/s390-linux32v1.xml: New file.
840 * features/s390-linux32v2.xml: Likewise.
841 * features/s390-linux64v1.xml: Likewise.
842 * features/s390-linux64v2.xml: Likewise.
843 * features/s390x-linux64v1.xml: Likewise.
844 * features/s390x-linux64v2.xml: Likewise.
846 * features/s390-linux32.c: Regenerate.
847 * features/s390-linux64.c: Likewise.
848 * features/s390x-linux64.c: Likewise.
849 * features/s390-linux32v1.c: New generated file.
850 * features/s390-linux32v2.c: Likewise.
851 * features/s390-linux64v1.c: Likewise.
852 * features/s390-linux64v2.c: Likewise.
853 * features/s390x-linux64v1.c: Likewise.
854 * features/s390x-linux64v2.c: Likewise.
856 * regformats/s390-linux32.dat: Regenerate.
857 * regformats/s390-linux64.dat: Regenerate.
858 * regformats/s390x-linux64.dat: Regenerate.
859 * regformats/s390-linux32v1.dat: New generated file.
860 * regformats/s390-linux32v2.dat: Likewise.
861 * regformats/s390-linux64v1.dat: Likewise.
862 * regformats/s390-linux64v2.dat: Likewise.
863 * regformats/s390x-linux64v1.dat: Likewise.
864 * regformats/s390x-linux64v2.dat: Likewise.
866 2011-12-05 Pedro Alves <pedro@codesourcery.com>
868 * linux-nat.c (resume_stopped_resumed_lwps): Call
871 2011-12-05 Pedro Alves <pedro@codesourcery.com>
873 * breakpoint.c: Include record.h.
874 (breakpoints_always_inserted_mode): Return false when the record
877 2011-12-05 Pedro Alves <pedro@codesourcery.com>
879 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
880 Reinstate perror_with_name call on ptrace error. Remove #if 0.
881 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
882 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
884 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
886 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
889 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
891 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
893 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
895 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
898 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
900 Fix compilation --without-expat.
901 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
903 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
905 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
906 Jan Kratochvil <jan.kratochvil@redhat.com>
908 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
909 * features/library-list-svr4.dtd: New file.
910 * remote.c (PACKET_qXfer_libraries_svr4): New.
911 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
912 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
913 * solib-svr4.c (struct svr4_library_list): New.
914 [HAVE_LIBEXPAT]: Include xml-support.h.
915 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
916 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
917 [HAVE_LIBEXPAT] (svr4_library_list_children)
918 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
919 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
920 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
921 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
922 (svr4_read_so_list): Extend the corruption message by addresses.
923 (svr4_current_sos): New variable library_list, call
924 svr4_current_sos_via_xfer_libraries.
925 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
927 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
930 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
931 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
933 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
936 * dwarf2read.c (process_psymtab_comp_unit): Set
937 PSYMTABS_ADDRMAP_SUPPORTED.
938 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
939 validity. New field psymtabs_addrmap_supported.
940 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
941 psymtabs_addrmap_supported.
942 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
943 !PSYMTABS_ADDRMAP_SUPPORTED.
944 (dump_psymtab, maintenance_info_psymtabs): Print also
945 psymtabs_addrmap_supported.
947 2011-12-01 Doug Evans <dje@google.com>
949 * python/py-type.c (type_object_methods): Fix "array" doc string.
951 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
953 * source.c (print_source_lines_base): Fix missing braces on else
954 clause leading to additional output.
956 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
958 * s390-nat.c (SUBOFF): Remove.
959 (s390_native_supply, s390_native_collect): New functions.
960 (supply_gregset, supply_fpregset): Use s390_native_supply.
961 (fill_gregset, fill_fpregset): Use s390_native_collect.
963 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
964 (s390_unwind_pseudo_register): New function.
965 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
966 registers instead of PC and CC.
967 (s390_backchain_frame_unwind_cache): Likewise.
968 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
970 (s390_trad_frame_prev_register): New function.
971 (s390_frame_prev_register): Use it.
972 (s390_sigtramp_frame_prev_register): Likewise.
973 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
974 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
975 special callback to unwind any pseudo.
977 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
978 * features/s390-core64.xml: Likewise.
979 * features/s390x-core64.xml: Likewise.
980 * features/s390-linux32.c: Regenerate.
981 * features/s390-linux64.c: Likewise.
982 * features/s390x-linux64.c: Likewise.
984 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
986 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
988 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
990 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
991 instruction. Add more diagnostic output.
993 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
995 * MAINTAINERS (Write After Approval): Add myself to the list.
997 2011-11-29 Sanjoy Das <sdas@igalia.com>
999 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1000 (jit_bfd_try_read_symtab): Fix comments.
1002 2011-11-28 DJ Delorie <dj@redhat.com>
1004 * NEWS: Mention RL78 simulator.
1006 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1008 * symfile.h (struct quick_symbol_functions): Fix the documentation
1009 of field map_matching_symbols, as symbols are sorted using
1010 strcmp_iw_ordered, not strcmp_iw.
1012 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1014 * symfile.h (struct quick_symbol_functions): Update the
1015 documentation for field map_matching_symbols.
1017 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1019 * ada-lang.c (compare_names): Fix wrong return value in case
1020 string1 starts with the same contents as string2, followed
1021 by an underscore that do not start a symbol name suffix.
1023 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1028 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1029 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1030 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1032 * python/py-type.c (typy_strip_typedefs): Ditto.
1033 (typy_legacy_template_argument): Ditto.
1034 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1035 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1037 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1039 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1040 local variable. Avoid use of sprintf_vma.
1042 2011-11-27 Sanjoy Das <sdas@igalia.com>
1044 Fix regression in jit.exp.
1045 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1046 (jit_register_code): Set the jit_objfile_data field to the correct
1049 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1051 * alpha-tdep.c (br_opcode): New.
1052 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1053 (alpha_deal_with_atomic_sequence): New function.
1054 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1055 with alpha_deal_with_atomic_sequence.
1057 2011-11-24 Tristan Gingold <gingold@adacore.com>
1059 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1060 fields. Add oso_sym, end_sym and nbr_syms.
1061 (macho_register_oso): Change interface.
1062 (macho_symtab_add_minsym): New function.
1063 (macho_symtab_read): Rewritten.
1064 (get_archive_prefix_len): Remove trailing blanks.
1065 (oso_el_compare_name): Add comment.
1066 (struct macho_sym_hash_entry): New structure.
1067 (macho_relocate_common_syms): Remove.
1068 (macho_sym_hash_newfunc): New function.
1069 (macho_resolve_oso_sym_with_minsym): Likewise.
1070 (macho_add_oso_symfile): Rewritten.
1071 (macho_symfile_read_all_oso): Remove trailing blanks.
1072 Adjust code to free oso vector.
1073 (macho_symfile_read): Likewise.
1074 Move code to initialize minimal symbol
1076 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1078 * mips-tdep.c (extended_offset): Fix formatting.
1080 2011-11-23 Doug Evans <dje@google.com>
1082 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1083 (dw2_expand_symtabs_with_filename): Ditto.
1084 (dw2_expand_symtabs_matching): Ditto.
1085 (dw2_map_symbol_filenames): Ditto.
1087 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1089 * ada-lang.c (assign_aggregate): Minor reformatting.
1091 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1093 * ada-lang.c (assign_aggregate): Remove declaration of local
1094 variable `i' which is shadowing another variable with the same
1095 name declared in the outer scope.
1097 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1099 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1100 calls throughout this file.
1102 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1104 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1107 2011-11-22 Tom Tromey <tromey@redhat.com>
1110 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1111 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1112 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1113 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1114 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1115 (print_it_catch_syscall, print_it_catch_exec)
1116 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1117 (bpstat_print): Add 'kind' argument. Handle
1118 TARGET_WAITKIND_LOADED.
1119 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1120 handle TARGET_WAITKIND_LOADED here.
1121 * breakpoint.h (bpstat_print): Update.
1123 2011-11-22 Tom Tromey <tromey@redhat.com>
1125 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1127 2011-11-22 Tom Tromey <tromey@redhat.com>
1129 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1130 Use static_assert to check the size of
1131 async_reason_string_lookup.
1132 * common/gdb_assert.h (static_assert): New macro.
1134 2011-11-22 Alan Modra <amodra@gmail.com>
1136 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1137 destination calculation. Don't expect >> to sign extend. Don't
1138 add a break if branch lands inside the sequence anywhere.
1140 2011-11-21 Keith Seitz <keiths@redhat.com>
1142 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1143 -var-evaluate-expression of an enumeration and fix expected result.
1144 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1146 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1148 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1149 the case where osdata->items is empty. Rename column names to a
1150 canonical form to avoid problems with unusual column names.
1152 2011-11-21 Yao Qi <yao@codesourcery.com>
1154 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1156 2011-11-20 Stan Shebs <stan@codesourcery.com>
1158 * NEWS: Mention tracepoint additions.
1159 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1160 * breakpoint.c (print_one_breakpoint_location): Identify
1161 tracepoints as such when reporting hit counts, report
1163 (create_tracepoint_from_upload): Copy status info.
1164 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1165 add fields user_name, notes, start_time, stop_time.
1166 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1167 * tracepoint.c (trace_user): New global.
1168 (trace_notes): New global.
1169 (trace_stop_notes): New global.
1170 (start_tracing): Add argument and trace note handling.
1171 (stop_tracing): Ditto.
1172 (trace_start_command): Add notes argument.
1173 (trace_stop_command): Ditto.
1174 (trace_status_command): Report additional status info.
1175 (trace_status_mi): Similarly.
1176 (trace_save): Update, record tracepoint status.
1177 (set_disconnected_tracing): Call target method directly.
1178 (send_disconnected_tracing_value): Remove.
1179 (set_trace_user): New function.
1180 (set_trace_notes): New function.
1181 (set_trace_stop_notes): New function.
1182 (parse_trace_status): Handle additional status.
1183 (parse_tracepoint_status): New function.
1184 (parse_tracepoint_definition): Call it.
1185 (tfile_get_tracepoint_status): New function.
1186 (init_tfile_ops): Use it.
1187 (_initialize_tracepoint): Add new setshows.
1188 * target.h (struct target_ops): New methods to_get_tracepoint_status
1189 and to_set_trace_notes.
1190 (target_get_tracepoint_status): New macro.
1191 (target_set_trace_notes): New macro.
1192 * target.c (update_current_target): Add new methods.
1193 * remote.c (remote_get_tracepoint_status): New function.
1194 (remote_set_trace_notes): New function.
1195 (init_remote_ops): Add them.
1196 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1197 (mi_cmd_trace_stop): Ditto.
1199 2011-11-20 Sanjoy Das <sdas@igalia.com>
1201 * jit.c: Include regcache.h.
1202 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1203 (jit_unwind_reg_set_impl, free_reg_value_impl)
1204 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1205 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1206 (jit_frame_prev_register, jit_dealloc_cache)
1207 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1208 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1209 jit_prepend_unwinder.
1210 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1212 2011-11-20 Sanjoy Das <sdas@igalia.com>
1214 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1215 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1216 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1217 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1218 (finalize_symtab, jit_object_close_impl)
1219 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1220 (free_objfile_data): New functions.
1221 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1224 2011-11-20 Sanjoy Das <sdas@igalia.com>
1226 * jit.c: Include gdb-dlfcn.h.
1227 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1228 (jit_reader_load, jit_reader_load_command)
1229 (jit_reader_unload_command): New functions.
1230 (_initialize_jit): Add commands "jit-reader-load" and
1231 "jit-reader-unload".
1233 2011-11-20 Sanjoy Das <sdas@igalia.com>
1235 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1236 * config.in: Add new #define HAVE_LIBDL.
1237 * configure.ac: Add check for -ldl.
1238 * configure: Re-generated by autoconf.
1239 * gdb-dlfcn.c: New file.
1240 * gdb-dlfcn.h: New file.
1242 2011-11-20 Sanjoy Das <sdas@igalia.com>
1244 * config.in: Add new #defines: JIT_READER_DIR and
1245 JIT_READER_DIR_RELOCATABLE.
1246 * configure.ac: New GDB directory entry for jit-reader-dir.
1247 * configure: Re-generated by autoconf.
1248 * jit.c: New static variable: const char *jit_reader_dir.
1249 (_initialize_jit): Relocate jit_reader_dir.
1251 2011-11-20 Sanjoy Das <sdas@igalia.com>
1253 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1255 * configure.ac: Generate a correct value for TARGET_PTR for
1256 jit-reader.h. Tell configure to generate jit-reader.h from
1258 * configure: Re-generated by autoconf.
1259 * jit-reader.in: New file.
1260 * jit.c: Include jit-reader.h.
1262 2011-11-20 Sanjoy Das <sdas@igalia.com>
1264 * MAINTAINERS (Write After Approval): Add myself to the list.
1266 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1268 * findvar.c (read_frame_register_value): Respect value_offset
1269 of the register value. Remove big-endian special case.
1271 2011-11-18 Tom Tromey <tromey@redhat.com>
1274 * remote.c (putpkt_for_catch_errors): New function.
1275 (remote_kill): Use it.
1277 2011-11-18 Yao Qi <yao@codesourcery.com>
1279 * breakpoint.c (create_breakpoint): Produce query message according to
1281 Allocate tracepoint per correct type.
1282 Don't check SALs for pending fast tracepoints.
1283 * tracepoint.c (process_tracepoint_on_disconnect): New.
1284 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1286 2011-11-18 Yao Qi <yao@codesourcery.com>
1288 * breakpoint.c (install_breakpoint): Add one more parameter so that
1289 update_global_location_list is called conditionally.
1290 (create_fork_vfork_event_catchpoint): Update.
1291 (create_syscall_event_catchpoint): Update.
1292 (create_breakpoint_sal): Update.
1293 (create_breakpoint_sal): Update. Call do_cleanups before
1295 * ada-lang.c (create_ada_exception_catchpoint): Update.
1296 * breakpoint.h (install_breakpoint): Update declaration.
1298 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1300 * spu-tdep.c (spu_return_value): Fix handling of
1301 TYPE_CALLING_CONVENTION annotation.
1303 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1305 * skip.c (skip_function_command): Work around uninitialized
1308 2011-11-16 David S. Miller <davem@davemloft.net>
1310 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1311 'tv_usec' to long for printf since these fields have a type which
1314 2011-11-15 Doug Evans <dje@google.com>
1316 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1318 2011-11-15 Paul Koning <paul_koning@dell.com>
1320 * python/py-type.c (typy_get_composite): New function.
1321 (typy_nonzero): New function.
1322 (typy_values): Rename from typy_fields.
1323 (typy_fields): New function.
1324 (typy_length): Raise exception if not struct, union, or enum type.
1325 (typy_getitem): Ditto.
1326 (typy_has_key): Ditto.
1327 (typy_make_iter): Ditto.
1329 2011-11-15 Doug Evans <dje@google.com>
1332 * NEWS: Mention new parameter basenames-may-differ.
1333 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1334 ! basenames_may_differ.
1335 * psymtab.c (lookup_partial_symtab): Ditto.
1336 * symtab.c (lookup_symtab): Ditto.
1337 (basenames_may_differ): New global.
1338 (_initialize_symtab): New parameter basenames-may-differ.
1339 * symtab.h (basenames_may_differ): Declare.
1341 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1342 Luis Machado <lgustavo@codesourcery.com>
1344 * auxv.c: Include observer.h.
1345 (auxv_inferior_data_cleanup): New.
1346 (invalidate_auxv_cache_inf): New.
1347 (invalidate_auxv_cache): New.
1348 (get_auxv_inferior_data): New.
1349 (auxv_inferior_data): New static global.
1350 (auxv_info): New structure.
1351 (target_auxv_search): Use get_auxv_inferior_data instead of
1352 target_read_alloc and don't free cached buffers.
1353 (fprint_target_auxv): Likewise
1354 (_initialize_auxv): Register per-inferior auxv cache and register
1355 observers to invalidate auxv cache when needed.
1357 2011-11-14 Doug Evans <dje@google.com>
1359 PR gdb/7200 Make "!" an alias for "shell".
1360 * NEWS: Add mention.
1361 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1362 adding "!" command, always add it.
1363 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1364 command of length one.
1366 2011-11-14 Stan Shebs <stan@codesourcery.com>
1367 Kwok Cheung Yeung <kcy@codesourcery.com>
1369 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1370 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1371 the minimum instruction size for fast tracepoints.
1372 * target.h (struct target_ops): Add new method
1373 to_get_min_fast_tracepoint_insn_len.
1374 (target_get_min_fast_tracepoint_insn_len): New.
1375 * target.c (update_current_target): Set up new target operation.
1376 * remote.c (remote_write_bytes_aux): Fix typo.
1377 (remote_get_min_fast_tracepoint_insn_len): New.
1378 (init_remote_ops): Initialize new field.
1380 2011-11-14 Tom Tromey <tromey@redhat.com>
1382 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1383 (encode_actions): Likewise.
1385 2011-11-14 Yao Qi <yao@codesourcery.com>
1387 * remote.c (struct remote_state): <install_in_trace> new field.
1388 (PACKET_InstallInTrace): New enum value.
1389 (remote_install_in_trace_feature): Support InstallInTrace.
1390 (remote_supports_install_in_trace): Likewise.
1391 (remote_protocol_features): Likewise.
1392 (_initialize_remote): Likewise.
1393 (remote_can_download_tracepoint): New.
1394 * target.h (struct target): New field
1395 `to_can_download_tracepoint'.
1396 (target_can_download_tracepoint): New macro.
1397 * target.c (update_current_target): Update.
1398 * breakpoint.h (struct bp_location): Add comment on field
1400 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1402 (remove_breakpoints): Don't remove tracepoints.
1403 (tracepoint_locations_match ): New.
1404 (breakpoint_locations_match): Call it.
1405 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1406 (download_tracepoint_locations): New.
1407 (update_global_location_list): Call it.
1408 * tracepoint.c (find_matching_tracepoint): Delete.
1409 (find_matching_tracepoint_location): Renamed from
1410 find_matching_tracepoint. Return bp_location rather than
1412 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1413 tracepoint is found.
1415 2011-11-14 Yao Qi <yao@codesourcery.com>
1417 * target.h (struct target): <to_download_tracepoint> Change type
1418 of parameter from tracepoint to bp_location.
1419 * target.c (update_current_target): Update.
1420 * tracepoint.c (start_tracing): Update.
1421 * remote.c (remote_download_tracepoint): Remove loop for each location
1424 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1426 * i386-nat.c (i386_insert_hw_breakpoint): Call
1427 i386_update_inferior_debug_regs.
1428 (i386_remove_hw_breakpoint): Likewise.
1430 2011-11-14 Yao Qi <yao@codesourcery.com>
1432 * breakpoint.c (init_raw_breakpoint): Call
1433 add_location_to_breakpoint to replace duplicated code.
1434 (add_location_to_breakpoint): Adjust the breakpoint's
1435 address prior to allocating a location.
1437 2011-11-12 Matt Rice <ratmice@gmail.com>
1439 * macrocmd.c (macro_no_macro_info): New function.
1440 (macro_expand_command): Use macro_no_macro_info.
1441 (macro_expand_once_command): Ditto.
1442 (info_macro_command): Add argument processing,
1443 move info_definitions_command here.
1444 (_initialize_macrocmd): Remove info definitions command.
1445 Add arguments to info macro help text.
1446 * NEWS: Replace info definitions command with new info macro options.
1448 2011-11-11 Keith Seitz <keiths@redhat.com>
1451 * linespec.c (locate_first_half): Keep ':' if it looks
1452 like it could be part of a Windows path starting with
1455 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1457 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1458 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1460 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1462 * target.c (target_waitstatus_to_string): Handle
1463 TARGET_WAITKIND_NO_RESUMED.
1465 2011-11-10 Doug Evans <dje@google.com>
1467 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1469 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1470 (map_partial_symbol_filenames): Ditto. All callers updated.
1471 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1472 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1473 parameter need_fullname.
1475 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1476 * source.c (symtab_to_fullname): Ditto.
1478 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1479 * gdb-demangle.h: ... here. New file.
1480 * demangle.c: #include "gdb-demangle.h".
1481 (_initialize_demangler): Use initialize_file_ftype for prototype.
1482 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1483 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1485 * utils.c: Update. #include "gdb-demangle.h".
1486 * symtab.h (asm_demangle): Delete.
1487 (demangle): Move declaration next to use.
1488 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1489 * dwarf2read.c: #include "gdb-demangle.h".
1490 * gnu-v2-abi.c: Ditto.
1491 * jv-typeprint.c: Ditto.
1492 * mdebugread.c: Ditto.
1493 * p-typeprint.c: Ditto.
1494 * stabsread.c: Ditto.
1495 * printcmd.c: Ditto.
1496 (asm_demangle): Delete declaration.
1497 * tui/tui-stack.c: #include "gdb-demangle.h".
1499 * python/py-type.c (typy_fields_items): Call check_typedef.
1501 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1503 * findvar.c (read_frame_register_value): Read the correct bytes
1504 from registers on big-endian architectures.
1506 2011-11-10 Tom Tromey <tromey@redhat.com>
1508 * procfs.c (load_syscalls): Make a cleanup.
1509 (open_procinfo_files): fd==0 is ok.
1511 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1513 * procfs.c (iterate_over_mappings): Call do_cleanups before
1516 2011-11-09 Doug Evans <dje@google.com>
1518 * gdbtypes.c (check_typedef): Document that this function can
1521 2011-11-09 Tom Tromey <tromey@redhat.com>
1524 * valops.c (value_full_object): Return early if real type is
1525 smaller than the enclosing type.
1527 2011-11-08 Yao Qi <yao@codesourcery.com>
1529 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1531 2011-11-08 Meador Inge <meadori@codesourcery.com>
1533 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1534 register when the frame can't be determined.
1535 * arm-tdep.c (arm_analyze_prologue): Ditto.
1537 2011-11-07 Stan Shebs <stan@codesourcery.com>
1539 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1541 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1543 * infrun.c (handle_inferior_event): Minor reformatting.
1545 2011-11-05 Doug Evans <dje@google.com>
1547 * source.c (forget_cached_source_info_for_objfile): Move call to
1548 objfile->sf->qf->forget_cached_source_info outside of
1549 ALL_OBJFILE_SYMTABS loop.
1550 (forget_cached_source_info): Delete unused variable `s'.
1552 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 * i386-nat.c (dr_ref_count): Remove unused variable.
1556 2011-11-05 Doug Evans <dje@google.com>
1558 * main.c (captured_main): Set lim_at_start before calling
1559 make_command_stats_cleanup.
1561 2011-11-04 Doug Evans <dje@google.com>
1563 * utils.c: #include "timeval-utils.h".
1564 (cmd_stats): Rename start_time to start_cpu_time.
1565 New member start_wall_time.
1566 (report_command_stats): Report wall time.
1567 (make_command_stats_cleanup): Record start wall time.
1569 2011-11-04 Tom Tromey <tromey@redhat.com>
1571 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1573 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1575 * coff-pe-read.c: Include defs.h before bfd.h.
1577 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1581 * python/python.c (python_run_simple_file): Expand tilde in path.
1583 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1587 * python/py-type.c (typy_lookup_type): Do not return a type in
1588 an exception handler.
1590 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1591 Eli Zaretskii <eliz@gnu.org>
1593 * linux-nat.c (_initialize_linux_nat): Improve help
1594 for `info proc stat', `info proc status', `info proc cwd',
1595 `info proc cmdline' and `info proc exe'.
1597 2011-11-02 Stan Shebs <stan@codesourcery.com>
1599 String collection for tracepoints.
1600 * NEWS: Mention string collection.
1601 * common/ax.def (tracenz): New bytecode.
1602 * ax-gdb.h (trace_string_kludge): Declare.
1603 * ax-gdb.c: Include valprint.h and c-lang.h.
1604 (trace_string_kludge): New global.
1605 (gen_traced_pop): Add string case.
1606 (agent_command): Add string case.
1607 * tracepoint.h (decode_agent_options): Declare.
1608 * tracepoint.c: Include cli-utils.h.
1609 (decode_agent_options): New function.
1610 (validate_actionline): Call it.
1611 (encode_actions_1): Ditto.
1612 * target.h (struct target_ops): New method to_supports_string_tracing.
1613 (target_supports_string_tracing): New macro.
1614 * target.c (update_current_target): Add to_supports_string_tracing.
1615 * remote.c (struct remote_state): New field string_tracing.
1616 (remote_string_tracing_feature): New function.
1617 (remote_protocol_features): New feature tracenz.
1618 (remote_supports_string_tracing): New function.
1619 (init_remote_ops): Set to_supports_string_tracing.
1621 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1622 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 * linux-nat.c: Include cli/cli-utils.h.
1625 (enum info_proc_what): New.
1626 (linux_nat_info_proc_cmd): Rename to ...
1627 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1628 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1629 status_f and stat_f from WHAT. Throw error on extra parameters.
1630 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1631 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1632 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1633 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1634 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1635 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1636 `info proc cmdline', `info proc exe' and `info proc all' as real
1637 subcommands of `info proc'.
1639 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1641 * Makefile.in: (SFILES): Add skip.c.
1642 (HFILES_NO_SRCDIR): Add skip.h.
1643 (COMMON_OBS): Add skip.o.
1644 * skip.h, skip.c: New.
1645 * breakpoint.h (set_default_breakpoint): Remove.
1646 (get_sal_arch): Declare.
1647 * breakpoint.c: Remove default_breakpoint_valid,
1648 default_breakpoint_address, default_breakpoint_symtab,
1649 default_breakpoint_line, default_breakpoint_pspace variables.
1650 (get_sal_arch): Make public.
1651 (set_default_breakpoint): Remove.
1652 (parse_breakpoint_sals, create_breakpoint, clear_command,
1653 decode_line_spec_1): Remove uses of default_breakpoint variables;
1654 replaced with function calls into stack.c.
1655 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1656 * cli/cli-cmds.c: Add skiplist.
1657 (init_cmd_lists): Initialize skiplist.
1658 (init_cli_cmds): Fix comment (classes of commands appear in
1659 alphabetical order).
1660 * infrun.c (handle_inferior_event): Add check that we don't step into
1661 a function whose pc is marked for skip.
1662 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1663 last_displayed_addr, last_displayed_symtab, last_displayed_line
1665 (set_last_displayed_sal): New static function.
1666 (print_frame_info): Switch call to set_default_breakpoint to call to
1667 set_last_displayed_sal.
1668 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1669 get_last_displayed_pspace, get_last_displayed_addr,
1670 get_last_displayed_symtab, get_last_displayed_line,
1671 get_last_displayed_sal): New public functions.
1672 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1673 get_last_displayed_pspace, get_last_displayed_addr,
1674 get_last_displayed_symtab, get_last_displayed_line,
1675 get_last_displayed_sal): Declare.
1677 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1679 * MAINTAINERS (Write After Approval): Add myself to the list.
1681 2011-10-29 Yao Qi <yao@codesourcery.com>
1683 * infcmd.c (disconnect_command): Call disconnect_tracing.
1685 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * symtab.c (skip_prologue_sal): Code reformatting.
1690 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1693 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1694 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1697 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1699 * linux-nat.c (linux_nat_filter_event): Remove `options'
1700 parameter, and dead code that used it. If we're handling a
1701 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1702 in our lwp list, re-add it.
1703 (check_zombie_leaders): New.
1704 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1705 wait for children with WNOHANG, and always wait for all children.
1706 Don't check for no resumed children upfront. Simplify wait loop.
1707 Check for zombie thread group leaders after handling all wait
1708 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1709 unwaited-for children left.
1710 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1711 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1712 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1713 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1715 2011-10-28 Sterling Augustine <saugustine@google.com>
1717 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1718 * symtab.c (free_completion_list): New function.
1719 (do_free_completion_list): Likewise.
1720 (default_make_symbol_completion_list_break_on): New variable
1721 back_to. Call make_cleanup and discard_cleanups.
1722 (make_source_files_completion_list): Likewise.
1724 2011-10-28 Paul Koning <paul_koning@dell.com>
1726 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1727 * NEWS: Mention deep_items.
1729 2011-10-28 Alen Skondro <askondro@gmail.com>
1731 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1734 2011-10-27 Meador Inge <meadori@codesourcery.com>
1736 * MAINTAINERS (Write After Approval): Add myself to the list.
1738 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1740 * value.h (read_frame_register_value): Add declaration.
1741 * findvar.c (read_frame_register_value): New function.
1742 (value_from_register): Use read_frame_register_value
1743 instead of get_frame_register_value + value_contents_copy
1744 to get value contents.
1746 2011-10-27 Doug Evans <dje@google.com>
1748 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1749 source_script_from_stream if it may have been found on the search path.
1750 * python/py-auto-load.c (source_section_scripts): Pass full path to
1751 source_python_script_for_objfile.
1752 * python/python.c (source_python_script): Delete stream parameter.
1753 All callers updated.
1754 (source_python_script_for_objfile): Ditto.
1755 * python/python-internal.h (source_python_script_for_objfile): Update.
1756 * python/python.h (source_python_script): Update.
1758 2011-10-27 Tom Tromey <tromey@redhat.com>
1760 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1761 (ada_sals_for_line): Remove declarations.
1763 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1765 Move unwind reasons to an external .def file
1766 * frame.c (frame_stop_reason_string): Rewrite using
1767 unwind_stop_reasons.def.
1768 * frame.h (enum unwind_stop_reason): Likewise.
1769 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1770 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1771 constants for bound-checking.
1772 * unwind_stop_reasons.def: New file.
1773 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1774 instead of a distinct value.
1776 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1780 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1781 (convert_values_to_python): Return on Python tuple allocation
1782 failure. Return NULL on value conversion error.
1784 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1786 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1787 (bppy_set_task): Ditto.
1788 (bppy_delete_breakpoint): Ditto.
1789 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1790 (gdbpy_lookup_global_symbol): Ditto.
1791 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1792 * python/py-frame.c (frapy_is_valid): Ditto.
1793 (frame_info_to_frame_object): Ditto.
1794 * python/py-type.c (typy_lookup_type): Ditto.
1795 (typy_getitem): Ditto.
1796 (typy_has_key): Ditto.
1797 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1799 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1801 * gdbarch.h: Regenerate.
1803 2011-10-26 Meador Inge <meadori@codesourcery.com>
1805 * gdbarch.sh (function_list): Use 'pstring' when printing
1807 * gdbarch.c: Regenerate.
1809 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1811 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1812 and frame caches if PTID refers to all threads of a process.
1814 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1816 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1817 to create_breakpoint.
1819 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1821 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1822 (ppc_sysv_abi_push_dummy_call): Use it.
1823 (do_ppc_sysv_return_value): Likewise.
1824 (ppc64_sysv_abi_push_dummy_call): Likewise.
1825 (ppc64_sysv_abi_return_value): Likewise.
1827 2011-10-26 Paul Koning <paul_koning@dell.com>
1829 * python/lib/gdb/types.py (deepitems): New function.
1831 2011-10-25 Paul Koning <paul_koning@dell.com>
1835 * python/py-value.c (value_to_value_object): Remove fetching of
1836 the value if it was lazy.
1837 (valpy_get_is_lazy): New function.
1838 (valpy_fetch_lazy): New function.
1840 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1842 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1843 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1845 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1847 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1848 event, in non-stop, if not stopping, make sure the new lwp has
1849 last_resume_kind set to resume_continue. Assert that when we're
1850 resuming the new lwp, its last_resume_kind is resume_continue.
1852 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1854 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1855 already set when marking the event thread as not executing in
1858 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1860 * infrun.c (handle_inferior_event): Add debug output for
1861 TARGET_WAITKIND_NO_HISTORY.
1863 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1865 * NEWS: Move set/show extended-prompt to "New Options". Expand
1866 description. Fix typos.
1868 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1872 * python/py-param.c (call_doc_function): Correctly deference on
1875 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1877 * ada-tasks.c (print_ada_task_info): Fix computation of
1878 number of tasks displayed in command output.
1880 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1881 Ulrich Weigand <uweigand@de.ibm.com>
1883 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1884 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1885 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1886 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1889 2011-10-20 Cary Coutant <ccoutant@google.com>
1891 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1893 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1894 flag. Adjust all callers.
1895 (process_psymtab_comp_unit): Remove adjustment for type section.
1897 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1899 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1900 arguments by adding OBJFILE. Instead of getting objfile from
1901 symbol's symtab, use new argument OBJFILE.
1902 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1903 arguments by adding OBJFILE.
1904 * gdb/dwarf2read.c (new_symbol_full): Change call to
1905 cp_scan_for_anonymous_namespaces to match new signature.
1906 * gdb/stabsread.c (define_symbol): Change call to
1907 cp_scan_for_anonymous_namespaces to match new signature.
1909 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1914 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1916 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1917 leak. Delete unused variables.
1919 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1923 * python/py-frame.c (frapy_read_var): Use const struct *block.
1924 * python/py-type.c (typy_lookup_typename): Likewise.
1925 (typy_lookup_type): Likewise.
1926 (typy_legacy_template_argument): Likewise.
1927 (typy_template_argument): Likewise.
1928 (gdbpy_lookup_type): Likewise.
1929 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1930 * python/py-block.c (blpy_block_object): Likewise.
1931 (blpy_iter): Likewise.
1932 (blpy_get_start): Likewise.
1933 (blpy_get_end): Likewise.
1934 (blpy_get_function): Likewise.
1935 (blpy_get_superblock): Likewise.
1936 (set_block): Likewise.
1937 (block_to_block_object): Likewise.
1938 (block_object_to_block): Likewise.
1939 (blpy_is_valid): Likewise.
1940 (blpy_get_global_block): New function.
1941 (blpy_get_static_block): New function.
1942 (blpy_is_global): New function.
1943 (blpy_is_static): New function.
1944 * blockframe.c (block_innermost_frame): Likewise.
1945 * valops.c (value_of_variable): Likewise.
1946 * frame.h: Update prototypes.
1947 * python/python-internal.h: Likewise.
1948 * value.h: Likewise.
1950 2011-10-19 Cary Coutant <ccoutant@google.com>
1952 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1955 2011-10-19 Cary Coutant <ccoutant@google.com>
1957 * dwarf2read.c (peek_abbrev_code): New function.
1958 (dw2_get_file_names): Check for dummy compilation units.
1959 (create_debug_types_hash_table): Likewise.
1960 (process_psymtab_comp_unit): Likewise.
1961 (load_partial_comp_unit): Likewise.
1962 (load_full_comp_unit): Likewise.
1964 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1966 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1967 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1968 pt_phdr if PT_PHDR was found.
1970 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1972 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1973 type or "<unnamed type"> when there is no name assigned.
1974 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1975 avoid a sigint when no name is assigned.
1977 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1980 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 * dwarf2expr.c (ctx_no_read_reg): New function.
1982 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1983 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1984 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1985 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1987 2011-10-16 Doug Evans <dje@google.com>
1989 * NEWS: Document python gdb.printing.register_pretty_printer's new
1990 `replace' parameter.
1992 2011-10-14 Keith Seitz <keiths@redhat.com>
1995 * eval.c (evaluate_subexp_standard): Do not construct
1996 an array of types; pass the value array directly to
1997 find_overload_match.
1998 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1999 (rank_function): Take an array of values instead of types.
2000 (rank_one_type): Add struct value * parameter.
2001 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2002 (rank_function): For each argument, pass the argument's
2003 value to rank_one_type.
2004 (rank_one_type): Add VALUE parameter.
2005 If the parameter type is a pointer and the argument type
2006 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2008 Update all calls to rank_one_type, passing NULL for new
2010 * valarith.c (value_user_defined_cpp_op): Do not construct
2011 an array of types; pass the value array directly to
2012 find_overload_match.
2013 * valops.c (find_overload_method_list): Take an array of
2014 values instead of types.
2015 Save the type of OBJP for later use.
2016 Update calls to find_oload_champ, and find_oload_champ_namespace.
2017 (find_oload_champ_namespace): Take an array of values instead
2019 (find_oload_champ_namespace_loop): Likewise.
2020 (find_oload_champ): Likewise.
2021 (classify_oload_match): Inspect all arguments
2022 until INCOMPATIBLE is found. Return the worst badness found
2024 (compare_parameters): Update call to rank_one_type.
2025 * value.h (find_overload_match): Take an array of values instead
2028 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 Drop lazy lm_info reading.
2031 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2032 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2033 (lm_info_read): New function.
2034 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2035 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2036 lm_dynamic_from_link_map.
2037 (lm_next, lm_prev, lm_name): Remove.
2038 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2039 initialization incl. read_memory. No longer use lm_name.
2040 (svr4_free_so): Drop lm_info->lm freeing.
2041 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2042 explicit lm_addr and lm initialization.
2043 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2044 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2047 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 Paul Pluzhnikov <ppluzhnikov@google.com>
2050 * defs.h (struct so_list): New forward declaration.
2051 (make_cleanup_free_so): New declaration.
2052 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2053 (svr4_free_so): Move the function here from downwards. Handle NULL
2055 (svr4_free_library_list): New.
2056 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2057 Use more cleanups. Use new parameter ignore_first instead of
2058 ignore_first_link_map_entry.
2059 (svr4_current_sos): New variable ignore_first, initialize it. New
2060 variable back_to, use it for svr4_free_library_list protection.
2061 (svr4_free_so): Remove - move upwards.
2062 * utils.c: Include solist.h.
2063 (do_free_so, make_cleanup_free_so): New functions.
2065 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 Fix internal error regression.
2068 * value.c (value_primitive_field): Handle value_optimized_out. Move
2069 packed bitfields comment.
2071 2011-10-13 Tom Tromey <tromey@redhat.com>
2073 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2076 2011-10-13 Tom Tromey <tromey@redhat.com>
2078 * python/py-type.c (typy_has_key): Make 'field' const.
2080 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2082 * remote.c (remote_save_trace_data): Invert comparison.
2084 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2086 * tracepoint.c (trace_save_command): Use filename instead of
2089 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2091 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2094 2011-10-13 Yao Qi <yao@codesourcery.com>
2097 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2098 whether insn is a 32-bit Thumb-2 instruction.
2099 (thumb_in_function_epilogue_p): Likewise.
2100 (thumb_get_next_pc_raw): Likewise.
2101 (arm_breakpoint_from_pc): Likewise.
2103 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2106 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2107 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2108 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2109 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2111 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2113 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2114 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2115 clear DATA on zero SIZE.
2117 2011-10-12 Doug Evans <dje@google.com>
2119 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2120 header->first_die_offset here. All callers updated.
2122 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 Fix compatibility with texinfo versions older than 4.12.
2125 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2126 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2127 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2128 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2129 * configure: Regenerate.
2130 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2131 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2132 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2134 2011-10-12 Gary Benson <gbenson@redhat.com>
2136 * breakpoint.h (pc_at_non_inline_function): Declare.
2137 * breakpoint.c (is_non_inline_function,
2138 pc_at_non_inline_function): New functions.
2139 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2140 if the stop is at a location where functions cannot be inlined.
2142 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2144 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2145 the core wanted them stopped, or if they now have a pending event
2147 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2148 down to stop_and_resume_callback.
2149 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2150 having new pending events after calling linux_nat_filter_event.
2152 2011-10-11 Sterling Augustine <saugustine@google.com>
2154 * dwarf2read.c: Undo inadvertent changes in previous commit.
2156 2011-10-11 Sterling Augustine <saugustine@google.com>
2158 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2161 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2163 * symfile.c (separate_debug_file_exists): Fix condition.
2165 2011-10-11 David S. Miller <davem@davemloft.net>
2167 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2169 * regcache.h (regcache_restore): Remove declaration.
2171 * gdbarch.sh: New field 'long_long_align_bit'.
2172 * gdbarch.c, gdbarch.h: Regenerate.
2173 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2174 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2176 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2178 Revert this part of:
2179 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2180 Support @entry in input expressions.
2181 * c-exp.y (ENTRY, unknown_cpp_name): New.
2182 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2183 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2184 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2185 (name_not_typename: ENTRY): New.
2186 (yylex): Recognize ENTRY.
2188 Reimplement @entry in input expressions.
2189 * c-exp.y (ENTRY): New.
2190 (variable: name_not_typename ENTRY): New.
2191 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2193 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2195 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2196 parent and child's pids as soon as we detect a clone event.
2197 Adjust another debug message.
2199 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2201 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2202 not zombie instead of reading the whole file.
2204 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 Fix separate debuginfo warning with "remote:" access.
2207 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2208 * symfile.c (get_file_crc): New function with the code moved from ...
2209 (separate_debug_file_exists): ... this function, specifically variables
2210 buffer and count. New variable verified_as_different, set it. Remove
2211 file_crc initialization. Verify also if both files are not the same
2212 manually, if needed.
2214 2011-10-11 Yao Qi <yao@codesourcery.com>
2216 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2219 2011-10-10 Doug Evans <dje@google.com>
2221 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2222 libthread_db when we load libpthread or the main symbol file.
2223 (thread_db_inferior_created): New function.
2224 (_initialize_thread_db): Attach inferior_created observer.
2225 * linux-nat.c (linux_child_post_attach): Remove call to
2226 check_for_thread_db.
2227 (linux_child_post_startup_inferior): Ditto.
2228 * objfiles.h (OBJF_MAINLINE): Define.
2229 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2230 allocate_objfile when appropriate.
2232 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2235 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2236 Remove unused variables.
2237 (get_linux_version): Remove function.
2238 (_initialize_arm_linux_nat): Do not call it.
2240 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2242 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2243 new clone lwp if the core asked it to stop. Don't pass on
2244 unexpected signals to the new clone; leave them pending instead.
2246 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2248 * linux-nat.c (resume_lwp): Remove redundant debug output.
2250 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2252 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2253 last_resume_kind before clearing it, and use the copy instead to
2254 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2255 resume_clear_callback in the non-stop path too.
2257 2011-10-09 Yao Qi <yao@codesourcery.com>
2259 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2260 Honor OPTIONS and VAL's type.
2261 (common_val_print, value_print): Update to pass one more parameter.
2263 2011-10-09 Doug Evans <dje@google.com>
2265 Add new "alias" command.
2266 * NEWS: Mention new command.
2267 * command.h (valid_user_defined_cmd_name_p): Declare.
2268 * defs.h (make_cleanup_dyn_string_delete): Declare.
2269 * utils.c: #include "dyn-string.h".
2270 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2271 * cli/cli-cmds.c: #include "dyn-string.h".
2272 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2273 (init_cli_cmds): Add new command.
2274 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2276 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2278 Fix compatibility with older GCCs.
2279 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2280 * stack.c (read_frame_arg): Initialize val_deref.
2282 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2284 Entry values NEWS entries, DWARF disassembly support.
2285 * NEWS: New entry values entry.
2286 (set print entry-values, show print entry-values)
2287 (set debug entry-values, show debug entry-values): New entries.
2288 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2289 indent. Remove variable start. Move header printing out. Respect
2290 INDENT. Support DW_OP_GNU_entry_value.
2291 (locexpr_describe_location_1): Move the header printing here, extend
2292 the disassemble_dwarf_expression passed parameters.
2294 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2296 Display @entry parameter values even for references.
2297 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2298 coerce_ref_if_computed.
2299 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2300 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2301 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2302 existing push_dwarf_reg_entry_value call. Add new detection calling
2303 dwarf_block_to_dwarf_reg_deref. Update the error message.
2304 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2306 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2307 parameter deref_size, describe it in the comment.
2308 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2309 (dwarf_block_to_dwarf_reg_deref): New declaration.
2310 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2311 deref_size, describe it in the function comment. New variables
2312 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2313 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2314 describe it in the function comment. Fetch the alternative block
2315 accoring to DEREF_SIZE.
2316 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2317 (entry_data_value_free_closure, entry_data_value_funcs): New.
2318 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2319 outer_val, target_val, val and addr. Try to fetch and create also
2320 referenced value content.
2321 (pieced_value_funcs): NULL value for coerce_ref.
2322 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2323 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2324 coerce_ref_if_computed.
2325 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2326 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2327 * stack.c (read_frame_arg): Compare also dereferenced values.
2328 * value.c (value_computed_funcs): Make the parameter v const, use
2329 value_lval_const for it.
2330 (value_lval_const, coerce_ref_if_computed): New function.
2331 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2332 * value.h (struct lval_funcs): New field coerce_ref.
2333 (value_computed_funcs): Make the parameter v const.
2334 (value_lval_const, coerce_ref_if_computed): New declarations.
2336 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2338 Support @entry in input expressions.
2339 * c-exp.y (ENTRY, unknown_cpp_name): New.
2340 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2341 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2342 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2343 (name_not_typename: ENTRY): New.
2344 (yylex): Recognize ENTRY.
2345 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2346 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2348 * parse.c (operator_length_standard): Likewise.
2349 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2351 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2353 Display referenced values in backtraces.
2354 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2355 * stack.c (print_frame_arg): Likewise.
2357 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2359 Make some lval_funcs methods to default on NULL.
2360 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2362 (value_assign): Check if lval_computed write method is NULL.
2363 * value.h (struct lval_funcs): Comment NULL values for read and write
2366 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2368 Display @entry parameter values (without references).
2369 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2371 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2373 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2375 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2376 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2378 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2379 (loclist_read_variable_at_entry): New function.
2380 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2381 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2382 DW_AT_location, call dwarf_block_to_sp_offset for it.
2383 * frame.h (print_entry_values_no, print_entry_values_only)
2384 (print_entry_values_preferred, print_entry_values_if_needed)
2385 (print_entry_values_both, print_entry_values_compact)
2386 (print_entry_values_default, print_entry_values): New declarations.
2387 (struct frame_arg): New field entry_kind.
2388 (read_frame_arg): New parameter entryargp.
2389 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2390 arg->entry_kind. Optionally print the `@entry' suffix.
2391 (list_args_or_locals): New variable entryarg, initialize it.
2392 Initialize also entry_kind of arg and entryarg. Conditionalize
2393 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2394 xfree for entryarg.error.
2395 * stack.c (print_entry_values_no, print_entry_values_only)
2396 (print_entry_values_preferred, print_entry_values_if_needed)
2397 (print_entry_values_both, print_entry_values_compact)
2398 (print_entry_values_default, print_entry_values_choices)
2399 (print_entry_values): New variables.
2400 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2401 print the `@entry' suffix, possibly in combination for
2402 print_entry_values_compact.
2403 (read_frame_arg): New parameter entryargp, new variables entryval,
2404 entryval_error and val_equal. Read in also entryargp, respect
2405 print_entry_values, compare the values using val_equal, fill in also
2406 argp->entry_kind (together with entryargp->entry_kind).
2407 (print_frame_args): New variable entryarg, initialize it.
2408 Conditionalize print_frame_arg for arg, add print_frame_arg for
2409 entryarg. Call xfree for entryarg.error.
2410 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2411 * symtab.h (struct symbol_computed_ops): New field
2412 read_variable_at_entry.
2414 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2417 * frame.h (struct frame_arg): New definition.
2418 (read_frame_arg): New declaration.
2419 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2420 (list_args_or_locals): ... the code here. New variable arg, call
2421 read_frame_arg and list_arg_or_local with it. Unify the
2422 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2424 * stack.c (print_frame_arg): New functiom from the code of
2426 (read_frame_arg): New function.
2427 (print_frame_args): Remove variable val. New variable arg, call
2428 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2430 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2432 Protect entry values against self tail calls.
2433 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2434 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2436 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2438 Recognize virtual tail call frames.
2439 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2440 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2441 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2442 * dwarf2-frame-tailcall.c: New file.
2443 * dwarf2-frame-tailcall.h: New file.
2444 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2445 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2446 REGS.PREV only after CIE execution.
2447 (struct dwarf2_frame_cache): New field tailcall_cache.
2448 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2449 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2450 parts, try to find entry_cfa_sp_offset. Call
2451 dwarf2_tailcall_sniffer_first.
2452 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2454 (dwarf2_frame_dealloc_cache): New function.
2455 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2456 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2457 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2458 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2459 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2460 * dwarf2loc.c (func_addr_to_tail_call_list)
2461 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2462 (call_site_find_chain_1, call_site_find_chain): New.
2463 * dwarf2loc.h (struct call_site_chain): New.
2464 (call_site_find_chain): New declaration.
2465 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2466 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2467 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2468 * stack.c (frame_info): Support also TAILCALL_FRAME.
2470 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2472 Tail call sites reader implementation.
2473 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2474 fill in TYPE_TAIL_CALL_LIST.
2475 * gdbtypes.h (struct func_type): New field tail_call_list.
2476 (struct call_site): New field tail_call_next.
2477 (TYPE_TAIL_CALL_LIST): New definition.
2479 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2481 Implement basic support for DW_TAG_GNU_call_site.
2482 * block.c: Include gdbtypes.h and exceptions.h.
2483 (call_site_for_pc): New function.
2484 * block.h (call_site_for_pc): New declaration.
2485 * defs.h: Include hashtab.h.
2486 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2488 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2489 ctx_no_push_dwarf_reg_entry_value.
2490 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2491 (dwarf_block_to_dwarf_reg): New function.
2492 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2493 (ctx_no_push_dwarf_reg_entry_value): New function.
2494 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2495 push_dwarf_reg_entry_value.
2496 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2498 * dwarf2loc.c: Include gdbcmd.h.
2499 (dwarf_expr_ctx_funcs): New forward declaration.
2500 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2501 (dwarf_expr_reg_to_entry_parameter)
2502 (dwarf_expr_push_dwarf_reg_entry_value): New.
2503 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2504 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2505 (needs_dwarf_reg_entry_value): New function.
2506 (needs_frame_ctx_funcs): Install it.
2507 (_initialize_dwarf2loc): New function.
2508 * dwarf2loc.h (entry_values_debug): New declaration.
2509 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2510 (read_call_site_scope): New forward declaration.
2511 (process_full_comp_unit): Copy call_site_htab.
2512 (process_die): Support DW_TAG_GNU_call_site.
2513 (read_call_site_scope): New function.
2514 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2515 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2516 (cleanup_htab): Delete.
2517 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2518 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2519 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2520 FIELD_LOC_KIND_DWARF_BLOCK.
2521 * gdbtypes.h (enum field_loc_kind): New entry
2522 FIELD_LOC_KIND_DWARF_BLOCK.
2523 (struct main_type): New loc entry dwarf_block.
2524 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2525 (TYPE_FIELD_DWARF_BLOCK): New.
2526 * python/py-type.c: Include dwarf2loc.h.
2527 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2528 internal_error call on unknown FIELD_LOC_KIND.
2529 * symtab.h (struct symtab): New field call_site_htab.
2530 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2531 (core_addr_hash, core_addr_eq): New functions.
2533 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2537 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2538 calling_convention under func_stuff there.
2539 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2540 (init_type) <TYPE_CODE_FUNC>: Likewise.
2541 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2542 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2543 * gdbtypes.h (enum type_specific_kind): Change
2544 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2545 (struct main_type) <type_specific>: Change calling_convention to
2546 func_stuff. Move calling_convention to ...
2547 (struct func_type): ... this new struct.
2548 (INIT_FUNC_SPECIFIC): New #define.
2549 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2551 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2553 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2554 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2555 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2556 ctx->ref_addr_size. Handle its invalid value.
2557 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2558 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2559 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2560 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2561 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2562 (dwarf2_per_cu_ref_addr_size): New function.
2564 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2567 * dwarf2read.c (per_cu_header_read_in): New function.
2568 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2569 variables cu_header_local and cu_headerp.
2571 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2573 Fix initial language detection with -readnow.
2574 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2575 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2576 searches only for global symbols.
2578 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 Fix printed anonymous struct name.
2581 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2582 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2583 (anonymous_struct_prefix): New function.
2584 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2585 (dwarf2_name): Strip for anonymous structs any prefixes.
2587 2011-10-07 Doug Evans <dje@google.com>
2589 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2592 * python/lib/gdb/printing.py: Whitespace cleanup.
2594 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2597 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2599 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2600 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2601 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2602 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2603 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2604 (arm_linux_remove_watchpoint): Adjust.
2605 * i386-linux-nat.c (i386_linux_dr_set_control)
2606 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2607 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2608 (ia64_linux_remove_watchpoint): Adjust.
2609 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2610 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2611 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2612 (ppc_linux_insert_mask_watchpoint)
2613 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2614 (ppc_linux_remove_watchpoint): Adjust.
2615 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2618 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2620 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2621 (clear_win32_environment): New function for Cygwin to clear out
2623 (windows_create_inferior): Prepare new environment from in_env
2626 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2629 * python/py-value.c (valpy_call): Check that arguments are
2631 (is_intlike): Remove call to CHECK_TYPEDEF.
2632 (valpy_nonzero): Catch GDB exceptions.
2633 (valpy_absolute): Ditto.
2634 (valpy_lazy_string): Ditto.
2635 (valpy_call): Ditto.
2636 (valpy_get_is_optimized_out): Ditto.
2637 (valpy_long): Ditto.
2638 (valpy_float): Ditto.
2639 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2640 (valpy_richcompare): Ditto.
2642 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2644 * inferior.h (disable_randomization): Declare.
2645 * infrun.c (disable_randomization): New global variable.
2646 (show_disable_randomization): New function.
2647 (set_disable_randomization): Likewise.
2648 (_initialize_infrun): Install set/show disable-randomization
2650 * linux-nat.c (disable_randomization): Remove.
2651 (show_disable_randomization): Likewise.
2652 (set_disable_randomization): Likewise.
2653 (_initialize_linux_nat): No longer install set/show
2654 disable-randomization commands here.
2655 (linux_nat_supports_disable_randomization): New function.
2656 (linux_nat_add_target): Install it.
2657 * remote.c (PACKET_QDisableRandomization): New enum value.
2658 (remote_protocol_packets): Support QDisableRandomization.
2659 (_initialize_remote): Likewise.
2660 (remote_supports_disable_randomization): New function.
2661 (init_remote_ops): Install it.
2662 (extended_remote_supports_disable_randomization): New function.
2663 (init_extended_remote_ops): Install it.
2664 (extended_remote_disable_randomization): New function.
2665 (extended_remote_create_inferior_1): Call it.
2666 * target.h (struct target_ops): Add to_supports_disable_randomization.
2667 (target_supports_disable_randomization): Add prototype.
2668 * target.c (target_supports_disable_randomization): New function.
2669 (find_default_supports_disable_randomization): Likewise.
2670 (init_dummy_target): Install it.
2672 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2674 Allow Python notification of new object-file loadings.
2675 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2676 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2677 Add build rule for this file.
2678 * python/py-event.h (emit_new_objfile_event): New prototype.
2679 (newobjfile): New Python event emitter.
2680 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2681 Python event registry.
2682 * python/py-inferior.c: Include objfiles.h
2683 (python_new_objfile): New function.
2684 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2686 * python/py-newobjfileevent.c: New file.
2687 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2689 * python/python.c (_initialize_python): Add
2690 gdbpy_initialize_new_objfile_event call.
2691 * NEWS: Add item for new Python event "gdb.newobjfile"
2693 2011-10-05 Tristan Gingold <gingold@adacore.com>
2695 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2696 Extract the ravenscar task name from the symbol for the atcb.
2698 2011-10-04 Paul Koning <paul_koning@dell.com>
2700 * python/py-type.c (typy_make_iter): Add forward declaration.
2701 (typy_fields_items): Use the gdb.Type iterator.
2703 2011-10-04 Paul Koning <paul_koning@dell.com>
2705 * NEWS: Add entry for Python gdb.Type mapping methods.
2707 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2709 PR python/12691: Add the inferior to Python exited event
2710 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2712 * python/py-event.h (emit_exited_event): Likewise
2713 * python/-inferior.c (python_inferior_exit): Likewise
2715 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2717 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2718 in output of -ada-task-info GDB/MI command.
2720 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2722 * ada-lang.h (struct inferior): Declare.
2723 (print_ada_task_info): Add declaration.
2724 * ada-tasks.c (print_ada_task_info): Make non-static.
2725 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2726 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2727 * mi/mi-main.c: #include "ada-lang.h".
2728 (mi_cmd_list_features): Add "ada-task-info" to the list
2729 of supported features.
2730 (mi_cmd_ada_task_info): New function.
2732 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2734 * python/python.c (python_run_simple_file): New function.
2735 (source_python_script, source_python_script_for_objfile):
2736 Replace call to PyRun_SimpleFile by call to
2737 python_run_simple_file.
2739 2011-10-03 Paul Koning <paul_koning@dell.com>
2741 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2742 (value_to_value_object): Fetch value if it was lazy.
2744 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2748 Rearrange the code for it.
2750 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2752 * breakpoint.c (bkpt_print_recreate): Add call to
2753 print_recreate_thread.
2755 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2757 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2758 PTRACE_GETFDPIC_INTERP): Define.
2760 2011-09-28 Yao Qi <yao@codesourcery.com>
2762 * symfile.c (add_symbol_file_command): Update message on usage.
2764 2011-09-28 Paul Koning <paul_koning@dell.com>
2766 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2767 (typy_length, typy_get, typy_has_key, typy_make_iter)
2768 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2769 (typy_iterator_iter, typy_iterator_iternext)
2770 (typy_iterator_dealloc): New functions to implement standard
2771 Python mapping methods on gdb.Type object.
2772 (gdb.TypeIterator): New Python type.
2773 * python/python-internal.h (gdbpy_iter_kind): New enum.
2775 2011-09-28 David S. Miller <davem@davemloft.net>
2777 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2778 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2779 * sparc-tdep.c (sparc_complex_floating_p): New function.
2780 (sparc32_store_arguments): Handle complex floats.
2781 (sparc32_extract_return_value): Likewise.
2782 (sparc32_store_return_value): Likewise.
2783 (sparc32_stabs_argument_has_addr): Likewise.
2784 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2785 (sparc64_store_floating_fields): Handle complex floats.
2786 (sparc64_store_arguments): Likewise.
2787 (sparc64_store_return_value): Likewise.
2789 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2791 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2792 before the change on 2006-12-09.
2793 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2794 generates the environment block for CreateProcessA, modulo the
2795 Cygwin-specific parts that are not needed here.
2797 2011-09-27 Tristan Gingold <gingold@adacore.com>
2799 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2800 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2801 (darwin_solib_get_all_image_info_addr_at_init): New function.
2802 (darwin_solib_read_all_image_info_addr): Likewise.
2803 (darwin_solib_create_inferior_hook): Use the above two functions.
2804 * darwin-nat.c (darwin_execvp): Renames retval to res.
2805 (darwin_read_write_inferior): Update comment.
2806 (darwin_read_dyld_info): New function.
2807 (darwin_xfer_partial): Handle DYLD_INFO.
2809 2011-09-27 Stan Shebs <stan@codesourcery.com>
2811 Add return address collection for tracepoints.
2812 * tracepoint.c (encode_actions_1): Add case for $_ret.
2813 (validate_actionline): Check for $_ret.
2814 (trace_dump_actions): Ditto.
2815 * ax-gdb.h (gen_trace_for_return_address): Declare.
2816 * ax-gdb.c: Include arch-utils.h.
2817 (gen_trace_for_return_address): New function.
2818 (agent_command): Add return address special case.
2819 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2820 (amd64_gen_return_address): New function.
2821 (amd64_init_abi): Call it.
2822 * i386-tdep.c: Include ax.h and ax-gdb.h.
2823 (i386_gen_return_address): New function.
2824 (i386_init_abi): Call it.
2825 * arch-utils.h (default_gen_return_address): Declare.
2826 * arch-utils.c (default_gen_return_address): New function.
2827 * gdbarch.sh (gen_return_address): New method.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2830 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2833 * i386-tdep.c (i386_frame_align): New.
2834 (i386_gdbarch_init): Use i386_frame_align.
2836 2011-09-23 Yao Qi <yao@codesourcery.com>
2838 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2841 2011-09-22 Tristan Gingold <gingold@adacore.com>
2843 * fork-child.c (fork_inferior): Add exec_fun parameter.
2844 Call exec_fun or execvp.
2845 * inferior.h: Adjust prototype.
2846 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2847 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2848 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2849 * procfs.c (procfs_create_inferior): Ditto.
2850 * darwin-nat.c (darwin_execvp): New function.
2851 (darwin_create_inferior): Use it.
2853 2011-09-22 Yao Qi <yao@codesourcery.com>
2855 * infrun.c (context_switch): Print debug message when switching to
2858 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2860 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2861 complex and vector types.
2862 (s390_return_value_convention): Likewise.
2864 (s390_value_from_register): Call check_typedef.
2865 (extend_simple_arg): Likewise.
2866 (alignment_of): Likewise.
2867 (s390_push_dummy_call): Likewise.
2868 (s390_return_value): Likewise.
2870 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2872 * event-top.c (async_disconnect): If an exception is thrown from
2873 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2875 * top.c (quit_cover): Return void and take no arguments.
2876 * top.h (quit_cover): Update prototype.
2878 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2880 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2881 current_uiout, not uiout.
2883 2011-09-19 Doug Evans <dje@google.com>
2885 * python/py-auto-load.c (source_section_scripts): Fix file
2887 * python/python.c (source_python_script_for_objfile): Tweak comments.
2889 2011-09-18 Yao Qi <yao@codesourcery.com>
2890 Ulrich Weigand <ulrich.weigand@linaro.org>
2892 Support displaced stepping for Thumb 16-bit insns.
2893 * arm-tdep.c (THUMB_NOP) Define.
2894 (thumb_copy_unmodified_16bit): New.
2895 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2896 (thumb_copy_alu_reg): New.
2897 (arm_copy_svc): Move some common code to ...
2898 (install_svc): ... here. New.
2899 (thumb_copy_svc): New.
2900 (install_pc_relative): New.
2901 (thumb_copy_pc_relative_16bit): New.
2902 (thumb_decode_pc_relative_16bit): New.
2903 (thumb_copy_16bit_ldr_literal): New.
2904 (thumb_copy_cbnz_cbz): New.
2905 (cleanup_pop_pc_16bit_all): New.
2906 (thumb_copy_pop_pc_16bit): New.
2907 (thumb_process_displaced_16bit_insn): New.
2908 (thumb_process_displaced_32bit_insn): New.
2909 (thumb_process_displaced_insn): process thumb instruction.
2911 Support displaced stepping for Thumb 32-bit insns.
2912 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2913 (thumb2_copy_preload): New.
2914 (thumb2_copy_copro_load_store): New.
2915 (thumb2_copy_b_bl_blx): New.
2916 (thumb2_copy_alu_imm): New.
2917 (thumb2_copy_load_reg_imm): New.
2918 (thumb2_copy_load_literal): New
2919 (thumb2_copy_block_xfer): New.
2920 (thumb_32bit_copy_undef): New.
2921 (thumb_32bit_copy_unpred): New.
2922 (thumb2_decode_ext_reg_ld_st): New.
2923 (thumb2_decode_svc_copro): New.
2924 (decode_thumb_32bit_store_single_data_item): New.
2925 (thumb_copy_pc_relative_32bit): New.
2926 (thumb_decode_pc_relative_32bit): New.
2927 (decode_thumb_32bit_ld_mem_hints): New.
2928 (thumb2_copy_table_branch): New
2929 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2932 2011-09-18 Yao Qi <yao@codesourcery.com>
2934 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2935 (install_b_bl_blx): Likewise.
2937 2011-09-17 Yao Qi <yao@codesourcery.com>
2939 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2940 (install_load_store): ... this. New.
2941 Change parameter BYTE to SIZE.
2942 (arm_copy_ldr_str_ldrb_strb): Update caller.
2943 (arm_decode_ld_st_word_ubyte): Update caller.
2945 2011-09-17 Yao Qi <yao@codesourcery.com>
2947 * infrun.c (displaced_step_fixup): Move some code ...
2948 (displaced_step_restore): ... here. New function.
2949 (handle_inferior_event): Cleanup displaced stepping state for both
2950 child and parent when get forked or vforked event.
2951 * regcache.c (get_thread_arch_aspace_regcache): New function.
2952 get_thread_arch_regcache (): Call it.
2954 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2956 * ada-tasks.c (print_ada_task_info): New function, merging
2957 short_task_info and info_tasks together. Reimplement using
2958 ui-out instead of printing to stdout directly. Move the code
2959 building and checking the task list here, instead of leaving it
2960 in info_tasks_command.
2961 (info_task): Move the code building and checking the task
2962 list here, instead of leaving it in info_tasks_command.
2963 (info_tasks_command): Delete code building and checking
2964 the task list - moved elsewhere. Update calls to info_tasks
2967 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2969 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2971 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2973 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2975 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2977 * ada-lang.h (ada_build_task_list): Remove parameter
2979 * ada-tasks.c (ada_build_task_list): Remove parameter
2980 `warn_if_null'. Adjust implementation and documentation.
2981 (valid_task_id, ada_get_environment_task)
2982 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2983 (info_tasks_command): Adjust implementation.
2984 (task_command): Likewise.
2985 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2986 to ada_build_task_list.
2988 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2990 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2991 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2992 (ada_tasks_inferior_data_handle): New static global.
2993 (get_ada_tasks_inferior_data): New function.
2994 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2995 (ada_get_environment_task, iterate_over_live_ada_tasks)
2996 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2998 (ada_set_current_inferior_known_tasks_addr): New function.
2999 (read_known_tasks, ada_build_task_list, short_task_info)
3000 (info_tasks, info_task, info_tasks_command, task_command_1)
3001 (task_command, ada_task_list_changed): Adjust.
3002 (ada_tasks_invalidate_inferior_data): New function.
3003 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3004 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3005 * ada-lang.h (struct inferior): Add declaration.
3006 (ada_task_list_changed): Update profile.
3007 * remote-wtx-pd.c: #include "inferior.h".
3008 (switch_to_pd_internal): Update call to ada_task_list_changed.
3010 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3012 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3013 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3014 (atcb_fieldno): Delete these static globals.
3015 (struct ada_tasks_pspace_data): New struct.
3016 (ada_tasks_pspace_data_handle): New static global.
3017 (get_ada_tasks_pspace_data): New function.
3018 (ada_tasks_invalidate_pspace_data): New function.
3019 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3020 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3021 (_initialize_tasks): Create this module's per-progspace
3024 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3026 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3028 2011-09-16 Tristan Gingold <gingold@adacore.com>
3030 * fork-child.c (fork_inferior): Update comment. Use alloca
3031 instead of xmalloc for argv. Move len and shell_command
3032 declarations in the block where they are used.
3033 Only call execvp. Factorize failure code.
3035 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3038 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3039 `exp_element' instead of an element of the same and make the function
3041 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3042 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3043 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3044 Change argument of `write_exp_elt' function call.
3045 Remove extra spaces from comments.
3046 * parser-defs.h (write_exp_elt): Remove prototype.
3048 2011-09-15 Paul Koning <paul_koning@dell.com>
3050 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3051 count of item appended to list.
3052 * python/py-type.c (typy_fields): Likewise.
3054 2011-09-15 Paul Koning <paul_koning@dell.com>
3056 * MAINTAINERS (Write After Approval): Add myself to the list.
3058 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3061 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3062 processes with multiple threads.
3063 (inf_has_multiple_thread_cb): New function.
3064 (inf_has_multiple_threads): New function.
3066 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3068 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3069 * python/py-inferior.c (GdbMethods): New Python method definition.
3071 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3073 Handle multiple breakpoint hits in Python interface:
3074 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3075 variable to breakpoints.
3076 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3077 bps instead of single breakpoint. Fix some space typos.
3078 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3079 variable to breakpoints.
3081 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3083 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3084 note if the breakpoint is internal.
3086 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3088 * MAINTAINERS (Write After Approval): Add myself to the list
3090 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3092 * infrun.c (prepare_for_detach, wait_for_inferior)
3093 (fetch_inferior_event): Don't flush the register cache.
3094 * remote.c (struct stop_reply) <regcache>: Add comment.
3096 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 Remove excessive DWARF expressions memory duplication.
3099 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3101 (indirect_pieced_value): Remove variable result. Remove variable
3102 back_to and its use for baton.data.
3103 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3105 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3106 Update the function comment.
3108 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3110 * inferior.h (ALL_INFERIORS): New.
3111 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3112 for a stopped thread.
3113 (thread_db_find_new_threads): Look for threads in all inferiors.
3115 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3117 * breakpoint.c (update_watchpoint): Handle the case of the
3118 watchpoint to update not being in the breakpoint list yet.
3119 (hw_watchpoint_use_count): New, factored out from
3120 hw_watchpoint_used_count.
3121 (hw_watchpoint_used_count): Rename to ...
3122 (hw_watchpoint_used_count_others): ... this. Add `except'
3123 parameter. Don't count resources of `except'. Use
3124 hw_watchpoint_use_count.
3126 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3128 * gdbthread.h (enum thread_state): Moved here.
3129 (struct thread_info): Rename `executing_' field to `executing' and
3130 `state_' to `state'.
3131 * thread.c (enum thread_state): Moved to gdbthread.h.
3132 (new_thread, add_thread_silent, delete_thread_1)
3133 (any_live_thread_of_process, thread_alive, set_running)
3134 (set_running, is_thread_state, any_running, is_executing)
3135 (set_executing, finish_thread_state, print_thread_info)
3136 (do_captured_thread_select): Adjust.
3138 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3141 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3143 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3144 Matt Rice <ratmice@gmail.com>
3148 * interps.c (struct interp) <interpreter_out>: Delete field.
3149 (interp_new): Remove the data and uiout parameters and adjust.
3150 (interp_set): Only set the current_uiout from the interpreter's
3151 uiout after initializing the interpreter. Adjust call to
3153 (interp_ui_out): Adjust to call procs->ui_out_proc.
3154 (interp_data, interp_name): New.
3155 * interps.h (interp_init_ftype): Add `self' parameter.
3156 (interp_ui_out_ftype): New typedef.
3157 (struct interp_procs) <ui_out_proc>: New method pointer.
3158 (interp_new): Remove the data and uiout parameters.
3159 (interp_data, interp_name): Declare.
3160 * tui/tui-interp.c (tui_init): Adjust prototype.
3162 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3163 tui_out here. Adjust call to interp_new.
3164 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3165 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3167 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3168 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3169 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3170 Initialize mi->uiout depending on the mi_version as extracted from
3171 the interpreter's name.
3173 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3174 interp_new. Don't allocate the ui_out's of the interpreters here.
3176 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3178 * solib.c (solib_used): New function.
3179 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3180 by another so_list object before freeing it.
3182 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3185 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3188 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3191 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3192 (amd64_skip_xmm_prologue): ... this new function. Describe its
3193 parameters. No longer use amd64_prologue_line_bug.
3194 * defs.h (producer_is_gcc_ge_4): New declaration.
3195 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3196 (process_full_comp_unit): Update its caller. Remove
3197 amd64_prologue_line_bug initialization.
3198 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3199 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3201 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3203 * linux-nat.h (enum resume_kind): New.
3204 (struct lwp_info) <last_resume_kind>: New field.
3205 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3206 resume_stop on the new lwp.
3207 (add_lwp): Set last_resume_kind as resume_continue by default.
3208 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3209 (resume_lwp): New, factored out from resume_callback. Also check
3210 for pending status in lp->waitstatus.
3211 (resume_callback): Reimplement.
3212 (resume_clear_callback): Set last_resume_kind as resume_stop.
3213 (resume_set_callback): Set last_resume_kind as resume_continue.
3214 (linux_nat_resume, linux_handle_extended_wait): Set
3216 (running_callback): Also check lp->waitstatus for pending events.
3217 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3219 (stop_and_resume_callback): Don't re-resume if the core wanted the
3220 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3221 using an invalidated pointer.
3222 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3223 SIGSTOPs if the core wanted the LWP to stop.
3224 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3225 wanted the lwp to stop. If the core wanted the lwp to stop, and
3226 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3227 of TARGET_SIGNAL_STOP.
3228 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3229 here. Instead, signal the lwp, and set the last_resume_kind to
3232 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3234 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3235 -1 (error), if the lwp exits right after attaching.
3237 2011-09-08 Doug Evans <dje@google.com>
3239 * py-cmd.c: Some minor formatting fixes.
3240 (gdbpy_parse_command_name): Rename text arg to name, make const.
3241 All callers updated.
3242 * python-internal.h (gdbpy_parse_command_name): Update.
3244 * cli/cli-decode.c (add_cmd): Add comment.
3246 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 PR breakpoints/12435
3249 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3250 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3251 * dwarf2read.c (process_full_comp_unit): Initialize
3252 amd64_prologue_line_bug.
3253 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3255 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3257 Fix TUI screen corruption.
3258 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3261 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 * findvar.c (read_var_value): Never return NULL, throw an error
3264 instead. Update the function comment. State symbol name in the error
3266 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3268 * stack.c (print_frame_args): Likewise.
3269 * valops.c (value_of_variable): Likewise.
3271 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3273 * stack.c (print_frame_args): New variable except. Wrap
3274 read_var_value and common_val_print into TRY_CATCH.
3276 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3278 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3279 caller to value_of_this.
3280 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3282 * valops.c (value_of_this): Remove parameter complain and variable ret.
3283 Update function comment. Never return NULL by this code.
3284 (value_of_this_silent): New function.
3285 * value.h (value_of_this): Remove parameter complain.
3286 (value_of_this_silent): New declaration.
3288 2011-09-07 Yao Qi <yao@codesourcery.com>
3290 * gdbthread.h (struct thread_info): Remove fields
3291 `stepping_through_solib_after_catch' and
3292 `stepping_through_solib_catchpoints'.
3293 * infrun.c (init_thread_stepping_state): Update.
3294 (process_event_stop_test, currently_stepping): Update.
3295 (currently_stepping_or_nexting_callback): Update.
3297 2011-09-07 Yao Qi <yao@codesourcery.com>
3299 * gdbthread.h (struct thread_info): Comment on field
3300 `step_after_step_resume_breakpoint'.
3302 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3304 * remote.c (remote_console_output): Reindent.
3306 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3308 * frame.c (has_stack_frames): Check for currently selected
3311 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3313 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3314 (set_async_annotation_level, set_async_prompt, pop_prompt)
3315 (push_prompt, new_async_prompt): Delete declarations.
3316 * top.h (get_prompt, set_prompt): Change prototype.
3317 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3319 * top.c (command_loop):
3320 (top_prompt): New global.
3321 (get_prefix, set_prefix, get_suffix, ): Delete.
3322 (get_prompt, set_prompt): Rewrite.
3323 (show_new_async_prompt): Rename to ...
3324 (show_prompt): ... this.
3325 (init_main): Adjust. Don't handle --annotate=2 here.
3326 * event-top.c (new_async_prompt): Delete.
3327 (the_prompts): Delete.
3328 (more_to_come): Make static.
3329 (display_gdb_prompt): Use top_level_prompt() to compute the top
3330 level prompt, and don't notify the before_prompt observers
3331 directly here. Always trick readline into not trying to display
3332 the prompt if sync_execution and displaying the primary prompt.
3333 If displaying a local/secondary prompt, always show it, even if
3334 sync_execution is set.
3335 (change_annotation_level): Delete.
3336 (top_level_prompt): New, based on change_annotation_level.
3337 (push_prompt, pop_prompt): Delete.
3338 (async_disable_stdin): No longer pushes prompt.
3339 (command_line_handler): No longer pushes or pops prompt. If more
3340 input is expected, call display_gdb_prompt with an explicit empty
3342 (async_stop_sig): Adjust.
3343 (set_async_annotation_level, set_async_prompt): Delete.
3344 * python/python.c (before_prompt_hook): Adjust.
3346 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3350 * infrun.c (fetch_inferior_event): Check if there's a selected
3351 thread before checking if the selected thread is executing.
3353 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3355 * inf-loop.c (execute_command): Don't check if the current thread
3356 if running before synchronously waiting for command completion.
3357 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3359 (normal_stop): Call async_enable_stdin here.
3360 * inf-loop.c (inferior_event_handler): Don't call
3361 async_enable_stdin, nor handle "set exec-done-display" here.
3363 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3367 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3369 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3371 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3373 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3375 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3379 2011-09-02 Matt Rice <ratmice@gmail.com>
3382 * event-top.c (cli_command_loop): Replace readline setup with
3383 direct call to display_gdb_prompt.
3384 (display_gdb_prompt): Do not call observer mechanism during
3385 synchronous execution.
3387 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3389 * linux-nat.c (in_pid_list_p): New.
3390 (linux_record_stopped_pid): Delete.
3391 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3392 already attached to the LWP. Return an indication if so.
3393 (linux_nat_filter_event): Adjust.
3394 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3395 returning an indication to ignore this thread.
3397 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3399 * top.c: Include interps.h.
3400 (execute_command): If the target can async, but the interpreter is
3401 in sync mode, synchronously wait for the command to finish before
3403 (execute_command_to_string): Force the interpreter to sync mode.
3404 * infrun.c: Include interps.h.
3405 (fetch_inferior_event): Don't restore the prompt yet if the
3406 interpreter is in sync mode.
3407 * interps.c (interpreter_async): New global.
3408 * interps.h (interpreter_async): Declare.
3409 * inf-loop.c: Include interps.h.
3410 (inferior_event_handler): Don't print the language change or run
3411 breakpoint commands yet if the interpreter in is sync mode.
3412 * main.c (captured_command_loop): Flip the interpreter to async
3414 * cli/cli-script.c: Include interps.h.
3415 (execute_user_command, while_command, if_command): Force the
3416 interpreter to sync mode.
3417 * python/python.c: Include interps.h.
3418 (python_command, execute_gdb_command): Force the interpreter to
3421 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3423 * value.c (show_convenience): Catch errors thrown while printing
3424 each internal variable.
3425 * infrun.c (validate_siginfo_access): New function.
3426 (siginfo_value_read, siginfo_value_write): Call it.
3428 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3431 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3432 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3435 2011-08-29 Yao Qi <yao@codesourcery.com>
3437 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3439 (enable_break2): Update caller.
3440 * solib-frv.c (bfd_lookup_symbol): Removed.
3442 (enable_break2): Update caller.
3443 * solib-pa64.c (bfd_lookup_symbol): Removed.
3445 * solib-svr4.c (bfd_lookup_symbol): Removed.
3446 (cmp_name_and_sec_flags): New.
3447 (enable_break): Update caller.
3448 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3449 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3450 (gdb_bfd_lookup_symbol): New.
3451 * solib.h: Functions declarations.
3453 2011-08-29 Yao Qi <yao@codesourcery.com>
3455 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3458 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Fix TUI stepi on code without symbols.
3461 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3464 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3467 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3468 and the static keyword.
3469 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3470 Make prefix an array.
3471 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3472 * mi/mi-main.c (get_register): Remove stb initialization and the static
3475 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3477 Code cleanup - make mi_opt const.
3478 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3480 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3481 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3482 (mi_cmd_env_dir): Likewise.
3483 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3484 (mi_cmd_target_file_put): Likewise.
3485 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3486 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3487 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3488 (mi_valid_noargs): Make opts const.
3489 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3490 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3491 (mi_cmd_data_read_memory): Likewise.
3492 (mi_cmd_data_read_memory_bytes): Likewise.
3493 (mi_cmd_data_write_memory): Likewise.
3495 2011-08-26 Matt Rice <ratmice@gmail.com>
3497 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3498 bcache_xmalloc, replace bcache_xmalloc with call to
3499 psymbol_bcache_init for psymbol_cache.
3500 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3502 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3504 * inf-loop.c (inferior_event_handler): Add exception_print in
3507 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3509 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3510 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3511 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3512 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3513 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3514 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3515 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3516 * infrun.c (fetch_inferior_event): Call
3517 make_bpstat_clear_actions_cleanup.
3518 * top.c (execute_command): New variable cleanup_if_error, call
3519 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3520 * utils.c (do_bpstat_clear_actions_cleanup)
3521 (make_bpstat_clear_actions_cleanup): New functions.
3523 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3525 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3526 either the parent or the child forks. Rename a couple locals.
3528 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3530 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3531 library call. Avoid reading the `status' local if all waitpid
3534 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3536 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3537 opening /proc/PID/task always succeeds.
3539 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3541 * linespec.c (symtab_from_filename): Check for the end of string.
3543 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3546 * varobj.c (cplus_describe_child): Add the keyword
3547 'class' to the output of the method when dealing
3548 with a cast to a base class.
3550 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 No functionality change.
3553 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3554 function comment a reference, new variables tp and bs, move here code
3555 from throw_exception.
3556 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3557 describe it in the comment.
3558 * exceptions.c (throw_exception): Remove variable tp, move the code for
3559 bpstat_clear_actions to bpstat_clear_actions.
3561 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3563 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3564 * linux-nat.c: Include linux-procfs.h.
3565 (linux_proc_get_tgid): Move to ...
3566 * common/linux-procfs.c: ... here. New file.
3567 * common/linux-procfs.h: New file.
3568 * linux-thread-db.c: Include linux-procfs.h.
3569 * Makefile.in: Update dependencies.
3570 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3571 * config/arm/linux.mh: Likewise.
3572 * config/i386/linux.mh: Likewise.
3573 * config/i386/linux64.mh: Likewise.
3574 * config/ia64/linux.mh: Likewise.
3575 * config/m32r/linux.mh: Likewise.
3576 * config/m68k/linux.mh: Likewise.
3577 * config/mips/linux.mh: Likewise.
3578 * config/pa/linux.mh: Likewise.
3579 * config/pa/linux.mh: Likewise.
3580 * config/powerpc/linux.mh: Likewise.
3581 * config/powerpc/ppc64-linux.mh: Likewise.
3582 * config/powerpc/spu-linux.mh: Likewise.
3583 * config/sparc/linux.mh: Likewise.
3584 * config/sparc/linux64.mh: Likewise.
3585 * config/xtensa/linux.mh: Likewise.
3587 2011-08-24 Hui Zhu <teawater@gmail.com>
3589 * tracepoint.c (cond_string_is_same): New function.
3590 (find_matching_tracepoint): Add condition check
3591 by cond_string_is_same.
3593 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3595 Fix build error in Darwin port.
3596 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3598 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3601 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3602 (command_line_is_silent): New function.
3603 (bpstat_do_actions_1): No longer use commands_left, use
3604 command_line_is_silent for commands.
3605 (bpstat_alloc): Remove clearing of commands_left.
3606 (bpstat_stop_status): Remove initialization of commands_left, use
3607 command_line_is_silent.
3608 * breakpoint.h (struct bpstats): Remove commands_left.
3610 2011-08-18 Keith Seitz <keiths@redhat.com>
3613 * cp-name-parser.y (struct demangle_info): Remove unused
3616 (allocate_info): Change return type to struct demangle_info *.
3617 Always allocate a new demangle_info.
3618 Remove unused PREV pointer.
3619 (cp_new_demangle_parse_info): New function.
3620 (cp_demangled_name_parse_free): New function.
3621 (do_demangled_name_parse_free_cleanup): New function.
3622 (make_cleanup_cp_demangled_name_parse_free): New function.
3623 (cp_demangled_name_to_comp): Change return type to
3624 struct demangle_parse_info *.
3625 Allocate a new storage for each call.
3626 (main): Update usage for cp_demangled_name_to_comp
3628 * cp-support.h (struct demangle_parse_info): New structure.
3629 (cp_demangled_name_to_comp): Update API change for
3631 (cp_new_demangle_parse_info): Declare.
3632 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3633 (cp_demangled_name_parse_free): Declare.
3634 * cp-support.c (cp_canonicalize_string): Update API
3635 change for cp_demangled_name_to_comp.
3636 (mangled_name_to_comp): Likewise.
3637 Return struct demangle_parse_info, too.
3638 (cp_class_name_from_physname): Update mangled_name_to_comp
3640 (method_name_from_physname): Likewise.
3641 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3642 (cp_remove_params): Likewise.
3643 * python/py-type.c (typy_legacy_template_argument): Likewise.
3645 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3646 (cp_merge_demangle_parse_infos): Declare.
3647 * cp-support.c (ignore_typedefs): New file global.
3648 (copy_string_to_obstack): New function.
3649 (inspect_type): New function.
3650 (replace_typedefs): New function.
3651 (replace_typedefs_qualified_name): New function.
3652 (cp_canonicalize_string_no_typedefs): New function.
3653 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3654 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3655 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3656 instead of cp_canonicalize_string.
3657 (find_method): Likewise.
3658 (decode_compound): Before looking up the name, call
3659 cp_canonicalize_string_no_typedefs.
3660 (decode_variable): Likewise.
3662 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3663 Tom Tromey <tromey@redhat.com>
3664 Matt Rice <ratmice@gmail.com>
3666 * python/lib/gdb/prompt.py: New file.
3667 * python/lib/gdb/command/prompt.py: New file.
3668 * NEWS: Document set extended-prompt and gdb.prompt library
3670 2011-08-16 Yao Qi <yao@codesourcery.com>
3672 * tic6x-linux-tdep.c: Move const arrays definition from here...
3673 * tic6x-tdep.c: to here ...
3675 2011-08-14 Yao Qi <yao@codesourcery.com>
3677 * NEWS: New port to Texas Instruments TMS320C6x.
3679 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3680 Bernd Schmidt <bernds@codesourcery.com>
3681 Yao Qi <yao@codesourcery.com>
3683 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3684 * solib-dsbt.c: New file. Support DSBT shared object.
3685 * tic6x-linux-tdep.c: New file.
3686 * tic6x-tdep.c: New file.
3687 * tic6x-tdep.h: New file.
3689 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3690 Yao Qi <yao@codesourcery.com>
3692 * remote.c (PACKET_qXfer_fdpic): New enum value.
3693 (remote_protocol_features): Add qXfer:fdpic:read packet.
3694 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3695 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3696 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3698 2011-08-14 Yao Qi <yao@codesourcery.com>
3700 Target description for tic6x.
3701 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3702 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3703 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3704 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3705 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3706 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3707 * features/tic6x-c64xp-linux.xml: New.
3708 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3709 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3710 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3711 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3712 * regformats/tic6x-c64xp.dat,
3713 regformats/tic6x-c62x-linux.dat: Generated.
3714 * regformats/tic6x-c64x-linux.dat,
3715 regformats/tic6x-c64xp-linux.dat: Generated.
3716 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3717 features/tic6x-*.c files.
3718 Add regformats/tic6x-*.dat files.
3720 2011-08-12 Doug Evans <dje@google.com>
3722 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3723 * python/py-symbol.c (sympy_get_type): New function.
3724 (symbol_object_getset): Add "type".
3726 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3730 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3732 (tui_show_register_group): Don't store a byte buffer in the data
3734 (tui_register_format): Skip registers with an empty name.
3735 (tui_get_register): Store a struct value in the data element's
3736 value field instead of a byte buffer holding the raw register
3737 contents. Account for optimized-out and unavailable registers
3738 when comparing register contents.
3740 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3742 * printcmd.c (current_display_number): Update comment.
3743 (disable_current_display_cleanup): Delete.
3744 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3745 catch errors thrown while evaluating and printing the display.
3747 2011-08-09 Tom Tromey <tromey@redhat.com>
3749 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3751 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3753 * elfread.c (elf_symtab_read): Rework comments.
3754 * maint.c (maintenance_command): Ditto.
3755 * somread.c (som_symtab_read): Ditto.
3756 * solib.c (solib_find, solib_map_sections, update_solib_list)
3757 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3758 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3759 (sharedlibrary_command, no_shared_libraries): Ditto.
3760 * solib-irix.c (locate_base, disable_break, enable_break)
3761 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3762 (irix_current_sos, irix_open_symbol_file_object)
3763 (irix_special_symbol_handling): Ditto.
3764 * solib-sunos.c (locate_base, first_link_map_member)
3765 (sunos_current_sos, disable_break, enable_break)
3766 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3768 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3769 (open_symbol_file_object, svr4_current_sos, enable_break)
3770 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3772 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3773 (frv_current_sos, enable_break, frv_special_symbol_handling)
3774 (frv_solib_create_inferior_hook): Ditto.
3775 * solist.h (struct target_so_ops): Extend the comments of the
3776 special_symbol_handling, current_sos and open_symbol_file_object
3779 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3781 * python/lib/gdb/__init__.py: Auto-load files in command and
3782 function directories.
3783 * python/python.c (finish_python_initialization): Use
3785 * python/lib/gdb/command/pretty_printers.py: Self register
3787 * NEWS: Document auto-loading.
3789 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3791 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3792 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3793 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3795 2011-08-08 Tom Tromey <tromey@redhat.com>
3797 * breakpoint.c (clean_up_filters): Remove.
3798 (catch_syscall_split_args): Use VEC_cleanup.
3800 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3802 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3803 (main): Uncomment "Demangling error\n".
3805 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3807 * solib-target.c (segment_attributes): Make them static.
3808 (section_attributes, library_children, library_attributes): Likewise.
3809 (library_list_children, library_list_attributes): Likesise.
3810 (library_list_elements): Likewise.
3812 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3814 * exceptions.c (throw_exception): Don't disable the current
3816 * printcmd.c (disable_current_display_cleanup): New function.
3817 (do_one_display): Install a cleanup to disable the current display
3818 if doing the display throws.
3820 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3822 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3823 initialization of the tp_new member to the corresponding
3824 gdbpy_initialize_* function.
3825 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3826 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3827 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3828 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3829 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3831 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3833 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3834 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3835 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3836 references to current_uiout.
3838 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3840 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3841 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3842 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3843 * top.c (gdb_readline_wrapper): Adjust.
3844 * tui/tui-interp.c (tui_command_loop):
3845 (_initialize_tui_interp): Don't install it.
3847 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3849 * ui-out.h (uiout): Rename to ...
3850 (current_uiout): ... this.
3851 * ui-out.c (uiout): Rename to ...
3852 (current_uiout): ... this.
3853 * ada-lang.c (print_it_exception, print_one_exception)
3854 (print_mention_exception): Adjust.
3855 * breakpoint.c (watchpoint_check): Adjust.
3856 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3857 (default_collect_info, watchpoints_info, print_one_catch_fork)
3858 (print_one_catch_vfork, print_one_catch_syscall)
3859 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3860 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3861 (print_it_watchpoint, print_mention_watchpoint)
3862 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3863 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3864 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3865 (bkpt_print_mention, momentary_bkpt_print_it)
3866 (tracepoint_print_mention, update_static_tracepoint)
3867 (tracepoints_info, save_breakpoints): Adjust.
3868 * cli-out.c (field_separator): Adjust.
3869 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3870 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3871 * frame.c (get_current_frame): Adjust.
3872 * infcmd.c (run_command_1, print_return_value): Adjust.
3873 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3874 * infrun.c (print_end_stepping_range_reason): Adjust.
3875 (print_signal_exited_reason, print_exited_reason): Adjust.
3876 (print_signal_received_reason, print_no_history_reason): Adjust.
3877 * interps.c (interp_set): Adjust.
3878 * osdata.c (info_osdata_command): Adjust.
3879 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3880 * remote-fileio.c (remote_fileio_request): Adjust.
3881 * remote.c (show_remote_cmd): Adjust.
3882 * solib.c (info_sharedlibrary_command): Adjust.
3883 * source.c (print_source_lines_base): Adjust.
3884 * stack.c (print_stack_frame): Adjust.
3885 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3886 * symfile-mem.c (add_vsyscall_page): Adjust.
3887 * symfile.c (load_progress, generic_load)
3888 (print_transfer_performance): Adjust.
3889 * thread.c (info_threads_command, restore_selected_frame)
3890 (thread_command): Adjust.
3891 * top.c (make_cleanup_restore_ui_file): Adjust.
3892 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3893 (print_one_static_tracepoint_marker): Adjust.
3894 * cli/cli-cmds.c (print_disassembly): Adjust.
3895 * cli/cli-decode.c (print_doc_line): Adjust.
3896 * cli/cli-interp.c (safe_execute_command): Adjust.
3897 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3898 (handle_redirections): Adjust.
3899 * cli/cli-script.c (show_user_1): Adjust.
3900 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3901 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3902 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3903 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3904 (mi_cmd_env_dir): Adjust.
3905 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3906 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3907 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3908 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3909 (list_args_or_locals): Adjust.
3910 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3911 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3912 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3913 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3914 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3915 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3916 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3917 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3918 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3919 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3920 (list_available_thread_groups, mi_cmd_list_thread_groups)
3921 (mi_cmd_data_list_register_names)
3922 (mi_cmd_data_list_changed_registers)
3923 (mi_cmd_data_list_register_values, get_register)
3924 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3925 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3926 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3927 (mi_execute_command, mi_load_progress): Adjust.
3928 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3929 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3931 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3932 * tui/tui-interp.c (tui_command_loop): Adjust.
3933 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3935 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3937 * exceptions.c (struct catcher): Remove saved_uiout field.
3938 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3939 no longer save/resvore the global ui_out builder.
3940 (catch_exceptions_with_msg): Save/override/restore the global
3941 ui_out builder manually instead of relying on TRY_CATCH to do it.
3942 (catch_errors): Save/restore the global ui_out builder manually
3943 instead of relying on TRY_CATCH to do it.
3944 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3946 (TRY_CATCH): Adjust.
3947 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3948 the global ui_out builder manually instead of relying on TRY_CATCH
3951 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3953 * breakpoint.c (update_global_location_list): Ensure
3954 invariant 'first loc marked not duplicated and inserted,
3955 following locs marked duplicated/not inserted' is respected
3956 for multiple locations at the same address.
3957 (unduplicated_should_be_inserted) New function.
3958 (swap_insertion) New function.
3960 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * stack.c (print_frame_arguments_choices): Comment typo fix.
3964 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3967 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3968 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3969 argument. Update callers.
3971 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3974 * doublest.c (convert_doublest_to_floatformat): Pass correct
3975 mantissa length to put_field.
3977 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3980 exception_print code path.
3981 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3982 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3983 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3985 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3989 Remove, merge them into ...
3990 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3991 variable args and its initialization.
3992 (struct print_args_args, print_args_stub): Remove, merge them into
3994 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3996 (do_gdb_disassembly): ... here. Remove variable args and its
3998 (print_frame): Remove variable args and its initialization, new
3999 variable gdbarch and numargs (from print_args_stub), inline here
4000 print_args_stub with a TRY_CATCH.
4001 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4003 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4004 New variable e, remove variable btargs and its initialization.
4006 2011-08-01 Tristan Gingold <gingold@adacore.com>
4008 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4010 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4012 * breakpoint.c (insert_bp_location): Document return value.
4013 (insert_breakpoint_locations): Fix documentation.
4014 (remove_breakpoints): Add documentation.
4016 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4018 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4019 argument. Update callers.
4021 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4023 * stack.c (print_frame_info): Comment typo fix.
4025 2011-07-29 Sterling Augustine <saugustine@google.com>
4027 * MAINTAINERS (Write After Approval): Add myself to the list.
4029 2011-07-29 Tom Tromey <tromey@redhat.com>
4031 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4032 (library_list_start_segment): Update.
4033 (library_list_start_section): Update.
4035 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4037 * varobj.c (value_get_print_value): Move hint check later into the
4038 function. Comment function. Free thevalue before reusing it.
4040 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 Pedro Alves <pedro@codesourcery.com>
4043 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4045 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4046 Assert the result kind.
4047 * value.h (value_one): Remove parameter lv.
4049 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4051 Fix crash on lval_computed values.
4052 * valops.c (value_zero): Use not_lval for lval_computed.
4054 2011-07-27 Tom Tromey <tromey@redhat.com>
4056 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4057 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4059 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4061 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4062 "ptype" by their typedefs difference.
4064 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4066 * dwarf2expr.c (ctx_no_read_reg): New function.
4067 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4068 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4069 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4070 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4072 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4075 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4077 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4078 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4079 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4080 (ctx_no_get_base_type): Move the functions here.
4081 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4082 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4083 (ctx_no_get_base_type): New declarations.
4085 2011-07-27 Tom Tromey <tromey@redhat.com>
4087 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4089 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4090 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4092 2011-07-26 Sterling Augustine <saugustine@google.com>
4094 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4096 (dump_bfd_file): Likewise.
4098 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4100 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4101 (remote_hw_watchpoint_length_limit): New variable.
4102 (_initialize_remote) add set,show cmds for this new variable.
4103 * gdb.texinfo: document these new commands.
4104 * NEWS: Mention these new commands.
4106 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4108 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4109 true for software watchpoints.
4111 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4115 2011-07-26 Tom Tromey <tromey@redhat.com>
4117 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4118 * dwarf2read.c (read_indirect_string_at_offset): New function.
4119 (read_indirect_string): Use it.
4120 (dwarf_decode_macro_bytes): New function, taken from
4121 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4122 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4123 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4125 (struct dwarf2_per_objfile) <macro>: New field.
4126 (dwarf2_elf_names): Add .debug_macro.
4127 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4128 (dwarf2_locate_sections): Handle new section.
4129 (read_file_scope): Handle DW_AT_GNU_macros.
4130 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4132 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4134 * NEWS: Mention dcache configuration.
4135 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4136 (dcache_size, dcache_line_size): New variables.
4137 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4138 (struct dcache_block): Make it expandable.
4139 (struct dcache_struct): New field.
4140 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4141 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4142 (dcache_poke_byte, dcache_print_line): Adjust.
4143 (set_dcache_size, set_dcache_line_size): New functions.
4144 (set_dcache_command, show_dcache_command): New functions.
4145 (_initialize_dcache): Add new commands.
4147 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4149 * progspace.h (struct program_space): Add solib_add_generation.
4150 * infcmd.c (post_create_inferior): Only call solib_add if not
4152 * solib.c (solib_add): Increment solib_add_generation.
4154 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4156 Fix implicit pointer offsets.
4157 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4160 2011-07-25 Tom Tromey <tromey@redhat.com>
4162 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4164 (ada_exception_sal): Make 'ops' const.
4165 (ada_decode_exception_location): Likewise.
4166 (ada_decode_assert_location): Likewise.
4167 (catch_assert_command): Update.
4168 (catch_ada_exception_command): Update.
4169 (create_ada_exception_catchpoint): Make 'ops' const.
4170 * breakpoint.c (set_raw_breakpoint_without_location)
4171 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4173 (create_internal_breakpoint): Update.
4174 (init_raw_breakpoint_without_location): Make 'ops' const.
4175 (init_raw_breakpoint, init_catchpoint)
4176 (create_fork_vfork_event_catchpoint)
4177 (create_syscall_event_catchpoint, init_breakpoint_sal)
4178 (create_breakpoint_sal, create_breakpoints_sal)
4179 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4180 * breakpoint.h (struct breakpoint) <ops>: Now const.
4181 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4184 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4186 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4188 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4190 * breakpoint.h (print_recreate_thread): Declare.
4191 (struct breakpoint): Move step_count, pass_count,
4192 number_on_target, static_trace_marker_id,
4193 static_trace_marker_id_idx ...
4194 (struct tracepoint): ... to this new struct.
4195 (get_tracepoint, get_tracepoint_by_number_on_target)
4196 (get_tracepoint_by_number): Change return type to struct
4198 * breakpoint.c (is_tracepoint_type): New, factored out from
4200 (is_tracepoint): Adjust.
4201 (print_one_breakpoint_location): Cast to struct tracepoint as
4202 necessary, and adjust.
4203 (print_recreate_catch_fork, print_recreate_catch_vfork)
4204 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4205 print_recreate_thread.
4206 (init_breakpoint_sal): New, factored out from
4207 create_breakpoint_sal.
4208 (create_breakpoint_sal): Reimplement.
4209 (create_breakpoint): Allocate a struct tracecepoint if the caller
4210 wanted a tracepoint. Use init_breakpoint_sal and
4212 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4213 (print_recreate_masked_watchpoint)
4214 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4215 (tracepoint_print_one_detail): Adjust.
4216 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4217 Dump the pass count here.
4218 (update_static_tracepoint): Adjust.
4219 (addr_string_to_sals): Adjust.
4220 (create_tracepoint_from_upload): Adjust. Change return type to
4221 struct tracepoint pointer.
4222 (trace_pass_set_count): Change parameter type to struct tracepoint
4223 pointer, and adjust.
4224 (trace_pass_command): Adjust.
4225 (get_tracepoint, get_tracepoint_by_number_on_target)
4226 (get_tracepoint_by_number): Change return type to struct
4227 tracepoint pointer, and adjust.
4228 (print_recreate_thread): New, factored out from save_breakpoints.
4229 (save_breakpoints): Don't print thread and task and passcount
4231 * remote.c (remote_download_tracepoint): Adjust.
4232 * tracepoint.c (trace_actions_command, validate_actionline)
4233 (start_tracing, tfind_1, trace_find_tracepoint_command)
4234 (trace_dump_command): Adjust.
4235 (find_matching_tracepoint): Change return type to struct
4236 tracepoint pointer, and adjust.
4237 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4238 (tfile_trace_find, tfile_fetch_registers): Adjust.
4239 * tracepoint.h (create_tracepoint_from_upload): Change return type
4240 to struct tracepoint pointer.
4241 * ada-lang.c (print_recreate_exception): Call
4242 print_recreate_thread.
4243 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4245 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4247 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4248 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4249 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4250 watchpoint_thread, watchpoint_triggered ...
4251 (struct watchpoint): ... to this new struct.
4252 (is_watchpoint): Declare.
4253 (install_breakpoint): Add new `internal' parameter.
4254 * breakpoint.c (is_watchpoint): Delete declaration.
4255 (set_breakpoint_condition): Handle watchpoints.
4256 (is_watchpoint): Make public.
4257 (watchpoint_in_thread_scope): Change parameter type to struct
4259 (watchpoint_del_at_next_stop): Change parameter type to struct
4260 watchpoint. Remove assertion. Adjust.
4261 (update_watchpoint): Ditto.
4262 (insert_breakpoints, breakpoint_init_inferior)
4263 (watchpoints_triggered, watchpoint_check)
4264 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4265 (bpstat_stop_status, print_one_breakpoint_location)
4266 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4267 to struct watchpoint as necessary, and adjust.
4268 (install_breakpoint): Add `internal' argument. If true, don't
4269 mention the new breakpoint. Use set_breakpoint_number.
4270 (create_fork_vfork_event_catchpoint)
4271 (create_syscall_event_catchpoint): Adjust.
4272 (dtor_watchpoint): New.
4273 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4274 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4275 (print_it_watchpoint, print_mention_watchpoint)
4276 (print_recreate_watchpoint, insert_masked_watchpoint)
4277 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4278 (print_one_detail_masked_watchpoint)
4279 (print_mention_masked_watchpoint)
4280 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4281 necessary, and adjust.
4282 (watch_command_1): Allocate and initialize a struct watchpoint
4283 instead of a struct breakpoint. Use install_breakpoint.
4284 (catch_exec_command_1): Adjust.
4285 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4287 (delete_breakpoint, enable_breakpoint_disp)
4288 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4289 as necessary, and adjust.
4290 (initialize_breakpoint_ops): Install dtor_watchpoint as
4291 watchpoints' dtor method.
4292 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4293 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4294 to struct watchpoint as necessary, and adjust.
4296 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4298 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4299 the the base class ops table.
4300 (catch_exception_breakpoint_ops)
4301 (catch_exception_unhandled_breakpoint_ops)
4302 (catch_assert_breakpoint_ops): Don't statically initialize.
4303 (initialize_ada_catchpoint_ops): New.
4304 (_initialize_ada_language): Call it.
4305 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4306 (bkpt_breakpoint_ops): Forward declare.
4307 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4308 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4309 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4310 (masked_watchpoint_breakpoint_ops)
4311 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4312 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4313 base class ops table.
4314 (null_re_set, null_check_status, null_works_in_software_mode)
4315 (null_resources_needed, null_print_one_detail): Delete.
4316 (bkpt_dtor): Rename to ...
4317 (base_breakpoint_dtor): ... this. Make static.
4318 (bkpt_allocate_location): Rename to ...
4319 (base_breakpoint_allocate_location): ... this. Make static.
4320 (base_breakpoint_re_set): New.
4321 (internal_error_pure_virtual_called): New.
4322 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4323 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4324 (base_breakpoint_works_in_software_mode)
4325 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4326 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4327 (base_breakpoint_print_recreate): New functions.
4328 (base_breakpoint_ops): New global.
4329 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4330 (bkpt_breakpoint_hit): Make static.
4331 (bkpt_check_status): Delete.
4332 (bkpt_resources_needed): Make static.
4333 (bkpt_works_in_software_mode): Delete.
4334 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4336 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4337 (momentary_breakpoint_ops): Don't statically initialize.
4338 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4340 (tracepoint_insert_location, tracepoint_remove_location)
4341 (tracepoint_check_status, tracepoint_works_in_software_mode)
4342 (tracepoint_print_it): Delete.
4343 (tracepoint_breakpoint_ops): Don't statically initialize.
4344 (initialize_breakpoint_ops): New.
4345 (_initialize_breakpoint): Call it.
4346 * breakpoint.h (null_re_set, null_works_in_software_mode)
4347 (null_resources_needed, null_check_status, null_print_one_detail):
4348 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4349 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4350 (bkpt_check_status, bkpt_resources_needed)
4351 (bkpt_works_in_software_mode, bkpt_print_it)
4352 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4353 Delete declarations.
4354 (initialize_breakpoint_ops): Declare.
4356 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4358 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4359 (momentary_bkpt_print_it): Simplify.
4361 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4363 Split internal, momentary and user breakpoints breakpoint_ops
4366 * breakpoint.c (internal_breakpoint_ops)
4367 (momentary_breakpoint_ops): Forward declare.
4368 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4369 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4370 (create_overlay_event_breakpoint)
4371 (create_std_terminate_master_breakpoint)
4372 (create_exception_master_breakpoint): Create breakpoints with
4373 internal_breakpoint_ops vtable.
4374 (set_longjmp_breakpoint): Create momentary breakpoints with
4375 momentary_breakpoint_ops vtable, using
4376 momentary_breakpoint_from_master.
4377 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4378 (create_solib_event_breakpoint): Create breakpoints with
4379 internal_breakpoint_ops vtable.
4380 (set_momentary_breakpoint): Create breakpoints with
4381 momentary_breakpoint_ops vtable.
4382 (momentary_breakpoint_from_master): New, factored out from
4383 clone_momentary_breakpoint.
4384 (clone_momentary_breakpoint): Adjust.
4385 (watch_command_1): Create scope breakpoints with
4386 momentary_breakpoint_ops vtable.
4387 (bkpt_re_set): Remove handling of internal and momentary
4389 (bkpt_print_mention, bkpt_print_recreate): New.
4390 (bkpt_breakpoint_ops): Adjust.
4391 (internal_bkpt_re_set, internal_bkpt_check_status)
4392 (internal_bkpt_print_it, internal_bkpt_print_mention)
4393 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4394 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4395 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4396 (momentary_bkpt_print_recreate): New.
4397 (momentary_breakpoint_ops): New.
4399 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4401 Implement most breakpoint_ops methods for all breakpoint types,
4402 and move the default handlings to the proper callbacks.
4404 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4405 works_in_software_mode method.
4406 (insert_bp_location): Go through breakpoint_ops->insert_location
4407 for software and hardware watchpoints.
4408 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4410 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4411 for software and hardware watchpoints.
4412 (print_it_typical): Delete.
4413 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4415 (watchpoint_check): Adjust comment.
4416 (bpstat_check_location): Simply always call the breakpoint's
4417 breakpoint_hit method.
4418 (bpstat_stop_status): Always call the breakpoint's check_status
4419 method. Remove special cases for watchpoints and internal event
4420 breakpoints from here (moved to the check_status implementations).
4421 (print_one_breakpoint_location): Assume b->ops is never NULL.
4422 Remove static tracepoint marker id printing from here (moved to
4423 the print_one_detail callback implementation of tracepoints).
4424 (init_bp_location): Assert OPS is never NULL.
4425 (allocate_bp_location): Always call the breakpoint's
4426 allocate_location method, and remove the default code from here.
4427 (free_bp_location): Always call the location's dtor method, and
4428 remove the default code from here.
4429 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4430 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4431 parameter. Pass it down.
4432 (set_raw_breakpoint): Ditto.
4433 (print_it_catch_fork): Adjust to take a bpstat as argument.
4434 (catch_fork_breakpoint_ops): Install methods.
4435 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4436 (catch_vfork_breakpoint_ops): Install methods.
4437 (dtor_catch_syscall): Call the base dtor.
4438 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4439 (catch_syscall_breakpoint_ops): Install methods.
4440 (dtor_catch_exec): Call the base dtor.
4441 (print_it_catch_exec): Adjust to take a bpstat as argument.
4442 (catch_exec_breakpoint_ops): Install methods.
4443 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4444 the breakpoint's resources_needed method, and remove the default
4446 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4448 (clone_momentary_breakpoint): Clone the original's ops.
4449 (mention): Always call the breakpoint's print_mention method, and
4450 remove the default code from here.
4451 (create_breakpoint_sal): Adjust to pass the ops to
4452 set_raw_breakpoint rather than setting it manually.
4453 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4454 ops to set_raw_breakpoint_without_location rather than setting it
4456 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4457 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4458 (ranged_breakpoint_ops): Install methods.
4459 (break_range_command): Adjust to pass the ops to
4460 set_raw_breakpoint rather than setting it manually.
4461 (re_set_watchpoint, breakpoint_hit_watchpoint)
4462 (check_status_watchpoint, resources_needed_watchpoint)
4463 (works_in_software_mode_watchpoint, print_it_watchpoint)
4464 (print_mention_watchpoint, print_recreate_watchpoint): New
4466 (watchpoint_breakpoint_ops): Install new methods.
4467 (print_it_masked_watchpoint): New function.
4468 (masked_watchpoint_breakpoint_ops): Install new methods.
4469 (watch_command_1): Adjust to pass the right breakpoint_ops to
4470 set_raw_breakpoint_without_location rather than setting it
4471 manually later. Record the current pspace.
4472 (print_it_exception_catchpoint): Adjust to take a bpstat as
4474 (gnu_v3_exception_catchpoint_ops): Install new methods.
4475 (say_where): New function.
4476 (null_re_set, null_check_status, null_works_in_software_mode)
4477 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4479 (bp_location_ops): New global.
4480 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4481 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4482 (bkpt_check_status, bkpt_resources_needed)
4483 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4484 (bkpt_print_recreate): New functions.
4485 (bkpt_breakpoint_ops): New global.
4486 (tracepoint_re_set, tracepoint_insert_location)
4487 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4488 (tracepoint_check_status, tracepoint_works_in_software_mode)
4489 (tracepoint_print_it, tracepoint_print_one_detail)
4490 (tracepoint_print_mention, tracepoint_print_recreate): New
4492 (tracepoint_breakpoint_ops): New global.
4493 (delete_breakpoint): Always call the breakpoint's dtor method, and
4494 remove the default handling from here.
4495 (breakpoint_re_set_default): Make static.
4496 (breakpoint_re_set_one): Always call the breakpoints re_set
4497 method, and remove the default handling from here.
4498 (trace_command, ftrace_command, strace_command)
4499 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4500 to create_breakpoint.
4501 (save_breakpoints): Always call the breakpoint's print_recreate
4502 method, and remove the default handling from here.
4504 * ada-lang.c (dtor_exception): Call the base dtor.
4505 (re_set_exception): Call the base method.
4506 (print_it_exception, print_it_catch_exception): Adjust to take a
4508 (catch_exception_breakpoint_ops): Install methods.
4509 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4511 (catch_exception_unhandled_breakpoint_ops): Install methods.
4512 (print_it_catch_assert): Adjust to take a bpstat as argument.
4513 (catch_assert_breakpoint_ops): Install methods.
4515 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4516 to take a bpstat as argument.
4517 (enum print_stop_action): Add describing comments to each enum
4519 (breakpoint_re_set_default): Delete declaration.
4520 (null_re_set, null_works_in_software_mode, null_resources_needed)
4521 (null_check_status, null_print_one_detail): Declare.
4522 (bkpt_breakpoint_ops): Declare.
4523 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4524 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4525 (bkpt_check_status, bkpt_resources_needed)
4526 (bkpt_works_in_software_mode, bkpt_print_it)
4527 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4530 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4531 bkpt_breakpoint_ops.
4532 * python/py-breakpoint.c (bppy_init): Ditto.
4534 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4536 * MAINTAINERS (Write After Approval): Add myself to the list.
4538 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4540 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4542 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4544 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4545 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4546 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4548 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4549 (struct i386_debug_reg_state): New.
4550 (i386_init_dregs): New.
4552 (i386_cleanup_dregs): Use i386_init_dregs.
4553 (i386_show_dr): Add state parameter and adjust.
4554 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4556 (i386_remove_aligned_watchpoint): Likewise.
4557 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4558 (i386_update_inferior_debug_regs): New.
4559 (i386_insert_watchpoint): Work on a local mirror of the debug
4560 registers, and only update the inferior on success.
4561 (i386_remove_watchpoint): Ditto.
4562 (i386_region_ok_for_watchpoint): Adjust.
4563 (i386_stopped_data_address): Adjust.
4564 (i386_insert_hw_breakpoint): Adjust.
4565 (i386_remove_hw_breakpoint): Adjust.
4567 2011-07-22 Tom Tromey <tromey@redhat.com>
4569 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4570 from amd64_pseudo_register_read. Change arguments. Call
4571 mark_value_bytes_unavailable when needed.
4572 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4573 set_gdbarch_pseudo_register_read.
4574 * sentinel-frame.c (sentinel_frame_prev_register): Use
4575 regcache_cooked_read_value.
4576 * regcache.h (regcache_cooked_read_value): Declare.
4577 * regcache.c (regcache_cooked_read_value): New function.
4578 (regcache_cooked_read): Call
4579 gdbarch_pseudo_register_read_value if available.
4580 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4581 (i386_pseudo_register_read): Remove.
4582 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4583 i386_pseudo_register_read. Change arguments. Call
4584 mark_value_bytes_unavailable when needed.
4585 (i386_pseudo_register_read_value): New function.
4586 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4587 not set_gdbarch_pseudo_register_read.
4588 * gdbarch.sh (pseudo_register_read_value): New method.
4589 * gdbarch.c, gdbarch.h: Rebuild.
4590 * findvar.c (value_from_register): Call get_frame_register_value.
4592 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4594 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4596 (display_gdb_prompt): Likewise.
4597 (change_annotation_level): Likewise.
4598 (push_prompt): Likewise.
4599 (pop_prompt): Likewise.
4600 (handle_stop_sig): Use get_prompt with a level.
4601 * top.c (command_loop): Use get_prompt with a level.
4602 (set_async_annotation_level): Use set_prompt with a level.
4603 (get_prefix): New function.
4604 (set_prefix): Ditto.
4605 (set_suffix): Ditto.
4606 (get_suffix): Ditto.
4607 (get_prompt): Accept a level argument.
4608 (set_prompt): Accept a level argument. Free old prompts. Set
4609 new_async_prompt if level is 0.
4610 (init_main): Use set_prompt with a level. Do not set
4612 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4613 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4614 Modify set_prompt, get_prompt to account for levels.
4615 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4617 * python/python.c (before_prompt_hook): Use set_prompt.
4619 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4621 * defs.h: Add guard against inclusion in gdbserver.
4622 (struct ptid, ptid_t): Move to common/ptid.h.
4623 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4624 xsnprintf, internal_error): Move to common/common-utils.h.
4626 * gdb_assert.h: Move into common/ sub-directory.
4627 * gdb_locale.h: Ditto.
4628 * gdb_dirent.h: Ditto.
4629 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4630 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4631 Move into common/ptid.h.
4632 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4633 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4634 Change nomem to malloc_failure.
4635 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4636 * utils.c (nomem): Rename to malloc_failure.
4637 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4638 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4639 (gdb_buildargv): Change nomem to malloc_failure.
4640 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4641 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4642 ptid_is_pid): Move into common/ptid.c.
4643 (initialize_infrun): Delete initialization of null_ptid and
4645 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4646 linux_common_xfer_osdata.
4647 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4648 common/ptid.c and common/buffer.c.
4649 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4650 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4651 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4652 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4654 * common/gdb_assert.h: New.
4655 * common/gdb_dirent.h: New.
4656 * common/gdb_locale.h: New.
4657 * common/buffer.c: New.
4658 * common/buffer.h: New.
4659 * common/ptid.c: New.
4660 * common/ptid.h: New.
4661 * common/xml-utils.c: New.
4662 * common/xml-utils.h: New.
4663 * common/common-utils.c: New.
4664 * common/common-utils.h: New.
4665 * common/linux-osdata.c: New.
4666 * common/linux-osdata.h: New.
4667 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4668 * config/arm/linux.mh (NATDEPFILES): Ditto.
4669 * config/i386/linux.mh (NATDEPFILES): Ditto.
4670 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4671 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4672 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4673 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4674 * config/mips/linux.mh (NATDEPFILES): Ditto.
4675 * config/pa/linux.mh (NATDEPFILES): Ditto.
4676 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4677 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4678 * config/s390/s390.mh (NATDEPFILES): Ditto.
4679 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4680 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4681 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4683 2011-07-21 Matt Rice <ratmice@gmail.com>
4685 * NEWS: Add info macros and info definitions commands.
4687 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4689 * NEWS: Document Python prompt substitution hook.
4691 2011-07-18 Matt Rice <ratmice@gmail.com>
4694 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4695 * macrotab.c (foreach_macro): Ditto.
4696 (foreach_macro_in_scope): Ditto.
4697 * macrocmd.c (print_macro_callback): New function.
4698 (info_macro_command): Move some code to print_macro_definition.
4699 (print_macro_definition): New function.
4700 (print_one_macro): Add new arguments to callback.
4701 (info_definitions_command): New function.
4702 (info_macros_command): Ditto.
4703 (_initialize_macrocmd): Add info macros and info definitions commands.
4704 * symtab.c (add_macro_name): Add new arguments to callback.
4706 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4707 Tom Tromey <tromey@redhat.com>
4709 * top.c (set_prompt): Rewrite to free previous prompt, free
4710 asynch_new_prompt and set both on new prompts.
4711 * event-top.c (display_gdb_prompt): Add prompt substitution
4713 * python/python.c (before_prompt_hook): New function.
4715 2011-07-20 Matt Rice <ratmice@gmail.com>
4717 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4718 arguments to store_unsigned_integer.
4720 2011-07-20 Tom Tromey <tromey@redhat.com>
4722 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4723 in some declaration-only cases.
4725 2011-07-18 Tom Tromey <tromey@redhat.com>
4728 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4729 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4730 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4731 <debug_type_section>: New field.
4732 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4733 (load_cu): Use appropriate section.
4734 (create_signatured_type_table_from_index): Add 'section'
4736 (dwarf2_read_index): Only allow a single .debug_types section.
4737 (dw2_get_file_names): Use appropriate section.
4738 (read_type_comp_unit_head): Add 'section' argument.
4739 (create_debug_types_hash_table): Loop over all .debug_types
4741 (init_cu_die_reader): Use appropriate section.
4742 (process_psymtab_comp_unit, load_partial_comp_unit)
4743 (load_full_comp_unit, read_die_and_children, find_partial_die)
4744 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4745 (lookup_signatured_type_at_offset): Add 'section' argument.
4746 (read_signatured_type_at_offset): Add 'sect' argument.
4747 (read_signatured_type): Use appropriate section.
4748 (set_die_type, get_die_type_at_offset): Update.
4749 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4751 (write_psymtabs_to_index): Don't allow index with more than one
4752 .debug_types section.
4754 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4756 Fix crash if referenced CU is aged out.
4757 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4758 xfree of block.data.
4759 (indirect_pieced_value): New variable back_to, use to for xfree of
4761 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4763 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4764 (load_cu): New function from ...
4765 (dw2_do_instantiate_symtab): ... the code here ...
4766 (process_full_comp_unit): ... and here.
4767 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4770 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4775 2011-07-19 Gary Benson <gbenson@redhat.com>
4777 * infrun.c (struct execution_control_state): New member
4778 stop_func_filled_in.
4779 (clear_stop_func, fill_in_stop_func): New functions.
4780 (handle_inferior_event): Call clear_stop_func rather than
4781 manipulating the execution control state directly.
4782 Call fill_in_stop_func lazily as required rather than
4783 directly calling find_pc_partial_function in all cases.
4785 2011-07-18 Tom Tromey <tromey@redhat.com>
4787 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4788 checking for variable-sized array.
4790 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4792 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4793 of supported languages.
4794 * varobj.c: Add top definitions and basic implementation of the
4795 following callbacks: ada_number_of_children, ada_name_of_variable,
4796 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4797 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4798 (languages): Register Ada-specific callbacks.
4799 (variable_language): Add the Ada case in the language setter switch.
4801 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4803 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4805 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4808 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4809 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4810 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4811 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4812 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4813 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4814 (struct dwarf_expr_context_funcs): New, move here methods from ...
4815 (struct dwarf_expr_context): ... here. New fields funcs.
4816 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4817 (dwarf_expr_ctx_funcs): New.
4818 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4819 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4820 (needs_frame_ctx_funcs): New.
4821 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4823 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4825 * MAINTAINERS (Write After Approval): Add myself to the list.
4827 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4829 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4830 that CIE pointer of an FDE really points to a CIE .
4832 2011-07-15 Hui Zhu <teawater@gmail.com>
4834 * remote.c (remote_get_trace_status): Add comments.
4836 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 Code cleanup - constify struct lval_funcs.
4839 * dwarf2loc.c (pieced_value_funcs): Make it const.
4840 * infrun.c (siginfo_value_funcs): Likewise.
4841 * opencl-lang.c (opencl_value_funcs): Likewise.
4842 * valops.c (value_assign, value_ind): Make the funcs variable const.
4843 * value.c (struct value): Make location.computed.funcs target const.
4844 Rearrange the comments.
4845 (allocate_computed_value): Make the funcs parameter target const.
4846 (value_computed_funcs): Return the funcs target const.
4847 (value_free, value_copy, set_value_component_location): Make the funcs
4849 * value.h (allocate_computed_value): Make the funcs parameter target
4851 (value_computed_funcs): Return the funcs target const.
4852 * windows-tdep.c (tlb_value_funcs): Make it const.
4854 2011-07-14 Hui Zhu <teawater@gmail.com>
4856 * remote.c (remote_get_trace_status): Initialize p.
4858 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4861 * remote.c (remote_get_trace_status): New variable ex. Put
4862 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4864 2011-07-13 Tom Tromey <tromey@redhat.com>
4866 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4867 value_from_contents for final conversion.
4869 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4873 Indent prototypes so they do not get into tags.
4875 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4877 Code cleanup making also optimized out values lazy.
4878 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4879 allocate_optimized_out_value. Twice.
4880 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4881 * findvar.c (read_var_value): Likewise.
4882 * value.c (allocate_optimized_out_value): New function.
4883 * value.h (allocate_optimized_out_value): New declaration.
4885 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4887 Fix occasional crash of CTRL-C during DWARF read in.
4888 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4890 2011-07-11 Tom Tromey <tromey@redhat.com>
4892 * regcache.c (struct regcache_descr): Fix typo.
4893 * i387-tdep.c (i387_supply_xsave): Fix typo.
4895 2011-07-11 Tom Tromey <tromey@redhat.com>
4897 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4898 (read_file_scope, read_type_unit_scope): Use it.
4900 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4902 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4905 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4908 * python/python.c: Set gdbpy_should_print_stack default to off.
4909 (set_python): Deprecate maint set python print-stack to
4911 (_initialize_python): Deprecate maint set/show python print-stack.
4912 Add new prefix command, python. Add new setting, print-backtrace.
4913 * NEWS: Document set python print-stack. Document default change.
4915 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4917 * python/py-inferior.c (infpy_dealloc): New function.
4918 (inferior_to_inferior_object): Return a new object, or a
4919 new reference to the existing object.
4920 (find_thread_object): Cleanup references to inferior.
4921 (delete_thread_object): Ditto.
4922 * python/py-infthread.c (create_thread_object): Do not increment
4923 inferior reference count.
4925 2011-07-08 Tom Tromey <tromey@redhat.com>
4927 * dwarf2loc.c (locexpr_regname): New function.
4928 (locexpr_describe_location_piece): Use it.
4929 (disassemble_dwarf_expression): Add per_cu argument. Use
4931 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4932 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4934 (locexpr_describe_location_1): Add per_cu argument.
4935 (locexpr_describe_location): Update.
4936 (loclist_describe_location): Update.
4938 2011-07-08 Tom Tromey <tromey@redhat.com>
4940 * dwarf2expr.c (execute_stack_op): Add QUIT.
4942 2011-07-07 Hui Zhu <teawater@gmail.com>
4945 2011-07-06 Hui Zhu <teawater@gmail.com>
4946 * remote.c (remote_start_remote): Add TRY_CATCH for
4947 remote_get_trace_status.
4948 * tracepoint.c (disconnect_tracing): Ditto.
4950 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4952 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4953 variables as signed, not unsigned.
4955 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4957 * jit.c (jit_inferior_init): Reformat forward declaration.
4959 2011-07-06 Matt Rice <ratmice@gmail.com>
4961 * MAINTAINERS (Write After Approval): Add myself to the list.
4963 2011-07-06 Hui Zhu <teawater@gmail.com>
4965 * remote.c (remote_start_remote): Add TRY_CATCH for
4966 remote_get_trace_status.
4967 * tracepoint.c (disconnect_tracing): Ditto.
4969 2011-07-05 Tom Tromey <tromey@redhat.com>
4971 * symtab.c (operator_chars): Now static.
4972 * linespec.c (operator_chars): Don't declare.
4974 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4976 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4978 2011-07-05 Tom Tromey <tromey@redhat.com>
4980 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4981 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4982 (TYPE_CPLUS_REALLY_JAVA): New macro.
4983 * dwarf2read.c (process_structure_scope): Set
4984 TYPE_CPLUS_REALLY_JAVA.
4986 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4988 * ada-lang.c: Fix typos.
4989 * amd64-tdep.c: Likewise.
4990 * breakpoint.c: Likewise.
4991 * cli/cli-decode.c: Likewise.
4992 * findcmd.c: Likewise.
4993 * inline-frame.c: Likewise.
4994 * mi/mi-main.c: Likewise.
4995 * minsyms.c: Likewise.
4996 * monitor.c: Likewise.
4997 * monitor.h: Likewise.
4998 * prologue-value.c: Likewise.
4999 * reverse.c: Likewise.
5000 * s390-tdep.c: Likewise.
5002 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5004 * jit.c (jit_inferior_init): Forward declare.
5005 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5007 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5009 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5011 2011-07-04 Tristan Gingold <gingold@adacore.com>
5013 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5014 (tcb_fieldno): Add activation_link field.
5015 (get_known_tasks_addr): Moved and rewritten.
5016 (get_tcb_types_info): Set activation_link field.
5017 (read_known_tasks_array): Add parameter. Rewritten.
5018 (read_known_tasks_list): New function.
5019 (read_known_tasks): New function.
5020 (ada_build_task_list): Call read_known_tasks instead of
5021 read_known_tasks_array.
5022 * ravenscar-thread.c: Add first_task_name constant.
5023 (has_ravenscar_runtime): Check for task list too.
5025 2011-07-04 Tristan Gingold <gingold@adacore.com>
5027 * ada-tasks.c: Renames fieldno to actb_fieldno.
5028 (ada_get_task_number): Indentation.
5029 (get_tcb_types_info): Remove all parameters. Write directly
5031 (ptid_from_atcb_common): Adjust.
5032 (read_atcb): Adjust.
5034 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5036 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5038 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5040 * ui-out.c (ui_out_field_core_addr): Mention that the function
5041 description is in the header file.
5042 * ui-out.h (ui_out_field_core_addr): Document function.
5044 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5046 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5047 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5049 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5051 * symtab.c (expand_line_sal): Remove empty line.
5053 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5055 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5056 same way as ELFOSABI_NONE.
5057 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5059 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5061 * breakpoint.c: Fix typos in comments.
5062 * linespec.c: Likewise.
5063 * symtab.c: Likewise.
5065 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5067 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5068 section in separate object files.
5070 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5072 Fix false GCC warning.
5073 * linespec.c (decode_line_1): Initialize values.
5075 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5077 * linespec.c (find_method): Accept the function type automatically only
5078 if it was specified with parameter types.
5080 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5082 Stop on first linespec terminator instead of eating what we can.
5083 * linespec.c (is_linespec_boundary): New function.
5084 (name_end): Remove function.
5085 (keep_name_info): New parameter on_boundary, replace the body.
5086 (decode_line_1): Provide the parameter to keep_name_info.
5087 (decode_compound): Likewise. Drop the trailing java return type
5090 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5092 Fall back linespec to minimal symbols.
5093 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5094 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5095 (find_method, symbol_found): Change error to cplusplus_error.
5097 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5099 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5101 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5102 Tom Tromey <tromey@redhat.com>
5104 * dwarf2read.c (check_physname): New variable.
5105 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5106 (show_check_physname): New function.
5107 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5109 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5111 * machoread.c (macho_symfile_read): Delete OBE comment.
5113 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5115 * machoread.c (struct macho_oso_data): Delete.
5116 (current_oso): Delete.
5117 (macho_relocate_common_syms): New function, mostly extracted
5119 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5120 Remove code that sets and unset current_oso.
5121 (macho_symfile_relocate): Delete handling of common symbols,
5122 now moved to macho_relocate_common_syms.
5124 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5126 * darwin-nat.c (darwin_ptrace): Add documentation.
5127 Set errno to zero before calling ptrace. If ptrace returns
5128 -1 and errno is zero, then change then return zero.
5129 (darwin_kill_inferior): Issue a warning instead of triggering
5130 a failed assertion when the PT_KILL ptrace operations returned
5133 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5135 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5136 only when inf->private->no_ptrace.
5138 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5140 * ada-lang.c (print_it_exception): Print temporary catchpoints
5141 as "Temporary catchpoint".
5142 (print_mention_exception): Likewise.
5144 2011-07-01 Tom Tromey <tromey@redhat.com>
5146 * jv-lang.c (java_language_defn): Use java_printchar,
5148 (java_get_encoding): New function.
5149 (java_emit_char): Use generic_emit_char.
5150 (java_printchar): New function.
5151 (java_printstr): Likewise.
5153 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5155 * ada-typeprint.c (print_record_type): If unable to decode
5156 the name of the parent type, use the encoded name.
5158 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5160 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5161 pointer to constrained packed array type output.
5162 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5163 packed array output.
5165 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5167 * ada-typeprint.c (print_array_type): removed if condition on show
5168 being negative for bounds printing.
5170 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5172 * ada-lang.c (ada_identical_enum_types_p): New function.
5173 (symbols_are_identical_enums): New function.
5174 (remove_extra_symbols): Do nothing if NSYMS < 2.
5175 Use symbols_are_identical_enums.
5177 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5179 * ada-valprint.c (ada_value_print): Handle typedefs.
5181 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5183 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5185 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5187 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5188 (decode_constrained_packed_array): Likewise.
5189 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5191 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5193 * ada-exp.y (convert_char_literal): Handle typedef types.
5195 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5197 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5199 2011-06-30 Tom Tromey <tromey@redhat.com>
5201 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5202 * valops.c (find_overload_match): Call do_cleanups on early exit
5204 * solib.c (solib_find): Call do_cleanups on early exit path.
5206 2011-06-30 Tom Tromey <tromey@redhat.com>
5208 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5209 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5210 return paths. Defer final do_cleanups until last return.
5211 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5214 2011-06-30 Tom Tromey <tromey@redhat.com>
5216 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5218 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5220 * MAINTAINERS (Write After Approval): Add myself to the list.
5222 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5224 Disable epilogue unwinders on recent GCCs.
5225 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5226 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5227 * dwarf2read.c (process_full_comp_unit): Initialize
5228 EPILOGUE_UNWIND_VALID.
5229 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5230 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5231 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5233 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5235 Code cleanup - reformatting.
5236 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5237 (producer_is_gcc_ge_4): ... here, change the return value.
5238 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5241 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5243 Fix non-only rename list for Fortran modules import.
5244 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5245 cp_add_using_directive caller.
5246 (cp_add_using_directive): New parameter excludes, describe it. New
5247 variables ix and param. Compare if also excludes match. Allocate NEW
5248 with variable size, initialize EXCLUDES there.
5249 (cp_lookup_symbol_imports): New variable excludep, test
5250 current->EXCLUDES with it.
5251 * cp-support.h: Include vec.h.
5252 (struct using_direct): New field excludes, describe it.
5253 (DEF_VEC_P (const_char_ptr)): New.
5254 (cp_add_using_directive): New parameter excludes.
5255 * defs.h (const_char_ptr): New typedef.
5256 * dwarf2read.c (read_import_statement): New variables child_die,
5257 excludes and cleanups, read in excludes.
5258 (read_namespace): Adjust the cp_add_using_directive caller.
5260 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5263 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5264 negative comparisons.
5266 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5268 * mi/mi-main.c (mi_cmd_list_features): Emit
5269 breakpoint-notifications.
5271 2011-06-29 Tom Tromey <tromey@redhat.com>
5274 * valprint.h (generic_emit_char, generic_printstr): Declare.
5275 * valprint.c (wchar_printable, append_string_as_wide)
5276 (print_wchar): Move from c-lang.c.
5277 (generic_emit_char): New function; mostly taken from c_emit_char.
5278 (generic_printstr): New function; mostly taken from c_printstr.
5279 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5280 represented as arrays.
5281 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5283 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5284 identically to TYPE_CODE_INT.
5285 * f-lang.c (f_get_encoding): New function.
5286 (f_emit_char): Use generic_emit_char.
5287 (f_printchar): Replace comment.
5288 (f_printstr): Use generic_printstr.
5289 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5290 "character" types specially.
5291 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5293 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5295 (c_emit_char): Call generic_emit_char.
5296 (c_printstr): Call generic_printstr.
5298 2011-06-29 Gary Benson <gbenson@redhat.com>
5300 * breakpoint.c (bpstat_what): Removed duplicated case.
5302 2011-06-28 Tom Tromey <tromey@redhat.com>
5304 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5306 2011-06-27 Tom Tromey <tromey@redhat.com>
5308 * valops.c (find_overload_match): Call do_cleanups before early
5310 * top.c (execute_command): Call do_cleanups before early return.
5311 (command_loop): Likewise.
5312 * stack.c (backtrace_command): Make a null cleanup early. Don't
5313 conditionally call do_cleanups.
5314 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5316 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5317 so cleanups are always run.
5318 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5319 * findcmd.c (parse_find_args): Call do_cleanups on early return
5321 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5322 Don't conditionally call do_cleanups.
5323 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5326 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5328 * MAINTAINERS (Write After Approval): Use default email address.
5330 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5332 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5334 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5336 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5337 saved_regs_mask and copied_regs_mask fields.
5338 (sparc_record_save_insn): New prototype.
5339 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5340 (sparc_record_save_insn): New function.
5341 (sparc_analyze_prologue): Add head comment. Recognize store insns
5342 of call-saved registers. Use OFFSET consistently. Recognize flat
5343 frames and cache their settings.
5344 (sparc32_skip_prologue): Handle flat frames.
5345 (sparc_frame_cache): Add frame_offset to the base address.
5346 (sparc32_frame_cache): Adjust to new frame description.
5347 (sparc32_frame_prev_register): Likewise.
5348 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5349 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5350 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5351 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5352 frame by calling sparc_record_save_insn.
5353 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5354 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5355 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5357 2011-06-27 Tristan Gingold <gingold@adacore.com>
5359 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5360 field by map_addr and map_len.
5361 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5362 (munmap_section_buffer): Likewise.
5364 2011-06-24 Tom Tromey <tromey@redhat.com>
5366 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5367 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5368 * python/python.c (gdbpy_parameter): Make 'arg' const.
5369 (execute_gdb_command): Likewise.
5370 (gdbpy_decode_line): Likewise. Copy it.
5371 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5372 (gdbpy_write): Make 'arg' const.
5373 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5375 (gdbpy_lookup_type): Likewise.
5376 * python/py-prettyprint.c (print_children): Make 'name' const.
5377 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5378 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5380 * python/py-function.c (fnpy_init): Make 'name' const.
5381 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5382 (gdbpy_string_to_argv): Make 'input' const.
5383 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5385 * gdbtypes.h (lookup_typename): Update.
5386 * gdbtypes.c (lookup_typename): Make 'name' const.
5387 (lookup_struct): Likewise.
5388 (lookup_union): Likewise.
5389 (lookup_enum): Likewise.
5391 2011-06-24 Tom Tromey <tromey@redhat.com>
5393 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5394 gdb_thread_db.h. Move all common/ entries to be together.
5395 (TAGS): Don't depend on DEPFILES.
5397 2011-06-23 Yao Qi <yao@codesourcery.com>
5399 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5400 * remote.c (remote_start_remote): ... here.
5401 * monitor.c (monitor_open): ... here.
5403 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5405 * gdbtypes.c (append_composite_type_field_aligned): Fix
5406 calculation of bit position based on alignment.
5408 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5410 * breakpoint.c (bpstat_stop_status): Call the check_status
5411 breakpoint_ops method.
5412 (print_one_breakpoint_location): Also print the condition for Ada
5413 exception catchpoints.
5414 (allocate_bp_location): New, factored out from
5415 allocate_bp_location.
5416 (allocate_bp_location): Adjust. Call the owner breakpoint's
5417 allocate_location method, if there is one.
5418 (free_bp_location): Call the locations's dtor method, if there is
5420 (init_raw_breakpoint_without_location): New breakpoint_ops
5422 (set_raw_breakpoint_without_location): Adjust.
5423 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5424 (set_raw_breakpoint): Adjust.
5425 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5426 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5427 re_set and check_status methods.
5428 (init_catchpoint): Don't memset, initialize thread, addr_string
5429 and enable_state. Pass the ops down to init_raw_breakpoint.
5430 (install_catchpoint): Rename to ...
5431 (install_breakpoint): ... this, and make extern.
5432 (create_fork_vfork_event_catchpoint): Adjust.
5433 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5434 re_set and check_status methods.
5435 (create_syscall_event_catchpoint): Adjust.
5436 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5437 (masked_watchpoint_breakpoint_ops): Install NULL
5438 allocate_location, re_set and check_status methods.
5439 (catch_exec_command_1): Adjust.
5440 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5441 re_set and check_status methods.
5442 (create_ada_exception_breakpoint): Rename to ...
5443 (init_ada_exception_breakpoint): ... this. Add a struct
5444 breakpoint parameter, and delete the exp_string, cond_string and
5445 cond parameters. Use init_raw_breakpoint, and don't install or
5446 mention the breakpoint yet. Don't clear breakpoint fields that
5447 init_raw_breakpoint already clears.
5448 (re_set_breakpoint): Delete, split into ...
5449 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5451 (breakpoint_re_set_one): Call the breakpoint's
5452 breakpoint_ops->re_set implementation, if there's one. Adjust.
5453 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5454 (struct bp_location_ops): New type.
5455 (struct bp_location): New field `ops'.
5456 (struct breakpoint_ops): New `allocate_location', `re_set' and
5457 `check_status' fields. Make `breakpoint_hit''s description match
5459 (init_bp_location): Declare.
5460 (breakpoint_re_set_default): Declare.
5461 (create_ada_exception_breakpoint): Rename to ...
5462 (init_ada_exception_breakpoint): ... this. Add a struct
5463 breakpoint parameter, and delete the exp_string, cond_string and
5465 (install_breakpoint): Declare.
5466 * ada-lang.c: Include exceptions.h.
5467 <Ada exceptions description>: Update.
5468 (struct ada_catchpoint_location): New type.
5469 (ada_catchpoint_location_dtor): New function.
5470 (ada_catchpoint_location_ops): New global.
5471 (ada_catchpoint): New type.
5472 (create_excep_cond_exprs): New function.
5473 (dtor_exception, allocate_location_exception, re_set_exception)
5474 (should_stop_exception, check_status_exception): New functions.
5475 (print_one_exception, print_mention_exception)
5476 (print_recreate_exception): Adjust.
5477 (dtor_catch_exception, allocate_location_catch_exception)
5478 (re_set_catch_exception, check_status_catch_exception): New
5480 (catch_exception_breakpoint_ops): Install them.
5481 (dtor_catch_exception_unhandled)
5482 (allocate_location_catch_exception_unhandled)
5483 (re_set_catch_exception_unhandled)
5484 (check_status_catch_exception_unhandled): New functions.
5485 (catch_exception_unhandled_breakpoint_ops): Install them.
5486 (dtor_catch_assert, allocate_location_catch_assert)
5487 (re_set_catch_assert, check_status_catch_assert): New functions.
5488 (catch_assert_breakpoint_ops): Install them.
5489 (ada_exception_catchpoint_p): Delete.
5490 (catch_ada_exception_command_split)
5491 (ada_exception_catchpoint_cond_string): Rename exp_string
5492 parameter to excep_string. Adjust.
5493 (ada_parse_catchpoint_condition): Delete.
5494 (ada_exception_sal): Rename the exp_string parameter to
5495 excep_string. Delete the cond_string and cond parameters.
5497 (ada_decode_exception_location): Rename the exp_string parameter
5498 to excep_string. Delete the cond_string and cond parameters.
5500 (create_ada_exception_catchpoint): New function.
5501 (catch_ada_exception_command, ada_decode_assert_location)
5502 (catch_assert_command): Adjust.
5503 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5505 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5507 * ada-lang.c: Include arch-utils.h.
5508 (ada_decode_exception_location): Make static.
5509 (catch_ada_exception_command): Moved here from breakpoint.c.
5510 (ada_decode_assert_location): Make static.
5511 (catch_assert_command): Moved here from breakpoint.c.
5512 (_initialize_ada_lang): Install the exception and assert
5513 catchpoint commands here.
5514 * ada-lang.h (ada_decode_exception_location)
5515 (ada_decode_assert_location): Delete declarations.
5516 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5518 (create_ada_exception_breakpoint): Make extern.
5519 (catch_ada_exception_command, catch_assert_command): Moved to
5521 (add_catch_command): Make extern.
5522 (_initilize_breakpoint): Don't install the exception and assert
5523 catchpoint commands here.
5524 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5526 (add_catch_command, create_ada_exception_breakpoint): Declare.
5528 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5530 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5531 the breakpoint to the breakpoint chain here.
5532 (set_raw_breakpoint_without_location): Add the breakpoint to the
5533 breakpoint chain here.
5534 (init_raw_breakpoint): Adjust comments.
5535 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5537 (init_catchpoint): Don't set the catchpoint's breakpoint number
5539 (install_catchpoint): New function.
5540 (create_fork_vfork_event_catchpoint)
5541 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5542 use install_catchpoint.
5544 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5546 * breakpoint.c (create_catchpoint_without_mention)
5547 (create_catchpoint): Delete.
5549 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5551 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5552 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5553 reference to exec_pathname.
5554 (struct exec_catchpoint): New type.
5555 (dtor_catch_exec): New function.
5556 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5557 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5558 (catch_exec_command_1): Adjust to use init_catchpoint.
5559 (delete_breakpoint): Remove reference to exec_pathname.
5561 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5563 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5564 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5565 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5566 reference to syscalls_to_be_caught.
5567 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5569 (struct syscall_catchpoint): New type.
5570 (dtor_catch_syscall): New function.
5571 (insert_catch_syscall, remove_catch_syscall)
5572 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5573 (print_recreate_catch_syscall): Adjust.
5574 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5575 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5576 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5577 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5578 (masked_watchpoint_breakpoint_ops)
5579 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5580 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5581 there is one. Remove references to syscalls_to_be_caught.
5582 (catching_syscall_number): Adjust.
5583 * ada-lang.c (catch_exception_breakpoint_ops)
5584 (catch_exception_unhandled_breakpoint_ops)
5585 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5587 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5589 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5591 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5592 reference to forked_inferior_pid.
5593 (struct fork_catchpoint): New type.
5594 (breakpoint_hit_catch_fork, print_it_catch_fork)
5595 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5596 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5597 (create_fork_vfork_event_catchpoint): Adjust to use
5600 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5602 * breakpoint.c (add_to_breakpoint_chain)
5603 (init_raw_breakpoint_without_location): New functions, factored
5605 (set_raw_breakpoint_without_location): ... this one.
5606 (init_raw_breakpoint): New function, factored out from
5607 set_raw_breakpoint and adjusted to use
5608 init_raw_breakpoint_without_location.
5609 (set_raw_breakpoint): Adjust.
5610 (init_catchpoint): New function, factored out from
5611 create_catchpoint_without_mention and adjusted to use
5612 init_raw_breakpoint.
5613 (create_catchpoint_without_mention): Adjust.
5615 2011-06-22 Tom Tromey <tromey@redhat.com>
5617 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5618 argument of 0 specially.
5620 2011-06-22 Yao Qi <yao@codesourcery.com>
5622 * infrun.c (handle_inferior_event): Remove write-only local variable
5623 `sw_single_step_trap_p'.
5625 2011-06-20 Tom Tromey <tromey@redhat.com>
5627 * symtab.c (lookup_language_this): End loop if block is NULL.
5629 2011-06-17 Tom Tromey <tromey@redhat.com>
5631 * valops.c (value_of_this): Use lookup_language_this.
5632 * symtab.h (lookup_language_this): Declare.
5633 * symtab.c (lookup_language_this): New function.
5634 (lookup_symbol_aux): Use lookup_language_this.
5635 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5637 2011-06-17 Tom Tromey <tromey@redhat.com>
5639 * value.h (value_of_this): Update.
5640 (value_of_local): Remove.
5641 * valops.c (value_of_this): Rename from value_of_local. Change
5643 * p-exp.y (exp): Update.
5644 (variable): Likewise.
5645 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5647 2011-06-17 Tom Tromey <tromey@redhat.com>
5649 * valops.c (value_of_local): Complain if NAME is NULL.
5650 * std-operator.def (OP_OBJC_SELF): Remove.
5651 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5652 * objc-exp.y (name_not_typename): Use OP_THIS.
5653 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5655 <OP_OBJC_SELF>: Remove.
5656 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5658 2011-06-16 Tristan Gingold <gingold@adacore.com>
5660 * python/py-events.h (gdb_py_events): Make it extern.
5661 * python/py-evtregistry.c (gdb_py_events): Declare.
5663 2011-06-16 Hui Zhu <teawater@gmail.com>
5665 * remote.c (remote_trace_set_readonly_regions): Add check for
5666 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5669 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5671 * arm-linux-tdep.c: Include "auxv.h".
5673 (ARM_LINUX_SIZEOF_VFP): Define.
5674 (arm_linux_supply_vfp): New function.
5675 (arm_linux_collect_vfp): Likewise.
5676 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5677 (arm_linux_fpa_regset_sections): New variable.
5678 (arm_linux_vfp_regset_sections): Likewise.
5679 (arm_linux_core_read_description): New function.
5680 (arm_linux_init_abi): Install arm_linux_core_read_description and
5681 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5682 appropriate for the architecture.
5683 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5684 (tdesc_arm_with_m): Declare.
5685 (tdesc_arm_with_iwmmxt): Likewise.
5686 (tdesc_arm_with_vfpv2): Likewise.
5687 (tdesc_arm_with_vfpv3): Likewise.
5688 (tdesc_arm_with_neon): Likewise.
5689 * arm-linux-nat.c: Move features/*.c includes ...
5690 * arm-tdep.c: ... here.
5691 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5692 target description data structures ...
5693 * arm-tdep.c (_initialize_arm_tdep): ... here.
5694 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5695 HWCAP_VFPv3D16): Move definitions ...
5696 * arm-linux-tdep.h: ... here.
5698 2011-06-15 Hui Zhu <teawater@gmail.com>
5700 * remote.c (remote_trace_set_readonly_regions): Add a check for
5703 2011-06-14 Tom Tromey <tromey@redhat.com>
5705 * coffread.c (coffread_objfile): Rename from current_objfile.
5706 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5707 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5709 2011-06-14 Tom Tromey <tromey@redhat.com>
5711 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5712 (class_symtab): Remove.
5713 (jv_dynamics_progspace_key): New global.
5714 (jv_per_objfile_free): Reset program space data. Update assert.
5715 Don't clear globals.
5716 (get_dynamics_objfile): Use and set program space data.
5717 (get_java_class_symtab): Use get_dynamics_objfile.
5718 (add_class_symbol): Likewise.
5719 (java_link_class_type): Likewise.
5720 (java_object_type, jv_clear_object_type, set_java_object_type):
5722 (get_java_object_type): Update. Don't cache result.
5723 (is_object_type): Don't call set_java_object_type.
5724 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5725 initialize jv_dynamics_progspace_key.
5727 2011-06-14 Tom Tromey <tromey@redhat.com>
5729 * symtab.h (current_objfile): Don't declare.
5730 * objfiles.h (current_objfile): Don't declare.
5731 * objfiles.c (current_objfile): Remove.
5732 * mdebugread.c (current_objfile): New file-scope global.
5733 * dbxread.c (current_objfile): New file-scope global.
5734 * coffread.c (current_objfile): New file-scope global.
5736 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5738 * top.h (line): Rename to ...
5739 (saved_command_line): ... this.
5740 (linesize): Rename to ...
5741 (saved_command_line_size): ... this.
5742 * top.c (line): Rename to ...
5743 (saved_command_line): ... this.
5744 (linesize): Rename to ...
5745 (saved_command_line_size): ... this.
5746 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5747 * event-top.c (command_line_handler): Adjust.
5748 * main.c (captured_main): Adjust.
5750 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5752 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5753 get_frame_func instead of get_frame_pc to determine the code
5754 address used to construct the frame ID.
5755 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5756 (i386_epilogue_frame_this_id): Likewise.
5757 (i386_epilogue_frame_prev_register): New function.
5758 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5759 (i386_stack_tramp_frame_sniffer): Fix coding style.
5760 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5761 (i386_gdbarch_init): Fix comments.
5763 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5765 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5766 instruction when walking back through the instruction stream.
5768 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5770 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5771 fullname parameters order.
5773 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5776 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5778 * psymtab.c (map_symbol_filenames_psymtab)
5779 (map_partial_symbol_filenames): Likewise.
5780 * psymtab.h: Include symfile.h.
5781 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5782 * symfile.h (symbol_filename_ftype): New.
5783 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5784 map_symbol_filenames, clarify more the naming in comment.
5786 2011-06-07 Doug Evans <dje@google.com>
5788 * cc-with-index.sh: Fix typos in comment.
5789 Look for ../../gdb, for fullname.exp.
5791 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 Pedro Alves <pedro@codesourcery.com>
5794 * cli/cli-cmds.c (shell_escape): Use waitpid.
5795 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5797 2011-06-07 Tristan Gingold <gingold@adacore.com>
5799 * xcoffread.c (dwarf2_xcoff_names): New variable.
5800 (aix_process_linenos): Add a guard.
5801 (xcoff_symfile_finish): Free dwarf2.
5802 (xcoff_initial_scan): Add dwarf2 support.
5804 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5806 * infcall.c (run_inferior_call): Don't mask async. Instead force
5807 a synchronous wait, if the target can async.
5809 * target.h (struct target_ops): Delete to_async_mask.
5810 (target_async_mask): Delete.
5811 * target.c (update_current_target): Delete references to to_async_mask.
5812 * linux-nat.c (linux_nat_async_mask_value): Delete.
5813 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5814 to linux_nat_async_mask_value.
5815 (linux_nat_async_mask): Delete.
5816 (linux_nat_async, linux_nat_close): Remove references to
5817 linux_nat_async_mask_value.
5818 * record.c (record_async_mask_value): Delete.
5819 (record_async): Remove references to record_async_mask_value.
5820 (record_async_mask): Delete.
5821 (record_can_async_p, record_is_async_p): Remove references to
5822 record_async_mask_value.
5823 (init_record_ops, init_record_core_ops): Remove references to
5825 * remote.c (remote_async_mask_value): Delete.
5826 (init_remote_ops): Remove reference to remote_async_mask.
5827 (remote_can_async_p, remote_is_async_p): Remove references to
5828 remote_async_mask_value.
5829 (remote_async): Remove references to remote_async_mask_value.
5830 (remote_async_mask): Delete.
5832 * infrun.c (fetch_inferior_event): Don't claim registers changed
5833 if the current thread is already not executing.
5835 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5837 From Stephen Kitt <steve@sk2.org>
5838 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5839 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5841 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5843 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5844 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5846 2011-06-03 Tom Tromey <tromey@redhat.com>
5848 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5850 * python/py-exitedevent.c (create_exited_event_object): Change
5851 type of 'exit_code'. Optionally add exit_code attribute.
5852 (emit_exited_event): Change type of 'exit_code'.
5853 * python/py-event.h (emit_exited_event): Update.
5854 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5855 * infrun.c (handle_inferior_event): Set exit code fields on
5857 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5859 * inferior.c (exit_inferior_1): Initialize new fields.
5861 2011-06-03 Tom Tromey <tromey@redhat.com>
5863 * dwarf2expr.c (get_signed_type): New function.
5864 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5866 2011-06-02 Keith Seitz <keiths@redhat.com>
5868 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5870 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5872 * top.h (simplified_command_loop): Delete declaration.
5874 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5876 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5877 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5879 2011-06-01 Yao Qi <yao@codesourcery.com>
5881 * objfiles.h (obj_section_addr): Update reference to objfile from
5883 (obj_section_endaddr): Likewise.
5885 2011-06-01 Daniel Jacobowitz <drow@false.org>
5887 * MAINTAINERS: Update my email address and affiliation. Also
5888 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5890 2010-05-31 Keith Seitz <keiths@redhat.com>
5893 * linespec.c (get_search_block): New function.
5894 (find_methods): Add FILE_SYMTATB parameter and use it and
5895 get_search_block to pass an appropriate block to
5896 lookup_symbol_in_namespace.
5897 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5898 Check if *ARGPTR starts with a filename first.
5899 If it does, call locate_first_half again to locate the next
5900 "first half" of the linespec.
5901 Pass FILE_SYMTATB to decode_objc and decode_compound.
5902 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5903 (locate_first_half): Stop on the first colon seen.
5904 (decode_compound): Add FILE_SYMTAB parameter.
5905 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5906 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5907 get_search_block with lookup_symbol.
5908 (find_method): Add FILE_SYMTAB parameter and pass it to
5910 (decode_objc): Use get_search_block.
5912 2010-05-31 Keith Seitz <keiths@redhat.com>
5915 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5916 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5917 and CP_ANONYMOUS_NAMESPACE_LEN.
5918 (cp_is_anonymous): Likewise.
5919 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5920 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5921 * dwarf2read.c (namespace_name): Likewise.
5922 (fixup_partial_die): Likewise.
5923 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5924 seen in the input, keep it.
5926 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5928 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5929 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5930 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5931 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5932 * remote.c (_initialize_remote): Register
5933 async_remote_interrupt_twice directly as
5934 sigint_remote_twice_token event.
5936 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5938 * target.h (enum inferior_event_type): Delete INF_ERROR.
5939 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5941 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5943 * interps.c (interp_set): Don't cancel continuations.
5945 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5947 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5949 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5951 * continuations.h (continuation_ftype): Add `err' parameter.
5952 Document parameters.
5953 (do_all_continuations, do_all_continuations_thread)
5954 (do_all_intermediate_continuations)
5955 (do_all_intermediate_continuations_thread)
5956 (do_all_inferior_continuations): Add `err' parameter.
5957 * continuations.c (do_my_continuations_1, do_my_continuations)
5958 (do_all_inferior_continuations, do_all_continuations_ptid)
5959 (do_all_continuations_thread_callback)
5960 (do_all_continuations_thread, do_all_continuations)
5961 (do_all_intermediate_continuations_thread_callback)
5962 (do_all_intermediate_continuations_thread)
5963 (do_all_intermediate_continuations): Add `err' parameter, and pass
5964 it down all the way to the continuations proper.
5965 * inf-loop.c (inferior_event_handler): If fetching an inferior
5966 event throws an error, don't pop the target, and still call the
5967 continuations, but with `err' set. Adjust all other continuation
5969 * breakpoint.c (until_break_command_continuation): Add `err'
5971 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5972 issue another step if `err' is set.
5973 (struct until_next_continuation_args): New.
5974 (until_next_continuation): Add `err' parameter. Adjust.
5975 (until_next_command): Adjust.
5976 (struct finish_command_continuation_args): Add `thread' field.
5977 (finish_command_continuation): Add `err' parameter. Handle it.
5978 (finish_forward): Adjust.
5979 (attach_command_continuation): Add `err' parameter. Handle it.
5980 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5981 cancel the continuations.
5982 * interps.c (interp_set): Adjust to cancel the continuations.
5983 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5984 continuations rather than discarding.
5985 (free_thread): Don't clear thread inferior resources here.
5986 (delete_thread_1): Do it here instead. And do it before removing
5987 the thread from the threads list. Tag the thread as exited before
5988 clearing thread inferior resources.
5990 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5992 * infcall.c (call_function_by_hand): Rephrase error message.
5994 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5996 * defs.h (struct thread_info, struct inferior): Delete forward
5998 * breakpoint.h (struct thread_info): New forward declaration.
5999 * observer.sh (struct inferior): New forward declaration.
6000 * python/python-internal.h (struct inferior): New forward
6003 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6005 * defs.h (struct continuation, continuation_ftype)
6006 (continuation_free_arg_ftype, add_continuation)
6007 (do_all_continuations, do_all_continuations_thread)
6008 (discard_all_continuations, discard_all_continuations_thread)
6009 (add_intermediate_continuation, do_all_intermediate_continuations)
6010 (do_all_intermediate_continuations_thread)
6011 (discard_all_intermediate_continuations)
6012 (discard_all_intermediate_continuations_thread)
6013 (add_inferior_continuation, do_all_inferior_continuations)
6014 (discard_all_inferior_continuations): Move to ...
6015 * continuations.h: ... this new file.
6016 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6017 infcmd.c, inferior.c, infrun.c, interps.c: Include
6020 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6021 Doug Evans <dje@google.com>
6023 Fix PR 10970, PR 12702.
6024 * linux-nat.c (linux_lwp_is_zombie): New function.
6025 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6026 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6028 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6030 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6032 (add_continuation, add_intermediate_continuation)
6033 (add_inferior_continuation): Use them.
6034 * continuations.c (struct continuation): Use them.
6035 (make_continuation_ftype): Delete.
6036 (make_continuation, add_inferior_continuation, add_continuation)
6037 (add_intermediate_continuation): Use continuation_ftype and
6038 continuation_free_arg_ftype. Rename parameters to shorter names.
6040 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6042 * continuations.c (make_continuation): Make it return void.
6043 (do_my_continuations): Rename to ...
6044 (do_my_continuations_1): ... this. Remove old_chain parameter and
6046 (do_my_continuations): New.
6047 (discard_my_continuations): Rename to ...
6048 (discard_my_continuations_1): ... this. Remove old_chain
6049 parameter and adjust.
6050 (discard_my_continuations): New.
6051 (add_inferior_continuation): Simplify.
6052 (do_all_inferior_continuations): Reimplement on top
6053 do_my_continuations.
6054 (discard_all_inferior_continuations): Simplify.
6055 (add_continuation): Simplify.
6056 (do_all_continuations_ptid): Simplify.
6057 (discard_all_continuations_thread_callback): Simplify.
6058 (add_intermediate_continuation): Simplify.
6059 (discard_all_intermediate_continuations_thread_callback):
6062 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6064 * utils.c (struct continuation, add_continuation)
6065 (add_inferior_continuation)
6066 (do_all_inferior_continuations, discard_all_inferior_continuations)
6067 (restore_thread_cleanup, do_all_continuations_ptid)
6068 (do_all_continuations_thread_callback)
6069 (do_all_continuations_thread, do_all_continuations)
6070 (discard_all_continuations_thread_callback)
6071 (discard_all_continuations_thread, discard_all_continuations)
6072 (add_intermediate_continuation)
6073 (do_all_intermediate_continuations_thread_callback)
6074 (do_all_intermediate_continuations_thread)
6075 (do_all_intermediate_continuations)
6076 (discard_all_intermediate_continuations_thread_callback)
6077 (discard_all_intermediate_continuations_thread)
6078 (discard_all_intermediate_continuations): Move to ...
6079 * continuations.c: ... this new file, and adjust to no longer
6080 implement continuations on top of cleanups.
6081 * Makefile.in (SFILES): Add continuations.c.
6082 (COMMON_OBS): Add continuations.o.
6084 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6086 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6087 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6088 Internal error on invalid values.
6089 * reverse.c: Don't handle EXEC_ERROR.
6090 * mi/mi-main.c: Don't handle EXEC_ERROR.
6092 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6094 * record.c: Include event-loop.h, inf-loop.h.
6095 (record_beneath_to_async): New global.
6096 (tmp_to_async): New global.
6097 (record_async_inferior_event_token): New global.
6098 (record_open_1): Don't error out if async is enabled.
6099 (record_open): Handle to_async. Create an async event source in
6101 (record_close): Delete the async event source.
6102 (record_resumed): New global.
6103 (record_execution_dir): New global.
6104 (record_resume, record_core_resume): Set them. Register the
6105 target on the event loop.
6106 (record_wait): Rename to ...
6107 (record_wait_1): ... this. Add more debug output. Handle
6108 TARGET_WNOHANG, and the target beneath returning
6109 TARGET_WAITKIND_IGNORE.
6110 (record_wait): Reimplement on top of record_wait_1.
6111 (record_async_mask_value): New global.
6112 (record_async, record_async_mask, record_can_async_p)
6113 (record_is_async_p, record_execution_direction): New functions.
6114 (init_record_ops, init_record_core_ops): Install new methods.
6115 * infrun.c (fetch_inferior_event): Temporarily switch the global
6116 execution direction to the direction the target was going.
6117 (execution_direction): Change type to int.
6118 * target.c (default_execution_direction): New function.
6119 (update_current_target): Inherit and de_fault
6120 to_execution_direction.
6121 * target.h (struct target_ops) <to_execution_direction>: New
6123 (target_execution_direction): New macro.
6124 * inferior.h (execution_direction): Change type to int.
6126 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6128 * infcall.c (call_function_by_hand): Don't allow calling functions
6129 in reverse execution mode.
6131 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6133 * infcmd.c (finish_command): Allow async finish in reverse.
6135 2011-05-26 Yao Qi <yao@codesourcery.com>
6137 * gdb_thread_db.h: Delete. Move to ...
6138 * common/gdb_thread_db.h: ... here.
6140 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6142 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6143 function's entry point instead of a manually managed momentary
6144 breakpoint, and only ever issue one proceed call.
6145 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6146 doing a reverse-finish, switch to stepi mode, to do another step.
6147 (insert_step_resume_breakpoint_at_sal): Make public.
6148 (normal_stop): No need to save function value return registers if
6150 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6152 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6154 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6155 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6156 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6158 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6159 step-resume breakpoints.
6160 (print_it_typical): Handle bp_hp_step_resume.
6161 (bpstat_what): Ditto.
6162 (bptype_string): Ditto.
6163 (print_one_breakpoint_location): Ditto.
6164 (allocate_bp_location): Ditto.
6166 (breakpoint_re_set_one): Ditto.
6167 * infrun.c (handle_inferior_event): Adjust. Split
6168 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6169 BPSTAT_WHAT_HP_STEP_RESUME.
6170 (insert_step_resume_breakpoint_at_sal): Rename to ...
6171 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6172 parameter. Handle it.
6173 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6174 insert_step_resume_breakpoint_at_sal_1.
6175 (insert_step_resume_breakpoint_at_frame): Rename to ...
6176 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6177 set a high-priority step-resume breakpoint.
6178 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6179 (insert_step_resume_breakpoint_at_caller): Ditto.
6181 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6183 * breakpoint.c (iterate_over_related_breakpoints): New.
6184 (do_map_delete_breakpoint): New.
6185 (delete_command): Pass do_map_delete_breakpoint to
6186 map_breakpoint_numbers.
6187 (do_disable_breakpoint): New.
6188 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6190 (do_enable_breakpoint): Rename to ...
6191 (enable_breakpoint_disp): ... this.
6192 (enable_breakpoint): Adjust.
6193 (do_enable_breakpoint): New.
6194 (enable_once_breakpoint): Delete.
6195 (do_map_enable_breakpoint): New.
6196 (do_map_enable_once_breakpoint): New.
6197 (enable_once_command, enable_delete_command)
6198 (delete_trace_command): Iterate over the breakpoint's related
6201 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6203 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6204 for ALPHA_ZERO_REGNUM.
6205 (alpha_supply_int_regs): Explicitly supply zero as the value for
6206 ALPHA_ZERO_REGNUM in the register cache.
6207 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6209 2011-05-26 Yao Qi <yao@codesourcery.com>
6211 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6213 2011-05-26 Tristan Gingold <gingold@adacore.com>
6215 * symfile.h (struct dwarf2_section_names): New type.
6216 (struct dwarf2_debug_sections): New type.
6217 (dwarf2_has_info): Add parameter.
6218 * dwarf2read.c (dwarf2_elf_names): New variable.
6219 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6220 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6221 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6222 (dwarf2_has_info): Add names parameter. Pass names
6223 to dwarf2_locate_sections.
6224 (section_is_p): Rewrite using the names parameter.
6225 (dwarf2_locate_sections): Use section names from the names parameter.
6226 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6227 * elfread.c (read_psyms): Ditto.
6228 * machoread.c (macho_symfile_read): Ditto.
6230 2011-05-25 Andreas Schwab <schwab@redhat.com>
6233 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6235 2011-05-24 Keith Seitz <keiths@redhat.com>
6238 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6239 (decode_compound): Unconditionally call keep_name_info.
6241 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6243 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6244 scope, clear its command list.
6245 (map_breakpoint_numbers): Don't walk the related breakpoints list
6248 2011-05-24 Tom Tromey <tromey@redhat.com>
6250 * MAINTAINERS: Move Jim Blandy to past maintainers.
6252 2011-05-24 Tristan Gingold <gingold@adacore.com>
6254 * symfile.h (enum dwarf2_section_enum): New type.
6255 (dwarf2_get_section_info): New prototype.
6256 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6257 section_name by sect. Use a switch to select the info.
6258 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6259 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6261 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6263 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6264 shared library event breakpoint if there's no execution.
6266 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6268 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6269 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6271 2011-05-23 Tom Tromey <tromey@redhat.com>
6273 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6276 2011-05-23 Doug Evans <dje@google.com>
6278 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6279 entry for RuntimeError to doc string.
6281 2011-05-23 Jerome Guitton <guitton@adacore.com>
6283 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6284 sequence for probing loops.
6286 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6288 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6291 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6293 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6294 zero as the value for %g0 in the register cache.
6295 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6296 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6298 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6300 * infrun.c (proceed): Set previous_inferior_ptid here.
6301 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6302 inferior_ptid, not null_ptid.
6303 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6304 (fetch_inferior_event): Nor here.
6306 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6308 * inf-loop.c (inferior_event_handler): Only output a message if
6311 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6313 * MAINTAINERS: Update my e-mail address.
6315 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6317 * infrun.c (proceed): Switch the inferior event loop to
6318 INF_EXEC_COMPLETE if the target refused to resume from a
6321 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6323 * infcmd.c: Include "inf-loop.h".
6324 (step_once): When stepping into an inline subroutine, pretend the
6325 target has run. If the target can async, switch the inferior
6326 event loop to INF_EXEC_COMPLETE.
6327 * inferior.h (user_visible_resume_ptid): Declare.
6328 * infrun.c (user_visible_resume_ptid): New function, factored out
6331 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6332 that the current thread is running. Merge async and sync
6335 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6337 * infcmd.c (step_1): Simplify synchronous case.
6339 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6341 * tracepoint.c: Include exceptions.h.
6342 (TFILE_PID): Move higher in file.
6343 (tfile_open): Delay pushing the tfile target until we're assured
6344 the tfile header is present in the file. Wrap reading the initial
6345 newline-terminated lines in TRY_CATCH. Pop the target if the
6346 initial setup failed. Add the tfile's thread immediately
6347 aftwards, before any non-essential setup. Don't skip
6348 post_create_inferior if there are no traceframes present in the
6350 (tfile_close): Remove redundant check for null before xfree call.
6351 (tfile_thread_alive): New function.
6352 (init_tfile_ops): Register it as to_thread_alive callback.
6354 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6356 * tracepoint.c (tfile_open): Delete #if 0'd code.
6358 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6360 Fix -readnow for -gdwarf-4 unused type units.
6361 * dwarf2read.c (struct signatured_type): Remove the field offset.
6362 (create_signatured_type_table_from_index): Remove its initialization.
6363 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6364 instead. Add a complaint call.
6365 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6366 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6367 (lookup_signatured_type_at_offset, read_signatured_type)
6368 (write_one_signatured_type): Update the field for per_cu.
6370 2011-05-19 Tom Tromey <tromey@redhat.com>
6372 * python/py-inferior.c (python_inferior_exit): Use
6374 (python_on_resume): Likewise.
6376 2011-05-19 Matt Rice <ratmice@gmail.com>
6378 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6380 2011-05-19 Hui Zhu <teawater@gmail.com>
6382 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6384 2011-05-19 Hui Zhu <teawater@gmail.com>
6386 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6388 2011-05-18 Tom Tromey <tromey@redhat.com>
6390 * dwarf2read.c (dwarf2_add_field): Constify.
6391 * value.c (value_static_field): Constify.
6392 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6394 * ax-gdb.c (gen_static_field): Constify
6396 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 * linux-nat.c (kill_callback): Use SIGKILL first.
6400 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6402 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6404 2011-05-18 Tom Tromey <tromey@redhat.com>
6406 * value.c (value_fn_field): Constify.
6407 * symtab.c (gdb_mangle_name): Constify.
6408 * stabsread.c (update_method_name_from_physname): Make 'physname'
6410 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6411 const. Use explicit fputc_filtered loop.
6412 (pascal_type_print_base): Constify.
6413 * p-lang.h (pascal_type_print_method_args): Update.
6414 * linespec.c (add_matching_methods): Constify.
6415 (add_constructors): Likewise.
6416 * jv-typeprint.c (java_type_print_base): Constify.
6417 * gdbtypes.h (struct cplus_struct_type)
6418 <fn_fieldlist.fn_field.physname>: Now const.
6419 * dwarf2read.c (compute_delayed_physnames): Constify.
6420 (dwarf2_add_member_fn): Likewise.
6421 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6423 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6425 * infrun.c (resume): Mention which is the current thread, and its
6426 current PC in debug output.
6427 (prepare_to_proceed): Mention the thread switching in debug
6430 2011-05-18 Tom Tromey <tromey@redhat.com>
6432 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6433 path check. Use xmalloc and cleanups.
6434 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6436 2011-05-17 Tom Tromey <tromey@redhat.com>
6438 * cp-valprint.c (cp_print_value_fields): Catch errors from
6441 2011-05-17 Tom Tromey <tromey@redhat.com>
6443 * dwarf2read.c (dwarf2_get_die_type): Call
6444 get_die_type_at_offset.
6445 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6446 get_base_type function.
6448 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6450 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6453 2011-05-16 Doug Evans <dje@google.com>
6455 * python/py-auto-load.c (source_section_scripts): Mention objfile
6458 2011-05-15 Doug Evans <dje@google.com>
6460 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6461 (try_thread_db_load_from_pdir): Call it. If unable to find
6462 libthread_db in directory of libpthread, see if we're looking at
6463 the separate-debug-info copy.
6465 * python/py-autoload.c (print_script): Print "Missing" instead of
6466 "No" for missing scripts.
6467 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6469 2011-05-13 Doug Evans <dje@google.com>
6471 * ui-file.c (stdio_file_write_async_safe): Add comment.
6473 2011-05-14 Hui Zhu <teawater@gmail.com>
6475 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6477 2011-05-13 Doug Evans <dje@google.com>
6479 Support $pdir and $sdir in libthread-db-search-path.
6480 * NEWS: Mention $sdir,$pdir.
6481 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6482 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6483 (try_thread_db_load_from_sdir): New function.
6484 (try_thread_db_load_from_dir): New function.
6485 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6486 system directories if search of libthread-db-search-path fails,
6487 that is now done via $sdir.
6488 (has_libpthread): New function.
6489 (thread_db_load): Remove search for libthread_db in directory of
6490 libpthread, that is now done via $pdir.
6492 * NEWS: Mention "info auto-load-scripts".
6493 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6494 script_not_found_warning_printed.
6495 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6496 all callers updated. Initialize script_not_found_warning_printed.
6497 (get_auto_load_pspace_data_for_loading): New function.
6498 (maybe_add_script): New function.
6499 (source_section_scripts): Simplify. Only print one warning regardless
6500 of the number of auto-load scripts not found.
6501 (clear_section_scripts): Clear script_not_found_warning_printed.
6502 (auto_load_objfile_script): Record script in hash table.
6503 (count_matching_scripts): New function.
6504 (maybe_print_script): Renamed from maybe_print_section_script, all
6505 callers updated. Rewrite to use ui_out_*.
6506 (info_auto_load_scripts): Renamed from
6507 maintenance_print_section_scripts, all callers updated.
6508 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6509 renamed as "info auto-load-scripts".
6511 2011-05-13 Tom Tromey <tromey@redhat.com>
6513 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6514 (read_sleb128): Likewise.
6516 2011-05-13 Tom Tromey <tromey@redhat.com>
6518 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6521 2011-05-13 Doug Evans <dje@google.com>
6523 * linux-nat.c (debug_linux_nat_async): Delete.
6524 Replace all references to use debug_linux_nat instead.
6525 (show_debug_linux_nat_async): Delete.
6526 (sigchld_handler): Call ui_file_write_async_safe instead of
6528 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6529 * ui-file.c (struct ui_file): New member to_write_async_safe.
6530 (null_file_write_async_safe): New function.
6531 (ui_file_write_async_safe): New function.
6532 (set_ui_file_write_async_safe): New function.
6533 (ui_file_new): Initialize to_write_async_safe.
6534 (stdio_file_write_async_safe): New function.
6535 (struct stdio_file): New member fd.
6536 (stdio_file_new): Initialize to_write_async_safe, fd.
6537 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6539 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6540 (set_ui_file_write_async_safe): Declare.
6541 (ui_file_write_async_safe): Declare.
6543 2011-05-13 Tom Tromey <tromey@redhat.com>
6545 * utils.c (do_value_free): New function.
6546 (make_cleanup_value_free): Likewise.
6547 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6549 (dwarf2_loc_desc_needs_frame): Call
6550 make_cleanup_value_free_to_mark.
6551 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6552 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6554 (new_dwarf_expr_context): Don't call value_mark.
6555 * dwarf2-frame.c (execute_stack_op): Call
6556 make_cleanup_value_free_to_mark.
6557 * defs.h (make_cleanup_value_free): Declare.
6559 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6561 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6562 prepare_execute_command.
6563 * top.c (prepare_execute_command): Return cleanup.
6564 (execute_command): Use cleanup from prepare_execute_command.
6565 * top.h (prepare_execute_command): Change prototype to return
6567 * defs.h (struct value): Add opaque declaration.
6568 (make_cleanup_value_free_to_mark): Add prototype.
6569 * utils.c (do_value_free_to_mark): New function.
6570 (make_cleanup_value_free_to_mark): Likewise.
6572 2011-05-12 Tom Tromey <tromey@redhat.com>
6574 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6575 cast left-hand-side to unsigned.
6577 2011-05-12 Tom Tromey <tromey@redhat.com>
6580 * value.h (value_from_contents): Declare.
6581 * value.c (value_from_contents): New function.
6582 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6583 (dwarf2_get_die_type): New function.
6584 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6585 (allocate_piece_closure): Acquire reference to values.
6586 (read_pieced_value): Update for value-based expressions.
6587 (write_pieced_value): Likewise.
6588 (free_pieced_value_closure): Call value_free as needed.
6589 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6590 Update for value-based expressions.
6591 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6592 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6593 <get_base_type>: New field.
6594 (struct dwarf_expr_piece) <v.value>: Change type.
6595 <v.regno>: New field.
6596 (struct dwarf_expr_context) <mark>: New field.
6597 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6598 (dwarf_expr_pop, dwarf_expr_push): Remove.
6599 (dwarf_expr_push_address): Declare.
6600 * dwarf2expr.c (dwarf_arch_cookie): New global.
6601 (struct dwarf_gdbarch_types): New.
6602 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6604 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6606 (dwarf_expr_push_address): New function.
6607 (dwarf_expr_pop): Now static.
6608 (dwarf_expr_fetch): Change return type.
6609 (dwarf_require_integral): New function.
6610 (dwarf_expr_fetch): Simplify.
6611 (add_piece): Update.
6612 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6614 (execute_stack_op) <sign_ext>: Remove.
6615 Use values for DWARF stack.
6616 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6617 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6619 (_initialize_dwarf2expr): New function.
6620 (add_piece): Update.
6621 (new_dwarf_expr_context): Set new field.
6622 (free_dwarf_expr_context): Call value_free_to_mark.
6623 * dwarf2-frame.c (no_base_type): New function.
6624 (execute_stack_op): Set get_base_type field. Update.
6626 2011-05-12 Tom Tromey <tromey@redhat.com>
6628 * dwarf2read.c (read_common_block): Fix formatting.
6630 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6632 * breakpoint.c (disable_breakpoint): Disable all locations
6633 associated with a tracepoint on target if a trace experiment is
6635 (disable_command): Disable a specific tracepoint location on target if
6636 a trace experiment is running.
6637 (do_enable_breakpoint): Enable all locations associated with a
6638 tracepoint on target if a trace experiment is running.
6639 (enable_command) Enable a specific tracepoint location on target if a
6640 trace experiment is running.
6641 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6642 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6643 to_disable_tracepoint.
6644 * target.h: Add declaration of struct bp_location.
6645 (struct target_ops): Add new functions
6646 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6647 to_disable_tracepoint to target operations.
6648 (target_supports_enable_disable_tracepoint): New macro.
6649 (target_enable_tracepoint): New macro.
6650 (target_disable_tracepoint): New macro.
6651 * remote.c (struct remote_state): Add new field.
6652 (remote_enable_disable_tracepoint_feature): New.
6653 (remote_protocol_features): Add new entry.
6654 (remote_supports_enable_disable_tracepoint): New.
6655 (remote_enable_tracepoint): New.
6656 (remote_disable_tracepoint): New.
6657 (init_remote_ops): Add remote_enable_tracepoint,
6658 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6659 to remote operations.
6660 * tracepoint.c (start_tracing): Allow tracing to start without any
6661 tracepoints enabled with just a warning if they can be re-enabled
6663 * NEWS: Add news item for the new behaviour of the enable and disable
6664 GDB commands when applied to tracepoints.
6665 Add news items for the new remote packets QTEnable and QTDisable.
6667 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6669 * config.in: Regenerate.
6670 * configure: Regenerate.
6671 * configure.ac <--with-system-readline> (for readline_echoing_p):
6673 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6674 (tui_old_rl_echoing_p): ... here.
6675 (tui_setup_io): Rename extern declaration readline_echoing_p to
6676 _rl_echoing_p. Adjust assignments for the both renames.
6678 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6680 * symtab.c (lookup_symtab): Run cleanup before returning.
6682 2011-05-11 Tom Tromey <tromey@redhat.com>
6684 * dwarf2read.c (handle_data_member_location): New function.
6685 (dwarf2_add_field): Use it.
6686 (read_common_block): Likewise.
6688 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6690 Make addrs->SECTINDEX always defined.
6691 * symfile.c (relative_addr_info_to_section_offsets): Check for
6692 SECTINDEX -1, not for zero ADDR.
6693 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6694 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6695 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6698 2011-05-10 Doug Evans <dje@google.com>
6700 * linux-thread-db.c: Whitespace cleanup.
6701 (try_thread_db_load_1): Fix comment.
6703 * linux-thread-db.c (set_libthread_db_search_path): New function.
6704 (_initialize_thread_db): Add setter for libthread-db-search-path.
6706 2011-05-09 Doug Evans <dje@google.com>
6708 * NEWS: Mention --with-iconv-bin.
6709 * configure.ac: New option --with-iconv-bin.
6710 * configure: Regenerate.
6711 * config.in: Regenerate.
6712 * defs.h (relocate_gdb_directory): Declare.
6713 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6714 removed progname parameter, and exported. All callers updated.
6715 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6717 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6718 adding missing call to restore_child_signals_mask.
6720 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6722 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6724 * infrun.c (proceed, start_remote): Adjust.
6725 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6726 and adjust to not handle it.
6727 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6728 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6729 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6730 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6731 * windows-nat.c (do_initial_windows_stuff): Adjust.
6732 * infcmd.c (attach_command): Adjust.
6733 (notice_new_inferior): Adjust.
6735 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6737 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6738 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6739 * spu-tdep.c (op_selb): Use correct value.
6741 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6743 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6744 "parent" parameter to symbol_file_add_from_bfd call.
6746 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6747 Thiago Jung Bauermann <bauerman@br.ibm.com>
6749 Implement support for PowerPC BookE masked watchpoints.
6750 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6752 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6753 method. Initialize to NULL in all existing breakpoint_ops instances.
6754 (struct breakpoint) <hw_wp_mask>: New field.
6755 * breakpoint.c (is_masked_watchpoint): Add prototype.
6756 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6757 breakpoint's breakpoint_ops.works_in_software_mode if available.
6758 (watchpoints_triggered): Handle the case of a hardware masked
6760 (watchpoint_check): Likewise.
6761 (works_in_software_mode_watchpoint): New function.
6762 (insert_masked_watchpoint, remove_masked_watchpoint)
6763 (resources_needed_masked_watchpoint)
6764 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6765 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6766 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6768 (masked_watchpoint_breakpoint_ops): New structure.
6769 (watch_command_1): Check for the existence of the `mask' parameter.
6770 Set b->ops according to the type of hardware watchpoint being created.
6771 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6772 (ppc_linux_remove_mask_watchpoint)
6773 (ppc_linux_masked_watch_num_registers): New functions.
6774 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6775 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6776 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6777 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6778 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6779 (target_masked_watch_num_registers): New functions.
6780 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6781 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6783 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6784 (target_masked_watch_num_registers): Add prototypes.
6786 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6789 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6790 (producer_is_gcc_ge_4_0): New function.
6791 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6792 symtab->language code.
6793 (var_decode_location): Set cu->has_loclist.
6794 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6795 skip. Intialize force_skip from locations_valid. Move the prologue
6796 skipping code into two passes.
6797 * symtab.h (struct symtab): Make the primary field a bitfield. New
6798 field locations_valid.
6800 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6802 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6803 (classify_inner_name): Call cp_lookup_nested_type with
6805 * cp-namespace.c (cp_lookup_nested_type): New variable
6806 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6807 type_name_no_tag_or_error with saved_parent_type.
6808 * dwarf2read.c (load_partial_dies): Read in any children of
6809 DW_TAG_typedef with complaint in such case.
6810 * gdbtypes.c (type_name_no_tag_or_error): New function.
6811 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6812 * valops.c (destructor_name_p): New comment for parameter type. Remove
6813 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6814 * value.h (destructor_name_p): Remove type const.
6816 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6818 * symtab.c (compare_symbol_name): New function.
6819 (completion_list_add_name, expand_partial_symbol_name): Call it,
6820 remove the variable ncmp.
6821 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6824 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6826 Demote to sw watchpoint only in update_watchpoint.
6827 * breakpoint.c (update_watchpoint): Change between software and
6828 hardware watchpoint for all kinds of watchpoints, not just
6829 read/write ones. Determine b->exact value here instead of
6830 in watch_command_1. Error out if there are not enough resources
6831 for a read or access hardware watchpoint.
6832 (watch_command_1): Remove logic of checking whether there are
6833 enough resources available, since update_watchpoint will do that
6834 work now. Don't set b->exact here. Catch exceptions thrown by
6835 update_watchpoint and delete the watchpoint.
6836 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6837 Use target_exact_watchpoints instead.
6838 (delete_breakpoint): Notify observers only if deleted watchpoint
6839 has a breakpoint number assigned to it.
6841 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6843 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6845 2011-05-05 Jerome Guitton <guitton@adacore.com>
6847 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6849 (i386_stack_tramp_frame_unwind): New static global.
6850 (i386_match_pattern): New function, extracted from i386_match_insn.
6851 (i386_match_insn): Use i386_match_pattern.
6852 (i386_match_insn_block): New function.
6853 (i386_tramp_chain_in_reg_insns)
6854 (i386_tramp_chain_on_stack_insns): New static variables.
6855 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6858 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6860 * configure.host (xscale*): Don't handle target.
6861 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6864 2011-05-04 Yao Qi <yao@codesourcery.com>
6866 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6868 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6871 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6872 | * elfread.c (elf_symtab_read): Stop memory leak.
6874 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6876 * nto-tdep.c (nto_target): Replace deprecated call to
6877 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6879 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6881 Fix false GCC warning.
6882 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6884 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6886 * breakpoint.c (update_watchpoint): Move code to change
6887 the enable state of breakpoint from here ...
6888 (do_enable_breakpoint): ... to here.
6890 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6892 * valprint.c (val_print_array_elements): Fixed poor performance
6893 of printing very large arrays with repeat_count_threshold set
6894 to unlimited. New comment.
6896 2011-04-29 Tom Tromey <tromey@redhat.com>
6898 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6899 (mi_parse): Likewise.
6900 * breakpoint.c (break_range_command): Use sizeof char*, not
6902 (create_breakpoint): Likewise.
6903 (parse_breakpoint_sals): Likewise.
6905 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6907 * linux-nat.c (linux_child_remove_fork_catchpoint)
6908 (linux_child_remove_vfork_catchpoint)
6909 (linux_child_remove_exec_catchpoint): New functions.
6910 (linux_target_install_ops): Install them.
6912 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6916 * varobj.c (install_default_visualizer): Do not install a
6917 visualizer if the varobj is CPLUS_FAKE_CHILD.
6918 (construct_visualizer): Likewise.
6920 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6922 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6923 case insensitive comparison.
6925 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6927 * infrun.c (proceed): Revert previous change.
6928 (resume): Instead, handle the case of signal delivery while stepping
6929 off a breakpoint location here, and only if software single-stepping
6930 is used. Handle nested signals.
6932 2011-04-28 Yao Qi <yao@codesourcery.com>
6934 * arm-tdep.c (copy_unmodified): Rename to ...
6935 (arm_copy_unmodified): .. this. New.
6936 (copy_preload): Move common part to ...
6937 (install_preload): .. this. New.
6938 (arm_copy_preload): New.
6939 (copy_preload_reg): Move common part to ...
6940 (install_preload_reg): ... this. New.
6941 (arm_copy_preload_reg): New.
6942 (copy_b_bl_blx): Move common part to ...
6943 (install_b_bl_blx): .. this. New.
6944 (arm_copy_b_bl_blx): New.
6945 (copy_bx_blx_reg): Move common part to ...
6946 (install_bx_blx_reg): ... this. New.
6947 (arm_copy_bx_blx_reg): New.
6948 (copy_alu_reg): Move common part to ...
6949 (install_alu_reg): ... this. New.
6950 (arm_copy_alu_reg): New.
6951 (copy_alu_shifted_reg): Move common part to ...
6952 (install_alu_shifted_reg): ... this. New.
6953 (copy_ldr_str_ldrb_strb): Move common part to ...
6954 (install_ldr_str_ldrb_strb): ... this. New.
6955 (arm_copy_ldr_str_ldrb_strb): New.
6956 (copy_copro_load_store): Move some common part to ...
6957 (install_copy_copro_load_store): ... this. New.
6958 (arm_copy_copro_load_store): New.
6960 (arm_copy_svc): Renamed from copy_svc.
6961 (copy_undef): Delete.
6962 (arm_copy_undef): Renamed from copy_undef.
6963 (decode_ext_reg_ld_st): Delete.
6964 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6965 (decode_svc_copro): Delete.
6966 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6967 (copy_copro_load_store, copy_alu_imm): update callers.
6968 (copy_extra_ld_st, copy_block_xfer): Likewise.
6969 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6970 (decode_miscellaneous, decode_dp_misc): Likewise.
6971 (decode_ld_st_word_ubyte, decode_media): Likewise.
6972 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6973 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6974 (decode_unconditional, decode_miscellaneous): Likewise.
6975 (decode_media, decode_b_bl_ldmstm): Likewise.
6976 (arm_process_displaced_insn): Likewise..
6977 (decode_misc_memhint_neon): Delete.
6978 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6979 (decode_miscellaneous): Delete.
6980 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6981 (decode_dp_misc): Delete.
6982 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6983 (decode_ld_st_word_ubyte): Delete.
6984 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6985 (decode_media): Delete.
6986 (arm_decode_media): Renamed from decode_media.
6987 (decode_b_bl_ldmstm): Delete.
6988 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6989 (decode_ext_reg_ld_st): Delete.
6990 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6991 (decode_unconditional): Delete.
6992 (arm_decode_unconditional): Renamed from decode_unconditional.
6994 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6996 Case insensitive lookups implementation.
6997 * dwarf2read.c: Include ctype.h.
6998 (struct mapped_index): New field version.
6999 (mapped_index_string_hash): New parameter index_version. New comment
7000 for it. Call tolower appropriately.
7001 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7002 Choose the right index version for mapped_index_string_hash.
7003 (dwarf2_read_index): Support also the index version 5. Initialize the
7004 new struct mapped_index field version.
7005 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7006 (find_slot): Explain the version needs. Pass INT_MAX for the new
7008 (write_psymtabs_to_index): Produce version 5.
7009 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7010 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7011 * psymtab.c (lookup_partial_symbol): Find the
7012 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7014 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7016 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7017 (completion_list_add_name): New variable ncmp, initialize it, use it.
7018 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7019 * utils.c (strcmp_iw): Support case_sensitive_off.
7020 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7021 New function comment part. New variables saved_string1,
7022 saved_string2 and case_pass. Add a proper second pass.
7024 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7026 Replace re_comp/re_exec by regcomp/regexec.
7027 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7028 (search_symbols_name_matches): Use them, use regexec.
7029 (search_symbols): New variable retval_chain, adjust the use of
7030 old_chain against it. Replace re_comp by regcomp. Use the new struct
7031 search_symbols_data fields, use regexec instead of re_exec.
7033 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7035 Format the code for the next patch.
7036 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7037 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7038 New variables c1 and c2.
7040 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7042 * infrun.c (proceed): Do not single-step into signal delivery
7043 when stepping off a breakpoint location.
7044 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7045 (insert_step_resume_breakpoint_at_caller): Likewise.
7046 (insert_step_resume_breakpoint_at_sal): Likewise.
7047 (insert_longjmp_resume_breakpoint): Likewise.
7049 2011-04-27 Yao Qi <yao@codesourcery.com>
7051 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7053 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7055 * procfs.c (procfs_pass_signals): Fix advance declaration.
7057 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7059 * target.h (struct target_ops): Remove to_notice_signals;
7060 add to_pass_signals.
7061 (target_notice_signals): Remove.
7062 (target_pass_signals): Add prototype.
7063 * target.c (update_current_target): Remove to_notice_signals;
7064 mention to_pass_signals.
7065 (target_pass_signals): New function.
7066 (debug_to_notice_signals): Remove.
7067 (setup_target_debug): Do not install debug_to_notice_signals.
7069 * infrun.c (signal_pass): New global.
7070 (resume): Call target_pass_signals.
7071 (handle_inferior_event): Report all signals while stepping over
7072 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7073 are re-inserted when stepping over a signal handler.
7074 (signal_cache_update): New function.
7075 (signal_stop_update): Call it.
7076 (signal_print_update): Likewise.
7077 (signal_pass_update): Likewise.
7078 (handle_command): Call signal_cache_update and target_pass_signals
7079 instead of target_notice_signals.
7080 (_initialize_infrun): Initialize signal_pass.
7082 * linux-nat.c (pass_mask): New global.
7083 (linux_nat_pass_signals): New function.
7084 (linux_nat_create_inferior): Report all signals initially.
7085 (linux_nat_attach): Likewise.
7086 (linux_nat_resume): Use pass_mask to decide whether to directly
7087 handle an inferior signal.
7088 (linux_nat_wait_1): Likewise.
7089 (linux_nat_add_target): Install to_pass_signals callback.
7091 * nto-procfs.c (notice_signals): Remove.
7092 (procfs_resume): Do not call notice_signals.
7093 (procfs_notice_signals): Remove.
7094 (procfs_pass_signals): New function.
7095 (init_procfs_ops): Install to_pass_signals callback instead of
7096 to_notice_signals callback.
7097 (_initialize_procfs): Report all signals initially.
7099 * procfs.c (procfs_notice_signals): Remove.
7100 (procfs_pass_signals): New function.
7101 (procfs_target): Install to_pass_signals callback instead of
7102 to_notice_signals callback.
7103 (register_gdb_signals): Remove.
7104 (procfs_debug_inferior): Report all signals initially.
7105 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7107 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7108 parameters; use them instead of calling signal_..._state routines.
7109 (remote_notice_signals): Remove.
7110 (remote_start_remote): Report all signals initially.
7111 (remote_resume): Do not call remote_pass_signals.
7112 (_initialize_remote): Install to_pass_signals callback instead of
7113 to_notice_signals callback.
7115 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7117 * breakpoint.c (user_settable_breakpoint): Delete.
7118 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7119 (delete_command): Check user_breakpoint_p instead of looking at
7120 the breakpoint's type.
7121 (disable_command): Ditto.
7122 (enable_command): Ditto.
7123 (delete_trace_command): Use user_breakpoint_p instead of looking
7124 at the breakpoint number directly. When checking if there are
7125 user visible tracepoints, in order to know whether to ask the user
7126 for confirmation, check whether the breakpoint is actually a
7129 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7131 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7134 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7136 MI breakpoint notifications.
7138 * annotate.c (breakpoint_changed): Adjust parameter type.
7139 * breakpoint.c (set_breakpoint_condition): Adjust to change
7140 in breakpoint_modified type.
7141 (breakpoint_set_commands): Likewise.
7142 (do_map_commands_command): Likewise.
7143 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7144 changed after bumping hit count.
7145 (bpstat_stop_status): Likewise.
7146 (print_one_breakpoint_location): Don't wrap in tuple here.
7147 (print_one_breakpoint): Always print individual locations.
7148 For locations, use unnamed tuple.
7149 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7151 (create_catchpoint, create_syscall_event_catchpoint): Call
7152 breakpoint_created obsever.
7153 (mention): Don't call breakpoint_created observer.
7154 (create_breakpoint_sal): Call breakpoint_created observer.
7155 (create_breakpoint, watch_command_1): Likewise.
7156 (create_ada_exception_breakpoint): Likewise.
7157 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7158 (locations_are_equal): New.
7159 (update_breakpoint_locations): If locations were changed, notify.
7160 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7161 Call breakpoint_modified observer.
7163 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7164 (mi_cmd_break_insert): Don't set observers for modify and delete.
7165 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7166 (mi_breakpoint_created, mi_breakpoint_deleted)
7167 (mi_breakpoint_modified): New.
7168 (mi_interpreter_init): Hook the above.
7169 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7170 while -break-* commands are executing.
7171 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7172 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7174 (mi_ui_out_impl): Hook in mi_redirect.
7175 (mi_field_skip): True to the name, skip the field, don't output
7176 a field with an empty value.
7178 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7179 (gdbpy_breakpoint_deleted): Adjust.
7180 * tui/tui-hooks.c (tui_event_create_breakpoint)
7181 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7183 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7185 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7186 (procfs_remove_hw_watchpoint): Likewise.
7188 2011-04-26 Michael Walle <michael@walle.cc>
7190 * remote.c (remote_start_remote): Ack packet after sending the
7193 2011-04-26 Yao Qi <yao@codesourcery.com>
7195 * linux-nat.c: Move common macros to ...
7196 Include linux-ptrace.h.
7197 * common/linux-ptrace.h: ... here. New.
7199 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7201 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7202 !objfile_has_partial_symbols. New comment.
7203 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7204 SYM_READ_PSYMBOLS is not present. Extend the comment.
7205 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7207 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * defs.h (ENUM_BITFIELD): Remove.
7211 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7212 Eli Zaretskii <eliz@gnu.org>
7214 * NEWS: Document the new gdbserver --once option.
7216 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7218 * MAINTAINERS: Update my email address.
7220 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7222 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7223 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7224 function call if __STDC_ISO_10646__ macro is defined.
7225 (intermediate_encoding): New prototype.
7226 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7227 to generate compile time error for unsupported gdb_wchar_t size.
7228 (ENDIAN_SUFFIX): New macro.
7229 (intermediate_encoding): New function.
7231 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7233 * ada-lang.c (struct add_partial_datum): Update the comment for
7234 expand_partial_symbol_name.
7235 (ada_add_partial_symbol_completions): Rename to ...
7236 (ada_expand_partial_symbol_name): ... here, change return type, update
7237 function comment, call symbol_completion_match instead of
7238 symbol_completion_add.
7239 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7240 and ada_expand_partial_symbol_name.
7241 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7243 (dw2_map_symbol_names): Remove.
7244 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7245 * psymtab.c (map_symbol_names_psymtab): Remove.
7246 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7247 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7249 (psym_functions): Unlist map_symbol_names_psymtab.
7250 (map_partial_symbol_names): Rename to ...
7251 (expand_partial_symbol_names): ... here, change the FUN type, call
7252 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7253 * psymtab.h (map_partial_symbol_names): Rename to ...
7254 (expand_partial_symbol_names): ... here, change the FUN type.
7255 * symfile.h (struct quick_symbol_functions): Update the description of
7256 expand_symtabs_matching. Remove map_symbol_names.
7257 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7258 (struct add_name_data): Update the comment for
7259 expand_partial_symbol_name.
7260 (add_partial_symbol_name): Rename to ...
7261 (expand_partial_symbol_name): ... here. Replace
7262 completion_list_add_name call by strncmp.
7263 (default_make_symbol_completion_list_break_on): Use now
7264 expand_partial_symbol_names and expand_partial_symbol_name.
7265 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7267 2011-04-20 Tom Tromey <tromey@redhat.com>
7269 * dwarf2read.c (save_gdb_index_command): Replace format
7270 documentation with a pointer to the manual.
7272 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7274 * regcache.c: Include remote.h.
7275 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7276 (regcache_dump): Handle regcache_dump_remote.
7277 (maintenance_print_remote_registers): New function.
7278 (_initialize_regcache): Install "maint print remote-registers"
7280 * remote.c (map_regcache_remote_table): New function, factored out
7282 (init_remote_state): ... here.
7283 (remote_register_number_and_offset): New.
7284 * remote.h (remote_register_number_and_offset): Declare.
7286 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7288 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7289 null_ptid, assume and allow a NULL address space, instead of
7290 asking the target for the ptid's address space.
7291 * infrun.c (ptid_is_pid): Remove assertion.
7293 2011-04-19 Tom Tromey <tromey@redhat.com>
7295 * windows-tdep.c (windows_xfer_shared_library):
7296 * windows-nat.c (get_module_name, windows_make_so):
7297 * v850-tdep.c (v850_handle_pushm):
7298 * utils.c (null_cleanup, gdb_realpath):
7299 * ui-out.c (get_next_header):
7300 * tracepoint.c (clear_traceframe_info):
7301 * symtab.c (lookup_symtab):
7302 * serial.h (struct serial_ops):
7303 * mipsread.c (read_alphacoff_dynamic_symtab):
7304 * infcmd.c (print_return_value):
7305 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7306 * f-exp.y (parse_number):
7307 * exceptions.c (catch_exceptions):
7308 * dummy-frame.c (dummy_frame_this_id):
7309 * defs.h (struct cleanup):
7310 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7311 * arm-tdep.c (arm_push_dummy_call):
7312 * amd64-tdep.h (amd64_collect_xsave):
7313 * amd64-tdep.c (amd64_collect_xsave):
7314 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7315 * README (typing): Remove duplicate words.
7316 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7317 * infrun.c (siginfo_value_read): Fix typo.
7318 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7319 * top.c (source_line_number): Add comma.
7321 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7323 * thread.c (any_live_thread_of_process): Prioritize threads
7324 that are not executing.
7325 * gdbthread.h (any_live_thread_of_process): Update comment
7326 as per above change.
7328 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7330 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7331 (scan_xcoff_symtab): Likewise.
7333 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7335 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7338 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7339 Pedro Alves <pedro@codesourcery.com>
7341 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7342 variables to simplify code and avoid == operator at end of
7343 line as this is against GNU coding standards.
7345 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7347 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7348 lm_name to name_lm to avoid conflict with lm_name function.
7350 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7352 ARI fixes: Use only lowercase function name for static functions.
7353 * nto-tdep.c (LM_ADDR): Rename to...
7354 (lm_addr): New function name.
7355 (nto_relocate_section_addresses): Adapt to change above.
7356 * solib-sunos.c (LM_ADDR): Rename to...
7357 (lm_addr): New function name.
7358 (LM_NEXT): Rename to...
7359 (lm_next): New function name.
7360 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7361 function name changes above.
7362 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7363 (lm_addr_from_link_map): New function name.
7364 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7365 (has_lm_dynamic_from_link_map): New function name.
7366 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7367 (lm_dynamic_from_link_map): New function name.
7368 (LM_ADDR_CHECK): Rename to...
7369 (lm_addr_check): New function name.
7370 (LM_NEXT): Rename to...
7371 (lm_next): New function name.
7372 (LM_PREV): Rename to...
7373 (lm_prev): New function name.
7374 (LM_NAME): Rename to...
7375 (lm_name): New function name.
7376 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7377 (ignore_first_link_map_entry): New function name.
7378 (svr4_keep_data_in_core): Adapt to function name changes above.
7379 (svr4_current_sos): Likewise.
7380 (enable_break): Likewise.
7381 (svr4_relocate_section_addresses): Likewise.
7383 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7386 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7387 sprintf. Simplify code and avoid loosing memory.
7388 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7389 (call0_frame_cache): Remove && operator from end of line.
7391 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7393 Fix libraries displacement if they change whether they were prelinked.
7394 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7395 does not match. Comment why.
7397 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7399 * corelow.c: Include wrapper.h.
7400 (core_open): Call now gdb_target_find_new_threads.
7401 * wrapper.c: Include target.h.
7402 (gdb_target_find_new_threads): New.
7403 * wrapper.h (gdb_target_find_new_threads): New declaration.
7405 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7408 even if !TARGET_HAS_EXECUTION.
7410 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7412 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7413 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7414 bfd_get_synthetic_symtab.
7415 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7416 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7417 parameter parent, remove the call to add_separate_debug_objfile.
7418 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7419 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7420 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7421 parent, new comment for it, call add_separate_debug_objfile for it.
7422 (symbol_file_add_separate): Pass objfile as the parameter parent,
7423 remove the call to add_separate_debug_objfile.
7424 (symbol_file_add_from_bfd): New parameter parent, pass it.
7425 (symbol_file_add): Pass NULL to the new parameter parent.
7426 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7428 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7430 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7433 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 Fix Python access to inlined frames.
7436 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7437 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7439 2011-04-15 Tom Tromey <tromey@redhat.com>
7441 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7443 2011-04-15 Gary Benson <gbenson@redhat.com>
7445 * MAINTAINERS: Add myself to write-after-approval section.
7447 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7449 * remote-sim.c (sim_command_completer): New function.
7450 (_initialize_remote_sim): Set completer to sim_command_completer.
7452 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7454 * breakpoint.c (print_exception_catchpoint): Rename to ...
7455 (print_it_exception_catchpoint): ... this.
7456 (gnu_v3_exception_catchpoint_ops): Update with new name
7457 for print_it_exception_catchpoint.
7459 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7461 * MAINTAINERS: Add myself for write after approval privileges.
7463 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7465 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7467 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7469 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7471 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7473 * breakpoint.c (save_breakpoints): Verify whether
7474 breakpoint_ops.print_recreate is defined before calling it.
7476 2011-04-11 Gary Benson <gbenson@redhat.com>
7478 Fix failure with --enable-maintainer-mode.
7479 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7481 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 * symtab.c (search_symbols): Reorder the KIND description in the
7485 function comment. Remove the unused 4th element of types, types2,
7486 types3 and types4. New gdb_assert on KIND.
7487 (symtab_symbol_info): Remove the unused 4th element of classnames.
7488 New gdb_assert on KIND.
7489 * symtab.h (enum search_domain): New warning in the enum comment.
7490 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7493 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 Fix crash of gdb save-index on a STABS file.
7496 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7499 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7501 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7502 * dwarf2read.c: Include ctype.h.
7503 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7505 (dwarf2_add_field): Fix new_field->accessibility by calling
7506 dwarf2_default_access_attribute. Restructure setting accessibility
7508 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7509 is_private and is_protected by calling
7510 dwarf2_default_access_attribute.
7512 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7514 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7515 to the initialization.
7517 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7519 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7522 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7524 Remove support for old Cygwin 1.5 versions.
7525 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7526 function on old Cygwin version.
7527 * windows-nat.c: Remove cygwin version check and always define
7528 __USEWIDE for Cygwin compilation.
7530 2011-04-07 Yao Qi <yao@codesourcery.com>
7532 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7534 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7535 (arm_copy_svc): Remove parameters INSN and TO.
7536 (decode_svc_copro): Update caller.
7537 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7538 from function pointer `copy_svc_os'.
7540 2011-04-07 Yao Qi <yao@codesourcery.com>
7542 * arm-tdep.c (cleanup_branch): Set a correct return address in
7543 LR for ARM and Thumb.
7545 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7548 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7549 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7550 in the function comment, a new note on values compatibility.
7551 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7552 * symtab.h (SYMBOL_HASH_NEXT): New.
7554 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7556 * ppc-linux-nat.c (check_condition): Add len output parameter.
7557 Set it based on the memory region referenced in the condition
7558 expression. Update all callers.
7560 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7562 Fix crash regression on systems featuring .gdb_index.
7563 * objfiles.c (free_objfile): Move the
7564 forget_cached_source_info_for_objfile call earlier. Comment it.
7565 Extend the comment for objfile_free_data.
7567 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7569 Fix regression of displaying the debug format.
7570 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7573 2011-04-04 Tom Tromey <tromey@redhat.com>
7575 * cli/cli-interp.c (struct captured_execute_command_args):
7577 (do_captured_execute_command): Remove.
7578 (safe_execute_command): Use TRY_CATCH.
7579 * cli/cli-script.c (struct wrapped_read_command_file_args):
7581 (wrapped_read_command_file): Remove.
7582 (script_from_file): Use TRY_CATCH.
7583 * exceptions.c (catch_exception): Remove.
7584 * exceptions.h (catch_exception): Remove.
7585 (deprecated_throw_reason): Update comment.
7586 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7587 argument to 'context'.
7588 (mi_execute_command): Use TRY_CATCH.
7589 * remote.c (struct start_remote_args): Remove.
7590 (remote_start_remote): Update; change arguments.
7591 (remote_open_1): Use TRY_CATCH.
7593 2011-04-04 Tom Tromey <tromey@redhat.com>
7595 * tracepoint.c (scope_info): Update.
7596 * symtab.c (decode_line_spec): Update.
7597 * python/python.c (gdbpy_decode_line): Update.
7598 * linespec.h (decode_line_1): Update.
7599 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7600 (decode_compound, find_method, symtab_from_filename)
7601 (decode_variable): Likewise.
7602 * cli/cli-cmds.c (edit_command): Update.
7603 (list_command): Update.
7604 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7606 (create_breakpoint): Update.
7607 (until_break_command): Update.
7608 (addr_string_to_sals): Update.
7609 (decode_line_spec_1): Update.
7611 2011-04-04 Tom Tromey <tromey@redhat.com>
7613 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7614 (do_captured_parse_breakpoint): Remove.
7615 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7616 Use TRY_CATCH directly.
7618 2011-04-04 Tom Tromey <tromey@redhat.com>
7620 * symtab.h (free_symtab): Remove.
7621 (forget_cached_source_info_for_objfile): Declare.
7622 * symmisc.c (free_symtab): Remove.
7623 * source.c (forget_cached_source_info_for_objfile): New function.
7624 (forget_cached_source_info): Use it.
7625 * objfiles.c (free_objfile): Simplify check before calling
7626 clear_current_source_symtab_and_line. Call
7627 forget_cached_source_info_for_objfile.
7629 2011-04-04 Tom Tromey <tromey@redhat.com>
7631 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7632 (new_symtab): Don't set `free_code' on symtab.
7633 (new_linetable): Properly handle size==0.
7634 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7635 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7637 * jv-lang.c (struct jv_per_objfile_data): New.
7638 (jv_per_objfile_free): Free the data.
7639 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7640 (get_java_class_symtab): Set the `dict' field on the
7641 jv_per_objfile_data.
7642 (free_class_block): Remove.
7643 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7646 2011-04-04 Tom Tromey <tromey@redhat.com>
7648 * symfile.c (reread_symbols): Update.
7649 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7651 * objfiles.c (allocate_objfile): Update.
7652 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7654 * cp-namespace.c (lookup_symbol_file): Don't call
7655 lookup_possible_namespace_symbol.
7656 (initialize_namespace_symtab, get_possible_namespace_block)
7657 (free_namespace_block, cp_check_possible_namespace_symbols)
7658 (check_possible_namespace_symbols_loop)
7659 (check_one_possible_namespace_symbol)
7660 (lookup_possible_namespace_symbol): Remove.
7661 (maintenance_cplus_namespace): Replace with notice.
7662 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7664 2011-04-04 Tom Tromey <tromey@redhat.com>
7666 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7667 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7668 * symmisc.c (free_symtab): Don't free debugformat.
7669 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7670 (record_debugformat, record_producer): Document.
7671 * buildsym.c (end_symtab): Don't save debugformat and producer
7673 (end_symtab): Don't free debugformat and producer fields.
7674 (record_debugformat): Don't call xstrdup.
7675 (record_producer): Likewise.
7677 2011-04-04 Tom Tromey <tromey@redhat.com>
7679 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7680 (source_line_charpos, source_charpos_line): Remove.
7682 2011-04-04 Tom Tromey <tromey@redhat.com>
7684 * symtab.h (domain_enum): Split in two...
7685 (enum search_domain): New.
7686 (search_symbols): Update.
7687 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7688 redundant declarations.
7689 (search_symbols): Change 'kind' argument to search_domain.
7691 (print_symbol_info): Likewise.
7692 (symtab_symbol_info): Likewise.
7693 * symfile.h (struct quick_symbol_functions)
7694 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7695 <expand_symtabs_matching>: Likewise.
7696 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7697 (expand_symtabs_matching_via_partial): Update.
7698 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7699 (dw2_expand_symtabs_for_function): Update.
7700 * block.h: Moved anonymous enum...
7701 * defs.h (enum block_enum): ... here. Now named.
7703 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7705 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7706 * version.in: Bump version to 7.3.50.20110403-cvs.
7708 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7710 * NEWS: Create a new section for the next release branch.
7711 Rename the section of the current branch, now that it has
7714 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7716 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7717 for "fpscr" in target description.
7719 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7721 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7722 initialize it. Delay HASH initialization. Strip the part after open
7723 parenthesis for languages with qualifiers. Call do_cleanups.
7725 2011-04-01 Tom Tromey <tromey@redhat.com>
7727 * utils.c (report_command_stats): Don't print `-' for negative
7730 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7732 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7733 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7736 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7738 * breakpoint.h (bpdisp_text): Add declaration.
7739 * breakpoint.c (bpdisp_text): Make non-static.
7740 * ada-lang.c: #include "mi/mi-common.h".
7741 (print_it_exception): Rewrite to improve GDB/MI output.
7743 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7745 * arm-tdep.h (struct address_space): Add forward declaration.
7747 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7749 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7750 * arm-tdep.c (arm_override_mode): New global.
7751 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7752 execution mode heuristics.
7753 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7754 second single-step breakpoint if needed, using
7755 arm_insert_single_step_breakpoint.
7756 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7757 ARM execution mode, do not call thumb_get_next_pc_raw.
7758 (arm_get_next_pc): Encode execution mode in return value. Call
7759 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7760 (arm_insert_single_step_breakpoint): New function.
7761 (arm_software_single_step): Call it.
7762 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7763 argument to return execution mode of sigreturn target.
7764 (arm_linux_syscall_next_pc): Use it.
7765 (arm_linux_copy_svc): Update call.
7766 (arm_linux_software_single_step): Call
7767 arm_insert_single_step_breakpoint.
7769 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7771 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7774 2011-03-31 Tom Tromey <tromey@redhat.com>
7776 * varobj.c (update_dynamic_varobj_children): Properly handle
7777 errors from iterator.
7779 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7782 struct linkage name twice.
7784 2011-03-31 Tom Tromey <tromey@redhat.com>
7786 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7787 missing ">" to message.
7789 2011-03-31 Tom Tromey <tromey@redhat.com>
7791 * varobj.c (instantiate_pretty_printer): Remove duplicate
7794 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7796 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7797 if neither saved value nor register available (e.g. signal frame).
7799 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7801 * macroexp.c (expand): Avoid uninitialized variable
7804 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7806 * breakpoint.c (break_range_command): Fix typo in comment.
7808 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7809 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7811 Implement support for PowerPC BookE ranged breakpoints.
7812 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7813 * breakpoint.h (struct bp_target_info) <length>: New member
7815 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7816 instead of struct breakpoint as argument, and also add ASPACE
7817 and BP_ADDR arguments. Update all callers.
7818 (struct breakpoint_ops) <print_one_detail>: New method.
7819 (struct breakpoint) <addr_string_range_end>: New member variable.
7820 * breakpoint.c (breakpoint_location_address_match): Add function
7822 (insert_bp_location): Set bl->target_info.length.
7823 (breakpoint_here_p): Call breakpoint_location_address_match.
7824 (moribund_breakpoint_here_p): Likewise.
7825 (regular_breakpoint_inserted_here_p): Likewise.
7826 (breakpoint_thread_match): Likewise.
7827 (bpstat_stop_status): Likewise.
7828 (bpstat_check_location): Move call to
7829 breakpoint_ops.breakpoint_hit to the top.
7830 (print_one_breakpoint_location): Call
7831 breakpoint_ops.print_one_detail if available.
7832 (breakpoint_address_match_range): New function.
7833 (breakpoint_location_address_match): Likewise.
7834 (breakpoint_locations_match): Compare the length field of the
7836 (hw_breakpoint_used_count): Count resources used by all locations
7837 in a breakpoint, and use breakpoint_ops.resources_needed if
7839 (breakpoint_hit_ranged_breakpoint): New function.
7840 (resources_needed_ranged_breakpoint): Likewise.
7841 (print_it_ranged_breakpoint): Likewise.
7842 (print_one_ranged_breakpoint): Likewise.
7843 (print_one_detail_ranged_breakpoint): Likewise.
7844 (print_mention_ranged_breakpoint): Likewise.
7845 (print_recreate_ranged_breakpoint): Likewise.
7846 (ranged_breakpoint_ops): New structure.
7847 (find_breakpoint_range_end): New function.
7848 (break_range_command): Likewise.
7849 (delete_breakpoint): Free addr_string_range_end.
7850 (update_breakpoint_locations): Add SALS_END argument. Update
7851 all callers. Calculate breakpoint length if a non-zero SALS_END
7852 is given. Call breakpoint_locations_match instead of
7853 breakpoint_address_match.
7854 (reset_breakpoint): Find SaL of the end of the range if B is a
7856 (_initialize_breakpoint): Register break-range command.
7857 * defs.h (print_core_address): Add function prototype.
7858 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7860 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7861 (ppc_linux_remove_hw_breakpoint): Likewise.
7862 (_initialize_ppc_linux_nat): Initialize
7863 to_ranged_break_num_registers.
7864 * target.c (update_current_target): Add comment about
7865 to_ranged_break_num_registers.
7866 (target_ranged_break_num_registers): New function.
7867 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7869 (target_ranged_break_num_registers): Add function prototype.
7870 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7871 * utils.c (print_core_address): ... here.
7873 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7875 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7876 variable compiler warning.
7878 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7880 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7882 (re_set_breakpoint): ... to here ...
7883 (addr_string_to_sals): ... and here.
7885 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7887 * Makefile.in (SFILES): Add missing C sources.
7888 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7889 Add missing headers.
7891 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7893 * .gitignore: New file.
7895 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7897 * NEWS: Mention new cfi device simulation.
7899 2011-03-29 Tom Tromey <tromey@redhat.com>
7901 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7902 otherwise anonymous types.
7903 (dwarf2_name): Likewise.
7904 * valops.c (value_struct_elt_for_reference): Refine artificial
7905 type logic. Call error if j==-1.
7907 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7909 Fix false GCC warning.
7910 * infcall.c (find_function_addr): Initialize funaddr.
7912 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7914 Fix mingw compilation with --enable-targets=all.
7915 * remote-mips.c (gdb_usleep.h): Include header.
7916 (mips_enter_debug): Use gdb_usleep instead of sleep.
7918 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7920 Support resolution of STT_GNU_IFUNC via breakpoints.
7921 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7922 bp_gnu_ifunc_resolver_return.
7923 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7924 the loop. Support bp_gnu_ifunc_resolver and
7925 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7926 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7928 (bptype_string, print_one_breakpoint_location): Support
7929 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7930 (user_settable_breakpoint): Return true also for
7931 bp_gnu_ifunc_resolver.
7932 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7933 bp_gnu_ifunc_resolver_return.
7934 (set_breakpoint_location_function): New parameter explicit_loc,
7935 describe it. Call find_pc_partial_function_gnu_ifunc with new
7936 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7937 EXPLICIT_LOC is not set.
7938 (set_raw_breakpoint): Set EXPLICIT_LOC for
7939 set_breakpoint_location_function.
7940 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7941 set_breakpoint_location_function.
7942 (mention): Support bp_gnu_ifunc_resolver and
7943 bp_gnu_ifunc_resolver_return.
7944 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7945 set_breakpoint_location_function.
7946 (update_breakpoint_locations): Remove static.
7947 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7948 bp_gnu_ifunc_resolver_return.
7949 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7950 bp_gnu_ifunc_resolver_return.
7951 (update_breakpoint_locations): New declaration.
7952 * elfread.c: Include gdbthread.h and regcache.h.
7953 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7955 (elf_gnu_ifunc_fns): Install them.
7956 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7957 (stub_gnu_ifunc_resolver_return_stop): New functions.
7958 (stub_gnu_ifunc_fns): Install them.
7959 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7960 and gnu_ifunc_resolver_return_stop.
7961 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7963 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7965 STT_GNU_IFUNC reader implementation.
7966 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7967 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7968 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7969 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7970 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7971 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7972 (elf_gnu_ifunc_resolve_addr): New.
7973 (elf_symfile_read): Call elf_rel_plt_read.
7974 (elf_gnu_ifunc_fns): New.
7975 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7976 Install elf_gnu_ifunc_fns.
7977 * infcall.c (find_function_return_type): New function.
7978 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7979 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7980 (stub_gnu_ifunc_resolve_name): New functions.
7981 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7982 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7983 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7985 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7987 Code cleanup for later STT_GNU_IFUNC support.
7988 * infcall.c (find_function_addr): Remove variable code, use explicit
7989 dereferences for it. Move VALUE_TYPE initialization later.
7991 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7993 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7994 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7995 (clear_pc_function_cache): Clear it.
7996 (find_pc_partial_function): Rename to ...
7997 (find_pc_partial_function_gnu_ifunc): ... this function. New
7998 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7999 (find_pc_partial_function): New wrapper for this function.
8000 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8002 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8004 GDB internal type support for STT_GNU_IFUNC.
8005 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8006 (elf_symtab_read): Set mst_text_gnu_ifunc for
8007 BSF_GNU_INDIRECT_FUNCTION.
8008 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8009 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8010 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8011 nodebug_got_plt_symbol.
8012 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8013 (TYPE_GNU_IFUNC): New.
8014 (struct main_type): New field flag_gnu_ifunc.
8015 (struct builtin_type): New field builtin_func_func.
8016 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8017 nodebug_got_plt_symbol.
8018 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8019 (in_gnu_ifunc_stub): New.
8020 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8022 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8023 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8024 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8026 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8027 * symtab.c (search_symbols): Likewise.
8028 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8029 and mst_slot_got_plt.
8030 (in_gnu_ifunc_stub): New declaration.
8032 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8034 Support a ring of related breakpoints.
8035 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8036 other functions, add gdb_assert.
8037 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8038 watchpoint_del_at_next_stop.
8039 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8040 (bpstat_stop_status): Handle ring in related_breakpoint.
8041 (set_raw_breakpoint_without_location): Initialize ring in
8043 (delete_breakpoint): Handle ring in related_breakpoint, use
8044 watchpoint_del_at_next_stop.
8045 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8047 2011-03-28 Tom Tromey <tromey@redhat.com>
8050 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8051 with `language_minimal'.
8053 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8055 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8056 instead of checking for STT_ARM_TFUNC symbol type.
8058 2011-03-25 Tom Tromey <tromey@redhat.com>
8060 * linespec.c (symbol_found): Restore line-based result for
8061 non-LOC_LABEL symbols.
8063 2011-03-25 Kai Tietz <ktietz@redhat.com>
8065 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8066 instead of strcmp for comparison.
8067 (tui_source_is_displayed): Likewise.
8068 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8070 2011-03-24 Mark Wielaard <mjw@redhat.com>
8072 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8074 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8075 (find_partial_die_in_comp_unit): Likewise in comment.
8076 (read_attribute_value): Likewise.
8077 (lookup_die_type): Likewise.
8078 (dwarf_form_name): Likewise.
8079 (dump_die_shallow): Likewise.
8080 (follow_die_ref_or_sig): Likewise.
8082 2011-03-24 Tom Tromey <tromey@redhat.com>
8084 PR breakpoints/11816:
8085 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8086 (decode_compound): Update.
8087 (find_function_symbol): New function.
8088 (decode_dollar): Update.
8089 (decode_label): Add 'function_symbol' parameter. Handle
8090 function-relative labels.
8091 (decode_variable): Update.
8092 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8093 not its line. Set `special_display' and canonical name for
8096 2011-03-24 Tom Tromey <tromey@redhat.com>
8098 * linespec.h (struct linespec_result) <special_display>: New
8100 * breakpoint.h (struct breakpoint) <display_canonical>: New
8102 * breakpoint.c (print_breakpoint_location): Respect
8104 (create_breakpoint_sal): Add 'display_canonical' parameter.
8105 (create_breakpoints_sal): Update.
8106 (create_breakpoint): Update.
8108 2011-03-24 Tom Tromey <tromey@redhat.com>
8110 * symtab.c (decode_line_spec): Update.
8111 * linespec.c (build_canonical_line_spec): Change type of
8113 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8114 (find_method, decode_all_digits, decode_dollar, decode_label)
8115 (symbol_found): Likewise.
8116 (init_linespec_result): New function.
8117 * breakpoint.c (struct captured_parse_breakpoint_args)
8118 <canonical_p>: New field, replaces addr_string_p.
8119 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8121 (parse_breakpoint_sals): Likewise.
8122 (do_captured_parse_breakpoint): Update.
8123 (create_breakpoint): Use struct linespec_result.
8124 (until_break_command): Update.
8125 (breakpoint_re_set_one): Update.
8126 (decode_line_spec_1): Update.
8127 * linespec.h (struct linespec_result): New.
8128 (init_linespec_result): Declare.
8130 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8132 * regcache.c (regcache_raw_read): If the target didn't supply a
8133 given raw register, mark it as unavailable.
8135 2011-03-23 Kai Tietz <ktietz@redhat.com>
8137 * breakpoint.c (clear_command): Use filename_cmp
8138 instead of strcmp for comparison.
8139 * buildsym.c (watch_main_source_file_lossage): Likewise.
8140 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8141 checking just for slash.
8142 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8143 strrchr and filename_cmp instead of strcmp for filenames.
8144 (add_old_header_file): Use filename_cmp
8145 instead of strcmp for comparison.
8146 * exec.c (exec_set_section_address): Likewise.
8147 * macrotab.c (macro_lookup_inclusion): Likewise.
8148 (macro_lookup_inclusion): Likewise.
8149 * elfread.c (_initialize_elfread): Likewise.
8150 (elfstab_offset_sections): Likewise.
8151 (elfstab_offset_sections): Use lbasename instead of
8153 * mdebugread.c (parse_partial_symbols): Likewise.
8154 (arse_partial_symbols): Use filename_(n)cmp instead of
8155 str(n)cmp for comparison.
8156 * minsyms.c (lookup_minimal_symbol): Likewise.
8157 * psymtab.c (read_psymtabs_with_filename): Likewise.
8158 * solib.c (solib_read_symbols): Likewise.
8159 (reload_shared_libraries_1): Likewise.
8160 * symmisc.c (maintenance_print_symbols): Likewise.
8161 * symfile.c (separate_debug_file_exists): Likewise.
8162 (reread_symbols): Likewise.
8163 (find_separate_debug_file_by_debuglink): Likewise.
8164 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8165 * source.c (add_path): Likewise.
8166 * symtab.c (filename_seen): Likewise.
8167 (file_matches): Likewise.
8168 (print_symbol_info): Likewise.
8169 (maybe_add_partial_symtab_filename): Likewise.
8170 (make_source_files_completion_list): Likewise.
8171 * xml-syscall.c (init_sysinfo): Likewise.
8172 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8173 IS_DIR_SEPARATOR for checking for trailing path separator.
8175 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8177 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8178 label abort_expression.
8179 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8180 DWARF_VALUE_OPTIMIZED_OUT.
8182 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8185 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8186 to linkage_name. Invert its value. Update the function comment.
8187 (c_type_print_varspec_suffix): Invert it at the caller.
8188 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8190 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8192 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8193 errors when reading the `stop_pc'.
8194 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8197 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8199 * NEWS: Document gdb.Write stream keyword.
8201 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8204 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8205 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8206 (dwarf2_add_field): Fix new_field->accessibility for
8207 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8209 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8213 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8214 other error classes. Do not print stack trace.
8216 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8218 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8219 (dwarf2_add_field): Fix new_field->accessibility for
8220 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8222 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8224 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8225 encountering a load via a non-SP register.
8227 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8229 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8230 field in returned unwinder.
8232 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8234 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8236 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8238 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8241 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8243 * frame.c (frame_unwind_register): Throw an error if unwinding the
8245 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8246 an unwind stop reason.
8247 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8248 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8249 UNWIND_UNAVAILABLE>: New.
8250 * inline-frame.c (inline_frame_unwind): Install
8251 default_frame_unwind_stop_reason.
8252 * frame-unwind.c: Include "exceptions.h".
8253 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8254 (default_frame_unwind_stop_reason): New.
8255 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8256 (default_frame_unwind_stop_reason): Declare.
8257 (struct frame_unwind) <stop_reason>: New function pointer.
8259 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8260 * dwarf2-frame.c: Include exceptions.h.
8261 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8262 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8263 computing the CFA. If such an error was thrown, set
8264 unavailable_retaddr.
8265 (dwarf2_frame_unwind_stop_reason): New.
8266 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8268 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8269 (dwarf2_signal_frame_unwind): Ditto.
8271 * amd64-tdep.c: Include "exceptions.h".
8272 (struct amd64_frame_cache): New field "base_p".
8273 (amd64_init_frame_cache): Clear it.
8274 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8275 Avoid reading registers with functions that throw if the register
8276 is not necessary to compute the frame base.
8277 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8278 swallowing NOT_AVAILABLE_ERROR.
8279 (amd64_frame_unwind_stop_reason): New.
8280 (amd64_frame_this_id): Don't build a frame id if the frame base
8282 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8283 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8284 base_p if the frame base was computable.
8285 (amd64_sigtramp_frame_unwind_stop_reason): New.
8286 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8287 frame base was unavailable.
8288 (amd64_sigtramp_frame_unwind): Install
8289 amd64_sigtramp_frame_unwind_stop_reason.
8290 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8291 base_p if the frame base was computable.
8292 (amd64_epilogue_frame_unwind_stop_reason): New.
8293 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8294 frame base was unavailable.
8295 (amd64_epilogue_frame_unwind): Install
8296 amd64_epilogue_frame_unwind_stop_reason.
8297 * i386-tdep.c: Include "exceptions.h".
8298 (struct i386_frame_cache): New field "base_p".
8299 (i386_init_frame_cache): Clear it.
8300 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8301 Avoid reading registers with functions that throw if the register
8302 is not necessary to compute the frame base.
8303 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8304 swallowing NOT_AVAILABLE_ERROR.
8305 (i386_frame_unwind_stop_reason): New.
8306 (i386_frame_this_id): Don't build a frame id if the frame base was
8308 (i386_frame_prev_register): Handle unavailable SP.
8309 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8310 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8311 base_p if the frame base was computable.
8312 (i386_epilogue_frame_unwind_stop_reason): New.
8313 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8314 base was unavailable.
8315 (i386_epilogue_frame_unwind): Install
8316 i386_epilogue_frame_unwind_stop_reason.
8317 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8318 base_p if the frame base was computable.
8319 (i386_sigtramp_frame_unwind_stop_reason): New.
8320 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8321 base was unavailable.
8322 (i386_sigtramp_frame_unwind): Install
8323 i386_sigtramp_frame_unwind_stop_reason.
8324 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8325 type's size, not the register's.
8326 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8328 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8329 default_frame_unwind_stop_reason.
8330 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8331 (alpha_heuristic_frame_unwind): Ditto.
8332 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8333 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8334 * avr-tdep.c (avr_frame_unwind): Ditto.
8335 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8337 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8338 * frv-tdep.c (frv_frame_unwind): Ditto.
8339 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8340 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8341 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8342 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8343 (hppa_stub_frame_unwind): Ditto.
8344 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8345 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8346 (ia64_libunwind_frame_unwind)
8347 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8348 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8349 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8350 * m32c-tdep.c (m32c_unwind): Ditto.
8351 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8352 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8353 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8354 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8355 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8356 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8357 * mep-tdep.c (mep_frame_unwind): Ditto.
8358 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8359 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8360 (mips_stub_frame_unwind): Ditto.
8361 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8362 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8363 * mt-tdep.c (mt_frame_unwind): Ditto.
8364 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8365 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8366 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8367 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8368 (s390_sigtramp_frame_unwind): Ditto.
8369 * score-tdep.c (score_prologue_unwind): Ditto.
8370 * sh-tdep.c (sh_frame_unwind): Ditto.
8371 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8372 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8373 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8374 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8375 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8376 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8377 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8378 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8379 (sparc64obsd_trapframe_unwind): Ditto.
8380 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8381 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8382 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8383 * v850-tdep.c (v850_frame_unwind): Ditto.
8384 * vax-tdep.c (vax_frame_unwind): Ditto.
8385 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8386 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8387 * xtensa-tdep.c (xtensa_unwind): Ditto.
8389 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8391 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8392 there's always a frame. Use get_frame_pc_if_available instead of
8393 get_frame_pc, and if there's no PC available, don't look up a
8396 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8398 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8401 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8403 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8406 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8408 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8409 * frame.c (frame_unwind_caller_pc_if_available): New.
8410 * stack.c (frame_info): Handle unavailable PC.
8412 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8414 * frame.c (frame_unwind_pc): Rename to ...
8415 (frame_unwind_pc_if_available): ... this. New `pc' output
8416 parameter. Change return type to int. Gracefully handle
8417 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8418 happened, or 1 otherwise.
8419 (frame_unwind_pc): Reimplement on top of
8420 frame_unwind_pc_if_available.
8421 (get_frame_func): Rename to ...
8422 (get_frame_func_if_available): New `pc' output parameter. Change
8423 return type to int. Gracefully handle the PC not being available.
8424 (get_frame_func): Reimplement on top of
8425 get_frame_func_if_available.
8426 (select_frame): Handle the PC being unavailable.
8427 (get_prev_frame): Handle the PC being unavailable.
8428 (get_frame_pc_if_available): New.
8429 (get_frame_address_in_block_if_available): New.
8430 (find_frame_sal): Handle the frame PC not being available.
8431 * frame.h (get_frame_pc_if_available): Declare.
8432 (get_frame_address_in_block_if_available): Declare.
8433 (get_frame_func_if_available): Declare.
8434 * stack.c (print_frame_info): Handle the PC being unavailable.
8435 (find_frame_funname): Ditto.
8436 (print_frame): Handle the PC being unavailable.
8437 (get_frame_language): Ditto.
8438 * blockframe.c (get_frame_block): Ditto.
8439 * macroscope.c (default_macro_scope): Ditto.
8440 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8442 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8444 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8445 NOT_AVAILABLE_ERROR when evaluating the location expression.
8447 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8449 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8450 returning that the register piece is unavailable/optimized out.
8451 (write_pieced_value): Handle get_frame_register_bytes returning
8452 that the register piece is unavailable/optimized out when doing a
8453 read-modify write of a bitfield.
8454 * findvar.c (value_from_register): Handle get_frame_register_bytes
8455 returning that the register piece is unavailable/optimized out.
8456 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8457 and `unavailablep'. Throw error on bad debug info. Use
8458 frame_register instead of frame_register_read, to fill in the new
8460 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8462 * valops.c: (value_assign): Adjust, and handle
8463 get_frame_register_bytes failing.
8464 * spu-tdep.c: Include exceptions.h.
8465 (spu_software_single_step): Adjust, and handle
8466 get_frame_register_bytes failing.
8467 (spu_get_longjmp_target): Ditto.
8468 * gdbarch.sh (register_to_value): Change to return int. New
8469 parameters `optimizedp' and `unavailablep'.
8470 * gdbarch.h, gdbarch.c: Regenerate.
8471 * i386-tdep.c (i386_register_to_value): Adjust to new
8472 gdbarch_register_to_value interface.
8473 * i387-tdep.c (i387_register_to_value): Ditto.
8474 * i387-tdep.h (i387_register_to_value): Ditto.
8475 * alpha-tdep.c (alpha_register_to_value): Ditto.
8476 * ia64-tdep.c (ia64_register_to_value): Ditto.
8477 * m68k-tdep.c (m68k_register_to_value): Ditto.
8478 * mips-tdep.c (mips_register_to_value): Ditto.
8479 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8481 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8483 * findvar.c (value_of_register): Mark the value as unavailable, if
8484 the register is unavailable.
8485 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8486 (frame_register): New `unavailablep' parameter.
8487 (frame_register_read): Update comment.
8488 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8489 Set it if the register is unavailable. If the register is
8490 unavailable, clear the output buffer.
8491 (frame_register): New `unavailablep' parameter. Pass it down.
8492 (frame_unwind_register): Adjust.
8493 (put_frame_register): Adjust.
8494 (frame_register_read): Adjust. Also return false if the register
8496 (frame_register_unwind_location): Adjust.
8497 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8498 is unavailable, mark the value accordingly.
8499 * stack.c (frame_info): Handle unavailable registers.
8501 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8503 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8504 simplify, using regcache_cooked_read.
8506 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8508 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8509 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8510 (regcache_raw_read_unsigned, regcache_raw_read_part)
8511 (regcache_cooked_read, regcache_cooked_read_signed)
8512 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8513 (regcache_cooked_read_ftype): Change return to enum
8515 * regcache.c: Include exceptions.h
8516 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8517 (do_cooked_read): Change return to enum register_status. Always
8518 forward to regcache_cooked_read.
8519 (regcache_raw_read): Change return to enum register_status. If
8520 the register is not REG_VALID, memset the buffer. Return the
8522 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8523 return the register's status.
8524 (regcache_raw_read_unsigned): Ditto.
8525 (regcache_cooked_read): Change return to enum register_status.
8526 Assert that with read-only regcaches, the register's status must
8527 be known. If the regcache is read-only, and the register is not
8528 REG_VALID, memset the buffer. Return the register's status.
8529 (regcache_cooked_read_signed): Change return to enum
8530 register_status. Handle non-REG_VALID registers and return the
8532 (regcache_cooked_read_unsigned): Change return to enum
8533 register_status. Handle non-REG_VALID registers and return the
8535 (regcache_xfer_part, regcache_raw_read_part)
8536 (regcache_cooked_read_part): Change return to enum
8537 register_status. Return the register's status.
8538 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8540 (regcache_dump): Handle unavailable cooked registers.
8541 * frame.c (do_frame_register_read): Adjust interface to match
8542 regcache_cooked_read_ftype.
8543 * gdbarch.sh (pseudo_register_read): Change return to enum
8545 * gdbarch.h, gdbarch.c: Regenerate.
8547 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8549 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8550 register_status. If reading a raw register indicates the raw
8551 register is not valid, return the raw register's status,
8552 otherwise, return REG_VALID.
8553 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8554 register_status. Handle non-REG_VALID raw registers and return
8555 the register's status.
8556 * arm-tdep.c (arm_neon_quad_read)
8557 (arm_pseudo_read): Change return to enum register_status. Handle
8558 non-REG_VALID raw registers and return the register's status.
8559 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8560 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8561 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8562 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8563 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8565 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8566 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8567 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8568 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8569 (m32c_pseudo_register_read): Change return to enum
8570 register_status. Adjust.
8571 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8572 enum register_status. Return the register's status.
8573 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8574 register_status. Return the register's status.
8575 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8576 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8577 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8578 * rs6000-tdep.c (move_ev_register_func): New typedef.
8579 (e500_move_ev_register): Use it. Change return to enum
8580 register_status. Return the register's status.
8581 (do_regcache_raw_read): New function.
8582 (do_regcache_raw_write): New function.
8583 (e500_pseudo_register_read): Change return to enum
8584 register_status. Return the register's status. Use
8585 do_regcache_raw_read.
8586 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8587 (dfp_pseudo_register_read): Change return to enum register_status.
8588 Return the register's status.
8589 (vsx_pseudo_register_read): Ditto.
8590 (efpr_pseudo_register_read): Ditto.
8591 (rs6000_pseudo_register_read): Ditto.
8592 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8593 register_status. Return the register's status.
8594 * sh64-tdep.c (pseudo_register_read_portions): New function.
8595 (sh64_pseudo_register_read): Change return to enum
8596 register_status. Use pseudo_register_read_portions. Return the
8598 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8599 register_status. Return the register's status.
8600 * sh-tdep.c (pseudo_register_read_portions): New function.
8601 (sh_pseudo_register_read): Change return to enum register_status.
8602 Use pseudo_register_read_portions. Return the register's status.
8603 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8604 enum register_status. Return the register's status.
8605 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8606 * spu-tdep.c (spu_pseudo_register_read_spu)
8607 (spu_pseudo_register_read): Ditto.
8608 * xtensa-tdep.c (xtensa_register_read_masked)
8609 (xtensa_pseudo_register_read): Ditto.
8610 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8612 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8614 * python/py-value.c (valpy_getitem): Fix formatting of error function
8617 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8619 ARI fixes: Add missing internationalization markups throughout
8621 * darwin-nat-info.c: Ditto.
8624 * mi/mi-main.c: Ditto.
8626 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8628 ARI fixes: Add missing internationalization markups throughout
8631 * cp-name-parser.y: Ditto.
8634 * objc-exp.y: Ditto.
8637 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8639 ARI fixes: Messages should have no trailing new lines.
8640 * darwin-nat.c (mach_check_error): Remove trailing new line from
8641 warning function call message.
8642 * record.c (bfdcore_read): Idem for error call.
8644 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8646 * common/signals.c (target_signal_from_host): Add _ markup to error
8647 function call message.
8648 (target_signal_to_host): Add _ markup and remove trailing new line
8649 from warning call message.
8650 (target_signal_from_command): Add _ markup to error function call
8653 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8657 * python/python.c (gdbpy_write): Accept a stream argument and
8658 operate to the appropriate stream.
8659 (gdbpy_flush): Likewise.
8660 (_initialize_python): Add stream constants.
8661 (finish_python_initialization): Add GdbOutputErrorFile class.
8663 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8665 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8667 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8669 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8670 to store_signed_integer. Add debug message when relocating CALL
8671 instructions. Fix formatting of debug message.
8672 * i386-tdep.c (i386_relocate_instruction): Ditto.
8674 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8676 * target.h (struct target_ops): Remove to_lookup_symbol field.
8677 (target_lookup_symbol): Delete macro.
8678 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8679 (update_current_target, setup_target_debug): Remove handling
8680 of to_lookup_symbol target_ops field.
8681 * ada-tasks.c (get_known_tasks_addr): Remove use of
8682 target_lookup_symbol.
8683 * coffread.c (coff_symtab_read): Likewise.
8684 * dbxread.c (read_dbx_symtab): Ditto.
8686 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8689 * configure.ac: Add getthrds declaration check.
8690 * configure, config.in: Regenerate.
8691 * aix-thread.c (getthrds): Declare only if not already declared
8692 in procinfo.h. More declaration out of get_signaled_thread to
8695 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8697 * python/py-symtab.c: Populate symtab_object_methods,
8699 (stpy_is_valid): New function.
8700 (salpy_is_valid): Ditto.
8701 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8702 (sympy_is_valid): New function.
8703 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8704 (objfpy_is_valid): New function.
8705 * python/py-inferior.c: Populate inferior_object_methods.
8706 (infpy_is_valid): New function.
8707 * python/py-infthread.c: Populate thread_object_methods.
8708 (thpy_is_valid): New function.
8709 * python/py-block.c: Declare block_object_methods. Populate. Declare
8710 block_iterator_object_methods. Populate.
8711 (blpy_is_valid): New function.
8712 (blpy_iter_is_valid): Ditto.
8714 2011-03-16 Keith Seitz <keiths@redhat.com>
8716 * linespec.c (find_methods): Canonicalize NAME before looking
8718 (name_end): New function.
8719 (keep_name_info): New function.
8720 (decode_line_1): Use keep_name_info.
8721 (decode_compound): Likewise.
8722 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8723 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8726 * linespec.c (locate_first_half): Keep overload information, too.
8727 (decode_compound): Use a string to represent break characters
8729 If P points to a break character, do not increment it.
8730 For C++ and Java, keep overload information and relevant keywords.
8731 If we cannot find a symbol, search the minimal symbols.
8734 * linespec.c (decode_compound): Rename SAVED_ARG to
8736 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8738 Pass a valid block to lookup_symbol.
8739 (lookup_prefix_sym): Likewise.
8740 (find_method): Construct search name based on SYM_CLASS instead
8742 * psymtab.c (lookup_partial_symbol): Add language parameter.
8743 (lookup_symbol_aux_psymtabs): Likewise.
8744 Don't assume that the psymtab we found was the right one. Search
8745 for the desired symbol in the symtab to be certain.
8746 (psymtab_search_name): New function.
8747 (lookup_partial_symbol): Use psymtab_search_name.
8748 Add language parameter.
8749 (read_symtabs_for_function): Add language parameter and pass to
8750 lookup_partial_symbol.
8751 (find_symbol_file_from_partial): Likewise.
8753 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8756 * dwarf2read.c (noop_record_line): New function.
8757 (dwarf_decode_lines): Ignore line tables for GCd functions.
8759 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8761 Fix ARI warnings about new lines at the end of messages, which
8762 are unneeded as there is a new line added at the end of the message
8764 * darwin-nat.c (darwin_stop_inferior): Ditto.
8765 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8766 * dfp.c (decimal_to_number): Ditto.
8767 * exec.c (print_section_info): Ditto.
8768 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8769 * osdata.c (get_osdata): Ditto.
8770 * record.c (bfdcore_write): Ditto.
8771 * remote-mips.c (mips_readchar): Ditto.
8772 * remote.c (read_ptid): Ditto.
8773 * ser-mingw.c (ser_windows_raw): Ditto.
8774 * tracepoint.c (add_local_symbols): Ditto.
8775 * windows-nat.c (fake_create_process): Ditto.
8777 2011-03-16 Tom Tromey <tromey@redhat.com>
8779 * tracepoint.c (stop_tracing): Don't declare.
8780 * event-top.c (after_char_processing_hook): Add `(void)'.
8782 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8784 * NEWS: Add Parameter sub-classing description.
8786 2011-03-16 Kai Tietz <ktietz@redhat.com>
8788 * MAINTAINERS: Update my e-mail address.
8790 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8792 * MAINTAINERS: Add myself for write after approval privileges.
8794 2011-03-15 Michael Snyder <msnyder@vmware.com>
8796 * frame.c (find_frame_sal): Assert sym is not null.
8798 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8800 * objc-lang.c (selectors_info): Check strchr for null result.
8802 * stabsread.c (define_symbol): Guard against bad stabstring input.
8804 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8806 Remove trailing spaces and tabulations from pascal language
8811 p-valprint.c: Ditto.
8813 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8816 than LOW. Comment it.
8817 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8818 HIGHPC not strictly higher than LOWPC.
8820 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8822 Fix formatting of function declarations returning a pointer in
8824 * varobj.c (varobj_add_child): Ditto.
8825 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8826 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8828 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8830 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8831 for the "generic" vector ABI used with GCC 4.3 and later.
8832 (ppc64_sysv_abi_return_value): Likewise.
8834 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8836 * infcall.c (call_function_by_hand): Function return value is
8837 always a non_lval, even when using struct_return.
8839 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8841 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8842 (map_display_numbers): New.
8843 (do_delete_display): New.
8844 (undisplay_command): Use map_display_numbers.
8845 (do_enable_disable_display): New.
8846 (enable_disable_display_command): New function.
8847 (enable_display): Delete.
8848 (enable_display_command): New.
8849 (disable_display_command): Reimplement.
8850 (_initialize_printcmd): Adjust "enable display" command to use
8851 `enable_display_command' as callback.
8853 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8855 * NEWS: Add Python breakpoint 'stop' operation.
8857 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8859 * NEWS: Delete duplicate entry. Fix typo.
8861 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8863 Fix ARI warning about function names in first column.
8864 Put prototype declaration on same line as return type.
8865 * objc-exp.y: Ditto.
8867 * python/py-stopevent.h: Ditto.
8868 For long function names, split parameters to
8869 allow function name on same line as return type.
8870 * solib-pa64.c: Ditto.
8873 For long function declaration, use single line.
8874 * hppa-tdep.h: Ditto.
8875 * inferior.h: Ditto.
8877 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8879 * python/python.h: Declare gdbpy_should_stop and
8880 gdbpy_breakpoint_has_py_cond.
8881 * python/python.c: Add python.h to includes. Remove python.h from
8882 HAVE_PYTHON definition
8883 (gdbpy_should_stop): New dummy function.
8884 (gdbpy_breakpoint_has_py_cond): New dummy function.
8885 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8886 sub-classing capabilities.
8887 (gdbpy_should_stop): New function.
8888 (gdbpy_breakpoint_has_py_cond): New function.
8889 (local_setattro): New function.
8890 * breakpoint.c (condition_command): Add check for Python 'stop'
8892 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8893 operation function as part of stop/continue tests.
8895 2011-03-14 Tom Tromey <tromey@redhat.com>
8898 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8899 (needs_frame_dwarf_call): Likewise.
8901 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8903 Fix ARI warning about functions without parameters that do not
8905 * breakpoint.c (all_tracepoints): Replace () by (void).
8906 * f-exp.y (match_string_literal): Ditto.
8908 * m2-exp.y (yylex): Ditto.
8909 * mep-tdep.c (current_me_module): Ditto.
8910 (current_options): Ditto.
8911 (current_cop_data_bus_width): Ditto.
8912 (current_cr_names): Ditto.
8913 (current_cr_is_float): Ditto.
8914 (current_ccr_names): Ditto.
8915 * objc-exp.y (yylex): Ditto.
8916 * p-exp.y (yylex): Ditto.
8917 * remote.c (send_interrupt_sequence): Ditto.
8918 * tracepoint.c (current_trace_status): Ditto.
8919 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8920 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8922 2011-03-11 Michael Snyder <msnyder@vmware.com>
8924 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8925 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8926 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8927 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8928 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8930 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8931 (delete_async_event_handler): Ditto.
8933 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8935 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8937 * top.c (set_verbose): Assert showcmd was found.
8939 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8941 * xtensa-tdep.c (warning_once): Correct style issues.
8943 2011-03-11 Yao Qi <yao@codesourcery.com>
8945 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8947 2011-03-11 Andreas Schwab <schwab@redhat.com>
8949 * common/aclocal.m4: Remove.
8951 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8953 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8954 (xtensa_write_register, xtensa_read_register): Likewise.
8955 (xtensa_hextochar): Removed.
8956 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8958 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8960 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8961 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8962 (xtensa_alloc_frame_cache): Add initialization for new fields.
8963 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8964 (warning_once): New function.
8965 (xtensa_insn_kind): New item c0opc_and.
8966 (call0_classify_opcode): Add the case for AND instruction.
8967 (call0_track_op): Change arguments. New local variable litbase.
8968 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8969 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8971 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8972 (call0_analyze_prologue): Update the comments. Change arguments.
8973 Add the variety of updates to handle extended prologues, which now can
8974 conduct dynamic stack adjustments.
8975 (call0_frame_cache): Likewise.
8976 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8977 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8979 2011-03-10 Michael Snyder <msnyder@vmware.com>
8981 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8982 (cmd_qtframe): Ditto.
8983 (cmd_qtbuffer): Ditto.
8984 (cmd_bigqtbuffer): Ditto.
8986 2011-03-10 Tom Tromey <tromey@redhat.com>
8988 * tracepoint.c (trace_actions_command): Update.
8989 * thread.c (thread_apply_command): Update.
8990 * reverse.c (delete_bookmark_command): Update.
8991 (bookmarks_info): Update.
8992 * printcmd.c (undisplay_command): Update.
8993 * memattr.c (mem_enable_command): Update.
8994 (mem_disable_command): Update.
8995 (mem_delete_command): Update.
8996 * inferior.c (detach_inferior_command): Update.
8997 (kill_inferior_command): Update.
8998 (remove_inferior_command): Update.
8999 * cli/cli-utils.h (struct get_number_or_range_state): New.
9000 (init_number_or_range): Declare.
9001 (get_number_or_range): Update.
9002 * cli/cli-utils.c (init_number_or_range): New function.
9003 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9005 (number_is_in_list): Update.
9006 * breakpoint.h (get_tracepoint_by_number): Update.
9007 * breakpoint.c (map_breakpoint_numbers): Update for change to
9008 get_number_or_range.
9009 (find_location_by_number): Use get_number, not
9010 get_number_or_range.
9011 (trace_pass_set_count): New function.
9012 (trace_pass_command): Update for change to get_number_or_range.
9014 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9017 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9019 * python/py-param.c (add_setshow_generic): Add set/show callback
9020 parameters. Register Python object context.
9021 (get_show_value): New function.
9022 (get_set_value): New function.
9023 (call_doc_function): New function.
9024 (get_doc_string): Move behind get_show_value/get_set_value.
9026 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9028 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9030 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9032 * xtensa-tdep.c (xtensa_read_register): Add comment.
9033 (xtensa_write_register): Likewise.
9034 (xtensa_hextochar): Add comment and update to match coding conventions.
9035 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9036 (execute_l32e, execute_s32e, execute_code): Update comments.
9037 (xtensa_exception_handler_t): Update to match coding conventions.
9038 (xtensa_insn_kind): Likewise.
9040 2011-03-09 Michael Snyder <msnyder@vmware.com>
9042 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9044 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9046 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9048 2011-03-09 Tom Tromey <tromey@redhat.com>
9050 * thread.c (restore_selected_frame): Handle frame_level == -1.
9051 (make_cleanup_restore_current_thread): Use
9052 get_selected_frame_if_set.
9053 * frame.h (get_selected_frame_if_set): Declare.
9054 * frame.c (get_selected_frame_if_set): New function.
9056 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9058 * cli/cli-cmds.c (shell_escape): Use lbasename.
9059 * coffread.c (coff_start_symtab): Constify parameter.
9060 (complete_symtab): Constify `name' parameter.
9061 (coff_symtab_read): Constify `filestring' local.
9062 (coff_getfilename): Constify return and `result' local.
9064 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9065 * linux-fork.c (info_checkpoints_command): Use lbasename.
9066 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9067 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9068 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9069 * procfs.c (procfs_make_note_section): Use lbasename.
9070 * tui/tui-io.c (printable_part): Constity return and parameter.
9072 (print_filename): Constify parameters, and local `s'.
9073 (tui_rl_display_match_list): Constify local `temp'.
9075 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9078 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9079 Fix DWARF-3+ DW_AT_accessibility default assumption.
9080 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9081 cu->header.version >= 3.
9083 2011-03-09 Yao Qi <yao@codesourcery.com>
9085 * common/Makefile.in: Remove.
9086 * common/configure: Remove.
9087 * common/configure.ac: Remove.
9089 2011-03-09 Yao Qi <yao@codesourcery.com>
9092 2011-02-11 Yao Qi <yao@codesourcery.com>
9094 * common/Makefile.in: Add copyright header.
9096 2011-02-11 Yao Qi <yao@codesourcery.com>
9098 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9100 * configure.ac: Add common to sub dir.
9101 * configure: Regenerate.
9103 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9105 * xtensa-tdep.c (call0_ret): New function.
9106 (xtensa_skip_prologue): Speed up analysis.
9108 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9110 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9111 while executing MI command -data-list-changed-registers.
9113 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9115 * xtensa-tdep.c (xtensa_read_register): New function.
9116 (xtensa_write_register): New function.
9117 (xtensa_find_register_by_name): New function.
9118 (xtensa_windowed_frame_cache): Update comments in type description.
9119 (xtensa_frame_cache): Likewise.
9120 (xtensa_window_interrupt_insn): New function.
9121 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9122 (xtensa_insn_kind): Add new instructions.
9123 (rwx_special_register): New function.
9124 (call0_classify_opcode): Add new instructions to the analysis.
9125 (a0_saved, a7_saved, a11_saved): New variables.
9126 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9127 (execute_l32e): New function.
9128 (execute_s32e): New function.
9129 (xtensa_exception_handler_t): New type.
9130 (execute_code): New function.
9131 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9132 analysis for Xtensa Window Exception handlers.
9134 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9136 * xtensa-tdep.c (TX_PS): New.
9137 (windowing_enabled): Update to count for Call0 ABI.
9138 (xtensa_hextochar): New.
9139 (xtensa_init_reggroups): Make algorithm generic.
9140 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9142 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9144 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9146 2011-03-08 Michael Snyder <msnyder@vmware.com>
9148 * i386-tdep.c (i386_follow_jump): Check return value of
9150 (i386_analyze_struct_return): Ditto.
9151 (i386_skip_probe): Ditto.
9152 (i386_match_insn): Ditto.
9153 (i386_skip_noop): Ditto.
9154 (i386_analyze_frame_setup): Ditto.
9155 (i386_analyze_register_saves): Ditto.
9156 (i386_skip_prologue): Ditto.
9157 (i386_skip_main_prologue): Ditto.
9159 * target.c (read_whatever_is_readable): Fix memory leak.
9161 * i386-tdep.c (i386_process_record): Document fall through.
9163 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9165 Fix DWARF-3+ DW_AT_accessibility default assumption.
9166 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9167 cu->header.version >= 3.
9169 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9171 * remote.c (remote_check_symbols): Skip if the target has no
9174 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9176 * target.c (read_whatever_is_readable): Reformat comment,
9177 with a minor typo fix. Minor reformatting of the code.
9179 2011-03-08 Yao Qi <yao@codesourcery.com>
9181 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9182 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9183 Use cached result instead of calling displaced_in_arm_mode again.
9184 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9185 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9186 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9187 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9188 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9189 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9190 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9191 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9192 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9193 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9194 (arm_catch_kernel_helper_return): Likewise.
9195 * gdb/arm-tdep.h : Update function declarations.
9197 2011-03-07 Michael Snyder <msnyder@vmware.com>
9199 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9201 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9203 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9205 * elfread.c (elf_symtab_read): Stop memory leak.
9207 * main.c (captured_main): Fix memory leak.
9209 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9211 * ada-lang.c (compare_names): Call is_name_suffix with string1
9214 2011-03-07 Tom Tromey <tromey@redhat.com>
9216 * xcoffread.c (xcoff_sym_fns): Update.
9217 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9218 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9219 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9220 (symbol_file_add_with_addrs_or_offsets): Likewise.
9221 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9222 * somread.c (som_sym_fns): Update.
9223 * psymtab.h (require_partial_symbols): Declare.
9224 * psymtab.c (require_partial_symbols): New function.
9225 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9226 (ALL_OBJFILE_PSYMTABS): Undef.
9227 (ALL_PSYMTABS): Move from psympriv.h.
9228 (lookup_partial_symtab, find_pc_sect_psymtab)
9229 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9230 (find_last_source_symtab_from_partial)
9231 (forget_cached_source_info_partial)
9232 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9233 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9234 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9235 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9236 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9237 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9238 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9239 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9240 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9242 * mipsread.c (ecoff_sym_fns): Update.
9243 * machoread.c (macho_sym_fns): Update.
9244 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9245 (read_psyms): New function.
9246 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9247 (elf_sym_fns_lazy_psyms): New global.
9248 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9249 dwarf2_build_psymtabs.
9250 * dbxread.c (aout_sym_fns): Update.
9251 * coffread.c (coff_sym_fns): Update.
9253 2011-03-07 Tom Tromey <tromey@redhat.com>
9255 * infrun.c (print_exited_reason): Include inferior id and pid in
9258 2011-03-07 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9262 (target_has_execution_1): Update.
9263 (target_has_execution_current): Declare.
9264 (target_has_execution): Call target_has_execution_current.
9265 (default_child_has_execution): Update.
9266 * target.c (default_child_has_execution): Add 'the_ptid'
9268 (target_has_execution_1): Likewise.
9269 (target_has_execution_current): New function.
9270 (add_target): Update.
9271 (init_dummy_target): Update.
9272 * remote-m32r-sdi.c (m32r_has_execution): New function.
9273 (init_m32r_ops): Use it.
9274 * record.c (record_core_has_execution): Now static. Add
9275 'the_ptid' parameter.
9276 * inferior.c (have_live_inferiors): Don't save current thread.
9277 Use target_has_execution_1.
9279 2011-03-07 Yao Qi <yao@codesourcery.com>
9281 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9283 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9285 * elfread.c (elf_symtab_read): Minor reformatting.
9287 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9289 * objc-lang.c (selectors_info): Minor reformatting.
9291 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9293 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9295 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9296 Michael Snyder <msnyder@vmware.com>
9298 * ada-valprint.c (ada_val_print_array): Move the declaration of
9299 "byte_order" and "elttype" inside the block where these variables
9300 are actually used. Remove some special handling for the case
9301 where "elttype" and "eltlen" are null. Replace by a comment
9302 and a couple of assertion checks.
9304 2011-03-05 Michael Snyder <msnyder@vmware.com>
9306 * source.c (add_path): Replace semicolon at end of block.
9307 * dwarf2expr.c (execute_stack_op): Ditto.
9309 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9311 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9312 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9313 (bfin-*-*): Likewise.
9315 2011-03-05 Michael Snyder <msnyder@vmware.com>
9317 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9318 * mdebugread.c (parse_symbol): Ditto.
9319 * parse.c (parse_exp_in_context): Ditto.
9320 * source.c (add_path): Ditto.
9321 * utils.c (gnu_debuglink_crc32): Ditto.
9322 * varobj.c (variable_language): Ditto.
9324 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9326 2011-03-04 Michael Snyder <msnyder@vmware.com>
9328 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9330 * symfile.c (simple_overlay_update): Check for null return value
9331 from lookup_minimal_symbol.
9333 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9335 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9337 * eval.c (parse_and_eval_address_1): Remove function.
9338 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9339 instead of parse_and_eval_address_1.
9340 * value.h (parse_and_eval_address_1): Remove prototype.
9342 2011-03-04 Michael Snyder <msnyder@vmware.com>
9344 * remote.c (putpkt_binary): Document that case stmt falls through.
9346 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9348 * breakpointc (print_it_typical): Move NULL check from here...
9349 (print_bp_stop_message): ... to here.
9351 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9353 * breakpoint.c (enable_command): Use break instead of continue,
9354 and fill in a missing break.
9355 (disable_command): Ditto.
9357 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9359 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9360 (terminal_save_ours): Remove misleading comment.
9361 (inflow_inferior_data_cleanup): Free ttystate.
9362 (inflow_inferior_exit): Likewise.
9363 (copy_terminal_info): Copy ttystate.
9365 * serial.c (serial_copy_tty_state): New function.
9366 * serial.h (serial_copy_tty_state): Add prototype.
9367 (struct serial_ops): Add copy_tty_state callback.
9368 * ser-base.c (ser_base_copy_tty_state): New function.
9369 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9370 * ser-go32.c (dos_copy_tty_state): New function.
9371 (dos_ops): Install copy_tty_state callback.
9372 * ser-mingw.c (_initialize_ser_windows): Likewise.
9373 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9374 * ser-unix.c (hardwire_copy_tty_state): New function.
9375 (_initialize_ser_hardwire): Install it.
9377 2011-03-04 Michael Snyder <msnyder@vmware.com>
9379 * breakpoint.c (create_breakpoint): Add missing break statement.
9381 Reverting this patch:
9382 * infcall.c (call_function_by_hand): Add break statements for lint.
9384 Reverting this patch:
9385 * cli/cli-script.c (script_from_file): Add break for lint.
9387 2011-03-04 Michael Snyder <msnyder@vmware.com>
9389 * solib.c (reload_shared_libraries_1): Close memory leak.
9391 2011-03-03 Tom Tromey <tromey@redhat.com>
9394 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9397 2011-03-03 Michael Snyder <msnyder@vmware.com>
9399 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9400 fields of struct 'st' to zero.
9402 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9403 sal.pspace before calling set_current_source_symtab_and_line.
9405 2011-03-03 Yao Qi <yao@codesourcery.com>
9407 * Makefile.in (configure-common): Remove. Let Makefile
9408 in dir common to rebuild itself.
9409 (common/Makefile): Likewise.
9411 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9413 * utils.c (parse_escape): Add i18n markup in error message.
9415 2011-03-03 Yao Qi <yao@codesourcery.com>
9417 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9419 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9420 (displaced_write_reg, displaced_read_reg): Likewise.
9421 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9422 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9423 (cleanup_branch): Replace magic number 14 and 15 with
9424 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9426 2011-03-02 Michael Snyder <msnyder@vmware.com>
9428 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9430 * cli/cli-script.c (script_from_file): Add break for lint.
9432 * mdebugread.c (parse_partial_symbols): Fix indent.
9434 * target-descriptions.c (tdesc_gdb_type): No need to call
9435 xstrdup, callee saves a copy.
9437 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9439 * infcall.c (call_function_by_hand): Add break statements for lint.
9441 * utils.c (parse_escape): Escape the escape char.
9443 * python/py-inferior.c (build_inferior_list): Error out if
9444 PyList_Append fails.
9445 (gdbpy_inferiors): Error out if build_inferior_list fails.
9447 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9450 * record.c (record_restore): Move printf to before error return.
9452 2011-03-02 Yao Qi <yao@codesourcery.com>
9454 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9455 is_thumb and insn_size.
9456 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9457 on both ARM and Thumb mode.
9458 (arm_process_displaced_insn): Set is_thumb and insn_size.
9459 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9460 (arm_displaced_step_fixup): Likewise.
9462 2011-03-01 Michael Snyder <msnyder@vmware.com>
9464 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9466 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9468 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9470 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9472 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9475 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9476 which shadows function parameter.
9478 * tracepoint.c (create_tsv_from_upload): Superfluous call
9479 to xstrdup. Callee already calls xstrdup.
9481 * linespec.c (decode_line_1): Remove unnecessary null check.
9483 * tracepoint.c (scope_info): Fix mem leak, remove underused
9486 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9487 superfluous null check.
9489 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9490 (value_of_builtin_frame_fp_reg): Ditto.
9492 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9494 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9497 * linespec.c (decode_line_1): Check for null before dereference.
9499 * reverse.c (record_restore): Move null-check to before pointer
9502 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9504 * objc-lang.c (selectors_info): Add explanitory comment.
9505 (classes_info): Ditto.
9507 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9509 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9510 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9511 versions of the trampoline. Handle Thumb vs. ARM addresses.
9512 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9513 (arm_linux_init_abi): Install it.
9514 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9515 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9517 2011-02-28 Michael Snyder <msnyder@vmware.com>
9519 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9520 a little bigger, to avoid possibility of an overflow.
9522 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9523 buffers a little bigger, to avoid possibility of an overflow.
9525 * coffread.c (coff_getfilename): Add check to avoid overflow.
9527 * objc-lang.c (selectors_info): Add a small safety margin to
9529 (classes_info): Error out on too long REGEXP.
9531 * infrun.c (handle_inferior_event): Remove unused function call.
9533 * fork-child.c (fork_inferior): Remove ifdef'd code and
9536 * linux-thread-db.c (attach_thread): Discard unused value.
9538 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9540 * remote.c (remote_get_noisy_reply): Discard unused value.
9541 (remote_vcont_resume): Ditto.
9542 (remote_stop_ns): Ditto.
9544 * linespec.c (decode_objc): Delete unused variable.
9546 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9548 * dwarf2read.c (add_partial_symbol): Discard unused values.
9549 (read_base_type): Delete unused variable.
9551 * dbxread.c (read_dbx_symtab): Discard unused value.
9553 * eval.c (evaluate_subexp_standard): Delete unused variable,
9554 and discard unused values.
9556 * infcmd.c (_initialize_infcmd): Discard unused values.
9558 * stabsread.c (rs6000_builtin_type): Missing break statement.
9560 * dbxread.c (process_one_symbol): Discard unused value.
9562 * coffread.c (coff_end_symtab): Delete unused variable.
9564 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9565 (dwarf2_add_typedef): Delete unused variable.
9566 (read_namespace): Ditto.
9567 (dwarf_decode_macros): Ditto.
9569 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9571 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9573 * p-valprint.c (pascal_val_print): Discard unused value.
9575 * utils.c (nquery): Call va_end before return;
9579 * proc-service.c (ps_plog): Call va_end before return.
9581 2011-02-28 Tom Tromey <tromey@redhat.com>
9583 * python/python.c (gdbpy_value_cst): New global.
9584 (_initialize_python): Initialize it.
9585 * python/python-internal.h (gdbpy_value_cst): Declare.
9586 * python/py-value.c (convert_value_from_python): Use
9589 2011-02-28 Michael Snyder <msnyder@vmware.com>
9591 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9593 * breakpoint.c (catch_syscall_completer): Free malloced list.
9595 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9597 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9598 (lval_func_check_synthetic_pointer): Ditto.
9599 (lval_func_free_closure): Fix use-after-free.
9601 2011-02-28 Tom Tromey <tromey@redhat.com>
9603 * psymtab.c (expand_partial_symbol_tables): Use
9604 ALL_OBJFILE_PSYMTABS.
9606 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9608 * objc-lang.c (selectors_info): Error on too long REGEXP.
9610 2011-02-28 Michael Snyder <msnyder@vmware.com>
9612 * python/py-param.c (set_parameter_value): Add missing
9615 * linux-record.c (record_linux_system_call): Add missing
9618 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9620 * breakpoint.c (print_one_breakpoint_location): Remove unused
9621 argument PRINT_ADDRESS_BITS. Update callers.
9622 (print_one_breakpoint): Likewise.
9624 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9626 * breakpoint.c (wrap_indent_at_field): New function.
9627 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9628 Allocate ui_stream locally instead of using STB argument.
9629 (print_one_breakpoint_location): Update call.
9630 * ui-out.c (ui_out_query_field): New function.
9631 * ui-out.h (ui_out_query_field): Add prototype.
9633 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9635 From Michael Snyder <msnyder@vmware.com>
9636 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9638 2011-02-27 Michael Snyder <msnyder@vmware.com>
9640 * objc-lang.c (selectors_info): Prevent string overrun.
9642 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9645 * symtab.c (rbreak_command): Move variable 'file_name' to
9648 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9649 param with a local variable of the same name.
9651 2011-02-27 Michael Snyder <msnyder@vmware.com>
9653 * value.c (value_from_history_ref): New function.
9654 * value.h (value_from_history_ref): Export.
9655 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9656 to parse value history references.
9657 * cli/cli-utils.h (get_number_trailer): Update comment.
9659 2011-02-27 Michael Snyder <msnyder@vmware.com>
9661 * inferior.c (detach_inferior_command): Use get_number_or_range.
9662 (kill_inferior_command): Ditto.
9663 (remove_inferior_command): Ditto.
9664 (initialize_inferiors): Make command names plural.
9665 Update help strings.
9667 2011-02-27 Michael Snyder <msnyder@vmware.com>
9669 * darwin-nat-info.c: Fix comment typo.
9670 * dwarf2expr.h: Ditto.
9671 * fbsd-nat.c: Ditto.
9672 * fbsd-nat.h: Ditto.
9673 * frame-unwind.h: Ditto.
9675 * hppa-hpux-tdep.c: Ditto.
9676 * i386-linux-nat.c: Ditto.
9677 * linux-nat.c: Ditto.
9678 * nbsd-nat.c: Ditto.
9679 * nbsd-nat.h: Ditto.
9680 * ppc-linux-tdep.c: Ditto.
9683 * tui/tui-winsource.c: Ditto.
9685 2011-02-26 Michael Snyder <msnyder@vmware.com>
9687 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9689 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9691 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9692 with a local variable of the same name.
9694 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9695 param with a local variable of the same name.
9696 (i387_supply_xsave): Ditto.
9698 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9699 that it does not shadow a function parameter.
9701 * i386-nat.c (i386_length_and_rw_bits): Document that case
9702 statement is meant to fall through.
9704 * expprint.c (dump_subexp_body_standard): Document that case
9705 statement is meant to fall through.
9707 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9708 dead if statement. Condition can't be false.
9710 2011-02-25 Michael Snyder <msnyder@vmware.com>
9712 * arm-tdep.c: Fix typos in comments.
9713 * bsd-uthread.c: Ditto.
9714 * completer.c: Ditto.
9716 * cp-namespace.c: Ditto.
9717 * cp-support.c: Ditto.
9718 * cris-tdep.c: Ditto.
9720 * dwarf2read.c: Ditto.
9722 * gdbtypes.h: Ditto.
9723 * inferior.h: Ditto.
9724 * mdebugread.c: Ditto.
9725 * mips-tdep.c: Ditto.
9726 * ppc-linux-nat.c: Ditto.
9727 * ppc-linux-tdep.c: Ditto.
9728 * printcmd.c: Ditto.
9729 * sol-thread.c: Ditto.
9730 * solib-frv.c: Ditto.
9732 * sparc64-tdep.c: Ditto.
9733 * spu-tdep.c: Ditto.
9734 * stabsread.c: Ditto.
9739 * python/py-block.c: Ditto.
9740 * python/py-symbol.c: Ditto.
9741 * python/py-symtab.c: Ditto.
9742 * python/py-value.c: Ditto.
9743 * tui/tui-win.c: Ditto.
9745 2011-02-25 Michael Snyder <msnyder@vmware.com>
9747 * inferior.c (print_inferior): Accept a string instead of an int
9748 for requested_inferiors, and use get_number_or_range to parse it.
9749 (info_inferiors_command): Pass args string to print_inferior.
9750 (initialize_inferiors): Change help string for info inferiors.
9751 * inferior.h (print_inferior): Export prototype change.
9753 2011-02-25 Tom Tromey <tromey@redhat.com>
9755 * common/ax.def (invalid2): Set to 0x31.
9757 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9761 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9763 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9765 2011-02-24 Michael Snyder <msnyder@vmware.com>
9767 * Makefile.in (clean): Make clean should remove generated files
9768 observer.h and observer.inc.
9770 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9772 Revert the following patch (not approved yet):
9773 2011-02-21 Hui Zhu <teawater@gmail.com>
9774 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9775 * ax-gdb.c (gen_printf_expr_callback): New function.
9776 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9777 * ax-general.c (ax_memcpy): New function.
9778 (ax_print): Handle "printf".
9780 * ax.h (ax_memcpy): Forward declare.
9781 * common/ax.def (invalid2): Removed.
9782 (printf): New entry.
9783 * printcmd.c (printcmd.h): New include.
9784 (string_printf): New function.
9785 (ui_printf): Removed.
9786 (printf_command): Remove static. Call string_printf.
9787 (eval_command): Call string_printf.
9788 * printcmd.h: New file.
9789 * tracepoint.c (validate_actionline,
9790 encode_actions_1): handle printf_command.
9792 2011-02-23 Tom Tromey <tromey@redhat.com>
9794 * ax-general.c (ax_pick): Add missing newline.
9796 2011-02-23 Michael Snyder <msnyder@vmware.com>
9798 * breakpoint.c (breakpoint_1): Change first argument from an int
9799 to a char pointer, so that the function now accepts a list of
9800 breakpoints rather than just one. Use new function
9801 'number_is_in_list' to implement.
9802 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9803 (watchpoints_info): Ditto.
9804 (tracepoints_info): Ditto.
9805 (maintenance_info_breakpoints): Ditto.
9806 (_initialize_breakpoint): Update help strings to reflect the fact
9807 that these functions can now take more than one argument.
9808 * cli/cli-utils.c (number_is_in_list): New function.
9809 * cli/cli-utils.h (number_is_in_list): Export.
9811 2011-02-23 Michael Snyder <msnyder@vmware.com>
9813 * memattr.c (mem_enable_command): Use get_number_or_range.
9814 (mem_disable_command): Ditto.
9815 (mem_delete_command): Ditto.
9816 (_initialize_mem): Tweak usage message to reflect multiple
9819 2011-02-22 Doug Evans <dje@google.com>
9821 Add gdb.lookup_global_symbol python function.
9823 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9824 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9825 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9827 2011-02-22 Tom Tromey <tromey@redhat.com>
9829 * language.c (language_class_name_from_physname): Rename
9830 'curr_language' argument to 'lang'; use in body.
9832 2011-02-22 Michael Snyder <msnyder@vmware.com>
9834 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9836 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9838 * frame-unwind.h: Fix comment to mention the this frame, not the
9841 2011-02-22 Tom Tromey <tromey@redhat.com>
9843 * symfile.c (auto_solib_limit): Remove.
9844 * symfile.h (auto_solib_limit): Remove.
9846 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9848 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9850 2011-02-21 Michael Snyder <msnyder@vmware.com>
9852 * gdbthread.h (print_thread_info): Change prototype.
9853 * thread.c (print_thread_info): Accept char* instead of int for
9854 requested_threads argument. Use new function number_is_in_list
9855 to determine which threads to list.
9856 (info_threads_command): Pass char* to print_thread_info.
9857 * cli/cli-utils.c (number_is_in_list): New function.
9858 * cli/cli-utils.h (number_is_in_list): Export.
9859 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9861 (print_one_inferior): Ditto.
9862 (mi_cmd_list_thread_groups): Ditto.
9864 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9866 * common/Makefile.in (CFLAGS): New.
9867 (COMPILE): Add $(CFLAGS).
9869 2011-02-21 Tom Tromey <tromey@redhat.com>
9871 * breakpoint.c (catch_syscall_command_1): Fix typo.
9873 2011-02-21 Tom Tromey <tromey@redhat.com>
9875 * reverse.c: Include cli-utils.h.
9876 * printcmd.c: Include cli-utils.h.
9877 (string_printf): Use skip_spaces.
9878 * cli/cli-utils.h: New file.
9879 * cli/cli-utils.c: New file.
9880 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9881 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9882 * breakpoint.h (get_number, get_number_or_range): Move to
9884 * breakpoint.c: Include cli-utils.h.
9885 (get_number_trailer, get_number, get_number_or_range)
9886 (ep_skip_leading_whitespace): Move to cli-utils.c.
9887 (create_breakpoint_sal, find_condition_and_thread)
9888 (decode_static_tracepoint_spec, watch_command_1)
9889 (watch_maybe_just_location, ep_parse_optional_if_clause)
9890 (catch_fork_command_1, catch_exec_command_1)
9891 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9892 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9893 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9894 (HFILES_NO_SRCDIR): Add cli-utils.h.
9895 (cli-utils.o): New target.
9897 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9899 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9900 before calling discard_all_inferiors.
9902 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9904 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9905 (struct builtin_opencl_type): Remove.
9906 (builtin_opencl_type): Change return type to "struct type **".
9907 (lookup_opencl_vector_type): Update caller.
9908 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9909 (build_opencl_types): Install plain array of "struct type *"
9910 instead of "struct builtin_opencl_type".
9912 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9913 Ulrich Weigand <uweigand@de.ibm.com>
9915 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9916 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9917 (struct arm_linux_hwbp_cap): New type.
9918 (arm_linux_get_hwbp_cap): New function.
9919 (arm_linux_get_hw_breakpoint_count): Likewise.
9920 (arm_linux_get_hw_watchpoint_count): Likewise.
9921 (arm_linux_can_use_hw_breakpoint): Likewise.
9922 (arm_hwbp_type): New type.
9923 (arm_hwbp_control_t): Likewise.
9924 (struct arm_linux_hw_breakpoint): Likewise.
9925 (struct arm_linux_thread_points): Likewise.
9926 (arm_threads): New global variable.
9927 (arm_linux_find_breakpoints_by_tid): New function.
9928 (arm_hwbp_control_initialize): Likewise.
9929 (arm_hwbp_control_is_enabled): Likewise.
9930 (arm_hwbp_control_disable): Likewise.
9931 (arm_linux_hw_breakpoint_initialize): Likewise.
9932 (arm_linux_get_hwbp_type): Likewise.
9933 (arm_linux_hw_watchpoint_initialize): Likewise.
9934 (arm_linux_hw_breakpoint_equal): Likewise.
9935 (arm_linux_insert_hw_breakpoint1): Likewise.
9936 (arm_linux_remove_hw_breakpoint1): Likewise.
9937 (arm_linux_insert_hw_breakpoint): Likewise.
9938 (arm_linux_remove_hw_breakpoint): Likewise.
9939 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9940 (arm_linux_insert_watchpoint): Likewise.
9941 (arm_linux_remove_watchpoint): Likewise.
9942 (arm_linux_stopped_data_address): Likewise.
9943 (arm_linux_stopped_by_watchpoint): Likewise.
9944 (arm_linux_watchpoint_addr_within_range): Likewise.
9945 (arm_linux_new_thread): Likewise.
9946 (arm_linux_thread_exit): Likewise.
9947 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9948 related target callbacks. Register arm_linux_new_thread and
9949 arm_linux_thread_exit.
9950 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9951 * arm-tdep.c (arm_pc_is_thumb): Make global.
9952 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9954 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9956 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9957 per-frame locations while within a function epilogue.
9959 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9961 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9962 to GNU coding standards.
9964 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9966 Allow use of mingw native on Windows 95 OS.
9967 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9968 (ser_windows_close): Only call CancelIo if function exists.
9969 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9970 to check for existence of CancelIo function in kernel32 DLL.
9972 2011-02-21 Hui Zhu <teawater@gmail.com>
9974 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9975 * ax-gdb.c (gen_printf_expr_callback): New function.
9976 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9977 * ax-general.c (ax_memcpy): New function.
9978 (ax_print): Handle "printf".
9980 * ax.h (ax_memcpy): Forward declare.
9981 * common/ax.def (invalid2): Removed.
9982 (printf): New entry.
9983 * printcmd.c (printcmd.h): New include.
9984 (string_printf): New function.
9985 (ui_printf): Removed.
9986 (printf_command): Remove static. Call string_printf.
9987 (eval_command): Call string_printf.
9988 * printcmd.h: New file.
9989 * tracepoint.c (validate_actionline,
9990 encode_actions_1): handle printf_command.
9992 2011-02-19 Michael Snyder <msnyder@vmware.com>
9994 * reverse.c (delete_one_bookmark): Argument is now bookmark
9995 id rather than pointer to bookmark struct.
9996 (delete_bookmark_command): Use get_number_or_range.
9997 (goto_bookmark_command): Parse with get_number instead of strtoul.
9998 (bookmark_1): New function. Print info for one bookmark.
9999 (bookmarks_info): Use get_number_or_range and bookmark_1.
10001 2011-02-18 Michael Snyder <msnyder@vmware.com>
10003 * thread.c (info_threads_command): Re-implement using
10004 get_number_or_range.
10005 (thread_apply_command): Ditto.
10007 2011-02-18 Tom Tromey <tromey@redhat.com>
10009 * common/ax.def: New file.
10010 * ax.h (enum agent_op): Use ax.def.
10011 * ax-general.c (aop_map): Use ax.def.
10013 2011-02-18 Tom Tromey <tromey@redhat.com>
10015 * ax-general.c (aop_map): Add pick and rot.
10016 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10017 <DW_OP_rot>: Implement.
10018 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10019 (ax_pick): Declare.
10020 * ax-general.c (ax_pick): New function.
10022 2011-02-18 Tom Tromey <tromey@redhat.com>
10024 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10026 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10027 Tom Tromey <tromey@redhat.com>
10029 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10030 make_symbol_overload_list_block with NULL BLOCK.
10031 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10033 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10035 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10036 * breakpoint.h (get_number_or_range): Declare.
10037 * printcmd.c (ALL_DISPLAYS): Declare.
10038 (delete_display): Reimplement taking a display pointer.
10039 (undisplay_command): Accept a range of displays to delete, using
10040 get_number_or_range.
10042 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10044 * c-valprint.c (c_val_print): Add embedded_offset to address
10045 for arrays of unspecified length.
10046 * p-valprint.c (pascal_val_print): Likewise.
10048 2011-02-18 Yao Qi <yao@codesourcery.com>
10050 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10051 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10052 (thumb_process_displaced_insn): New.
10053 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10054 call to arm_process_displaced_insn.
10055 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10057 2011-02-17 Tom Tromey <tromey@redhat.com>
10059 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10060 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10061 compile_dwarf_to_ax. No longer static. Call
10062 dwarf2_compile_cfa_to_ax.
10063 (locexpr_tracepoint_var_ref): Update.
10064 (loclist_tracepoint_var_ref): Update.
10065 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10066 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10067 argument; add 'gdbarch' and 'pc'.
10068 (dwarf2_compile_cfa_to_ax): New function.
10069 (dwarf2_frame_cache): Update.
10071 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10073 * ada-lang.c (ada_type_of_array): Fix the size of the array
10074 in the case of an unconstrained packed array.
10076 2011-02-17 Yao Qi <yao@codesourcery.com>
10078 * common/Makefile.in: Add more targets for make.
10080 2011-02-16 Tom Tromey <tromey@redhat.com>
10082 * dwarf2loc.c (unimplemented): Fix typo.
10084 2011-02-16 Tom Tromey <tromey@redhat.com>
10086 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10087 (compile_dwarf_to_ax) <default>: Use unimplemented.
10088 <DW_OP_deref>: Update.
10089 (disassemble_dwarf_expression): Update.
10090 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10091 (decode_locdesc): Update.
10092 * dwarf2expr.h (dwarf_stack_op_name): Update.
10094 2011-02-16 Tom Tromey <tromey@redhat.com>
10096 * ax.h (struct aop_map) <name>: Now const.
10098 2011-02-16 Tom Tromey <tromey@redhat.com>
10100 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10103 2011-02-16 Yao Qi <yao@codesourcery.com>
10105 * infrun.c (get_displaced_step_closure_by_addr): New.
10106 * inferior.h: Declare it.
10107 * arm-tdep.c: (arm_pc_is_thumb): Call
10108 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10111 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10112 Jan Kratochvil <jan.kratochvil@redhat.com>
10115 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10117 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10118 Jan Kratochvil <jan.kratochvil@redhat.com>
10120 * value.c (value_contents_copy_raw): Extend describing comment.
10121 Assert that the destination contents we're overwriting are wholly
10123 (value_contents_copy): Extend describing comment.
10125 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10126 Jan Kratochvil <jan.kratochvil@redhat.com>
10128 * value.c (value_available_contents_eq): Remove redundant local
10129 variables. Fix available contents comparision.
10130 * value.h (value_available_contents_eq): Extend describing
10133 2011-02-16 Yao Qi <yao@codesourcery.com>
10135 * thread.c (info_threads_command): Add missing i18n markup and remove
10138 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10140 * breakpoint.c (longjmp_names): New variable.
10141 (struct breakpoint_objfile_data): New type.
10142 (breakpoint_objfile_key): New variable.
10143 (msym_not_found): New variable.
10144 (msym_not_found_p): New predicate.
10145 (get_breakpoint_objfile_data): New function.
10146 (create_overlay_event_breakpoint): Check per-objfile cache for
10148 (create_longjmp_master_breakpoint): Likewise.
10149 (create_std_terminate_master_breakpoint): Likewise.
10150 (create_exception_master_breakpoint): Likewise.
10151 (_initialize_breakpoint): Register per-objfile data key.
10153 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10155 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10157 (create_longjmp_master_breakpoint): Loop over longjmp names.
10158 (create_std_terminate_master_breakpoint): Const-propagate parameter
10160 (update_breakpoints_after_exec): Adjust.
10161 (breakpoint_re_set): Adjust.
10163 2011-02-15 Michael Snyder <msnyder@vmware.com>
10165 * thread.c (info_threads_command): Process arg as thread id,
10166 or list of thread ids.
10167 (thread_find_command): New command.
10168 (_initialize_thread): Document argument for info threads.
10169 Document 'thread find' command.
10170 * NEWS: Document new command "thread find".
10172 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10174 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10175 * aclocal.m4: Regenerated with aclocal-1.11.1.
10176 * common/configure: Regenerate with autoconf-2.64.
10178 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10180 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10181 bool data type to a size of one byte.
10183 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10184 Jan Kratochvil <jan.kratochvil@redhat.com>
10186 * target.c (memory_xfer_live_readonly_partial): Document where to
10187 look for interface description.
10189 2011-02-15 Yao Qi <yao@codesourcery.com>
10192 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10193 order to store PC value on stack instead of text section.
10195 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10197 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10198 the EFP register set size.
10199 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10200 data from the VMX register.
10201 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10202 and write data from/to the VMX register.
10204 2011-02-14 Michael Snyder <msnyder@vmware.com>
10206 * command.h (enum command_class): New class 'no_set_class', for
10207 "show" commands without a corresponding "set" command.
10208 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10209 * copying.c (_initialize_copying): Ditto for "show copying" and
10211 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10213 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10214 which there is no corresponding "set" command (eg. "show copying").
10216 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10217 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * exec.c (section_table_available_memory): Change `len' parameter
10221 * exec.h (section_table_available_memory): Ditto.
10222 * value.h (read_value_memory): Rename the `offset' parameter to
10225 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10226 Jan Kratochvil <jan.kratochvil@redhat.com>
10228 * memrange.c (compare_mem_ranges): Mention sort order in
10229 describing comment.
10230 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10231 * tracepoint.c (traceframe_available_memory): Extend comment to
10232 mention what happens to RESULT when the target does not support
10235 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10236 Jan Kratochvil <jan.kratochvil@redhat.com>
10238 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10241 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10243 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10244 No longer handle NULL values.
10246 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10248 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10249 * value.c: Include "exceptions.h".
10250 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10252 * cp-abi.c: Include gdb_assert.h.
10253 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10254 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10256 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10257 parameters. No longer returns -1 on error.
10258 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10260 * cp-valprint.c: Include exceptions.h.
10261 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10262 the baseclass_offset. Handle unavailable base classes. Use
10263 val_print_invalid_address.
10264 * p-valprint.c: Include exceptions.h.
10265 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10266 when fetching the baseclass_offset. No longer expect
10267 baseclass_offset returning -1. Handle unavailable base classes.
10268 Use val_print_invalid_address.
10269 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10270 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10271 `embedded_offset' and `val' parameters. Adjust.
10272 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10273 parameter, and change its type to gdb_byte pointer. Add
10274 `embedded_offset' and `val' parameters. Adjust. No longer expect
10275 baseclass_offset returning -1.
10276 (value_dynamic_cast): Use value_contents_for_printing rather than
10277 value_contents. Adjust.
10278 (search_struct_field): No longer expect baseclass_offset returning
10280 (search_struct_method): If reading memory from the target is
10281 necessary, wrap it in a new value to pass to baseclass_offset. No
10282 longer expect baseclass_offset returning -1.
10283 (find_method_list): No longer expect baseclass_offset returning
10284 -1. Use value_contents_for_printing rather than value_contents.
10285 * valprint.c (val_print_invalid_address): New function.
10286 * valprint.h (val_print_invalid_address): Declare.
10287 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10288 and `val' parameters. No longer expect baseclass_offset returning
10290 * gnu-v2-abi.c: Include "exceptions.h".
10291 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10292 parameters. Handle unavailable memory. Recurse through
10293 gnuv2_baseclass_offset directly, rather than through
10294 baseclass_offset. No longer returns -1 on not found, instead
10296 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10297 `val' parameters. Adjust.
10299 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10301 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10302 almost but not quite adjacent.
10304 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10306 * value.h (value_entirely_available): Declare.
10307 * value.c (value_entirely_available): New function.
10308 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10309 real type if the pointer is unavailable.
10311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10313 * valops.c (value_repeat): Use read_value_memory instead of
10316 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10318 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10319 * value.c (value_contents_copy_raw, value_contents_copy): New
10321 (value_primitive_field): Use value_contents_copy_raw instead of
10323 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10325 (value_array, value_slice): Ditto.
10326 * valarith.c (value_subscripted_rvalue): Use
10327 value_contents_copy_raw instead of memcpy.
10329 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10331 <unavailable> references.
10333 * valops.c (get_value_at): Use value_from_contents_and_address,
10334 avoiding read_memory.
10336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10338 * c-valprint.c (c_val_print): Print a string with unavailable
10339 contents as an array.
10341 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10343 * value.h (unpack_bits_as_long): Delete declaration.
10344 (unpack_value_bits_as_long): Declare.
10345 (unpack_value_field_as_long): Declare.
10346 (value_field_bitfield): Declare.
10347 * value.c (unpack_bits_as_long): Rename to...
10348 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10349 value parameters. Return the extracted result in a new output
10350 parameter. If the value contents are unavailable, return false,
10351 otherwise return true.
10352 (unpack_value_bits_as_long): New.
10353 (unpack_field_as_long): Rename to...
10354 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10355 Add embedded_offset and value parameters. Return the extracted
10356 result in a new output parameter. If the value contents are
10357 unavailable, return false, otherwise return true.
10358 (unpack_value_field_as_long): New.
10359 (unpack_field_as_long_1): New.
10360 (unpack_field_as_long): Reimplement as wrapper around
10361 unpack_value_field_as_long_1.
10362 (value_field_bitfield): New function.
10363 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10364 unpack_value_bits_as_long. Mark the value as unavailable, if it
10366 * jv-valprint.c (java_print_value_fields): Use
10367 value_field_bitfield.
10368 * p-valprint.c (pascal_object_print_value_fields): Use
10369 value_field_bitfield.
10370 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10374 * value.c (get_internalvar_integer): Also return the int value of
10375 TYPE_CODE_INT INTERNALVAR_VALUE values.
10376 (set_internalvar): Don't special case TYPE_CODE_INT.
10378 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10380 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10381 INTERNALVAR_POINTER.
10383 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10384 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10385 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10387 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10389 * value.h (value_available_contents_eq): Declare.
10390 * value.c (find_first_range_overlap): New function.
10391 (value_available_contents_eq): New function.
10392 * valprint.c (val_print_array_elements): Use
10393 value_available_contents_eq.
10394 * ada-valprint.c (val_print_packed_array_elements): Use
10395 value_available_contents_eq.
10396 * jv-valprint.c (java_value_print): Use
10397 value_available_contents_eq.
10399 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10401 * target.c (target_read_live_memory): New function.
10402 (memory_xfer_live_readonly_partial): New.
10403 (memory_xfer_partial): If reading from a traceframe, fallback to
10404 reading unavailable read-only memory from read-only regions of
10405 live target memory.
10406 * tracepoint.c (disconnect_tracing): Adjust.
10407 (set_current_traceframe): New, factored out from
10408 set_traceframe_number.
10409 (set_traceframe_number): Reimplement to only change the traceframe
10410 number on the GDB side.
10411 (do_restore_current_traceframe_cleanup): Adjust.
10412 (make_cleanup_restore_traceframe_number): New.
10413 (cur_traceframe_number): New global.
10414 (tfile_open): Set cur_traceframe_number to no traceframe.
10415 (set_tfile_traceframe): New function.
10416 (tfile_trace_find): If looking up a traceframe using any method
10417 other than by number, make sure the current tfile traceframe
10418 matches gdb's current traceframe. Update the current tfile
10419 traceframe if the lookup succeeded.
10420 (tfile_fetch_registers, tfile_xfer_partial)
10421 (tfile_get_trace_state_variable_value): Make sure the remote
10422 traceframe matches gdb's current traceframe.
10423 * remote.c (remote_traceframe_number): New global.
10424 (remote_open_1): Set it to -1.
10425 (set_remote_traceframe): New function.
10426 (remote_fetch_registers, remote_store_registers)
10427 (remote_xfer_memory, remote_xfer_partial)
10428 (remote_get_trace_state_variable_value): Make sure the remote
10429 traceframe matches gdb's current traceframe.
10430 (remote_trace_find): If looking up a traceframe using any method
10431 other than by number, make sure the current remote traceframe
10432 matches gdb's current traceframe. Update the current remote
10433 traceframe if the lookup succeeded.
10434 * infrun.c (fetch_inferior_event): Adjust.
10435 * tracepoint.h (set_current_traceframe): Declare.
10436 (get_traceframe_number, set_traceframe_number): Add describing
10439 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10441 Mark pieces of values as unavailable if the corresponding memory
10444 * valops.c: Include tracepoint.h.
10445 (value_fetch_lazy): Use read_value_memory.
10446 (read_value_memory): New.
10447 * value.h (read_value_memory): Declare.
10448 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10449 * exec.c (section_table_available_memory): New function.
10450 * exec.h (section_table_available_memory): Declare.
10452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10454 * Makefile.in (SFILES): Add memrange.c.
10455 (HFILES_NO_SRCDIR): Add memrange.h.
10456 (COMMON_OBS): Add memrange.o.
10457 * memrange.c: New file.
10458 * memrange.h: New file.
10459 * tracepoint.c: Include memrange.h.
10460 (struct mem_range): Delete.
10461 (mem_range_s): Delete.
10462 (traceframe_available_memory): New function.
10463 * tracepoint.h (traceframe_available_memory): Declare.
10465 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10467 * target.h (struct traceframe_info): Forward declare.
10468 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10469 (struct target_ops) <to_traceframe_info>: New field.
10470 (target_traceframe_info): New.
10471 * target.c (update_current_target): Inherit and default
10472 to_traceframe_info.
10473 * remote.c (PACKET_qXfer_traceframe_info): New.
10474 (remote_protocol_features): Register qXfer:traceframe-info:read.
10475 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10476 (remote_traceframe_info): New.
10477 (init_remote_ops): Install it.
10478 (_initialize_remote): Install "set/show remote traceframe-info"
10480 * tracepoint.h (parse_traceframe_info): Declare.
10481 * tracepoint.c (struct mem_range): New.
10482 (mem_range_s): New typedef.
10483 (struct traceframe_info): New.
10484 (traceframe_info): New global.
10485 (free_traceframe_info): New function.
10486 (clear_traceframe_info): New function.
10487 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10489 (build_traceframe_info): New function.
10490 (tfile_traceframe_info): New function.
10491 (init_tfile_ops): Install tfile_traceframe_info.
10492 (traceframe_info_start_memory, free_result): New functions.
10493 (memory_attributes, traceframe_info_elements): New globals.
10494 (parse_traceframe_info, get_traceframe_info): New functions.
10495 * features/traceframe-info.dtd: New file.
10496 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10498 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10500 Base support for <unavailable> value contents.
10502 * value.h (value_bytes_available): Declare.
10503 (mark_value_bytes_unavailable): Declare.
10504 * value.c (struct range): New struct.
10505 (range_s): New typedef.
10506 (ranges_overlap): New function.
10507 (range_lessthan): New function.
10508 (ranges_contain_p): New function.
10509 (struct value) <unavailable>: New field.
10510 (value_bytes_available): New function.
10511 (mark_value_bytes_unavailable): New function.
10512 (require_not_optimized_out): Constify parameter.
10513 (require_available): New function.
10514 (value_contents_all, value_contents): Require all bytes be
10516 (value_free): Free `unavailable'.
10517 (value_copy): Copy `unavailable'.
10518 * valprint.h (val_print_unavailable): Declare.
10519 * valprint.c (valprint_check_validity): Rename `offset' parameter
10520 to `embedded_offset'. If printing a scalar, check whether the
10521 value chunk is available.
10522 (val_print_unavailable): New.
10523 (val_print_scalar_formatted): Check whether the value is
10525 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10526 pretty-printing unavailable values.
10528 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10530 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10531 * c-typeprint.c (c_type_print_args): Update the function comment. New
10532 variable param_type, initialize it. Remove const/volatile qualifiers
10533 for language_cplus and !show_artificial. Use param_type.
10535 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10537 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10538 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10539 * symtab.h (struct symtab) <next>: Comment extension.
10541 2011-02-12 Yao Qi <yao@codesourcery.com>
10543 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10545 2011-02-11 Yao Qi <yao@codesourcery.com>
10547 * common/Makefile.in: Add copyright header.
10549 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10551 * infrun.c (proceed): Move switching out and in of tfind mode from
10553 (fetch_inferior_event): ... to here.
10555 2011-02-11 Yao Qi <yao@codesourcery.com>
10557 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10559 * configure.ac: Add common to sub dir.
10560 * configure: Regenerate.
10562 2011-02-11 Yao Qi <yao@codesourcery.com>
10566 * common/Makefile.in: New.
10567 * common/configure.ac: New.
10568 * common/aclocal.m4: New.
10569 * common/configure: Generate.
10571 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10573 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10574 side of the parenthesis.
10577 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10578 * vec.h (VEC_block_remove): Fix comment.
10580 2011-02-08 Michael Snyder <msnyder@vmware.com>
10582 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10584 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10586 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10587 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10590 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10593 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10595 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10596 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10598 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10600 * dwarf2read.c (read_subroutine_type): Set special calling
10601 convention flag for functions compiled by IBM XL C for OpenCL.
10602 * ppc-sysv-tdep.c: Include "dwarf2.h"
10603 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10604 calling convention.
10605 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10606 IBM OpenCL vector types calling convention.
10607 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10608 (ppc_sysv_abi_broken_return_value): Likewise.
10609 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10610 types calling convention.
10611 (ppc64_sysv_abi_return_value): Likewise.
10612 * spu-tdep.c: Include "dwarf2.h"
10613 (spu_return_value): Implement IBM OpenCL vector types calling
10616 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10618 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10619 correct ABI for AltiVec vector arguments.
10621 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10623 * valprint.c (val_print): Extend comment.
10624 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10625 interface explanation to val_print.
10626 (ada_val_print_array): Adjust comment to current interface.
10627 (print_field_values): Adjust comment to current interface.
10628 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10629 explanation to val_print.
10630 * f-valprint.c (f_val_print): Ditto.
10631 * jv-valprint.c (java_val_print): Ditto.
10632 * m2-valprint.c (m2_val_print): Ditto.
10633 * p-valprint.c (pascal_val_print): Ditto.
10635 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10637 * breakpoint.c (parse_breakpoint_sals): Fix description.
10639 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10640 Oguz Kayral <oguzkayral@gmail.com>
10642 * python/py-inferior.c (python_on_normal_stop): New function.
10643 (python_on_resume): New function.
10644 (python_inferior_exit): New function.
10645 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10646 inferior_exit observers.
10647 * python/py-evtregistry.c: New file.
10648 * python/py-threadevent.c : New file.
10649 * python/py-event.c: New file.
10650 * python/py-evts.c: New file.
10651 * python/py-continueevent.c: New file.
10652 * python/py-bpevent.c: New file.
10653 * python/py-signalevent.c: New file.
10654 * python/py-exetiedevent.c: New file.
10655 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10656 Move struct breakpoint_object from here...
10657 * python/python-internal.h: ... to here.
10658 * python/py-event.h: New file.
10659 * python/py-events.h: New file.
10660 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10661 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10662 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10663 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10664 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10665 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10666 Add build rules for all the above.
10668 2011-02-04 Tom Tromey <tromey@redhat.com>
10670 * dwarf2read.c (dwarf2_section_empty_p): New function.
10671 (dwarf2_read_section): Use dwarf2_section_empty_p.
10672 (dwarf2_section_size): New function.
10673 (dwarf2_get_section_info): Unconditionally read section.
10674 (dwarf2_read_index): Use dwarf2_section_empty_p.
10675 (partial_read_comp_unit_head): Use dwarf2_section_size.
10676 (dwarf2_symbol_mark_computed): Likewise.
10678 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10680 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10682 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10684 * mips-linux-tdep.c: Include xml-syscall.h.
10685 (mips_linux_get_syscall_number): New function.
10686 (mips_linux_init_abi): Add calls to
10687 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10688 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10689 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10690 * syscalls/mips-n32-linux.xml: New file.
10691 * syscalls/mips-n64-linux.xml: New file.
10692 * syscalls/mips-o32-linux.xml: New file.
10694 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10696 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10697 Complain about inverted range entries.
10698 (dwarf2_record_block_ranges): Likewise.
10700 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10703 * breakpoint.c (update_watchpoint): Fix name of the
10704 update_global_location_list function.
10705 (print_one_breakpoint): Fix typo.
10706 (_initialize_breakpoint): Remove extra space in hbreak help
10708 * breakpoint.h (struct bp_location) <length>: Fix field
10711 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10713 * regcache.c (registers_changed_ptid): Don't explictly always
10714 clear `current_regcache'. Only clear current_thread_ptid and
10715 current_thread_arch when PTID matches. Only reinit the frame
10716 cache if PTID matches the current inferior_ptid. Move alloca(0)
10718 (registers_changed): ... here.
10720 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10722 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10723 starts with __stack_chk_guard as stack guard symbol.
10725 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10727 * disasm.c (compare_lines): Handle the end of sequence markers
10728 within the line table to better support disassembling over
10729 compilation unit boundaries.
10731 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10733 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10734 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10735 implementation even if no symbols are available.
10736 (thumb_analyze_prologue): Update call to skip_prologue_function.
10737 (arm_analyze_prologue): Likewise.
10739 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10741 * arm-tdep.c: Include "observer.h".
10742 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10743 (arm_exidx_data_key): New static variable.
10744 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10745 (struct arm_exidx_data): Likewise.
10746 (arm_exidx_data_free): New function.
10747 (arm_compare_exidx_entries): Likewise.
10748 (arm_obj_section_from_vma): Likewise.
10749 (arm_exidx_new_objfile): Likewise.
10750 (arm_find_exidx_entry): Likewise.
10751 (arm_exidx_fill_cache): Likewise.
10752 (arm_exidx_unwind_sniffer): Likewise.
10753 (arm_exidx_unwind): New global variable.
10754 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10755 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10756 observer. Register arm_exidx_data_key as objfile data.
10758 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10760 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10761 due to accessing uninitialized variable. Fix indentation.
10763 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10765 * c-valprint.c (c_value_print): When doing virtual base pointer
10766 adjustment, create a new value with adjusted contents rather than
10767 changing the contents of the value being printed (and getting it
10770 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10772 * xml-support.c (xml_find_attribute): New.
10773 (xinclude_start_include): Use it.
10774 * xml-support.h (xml_find_attribute): Declare.
10775 * memory-map.c (memory_map_start_memory)
10776 (memory_map_start_property): Use xml_find_attribute.
10777 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10778 xml_find_attribute.
10779 * remote.c (start_thread): Use xml_find_attribute.
10780 * solib-target.c (library_list_start_segment)
10781 (library_list_start_section, library_list_start_library)
10782 (library_list_start_list): Use xml_find_attribute.
10783 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10784 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10785 (tdesc_start_field): Use xml_find_attribute.
10787 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10789 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10790 (BUILD_OCL_VTYPES): Update.
10792 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10794 * configure.ac: Work around non-GNU sed limitation when computing
10795 python version number.
10796 * configure: Regenerate.
10798 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10800 Fix debug printing of TYPE_INSTANCE.
10801 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10802 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10804 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10806 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10807 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10808 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10809 * ada-operator.inc: Rename the file to ...
10810 * ada-operator.def: ... here, wrap all the entries by macro OP.
10811 * expprint.c (op_name_standard): Remove all the entries. Include
10812 "std-operator.def" instead.
10813 * expression.h (enum exp_opcode): Include "std-operator.def" and
10814 "ada-operator.def". Move all the entries ...
10815 * std-operator.def: ... here, wrap all the entries by macro OP.
10817 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10819 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10820 * breakpoint.c (remove_jit_event_breakpoints): New function.
10821 * jit.c (jit_descriptor_addr): Delete.
10822 (registering_code): Delete.
10823 (clear_int): Delete.
10824 (jit_inferior_data): New variable.
10825 (struct jit_inferior_data): New type.
10826 (get_jit_inferior_data): New function.
10827 (jit_inferior_data_cleanup): New function.
10828 (jit_read_descriptor): Adjust.
10829 (jit_register_code): Adjust.
10830 (jit_breakpoint_re_set_internal): New function; move code here ...
10831 (jit_inferior_init): ... from here.
10832 (jit_breakpoint_re_set): Adjust.
10833 (jit_reset_inferior_data_and_breakpoints): New function.
10834 (jit_inferior_created_observer): Adjust.
10835 (jit_inferior_exit_hook): Adjust.
10836 (jit_executable_changed_observer): New function.
10837 (jit_event_handler): Adjust.
10838 (_initialize_jit): Adjust.
10840 2011-01-31 Michael Snyder <msnyder@vmware.com>
10842 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10845 2011-01-31 Tom Tromey <tromey@redhat.com>
10848 * python/python.c (execute_gdb_command): Call
10849 prevent_dont_repeat.
10850 * top.c (suppress_dont_repeat): New global.
10851 (dont_repeat): Use it.
10852 (prevent_dont_repeat): New function.
10853 * command.h (prevent_dont_repeat): Declare.
10855 2011-01-31 Tom Tromey <tromey@redhat.com>
10857 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10858 * python/py-breakpoint.c (bppy_set_silent): Use
10859 breakpoint_set_silent.
10860 (bppy_set_thread): Use breakpoint_set_thread.
10861 (bppy_set_task): Use breakpoint_set_task.
10862 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10863 (breakpoint_set_task): Declare.
10864 (make_breakpoint_silent): Remove.
10865 * breakpoint.c (breakpoint_set_silent): New function.
10866 (breakpoint_set_thread): Likewise.
10867 (breakpoint_set_task): Likewise.
10868 (make_breakpoint_silent): Remove.
10870 2011-01-31 Tom Tromey <tromey@redhat.com>
10872 * breakpoint.h (user_breakpoint_p): Declare.
10873 * breakpoint.c (user_breakpoint_p): New function.
10874 (breakpoint_1): Use it.
10875 (save_breakpoints): Likewise.
10877 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10879 * configure.ac: Add handling of Python distribution on Windows.
10880 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10881 sysconfig variables are not defined, then do not use them.
10882 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10883 instead. On Windows, return all paths using forward-slashes
10884 rather than backslashes.
10886 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10888 * configure.ac: Remove fallback behavior for building
10889 against Python. Remove tweaking of Python include path.
10890 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10891 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10892 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10893 Always restore CPPFLAGS and LIBS after linking test.
10894 * configure: Regenerated.
10895 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10896 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10897 * python/python-internal.h: Adjust includes of Python .h files.
10899 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10901 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10904 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10906 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10909 2011-01-31 Yao Qi <yao@codesourcery.com>
10911 * arm-linux-nat.c: Update calls to regcache_register_status
10912 instead of regcache_valid_p.
10913 * aix-thread.c: Likewise.
10914 * i386gnu-nat.c: Likewise.
10916 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10919 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10920 touching TYPE_FIELD_ARTIFICIAL.
10922 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10924 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10927 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10929 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10930 selected, don't try iterating over the traceframe's blocks.
10931 (tfile_has_stack): If there's no traceframe selected, then there's
10933 (tfile_has_registers): If there's no traceframe selected, then
10934 there's no registers.
10936 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10938 * target.c (memory_xfer_partial): No need to restore shadows if we
10939 haven't read anything.
10941 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10943 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10944 and val_print_scalar_formatted.
10946 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10948 * tracepoint.c (tfile_read): New.
10949 (tfile_open): Use it.
10950 (tfile_get_traceframe_address): Use it.
10951 (tfile_trace_find): Use it.
10952 (walk_blocks_callback_func): New typedef.
10953 (match_blocktype): New function.
10954 (traceframe_walk_blocks): New function.
10955 (traceframe_find_block_type): New function.
10956 (tfile_fetch_registers, tfile_xfer_partial)
10957 (tfile_get_trace_state_variable_value): Use
10958 traceframe_find_block_type and tfile_read.
10960 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10962 * remote-mips.c: Add internationalization mark ups. Remove
10963 trailing \n from already marked up strings.
10965 2011-01-26 Tom Tromey <tromey@redhat.com>
10967 * python/py-prettyprint.c (print_string_repr): Clear
10968 'addressprint' option when calling val_print_string.
10969 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10970 option when calling val_print_string.
10972 2011-01-26 Tom Tromey <tromey@redhat.com>
10974 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10976 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10978 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10979 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10980 (gdb_py_long_as_ulongest): New defines.
10981 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10982 (gdb_py_int_as_long): Declare.
10983 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10984 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10985 (valpy_long): Add comment.
10986 * python/py-utils.c (get_addr_from_python): Use
10987 gdb_py_long_as_ulongest. Handle overflow properly.
10988 (gdb_py_object_from_longest): New function.
10989 (gdb_py_object_from_ulongest): Likewise.
10990 (gdb_py_int_as_long): Likewise.
10991 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10992 * python/py-symtab.c (salpy_get_pc): Use
10993 gdb_py_long_from_ulongest.
10994 (salpy_get_line): Use PyInt_FromLong.
10995 * python/py-param.c (set_parameter_value): Use
10996 gdb_py_int_as_long.
10997 * python/py-lazy-string.c (stpy_get_address): Use
10998 gdb_py_long_from_ulongest.
10999 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11000 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11001 * python/py-breakpoint.c (bppy_set_thread): Use
11002 gdb_py_int_as_long.
11003 (bppy_set_task): Likewise.
11004 (bppy_set_ignore_count): Likewise.
11005 (bppy_set_hit_count): Likewise.
11006 * python/py-block.c (blpy_get_start): Use
11007 gdb_py_object_from_ulongest.
11008 (blpy_get_end): Likewise.
11009 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11011 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11014 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11015 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11016 equality test for objfile, initialize addr_low if needed.
11018 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11020 * tui/tui-regs.c (tui_register_format): Remove dead code.
11022 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11024 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11025 instead of print_scalar_formatted.
11026 (print_scalar_formatted): Don't handle 's' format strings here,
11027 and add an assertion that we never see such format here.
11028 * valprint.h (val_print_scalar_formatted): Declare.
11029 * valprint.c (val_print_scalar_formatted): New.
11030 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11031 instead of print_scalar_formatted.
11032 * jv-valprint.c (java_val_print): Ditto.
11033 * p-valprint.c (pascal_val_print): Ditto.
11034 * ada-valprint.c (ada_val_print_1): Ditto.
11035 * f-valprint.c (f_val_print): Ditto.
11036 * infcmd.c (registers_info): Ditto.
11037 * m2-valprint.c (m2_val_print): Ditto.
11039 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11041 * m2-valprint.c (print_unbounded_array): Pass
11042 value_contents_for_printing rather than value_contents, to
11043 m2_print_array_contents. Also pass in the value.
11045 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11047 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11048 (save_gdb_index_command): Switch to .gdb_index version 4.
11050 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11052 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11053 than frame_register, and always pass a valid value to val_print.
11055 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11057 Centralize printing "<optimized out>".
11059 * valprint.h (val_print_optimized_out): Declare.
11060 * cp-valprint.c (cp_print_value_fields): Use
11061 val_print_optimized_out.
11062 * jv-valprint.c (java_print_value_fields): Ditto.
11063 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11064 * printcmd.c (print_formatted): Ditto.
11065 * valprint.c (valprint_check_validity): Ditto.
11066 (value_check_printable): Ditto.
11067 (val_print_optimized_out): New.
11069 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11071 * infcmd.c (default_print_registers_info): Allocate values so to
11072 never pass a NULL value to val_print.
11074 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11076 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11077 boolean. Make sure to always pass a value that matches the
11078 contents buffer to callees. Preserve `address' for following
11080 * value.c (value_contents_for_printing_const): New.
11081 (value_address): Constify value argument.
11082 * value.h (value_contents_for_printing_const): Declare.
11083 (value_address): Constify value argument.
11085 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11087 * regcache.c (struct regcache_descr): Rename
11088 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11089 and sizeof_cooked_register_valid_p to
11090 sizeof_cooked_register_status.
11091 (init_regcache_descr): Adjust.
11092 (struct regcache): Rename register_valid_p field to
11094 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11095 (do_cooked_read): Adjust.
11096 (regcache_valid_p): Rename to ...
11097 (regcache_register_status): ... this. Adjust.
11098 (regcache_invalidate): Adjust.
11099 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11101 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11102 as unavailable, not valid.
11103 (regcache_dump): Adjust.
11104 * regcache.h (enum register_status): New.
11105 (regcache_register_status): Declare.
11106 (regcache_invalidate): Delete declaration.
11107 * corelow.c (get_core_registers): Adjust.
11108 * tracepoint.c (tfile_fetch_registers): Adjust.
11109 * trad-frame.c (REG_VALUE): Rename to ...
11110 (TF_REG_VALUE): ... this.
11111 (REG_UNKNOWN): Rename to ...
11112 (TF_REG_UNKNOWN): ... this.
11113 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11114 * mi/mi-main.c (register_changed_p): Adjust.
11116 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11118 * regcache.c (struct regcache_descr): Remove outdated comment.
11119 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11121 (regcache_xmalloc): Rename to ...
11122 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11123 Allocate the regcache type accordingly.
11124 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11125 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11126 cooked registers, not raw.
11127 (regcache_dup_no_passthrough): Delete.
11128 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11129 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11130 mention obsolete write_register_bytes.
11131 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11133 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11135 Stop remote_read_bytes from handling partial reads itself.
11137 * remote-fileio.c: Include target.h.
11138 (remote_fileio_write_bytes): Delete.
11139 (remote_fileio_func_open, remote_fileio_func_write)
11140 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11141 target_read_memory.
11142 (remote_fileio_func_stat): Use target_read_memory and
11143 target_write_memory.
11144 (remote_fileio_func_gettimeofday): Use target_write_memory.
11145 (remote_fileio_func_system): Use target_read_memory.
11146 * remote.c (remote_write_bytes): Make it static.
11147 (remote_read_bytes): Don't handle partial reads here.
11148 * remote.h (remote_read_bytes): Delete declaration.
11150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11152 Simplify XML parsing a bit.
11154 * xml-support.h (gdb_xml_parse_quick): Declare.
11155 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11156 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11158 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11159 gdb_xml_create_parser_and_cleanup_1.
11160 (gdb_xml_parse_quick): New.
11161 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11162 * osdata.c (osdata_parse): Ditto.
11163 * remote.c (remote_threads_info): Ditto.
11164 * solib-target.c (solib_target_parse_libraries): Ditto.
11165 * xml-syscall.c (syscall_parse_xml): Ditto.
11166 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11168 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11170 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11171 with remote-mips.o added to gdb_target_obs.
11172 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11174 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11176 * ada-valprint.c (val_print_packed_array_elements): Pass the
11177 correct struct value to val_print.
11178 (ada_val_print_1): Ditto.
11180 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11182 Don't lose embedded_offset in printing routines throughout.
11184 * valprint.h (val_print_array_elements): Change prototype.
11185 * valprint.c (val_print_array_elements): Add `embedded_offset'
11186 parameter, and adjust to pass it down to val_print, while passing
11187 `valaddr' or `address' unmodified. Take embedded_offset into
11188 account when checking repetitions.
11189 * c-valprint.c (c_val_print): Pass embedded_offset to
11190 val_print_array_elements instead of adjusting `valaddr' and
11192 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11193 embedded_offset to val_print_array_elements instead of adjusting
11195 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11196 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11197 val_print_array_elements and pascal_object_print_value_fields
11198 instead of adjusting `valaddr'.
11199 (pascal_object_print_value_fields): Add `offset' parameter, and
11201 (pascal_object_print_value): Add `offset' parameter, and adjust to
11203 (pascal_object_print_static_field): Use
11204 value_contents_for_printing/value_embedded_offset, rather than
11206 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11207 parameter, and adjust to use it. Use
11208 value_contents_for_printing/value_embedded_offset, rather than
11210 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11211 (ada_val_print_array): Add `offset' parameter, and adjust to use
11213 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11214 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11215 Instead work with offsets. Use
11216 value_contents_for_printing/value_embedded_offset, rather than
11217 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11218 and use value_from_pointer to extract a target pointer, rather
11219 than value_from_longest.
11220 (print_variant_part): Add `offset' parameter. Replace
11221 `outer_valaddr' parameter by a new `outer_offset' parameter.
11222 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11223 (ada_value_print): Use
11224 value_contents_for_printing/value_embedded_offset, rather than
11226 (print_record): Add `offset' parameter, and adjust to pass it
11228 (print_field_values): Add `offset' parameter. Replace
11229 `outer_valaddr' parameter by a new `outer_offset' parameter.
11230 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11231 Use value_contents_for_printing/value_embedded_offset, rather than
11233 * d-valprint.c (dynamic_array_type): Use
11234 value_contents_for_printing/value_embedded_offset, rather than
11236 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11237 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11238 (java_print_value_fields): Take `offset' into account. Don't
11239 re-adjust `valaddr'. Instead pass down adjusted offsets.
11240 (java_val_print): Take `embedded_offset' into account. Pass it to
11241 java_print_value_fields.
11242 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11243 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11244 down adjusted offsets.
11245 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11246 (f_val_print): Take `embedded_offset' into account.
11248 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11250 * inflow.c: Include "gdbcmd.h".
11251 (interactive_mode): New static global, moved here from top.c.
11252 (show_interactive_mode): New function, moved here from top.c.
11253 use gdb_has_a_terminal instead of input_from_terminal_p to
11254 determine the current mode.
11255 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11257 (_initialize_inflow): Add the "set/show interactive-mode"
11258 commands. Moved here from top.c, after having adjusted slightly
11260 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11262 (input_from_terminal_p): Remove handling of "interactive-mode"
11263 setting, moved to infow.c.
11264 (init_main): Remove creation of the "set/show interactive-mode"
11265 commands, moved to inflow.c.
11267 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11269 * NEWS: Add entry for native ia64-hpux support.
11271 2011-01-19 Tom Tromey <tromey@redhat.com>
11274 * thread.c (free_thread): Free 'name'.
11275 (print_thread_info): Emit thread name. Change CLI output.
11276 (thread_name_command): New function.
11277 (do_captured_thread_select): Emit newline.
11278 (_initialize_thread): Register 'thread name' command.
11279 * target.h (struct target_ops) <to_thread_name>: New field.
11280 (target_thread_name): New macro.
11281 * target.c (update_current_target): Handle to_thread_name.
11282 * python/py-infthread.c (thpy_get_name): New function.
11283 (thpy_set_name): Likewise.
11284 (thread_object_getset): Add "name".
11285 * linux-nat.c (linux_nat_thread_name): New function.
11286 (linux_nat_add_target): Set to_thread_name.
11287 * gdbthread.h (struct thread_info) <name>: New field.
11289 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11291 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11292 (ada_val_print_1): Likewise.
11294 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11296 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11297 upper limit address is not greater than the function end address
11298 when the upper limit could not be computed using the debugging
11301 2011-01-17 Tom Tromey <tromey@redhat.com>
11303 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11305 * utils.c: Include gdb_regex.h.
11306 (do_regfree_cleanup): New function.
11307 (make_regfree_cleanup): Likewise.
11308 (get_regcomp_error): Likewise.
11309 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11311 2011-01-17 Tom Tromey <tromey@redhat.com>
11313 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11314 re_compile_fastmap.
11316 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11318 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11319 for internal variables.
11320 (last_was_structop): New static variable.
11321 (COMPLETE): New token.
11322 (field_exp): New rule to group all '.' suffix handling.
11323 Add mark_struct_expression calls when approriate to be able
11324 to correctly find fields for completion.
11325 (yylex): Adapt to handle field completion and set INTVAR when
11328 2011-01-14 Yao Qi <yao@codesourcery.com>
11330 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11331 save_reggroup, restore_reggroup and all_reggroup.
11333 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11335 * ada-valprint. (ada_printchar): Use the correct type length
11336 in call to ada_emit_char.
11337 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11339 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11341 * solib-som.h (hpux_major_release): Declare variable here.
11342 * solib-som.c: Remove <sys/utsname.h> header.
11343 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11344 (hpux_major_release): Make global, change default value to
11345 DEFAULT_HPUX_MAJOR_RELEASE.
11346 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11347 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11348 Add "solib-som.h" header.
11349 (set_hpux_major_release): New function.
11350 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11352 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11354 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11356 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11358 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11359 new-line at end of warning message.
11360 (ia64_hpux_store_register): Remove trailing new-line at end of
11362 * ia64-hpux-tdep.c: Rephrase comment.
11363 * solib-ia64-hpux.c (struct dld_info): Change type of field
11364 dld_flags from "long long" to ULONGEST.
11366 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11368 * target.h (deprecated_child_ops): Delete declaration.
11369 * target.c (deprecated_child_ops): Delete definition.
11371 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11373 * Makefile.in (hpux-thread.o): Delete rule.
11374 * configure.ac: Don't check for HPUX DCE threads support.
11375 * configure, config.in: Regenerate.
11376 * hppa-hpux-nat.c (child_suppress_run): Delete.
11377 (hppa_hpux_child_can_run): Delete.
11378 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11379 * hpux-thread.c: Delete.
11381 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11383 * hpux-thread.c (hpux_pid_to_str): Delete.
11385 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11387 * ada-valprint.c (ada_emit_char): Remove strange code.
11388 Check that c is <= UCHAR_MAX before passing it to isascii.
11389 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11391 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11393 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11394 to the case where instream is stdin.
11396 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11398 * ia64-tdep.h (struct regcache): Forward declare.
11399 (struct ia64_infcall_ops): New struct type.
11400 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11402 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11403 Renames ia64_find_global_pointer.
11404 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11405 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11406 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11408 (ia64_infcall_ops): New static global constant.
11409 (ia64_gdbarch_init): Set tdep->infcall_ops.
11410 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11411 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11412 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11413 (ia64_hpux_dummy_code): New static global constant.
11414 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11415 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11416 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11418 (ia64_hpux_infcall_ops): New static global constant.
11419 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11420 for inferior function calls to work properly on ia64-hpux.
11422 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11424 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11425 * ia64-tdep.h (struct frame_info): forward declaration.
11426 (struct gdbarch_tdep): Add field size_of_register_frame.
11427 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11428 to determine the size of the register frame.
11429 (ia64_size_of_register_frame): New function.
11430 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11431 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11432 (IA64_HPUX_UREG_REASON): New macro.
11433 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11435 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11436 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11437 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11440 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11442 Add support for ia64-hpux.
11443 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11444 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11446 * configure.host: Add handling for ia64-hpux hosts. Add associated
11448 * configure.tgt: Add handling for ia64-hpux targets.
11449 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11450 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11451 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11453 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11455 [ttrace] Compute thread list immediately after attach.
11456 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11458 (inf_ttrace_attach): Use it.
11460 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11462 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11463 if we could not determine the frame's function address. Instead,
11464 use the frame's PC, and then continue.
11466 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11468 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11469 not already defined.
11471 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11473 * ia64-tdep.c (ia64_struct_type_p): New function.
11474 (ia64_extract_return_value): Handle integral values that are
11475 less than 8 bytes long.
11476 (ia64_push_dummy_call): Likewise.
11478 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11480 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11481 floatformat_ia64_ext.
11482 (floatformat_ia64_ext_big): New static const.
11483 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11485 2011-01-12 Tom Tromey <tromey@redhat.com>
11487 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11489 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11490 (mi_cmd_thread_list_ids): Likewise.
11491 (mi_cmd_data_list_changed_registers): Likewise.
11492 (mi_cmd_data_list_register_values): Likewise.
11493 (mi_cmd_data_write_register_values): Likewise.
11494 (mi_cmd_data_evaluate_expression): Likewise.
11495 (mi_cmd_data_read_memory): Likewise.
11496 (mi_cmd_data_read_memory_bytes): Likewise.
11497 (mi_cmd_data_write_memory): Likewise.
11498 (mi_cmd_enable_timings): Likewise.
11499 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11500 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11501 (mi_cmd_var_delete): Likewise.
11502 (mi_cmd_var_set_format): Likewise.
11503 (mi_cmd_var_show_format): Likewise.
11504 (mi_cmd_var_info_num_children): Likewise.
11505 (mi_cmd_var_list_children): Likewise.
11506 (mi_cmd_var_info_type): Likewise.
11507 (mi_cmd_var_info_expression): Likewise.
11508 (mi_cmd_var_show_attributes): Likewise.
11509 (mi_cmd_var_assign): Likewise.
11510 (mi_cmd_var_update): Likewise.
11511 (mi_cmd_enable_pretty_printing): Likewise.
11512 (mi_cmd_var_set_update_range): Likewise.
11513 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11515 (mi_cmd_target_file_put): Likewise.
11516 (mi_cmd_target_file_delete): Likewise.
11517 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11519 (mi_cmd_stack_info_depth): Likewise.
11520 (mi_cmd_stack_list_locals): Likewise.
11521 (mi_cmd_stack_list_args): Likewise.
11522 (mi_cmd_stack_select_frame): Likewise.
11523 (mi_cmd_stack_select_frame): Likewise.
11524 (mi_cmd_stack_info_frame): Likewise.
11525 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11527 (mi_cmd_file_list_exec_source_files): Likewise.
11528 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11529 (mi_cmd_env_cd): Likewise.
11530 (mi_cmd_env_path): Likewise.
11531 (mi_cmd_env_dir): Likewise.
11532 (mi_cmd_inferior_tty_show): Likewise.
11533 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11534 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11535 (mi_cmd_break_watch): Likewise.
11537 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11539 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11540 (ppc_linux_insert_hw_breakpoint): Likewise.
11541 (ppc_linux_remove_hw_breakpoint): Likewise.
11542 (ppc_linux_insert_watchpoint): Likewise.
11544 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11545 Jan Kratochvil <jan.kratochvil@redhat.com>
11547 PR fortran/11104 and DWARF unbound arrays detection.
11548 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11549 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11550 unspecified upper bound.
11551 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11552 variables array_size_array, tmp_type and offset_item. New variable
11553 array. Remove call to f77_get_upperbound. New variables array_type
11554 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11555 the final call to deprecated_set_value_type.
11557 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11559 Make value allocations more lazy.
11560 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11561 instead of allocate_value and set_value_lazy when possible.
11562 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11563 instead of allocate_value and set_value_lazy.
11564 * findvar.c (value_of_register_lazy): Likewise.
11565 (read_var_value): Remove V preallocation, call just check_typedef in
11566 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11567 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11568 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11569 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11570 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11571 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11572 the end, remove set_value_lazy there.
11573 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11574 instead of allocate_value and set_value_lazy when possible.
11575 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11576 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11577 of allocate_value and set_value_lazy.
11578 (value_from_contents_and_address): Use allocate_value_lazy instead of
11579 allocate_value and set_value_lazy when possible.
11581 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11583 * disasm.c (dump_insns): Support dumping opcodes for MI.
11584 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11585 dumping of instruction opcodes.
11587 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11589 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11592 2011-01-11 Tom Tromey <tromey@redhat.com>
11594 * thread.c (do_captured_thread_select): Emit newline before
11597 2011-01-11 Michael Snyder <msnyder@vmware.com>
11599 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11600 * score-tdep.c: Ditto.
11601 * score-tdep.h: Ditto.
11602 * ser-base.c: Ditto.
11603 * ser-go32.c: Ditto.
11606 * ser-mingw.c: Ditto.
11607 * ser-pipe.c: Ditto.
11608 * ser-tcp.c: Ditto.
11609 * ser-unix.c: Ditto.
11610 * sh64-tdep.c: Ditto.
11611 * shnbsd-nat.c: Ditto.
11612 * sh-tdep.c: Ditto.
11613 * sh-tdep.h: Ditto.
11615 * solib-darwin.c: Ditto.
11616 * solib-frv.c: Ditto.
11618 * solib-irix.c: Ditto.
11619 * solib-osf.c: Ditto.
11620 * solib-pa64.c: Ditto.
11621 * solib-som.c: Ditto.
11622 * solib-spu.c: Ditto.
11623 * solib-sunos.c: Ditto.
11624 * solib-svr4.c: Ditto.
11626 * sol-thread.c: Ditto.
11627 * somread.c: Ditto.
11630 * sparc64-linux-tdep.c: Ditto.
11631 * sparc64-tdep.c: Ditto.
11632 * sparc-linux-nat.c: Ditto.
11633 * sparc-linux-tdep.c: Ditto.
11634 * sparc-sol2-nat.c: Ditto.
11635 * sparc-sol2-tdep.c: Ditto.
11636 * sparc-tdep.c: Ditto.
11637 * sparc-tdep.h: Ditto.
11638 * spu-tdep.c: Ditto.
11639 * stabsread.c: Ditto.
11640 * stabsread.h: Ditto.
11642 * symfile.c: Ditto.
11643 * symfile.h: Ditto.
11644 * symmisc.c: Ditto.
11648 * target-descriptions.c: Ditto.
11649 * target-descriptions.h: Ditto.
11651 * target-memory.c: Ditto.
11652 * terminal.h: Ditto.
11655 * tracepoint.c: Ditto.
11656 * tracepoint.h: Ditto.
11657 * trad-frame.h: Ditto.
11658 * typeprint.c: Ditto.
11660 2011-01-11 Michael Snyder <msnyder@vmware.com>
11662 * ui-file.c: Comment cleanup, mostly periods and spaces.
11663 * ui-file.h: Ditto.
11667 * v850-tdep.c: Ditto.
11668 * valarith.c: Ditto.
11670 * valprint.c: Ditto.
11671 * valprint.h: Ditto.
11676 * vax-tdep.c: Ditto.
11679 * version.h: Ditto.
11680 * windows-nat.c: Ditto.
11681 * windows-tdep.c: Ditto.
11682 * xcoffread.c: Ditto.
11683 * xcoffsolib.c: Ditto.
11684 * xml-support.c: Ditto.
11685 * xstormy16-tdep.c: Ditto.
11686 * xtensa-tdep.c: Ditto.
11687 * xtensa-tdep.h: Ditto.
11689 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11691 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11692 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11694 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11695 Thiago Jung Bauermann <bauerman@br.ibm.com>
11697 Implement support for PowerPC BookE ranged watchpoints.
11699 (struct breakpoint_ops) <resources_needed>: New method.
11700 Initialize to NULL in all existing breakpoint_ops instances.
11701 (struct breakpoint) <exact>: New field.
11702 (target_exact_watchpoints): Declare external global.
11703 * breakpoint.c (target_exact_watchpoints): New global flag.
11704 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11705 b->enable_state to bp_enabled before calling
11706 hw_watchpoint_used_count.
11707 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11708 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11710 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11711 if the watchpoint is exact.
11712 (resources_needed_watchpoint): New function.
11713 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11714 (watch_command_1): Set b->exact if the user asked for an exact
11715 watchpoint and one can be set.
11716 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11717 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11718 the user asks for an exact watchpoint and one can be set. Return
11719 number of needed debug registers to watch the expression.
11720 * gdbtypes.c (is_scalar_type): New function, based on
11721 valprint.c:scalar_type_p.
11722 (is_scalar_type_recursive): New function.
11723 * gdbtypes.h (is_scalar_type_recursive): Declare.
11724 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11725 handle regions when ranged watchpoints are available.
11726 (create_watchpoint_request): New function.
11727 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11728 create_watchpoint_request.
11729 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11730 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11731 `set powerpc' and `show powerpc' commands.
11732 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11733 Mention documentation comment in the target macro.
11734 (target_region_ok_for_hw_watchpoint): Document return value.
11736 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11738 * breakpoint.c (update_watchpoint): Decide on using a software or
11739 hardware watchpoint after the bp_locations are created.
11741 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11743 Convert hardware watchpoints to use breakpoint_ops.
11744 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11745 <insert_location>: ... this. Return int instead of void.
11746 Accept pointer to struct bp_location instead of pointer to
11747 struct breakpoint. Adapt all implementations.
11748 (breakpoint_ops) <remove>: Rename to...
11749 <remove_location>: ... this. Accept pointer to struct bp_location
11750 instead of pointer to struct breakpoint. Adapt all implementations.
11751 * breakpoint.c (insert_catchpoint): Delete function.
11752 (insert_bp_location): Call the watchpoint or catchpoint's
11753 breakpoint_ops.insert method.
11754 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11755 breakpoint_ops.remove method.
11756 (insert_watchpoint, remove_watchpoint): New functions.
11757 (watchpoint_breakpoint_ops): New structure.
11758 (watch_command_1): Initialize the OPS field.
11759 * inf-child.c (inf_child_insert_fork_catchpoint)
11760 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11761 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11762 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11764 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11765 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11766 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11767 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11768 * target.c (update_current_target): Change default implementation of
11769 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11770 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11771 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11772 to_set_syscall_catchpoint to return_one.
11773 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11774 (debug_to_insert_exec_catchpoint): Report return value.
11775 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11776 (to_insert_exec_catchpoint): Change declaration to return int instead
11779 2011-01-11 Michael Snyder <msnyder@vmware.com>
11781 * arm-tdep.c: Internationalization.
11783 * charset.c: Ditto.
11784 * fork-child.c: Ditto.
11785 * nto-procfs.c: Ditto.
11786 * ppc-sysv-tdep.c: Ditto.
11788 * remote-mips.c: Ditto.
11790 * rs6000-nat.c: Ditto.
11791 * rs6000-tdep.c: Ditto.
11795 * xml-support.c: Ditto.
11796 * mi/mi-cmd-break.c: Ditto.
11797 * mi/mi-cmd-var.c: Ditto.
11798 * mi/mi-interp.c: Ditto.
11799 * mi/mi-main.c: Ditto.
11801 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11803 * remote-sim.c (gdbsim_store_register): Update API to
11804 sim_store_register to check more error conditions.
11806 2011-01-10 Michael Snyder <msnyder@vmware.com>
11808 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11809 * nto-tdep.c: Ditto.
11810 * nto-tdep.h: Ditto.
11811 * objc-exp.y: Ditto.
11812 * objc-lang.c: Ditto.
11813 * objfiles.c: Ditto.
11814 * objfiles.h: Ditto.
11815 * observer.c: Ditto.
11816 * opencl-lang.c: Ditto.
11819 * parser-defs.h: Ditto.
11822 * posix-hdep.c: Ditto.
11823 * ppcbug-rom.c: Ditto.
11824 * ppc-linux-nat.c: Ditto.
11825 * ppc-linux-tdep.c: Ditto.
11826 * ppc-linux-tdep.h: Ditto.
11827 * ppcnbsd-tdep.c: Ditto.
11828 * ppcobsd-tdep.c: Ditto.
11829 * ppcobsd-tdep.h: Ditto.
11830 * ppc-sysv-tdep.c: Ditto.
11831 * ppc-tdep.h: Ditto.
11832 * printcmd.c: Ditto.
11833 * proc-abi.c: Ditto.
11834 * proc-flags.c: Ditto.
11836 * proc-utils.h: Ditto.
11837 * progspace.h: Ditto.
11838 * prologue-value.c: Ditto.
11839 * prologue-value.h: Ditto.
11840 * psympriv.h: Ditto.
11841 * psymtab.c: Ditto.
11842 * p-typeprint.c: Ditto.
11843 * p-valprint.c: Ditto.
11844 * ravenscar-sparc-thread.c: Ditto.
11845 * ravenscar-thread.c: Ditto.
11846 * ravenscar-thread.h: Ditto.
11848 * regcache.c: Ditto.
11849 * regcache.h: Ditto.
11851 * remote-fileio.c: Ditto.
11852 * remote-fileio.h: Ditto.
11854 * remote-m32r-sdi.c: Ditto.
11855 * remote-mips.c: Ditto.
11856 * remote-sim.c: Ditto.
11857 * rs6000-aix-tdep.c: Ditto.
11858 * rs6000-nat.c: Ditto.
11859 * rs6000-tdep.c: Ditto.
11861 2011-01-10 Michael Snyder <msnyder@vmware.com>
11863 * charset.c (validate): Internationalization.
11864 * coffread.c (read_one_sym): Ditto.
11865 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11866 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11867 * inflow.c (new_tty): Ditto.
11868 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11869 * m32c-tdep.c (m32c_return_value): Ditto.
11870 * mep-tdep.c (mep_store_return_value): Ditto.
11871 * score-tdep.c (score7_fetch_insn): Ditto.
11872 * ser-mingw.c (pipe_windows_open): Ditto.
11873 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11874 * spu-tdep.c (spu_register_type): Ditto.
11875 * tracepoint.c (trace_find_command): Ditto.
11876 * valarith.c (value_pos): Ditto.
11878 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11880 * ada-valprint.c (printstr): Minor comment reformatting.
11882 2011-01-08 Michael Snyder <msnyder@vmware.com>
11884 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11887 2011-01-08 Michael Snyder <msnyder@vmware.com>
11889 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11890 * hppa-hpux-tdep.c: Ditto.
11891 * hppa-linux-nat.c: Ditto.
11892 * hppa-linux-tdep.c: Ditto.
11893 * hppanbsd-tdep.c: Ditto.
11894 * hppa-tdep.c: Ditto.
11895 * hppa-tdep.h: Ditto.
11896 * hpux-thread.c: Ditto.
11897 * i386-cygwin-tdep.c: Ditto.
11898 * i386-darwin-nat.c: Ditto.
11899 * i386gnu-nat.c: Ditto.
11900 * i386-linux-nat.c: Ditto.
11901 * i386-linux-tdep.c: Ditto.
11902 * i386-nat.c: Ditto.
11903 * i386-nat.h: Ditto.
11904 * i386nbsd-tdep.c: Ditto.
11905 * i386-sol2-nat.c: Ditto.
11906 * i386-stub.c: Ditto.
11907 * i386-tdep.c: Ditto.
11908 * i386-tdep.h: Ditto.
11909 * i387-tdep.c: Ditto.
11910 * ia64-linux-nat.c: Ditto.
11911 * ia64-linux-tdep.c: Ditto.
11912 * ia64-tdep.c: Ditto.
11913 * infcall.c: Ditto.
11914 * infcall.h: Ditto.
11916 * inferior.c: Ditto.
11917 * inferior.h: Ditto.
11918 * infloop.c: Ditto.
11921 * interps.c: Ditto.
11922 * interps.h: Ditto.
11923 * iq2000-tdep.c: Ditto.
11924 * irix5-nat.c: Ditto.
11928 * jv-lang.c: Ditto.
11929 * jv-lang.h: Ditto.
11930 * jv-typeprint.c: Ditto.
11931 * jv-valprint.c: Ditto.
11932 * language.c: Ditto.
11933 * language.h: Ditto.
11934 * linespec.c: Ditto.
11935 * linux-fork.c: Ditto.
11936 * linux-nat.c: Ditto.
11937 * linux-thread-db.c: Ditto.
11938 * lm32-tdep.c: Ditto.
11940 2011-01-08 Michael Snyder <msnyder@vmware.com>
11942 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11943 * m2-lang.c: Ditto.
11944 * m2-typeprint.c: Ditto.
11945 * m2-valprint.c: Ditto.
11946 * m32c-tdep.c: Ditto.
11947 * m32r-linux-nat.c: Ditto.
11948 * m32r-rom.c: Ditto.
11949 * m32r-tdep.c: Ditto.
11950 * m32r-tdep.h: Ditto.
11951 * m68hc11-tdep.c: Ditto.
11952 * m58klinux-nat.c: Ditto.
11953 * m68k-tdep.c: Ditto.
11954 * m88k-tdep.c: Ditto.
11955 * m88k-tdep.h: Ditto.
11956 * machoread.c: Ditto.
11957 * macrocmd.c: Ditto.
11958 * macroexp.c: Ditto.
11959 * macrotab.c: Ditto.
11962 * mdebugread.c: Ditto.
11963 * mdebugread.h: Ditto.
11964 * memattr.c: Ditto.
11965 * memattr.h: Ditto.
11966 * memory-map.h: Ditto.
11967 * mep-tdep.c: Ditto.
11968 * microblaze-rom.c: Ditto.
11969 * microblaze-tdep.c: Ditto.
11970 * minsyms.c: Ditto.
11971 * mips-irix-tdep.c: Ditto.
11972 * mips-linux-nat.c: Ditto.
11973 * mips-linux-tdep.c: Ditto.
11974 * mips-linux-tdep.h: Ditto.
11975 * mipsnbsd-nat.c: Ditto.
11976 * mipsnbsd-tdep.c: Ditto.
11977 * mipsread.c: Ditto.
11978 * mips-tdep.c: Ditto.
11979 * mips-tdep.h: Ditto.
11980 * mn10300-linux-tdep.c: Ditto.
11981 * mn10300-tdep.c: Ditto.
11982 * mn10300-tdep.h: Ditto.
11983 * monitor.c: Ditto.
11984 * monitor.h: Ditto.
11985 * moxie-tdep.c: Ditto.
11986 * moxie-tdep.h: Ditto.
11987 * mt-tdep.c: Ditto.
11989 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11991 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11993 2011-01-08 Robert Millan <rmh@gnu.org>
11995 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11997 2011-01-07 Michael Snyder <msnyder@vmware.com>
11999 * charset.c (_initialize_charset): Fix typo in string.
12001 2011-01-07 Michael Snyder <msnyder@vmware.com>
12003 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12005 * tui/tui-layout.c (tui_set_layout_for_display_command):
12006 Split line so that operator goes to beginning of line.
12007 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12008 assignment out of if statement.
12010 2011-01-07 Michael Snyder <msnyder@vmware.com>
12012 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12013 * ada-lang.h: Ditto.
12014 * ada-tasks.c: Ditto.
12015 * ada-valprint.c: Ditto.
12016 * aix-threads.c: Ditto.
12017 * alpha-linux-nat.c: Ditto.
12018 * alpha-linux-tdep.c: Ditto.
12019 * alpha-mdebug-tdep.c: Ditto.
12020 * alpha-nat.c: Ditto.
12021 * alpha-osf1-tdep.c: Ditto.
12022 * alpha-tdep.c: Ditto.
12023 * alphabsd-nat.c: Ditto.
12024 * alphabsd-tdep.c: Ditto.
12025 * amd64-darwin-tdep.c: Ditto.
12026 * amd64-linux-nat.c: Ditto.
12027 * amd64-linux-tdep.c: Ditto.
12028 * amd64-sol2-tdep.c: Ditto.
12029 * amd64-tdep.c: Ditto.
12030 * amd64-fbsd-tdep.c: Ditto.
12031 * amd64-nbsd-tdep.c: Ditto.
12032 * amd64-obsd-tdep.c: Ditto.
12033 * amd64-linux-nat.c: Ditto.
12034 * amd64-linux-tdep.c: Ditto.
12035 * arm-tdep.c: Ditto.
12036 * arm-tdep.h: Ditto.
12037 * armnbsd-nat.c: Ditto.
12038 * avr-tdep.c: Ditto.
12039 * bfin-tdep.c: Ditto.
12040 * bsd-kvm.c: Ditto.
12041 * c-typeprintc: Ditto.
12042 * c-valprint.c: Ditto.
12043 * coff-pe-read.h: Ditto.
12044 * coffreead.c: Ditto.
12045 * cris-tdep.c: Ditto.
12047 * darwin-nat-info.c: Ditto.
12048 * darwin-nat.c: Ditto.
12049 * dbug-rom.c: Ditto.
12050 * dbxread.c: Ditto.
12053 * dec-thread.c: Ditto.
12055 * demangle.c: Ditto.
12056 * dicos-tdep.c: Ditto.
12057 * dictionary.c: Ditto.
12058 * dictionary.h: Ditto.
12059 * dink32-rom.c: Ditto.
12061 * doublest.c: Ditto.
12063 * dummy-frame.c: Ditto.
12064 * dwarf2-frame.c: Ditto.
12065 * dwarf2expr.c: Ditto.
12066 * dwarf2loc.c: Ditto.
12067 * dwarf2read.c: Ditto.
12068 * elfread.c: Ditto.
12069 * environ.c: Ditto.
12071 * event-top.h: Ditto.
12072 * exceptions.c: Ditto.
12073 * exceptions.h: Ditto.
12075 * expprint.c: Ditto.
12076 * expression.h: Ditto.
12080 * f-typeprint.c: Ditto.
12081 * f-valprint.c: Ditto.
12082 * fbsd-nat.c: Ditto.
12083 * findvar.c: Ditto.
12084 * fork-child.c: Ditto.
12087 * frv-linux-tdep.c: Ditto.
12088 * frv-tdep.c: Ditto.
12090 * gdb-stabs.h: Ditto.
12091 * gdb_assert.h: Ditto.
12092 * gdb_string.h: Ditto.
12093 * gdb_thread_db.h: Ditto.
12094 * gdb_wait.h: Ditto.
12095 * gdbarch.sh: Ditto.
12096 * gdbcore.h: Ditto.
12097 * gdbthread.h: Ditto.
12098 * gdbtypes.c: Ditto.
12099 * gdbtypes.h: Ditto.
12100 * gnu-nat.c: Ditto.
12101 * gnu-nat.h: Ditto.
12102 * gnu-v2-abi.c: Ditto.
12103 * gnu-v3-abi.c: Ditto.
12104 * go32-nat.c: Ditto.
12105 * gdbarch.c: Regenerate.
12106 * gdbarch.h: Regenerate.
12108 2011-01-07 Michael Snyder <msnyder@vmware.com>
12110 * ax-gdb.c: Adjust some long output strings.
12111 * breakpoint.c: Ditto.
12112 * charset.c: Ditto.
12114 * infcall.c: Ditto.
12116 * linux-nat.c: Ditto.
12117 * solib-pa64.c: Ditto.
12118 * solib-som.c: Ditto.
12120 2011-01-06 Tom Tromey <tromey@redhat.com>
12124 * python/python.c (GdbMethods): Add "newest_frame" method.
12125 * python/python-internal.h (gdbpy_newest_frame): Declare.
12126 * python/py-frame.c (gdbpy_newest_frame): New function.
12128 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12130 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12131 * jit.c (jit_debug): New variable.
12132 (show_jit_debug): New function.
12133 (struct target_buffer): Use ULONGEST.
12134 (bfd_open_from_target_memory): Likewise.
12135 (jit_register_code, jit_inferior_init): Add debug output.
12136 (_initialize_jit): Register "debug jit" command.
12138 2011-01-06 Tom Tromey <tromey@redhat.com>
12140 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12141 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12144 2011-01-06 Tom Tromey <tromey@redhat.com>
12146 * python/py-frame.c (frapy_block): Use get_frame_block.
12148 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12150 Do not stop on SIGPRIO signals by default
12151 * infrun.c (_initialize_infrun): Unset signal_stop and
12152 signal_print for TARGET_SIGNAL_PRIO.
12154 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12156 * ada-tasks.c: Fix style violation in comment.
12158 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12160 * linespec.c (decode_compound, find_method): Remove trailing \n
12161 at end of error string.
12162 * solib-irix.c (irix_current_sos): Likewise.
12163 * varobj.c (uninstall_variable): Likewise.
12165 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12167 * copyright.py: New script.
12168 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12169 Launch emacs without exec'ing. Call copyright.py afterwards.
12171 2011-01-05 Michael Snyder <msnyder@vmware.com>
12173 * addrmap.c: Shorten lines of >= 80 columns.
12174 * arch-utils.c: Ditto.
12175 * arch-utils.h: Ditto.
12177 * ax-general.c: Ditto.
12179 * blockframe.c: Ditto.
12180 * breakpoint.c: Ditto.
12181 * buildsym.c: Ditto.
12183 * c-typeprint.c: Ditto.
12184 * charset.c: Ditto.
12185 * coffread.c: Ditto.
12186 * command.h: Ditto.
12187 * corelow.c: Ditto.
12189 * cp-namespace.c: Ditto.
12190 * cp-support.c: Ditto.
12191 * dbug-rom.c: Ditto.
12192 * dbxread.c: Ditto.
12196 * dictionary.c: Ditto.
12198 * doublest.c: Ditto.
12199 * dwarf2-frame.c: Ditto.
12200 * dwarf2expr.c: Ditto.
12201 * dwarf2loc.c: Ditto.
12202 * dwarf2read.c: Ditto.
12203 * elfread.c: Ditto.
12205 * event-loop.c: Ditto.
12206 * event-loop.h: Ditto.
12207 * exceptions.h: Ditto.
12209 * expprint.c: Ditto.
12210 * expression.h: Ditto.
12212 * f-valprint.c: Ditto.
12213 * findcmd.c: Ditto.
12214 * frame-base.c: Ditto.
12215 * frame-unwind.c: Ditto.
12216 * frame-unwind.h: Ditto.
12220 * gdb-stabs.h: Ditto.
12221 * gdb_assert.h: Ditto.
12222 * gdb_dirent.h: Ditto.
12223 * gdb_obstack.h: Ditto.
12224 * gdbcore.h: Ditto.
12225 * gdbtypes.c: Ditto.
12226 * gdbtypes.h: Ditto.
12227 * inf-ttrace.c: Ditto.
12228 * infcall.c: Ditto.
12232 * inline-frame.h: Ditto.
12233 * language.c: Ditto.
12234 * language.h: Ditto.
12235 * libunwind-frame.c: Ditto.
12236 * libunwind-frame.h: Ditto.
12237 * linespec.c: Ditto.
12238 * linux-nat.c: Ditto.
12239 * linux-nat.h: Ditto.
12240 * linux-thread-db.c: Ditto.
12241 * machoread.c: Ditto.
12242 * macroexp.c: Ditto.
12243 * macrotab.c: Ditto.
12246 * mdebugread.c: Ditto.
12247 * memattr.c: Ditto.
12248 * minsyms.c: Ditto.
12249 * monitor.c: Ditto.
12250 * monitor.h: Ditto.
12251 * objfiles.c: Ditto.
12252 * objfiles.h: Ditto.
12254 * p-typeprint.c: Ditto.
12255 * p-valprint.c: Ditto.
12257 * printcmd.c: Ditto.
12258 * proc-events.c: Ditto.
12260 * progspace.c: Ditto.
12261 * progspace.h: Ditto.
12262 * psympriv.h: Ditto.
12263 * psymtab.c: Ditto.
12265 * regcache.c: Ditto.
12266 * regcache.h: Ditto.
12267 * remote-fileio.c: Ditto.
12269 * ser-mingw.c: Ditto.
12270 * ser-tcp.c: Ditto.
12271 * ser-unix.c: Ditto.
12274 * solib-frv.c: Ditto.
12275 * solib-irix.c: Ditto.
12276 * solib-osf.c: Ditto.
12277 * solib-pa64.c: Ditto.
12278 * solib-som.c: Ditto.
12279 * solib-sunos.c: Ditto.
12280 * solib-svr4.c: Ditto.
12281 * solib-target.c: Ditto.
12283 * somread.c: Ditto.
12285 * stabsread.c: Ditto.
12286 * stabsread.c: Ditto.
12289 * symfile-mem.c: Ditto.
12290 * symfile.c: Ditto.
12291 * symfile.h: Ditto.
12292 * symmisc.c: Ditto.
12295 * target-descriptions.c: Ditto.
12296 * target-memory.c: Ditto.
12299 * terminal.h: Ditto.
12302 * tracepoint.c: Ditto.
12303 * tracepoint.h: Ditto.
12304 * ui-file.c: Ditto.
12305 * ui-file.h: Ditto.
12307 * user-regs.c: Ditto.
12308 * user-regs.h: Ditto.
12310 * valarith.c: Ditto.
12312 * valprint.c: Ditto.
12313 * valprint.h: Ditto.
12318 * xcoffread.c: Ditto.
12319 * xcoffsolib.c: Ditto.
12320 * xcoffsolib.h: Ditto.
12321 * xml-syscall.c: Ditto.
12322 * xml-tdesc.c: Ditto.
12324 2011-01-05 Michael Snyder <msnyder@vmware.com>
12326 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12327 * cli/cli-decode.c: Ditto.
12328 * cli/cli-dump.c: Ditto.
12329 * cli/cli-logging.c: Ditto.
12330 * cli/cli-script.c: Ditto.
12331 * cli/cli-setshow.c: Ditto.
12332 * common/signals.c: Ditto.
12333 * mi/mi-cmd-break.c: Ditto.
12334 * mi/mi-cmd-disas.c: Ditto.
12335 * mi/mi-cmd-stack.c: Ditto.
12336 * mi/mi-cmd-var.c: Ditto.
12337 * mi/mi-cmds.c: Ditto.
12338 * mi/mi-common.h: Ditto.
12339 * mi/mi-console.c: Ditto.
12340 * mi/mi-interp.c: Ditto.
12341 * mi/mi-main.c: Ditto.
12342 * osf-share/cma_attr.c: Ditto.
12343 * osf-share/cma_deb_core.h: Ditto.
12344 * osf-share/cma_debug_client.h: Ditto.
12345 * osf-share/cma_handle.h: Ditto.
12346 * osf-share/cma_mutex.h: Ditto.
12347 * osf-share/cma_stack_int.h: Ditto.
12348 * osf-share/cma_tcb_defs.h: Ditto.
12349 * python/py-auto-load.c: Ditto.
12350 * python/py-breakpoint.c: Ditto.
12351 * python/py-cmd.c: Ditto.
12352 * python/py-frame.c: Ditto.
12353 * python/py-objfile.c: Ditto.
12354 * python/py-param.c: Ditto.
12355 * python/py-progspace.c: Ditto.
12356 * python/py-symbol.c: Ditto.
12357 * python/py-value.c: Ditto.
12358 * python/python-internal.h: Ditto.
12359 * python/python.c: Ditto.
12360 * tui/tui-data.c: Ditto.
12361 * tui/tui-disasm.c: Ditto.
12362 * tui/tui-hooks.c: Ditto.
12363 * tui/tui-io.c: Ditto.
12364 * tui/tui-layout.c: Ditto.
12365 * tui/tui-regs.c: Ditto.
12366 * tui/tui-source.c: Ditto.
12367 * tui/tui-stack.c: Ditto.
12368 * tui/tui-win.c: Ditto.
12369 * tui/tui-windata.c: Ditto.
12370 * tui/tui-winsource.c: Ditto.
12372 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12374 * configure.ac, gdb.1: Copyright year update.
12376 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12378 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12379 this_pc_in_block, morestack_msym and morestack_name. Check for
12380 "__morestack" minimal symbol there.
12382 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12384 * symfile.c (find_sym_fns): Add call to dont_repeat.
12386 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12388 Copyright year update in most files (performed by copyright.sh).
12390 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12392 * top.c (print_gdb_version): Update copyright year in version output.
12394 For older changes see ChangeLog-2010.
12400 version-control: never