1 2011-12-21 Joel Brobecker <brobecker@adacore.com>
3 * linespec.c (locate_first_half): Add handling of Ada operators
4 when the current language is Ada.
6 2011-12-21 Joel Brobecker <brobecker@adacore.com>
8 * objfiles.c (insert_section_p): Do not detect overlay sections
9 if overlay debugging is off.
11 2011-12-21 Joel Brobecker <brobecker@adacore.com>
13 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
14 Update function documentation.
15 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
18 2011-12-20 Pedro Alves <alves.ped@gmail.com>
19 Jan Kratochvil <jan.kratochvil@redhat.com>
21 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
23 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
24 `lwp->arch_private' if NULL.
25 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
27 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
28 `lwp->arch_private' if NULL.
29 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
32 2011-12-19 Doug Evans <dje@google.com>
34 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
35 scripts vector to collect_matching_scripts.
36 (collect_matching_scripts): Update.
38 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
41 preserve_values, sym_finish and clear_objfile_data calls before BFD
42 close. Move free_objfile_separate_debug as the very first call. New
43 comment on the ordering.
45 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
47 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
50 2011-12-19 Tom Tromey <tromey@redhat.com>
52 * symtab.h (add_minsym_to_hash_table): Don't declare.
53 * minsyms.c (add_minsym_to_hash_table): Now static.
55 2011-12-19 Joel Brobecker <brobecker@adacore.com>
57 * elfread.c (elf_symtab_read): Ignore undefined symbols with
58 nonzero addresses if they do not correspond to a .plt section
59 when one is available in the objfile.
61 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
63 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
66 2011-12-17 Mark Kettenis <kettenis@gnu.org>
68 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
69 regset_from_core_section.
70 (amd64obsd_core_init_abi): New function that sets
71 regset_from_core_section.
72 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
73 traditional core dumps.
75 2011-12-17 Mark Kettenis <kettenis@gnu.org>
77 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
78 trampoline to be introduced in OpenBSD 5.0.
80 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
82 Fix build regression from the PR threads/10729 fix.
83 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
86 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
88 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
89 `optarg' to `oind' and `oarg', respectively(-Wshadow).
90 (mi_cmd_data_read_memory): Ditto.
91 (mi_cmd_data_read_memory_bytes): Ditto.
92 (mi_cmd_data_write_memory): Ditto.
94 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
96 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
97 `oind' and `oarg', respectively(-Wshadow).
98 (mi_valid_noargs): Ditto.
100 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
102 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
103 `oind' and `oarg', respectively(-Wshadow).
105 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
107 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
108 `optarg' to `oind' and `oarg', respectively(-Wshadow).
109 (mi_cmd_target_file_put): Ditto.
110 (mi_cmd_target_file_delete): Ditto.
112 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
114 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
115 `optarg' to `oind' and `oarg', respectively(-Wshadow).
116 (mi_cmd_env_dir): Ditto.
118 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
120 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
121 `optarg' to `oind' and `oarg', respectively(-Wshadow).
123 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
125 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
126 `optparg' to `oind' and `oarg', respectively(-Wshadow).
127 (mi_cmd_break_watch): Ditto.
129 2011-12-16 Tom Tromey <tromey@redhat.com>
131 * linespec.c (collect_symbols): Call maybe_add_address after
132 calling symbol_to_sal.
133 (minsym_found): Call maybe_add_address here.
134 (search_minsyms_for_name): Don't call maybe_add_address.
136 2011-12-16 Tom Tromey <tromey@redhat.com>
138 * linespec.c (struct collect_info) <objfile>: Remove field.
139 (decode_objc): Update.
140 (find_method): Update.
141 (decode_variable): Update.
142 (struct minsym_and_objfile): New.
143 (struct collect_minsyms): New.
144 (classify_mtype): New function.
145 (compare_msyms): Likewise.
146 (add_minsym): Likewise.
147 (check_minsym): Remove.
148 (search_minsyms_for_name): Sort minsyms and apply only those with
151 2011-12-16 Tom Tromey <tromey@redhat.com>
153 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
155 2011-12-16 Pedro Alves <pedro@codesourcery.com>
157 * inf-loop.c: Include top.h.
158 (inferior_event_handler): Call check_frame_language.
159 * top.c (check_frame_language_change): New, factored out from ...
160 (execute_command): ... this. Use check_frame_language_change.
161 * top.h (check_frame_language_change): Declare.
163 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
165 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
168 2011-12-16 Doug Evans <dje@google.com>
170 * NEWS: Add entry for stdio gdbserver.
172 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
174 * python/python.c: Define python_excp_enums.
175 (eval_python_from_control_command): Do not call gdbpy_print_stack.
176 (python_command): Ditto.
177 (gdbpy_print_stack): Rewrite to use new enum constants.
178 (maint_set_python): Remove function.
179 (maint_show_python): Ditto.
180 (_initialize_python): Do not add "maint" commands. Add "set/show
181 python print-stack commands".
182 * NEWS: Update to reflect removal for "maint set/show
185 2011-12-15 Doug Evans <dje@google.com>
187 * exceptions.c (catcher_list_size): New function.
188 (last_message): Delete.
189 (exception_messages, exception_messages_size): New static globals.
190 (throw_it): Use exception_messages array to handle nested calls.
192 2011-12-15 Tom Tromey <tromey@redhat.com>
194 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
197 2011-12-14 Doug Evans <dje@google.com>
199 * defs.h (wait_to_die_with_timeout): Declare.
200 * utils.c: #include "gdb_wait.h".
201 (sigalrm_handler, wait_to_die_with_timeout): New functions.
202 * ser-pipe.c: Don't #include "gdb_wait.h".
203 (pipe_close): Give child a chance to die on its own after closing
204 its stdin before SIGTERM'ing it.
206 2011-12-14 Joel Brobecker <brobecker@adacore.com>
207 Tom Tromey <tromey@redhat.com>
209 * ada-lang.c (add_nonlocal_symbols): Initialize data to
210 all zeros. Remove setting of data.arg_sym to NULL.
212 2011-12-14 Pedro Alves <pedro@codesourcery.com>
216 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
218 (linux_nat_prepare_to_resume): New global.
220 (purge_lwp_list): Use it.
221 (add_lwp): Call linux_nat_new_thread even on the first LWP.
222 Adjust to interface change.
223 (delete_lwp): Call lwp_free instead of xfree.
224 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
225 (linux_handle_syscall_trap, linux_handle_extended_wait)
226 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
227 linux_nat_prepare_to_resume before resuming.
228 (linux_stop_lwp): New.
229 (linux_nat_set_new_thread): Adjust.
230 (linux_nat_set_prepare_to_resume): New.
231 * linux-nat.h (struct arch_lwp_info): Forward declare.
232 (struct lwp_info) <arch_private>: New field.
233 (linux_stop_lwp): Declare.
234 (linux_nat_set_new_thread): Adjust.
235 (linux_nat_set_prepare_to_resume): New.
237 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
238 (struct i386_debug_reg_state): Move to i386-nat.h.
239 (dr_mirror): Comment.
240 (i386_debug_reg_state): New.
241 (i386_update_inferior_debug_regs): Simplify.
242 (i386_stopped_data_address): Use the debug register state from the
243 inferior, not from the local cache.
244 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
245 unset_status fields. New get_addr and get_control fields.
246 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
247 (DR_NADDR, DR_STATUS): New.
248 (struct i386_debug_reg_state): Moved from i386-nat.c.
250 * amd64-linux-nat.c (struct arch_lwp_info): New.
251 (amd64_linux_dr): Delete global.
252 (amd64_linux_dr_get_addr): New.
253 (amd64_linux_dr_get_control): New.
254 (amd64_linux_dr_unset_status): Delete.
255 (amd64_linux_dr_set_addr): Reimplement.
256 (amd64_linux_dr_reset_addr): Delete.
257 (update_debug_registers_callback): New.
258 (amd64_linux_dr_set_control): Reimplement.
259 (amd64_linux_dr_set_addr): Reimplement.
260 (amd64_linux_prepare_to_resume): New.
261 (amd64_linux_new_thread): Change parameter to an lwp pointer.
263 (_initialize_amd64_linux_nat): No longer install
264 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
265 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
266 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
267 amd64_linux_prepare_to_resume.
268 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
269 (DR_CONTROL): Delete.
270 (struct arch_lwp_info): New.
271 (i386_linux_dr): Delete global.
272 (i386_linux_dr_set_control): Reimplement.
273 (i386_linux_dr_get_addr): New.
274 (i386_linux_dr_set_addr): Reimplement.
275 (i386_linux_dr_get_control): New.
276 (update_debug_registers_callback): New.
277 (i386_linux_dr_unset_status): Delete.
278 (i386_linux_dr_set_addr): Reimplement.
279 (i386_linux_prepare_to_resume): New.
280 (i386_linux_new_thread): Change parameter to an lwp pointer.
282 (_initialize_i386_linux_nat): No longer install
283 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
284 i386_linux_dr_get_control as i386_dr_low.get_control. Install
285 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
286 i386_linux_prepare_to_resume.
288 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
290 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
291 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
292 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
293 * s390-nat.c (s390_fix_watch_points): Likewise.
295 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
296 (DR_CONTROL): Delete.
297 (i386_darwin_dr_reset_addr): Delete.
298 (i386_darwin_dr_get_addr): New.
299 (i386_darwin_dr_get_control): New.
301 (go32_get_dr7, go32_get_dr): New.
302 (init_go32_ops): No longer install i386_dr_low.reset_addr.
303 Install go32_get_dr7 as i386_dr_low.get_control. Install
304 go32_get_dr as i386_dr_low.get_addr.
305 * i386bsd-nat.c (i386bsd_dr_get): New.
306 (i386bsd_dr_reset_addr): Delete.
307 (i386bsd_dr_get_addr): New.
308 (i386bsd_dr_get_status): Use i386bsd_dr_get.
309 (i386bsd_dr_get_control): New.
310 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
311 (i386bsd_dr_get_addr): New.
312 (i386bsd_dr_get_control): New.
313 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
314 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
315 i386bsd_dr_get_control as i386_dr_low.get_control. Install
316 i386bsd_dr_get_addr as i386_dr_low.get_addr.
317 * windows-nat.c (init_windows_ops): No longer install
318 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
319 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
320 as i386_dr_low.get_addr.
321 (cygwin_get_dr): New.
322 (cygwin_get_dr7): New.
324 2011-12-14 Pedro Alves <pedro@codesourcery.com>
326 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
327 target_write_raw_memory.
328 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
329 target_write_raw_memory.
330 * microblaze-linux-tdep.c
331 (microblaze_linux_memory_remove_breakpoint): Use
332 target_write_raw_memory.
333 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
334 target_write_raw_memory.
336 2011-12-14 Joel Brobecker <brobecker@adacore.com>
338 * linespec.c (decode_line_internal): Make static.
340 2011-12-14 Yao Qi <yao@codesourcery.com>
342 * breakpoint.c (create_breakpoint): Set canonical.addr_string
343 for static tracepoint.
345 2011-12-13 Joel Brobecker <brobecker@adacore.com>
347 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
348 * version.in: Bump version to 7.4.50.20111213-cvs.
350 2011-12-13 Joel Brobecker <brobecker@adacore.com>
352 * NEWS: Create a new section for the next release branch.
353 Rename the section of the current branch, now that it has
356 2011-12-11 Joel Brobecker <brobecker@adacore.com>
358 * ada-lang.c (ada_exception_support_info_sniffer): Improve
361 2011-12-11 Joel Brobecker <brobecker@adacore.com>
363 * ada-lang.c (struct ada_inferior_data) [exception_info]:
365 (exception_info): Delete.
366 (ada_exception_support_info_sniffer): Get exception_support_info
367 data from our per-inferior data. Adjust code accordingly.
368 (ada_unhandled_exception_name_addr_from_raise): Likewise.
369 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
370 (ada_executable_changed_observer): Delete.
371 (_initialize_ada_language): Remove call to
372 observer_attach_executable_changed.
374 2011-12-11 Joel Brobecker <brobecker@adacore.com>
376 * ada-lang.c (ada_has_this_exception_support): Raise an error
377 if we could find the Ada exception hook in the Ada runtime,
378 but no debugging info for that hook.
380 2011-12-11 Joel Brobecker <brobecker@adacore.com>
382 * ada-lang.c (ada_has_this_exception_support): New function,
383 extracted out of ada_exception_sal and ada_exception_sal.
384 (ada_exception_support_info_sniffer): Simplify by using
385 ada_has_this_exception_support.
386 (ada_exception_sal): Replace unnecessary checks by assertions.
387 Minor simplifications.
389 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
391 * breakpoint.c (update_global_location_list): Remove nested
392 definition of `b'(-Wshadow).
394 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
396 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
397 `error_flag'(-Wshadow).
399 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
401 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
404 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
406 * annotate.c (annotate_array_section_begin): Rename `index' to
409 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
411 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
414 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
416 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
417 `syscall' to `syscall_number'(-Wshadow).
419 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
421 * ada-lang.c (remove_extra_symbols): Rename `remove' to
422 `remove_p'(-Wshadow).
424 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
426 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
429 2011-12-10 Doug Evans <dje@google.com>
431 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
432 debug_types_section. All uses updated.
433 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
434 to is_debug_types_section.
436 * python/py-auto-load.c (source_section_scripts): Call xfree
439 2011-12-10 Hui Zhu <teawater@gmail.com>
440 Yao Qi <yao@codesourcery.com>
442 * tracepoint.c (start_tracing): Clear `inserted' flag.
444 2011-12-10 Hui Zhu <teawater@gmail.com>
446 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
448 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
450 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
453 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
455 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
456 `marker' variables to `sal2' and `tpmarker' respectively
459 2011-12-09 Andrew Pinski <apinski@cavium.com>
461 * linespec.c (hash_address_entry): Use iterative_hash_object on each
462 field rather than the struct itself.
464 2011-12-09 Tom Tromey <tromey@redhat.com>
466 * breakpoint.c (compare_breakpoints): New function.
467 (clear_command): Remove duplicate breakpoints. Properly clean
470 2011-12-08 Maciej W. Rozycki <macro@mips.com>
471 Maciej W. Rozycki <macro@codesourcery.com>
473 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
474 address chunks retrieved from decoded lui/addiu pairs.
476 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
478 * mips-tdep.c (extended_offset): Correct calculation.
479 (unpack_mips16): Correct bitfield positions used for extraction
480 of the immediate argument; fix sign-extension of same.
481 (extended_mips16_next_pc): Correct B instruction's offset
482 calculation. Correct register decoding of the BEQZ and BNEZ
483 as well as jump-register instructions. Handle compact jumps.
485 2011-12-08 Tom Tromey <tromey@redhat.com>
487 * objfiles.h (struct objfile): Remove obsolete comment.
488 * objfiles.c (build_objfile_section_table): Remove obsolete
491 2011-12-07 Stan Shebs <stan@codesourcery.com>
493 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
494 maintainer of the tic6x target.
496 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
498 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
499 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
500 (arm_deal_with_atomic_sequence_raw): Likewise.
501 (arm_deal_with_atomic_sequence): Likewise.
502 (arm_software_single_step): Call it.
503 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
505 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
507 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
509 * s390-tdep.h: Likewise.
511 2011-12-07 Tristan Gingold <gingold@adacore.com>
513 * machoread.c (macho_symtab_read): Do not consider N_OPT as
514 a debugging stab. Improve complaint message.
516 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
518 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
519 load adjustment if still within the prologue.
521 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
523 * mips-tdep.c (mips32_next_pc): Fix floating point condition
526 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
528 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
529 of BLTZ* and BGEZ* instructions.
531 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
533 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
534 performed to determine whether an address refers to standard
536 (mips16_next_pc): Use mips_pc_is_mips16 instead of
539 2011-12-06 Pedro Alves <pedro@codesourcery.com>
541 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
542 (breakpoint_xfer_memory): ... this. Change prototype. Handle
544 * breakpoint.h (breakpoint_restore_shadows): Delete.
545 (breakpoint_xfer_memory): Declare.
546 * mem-break.c (default_memory_insert_breakpoint)
547 (default_memory_remove_breakpoint): Use target_write_raw_memory.
548 (memory_xfer_partial): Rename to ...
549 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
551 (memory_xfer_partial): New.
552 (target_write_raw_memory): New.
553 * target.h (target_write_raw_memory): New.
555 2011-12-06 Doug Evans <dje@google.com>
557 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
559 2011-12-06 Joel Brobecker <brobecker@acacore.com>
561 * language.h (struct language_defn): Add new component
562 la_symbol_name_compare.
563 * symfile.h (struct quick_symbol_functions): Update the profile
564 of parameter "name_matcher" for the expand_symtabs_matching
565 method. Update the documentation accordingly.
566 * ada-lang.h (ada_name_for_lookup): Add declaration.
567 * ada-lang.c (ada_name_for_lookup): New function, extracted out
568 from ada_iterate_over_symbols.
569 (ada_iterate_over_symbols): Do not encode symbol name anymore.
570 (ada_expand_partial_symbol_name): Adjust profile.
571 (ada_language_defn): Add value for la_symbol_name_compare field.
572 * linespec.c: #include "ada-lang.h".
573 (iterate_name_matcher): Add language parameter. Replace call
574 to strcmp_iw by call to language->la_symbol_name_compare.
575 (decode_variable): Encode COPY if current language is Ada.
576 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
577 of name_matcher parameter. Adjust call to name_matcher.
578 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
579 (expand_partial_symbol_names): Update profile of parameter "fun".
580 * psymtab.h (expand_partial_symbol_names): Update profile of
582 * symtab.c (demangle_for_lookup): Update function documentation.
583 (search_symbols_name_matches): Add language parameter.
584 (expand_partial_symbol_name): Likewise.
585 * c-lang.c (c_language_defn, cplus_language_defn)
586 (asm_language_defn, minimal_language_defn): Add value for
587 la_symbol_name_compare field.
588 * d-lang.c (d_language_defn): Likewise.
589 * f-lang.c (f_language_defn): Ditto.
590 * jv-lang.c (java_language_defn): Ditto.
591 * m2-lang.c (m2_language_defn): Ditto.
592 * objc-lang.c (objc_language_defn): Ditto.
593 * opencl-lang.c (opencl_language_defn): Ditto.
594 * p-lang.c (pascal_language_defn): Ditto.
595 * language.c (unknown_language_defn, auto_language_defn)
596 (local_language_defn): Ditto.
598 2011-12-06 Tom Tromey <tromey@redhat.com>
600 * linespec.c (iterate_over_all_matching_symtabs): Use
601 LA_ITERATE_OVER_SYMBOLS.
602 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
603 (find_function_symbols, decode_variable): Remove Ada special
605 * language.h (struct language_defn) <la_iterate_over_symbols>: New
607 (LA_ITERATE_OVER_SYMBOLS): New macro.
608 * language.c (unknown_language_defn, auto_language_defn)
609 (local_language_defn): Update.
610 * c-lang.c (c_language_defn, cplus_language_defn)
611 (asm_language_defn, minimal_language_defn): Update.
612 * d-lang.c (d_language_defn): Update.
613 * f-lang.c (f_language_defn): Update.
614 * jv-lang.c (java_language_defn): Update.
615 * m2-lang.c (m2_language_defn): Update.
616 * objc-lang.c (objc_language_defn): Update.
617 * opencl-lang.c (opencl_language_defn): Update.
618 * p-lang.c (pascal_language_defn): Update.
619 * ada-lang.c (ada_iterate_over_symbols): New function.
620 (ada_language_defn): Update.
622 2011-12-06 Tom Tromey <tromey@redhat.com>
623 Joel Brobecker <brobecker@acacore.com>
625 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
626 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
627 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
628 PR shlibs/8929, PR shlibs/7393:
629 * python/py-type.c (compare_maybe_null_strings): Rename from
631 (check_types_equal): Update.
632 * utils.c (compare_strings): New function.
633 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
635 * tracepoint.c (scope_info): Update.
636 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
637 * symtab.h (iterate_over_minimal_symbols)
638 (iterate_over_some_symtabs, iterate_over_symtabs)
639 (find_pcs_for_symtab_line, iterate_over_symbols)
640 (demangle_for_lookup): Declare.
641 (expand_line_sal): Remove.
642 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
643 (lookup_symtab_callback): New functions.
644 (lookup_symtab): Rewrite.
645 (demangle_for_lookup): New function, extract from
646 lookup_symbol_in_language.
647 (lookup_symbol_in_language): Use it.
648 (iterate_over_symbols): New function.
649 (find_line_symtab): Update.
650 (find_pcs_for_symtab_line): New functions.
651 (find_line_common): Add 'start' argument.
652 (decode_line_spec): Update. Change argument to 'flags', change
654 (append_expanded_sal): Remove.
655 (append_exact_match_to_sals): Remove.
656 (expand_line_sal): Remove.
657 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
659 <map_symtabs_matching_filename>: New field.
660 * stack.c (func_command): Only look in the current program space.
661 Use DECODE_LINE_FUNFIRSTLINE.
662 * source.c (line_info): Set pspace on sal. Check program space in
663 the loop. Use DECODE_LINE_LIST_MODE.
664 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
665 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
666 * python/python.c (gdbpy_decode_line): Update.
667 * psymtab.c (partial_map_expand_apply): New function.
668 (partial_map_symtabs_matching_filename): Rename from
669 lookup_partial_symbol. Update arguments.
670 (lookup_symtab_via_partial_symtab): Remove.
671 (psym_functions): Update.
672 * objc-lang.h (parse_selector, parse_method): Don't declare.
674 * objc-lang.c (parse_selector, parse_method): Now static.
675 (find_methods): Change arguments. Fill in a vector of symbol
677 (uniquify_strings): New function.
678 (find_imps): Change arguments.
679 * minsyms.c (iterate_over_minimal_symbols): New function.
680 * linespec.h (enum decode_line_flags): New.
681 (struct linespec_sals): New.
682 (struct linespec_result) <canonical>: Remove.
683 <pre_expanded, addr_string, sals>: New fields.
684 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
685 (decode_line_full): Declare.
686 (decode_line_1): Update.
687 * linespec.c (struct address_entry, struct linespec_state, struct
688 collect_info): New types.
689 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
690 (eq_address_entry, maybe_add_address): New functions.
691 (total_number_of_methods): Remove.
692 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
694 (find_methods): Change arguments. Don't canonicalize input.
696 (add_matching_methods, add_constructors)
697 (build_canonical_line_spec): Remove.
698 (filter_results, convert_results_to_lsals): New functions.
699 (decode_line_2): Change arguments. Rewrite for new data
701 (decode_line_internal): Rename from decode_line_1. Change
702 arguments. Add cleanups. Update for new data structures.
703 (linespec_state_constructor, linespec_state_destructor)
704 (decode_line_full, decode_line_1): New functions.
705 (decode_indirect): Change arguments. Update.
706 (locate_first_half): Use skip_spaces.
707 (decode_objc): Change arguments. Update for new data structures.
709 (decode_compound): Change arguments. Add cleanups. Remove
710 fallback code, replace with error.
711 (struct decode_compound_collector): New type.
712 (collect_one_symbol): New function.
713 (lookup_prefix_sym): Change arguments. Update.
714 (compare_symbol_name, add_all_symbol_names_from_pspace)
715 (find_superclass_methods ): New functions.
716 (find_method): Rewrite.
717 (struct symtab_collector): New type.
718 (add_symtabs_to_list, collect_symtabs_from_filename): New
720 (symtabs_from_filename): Change API. Rename from
721 symtab_from_filename.
722 (collect_function_symbols): New function.
723 (find_function_symbols): Change API. Rename from
724 find_function_symbol. Rewrite.
725 (decode_all_digits): Change arguments. Rewrite.
726 (decode_dollar): Change arguments. Use decode_variable.
727 (decode_label): Change arguments. Rewrite.
728 (collect_symbols): New function.
729 (minsym_found): Change arguments. Rewrite.
730 (check_minsym, search_minsyms_for_name)
731 (add_matching_symbols_to_info): New function.
732 (decode_variable): Change arguments. Iterate over all symbols.
733 (symbol_found): Remove.
734 (symbol_to_sal): New function.
735 (init_linespec_result, destroy_linespec_result)
736 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
738 (decode_digits_list_mode, decode_digits_ordinary): New functions.
739 * dwarf2read.c (dw2_map_expand_apply): New function.
740 (dw2_map_symtabs_matching_filename): Rename from
741 dw2_lookup_symtab. Change arguments.
742 (dwarf2_gdb_index_functions): Update.
743 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
744 * defs.h (compare_strings): Declare.
745 * cli/cli-cmds.c (compare_strings): Move to utils.c.
746 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
748 (compare_symtabs, filter_sals): New functions.
749 * breakpoint.h (struct bp_location) <line_number, source_file>:
751 (struct breakpoint) <line_number, source_file>: Remove.
753 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
754 (momentary_breakpoint_from_master, add_location_to_breakpoint):
755 Update for changes to locations.
756 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
758 (create_breakpoint_sal): Add 'filter' argument.
759 (remove_sal, expand_line_sal_maybe): Remove.
760 (create_breakpoints_sal): Remove 'sals' argument. Handle
761 pre-expanded sals and the filter.
762 (parse_breakpoint_sals): Use decode_line_full.
763 (check_fast_tracepoint_sals): Use get_sal_arch.
764 (create_breakpoint): Create a linespec_sals. Update.
765 (break_range_command): Use decode_line_full. Update.
766 (until_break_command): Update.
767 (clear_command): Update match conditions for linespec.c changes.
768 Use DECODE_LINE_LIST_MODE.
769 (say_where): Update for changes to locations.
770 (bp_location_dtor): Free 'source_file'.
771 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
772 (update_static_tracepoint): Update for changes to locations.
773 (update_breakpoint_locations): Disable ranged breakpoint if too
774 many locations match. Update.
775 (addr_string_to_sals): Use decode_line_full. Resolve all sal
777 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
778 (decode_line_spec_1): Update. Change argument name to 'flags',
779 change interpretation.
780 * block.h (block_containing_function): Declare.
781 * block.c (block_containing_function): New function.
782 * skip.c (skip_function_command): Update.
783 (skip_re_set): Update.
784 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
785 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
788 2011-12-06 Tom Tromey <tromey@redhat.com>
790 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
791 breakpoint's pspace to be NULL.
792 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
793 * breakpoint.c (init_raw_breakpoint): Conditionally set
795 (init_breakpoint_sal): Don't set breakpoint's pspace.
796 (prepare_re_set_context): Conditionally switch program space.
797 (addr_string_to_sals): Check executing_startup on location's
800 2011-12-06 Tom Tromey <tromey@redhat.com>
802 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
803 * breakpoint.c (should_be_inserted): Explicitly check if program
804 space is executing startup.
805 (describe_other_breakpoints): Update.
806 (disable_breakpoints_before_startup): Change executing_startup
807 earlier. Remove loop.
808 (enable_breakpoints_after_startup): Likewise.
809 (init_breakpoint_sal): Don't use bp_startup_disabled.
810 (create_breakpoint): Don't use bp_startup_disabled.
811 (update_global_location_list): Use should_be_inserted.
812 (bkpt_re_set): Update.
814 2011-12-06 Tom Tromey <tromey@redhat.com>
816 * python/lib/gdb/command/pretty_printers.py
817 (InfoPrettyPrinter.invoke1): Remove extra double quote.
819 2011-12-06 Tom Tromey <tromey@redhat.com>
823 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
825 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
826 (S390_LAST_BREAK_REGNUM): Likewise.
827 (S390_SYSTEM_CALL_REGNUM): Likewise.
828 (S390_NUM_REGS): Update.
830 (s390_regmap_last_break): Add declaration.
831 (s390x_regmap_last_break): Likewise.
832 (s390_regmap_system_call): Likewise.
834 (tdesc_s390_linux32v1): Add declaration.
835 (tdesc_s390_linux32v2): Likewise.
836 (tdesc_s390_linux64v1): Likewise.
837 (tdesc_s390_linux64v2): Likewise.
838 (tdesc_s390x_linux64v1): Likewise.
839 (tdesc_s390x_linux64v2): Likewise.
841 * s390-tdep.c: Include new target description files
842 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
843 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
844 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
845 (s390_cannot_store_register): New function.
846 (s390_write_pc): Likewise.
847 (s390_dwarf_regmap): Add fields for new registers.
848 (s390_regmap_gregset): Likewise.
849 (s390x_regmap_gregset): Likewise.
850 (s390_regmap_fpregset): Likewise.
851 (s390_regmap_upper): Likewise.
852 (s390_regmap_last_break): New variable.
853 (s390x_regmap_last_break): Likewise.
854 (s390_regmap_system_call): Likewise.
855 (s390_last_break_regset): Likewise.
856 (s390x_last_break_regset): Likewise.
857 (s390_system_call_regset): Likewise.
858 (s390_upper_regset_sections): Rename to ...
859 (s390_linux64_regset_sections): ... this.
860 (s390_linux32_regset_sections): New variable.
861 (s390x_linux64_regset_sections): Likewise.
862 (s390_linux32v1_regset_sections): Likewise.
863 (s390_linux32v2_regset_sections): Likewise.
864 (s390_linux64v1_regset_sections): Likewise.
865 (s390_linux64v2_regset_sections): Likewise.
866 (s390x_linux64v1_regset_sections): Likewise.
867 (s390x_linux64v2_regset_sections): Likewise.
868 (s390_regset_from_core_section): Handle .reg-s390-last-break and
869 .reg-s390-system-call core file sections.
870 (s390_core_read_description): Check for presence of
871 .reg-s390-last-break and .reg-s390-system-call core file
872 sections and return appropriate target description.
873 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
874 "last_break" and "system_call" in target description. Install
875 appropriate gdbarch_core_regset_sections array.
876 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
877 (_initialize_s390_tdep): Initialize additional target descriptions.
879 * s390-nat.c: Include "elf/common.h".
880 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
881 (have_regset_last_break): New static variable.
882 (have_regset_system_call): Likewise.
883 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
884 (s390_native_collect): Likewise.
885 (fetch_regset, store_regset, check_regset): New functions.
886 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
887 and S390_SYSTEM_CALL_REGNUM.
888 (s390_linux_store_inferior_registers): Likewise.
889 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
890 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
892 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
893 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
894 (s390-linux32v1-expedite): Define.
895 (s390-linux32v2-expedite): Likewise.
896 (s390-linux64v1-expedite): Likewise.
897 (s390-linux64v2-expedite): Likewise.
898 (s390x-linux64v1-expedite): Likewise.
899 (s390x-linux64v2-expedite): Likewise.
901 * features/s390-linux32.xml: Add orig_r2 register.
902 * features/s390-linux64.xml: Likewise.
903 * features/s390x-linux64.xml: Likewise.
904 * features/s390-linux32v1.xml: New file.
905 * features/s390-linux32v2.xml: Likewise.
906 * features/s390-linux64v1.xml: Likewise.
907 * features/s390-linux64v2.xml: Likewise.
908 * features/s390x-linux64v1.xml: Likewise.
909 * features/s390x-linux64v2.xml: Likewise.
911 * features/s390-linux32.c: Regenerate.
912 * features/s390-linux64.c: Likewise.
913 * features/s390x-linux64.c: Likewise.
914 * features/s390-linux32v1.c: New generated file.
915 * features/s390-linux32v2.c: Likewise.
916 * features/s390-linux64v1.c: Likewise.
917 * features/s390-linux64v2.c: Likewise.
918 * features/s390x-linux64v1.c: Likewise.
919 * features/s390x-linux64v2.c: Likewise.
921 * regformats/s390-linux32.dat: Regenerate.
922 * regformats/s390-linux64.dat: Regenerate.
923 * regformats/s390x-linux64.dat: Regenerate.
924 * regformats/s390-linux32v1.dat: New generated file.
925 * regformats/s390-linux32v2.dat: Likewise.
926 * regformats/s390-linux64v1.dat: Likewise.
927 * regformats/s390-linux64v2.dat: Likewise.
928 * regformats/s390x-linux64v1.dat: Likewise.
929 * regformats/s390x-linux64v2.dat: Likewise.
931 2011-12-05 Pedro Alves <pedro@codesourcery.com>
933 * linux-nat.c (resume_stopped_resumed_lwps): Call
936 2011-12-05 Pedro Alves <pedro@codesourcery.com>
938 * breakpoint.c: Include record.h.
939 (breakpoints_always_inserted_mode): Return false when the record
942 2011-12-05 Pedro Alves <pedro@codesourcery.com>
944 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
945 Reinstate perror_with_name call on ptrace error. Remove #if 0.
946 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
947 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
949 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
951 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
954 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
956 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
958 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
960 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
963 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
965 Fix compilation --without-expat.
966 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
968 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
970 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
971 Jan Kratochvil <jan.kratochvil@redhat.com>
973 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
974 * features/library-list-svr4.dtd: New file.
975 * remote.c (PACKET_qXfer_libraries_svr4): New.
976 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
977 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
978 * solib-svr4.c (struct svr4_library_list): New.
979 [HAVE_LIBEXPAT]: Include xml-support.h.
980 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
981 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
982 [HAVE_LIBEXPAT] (svr4_library_list_children)
983 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
984 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
985 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
986 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
987 (svr4_read_so_list): Extend the corruption message by addresses.
988 (svr4_current_sos): New variable library_list, call
989 svr4_current_sos_via_xfer_libraries.
990 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
992 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
996 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
998 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1000 PR breakpoints/13346
1001 * dwarf2read.c (process_psymtab_comp_unit): Set
1002 PSYMTABS_ADDRMAP_SUPPORTED.
1003 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1004 validity. New field psymtabs_addrmap_supported.
1005 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1006 psymtabs_addrmap_supported.
1007 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1008 !PSYMTABS_ADDRMAP_SUPPORTED.
1009 (dump_psymtab, maintenance_info_psymtabs): Print also
1010 psymtabs_addrmap_supported.
1012 2011-12-01 Doug Evans <dje@google.com>
1014 * python/py-type.c (type_object_methods): Fix "array" doc string.
1016 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1018 * source.c (print_source_lines_base): Fix missing braces on else
1019 clause leading to additional output.
1021 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1023 * s390-nat.c (SUBOFF): Remove.
1024 (s390_native_supply, s390_native_collect): New functions.
1025 (supply_gregset, supply_fpregset): Use s390_native_supply.
1026 (fill_gregset, fill_fpregset): Use s390_native_collect.
1028 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1029 (s390_unwind_pseudo_register): New function.
1030 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1031 registers instead of PC and CC.
1032 (s390_backchain_frame_unwind_cache): Likewise.
1033 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1035 (s390_trad_frame_prev_register): New function.
1036 (s390_frame_prev_register): Use it.
1037 (s390_sigtramp_frame_prev_register): Likewise.
1038 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1039 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1040 special callback to unwind any pseudo.
1042 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1043 * features/s390-core64.xml: Likewise.
1044 * features/s390x-core64.xml: Likewise.
1045 * features/s390-linux32.c: Regenerate.
1046 * features/s390-linux64.c: Likewise.
1047 * features/s390x-linux64.c: Likewise.
1049 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1051 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1053 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1055 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1056 instruction. Add more diagnostic output.
1058 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1060 * MAINTAINERS (Write After Approval): Add myself to the list.
1062 2011-11-29 Sanjoy Das <sdas@igalia.com>
1064 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1065 (jit_bfd_try_read_symtab): Fix comments.
1067 2011-11-28 DJ Delorie <dj@redhat.com>
1069 * NEWS: Mention RL78 simulator.
1071 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1073 * symfile.h (struct quick_symbol_functions): Fix the documentation
1074 of field map_matching_symbols, as symbols are sorted using
1075 strcmp_iw_ordered, not strcmp_iw.
1077 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1079 * symfile.h (struct quick_symbol_functions): Update the
1080 documentation for field map_matching_symbols.
1082 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1084 * ada-lang.c (compare_names): Fix wrong return value in case
1085 string1 starts with the same contents as string2, followed
1086 by an underscore that do not start a symbol name suffix.
1088 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1093 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1094 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1095 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1097 * python/py-type.c (typy_strip_typedefs): Ditto.
1098 (typy_legacy_template_argument): Ditto.
1099 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1100 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1102 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1104 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1105 local variable. Avoid use of sprintf_vma.
1107 2011-11-27 Sanjoy Das <sdas@igalia.com>
1109 Fix regression in jit.exp.
1110 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1111 (jit_register_code): Set the jit_objfile_data field to the correct
1114 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1116 * alpha-tdep.c (br_opcode): New.
1117 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1118 (alpha_deal_with_atomic_sequence): New function.
1119 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1120 with alpha_deal_with_atomic_sequence.
1122 2011-11-24 Tristan Gingold <gingold@adacore.com>
1124 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1125 fields. Add oso_sym, end_sym and nbr_syms.
1126 (macho_register_oso): Change interface.
1127 (macho_symtab_add_minsym): New function.
1128 (macho_symtab_read): Rewritten.
1129 (get_archive_prefix_len): Remove trailing blanks.
1130 (oso_el_compare_name): Add comment.
1131 (struct macho_sym_hash_entry): New structure.
1132 (macho_relocate_common_syms): Remove.
1133 (macho_sym_hash_newfunc): New function.
1134 (macho_resolve_oso_sym_with_minsym): Likewise.
1135 (macho_add_oso_symfile): Rewritten.
1136 (macho_symfile_read_all_oso): Remove trailing blanks.
1137 Adjust code to free oso vector.
1138 (macho_symfile_read): Likewise.
1139 Move code to initialize minimal symbol
1141 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1143 * mips-tdep.c (extended_offset): Fix formatting.
1145 2011-11-23 Doug Evans <dje@google.com>
1147 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1148 (dw2_expand_symtabs_with_filename): Ditto.
1149 (dw2_expand_symtabs_matching): Ditto.
1150 (dw2_map_symbol_filenames): Ditto.
1152 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1154 * ada-lang.c (assign_aggregate): Minor reformatting.
1156 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1158 * ada-lang.c (assign_aggregate): Remove declaration of local
1159 variable `i' which is shadowing another variable with the same
1160 name declared in the outer scope.
1162 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1164 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1165 calls throughout this file.
1167 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1169 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1172 2011-11-22 Tom Tromey <tromey@redhat.com>
1175 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1176 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1177 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1178 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1179 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1180 (print_it_catch_syscall, print_it_catch_exec)
1181 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1182 (bpstat_print): Add 'kind' argument. Handle
1183 TARGET_WAITKIND_LOADED.
1184 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1185 handle TARGET_WAITKIND_LOADED here.
1186 * breakpoint.h (bpstat_print): Update.
1188 2011-11-22 Tom Tromey <tromey@redhat.com>
1190 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1192 2011-11-22 Tom Tromey <tromey@redhat.com>
1194 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1195 Use static_assert to check the size of
1196 async_reason_string_lookup.
1197 * common/gdb_assert.h (static_assert): New macro.
1199 2011-11-22 Alan Modra <amodra@gmail.com>
1201 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1202 destination calculation. Don't expect >> to sign extend. Don't
1203 add a break if branch lands inside the sequence anywhere.
1205 2011-11-21 Keith Seitz <keiths@redhat.com>
1207 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1208 -var-evaluate-expression of an enumeration and fix expected result.
1209 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1211 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1213 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1214 the case where osdata->items is empty. Rename column names to a
1215 canonical form to avoid problems with unusual column names.
1217 2011-11-21 Yao Qi <yao@codesourcery.com>
1219 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1221 2011-11-20 Stan Shebs <stan@codesourcery.com>
1223 * NEWS: Mention tracepoint additions.
1224 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1225 * breakpoint.c (print_one_breakpoint_location): Identify
1226 tracepoints as such when reporting hit counts, report
1228 (create_tracepoint_from_upload): Copy status info.
1229 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1230 add fields user_name, notes, start_time, stop_time.
1231 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1232 * tracepoint.c (trace_user): New global.
1233 (trace_notes): New global.
1234 (trace_stop_notes): New global.
1235 (start_tracing): Add argument and trace note handling.
1236 (stop_tracing): Ditto.
1237 (trace_start_command): Add notes argument.
1238 (trace_stop_command): Ditto.
1239 (trace_status_command): Report additional status info.
1240 (trace_status_mi): Similarly.
1241 (trace_save): Update, record tracepoint status.
1242 (set_disconnected_tracing): Call target method directly.
1243 (send_disconnected_tracing_value): Remove.
1244 (set_trace_user): New function.
1245 (set_trace_notes): New function.
1246 (set_trace_stop_notes): New function.
1247 (parse_trace_status): Handle additional status.
1248 (parse_tracepoint_status): New function.
1249 (parse_tracepoint_definition): Call it.
1250 (tfile_get_tracepoint_status): New function.
1251 (init_tfile_ops): Use it.
1252 (_initialize_tracepoint): Add new setshows.
1253 * target.h (struct target_ops): New methods to_get_tracepoint_status
1254 and to_set_trace_notes.
1255 (target_get_tracepoint_status): New macro.
1256 (target_set_trace_notes): New macro.
1257 * target.c (update_current_target): Add new methods.
1258 * remote.c (remote_get_tracepoint_status): New function.
1259 (remote_set_trace_notes): New function.
1260 (init_remote_ops): Add them.
1261 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1262 (mi_cmd_trace_stop): Ditto.
1264 2011-11-20 Sanjoy Das <sdas@igalia.com>
1266 * jit.c: Include regcache.h.
1267 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1268 (jit_unwind_reg_set_impl, free_reg_value_impl)
1269 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1270 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1271 (jit_frame_prev_register, jit_dealloc_cache)
1272 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1273 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1274 jit_prepend_unwinder.
1275 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1277 2011-11-20 Sanjoy Das <sdas@igalia.com>
1279 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1280 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1281 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1282 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1283 (finalize_symtab, jit_object_close_impl)
1284 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1285 (free_objfile_data): New functions.
1286 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1289 2011-11-20 Sanjoy Das <sdas@igalia.com>
1291 * jit.c: Include gdb-dlfcn.h.
1292 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1293 (jit_reader_load, jit_reader_load_command)
1294 (jit_reader_unload_command): New functions.
1295 (_initialize_jit): Add commands "jit-reader-load" and
1296 "jit-reader-unload".
1298 2011-11-20 Sanjoy Das <sdas@igalia.com>
1300 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1301 * config.in: Add new #define HAVE_LIBDL.
1302 * configure.ac: Add check for -ldl.
1303 * configure: Re-generated by autoconf.
1304 * gdb-dlfcn.c: New file.
1305 * gdb-dlfcn.h: New file.
1307 2011-11-20 Sanjoy Das <sdas@igalia.com>
1309 * config.in: Add new #defines: JIT_READER_DIR and
1310 JIT_READER_DIR_RELOCATABLE.
1311 * configure.ac: New GDB directory entry for jit-reader-dir.
1312 * configure: Re-generated by autoconf.
1313 * jit.c: New static variable: const char *jit_reader_dir.
1314 (_initialize_jit): Relocate jit_reader_dir.
1316 2011-11-20 Sanjoy Das <sdas@igalia.com>
1318 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1320 * configure.ac: Generate a correct value for TARGET_PTR for
1321 jit-reader.h. Tell configure to generate jit-reader.h from
1323 * configure: Re-generated by autoconf.
1324 * jit-reader.in: New file.
1325 * jit.c: Include jit-reader.h.
1327 2011-11-20 Sanjoy Das <sdas@igalia.com>
1329 * MAINTAINERS (Write After Approval): Add myself to the list.
1331 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1333 * findvar.c (read_frame_register_value): Respect value_offset
1334 of the register value. Remove big-endian special case.
1336 2011-11-18 Tom Tromey <tromey@redhat.com>
1339 * remote.c (putpkt_for_catch_errors): New function.
1340 (remote_kill): Use it.
1342 2011-11-18 Yao Qi <yao@codesourcery.com>
1344 * breakpoint.c (create_breakpoint): Produce query message according to
1346 Allocate tracepoint per correct type.
1347 Don't check SALs for pending fast tracepoints.
1348 * tracepoint.c (process_tracepoint_on_disconnect): New.
1349 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1351 2011-11-18 Yao Qi <yao@codesourcery.com>
1353 * breakpoint.c (install_breakpoint): Add one more parameter so that
1354 update_global_location_list is called conditionally.
1355 (create_fork_vfork_event_catchpoint): Update.
1356 (create_syscall_event_catchpoint): Update.
1357 (create_breakpoint_sal): Update.
1358 (create_breakpoint_sal): Update. Call do_cleanups before
1360 * ada-lang.c (create_ada_exception_catchpoint): Update.
1361 * breakpoint.h (install_breakpoint): Update declaration.
1363 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1365 * spu-tdep.c (spu_return_value): Fix handling of
1366 TYPE_CALLING_CONVENTION annotation.
1368 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1370 * skip.c (skip_function_command): Work around uninitialized
1373 2011-11-16 David S. Miller <davem@davemloft.net>
1375 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1376 'tv_usec' to long for printf since these fields have a type which
1379 2011-11-15 Doug Evans <dje@google.com>
1381 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1383 2011-11-15 Paul Koning <paul_koning@dell.com>
1385 * python/py-type.c (typy_get_composite): New function.
1386 (typy_nonzero): New function.
1387 (typy_values): Rename from typy_fields.
1388 (typy_fields): New function.
1389 (typy_length): Raise exception if not struct, union, or enum type.
1390 (typy_getitem): Ditto.
1391 (typy_has_key): Ditto.
1392 (typy_make_iter): Ditto.
1394 2011-11-15 Doug Evans <dje@google.com>
1397 * NEWS: Mention new parameter basenames-may-differ.
1398 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1399 ! basenames_may_differ.
1400 * psymtab.c (lookup_partial_symtab): Ditto.
1401 * symtab.c (lookup_symtab): Ditto.
1402 (basenames_may_differ): New global.
1403 (_initialize_symtab): New parameter basenames-may-differ.
1404 * symtab.h (basenames_may_differ): Declare.
1406 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1407 Luis Machado <lgustavo@codesourcery.com>
1409 * auxv.c: Include observer.h.
1410 (auxv_inferior_data_cleanup): New.
1411 (invalidate_auxv_cache_inf): New.
1412 (invalidate_auxv_cache): New.
1413 (get_auxv_inferior_data): New.
1414 (auxv_inferior_data): New static global.
1415 (auxv_info): New structure.
1416 (target_auxv_search): Use get_auxv_inferior_data instead of
1417 target_read_alloc and don't free cached buffers.
1418 (fprint_target_auxv): Likewise
1419 (_initialize_auxv): Register per-inferior auxv cache and register
1420 observers to invalidate auxv cache when needed.
1422 2011-11-14 Doug Evans <dje@google.com>
1424 PR gdb/7200 Make "!" an alias for "shell".
1425 * NEWS: Add mention.
1426 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1427 adding "!" command, always add it.
1428 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1429 command of length one.
1431 2011-11-14 Stan Shebs <stan@codesourcery.com>
1432 Kwok Cheung Yeung <kcy@codesourcery.com>
1434 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1435 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1436 the minimum instruction size for fast tracepoints.
1437 * target.h (struct target_ops): Add new method
1438 to_get_min_fast_tracepoint_insn_len.
1439 (target_get_min_fast_tracepoint_insn_len): New.
1440 * target.c (update_current_target): Set up new target operation.
1441 * remote.c (remote_write_bytes_aux): Fix typo.
1442 (remote_get_min_fast_tracepoint_insn_len): New.
1443 (init_remote_ops): Initialize new field.
1445 2011-11-14 Tom Tromey <tromey@redhat.com>
1447 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1448 (encode_actions): Likewise.
1450 2011-11-14 Yao Qi <yao@codesourcery.com>
1452 * remote.c (struct remote_state): <install_in_trace> new field.
1453 (PACKET_InstallInTrace): New enum value.
1454 (remote_install_in_trace_feature): Support InstallInTrace.
1455 (remote_supports_install_in_trace): Likewise.
1456 (remote_protocol_features): Likewise.
1457 (_initialize_remote): Likewise.
1458 (remote_can_download_tracepoint): New.
1459 * target.h (struct target): New field
1460 `to_can_download_tracepoint'.
1461 (target_can_download_tracepoint): New macro.
1462 * target.c (update_current_target): Update.
1463 * breakpoint.h (struct bp_location): Add comment on field
1465 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1467 (remove_breakpoints): Don't remove tracepoints.
1468 (tracepoint_locations_match ): New.
1469 (breakpoint_locations_match): Call it.
1470 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1471 (download_tracepoint_locations): New.
1472 (update_global_location_list): Call it.
1473 * tracepoint.c (find_matching_tracepoint): Delete.
1474 (find_matching_tracepoint_location): Renamed from
1475 find_matching_tracepoint. Return bp_location rather than
1477 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1478 tracepoint is found.
1480 2011-11-14 Yao Qi <yao@codesourcery.com>
1482 * target.h (struct target): <to_download_tracepoint> Change type
1483 of parameter from tracepoint to bp_location.
1484 * target.c (update_current_target): Update.
1485 * tracepoint.c (start_tracing): Update.
1486 * remote.c (remote_download_tracepoint): Remove loop for each location
1489 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1491 * i386-nat.c (i386_insert_hw_breakpoint): Call
1492 i386_update_inferior_debug_regs.
1493 (i386_remove_hw_breakpoint): Likewise.
1495 2011-11-14 Yao Qi <yao@codesourcery.com>
1497 * breakpoint.c (init_raw_breakpoint): Call
1498 add_location_to_breakpoint to replace duplicated code.
1499 (add_location_to_breakpoint): Adjust the breakpoint's
1500 address prior to allocating a location.
1502 2011-11-12 Matt Rice <ratmice@gmail.com>
1504 * macrocmd.c (macro_no_macro_info): New function.
1505 (macro_expand_command): Use macro_no_macro_info.
1506 (macro_expand_once_command): Ditto.
1507 (info_macro_command): Add argument processing,
1508 move info_definitions_command here.
1509 (_initialize_macrocmd): Remove info definitions command.
1510 Add arguments to info macro help text.
1511 * NEWS: Replace info definitions command with new info macro options.
1513 2011-11-11 Keith Seitz <keiths@redhat.com>
1516 * linespec.c (locate_first_half): Keep ':' if it looks
1517 like it could be part of a Windows path starting with
1520 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1522 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1523 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1525 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1527 * target.c (target_waitstatus_to_string): Handle
1528 TARGET_WAITKIND_NO_RESUMED.
1530 2011-11-10 Doug Evans <dje@google.com>
1532 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1534 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1535 (map_partial_symbol_filenames): Ditto. All callers updated.
1536 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1537 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1538 parameter need_fullname.
1540 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1541 * source.c (symtab_to_fullname): Ditto.
1543 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1544 * gdb-demangle.h: ... here. New file.
1545 * demangle.c: #include "gdb-demangle.h".
1546 (_initialize_demangler): Use initialize_file_ftype for prototype.
1547 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1548 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1550 * utils.c: Update. #include "gdb-demangle.h".
1551 * symtab.h (asm_demangle): Delete.
1552 (demangle): Move declaration next to use.
1553 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1554 * dwarf2read.c: #include "gdb-demangle.h".
1555 * gnu-v2-abi.c: Ditto.
1556 * jv-typeprint.c: Ditto.
1557 * mdebugread.c: Ditto.
1558 * p-typeprint.c: Ditto.
1559 * stabsread.c: Ditto.
1560 * printcmd.c: Ditto.
1561 (asm_demangle): Delete declaration.
1562 * tui/tui-stack.c: #include "gdb-demangle.h".
1564 * python/py-type.c (typy_fields_items): Call check_typedef.
1566 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1568 * findvar.c (read_frame_register_value): Read the correct bytes
1569 from registers on big-endian architectures.
1571 2011-11-10 Tom Tromey <tromey@redhat.com>
1573 * procfs.c (load_syscalls): Make a cleanup.
1574 (open_procinfo_files): fd==0 is ok.
1576 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1578 * procfs.c (iterate_over_mappings): Call do_cleanups before
1581 2011-11-09 Doug Evans <dje@google.com>
1583 * gdbtypes.c (check_typedef): Document that this function can
1586 2011-11-09 Tom Tromey <tromey@redhat.com>
1589 * valops.c (value_full_object): Return early if real type is
1590 smaller than the enclosing type.
1592 2011-11-08 Yao Qi <yao@codesourcery.com>
1594 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1596 2011-11-08 Meador Inge <meadori@codesourcery.com>
1598 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1599 register when the frame can't be determined.
1600 * arm-tdep.c (arm_analyze_prologue): Ditto.
1602 2011-11-07 Stan Shebs <stan@codesourcery.com>
1604 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1606 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1608 * infrun.c (handle_inferior_event): Minor reformatting.
1610 2011-11-05 Doug Evans <dje@google.com>
1612 * source.c (forget_cached_source_info_for_objfile): Move call to
1613 objfile->sf->qf->forget_cached_source_info outside of
1614 ALL_OBJFILE_SYMTABS loop.
1615 (forget_cached_source_info): Delete unused variable `s'.
1617 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1619 * i386-nat.c (dr_ref_count): Remove unused variable.
1621 2011-11-05 Doug Evans <dje@google.com>
1623 * main.c (captured_main): Set lim_at_start before calling
1624 make_command_stats_cleanup.
1626 2011-11-04 Doug Evans <dje@google.com>
1628 * utils.c: #include "timeval-utils.h".
1629 (cmd_stats): Rename start_time to start_cpu_time.
1630 New member start_wall_time.
1631 (report_command_stats): Report wall time.
1632 (make_command_stats_cleanup): Record start wall time.
1634 2011-11-04 Tom Tromey <tromey@redhat.com>
1636 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1638 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1640 * coff-pe-read.c: Include defs.h before bfd.h.
1642 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1646 * python/python.c (python_run_simple_file): Expand tilde in path.
1648 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1652 * python/py-type.c (typy_lookup_type): Do not return a type in
1653 an exception handler.
1655 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 Eli Zaretskii <eliz@gnu.org>
1658 * linux-nat.c (_initialize_linux_nat): Improve help
1659 for `info proc stat', `info proc status', `info proc cwd',
1660 `info proc cmdline' and `info proc exe'.
1662 2011-11-02 Stan Shebs <stan@codesourcery.com>
1664 String collection for tracepoints.
1665 * NEWS: Mention string collection.
1666 * common/ax.def (tracenz): New bytecode.
1667 * ax-gdb.h (trace_string_kludge): Declare.
1668 * ax-gdb.c: Include valprint.h and c-lang.h.
1669 (trace_string_kludge): New global.
1670 (gen_traced_pop): Add string case.
1671 (agent_command): Add string case.
1672 * tracepoint.h (decode_agent_options): Declare.
1673 * tracepoint.c: Include cli-utils.h.
1674 (decode_agent_options): New function.
1675 (validate_actionline): Call it.
1676 (encode_actions_1): Ditto.
1677 * target.h (struct target_ops): New method to_supports_string_tracing.
1678 (target_supports_string_tracing): New macro.
1679 * target.c (update_current_target): Add to_supports_string_tracing.
1680 * remote.c (struct remote_state): New field string_tracing.
1681 (remote_string_tracing_feature): New function.
1682 (remote_protocol_features): New feature tracenz.
1683 (remote_supports_string_tracing): New function.
1684 (init_remote_ops): Set to_supports_string_tracing.
1686 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1687 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 * linux-nat.c: Include cli/cli-utils.h.
1690 (enum info_proc_what): New.
1691 (linux_nat_info_proc_cmd): Rename to ...
1692 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1693 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1694 status_f and stat_f from WHAT. Throw error on extra parameters.
1695 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1696 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1697 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1698 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1699 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1700 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1701 `info proc cmdline', `info proc exe' and `info proc all' as real
1702 subcommands of `info proc'.
1704 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1706 * Makefile.in: (SFILES): Add skip.c.
1707 (HFILES_NO_SRCDIR): Add skip.h.
1708 (COMMON_OBS): Add skip.o.
1709 * skip.h, skip.c: New.
1710 * breakpoint.h (set_default_breakpoint): Remove.
1711 (get_sal_arch): Declare.
1712 * breakpoint.c: Remove default_breakpoint_valid,
1713 default_breakpoint_address, default_breakpoint_symtab,
1714 default_breakpoint_line, default_breakpoint_pspace variables.
1715 (get_sal_arch): Make public.
1716 (set_default_breakpoint): Remove.
1717 (parse_breakpoint_sals, create_breakpoint, clear_command,
1718 decode_line_spec_1): Remove uses of default_breakpoint variables;
1719 replaced with function calls into stack.c.
1720 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1721 * cli/cli-cmds.c: Add skiplist.
1722 (init_cmd_lists): Initialize skiplist.
1723 (init_cli_cmds): Fix comment (classes of commands appear in
1724 alphabetical order).
1725 * infrun.c (handle_inferior_event): Add check that we don't step into
1726 a function whose pc is marked for skip.
1727 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1728 last_displayed_addr, last_displayed_symtab, last_displayed_line
1730 (set_last_displayed_sal): New static function.
1731 (print_frame_info): Switch call to set_default_breakpoint to call to
1732 set_last_displayed_sal.
1733 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1734 get_last_displayed_pspace, get_last_displayed_addr,
1735 get_last_displayed_symtab, get_last_displayed_line,
1736 get_last_displayed_sal): New public functions.
1737 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1738 get_last_displayed_pspace, get_last_displayed_addr,
1739 get_last_displayed_symtab, get_last_displayed_line,
1740 get_last_displayed_sal): Declare.
1742 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1744 * MAINTAINERS (Write After Approval): Add myself to the list.
1746 2011-10-29 Yao Qi <yao@codesourcery.com>
1748 * infcmd.c (disconnect_command): Call disconnect_tracing.
1750 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1753 * symtab.c (skip_prologue_sal): Code reformatting.
1755 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1759 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1762 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1764 * linux-nat.c (linux_nat_filter_event): Remove `options'
1765 parameter, and dead code that used it. If we're handling a
1766 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1767 in our lwp list, re-add it.
1768 (check_zombie_leaders): New.
1769 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1770 wait for children with WNOHANG, and always wait for all children.
1771 Don't check for no resumed children upfront. Simplify wait loop.
1772 Check for zombie thread group leaders after handling all wait
1773 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1774 unwaited-for children left.
1775 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1776 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1777 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1778 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1780 2011-10-28 Sterling Augustine <saugustine@google.com>
1782 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1783 * symtab.c (free_completion_list): New function.
1784 (do_free_completion_list): Likewise.
1785 (default_make_symbol_completion_list_break_on): New variable
1786 back_to. Call make_cleanup and discard_cleanups.
1787 (make_source_files_completion_list): Likewise.
1789 2011-10-28 Paul Koning <paul_koning@dell.com>
1791 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1792 * NEWS: Mention deep_items.
1794 2011-10-28 Alen Skondro <askondro@gmail.com>
1796 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1799 2011-10-27 Meador Inge <meadori@codesourcery.com>
1801 * MAINTAINERS (Write After Approval): Add myself to the list.
1803 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1805 * value.h (read_frame_register_value): Add declaration.
1806 * findvar.c (read_frame_register_value): New function.
1807 (value_from_register): Use read_frame_register_value
1808 instead of get_frame_register_value + value_contents_copy
1809 to get value contents.
1811 2011-10-27 Doug Evans <dje@google.com>
1813 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1814 source_script_from_stream if it may have been found on the search path.
1815 * python/py-auto-load.c (source_section_scripts): Pass full path to
1816 source_python_script_for_objfile.
1817 * python/python.c (source_python_script): Delete stream parameter.
1818 All callers updated.
1819 (source_python_script_for_objfile): Ditto.
1820 * python/python-internal.h (source_python_script_for_objfile): Update.
1821 * python/python.h (source_python_script): Update.
1823 2011-10-27 Tom Tromey <tromey@redhat.com>
1825 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1826 (ada_sals_for_line): Remove declarations.
1828 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1830 Move unwind reasons to an external .def file
1831 * frame.c (frame_stop_reason_string): Rewrite using
1832 unwind_stop_reasons.def.
1833 * frame.h (enum unwind_stop_reason): Likewise.
1834 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1835 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1836 constants for bound-checking.
1837 * unwind_stop_reasons.def: New file.
1838 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1839 instead of a distinct value.
1841 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1845 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1846 (convert_values_to_python): Return on Python tuple allocation
1847 failure. Return NULL on value conversion error.
1849 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1851 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1852 (bppy_set_task): Ditto.
1853 (bppy_delete_breakpoint): Ditto.
1854 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1855 (gdbpy_lookup_global_symbol): Ditto.
1856 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1857 * python/py-frame.c (frapy_is_valid): Ditto.
1858 (frame_info_to_frame_object): Ditto.
1859 * python/py-type.c (typy_lookup_type): Ditto.
1860 (typy_getitem): Ditto.
1861 (typy_has_key): Ditto.
1862 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1864 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1866 * gdbarch.h: Regenerate.
1868 2011-10-26 Meador Inge <meadori@codesourcery.com>
1870 * gdbarch.sh (function_list): Use 'pstring' when printing
1872 * gdbarch.c: Regenerate.
1874 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1876 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1877 and frame caches if PTID refers to all threads of a process.
1879 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1881 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1882 to create_breakpoint.
1884 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1886 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1887 (ppc_sysv_abi_push_dummy_call): Use it.
1888 (do_ppc_sysv_return_value): Likewise.
1889 (ppc64_sysv_abi_push_dummy_call): Likewise.
1890 (ppc64_sysv_abi_return_value): Likewise.
1892 2011-10-26 Paul Koning <paul_koning@dell.com>
1894 * python/lib/gdb/types.py (deepitems): New function.
1896 2011-10-25 Paul Koning <paul_koning@dell.com>
1900 * python/py-value.c (value_to_value_object): Remove fetching of
1901 the value if it was lazy.
1902 (valpy_get_is_lazy): New function.
1903 (valpy_fetch_lazy): New function.
1905 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1907 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1908 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1910 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1912 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1913 event, in non-stop, if not stopping, make sure the new lwp has
1914 last_resume_kind set to resume_continue. Assert that when we're
1915 resuming the new lwp, its last_resume_kind is resume_continue.
1917 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1919 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1920 already set when marking the event thread as not executing in
1923 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1925 * infrun.c (handle_inferior_event): Add debug output for
1926 TARGET_WAITKIND_NO_HISTORY.
1928 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1930 * NEWS: Move set/show extended-prompt to "New Options". Expand
1931 description. Fix typos.
1933 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1937 * python/py-param.c (call_doc_function): Correctly deference on
1940 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1942 * ada-tasks.c (print_ada_task_info): Fix computation of
1943 number of tasks displayed in command output.
1945 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 Ulrich Weigand <uweigand@de.ibm.com>
1948 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1949 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1950 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1951 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1954 2011-10-20 Cary Coutant <ccoutant@google.com>
1956 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1958 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1959 flag. Adjust all callers.
1960 (process_psymtab_comp_unit): Remove adjustment for type section.
1962 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1964 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1965 arguments by adding OBJFILE. Instead of getting objfile from
1966 symbol's symtab, use new argument OBJFILE.
1967 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1968 arguments by adding OBJFILE.
1969 * gdb/dwarf2read.c (new_symbol_full): Change call to
1970 cp_scan_for_anonymous_namespaces to match new signature.
1971 * gdb/stabsread.c (define_symbol): Change call to
1972 cp_scan_for_anonymous_namespaces to match new signature.
1974 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1979 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1981 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1982 leak. Delete unused variables.
1984 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1988 * python/py-frame.c (frapy_read_var): Use const struct *block.
1989 * python/py-type.c (typy_lookup_typename): Likewise.
1990 (typy_lookup_type): Likewise.
1991 (typy_legacy_template_argument): Likewise.
1992 (typy_template_argument): Likewise.
1993 (gdbpy_lookup_type): Likewise.
1994 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1995 * python/py-block.c (blpy_block_object): Likewise.
1996 (blpy_iter): Likewise.
1997 (blpy_get_start): Likewise.
1998 (blpy_get_end): Likewise.
1999 (blpy_get_function): Likewise.
2000 (blpy_get_superblock): Likewise.
2001 (set_block): Likewise.
2002 (block_to_block_object): Likewise.
2003 (block_object_to_block): Likewise.
2004 (blpy_is_valid): Likewise.
2005 (blpy_get_global_block): New function.
2006 (blpy_get_static_block): New function.
2007 (blpy_is_global): New function.
2008 (blpy_is_static): New function.
2009 * blockframe.c (block_innermost_frame): Likewise.
2010 * valops.c (value_of_variable): Likewise.
2011 * frame.h: Update prototypes.
2012 * python/python-internal.h: Likewise.
2013 * value.h: Likewise.
2015 2011-10-19 Cary Coutant <ccoutant@google.com>
2017 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2020 2011-10-19 Cary Coutant <ccoutant@google.com>
2022 * dwarf2read.c (peek_abbrev_code): New function.
2023 (dw2_get_file_names): Check for dummy compilation units.
2024 (create_debug_types_hash_table): Likewise.
2025 (process_psymtab_comp_unit): Likewise.
2026 (load_partial_comp_unit): Likewise.
2027 (load_full_comp_unit): Likewise.
2029 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2031 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2032 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2033 pt_phdr if PT_PHDR was found.
2035 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2037 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2038 type or "<unnamed type"> when there is no name assigned.
2039 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2040 avoid a sigint when no name is assigned.
2042 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2045 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * dwarf2expr.c (ctx_no_read_reg): New function.
2047 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2048 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2049 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2050 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2052 2011-10-16 Doug Evans <dje@google.com>
2054 * NEWS: Document python gdb.printing.register_pretty_printer's new
2055 `replace' parameter.
2057 2011-10-14 Keith Seitz <keiths@redhat.com>
2060 * eval.c (evaluate_subexp_standard): Do not construct
2061 an array of types; pass the value array directly to
2062 find_overload_match.
2063 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2064 (rank_function): Take an array of values instead of types.
2065 (rank_one_type): Add struct value * parameter.
2066 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2067 (rank_function): For each argument, pass the argument's
2068 value to rank_one_type.
2069 (rank_one_type): Add VALUE parameter.
2070 If the parameter type is a pointer and the argument type
2071 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2073 Update all calls to rank_one_type, passing NULL for new
2075 * valarith.c (value_user_defined_cpp_op): Do not construct
2076 an array of types; pass the value array directly to
2077 find_overload_match.
2078 * valops.c (find_overload_method_list): Take an array of
2079 values instead of types.
2080 Save the type of OBJP for later use.
2081 Update calls to find_oload_champ, and find_oload_champ_namespace.
2082 (find_oload_champ_namespace): Take an array of values instead
2084 (find_oload_champ_namespace_loop): Likewise.
2085 (find_oload_champ): Likewise.
2086 (classify_oload_match): Inspect all arguments
2087 until INCOMPATIBLE is found. Return the worst badness found
2089 (compare_parameters): Update call to rank_one_type.
2090 * value.h (find_overload_match): Take an array of values instead
2093 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2095 Drop lazy lm_info reading.
2096 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2097 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2098 (lm_info_read): New function.
2099 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2100 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2101 lm_dynamic_from_link_map.
2102 (lm_next, lm_prev, lm_name): Remove.
2103 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2104 initialization incl. read_memory. No longer use lm_name.
2105 (svr4_free_so): Drop lm_info->lm freeing.
2106 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2107 explicit lm_addr and lm initialization.
2108 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2109 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2112 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2113 Paul Pluzhnikov <ppluzhnikov@google.com>
2115 * defs.h (struct so_list): New forward declaration.
2116 (make_cleanup_free_so): New declaration.
2117 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2118 (svr4_free_so): Move the function here from downwards. Handle NULL
2120 (svr4_free_library_list): New.
2121 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2122 Use more cleanups. Use new parameter ignore_first instead of
2123 ignore_first_link_map_entry.
2124 (svr4_current_sos): New variable ignore_first, initialize it. New
2125 variable back_to, use it for svr4_free_library_list protection.
2126 (svr4_free_so): Remove - move upwards.
2127 * utils.c: Include solist.h.
2128 (do_free_so, make_cleanup_free_so): New functions.
2130 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 Fix internal error regression.
2133 * value.c (value_primitive_field): Handle value_optimized_out. Move
2134 packed bitfields comment.
2136 2011-10-13 Tom Tromey <tromey@redhat.com>
2138 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2141 2011-10-13 Tom Tromey <tromey@redhat.com>
2143 * python/py-type.c (typy_has_key): Make 'field' const.
2145 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2147 * remote.c (remote_save_trace_data): Invert comparison.
2149 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2151 * tracepoint.c (trace_save_command): Use filename instead of
2154 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2156 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2159 2011-10-13 Yao Qi <yao@codesourcery.com>
2162 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2163 whether insn is a 32-bit Thumb-2 instruction.
2164 (thumb_in_function_epilogue_p): Likewise.
2165 (thumb_get_next_pc_raw): Likewise.
2166 (arm_breakpoint_from_pc): Likewise.
2168 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2170 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2171 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2172 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2173 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2174 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2176 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2178 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2179 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2180 clear DATA on zero SIZE.
2182 2011-10-12 Doug Evans <dje@google.com>
2184 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2185 header->first_die_offset here. All callers updated.
2187 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 Fix compatibility with texinfo versions older than 4.12.
2190 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2191 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2192 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2193 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2194 * configure: Regenerate.
2195 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2196 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2197 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2199 2011-10-12 Gary Benson <gbenson@redhat.com>
2201 * breakpoint.h (pc_at_non_inline_function): Declare.
2202 * breakpoint.c (is_non_inline_function,
2203 pc_at_non_inline_function): New functions.
2204 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2205 if the stop is at a location where functions cannot be inlined.
2207 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2209 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2210 the core wanted them stopped, or if they now have a pending event
2212 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2213 down to stop_and_resume_callback.
2214 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2215 having new pending events after calling linux_nat_filter_event.
2217 2011-10-11 Sterling Augustine <saugustine@google.com>
2219 * dwarf2read.c: Undo inadvertent changes in previous commit.
2221 2011-10-11 Sterling Augustine <saugustine@google.com>
2223 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2226 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2228 * symfile.c (separate_debug_file_exists): Fix condition.
2230 2011-10-11 David S. Miller <davem@davemloft.net>
2232 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2234 * regcache.h (regcache_restore): Remove declaration.
2236 * gdbarch.sh: New field 'long_long_align_bit'.
2237 * gdbarch.c, gdbarch.h: Regenerate.
2238 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2239 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2241 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2243 Revert this part of:
2244 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2245 Support @entry in input expressions.
2246 * c-exp.y (ENTRY, unknown_cpp_name): New.
2247 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2248 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2249 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2250 (name_not_typename: ENTRY): New.
2251 (yylex): Recognize ENTRY.
2253 Reimplement @entry in input expressions.
2254 * c-exp.y (ENTRY): New.
2255 (variable: name_not_typename ENTRY): New.
2256 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2258 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2260 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2261 parent and child's pids as soon as we detect a clone event.
2262 Adjust another debug message.
2264 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2266 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2267 not zombie instead of reading the whole file.
2269 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 Fix separate debuginfo warning with "remote:" access.
2272 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2273 * symfile.c (get_file_crc): New function with the code moved from ...
2274 (separate_debug_file_exists): ... this function, specifically variables
2275 buffer and count. New variable verified_as_different, set it. Remove
2276 file_crc initialization. Verify also if both files are not the same
2277 manually, if needed.
2279 2011-10-11 Yao Qi <yao@codesourcery.com>
2281 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2284 2011-10-10 Doug Evans <dje@google.com>
2286 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2287 libthread_db when we load libpthread or the main symbol file.
2288 (thread_db_inferior_created): New function.
2289 (_initialize_thread_db): Attach inferior_created observer.
2290 * linux-nat.c (linux_child_post_attach): Remove call to
2291 check_for_thread_db.
2292 (linux_child_post_startup_inferior): Ditto.
2293 * objfiles.h (OBJF_MAINLINE): Define.
2294 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2295 allocate_objfile when appropriate.
2297 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2300 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2301 Remove unused variables.
2302 (get_linux_version): Remove function.
2303 (_initialize_arm_linux_nat): Do not call it.
2305 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2307 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2308 new clone lwp if the core asked it to stop. Don't pass on
2309 unexpected signals to the new clone; leave them pending instead.
2311 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2313 * linux-nat.c (resume_lwp): Remove redundant debug output.
2315 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2317 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2318 last_resume_kind before clearing it, and use the copy instead to
2319 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2320 resume_clear_callback in the non-stop path too.
2322 2011-10-09 Yao Qi <yao@codesourcery.com>
2324 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2325 Honor OPTIONS and VAL's type.
2326 (common_val_print, value_print): Update to pass one more parameter.
2328 2011-10-09 Doug Evans <dje@google.com>
2330 Add new "alias" command.
2331 * NEWS: Mention new command.
2332 * command.h (valid_user_defined_cmd_name_p): Declare.
2333 * defs.h (make_cleanup_dyn_string_delete): Declare.
2334 * utils.c: #include "dyn-string.h".
2335 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2336 * cli/cli-cmds.c: #include "dyn-string.h".
2337 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2338 (init_cli_cmds): Add new command.
2339 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2341 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 Fix compatibility with older GCCs.
2344 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2345 * stack.c (read_frame_arg): Initialize val_deref.
2347 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 Entry values NEWS entries, DWARF disassembly support.
2350 * NEWS: New entry values entry.
2351 (set print entry-values, show print entry-values)
2352 (set debug entry-values, show debug entry-values): New entries.
2353 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2354 indent. Remove variable start. Move header printing out. Respect
2355 INDENT. Support DW_OP_GNU_entry_value.
2356 (locexpr_describe_location_1): Move the header printing here, extend
2357 the disassemble_dwarf_expression passed parameters.
2359 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2361 Display @entry parameter values even for references.
2362 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2363 coerce_ref_if_computed.
2364 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2365 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2366 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2367 existing push_dwarf_reg_entry_value call. Add new detection calling
2368 dwarf_block_to_dwarf_reg_deref. Update the error message.
2369 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2371 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2372 parameter deref_size, describe it in the comment.
2373 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2374 (dwarf_block_to_dwarf_reg_deref): New declaration.
2375 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2376 deref_size, describe it in the function comment. New variables
2377 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2378 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2379 describe it in the function comment. Fetch the alternative block
2380 accoring to DEREF_SIZE.
2381 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2382 (entry_data_value_free_closure, entry_data_value_funcs): New.
2383 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2384 outer_val, target_val, val and addr. Try to fetch and create also
2385 referenced value content.
2386 (pieced_value_funcs): NULL value for coerce_ref.
2387 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2388 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2389 coerce_ref_if_computed.
2390 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2391 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2392 * stack.c (read_frame_arg): Compare also dereferenced values.
2393 * value.c (value_computed_funcs): Make the parameter v const, use
2394 value_lval_const for it.
2395 (value_lval_const, coerce_ref_if_computed): New function.
2396 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2397 * value.h (struct lval_funcs): New field coerce_ref.
2398 (value_computed_funcs): Make the parameter v const.
2399 (value_lval_const, coerce_ref_if_computed): New declarations.
2401 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2403 Support @entry in input expressions.
2404 * c-exp.y (ENTRY, unknown_cpp_name): New.
2405 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2406 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2407 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2408 (name_not_typename: ENTRY): New.
2409 (yylex): Recognize ENTRY.
2410 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2411 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2413 * parse.c (operator_length_standard): Likewise.
2414 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2416 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 Display referenced values in backtraces.
2419 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2420 * stack.c (print_frame_arg): Likewise.
2422 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 Make some lval_funcs methods to default on NULL.
2425 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2427 (value_assign): Check if lval_computed write method is NULL.
2428 * value.h (struct lval_funcs): Comment NULL values for read and write
2431 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2433 Display @entry parameter values (without references).
2434 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2436 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2438 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2440 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2441 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2443 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2444 (loclist_read_variable_at_entry): New function.
2445 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2446 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2447 DW_AT_location, call dwarf_block_to_sp_offset for it.
2448 * frame.h (print_entry_values_no, print_entry_values_only)
2449 (print_entry_values_preferred, print_entry_values_if_needed)
2450 (print_entry_values_both, print_entry_values_compact)
2451 (print_entry_values_default, print_entry_values): New declarations.
2452 (struct frame_arg): New field entry_kind.
2453 (read_frame_arg): New parameter entryargp.
2454 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2455 arg->entry_kind. Optionally print the `@entry' suffix.
2456 (list_args_or_locals): New variable entryarg, initialize it.
2457 Initialize also entry_kind of arg and entryarg. Conditionalize
2458 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2459 xfree for entryarg.error.
2460 * stack.c (print_entry_values_no, print_entry_values_only)
2461 (print_entry_values_preferred, print_entry_values_if_needed)
2462 (print_entry_values_both, print_entry_values_compact)
2463 (print_entry_values_default, print_entry_values_choices)
2464 (print_entry_values): New variables.
2465 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2466 print the `@entry' suffix, possibly in combination for
2467 print_entry_values_compact.
2468 (read_frame_arg): New parameter entryargp, new variables entryval,
2469 entryval_error and val_equal. Read in also entryargp, respect
2470 print_entry_values, compare the values using val_equal, fill in also
2471 argp->entry_kind (together with entryargp->entry_kind).
2472 (print_frame_args): New variable entryarg, initialize it.
2473 Conditionalize print_frame_arg for arg, add print_frame_arg for
2474 entryarg. Call xfree for entryarg.error.
2475 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2476 * symtab.h (struct symbol_computed_ops): New field
2477 read_variable_at_entry.
2479 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2482 * frame.h (struct frame_arg): New definition.
2483 (read_frame_arg): New declaration.
2484 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2485 (list_args_or_locals): ... the code here. New variable arg, call
2486 read_frame_arg and list_arg_or_local with it. Unify the
2487 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2489 * stack.c (print_frame_arg): New functiom from the code of
2491 (read_frame_arg): New function.
2492 (print_frame_args): Remove variable val. New variable arg, call
2493 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2495 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2497 Protect entry values against self tail calls.
2498 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2499 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2501 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2503 Recognize virtual tail call frames.
2504 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2505 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2506 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2507 * dwarf2-frame-tailcall.c: New file.
2508 * dwarf2-frame-tailcall.h: New file.
2509 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2510 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2511 REGS.PREV only after CIE execution.
2512 (struct dwarf2_frame_cache): New field tailcall_cache.
2513 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2514 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2515 parts, try to find entry_cfa_sp_offset. Call
2516 dwarf2_tailcall_sniffer_first.
2517 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2519 (dwarf2_frame_dealloc_cache): New function.
2520 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2521 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2522 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2523 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2524 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2525 * dwarf2loc.c (func_addr_to_tail_call_list)
2526 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2527 (call_site_find_chain_1, call_site_find_chain): New.
2528 * dwarf2loc.h (struct call_site_chain): New.
2529 (call_site_find_chain): New declaration.
2530 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2531 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2532 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2533 * stack.c (frame_info): Support also TAILCALL_FRAME.
2535 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2537 Tail call sites reader implementation.
2538 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2539 fill in TYPE_TAIL_CALL_LIST.
2540 * gdbtypes.h (struct func_type): New field tail_call_list.
2541 (struct call_site): New field tail_call_next.
2542 (TYPE_TAIL_CALL_LIST): New definition.
2544 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2546 Implement basic support for DW_TAG_GNU_call_site.
2547 * block.c: Include gdbtypes.h and exceptions.h.
2548 (call_site_for_pc): New function.
2549 * block.h (call_site_for_pc): New declaration.
2550 * defs.h: Include hashtab.h.
2551 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2553 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2554 ctx_no_push_dwarf_reg_entry_value.
2555 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2556 (dwarf_block_to_dwarf_reg): New function.
2557 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2558 (ctx_no_push_dwarf_reg_entry_value): New function.
2559 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2560 push_dwarf_reg_entry_value.
2561 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2563 * dwarf2loc.c: Include gdbcmd.h.
2564 (dwarf_expr_ctx_funcs): New forward declaration.
2565 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2566 (dwarf_expr_reg_to_entry_parameter)
2567 (dwarf_expr_push_dwarf_reg_entry_value): New.
2568 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2569 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2570 (needs_dwarf_reg_entry_value): New function.
2571 (needs_frame_ctx_funcs): Install it.
2572 (_initialize_dwarf2loc): New function.
2573 * dwarf2loc.h (entry_values_debug): New declaration.
2574 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2575 (read_call_site_scope): New forward declaration.
2576 (process_full_comp_unit): Copy call_site_htab.
2577 (process_die): Support DW_TAG_GNU_call_site.
2578 (read_call_site_scope): New function.
2579 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2580 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2581 (cleanup_htab): Delete.
2582 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2583 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2584 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2585 FIELD_LOC_KIND_DWARF_BLOCK.
2586 * gdbtypes.h (enum field_loc_kind): New entry
2587 FIELD_LOC_KIND_DWARF_BLOCK.
2588 (struct main_type): New loc entry dwarf_block.
2589 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2590 (TYPE_FIELD_DWARF_BLOCK): New.
2591 * python/py-type.c: Include dwarf2loc.h.
2592 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2593 internal_error call on unknown FIELD_LOC_KIND.
2594 * symtab.h (struct symtab): New field call_site_htab.
2595 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2596 (core_addr_hash, core_addr_eq): New functions.
2598 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2602 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2603 calling_convention under func_stuff there.
2604 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2605 (init_type) <TYPE_CODE_FUNC>: Likewise.
2606 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2607 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2608 * gdbtypes.h (enum type_specific_kind): Change
2609 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2610 (struct main_type) <type_specific>: Change calling_convention to
2611 func_stuff. Move calling_convention to ...
2612 (struct func_type): ... this new struct.
2613 (INIT_FUNC_SPECIFIC): New #define.
2614 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2616 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2619 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2620 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2621 ctx->ref_addr_size. Handle its invalid value.
2622 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2623 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2624 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2625 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2626 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2627 (dwarf2_per_cu_ref_addr_size): New function.
2629 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2632 * dwarf2read.c (per_cu_header_read_in): New function.
2633 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2634 variables cu_header_local and cu_headerp.
2636 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 Fix initial language detection with -readnow.
2639 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2640 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2641 searches only for global symbols.
2643 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2645 Fix printed anonymous struct name.
2646 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2647 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2648 (anonymous_struct_prefix): New function.
2649 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2650 (dwarf2_name): Strip for anonymous structs any prefixes.
2652 2011-10-07 Doug Evans <dje@google.com>
2654 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2657 * python/lib/gdb/printing.py: Whitespace cleanup.
2659 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2662 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2664 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2665 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2666 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2667 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2668 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2669 (arm_linux_remove_watchpoint): Adjust.
2670 * i386-linux-nat.c (i386_linux_dr_set_control)
2671 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2672 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2673 (ia64_linux_remove_watchpoint): Adjust.
2674 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2675 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2676 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2677 (ppc_linux_insert_mask_watchpoint)
2678 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2679 (ppc_linux_remove_watchpoint): Adjust.
2680 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2683 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2685 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2686 (clear_win32_environment): New function for Cygwin to clear out
2688 (windows_create_inferior): Prepare new environment from in_env
2691 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2694 * python/py-value.c (valpy_call): Check that arguments are
2696 (is_intlike): Remove call to CHECK_TYPEDEF.
2697 (valpy_nonzero): Catch GDB exceptions.
2698 (valpy_absolute): Ditto.
2699 (valpy_lazy_string): Ditto.
2700 (valpy_call): Ditto.
2701 (valpy_get_is_optimized_out): Ditto.
2702 (valpy_long): Ditto.
2703 (valpy_float): Ditto.
2704 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2705 (valpy_richcompare): Ditto.
2707 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2709 * inferior.h (disable_randomization): Declare.
2710 * infrun.c (disable_randomization): New global variable.
2711 (show_disable_randomization): New function.
2712 (set_disable_randomization): Likewise.
2713 (_initialize_infrun): Install set/show disable-randomization
2715 * linux-nat.c (disable_randomization): Remove.
2716 (show_disable_randomization): Likewise.
2717 (set_disable_randomization): Likewise.
2718 (_initialize_linux_nat): No longer install set/show
2719 disable-randomization commands here.
2720 (linux_nat_supports_disable_randomization): New function.
2721 (linux_nat_add_target): Install it.
2722 * remote.c (PACKET_QDisableRandomization): New enum value.
2723 (remote_protocol_packets): Support QDisableRandomization.
2724 (_initialize_remote): Likewise.
2725 (remote_supports_disable_randomization): New function.
2726 (init_remote_ops): Install it.
2727 (extended_remote_supports_disable_randomization): New function.
2728 (init_extended_remote_ops): Install it.
2729 (extended_remote_disable_randomization): New function.
2730 (extended_remote_create_inferior_1): Call it.
2731 * target.h (struct target_ops): Add to_supports_disable_randomization.
2732 (target_supports_disable_randomization): Add prototype.
2733 * target.c (target_supports_disable_randomization): New function.
2734 (find_default_supports_disable_randomization): Likewise.
2735 (init_dummy_target): Install it.
2737 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2739 Allow Python notification of new object-file loadings.
2740 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2741 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2742 Add build rule for this file.
2743 * python/py-event.h (emit_new_objfile_event): New prototype.
2744 (newobjfile): New Python event emitter.
2745 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2746 Python event registry.
2747 * python/py-inferior.c: Include objfiles.h
2748 (python_new_objfile): New function.
2749 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2751 * python/py-newobjfileevent.c: New file.
2752 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2754 * python/python.c (_initialize_python): Add
2755 gdbpy_initialize_new_objfile_event call.
2756 * NEWS: Add item for new Python event "gdb.newobjfile"
2758 2011-10-05 Tristan Gingold <gingold@adacore.com>
2760 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2761 Extract the ravenscar task name from the symbol for the atcb.
2763 2011-10-04 Paul Koning <paul_koning@dell.com>
2765 * python/py-type.c (typy_make_iter): Add forward declaration.
2766 (typy_fields_items): Use the gdb.Type iterator.
2768 2011-10-04 Paul Koning <paul_koning@dell.com>
2770 * NEWS: Add entry for Python gdb.Type mapping methods.
2772 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2774 PR python/12691: Add the inferior to Python exited event
2775 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2777 * python/py-event.h (emit_exited_event): Likewise
2778 * python/-inferior.c (python_inferior_exit): Likewise
2780 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2782 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2783 in output of -ada-task-info GDB/MI command.
2785 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2787 * ada-lang.h (struct inferior): Declare.
2788 (print_ada_task_info): Add declaration.
2789 * ada-tasks.c (print_ada_task_info): Make non-static.
2790 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2791 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2792 * mi/mi-main.c: #include "ada-lang.h".
2793 (mi_cmd_list_features): Add "ada-task-info" to the list
2794 of supported features.
2795 (mi_cmd_ada_task_info): New function.
2797 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2799 * python/python.c (python_run_simple_file): New function.
2800 (source_python_script, source_python_script_for_objfile):
2801 Replace call to PyRun_SimpleFile by call to
2802 python_run_simple_file.
2804 2011-10-03 Paul Koning <paul_koning@dell.com>
2806 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2807 (value_to_value_object): Fetch value if it was lazy.
2809 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2812 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2813 Rearrange the code for it.
2815 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2817 * breakpoint.c (bkpt_print_recreate): Add call to
2818 print_recreate_thread.
2820 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2822 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2823 PTRACE_GETFDPIC_INTERP): Define.
2825 2011-09-28 Yao Qi <yao@codesourcery.com>
2827 * symfile.c (add_symbol_file_command): Update message on usage.
2829 2011-09-28 Paul Koning <paul_koning@dell.com>
2831 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2832 (typy_length, typy_get, typy_has_key, typy_make_iter)
2833 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2834 (typy_iterator_iter, typy_iterator_iternext)
2835 (typy_iterator_dealloc): New functions to implement standard
2836 Python mapping methods on gdb.Type object.
2837 (gdb.TypeIterator): New Python type.
2838 * python/python-internal.h (gdbpy_iter_kind): New enum.
2840 2011-09-28 David S. Miller <davem@davemloft.net>
2842 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2843 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2844 * sparc-tdep.c (sparc_complex_floating_p): New function.
2845 (sparc32_store_arguments): Handle complex floats.
2846 (sparc32_extract_return_value): Likewise.
2847 (sparc32_store_return_value): Likewise.
2848 (sparc32_stabs_argument_has_addr): Likewise.
2849 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2850 (sparc64_store_floating_fields): Handle complex floats.
2851 (sparc64_store_arguments): Likewise.
2852 (sparc64_store_return_value): Likewise.
2854 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2856 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2857 before the change on 2006-12-09.
2858 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2859 generates the environment block for CreateProcessA, modulo the
2860 Cygwin-specific parts that are not needed here.
2862 2011-09-27 Tristan Gingold <gingold@adacore.com>
2864 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2865 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2866 (darwin_solib_get_all_image_info_addr_at_init): New function.
2867 (darwin_solib_read_all_image_info_addr): Likewise.
2868 (darwin_solib_create_inferior_hook): Use the above two functions.
2869 * darwin-nat.c (darwin_execvp): Renames retval to res.
2870 (darwin_read_write_inferior): Update comment.
2871 (darwin_read_dyld_info): New function.
2872 (darwin_xfer_partial): Handle DYLD_INFO.
2874 2011-09-27 Stan Shebs <stan@codesourcery.com>
2876 Add return address collection for tracepoints.
2877 * tracepoint.c (encode_actions_1): Add case for $_ret.
2878 (validate_actionline): Check for $_ret.
2879 (trace_dump_actions): Ditto.
2880 * ax-gdb.h (gen_trace_for_return_address): Declare.
2881 * ax-gdb.c: Include arch-utils.h.
2882 (gen_trace_for_return_address): New function.
2883 (agent_command): Add return address special case.
2884 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2885 (amd64_gen_return_address): New function.
2886 (amd64_init_abi): Call it.
2887 * i386-tdep.c: Include ax.h and ax-gdb.h.
2888 (i386_gen_return_address): New function.
2889 (i386_init_abi): Call it.
2890 * arch-utils.h (default_gen_return_address): Declare.
2891 * arch-utils.c (default_gen_return_address): New function.
2892 * gdbarch.sh (gen_return_address): New method.
2893 * gdbarch.h, gdbarch.c: Regenerate.
2895 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2898 * i386-tdep.c (i386_frame_align): New.
2899 (i386_gdbarch_init): Use i386_frame_align.
2901 2011-09-23 Yao Qi <yao@codesourcery.com>
2903 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2906 2011-09-22 Tristan Gingold <gingold@adacore.com>
2908 * fork-child.c (fork_inferior): Add exec_fun parameter.
2909 Call exec_fun or execvp.
2910 * inferior.h: Adjust prototype.
2911 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2912 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2913 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2914 * procfs.c (procfs_create_inferior): Ditto.
2915 * darwin-nat.c (darwin_execvp): New function.
2916 (darwin_create_inferior): Use it.
2918 2011-09-22 Yao Qi <yao@codesourcery.com>
2920 * infrun.c (context_switch): Print debug message when switching to
2923 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2925 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2926 complex and vector types.
2927 (s390_return_value_convention): Likewise.
2929 (s390_value_from_register): Call check_typedef.
2930 (extend_simple_arg): Likewise.
2931 (alignment_of): Likewise.
2932 (s390_push_dummy_call): Likewise.
2933 (s390_return_value): Likewise.
2935 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2937 * event-top.c (async_disconnect): If an exception is thrown from
2938 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2940 * top.c (quit_cover): Return void and take no arguments.
2941 * top.h (quit_cover): Update prototype.
2943 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2945 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2946 current_uiout, not uiout.
2948 2011-09-19 Doug Evans <dje@google.com>
2950 * python/py-auto-load.c (source_section_scripts): Fix file
2952 * python/python.c (source_python_script_for_objfile): Tweak comments.
2954 2011-09-18 Yao Qi <yao@codesourcery.com>
2955 Ulrich Weigand <ulrich.weigand@linaro.org>
2957 Support displaced stepping for Thumb 16-bit insns.
2958 * arm-tdep.c (THUMB_NOP) Define.
2959 (thumb_copy_unmodified_16bit): New.
2960 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2961 (thumb_copy_alu_reg): New.
2962 (arm_copy_svc): Move some common code to ...
2963 (install_svc): ... here. New.
2964 (thumb_copy_svc): New.
2965 (install_pc_relative): New.
2966 (thumb_copy_pc_relative_16bit): New.
2967 (thumb_decode_pc_relative_16bit): New.
2968 (thumb_copy_16bit_ldr_literal): New.
2969 (thumb_copy_cbnz_cbz): New.
2970 (cleanup_pop_pc_16bit_all): New.
2971 (thumb_copy_pop_pc_16bit): New.
2972 (thumb_process_displaced_16bit_insn): New.
2973 (thumb_process_displaced_32bit_insn): New.
2974 (thumb_process_displaced_insn): process thumb instruction.
2976 Support displaced stepping for Thumb 32-bit insns.
2977 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2978 (thumb2_copy_preload): New.
2979 (thumb2_copy_copro_load_store): New.
2980 (thumb2_copy_b_bl_blx): New.
2981 (thumb2_copy_alu_imm): New.
2982 (thumb2_copy_load_reg_imm): New.
2983 (thumb2_copy_load_literal): New
2984 (thumb2_copy_block_xfer): New.
2985 (thumb_32bit_copy_undef): New.
2986 (thumb_32bit_copy_unpred): New.
2987 (thumb2_decode_ext_reg_ld_st): New.
2988 (thumb2_decode_svc_copro): New.
2989 (decode_thumb_32bit_store_single_data_item): New.
2990 (thumb_copy_pc_relative_32bit): New.
2991 (thumb_decode_pc_relative_32bit): New.
2992 (decode_thumb_32bit_ld_mem_hints): New.
2993 (thumb2_copy_table_branch): New
2994 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2997 2011-09-18 Yao Qi <yao@codesourcery.com>
2999 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3000 (install_b_bl_blx): Likewise.
3002 2011-09-17 Yao Qi <yao@codesourcery.com>
3004 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3005 (install_load_store): ... this. New.
3006 Change parameter BYTE to SIZE.
3007 (arm_copy_ldr_str_ldrb_strb): Update caller.
3008 (arm_decode_ld_st_word_ubyte): Update caller.
3010 2011-09-17 Yao Qi <yao@codesourcery.com>
3012 * infrun.c (displaced_step_fixup): Move some code ...
3013 (displaced_step_restore): ... here. New function.
3014 (handle_inferior_event): Cleanup displaced stepping state for both
3015 child and parent when get forked or vforked event.
3016 * regcache.c (get_thread_arch_aspace_regcache): New function.
3017 get_thread_arch_regcache (): Call it.
3019 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3021 * ada-tasks.c (print_ada_task_info): New function, merging
3022 short_task_info and info_tasks together. Reimplement using
3023 ui-out instead of printing to stdout directly. Move the code
3024 building and checking the task list here, instead of leaving it
3025 in info_tasks_command.
3026 (info_task): Move the code building and checking the task
3027 list here, instead of leaving it in info_tasks_command.
3028 (info_tasks_command): Delete code building and checking
3029 the task list - moved elsewhere. Update calls to info_tasks
3032 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3034 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3036 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3038 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3040 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3042 * ada-lang.h (ada_build_task_list): Remove parameter
3044 * ada-tasks.c (ada_build_task_list): Remove parameter
3045 `warn_if_null'. Adjust implementation and documentation.
3046 (valid_task_id, ada_get_environment_task)
3047 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3048 (info_tasks_command): Adjust implementation.
3049 (task_command): Likewise.
3050 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3051 to ada_build_task_list.
3053 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3055 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3056 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3057 (ada_tasks_inferior_data_handle): New static global.
3058 (get_ada_tasks_inferior_data): New function.
3059 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3060 (ada_get_environment_task, iterate_over_live_ada_tasks)
3061 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3063 (ada_set_current_inferior_known_tasks_addr): New function.
3064 (read_known_tasks, ada_build_task_list, short_task_info)
3065 (info_tasks, info_task, info_tasks_command, task_command_1)
3066 (task_command, ada_task_list_changed): Adjust.
3067 (ada_tasks_invalidate_inferior_data): New function.
3068 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3069 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3070 * ada-lang.h (struct inferior): Add declaration.
3071 (ada_task_list_changed): Update profile.
3072 * remote-wtx-pd.c: #include "inferior.h".
3073 (switch_to_pd_internal): Update call to ada_task_list_changed.
3075 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3077 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3078 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3079 (atcb_fieldno): Delete these static globals.
3080 (struct ada_tasks_pspace_data): New struct.
3081 (ada_tasks_pspace_data_handle): New static global.
3082 (get_ada_tasks_pspace_data): New function.
3083 (ada_tasks_invalidate_pspace_data): New function.
3084 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3085 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3086 (_initialize_tasks): Create this module's per-progspace
3089 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3091 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3093 2011-09-16 Tristan Gingold <gingold@adacore.com>
3095 * fork-child.c (fork_inferior): Update comment. Use alloca
3096 instead of xmalloc for argv. Move len and shell_command
3097 declarations in the block where they are used.
3098 Only call execvp. Factorize failure code.
3100 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3103 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3104 `exp_element' instead of an element of the same and make the function
3106 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3107 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3108 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3109 Change argument of `write_exp_elt' function call.
3110 Remove extra spaces from comments.
3111 * parser-defs.h (write_exp_elt): Remove prototype.
3113 2011-09-15 Paul Koning <paul_koning@dell.com>
3115 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3116 count of item appended to list.
3117 * python/py-type.c (typy_fields): Likewise.
3119 2011-09-15 Paul Koning <paul_koning@dell.com>
3121 * MAINTAINERS (Write After Approval): Add myself to the list.
3123 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3126 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3127 processes with multiple threads.
3128 (inf_has_multiple_thread_cb): New function.
3129 (inf_has_multiple_threads): New function.
3131 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3133 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3134 * python/py-inferior.c (GdbMethods): New Python method definition.
3136 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3138 Handle multiple breakpoint hits in Python interface:
3139 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3140 variable to breakpoints.
3141 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3142 bps instead of single breakpoint. Fix some space typos.
3143 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3144 variable to breakpoints.
3146 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3148 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3149 note if the breakpoint is internal.
3151 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3153 * MAINTAINERS (Write After Approval): Add myself to the list
3155 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3157 * infrun.c (prepare_for_detach, wait_for_inferior)
3158 (fetch_inferior_event): Don't flush the register cache.
3159 * remote.c (struct stop_reply) <regcache>: Add comment.
3161 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3163 Remove excessive DWARF expressions memory duplication.
3164 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3166 (indirect_pieced_value): Remove variable result. Remove variable
3167 back_to and its use for baton.data.
3168 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3170 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3171 Update the function comment.
3173 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3175 * inferior.h (ALL_INFERIORS): New.
3176 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3177 for a stopped thread.
3178 (thread_db_find_new_threads): Look for threads in all inferiors.
3180 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3182 * breakpoint.c (update_watchpoint): Handle the case of the
3183 watchpoint to update not being in the breakpoint list yet.
3184 (hw_watchpoint_use_count): New, factored out from
3185 hw_watchpoint_used_count.
3186 (hw_watchpoint_used_count): Rename to ...
3187 (hw_watchpoint_used_count_others): ... this. Add `except'
3188 parameter. Don't count resources of `except'. Use
3189 hw_watchpoint_use_count.
3191 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3193 * gdbthread.h (enum thread_state): Moved here.
3194 (struct thread_info): Rename `executing_' field to `executing' and
3195 `state_' to `state'.
3196 * thread.c (enum thread_state): Moved to gdbthread.h.
3197 (new_thread, add_thread_silent, delete_thread_1)
3198 (any_live_thread_of_process, thread_alive, set_running)
3199 (set_running, is_thread_state, any_running, is_executing)
3200 (set_executing, finish_thread_state, print_thread_info)
3201 (do_captured_thread_select): Adjust.
3203 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3205 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3206 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3208 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3209 Matt Rice <ratmice@gmail.com>
3213 * interps.c (struct interp) <interpreter_out>: Delete field.
3214 (interp_new): Remove the data and uiout parameters and adjust.
3215 (interp_set): Only set the current_uiout from the interpreter's
3216 uiout after initializing the interpreter. Adjust call to
3218 (interp_ui_out): Adjust to call procs->ui_out_proc.
3219 (interp_data, interp_name): New.
3220 * interps.h (interp_init_ftype): Add `self' parameter.
3221 (interp_ui_out_ftype): New typedef.
3222 (struct interp_procs) <ui_out_proc>: New method pointer.
3223 (interp_new): Remove the data and uiout parameters.
3224 (interp_data, interp_name): Declare.
3225 * tui/tui-interp.c (tui_init): Adjust prototype.
3227 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3228 tui_out here. Adjust call to interp_new.
3229 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3230 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3232 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3233 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3234 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3235 Initialize mi->uiout depending on the mi_version as extracted from
3236 the interpreter's name.
3238 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3239 interp_new. Don't allocate the ui_out's of the interpreters here.
3241 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3243 * solib.c (solib_used): New function.
3244 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3245 by another so_list object before freeing it.
3247 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3250 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3253 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3257 (amd64_skip_xmm_prologue): ... this new function. Describe its
3258 parameters. No longer use amd64_prologue_line_bug.
3259 * defs.h (producer_is_gcc_ge_4): New declaration.
3260 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3261 (process_full_comp_unit): Update its caller. Remove
3262 amd64_prologue_line_bug initialization.
3263 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3264 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3266 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3268 * linux-nat.h (enum resume_kind): New.
3269 (struct lwp_info) <last_resume_kind>: New field.
3270 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3271 resume_stop on the new lwp.
3272 (add_lwp): Set last_resume_kind as resume_continue by default.
3273 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3274 (resume_lwp): New, factored out from resume_callback. Also check
3275 for pending status in lp->waitstatus.
3276 (resume_callback): Reimplement.
3277 (resume_clear_callback): Set last_resume_kind as resume_stop.
3278 (resume_set_callback): Set last_resume_kind as resume_continue.
3279 (linux_nat_resume, linux_handle_extended_wait): Set
3281 (running_callback): Also check lp->waitstatus for pending events.
3282 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3284 (stop_and_resume_callback): Don't re-resume if the core wanted the
3285 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3286 using an invalidated pointer.
3287 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3288 SIGSTOPs if the core wanted the LWP to stop.
3289 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3290 wanted the lwp to stop. If the core wanted the lwp to stop, and
3291 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3292 of TARGET_SIGNAL_STOP.
3293 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3294 here. Instead, signal the lwp, and set the last_resume_kind to
3297 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3299 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3300 -1 (error), if the lwp exits right after attaching.
3302 2011-09-08 Doug Evans <dje@google.com>
3304 * py-cmd.c: Some minor formatting fixes.
3305 (gdbpy_parse_command_name): Rename text arg to name, make const.
3306 All callers updated.
3307 * python-internal.h (gdbpy_parse_command_name): Update.
3309 * cli/cli-decode.c (add_cmd): Add comment.
3311 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3313 PR breakpoints/12435
3314 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3315 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3316 * dwarf2read.c (process_full_comp_unit): Initialize
3317 amd64_prologue_line_bug.
3318 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3320 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3322 Fix TUI screen corruption.
3323 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3326 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 * findvar.c (read_var_value): Never return NULL, throw an error
3329 instead. Update the function comment. State symbol name in the error
3331 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3333 * stack.c (print_frame_args): Likewise.
3334 * valops.c (value_of_variable): Likewise.
3336 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3338 * stack.c (print_frame_args): New variable except. Wrap
3339 read_var_value and common_val_print into TRY_CATCH.
3341 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3343 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3344 caller to value_of_this.
3345 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3347 * valops.c (value_of_this): Remove parameter complain and variable ret.
3348 Update function comment. Never return NULL by this code.
3349 (value_of_this_silent): New function.
3350 * value.h (value_of_this): Remove parameter complain.
3351 (value_of_this_silent): New declaration.
3353 2011-09-07 Yao Qi <yao@codesourcery.com>
3355 * gdbthread.h (struct thread_info): Remove fields
3356 `stepping_through_solib_after_catch' and
3357 `stepping_through_solib_catchpoints'.
3358 * infrun.c (init_thread_stepping_state): Update.
3359 (process_event_stop_test, currently_stepping): Update.
3360 (currently_stepping_or_nexting_callback): Update.
3362 2011-09-07 Yao Qi <yao@codesourcery.com>
3364 * gdbthread.h (struct thread_info): Comment on field
3365 `step_after_step_resume_breakpoint'.
3367 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3369 * remote.c (remote_console_output): Reindent.
3371 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3373 * frame.c (has_stack_frames): Check for currently selected
3376 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3378 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3379 (set_async_annotation_level, set_async_prompt, pop_prompt)
3380 (push_prompt, new_async_prompt): Delete declarations.
3381 * top.h (get_prompt, set_prompt): Change prototype.
3382 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3384 * top.c (command_loop):
3385 (top_prompt): New global.
3386 (get_prefix, set_prefix, get_suffix, ): Delete.
3387 (get_prompt, set_prompt): Rewrite.
3388 (show_new_async_prompt): Rename to ...
3389 (show_prompt): ... this.
3390 (init_main): Adjust. Don't handle --annotate=2 here.
3391 * event-top.c (new_async_prompt): Delete.
3392 (the_prompts): Delete.
3393 (more_to_come): Make static.
3394 (display_gdb_prompt): Use top_level_prompt() to compute the top
3395 level prompt, and don't notify the before_prompt observers
3396 directly here. Always trick readline into not trying to display
3397 the prompt if sync_execution and displaying the primary prompt.
3398 If displaying a local/secondary prompt, always show it, even if
3399 sync_execution is set.
3400 (change_annotation_level): Delete.
3401 (top_level_prompt): New, based on change_annotation_level.
3402 (push_prompt, pop_prompt): Delete.
3403 (async_disable_stdin): No longer pushes prompt.
3404 (command_line_handler): No longer pushes or pops prompt. If more
3405 input is expected, call display_gdb_prompt with an explicit empty
3407 (async_stop_sig): Adjust.
3408 (set_async_annotation_level, set_async_prompt): Delete.
3409 * python/python.c (before_prompt_hook): Adjust.
3411 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3415 * infrun.c (fetch_inferior_event): Check if there's a selected
3416 thread before checking if the selected thread is executing.
3418 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3420 * inf-loop.c (execute_command): Don't check if the current thread
3421 if running before synchronously waiting for command completion.
3422 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3424 (normal_stop): Call async_enable_stdin here.
3425 * inf-loop.c (inferior_event_handler): Don't call
3426 async_enable_stdin, nor handle "set exec-done-display" here.
3428 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3432 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3434 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3436 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3438 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3440 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3444 2011-09-02 Matt Rice <ratmice@gmail.com>
3447 * event-top.c (cli_command_loop): Replace readline setup with
3448 direct call to display_gdb_prompt.
3449 (display_gdb_prompt): Do not call observer mechanism during
3450 synchronous execution.
3452 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3454 * linux-nat.c (in_pid_list_p): New.
3455 (linux_record_stopped_pid): Delete.
3456 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3457 already attached to the LWP. Return an indication if so.
3458 (linux_nat_filter_event): Adjust.
3459 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3460 returning an indication to ignore this thread.
3462 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3464 * top.c: Include interps.h.
3465 (execute_command): If the target can async, but the interpreter is
3466 in sync mode, synchronously wait for the command to finish before
3468 (execute_command_to_string): Force the interpreter to sync mode.
3469 * infrun.c: Include interps.h.
3470 (fetch_inferior_event): Don't restore the prompt yet if the
3471 interpreter is in sync mode.
3472 * interps.c (interpreter_async): New global.
3473 * interps.h (interpreter_async): Declare.
3474 * inf-loop.c: Include interps.h.
3475 (inferior_event_handler): Don't print the language change or run
3476 breakpoint commands yet if the interpreter in is sync mode.
3477 * main.c (captured_command_loop): Flip the interpreter to async
3479 * cli/cli-script.c: Include interps.h.
3480 (execute_user_command, while_command, if_command): Force the
3481 interpreter to sync mode.
3482 * python/python.c: Include interps.h.
3483 (python_command, execute_gdb_command): Force the interpreter to
3486 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3488 * value.c (show_convenience): Catch errors thrown while printing
3489 each internal variable.
3490 * infrun.c (validate_siginfo_access): New function.
3491 (siginfo_value_read, siginfo_value_write): Call it.
3493 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3496 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3497 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3500 2011-08-29 Yao Qi <yao@codesourcery.com>
3502 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3504 (enable_break2): Update caller.
3505 * solib-frv.c (bfd_lookup_symbol): Removed.
3507 (enable_break2): Update caller.
3508 * solib-pa64.c (bfd_lookup_symbol): Removed.
3510 * solib-svr4.c (bfd_lookup_symbol): Removed.
3511 (cmp_name_and_sec_flags): New.
3512 (enable_break): Update caller.
3513 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3514 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3515 (gdb_bfd_lookup_symbol): New.
3516 * solib.h: Functions declarations.
3518 2011-08-29 Yao Qi <yao@codesourcery.com>
3520 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3523 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3525 Fix TUI stepi on code without symbols.
3526 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3529 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3533 and the static keyword.
3534 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3535 Make prefix an array.
3536 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3537 * mi/mi-main.c (get_register): Remove stb initialization and the static
3540 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3542 Code cleanup - make mi_opt const.
3543 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3546 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3547 (mi_cmd_env_dir): Likewise.
3548 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3549 (mi_cmd_target_file_put): Likewise.
3550 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3551 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3552 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3553 (mi_valid_noargs): Make opts const.
3554 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3555 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3556 (mi_cmd_data_read_memory): Likewise.
3557 (mi_cmd_data_read_memory_bytes): Likewise.
3558 (mi_cmd_data_write_memory): Likewise.
3560 2011-08-26 Matt Rice <ratmice@gmail.com>
3562 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3563 bcache_xmalloc, replace bcache_xmalloc with call to
3564 psymbol_bcache_init for psymbol_cache.
3565 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3567 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 * inf-loop.c (inferior_event_handler): Add exception_print in
3572 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3575 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3576 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3577 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3578 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3579 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3580 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3581 * infrun.c (fetch_inferior_event): Call
3582 make_bpstat_clear_actions_cleanup.
3583 * top.c (execute_command): New variable cleanup_if_error, call
3584 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3585 * utils.c (do_bpstat_clear_actions_cleanup)
3586 (make_bpstat_clear_actions_cleanup): New functions.
3588 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3590 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3591 either the parent or the child forks. Rename a couple locals.
3593 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3595 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3596 library call. Avoid reading the `status' local if all waitpid
3599 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3601 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3602 opening /proc/PID/task always succeeds.
3604 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3606 * linespec.c (symtab_from_filename): Check for the end of string.
3608 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3611 * varobj.c (cplus_describe_child): Add the keyword
3612 'class' to the output of the method when dealing
3613 with a cast to a base class.
3615 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 No functionality change.
3618 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3619 function comment a reference, new variables tp and bs, move here code
3620 from throw_exception.
3621 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3622 describe it in the comment.
3623 * exceptions.c (throw_exception): Remove variable tp, move the code for
3624 bpstat_clear_actions to bpstat_clear_actions.
3626 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3628 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3629 * linux-nat.c: Include linux-procfs.h.
3630 (linux_proc_get_tgid): Move to ...
3631 * common/linux-procfs.c: ... here. New file.
3632 * common/linux-procfs.h: New file.
3633 * linux-thread-db.c: Include linux-procfs.h.
3634 * Makefile.in: Update dependencies.
3635 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3636 * config/arm/linux.mh: Likewise.
3637 * config/i386/linux.mh: Likewise.
3638 * config/i386/linux64.mh: Likewise.
3639 * config/ia64/linux.mh: Likewise.
3640 * config/m32r/linux.mh: Likewise.
3641 * config/m68k/linux.mh: Likewise.
3642 * config/mips/linux.mh: Likewise.
3643 * config/pa/linux.mh: Likewise.
3644 * config/pa/linux.mh: Likewise.
3645 * config/powerpc/linux.mh: Likewise.
3646 * config/powerpc/ppc64-linux.mh: Likewise.
3647 * config/powerpc/spu-linux.mh: Likewise.
3648 * config/sparc/linux.mh: Likewise.
3649 * config/sparc/linux64.mh: Likewise.
3650 * config/xtensa/linux.mh: Likewise.
3652 2011-08-24 Hui Zhu <teawater@gmail.com>
3654 * tracepoint.c (cond_string_is_same): New function.
3655 (find_matching_tracepoint): Add condition check
3656 by cond_string_is_same.
3658 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3660 Fix build error in Darwin port.
3661 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3663 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3666 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3667 (command_line_is_silent): New function.
3668 (bpstat_do_actions_1): No longer use commands_left, use
3669 command_line_is_silent for commands.
3670 (bpstat_alloc): Remove clearing of commands_left.
3671 (bpstat_stop_status): Remove initialization of commands_left, use
3672 command_line_is_silent.
3673 * breakpoint.h (struct bpstats): Remove commands_left.
3675 2011-08-18 Keith Seitz <keiths@redhat.com>
3678 * cp-name-parser.y (struct demangle_info): Remove unused
3681 (allocate_info): Change return type to struct demangle_info *.
3682 Always allocate a new demangle_info.
3683 Remove unused PREV pointer.
3684 (cp_new_demangle_parse_info): New function.
3685 (cp_demangled_name_parse_free): New function.
3686 (do_demangled_name_parse_free_cleanup): New function.
3687 (make_cleanup_cp_demangled_name_parse_free): New function.
3688 (cp_demangled_name_to_comp): Change return type to
3689 struct demangle_parse_info *.
3690 Allocate a new storage for each call.
3691 (main): Update usage for cp_demangled_name_to_comp
3693 * cp-support.h (struct demangle_parse_info): New structure.
3694 (cp_demangled_name_to_comp): Update API change for
3696 (cp_new_demangle_parse_info): Declare.
3697 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3698 (cp_demangled_name_parse_free): Declare.
3699 * cp-support.c (cp_canonicalize_string): Update API
3700 change for cp_demangled_name_to_comp.
3701 (mangled_name_to_comp): Likewise.
3702 Return struct demangle_parse_info, too.
3703 (cp_class_name_from_physname): Update mangled_name_to_comp
3705 (method_name_from_physname): Likewise.
3706 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3707 (cp_remove_params): Likewise.
3708 * python/py-type.c (typy_legacy_template_argument): Likewise.
3710 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3711 (cp_merge_demangle_parse_infos): Declare.
3712 * cp-support.c (ignore_typedefs): New file global.
3713 (copy_string_to_obstack): New function.
3714 (inspect_type): New function.
3715 (replace_typedefs): New function.
3716 (replace_typedefs_qualified_name): New function.
3717 (cp_canonicalize_string_no_typedefs): New function.
3718 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3719 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3720 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3721 instead of cp_canonicalize_string.
3722 (find_method): Likewise.
3723 (decode_compound): Before looking up the name, call
3724 cp_canonicalize_string_no_typedefs.
3725 (decode_variable): Likewise.
3727 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3728 Tom Tromey <tromey@redhat.com>
3729 Matt Rice <ratmice@gmail.com>
3731 * python/lib/gdb/prompt.py: New file.
3732 * python/lib/gdb/command/prompt.py: New file.
3733 * NEWS: Document set extended-prompt and gdb.prompt library
3735 2011-08-16 Yao Qi <yao@codesourcery.com>
3737 * tic6x-linux-tdep.c: Move const arrays definition from here...
3738 * tic6x-tdep.c: to here ...
3740 2011-08-14 Yao Qi <yao@codesourcery.com>
3742 * NEWS: New port to Texas Instruments TMS320C6x.
3744 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3745 Bernd Schmidt <bernds@codesourcery.com>
3746 Yao Qi <yao@codesourcery.com>
3748 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3749 * solib-dsbt.c: New file. Support DSBT shared object.
3750 * tic6x-linux-tdep.c: New file.
3751 * tic6x-tdep.c: New file.
3752 * tic6x-tdep.h: New file.
3754 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3755 Yao Qi <yao@codesourcery.com>
3757 * remote.c (PACKET_qXfer_fdpic): New enum value.
3758 (remote_protocol_features): Add qXfer:fdpic:read packet.
3759 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3760 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3761 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3763 2011-08-14 Yao Qi <yao@codesourcery.com>
3765 Target description for tic6x.
3766 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3767 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3768 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3769 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3770 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3771 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3772 * features/tic6x-c64xp-linux.xml: New.
3773 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3774 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3775 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3776 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3777 * regformats/tic6x-c64xp.dat,
3778 regformats/tic6x-c62x-linux.dat: Generated.
3779 * regformats/tic6x-c64x-linux.dat,
3780 regformats/tic6x-c64xp-linux.dat: Generated.
3781 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3782 features/tic6x-*.c files.
3783 Add regformats/tic6x-*.dat files.
3785 2011-08-12 Doug Evans <dje@google.com>
3787 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3788 * python/py-symbol.c (sympy_get_type): New function.
3789 (symbol_object_getset): Add "type".
3791 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3795 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3797 (tui_show_register_group): Don't store a byte buffer in the data
3799 (tui_register_format): Skip registers with an empty name.
3800 (tui_get_register): Store a struct value in the data element's
3801 value field instead of a byte buffer holding the raw register
3802 contents. Account for optimized-out and unavailable registers
3803 when comparing register contents.
3805 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3807 * printcmd.c (current_display_number): Update comment.
3808 (disable_current_display_cleanup): Delete.
3809 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3810 catch errors thrown while evaluating and printing the display.
3812 2011-08-09 Tom Tromey <tromey@redhat.com>
3814 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3816 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3818 * elfread.c (elf_symtab_read): Rework comments.
3819 * maint.c (maintenance_command): Ditto.
3820 * somread.c (som_symtab_read): Ditto.
3821 * solib.c (solib_find, solib_map_sections, update_solib_list)
3822 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3823 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3824 (sharedlibrary_command, no_shared_libraries): Ditto.
3825 * solib-irix.c (locate_base, disable_break, enable_break)
3826 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3827 (irix_current_sos, irix_open_symbol_file_object)
3828 (irix_special_symbol_handling): Ditto.
3829 * solib-sunos.c (locate_base, first_link_map_member)
3830 (sunos_current_sos, disable_break, enable_break)
3831 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3833 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3834 (open_symbol_file_object, svr4_current_sos, enable_break)
3835 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3837 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3838 (frv_current_sos, enable_break, frv_special_symbol_handling)
3839 (frv_solib_create_inferior_hook): Ditto.
3840 * solist.h (struct target_so_ops): Extend the comments of the
3841 special_symbol_handling, current_sos and open_symbol_file_object
3844 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3846 * python/lib/gdb/__init__.py: Auto-load files in command and
3847 function directories.
3848 * python/python.c (finish_python_initialization): Use
3850 * python/lib/gdb/command/pretty_printers.py: Self register
3852 * NEWS: Document auto-loading.
3854 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3856 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3857 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3858 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3860 2011-08-08 Tom Tromey <tromey@redhat.com>
3862 * breakpoint.c (clean_up_filters): Remove.
3863 (catch_syscall_split_args): Use VEC_cleanup.
3865 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3868 (main): Uncomment "Demangling error\n".
3870 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3872 * solib-target.c (segment_attributes): Make them static.
3873 (section_attributes, library_children, library_attributes): Likewise.
3874 (library_list_children, library_list_attributes): Likesise.
3875 (library_list_elements): Likewise.
3877 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3879 * exceptions.c (throw_exception): Don't disable the current
3881 * printcmd.c (disable_current_display_cleanup): New function.
3882 (do_one_display): Install a cleanup to disable the current display
3883 if doing the display throws.
3885 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3887 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3888 initialization of the tp_new member to the corresponding
3889 gdbpy_initialize_* function.
3890 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3891 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3892 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3893 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3894 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3896 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3899 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3900 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3901 references to current_uiout.
3903 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3905 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3906 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3907 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3908 * top.c (gdb_readline_wrapper): Adjust.
3909 * tui/tui-interp.c (tui_command_loop):
3910 (_initialize_tui_interp): Don't install it.
3912 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3914 * ui-out.h (uiout): Rename to ...
3915 (current_uiout): ... this.
3916 * ui-out.c (uiout): Rename to ...
3917 (current_uiout): ... this.
3918 * ada-lang.c (print_it_exception, print_one_exception)
3919 (print_mention_exception): Adjust.
3920 * breakpoint.c (watchpoint_check): Adjust.
3921 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3922 (default_collect_info, watchpoints_info, print_one_catch_fork)
3923 (print_one_catch_vfork, print_one_catch_syscall)
3924 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3925 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3926 (print_it_watchpoint, print_mention_watchpoint)
3927 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3928 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3929 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3930 (bkpt_print_mention, momentary_bkpt_print_it)
3931 (tracepoint_print_mention, update_static_tracepoint)
3932 (tracepoints_info, save_breakpoints): Adjust.
3933 * cli-out.c (field_separator): Adjust.
3934 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3935 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3936 * frame.c (get_current_frame): Adjust.
3937 * infcmd.c (run_command_1, print_return_value): Adjust.
3938 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3939 * infrun.c (print_end_stepping_range_reason): Adjust.
3940 (print_signal_exited_reason, print_exited_reason): Adjust.
3941 (print_signal_received_reason, print_no_history_reason): Adjust.
3942 * interps.c (interp_set): Adjust.
3943 * osdata.c (info_osdata_command): Adjust.
3944 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3945 * remote-fileio.c (remote_fileio_request): Adjust.
3946 * remote.c (show_remote_cmd): Adjust.
3947 * solib.c (info_sharedlibrary_command): Adjust.
3948 * source.c (print_source_lines_base): Adjust.
3949 * stack.c (print_stack_frame): Adjust.
3950 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3951 * symfile-mem.c (add_vsyscall_page): Adjust.
3952 * symfile.c (load_progress, generic_load)
3953 (print_transfer_performance): Adjust.
3954 * thread.c (info_threads_command, restore_selected_frame)
3955 (thread_command): Adjust.
3956 * top.c (make_cleanup_restore_ui_file): Adjust.
3957 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3958 (print_one_static_tracepoint_marker): Adjust.
3959 * cli/cli-cmds.c (print_disassembly): Adjust.
3960 * cli/cli-decode.c (print_doc_line): Adjust.
3961 * cli/cli-interp.c (safe_execute_command): Adjust.
3962 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3963 (handle_redirections): Adjust.
3964 * cli/cli-script.c (show_user_1): Adjust.
3965 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3966 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3967 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3968 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3969 (mi_cmd_env_dir): Adjust.
3970 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3971 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3972 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3973 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3974 (list_args_or_locals): Adjust.
3975 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3976 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3977 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3978 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3979 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3980 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3981 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3982 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3983 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3984 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3985 (list_available_thread_groups, mi_cmd_list_thread_groups)
3986 (mi_cmd_data_list_register_names)
3987 (mi_cmd_data_list_changed_registers)
3988 (mi_cmd_data_list_register_values, get_register)
3989 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3990 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3991 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3992 (mi_execute_command, mi_load_progress): Adjust.
3993 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3994 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3996 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3997 * tui/tui-interp.c (tui_command_loop): Adjust.
3998 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4000 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4002 * exceptions.c (struct catcher): Remove saved_uiout field.
4003 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4004 no longer save/resvore the global ui_out builder.
4005 (catch_exceptions_with_msg): Save/override/restore the global
4006 ui_out builder manually instead of relying on TRY_CATCH to do it.
4007 (catch_errors): Save/restore the global ui_out builder manually
4008 instead of relying on TRY_CATCH to do it.
4009 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4011 (TRY_CATCH): Adjust.
4012 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4013 the global ui_out builder manually instead of relying on TRY_CATCH
4016 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4018 * breakpoint.c (update_global_location_list): Ensure
4019 invariant 'first loc marked not duplicated and inserted,
4020 following locs marked duplicated/not inserted' is respected
4021 for multiple locations at the same address.
4022 (unduplicated_should_be_inserted) New function.
4023 (swap_insertion) New function.
4025 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4027 * stack.c (print_frame_arguments_choices): Comment typo fix.
4029 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4032 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4033 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4034 argument. Update callers.
4036 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4039 * doublest.c (convert_doublest_to_floatformat): Pass correct
4040 mantissa length to put_field.
4042 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4044 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4045 exception_print code path.
4046 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4047 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4048 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4050 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4053 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4054 Remove, merge them into ...
4055 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4056 variable args and its initialization.
4057 (struct print_args_args, print_args_stub): Remove, merge them into
4059 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4061 (do_gdb_disassembly): ... here. Remove variable args and its
4063 (print_frame): Remove variable args and its initialization, new
4064 variable gdbarch and numargs (from print_args_stub), inline here
4065 print_args_stub with a TRY_CATCH.
4066 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4068 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4069 New variable e, remove variable btargs and its initialization.
4071 2011-08-01 Tristan Gingold <gingold@adacore.com>
4073 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4075 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4077 * breakpoint.c (insert_bp_location): Document return value.
4078 (insert_breakpoint_locations): Fix documentation.
4079 (remove_breakpoints): Add documentation.
4081 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4083 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4084 argument. Update callers.
4086 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4088 * stack.c (print_frame_info): Comment typo fix.
4090 2011-07-29 Sterling Augustine <saugustine@google.com>
4092 * MAINTAINERS (Write After Approval): Add myself to the list.
4094 2011-07-29 Tom Tromey <tromey@redhat.com>
4096 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4097 (library_list_start_segment): Update.
4098 (library_list_start_section): Update.
4100 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4102 * varobj.c (value_get_print_value): Move hint check later into the
4103 function. Comment function. Free thevalue before reusing it.
4105 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 Pedro Alves <pedro@codesourcery.com>
4108 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4110 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4111 Assert the result kind.
4112 * value.h (value_one): Remove parameter lv.
4114 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4116 Fix crash on lval_computed values.
4117 * valops.c (value_zero): Use not_lval for lval_computed.
4119 2011-07-27 Tom Tromey <tromey@redhat.com>
4121 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4122 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4124 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4126 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4127 "ptype" by their typedefs difference.
4129 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4131 * dwarf2expr.c (ctx_no_read_reg): New function.
4132 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4133 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4134 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4135 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4137 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4139 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4140 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4142 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4143 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4144 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4145 (ctx_no_get_base_type): Move the functions here.
4146 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4147 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4148 (ctx_no_get_base_type): New declarations.
4150 2011-07-27 Tom Tromey <tromey@redhat.com>
4152 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4154 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4155 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4157 2011-07-26 Sterling Augustine <saugustine@google.com>
4159 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4161 (dump_bfd_file): Likewise.
4163 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4165 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4166 (remote_hw_watchpoint_length_limit): New variable.
4167 (_initialize_remote) add set,show cmds for this new variable.
4168 * gdb.texinfo: document these new commands.
4169 * NEWS: Mention these new commands.
4171 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4173 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4174 true for software watchpoints.
4176 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4180 2011-07-26 Tom Tromey <tromey@redhat.com>
4182 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4183 * dwarf2read.c (read_indirect_string_at_offset): New function.
4184 (read_indirect_string): Use it.
4185 (dwarf_decode_macro_bytes): New function, taken from
4186 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4187 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4188 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4190 (struct dwarf2_per_objfile) <macro>: New field.
4191 (dwarf2_elf_names): Add .debug_macro.
4192 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4193 (dwarf2_locate_sections): Handle new section.
4194 (read_file_scope): Handle DW_AT_GNU_macros.
4195 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4197 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4199 * NEWS: Mention dcache configuration.
4200 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4201 (dcache_size, dcache_line_size): New variables.
4202 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4203 (struct dcache_block): Make it expandable.
4204 (struct dcache_struct): New field.
4205 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4206 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4207 (dcache_poke_byte, dcache_print_line): Adjust.
4208 (set_dcache_size, set_dcache_line_size): New functions.
4209 (set_dcache_command, show_dcache_command): New functions.
4210 (_initialize_dcache): Add new commands.
4212 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4214 * progspace.h (struct program_space): Add solib_add_generation.
4215 * infcmd.c (post_create_inferior): Only call solib_add if not
4217 * solib.c (solib_add): Increment solib_add_generation.
4219 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4221 Fix implicit pointer offsets.
4222 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4225 2011-07-25 Tom Tromey <tromey@redhat.com>
4227 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4229 (ada_exception_sal): Make 'ops' const.
4230 (ada_decode_exception_location): Likewise.
4231 (ada_decode_assert_location): Likewise.
4232 (catch_assert_command): Update.
4233 (catch_ada_exception_command): Update.
4234 (create_ada_exception_catchpoint): Make 'ops' const.
4235 * breakpoint.c (set_raw_breakpoint_without_location)
4236 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4238 (create_internal_breakpoint): Update.
4239 (init_raw_breakpoint_without_location): Make 'ops' const.
4240 (init_raw_breakpoint, init_catchpoint)
4241 (create_fork_vfork_event_catchpoint)
4242 (create_syscall_event_catchpoint, init_breakpoint_sal)
4243 (create_breakpoint_sal, create_breakpoints_sal)
4244 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4245 * breakpoint.h (struct breakpoint) <ops>: Now const.
4246 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4249 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4251 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4253 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4255 * breakpoint.h (print_recreate_thread): Declare.
4256 (struct breakpoint): Move step_count, pass_count,
4257 number_on_target, static_trace_marker_id,
4258 static_trace_marker_id_idx ...
4259 (struct tracepoint): ... to this new struct.
4260 (get_tracepoint, get_tracepoint_by_number_on_target)
4261 (get_tracepoint_by_number): Change return type to struct
4263 * breakpoint.c (is_tracepoint_type): New, factored out from
4265 (is_tracepoint): Adjust.
4266 (print_one_breakpoint_location): Cast to struct tracepoint as
4267 necessary, and adjust.
4268 (print_recreate_catch_fork, print_recreate_catch_vfork)
4269 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4270 print_recreate_thread.
4271 (init_breakpoint_sal): New, factored out from
4272 create_breakpoint_sal.
4273 (create_breakpoint_sal): Reimplement.
4274 (create_breakpoint): Allocate a struct tracecepoint if the caller
4275 wanted a tracepoint. Use init_breakpoint_sal and
4277 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4278 (print_recreate_masked_watchpoint)
4279 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4280 (tracepoint_print_one_detail): Adjust.
4281 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4282 Dump the pass count here.
4283 (update_static_tracepoint): Adjust.
4284 (addr_string_to_sals): Adjust.
4285 (create_tracepoint_from_upload): Adjust. Change return type to
4286 struct tracepoint pointer.
4287 (trace_pass_set_count): Change parameter type to struct tracepoint
4288 pointer, and adjust.
4289 (trace_pass_command): Adjust.
4290 (get_tracepoint, get_tracepoint_by_number_on_target)
4291 (get_tracepoint_by_number): Change return type to struct
4292 tracepoint pointer, and adjust.
4293 (print_recreate_thread): New, factored out from save_breakpoints.
4294 (save_breakpoints): Don't print thread and task and passcount
4296 * remote.c (remote_download_tracepoint): Adjust.
4297 * tracepoint.c (trace_actions_command, validate_actionline)
4298 (start_tracing, tfind_1, trace_find_tracepoint_command)
4299 (trace_dump_command): Adjust.
4300 (find_matching_tracepoint): Change return type to struct
4301 tracepoint pointer, and adjust.
4302 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4303 (tfile_trace_find, tfile_fetch_registers): Adjust.
4304 * tracepoint.h (create_tracepoint_from_upload): Change return type
4305 to struct tracepoint pointer.
4306 * ada-lang.c (print_recreate_exception): Call
4307 print_recreate_thread.
4308 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4310 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4312 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4313 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4314 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4315 watchpoint_thread, watchpoint_triggered ...
4316 (struct watchpoint): ... to this new struct.
4317 (is_watchpoint): Declare.
4318 (install_breakpoint): Add new `internal' parameter.
4319 * breakpoint.c (is_watchpoint): Delete declaration.
4320 (set_breakpoint_condition): Handle watchpoints.
4321 (is_watchpoint): Make public.
4322 (watchpoint_in_thread_scope): Change parameter type to struct
4324 (watchpoint_del_at_next_stop): Change parameter type to struct
4325 watchpoint. Remove assertion. Adjust.
4326 (update_watchpoint): Ditto.
4327 (insert_breakpoints, breakpoint_init_inferior)
4328 (watchpoints_triggered, watchpoint_check)
4329 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4330 (bpstat_stop_status, print_one_breakpoint_location)
4331 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4332 to struct watchpoint as necessary, and adjust.
4333 (install_breakpoint): Add `internal' argument. If true, don't
4334 mention the new breakpoint. Use set_breakpoint_number.
4335 (create_fork_vfork_event_catchpoint)
4336 (create_syscall_event_catchpoint): Adjust.
4337 (dtor_watchpoint): New.
4338 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4339 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4340 (print_it_watchpoint, print_mention_watchpoint)
4341 (print_recreate_watchpoint, insert_masked_watchpoint)
4342 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4343 (print_one_detail_masked_watchpoint)
4344 (print_mention_masked_watchpoint)
4345 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4346 necessary, and adjust.
4347 (watch_command_1): Allocate and initialize a struct watchpoint
4348 instead of a struct breakpoint. Use install_breakpoint.
4349 (catch_exec_command_1): Adjust.
4350 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4352 (delete_breakpoint, enable_breakpoint_disp)
4353 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4354 as necessary, and adjust.
4355 (initialize_breakpoint_ops): Install dtor_watchpoint as
4356 watchpoints' dtor method.
4357 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4358 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4359 to struct watchpoint as necessary, and adjust.
4361 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4363 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4364 the the base class ops table.
4365 (catch_exception_breakpoint_ops)
4366 (catch_exception_unhandled_breakpoint_ops)
4367 (catch_assert_breakpoint_ops): Don't statically initialize.
4368 (initialize_ada_catchpoint_ops): New.
4369 (_initialize_ada_language): Call it.
4370 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4371 (bkpt_breakpoint_ops): Forward declare.
4372 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4373 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4374 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4375 (masked_watchpoint_breakpoint_ops)
4376 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4377 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4378 base class ops table.
4379 (null_re_set, null_check_status, null_works_in_software_mode)
4380 (null_resources_needed, null_print_one_detail): Delete.
4381 (bkpt_dtor): Rename to ...
4382 (base_breakpoint_dtor): ... this. Make static.
4383 (bkpt_allocate_location): Rename to ...
4384 (base_breakpoint_allocate_location): ... this. Make static.
4385 (base_breakpoint_re_set): New.
4386 (internal_error_pure_virtual_called): New.
4387 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4388 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4389 (base_breakpoint_works_in_software_mode)
4390 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4391 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4392 (base_breakpoint_print_recreate): New functions.
4393 (base_breakpoint_ops): New global.
4394 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4395 (bkpt_breakpoint_hit): Make static.
4396 (bkpt_check_status): Delete.
4397 (bkpt_resources_needed): Make static.
4398 (bkpt_works_in_software_mode): Delete.
4399 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4401 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4402 (momentary_breakpoint_ops): Don't statically initialize.
4403 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4405 (tracepoint_insert_location, tracepoint_remove_location)
4406 (tracepoint_check_status, tracepoint_works_in_software_mode)
4407 (tracepoint_print_it): Delete.
4408 (tracepoint_breakpoint_ops): Don't statically initialize.
4409 (initialize_breakpoint_ops): New.
4410 (_initialize_breakpoint): Call it.
4411 * breakpoint.h (null_re_set, null_works_in_software_mode)
4412 (null_resources_needed, null_check_status, null_print_one_detail):
4413 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4414 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4415 (bkpt_check_status, bkpt_resources_needed)
4416 (bkpt_works_in_software_mode, bkpt_print_it)
4417 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4418 Delete declarations.
4419 (initialize_breakpoint_ops): Declare.
4421 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4423 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4424 (momentary_bkpt_print_it): Simplify.
4426 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4428 Split internal, momentary and user breakpoints breakpoint_ops
4431 * breakpoint.c (internal_breakpoint_ops)
4432 (momentary_breakpoint_ops): Forward declare.
4433 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4434 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4435 (create_overlay_event_breakpoint)
4436 (create_std_terminate_master_breakpoint)
4437 (create_exception_master_breakpoint): Create breakpoints with
4438 internal_breakpoint_ops vtable.
4439 (set_longjmp_breakpoint): Create momentary breakpoints with
4440 momentary_breakpoint_ops vtable, using
4441 momentary_breakpoint_from_master.
4442 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4443 (create_solib_event_breakpoint): Create breakpoints with
4444 internal_breakpoint_ops vtable.
4445 (set_momentary_breakpoint): Create breakpoints with
4446 momentary_breakpoint_ops vtable.
4447 (momentary_breakpoint_from_master): New, factored out from
4448 clone_momentary_breakpoint.
4449 (clone_momentary_breakpoint): Adjust.
4450 (watch_command_1): Create scope breakpoints with
4451 momentary_breakpoint_ops vtable.
4452 (bkpt_re_set): Remove handling of internal and momentary
4454 (bkpt_print_mention, bkpt_print_recreate): New.
4455 (bkpt_breakpoint_ops): Adjust.
4456 (internal_bkpt_re_set, internal_bkpt_check_status)
4457 (internal_bkpt_print_it, internal_bkpt_print_mention)
4458 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4459 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4460 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4461 (momentary_bkpt_print_recreate): New.
4462 (momentary_breakpoint_ops): New.
4464 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4466 Implement most breakpoint_ops methods for all breakpoint types,
4467 and move the default handlings to the proper callbacks.
4469 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4470 works_in_software_mode method.
4471 (insert_bp_location): Go through breakpoint_ops->insert_location
4472 for software and hardware watchpoints.
4473 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4475 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4476 for software and hardware watchpoints.
4477 (print_it_typical): Delete.
4478 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4480 (watchpoint_check): Adjust comment.
4481 (bpstat_check_location): Simply always call the breakpoint's
4482 breakpoint_hit method.
4483 (bpstat_stop_status): Always call the breakpoint's check_status
4484 method. Remove special cases for watchpoints and internal event
4485 breakpoints from here (moved to the check_status implementations).
4486 (print_one_breakpoint_location): Assume b->ops is never NULL.
4487 Remove static tracepoint marker id printing from here (moved to
4488 the print_one_detail callback implementation of tracepoints).
4489 (init_bp_location): Assert OPS is never NULL.
4490 (allocate_bp_location): Always call the breakpoint's
4491 allocate_location method, and remove the default code from here.
4492 (free_bp_location): Always call the location's dtor method, and
4493 remove the default code from here.
4494 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4495 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4496 parameter. Pass it down.
4497 (set_raw_breakpoint): Ditto.
4498 (print_it_catch_fork): Adjust to take a bpstat as argument.
4499 (catch_fork_breakpoint_ops): Install methods.
4500 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4501 (catch_vfork_breakpoint_ops): Install methods.
4502 (dtor_catch_syscall): Call the base dtor.
4503 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4504 (catch_syscall_breakpoint_ops): Install methods.
4505 (dtor_catch_exec): Call the base dtor.
4506 (print_it_catch_exec): Adjust to take a bpstat as argument.
4507 (catch_exec_breakpoint_ops): Install methods.
4508 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4509 the breakpoint's resources_needed method, and remove the default
4511 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4513 (clone_momentary_breakpoint): Clone the original's ops.
4514 (mention): Always call the breakpoint's print_mention method, and
4515 remove the default code from here.
4516 (create_breakpoint_sal): Adjust to pass the ops to
4517 set_raw_breakpoint rather than setting it manually.
4518 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4519 ops to set_raw_breakpoint_without_location rather than setting it
4521 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4522 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4523 (ranged_breakpoint_ops): Install methods.
4524 (break_range_command): Adjust to pass the ops to
4525 set_raw_breakpoint rather than setting it manually.
4526 (re_set_watchpoint, breakpoint_hit_watchpoint)
4527 (check_status_watchpoint, resources_needed_watchpoint)
4528 (works_in_software_mode_watchpoint, print_it_watchpoint)
4529 (print_mention_watchpoint, print_recreate_watchpoint): New
4531 (watchpoint_breakpoint_ops): Install new methods.
4532 (print_it_masked_watchpoint): New function.
4533 (masked_watchpoint_breakpoint_ops): Install new methods.
4534 (watch_command_1): Adjust to pass the right breakpoint_ops to
4535 set_raw_breakpoint_without_location rather than setting it
4536 manually later. Record the current pspace.
4537 (print_it_exception_catchpoint): Adjust to take a bpstat as
4539 (gnu_v3_exception_catchpoint_ops): Install new methods.
4540 (say_where): New function.
4541 (null_re_set, null_check_status, null_works_in_software_mode)
4542 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4544 (bp_location_ops): New global.
4545 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4546 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4547 (bkpt_check_status, bkpt_resources_needed)
4548 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4549 (bkpt_print_recreate): New functions.
4550 (bkpt_breakpoint_ops): New global.
4551 (tracepoint_re_set, tracepoint_insert_location)
4552 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4553 (tracepoint_check_status, tracepoint_works_in_software_mode)
4554 (tracepoint_print_it, tracepoint_print_one_detail)
4555 (tracepoint_print_mention, tracepoint_print_recreate): New
4557 (tracepoint_breakpoint_ops): New global.
4558 (delete_breakpoint): Always call the breakpoint's dtor method, and
4559 remove the default handling from here.
4560 (breakpoint_re_set_default): Make static.
4561 (breakpoint_re_set_one): Always call the breakpoints re_set
4562 method, and remove the default handling from here.
4563 (trace_command, ftrace_command, strace_command)
4564 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4565 to create_breakpoint.
4566 (save_breakpoints): Always call the breakpoint's print_recreate
4567 method, and remove the default handling from here.
4569 * ada-lang.c (dtor_exception): Call the base dtor.
4570 (re_set_exception): Call the base method.
4571 (print_it_exception, print_it_catch_exception): Adjust to take a
4573 (catch_exception_breakpoint_ops): Install methods.
4574 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4576 (catch_exception_unhandled_breakpoint_ops): Install methods.
4577 (print_it_catch_assert): Adjust to take a bpstat as argument.
4578 (catch_assert_breakpoint_ops): Install methods.
4580 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4581 to take a bpstat as argument.
4582 (enum print_stop_action): Add describing comments to each enum
4584 (breakpoint_re_set_default): Delete declaration.
4585 (null_re_set, null_works_in_software_mode, null_resources_needed)
4586 (null_check_status, null_print_one_detail): Declare.
4587 (bkpt_breakpoint_ops): Declare.
4588 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4589 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4590 (bkpt_check_status, bkpt_resources_needed)
4591 (bkpt_works_in_software_mode, bkpt_print_it)
4592 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4595 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4596 bkpt_breakpoint_ops.
4597 * python/py-breakpoint.c (bppy_init): Ditto.
4599 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4601 * MAINTAINERS (Write After Approval): Add myself to the list.
4603 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4605 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4607 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4609 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4610 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4611 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4613 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4614 (struct i386_debug_reg_state): New.
4615 (i386_init_dregs): New.
4617 (i386_cleanup_dregs): Use i386_init_dregs.
4618 (i386_show_dr): Add state parameter and adjust.
4619 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4621 (i386_remove_aligned_watchpoint): Likewise.
4622 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4623 (i386_update_inferior_debug_regs): New.
4624 (i386_insert_watchpoint): Work on a local mirror of the debug
4625 registers, and only update the inferior on success.
4626 (i386_remove_watchpoint): Ditto.
4627 (i386_region_ok_for_watchpoint): Adjust.
4628 (i386_stopped_data_address): Adjust.
4629 (i386_insert_hw_breakpoint): Adjust.
4630 (i386_remove_hw_breakpoint): Adjust.
4632 2011-07-22 Tom Tromey <tromey@redhat.com>
4634 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4635 from amd64_pseudo_register_read. Change arguments. Call
4636 mark_value_bytes_unavailable when needed.
4637 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4638 set_gdbarch_pseudo_register_read.
4639 * sentinel-frame.c (sentinel_frame_prev_register): Use
4640 regcache_cooked_read_value.
4641 * regcache.h (regcache_cooked_read_value): Declare.
4642 * regcache.c (regcache_cooked_read_value): New function.
4643 (regcache_cooked_read): Call
4644 gdbarch_pseudo_register_read_value if available.
4645 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4646 (i386_pseudo_register_read): Remove.
4647 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4648 i386_pseudo_register_read. Change arguments. Call
4649 mark_value_bytes_unavailable when needed.
4650 (i386_pseudo_register_read_value): New function.
4651 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4652 not set_gdbarch_pseudo_register_read.
4653 * gdbarch.sh (pseudo_register_read_value): New method.
4654 * gdbarch.c, gdbarch.h: Rebuild.
4655 * findvar.c (value_from_register): Call get_frame_register_value.
4657 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4659 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4661 (display_gdb_prompt): Likewise.
4662 (change_annotation_level): Likewise.
4663 (push_prompt): Likewise.
4664 (pop_prompt): Likewise.
4665 (handle_stop_sig): Use get_prompt with a level.
4666 * top.c (command_loop): Use get_prompt with a level.
4667 (set_async_annotation_level): Use set_prompt with a level.
4668 (get_prefix): New function.
4669 (set_prefix): Ditto.
4670 (set_suffix): Ditto.
4671 (get_suffix): Ditto.
4672 (get_prompt): Accept a level argument.
4673 (set_prompt): Accept a level argument. Free old prompts. Set
4674 new_async_prompt if level is 0.
4675 (init_main): Use set_prompt with a level. Do not set
4677 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4678 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4679 Modify set_prompt, get_prompt to account for levels.
4680 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4682 * python/python.c (before_prompt_hook): Use set_prompt.
4684 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4686 * defs.h: Add guard against inclusion in gdbserver.
4687 (struct ptid, ptid_t): Move to common/ptid.h.
4688 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4689 xsnprintf, internal_error): Move to common/common-utils.h.
4691 * gdb_assert.h: Move into common/ sub-directory.
4692 * gdb_locale.h: Ditto.
4693 * gdb_dirent.h: Ditto.
4694 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4695 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4696 Move into common/ptid.h.
4697 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4698 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4699 Change nomem to malloc_failure.
4700 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4701 * utils.c (nomem): Rename to malloc_failure.
4702 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4703 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4704 (gdb_buildargv): Change nomem to malloc_failure.
4705 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4706 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4707 ptid_is_pid): Move into common/ptid.c.
4708 (initialize_infrun): Delete initialization of null_ptid and
4710 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4711 linux_common_xfer_osdata.
4712 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4713 common/ptid.c and common/buffer.c.
4714 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4715 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4716 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4717 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4719 * common/gdb_assert.h: New.
4720 * common/gdb_dirent.h: New.
4721 * common/gdb_locale.h: New.
4722 * common/buffer.c: New.
4723 * common/buffer.h: New.
4724 * common/ptid.c: New.
4725 * common/ptid.h: New.
4726 * common/xml-utils.c: New.
4727 * common/xml-utils.h: New.
4728 * common/common-utils.c: New.
4729 * common/common-utils.h: New.
4730 * common/linux-osdata.c: New.
4731 * common/linux-osdata.h: New.
4732 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4733 * config/arm/linux.mh (NATDEPFILES): Ditto.
4734 * config/i386/linux.mh (NATDEPFILES): Ditto.
4735 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4736 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4737 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4738 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4739 * config/mips/linux.mh (NATDEPFILES): Ditto.
4740 * config/pa/linux.mh (NATDEPFILES): Ditto.
4741 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4742 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4743 * config/s390/s390.mh (NATDEPFILES): Ditto.
4744 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4745 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4746 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4748 2011-07-21 Matt Rice <ratmice@gmail.com>
4750 * NEWS: Add info macros and info definitions commands.
4752 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4754 * NEWS: Document Python prompt substitution hook.
4756 2011-07-18 Matt Rice <ratmice@gmail.com>
4759 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4760 * macrotab.c (foreach_macro): Ditto.
4761 (foreach_macro_in_scope): Ditto.
4762 * macrocmd.c (print_macro_callback): New function.
4763 (info_macro_command): Move some code to print_macro_definition.
4764 (print_macro_definition): New function.
4765 (print_one_macro): Add new arguments to callback.
4766 (info_definitions_command): New function.
4767 (info_macros_command): Ditto.
4768 (_initialize_macrocmd): Add info macros and info definitions commands.
4769 * symtab.c (add_macro_name): Add new arguments to callback.
4771 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4772 Tom Tromey <tromey@redhat.com>
4774 * top.c (set_prompt): Rewrite to free previous prompt, free
4775 asynch_new_prompt and set both on new prompts.
4776 * event-top.c (display_gdb_prompt): Add prompt substitution
4778 * python/python.c (before_prompt_hook): New function.
4780 2011-07-20 Matt Rice <ratmice@gmail.com>
4782 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4783 arguments to store_unsigned_integer.
4785 2011-07-20 Tom Tromey <tromey@redhat.com>
4787 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4788 in some declaration-only cases.
4790 2011-07-18 Tom Tromey <tromey@redhat.com>
4793 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4794 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4795 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4796 <debug_type_section>: New field.
4797 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4798 (load_cu): Use appropriate section.
4799 (create_signatured_type_table_from_index): Add 'section'
4801 (dwarf2_read_index): Only allow a single .debug_types section.
4802 (dw2_get_file_names): Use appropriate section.
4803 (read_type_comp_unit_head): Add 'section' argument.
4804 (create_debug_types_hash_table): Loop over all .debug_types
4806 (init_cu_die_reader): Use appropriate section.
4807 (process_psymtab_comp_unit, load_partial_comp_unit)
4808 (load_full_comp_unit, read_die_and_children, find_partial_die)
4809 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4810 (lookup_signatured_type_at_offset): Add 'section' argument.
4811 (read_signatured_type_at_offset): Add 'sect' argument.
4812 (read_signatured_type): Use appropriate section.
4813 (set_die_type, get_die_type_at_offset): Update.
4814 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4816 (write_psymtabs_to_index): Don't allow index with more than one
4817 .debug_types section.
4819 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4821 Fix crash if referenced CU is aged out.
4822 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4823 xfree of block.data.
4824 (indirect_pieced_value): New variable back_to, use to for xfree of
4826 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4828 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4829 (load_cu): New function from ...
4830 (dw2_do_instantiate_symtab): ... the code here ...
4831 (process_full_comp_unit): ... and here.
4832 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4835 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4840 2011-07-19 Gary Benson <gbenson@redhat.com>
4842 * infrun.c (struct execution_control_state): New member
4843 stop_func_filled_in.
4844 (clear_stop_func, fill_in_stop_func): New functions.
4845 (handle_inferior_event): Call clear_stop_func rather than
4846 manipulating the execution control state directly.
4847 Call fill_in_stop_func lazily as required rather than
4848 directly calling find_pc_partial_function in all cases.
4850 2011-07-18 Tom Tromey <tromey@redhat.com>
4852 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4853 checking for variable-sized array.
4855 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4857 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4858 of supported languages.
4859 * varobj.c: Add top definitions and basic implementation of the
4860 following callbacks: ada_number_of_children, ada_name_of_variable,
4861 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4862 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4863 (languages): Register Ada-specific callbacks.
4864 (variable_language): Add the Ada case in the language setter switch.
4866 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4868 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4870 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4874 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4875 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4876 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4877 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4878 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4879 (struct dwarf_expr_context_funcs): New, move here methods from ...
4880 (struct dwarf_expr_context): ... here. New fields funcs.
4881 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4882 (dwarf_expr_ctx_funcs): New.
4883 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4884 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4885 (needs_frame_ctx_funcs): New.
4886 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4888 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4890 * MAINTAINERS (Write After Approval): Add myself to the list.
4892 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4894 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4895 that CIE pointer of an FDE really points to a CIE .
4897 2011-07-15 Hui Zhu <teawater@gmail.com>
4899 * remote.c (remote_get_trace_status): Add comments.
4901 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4903 Code cleanup - constify struct lval_funcs.
4904 * dwarf2loc.c (pieced_value_funcs): Make it const.
4905 * infrun.c (siginfo_value_funcs): Likewise.
4906 * opencl-lang.c (opencl_value_funcs): Likewise.
4907 * valops.c (value_assign, value_ind): Make the funcs variable const.
4908 * value.c (struct value): Make location.computed.funcs target const.
4909 Rearrange the comments.
4910 (allocate_computed_value): Make the funcs parameter target const.
4911 (value_computed_funcs): Return the funcs target const.
4912 (value_free, value_copy, set_value_component_location): Make the funcs
4914 * value.h (allocate_computed_value): Make the funcs parameter target
4916 (value_computed_funcs): Return the funcs target const.
4917 * windows-tdep.c (tlb_value_funcs): Make it const.
4919 2011-07-14 Hui Zhu <teawater@gmail.com>
4921 * remote.c (remote_get_trace_status): Initialize p.
4923 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 * remote.c (remote_get_trace_status): New variable ex. Put
4927 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4929 2011-07-13 Tom Tromey <tromey@redhat.com>
4931 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4932 value_from_contents for final conversion.
4934 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4938 Indent prototypes so they do not get into tags.
4940 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4942 Code cleanup making also optimized out values lazy.
4943 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4944 allocate_optimized_out_value. Twice.
4945 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4946 * findvar.c (read_var_value): Likewise.
4947 * value.c (allocate_optimized_out_value): New function.
4948 * value.h (allocate_optimized_out_value): New declaration.
4950 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 Fix occasional crash of CTRL-C during DWARF read in.
4953 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4955 2011-07-11 Tom Tromey <tromey@redhat.com>
4957 * regcache.c (struct regcache_descr): Fix typo.
4958 * i387-tdep.c (i387_supply_xsave): Fix typo.
4960 2011-07-11 Tom Tromey <tromey@redhat.com>
4962 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4963 (read_file_scope, read_type_unit_scope): Use it.
4965 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4967 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4970 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4973 * python/python.c: Set gdbpy_should_print_stack default to off.
4974 (set_python): Deprecate maint set python print-stack to
4976 (_initialize_python): Deprecate maint set/show python print-stack.
4977 Add new prefix command, python. Add new setting, print-backtrace.
4978 * NEWS: Document set python print-stack. Document default change.
4980 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4982 * python/py-inferior.c (infpy_dealloc): New function.
4983 (inferior_to_inferior_object): Return a new object, or a
4984 new reference to the existing object.
4985 (find_thread_object): Cleanup references to inferior.
4986 (delete_thread_object): Ditto.
4987 * python/py-infthread.c (create_thread_object): Do not increment
4988 inferior reference count.
4990 2011-07-08 Tom Tromey <tromey@redhat.com>
4992 * dwarf2loc.c (locexpr_regname): New function.
4993 (locexpr_describe_location_piece): Use it.
4994 (disassemble_dwarf_expression): Add per_cu argument. Use
4996 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4997 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4999 (locexpr_describe_location_1): Add per_cu argument.
5000 (locexpr_describe_location): Update.
5001 (loclist_describe_location): Update.
5003 2011-07-08 Tom Tromey <tromey@redhat.com>
5005 * dwarf2expr.c (execute_stack_op): Add QUIT.
5007 2011-07-07 Hui Zhu <teawater@gmail.com>
5010 2011-07-06 Hui Zhu <teawater@gmail.com>
5011 * remote.c (remote_start_remote): Add TRY_CATCH for
5012 remote_get_trace_status.
5013 * tracepoint.c (disconnect_tracing): Ditto.
5015 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5017 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5018 variables as signed, not unsigned.
5020 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5022 * jit.c (jit_inferior_init): Reformat forward declaration.
5024 2011-07-06 Matt Rice <ratmice@gmail.com>
5026 * MAINTAINERS (Write After Approval): Add myself to the list.
5028 2011-07-06 Hui Zhu <teawater@gmail.com>
5030 * remote.c (remote_start_remote): Add TRY_CATCH for
5031 remote_get_trace_status.
5032 * tracepoint.c (disconnect_tracing): Ditto.
5034 2011-07-05 Tom Tromey <tromey@redhat.com>
5036 * symtab.c (operator_chars): Now static.
5037 * linespec.c (operator_chars): Don't declare.
5039 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5041 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5043 2011-07-05 Tom Tromey <tromey@redhat.com>
5045 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5046 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5047 (TYPE_CPLUS_REALLY_JAVA): New macro.
5048 * dwarf2read.c (process_structure_scope): Set
5049 TYPE_CPLUS_REALLY_JAVA.
5051 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5053 * ada-lang.c: Fix typos.
5054 * amd64-tdep.c: Likewise.
5055 * breakpoint.c: Likewise.
5056 * cli/cli-decode.c: Likewise.
5057 * findcmd.c: Likewise.
5058 * inline-frame.c: Likewise.
5059 * mi/mi-main.c: Likewise.
5060 * minsyms.c: Likewise.
5061 * monitor.c: Likewise.
5062 * monitor.h: Likewise.
5063 * prologue-value.c: Likewise.
5064 * reverse.c: Likewise.
5065 * s390-tdep.c: Likewise.
5067 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5069 * jit.c (jit_inferior_init): Forward declare.
5070 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5072 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5074 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5076 2011-07-04 Tristan Gingold <gingold@adacore.com>
5078 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5079 (tcb_fieldno): Add activation_link field.
5080 (get_known_tasks_addr): Moved and rewritten.
5081 (get_tcb_types_info): Set activation_link field.
5082 (read_known_tasks_array): Add parameter. Rewritten.
5083 (read_known_tasks_list): New function.
5084 (read_known_tasks): New function.
5085 (ada_build_task_list): Call read_known_tasks instead of
5086 read_known_tasks_array.
5087 * ravenscar-thread.c: Add first_task_name constant.
5088 (has_ravenscar_runtime): Check for task list too.
5090 2011-07-04 Tristan Gingold <gingold@adacore.com>
5092 * ada-tasks.c: Renames fieldno to actb_fieldno.
5093 (ada_get_task_number): Indentation.
5094 (get_tcb_types_info): Remove all parameters. Write directly
5096 (ptid_from_atcb_common): Adjust.
5097 (read_atcb): Adjust.
5099 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5101 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5103 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5105 * ui-out.c (ui_out_field_core_addr): Mention that the function
5106 description is in the header file.
5107 * ui-out.h (ui_out_field_core_addr): Document function.
5109 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5111 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5112 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5114 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5116 * symtab.c (expand_line_sal): Remove empty line.
5118 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5120 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5121 same way as ELFOSABI_NONE.
5122 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5124 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5126 * breakpoint.c: Fix typos in comments.
5127 * linespec.c: Likewise.
5128 * symtab.c: Likewise.
5130 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5132 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5133 section in separate object files.
5135 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5137 Fix false GCC warning.
5138 * linespec.c (decode_line_1): Initialize values.
5140 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5142 * linespec.c (find_method): Accept the function type automatically only
5143 if it was specified with parameter types.
5145 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5147 Stop on first linespec terminator instead of eating what we can.
5148 * linespec.c (is_linespec_boundary): New function.
5149 (name_end): Remove function.
5150 (keep_name_info): New parameter on_boundary, replace the body.
5151 (decode_line_1): Provide the parameter to keep_name_info.
5152 (decode_compound): Likewise. Drop the trailing java return type
5155 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 Fall back linespec to minimal symbols.
5158 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5159 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5160 (find_method, symbol_found): Change error to cplusplus_error.
5162 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5164 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5166 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5167 Tom Tromey <tromey@redhat.com>
5169 * dwarf2read.c (check_physname): New variable.
5170 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5171 (show_check_physname): New function.
5172 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5174 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5176 * machoread.c (macho_symfile_read): Delete OBE comment.
5178 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5180 * machoread.c (struct macho_oso_data): Delete.
5181 (current_oso): Delete.
5182 (macho_relocate_common_syms): New function, mostly extracted
5184 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5185 Remove code that sets and unset current_oso.
5186 (macho_symfile_relocate): Delete handling of common symbols,
5187 now moved to macho_relocate_common_syms.
5189 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5191 * darwin-nat.c (darwin_ptrace): Add documentation.
5192 Set errno to zero before calling ptrace. If ptrace returns
5193 -1 and errno is zero, then change then return zero.
5194 (darwin_kill_inferior): Issue a warning instead of triggering
5195 a failed assertion when the PT_KILL ptrace operations returned
5198 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5200 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5201 only when inf->private->no_ptrace.
5203 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5205 * ada-lang.c (print_it_exception): Print temporary catchpoints
5206 as "Temporary catchpoint".
5207 (print_mention_exception): Likewise.
5209 2011-07-01 Tom Tromey <tromey@redhat.com>
5211 * jv-lang.c (java_language_defn): Use java_printchar,
5213 (java_get_encoding): New function.
5214 (java_emit_char): Use generic_emit_char.
5215 (java_printchar): New function.
5216 (java_printstr): Likewise.
5218 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5220 * ada-typeprint.c (print_record_type): If unable to decode
5221 the name of the parent type, use the encoded name.
5223 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5225 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5226 pointer to constrained packed array type output.
5227 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5228 packed array output.
5230 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5232 * ada-typeprint.c (print_array_type): removed if condition on show
5233 being negative for bounds printing.
5235 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5237 * ada-lang.c (ada_identical_enum_types_p): New function.
5238 (symbols_are_identical_enums): New function.
5239 (remove_extra_symbols): Do nothing if NSYMS < 2.
5240 Use symbols_are_identical_enums.
5242 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5244 * ada-valprint.c (ada_value_print): Handle typedefs.
5246 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5248 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5250 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5252 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5253 (decode_constrained_packed_array): Likewise.
5254 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5256 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5258 * ada-exp.y (convert_char_literal): Handle typedef types.
5260 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5262 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5264 2011-06-30 Tom Tromey <tromey@redhat.com>
5266 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5267 * valops.c (find_overload_match): Call do_cleanups on early exit
5269 * solib.c (solib_find): Call do_cleanups on early exit path.
5271 2011-06-30 Tom Tromey <tromey@redhat.com>
5273 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5274 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5275 return paths. Defer final do_cleanups until last return.
5276 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5279 2011-06-30 Tom Tromey <tromey@redhat.com>
5281 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5283 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5285 * MAINTAINERS (Write After Approval): Add myself to the list.
5287 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5289 Disable epilogue unwinders on recent GCCs.
5290 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5291 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5292 * dwarf2read.c (process_full_comp_unit): Initialize
5293 EPILOGUE_UNWIND_VALID.
5294 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5295 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5296 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5298 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5300 Code cleanup - reformatting.
5301 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5302 (producer_is_gcc_ge_4): ... here, change the return value.
5303 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5306 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5308 Fix non-only rename list for Fortran modules import.
5309 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5310 cp_add_using_directive caller.
5311 (cp_add_using_directive): New parameter excludes, describe it. New
5312 variables ix and param. Compare if also excludes match. Allocate NEW
5313 with variable size, initialize EXCLUDES there.
5314 (cp_lookup_symbol_imports): New variable excludep, test
5315 current->EXCLUDES with it.
5316 * cp-support.h: Include vec.h.
5317 (struct using_direct): New field excludes, describe it.
5318 (DEF_VEC_P (const_char_ptr)): New.
5319 (cp_add_using_directive): New parameter excludes.
5320 * defs.h (const_char_ptr): New typedef.
5321 * dwarf2read.c (read_import_statement): New variables child_die,
5322 excludes and cleanups, read in excludes.
5323 (read_namespace): Adjust the cp_add_using_directive caller.
5325 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5329 negative comparisons.
5331 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5333 * mi/mi-main.c (mi_cmd_list_features): Emit
5334 breakpoint-notifications.
5336 2011-06-29 Tom Tromey <tromey@redhat.com>
5339 * valprint.h (generic_emit_char, generic_printstr): Declare.
5340 * valprint.c (wchar_printable, append_string_as_wide)
5341 (print_wchar): Move from c-lang.c.
5342 (generic_emit_char): New function; mostly taken from c_emit_char.
5343 (generic_printstr): New function; mostly taken from c_printstr.
5344 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5345 represented as arrays.
5346 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5348 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5349 identically to TYPE_CODE_INT.
5350 * f-lang.c (f_get_encoding): New function.
5351 (f_emit_char): Use generic_emit_char.
5352 (f_printchar): Replace comment.
5353 (f_printstr): Use generic_printstr.
5354 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5355 "character" types specially.
5356 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5358 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5360 (c_emit_char): Call generic_emit_char.
5361 (c_printstr): Call generic_printstr.
5363 2011-06-29 Gary Benson <gbenson@redhat.com>
5365 * breakpoint.c (bpstat_what): Removed duplicated case.
5367 2011-06-28 Tom Tromey <tromey@redhat.com>
5369 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5371 2011-06-27 Tom Tromey <tromey@redhat.com>
5373 * valops.c (find_overload_match): Call do_cleanups before early
5375 * top.c (execute_command): Call do_cleanups before early return.
5376 (command_loop): Likewise.
5377 * stack.c (backtrace_command): Make a null cleanup early. Don't
5378 conditionally call do_cleanups.
5379 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5381 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5382 so cleanups are always run.
5383 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5384 * findcmd.c (parse_find_args): Call do_cleanups on early return
5386 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5387 Don't conditionally call do_cleanups.
5388 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5391 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5393 * MAINTAINERS (Write After Approval): Use default email address.
5395 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5397 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5399 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5401 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5402 saved_regs_mask and copied_regs_mask fields.
5403 (sparc_record_save_insn): New prototype.
5404 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5405 (sparc_record_save_insn): New function.
5406 (sparc_analyze_prologue): Add head comment. Recognize store insns
5407 of call-saved registers. Use OFFSET consistently. Recognize flat
5408 frames and cache their settings.
5409 (sparc32_skip_prologue): Handle flat frames.
5410 (sparc_frame_cache): Add frame_offset to the base address.
5411 (sparc32_frame_cache): Adjust to new frame description.
5412 (sparc32_frame_prev_register): Likewise.
5413 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5414 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5415 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5416 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5417 frame by calling sparc_record_save_insn.
5418 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5419 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5420 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5422 2011-06-27 Tristan Gingold <gingold@adacore.com>
5424 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5425 field by map_addr and map_len.
5426 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5427 (munmap_section_buffer): Likewise.
5429 2011-06-24 Tom Tromey <tromey@redhat.com>
5431 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5432 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5433 * python/python.c (gdbpy_parameter): Make 'arg' const.
5434 (execute_gdb_command): Likewise.
5435 (gdbpy_decode_line): Likewise. Copy it.
5436 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5437 (gdbpy_write): Make 'arg' const.
5438 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5440 (gdbpy_lookup_type): Likewise.
5441 * python/py-prettyprint.c (print_children): Make 'name' const.
5442 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5443 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5445 * python/py-function.c (fnpy_init): Make 'name' const.
5446 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5447 (gdbpy_string_to_argv): Make 'input' const.
5448 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5450 * gdbtypes.h (lookup_typename): Update.
5451 * gdbtypes.c (lookup_typename): Make 'name' const.
5452 (lookup_struct): Likewise.
5453 (lookup_union): Likewise.
5454 (lookup_enum): Likewise.
5456 2011-06-24 Tom Tromey <tromey@redhat.com>
5458 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5459 gdb_thread_db.h. Move all common/ entries to be together.
5460 (TAGS): Don't depend on DEPFILES.
5462 2011-06-23 Yao Qi <yao@codesourcery.com>
5464 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5465 * remote.c (remote_start_remote): ... here.
5466 * monitor.c (monitor_open): ... here.
5468 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5470 * gdbtypes.c (append_composite_type_field_aligned): Fix
5471 calculation of bit position based on alignment.
5473 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5475 * breakpoint.c (bpstat_stop_status): Call the check_status
5476 breakpoint_ops method.
5477 (print_one_breakpoint_location): Also print the condition for Ada
5478 exception catchpoints.
5479 (allocate_bp_location): New, factored out from
5480 allocate_bp_location.
5481 (allocate_bp_location): Adjust. Call the owner breakpoint's
5482 allocate_location method, if there is one.
5483 (free_bp_location): Call the locations's dtor method, if there is
5485 (init_raw_breakpoint_without_location): New breakpoint_ops
5487 (set_raw_breakpoint_without_location): Adjust.
5488 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5489 (set_raw_breakpoint): Adjust.
5490 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5491 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5492 re_set and check_status methods.
5493 (init_catchpoint): Don't memset, initialize thread, addr_string
5494 and enable_state. Pass the ops down to init_raw_breakpoint.
5495 (install_catchpoint): Rename to ...
5496 (install_breakpoint): ... this, and make extern.
5497 (create_fork_vfork_event_catchpoint): Adjust.
5498 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5499 re_set and check_status methods.
5500 (create_syscall_event_catchpoint): Adjust.
5501 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5502 (masked_watchpoint_breakpoint_ops): Install NULL
5503 allocate_location, re_set and check_status methods.
5504 (catch_exec_command_1): Adjust.
5505 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5506 re_set and check_status methods.
5507 (create_ada_exception_breakpoint): Rename to ...
5508 (init_ada_exception_breakpoint): ... this. Add a struct
5509 breakpoint parameter, and delete the exp_string, cond_string and
5510 cond parameters. Use init_raw_breakpoint, and don't install or
5511 mention the breakpoint yet. Don't clear breakpoint fields that
5512 init_raw_breakpoint already clears.
5513 (re_set_breakpoint): Delete, split into ...
5514 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5516 (breakpoint_re_set_one): Call the breakpoint's
5517 breakpoint_ops->re_set implementation, if there's one. Adjust.
5518 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5519 (struct bp_location_ops): New type.
5520 (struct bp_location): New field `ops'.
5521 (struct breakpoint_ops): New `allocate_location', `re_set' and
5522 `check_status' fields. Make `breakpoint_hit''s description match
5524 (init_bp_location): Declare.
5525 (breakpoint_re_set_default): Declare.
5526 (create_ada_exception_breakpoint): Rename to ...
5527 (init_ada_exception_breakpoint): ... this. Add a struct
5528 breakpoint parameter, and delete the exp_string, cond_string and
5530 (install_breakpoint): Declare.
5531 * ada-lang.c: Include exceptions.h.
5532 <Ada exceptions description>: Update.
5533 (struct ada_catchpoint_location): New type.
5534 (ada_catchpoint_location_dtor): New function.
5535 (ada_catchpoint_location_ops): New global.
5536 (ada_catchpoint): New type.
5537 (create_excep_cond_exprs): New function.
5538 (dtor_exception, allocate_location_exception, re_set_exception)
5539 (should_stop_exception, check_status_exception): New functions.
5540 (print_one_exception, print_mention_exception)
5541 (print_recreate_exception): Adjust.
5542 (dtor_catch_exception, allocate_location_catch_exception)
5543 (re_set_catch_exception, check_status_catch_exception): New
5545 (catch_exception_breakpoint_ops): Install them.
5546 (dtor_catch_exception_unhandled)
5547 (allocate_location_catch_exception_unhandled)
5548 (re_set_catch_exception_unhandled)
5549 (check_status_catch_exception_unhandled): New functions.
5550 (catch_exception_unhandled_breakpoint_ops): Install them.
5551 (dtor_catch_assert, allocate_location_catch_assert)
5552 (re_set_catch_assert, check_status_catch_assert): New functions.
5553 (catch_assert_breakpoint_ops): Install them.
5554 (ada_exception_catchpoint_p): Delete.
5555 (catch_ada_exception_command_split)
5556 (ada_exception_catchpoint_cond_string): Rename exp_string
5557 parameter to excep_string. Adjust.
5558 (ada_parse_catchpoint_condition): Delete.
5559 (ada_exception_sal): Rename the exp_string parameter to
5560 excep_string. Delete the cond_string and cond parameters.
5562 (ada_decode_exception_location): Rename the exp_string parameter
5563 to excep_string. Delete the cond_string and cond parameters.
5565 (create_ada_exception_catchpoint): New function.
5566 (catch_ada_exception_command, ada_decode_assert_location)
5567 (catch_assert_command): Adjust.
5568 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5570 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5572 * ada-lang.c: Include arch-utils.h.
5573 (ada_decode_exception_location): Make static.
5574 (catch_ada_exception_command): Moved here from breakpoint.c.
5575 (ada_decode_assert_location): Make static.
5576 (catch_assert_command): Moved here from breakpoint.c.
5577 (_initialize_ada_lang): Install the exception and assert
5578 catchpoint commands here.
5579 * ada-lang.h (ada_decode_exception_location)
5580 (ada_decode_assert_location): Delete declarations.
5581 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5583 (create_ada_exception_breakpoint): Make extern.
5584 (catch_ada_exception_command, catch_assert_command): Moved to
5586 (add_catch_command): Make extern.
5587 (_initilize_breakpoint): Don't install the exception and assert
5588 catchpoint commands here.
5589 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5591 (add_catch_command, create_ada_exception_breakpoint): Declare.
5593 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5595 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5596 the breakpoint to the breakpoint chain here.
5597 (set_raw_breakpoint_without_location): Add the breakpoint to the
5598 breakpoint chain here.
5599 (init_raw_breakpoint): Adjust comments.
5600 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5602 (init_catchpoint): Don't set the catchpoint's breakpoint number
5604 (install_catchpoint): New function.
5605 (create_fork_vfork_event_catchpoint)
5606 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5607 use install_catchpoint.
5609 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5611 * breakpoint.c (create_catchpoint_without_mention)
5612 (create_catchpoint): Delete.
5614 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5616 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5617 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5618 reference to exec_pathname.
5619 (struct exec_catchpoint): New type.
5620 (dtor_catch_exec): New function.
5621 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5622 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5623 (catch_exec_command_1): Adjust to use init_catchpoint.
5624 (delete_breakpoint): Remove reference to exec_pathname.
5626 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5628 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5629 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5630 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5631 reference to syscalls_to_be_caught.
5632 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5634 (struct syscall_catchpoint): New type.
5635 (dtor_catch_syscall): New function.
5636 (insert_catch_syscall, remove_catch_syscall)
5637 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5638 (print_recreate_catch_syscall): Adjust.
5639 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5640 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5641 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5642 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5643 (masked_watchpoint_breakpoint_ops)
5644 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5645 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5646 there is one. Remove references to syscalls_to_be_caught.
5647 (catching_syscall_number): Adjust.
5648 * ada-lang.c (catch_exception_breakpoint_ops)
5649 (catch_exception_unhandled_breakpoint_ops)
5650 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5652 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5654 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5656 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5657 reference to forked_inferior_pid.
5658 (struct fork_catchpoint): New type.
5659 (breakpoint_hit_catch_fork, print_it_catch_fork)
5660 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5661 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5662 (create_fork_vfork_event_catchpoint): Adjust to use
5665 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5667 * breakpoint.c (add_to_breakpoint_chain)
5668 (init_raw_breakpoint_without_location): New functions, factored
5670 (set_raw_breakpoint_without_location): ... this one.
5671 (init_raw_breakpoint): New function, factored out from
5672 set_raw_breakpoint and adjusted to use
5673 init_raw_breakpoint_without_location.
5674 (set_raw_breakpoint): Adjust.
5675 (init_catchpoint): New function, factored out from
5676 create_catchpoint_without_mention and adjusted to use
5677 init_raw_breakpoint.
5678 (create_catchpoint_without_mention): Adjust.
5680 2011-06-22 Tom Tromey <tromey@redhat.com>
5682 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5683 argument of 0 specially.
5685 2011-06-22 Yao Qi <yao@codesourcery.com>
5687 * infrun.c (handle_inferior_event): Remove write-only local variable
5688 `sw_single_step_trap_p'.
5690 2011-06-20 Tom Tromey <tromey@redhat.com>
5692 * symtab.c (lookup_language_this): End loop if block is NULL.
5694 2011-06-17 Tom Tromey <tromey@redhat.com>
5696 * valops.c (value_of_this): Use lookup_language_this.
5697 * symtab.h (lookup_language_this): Declare.
5698 * symtab.c (lookup_language_this): New function.
5699 (lookup_symbol_aux): Use lookup_language_this.
5700 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5702 2011-06-17 Tom Tromey <tromey@redhat.com>
5704 * value.h (value_of_this): Update.
5705 (value_of_local): Remove.
5706 * valops.c (value_of_this): Rename from value_of_local. Change
5708 * p-exp.y (exp): Update.
5709 (variable): Likewise.
5710 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5712 2011-06-17 Tom Tromey <tromey@redhat.com>
5714 * valops.c (value_of_local): Complain if NAME is NULL.
5715 * std-operator.def (OP_OBJC_SELF): Remove.
5716 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5717 * objc-exp.y (name_not_typename): Use OP_THIS.
5718 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5720 <OP_OBJC_SELF>: Remove.
5721 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5723 2011-06-16 Tristan Gingold <gingold@adacore.com>
5725 * python/py-events.h (gdb_py_events): Make it extern.
5726 * python/py-evtregistry.c (gdb_py_events): Declare.
5728 2011-06-16 Hui Zhu <teawater@gmail.com>
5730 * remote.c (remote_trace_set_readonly_regions): Add check for
5731 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5734 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5736 * arm-linux-tdep.c: Include "auxv.h".
5738 (ARM_LINUX_SIZEOF_VFP): Define.
5739 (arm_linux_supply_vfp): New function.
5740 (arm_linux_collect_vfp): Likewise.
5741 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5742 (arm_linux_fpa_regset_sections): New variable.
5743 (arm_linux_vfp_regset_sections): Likewise.
5744 (arm_linux_core_read_description): New function.
5745 (arm_linux_init_abi): Install arm_linux_core_read_description and
5746 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5747 appropriate for the architecture.
5748 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5749 (tdesc_arm_with_m): Declare.
5750 (tdesc_arm_with_iwmmxt): Likewise.
5751 (tdesc_arm_with_vfpv2): Likewise.
5752 (tdesc_arm_with_vfpv3): Likewise.
5753 (tdesc_arm_with_neon): Likewise.
5754 * arm-linux-nat.c: Move features/*.c includes ...
5755 * arm-tdep.c: ... here.
5756 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5757 target description data structures ...
5758 * arm-tdep.c (_initialize_arm_tdep): ... here.
5759 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5760 HWCAP_VFPv3D16): Move definitions ...
5761 * arm-linux-tdep.h: ... here.
5763 2011-06-15 Hui Zhu <teawater@gmail.com>
5765 * remote.c (remote_trace_set_readonly_regions): Add a check for
5768 2011-06-14 Tom Tromey <tromey@redhat.com>
5770 * coffread.c (coffread_objfile): Rename from current_objfile.
5771 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5772 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5774 2011-06-14 Tom Tromey <tromey@redhat.com>
5776 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5777 (class_symtab): Remove.
5778 (jv_dynamics_progspace_key): New global.
5779 (jv_per_objfile_free): Reset program space data. Update assert.
5780 Don't clear globals.
5781 (get_dynamics_objfile): Use and set program space data.
5782 (get_java_class_symtab): Use get_dynamics_objfile.
5783 (add_class_symbol): Likewise.
5784 (java_link_class_type): Likewise.
5785 (java_object_type, jv_clear_object_type, set_java_object_type):
5787 (get_java_object_type): Update. Don't cache result.
5788 (is_object_type): Don't call set_java_object_type.
5789 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5790 initialize jv_dynamics_progspace_key.
5792 2011-06-14 Tom Tromey <tromey@redhat.com>
5794 * symtab.h (current_objfile): Don't declare.
5795 * objfiles.h (current_objfile): Don't declare.
5796 * objfiles.c (current_objfile): Remove.
5797 * mdebugread.c (current_objfile): New file-scope global.
5798 * dbxread.c (current_objfile): New file-scope global.
5799 * coffread.c (current_objfile): New file-scope global.
5801 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5803 * top.h (line): Rename to ...
5804 (saved_command_line): ... this.
5805 (linesize): Rename to ...
5806 (saved_command_line_size): ... this.
5807 * top.c (line): Rename to ...
5808 (saved_command_line): ... this.
5809 (linesize): Rename to ...
5810 (saved_command_line_size): ... this.
5811 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5812 * event-top.c (command_line_handler): Adjust.
5813 * main.c (captured_main): Adjust.
5815 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5817 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5818 get_frame_func instead of get_frame_pc to determine the code
5819 address used to construct the frame ID.
5820 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5821 (i386_epilogue_frame_this_id): Likewise.
5822 (i386_epilogue_frame_prev_register): New function.
5823 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5824 (i386_stack_tramp_frame_sniffer): Fix coding style.
5825 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5826 (i386_gdbarch_init): Fix comments.
5828 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5830 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5831 instruction when walking back through the instruction stream.
5833 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5836 fullname parameters order.
5838 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5843 * psymtab.c (map_symbol_filenames_psymtab)
5844 (map_partial_symbol_filenames): Likewise.
5845 * psymtab.h: Include symfile.h.
5846 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5847 * symfile.h (symbol_filename_ftype): New.
5848 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5849 map_symbol_filenames, clarify more the naming in comment.
5851 2011-06-07 Doug Evans <dje@google.com>
5853 * cc-with-index.sh: Fix typos in comment.
5854 Look for ../../gdb, for fullname.exp.
5856 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5857 Pedro Alves <pedro@codesourcery.com>
5859 * cli/cli-cmds.c (shell_escape): Use waitpid.
5860 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5862 2011-06-07 Tristan Gingold <gingold@adacore.com>
5864 * xcoffread.c (dwarf2_xcoff_names): New variable.
5865 (aix_process_linenos): Add a guard.
5866 (xcoff_symfile_finish): Free dwarf2.
5867 (xcoff_initial_scan): Add dwarf2 support.
5869 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5871 * infcall.c (run_inferior_call): Don't mask async. Instead force
5872 a synchronous wait, if the target can async.
5874 * target.h (struct target_ops): Delete to_async_mask.
5875 (target_async_mask): Delete.
5876 * target.c (update_current_target): Delete references to to_async_mask.
5877 * linux-nat.c (linux_nat_async_mask_value): Delete.
5878 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5879 to linux_nat_async_mask_value.
5880 (linux_nat_async_mask): Delete.
5881 (linux_nat_async, linux_nat_close): Remove references to
5882 linux_nat_async_mask_value.
5883 * record.c (record_async_mask_value): Delete.
5884 (record_async): Remove references to record_async_mask_value.
5885 (record_async_mask): Delete.
5886 (record_can_async_p, record_is_async_p): Remove references to
5887 record_async_mask_value.
5888 (init_record_ops, init_record_core_ops): Remove references to
5890 * remote.c (remote_async_mask_value): Delete.
5891 (init_remote_ops): Remove reference to remote_async_mask.
5892 (remote_can_async_p, remote_is_async_p): Remove references to
5893 remote_async_mask_value.
5894 (remote_async): Remove references to remote_async_mask_value.
5895 (remote_async_mask): Delete.
5897 * infrun.c (fetch_inferior_event): Don't claim registers changed
5898 if the current thread is already not executing.
5900 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5902 From Stephen Kitt <steve@sk2.org>
5903 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5904 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5906 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5908 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5909 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5911 2011-06-03 Tom Tromey <tromey@redhat.com>
5913 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5915 * python/py-exitedevent.c (create_exited_event_object): Change
5916 type of 'exit_code'. Optionally add exit_code attribute.
5917 (emit_exited_event): Change type of 'exit_code'.
5918 * python/py-event.h (emit_exited_event): Update.
5919 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5920 * infrun.c (handle_inferior_event): Set exit code fields on
5922 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5924 * inferior.c (exit_inferior_1): Initialize new fields.
5926 2011-06-03 Tom Tromey <tromey@redhat.com>
5928 * dwarf2expr.c (get_signed_type): New function.
5929 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5931 2011-06-02 Keith Seitz <keiths@redhat.com>
5933 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5935 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5937 * top.h (simplified_command_loop): Delete declaration.
5939 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5941 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5942 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5944 2011-06-01 Yao Qi <yao@codesourcery.com>
5946 * objfiles.h (obj_section_addr): Update reference to objfile from
5948 (obj_section_endaddr): Likewise.
5950 2011-06-01 Daniel Jacobowitz <drow@false.org>
5952 * MAINTAINERS: Update my email address and affiliation. Also
5953 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5955 2010-05-31 Keith Seitz <keiths@redhat.com>
5958 * linespec.c (get_search_block): New function.
5959 (find_methods): Add FILE_SYMTATB parameter and use it and
5960 get_search_block to pass an appropriate block to
5961 lookup_symbol_in_namespace.
5962 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5963 Check if *ARGPTR starts with a filename first.
5964 If it does, call locate_first_half again to locate the next
5965 "first half" of the linespec.
5966 Pass FILE_SYMTATB to decode_objc and decode_compound.
5967 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5968 (locate_first_half): Stop on the first colon seen.
5969 (decode_compound): Add FILE_SYMTAB parameter.
5970 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5971 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5972 get_search_block with lookup_symbol.
5973 (find_method): Add FILE_SYMTAB parameter and pass it to
5975 (decode_objc): Use get_search_block.
5977 2010-05-31 Keith Seitz <keiths@redhat.com>
5980 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5981 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5982 and CP_ANONYMOUS_NAMESPACE_LEN.
5983 (cp_is_anonymous): Likewise.
5984 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5985 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5986 * dwarf2read.c (namespace_name): Likewise.
5987 (fixup_partial_die): Likewise.
5988 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5989 seen in the input, keep it.
5991 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5993 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5994 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5995 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5996 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5997 * remote.c (_initialize_remote): Register
5998 async_remote_interrupt_twice directly as
5999 sigint_remote_twice_token event.
6001 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6003 * target.h (enum inferior_event_type): Delete INF_ERROR.
6004 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6006 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6008 * interps.c (interp_set): Don't cancel continuations.
6010 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6012 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6014 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6016 * continuations.h (continuation_ftype): Add `err' parameter.
6017 Document parameters.
6018 (do_all_continuations, do_all_continuations_thread)
6019 (do_all_intermediate_continuations)
6020 (do_all_intermediate_continuations_thread)
6021 (do_all_inferior_continuations): Add `err' parameter.
6022 * continuations.c (do_my_continuations_1, do_my_continuations)
6023 (do_all_inferior_continuations, do_all_continuations_ptid)
6024 (do_all_continuations_thread_callback)
6025 (do_all_continuations_thread, do_all_continuations)
6026 (do_all_intermediate_continuations_thread_callback)
6027 (do_all_intermediate_continuations_thread)
6028 (do_all_intermediate_continuations): Add `err' parameter, and pass
6029 it down all the way to the continuations proper.
6030 * inf-loop.c (inferior_event_handler): If fetching an inferior
6031 event throws an error, don't pop the target, and still call the
6032 continuations, but with `err' set. Adjust all other continuation
6034 * breakpoint.c (until_break_command_continuation): Add `err'
6036 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6037 issue another step if `err' is set.
6038 (struct until_next_continuation_args): New.
6039 (until_next_continuation): Add `err' parameter. Adjust.
6040 (until_next_command): Adjust.
6041 (struct finish_command_continuation_args): Add `thread' field.
6042 (finish_command_continuation): Add `err' parameter. Handle it.
6043 (finish_forward): Adjust.
6044 (attach_command_continuation): Add `err' parameter. Handle it.
6045 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6046 cancel the continuations.
6047 * interps.c (interp_set): Adjust to cancel the continuations.
6048 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6049 continuations rather than discarding.
6050 (free_thread): Don't clear thread inferior resources here.
6051 (delete_thread_1): Do it here instead. And do it before removing
6052 the thread from the threads list. Tag the thread as exited before
6053 clearing thread inferior resources.
6055 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6057 * infcall.c (call_function_by_hand): Rephrase error message.
6059 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6061 * defs.h (struct thread_info, struct inferior): Delete forward
6063 * breakpoint.h (struct thread_info): New forward declaration.
6064 * observer.sh (struct inferior): New forward declaration.
6065 * python/python-internal.h (struct inferior): New forward
6068 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6070 * defs.h (struct continuation, continuation_ftype)
6071 (continuation_free_arg_ftype, add_continuation)
6072 (do_all_continuations, do_all_continuations_thread)
6073 (discard_all_continuations, discard_all_continuations_thread)
6074 (add_intermediate_continuation, do_all_intermediate_continuations)
6075 (do_all_intermediate_continuations_thread)
6076 (discard_all_intermediate_continuations)
6077 (discard_all_intermediate_continuations_thread)
6078 (add_inferior_continuation, do_all_inferior_continuations)
6079 (discard_all_inferior_continuations): Move to ...
6080 * continuations.h: ... this new file.
6081 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6082 infcmd.c, inferior.c, infrun.c, interps.c: Include
6085 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6086 Doug Evans <dje@google.com>
6088 Fix PR 10970, PR 12702.
6089 * linux-nat.c (linux_lwp_is_zombie): New function.
6090 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6091 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6093 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6095 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6097 (add_continuation, add_intermediate_continuation)
6098 (add_inferior_continuation): Use them.
6099 * continuations.c (struct continuation): Use them.
6100 (make_continuation_ftype): Delete.
6101 (make_continuation, add_inferior_continuation, add_continuation)
6102 (add_intermediate_continuation): Use continuation_ftype and
6103 continuation_free_arg_ftype. Rename parameters to shorter names.
6105 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6107 * continuations.c (make_continuation): Make it return void.
6108 (do_my_continuations): Rename to ...
6109 (do_my_continuations_1): ... this. Remove old_chain parameter and
6111 (do_my_continuations): New.
6112 (discard_my_continuations): Rename to ...
6113 (discard_my_continuations_1): ... this. Remove old_chain
6114 parameter and adjust.
6115 (discard_my_continuations): New.
6116 (add_inferior_continuation): Simplify.
6117 (do_all_inferior_continuations): Reimplement on top
6118 do_my_continuations.
6119 (discard_all_inferior_continuations): Simplify.
6120 (add_continuation): Simplify.
6121 (do_all_continuations_ptid): Simplify.
6122 (discard_all_continuations_thread_callback): Simplify.
6123 (add_intermediate_continuation): Simplify.
6124 (discard_all_intermediate_continuations_thread_callback):
6127 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6129 * utils.c (struct continuation, add_continuation)
6130 (add_inferior_continuation)
6131 (do_all_inferior_continuations, discard_all_inferior_continuations)
6132 (restore_thread_cleanup, do_all_continuations_ptid)
6133 (do_all_continuations_thread_callback)
6134 (do_all_continuations_thread, do_all_continuations)
6135 (discard_all_continuations_thread_callback)
6136 (discard_all_continuations_thread, discard_all_continuations)
6137 (add_intermediate_continuation)
6138 (do_all_intermediate_continuations_thread_callback)
6139 (do_all_intermediate_continuations_thread)
6140 (do_all_intermediate_continuations)
6141 (discard_all_intermediate_continuations_thread_callback)
6142 (discard_all_intermediate_continuations_thread)
6143 (discard_all_intermediate_continuations): Move to ...
6144 * continuations.c: ... this new file, and adjust to no longer
6145 implement continuations on top of cleanups.
6146 * Makefile.in (SFILES): Add continuations.c.
6147 (COMMON_OBS): Add continuations.o.
6149 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6151 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6152 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6153 Internal error on invalid values.
6154 * reverse.c: Don't handle EXEC_ERROR.
6155 * mi/mi-main.c: Don't handle EXEC_ERROR.
6157 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6159 * record.c: Include event-loop.h, inf-loop.h.
6160 (record_beneath_to_async): New global.
6161 (tmp_to_async): New global.
6162 (record_async_inferior_event_token): New global.
6163 (record_open_1): Don't error out if async is enabled.
6164 (record_open): Handle to_async. Create an async event source in
6166 (record_close): Delete the async event source.
6167 (record_resumed): New global.
6168 (record_execution_dir): New global.
6169 (record_resume, record_core_resume): Set them. Register the
6170 target on the event loop.
6171 (record_wait): Rename to ...
6172 (record_wait_1): ... this. Add more debug output. Handle
6173 TARGET_WNOHANG, and the target beneath returning
6174 TARGET_WAITKIND_IGNORE.
6175 (record_wait): Reimplement on top of record_wait_1.
6176 (record_async_mask_value): New global.
6177 (record_async, record_async_mask, record_can_async_p)
6178 (record_is_async_p, record_execution_direction): New functions.
6179 (init_record_ops, init_record_core_ops): Install new methods.
6180 * infrun.c (fetch_inferior_event): Temporarily switch the global
6181 execution direction to the direction the target was going.
6182 (execution_direction): Change type to int.
6183 * target.c (default_execution_direction): New function.
6184 (update_current_target): Inherit and de_fault
6185 to_execution_direction.
6186 * target.h (struct target_ops) <to_execution_direction>: New
6188 (target_execution_direction): New macro.
6189 * inferior.h (execution_direction): Change type to int.
6191 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6193 * infcall.c (call_function_by_hand): Don't allow calling functions
6194 in reverse execution mode.
6196 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6198 * infcmd.c (finish_command): Allow async finish in reverse.
6200 2011-05-26 Yao Qi <yao@codesourcery.com>
6202 * gdb_thread_db.h: Delete. Move to ...
6203 * common/gdb_thread_db.h: ... here.
6205 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6207 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6208 function's entry point instead of a manually managed momentary
6209 breakpoint, and only ever issue one proceed call.
6210 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6211 doing a reverse-finish, switch to stepi mode, to do another step.
6212 (insert_step_resume_breakpoint_at_sal): Make public.
6213 (normal_stop): No need to save function value return registers if
6215 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6217 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6219 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6220 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6221 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6223 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6224 step-resume breakpoints.
6225 (print_it_typical): Handle bp_hp_step_resume.
6226 (bpstat_what): Ditto.
6227 (bptype_string): Ditto.
6228 (print_one_breakpoint_location): Ditto.
6229 (allocate_bp_location): Ditto.
6231 (breakpoint_re_set_one): Ditto.
6232 * infrun.c (handle_inferior_event): Adjust. Split
6233 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6234 BPSTAT_WHAT_HP_STEP_RESUME.
6235 (insert_step_resume_breakpoint_at_sal): Rename to ...
6236 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6237 parameter. Handle it.
6238 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6239 insert_step_resume_breakpoint_at_sal_1.
6240 (insert_step_resume_breakpoint_at_frame): Rename to ...
6241 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6242 set a high-priority step-resume breakpoint.
6243 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6244 (insert_step_resume_breakpoint_at_caller): Ditto.
6246 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6248 * breakpoint.c (iterate_over_related_breakpoints): New.
6249 (do_map_delete_breakpoint): New.
6250 (delete_command): Pass do_map_delete_breakpoint to
6251 map_breakpoint_numbers.
6252 (do_disable_breakpoint): New.
6253 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6255 (do_enable_breakpoint): Rename to ...
6256 (enable_breakpoint_disp): ... this.
6257 (enable_breakpoint): Adjust.
6258 (do_enable_breakpoint): New.
6259 (enable_once_breakpoint): Delete.
6260 (do_map_enable_breakpoint): New.
6261 (do_map_enable_once_breakpoint): New.
6262 (enable_once_command, enable_delete_command)
6263 (delete_trace_command): Iterate over the breakpoint's related
6266 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6268 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6269 for ALPHA_ZERO_REGNUM.
6270 (alpha_supply_int_regs): Explicitly supply zero as the value for
6271 ALPHA_ZERO_REGNUM in the register cache.
6272 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6274 2011-05-26 Yao Qi <yao@codesourcery.com>
6276 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6278 2011-05-26 Tristan Gingold <gingold@adacore.com>
6280 * symfile.h (struct dwarf2_section_names): New type.
6281 (struct dwarf2_debug_sections): New type.
6282 (dwarf2_has_info): Add parameter.
6283 * dwarf2read.c (dwarf2_elf_names): New variable.
6284 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6285 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6286 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6287 (dwarf2_has_info): Add names parameter. Pass names
6288 to dwarf2_locate_sections.
6289 (section_is_p): Rewrite using the names parameter.
6290 (dwarf2_locate_sections): Use section names from the names parameter.
6291 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6292 * elfread.c (read_psyms): Ditto.
6293 * machoread.c (macho_symfile_read): Ditto.
6295 2011-05-25 Andreas Schwab <schwab@redhat.com>
6298 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6300 2011-05-24 Keith Seitz <keiths@redhat.com>
6303 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6304 (decode_compound): Unconditionally call keep_name_info.
6306 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6308 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6309 scope, clear its command list.
6310 (map_breakpoint_numbers): Don't walk the related breakpoints list
6313 2011-05-24 Tom Tromey <tromey@redhat.com>
6315 * MAINTAINERS: Move Jim Blandy to past maintainers.
6317 2011-05-24 Tristan Gingold <gingold@adacore.com>
6319 * symfile.h (enum dwarf2_section_enum): New type.
6320 (dwarf2_get_section_info): New prototype.
6321 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6322 section_name by sect. Use a switch to select the info.
6323 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6324 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6326 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6328 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6329 shared library event breakpoint if there's no execution.
6331 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6333 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6334 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6336 2011-05-23 Tom Tromey <tromey@redhat.com>
6338 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6341 2011-05-23 Doug Evans <dje@google.com>
6343 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6344 entry for RuntimeError to doc string.
6346 2011-05-23 Jerome Guitton <guitton@adacore.com>
6348 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6349 sequence for probing loops.
6351 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6353 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6356 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6358 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6359 zero as the value for %g0 in the register cache.
6360 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6361 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6363 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6365 * infrun.c (proceed): Set previous_inferior_ptid here.
6366 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6367 inferior_ptid, not null_ptid.
6368 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6369 (fetch_inferior_event): Nor here.
6371 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6373 * inf-loop.c (inferior_event_handler): Only output a message if
6376 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6378 * MAINTAINERS: Update my e-mail address.
6380 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6382 * infrun.c (proceed): Switch the inferior event loop to
6383 INF_EXEC_COMPLETE if the target refused to resume from a
6386 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6388 * infcmd.c: Include "inf-loop.h".
6389 (step_once): When stepping into an inline subroutine, pretend the
6390 target has run. If the target can async, switch the inferior
6391 event loop to INF_EXEC_COMPLETE.
6392 * inferior.h (user_visible_resume_ptid): Declare.
6393 * infrun.c (user_visible_resume_ptid): New function, factored out
6396 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6397 that the current thread is running. Merge async and sync
6400 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6402 * infcmd.c (step_1): Simplify synchronous case.
6404 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6406 * tracepoint.c: Include exceptions.h.
6407 (TFILE_PID): Move higher in file.
6408 (tfile_open): Delay pushing the tfile target until we're assured
6409 the tfile header is present in the file. Wrap reading the initial
6410 newline-terminated lines in TRY_CATCH. Pop the target if the
6411 initial setup failed. Add the tfile's thread immediately
6412 aftwards, before any non-essential setup. Don't skip
6413 post_create_inferior if there are no traceframes present in the
6415 (tfile_close): Remove redundant check for null before xfree call.
6416 (tfile_thread_alive): New function.
6417 (init_tfile_ops): Register it as to_thread_alive callback.
6419 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6421 * tracepoint.c (tfile_open): Delete #if 0'd code.
6423 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6425 Fix -readnow for -gdwarf-4 unused type units.
6426 * dwarf2read.c (struct signatured_type): Remove the field offset.
6427 (create_signatured_type_table_from_index): Remove its initialization.
6428 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6429 instead. Add a complaint call.
6430 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6431 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6432 (lookup_signatured_type_at_offset, read_signatured_type)
6433 (write_one_signatured_type): Update the field for per_cu.
6435 2011-05-19 Tom Tromey <tromey@redhat.com>
6437 * python/py-inferior.c (python_inferior_exit): Use
6439 (python_on_resume): Likewise.
6441 2011-05-19 Matt Rice <ratmice@gmail.com>
6443 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6445 2011-05-19 Hui Zhu <teawater@gmail.com>
6447 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6449 2011-05-19 Hui Zhu <teawater@gmail.com>
6451 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6453 2011-05-18 Tom Tromey <tromey@redhat.com>
6455 * dwarf2read.c (dwarf2_add_field): Constify.
6456 * value.c (value_static_field): Constify.
6457 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6459 * ax-gdb.c (gen_static_field): Constify
6461 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6463 * linux-nat.c (kill_callback): Use SIGKILL first.
6465 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6467 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6469 2011-05-18 Tom Tromey <tromey@redhat.com>
6471 * value.c (value_fn_field): Constify.
6472 * symtab.c (gdb_mangle_name): Constify.
6473 * stabsread.c (update_method_name_from_physname): Make 'physname'
6475 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6476 const. Use explicit fputc_filtered loop.
6477 (pascal_type_print_base): Constify.
6478 * p-lang.h (pascal_type_print_method_args): Update.
6479 * linespec.c (add_matching_methods): Constify.
6480 (add_constructors): Likewise.
6481 * jv-typeprint.c (java_type_print_base): Constify.
6482 * gdbtypes.h (struct cplus_struct_type)
6483 <fn_fieldlist.fn_field.physname>: Now const.
6484 * dwarf2read.c (compute_delayed_physnames): Constify.
6485 (dwarf2_add_member_fn): Likewise.
6486 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6488 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6490 * infrun.c (resume): Mention which is the current thread, and its
6491 current PC in debug output.
6492 (prepare_to_proceed): Mention the thread switching in debug
6495 2011-05-18 Tom Tromey <tromey@redhat.com>
6497 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6498 path check. Use xmalloc and cleanups.
6499 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6501 2011-05-17 Tom Tromey <tromey@redhat.com>
6503 * cp-valprint.c (cp_print_value_fields): Catch errors from
6506 2011-05-17 Tom Tromey <tromey@redhat.com>
6508 * dwarf2read.c (dwarf2_get_die_type): Call
6509 get_die_type_at_offset.
6510 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6511 get_base_type function.
6513 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6515 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6518 2011-05-16 Doug Evans <dje@google.com>
6520 * python/py-auto-load.c (source_section_scripts): Mention objfile
6523 2011-05-15 Doug Evans <dje@google.com>
6525 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6526 (try_thread_db_load_from_pdir): Call it. If unable to find
6527 libthread_db in directory of libpthread, see if we're looking at
6528 the separate-debug-info copy.
6530 * python/py-autoload.c (print_script): Print "Missing" instead of
6531 "No" for missing scripts.
6532 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6534 2011-05-13 Doug Evans <dje@google.com>
6536 * ui-file.c (stdio_file_write_async_safe): Add comment.
6538 2011-05-14 Hui Zhu <teawater@gmail.com>
6540 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6542 2011-05-13 Doug Evans <dje@google.com>
6544 Support $pdir and $sdir in libthread-db-search-path.
6545 * NEWS: Mention $sdir,$pdir.
6546 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6547 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6548 (try_thread_db_load_from_sdir): New function.
6549 (try_thread_db_load_from_dir): New function.
6550 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6551 system directories if search of libthread-db-search-path fails,
6552 that is now done via $sdir.
6553 (has_libpthread): New function.
6554 (thread_db_load): Remove search for libthread_db in directory of
6555 libpthread, that is now done via $pdir.
6557 * NEWS: Mention "info auto-load-scripts".
6558 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6559 script_not_found_warning_printed.
6560 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6561 all callers updated. Initialize script_not_found_warning_printed.
6562 (get_auto_load_pspace_data_for_loading): New function.
6563 (maybe_add_script): New function.
6564 (source_section_scripts): Simplify. Only print one warning regardless
6565 of the number of auto-load scripts not found.
6566 (clear_section_scripts): Clear script_not_found_warning_printed.
6567 (auto_load_objfile_script): Record script in hash table.
6568 (count_matching_scripts): New function.
6569 (maybe_print_script): Renamed from maybe_print_section_script, all
6570 callers updated. Rewrite to use ui_out_*.
6571 (info_auto_load_scripts): Renamed from
6572 maintenance_print_section_scripts, all callers updated.
6573 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6574 renamed as "info auto-load-scripts".
6576 2011-05-13 Tom Tromey <tromey@redhat.com>
6578 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6579 (read_sleb128): Likewise.
6581 2011-05-13 Tom Tromey <tromey@redhat.com>
6583 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6586 2011-05-13 Doug Evans <dje@google.com>
6588 * linux-nat.c (debug_linux_nat_async): Delete.
6589 Replace all references to use debug_linux_nat instead.
6590 (show_debug_linux_nat_async): Delete.
6591 (sigchld_handler): Call ui_file_write_async_safe instead of
6593 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6594 * ui-file.c (struct ui_file): New member to_write_async_safe.
6595 (null_file_write_async_safe): New function.
6596 (ui_file_write_async_safe): New function.
6597 (set_ui_file_write_async_safe): New function.
6598 (ui_file_new): Initialize to_write_async_safe.
6599 (stdio_file_write_async_safe): New function.
6600 (struct stdio_file): New member fd.
6601 (stdio_file_new): Initialize to_write_async_safe, fd.
6602 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6604 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6605 (set_ui_file_write_async_safe): Declare.
6606 (ui_file_write_async_safe): Declare.
6608 2011-05-13 Tom Tromey <tromey@redhat.com>
6610 * utils.c (do_value_free): New function.
6611 (make_cleanup_value_free): Likewise.
6612 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6614 (dwarf2_loc_desc_needs_frame): Call
6615 make_cleanup_value_free_to_mark.
6616 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6617 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6619 (new_dwarf_expr_context): Don't call value_mark.
6620 * dwarf2-frame.c (execute_stack_op): Call
6621 make_cleanup_value_free_to_mark.
6622 * defs.h (make_cleanup_value_free): Declare.
6624 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6626 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6627 prepare_execute_command.
6628 * top.c (prepare_execute_command): Return cleanup.
6629 (execute_command): Use cleanup from prepare_execute_command.
6630 * top.h (prepare_execute_command): Change prototype to return
6632 * defs.h (struct value): Add opaque declaration.
6633 (make_cleanup_value_free_to_mark): Add prototype.
6634 * utils.c (do_value_free_to_mark): New function.
6635 (make_cleanup_value_free_to_mark): Likewise.
6637 2011-05-12 Tom Tromey <tromey@redhat.com>
6639 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6640 cast left-hand-side to unsigned.
6642 2011-05-12 Tom Tromey <tromey@redhat.com>
6645 * value.h (value_from_contents): Declare.
6646 * value.c (value_from_contents): New function.
6647 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6648 (dwarf2_get_die_type): New function.
6649 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6650 (allocate_piece_closure): Acquire reference to values.
6651 (read_pieced_value): Update for value-based expressions.
6652 (write_pieced_value): Likewise.
6653 (free_pieced_value_closure): Call value_free as needed.
6654 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6655 Update for value-based expressions.
6656 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6657 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6658 <get_base_type>: New field.
6659 (struct dwarf_expr_piece) <v.value>: Change type.
6660 <v.regno>: New field.
6661 (struct dwarf_expr_context) <mark>: New field.
6662 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6663 (dwarf_expr_pop, dwarf_expr_push): Remove.
6664 (dwarf_expr_push_address): Declare.
6665 * dwarf2expr.c (dwarf_arch_cookie): New global.
6666 (struct dwarf_gdbarch_types): New.
6667 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6669 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6671 (dwarf_expr_push_address): New function.
6672 (dwarf_expr_pop): Now static.
6673 (dwarf_expr_fetch): Change return type.
6674 (dwarf_require_integral): New function.
6675 (dwarf_expr_fetch): Simplify.
6676 (add_piece): Update.
6677 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6679 (execute_stack_op) <sign_ext>: Remove.
6680 Use values for DWARF stack.
6681 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6682 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6684 (_initialize_dwarf2expr): New function.
6685 (add_piece): Update.
6686 (new_dwarf_expr_context): Set new field.
6687 (free_dwarf_expr_context): Call value_free_to_mark.
6688 * dwarf2-frame.c (no_base_type): New function.
6689 (execute_stack_op): Set get_base_type field. Update.
6691 2011-05-12 Tom Tromey <tromey@redhat.com>
6693 * dwarf2read.c (read_common_block): Fix formatting.
6695 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6697 * breakpoint.c (disable_breakpoint): Disable all locations
6698 associated with a tracepoint on target if a trace experiment is
6700 (disable_command): Disable a specific tracepoint location on target if
6701 a trace experiment is running.
6702 (do_enable_breakpoint): Enable all locations associated with a
6703 tracepoint on target if a trace experiment is running.
6704 (enable_command) Enable a specific tracepoint location on target if a
6705 trace experiment is running.
6706 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6707 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6708 to_disable_tracepoint.
6709 * target.h: Add declaration of struct bp_location.
6710 (struct target_ops): Add new functions
6711 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6712 to_disable_tracepoint to target operations.
6713 (target_supports_enable_disable_tracepoint): New macro.
6714 (target_enable_tracepoint): New macro.
6715 (target_disable_tracepoint): New macro.
6716 * remote.c (struct remote_state): Add new field.
6717 (remote_enable_disable_tracepoint_feature): New.
6718 (remote_protocol_features): Add new entry.
6719 (remote_supports_enable_disable_tracepoint): New.
6720 (remote_enable_tracepoint): New.
6721 (remote_disable_tracepoint): New.
6722 (init_remote_ops): Add remote_enable_tracepoint,
6723 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6724 to remote operations.
6725 * tracepoint.c (start_tracing): Allow tracing to start without any
6726 tracepoints enabled with just a warning if they can be re-enabled
6728 * NEWS: Add news item for the new behaviour of the enable and disable
6729 GDB commands when applied to tracepoints.
6730 Add news items for the new remote packets QTEnable and QTDisable.
6732 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6734 * config.in: Regenerate.
6735 * configure: Regenerate.
6736 * configure.ac <--with-system-readline> (for readline_echoing_p):
6738 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6739 (tui_old_rl_echoing_p): ... here.
6740 (tui_setup_io): Rename extern declaration readline_echoing_p to
6741 _rl_echoing_p. Adjust assignments for the both renames.
6743 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6745 * symtab.c (lookup_symtab): Run cleanup before returning.
6747 2011-05-11 Tom Tromey <tromey@redhat.com>
6749 * dwarf2read.c (handle_data_member_location): New function.
6750 (dwarf2_add_field): Use it.
6751 (read_common_block): Likewise.
6753 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6755 Make addrs->SECTINDEX always defined.
6756 * symfile.c (relative_addr_info_to_section_offsets): Check for
6757 SECTINDEX -1, not for zero ADDR.
6758 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6759 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6760 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6763 2011-05-10 Doug Evans <dje@google.com>
6765 * linux-thread-db.c: Whitespace cleanup.
6766 (try_thread_db_load_1): Fix comment.
6768 * linux-thread-db.c (set_libthread_db_search_path): New function.
6769 (_initialize_thread_db): Add setter for libthread-db-search-path.
6771 2011-05-09 Doug Evans <dje@google.com>
6773 * NEWS: Mention --with-iconv-bin.
6774 * configure.ac: New option --with-iconv-bin.
6775 * configure: Regenerate.
6776 * config.in: Regenerate.
6777 * defs.h (relocate_gdb_directory): Declare.
6778 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6779 removed progname parameter, and exported. All callers updated.
6780 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6782 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6783 adding missing call to restore_child_signals_mask.
6785 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6787 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6789 * infrun.c (proceed, start_remote): Adjust.
6790 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6791 and adjust to not handle it.
6792 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6793 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6794 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6795 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6796 * windows-nat.c (do_initial_windows_stuff): Adjust.
6797 * infcmd.c (attach_command): Adjust.
6798 (notice_new_inferior): Adjust.
6800 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6802 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6803 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6804 * spu-tdep.c (op_selb): Use correct value.
6806 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6808 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6809 "parent" parameter to symbol_file_add_from_bfd call.
6811 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6812 Thiago Jung Bauermann <bauerman@br.ibm.com>
6814 Implement support for PowerPC BookE masked watchpoints.
6815 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6817 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6818 method. Initialize to NULL in all existing breakpoint_ops instances.
6819 (struct breakpoint) <hw_wp_mask>: New field.
6820 * breakpoint.c (is_masked_watchpoint): Add prototype.
6821 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6822 breakpoint's breakpoint_ops.works_in_software_mode if available.
6823 (watchpoints_triggered): Handle the case of a hardware masked
6825 (watchpoint_check): Likewise.
6826 (works_in_software_mode_watchpoint): New function.
6827 (insert_masked_watchpoint, remove_masked_watchpoint)
6828 (resources_needed_masked_watchpoint)
6829 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6830 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6831 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6833 (masked_watchpoint_breakpoint_ops): New structure.
6834 (watch_command_1): Check for the existence of the `mask' parameter.
6835 Set b->ops according to the type of hardware watchpoint being created.
6836 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6837 (ppc_linux_remove_mask_watchpoint)
6838 (ppc_linux_masked_watch_num_registers): New functions.
6839 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6840 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6841 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6842 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6843 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6844 (target_masked_watch_num_registers): New functions.
6845 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6846 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6848 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6849 (target_masked_watch_num_registers): Add prototypes.
6851 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6854 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6855 (producer_is_gcc_ge_4_0): New function.
6856 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6857 symtab->language code.
6858 (var_decode_location): Set cu->has_loclist.
6859 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6860 skip. Intialize force_skip from locations_valid. Move the prologue
6861 skipping code into two passes.
6862 * symtab.h (struct symtab): Make the primary field a bitfield. New
6863 field locations_valid.
6865 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6868 (classify_inner_name): Call cp_lookup_nested_type with
6870 * cp-namespace.c (cp_lookup_nested_type): New variable
6871 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6872 type_name_no_tag_or_error with saved_parent_type.
6873 * dwarf2read.c (load_partial_dies): Read in any children of
6874 DW_TAG_typedef with complaint in such case.
6875 * gdbtypes.c (type_name_no_tag_or_error): New function.
6876 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6877 * valops.c (destructor_name_p): New comment for parameter type. Remove
6878 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6879 * value.h (destructor_name_p): Remove type const.
6881 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6883 * symtab.c (compare_symbol_name): New function.
6884 (completion_list_add_name, expand_partial_symbol_name): Call it,
6885 remove the variable ncmp.
6886 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6889 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6891 Demote to sw watchpoint only in update_watchpoint.
6892 * breakpoint.c (update_watchpoint): Change between software and
6893 hardware watchpoint for all kinds of watchpoints, not just
6894 read/write ones. Determine b->exact value here instead of
6895 in watch_command_1. Error out if there are not enough resources
6896 for a read or access hardware watchpoint.
6897 (watch_command_1): Remove logic of checking whether there are
6898 enough resources available, since update_watchpoint will do that
6899 work now. Don't set b->exact here. Catch exceptions thrown by
6900 update_watchpoint and delete the watchpoint.
6901 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6902 Use target_exact_watchpoints instead.
6903 (delete_breakpoint): Notify observers only if deleted watchpoint
6904 has a breakpoint number assigned to it.
6906 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6908 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6910 2011-05-05 Jerome Guitton <guitton@adacore.com>
6912 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6914 (i386_stack_tramp_frame_unwind): New static global.
6915 (i386_match_pattern): New function, extracted from i386_match_insn.
6916 (i386_match_insn): Use i386_match_pattern.
6917 (i386_match_insn_block): New function.
6918 (i386_tramp_chain_in_reg_insns)
6919 (i386_tramp_chain_on_stack_insns): New static variables.
6920 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6923 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6925 * configure.host (xscale*): Don't handle target.
6926 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6929 2011-05-04 Yao Qi <yao@codesourcery.com>
6931 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6933 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6936 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6937 | * elfread.c (elf_symtab_read): Stop memory leak.
6939 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6941 * nto-tdep.c (nto_target): Replace deprecated call to
6942 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6944 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6946 Fix false GCC warning.
6947 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6949 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6951 * breakpoint.c (update_watchpoint): Move code to change
6952 the enable state of breakpoint from here ...
6953 (do_enable_breakpoint): ... to here.
6955 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6957 * valprint.c (val_print_array_elements): Fixed poor performance
6958 of printing very large arrays with repeat_count_threshold set
6959 to unlimited. New comment.
6961 2011-04-29 Tom Tromey <tromey@redhat.com>
6963 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6964 (mi_parse): Likewise.
6965 * breakpoint.c (break_range_command): Use sizeof char*, not
6967 (create_breakpoint): Likewise.
6968 (parse_breakpoint_sals): Likewise.
6970 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6972 * linux-nat.c (linux_child_remove_fork_catchpoint)
6973 (linux_child_remove_vfork_catchpoint)
6974 (linux_child_remove_exec_catchpoint): New functions.
6975 (linux_target_install_ops): Install them.
6977 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6981 * varobj.c (install_default_visualizer): Do not install a
6982 visualizer if the varobj is CPLUS_FAKE_CHILD.
6983 (construct_visualizer): Likewise.
6985 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6987 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6988 case insensitive comparison.
6990 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6992 * infrun.c (proceed): Revert previous change.
6993 (resume): Instead, handle the case of signal delivery while stepping
6994 off a breakpoint location here, and only if software single-stepping
6995 is used. Handle nested signals.
6997 2011-04-28 Yao Qi <yao@codesourcery.com>
6999 * arm-tdep.c (copy_unmodified): Rename to ...
7000 (arm_copy_unmodified): .. this. New.
7001 (copy_preload): Move common part to ...
7002 (install_preload): .. this. New.
7003 (arm_copy_preload): New.
7004 (copy_preload_reg): Move common part to ...
7005 (install_preload_reg): ... this. New.
7006 (arm_copy_preload_reg): New.
7007 (copy_b_bl_blx): Move common part to ...
7008 (install_b_bl_blx): .. this. New.
7009 (arm_copy_b_bl_blx): New.
7010 (copy_bx_blx_reg): Move common part to ...
7011 (install_bx_blx_reg): ... this. New.
7012 (arm_copy_bx_blx_reg): New.
7013 (copy_alu_reg): Move common part to ...
7014 (install_alu_reg): ... this. New.
7015 (arm_copy_alu_reg): New.
7016 (copy_alu_shifted_reg): Move common part to ...
7017 (install_alu_shifted_reg): ... this. New.
7018 (copy_ldr_str_ldrb_strb): Move common part to ...
7019 (install_ldr_str_ldrb_strb): ... this. New.
7020 (arm_copy_ldr_str_ldrb_strb): New.
7021 (copy_copro_load_store): Move some common part to ...
7022 (install_copy_copro_load_store): ... this. New.
7023 (arm_copy_copro_load_store): New.
7025 (arm_copy_svc): Renamed from copy_svc.
7026 (copy_undef): Delete.
7027 (arm_copy_undef): Renamed from copy_undef.
7028 (decode_ext_reg_ld_st): Delete.
7029 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7030 (decode_svc_copro): Delete.
7031 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7032 (copy_copro_load_store, copy_alu_imm): update callers.
7033 (copy_extra_ld_st, copy_block_xfer): Likewise.
7034 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7035 (decode_miscellaneous, decode_dp_misc): Likewise.
7036 (decode_ld_st_word_ubyte, decode_media): Likewise.
7037 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7038 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7039 (decode_unconditional, decode_miscellaneous): Likewise.
7040 (decode_media, decode_b_bl_ldmstm): Likewise.
7041 (arm_process_displaced_insn): Likewise..
7042 (decode_misc_memhint_neon): Delete.
7043 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7044 (decode_miscellaneous): Delete.
7045 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7046 (decode_dp_misc): Delete.
7047 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7048 (decode_ld_st_word_ubyte): Delete.
7049 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7050 (decode_media): Delete.
7051 (arm_decode_media): Renamed from decode_media.
7052 (decode_b_bl_ldmstm): Delete.
7053 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7054 (decode_ext_reg_ld_st): Delete.
7055 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7056 (decode_unconditional): Delete.
7057 (arm_decode_unconditional): Renamed from decode_unconditional.
7059 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 Case insensitive lookups implementation.
7062 * dwarf2read.c: Include ctype.h.
7063 (struct mapped_index): New field version.
7064 (mapped_index_string_hash): New parameter index_version. New comment
7065 for it. Call tolower appropriately.
7066 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7067 Choose the right index version for mapped_index_string_hash.
7068 (dwarf2_read_index): Support also the index version 5. Initialize the
7069 new struct mapped_index field version.
7070 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7071 (find_slot): Explain the version needs. Pass INT_MAX for the new
7073 (write_psymtabs_to_index): Produce version 5.
7074 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7075 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7076 * psymtab.c (lookup_partial_symbol): Find the
7077 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7079 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7081 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7082 (completion_list_add_name): New variable ncmp, initialize it, use it.
7083 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7084 * utils.c (strcmp_iw): Support case_sensitive_off.
7085 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7086 New function comment part. New variables saved_string1,
7087 saved_string2 and case_pass. Add a proper second pass.
7089 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7091 Replace re_comp/re_exec by regcomp/regexec.
7092 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7093 (search_symbols_name_matches): Use them, use regexec.
7094 (search_symbols): New variable retval_chain, adjust the use of
7095 old_chain against it. Replace re_comp by regcomp. Use the new struct
7096 search_symbols_data fields, use regexec instead of re_exec.
7098 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7100 Format the code for the next patch.
7101 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7102 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7103 New variables c1 and c2.
7105 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7107 * infrun.c (proceed): Do not single-step into signal delivery
7108 when stepping off a breakpoint location.
7109 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7110 (insert_step_resume_breakpoint_at_caller): Likewise.
7111 (insert_step_resume_breakpoint_at_sal): Likewise.
7112 (insert_longjmp_resume_breakpoint): Likewise.
7114 2011-04-27 Yao Qi <yao@codesourcery.com>
7116 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7118 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7120 * procfs.c (procfs_pass_signals): Fix advance declaration.
7122 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7124 * target.h (struct target_ops): Remove to_notice_signals;
7125 add to_pass_signals.
7126 (target_notice_signals): Remove.
7127 (target_pass_signals): Add prototype.
7128 * target.c (update_current_target): Remove to_notice_signals;
7129 mention to_pass_signals.
7130 (target_pass_signals): New function.
7131 (debug_to_notice_signals): Remove.
7132 (setup_target_debug): Do not install debug_to_notice_signals.
7134 * infrun.c (signal_pass): New global.
7135 (resume): Call target_pass_signals.
7136 (handle_inferior_event): Report all signals while stepping over
7137 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7138 are re-inserted when stepping over a signal handler.
7139 (signal_cache_update): New function.
7140 (signal_stop_update): Call it.
7141 (signal_print_update): Likewise.
7142 (signal_pass_update): Likewise.
7143 (handle_command): Call signal_cache_update and target_pass_signals
7144 instead of target_notice_signals.
7145 (_initialize_infrun): Initialize signal_pass.
7147 * linux-nat.c (pass_mask): New global.
7148 (linux_nat_pass_signals): New function.
7149 (linux_nat_create_inferior): Report all signals initially.
7150 (linux_nat_attach): Likewise.
7151 (linux_nat_resume): Use pass_mask to decide whether to directly
7152 handle an inferior signal.
7153 (linux_nat_wait_1): Likewise.
7154 (linux_nat_add_target): Install to_pass_signals callback.
7156 * nto-procfs.c (notice_signals): Remove.
7157 (procfs_resume): Do not call notice_signals.
7158 (procfs_notice_signals): Remove.
7159 (procfs_pass_signals): New function.
7160 (init_procfs_ops): Install to_pass_signals callback instead of
7161 to_notice_signals callback.
7162 (_initialize_procfs): Report all signals initially.
7164 * procfs.c (procfs_notice_signals): Remove.
7165 (procfs_pass_signals): New function.
7166 (procfs_target): Install to_pass_signals callback instead of
7167 to_notice_signals callback.
7168 (register_gdb_signals): Remove.
7169 (procfs_debug_inferior): Report all signals initially.
7170 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7172 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7173 parameters; use them instead of calling signal_..._state routines.
7174 (remote_notice_signals): Remove.
7175 (remote_start_remote): Report all signals initially.
7176 (remote_resume): Do not call remote_pass_signals.
7177 (_initialize_remote): Install to_pass_signals callback instead of
7178 to_notice_signals callback.
7180 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7182 * breakpoint.c (user_settable_breakpoint): Delete.
7183 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7184 (delete_command): Check user_breakpoint_p instead of looking at
7185 the breakpoint's type.
7186 (disable_command): Ditto.
7187 (enable_command): Ditto.
7188 (delete_trace_command): Use user_breakpoint_p instead of looking
7189 at the breakpoint number directly. When checking if there are
7190 user visible tracepoints, in order to know whether to ask the user
7191 for confirmation, check whether the breakpoint is actually a
7194 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7196 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7199 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7201 MI breakpoint notifications.
7203 * annotate.c (breakpoint_changed): Adjust parameter type.
7204 * breakpoint.c (set_breakpoint_condition): Adjust to change
7205 in breakpoint_modified type.
7206 (breakpoint_set_commands): Likewise.
7207 (do_map_commands_command): Likewise.
7208 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7209 changed after bumping hit count.
7210 (bpstat_stop_status): Likewise.
7211 (print_one_breakpoint_location): Don't wrap in tuple here.
7212 (print_one_breakpoint): Always print individual locations.
7213 For locations, use unnamed tuple.
7214 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7216 (create_catchpoint, create_syscall_event_catchpoint): Call
7217 breakpoint_created obsever.
7218 (mention): Don't call breakpoint_created observer.
7219 (create_breakpoint_sal): Call breakpoint_created observer.
7220 (create_breakpoint, watch_command_1): Likewise.
7221 (create_ada_exception_breakpoint): Likewise.
7222 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7223 (locations_are_equal): New.
7224 (update_breakpoint_locations): If locations were changed, notify.
7225 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7226 Call breakpoint_modified observer.
7228 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7229 (mi_cmd_break_insert): Don't set observers for modify and delete.
7230 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7231 (mi_breakpoint_created, mi_breakpoint_deleted)
7232 (mi_breakpoint_modified): New.
7233 (mi_interpreter_init): Hook the above.
7234 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7235 while -break-* commands are executing.
7236 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7237 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7239 (mi_ui_out_impl): Hook in mi_redirect.
7240 (mi_field_skip): True to the name, skip the field, don't output
7241 a field with an empty value.
7243 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7244 (gdbpy_breakpoint_deleted): Adjust.
7245 * tui/tui-hooks.c (tui_event_create_breakpoint)
7246 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7248 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7250 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7251 (procfs_remove_hw_watchpoint): Likewise.
7253 2011-04-26 Michael Walle <michael@walle.cc>
7255 * remote.c (remote_start_remote): Ack packet after sending the
7258 2011-04-26 Yao Qi <yao@codesourcery.com>
7260 * linux-nat.c: Move common macros to ...
7261 Include linux-ptrace.h.
7262 * common/linux-ptrace.h: ... here. New.
7264 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7266 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7267 !objfile_has_partial_symbols. New comment.
7268 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7269 SYM_READ_PSYMBOLS is not present. Extend the comment.
7270 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7272 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7274 * defs.h (ENUM_BITFIELD): Remove.
7276 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7277 Eli Zaretskii <eliz@gnu.org>
7279 * NEWS: Document the new gdbserver --once option.
7281 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7283 * MAINTAINERS: Update my email address.
7285 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7287 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7288 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7289 function call if __STDC_ISO_10646__ macro is defined.
7290 (intermediate_encoding): New prototype.
7291 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7292 to generate compile time error for unsupported gdb_wchar_t size.
7293 (ENDIAN_SUFFIX): New macro.
7294 (intermediate_encoding): New function.
7296 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7298 * ada-lang.c (struct add_partial_datum): Update the comment for
7299 expand_partial_symbol_name.
7300 (ada_add_partial_symbol_completions): Rename to ...
7301 (ada_expand_partial_symbol_name): ... here, change return type, update
7302 function comment, call symbol_completion_match instead of
7303 symbol_completion_add.
7304 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7305 and ada_expand_partial_symbol_name.
7306 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7308 (dw2_map_symbol_names): Remove.
7309 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7310 * psymtab.c (map_symbol_names_psymtab): Remove.
7311 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7312 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7314 (psym_functions): Unlist map_symbol_names_psymtab.
7315 (map_partial_symbol_names): Rename to ...
7316 (expand_partial_symbol_names): ... here, change the FUN type, call
7317 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7318 * psymtab.h (map_partial_symbol_names): Rename to ...
7319 (expand_partial_symbol_names): ... here, change the FUN type.
7320 * symfile.h (struct quick_symbol_functions): Update the description of
7321 expand_symtabs_matching. Remove map_symbol_names.
7322 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7323 (struct add_name_data): Update the comment for
7324 expand_partial_symbol_name.
7325 (add_partial_symbol_name): Rename to ...
7326 (expand_partial_symbol_name): ... here. Replace
7327 completion_list_add_name call by strncmp.
7328 (default_make_symbol_completion_list_break_on): Use now
7329 expand_partial_symbol_names and expand_partial_symbol_name.
7330 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7332 2011-04-20 Tom Tromey <tromey@redhat.com>
7334 * dwarf2read.c (save_gdb_index_command): Replace format
7335 documentation with a pointer to the manual.
7337 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7339 * regcache.c: Include remote.h.
7340 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7341 (regcache_dump): Handle regcache_dump_remote.
7342 (maintenance_print_remote_registers): New function.
7343 (_initialize_regcache): Install "maint print remote-registers"
7345 * remote.c (map_regcache_remote_table): New function, factored out
7347 (init_remote_state): ... here.
7348 (remote_register_number_and_offset): New.
7349 * remote.h (remote_register_number_and_offset): Declare.
7351 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7353 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7354 null_ptid, assume and allow a NULL address space, instead of
7355 asking the target for the ptid's address space.
7356 * infrun.c (ptid_is_pid): Remove assertion.
7358 2011-04-19 Tom Tromey <tromey@redhat.com>
7360 * windows-tdep.c (windows_xfer_shared_library):
7361 * windows-nat.c (get_module_name, windows_make_so):
7362 * v850-tdep.c (v850_handle_pushm):
7363 * utils.c (null_cleanup, gdb_realpath):
7364 * ui-out.c (get_next_header):
7365 * tracepoint.c (clear_traceframe_info):
7366 * symtab.c (lookup_symtab):
7367 * serial.h (struct serial_ops):
7368 * mipsread.c (read_alphacoff_dynamic_symtab):
7369 * infcmd.c (print_return_value):
7370 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7371 * f-exp.y (parse_number):
7372 * exceptions.c (catch_exceptions):
7373 * dummy-frame.c (dummy_frame_this_id):
7374 * defs.h (struct cleanup):
7375 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7376 * arm-tdep.c (arm_push_dummy_call):
7377 * amd64-tdep.h (amd64_collect_xsave):
7378 * amd64-tdep.c (amd64_collect_xsave):
7379 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7380 * README (typing): Remove duplicate words.
7381 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7382 * infrun.c (siginfo_value_read): Fix typo.
7383 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7384 * top.c (source_line_number): Add comma.
7386 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7388 * thread.c (any_live_thread_of_process): Prioritize threads
7389 that are not executing.
7390 * gdbthread.h (any_live_thread_of_process): Update comment
7391 as per above change.
7393 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7395 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7396 (scan_xcoff_symtab): Likewise.
7398 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7400 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7403 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7404 Pedro Alves <pedro@codesourcery.com>
7406 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7407 variables to simplify code and avoid == operator at end of
7408 line as this is against GNU coding standards.
7410 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7412 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7413 lm_name to name_lm to avoid conflict with lm_name function.
7415 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7417 ARI fixes: Use only lowercase function name for static functions.
7418 * nto-tdep.c (LM_ADDR): Rename to...
7419 (lm_addr): New function name.
7420 (nto_relocate_section_addresses): Adapt to change above.
7421 * solib-sunos.c (LM_ADDR): Rename to...
7422 (lm_addr): New function name.
7423 (LM_NEXT): Rename to...
7424 (lm_next): New function name.
7425 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7426 function name changes above.
7427 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7428 (lm_addr_from_link_map): New function name.
7429 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7430 (has_lm_dynamic_from_link_map): New function name.
7431 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7432 (lm_dynamic_from_link_map): New function name.
7433 (LM_ADDR_CHECK): Rename to...
7434 (lm_addr_check): New function name.
7435 (LM_NEXT): Rename to...
7436 (lm_next): New function name.
7437 (LM_PREV): Rename to...
7438 (lm_prev): New function name.
7439 (LM_NAME): Rename to...
7440 (lm_name): New function name.
7441 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7442 (ignore_first_link_map_entry): New function name.
7443 (svr4_keep_data_in_core): Adapt to function name changes above.
7444 (svr4_current_sos): Likewise.
7445 (enable_break): Likewise.
7446 (svr4_relocate_section_addresses): Likewise.
7448 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7451 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7452 sprintf. Simplify code and avoid loosing memory.
7453 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7454 (call0_frame_cache): Remove && operator from end of line.
7456 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7458 Fix libraries displacement if they change whether they were prelinked.
7459 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7460 does not match. Comment why.
7462 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 * corelow.c: Include wrapper.h.
7465 (core_open): Call now gdb_target_find_new_threads.
7466 * wrapper.c: Include target.h.
7467 (gdb_target_find_new_threads): New.
7468 * wrapper.h (gdb_target_find_new_threads): New declaration.
7470 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7473 even if !TARGET_HAS_EXECUTION.
7475 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7477 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7478 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7479 bfd_get_synthetic_symtab.
7480 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7481 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7482 parameter parent, remove the call to add_separate_debug_objfile.
7483 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7484 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7485 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7486 parent, new comment for it, call add_separate_debug_objfile for it.
7487 (symbol_file_add_separate): Pass objfile as the parameter parent,
7488 remove the call to add_separate_debug_objfile.
7489 (symbol_file_add_from_bfd): New parameter parent, pass it.
7490 (symbol_file_add): Pass NULL to the new parameter parent.
7491 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7493 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7498 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7500 Fix Python access to inlined frames.
7501 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7502 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7504 2011-04-15 Tom Tromey <tromey@redhat.com>
7506 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7508 2011-04-15 Gary Benson <gbenson@redhat.com>
7510 * MAINTAINERS: Add myself to write-after-approval section.
7512 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7514 * remote-sim.c (sim_command_completer): New function.
7515 (_initialize_remote_sim): Set completer to sim_command_completer.
7517 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7519 * breakpoint.c (print_exception_catchpoint): Rename to ...
7520 (print_it_exception_catchpoint): ... this.
7521 (gnu_v3_exception_catchpoint_ops): Update with new name
7522 for print_it_exception_catchpoint.
7524 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7526 * MAINTAINERS: Add myself for write after approval privileges.
7528 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7530 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7532 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7534 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7536 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7538 * breakpoint.c (save_breakpoints): Verify whether
7539 breakpoint_ops.print_recreate is defined before calling it.
7541 2011-04-11 Gary Benson <gbenson@redhat.com>
7543 Fix failure with --enable-maintainer-mode.
7544 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7546 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7549 * symtab.c (search_symbols): Reorder the KIND description in the
7550 function comment. Remove the unused 4th element of types, types2,
7551 types3 and types4. New gdb_assert on KIND.
7552 (symtab_symbol_info): Remove the unused 4th element of classnames.
7553 New gdb_assert on KIND.
7554 * symtab.h (enum search_domain): New warning in the enum comment.
7555 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7558 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7560 Fix crash of gdb save-index on a STABS file.
7561 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7564 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7566 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7567 * dwarf2read.c: Include ctype.h.
7568 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7570 (dwarf2_add_field): Fix new_field->accessibility by calling
7571 dwarf2_default_access_attribute. Restructure setting accessibility
7573 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7574 is_private and is_protected by calling
7575 dwarf2_default_access_attribute.
7577 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7579 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7580 to the initialization.
7582 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7584 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7587 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7589 Remove support for old Cygwin 1.5 versions.
7590 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7591 function on old Cygwin version.
7592 * windows-nat.c: Remove cygwin version check and always define
7593 __USEWIDE for Cygwin compilation.
7595 2011-04-07 Yao Qi <yao@codesourcery.com>
7597 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7599 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7600 (arm_copy_svc): Remove parameters INSN and TO.
7601 (decode_svc_copro): Update caller.
7602 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7603 from function pointer `copy_svc_os'.
7605 2011-04-07 Yao Qi <yao@codesourcery.com>
7607 * arm-tdep.c (cleanup_branch): Set a correct return address in
7608 LR for ARM and Thumb.
7610 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7613 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7614 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7615 in the function comment, a new note on values compatibility.
7616 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7617 * symtab.h (SYMBOL_HASH_NEXT): New.
7619 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7621 * ppc-linux-nat.c (check_condition): Add len output parameter.
7622 Set it based on the memory region referenced in the condition
7623 expression. Update all callers.
7625 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7627 Fix crash regression on systems featuring .gdb_index.
7628 * objfiles.c (free_objfile): Move the
7629 forget_cached_source_info_for_objfile call earlier. Comment it.
7630 Extend the comment for objfile_free_data.
7632 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7634 Fix regression of displaying the debug format.
7635 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7638 2011-04-04 Tom Tromey <tromey@redhat.com>
7640 * cli/cli-interp.c (struct captured_execute_command_args):
7642 (do_captured_execute_command): Remove.
7643 (safe_execute_command): Use TRY_CATCH.
7644 * cli/cli-script.c (struct wrapped_read_command_file_args):
7646 (wrapped_read_command_file): Remove.
7647 (script_from_file): Use TRY_CATCH.
7648 * exceptions.c (catch_exception): Remove.
7649 * exceptions.h (catch_exception): Remove.
7650 (deprecated_throw_reason): Update comment.
7651 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7652 argument to 'context'.
7653 (mi_execute_command): Use TRY_CATCH.
7654 * remote.c (struct start_remote_args): Remove.
7655 (remote_start_remote): Update; change arguments.
7656 (remote_open_1): Use TRY_CATCH.
7658 2011-04-04 Tom Tromey <tromey@redhat.com>
7660 * tracepoint.c (scope_info): Update.
7661 * symtab.c (decode_line_spec): Update.
7662 * python/python.c (gdbpy_decode_line): Update.
7663 * linespec.h (decode_line_1): Update.
7664 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7665 (decode_compound, find_method, symtab_from_filename)
7666 (decode_variable): Likewise.
7667 * cli/cli-cmds.c (edit_command): Update.
7668 (list_command): Update.
7669 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7671 (create_breakpoint): Update.
7672 (until_break_command): Update.
7673 (addr_string_to_sals): Update.
7674 (decode_line_spec_1): Update.
7676 2011-04-04 Tom Tromey <tromey@redhat.com>
7678 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7679 (do_captured_parse_breakpoint): Remove.
7680 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7681 Use TRY_CATCH directly.
7683 2011-04-04 Tom Tromey <tromey@redhat.com>
7685 * symtab.h (free_symtab): Remove.
7686 (forget_cached_source_info_for_objfile): Declare.
7687 * symmisc.c (free_symtab): Remove.
7688 * source.c (forget_cached_source_info_for_objfile): New function.
7689 (forget_cached_source_info): Use it.
7690 * objfiles.c (free_objfile): Simplify check before calling
7691 clear_current_source_symtab_and_line. Call
7692 forget_cached_source_info_for_objfile.
7694 2011-04-04 Tom Tromey <tromey@redhat.com>
7696 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7697 (new_symtab): Don't set `free_code' on symtab.
7698 (new_linetable): Properly handle size==0.
7699 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7700 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7702 * jv-lang.c (struct jv_per_objfile_data): New.
7703 (jv_per_objfile_free): Free the data.
7704 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7705 (get_java_class_symtab): Set the `dict' field on the
7706 jv_per_objfile_data.
7707 (free_class_block): Remove.
7708 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7711 2011-04-04 Tom Tromey <tromey@redhat.com>
7713 * symfile.c (reread_symbols): Update.
7714 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7716 * objfiles.c (allocate_objfile): Update.
7717 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7719 * cp-namespace.c (lookup_symbol_file): Don't call
7720 lookup_possible_namespace_symbol.
7721 (initialize_namespace_symtab, get_possible_namespace_block)
7722 (free_namespace_block, cp_check_possible_namespace_symbols)
7723 (check_possible_namespace_symbols_loop)
7724 (check_one_possible_namespace_symbol)
7725 (lookup_possible_namespace_symbol): Remove.
7726 (maintenance_cplus_namespace): Replace with notice.
7727 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7729 2011-04-04 Tom Tromey <tromey@redhat.com>
7731 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7732 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7733 * symmisc.c (free_symtab): Don't free debugformat.
7734 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7735 (record_debugformat, record_producer): Document.
7736 * buildsym.c (end_symtab): Don't save debugformat and producer
7738 (end_symtab): Don't free debugformat and producer fields.
7739 (record_debugformat): Don't call xstrdup.
7740 (record_producer): Likewise.
7742 2011-04-04 Tom Tromey <tromey@redhat.com>
7744 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7745 (source_line_charpos, source_charpos_line): Remove.
7747 2011-04-04 Tom Tromey <tromey@redhat.com>
7749 * symtab.h (domain_enum): Split in two...
7750 (enum search_domain): New.
7751 (search_symbols): Update.
7752 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7753 redundant declarations.
7754 (search_symbols): Change 'kind' argument to search_domain.
7756 (print_symbol_info): Likewise.
7757 (symtab_symbol_info): Likewise.
7758 * symfile.h (struct quick_symbol_functions)
7759 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7760 <expand_symtabs_matching>: Likewise.
7761 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7762 (expand_symtabs_matching_via_partial): Update.
7763 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7764 (dw2_expand_symtabs_for_function): Update.
7765 * block.h: Moved anonymous enum...
7766 * defs.h (enum block_enum): ... here. Now named.
7768 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7770 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7771 * version.in: Bump version to 7.3.50.20110403-cvs.
7773 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7775 * NEWS: Create a new section for the next release branch.
7776 Rename the section of the current branch, now that it has
7779 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7781 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7782 for "fpscr" in target description.
7784 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7786 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7787 initialize it. Delay HASH initialization. Strip the part after open
7788 parenthesis for languages with qualifiers. Call do_cleanups.
7790 2011-04-01 Tom Tromey <tromey@redhat.com>
7792 * utils.c (report_command_stats): Don't print `-' for negative
7795 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7797 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7798 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7801 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7803 * breakpoint.h (bpdisp_text): Add declaration.
7804 * breakpoint.c (bpdisp_text): Make non-static.
7805 * ada-lang.c: #include "mi/mi-common.h".
7806 (print_it_exception): Rewrite to improve GDB/MI output.
7808 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7810 * arm-tdep.h (struct address_space): Add forward declaration.
7812 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7814 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7815 * arm-tdep.c (arm_override_mode): New global.
7816 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7817 execution mode heuristics.
7818 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7819 second single-step breakpoint if needed, using
7820 arm_insert_single_step_breakpoint.
7821 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7822 ARM execution mode, do not call thumb_get_next_pc_raw.
7823 (arm_get_next_pc): Encode execution mode in return value. Call
7824 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7825 (arm_insert_single_step_breakpoint): New function.
7826 (arm_software_single_step): Call it.
7827 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7828 argument to return execution mode of sigreturn target.
7829 (arm_linux_syscall_next_pc): Use it.
7830 (arm_linux_copy_svc): Update call.
7831 (arm_linux_software_single_step): Call
7832 arm_insert_single_step_breakpoint.
7834 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7839 2011-03-31 Tom Tromey <tromey@redhat.com>
7841 * varobj.c (update_dynamic_varobj_children): Properly handle
7842 errors from iterator.
7844 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7846 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7847 struct linkage name twice.
7849 2011-03-31 Tom Tromey <tromey@redhat.com>
7851 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7852 missing ">" to message.
7854 2011-03-31 Tom Tromey <tromey@redhat.com>
7856 * varobj.c (instantiate_pretty_printer): Remove duplicate
7859 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7861 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7862 if neither saved value nor register available (e.g. signal frame).
7864 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7866 * macroexp.c (expand): Avoid uninitialized variable
7869 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7871 * breakpoint.c (break_range_command): Fix typo in comment.
7873 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7874 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7876 Implement support for PowerPC BookE ranged breakpoints.
7877 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7878 * breakpoint.h (struct bp_target_info) <length>: New member
7880 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7881 instead of struct breakpoint as argument, and also add ASPACE
7882 and BP_ADDR arguments. Update all callers.
7883 (struct breakpoint_ops) <print_one_detail>: New method.
7884 (struct breakpoint) <addr_string_range_end>: New member variable.
7885 * breakpoint.c (breakpoint_location_address_match): Add function
7887 (insert_bp_location): Set bl->target_info.length.
7888 (breakpoint_here_p): Call breakpoint_location_address_match.
7889 (moribund_breakpoint_here_p): Likewise.
7890 (regular_breakpoint_inserted_here_p): Likewise.
7891 (breakpoint_thread_match): Likewise.
7892 (bpstat_stop_status): Likewise.
7893 (bpstat_check_location): Move call to
7894 breakpoint_ops.breakpoint_hit to the top.
7895 (print_one_breakpoint_location): Call
7896 breakpoint_ops.print_one_detail if available.
7897 (breakpoint_address_match_range): New function.
7898 (breakpoint_location_address_match): Likewise.
7899 (breakpoint_locations_match): Compare the length field of the
7901 (hw_breakpoint_used_count): Count resources used by all locations
7902 in a breakpoint, and use breakpoint_ops.resources_needed if
7904 (breakpoint_hit_ranged_breakpoint): New function.
7905 (resources_needed_ranged_breakpoint): Likewise.
7906 (print_it_ranged_breakpoint): Likewise.
7907 (print_one_ranged_breakpoint): Likewise.
7908 (print_one_detail_ranged_breakpoint): Likewise.
7909 (print_mention_ranged_breakpoint): Likewise.
7910 (print_recreate_ranged_breakpoint): Likewise.
7911 (ranged_breakpoint_ops): New structure.
7912 (find_breakpoint_range_end): New function.
7913 (break_range_command): Likewise.
7914 (delete_breakpoint): Free addr_string_range_end.
7915 (update_breakpoint_locations): Add SALS_END argument. Update
7916 all callers. Calculate breakpoint length if a non-zero SALS_END
7917 is given. Call breakpoint_locations_match instead of
7918 breakpoint_address_match.
7919 (reset_breakpoint): Find SaL of the end of the range if B is a
7921 (_initialize_breakpoint): Register break-range command.
7922 * defs.h (print_core_address): Add function prototype.
7923 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7925 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7926 (ppc_linux_remove_hw_breakpoint): Likewise.
7927 (_initialize_ppc_linux_nat): Initialize
7928 to_ranged_break_num_registers.
7929 * target.c (update_current_target): Add comment about
7930 to_ranged_break_num_registers.
7931 (target_ranged_break_num_registers): New function.
7932 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7934 (target_ranged_break_num_registers): Add function prototype.
7935 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7936 * utils.c (print_core_address): ... here.
7938 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7940 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7941 variable compiler warning.
7943 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7945 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7947 (re_set_breakpoint): ... to here ...
7948 (addr_string_to_sals): ... and here.
7950 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7952 * Makefile.in (SFILES): Add missing C sources.
7953 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7954 Add missing headers.
7956 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7958 * .gitignore: New file.
7960 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7962 * NEWS: Mention new cfi device simulation.
7964 2011-03-29 Tom Tromey <tromey@redhat.com>
7966 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7967 otherwise anonymous types.
7968 (dwarf2_name): Likewise.
7969 * valops.c (value_struct_elt_for_reference): Refine artificial
7970 type logic. Call error if j==-1.
7972 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7974 Fix false GCC warning.
7975 * infcall.c (find_function_addr): Initialize funaddr.
7977 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7979 Fix mingw compilation with --enable-targets=all.
7980 * remote-mips.c (gdb_usleep.h): Include header.
7981 (mips_enter_debug): Use gdb_usleep instead of sleep.
7983 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7985 Support resolution of STT_GNU_IFUNC via breakpoints.
7986 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7987 bp_gnu_ifunc_resolver_return.
7988 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7989 the loop. Support bp_gnu_ifunc_resolver and
7990 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7991 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7993 (bptype_string, print_one_breakpoint_location): Support
7994 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7995 (user_settable_breakpoint): Return true also for
7996 bp_gnu_ifunc_resolver.
7997 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7998 bp_gnu_ifunc_resolver_return.
7999 (set_breakpoint_location_function): New parameter explicit_loc,
8000 describe it. Call find_pc_partial_function_gnu_ifunc with new
8001 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8002 EXPLICIT_LOC is not set.
8003 (set_raw_breakpoint): Set EXPLICIT_LOC for
8004 set_breakpoint_location_function.
8005 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8006 set_breakpoint_location_function.
8007 (mention): Support bp_gnu_ifunc_resolver and
8008 bp_gnu_ifunc_resolver_return.
8009 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8010 set_breakpoint_location_function.
8011 (update_breakpoint_locations): Remove static.
8012 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8013 bp_gnu_ifunc_resolver_return.
8014 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8015 bp_gnu_ifunc_resolver_return.
8016 (update_breakpoint_locations): New declaration.
8017 * elfread.c: Include gdbthread.h and regcache.h.
8018 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8020 (elf_gnu_ifunc_fns): Install them.
8021 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8022 (stub_gnu_ifunc_resolver_return_stop): New functions.
8023 (stub_gnu_ifunc_fns): Install them.
8024 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8025 and gnu_ifunc_resolver_return_stop.
8026 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8028 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8030 STT_GNU_IFUNC reader implementation.
8031 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8032 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8033 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8034 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8035 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8036 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8037 (elf_gnu_ifunc_resolve_addr): New.
8038 (elf_symfile_read): Call elf_rel_plt_read.
8039 (elf_gnu_ifunc_fns): New.
8040 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8041 Install elf_gnu_ifunc_fns.
8042 * infcall.c (find_function_return_type): New function.
8043 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8044 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8045 (stub_gnu_ifunc_resolve_name): New functions.
8046 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8047 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8048 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8050 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8052 Code cleanup for later STT_GNU_IFUNC support.
8053 * infcall.c (find_function_addr): Remove variable code, use explicit
8054 dereferences for it. Move VALUE_TYPE initialization later.
8056 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8059 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8060 (clear_pc_function_cache): Clear it.
8061 (find_pc_partial_function): Rename to ...
8062 (find_pc_partial_function_gnu_ifunc): ... this function. New
8063 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8064 (find_pc_partial_function): New wrapper for this function.
8065 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8067 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8069 GDB internal type support for STT_GNU_IFUNC.
8070 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8071 (elf_symtab_read): Set mst_text_gnu_ifunc for
8072 BSF_GNU_INDIRECT_FUNCTION.
8073 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8074 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8075 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8076 nodebug_got_plt_symbol.
8077 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8078 (TYPE_GNU_IFUNC): New.
8079 (struct main_type): New field flag_gnu_ifunc.
8080 (struct builtin_type): New field builtin_func_func.
8081 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8082 nodebug_got_plt_symbol.
8083 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8084 (in_gnu_ifunc_stub): New.
8085 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8087 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8088 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8089 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8091 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8092 * symtab.c (search_symbols): Likewise.
8093 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8094 and mst_slot_got_plt.
8095 (in_gnu_ifunc_stub): New declaration.
8097 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8099 Support a ring of related breakpoints.
8100 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8101 other functions, add gdb_assert.
8102 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8103 watchpoint_del_at_next_stop.
8104 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8105 (bpstat_stop_status): Handle ring in related_breakpoint.
8106 (set_raw_breakpoint_without_location): Initialize ring in
8108 (delete_breakpoint): Handle ring in related_breakpoint, use
8109 watchpoint_del_at_next_stop.
8110 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8112 2011-03-28 Tom Tromey <tromey@redhat.com>
8115 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8116 with `language_minimal'.
8118 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8120 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8121 instead of checking for STT_ARM_TFUNC symbol type.
8123 2011-03-25 Tom Tromey <tromey@redhat.com>
8125 * linespec.c (symbol_found): Restore line-based result for
8126 non-LOC_LABEL symbols.
8128 2011-03-25 Kai Tietz <ktietz@redhat.com>
8130 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8131 instead of strcmp for comparison.
8132 (tui_source_is_displayed): Likewise.
8133 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8135 2011-03-24 Mark Wielaard <mjw@redhat.com>
8137 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8139 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8140 (find_partial_die_in_comp_unit): Likewise in comment.
8141 (read_attribute_value): Likewise.
8142 (lookup_die_type): Likewise.
8143 (dwarf_form_name): Likewise.
8144 (dump_die_shallow): Likewise.
8145 (follow_die_ref_or_sig): Likewise.
8147 2011-03-24 Tom Tromey <tromey@redhat.com>
8149 PR breakpoints/11816:
8150 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8151 (decode_compound): Update.
8152 (find_function_symbol): New function.
8153 (decode_dollar): Update.
8154 (decode_label): Add 'function_symbol' parameter. Handle
8155 function-relative labels.
8156 (decode_variable): Update.
8157 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8158 not its line. Set `special_display' and canonical name for
8161 2011-03-24 Tom Tromey <tromey@redhat.com>
8163 * linespec.h (struct linespec_result) <special_display>: New
8165 * breakpoint.h (struct breakpoint) <display_canonical>: New
8167 * breakpoint.c (print_breakpoint_location): Respect
8169 (create_breakpoint_sal): Add 'display_canonical' parameter.
8170 (create_breakpoints_sal): Update.
8171 (create_breakpoint): Update.
8173 2011-03-24 Tom Tromey <tromey@redhat.com>
8175 * symtab.c (decode_line_spec): Update.
8176 * linespec.c (build_canonical_line_spec): Change type of
8178 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8179 (find_method, decode_all_digits, decode_dollar, decode_label)
8180 (symbol_found): Likewise.
8181 (init_linespec_result): New function.
8182 * breakpoint.c (struct captured_parse_breakpoint_args)
8183 <canonical_p>: New field, replaces addr_string_p.
8184 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8186 (parse_breakpoint_sals): Likewise.
8187 (do_captured_parse_breakpoint): Update.
8188 (create_breakpoint): Use struct linespec_result.
8189 (until_break_command): Update.
8190 (breakpoint_re_set_one): Update.
8191 (decode_line_spec_1): Update.
8192 * linespec.h (struct linespec_result): New.
8193 (init_linespec_result): Declare.
8195 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8197 * regcache.c (regcache_raw_read): If the target didn't supply a
8198 given raw register, mark it as unavailable.
8200 2011-03-23 Kai Tietz <ktietz@redhat.com>
8202 * breakpoint.c (clear_command): Use filename_cmp
8203 instead of strcmp for comparison.
8204 * buildsym.c (watch_main_source_file_lossage): Likewise.
8205 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8206 checking just for slash.
8207 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8208 strrchr and filename_cmp instead of strcmp for filenames.
8209 (add_old_header_file): Use filename_cmp
8210 instead of strcmp for comparison.
8211 * exec.c (exec_set_section_address): Likewise.
8212 * macrotab.c (macro_lookup_inclusion): Likewise.
8213 (macro_lookup_inclusion): Likewise.
8214 * elfread.c (_initialize_elfread): Likewise.
8215 (elfstab_offset_sections): Likewise.
8216 (elfstab_offset_sections): Use lbasename instead of
8218 * mdebugread.c (parse_partial_symbols): Likewise.
8219 (arse_partial_symbols): Use filename_(n)cmp instead of
8220 str(n)cmp for comparison.
8221 * minsyms.c (lookup_minimal_symbol): Likewise.
8222 * psymtab.c (read_psymtabs_with_filename): Likewise.
8223 * solib.c (solib_read_symbols): Likewise.
8224 (reload_shared_libraries_1): Likewise.
8225 * symmisc.c (maintenance_print_symbols): Likewise.
8226 * symfile.c (separate_debug_file_exists): Likewise.
8227 (reread_symbols): Likewise.
8228 (find_separate_debug_file_by_debuglink): Likewise.
8229 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8230 * source.c (add_path): Likewise.
8231 * symtab.c (filename_seen): Likewise.
8232 (file_matches): Likewise.
8233 (print_symbol_info): Likewise.
8234 (maybe_add_partial_symtab_filename): Likewise.
8235 (make_source_files_completion_list): Likewise.
8236 * xml-syscall.c (init_sysinfo): Likewise.
8237 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8238 IS_DIR_SEPARATOR for checking for trailing path separator.
8240 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8243 label abort_expression.
8244 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8245 DWARF_VALUE_OPTIMIZED_OUT.
8247 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8250 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8251 to linkage_name. Invert its value. Update the function comment.
8252 (c_type_print_varspec_suffix): Invert it at the caller.
8253 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8255 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8257 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8258 errors when reading the `stop_pc'.
8259 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8262 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8264 * NEWS: Document gdb.Write stream keyword.
8266 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8270 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8271 (dwarf2_add_field): Fix new_field->accessibility for
8272 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8274 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8278 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8279 other error classes. Do not print stack trace.
8281 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8283 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8284 (dwarf2_add_field): Fix new_field->accessibility for
8285 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8287 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8289 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8290 encountering a load via a non-SP register.
8292 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8294 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8295 field in returned unwinder.
8297 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8299 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8301 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8303 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8306 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8308 * frame.c (frame_unwind_register): Throw an error if unwinding the
8310 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8311 an unwind stop reason.
8312 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8313 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8314 UNWIND_UNAVAILABLE>: New.
8315 * inline-frame.c (inline_frame_unwind): Install
8316 default_frame_unwind_stop_reason.
8317 * frame-unwind.c: Include "exceptions.h".
8318 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8319 (default_frame_unwind_stop_reason): New.
8320 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8321 (default_frame_unwind_stop_reason): Declare.
8322 (struct frame_unwind) <stop_reason>: New function pointer.
8324 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8325 * dwarf2-frame.c: Include exceptions.h.
8326 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8327 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8328 computing the CFA. If such an error was thrown, set
8329 unavailable_retaddr.
8330 (dwarf2_frame_unwind_stop_reason): New.
8331 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8333 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8334 (dwarf2_signal_frame_unwind): Ditto.
8336 * amd64-tdep.c: Include "exceptions.h".
8337 (struct amd64_frame_cache): New field "base_p".
8338 (amd64_init_frame_cache): Clear it.
8339 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8340 Avoid reading registers with functions that throw if the register
8341 is not necessary to compute the frame base.
8342 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8343 swallowing NOT_AVAILABLE_ERROR.
8344 (amd64_frame_unwind_stop_reason): New.
8345 (amd64_frame_this_id): Don't build a frame id if the frame base
8347 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8348 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8349 base_p if the frame base was computable.
8350 (amd64_sigtramp_frame_unwind_stop_reason): New.
8351 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8352 frame base was unavailable.
8353 (amd64_sigtramp_frame_unwind): Install
8354 amd64_sigtramp_frame_unwind_stop_reason.
8355 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8356 base_p if the frame base was computable.
8357 (amd64_epilogue_frame_unwind_stop_reason): New.
8358 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8359 frame base was unavailable.
8360 (amd64_epilogue_frame_unwind): Install
8361 amd64_epilogue_frame_unwind_stop_reason.
8362 * i386-tdep.c: Include "exceptions.h".
8363 (struct i386_frame_cache): New field "base_p".
8364 (i386_init_frame_cache): Clear it.
8365 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8366 Avoid reading registers with functions that throw if the register
8367 is not necessary to compute the frame base.
8368 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8369 swallowing NOT_AVAILABLE_ERROR.
8370 (i386_frame_unwind_stop_reason): New.
8371 (i386_frame_this_id): Don't build a frame id if the frame base was
8373 (i386_frame_prev_register): Handle unavailable SP.
8374 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8375 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8376 base_p if the frame base was computable.
8377 (i386_epilogue_frame_unwind_stop_reason): New.
8378 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8379 base was unavailable.
8380 (i386_epilogue_frame_unwind): Install
8381 i386_epilogue_frame_unwind_stop_reason.
8382 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8383 base_p if the frame base was computable.
8384 (i386_sigtramp_frame_unwind_stop_reason): New.
8385 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8386 base was unavailable.
8387 (i386_sigtramp_frame_unwind): Install
8388 i386_sigtramp_frame_unwind_stop_reason.
8389 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8390 type's size, not the register's.
8391 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8393 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8394 default_frame_unwind_stop_reason.
8395 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8396 (alpha_heuristic_frame_unwind): Ditto.
8397 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8398 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8399 * avr-tdep.c (avr_frame_unwind): Ditto.
8400 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8402 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8403 * frv-tdep.c (frv_frame_unwind): Ditto.
8404 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8405 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8406 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8407 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8408 (hppa_stub_frame_unwind): Ditto.
8409 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8410 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8411 (ia64_libunwind_frame_unwind)
8412 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8413 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8414 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8415 * m32c-tdep.c (m32c_unwind): Ditto.
8416 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8417 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8418 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8419 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8420 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8421 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8422 * mep-tdep.c (mep_frame_unwind): Ditto.
8423 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8424 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8425 (mips_stub_frame_unwind): Ditto.
8426 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8427 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8428 * mt-tdep.c (mt_frame_unwind): Ditto.
8429 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8430 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8431 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8432 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8433 (s390_sigtramp_frame_unwind): Ditto.
8434 * score-tdep.c (score_prologue_unwind): Ditto.
8435 * sh-tdep.c (sh_frame_unwind): Ditto.
8436 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8437 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8438 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8439 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8440 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8441 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8442 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8443 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8444 (sparc64obsd_trapframe_unwind): Ditto.
8445 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8446 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8447 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8448 * v850-tdep.c (v850_frame_unwind): Ditto.
8449 * vax-tdep.c (vax_frame_unwind): Ditto.
8450 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8451 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8452 * xtensa-tdep.c (xtensa_unwind): Ditto.
8454 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8456 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8457 there's always a frame. Use get_frame_pc_if_available instead of
8458 get_frame_pc, and if there's no PC available, don't look up a
8461 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8463 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8466 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8468 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8471 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8473 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8474 * frame.c (frame_unwind_caller_pc_if_available): New.
8475 * stack.c (frame_info): Handle unavailable PC.
8477 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8479 * frame.c (frame_unwind_pc): Rename to ...
8480 (frame_unwind_pc_if_available): ... this. New `pc' output
8481 parameter. Change return type to int. Gracefully handle
8482 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8483 happened, or 1 otherwise.
8484 (frame_unwind_pc): Reimplement on top of
8485 frame_unwind_pc_if_available.
8486 (get_frame_func): Rename to ...
8487 (get_frame_func_if_available): New `pc' output parameter. Change
8488 return type to int. Gracefully handle the PC not being available.
8489 (get_frame_func): Reimplement on top of
8490 get_frame_func_if_available.
8491 (select_frame): Handle the PC being unavailable.
8492 (get_prev_frame): Handle the PC being unavailable.
8493 (get_frame_pc_if_available): New.
8494 (get_frame_address_in_block_if_available): New.
8495 (find_frame_sal): Handle the frame PC not being available.
8496 * frame.h (get_frame_pc_if_available): Declare.
8497 (get_frame_address_in_block_if_available): Declare.
8498 (get_frame_func_if_available): Declare.
8499 * stack.c (print_frame_info): Handle the PC being unavailable.
8500 (find_frame_funname): Ditto.
8501 (print_frame): Handle the PC being unavailable.
8502 (get_frame_language): Ditto.
8503 * blockframe.c (get_frame_block): Ditto.
8504 * macroscope.c (default_macro_scope): Ditto.
8505 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8507 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8509 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8510 NOT_AVAILABLE_ERROR when evaluating the location expression.
8512 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8514 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8515 returning that the register piece is unavailable/optimized out.
8516 (write_pieced_value): Handle get_frame_register_bytes returning
8517 that the register piece is unavailable/optimized out when doing a
8518 read-modify write of a bitfield.
8519 * findvar.c (value_from_register): Handle get_frame_register_bytes
8520 returning that the register piece is unavailable/optimized out.
8521 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8522 and `unavailablep'. Throw error on bad debug info. Use
8523 frame_register instead of frame_register_read, to fill in the new
8525 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8527 * valops.c: (value_assign): Adjust, and handle
8528 get_frame_register_bytes failing.
8529 * spu-tdep.c: Include exceptions.h.
8530 (spu_software_single_step): Adjust, and handle
8531 get_frame_register_bytes failing.
8532 (spu_get_longjmp_target): Ditto.
8533 * gdbarch.sh (register_to_value): Change to return int. New
8534 parameters `optimizedp' and `unavailablep'.
8535 * gdbarch.h, gdbarch.c: Regenerate.
8536 * i386-tdep.c (i386_register_to_value): Adjust to new
8537 gdbarch_register_to_value interface.
8538 * i387-tdep.c (i387_register_to_value): Ditto.
8539 * i387-tdep.h (i387_register_to_value): Ditto.
8540 * alpha-tdep.c (alpha_register_to_value): Ditto.
8541 * ia64-tdep.c (ia64_register_to_value): Ditto.
8542 * m68k-tdep.c (m68k_register_to_value): Ditto.
8543 * mips-tdep.c (mips_register_to_value): Ditto.
8544 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8546 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8548 * findvar.c (value_of_register): Mark the value as unavailable, if
8549 the register is unavailable.
8550 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8551 (frame_register): New `unavailablep' parameter.
8552 (frame_register_read): Update comment.
8553 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8554 Set it if the register is unavailable. If the register is
8555 unavailable, clear the output buffer.
8556 (frame_register): New `unavailablep' parameter. Pass it down.
8557 (frame_unwind_register): Adjust.
8558 (put_frame_register): Adjust.
8559 (frame_register_read): Adjust. Also return false if the register
8561 (frame_register_unwind_location): Adjust.
8562 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8563 is unavailable, mark the value accordingly.
8564 * stack.c (frame_info): Handle unavailable registers.
8566 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8568 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8569 simplify, using regcache_cooked_read.
8571 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8573 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8574 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8575 (regcache_raw_read_unsigned, regcache_raw_read_part)
8576 (regcache_cooked_read, regcache_cooked_read_signed)
8577 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8578 (regcache_cooked_read_ftype): Change return to enum
8580 * regcache.c: Include exceptions.h
8581 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8582 (do_cooked_read): Change return to enum register_status. Always
8583 forward to regcache_cooked_read.
8584 (regcache_raw_read): Change return to enum register_status. If
8585 the register is not REG_VALID, memset the buffer. Return the
8587 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8588 return the register's status.
8589 (regcache_raw_read_unsigned): Ditto.
8590 (regcache_cooked_read): Change return to enum register_status.
8591 Assert that with read-only regcaches, the register's status must
8592 be known. If the regcache is read-only, and the register is not
8593 REG_VALID, memset the buffer. Return the register's status.
8594 (regcache_cooked_read_signed): Change return to enum
8595 register_status. Handle non-REG_VALID registers and return the
8597 (regcache_cooked_read_unsigned): Change return to enum
8598 register_status. Handle non-REG_VALID registers and return the
8600 (regcache_xfer_part, regcache_raw_read_part)
8601 (regcache_cooked_read_part): Change return to enum
8602 register_status. Return the register's status.
8603 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8605 (regcache_dump): Handle unavailable cooked registers.
8606 * frame.c (do_frame_register_read): Adjust interface to match
8607 regcache_cooked_read_ftype.
8608 * gdbarch.sh (pseudo_register_read): Change return to enum
8610 * gdbarch.h, gdbarch.c: Regenerate.
8612 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8614 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8615 register_status. If reading a raw register indicates the raw
8616 register is not valid, return the raw register's status,
8617 otherwise, return REG_VALID.
8618 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8619 register_status. Handle non-REG_VALID raw registers and return
8620 the register's status.
8621 * arm-tdep.c (arm_neon_quad_read)
8622 (arm_pseudo_read): Change return to enum register_status. Handle
8623 non-REG_VALID raw registers and return the register's status.
8624 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8625 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8626 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8627 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8628 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8630 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8631 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8632 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8633 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8634 (m32c_pseudo_register_read): Change return to enum
8635 register_status. Adjust.
8636 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8637 enum register_status. Return the register's status.
8638 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8639 register_status. Return the register's status.
8640 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8641 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8642 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8643 * rs6000-tdep.c (move_ev_register_func): New typedef.
8644 (e500_move_ev_register): Use it. Change return to enum
8645 register_status. Return the register's status.
8646 (do_regcache_raw_read): New function.
8647 (do_regcache_raw_write): New function.
8648 (e500_pseudo_register_read): Change return to enum
8649 register_status. Return the register's status. Use
8650 do_regcache_raw_read.
8651 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8652 (dfp_pseudo_register_read): Change return to enum register_status.
8653 Return the register's status.
8654 (vsx_pseudo_register_read): Ditto.
8655 (efpr_pseudo_register_read): Ditto.
8656 (rs6000_pseudo_register_read): Ditto.
8657 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8658 register_status. Return the register's status.
8659 * sh64-tdep.c (pseudo_register_read_portions): New function.
8660 (sh64_pseudo_register_read): Change return to enum
8661 register_status. Use pseudo_register_read_portions. Return the
8663 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8664 register_status. Return the register's status.
8665 * sh-tdep.c (pseudo_register_read_portions): New function.
8666 (sh_pseudo_register_read): Change return to enum register_status.
8667 Use pseudo_register_read_portions. Return the register's status.
8668 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8669 enum register_status. Return the register's status.
8670 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8671 * spu-tdep.c (spu_pseudo_register_read_spu)
8672 (spu_pseudo_register_read): Ditto.
8673 * xtensa-tdep.c (xtensa_register_read_masked)
8674 (xtensa_pseudo_register_read): Ditto.
8675 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8677 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8679 * python/py-value.c (valpy_getitem): Fix formatting of error function
8682 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8684 ARI fixes: Add missing internationalization markups throughout
8686 * darwin-nat-info.c: Ditto.
8689 * mi/mi-main.c: Ditto.
8691 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8693 ARI fixes: Add missing internationalization markups throughout
8696 * cp-name-parser.y: Ditto.
8699 * objc-exp.y: Ditto.
8702 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8704 ARI fixes: Messages should have no trailing new lines.
8705 * darwin-nat.c (mach_check_error): Remove trailing new line from
8706 warning function call message.
8707 * record.c (bfdcore_read): Idem for error call.
8709 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8711 * common/signals.c (target_signal_from_host): Add _ markup to error
8712 function call message.
8713 (target_signal_to_host): Add _ markup and remove trailing new line
8714 from warning call message.
8715 (target_signal_from_command): Add _ markup to error function call
8718 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8722 * python/python.c (gdbpy_write): Accept a stream argument and
8723 operate to the appropriate stream.
8724 (gdbpy_flush): Likewise.
8725 (_initialize_python): Add stream constants.
8726 (finish_python_initialization): Add GdbOutputErrorFile class.
8728 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8730 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8732 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8734 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8735 to store_signed_integer. Add debug message when relocating CALL
8736 instructions. Fix formatting of debug message.
8737 * i386-tdep.c (i386_relocate_instruction): Ditto.
8739 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8741 * target.h (struct target_ops): Remove to_lookup_symbol field.
8742 (target_lookup_symbol): Delete macro.
8743 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8744 (update_current_target, setup_target_debug): Remove handling
8745 of to_lookup_symbol target_ops field.
8746 * ada-tasks.c (get_known_tasks_addr): Remove use of
8747 target_lookup_symbol.
8748 * coffread.c (coff_symtab_read): Likewise.
8749 * dbxread.c (read_dbx_symtab): Ditto.
8751 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8754 * configure.ac: Add getthrds declaration check.
8755 * configure, config.in: Regenerate.
8756 * aix-thread.c (getthrds): Declare only if not already declared
8757 in procinfo.h. More declaration out of get_signaled_thread to
8760 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8762 * python/py-symtab.c: Populate symtab_object_methods,
8764 (stpy_is_valid): New function.
8765 (salpy_is_valid): Ditto.
8766 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8767 (sympy_is_valid): New function.
8768 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8769 (objfpy_is_valid): New function.
8770 * python/py-inferior.c: Populate inferior_object_methods.
8771 (infpy_is_valid): New function.
8772 * python/py-infthread.c: Populate thread_object_methods.
8773 (thpy_is_valid): New function.
8774 * python/py-block.c: Declare block_object_methods. Populate. Declare
8775 block_iterator_object_methods. Populate.
8776 (blpy_is_valid): New function.
8777 (blpy_iter_is_valid): Ditto.
8779 2011-03-16 Keith Seitz <keiths@redhat.com>
8781 * linespec.c (find_methods): Canonicalize NAME before looking
8783 (name_end): New function.
8784 (keep_name_info): New function.
8785 (decode_line_1): Use keep_name_info.
8786 (decode_compound): Likewise.
8787 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8788 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8791 * linespec.c (locate_first_half): Keep overload information, too.
8792 (decode_compound): Use a string to represent break characters
8794 If P points to a break character, do not increment it.
8795 For C++ and Java, keep overload information and relevant keywords.
8796 If we cannot find a symbol, search the minimal symbols.
8799 * linespec.c (decode_compound): Rename SAVED_ARG to
8801 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8803 Pass a valid block to lookup_symbol.
8804 (lookup_prefix_sym): Likewise.
8805 (find_method): Construct search name based on SYM_CLASS instead
8807 * psymtab.c (lookup_partial_symbol): Add language parameter.
8808 (lookup_symbol_aux_psymtabs): Likewise.
8809 Don't assume that the psymtab we found was the right one. Search
8810 for the desired symbol in the symtab to be certain.
8811 (psymtab_search_name): New function.
8812 (lookup_partial_symbol): Use psymtab_search_name.
8813 Add language parameter.
8814 (read_symtabs_for_function): Add language parameter and pass to
8815 lookup_partial_symbol.
8816 (find_symbol_file_from_partial): Likewise.
8818 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8821 * dwarf2read.c (noop_record_line): New function.
8822 (dwarf_decode_lines): Ignore line tables for GCd functions.
8824 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8826 Fix ARI warnings about new lines at the end of messages, which
8827 are unneeded as there is a new line added at the end of the message
8829 * darwin-nat.c (darwin_stop_inferior): Ditto.
8830 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8831 * dfp.c (decimal_to_number): Ditto.
8832 * exec.c (print_section_info): Ditto.
8833 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8834 * osdata.c (get_osdata): Ditto.
8835 * record.c (bfdcore_write): Ditto.
8836 * remote-mips.c (mips_readchar): Ditto.
8837 * remote.c (read_ptid): Ditto.
8838 * ser-mingw.c (ser_windows_raw): Ditto.
8839 * tracepoint.c (add_local_symbols): Ditto.
8840 * windows-nat.c (fake_create_process): Ditto.
8842 2011-03-16 Tom Tromey <tromey@redhat.com>
8844 * tracepoint.c (stop_tracing): Don't declare.
8845 * event-top.c (after_char_processing_hook): Add `(void)'.
8847 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8849 * NEWS: Add Parameter sub-classing description.
8851 2011-03-16 Kai Tietz <ktietz@redhat.com>
8853 * MAINTAINERS: Update my e-mail address.
8855 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8857 * MAINTAINERS: Add myself for write after approval privileges.
8859 2011-03-15 Michael Snyder <msnyder@vmware.com>
8861 * frame.c (find_frame_sal): Assert sym is not null.
8863 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8865 * objc-lang.c (selectors_info): Check strchr for null result.
8867 * stabsread.c (define_symbol): Guard against bad stabstring input.
8869 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8871 Remove trailing spaces and tabulations from pascal language
8876 p-valprint.c: Ditto.
8878 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8880 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8881 than LOW. Comment it.
8882 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8883 HIGHPC not strictly higher than LOWPC.
8885 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8887 Fix formatting of function declarations returning a pointer in
8889 * varobj.c (varobj_add_child): Ditto.
8890 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8891 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8893 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8896 for the "generic" vector ABI used with GCC 4.3 and later.
8897 (ppc64_sysv_abi_return_value): Likewise.
8899 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8901 * infcall.c (call_function_by_hand): Function return value is
8902 always a non_lval, even when using struct_return.
8904 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8906 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8907 (map_display_numbers): New.
8908 (do_delete_display): New.
8909 (undisplay_command): Use map_display_numbers.
8910 (do_enable_disable_display): New.
8911 (enable_disable_display_command): New function.
8912 (enable_display): Delete.
8913 (enable_display_command): New.
8914 (disable_display_command): Reimplement.
8915 (_initialize_printcmd): Adjust "enable display" command to use
8916 `enable_display_command' as callback.
8918 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8920 * NEWS: Add Python breakpoint 'stop' operation.
8922 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8924 * NEWS: Delete duplicate entry. Fix typo.
8926 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8928 Fix ARI warning about function names in first column.
8929 Put prototype declaration on same line as return type.
8930 * objc-exp.y: Ditto.
8932 * python/py-stopevent.h: Ditto.
8933 For long function names, split parameters to
8934 allow function name on same line as return type.
8935 * solib-pa64.c: Ditto.
8938 For long function declaration, use single line.
8939 * hppa-tdep.h: Ditto.
8940 * inferior.h: Ditto.
8942 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8944 * python/python.h: Declare gdbpy_should_stop and
8945 gdbpy_breakpoint_has_py_cond.
8946 * python/python.c: Add python.h to includes. Remove python.h from
8947 HAVE_PYTHON definition
8948 (gdbpy_should_stop): New dummy function.
8949 (gdbpy_breakpoint_has_py_cond): New dummy function.
8950 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8951 sub-classing capabilities.
8952 (gdbpy_should_stop): New function.
8953 (gdbpy_breakpoint_has_py_cond): New function.
8954 (local_setattro): New function.
8955 * breakpoint.c (condition_command): Add check for Python 'stop'
8957 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8958 operation function as part of stop/continue tests.
8960 2011-03-14 Tom Tromey <tromey@redhat.com>
8963 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8964 (needs_frame_dwarf_call): Likewise.
8966 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8968 Fix ARI warning about functions without parameters that do not
8970 * breakpoint.c (all_tracepoints): Replace () by (void).
8971 * f-exp.y (match_string_literal): Ditto.
8973 * m2-exp.y (yylex): Ditto.
8974 * mep-tdep.c (current_me_module): Ditto.
8975 (current_options): Ditto.
8976 (current_cop_data_bus_width): Ditto.
8977 (current_cr_names): Ditto.
8978 (current_cr_is_float): Ditto.
8979 (current_ccr_names): Ditto.
8980 * objc-exp.y (yylex): Ditto.
8981 * p-exp.y (yylex): Ditto.
8982 * remote.c (send_interrupt_sequence): Ditto.
8983 * tracepoint.c (current_trace_status): Ditto.
8984 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8985 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8987 2011-03-11 Michael Snyder <msnyder@vmware.com>
8989 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8990 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8991 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8992 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8993 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8995 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8996 (delete_async_event_handler): Ditto.
8998 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9000 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9002 * top.c (set_verbose): Assert showcmd was found.
9004 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9006 * xtensa-tdep.c (warning_once): Correct style issues.
9008 2011-03-11 Yao Qi <yao@codesourcery.com>
9010 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9012 2011-03-11 Andreas Schwab <schwab@redhat.com>
9014 * common/aclocal.m4: Remove.
9016 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9018 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9019 (xtensa_write_register, xtensa_read_register): Likewise.
9020 (xtensa_hextochar): Removed.
9021 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9023 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9025 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9026 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9027 (xtensa_alloc_frame_cache): Add initialization for new fields.
9028 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9029 (warning_once): New function.
9030 (xtensa_insn_kind): New item c0opc_and.
9031 (call0_classify_opcode): Add the case for AND instruction.
9032 (call0_track_op): Change arguments. New local variable litbase.
9033 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9034 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9036 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9037 (call0_analyze_prologue): Update the comments. Change arguments.
9038 Add the variety of updates to handle extended prologues, which now can
9039 conduct dynamic stack adjustments.
9040 (call0_frame_cache): Likewise.
9041 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9042 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9044 2011-03-10 Michael Snyder <msnyder@vmware.com>
9046 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9047 (cmd_qtframe): Ditto.
9048 (cmd_qtbuffer): Ditto.
9049 (cmd_bigqtbuffer): Ditto.
9051 2011-03-10 Tom Tromey <tromey@redhat.com>
9053 * tracepoint.c (trace_actions_command): Update.
9054 * thread.c (thread_apply_command): Update.
9055 * reverse.c (delete_bookmark_command): Update.
9056 (bookmarks_info): Update.
9057 * printcmd.c (undisplay_command): Update.
9058 * memattr.c (mem_enable_command): Update.
9059 (mem_disable_command): Update.
9060 (mem_delete_command): Update.
9061 * inferior.c (detach_inferior_command): Update.
9062 (kill_inferior_command): Update.
9063 (remove_inferior_command): Update.
9064 * cli/cli-utils.h (struct get_number_or_range_state): New.
9065 (init_number_or_range): Declare.
9066 (get_number_or_range): Update.
9067 * cli/cli-utils.c (init_number_or_range): New function.
9068 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9070 (number_is_in_list): Update.
9071 * breakpoint.h (get_tracepoint_by_number): Update.
9072 * breakpoint.c (map_breakpoint_numbers): Update for change to
9073 get_number_or_range.
9074 (find_location_by_number): Use get_number, not
9075 get_number_or_range.
9076 (trace_pass_set_count): New function.
9077 (trace_pass_command): Update for change to get_number_or_range.
9079 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9082 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9084 * python/py-param.c (add_setshow_generic): Add set/show callback
9085 parameters. Register Python object context.
9086 (get_show_value): New function.
9087 (get_set_value): New function.
9088 (call_doc_function): New function.
9089 (get_doc_string): Move behind get_show_value/get_set_value.
9091 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9093 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9095 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9097 * xtensa-tdep.c (xtensa_read_register): Add comment.
9098 (xtensa_write_register): Likewise.
9099 (xtensa_hextochar): Add comment and update to match coding conventions.
9100 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9101 (execute_l32e, execute_s32e, execute_code): Update comments.
9102 (xtensa_exception_handler_t): Update to match coding conventions.
9103 (xtensa_insn_kind): Likewise.
9105 2011-03-09 Michael Snyder <msnyder@vmware.com>
9107 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9109 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9111 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9113 2011-03-09 Tom Tromey <tromey@redhat.com>
9115 * thread.c (restore_selected_frame): Handle frame_level == -1.
9116 (make_cleanup_restore_current_thread): Use
9117 get_selected_frame_if_set.
9118 * frame.h (get_selected_frame_if_set): Declare.
9119 * frame.c (get_selected_frame_if_set): New function.
9121 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9123 * cli/cli-cmds.c (shell_escape): Use lbasename.
9124 * coffread.c (coff_start_symtab): Constify parameter.
9125 (complete_symtab): Constify `name' parameter.
9126 (coff_symtab_read): Constify `filestring' local.
9127 (coff_getfilename): Constify return and `result' local.
9129 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9130 * linux-fork.c (info_checkpoints_command): Use lbasename.
9131 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9132 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9133 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9134 * procfs.c (procfs_make_note_section): Use lbasename.
9135 * tui/tui-io.c (printable_part): Constity return and parameter.
9137 (print_filename): Constify parameters, and local `s'.
9138 (tui_rl_display_match_list): Constify local `temp'.
9140 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9143 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9144 Fix DWARF-3+ DW_AT_accessibility default assumption.
9145 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9146 cu->header.version >= 3.
9148 2011-03-09 Yao Qi <yao@codesourcery.com>
9150 * common/Makefile.in: Remove.
9151 * common/configure: Remove.
9152 * common/configure.ac: Remove.
9154 2011-03-09 Yao Qi <yao@codesourcery.com>
9157 2011-02-11 Yao Qi <yao@codesourcery.com>
9159 * common/Makefile.in: Add copyright header.
9161 2011-02-11 Yao Qi <yao@codesourcery.com>
9163 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9165 * configure.ac: Add common to sub dir.
9166 * configure: Regenerate.
9168 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9170 * xtensa-tdep.c (call0_ret): New function.
9171 (xtensa_skip_prologue): Speed up analysis.
9173 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9175 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9176 while executing MI command -data-list-changed-registers.
9178 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9180 * xtensa-tdep.c (xtensa_read_register): New function.
9181 (xtensa_write_register): New function.
9182 (xtensa_find_register_by_name): New function.
9183 (xtensa_windowed_frame_cache): Update comments in type description.
9184 (xtensa_frame_cache): Likewise.
9185 (xtensa_window_interrupt_insn): New function.
9186 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9187 (xtensa_insn_kind): Add new instructions.
9188 (rwx_special_register): New function.
9189 (call0_classify_opcode): Add new instructions to the analysis.
9190 (a0_saved, a7_saved, a11_saved): New variables.
9191 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9192 (execute_l32e): New function.
9193 (execute_s32e): New function.
9194 (xtensa_exception_handler_t): New type.
9195 (execute_code): New function.
9196 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9197 analysis for Xtensa Window Exception handlers.
9199 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9201 * xtensa-tdep.c (TX_PS): New.
9202 (windowing_enabled): Update to count for Call0 ABI.
9203 (xtensa_hextochar): New.
9204 (xtensa_init_reggroups): Make algorithm generic.
9205 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9207 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9209 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9211 2011-03-08 Michael Snyder <msnyder@vmware.com>
9213 * i386-tdep.c (i386_follow_jump): Check return value of
9215 (i386_analyze_struct_return): Ditto.
9216 (i386_skip_probe): Ditto.
9217 (i386_match_insn): Ditto.
9218 (i386_skip_noop): Ditto.
9219 (i386_analyze_frame_setup): Ditto.
9220 (i386_analyze_register_saves): Ditto.
9221 (i386_skip_prologue): Ditto.
9222 (i386_skip_main_prologue): Ditto.
9224 * target.c (read_whatever_is_readable): Fix memory leak.
9226 * i386-tdep.c (i386_process_record): Document fall through.
9228 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9230 Fix DWARF-3+ DW_AT_accessibility default assumption.
9231 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9232 cu->header.version >= 3.
9234 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9236 * remote.c (remote_check_symbols): Skip if the target has no
9239 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9241 * target.c (read_whatever_is_readable): Reformat comment,
9242 with a minor typo fix. Minor reformatting of the code.
9244 2011-03-08 Yao Qi <yao@codesourcery.com>
9246 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9247 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9248 Use cached result instead of calling displaced_in_arm_mode again.
9249 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9250 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9251 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9252 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9253 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9254 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9255 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9256 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9257 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9258 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9259 (arm_catch_kernel_helper_return): Likewise.
9260 * gdb/arm-tdep.h : Update function declarations.
9262 2011-03-07 Michael Snyder <msnyder@vmware.com>
9264 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9266 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9268 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9270 * elfread.c (elf_symtab_read): Stop memory leak.
9272 * main.c (captured_main): Fix memory leak.
9274 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9276 * ada-lang.c (compare_names): Call is_name_suffix with string1
9279 2011-03-07 Tom Tromey <tromey@redhat.com>
9281 * xcoffread.c (xcoff_sym_fns): Update.
9282 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9283 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9284 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9285 (symbol_file_add_with_addrs_or_offsets): Likewise.
9286 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9287 * somread.c (som_sym_fns): Update.
9288 * psymtab.h (require_partial_symbols): Declare.
9289 * psymtab.c (require_partial_symbols): New function.
9290 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9291 (ALL_OBJFILE_PSYMTABS): Undef.
9292 (ALL_PSYMTABS): Move from psympriv.h.
9293 (lookup_partial_symtab, find_pc_sect_psymtab)
9294 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9295 (find_last_source_symtab_from_partial)
9296 (forget_cached_source_info_partial)
9297 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9298 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9299 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9300 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9301 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9302 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9303 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9304 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9305 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9307 * mipsread.c (ecoff_sym_fns): Update.
9308 * machoread.c (macho_sym_fns): Update.
9309 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9310 (read_psyms): New function.
9311 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9312 (elf_sym_fns_lazy_psyms): New global.
9313 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9314 dwarf2_build_psymtabs.
9315 * dbxread.c (aout_sym_fns): Update.
9316 * coffread.c (coff_sym_fns): Update.
9318 2011-03-07 Tom Tromey <tromey@redhat.com>
9320 * infrun.c (print_exited_reason): Include inferior id and pid in
9323 2011-03-07 Tom Tromey <tromey@redhat.com>
9325 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9327 (target_has_execution_1): Update.
9328 (target_has_execution_current): Declare.
9329 (target_has_execution): Call target_has_execution_current.
9330 (default_child_has_execution): Update.
9331 * target.c (default_child_has_execution): Add 'the_ptid'
9333 (target_has_execution_1): Likewise.
9334 (target_has_execution_current): New function.
9335 (add_target): Update.
9336 (init_dummy_target): Update.
9337 * remote-m32r-sdi.c (m32r_has_execution): New function.
9338 (init_m32r_ops): Use it.
9339 * record.c (record_core_has_execution): Now static. Add
9340 'the_ptid' parameter.
9341 * inferior.c (have_live_inferiors): Don't save current thread.
9342 Use target_has_execution_1.
9344 2011-03-07 Yao Qi <yao@codesourcery.com>
9346 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9348 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9350 * elfread.c (elf_symtab_read): Minor reformatting.
9352 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9354 * objc-lang.c (selectors_info): Minor reformatting.
9356 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9358 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9360 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9361 Michael Snyder <msnyder@vmware.com>
9363 * ada-valprint.c (ada_val_print_array): Move the declaration of
9364 "byte_order" and "elttype" inside the block where these variables
9365 are actually used. Remove some special handling for the case
9366 where "elttype" and "eltlen" are null. Replace by a comment
9367 and a couple of assertion checks.
9369 2011-03-05 Michael Snyder <msnyder@vmware.com>
9371 * source.c (add_path): Replace semicolon at end of block.
9372 * dwarf2expr.c (execute_stack_op): Ditto.
9374 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9376 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9377 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9378 (bfin-*-*): Likewise.
9380 2011-03-05 Michael Snyder <msnyder@vmware.com>
9382 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9383 * mdebugread.c (parse_symbol): Ditto.
9384 * parse.c (parse_exp_in_context): Ditto.
9385 * source.c (add_path): Ditto.
9386 * utils.c (gnu_debuglink_crc32): Ditto.
9387 * varobj.c (variable_language): Ditto.
9389 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9391 2011-03-04 Michael Snyder <msnyder@vmware.com>
9393 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9395 * symfile.c (simple_overlay_update): Check for null return value
9396 from lookup_minimal_symbol.
9398 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9400 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9402 * eval.c (parse_and_eval_address_1): Remove function.
9403 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9404 instead of parse_and_eval_address_1.
9405 * value.h (parse_and_eval_address_1): Remove prototype.
9407 2011-03-04 Michael Snyder <msnyder@vmware.com>
9409 * remote.c (putpkt_binary): Document that case stmt falls through.
9411 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9413 * breakpointc (print_it_typical): Move NULL check from here...
9414 (print_bp_stop_message): ... to here.
9416 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9418 * breakpoint.c (enable_command): Use break instead of continue,
9419 and fill in a missing break.
9420 (disable_command): Ditto.
9422 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9424 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9425 (terminal_save_ours): Remove misleading comment.
9426 (inflow_inferior_data_cleanup): Free ttystate.
9427 (inflow_inferior_exit): Likewise.
9428 (copy_terminal_info): Copy ttystate.
9430 * serial.c (serial_copy_tty_state): New function.
9431 * serial.h (serial_copy_tty_state): Add prototype.
9432 (struct serial_ops): Add copy_tty_state callback.
9433 * ser-base.c (ser_base_copy_tty_state): New function.
9434 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9435 * ser-go32.c (dos_copy_tty_state): New function.
9436 (dos_ops): Install copy_tty_state callback.
9437 * ser-mingw.c (_initialize_ser_windows): Likewise.
9438 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9439 * ser-unix.c (hardwire_copy_tty_state): New function.
9440 (_initialize_ser_hardwire): Install it.
9442 2011-03-04 Michael Snyder <msnyder@vmware.com>
9444 * breakpoint.c (create_breakpoint): Add missing break statement.
9446 Reverting this patch:
9447 * infcall.c (call_function_by_hand): Add break statements for lint.
9449 Reverting this patch:
9450 * cli/cli-script.c (script_from_file): Add break for lint.
9452 2011-03-04 Michael Snyder <msnyder@vmware.com>
9454 * solib.c (reload_shared_libraries_1): Close memory leak.
9456 2011-03-03 Tom Tromey <tromey@redhat.com>
9459 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9462 2011-03-03 Michael Snyder <msnyder@vmware.com>
9464 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9465 fields of struct 'st' to zero.
9467 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9468 sal.pspace before calling set_current_source_symtab_and_line.
9470 2011-03-03 Yao Qi <yao@codesourcery.com>
9472 * Makefile.in (configure-common): Remove. Let Makefile
9473 in dir common to rebuild itself.
9474 (common/Makefile): Likewise.
9476 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9478 * utils.c (parse_escape): Add i18n markup in error message.
9480 2011-03-03 Yao Qi <yao@codesourcery.com>
9482 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9484 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9485 (displaced_write_reg, displaced_read_reg): Likewise.
9486 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9487 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9488 (cleanup_branch): Replace magic number 14 and 15 with
9489 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9491 2011-03-02 Michael Snyder <msnyder@vmware.com>
9493 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9495 * cli/cli-script.c (script_from_file): Add break for lint.
9497 * mdebugread.c (parse_partial_symbols): Fix indent.
9499 * target-descriptions.c (tdesc_gdb_type): No need to call
9500 xstrdup, callee saves a copy.
9502 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9504 * infcall.c (call_function_by_hand): Add break statements for lint.
9506 * utils.c (parse_escape): Escape the escape char.
9508 * python/py-inferior.c (build_inferior_list): Error out if
9509 PyList_Append fails.
9510 (gdbpy_inferiors): Error out if build_inferior_list fails.
9512 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9515 * record.c (record_restore): Move printf to before error return.
9517 2011-03-02 Yao Qi <yao@codesourcery.com>
9519 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9520 is_thumb and insn_size.
9521 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9522 on both ARM and Thumb mode.
9523 (arm_process_displaced_insn): Set is_thumb and insn_size.
9524 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9525 (arm_displaced_step_fixup): Likewise.
9527 2011-03-01 Michael Snyder <msnyder@vmware.com>
9529 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9531 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9533 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9535 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9537 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9540 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9541 which shadows function parameter.
9543 * tracepoint.c (create_tsv_from_upload): Superfluous call
9544 to xstrdup. Callee already calls xstrdup.
9546 * linespec.c (decode_line_1): Remove unnecessary null check.
9548 * tracepoint.c (scope_info): Fix mem leak, remove underused
9551 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9552 superfluous null check.
9554 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9555 (value_of_builtin_frame_fp_reg): Ditto.
9557 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9559 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9562 * linespec.c (decode_line_1): Check for null before dereference.
9564 * reverse.c (record_restore): Move null-check to before pointer
9567 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9569 * objc-lang.c (selectors_info): Add explanitory comment.
9570 (classes_info): Ditto.
9572 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9574 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9575 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9576 versions of the trampoline. Handle Thumb vs. ARM addresses.
9577 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9578 (arm_linux_init_abi): Install it.
9579 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9580 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9582 2011-02-28 Michael Snyder <msnyder@vmware.com>
9584 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9585 a little bigger, to avoid possibility of an overflow.
9587 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9588 buffers a little bigger, to avoid possibility of an overflow.
9590 * coffread.c (coff_getfilename): Add check to avoid overflow.
9592 * objc-lang.c (selectors_info): Add a small safety margin to
9594 (classes_info): Error out on too long REGEXP.
9596 * infrun.c (handle_inferior_event): Remove unused function call.
9598 * fork-child.c (fork_inferior): Remove ifdef'd code and
9601 * linux-thread-db.c (attach_thread): Discard unused value.
9603 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9605 * remote.c (remote_get_noisy_reply): Discard unused value.
9606 (remote_vcont_resume): Ditto.
9607 (remote_stop_ns): Ditto.
9609 * linespec.c (decode_objc): Delete unused variable.
9611 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9613 * dwarf2read.c (add_partial_symbol): Discard unused values.
9614 (read_base_type): Delete unused variable.
9616 * dbxread.c (read_dbx_symtab): Discard unused value.
9618 * eval.c (evaluate_subexp_standard): Delete unused variable,
9619 and discard unused values.
9621 * infcmd.c (_initialize_infcmd): Discard unused values.
9623 * stabsread.c (rs6000_builtin_type): Missing break statement.
9625 * dbxread.c (process_one_symbol): Discard unused value.
9627 * coffread.c (coff_end_symtab): Delete unused variable.
9629 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9630 (dwarf2_add_typedef): Delete unused variable.
9631 (read_namespace): Ditto.
9632 (dwarf_decode_macros): Ditto.
9634 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9636 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9638 * p-valprint.c (pascal_val_print): Discard unused value.
9640 * utils.c (nquery): Call va_end before return;
9644 * proc-service.c (ps_plog): Call va_end before return.
9646 2011-02-28 Tom Tromey <tromey@redhat.com>
9648 * python/python.c (gdbpy_value_cst): New global.
9649 (_initialize_python): Initialize it.
9650 * python/python-internal.h (gdbpy_value_cst): Declare.
9651 * python/py-value.c (convert_value_from_python): Use
9654 2011-02-28 Michael Snyder <msnyder@vmware.com>
9656 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9658 * breakpoint.c (catch_syscall_completer): Free malloced list.
9660 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9662 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9663 (lval_func_check_synthetic_pointer): Ditto.
9664 (lval_func_free_closure): Fix use-after-free.
9666 2011-02-28 Tom Tromey <tromey@redhat.com>
9668 * psymtab.c (expand_partial_symbol_tables): Use
9669 ALL_OBJFILE_PSYMTABS.
9671 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9673 * objc-lang.c (selectors_info): Error on too long REGEXP.
9675 2011-02-28 Michael Snyder <msnyder@vmware.com>
9677 * python/py-param.c (set_parameter_value): Add missing
9680 * linux-record.c (record_linux_system_call): Add missing
9683 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9685 * breakpoint.c (print_one_breakpoint_location): Remove unused
9686 argument PRINT_ADDRESS_BITS. Update callers.
9687 (print_one_breakpoint): Likewise.
9689 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9691 * breakpoint.c (wrap_indent_at_field): New function.
9692 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9693 Allocate ui_stream locally instead of using STB argument.
9694 (print_one_breakpoint_location): Update call.
9695 * ui-out.c (ui_out_query_field): New function.
9696 * ui-out.h (ui_out_query_field): Add prototype.
9698 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9700 From Michael Snyder <msnyder@vmware.com>
9701 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9703 2011-02-27 Michael Snyder <msnyder@vmware.com>
9705 * objc-lang.c (selectors_info): Prevent string overrun.
9707 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9710 * symtab.c (rbreak_command): Move variable 'file_name' to
9713 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9714 param with a local variable of the same name.
9716 2011-02-27 Michael Snyder <msnyder@vmware.com>
9718 * value.c (value_from_history_ref): New function.
9719 * value.h (value_from_history_ref): Export.
9720 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9721 to parse value history references.
9722 * cli/cli-utils.h (get_number_trailer): Update comment.
9724 2011-02-27 Michael Snyder <msnyder@vmware.com>
9726 * inferior.c (detach_inferior_command): Use get_number_or_range.
9727 (kill_inferior_command): Ditto.
9728 (remove_inferior_command): Ditto.
9729 (initialize_inferiors): Make command names plural.
9730 Update help strings.
9732 2011-02-27 Michael Snyder <msnyder@vmware.com>
9734 * darwin-nat-info.c: Fix comment typo.
9735 * dwarf2expr.h: Ditto.
9736 * fbsd-nat.c: Ditto.
9737 * fbsd-nat.h: Ditto.
9738 * frame-unwind.h: Ditto.
9740 * hppa-hpux-tdep.c: Ditto.
9741 * i386-linux-nat.c: Ditto.
9742 * linux-nat.c: Ditto.
9743 * nbsd-nat.c: Ditto.
9744 * nbsd-nat.h: Ditto.
9745 * ppc-linux-tdep.c: Ditto.
9748 * tui/tui-winsource.c: Ditto.
9750 2011-02-26 Michael Snyder <msnyder@vmware.com>
9752 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9754 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9756 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9757 with a local variable of the same name.
9759 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9760 param with a local variable of the same name.
9761 (i387_supply_xsave): Ditto.
9763 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9764 that it does not shadow a function parameter.
9766 * i386-nat.c (i386_length_and_rw_bits): Document that case
9767 statement is meant to fall through.
9769 * expprint.c (dump_subexp_body_standard): Document that case
9770 statement is meant to fall through.
9772 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9773 dead if statement. Condition can't be false.
9775 2011-02-25 Michael Snyder <msnyder@vmware.com>
9777 * arm-tdep.c: Fix typos in comments.
9778 * bsd-uthread.c: Ditto.
9779 * completer.c: Ditto.
9781 * cp-namespace.c: Ditto.
9782 * cp-support.c: Ditto.
9783 * cris-tdep.c: Ditto.
9785 * dwarf2read.c: Ditto.
9787 * gdbtypes.h: Ditto.
9788 * inferior.h: Ditto.
9789 * mdebugread.c: Ditto.
9790 * mips-tdep.c: Ditto.
9791 * ppc-linux-nat.c: Ditto.
9792 * ppc-linux-tdep.c: Ditto.
9793 * printcmd.c: Ditto.
9794 * sol-thread.c: Ditto.
9795 * solib-frv.c: Ditto.
9797 * sparc64-tdep.c: Ditto.
9798 * spu-tdep.c: Ditto.
9799 * stabsread.c: Ditto.
9804 * python/py-block.c: Ditto.
9805 * python/py-symbol.c: Ditto.
9806 * python/py-symtab.c: Ditto.
9807 * python/py-value.c: Ditto.
9808 * tui/tui-win.c: Ditto.
9810 2011-02-25 Michael Snyder <msnyder@vmware.com>
9812 * inferior.c (print_inferior): Accept a string instead of an int
9813 for requested_inferiors, and use get_number_or_range to parse it.
9814 (info_inferiors_command): Pass args string to print_inferior.
9815 (initialize_inferiors): Change help string for info inferiors.
9816 * inferior.h (print_inferior): Export prototype change.
9818 2011-02-25 Tom Tromey <tromey@redhat.com>
9820 * common/ax.def (invalid2): Set to 0x31.
9822 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9824 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9826 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9828 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9830 2011-02-24 Michael Snyder <msnyder@vmware.com>
9832 * Makefile.in (clean): Make clean should remove generated files
9833 observer.h and observer.inc.
9835 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9837 Revert the following patch (not approved yet):
9838 2011-02-21 Hui Zhu <teawater@gmail.com>
9839 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9840 * ax-gdb.c (gen_printf_expr_callback): New function.
9841 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9842 * ax-general.c (ax_memcpy): New function.
9843 (ax_print): Handle "printf".
9845 * ax.h (ax_memcpy): Forward declare.
9846 * common/ax.def (invalid2): Removed.
9847 (printf): New entry.
9848 * printcmd.c (printcmd.h): New include.
9849 (string_printf): New function.
9850 (ui_printf): Removed.
9851 (printf_command): Remove static. Call string_printf.
9852 (eval_command): Call string_printf.
9853 * printcmd.h: New file.
9854 * tracepoint.c (validate_actionline,
9855 encode_actions_1): handle printf_command.
9857 2011-02-23 Tom Tromey <tromey@redhat.com>
9859 * ax-general.c (ax_pick): Add missing newline.
9861 2011-02-23 Michael Snyder <msnyder@vmware.com>
9863 * breakpoint.c (breakpoint_1): Change first argument from an int
9864 to a char pointer, so that the function now accepts a list of
9865 breakpoints rather than just one. Use new function
9866 'number_is_in_list' to implement.
9867 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9868 (watchpoints_info): Ditto.
9869 (tracepoints_info): Ditto.
9870 (maintenance_info_breakpoints): Ditto.
9871 (_initialize_breakpoint): Update help strings to reflect the fact
9872 that these functions can now take more than one argument.
9873 * cli/cli-utils.c (number_is_in_list): New function.
9874 * cli/cli-utils.h (number_is_in_list): Export.
9876 2011-02-23 Michael Snyder <msnyder@vmware.com>
9878 * memattr.c (mem_enable_command): Use get_number_or_range.
9879 (mem_disable_command): Ditto.
9880 (mem_delete_command): Ditto.
9881 (_initialize_mem): Tweak usage message to reflect multiple
9884 2011-02-22 Doug Evans <dje@google.com>
9886 Add gdb.lookup_global_symbol python function.
9888 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9889 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9890 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9892 2011-02-22 Tom Tromey <tromey@redhat.com>
9894 * language.c (language_class_name_from_physname): Rename
9895 'curr_language' argument to 'lang'; use in body.
9897 2011-02-22 Michael Snyder <msnyder@vmware.com>
9899 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9901 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9903 * frame-unwind.h: Fix comment to mention the this frame, not the
9906 2011-02-22 Tom Tromey <tromey@redhat.com>
9908 * symfile.c (auto_solib_limit): Remove.
9909 * symfile.h (auto_solib_limit): Remove.
9911 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9913 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9915 2011-02-21 Michael Snyder <msnyder@vmware.com>
9917 * gdbthread.h (print_thread_info): Change prototype.
9918 * thread.c (print_thread_info): Accept char* instead of int for
9919 requested_threads argument. Use new function number_is_in_list
9920 to determine which threads to list.
9921 (info_threads_command): Pass char* to print_thread_info.
9922 * cli/cli-utils.c (number_is_in_list): New function.
9923 * cli/cli-utils.h (number_is_in_list): Export.
9924 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9926 (print_one_inferior): Ditto.
9927 (mi_cmd_list_thread_groups): Ditto.
9929 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9931 * common/Makefile.in (CFLAGS): New.
9932 (COMPILE): Add $(CFLAGS).
9934 2011-02-21 Tom Tromey <tromey@redhat.com>
9936 * breakpoint.c (catch_syscall_command_1): Fix typo.
9938 2011-02-21 Tom Tromey <tromey@redhat.com>
9940 * reverse.c: Include cli-utils.h.
9941 * printcmd.c: Include cli-utils.h.
9942 (string_printf): Use skip_spaces.
9943 * cli/cli-utils.h: New file.
9944 * cli/cli-utils.c: New file.
9945 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9946 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9947 * breakpoint.h (get_number, get_number_or_range): Move to
9949 * breakpoint.c: Include cli-utils.h.
9950 (get_number_trailer, get_number, get_number_or_range)
9951 (ep_skip_leading_whitespace): Move to cli-utils.c.
9952 (create_breakpoint_sal, find_condition_and_thread)
9953 (decode_static_tracepoint_spec, watch_command_1)
9954 (watch_maybe_just_location, ep_parse_optional_if_clause)
9955 (catch_fork_command_1, catch_exec_command_1)
9956 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9957 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9958 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9959 (HFILES_NO_SRCDIR): Add cli-utils.h.
9960 (cli-utils.o): New target.
9962 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9964 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9965 before calling discard_all_inferiors.
9967 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9969 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9970 (struct builtin_opencl_type): Remove.
9971 (builtin_opencl_type): Change return type to "struct type **".
9972 (lookup_opencl_vector_type): Update caller.
9973 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9974 (build_opencl_types): Install plain array of "struct type *"
9975 instead of "struct builtin_opencl_type".
9977 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9978 Ulrich Weigand <uweigand@de.ibm.com>
9980 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9981 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9982 (struct arm_linux_hwbp_cap): New type.
9983 (arm_linux_get_hwbp_cap): New function.
9984 (arm_linux_get_hw_breakpoint_count): Likewise.
9985 (arm_linux_get_hw_watchpoint_count): Likewise.
9986 (arm_linux_can_use_hw_breakpoint): Likewise.
9987 (arm_hwbp_type): New type.
9988 (arm_hwbp_control_t): Likewise.
9989 (struct arm_linux_hw_breakpoint): Likewise.
9990 (struct arm_linux_thread_points): Likewise.
9991 (arm_threads): New global variable.
9992 (arm_linux_find_breakpoints_by_tid): New function.
9993 (arm_hwbp_control_initialize): Likewise.
9994 (arm_hwbp_control_is_enabled): Likewise.
9995 (arm_hwbp_control_disable): Likewise.
9996 (arm_linux_hw_breakpoint_initialize): Likewise.
9997 (arm_linux_get_hwbp_type): Likewise.
9998 (arm_linux_hw_watchpoint_initialize): Likewise.
9999 (arm_linux_hw_breakpoint_equal): Likewise.
10000 (arm_linux_insert_hw_breakpoint1): Likewise.
10001 (arm_linux_remove_hw_breakpoint1): Likewise.
10002 (arm_linux_insert_hw_breakpoint): Likewise.
10003 (arm_linux_remove_hw_breakpoint): Likewise.
10004 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10005 (arm_linux_insert_watchpoint): Likewise.
10006 (arm_linux_remove_watchpoint): Likewise.
10007 (arm_linux_stopped_data_address): Likewise.
10008 (arm_linux_stopped_by_watchpoint): Likewise.
10009 (arm_linux_watchpoint_addr_within_range): Likewise.
10010 (arm_linux_new_thread): Likewise.
10011 (arm_linux_thread_exit): Likewise.
10012 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10013 related target callbacks. Register arm_linux_new_thread and
10014 arm_linux_thread_exit.
10015 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10016 * arm-tdep.c (arm_pc_is_thumb): Make global.
10017 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10019 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10021 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10022 per-frame locations while within a function epilogue.
10024 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10026 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10027 to GNU coding standards.
10029 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10031 Allow use of mingw native on Windows 95 OS.
10032 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10033 (ser_windows_close): Only call CancelIo if function exists.
10034 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10035 to check for existence of CancelIo function in kernel32 DLL.
10037 2011-02-21 Hui Zhu <teawater@gmail.com>
10039 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10040 * ax-gdb.c (gen_printf_expr_callback): New function.
10041 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10042 * ax-general.c (ax_memcpy): New function.
10043 (ax_print): Handle "printf".
10045 * ax.h (ax_memcpy): Forward declare.
10046 * common/ax.def (invalid2): Removed.
10047 (printf): New entry.
10048 * printcmd.c (printcmd.h): New include.
10049 (string_printf): New function.
10050 (ui_printf): Removed.
10051 (printf_command): Remove static. Call string_printf.
10052 (eval_command): Call string_printf.
10053 * printcmd.h: New file.
10054 * tracepoint.c (validate_actionline,
10055 encode_actions_1): handle printf_command.
10057 2011-02-19 Michael Snyder <msnyder@vmware.com>
10059 * reverse.c (delete_one_bookmark): Argument is now bookmark
10060 id rather than pointer to bookmark struct.
10061 (delete_bookmark_command): Use get_number_or_range.
10062 (goto_bookmark_command): Parse with get_number instead of strtoul.
10063 (bookmark_1): New function. Print info for one bookmark.
10064 (bookmarks_info): Use get_number_or_range and bookmark_1.
10066 2011-02-18 Michael Snyder <msnyder@vmware.com>
10068 * thread.c (info_threads_command): Re-implement using
10069 get_number_or_range.
10070 (thread_apply_command): Ditto.
10072 2011-02-18 Tom Tromey <tromey@redhat.com>
10074 * common/ax.def: New file.
10075 * ax.h (enum agent_op): Use ax.def.
10076 * ax-general.c (aop_map): Use ax.def.
10078 2011-02-18 Tom Tromey <tromey@redhat.com>
10080 * ax-general.c (aop_map): Add pick and rot.
10081 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10082 <DW_OP_rot>: Implement.
10083 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10084 (ax_pick): Declare.
10085 * ax-general.c (ax_pick): New function.
10087 2011-02-18 Tom Tromey <tromey@redhat.com>
10089 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10091 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10092 Tom Tromey <tromey@redhat.com>
10094 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10095 make_symbol_overload_list_block with NULL BLOCK.
10096 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10098 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10100 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10101 * breakpoint.h (get_number_or_range): Declare.
10102 * printcmd.c (ALL_DISPLAYS): Declare.
10103 (delete_display): Reimplement taking a display pointer.
10104 (undisplay_command): Accept a range of displays to delete, using
10105 get_number_or_range.
10107 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10109 * c-valprint.c (c_val_print): Add embedded_offset to address
10110 for arrays of unspecified length.
10111 * p-valprint.c (pascal_val_print): Likewise.
10113 2011-02-18 Yao Qi <yao@codesourcery.com>
10115 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10116 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10117 (thumb_process_displaced_insn): New.
10118 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10119 call to arm_process_displaced_insn.
10120 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10122 2011-02-17 Tom Tromey <tromey@redhat.com>
10124 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10125 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10126 compile_dwarf_to_ax. No longer static. Call
10127 dwarf2_compile_cfa_to_ax.
10128 (locexpr_tracepoint_var_ref): Update.
10129 (loclist_tracepoint_var_ref): Update.
10130 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10131 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10132 argument; add 'gdbarch' and 'pc'.
10133 (dwarf2_compile_cfa_to_ax): New function.
10134 (dwarf2_frame_cache): Update.
10136 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10138 * ada-lang.c (ada_type_of_array): Fix the size of the array
10139 in the case of an unconstrained packed array.
10141 2011-02-17 Yao Qi <yao@codesourcery.com>
10143 * common/Makefile.in: Add more targets for make.
10145 2011-02-16 Tom Tromey <tromey@redhat.com>
10147 * dwarf2loc.c (unimplemented): Fix typo.
10149 2011-02-16 Tom Tromey <tromey@redhat.com>
10151 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10152 (compile_dwarf_to_ax) <default>: Use unimplemented.
10153 <DW_OP_deref>: Update.
10154 (disassemble_dwarf_expression): Update.
10155 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10156 (decode_locdesc): Update.
10157 * dwarf2expr.h (dwarf_stack_op_name): Update.
10159 2011-02-16 Tom Tromey <tromey@redhat.com>
10161 * ax.h (struct aop_map) <name>: Now const.
10163 2011-02-16 Tom Tromey <tromey@redhat.com>
10165 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10168 2011-02-16 Yao Qi <yao@codesourcery.com>
10170 * infrun.c (get_displaced_step_closure_by_addr): New.
10171 * inferior.h: Declare it.
10172 * arm-tdep.c: (arm_pc_is_thumb): Call
10173 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10176 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10177 Jan Kratochvil <jan.kratochvil@redhat.com>
10180 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10182 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10183 Jan Kratochvil <jan.kratochvil@redhat.com>
10185 * value.c (value_contents_copy_raw): Extend describing comment.
10186 Assert that the destination contents we're overwriting are wholly
10188 (value_contents_copy): Extend describing comment.
10190 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10191 Jan Kratochvil <jan.kratochvil@redhat.com>
10193 * value.c (value_available_contents_eq): Remove redundant local
10194 variables. Fix available contents comparision.
10195 * value.h (value_available_contents_eq): Extend describing
10198 2011-02-16 Yao Qi <yao@codesourcery.com>
10200 * thread.c (info_threads_command): Add missing i18n markup and remove
10203 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10205 * breakpoint.c (longjmp_names): New variable.
10206 (struct breakpoint_objfile_data): New type.
10207 (breakpoint_objfile_key): New variable.
10208 (msym_not_found): New variable.
10209 (msym_not_found_p): New predicate.
10210 (get_breakpoint_objfile_data): New function.
10211 (create_overlay_event_breakpoint): Check per-objfile cache for
10213 (create_longjmp_master_breakpoint): Likewise.
10214 (create_std_terminate_master_breakpoint): Likewise.
10215 (create_exception_master_breakpoint): Likewise.
10216 (_initialize_breakpoint): Register per-objfile data key.
10218 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10220 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10222 (create_longjmp_master_breakpoint): Loop over longjmp names.
10223 (create_std_terminate_master_breakpoint): Const-propagate parameter
10225 (update_breakpoints_after_exec): Adjust.
10226 (breakpoint_re_set): Adjust.
10228 2011-02-15 Michael Snyder <msnyder@vmware.com>
10230 * thread.c (info_threads_command): Process arg as thread id,
10231 or list of thread ids.
10232 (thread_find_command): New command.
10233 (_initialize_thread): Document argument for info threads.
10234 Document 'thread find' command.
10235 * NEWS: Document new command "thread find".
10237 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10239 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10240 * aclocal.m4: Regenerated with aclocal-1.11.1.
10241 * common/configure: Regenerate with autoconf-2.64.
10243 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10245 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10246 bool data type to a size of one byte.
10248 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10249 Jan Kratochvil <jan.kratochvil@redhat.com>
10251 * target.c (memory_xfer_live_readonly_partial): Document where to
10252 look for interface description.
10254 2011-02-15 Yao Qi <yao@codesourcery.com>
10257 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10258 order to store PC value on stack instead of text section.
10260 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10262 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10263 the EFP register set size.
10264 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10265 data from the VMX register.
10266 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10267 and write data from/to the VMX register.
10269 2011-02-14 Michael Snyder <msnyder@vmware.com>
10271 * command.h (enum command_class): New class 'no_set_class', for
10272 "show" commands without a corresponding "set" command.
10273 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10274 * copying.c (_initialize_copying): Ditto for "show copying" and
10276 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10278 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10279 which there is no corresponding "set" command (eg. "show copying").
10281 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10282 Jan Kratochvil <jan.kratochvil@redhat.com>
10284 * exec.c (section_table_available_memory): Change `len' parameter
10286 * exec.h (section_table_available_memory): Ditto.
10287 * value.h (read_value_memory): Rename the `offset' parameter to
10290 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10291 Jan Kratochvil <jan.kratochvil@redhat.com>
10293 * memrange.c (compare_mem_ranges): Mention sort order in
10294 describing comment.
10295 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10296 * tracepoint.c (traceframe_available_memory): Extend comment to
10297 mention what happens to RESULT when the target does not support
10300 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10301 Jan Kratochvil <jan.kratochvil@redhat.com>
10303 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10306 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10308 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10309 No longer handle NULL values.
10311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10313 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10314 * value.c: Include "exceptions.h".
10315 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10317 * cp-abi.c: Include gdb_assert.h.
10318 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10319 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10321 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10322 parameters. No longer returns -1 on error.
10323 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10325 * cp-valprint.c: Include exceptions.h.
10326 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10327 the baseclass_offset. Handle unavailable base classes. Use
10328 val_print_invalid_address.
10329 * p-valprint.c: Include exceptions.h.
10330 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10331 when fetching the baseclass_offset. No longer expect
10332 baseclass_offset returning -1. Handle unavailable base classes.
10333 Use val_print_invalid_address.
10334 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10335 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10336 `embedded_offset' and `val' parameters. Adjust.
10337 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10338 parameter, and change its type to gdb_byte pointer. Add
10339 `embedded_offset' and `val' parameters. Adjust. No longer expect
10340 baseclass_offset returning -1.
10341 (value_dynamic_cast): Use value_contents_for_printing rather than
10342 value_contents. Adjust.
10343 (search_struct_field): No longer expect baseclass_offset returning
10345 (search_struct_method): If reading memory from the target is
10346 necessary, wrap it in a new value to pass to baseclass_offset. No
10347 longer expect baseclass_offset returning -1.
10348 (find_method_list): No longer expect baseclass_offset returning
10349 -1. Use value_contents_for_printing rather than value_contents.
10350 * valprint.c (val_print_invalid_address): New function.
10351 * valprint.h (val_print_invalid_address): Declare.
10352 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10353 and `val' parameters. No longer expect baseclass_offset returning
10355 * gnu-v2-abi.c: Include "exceptions.h".
10356 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10357 parameters. Handle unavailable memory. Recurse through
10358 gnuv2_baseclass_offset directly, rather than through
10359 baseclass_offset. No longer returns -1 on not found, instead
10361 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10362 `val' parameters. Adjust.
10364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10366 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10367 almost but not quite adjacent.
10369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10371 * value.h (value_entirely_available): Declare.
10372 * value.c (value_entirely_available): New function.
10373 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10374 real type if the pointer is unavailable.
10376 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10378 * valops.c (value_repeat): Use read_value_memory instead of
10381 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10383 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10384 * value.c (value_contents_copy_raw, value_contents_copy): New
10386 (value_primitive_field): Use value_contents_copy_raw instead of
10388 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10390 (value_array, value_slice): Ditto.
10391 * valarith.c (value_subscripted_rvalue): Use
10392 value_contents_copy_raw instead of memcpy.
10394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10396 <unavailable> references.
10398 * valops.c (get_value_at): Use value_from_contents_and_address,
10399 avoiding read_memory.
10401 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10403 * c-valprint.c (c_val_print): Print a string with unavailable
10404 contents as an array.
10406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10408 * value.h (unpack_bits_as_long): Delete declaration.
10409 (unpack_value_bits_as_long): Declare.
10410 (unpack_value_field_as_long): Declare.
10411 (value_field_bitfield): Declare.
10412 * value.c (unpack_bits_as_long): Rename to...
10413 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10414 value parameters. Return the extracted result in a new output
10415 parameter. If the value contents are unavailable, return false,
10416 otherwise return true.
10417 (unpack_value_bits_as_long): New.
10418 (unpack_field_as_long): Rename to...
10419 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10420 Add embedded_offset and value parameters. Return the extracted
10421 result in a new output parameter. If the value contents are
10422 unavailable, return false, otherwise return true.
10423 (unpack_value_field_as_long): New.
10424 (unpack_field_as_long_1): New.
10425 (unpack_field_as_long): Reimplement as wrapper around
10426 unpack_value_field_as_long_1.
10427 (value_field_bitfield): New function.
10428 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10429 unpack_value_bits_as_long. Mark the value as unavailable, if it
10431 * jv-valprint.c (java_print_value_fields): Use
10432 value_field_bitfield.
10433 * p-valprint.c (pascal_object_print_value_fields): Use
10434 value_field_bitfield.
10435 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10439 * value.c (get_internalvar_integer): Also return the int value of
10440 TYPE_CODE_INT INTERNALVAR_VALUE values.
10441 (set_internalvar): Don't special case TYPE_CODE_INT.
10443 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10445 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10446 INTERNALVAR_POINTER.
10448 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10449 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10450 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10454 * value.h (value_available_contents_eq): Declare.
10455 * value.c (find_first_range_overlap): New function.
10456 (value_available_contents_eq): New function.
10457 * valprint.c (val_print_array_elements): Use
10458 value_available_contents_eq.
10459 * ada-valprint.c (val_print_packed_array_elements): Use
10460 value_available_contents_eq.
10461 * jv-valprint.c (java_value_print): Use
10462 value_available_contents_eq.
10464 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10466 * target.c (target_read_live_memory): New function.
10467 (memory_xfer_live_readonly_partial): New.
10468 (memory_xfer_partial): If reading from a traceframe, fallback to
10469 reading unavailable read-only memory from read-only regions of
10470 live target memory.
10471 * tracepoint.c (disconnect_tracing): Adjust.
10472 (set_current_traceframe): New, factored out from
10473 set_traceframe_number.
10474 (set_traceframe_number): Reimplement to only change the traceframe
10475 number on the GDB side.
10476 (do_restore_current_traceframe_cleanup): Adjust.
10477 (make_cleanup_restore_traceframe_number): New.
10478 (cur_traceframe_number): New global.
10479 (tfile_open): Set cur_traceframe_number to no traceframe.
10480 (set_tfile_traceframe): New function.
10481 (tfile_trace_find): If looking up a traceframe using any method
10482 other than by number, make sure the current tfile traceframe
10483 matches gdb's current traceframe. Update the current tfile
10484 traceframe if the lookup succeeded.
10485 (tfile_fetch_registers, tfile_xfer_partial)
10486 (tfile_get_trace_state_variable_value): Make sure the remote
10487 traceframe matches gdb's current traceframe.
10488 * remote.c (remote_traceframe_number): New global.
10489 (remote_open_1): Set it to -1.
10490 (set_remote_traceframe): New function.
10491 (remote_fetch_registers, remote_store_registers)
10492 (remote_xfer_memory, remote_xfer_partial)
10493 (remote_get_trace_state_variable_value): Make sure the remote
10494 traceframe matches gdb's current traceframe.
10495 (remote_trace_find): If looking up a traceframe using any method
10496 other than by number, make sure the current remote traceframe
10497 matches gdb's current traceframe. Update the current remote
10498 traceframe if the lookup succeeded.
10499 * infrun.c (fetch_inferior_event): Adjust.
10500 * tracepoint.h (set_current_traceframe): Declare.
10501 (get_traceframe_number, set_traceframe_number): Add describing
10504 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10506 Mark pieces of values as unavailable if the corresponding memory
10509 * valops.c: Include tracepoint.h.
10510 (value_fetch_lazy): Use read_value_memory.
10511 (read_value_memory): New.
10512 * value.h (read_value_memory): Declare.
10513 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10514 * exec.c (section_table_available_memory): New function.
10515 * exec.h (section_table_available_memory): Declare.
10517 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10519 * Makefile.in (SFILES): Add memrange.c.
10520 (HFILES_NO_SRCDIR): Add memrange.h.
10521 (COMMON_OBS): Add memrange.o.
10522 * memrange.c: New file.
10523 * memrange.h: New file.
10524 * tracepoint.c: Include memrange.h.
10525 (struct mem_range): Delete.
10526 (mem_range_s): Delete.
10527 (traceframe_available_memory): New function.
10528 * tracepoint.h (traceframe_available_memory): Declare.
10530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10532 * target.h (struct traceframe_info): Forward declare.
10533 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10534 (struct target_ops) <to_traceframe_info>: New field.
10535 (target_traceframe_info): New.
10536 * target.c (update_current_target): Inherit and default
10537 to_traceframe_info.
10538 * remote.c (PACKET_qXfer_traceframe_info): New.
10539 (remote_protocol_features): Register qXfer:traceframe-info:read.
10540 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10541 (remote_traceframe_info): New.
10542 (init_remote_ops): Install it.
10543 (_initialize_remote): Install "set/show remote traceframe-info"
10545 * tracepoint.h (parse_traceframe_info): Declare.
10546 * tracepoint.c (struct mem_range): New.
10547 (mem_range_s): New typedef.
10548 (struct traceframe_info): New.
10549 (traceframe_info): New global.
10550 (free_traceframe_info): New function.
10551 (clear_traceframe_info): New function.
10552 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10554 (build_traceframe_info): New function.
10555 (tfile_traceframe_info): New function.
10556 (init_tfile_ops): Install tfile_traceframe_info.
10557 (traceframe_info_start_memory, free_result): New functions.
10558 (memory_attributes, traceframe_info_elements): New globals.
10559 (parse_traceframe_info, get_traceframe_info): New functions.
10560 * features/traceframe-info.dtd: New file.
10561 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10563 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10565 Base support for <unavailable> value contents.
10567 * value.h (value_bytes_available): Declare.
10568 (mark_value_bytes_unavailable): Declare.
10569 * value.c (struct range): New struct.
10570 (range_s): New typedef.
10571 (ranges_overlap): New function.
10572 (range_lessthan): New function.
10573 (ranges_contain_p): New function.
10574 (struct value) <unavailable>: New field.
10575 (value_bytes_available): New function.
10576 (mark_value_bytes_unavailable): New function.
10577 (require_not_optimized_out): Constify parameter.
10578 (require_available): New function.
10579 (value_contents_all, value_contents): Require all bytes be
10581 (value_free): Free `unavailable'.
10582 (value_copy): Copy `unavailable'.
10583 * valprint.h (val_print_unavailable): Declare.
10584 * valprint.c (valprint_check_validity): Rename `offset' parameter
10585 to `embedded_offset'. If printing a scalar, check whether the
10586 value chunk is available.
10587 (val_print_unavailable): New.
10588 (val_print_scalar_formatted): Check whether the value is
10590 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10591 pretty-printing unavailable values.
10593 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10595 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10596 * c-typeprint.c (c_type_print_args): Update the function comment. New
10597 variable param_type, initialize it. Remove const/volatile qualifiers
10598 for language_cplus and !show_artificial. Use param_type.
10600 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10602 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10603 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10604 * symtab.h (struct symtab) <next>: Comment extension.
10606 2011-02-12 Yao Qi <yao@codesourcery.com>
10608 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10610 2011-02-11 Yao Qi <yao@codesourcery.com>
10612 * common/Makefile.in: Add copyright header.
10614 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10616 * infrun.c (proceed): Move switching out and in of tfind mode from
10618 (fetch_inferior_event): ... to here.
10620 2011-02-11 Yao Qi <yao@codesourcery.com>
10622 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10624 * configure.ac: Add common to sub dir.
10625 * configure: Regenerate.
10627 2011-02-11 Yao Qi <yao@codesourcery.com>
10631 * common/Makefile.in: New.
10632 * common/configure.ac: New.
10633 * common/aclocal.m4: New.
10634 * common/configure: Generate.
10636 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10638 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10639 side of the parenthesis.
10642 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10643 * vec.h (VEC_block_remove): Fix comment.
10645 2011-02-08 Michael Snyder <msnyder@vmware.com>
10647 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10649 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10651 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10652 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10655 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10658 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10660 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10661 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10663 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10665 * dwarf2read.c (read_subroutine_type): Set special calling
10666 convention flag for functions compiled by IBM XL C for OpenCL.
10667 * ppc-sysv-tdep.c: Include "dwarf2.h"
10668 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10669 calling convention.
10670 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10671 IBM OpenCL vector types calling convention.
10672 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10673 (ppc_sysv_abi_broken_return_value): Likewise.
10674 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10675 types calling convention.
10676 (ppc64_sysv_abi_return_value): Likewise.
10677 * spu-tdep.c: Include "dwarf2.h"
10678 (spu_return_value): Implement IBM OpenCL vector types calling
10681 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10683 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10684 correct ABI for AltiVec vector arguments.
10686 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10688 * valprint.c (val_print): Extend comment.
10689 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10690 interface explanation to val_print.
10691 (ada_val_print_array): Adjust comment to current interface.
10692 (print_field_values): Adjust comment to current interface.
10693 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10694 explanation to val_print.
10695 * f-valprint.c (f_val_print): Ditto.
10696 * jv-valprint.c (java_val_print): Ditto.
10697 * m2-valprint.c (m2_val_print): Ditto.
10698 * p-valprint.c (pascal_val_print): Ditto.
10700 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10702 * breakpoint.c (parse_breakpoint_sals): Fix description.
10704 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10705 Oguz Kayral <oguzkayral@gmail.com>
10707 * python/py-inferior.c (python_on_normal_stop): New function.
10708 (python_on_resume): New function.
10709 (python_inferior_exit): New function.
10710 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10711 inferior_exit observers.
10712 * python/py-evtregistry.c: New file.
10713 * python/py-threadevent.c : New file.
10714 * python/py-event.c: New file.
10715 * python/py-evts.c: New file.
10716 * python/py-continueevent.c: New file.
10717 * python/py-bpevent.c: New file.
10718 * python/py-signalevent.c: New file.
10719 * python/py-exetiedevent.c: New file.
10720 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10721 Move struct breakpoint_object from here...
10722 * python/python-internal.h: ... to here.
10723 * python/py-event.h: New file.
10724 * python/py-events.h: New file.
10725 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10726 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10727 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10728 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10729 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10730 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10731 Add build rules for all the above.
10733 2011-02-04 Tom Tromey <tromey@redhat.com>
10735 * dwarf2read.c (dwarf2_section_empty_p): New function.
10736 (dwarf2_read_section): Use dwarf2_section_empty_p.
10737 (dwarf2_section_size): New function.
10738 (dwarf2_get_section_info): Unconditionally read section.
10739 (dwarf2_read_index): Use dwarf2_section_empty_p.
10740 (partial_read_comp_unit_head): Use dwarf2_section_size.
10741 (dwarf2_symbol_mark_computed): Likewise.
10743 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10745 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10747 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10749 * mips-linux-tdep.c: Include xml-syscall.h.
10750 (mips_linux_get_syscall_number): New function.
10751 (mips_linux_init_abi): Add calls to
10752 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10753 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10754 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10755 * syscalls/mips-n32-linux.xml: New file.
10756 * syscalls/mips-n64-linux.xml: New file.
10757 * syscalls/mips-o32-linux.xml: New file.
10759 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10761 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10762 Complain about inverted range entries.
10763 (dwarf2_record_block_ranges): Likewise.
10765 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10768 * breakpoint.c (update_watchpoint): Fix name of the
10769 update_global_location_list function.
10770 (print_one_breakpoint): Fix typo.
10771 (_initialize_breakpoint): Remove extra space in hbreak help
10773 * breakpoint.h (struct bp_location) <length>: Fix field
10776 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10778 * regcache.c (registers_changed_ptid): Don't explictly always
10779 clear `current_regcache'. Only clear current_thread_ptid and
10780 current_thread_arch when PTID matches. Only reinit the frame
10781 cache if PTID matches the current inferior_ptid. Move alloca(0)
10783 (registers_changed): ... here.
10785 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10787 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10788 starts with __stack_chk_guard as stack guard symbol.
10790 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10792 * disasm.c (compare_lines): Handle the end of sequence markers
10793 within the line table to better support disassembling over
10794 compilation unit boundaries.
10796 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10798 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10799 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10800 implementation even if no symbols are available.
10801 (thumb_analyze_prologue): Update call to skip_prologue_function.
10802 (arm_analyze_prologue): Likewise.
10804 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10806 * arm-tdep.c: Include "observer.h".
10807 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10808 (arm_exidx_data_key): New static variable.
10809 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10810 (struct arm_exidx_data): Likewise.
10811 (arm_exidx_data_free): New function.
10812 (arm_compare_exidx_entries): Likewise.
10813 (arm_obj_section_from_vma): Likewise.
10814 (arm_exidx_new_objfile): Likewise.
10815 (arm_find_exidx_entry): Likewise.
10816 (arm_exidx_fill_cache): Likewise.
10817 (arm_exidx_unwind_sniffer): Likewise.
10818 (arm_exidx_unwind): New global variable.
10819 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10820 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10821 observer. Register arm_exidx_data_key as objfile data.
10823 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10825 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10826 due to accessing uninitialized variable. Fix indentation.
10828 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10830 * c-valprint.c (c_value_print): When doing virtual base pointer
10831 adjustment, create a new value with adjusted contents rather than
10832 changing the contents of the value being printed (and getting it
10835 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10837 * xml-support.c (xml_find_attribute): New.
10838 (xinclude_start_include): Use it.
10839 * xml-support.h (xml_find_attribute): Declare.
10840 * memory-map.c (memory_map_start_memory)
10841 (memory_map_start_property): Use xml_find_attribute.
10842 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10843 xml_find_attribute.
10844 * remote.c (start_thread): Use xml_find_attribute.
10845 * solib-target.c (library_list_start_segment)
10846 (library_list_start_section, library_list_start_library)
10847 (library_list_start_list): Use xml_find_attribute.
10848 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10849 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10850 (tdesc_start_field): Use xml_find_attribute.
10852 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10854 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10855 (BUILD_OCL_VTYPES): Update.
10857 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10859 * configure.ac: Work around non-GNU sed limitation when computing
10860 python version number.
10861 * configure: Regenerate.
10863 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10865 Fix debug printing of TYPE_INSTANCE.
10866 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10867 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10869 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10871 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10872 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10873 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10874 * ada-operator.inc: Rename the file to ...
10875 * ada-operator.def: ... here, wrap all the entries by macro OP.
10876 * expprint.c (op_name_standard): Remove all the entries. Include
10877 "std-operator.def" instead.
10878 * expression.h (enum exp_opcode): Include "std-operator.def" and
10879 "ada-operator.def". Move all the entries ...
10880 * std-operator.def: ... here, wrap all the entries by macro OP.
10882 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10884 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10885 * breakpoint.c (remove_jit_event_breakpoints): New function.
10886 * jit.c (jit_descriptor_addr): Delete.
10887 (registering_code): Delete.
10888 (clear_int): Delete.
10889 (jit_inferior_data): New variable.
10890 (struct jit_inferior_data): New type.
10891 (get_jit_inferior_data): New function.
10892 (jit_inferior_data_cleanup): New function.
10893 (jit_read_descriptor): Adjust.
10894 (jit_register_code): Adjust.
10895 (jit_breakpoint_re_set_internal): New function; move code here ...
10896 (jit_inferior_init): ... from here.
10897 (jit_breakpoint_re_set): Adjust.
10898 (jit_reset_inferior_data_and_breakpoints): New function.
10899 (jit_inferior_created_observer): Adjust.
10900 (jit_inferior_exit_hook): Adjust.
10901 (jit_executable_changed_observer): New function.
10902 (jit_event_handler): Adjust.
10903 (_initialize_jit): Adjust.
10905 2011-01-31 Michael Snyder <msnyder@vmware.com>
10907 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10910 2011-01-31 Tom Tromey <tromey@redhat.com>
10913 * python/python.c (execute_gdb_command): Call
10914 prevent_dont_repeat.
10915 * top.c (suppress_dont_repeat): New global.
10916 (dont_repeat): Use it.
10917 (prevent_dont_repeat): New function.
10918 * command.h (prevent_dont_repeat): Declare.
10920 2011-01-31 Tom Tromey <tromey@redhat.com>
10922 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10923 * python/py-breakpoint.c (bppy_set_silent): Use
10924 breakpoint_set_silent.
10925 (bppy_set_thread): Use breakpoint_set_thread.
10926 (bppy_set_task): Use breakpoint_set_task.
10927 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10928 (breakpoint_set_task): Declare.
10929 (make_breakpoint_silent): Remove.
10930 * breakpoint.c (breakpoint_set_silent): New function.
10931 (breakpoint_set_thread): Likewise.
10932 (breakpoint_set_task): Likewise.
10933 (make_breakpoint_silent): Remove.
10935 2011-01-31 Tom Tromey <tromey@redhat.com>
10937 * breakpoint.h (user_breakpoint_p): Declare.
10938 * breakpoint.c (user_breakpoint_p): New function.
10939 (breakpoint_1): Use it.
10940 (save_breakpoints): Likewise.
10942 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10944 * configure.ac: Add handling of Python distribution on Windows.
10945 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10946 sysconfig variables are not defined, then do not use them.
10947 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10948 instead. On Windows, return all paths using forward-slashes
10949 rather than backslashes.
10951 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10953 * configure.ac: Remove fallback behavior for building
10954 against Python. Remove tweaking of Python include path.
10955 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10956 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10957 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10958 Always restore CPPFLAGS and LIBS after linking test.
10959 * configure: Regenerated.
10960 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10961 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10962 * python/python-internal.h: Adjust includes of Python .h files.
10964 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10966 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10969 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10971 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10974 2011-01-31 Yao Qi <yao@codesourcery.com>
10976 * arm-linux-nat.c: Update calls to regcache_register_status
10977 instead of regcache_valid_p.
10978 * aix-thread.c: Likewise.
10979 * i386gnu-nat.c: Likewise.
10981 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10984 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10985 touching TYPE_FIELD_ARTIFICIAL.
10987 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10989 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10992 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10994 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10995 selected, don't try iterating over the traceframe's blocks.
10996 (tfile_has_stack): If there's no traceframe selected, then there's
10998 (tfile_has_registers): If there's no traceframe selected, then
10999 there's no registers.
11001 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11003 * target.c (memory_xfer_partial): No need to restore shadows if we
11004 haven't read anything.
11006 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11008 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11009 and val_print_scalar_formatted.
11011 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11013 * tracepoint.c (tfile_read): New.
11014 (tfile_open): Use it.
11015 (tfile_get_traceframe_address): Use it.
11016 (tfile_trace_find): Use it.
11017 (walk_blocks_callback_func): New typedef.
11018 (match_blocktype): New function.
11019 (traceframe_walk_blocks): New function.
11020 (traceframe_find_block_type): New function.
11021 (tfile_fetch_registers, tfile_xfer_partial)
11022 (tfile_get_trace_state_variable_value): Use
11023 traceframe_find_block_type and tfile_read.
11025 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11027 * remote-mips.c: Add internationalization mark ups. Remove
11028 trailing \n from already marked up strings.
11030 2011-01-26 Tom Tromey <tromey@redhat.com>
11032 * python/py-prettyprint.c (print_string_repr): Clear
11033 'addressprint' option when calling val_print_string.
11034 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11035 option when calling val_print_string.
11037 2011-01-26 Tom Tromey <tromey@redhat.com>
11039 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11041 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11043 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11044 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11045 (gdb_py_long_as_ulongest): New defines.
11046 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11047 (gdb_py_int_as_long): Declare.
11048 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11049 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11050 (valpy_long): Add comment.
11051 * python/py-utils.c (get_addr_from_python): Use
11052 gdb_py_long_as_ulongest. Handle overflow properly.
11053 (gdb_py_object_from_longest): New function.
11054 (gdb_py_object_from_ulongest): Likewise.
11055 (gdb_py_int_as_long): Likewise.
11056 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11057 * python/py-symtab.c (salpy_get_pc): Use
11058 gdb_py_long_from_ulongest.
11059 (salpy_get_line): Use PyInt_FromLong.
11060 * python/py-param.c (set_parameter_value): Use
11061 gdb_py_int_as_long.
11062 * python/py-lazy-string.c (stpy_get_address): Use
11063 gdb_py_long_from_ulongest.
11064 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11065 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11066 * python/py-breakpoint.c (bppy_set_thread): Use
11067 gdb_py_int_as_long.
11068 (bppy_set_task): Likewise.
11069 (bppy_set_ignore_count): Likewise.
11070 (bppy_set_hit_count): Likewise.
11071 * python/py-block.c (blpy_get_start): Use
11072 gdb_py_object_from_ulongest.
11073 (blpy_get_end): Likewise.
11074 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11076 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11079 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11080 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11081 equality test for objfile, initialize addr_low if needed.
11083 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11085 * tui/tui-regs.c (tui_register_format): Remove dead code.
11087 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11089 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11090 instead of print_scalar_formatted.
11091 (print_scalar_formatted): Don't handle 's' format strings here,
11092 and add an assertion that we never see such format here.
11093 * valprint.h (val_print_scalar_formatted): Declare.
11094 * valprint.c (val_print_scalar_formatted): New.
11095 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11096 instead of print_scalar_formatted.
11097 * jv-valprint.c (java_val_print): Ditto.
11098 * p-valprint.c (pascal_val_print): Ditto.
11099 * ada-valprint.c (ada_val_print_1): Ditto.
11100 * f-valprint.c (f_val_print): Ditto.
11101 * infcmd.c (registers_info): Ditto.
11102 * m2-valprint.c (m2_val_print): Ditto.
11104 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11106 * m2-valprint.c (print_unbounded_array): Pass
11107 value_contents_for_printing rather than value_contents, to
11108 m2_print_array_contents. Also pass in the value.
11110 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11112 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11113 (save_gdb_index_command): Switch to .gdb_index version 4.
11115 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11117 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11118 than frame_register, and always pass a valid value to val_print.
11120 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11122 Centralize printing "<optimized out>".
11124 * valprint.h (val_print_optimized_out): Declare.
11125 * cp-valprint.c (cp_print_value_fields): Use
11126 val_print_optimized_out.
11127 * jv-valprint.c (java_print_value_fields): Ditto.
11128 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11129 * printcmd.c (print_formatted): Ditto.
11130 * valprint.c (valprint_check_validity): Ditto.
11131 (value_check_printable): Ditto.
11132 (val_print_optimized_out): New.
11134 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11136 * infcmd.c (default_print_registers_info): Allocate values so to
11137 never pass a NULL value to val_print.
11139 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11141 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11142 boolean. Make sure to always pass a value that matches the
11143 contents buffer to callees. Preserve `address' for following
11145 * value.c (value_contents_for_printing_const): New.
11146 (value_address): Constify value argument.
11147 * value.h (value_contents_for_printing_const): Declare.
11148 (value_address): Constify value argument.
11150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11152 * regcache.c (struct regcache_descr): Rename
11153 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11154 and sizeof_cooked_register_valid_p to
11155 sizeof_cooked_register_status.
11156 (init_regcache_descr): Adjust.
11157 (struct regcache): Rename register_valid_p field to
11159 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11160 (do_cooked_read): Adjust.
11161 (regcache_valid_p): Rename to ...
11162 (regcache_register_status): ... this. Adjust.
11163 (regcache_invalidate): Adjust.
11164 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11166 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11167 as unavailable, not valid.
11168 (regcache_dump): Adjust.
11169 * regcache.h (enum register_status): New.
11170 (regcache_register_status): Declare.
11171 (regcache_invalidate): Delete declaration.
11172 * corelow.c (get_core_registers): Adjust.
11173 * tracepoint.c (tfile_fetch_registers): Adjust.
11174 * trad-frame.c (REG_VALUE): Rename to ...
11175 (TF_REG_VALUE): ... this.
11176 (REG_UNKNOWN): Rename to ...
11177 (TF_REG_UNKNOWN): ... this.
11178 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11179 * mi/mi-main.c (register_changed_p): Adjust.
11181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11183 * regcache.c (struct regcache_descr): Remove outdated comment.
11184 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11186 (regcache_xmalloc): Rename to ...
11187 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11188 Allocate the regcache type accordingly.
11189 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11190 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11191 cooked registers, not raw.
11192 (regcache_dup_no_passthrough): Delete.
11193 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11194 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11195 mention obsolete write_register_bytes.
11196 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11198 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11200 Stop remote_read_bytes from handling partial reads itself.
11202 * remote-fileio.c: Include target.h.
11203 (remote_fileio_write_bytes): Delete.
11204 (remote_fileio_func_open, remote_fileio_func_write)
11205 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11206 target_read_memory.
11207 (remote_fileio_func_stat): Use target_read_memory and
11208 target_write_memory.
11209 (remote_fileio_func_gettimeofday): Use target_write_memory.
11210 (remote_fileio_func_system): Use target_read_memory.
11211 * remote.c (remote_write_bytes): Make it static.
11212 (remote_read_bytes): Don't handle partial reads here.
11213 * remote.h (remote_read_bytes): Delete declaration.
11215 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11217 Simplify XML parsing a bit.
11219 * xml-support.h (gdb_xml_parse_quick): Declare.
11220 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11221 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11223 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11224 gdb_xml_create_parser_and_cleanup_1.
11225 (gdb_xml_parse_quick): New.
11226 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11227 * osdata.c (osdata_parse): Ditto.
11228 * remote.c (remote_threads_info): Ditto.
11229 * solib-target.c (solib_target_parse_libraries): Ditto.
11230 * xml-syscall.c (syscall_parse_xml): Ditto.
11231 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11233 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11235 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11236 with remote-mips.o added to gdb_target_obs.
11237 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11239 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11241 * ada-valprint.c (val_print_packed_array_elements): Pass the
11242 correct struct value to val_print.
11243 (ada_val_print_1): Ditto.
11245 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11247 Don't lose embedded_offset in printing routines throughout.
11249 * valprint.h (val_print_array_elements): Change prototype.
11250 * valprint.c (val_print_array_elements): Add `embedded_offset'
11251 parameter, and adjust to pass it down to val_print, while passing
11252 `valaddr' or `address' unmodified. Take embedded_offset into
11253 account when checking repetitions.
11254 * c-valprint.c (c_val_print): Pass embedded_offset to
11255 val_print_array_elements instead of adjusting `valaddr' and
11257 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11258 embedded_offset to val_print_array_elements instead of adjusting
11260 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11261 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11262 val_print_array_elements and pascal_object_print_value_fields
11263 instead of adjusting `valaddr'.
11264 (pascal_object_print_value_fields): Add `offset' parameter, and
11266 (pascal_object_print_value): Add `offset' parameter, and adjust to
11268 (pascal_object_print_static_field): Use
11269 value_contents_for_printing/value_embedded_offset, rather than
11271 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11272 parameter, and adjust to use it. Use
11273 value_contents_for_printing/value_embedded_offset, rather than
11275 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11276 (ada_val_print_array): Add `offset' parameter, and adjust to use
11278 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11279 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11280 Instead work with offsets. Use
11281 value_contents_for_printing/value_embedded_offset, rather than
11282 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11283 and use value_from_pointer to extract a target pointer, rather
11284 than value_from_longest.
11285 (print_variant_part): Add `offset' parameter. Replace
11286 `outer_valaddr' parameter by a new `outer_offset' parameter.
11287 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11288 (ada_value_print): Use
11289 value_contents_for_printing/value_embedded_offset, rather than
11291 (print_record): Add `offset' parameter, and adjust to pass it
11293 (print_field_values): Add `offset' parameter. Replace
11294 `outer_valaddr' parameter by a new `outer_offset' parameter.
11295 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11296 Use value_contents_for_printing/value_embedded_offset, rather than
11298 * d-valprint.c (dynamic_array_type): Use
11299 value_contents_for_printing/value_embedded_offset, rather than
11301 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11302 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11303 (java_print_value_fields): Take `offset' into account. Don't
11304 re-adjust `valaddr'. Instead pass down adjusted offsets.
11305 (java_val_print): Take `embedded_offset' into account. Pass it to
11306 java_print_value_fields.
11307 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11308 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11309 down adjusted offsets.
11310 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11311 (f_val_print): Take `embedded_offset' into account.
11313 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11315 * inflow.c: Include "gdbcmd.h".
11316 (interactive_mode): New static global, moved here from top.c.
11317 (show_interactive_mode): New function, moved here from top.c.
11318 use gdb_has_a_terminal instead of input_from_terminal_p to
11319 determine the current mode.
11320 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11322 (_initialize_inflow): Add the "set/show interactive-mode"
11323 commands. Moved here from top.c, after having adjusted slightly
11325 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11327 (input_from_terminal_p): Remove handling of "interactive-mode"
11328 setting, moved to infow.c.
11329 (init_main): Remove creation of the "set/show interactive-mode"
11330 commands, moved to inflow.c.
11332 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11334 * NEWS: Add entry for native ia64-hpux support.
11336 2011-01-19 Tom Tromey <tromey@redhat.com>
11339 * thread.c (free_thread): Free 'name'.
11340 (print_thread_info): Emit thread name. Change CLI output.
11341 (thread_name_command): New function.
11342 (do_captured_thread_select): Emit newline.
11343 (_initialize_thread): Register 'thread name' command.
11344 * target.h (struct target_ops) <to_thread_name>: New field.
11345 (target_thread_name): New macro.
11346 * target.c (update_current_target): Handle to_thread_name.
11347 * python/py-infthread.c (thpy_get_name): New function.
11348 (thpy_set_name): Likewise.
11349 (thread_object_getset): Add "name".
11350 * linux-nat.c (linux_nat_thread_name): New function.
11351 (linux_nat_add_target): Set to_thread_name.
11352 * gdbthread.h (struct thread_info) <name>: New field.
11354 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11356 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11357 (ada_val_print_1): Likewise.
11359 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11361 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11362 upper limit address is not greater than the function end address
11363 when the upper limit could not be computed using the debugging
11366 2011-01-17 Tom Tromey <tromey@redhat.com>
11368 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11370 * utils.c: Include gdb_regex.h.
11371 (do_regfree_cleanup): New function.
11372 (make_regfree_cleanup): Likewise.
11373 (get_regcomp_error): Likewise.
11374 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11376 2011-01-17 Tom Tromey <tromey@redhat.com>
11378 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11379 re_compile_fastmap.
11381 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11383 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11384 for internal variables.
11385 (last_was_structop): New static variable.
11386 (COMPLETE): New token.
11387 (field_exp): New rule to group all '.' suffix handling.
11388 Add mark_struct_expression calls when approriate to be able
11389 to correctly find fields for completion.
11390 (yylex): Adapt to handle field completion and set INTVAR when
11393 2011-01-14 Yao Qi <yao@codesourcery.com>
11395 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11396 save_reggroup, restore_reggroup and all_reggroup.
11398 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11400 * ada-valprint. (ada_printchar): Use the correct type length
11401 in call to ada_emit_char.
11402 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11404 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11406 * solib-som.h (hpux_major_release): Declare variable here.
11407 * solib-som.c: Remove <sys/utsname.h> header.
11408 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11409 (hpux_major_release): Make global, change default value to
11410 DEFAULT_HPUX_MAJOR_RELEASE.
11411 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11412 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11413 Add "solib-som.h" header.
11414 (set_hpux_major_release): New function.
11415 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11417 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11419 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11421 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11423 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11424 new-line at end of warning message.
11425 (ia64_hpux_store_register): Remove trailing new-line at end of
11427 * ia64-hpux-tdep.c: Rephrase comment.
11428 * solib-ia64-hpux.c (struct dld_info): Change type of field
11429 dld_flags from "long long" to ULONGEST.
11431 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11433 * target.h (deprecated_child_ops): Delete declaration.
11434 * target.c (deprecated_child_ops): Delete definition.
11436 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11438 * Makefile.in (hpux-thread.o): Delete rule.
11439 * configure.ac: Don't check for HPUX DCE threads support.
11440 * configure, config.in: Regenerate.
11441 * hppa-hpux-nat.c (child_suppress_run): Delete.
11442 (hppa_hpux_child_can_run): Delete.
11443 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11444 * hpux-thread.c: Delete.
11446 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11448 * hpux-thread.c (hpux_pid_to_str): Delete.
11450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11452 * ada-valprint.c (ada_emit_char): Remove strange code.
11453 Check that c is <= UCHAR_MAX before passing it to isascii.
11454 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11456 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11458 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11459 to the case where instream is stdin.
11461 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11463 * ia64-tdep.h (struct regcache): Forward declare.
11464 (struct ia64_infcall_ops): New struct type.
11465 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11467 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11468 Renames ia64_find_global_pointer.
11469 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11470 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11471 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11473 (ia64_infcall_ops): New static global constant.
11474 (ia64_gdbarch_init): Set tdep->infcall_ops.
11475 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11476 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11477 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11478 (ia64_hpux_dummy_code): New static global constant.
11479 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11480 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11481 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11483 (ia64_hpux_infcall_ops): New static global constant.
11484 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11485 for inferior function calls to work properly on ia64-hpux.
11487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11489 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11490 * ia64-tdep.h (struct frame_info): forward declaration.
11491 (struct gdbarch_tdep): Add field size_of_register_frame.
11492 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11493 to determine the size of the register frame.
11494 (ia64_size_of_register_frame): New function.
11495 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11496 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11497 (IA64_HPUX_UREG_REASON): New macro.
11498 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11500 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11501 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11502 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11505 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11507 Add support for ia64-hpux.
11508 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11509 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11511 * configure.host: Add handling for ia64-hpux hosts. Add associated
11513 * configure.tgt: Add handling for ia64-hpux targets.
11514 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11515 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11516 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11518 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11520 [ttrace] Compute thread list immediately after attach.
11521 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11523 (inf_ttrace_attach): Use it.
11525 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11527 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11528 if we could not determine the frame's function address. Instead,
11529 use the frame's PC, and then continue.
11531 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11533 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11534 not already defined.
11536 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11538 * ia64-tdep.c (ia64_struct_type_p): New function.
11539 (ia64_extract_return_value): Handle integral values that are
11540 less than 8 bytes long.
11541 (ia64_push_dummy_call): Likewise.
11543 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11545 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11546 floatformat_ia64_ext.
11547 (floatformat_ia64_ext_big): New static const.
11548 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11550 2011-01-12 Tom Tromey <tromey@redhat.com>
11552 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11554 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11555 (mi_cmd_thread_list_ids): Likewise.
11556 (mi_cmd_data_list_changed_registers): Likewise.
11557 (mi_cmd_data_list_register_values): Likewise.
11558 (mi_cmd_data_write_register_values): Likewise.
11559 (mi_cmd_data_evaluate_expression): Likewise.
11560 (mi_cmd_data_read_memory): Likewise.
11561 (mi_cmd_data_read_memory_bytes): Likewise.
11562 (mi_cmd_data_write_memory): Likewise.
11563 (mi_cmd_enable_timings): Likewise.
11564 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11565 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11566 (mi_cmd_var_delete): Likewise.
11567 (mi_cmd_var_set_format): Likewise.
11568 (mi_cmd_var_show_format): Likewise.
11569 (mi_cmd_var_info_num_children): Likewise.
11570 (mi_cmd_var_list_children): Likewise.
11571 (mi_cmd_var_info_type): Likewise.
11572 (mi_cmd_var_info_expression): Likewise.
11573 (mi_cmd_var_show_attributes): Likewise.
11574 (mi_cmd_var_assign): Likewise.
11575 (mi_cmd_var_update): Likewise.
11576 (mi_cmd_enable_pretty_printing): Likewise.
11577 (mi_cmd_var_set_update_range): Likewise.
11578 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11580 (mi_cmd_target_file_put): Likewise.
11581 (mi_cmd_target_file_delete): Likewise.
11582 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11584 (mi_cmd_stack_info_depth): Likewise.
11585 (mi_cmd_stack_list_locals): Likewise.
11586 (mi_cmd_stack_list_args): Likewise.
11587 (mi_cmd_stack_select_frame): Likewise.
11588 (mi_cmd_stack_select_frame): Likewise.
11589 (mi_cmd_stack_info_frame): Likewise.
11590 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11592 (mi_cmd_file_list_exec_source_files): Likewise.
11593 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11594 (mi_cmd_env_cd): Likewise.
11595 (mi_cmd_env_path): Likewise.
11596 (mi_cmd_env_dir): Likewise.
11597 (mi_cmd_inferior_tty_show): Likewise.
11598 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11599 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11600 (mi_cmd_break_watch): Likewise.
11602 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11604 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11605 (ppc_linux_insert_hw_breakpoint): Likewise.
11606 (ppc_linux_remove_hw_breakpoint): Likewise.
11607 (ppc_linux_insert_watchpoint): Likewise.
11609 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11610 Jan Kratochvil <jan.kratochvil@redhat.com>
11612 PR fortran/11104 and DWARF unbound arrays detection.
11613 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11614 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11615 unspecified upper bound.
11616 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11617 variables array_size_array, tmp_type and offset_item. New variable
11618 array. Remove call to f77_get_upperbound. New variables array_type
11619 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11620 the final call to deprecated_set_value_type.
11622 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11624 Make value allocations more lazy.
11625 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11626 instead of allocate_value and set_value_lazy when possible.
11627 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11628 instead of allocate_value and set_value_lazy.
11629 * findvar.c (value_of_register_lazy): Likewise.
11630 (read_var_value): Remove V preallocation, call just check_typedef in
11631 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11632 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11633 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11634 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11635 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11636 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11637 the end, remove set_value_lazy there.
11638 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11639 instead of allocate_value and set_value_lazy when possible.
11640 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11641 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11642 of allocate_value and set_value_lazy.
11643 (value_from_contents_and_address): Use allocate_value_lazy instead of
11644 allocate_value and set_value_lazy when possible.
11646 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11648 * disasm.c (dump_insns): Support dumping opcodes for MI.
11649 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11650 dumping of instruction opcodes.
11652 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11654 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11657 2011-01-11 Tom Tromey <tromey@redhat.com>
11659 * thread.c (do_captured_thread_select): Emit newline before
11662 2011-01-11 Michael Snyder <msnyder@vmware.com>
11664 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11665 * score-tdep.c: Ditto.
11666 * score-tdep.h: Ditto.
11667 * ser-base.c: Ditto.
11668 * ser-go32.c: Ditto.
11671 * ser-mingw.c: Ditto.
11672 * ser-pipe.c: Ditto.
11673 * ser-tcp.c: Ditto.
11674 * ser-unix.c: Ditto.
11675 * sh64-tdep.c: Ditto.
11676 * shnbsd-nat.c: Ditto.
11677 * sh-tdep.c: Ditto.
11678 * sh-tdep.h: Ditto.
11680 * solib-darwin.c: Ditto.
11681 * solib-frv.c: Ditto.
11683 * solib-irix.c: Ditto.
11684 * solib-osf.c: Ditto.
11685 * solib-pa64.c: Ditto.
11686 * solib-som.c: Ditto.
11687 * solib-spu.c: Ditto.
11688 * solib-sunos.c: Ditto.
11689 * solib-svr4.c: Ditto.
11691 * sol-thread.c: Ditto.
11692 * somread.c: Ditto.
11695 * sparc64-linux-tdep.c: Ditto.
11696 * sparc64-tdep.c: Ditto.
11697 * sparc-linux-nat.c: Ditto.
11698 * sparc-linux-tdep.c: Ditto.
11699 * sparc-sol2-nat.c: Ditto.
11700 * sparc-sol2-tdep.c: Ditto.
11701 * sparc-tdep.c: Ditto.
11702 * sparc-tdep.h: Ditto.
11703 * spu-tdep.c: Ditto.
11704 * stabsread.c: Ditto.
11705 * stabsread.h: Ditto.
11707 * symfile.c: Ditto.
11708 * symfile.h: Ditto.
11709 * symmisc.c: Ditto.
11713 * target-descriptions.c: Ditto.
11714 * target-descriptions.h: Ditto.
11716 * target-memory.c: Ditto.
11717 * terminal.h: Ditto.
11720 * tracepoint.c: Ditto.
11721 * tracepoint.h: Ditto.
11722 * trad-frame.h: Ditto.
11723 * typeprint.c: Ditto.
11725 2011-01-11 Michael Snyder <msnyder@vmware.com>
11727 * ui-file.c: Comment cleanup, mostly periods and spaces.
11728 * ui-file.h: Ditto.
11732 * v850-tdep.c: Ditto.
11733 * valarith.c: Ditto.
11735 * valprint.c: Ditto.
11736 * valprint.h: Ditto.
11741 * vax-tdep.c: Ditto.
11744 * version.h: Ditto.
11745 * windows-nat.c: Ditto.
11746 * windows-tdep.c: Ditto.
11747 * xcoffread.c: Ditto.
11748 * xcoffsolib.c: Ditto.
11749 * xml-support.c: Ditto.
11750 * xstormy16-tdep.c: Ditto.
11751 * xtensa-tdep.c: Ditto.
11752 * xtensa-tdep.h: Ditto.
11754 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11756 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11757 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11759 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11760 Thiago Jung Bauermann <bauerman@br.ibm.com>
11762 Implement support for PowerPC BookE ranged watchpoints.
11764 (struct breakpoint_ops) <resources_needed>: New method.
11765 Initialize to NULL in all existing breakpoint_ops instances.
11766 (struct breakpoint) <exact>: New field.
11767 (target_exact_watchpoints): Declare external global.
11768 * breakpoint.c (target_exact_watchpoints): New global flag.
11769 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11770 b->enable_state to bp_enabled before calling
11771 hw_watchpoint_used_count.
11772 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11773 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11775 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11776 if the watchpoint is exact.
11777 (resources_needed_watchpoint): New function.
11778 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11779 (watch_command_1): Set b->exact if the user asked for an exact
11780 watchpoint and one can be set.
11781 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11782 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11783 the user asks for an exact watchpoint and one can be set. Return
11784 number of needed debug registers to watch the expression.
11785 * gdbtypes.c (is_scalar_type): New function, based on
11786 valprint.c:scalar_type_p.
11787 (is_scalar_type_recursive): New function.
11788 * gdbtypes.h (is_scalar_type_recursive): Declare.
11789 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11790 handle regions when ranged watchpoints are available.
11791 (create_watchpoint_request): New function.
11792 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11793 create_watchpoint_request.
11794 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11795 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11796 `set powerpc' and `show powerpc' commands.
11797 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11798 Mention documentation comment in the target macro.
11799 (target_region_ok_for_hw_watchpoint): Document return value.
11801 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11803 * breakpoint.c (update_watchpoint): Decide on using a software or
11804 hardware watchpoint after the bp_locations are created.
11806 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11808 Convert hardware watchpoints to use breakpoint_ops.
11809 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11810 <insert_location>: ... this. Return int instead of void.
11811 Accept pointer to struct bp_location instead of pointer to
11812 struct breakpoint. Adapt all implementations.
11813 (breakpoint_ops) <remove>: Rename to...
11814 <remove_location>: ... this. Accept pointer to struct bp_location
11815 instead of pointer to struct breakpoint. Adapt all implementations.
11816 * breakpoint.c (insert_catchpoint): Delete function.
11817 (insert_bp_location): Call the watchpoint or catchpoint's
11818 breakpoint_ops.insert method.
11819 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11820 breakpoint_ops.remove method.
11821 (insert_watchpoint, remove_watchpoint): New functions.
11822 (watchpoint_breakpoint_ops): New structure.
11823 (watch_command_1): Initialize the OPS field.
11824 * inf-child.c (inf_child_insert_fork_catchpoint)
11825 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11826 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11827 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11829 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11830 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11831 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11832 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11833 * target.c (update_current_target): Change default implementation of
11834 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11835 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11836 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11837 to_set_syscall_catchpoint to return_one.
11838 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11839 (debug_to_insert_exec_catchpoint): Report return value.
11840 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11841 (to_insert_exec_catchpoint): Change declaration to return int instead
11844 2011-01-11 Michael Snyder <msnyder@vmware.com>
11846 * arm-tdep.c: Internationalization.
11848 * charset.c: Ditto.
11849 * fork-child.c: Ditto.
11850 * nto-procfs.c: Ditto.
11851 * ppc-sysv-tdep.c: Ditto.
11853 * remote-mips.c: Ditto.
11855 * rs6000-nat.c: Ditto.
11856 * rs6000-tdep.c: Ditto.
11860 * xml-support.c: Ditto.
11861 * mi/mi-cmd-break.c: Ditto.
11862 * mi/mi-cmd-var.c: Ditto.
11863 * mi/mi-interp.c: Ditto.
11864 * mi/mi-main.c: Ditto.
11866 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11868 * remote-sim.c (gdbsim_store_register): Update API to
11869 sim_store_register to check more error conditions.
11871 2011-01-10 Michael Snyder <msnyder@vmware.com>
11873 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11874 * nto-tdep.c: Ditto.
11875 * nto-tdep.h: Ditto.
11876 * objc-exp.y: Ditto.
11877 * objc-lang.c: Ditto.
11878 * objfiles.c: Ditto.
11879 * objfiles.h: Ditto.
11880 * observer.c: Ditto.
11881 * opencl-lang.c: Ditto.
11884 * parser-defs.h: Ditto.
11887 * posix-hdep.c: Ditto.
11888 * ppcbug-rom.c: Ditto.
11889 * ppc-linux-nat.c: Ditto.
11890 * ppc-linux-tdep.c: Ditto.
11891 * ppc-linux-tdep.h: Ditto.
11892 * ppcnbsd-tdep.c: Ditto.
11893 * ppcobsd-tdep.c: Ditto.
11894 * ppcobsd-tdep.h: Ditto.
11895 * ppc-sysv-tdep.c: Ditto.
11896 * ppc-tdep.h: Ditto.
11897 * printcmd.c: Ditto.
11898 * proc-abi.c: Ditto.
11899 * proc-flags.c: Ditto.
11901 * proc-utils.h: Ditto.
11902 * progspace.h: Ditto.
11903 * prologue-value.c: Ditto.
11904 * prologue-value.h: Ditto.
11905 * psympriv.h: Ditto.
11906 * psymtab.c: Ditto.
11907 * p-typeprint.c: Ditto.
11908 * p-valprint.c: Ditto.
11909 * ravenscar-sparc-thread.c: Ditto.
11910 * ravenscar-thread.c: Ditto.
11911 * ravenscar-thread.h: Ditto.
11913 * regcache.c: Ditto.
11914 * regcache.h: Ditto.
11916 * remote-fileio.c: Ditto.
11917 * remote-fileio.h: Ditto.
11919 * remote-m32r-sdi.c: Ditto.
11920 * remote-mips.c: Ditto.
11921 * remote-sim.c: Ditto.
11922 * rs6000-aix-tdep.c: Ditto.
11923 * rs6000-nat.c: Ditto.
11924 * rs6000-tdep.c: Ditto.
11926 2011-01-10 Michael Snyder <msnyder@vmware.com>
11928 * charset.c (validate): Internationalization.
11929 * coffread.c (read_one_sym): Ditto.
11930 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11931 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11932 * inflow.c (new_tty): Ditto.
11933 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11934 * m32c-tdep.c (m32c_return_value): Ditto.
11935 * mep-tdep.c (mep_store_return_value): Ditto.
11936 * score-tdep.c (score7_fetch_insn): Ditto.
11937 * ser-mingw.c (pipe_windows_open): Ditto.
11938 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11939 * spu-tdep.c (spu_register_type): Ditto.
11940 * tracepoint.c (trace_find_command): Ditto.
11941 * valarith.c (value_pos): Ditto.
11943 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11945 * ada-valprint.c (printstr): Minor comment reformatting.
11947 2011-01-08 Michael Snyder <msnyder@vmware.com>
11949 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11952 2011-01-08 Michael Snyder <msnyder@vmware.com>
11954 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11955 * hppa-hpux-tdep.c: Ditto.
11956 * hppa-linux-nat.c: Ditto.
11957 * hppa-linux-tdep.c: Ditto.
11958 * hppanbsd-tdep.c: Ditto.
11959 * hppa-tdep.c: Ditto.
11960 * hppa-tdep.h: Ditto.
11961 * hpux-thread.c: Ditto.
11962 * i386-cygwin-tdep.c: Ditto.
11963 * i386-darwin-nat.c: Ditto.
11964 * i386gnu-nat.c: Ditto.
11965 * i386-linux-nat.c: Ditto.
11966 * i386-linux-tdep.c: Ditto.
11967 * i386-nat.c: Ditto.
11968 * i386-nat.h: Ditto.
11969 * i386nbsd-tdep.c: Ditto.
11970 * i386-sol2-nat.c: Ditto.
11971 * i386-stub.c: Ditto.
11972 * i386-tdep.c: Ditto.
11973 * i386-tdep.h: Ditto.
11974 * i387-tdep.c: Ditto.
11975 * ia64-linux-nat.c: Ditto.
11976 * ia64-linux-tdep.c: Ditto.
11977 * ia64-tdep.c: Ditto.
11978 * infcall.c: Ditto.
11979 * infcall.h: Ditto.
11981 * inferior.c: Ditto.
11982 * inferior.h: Ditto.
11983 * infloop.c: Ditto.
11986 * interps.c: Ditto.
11987 * interps.h: Ditto.
11988 * iq2000-tdep.c: Ditto.
11989 * irix5-nat.c: Ditto.
11993 * jv-lang.c: Ditto.
11994 * jv-lang.h: Ditto.
11995 * jv-typeprint.c: Ditto.
11996 * jv-valprint.c: Ditto.
11997 * language.c: Ditto.
11998 * language.h: Ditto.
11999 * linespec.c: Ditto.
12000 * linux-fork.c: Ditto.
12001 * linux-nat.c: Ditto.
12002 * linux-thread-db.c: Ditto.
12003 * lm32-tdep.c: Ditto.
12005 2011-01-08 Michael Snyder <msnyder@vmware.com>
12007 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12008 * m2-lang.c: Ditto.
12009 * m2-typeprint.c: Ditto.
12010 * m2-valprint.c: Ditto.
12011 * m32c-tdep.c: Ditto.
12012 * m32r-linux-nat.c: Ditto.
12013 * m32r-rom.c: Ditto.
12014 * m32r-tdep.c: Ditto.
12015 * m32r-tdep.h: Ditto.
12016 * m68hc11-tdep.c: Ditto.
12017 * m58klinux-nat.c: Ditto.
12018 * m68k-tdep.c: Ditto.
12019 * m88k-tdep.c: Ditto.
12020 * m88k-tdep.h: Ditto.
12021 * machoread.c: Ditto.
12022 * macrocmd.c: Ditto.
12023 * macroexp.c: Ditto.
12024 * macrotab.c: Ditto.
12027 * mdebugread.c: Ditto.
12028 * mdebugread.h: Ditto.
12029 * memattr.c: Ditto.
12030 * memattr.h: Ditto.
12031 * memory-map.h: Ditto.
12032 * mep-tdep.c: Ditto.
12033 * microblaze-rom.c: Ditto.
12034 * microblaze-tdep.c: Ditto.
12035 * minsyms.c: Ditto.
12036 * mips-irix-tdep.c: Ditto.
12037 * mips-linux-nat.c: Ditto.
12038 * mips-linux-tdep.c: Ditto.
12039 * mips-linux-tdep.h: Ditto.
12040 * mipsnbsd-nat.c: Ditto.
12041 * mipsnbsd-tdep.c: Ditto.
12042 * mipsread.c: Ditto.
12043 * mips-tdep.c: Ditto.
12044 * mips-tdep.h: Ditto.
12045 * mn10300-linux-tdep.c: Ditto.
12046 * mn10300-tdep.c: Ditto.
12047 * mn10300-tdep.h: Ditto.
12048 * monitor.c: Ditto.
12049 * monitor.h: Ditto.
12050 * moxie-tdep.c: Ditto.
12051 * moxie-tdep.h: Ditto.
12052 * mt-tdep.c: Ditto.
12054 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12056 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12058 2011-01-08 Robert Millan <rmh@gnu.org>
12060 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12062 2011-01-07 Michael Snyder <msnyder@vmware.com>
12064 * charset.c (_initialize_charset): Fix typo in string.
12066 2011-01-07 Michael Snyder <msnyder@vmware.com>
12068 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12070 * tui/tui-layout.c (tui_set_layout_for_display_command):
12071 Split line so that operator goes to beginning of line.
12072 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12073 assignment out of if statement.
12075 2011-01-07 Michael Snyder <msnyder@vmware.com>
12077 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12078 * ada-lang.h: Ditto.
12079 * ada-tasks.c: Ditto.
12080 * ada-valprint.c: Ditto.
12081 * aix-threads.c: Ditto.
12082 * alpha-linux-nat.c: Ditto.
12083 * alpha-linux-tdep.c: Ditto.
12084 * alpha-mdebug-tdep.c: Ditto.
12085 * alpha-nat.c: Ditto.
12086 * alpha-osf1-tdep.c: Ditto.
12087 * alpha-tdep.c: Ditto.
12088 * alphabsd-nat.c: Ditto.
12089 * alphabsd-tdep.c: Ditto.
12090 * amd64-darwin-tdep.c: Ditto.
12091 * amd64-linux-nat.c: Ditto.
12092 * amd64-linux-tdep.c: Ditto.
12093 * amd64-sol2-tdep.c: Ditto.
12094 * amd64-tdep.c: Ditto.
12095 * amd64-fbsd-tdep.c: Ditto.
12096 * amd64-nbsd-tdep.c: Ditto.
12097 * amd64-obsd-tdep.c: Ditto.
12098 * amd64-linux-nat.c: Ditto.
12099 * amd64-linux-tdep.c: Ditto.
12100 * arm-tdep.c: Ditto.
12101 * arm-tdep.h: Ditto.
12102 * armnbsd-nat.c: Ditto.
12103 * avr-tdep.c: Ditto.
12104 * bfin-tdep.c: Ditto.
12105 * bsd-kvm.c: Ditto.
12106 * c-typeprintc: Ditto.
12107 * c-valprint.c: Ditto.
12108 * coff-pe-read.h: Ditto.
12109 * coffreead.c: Ditto.
12110 * cris-tdep.c: Ditto.
12112 * darwin-nat-info.c: Ditto.
12113 * darwin-nat.c: Ditto.
12114 * dbug-rom.c: Ditto.
12115 * dbxread.c: Ditto.
12118 * dec-thread.c: Ditto.
12120 * demangle.c: Ditto.
12121 * dicos-tdep.c: Ditto.
12122 * dictionary.c: Ditto.
12123 * dictionary.h: Ditto.
12124 * dink32-rom.c: Ditto.
12126 * doublest.c: Ditto.
12128 * dummy-frame.c: Ditto.
12129 * dwarf2-frame.c: Ditto.
12130 * dwarf2expr.c: Ditto.
12131 * dwarf2loc.c: Ditto.
12132 * dwarf2read.c: Ditto.
12133 * elfread.c: Ditto.
12134 * environ.c: Ditto.
12136 * event-top.h: Ditto.
12137 * exceptions.c: Ditto.
12138 * exceptions.h: Ditto.
12140 * expprint.c: Ditto.
12141 * expression.h: Ditto.
12145 * f-typeprint.c: Ditto.
12146 * f-valprint.c: Ditto.
12147 * fbsd-nat.c: Ditto.
12148 * findvar.c: Ditto.
12149 * fork-child.c: Ditto.
12152 * frv-linux-tdep.c: Ditto.
12153 * frv-tdep.c: Ditto.
12155 * gdb-stabs.h: Ditto.
12156 * gdb_assert.h: Ditto.
12157 * gdb_string.h: Ditto.
12158 * gdb_thread_db.h: Ditto.
12159 * gdb_wait.h: Ditto.
12160 * gdbarch.sh: Ditto.
12161 * gdbcore.h: Ditto.
12162 * gdbthread.h: Ditto.
12163 * gdbtypes.c: Ditto.
12164 * gdbtypes.h: Ditto.
12165 * gnu-nat.c: Ditto.
12166 * gnu-nat.h: Ditto.
12167 * gnu-v2-abi.c: Ditto.
12168 * gnu-v3-abi.c: Ditto.
12169 * go32-nat.c: Ditto.
12170 * gdbarch.c: Regenerate.
12171 * gdbarch.h: Regenerate.
12173 2011-01-07 Michael Snyder <msnyder@vmware.com>
12175 * ax-gdb.c: Adjust some long output strings.
12176 * breakpoint.c: Ditto.
12177 * charset.c: Ditto.
12179 * infcall.c: Ditto.
12181 * linux-nat.c: Ditto.
12182 * solib-pa64.c: Ditto.
12183 * solib-som.c: Ditto.
12185 2011-01-06 Tom Tromey <tromey@redhat.com>
12189 * python/python.c (GdbMethods): Add "newest_frame" method.
12190 * python/python-internal.h (gdbpy_newest_frame): Declare.
12191 * python/py-frame.c (gdbpy_newest_frame): New function.
12193 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12195 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12196 * jit.c (jit_debug): New variable.
12197 (show_jit_debug): New function.
12198 (struct target_buffer): Use ULONGEST.
12199 (bfd_open_from_target_memory): Likewise.
12200 (jit_register_code, jit_inferior_init): Add debug output.
12201 (_initialize_jit): Register "debug jit" command.
12203 2011-01-06 Tom Tromey <tromey@redhat.com>
12205 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12206 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12209 2011-01-06 Tom Tromey <tromey@redhat.com>
12211 * python/py-frame.c (frapy_block): Use get_frame_block.
12213 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12215 Do not stop on SIGPRIO signals by default
12216 * infrun.c (_initialize_infrun): Unset signal_stop and
12217 signal_print for TARGET_SIGNAL_PRIO.
12219 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12221 * ada-tasks.c: Fix style violation in comment.
12223 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12225 * linespec.c (decode_compound, find_method): Remove trailing \n
12226 at end of error string.
12227 * solib-irix.c (irix_current_sos): Likewise.
12228 * varobj.c (uninstall_variable): Likewise.
12230 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12232 * copyright.py: New script.
12233 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12234 Launch emacs without exec'ing. Call copyright.py afterwards.
12236 2011-01-05 Michael Snyder <msnyder@vmware.com>
12238 * addrmap.c: Shorten lines of >= 80 columns.
12239 * arch-utils.c: Ditto.
12240 * arch-utils.h: Ditto.
12242 * ax-general.c: Ditto.
12244 * blockframe.c: Ditto.
12245 * breakpoint.c: Ditto.
12246 * buildsym.c: Ditto.
12248 * c-typeprint.c: Ditto.
12249 * charset.c: Ditto.
12250 * coffread.c: Ditto.
12251 * command.h: Ditto.
12252 * corelow.c: Ditto.
12254 * cp-namespace.c: Ditto.
12255 * cp-support.c: Ditto.
12256 * dbug-rom.c: Ditto.
12257 * dbxread.c: Ditto.
12261 * dictionary.c: Ditto.
12263 * doublest.c: Ditto.
12264 * dwarf2-frame.c: Ditto.
12265 * dwarf2expr.c: Ditto.
12266 * dwarf2loc.c: Ditto.
12267 * dwarf2read.c: Ditto.
12268 * elfread.c: Ditto.
12270 * event-loop.c: Ditto.
12271 * event-loop.h: Ditto.
12272 * exceptions.h: Ditto.
12274 * expprint.c: Ditto.
12275 * expression.h: Ditto.
12277 * f-valprint.c: Ditto.
12278 * findcmd.c: Ditto.
12279 * frame-base.c: Ditto.
12280 * frame-unwind.c: Ditto.
12281 * frame-unwind.h: Ditto.
12285 * gdb-stabs.h: Ditto.
12286 * gdb_assert.h: Ditto.
12287 * gdb_dirent.h: Ditto.
12288 * gdb_obstack.h: Ditto.
12289 * gdbcore.h: Ditto.
12290 * gdbtypes.c: Ditto.
12291 * gdbtypes.h: Ditto.
12292 * inf-ttrace.c: Ditto.
12293 * infcall.c: Ditto.
12297 * inline-frame.h: Ditto.
12298 * language.c: Ditto.
12299 * language.h: Ditto.
12300 * libunwind-frame.c: Ditto.
12301 * libunwind-frame.h: Ditto.
12302 * linespec.c: Ditto.
12303 * linux-nat.c: Ditto.
12304 * linux-nat.h: Ditto.
12305 * linux-thread-db.c: Ditto.
12306 * machoread.c: Ditto.
12307 * macroexp.c: Ditto.
12308 * macrotab.c: Ditto.
12311 * mdebugread.c: Ditto.
12312 * memattr.c: Ditto.
12313 * minsyms.c: Ditto.
12314 * monitor.c: Ditto.
12315 * monitor.h: Ditto.
12316 * objfiles.c: Ditto.
12317 * objfiles.h: Ditto.
12319 * p-typeprint.c: Ditto.
12320 * p-valprint.c: Ditto.
12322 * printcmd.c: Ditto.
12323 * proc-events.c: Ditto.
12325 * progspace.c: Ditto.
12326 * progspace.h: Ditto.
12327 * psympriv.h: Ditto.
12328 * psymtab.c: Ditto.
12330 * regcache.c: Ditto.
12331 * regcache.h: Ditto.
12332 * remote-fileio.c: Ditto.
12334 * ser-mingw.c: Ditto.
12335 * ser-tcp.c: Ditto.
12336 * ser-unix.c: Ditto.
12339 * solib-frv.c: Ditto.
12340 * solib-irix.c: Ditto.
12341 * solib-osf.c: Ditto.
12342 * solib-pa64.c: Ditto.
12343 * solib-som.c: Ditto.
12344 * solib-sunos.c: Ditto.
12345 * solib-svr4.c: Ditto.
12346 * solib-target.c: Ditto.
12348 * somread.c: Ditto.
12350 * stabsread.c: Ditto.
12351 * stabsread.c: Ditto.
12354 * symfile-mem.c: Ditto.
12355 * symfile.c: Ditto.
12356 * symfile.h: Ditto.
12357 * symmisc.c: Ditto.
12360 * target-descriptions.c: Ditto.
12361 * target-memory.c: Ditto.
12364 * terminal.h: Ditto.
12367 * tracepoint.c: Ditto.
12368 * tracepoint.h: Ditto.
12369 * ui-file.c: Ditto.
12370 * ui-file.h: Ditto.
12372 * user-regs.c: Ditto.
12373 * user-regs.h: Ditto.
12375 * valarith.c: Ditto.
12377 * valprint.c: Ditto.
12378 * valprint.h: Ditto.
12383 * xcoffread.c: Ditto.
12384 * xcoffsolib.c: Ditto.
12385 * xcoffsolib.h: Ditto.
12386 * xml-syscall.c: Ditto.
12387 * xml-tdesc.c: Ditto.
12389 2011-01-05 Michael Snyder <msnyder@vmware.com>
12391 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12392 * cli/cli-decode.c: Ditto.
12393 * cli/cli-dump.c: Ditto.
12394 * cli/cli-logging.c: Ditto.
12395 * cli/cli-script.c: Ditto.
12396 * cli/cli-setshow.c: Ditto.
12397 * common/signals.c: Ditto.
12398 * mi/mi-cmd-break.c: Ditto.
12399 * mi/mi-cmd-disas.c: Ditto.
12400 * mi/mi-cmd-stack.c: Ditto.
12401 * mi/mi-cmd-var.c: Ditto.
12402 * mi/mi-cmds.c: Ditto.
12403 * mi/mi-common.h: Ditto.
12404 * mi/mi-console.c: Ditto.
12405 * mi/mi-interp.c: Ditto.
12406 * mi/mi-main.c: Ditto.
12407 * osf-share/cma_attr.c: Ditto.
12408 * osf-share/cma_deb_core.h: Ditto.
12409 * osf-share/cma_debug_client.h: Ditto.
12410 * osf-share/cma_handle.h: Ditto.
12411 * osf-share/cma_mutex.h: Ditto.
12412 * osf-share/cma_stack_int.h: Ditto.
12413 * osf-share/cma_tcb_defs.h: Ditto.
12414 * python/py-auto-load.c: Ditto.
12415 * python/py-breakpoint.c: Ditto.
12416 * python/py-cmd.c: Ditto.
12417 * python/py-frame.c: Ditto.
12418 * python/py-objfile.c: Ditto.
12419 * python/py-param.c: Ditto.
12420 * python/py-progspace.c: Ditto.
12421 * python/py-symbol.c: Ditto.
12422 * python/py-value.c: Ditto.
12423 * python/python-internal.h: Ditto.
12424 * python/python.c: Ditto.
12425 * tui/tui-data.c: Ditto.
12426 * tui/tui-disasm.c: Ditto.
12427 * tui/tui-hooks.c: Ditto.
12428 * tui/tui-io.c: Ditto.
12429 * tui/tui-layout.c: Ditto.
12430 * tui/tui-regs.c: Ditto.
12431 * tui/tui-source.c: Ditto.
12432 * tui/tui-stack.c: Ditto.
12433 * tui/tui-win.c: Ditto.
12434 * tui/tui-windata.c: Ditto.
12435 * tui/tui-winsource.c: Ditto.
12437 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12439 * configure.ac, gdb.1: Copyright year update.
12441 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12443 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12444 this_pc_in_block, morestack_msym and morestack_name. Check for
12445 "__morestack" minimal symbol there.
12447 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12449 * symfile.c (find_sym_fns): Add call to dont_repeat.
12451 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12453 Copyright year update in most files (performed by copyright.sh).
12455 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12457 * top.c (print_gdb_version): Update copyright year in version output.
12459 For older changes see ChangeLog-2010.
12465 version-control: never