1 2011-12-21 Tom Tromey <tromey@redhat.com>
3 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
5 (hppa_hpux_find_dummy_bpaddr): Likewise.
6 * jit.c (jit_object_close_impl): Use
7 terminate_minimal_symbol_table.
9 2011-12-21 Tom Tromey <tromey@redhat.com>
11 * elfread.c (elf_symtab_read): Put the filename in the filename
14 2011-12-21 Tom Tromey <tromey@redhat.com>
16 * symtab.h (struct minimal_symbol) <filename>: Now const.
18 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
21 * arm-tdep.c (arm_return_value): Handle complex types.
23 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
25 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
26 watchpoints when supported.
28 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
30 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
31 (reread_symbols): Remove variable reread_one, new variables
32 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
33 reread_one. Push changed objfiles to new_objfiles, call
34 observer_notify_new_objfile for them later.
36 2011-12-21 Joel Brobecker <brobecker@adacore.com>
38 * psymtab.c (expand_symtabs_matching_via_partial): Match
39 the partial symbols using their SYMBOL_SEARCH_NAME.
40 * symfile.h (struct quick_symbol_functions): Udate the
41 documentation of expand_symtabs_matching.
42 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
43 of SYMBOL_NATURAL_NAME in index entry.
45 2011-12-21 Joel Brobecker <brobecker@adacore.com>
47 * linespec.c (locate_first_half): Add handling of Ada operators
48 when the current language is Ada.
50 2011-12-21 Joel Brobecker <brobecker@adacore.com>
52 * objfiles.c (insert_section_p): Do not detect overlay sections
53 if overlay debugging is off.
55 2011-12-21 Joel Brobecker <brobecker@adacore.com>
57 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
58 Update function documentation.
59 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
62 2011-12-20 Pedro Alves <alves.ped@gmail.com>
63 Jan Kratochvil <jan.kratochvil@redhat.com>
65 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
67 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
68 `lwp->arch_private' if NULL.
69 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
71 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
72 `lwp->arch_private' if NULL.
73 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
76 2011-12-19 Doug Evans <dje@google.com>
78 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
79 scripts vector to collect_matching_scripts.
80 (collect_matching_scripts): Update.
82 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
84 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
85 preserve_values, sym_finish and clear_objfile_data calls before BFD
86 close. Move free_objfile_separate_debug as the very first call. New
87 comment on the ordering.
89 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
91 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
94 2011-12-19 Tom Tromey <tromey@redhat.com>
96 * symtab.h (add_minsym_to_hash_table): Don't declare.
97 * minsyms.c (add_minsym_to_hash_table): Now static.
99 2011-12-19 Joel Brobecker <brobecker@adacore.com>
101 * elfread.c (elf_symtab_read): Ignore undefined symbols with
102 nonzero addresses if they do not correspond to a .plt section
103 when one is available in the objfile.
105 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
107 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
110 2011-12-17 Mark Kettenis <kettenis@gnu.org>
112 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
113 regset_from_core_section.
114 (amd64obsd_core_init_abi): New function that sets
115 regset_from_core_section.
116 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
117 traditional core dumps.
119 2011-12-17 Mark Kettenis <kettenis@gnu.org>
121 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
122 trampoline to be introduced in OpenBSD 5.0.
124 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
126 Fix build regression from the PR threads/10729 fix.
127 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
130 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
132 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
133 `optarg' to `oind' and `oarg', respectively(-Wshadow).
134 (mi_cmd_data_read_memory): Ditto.
135 (mi_cmd_data_read_memory_bytes): Ditto.
136 (mi_cmd_data_write_memory): Ditto.
138 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
140 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
141 `oind' and `oarg', respectively(-Wshadow).
142 (mi_valid_noargs): Ditto.
144 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
146 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
147 `oind' and `oarg', respectively(-Wshadow).
149 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
151 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
152 `optarg' to `oind' and `oarg', respectively(-Wshadow).
153 (mi_cmd_target_file_put): Ditto.
154 (mi_cmd_target_file_delete): Ditto.
156 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
158 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
159 `optarg' to `oind' and `oarg', respectively(-Wshadow).
160 (mi_cmd_env_dir): Ditto.
162 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
164 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
165 `optarg' to `oind' and `oarg', respectively(-Wshadow).
167 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
169 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
170 `optparg' to `oind' and `oarg', respectively(-Wshadow).
171 (mi_cmd_break_watch): Ditto.
173 2011-12-16 Tom Tromey <tromey@redhat.com>
175 * linespec.c (collect_symbols): Call maybe_add_address after
176 calling symbol_to_sal.
177 (minsym_found): Call maybe_add_address here.
178 (search_minsyms_for_name): Don't call maybe_add_address.
180 2011-12-16 Tom Tromey <tromey@redhat.com>
182 * linespec.c (struct collect_info) <objfile>: Remove field.
183 (decode_objc): Update.
184 (find_method): Update.
185 (decode_variable): Update.
186 (struct minsym_and_objfile): New.
187 (struct collect_minsyms): New.
188 (classify_mtype): New function.
189 (compare_msyms): Likewise.
190 (add_minsym): Likewise.
191 (check_minsym): Remove.
192 (search_minsyms_for_name): Sort minsyms and apply only those with
195 2011-12-16 Tom Tromey <tromey@redhat.com>
197 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
199 2011-12-16 Pedro Alves <pedro@codesourcery.com>
201 * inf-loop.c: Include top.h.
202 (inferior_event_handler): Call check_frame_language.
203 * top.c (check_frame_language_change): New, factored out from ...
204 (execute_command): ... this. Use check_frame_language_change.
205 * top.h (check_frame_language_change): Declare.
207 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
209 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
212 2011-12-16 Doug Evans <dje@google.com>
214 * NEWS: Add entry for stdio gdbserver.
216 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
218 * python/python.c: Define python_excp_enums.
219 (eval_python_from_control_command): Do not call gdbpy_print_stack.
220 (python_command): Ditto.
221 (gdbpy_print_stack): Rewrite to use new enum constants.
222 (maint_set_python): Remove function.
223 (maint_show_python): Ditto.
224 (_initialize_python): Do not add "maint" commands. Add "set/show
225 python print-stack commands".
226 * NEWS: Update to reflect removal for "maint set/show
229 2011-12-15 Doug Evans <dje@google.com>
231 * exceptions.c (catcher_list_size): New function.
232 (last_message): Delete.
233 (exception_messages, exception_messages_size): New static globals.
234 (throw_it): Use exception_messages array to handle nested calls.
236 2011-12-15 Tom Tromey <tromey@redhat.com>
238 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
241 2011-12-14 Doug Evans <dje@google.com>
243 * defs.h (wait_to_die_with_timeout): Declare.
244 * utils.c: #include "gdb_wait.h".
245 (sigalrm_handler, wait_to_die_with_timeout): New functions.
246 * ser-pipe.c: Don't #include "gdb_wait.h".
247 (pipe_close): Give child a chance to die on its own after closing
248 its stdin before SIGTERM'ing it.
250 2011-12-14 Joel Brobecker <brobecker@adacore.com>
251 Tom Tromey <tromey@redhat.com>
253 * ada-lang.c (add_nonlocal_symbols): Initialize data to
254 all zeros. Remove setting of data.arg_sym to NULL.
256 2011-12-14 Pedro Alves <pedro@codesourcery.com>
260 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
262 (linux_nat_prepare_to_resume): New global.
264 (purge_lwp_list): Use it.
265 (add_lwp): Call linux_nat_new_thread even on the first LWP.
266 Adjust to interface change.
267 (delete_lwp): Call lwp_free instead of xfree.
268 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
269 (linux_handle_syscall_trap, linux_handle_extended_wait)
270 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
271 linux_nat_prepare_to_resume before resuming.
272 (linux_stop_lwp): New.
273 (linux_nat_set_new_thread): Adjust.
274 (linux_nat_set_prepare_to_resume): New.
275 * linux-nat.h (struct arch_lwp_info): Forward declare.
276 (struct lwp_info) <arch_private>: New field.
277 (linux_stop_lwp): Declare.
278 (linux_nat_set_new_thread): Adjust.
279 (linux_nat_set_prepare_to_resume): New.
281 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
282 (struct i386_debug_reg_state): Move to i386-nat.h.
283 (dr_mirror): Comment.
284 (i386_debug_reg_state): New.
285 (i386_update_inferior_debug_regs): Simplify.
286 (i386_stopped_data_address): Use the debug register state from the
287 inferior, not from the local cache.
288 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
289 unset_status fields. New get_addr and get_control fields.
290 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
291 (DR_NADDR, DR_STATUS): New.
292 (struct i386_debug_reg_state): Moved from i386-nat.c.
294 * amd64-linux-nat.c (struct arch_lwp_info): New.
295 (amd64_linux_dr): Delete global.
296 (amd64_linux_dr_get_addr): New.
297 (amd64_linux_dr_get_control): New.
298 (amd64_linux_dr_unset_status): Delete.
299 (amd64_linux_dr_set_addr): Reimplement.
300 (amd64_linux_dr_reset_addr): Delete.
301 (update_debug_registers_callback): New.
302 (amd64_linux_dr_set_control): Reimplement.
303 (amd64_linux_dr_set_addr): Reimplement.
304 (amd64_linux_prepare_to_resume): New.
305 (amd64_linux_new_thread): Change parameter to an lwp pointer.
307 (_initialize_amd64_linux_nat): No longer install
308 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
309 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
310 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
311 amd64_linux_prepare_to_resume.
312 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
313 (DR_CONTROL): Delete.
314 (struct arch_lwp_info): New.
315 (i386_linux_dr): Delete global.
316 (i386_linux_dr_set_control): Reimplement.
317 (i386_linux_dr_get_addr): New.
318 (i386_linux_dr_set_addr): Reimplement.
319 (i386_linux_dr_get_control): New.
320 (update_debug_registers_callback): New.
321 (i386_linux_dr_unset_status): Delete.
322 (i386_linux_dr_set_addr): Reimplement.
323 (i386_linux_prepare_to_resume): New.
324 (i386_linux_new_thread): Change parameter to an lwp pointer.
326 (_initialize_i386_linux_nat): No longer install
327 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
328 i386_linux_dr_get_control as i386_dr_low.get_control. Install
329 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
330 i386_linux_prepare_to_resume.
332 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
334 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
335 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
336 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
337 * s390-nat.c (s390_fix_watch_points): Likewise.
339 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
340 (DR_CONTROL): Delete.
341 (i386_darwin_dr_reset_addr): Delete.
342 (i386_darwin_dr_get_addr): New.
343 (i386_darwin_dr_get_control): New.
345 (go32_get_dr7, go32_get_dr): New.
346 (init_go32_ops): No longer install i386_dr_low.reset_addr.
347 Install go32_get_dr7 as i386_dr_low.get_control. Install
348 go32_get_dr as i386_dr_low.get_addr.
349 * i386bsd-nat.c (i386bsd_dr_get): New.
350 (i386bsd_dr_reset_addr): Delete.
351 (i386bsd_dr_get_addr): New.
352 (i386bsd_dr_get_status): Use i386bsd_dr_get.
353 (i386bsd_dr_get_control): New.
354 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
355 (i386bsd_dr_get_addr): New.
356 (i386bsd_dr_get_control): New.
357 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
358 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
359 i386bsd_dr_get_control as i386_dr_low.get_control. Install
360 i386bsd_dr_get_addr as i386_dr_low.get_addr.
361 * windows-nat.c (init_windows_ops): No longer install
362 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
363 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
364 as i386_dr_low.get_addr.
365 (cygwin_get_dr): New.
366 (cygwin_get_dr7): New.
368 2011-12-14 Pedro Alves <pedro@codesourcery.com>
370 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
371 target_write_raw_memory.
372 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
373 target_write_raw_memory.
374 * microblaze-linux-tdep.c
375 (microblaze_linux_memory_remove_breakpoint): Use
376 target_write_raw_memory.
377 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
378 target_write_raw_memory.
380 2011-12-14 Joel Brobecker <brobecker@adacore.com>
382 * linespec.c (decode_line_internal): Make static.
384 2011-12-14 Yao Qi <yao@codesourcery.com>
386 * breakpoint.c (create_breakpoint): Set canonical.addr_string
387 for static tracepoint.
389 2011-12-13 Joel Brobecker <brobecker@adacore.com>
391 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
392 * version.in: Bump version to 7.4.50.20111213-cvs.
394 2011-12-13 Joel Brobecker <brobecker@adacore.com>
396 * NEWS: Create a new section for the next release branch.
397 Rename the section of the current branch, now that it has
400 2011-12-11 Joel Brobecker <brobecker@adacore.com>
402 * ada-lang.c (ada_exception_support_info_sniffer): Improve
405 2011-12-11 Joel Brobecker <brobecker@adacore.com>
407 * ada-lang.c (struct ada_inferior_data) [exception_info]:
409 (exception_info): Delete.
410 (ada_exception_support_info_sniffer): Get exception_support_info
411 data from our per-inferior data. Adjust code accordingly.
412 (ada_unhandled_exception_name_addr_from_raise): Likewise.
413 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
414 (ada_executable_changed_observer): Delete.
415 (_initialize_ada_language): Remove call to
416 observer_attach_executable_changed.
418 2011-12-11 Joel Brobecker <brobecker@adacore.com>
420 * ada-lang.c (ada_has_this_exception_support): Raise an error
421 if we could find the Ada exception hook in the Ada runtime,
422 but no debugging info for that hook.
424 2011-12-11 Joel Brobecker <brobecker@adacore.com>
426 * ada-lang.c (ada_has_this_exception_support): New function,
427 extracted out of ada_exception_sal and ada_exception_sal.
428 (ada_exception_support_info_sniffer): Simplify by using
429 ada_has_this_exception_support.
430 (ada_exception_sal): Replace unnecessary checks by assertions.
431 Minor simplifications.
433 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
435 * breakpoint.c (update_global_location_list): Remove nested
436 definition of `b'(-Wshadow).
438 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
440 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
441 `error_flag'(-Wshadow).
443 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
445 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
448 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
450 * annotate.c (annotate_array_section_begin): Rename `index' to
453 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
455 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
458 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
460 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
461 `syscall' to `syscall_number'(-Wshadow).
463 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
465 * ada-lang.c (remove_extra_symbols): Rename `remove' to
466 `remove_p'(-Wshadow).
468 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
470 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
473 2011-12-10 Doug Evans <dje@google.com>
475 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
476 debug_types_section. All uses updated.
477 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
478 to is_debug_types_section.
480 * python/py-auto-load.c (source_section_scripts): Call xfree
483 2011-12-10 Hui Zhu <teawater@gmail.com>
484 Yao Qi <yao@codesourcery.com>
486 * tracepoint.c (start_tracing): Clear `inserted' flag.
488 2011-12-10 Hui Zhu <teawater@gmail.com>
490 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
492 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
494 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
497 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
499 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
500 `marker' variables to `sal2' and `tpmarker' respectively
503 2011-12-09 Andrew Pinski <apinski@cavium.com>
505 * linespec.c (hash_address_entry): Use iterative_hash_object on each
506 field rather than the struct itself.
508 2011-12-09 Tom Tromey <tromey@redhat.com>
510 * breakpoint.c (compare_breakpoints): New function.
511 (clear_command): Remove duplicate breakpoints. Properly clean
514 2011-12-08 Maciej W. Rozycki <macro@mips.com>
515 Maciej W. Rozycki <macro@codesourcery.com>
517 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
518 address chunks retrieved from decoded lui/addiu pairs.
520 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
522 * mips-tdep.c (extended_offset): Correct calculation.
523 (unpack_mips16): Correct bitfield positions used for extraction
524 of the immediate argument; fix sign-extension of same.
525 (extended_mips16_next_pc): Correct B instruction's offset
526 calculation. Correct register decoding of the BEQZ and BNEZ
527 as well as jump-register instructions. Handle compact jumps.
529 2011-12-08 Tom Tromey <tromey@redhat.com>
531 * objfiles.h (struct objfile): Remove obsolete comment.
532 * objfiles.c (build_objfile_section_table): Remove obsolete
535 2011-12-07 Stan Shebs <stan@codesourcery.com>
537 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
538 maintainer of the tic6x target.
540 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
542 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
543 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
544 (arm_deal_with_atomic_sequence_raw): Likewise.
545 (arm_deal_with_atomic_sequence): Likewise.
546 (arm_software_single_step): Call it.
547 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
549 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
551 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
553 * s390-tdep.h: Likewise.
555 2011-12-07 Tristan Gingold <gingold@adacore.com>
557 * machoread.c (macho_symtab_read): Do not consider N_OPT as
558 a debugging stab. Improve complaint message.
560 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
562 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
563 load adjustment if still within the prologue.
565 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
567 * mips-tdep.c (mips32_next_pc): Fix floating point condition
570 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
572 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
573 of BLTZ* and BGEZ* instructions.
575 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
577 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
578 performed to determine whether an address refers to standard
580 (mips16_next_pc): Use mips_pc_is_mips16 instead of
583 2011-12-06 Pedro Alves <pedro@codesourcery.com>
585 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
586 (breakpoint_xfer_memory): ... this. Change prototype. Handle
588 * breakpoint.h (breakpoint_restore_shadows): Delete.
589 (breakpoint_xfer_memory): Declare.
590 * mem-break.c (default_memory_insert_breakpoint)
591 (default_memory_remove_breakpoint): Use target_write_raw_memory.
592 (memory_xfer_partial): Rename to ...
593 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
595 (memory_xfer_partial): New.
596 (target_write_raw_memory): New.
597 * target.h (target_write_raw_memory): New.
599 2011-12-06 Doug Evans <dje@google.com>
601 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
603 2011-12-06 Joel Brobecker <brobecker@acacore.com>
605 * language.h (struct language_defn): Add new component
606 la_symbol_name_compare.
607 * symfile.h (struct quick_symbol_functions): Update the profile
608 of parameter "name_matcher" for the expand_symtabs_matching
609 method. Update the documentation accordingly.
610 * ada-lang.h (ada_name_for_lookup): Add declaration.
611 * ada-lang.c (ada_name_for_lookup): New function, extracted out
612 from ada_iterate_over_symbols.
613 (ada_iterate_over_symbols): Do not encode symbol name anymore.
614 (ada_expand_partial_symbol_name): Adjust profile.
615 (ada_language_defn): Add value for la_symbol_name_compare field.
616 * linespec.c: #include "ada-lang.h".
617 (iterate_name_matcher): Add language parameter. Replace call
618 to strcmp_iw by call to language->la_symbol_name_compare.
619 (decode_variable): Encode COPY if current language is Ada.
620 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
621 of name_matcher parameter. Adjust call to name_matcher.
622 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
623 (expand_partial_symbol_names): Update profile of parameter "fun".
624 * psymtab.h (expand_partial_symbol_names): Update profile of
626 * symtab.c (demangle_for_lookup): Update function documentation.
627 (search_symbols_name_matches): Add language parameter.
628 (expand_partial_symbol_name): Likewise.
629 * c-lang.c (c_language_defn, cplus_language_defn)
630 (asm_language_defn, minimal_language_defn): Add value for
631 la_symbol_name_compare field.
632 * d-lang.c (d_language_defn): Likewise.
633 * f-lang.c (f_language_defn): Ditto.
634 * jv-lang.c (java_language_defn): Ditto.
635 * m2-lang.c (m2_language_defn): Ditto.
636 * objc-lang.c (objc_language_defn): Ditto.
637 * opencl-lang.c (opencl_language_defn): Ditto.
638 * p-lang.c (pascal_language_defn): Ditto.
639 * language.c (unknown_language_defn, auto_language_defn)
640 (local_language_defn): Ditto.
642 2011-12-06 Tom Tromey <tromey@redhat.com>
644 * linespec.c (iterate_over_all_matching_symtabs): Use
645 LA_ITERATE_OVER_SYMBOLS.
646 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
647 (find_function_symbols, decode_variable): Remove Ada special
649 * language.h (struct language_defn) <la_iterate_over_symbols>: New
651 (LA_ITERATE_OVER_SYMBOLS): New macro.
652 * language.c (unknown_language_defn, auto_language_defn)
653 (local_language_defn): Update.
654 * c-lang.c (c_language_defn, cplus_language_defn)
655 (asm_language_defn, minimal_language_defn): Update.
656 * d-lang.c (d_language_defn): Update.
657 * f-lang.c (f_language_defn): Update.
658 * jv-lang.c (java_language_defn): Update.
659 * m2-lang.c (m2_language_defn): Update.
660 * objc-lang.c (objc_language_defn): Update.
661 * opencl-lang.c (opencl_language_defn): Update.
662 * p-lang.c (pascal_language_defn): Update.
663 * ada-lang.c (ada_iterate_over_symbols): New function.
664 (ada_language_defn): Update.
666 2011-12-06 Tom Tromey <tromey@redhat.com>
667 Joel Brobecker <brobecker@acacore.com>
669 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
670 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
671 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
672 PR shlibs/8929, PR shlibs/7393:
673 * python/py-type.c (compare_maybe_null_strings): Rename from
675 (check_types_equal): Update.
676 * utils.c (compare_strings): New function.
677 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
679 * tracepoint.c (scope_info): Update.
680 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
681 * symtab.h (iterate_over_minimal_symbols)
682 (iterate_over_some_symtabs, iterate_over_symtabs)
683 (find_pcs_for_symtab_line, iterate_over_symbols)
684 (demangle_for_lookup): Declare.
685 (expand_line_sal): Remove.
686 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
687 (lookup_symtab_callback): New functions.
688 (lookup_symtab): Rewrite.
689 (demangle_for_lookup): New function, extract from
690 lookup_symbol_in_language.
691 (lookup_symbol_in_language): Use it.
692 (iterate_over_symbols): New function.
693 (find_line_symtab): Update.
694 (find_pcs_for_symtab_line): New functions.
695 (find_line_common): Add 'start' argument.
696 (decode_line_spec): Update. Change argument to 'flags', change
698 (append_expanded_sal): Remove.
699 (append_exact_match_to_sals): Remove.
700 (expand_line_sal): Remove.
701 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
703 <map_symtabs_matching_filename>: New field.
704 * stack.c (func_command): Only look in the current program space.
705 Use DECODE_LINE_FUNFIRSTLINE.
706 * source.c (line_info): Set pspace on sal. Check program space in
707 the loop. Use DECODE_LINE_LIST_MODE.
708 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
709 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
710 * python/python.c (gdbpy_decode_line): Update.
711 * psymtab.c (partial_map_expand_apply): New function.
712 (partial_map_symtabs_matching_filename): Rename from
713 lookup_partial_symbol. Update arguments.
714 (lookup_symtab_via_partial_symtab): Remove.
715 (psym_functions): Update.
716 * objc-lang.h (parse_selector, parse_method): Don't declare.
718 * objc-lang.c (parse_selector, parse_method): Now static.
719 (find_methods): Change arguments. Fill in a vector of symbol
721 (uniquify_strings): New function.
722 (find_imps): Change arguments.
723 * minsyms.c (iterate_over_minimal_symbols): New function.
724 * linespec.h (enum decode_line_flags): New.
725 (struct linespec_sals): New.
726 (struct linespec_result) <canonical>: Remove.
727 <pre_expanded, addr_string, sals>: New fields.
728 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
729 (decode_line_full): Declare.
730 (decode_line_1): Update.
731 * linespec.c (struct address_entry, struct linespec_state, struct
732 collect_info): New types.
733 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
734 (eq_address_entry, maybe_add_address): New functions.
735 (total_number_of_methods): Remove.
736 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
738 (find_methods): Change arguments. Don't canonicalize input.
740 (add_matching_methods, add_constructors)
741 (build_canonical_line_spec): Remove.
742 (filter_results, convert_results_to_lsals): New functions.
743 (decode_line_2): Change arguments. Rewrite for new data
745 (decode_line_internal): Rename from decode_line_1. Change
746 arguments. Add cleanups. Update for new data structures.
747 (linespec_state_constructor, linespec_state_destructor)
748 (decode_line_full, decode_line_1): New functions.
749 (decode_indirect): Change arguments. Update.
750 (locate_first_half): Use skip_spaces.
751 (decode_objc): Change arguments. Update for new data structures.
753 (decode_compound): Change arguments. Add cleanups. Remove
754 fallback code, replace with error.
755 (struct decode_compound_collector): New type.
756 (collect_one_symbol): New function.
757 (lookup_prefix_sym): Change arguments. Update.
758 (compare_symbol_name, add_all_symbol_names_from_pspace)
759 (find_superclass_methods ): New functions.
760 (find_method): Rewrite.
761 (struct symtab_collector): New type.
762 (add_symtabs_to_list, collect_symtabs_from_filename): New
764 (symtabs_from_filename): Change API. Rename from
765 symtab_from_filename.
766 (collect_function_symbols): New function.
767 (find_function_symbols): Change API. Rename from
768 find_function_symbol. Rewrite.
769 (decode_all_digits): Change arguments. Rewrite.
770 (decode_dollar): Change arguments. Use decode_variable.
771 (decode_label): Change arguments. Rewrite.
772 (collect_symbols): New function.
773 (minsym_found): Change arguments. Rewrite.
774 (check_minsym, search_minsyms_for_name)
775 (add_matching_symbols_to_info): New function.
776 (decode_variable): Change arguments. Iterate over all symbols.
777 (symbol_found): Remove.
778 (symbol_to_sal): New function.
779 (init_linespec_result, destroy_linespec_result)
780 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
782 (decode_digits_list_mode, decode_digits_ordinary): New functions.
783 * dwarf2read.c (dw2_map_expand_apply): New function.
784 (dw2_map_symtabs_matching_filename): Rename from
785 dw2_lookup_symtab. Change arguments.
786 (dwarf2_gdb_index_functions): Update.
787 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
788 * defs.h (compare_strings): Declare.
789 * cli/cli-cmds.c (compare_strings): Move to utils.c.
790 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
792 (compare_symtabs, filter_sals): New functions.
793 * breakpoint.h (struct bp_location) <line_number, source_file>:
795 (struct breakpoint) <line_number, source_file>: Remove.
797 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
798 (momentary_breakpoint_from_master, add_location_to_breakpoint):
799 Update for changes to locations.
800 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
802 (create_breakpoint_sal): Add 'filter' argument.
803 (remove_sal, expand_line_sal_maybe): Remove.
804 (create_breakpoints_sal): Remove 'sals' argument. Handle
805 pre-expanded sals and the filter.
806 (parse_breakpoint_sals): Use decode_line_full.
807 (check_fast_tracepoint_sals): Use get_sal_arch.
808 (create_breakpoint): Create a linespec_sals. Update.
809 (break_range_command): Use decode_line_full. Update.
810 (until_break_command): Update.
811 (clear_command): Update match conditions for linespec.c changes.
812 Use DECODE_LINE_LIST_MODE.
813 (say_where): Update for changes to locations.
814 (bp_location_dtor): Free 'source_file'.
815 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
816 (update_static_tracepoint): Update for changes to locations.
817 (update_breakpoint_locations): Disable ranged breakpoint if too
818 many locations match. Update.
819 (addr_string_to_sals): Use decode_line_full. Resolve all sal
821 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
822 (decode_line_spec_1): Update. Change argument name to 'flags',
823 change interpretation.
824 * block.h (block_containing_function): Declare.
825 * block.c (block_containing_function): New function.
826 * skip.c (skip_function_command): Update.
827 (skip_re_set): Update.
828 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
829 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
832 2011-12-06 Tom Tromey <tromey@redhat.com>
834 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
835 breakpoint's pspace to be NULL.
836 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
837 * breakpoint.c (init_raw_breakpoint): Conditionally set
839 (init_breakpoint_sal): Don't set breakpoint's pspace.
840 (prepare_re_set_context): Conditionally switch program space.
841 (addr_string_to_sals): Check executing_startup on location's
844 2011-12-06 Tom Tromey <tromey@redhat.com>
846 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
847 * breakpoint.c (should_be_inserted): Explicitly check if program
848 space is executing startup.
849 (describe_other_breakpoints): Update.
850 (disable_breakpoints_before_startup): Change executing_startup
851 earlier. Remove loop.
852 (enable_breakpoints_after_startup): Likewise.
853 (init_breakpoint_sal): Don't use bp_startup_disabled.
854 (create_breakpoint): Don't use bp_startup_disabled.
855 (update_global_location_list): Use should_be_inserted.
856 (bkpt_re_set): Update.
858 2011-12-06 Tom Tromey <tromey@redhat.com>
860 * python/lib/gdb/command/pretty_printers.py
861 (InfoPrettyPrinter.invoke1): Remove extra double quote.
863 2011-12-06 Tom Tromey <tromey@redhat.com>
867 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
869 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
870 (S390_LAST_BREAK_REGNUM): Likewise.
871 (S390_SYSTEM_CALL_REGNUM): Likewise.
872 (S390_NUM_REGS): Update.
874 (s390_regmap_last_break): Add declaration.
875 (s390x_regmap_last_break): Likewise.
876 (s390_regmap_system_call): Likewise.
878 (tdesc_s390_linux32v1): Add declaration.
879 (tdesc_s390_linux32v2): Likewise.
880 (tdesc_s390_linux64v1): Likewise.
881 (tdesc_s390_linux64v2): Likewise.
882 (tdesc_s390x_linux64v1): Likewise.
883 (tdesc_s390x_linux64v2): Likewise.
885 * s390-tdep.c: Include new target description files
886 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
887 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
888 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
889 (s390_cannot_store_register): New function.
890 (s390_write_pc): Likewise.
891 (s390_dwarf_regmap): Add fields for new registers.
892 (s390_regmap_gregset): Likewise.
893 (s390x_regmap_gregset): Likewise.
894 (s390_regmap_fpregset): Likewise.
895 (s390_regmap_upper): Likewise.
896 (s390_regmap_last_break): New variable.
897 (s390x_regmap_last_break): Likewise.
898 (s390_regmap_system_call): Likewise.
899 (s390_last_break_regset): Likewise.
900 (s390x_last_break_regset): Likewise.
901 (s390_system_call_regset): Likewise.
902 (s390_upper_regset_sections): Rename to ...
903 (s390_linux64_regset_sections): ... this.
904 (s390_linux32_regset_sections): New variable.
905 (s390x_linux64_regset_sections): Likewise.
906 (s390_linux32v1_regset_sections): Likewise.
907 (s390_linux32v2_regset_sections): Likewise.
908 (s390_linux64v1_regset_sections): Likewise.
909 (s390_linux64v2_regset_sections): Likewise.
910 (s390x_linux64v1_regset_sections): Likewise.
911 (s390x_linux64v2_regset_sections): Likewise.
912 (s390_regset_from_core_section): Handle .reg-s390-last-break and
913 .reg-s390-system-call core file sections.
914 (s390_core_read_description): Check for presence of
915 .reg-s390-last-break and .reg-s390-system-call core file
916 sections and return appropriate target description.
917 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
918 "last_break" and "system_call" in target description. Install
919 appropriate gdbarch_core_regset_sections array.
920 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
921 (_initialize_s390_tdep): Initialize additional target descriptions.
923 * s390-nat.c: Include "elf/common.h".
924 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
925 (have_regset_last_break): New static variable.
926 (have_regset_system_call): Likewise.
927 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
928 (s390_native_collect): Likewise.
929 (fetch_regset, store_regset, check_regset): New functions.
930 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
931 and S390_SYSTEM_CALL_REGNUM.
932 (s390_linux_store_inferior_registers): Likewise.
933 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
934 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
936 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
937 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
938 (s390-linux32v1-expedite): Define.
939 (s390-linux32v2-expedite): Likewise.
940 (s390-linux64v1-expedite): Likewise.
941 (s390-linux64v2-expedite): Likewise.
942 (s390x-linux64v1-expedite): Likewise.
943 (s390x-linux64v2-expedite): Likewise.
945 * features/s390-linux32.xml: Add orig_r2 register.
946 * features/s390-linux64.xml: Likewise.
947 * features/s390x-linux64.xml: Likewise.
948 * features/s390-linux32v1.xml: New file.
949 * features/s390-linux32v2.xml: Likewise.
950 * features/s390-linux64v1.xml: Likewise.
951 * features/s390-linux64v2.xml: Likewise.
952 * features/s390x-linux64v1.xml: Likewise.
953 * features/s390x-linux64v2.xml: Likewise.
955 * features/s390-linux32.c: Regenerate.
956 * features/s390-linux64.c: Likewise.
957 * features/s390x-linux64.c: Likewise.
958 * features/s390-linux32v1.c: New generated file.
959 * features/s390-linux32v2.c: Likewise.
960 * features/s390-linux64v1.c: Likewise.
961 * features/s390-linux64v2.c: Likewise.
962 * features/s390x-linux64v1.c: Likewise.
963 * features/s390x-linux64v2.c: Likewise.
965 * regformats/s390-linux32.dat: Regenerate.
966 * regformats/s390-linux64.dat: Regenerate.
967 * regformats/s390x-linux64.dat: Regenerate.
968 * regformats/s390-linux32v1.dat: New generated file.
969 * regformats/s390-linux32v2.dat: Likewise.
970 * regformats/s390-linux64v1.dat: Likewise.
971 * regformats/s390-linux64v2.dat: Likewise.
972 * regformats/s390x-linux64v1.dat: Likewise.
973 * regformats/s390x-linux64v2.dat: Likewise.
975 2011-12-05 Pedro Alves <pedro@codesourcery.com>
977 * linux-nat.c (resume_stopped_resumed_lwps): Call
980 2011-12-05 Pedro Alves <pedro@codesourcery.com>
982 * breakpoint.c: Include record.h.
983 (breakpoints_always_inserted_mode): Return false when the record
986 2011-12-05 Pedro Alves <pedro@codesourcery.com>
988 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
989 Reinstate perror_with_name call on ptrace error. Remove #if 0.
990 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
991 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
993 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
995 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
998 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1000 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1002 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1004 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1005 of `tdep'(-Wshadow).
1007 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 Fix compilation --without-expat.
1010 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1012 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1014 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1015 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1018 * features/library-list-svr4.dtd: New file.
1019 * remote.c (PACKET_qXfer_libraries_svr4): New.
1020 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1021 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1022 * solib-svr4.c (struct svr4_library_list): New.
1023 [HAVE_LIBEXPAT]: Include xml-support.h.
1024 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1025 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1026 [HAVE_LIBEXPAT] (svr4_library_list_children)
1027 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1028 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1029 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1030 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1031 (svr4_read_so_list): Extend the corruption message by addresses.
1032 (svr4_current_sos): New variable library_list, call
1033 svr4_current_sos_via_xfer_libraries.
1034 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1036 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1039 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1040 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1042 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 PR breakpoints/13346
1045 * dwarf2read.c (process_psymtab_comp_unit): Set
1046 PSYMTABS_ADDRMAP_SUPPORTED.
1047 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1048 validity. New field psymtabs_addrmap_supported.
1049 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1050 psymtabs_addrmap_supported.
1051 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1052 !PSYMTABS_ADDRMAP_SUPPORTED.
1053 (dump_psymtab, maintenance_info_psymtabs): Print also
1054 psymtabs_addrmap_supported.
1056 2011-12-01 Doug Evans <dje@google.com>
1058 * python/py-type.c (type_object_methods): Fix "array" doc string.
1060 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1062 * source.c (print_source_lines_base): Fix missing braces on else
1063 clause leading to additional output.
1065 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1067 * s390-nat.c (SUBOFF): Remove.
1068 (s390_native_supply, s390_native_collect): New functions.
1069 (supply_gregset, supply_fpregset): Use s390_native_supply.
1070 (fill_gregset, fill_fpregset): Use s390_native_collect.
1072 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1073 (s390_unwind_pseudo_register): New function.
1074 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1075 registers instead of PC and CC.
1076 (s390_backchain_frame_unwind_cache): Likewise.
1077 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1079 (s390_trad_frame_prev_register): New function.
1080 (s390_frame_prev_register): Use it.
1081 (s390_sigtramp_frame_prev_register): Likewise.
1082 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1083 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1084 special callback to unwind any pseudo.
1086 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1087 * features/s390-core64.xml: Likewise.
1088 * features/s390x-core64.xml: Likewise.
1089 * features/s390-linux32.c: Regenerate.
1090 * features/s390-linux64.c: Likewise.
1091 * features/s390x-linux64.c: Likewise.
1093 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1095 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1097 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1099 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1100 instruction. Add more diagnostic output.
1102 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1104 * MAINTAINERS (Write After Approval): Add myself to the list.
1106 2011-11-29 Sanjoy Das <sdas@igalia.com>
1108 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1109 (jit_bfd_try_read_symtab): Fix comments.
1111 2011-11-28 DJ Delorie <dj@redhat.com>
1113 * NEWS: Mention RL78 simulator.
1115 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1117 * symfile.h (struct quick_symbol_functions): Fix the documentation
1118 of field map_matching_symbols, as symbols are sorted using
1119 strcmp_iw_ordered, not strcmp_iw.
1121 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1123 * symfile.h (struct quick_symbol_functions): Update the
1124 documentation for field map_matching_symbols.
1126 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1128 * ada-lang.c (compare_names): Fix wrong return value in case
1129 string1 starts with the same contents as string2, followed
1130 by an underscore that do not start a symbol name suffix.
1132 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1137 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1138 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1139 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1141 * python/py-type.c (typy_strip_typedefs): Ditto.
1142 (typy_legacy_template_argument): Ditto.
1143 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1144 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1146 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1148 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1149 local variable. Avoid use of sprintf_vma.
1151 2011-11-27 Sanjoy Das <sdas@igalia.com>
1153 Fix regression in jit.exp.
1154 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1155 (jit_register_code): Set the jit_objfile_data field to the correct
1158 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1160 * alpha-tdep.c (br_opcode): New.
1161 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1162 (alpha_deal_with_atomic_sequence): New function.
1163 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1164 with alpha_deal_with_atomic_sequence.
1166 2011-11-24 Tristan Gingold <gingold@adacore.com>
1168 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1169 fields. Add oso_sym, end_sym and nbr_syms.
1170 (macho_register_oso): Change interface.
1171 (macho_symtab_add_minsym): New function.
1172 (macho_symtab_read): Rewritten.
1173 (get_archive_prefix_len): Remove trailing blanks.
1174 (oso_el_compare_name): Add comment.
1175 (struct macho_sym_hash_entry): New structure.
1176 (macho_relocate_common_syms): Remove.
1177 (macho_sym_hash_newfunc): New function.
1178 (macho_resolve_oso_sym_with_minsym): Likewise.
1179 (macho_add_oso_symfile): Rewritten.
1180 (macho_symfile_read_all_oso): Remove trailing blanks.
1181 Adjust code to free oso vector.
1182 (macho_symfile_read): Likewise.
1183 Move code to initialize minimal symbol
1185 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1187 * mips-tdep.c (extended_offset): Fix formatting.
1189 2011-11-23 Doug Evans <dje@google.com>
1191 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1192 (dw2_expand_symtabs_with_filename): Ditto.
1193 (dw2_expand_symtabs_matching): Ditto.
1194 (dw2_map_symbol_filenames): Ditto.
1196 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1198 * ada-lang.c (assign_aggregate): Minor reformatting.
1200 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1202 * ada-lang.c (assign_aggregate): Remove declaration of local
1203 variable `i' which is shadowing another variable with the same
1204 name declared in the outer scope.
1206 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1208 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1209 calls throughout this file.
1211 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1213 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1216 2011-11-22 Tom Tromey <tromey@redhat.com>
1219 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1220 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1221 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1222 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1223 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1224 (print_it_catch_syscall, print_it_catch_exec)
1225 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1226 (bpstat_print): Add 'kind' argument. Handle
1227 TARGET_WAITKIND_LOADED.
1228 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1229 handle TARGET_WAITKIND_LOADED here.
1230 * breakpoint.h (bpstat_print): Update.
1232 2011-11-22 Tom Tromey <tromey@redhat.com>
1234 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1236 2011-11-22 Tom Tromey <tromey@redhat.com>
1238 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1239 Use static_assert to check the size of
1240 async_reason_string_lookup.
1241 * common/gdb_assert.h (static_assert): New macro.
1243 2011-11-22 Alan Modra <amodra@gmail.com>
1245 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1246 destination calculation. Don't expect >> to sign extend. Don't
1247 add a break if branch lands inside the sequence anywhere.
1249 2011-11-21 Keith Seitz <keiths@redhat.com>
1251 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1252 -var-evaluate-expression of an enumeration and fix expected result.
1253 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1255 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1257 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1258 the case where osdata->items is empty. Rename column names to a
1259 canonical form to avoid problems with unusual column names.
1261 2011-11-21 Yao Qi <yao@codesourcery.com>
1263 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1265 2011-11-20 Stan Shebs <stan@codesourcery.com>
1267 * NEWS: Mention tracepoint additions.
1268 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1269 * breakpoint.c (print_one_breakpoint_location): Identify
1270 tracepoints as such when reporting hit counts, report
1272 (create_tracepoint_from_upload): Copy status info.
1273 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1274 add fields user_name, notes, start_time, stop_time.
1275 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1276 * tracepoint.c (trace_user): New global.
1277 (trace_notes): New global.
1278 (trace_stop_notes): New global.
1279 (start_tracing): Add argument and trace note handling.
1280 (stop_tracing): Ditto.
1281 (trace_start_command): Add notes argument.
1282 (trace_stop_command): Ditto.
1283 (trace_status_command): Report additional status info.
1284 (trace_status_mi): Similarly.
1285 (trace_save): Update, record tracepoint status.
1286 (set_disconnected_tracing): Call target method directly.
1287 (send_disconnected_tracing_value): Remove.
1288 (set_trace_user): New function.
1289 (set_trace_notes): New function.
1290 (set_trace_stop_notes): New function.
1291 (parse_trace_status): Handle additional status.
1292 (parse_tracepoint_status): New function.
1293 (parse_tracepoint_definition): Call it.
1294 (tfile_get_tracepoint_status): New function.
1295 (init_tfile_ops): Use it.
1296 (_initialize_tracepoint): Add new setshows.
1297 * target.h (struct target_ops): New methods to_get_tracepoint_status
1298 and to_set_trace_notes.
1299 (target_get_tracepoint_status): New macro.
1300 (target_set_trace_notes): New macro.
1301 * target.c (update_current_target): Add new methods.
1302 * remote.c (remote_get_tracepoint_status): New function.
1303 (remote_set_trace_notes): New function.
1304 (init_remote_ops): Add them.
1305 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1306 (mi_cmd_trace_stop): Ditto.
1308 2011-11-20 Sanjoy Das <sdas@igalia.com>
1310 * jit.c: Include regcache.h.
1311 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1312 (jit_unwind_reg_set_impl, free_reg_value_impl)
1313 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1314 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1315 (jit_frame_prev_register, jit_dealloc_cache)
1316 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1317 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1318 jit_prepend_unwinder.
1319 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1321 2011-11-20 Sanjoy Das <sdas@igalia.com>
1323 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1324 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1325 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1326 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1327 (finalize_symtab, jit_object_close_impl)
1328 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1329 (free_objfile_data): New functions.
1330 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1333 2011-11-20 Sanjoy Das <sdas@igalia.com>
1335 * jit.c: Include gdb-dlfcn.h.
1336 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1337 (jit_reader_load, jit_reader_load_command)
1338 (jit_reader_unload_command): New functions.
1339 (_initialize_jit): Add commands "jit-reader-load" and
1340 "jit-reader-unload".
1342 2011-11-20 Sanjoy Das <sdas@igalia.com>
1344 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1345 * config.in: Add new #define HAVE_LIBDL.
1346 * configure.ac: Add check for -ldl.
1347 * configure: Re-generated by autoconf.
1348 * gdb-dlfcn.c: New file.
1349 * gdb-dlfcn.h: New file.
1351 2011-11-20 Sanjoy Das <sdas@igalia.com>
1353 * config.in: Add new #defines: JIT_READER_DIR and
1354 JIT_READER_DIR_RELOCATABLE.
1355 * configure.ac: New GDB directory entry for jit-reader-dir.
1356 * configure: Re-generated by autoconf.
1357 * jit.c: New static variable: const char *jit_reader_dir.
1358 (_initialize_jit): Relocate jit_reader_dir.
1360 2011-11-20 Sanjoy Das <sdas@igalia.com>
1362 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1364 * configure.ac: Generate a correct value for TARGET_PTR for
1365 jit-reader.h. Tell configure to generate jit-reader.h from
1367 * configure: Re-generated by autoconf.
1368 * jit-reader.in: New file.
1369 * jit.c: Include jit-reader.h.
1371 2011-11-20 Sanjoy Das <sdas@igalia.com>
1373 * MAINTAINERS (Write After Approval): Add myself to the list.
1375 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1377 * findvar.c (read_frame_register_value): Respect value_offset
1378 of the register value. Remove big-endian special case.
1380 2011-11-18 Tom Tromey <tromey@redhat.com>
1383 * remote.c (putpkt_for_catch_errors): New function.
1384 (remote_kill): Use it.
1386 2011-11-18 Yao Qi <yao@codesourcery.com>
1388 * breakpoint.c (create_breakpoint): Produce query message according to
1390 Allocate tracepoint per correct type.
1391 Don't check SALs for pending fast tracepoints.
1392 * tracepoint.c (process_tracepoint_on_disconnect): New.
1393 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1395 2011-11-18 Yao Qi <yao@codesourcery.com>
1397 * breakpoint.c (install_breakpoint): Add one more parameter so that
1398 update_global_location_list is called conditionally.
1399 (create_fork_vfork_event_catchpoint): Update.
1400 (create_syscall_event_catchpoint): Update.
1401 (create_breakpoint_sal): Update.
1402 (create_breakpoint_sal): Update. Call do_cleanups before
1404 * ada-lang.c (create_ada_exception_catchpoint): Update.
1405 * breakpoint.h (install_breakpoint): Update declaration.
1407 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1409 * spu-tdep.c (spu_return_value): Fix handling of
1410 TYPE_CALLING_CONVENTION annotation.
1412 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1414 * skip.c (skip_function_command): Work around uninitialized
1417 2011-11-16 David S. Miller <davem@davemloft.net>
1419 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1420 'tv_usec' to long for printf since these fields have a type which
1423 2011-11-15 Doug Evans <dje@google.com>
1425 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1427 2011-11-15 Paul Koning <paul_koning@dell.com>
1429 * python/py-type.c (typy_get_composite): New function.
1430 (typy_nonzero): New function.
1431 (typy_values): Rename from typy_fields.
1432 (typy_fields): New function.
1433 (typy_length): Raise exception if not struct, union, or enum type.
1434 (typy_getitem): Ditto.
1435 (typy_has_key): Ditto.
1436 (typy_make_iter): Ditto.
1438 2011-11-15 Doug Evans <dje@google.com>
1441 * NEWS: Mention new parameter basenames-may-differ.
1442 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1443 ! basenames_may_differ.
1444 * psymtab.c (lookup_partial_symtab): Ditto.
1445 * symtab.c (lookup_symtab): Ditto.
1446 (basenames_may_differ): New global.
1447 (_initialize_symtab): New parameter basenames-may-differ.
1448 * symtab.h (basenames_may_differ): Declare.
1450 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1451 Luis Machado <lgustavo@codesourcery.com>
1453 * auxv.c: Include observer.h.
1454 (auxv_inferior_data_cleanup): New.
1455 (invalidate_auxv_cache_inf): New.
1456 (invalidate_auxv_cache): New.
1457 (get_auxv_inferior_data): New.
1458 (auxv_inferior_data): New static global.
1459 (auxv_info): New structure.
1460 (target_auxv_search): Use get_auxv_inferior_data instead of
1461 target_read_alloc and don't free cached buffers.
1462 (fprint_target_auxv): Likewise
1463 (_initialize_auxv): Register per-inferior auxv cache and register
1464 observers to invalidate auxv cache when needed.
1466 2011-11-14 Doug Evans <dje@google.com>
1468 PR gdb/7200 Make "!" an alias for "shell".
1469 * NEWS: Add mention.
1470 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1471 adding "!" command, always add it.
1472 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1473 command of length one.
1475 2011-11-14 Stan Shebs <stan@codesourcery.com>
1476 Kwok Cheung Yeung <kcy@codesourcery.com>
1478 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1479 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1480 the minimum instruction size for fast tracepoints.
1481 * target.h (struct target_ops): Add new method
1482 to_get_min_fast_tracepoint_insn_len.
1483 (target_get_min_fast_tracepoint_insn_len): New.
1484 * target.c (update_current_target): Set up new target operation.
1485 * remote.c (remote_write_bytes_aux): Fix typo.
1486 (remote_get_min_fast_tracepoint_insn_len): New.
1487 (init_remote_ops): Initialize new field.
1489 2011-11-14 Tom Tromey <tromey@redhat.com>
1491 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1492 (encode_actions): Likewise.
1494 2011-11-14 Yao Qi <yao@codesourcery.com>
1496 * remote.c (struct remote_state): <install_in_trace> new field.
1497 (PACKET_InstallInTrace): New enum value.
1498 (remote_install_in_trace_feature): Support InstallInTrace.
1499 (remote_supports_install_in_trace): Likewise.
1500 (remote_protocol_features): Likewise.
1501 (_initialize_remote): Likewise.
1502 (remote_can_download_tracepoint): New.
1503 * target.h (struct target): New field
1504 `to_can_download_tracepoint'.
1505 (target_can_download_tracepoint): New macro.
1506 * target.c (update_current_target): Update.
1507 * breakpoint.h (struct bp_location): Add comment on field
1509 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1511 (remove_breakpoints): Don't remove tracepoints.
1512 (tracepoint_locations_match ): New.
1513 (breakpoint_locations_match): Call it.
1514 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1515 (download_tracepoint_locations): New.
1516 (update_global_location_list): Call it.
1517 * tracepoint.c (find_matching_tracepoint): Delete.
1518 (find_matching_tracepoint_location): Renamed from
1519 find_matching_tracepoint. Return bp_location rather than
1521 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1522 tracepoint is found.
1524 2011-11-14 Yao Qi <yao@codesourcery.com>
1526 * target.h (struct target): <to_download_tracepoint> Change type
1527 of parameter from tracepoint to bp_location.
1528 * target.c (update_current_target): Update.
1529 * tracepoint.c (start_tracing): Update.
1530 * remote.c (remote_download_tracepoint): Remove loop for each location
1533 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1535 * i386-nat.c (i386_insert_hw_breakpoint): Call
1536 i386_update_inferior_debug_regs.
1537 (i386_remove_hw_breakpoint): Likewise.
1539 2011-11-14 Yao Qi <yao@codesourcery.com>
1541 * breakpoint.c (init_raw_breakpoint): Call
1542 add_location_to_breakpoint to replace duplicated code.
1543 (add_location_to_breakpoint): Adjust the breakpoint's
1544 address prior to allocating a location.
1546 2011-11-12 Matt Rice <ratmice@gmail.com>
1548 * macrocmd.c (macro_no_macro_info): New function.
1549 (macro_expand_command): Use macro_no_macro_info.
1550 (macro_expand_once_command): Ditto.
1551 (info_macro_command): Add argument processing,
1552 move info_definitions_command here.
1553 (_initialize_macrocmd): Remove info definitions command.
1554 Add arguments to info macro help text.
1555 * NEWS: Replace info definitions command with new info macro options.
1557 2011-11-11 Keith Seitz <keiths@redhat.com>
1560 * linespec.c (locate_first_half): Keep ':' if it looks
1561 like it could be part of a Windows path starting with
1564 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1566 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1567 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1569 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1571 * target.c (target_waitstatus_to_string): Handle
1572 TARGET_WAITKIND_NO_RESUMED.
1574 2011-11-10 Doug Evans <dje@google.com>
1576 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1578 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1579 (map_partial_symbol_filenames): Ditto. All callers updated.
1580 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1581 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1582 parameter need_fullname.
1584 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1585 * source.c (symtab_to_fullname): Ditto.
1587 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1588 * gdb-demangle.h: ... here. New file.
1589 * demangle.c: #include "gdb-demangle.h".
1590 (_initialize_demangler): Use initialize_file_ftype for prototype.
1591 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1592 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1594 * utils.c: Update. #include "gdb-demangle.h".
1595 * symtab.h (asm_demangle): Delete.
1596 (demangle): Move declaration next to use.
1597 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1598 * dwarf2read.c: #include "gdb-demangle.h".
1599 * gnu-v2-abi.c: Ditto.
1600 * jv-typeprint.c: Ditto.
1601 * mdebugread.c: Ditto.
1602 * p-typeprint.c: Ditto.
1603 * stabsread.c: Ditto.
1604 * printcmd.c: Ditto.
1605 (asm_demangle): Delete declaration.
1606 * tui/tui-stack.c: #include "gdb-demangle.h".
1608 * python/py-type.c (typy_fields_items): Call check_typedef.
1610 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1612 * findvar.c (read_frame_register_value): Read the correct bytes
1613 from registers on big-endian architectures.
1615 2011-11-10 Tom Tromey <tromey@redhat.com>
1617 * procfs.c (load_syscalls): Make a cleanup.
1618 (open_procinfo_files): fd==0 is ok.
1620 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1622 * procfs.c (iterate_over_mappings): Call do_cleanups before
1625 2011-11-09 Doug Evans <dje@google.com>
1627 * gdbtypes.c (check_typedef): Document that this function can
1630 2011-11-09 Tom Tromey <tromey@redhat.com>
1633 * valops.c (value_full_object): Return early if real type is
1634 smaller than the enclosing type.
1636 2011-11-08 Yao Qi <yao@codesourcery.com>
1638 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1640 2011-11-08 Meador Inge <meadori@codesourcery.com>
1642 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1643 register when the frame can't be determined.
1644 * arm-tdep.c (arm_analyze_prologue): Ditto.
1646 2011-11-07 Stan Shebs <stan@codesourcery.com>
1648 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1650 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1652 * infrun.c (handle_inferior_event): Minor reformatting.
1654 2011-11-05 Doug Evans <dje@google.com>
1656 * source.c (forget_cached_source_info_for_objfile): Move call to
1657 objfile->sf->qf->forget_cached_source_info outside of
1658 ALL_OBJFILE_SYMTABS loop.
1659 (forget_cached_source_info): Delete unused variable `s'.
1661 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 * i386-nat.c (dr_ref_count): Remove unused variable.
1665 2011-11-05 Doug Evans <dje@google.com>
1667 * main.c (captured_main): Set lim_at_start before calling
1668 make_command_stats_cleanup.
1670 2011-11-04 Doug Evans <dje@google.com>
1672 * utils.c: #include "timeval-utils.h".
1673 (cmd_stats): Rename start_time to start_cpu_time.
1674 New member start_wall_time.
1675 (report_command_stats): Report wall time.
1676 (make_command_stats_cleanup): Record start wall time.
1678 2011-11-04 Tom Tromey <tromey@redhat.com>
1680 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1682 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1684 * coff-pe-read.c: Include defs.h before bfd.h.
1686 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1690 * python/python.c (python_run_simple_file): Expand tilde in path.
1692 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1696 * python/py-type.c (typy_lookup_type): Do not return a type in
1697 an exception handler.
1699 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1700 Eli Zaretskii <eliz@gnu.org>
1702 * linux-nat.c (_initialize_linux_nat): Improve help
1703 for `info proc stat', `info proc status', `info proc cwd',
1704 `info proc cmdline' and `info proc exe'.
1706 2011-11-02 Stan Shebs <stan@codesourcery.com>
1708 String collection for tracepoints.
1709 * NEWS: Mention string collection.
1710 * common/ax.def (tracenz): New bytecode.
1711 * ax-gdb.h (trace_string_kludge): Declare.
1712 * ax-gdb.c: Include valprint.h and c-lang.h.
1713 (trace_string_kludge): New global.
1714 (gen_traced_pop): Add string case.
1715 (agent_command): Add string case.
1716 * tracepoint.h (decode_agent_options): Declare.
1717 * tracepoint.c: Include cli-utils.h.
1718 (decode_agent_options): New function.
1719 (validate_actionline): Call it.
1720 (encode_actions_1): Ditto.
1721 * target.h (struct target_ops): New method to_supports_string_tracing.
1722 (target_supports_string_tracing): New macro.
1723 * target.c (update_current_target): Add to_supports_string_tracing.
1724 * remote.c (struct remote_state): New field string_tracing.
1725 (remote_string_tracing_feature): New function.
1726 (remote_protocol_features): New feature tracenz.
1727 (remote_supports_string_tracing): New function.
1728 (init_remote_ops): Set to_supports_string_tracing.
1730 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1731 Jan Kratochvil <jan.kratochvil@redhat.com>
1733 * linux-nat.c: Include cli/cli-utils.h.
1734 (enum info_proc_what): New.
1735 (linux_nat_info_proc_cmd): Rename to ...
1736 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1737 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1738 status_f and stat_f from WHAT. Throw error on extra parameters.
1739 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1740 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1741 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1742 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1743 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1744 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1745 `info proc cmdline', `info proc exe' and `info proc all' as real
1746 subcommands of `info proc'.
1748 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1750 * Makefile.in: (SFILES): Add skip.c.
1751 (HFILES_NO_SRCDIR): Add skip.h.
1752 (COMMON_OBS): Add skip.o.
1753 * skip.h, skip.c: New.
1754 * breakpoint.h (set_default_breakpoint): Remove.
1755 (get_sal_arch): Declare.
1756 * breakpoint.c: Remove default_breakpoint_valid,
1757 default_breakpoint_address, default_breakpoint_symtab,
1758 default_breakpoint_line, default_breakpoint_pspace variables.
1759 (get_sal_arch): Make public.
1760 (set_default_breakpoint): Remove.
1761 (parse_breakpoint_sals, create_breakpoint, clear_command,
1762 decode_line_spec_1): Remove uses of default_breakpoint variables;
1763 replaced with function calls into stack.c.
1764 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1765 * cli/cli-cmds.c: Add skiplist.
1766 (init_cmd_lists): Initialize skiplist.
1767 (init_cli_cmds): Fix comment (classes of commands appear in
1768 alphabetical order).
1769 * infrun.c (handle_inferior_event): Add check that we don't step into
1770 a function whose pc is marked for skip.
1771 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1772 last_displayed_addr, last_displayed_symtab, last_displayed_line
1774 (set_last_displayed_sal): New static function.
1775 (print_frame_info): Switch call to set_default_breakpoint to call to
1776 set_last_displayed_sal.
1777 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1778 get_last_displayed_pspace, get_last_displayed_addr,
1779 get_last_displayed_symtab, get_last_displayed_line,
1780 get_last_displayed_sal): New public functions.
1781 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1782 get_last_displayed_pspace, get_last_displayed_addr,
1783 get_last_displayed_symtab, get_last_displayed_line,
1784 get_last_displayed_sal): Declare.
1786 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1788 * MAINTAINERS (Write After Approval): Add myself to the list.
1790 2011-10-29 Yao Qi <yao@codesourcery.com>
1792 * infcmd.c (disconnect_command): Call disconnect_tracing.
1794 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1797 * symtab.c (skip_prologue_sal): Code reformatting.
1799 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1803 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1806 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1808 * linux-nat.c (linux_nat_filter_event): Remove `options'
1809 parameter, and dead code that used it. If we're handling a
1810 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1811 in our lwp list, re-add it.
1812 (check_zombie_leaders): New.
1813 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1814 wait for children with WNOHANG, and always wait for all children.
1815 Don't check for no resumed children upfront. Simplify wait loop.
1816 Check for zombie thread group leaders after handling all wait
1817 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1818 unwaited-for children left.
1819 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1820 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1821 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1822 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1824 2011-10-28 Sterling Augustine <saugustine@google.com>
1826 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1827 * symtab.c (free_completion_list): New function.
1828 (do_free_completion_list): Likewise.
1829 (default_make_symbol_completion_list_break_on): New variable
1830 back_to. Call make_cleanup and discard_cleanups.
1831 (make_source_files_completion_list): Likewise.
1833 2011-10-28 Paul Koning <paul_koning@dell.com>
1835 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1836 * NEWS: Mention deep_items.
1838 2011-10-28 Alen Skondro <askondro@gmail.com>
1840 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1843 2011-10-27 Meador Inge <meadori@codesourcery.com>
1845 * MAINTAINERS (Write After Approval): Add myself to the list.
1847 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1849 * value.h (read_frame_register_value): Add declaration.
1850 * findvar.c (read_frame_register_value): New function.
1851 (value_from_register): Use read_frame_register_value
1852 instead of get_frame_register_value + value_contents_copy
1853 to get value contents.
1855 2011-10-27 Doug Evans <dje@google.com>
1857 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1858 source_script_from_stream if it may have been found on the search path.
1859 * python/py-auto-load.c (source_section_scripts): Pass full path to
1860 source_python_script_for_objfile.
1861 * python/python.c (source_python_script): Delete stream parameter.
1862 All callers updated.
1863 (source_python_script_for_objfile): Ditto.
1864 * python/python-internal.h (source_python_script_for_objfile): Update.
1865 * python/python.h (source_python_script): Update.
1867 2011-10-27 Tom Tromey <tromey@redhat.com>
1869 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1870 (ada_sals_for_line): Remove declarations.
1872 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1874 Move unwind reasons to an external .def file
1875 * frame.c (frame_stop_reason_string): Rewrite using
1876 unwind_stop_reasons.def.
1877 * frame.h (enum unwind_stop_reason): Likewise.
1878 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1879 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1880 constants for bound-checking.
1881 * unwind_stop_reasons.def: New file.
1882 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1883 instead of a distinct value.
1885 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1889 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1890 (convert_values_to_python): Return on Python tuple allocation
1891 failure. Return NULL on value conversion error.
1893 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1895 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1896 (bppy_set_task): Ditto.
1897 (bppy_delete_breakpoint): Ditto.
1898 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1899 (gdbpy_lookup_global_symbol): Ditto.
1900 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1901 * python/py-frame.c (frapy_is_valid): Ditto.
1902 (frame_info_to_frame_object): Ditto.
1903 * python/py-type.c (typy_lookup_type): Ditto.
1904 (typy_getitem): Ditto.
1905 (typy_has_key): Ditto.
1906 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1908 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1910 * gdbarch.h: Regenerate.
1912 2011-10-26 Meador Inge <meadori@codesourcery.com>
1914 * gdbarch.sh (function_list): Use 'pstring' when printing
1916 * gdbarch.c: Regenerate.
1918 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1920 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1921 and frame caches if PTID refers to all threads of a process.
1923 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1925 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1926 to create_breakpoint.
1928 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1930 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1931 (ppc_sysv_abi_push_dummy_call): Use it.
1932 (do_ppc_sysv_return_value): Likewise.
1933 (ppc64_sysv_abi_push_dummy_call): Likewise.
1934 (ppc64_sysv_abi_return_value): Likewise.
1936 2011-10-26 Paul Koning <paul_koning@dell.com>
1938 * python/lib/gdb/types.py (deepitems): New function.
1940 2011-10-25 Paul Koning <paul_koning@dell.com>
1944 * python/py-value.c (value_to_value_object): Remove fetching of
1945 the value if it was lazy.
1946 (valpy_get_is_lazy): New function.
1947 (valpy_fetch_lazy): New function.
1949 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1951 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1952 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1954 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1956 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1957 event, in non-stop, if not stopping, make sure the new lwp has
1958 last_resume_kind set to resume_continue. Assert that when we're
1959 resuming the new lwp, its last_resume_kind is resume_continue.
1961 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1963 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1964 already set when marking the event thread as not executing in
1967 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1969 * infrun.c (handle_inferior_event): Add debug output for
1970 TARGET_WAITKIND_NO_HISTORY.
1972 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1974 * NEWS: Move set/show extended-prompt to "New Options". Expand
1975 description. Fix typos.
1977 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1981 * python/py-param.c (call_doc_function): Correctly deference on
1984 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1986 * ada-tasks.c (print_ada_task_info): Fix computation of
1987 number of tasks displayed in command output.
1989 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1990 Ulrich Weigand <uweigand@de.ibm.com>
1992 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1993 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1994 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1995 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1998 2011-10-20 Cary Coutant <ccoutant@google.com>
2000 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2002 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2003 flag. Adjust all callers.
2004 (process_psymtab_comp_unit): Remove adjustment for type section.
2006 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2008 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2009 arguments by adding OBJFILE. Instead of getting objfile from
2010 symbol's symtab, use new argument OBJFILE.
2011 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2012 arguments by adding OBJFILE.
2013 * gdb/dwarf2read.c (new_symbol_full): Change call to
2014 cp_scan_for_anonymous_namespaces to match new signature.
2015 * gdb/stabsread.c (define_symbol): Change call to
2016 cp_scan_for_anonymous_namespaces to match new signature.
2018 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2023 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2025 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2026 leak. Delete unused variables.
2028 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2032 * python/py-frame.c (frapy_read_var): Use const struct *block.
2033 * python/py-type.c (typy_lookup_typename): Likewise.
2034 (typy_lookup_type): Likewise.
2035 (typy_legacy_template_argument): Likewise.
2036 (typy_template_argument): Likewise.
2037 (gdbpy_lookup_type): Likewise.
2038 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2039 * python/py-block.c (blpy_block_object): Likewise.
2040 (blpy_iter): Likewise.
2041 (blpy_get_start): Likewise.
2042 (blpy_get_end): Likewise.
2043 (blpy_get_function): Likewise.
2044 (blpy_get_superblock): Likewise.
2045 (set_block): Likewise.
2046 (block_to_block_object): Likewise.
2047 (block_object_to_block): Likewise.
2048 (blpy_is_valid): Likewise.
2049 (blpy_get_global_block): New function.
2050 (blpy_get_static_block): New function.
2051 (blpy_is_global): New function.
2052 (blpy_is_static): New function.
2053 * blockframe.c (block_innermost_frame): Likewise.
2054 * valops.c (value_of_variable): Likewise.
2055 * frame.h: Update prototypes.
2056 * python/python-internal.h: Likewise.
2057 * value.h: Likewise.
2059 2011-10-19 Cary Coutant <ccoutant@google.com>
2061 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2064 2011-10-19 Cary Coutant <ccoutant@google.com>
2066 * dwarf2read.c (peek_abbrev_code): New function.
2067 (dw2_get_file_names): Check for dummy compilation units.
2068 (create_debug_types_hash_table): Likewise.
2069 (process_psymtab_comp_unit): Likewise.
2070 (load_partial_comp_unit): Likewise.
2071 (load_full_comp_unit): Likewise.
2073 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2075 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2076 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2077 pt_phdr if PT_PHDR was found.
2079 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2081 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2082 type or "<unnamed type"> when there is no name assigned.
2083 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2084 avoid a sigint when no name is assigned.
2086 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2089 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * dwarf2expr.c (ctx_no_read_reg): New function.
2091 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2092 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2093 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2094 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2096 2011-10-16 Doug Evans <dje@google.com>
2098 * NEWS: Document python gdb.printing.register_pretty_printer's new
2099 `replace' parameter.
2101 2011-10-14 Keith Seitz <keiths@redhat.com>
2104 * eval.c (evaluate_subexp_standard): Do not construct
2105 an array of types; pass the value array directly to
2106 find_overload_match.
2107 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2108 (rank_function): Take an array of values instead of types.
2109 (rank_one_type): Add struct value * parameter.
2110 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2111 (rank_function): For each argument, pass the argument's
2112 value to rank_one_type.
2113 (rank_one_type): Add VALUE parameter.
2114 If the parameter type is a pointer and the argument type
2115 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2117 Update all calls to rank_one_type, passing NULL for new
2119 * valarith.c (value_user_defined_cpp_op): Do not construct
2120 an array of types; pass the value array directly to
2121 find_overload_match.
2122 * valops.c (find_overload_method_list): Take an array of
2123 values instead of types.
2124 Save the type of OBJP for later use.
2125 Update calls to find_oload_champ, and find_oload_champ_namespace.
2126 (find_oload_champ_namespace): Take an array of values instead
2128 (find_oload_champ_namespace_loop): Likewise.
2129 (find_oload_champ): Likewise.
2130 (classify_oload_match): Inspect all arguments
2131 until INCOMPATIBLE is found. Return the worst badness found
2133 (compare_parameters): Update call to rank_one_type.
2134 * value.h (find_overload_match): Take an array of values instead
2137 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 Drop lazy lm_info reading.
2140 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2141 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2142 (lm_info_read): New function.
2143 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2144 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2145 lm_dynamic_from_link_map.
2146 (lm_next, lm_prev, lm_name): Remove.
2147 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2148 initialization incl. read_memory. No longer use lm_name.
2149 (svr4_free_so): Drop lm_info->lm freeing.
2150 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2151 explicit lm_addr and lm initialization.
2152 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2153 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2156 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2157 Paul Pluzhnikov <ppluzhnikov@google.com>
2159 * defs.h (struct so_list): New forward declaration.
2160 (make_cleanup_free_so): New declaration.
2161 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2162 (svr4_free_so): Move the function here from downwards. Handle NULL
2164 (svr4_free_library_list): New.
2165 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2166 Use more cleanups. Use new parameter ignore_first instead of
2167 ignore_first_link_map_entry.
2168 (svr4_current_sos): New variable ignore_first, initialize it. New
2169 variable back_to, use it for svr4_free_library_list protection.
2170 (svr4_free_so): Remove - move upwards.
2171 * utils.c: Include solist.h.
2172 (do_free_so, make_cleanup_free_so): New functions.
2174 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2176 Fix internal error regression.
2177 * value.c (value_primitive_field): Handle value_optimized_out. Move
2178 packed bitfields comment.
2180 2011-10-13 Tom Tromey <tromey@redhat.com>
2182 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2185 2011-10-13 Tom Tromey <tromey@redhat.com>
2187 * python/py-type.c (typy_has_key): Make 'field' const.
2189 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2191 * remote.c (remote_save_trace_data): Invert comparison.
2193 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2195 * tracepoint.c (trace_save_command): Use filename instead of
2198 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2203 2011-10-13 Yao Qi <yao@codesourcery.com>
2206 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2207 whether insn is a 32-bit Thumb-2 instruction.
2208 (thumb_in_function_epilogue_p): Likewise.
2209 (thumb_get_next_pc_raw): Likewise.
2210 (arm_breakpoint_from_pc): Likewise.
2212 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2214 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2215 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2216 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2217 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2218 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2220 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2222 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2223 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2224 clear DATA on zero SIZE.
2226 2011-10-12 Doug Evans <dje@google.com>
2228 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2229 header->first_die_offset here. All callers updated.
2231 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 Fix compatibility with texinfo versions older than 4.12.
2234 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2235 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2236 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2237 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2238 * configure: Regenerate.
2239 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2240 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2241 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2243 2011-10-12 Gary Benson <gbenson@redhat.com>
2245 * breakpoint.h (pc_at_non_inline_function): Declare.
2246 * breakpoint.c (is_non_inline_function,
2247 pc_at_non_inline_function): New functions.
2248 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2249 if the stop is at a location where functions cannot be inlined.
2251 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2253 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2254 the core wanted them stopped, or if they now have a pending event
2256 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2257 down to stop_and_resume_callback.
2258 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2259 having new pending events after calling linux_nat_filter_event.
2261 2011-10-11 Sterling Augustine <saugustine@google.com>
2263 * dwarf2read.c: Undo inadvertent changes in previous commit.
2265 2011-10-11 Sterling Augustine <saugustine@google.com>
2267 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2270 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2272 * symfile.c (separate_debug_file_exists): Fix condition.
2274 2011-10-11 David S. Miller <davem@davemloft.net>
2276 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2278 * regcache.h (regcache_restore): Remove declaration.
2280 * gdbarch.sh: New field 'long_long_align_bit'.
2281 * gdbarch.c, gdbarch.h: Regenerate.
2282 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2283 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2285 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2287 Revert this part of:
2288 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2289 Support @entry in input expressions.
2290 * c-exp.y (ENTRY, unknown_cpp_name): New.
2291 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2292 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2293 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2294 (name_not_typename: ENTRY): New.
2295 (yylex): Recognize ENTRY.
2297 Reimplement @entry in input expressions.
2298 * c-exp.y (ENTRY): New.
2299 (variable: name_not_typename ENTRY): New.
2300 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2302 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2304 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2305 parent and child's pids as soon as we detect a clone event.
2306 Adjust another debug message.
2308 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2310 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2311 not zombie instead of reading the whole file.
2313 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2315 Fix separate debuginfo warning with "remote:" access.
2316 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2317 * symfile.c (get_file_crc): New function with the code moved from ...
2318 (separate_debug_file_exists): ... this function, specifically variables
2319 buffer and count. New variable verified_as_different, set it. Remove
2320 file_crc initialization. Verify also if both files are not the same
2321 manually, if needed.
2323 2011-10-11 Yao Qi <yao@codesourcery.com>
2325 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2328 2011-10-10 Doug Evans <dje@google.com>
2330 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2331 libthread_db when we load libpthread or the main symbol file.
2332 (thread_db_inferior_created): New function.
2333 (_initialize_thread_db): Attach inferior_created observer.
2334 * linux-nat.c (linux_child_post_attach): Remove call to
2335 check_for_thread_db.
2336 (linux_child_post_startup_inferior): Ditto.
2337 * objfiles.h (OBJF_MAINLINE): Define.
2338 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2339 allocate_objfile when appropriate.
2341 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2344 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2345 Remove unused variables.
2346 (get_linux_version): Remove function.
2347 (_initialize_arm_linux_nat): Do not call it.
2349 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2351 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2352 new clone lwp if the core asked it to stop. Don't pass on
2353 unexpected signals to the new clone; leave them pending instead.
2355 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2357 * linux-nat.c (resume_lwp): Remove redundant debug output.
2359 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2361 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2362 last_resume_kind before clearing it, and use the copy instead to
2363 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2364 resume_clear_callback in the non-stop path too.
2366 2011-10-09 Yao Qi <yao@codesourcery.com>
2368 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2369 Honor OPTIONS and VAL's type.
2370 (common_val_print, value_print): Update to pass one more parameter.
2372 2011-10-09 Doug Evans <dje@google.com>
2374 Add new "alias" command.
2375 * NEWS: Mention new command.
2376 * command.h (valid_user_defined_cmd_name_p): Declare.
2377 * defs.h (make_cleanup_dyn_string_delete): Declare.
2378 * utils.c: #include "dyn-string.h".
2379 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2380 * cli/cli-cmds.c: #include "dyn-string.h".
2381 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2382 (init_cli_cmds): Add new command.
2383 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2385 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 Fix compatibility with older GCCs.
2388 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2389 * stack.c (read_frame_arg): Initialize val_deref.
2391 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2393 Entry values NEWS entries, DWARF disassembly support.
2394 * NEWS: New entry values entry.
2395 (set print entry-values, show print entry-values)
2396 (set debug entry-values, show debug entry-values): New entries.
2397 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2398 indent. Remove variable start. Move header printing out. Respect
2399 INDENT. Support DW_OP_GNU_entry_value.
2400 (locexpr_describe_location_1): Move the header printing here, extend
2401 the disassemble_dwarf_expression passed parameters.
2403 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2405 Display @entry parameter values even for references.
2406 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2407 coerce_ref_if_computed.
2408 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2409 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2410 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2411 existing push_dwarf_reg_entry_value call. Add new detection calling
2412 dwarf_block_to_dwarf_reg_deref. Update the error message.
2413 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2415 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2416 parameter deref_size, describe it in the comment.
2417 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2418 (dwarf_block_to_dwarf_reg_deref): New declaration.
2419 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2420 deref_size, describe it in the function comment. New variables
2421 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2422 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2423 describe it in the function comment. Fetch the alternative block
2424 accoring to DEREF_SIZE.
2425 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2426 (entry_data_value_free_closure, entry_data_value_funcs): New.
2427 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2428 outer_val, target_val, val and addr. Try to fetch and create also
2429 referenced value content.
2430 (pieced_value_funcs): NULL value for coerce_ref.
2431 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2432 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2433 coerce_ref_if_computed.
2434 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2435 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2436 * stack.c (read_frame_arg): Compare also dereferenced values.
2437 * value.c (value_computed_funcs): Make the parameter v const, use
2438 value_lval_const for it.
2439 (value_lval_const, coerce_ref_if_computed): New function.
2440 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2441 * value.h (struct lval_funcs): New field coerce_ref.
2442 (value_computed_funcs): Make the parameter v const.
2443 (value_lval_const, coerce_ref_if_computed): New declarations.
2445 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2447 Support @entry in input expressions.
2448 * c-exp.y (ENTRY, unknown_cpp_name): New.
2449 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2450 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2451 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2452 (name_not_typename: ENTRY): New.
2453 (yylex): Recognize ENTRY.
2454 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2455 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2457 * parse.c (operator_length_standard): Likewise.
2458 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2460 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 Display referenced values in backtraces.
2463 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2464 * stack.c (print_frame_arg): Likewise.
2466 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2468 Make some lval_funcs methods to default on NULL.
2469 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2471 (value_assign): Check if lval_computed write method is NULL.
2472 * value.h (struct lval_funcs): Comment NULL values for read and write
2475 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2477 Display @entry parameter values (without references).
2478 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2480 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2482 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2484 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2485 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2487 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2488 (loclist_read_variable_at_entry): New function.
2489 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2490 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2491 DW_AT_location, call dwarf_block_to_sp_offset for it.
2492 * frame.h (print_entry_values_no, print_entry_values_only)
2493 (print_entry_values_preferred, print_entry_values_if_needed)
2494 (print_entry_values_both, print_entry_values_compact)
2495 (print_entry_values_default, print_entry_values): New declarations.
2496 (struct frame_arg): New field entry_kind.
2497 (read_frame_arg): New parameter entryargp.
2498 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2499 arg->entry_kind. Optionally print the `@entry' suffix.
2500 (list_args_or_locals): New variable entryarg, initialize it.
2501 Initialize also entry_kind of arg and entryarg. Conditionalize
2502 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2503 xfree for entryarg.error.
2504 * stack.c (print_entry_values_no, print_entry_values_only)
2505 (print_entry_values_preferred, print_entry_values_if_needed)
2506 (print_entry_values_both, print_entry_values_compact)
2507 (print_entry_values_default, print_entry_values_choices)
2508 (print_entry_values): New variables.
2509 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2510 print the `@entry' suffix, possibly in combination for
2511 print_entry_values_compact.
2512 (read_frame_arg): New parameter entryargp, new variables entryval,
2513 entryval_error and val_equal. Read in also entryargp, respect
2514 print_entry_values, compare the values using val_equal, fill in also
2515 argp->entry_kind (together with entryargp->entry_kind).
2516 (print_frame_args): New variable entryarg, initialize it.
2517 Conditionalize print_frame_arg for arg, add print_frame_arg for
2518 entryarg. Call xfree for entryarg.error.
2519 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2520 * symtab.h (struct symbol_computed_ops): New field
2521 read_variable_at_entry.
2523 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2526 * frame.h (struct frame_arg): New definition.
2527 (read_frame_arg): New declaration.
2528 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2529 (list_args_or_locals): ... the code here. New variable arg, call
2530 read_frame_arg and list_arg_or_local with it. Unify the
2531 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2533 * stack.c (print_frame_arg): New functiom from the code of
2535 (read_frame_arg): New function.
2536 (print_frame_args): Remove variable val. New variable arg, call
2537 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2539 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2541 Protect entry values against self tail calls.
2542 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2543 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2545 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 Recognize virtual tail call frames.
2548 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2549 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2550 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2551 * dwarf2-frame-tailcall.c: New file.
2552 * dwarf2-frame-tailcall.h: New file.
2553 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2554 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2555 REGS.PREV only after CIE execution.
2556 (struct dwarf2_frame_cache): New field tailcall_cache.
2557 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2558 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2559 parts, try to find entry_cfa_sp_offset. Call
2560 dwarf2_tailcall_sniffer_first.
2561 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2563 (dwarf2_frame_dealloc_cache): New function.
2564 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2565 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2566 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2567 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2568 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2569 * dwarf2loc.c (func_addr_to_tail_call_list)
2570 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2571 (call_site_find_chain_1, call_site_find_chain): New.
2572 * dwarf2loc.h (struct call_site_chain): New.
2573 (call_site_find_chain): New declaration.
2574 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2575 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2576 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2577 * stack.c (frame_info): Support also TAILCALL_FRAME.
2579 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2581 Tail call sites reader implementation.
2582 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2583 fill in TYPE_TAIL_CALL_LIST.
2584 * gdbtypes.h (struct func_type): New field tail_call_list.
2585 (struct call_site): New field tail_call_next.
2586 (TYPE_TAIL_CALL_LIST): New definition.
2588 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Implement basic support for DW_TAG_GNU_call_site.
2591 * block.c: Include gdbtypes.h and exceptions.h.
2592 (call_site_for_pc): New function.
2593 * block.h (call_site_for_pc): New declaration.
2594 * defs.h: Include hashtab.h.
2595 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2597 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2598 ctx_no_push_dwarf_reg_entry_value.
2599 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2600 (dwarf_block_to_dwarf_reg): New function.
2601 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2602 (ctx_no_push_dwarf_reg_entry_value): New function.
2603 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2604 push_dwarf_reg_entry_value.
2605 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2607 * dwarf2loc.c: Include gdbcmd.h.
2608 (dwarf_expr_ctx_funcs): New forward declaration.
2609 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2610 (dwarf_expr_reg_to_entry_parameter)
2611 (dwarf_expr_push_dwarf_reg_entry_value): New.
2612 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2613 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2614 (needs_dwarf_reg_entry_value): New function.
2615 (needs_frame_ctx_funcs): Install it.
2616 (_initialize_dwarf2loc): New function.
2617 * dwarf2loc.h (entry_values_debug): New declaration.
2618 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2619 (read_call_site_scope): New forward declaration.
2620 (process_full_comp_unit): Copy call_site_htab.
2621 (process_die): Support DW_TAG_GNU_call_site.
2622 (read_call_site_scope): New function.
2623 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2624 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2625 (cleanup_htab): Delete.
2626 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2627 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2628 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2629 FIELD_LOC_KIND_DWARF_BLOCK.
2630 * gdbtypes.h (enum field_loc_kind): New entry
2631 FIELD_LOC_KIND_DWARF_BLOCK.
2632 (struct main_type): New loc entry dwarf_block.
2633 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2634 (TYPE_FIELD_DWARF_BLOCK): New.
2635 * python/py-type.c: Include dwarf2loc.h.
2636 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2637 internal_error call on unknown FIELD_LOC_KIND.
2638 * symtab.h (struct symtab): New field call_site_htab.
2639 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2640 (core_addr_hash, core_addr_eq): New functions.
2642 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2645 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2646 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2647 calling_convention under func_stuff there.
2648 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2649 (init_type) <TYPE_CODE_FUNC>: Likewise.
2650 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2651 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2652 * gdbtypes.h (enum type_specific_kind): Change
2653 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2654 (struct main_type) <type_specific>: Change calling_convention to
2655 func_stuff. Move calling_convention to ...
2656 (struct func_type): ... this new struct.
2657 (INIT_FUNC_SPECIFIC): New #define.
2658 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2660 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2662 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2663 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2664 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2665 ctx->ref_addr_size. Handle its invalid value.
2666 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2667 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2668 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2669 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2670 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2671 (dwarf2_per_cu_ref_addr_size): New function.
2673 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2676 * dwarf2read.c (per_cu_header_read_in): New function.
2677 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2678 variables cu_header_local and cu_headerp.
2680 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2682 Fix initial language detection with -readnow.
2683 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2684 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2685 searches only for global symbols.
2687 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2689 Fix printed anonymous struct name.
2690 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2691 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2692 (anonymous_struct_prefix): New function.
2693 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2694 (dwarf2_name): Strip for anonymous structs any prefixes.
2696 2011-10-07 Doug Evans <dje@google.com>
2698 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2701 * python/lib/gdb/printing.py: Whitespace cleanup.
2703 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2706 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2708 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2709 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2710 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2711 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2712 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2713 (arm_linux_remove_watchpoint): Adjust.
2714 * i386-linux-nat.c (i386_linux_dr_set_control)
2715 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2716 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2717 (ia64_linux_remove_watchpoint): Adjust.
2718 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2719 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2720 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2721 (ppc_linux_insert_mask_watchpoint)
2722 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2723 (ppc_linux_remove_watchpoint): Adjust.
2724 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2727 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2729 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2730 (clear_win32_environment): New function for Cygwin to clear out
2732 (windows_create_inferior): Prepare new environment from in_env
2735 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2738 * python/py-value.c (valpy_call): Check that arguments are
2740 (is_intlike): Remove call to CHECK_TYPEDEF.
2741 (valpy_nonzero): Catch GDB exceptions.
2742 (valpy_absolute): Ditto.
2743 (valpy_lazy_string): Ditto.
2744 (valpy_call): Ditto.
2745 (valpy_get_is_optimized_out): Ditto.
2746 (valpy_long): Ditto.
2747 (valpy_float): Ditto.
2748 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2749 (valpy_richcompare): Ditto.
2751 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2753 * inferior.h (disable_randomization): Declare.
2754 * infrun.c (disable_randomization): New global variable.
2755 (show_disable_randomization): New function.
2756 (set_disable_randomization): Likewise.
2757 (_initialize_infrun): Install set/show disable-randomization
2759 * linux-nat.c (disable_randomization): Remove.
2760 (show_disable_randomization): Likewise.
2761 (set_disable_randomization): Likewise.
2762 (_initialize_linux_nat): No longer install set/show
2763 disable-randomization commands here.
2764 (linux_nat_supports_disable_randomization): New function.
2765 (linux_nat_add_target): Install it.
2766 * remote.c (PACKET_QDisableRandomization): New enum value.
2767 (remote_protocol_packets): Support QDisableRandomization.
2768 (_initialize_remote): Likewise.
2769 (remote_supports_disable_randomization): New function.
2770 (init_remote_ops): Install it.
2771 (extended_remote_supports_disable_randomization): New function.
2772 (init_extended_remote_ops): Install it.
2773 (extended_remote_disable_randomization): New function.
2774 (extended_remote_create_inferior_1): Call it.
2775 * target.h (struct target_ops): Add to_supports_disable_randomization.
2776 (target_supports_disable_randomization): Add prototype.
2777 * target.c (target_supports_disable_randomization): New function.
2778 (find_default_supports_disable_randomization): Likewise.
2779 (init_dummy_target): Install it.
2781 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2783 Allow Python notification of new object-file loadings.
2784 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2785 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2786 Add build rule for this file.
2787 * python/py-event.h (emit_new_objfile_event): New prototype.
2788 (newobjfile): New Python event emitter.
2789 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2790 Python event registry.
2791 * python/py-inferior.c: Include objfiles.h
2792 (python_new_objfile): New function.
2793 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2795 * python/py-newobjfileevent.c: New file.
2796 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2798 * python/python.c (_initialize_python): Add
2799 gdbpy_initialize_new_objfile_event call.
2800 * NEWS: Add item for new Python event "gdb.newobjfile"
2802 2011-10-05 Tristan Gingold <gingold@adacore.com>
2804 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2805 Extract the ravenscar task name from the symbol for the atcb.
2807 2011-10-04 Paul Koning <paul_koning@dell.com>
2809 * python/py-type.c (typy_make_iter): Add forward declaration.
2810 (typy_fields_items): Use the gdb.Type iterator.
2812 2011-10-04 Paul Koning <paul_koning@dell.com>
2814 * NEWS: Add entry for Python gdb.Type mapping methods.
2816 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2818 PR python/12691: Add the inferior to Python exited event
2819 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2821 * python/py-event.h (emit_exited_event): Likewise
2822 * python/-inferior.c (python_inferior_exit): Likewise
2824 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2826 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2827 in output of -ada-task-info GDB/MI command.
2829 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2831 * ada-lang.h (struct inferior): Declare.
2832 (print_ada_task_info): Add declaration.
2833 * ada-tasks.c (print_ada_task_info): Make non-static.
2834 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2835 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2836 * mi/mi-main.c: #include "ada-lang.h".
2837 (mi_cmd_list_features): Add "ada-task-info" to the list
2838 of supported features.
2839 (mi_cmd_ada_task_info): New function.
2841 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2843 * python/python.c (python_run_simple_file): New function.
2844 (source_python_script, source_python_script_for_objfile):
2845 Replace call to PyRun_SimpleFile by call to
2846 python_run_simple_file.
2848 2011-10-03 Paul Koning <paul_koning@dell.com>
2850 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2851 (value_to_value_object): Fetch value if it was lazy.
2853 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2857 Rearrange the code for it.
2859 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2861 * breakpoint.c (bkpt_print_recreate): Add call to
2862 print_recreate_thread.
2864 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2866 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2867 PTRACE_GETFDPIC_INTERP): Define.
2869 2011-09-28 Yao Qi <yao@codesourcery.com>
2871 * symfile.c (add_symbol_file_command): Update message on usage.
2873 2011-09-28 Paul Koning <paul_koning@dell.com>
2875 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2876 (typy_length, typy_get, typy_has_key, typy_make_iter)
2877 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2878 (typy_iterator_iter, typy_iterator_iternext)
2879 (typy_iterator_dealloc): New functions to implement standard
2880 Python mapping methods on gdb.Type object.
2881 (gdb.TypeIterator): New Python type.
2882 * python/python-internal.h (gdbpy_iter_kind): New enum.
2884 2011-09-28 David S. Miller <davem@davemloft.net>
2886 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2887 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2888 * sparc-tdep.c (sparc_complex_floating_p): New function.
2889 (sparc32_store_arguments): Handle complex floats.
2890 (sparc32_extract_return_value): Likewise.
2891 (sparc32_store_return_value): Likewise.
2892 (sparc32_stabs_argument_has_addr): Likewise.
2893 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2894 (sparc64_store_floating_fields): Handle complex floats.
2895 (sparc64_store_arguments): Likewise.
2896 (sparc64_store_return_value): Likewise.
2898 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2900 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2901 before the change on 2006-12-09.
2902 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2903 generates the environment block for CreateProcessA, modulo the
2904 Cygwin-specific parts that are not needed here.
2906 2011-09-27 Tristan Gingold <gingold@adacore.com>
2908 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2909 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2910 (darwin_solib_get_all_image_info_addr_at_init): New function.
2911 (darwin_solib_read_all_image_info_addr): Likewise.
2912 (darwin_solib_create_inferior_hook): Use the above two functions.
2913 * darwin-nat.c (darwin_execvp): Renames retval to res.
2914 (darwin_read_write_inferior): Update comment.
2915 (darwin_read_dyld_info): New function.
2916 (darwin_xfer_partial): Handle DYLD_INFO.
2918 2011-09-27 Stan Shebs <stan@codesourcery.com>
2920 Add return address collection for tracepoints.
2921 * tracepoint.c (encode_actions_1): Add case for $_ret.
2922 (validate_actionline): Check for $_ret.
2923 (trace_dump_actions): Ditto.
2924 * ax-gdb.h (gen_trace_for_return_address): Declare.
2925 * ax-gdb.c: Include arch-utils.h.
2926 (gen_trace_for_return_address): New function.
2927 (agent_command): Add return address special case.
2928 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2929 (amd64_gen_return_address): New function.
2930 (amd64_init_abi): Call it.
2931 * i386-tdep.c: Include ax.h and ax-gdb.h.
2932 (i386_gen_return_address): New function.
2933 (i386_init_abi): Call it.
2934 * arch-utils.h (default_gen_return_address): Declare.
2935 * arch-utils.c (default_gen_return_address): New function.
2936 * gdbarch.sh (gen_return_address): New method.
2937 * gdbarch.h, gdbarch.c: Regenerate.
2939 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2942 * i386-tdep.c (i386_frame_align): New.
2943 (i386_gdbarch_init): Use i386_frame_align.
2945 2011-09-23 Yao Qi <yao@codesourcery.com>
2947 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2950 2011-09-22 Tristan Gingold <gingold@adacore.com>
2952 * fork-child.c (fork_inferior): Add exec_fun parameter.
2953 Call exec_fun or execvp.
2954 * inferior.h: Adjust prototype.
2955 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2956 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2957 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2958 * procfs.c (procfs_create_inferior): Ditto.
2959 * darwin-nat.c (darwin_execvp): New function.
2960 (darwin_create_inferior): Use it.
2962 2011-09-22 Yao Qi <yao@codesourcery.com>
2964 * infrun.c (context_switch): Print debug message when switching to
2967 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2969 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2970 complex and vector types.
2971 (s390_return_value_convention): Likewise.
2973 (s390_value_from_register): Call check_typedef.
2974 (extend_simple_arg): Likewise.
2975 (alignment_of): Likewise.
2976 (s390_push_dummy_call): Likewise.
2977 (s390_return_value): Likewise.
2979 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2981 * event-top.c (async_disconnect): If an exception is thrown from
2982 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2984 * top.c (quit_cover): Return void and take no arguments.
2985 * top.h (quit_cover): Update prototype.
2987 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2989 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2990 current_uiout, not uiout.
2992 2011-09-19 Doug Evans <dje@google.com>
2994 * python/py-auto-load.c (source_section_scripts): Fix file
2996 * python/python.c (source_python_script_for_objfile): Tweak comments.
2998 2011-09-18 Yao Qi <yao@codesourcery.com>
2999 Ulrich Weigand <ulrich.weigand@linaro.org>
3001 Support displaced stepping for Thumb 16-bit insns.
3002 * arm-tdep.c (THUMB_NOP) Define.
3003 (thumb_copy_unmodified_16bit): New.
3004 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3005 (thumb_copy_alu_reg): New.
3006 (arm_copy_svc): Move some common code to ...
3007 (install_svc): ... here. New.
3008 (thumb_copy_svc): New.
3009 (install_pc_relative): New.
3010 (thumb_copy_pc_relative_16bit): New.
3011 (thumb_decode_pc_relative_16bit): New.
3012 (thumb_copy_16bit_ldr_literal): New.
3013 (thumb_copy_cbnz_cbz): New.
3014 (cleanup_pop_pc_16bit_all): New.
3015 (thumb_copy_pop_pc_16bit): New.
3016 (thumb_process_displaced_16bit_insn): New.
3017 (thumb_process_displaced_32bit_insn): New.
3018 (thumb_process_displaced_insn): process thumb instruction.
3020 Support displaced stepping for Thumb 32-bit insns.
3021 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3022 (thumb2_copy_preload): New.
3023 (thumb2_copy_copro_load_store): New.
3024 (thumb2_copy_b_bl_blx): New.
3025 (thumb2_copy_alu_imm): New.
3026 (thumb2_copy_load_reg_imm): New.
3027 (thumb2_copy_load_literal): New
3028 (thumb2_copy_block_xfer): New.
3029 (thumb_32bit_copy_undef): New.
3030 (thumb_32bit_copy_unpred): New.
3031 (thumb2_decode_ext_reg_ld_st): New.
3032 (thumb2_decode_svc_copro): New.
3033 (decode_thumb_32bit_store_single_data_item): New.
3034 (thumb_copy_pc_relative_32bit): New.
3035 (thumb_decode_pc_relative_32bit): New.
3036 (decode_thumb_32bit_ld_mem_hints): New.
3037 (thumb2_copy_table_branch): New
3038 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3041 2011-09-18 Yao Qi <yao@codesourcery.com>
3043 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3044 (install_b_bl_blx): Likewise.
3046 2011-09-17 Yao Qi <yao@codesourcery.com>
3048 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3049 (install_load_store): ... this. New.
3050 Change parameter BYTE to SIZE.
3051 (arm_copy_ldr_str_ldrb_strb): Update caller.
3052 (arm_decode_ld_st_word_ubyte): Update caller.
3054 2011-09-17 Yao Qi <yao@codesourcery.com>
3056 * infrun.c (displaced_step_fixup): Move some code ...
3057 (displaced_step_restore): ... here. New function.
3058 (handle_inferior_event): Cleanup displaced stepping state for both
3059 child and parent when get forked or vforked event.
3060 * regcache.c (get_thread_arch_aspace_regcache): New function.
3061 get_thread_arch_regcache (): Call it.
3063 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3065 * ada-tasks.c (print_ada_task_info): New function, merging
3066 short_task_info and info_tasks together. Reimplement using
3067 ui-out instead of printing to stdout directly. Move the code
3068 building and checking the task list here, instead of leaving it
3069 in info_tasks_command.
3070 (info_task): Move the code building and checking the task
3071 list here, instead of leaving it in info_tasks_command.
3072 (info_tasks_command): Delete code building and checking
3073 the task list - moved elsewhere. Update calls to info_tasks
3076 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3078 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3080 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3082 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3084 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3086 * ada-lang.h (ada_build_task_list): Remove parameter
3088 * ada-tasks.c (ada_build_task_list): Remove parameter
3089 `warn_if_null'. Adjust implementation and documentation.
3090 (valid_task_id, ada_get_environment_task)
3091 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3092 (info_tasks_command): Adjust implementation.
3093 (task_command): Likewise.
3094 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3095 to ada_build_task_list.
3097 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3099 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3100 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3101 (ada_tasks_inferior_data_handle): New static global.
3102 (get_ada_tasks_inferior_data): New function.
3103 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3104 (ada_get_environment_task, iterate_over_live_ada_tasks)
3105 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3107 (ada_set_current_inferior_known_tasks_addr): New function.
3108 (read_known_tasks, ada_build_task_list, short_task_info)
3109 (info_tasks, info_task, info_tasks_command, task_command_1)
3110 (task_command, ada_task_list_changed): Adjust.
3111 (ada_tasks_invalidate_inferior_data): New function.
3112 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3113 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3114 * ada-lang.h (struct inferior): Add declaration.
3115 (ada_task_list_changed): Update profile.
3116 * remote-wtx-pd.c: #include "inferior.h".
3117 (switch_to_pd_internal): Update call to ada_task_list_changed.
3119 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3121 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3122 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3123 (atcb_fieldno): Delete these static globals.
3124 (struct ada_tasks_pspace_data): New struct.
3125 (ada_tasks_pspace_data_handle): New static global.
3126 (get_ada_tasks_pspace_data): New function.
3127 (ada_tasks_invalidate_pspace_data): New function.
3128 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3129 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3130 (_initialize_tasks): Create this module's per-progspace
3133 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3135 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3137 2011-09-16 Tristan Gingold <gingold@adacore.com>
3139 * fork-child.c (fork_inferior): Update comment. Use alloca
3140 instead of xmalloc for argv. Move len and shell_command
3141 declarations in the block where they are used.
3142 Only call execvp. Factorize failure code.
3144 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3147 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3148 `exp_element' instead of an element of the same and make the function
3150 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3151 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3152 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3153 Change argument of `write_exp_elt' function call.
3154 Remove extra spaces from comments.
3155 * parser-defs.h (write_exp_elt): Remove prototype.
3157 2011-09-15 Paul Koning <paul_koning@dell.com>
3159 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3160 count of item appended to list.
3161 * python/py-type.c (typy_fields): Likewise.
3163 2011-09-15 Paul Koning <paul_koning@dell.com>
3165 * MAINTAINERS (Write After Approval): Add myself to the list.
3167 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3170 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3171 processes with multiple threads.
3172 (inf_has_multiple_thread_cb): New function.
3173 (inf_has_multiple_threads): New function.
3175 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3177 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3178 * python/py-inferior.c (GdbMethods): New Python method definition.
3180 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3182 Handle multiple breakpoint hits in Python interface:
3183 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3184 variable to breakpoints.
3185 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3186 bps instead of single breakpoint. Fix some space typos.
3187 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3188 variable to breakpoints.
3190 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3192 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3193 note if the breakpoint is internal.
3195 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3197 * MAINTAINERS (Write After Approval): Add myself to the list
3199 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3201 * infrun.c (prepare_for_detach, wait_for_inferior)
3202 (fetch_inferior_event): Don't flush the register cache.
3203 * remote.c (struct stop_reply) <regcache>: Add comment.
3205 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3207 Remove excessive DWARF expressions memory duplication.
3208 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3210 (indirect_pieced_value): Remove variable result. Remove variable
3211 back_to and its use for baton.data.
3212 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3214 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3215 Update the function comment.
3217 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3219 * inferior.h (ALL_INFERIORS): New.
3220 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3221 for a stopped thread.
3222 (thread_db_find_new_threads): Look for threads in all inferiors.
3224 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3226 * breakpoint.c (update_watchpoint): Handle the case of the
3227 watchpoint to update not being in the breakpoint list yet.
3228 (hw_watchpoint_use_count): New, factored out from
3229 hw_watchpoint_used_count.
3230 (hw_watchpoint_used_count): Rename to ...
3231 (hw_watchpoint_used_count_others): ... this. Add `except'
3232 parameter. Don't count resources of `except'. Use
3233 hw_watchpoint_use_count.
3235 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3237 * gdbthread.h (enum thread_state): Moved here.
3238 (struct thread_info): Rename `executing_' field to `executing' and
3239 `state_' to `state'.
3240 * thread.c (enum thread_state): Moved to gdbthread.h.
3241 (new_thread, add_thread_silent, delete_thread_1)
3242 (any_live_thread_of_process, thread_alive, set_running)
3243 (set_running, is_thread_state, any_running, is_executing)
3244 (set_executing, finish_thread_state, print_thread_info)
3245 (do_captured_thread_select): Adjust.
3247 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3249 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3250 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3252 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3253 Matt Rice <ratmice@gmail.com>
3257 * interps.c (struct interp) <interpreter_out>: Delete field.
3258 (interp_new): Remove the data and uiout parameters and adjust.
3259 (interp_set): Only set the current_uiout from the interpreter's
3260 uiout after initializing the interpreter. Adjust call to
3262 (interp_ui_out): Adjust to call procs->ui_out_proc.
3263 (interp_data, interp_name): New.
3264 * interps.h (interp_init_ftype): Add `self' parameter.
3265 (interp_ui_out_ftype): New typedef.
3266 (struct interp_procs) <ui_out_proc>: New method pointer.
3267 (interp_new): Remove the data and uiout parameters.
3268 (interp_data, interp_name): Declare.
3269 * tui/tui-interp.c (tui_init): Adjust prototype.
3271 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3272 tui_out here. Adjust call to interp_new.
3273 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3274 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3276 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3277 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3278 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3279 Initialize mi->uiout depending on the mi_version as extracted from
3280 the interpreter's name.
3282 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3283 interp_new. Don't allocate the ui_out's of the interpreters here.
3285 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3287 * solib.c (solib_used): New function.
3288 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3289 by another so_list object before freeing it.
3291 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3294 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3297 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3300 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3301 (amd64_skip_xmm_prologue): ... this new function. Describe its
3302 parameters. No longer use amd64_prologue_line_bug.
3303 * defs.h (producer_is_gcc_ge_4): New declaration.
3304 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3305 (process_full_comp_unit): Update its caller. Remove
3306 amd64_prologue_line_bug initialization.
3307 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3308 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3310 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3312 * linux-nat.h (enum resume_kind): New.
3313 (struct lwp_info) <last_resume_kind>: New field.
3314 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3315 resume_stop on the new lwp.
3316 (add_lwp): Set last_resume_kind as resume_continue by default.
3317 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3318 (resume_lwp): New, factored out from resume_callback. Also check
3319 for pending status in lp->waitstatus.
3320 (resume_callback): Reimplement.
3321 (resume_clear_callback): Set last_resume_kind as resume_stop.
3322 (resume_set_callback): Set last_resume_kind as resume_continue.
3323 (linux_nat_resume, linux_handle_extended_wait): Set
3325 (running_callback): Also check lp->waitstatus for pending events.
3326 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3328 (stop_and_resume_callback): Don't re-resume if the core wanted the
3329 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3330 using an invalidated pointer.
3331 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3332 SIGSTOPs if the core wanted the LWP to stop.
3333 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3334 wanted the lwp to stop. If the core wanted the lwp to stop, and
3335 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3336 of TARGET_SIGNAL_STOP.
3337 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3338 here. Instead, signal the lwp, and set the last_resume_kind to
3341 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3343 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3344 -1 (error), if the lwp exits right after attaching.
3346 2011-09-08 Doug Evans <dje@google.com>
3348 * py-cmd.c: Some minor formatting fixes.
3349 (gdbpy_parse_command_name): Rename text arg to name, make const.
3350 All callers updated.
3351 * python-internal.h (gdbpy_parse_command_name): Update.
3353 * cli/cli-decode.c (add_cmd): Add comment.
3355 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3357 PR breakpoints/12435
3358 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3359 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3360 * dwarf2read.c (process_full_comp_unit): Initialize
3361 amd64_prologue_line_bug.
3362 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3364 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3366 Fix TUI screen corruption.
3367 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3370 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3372 * findvar.c (read_var_value): Never return NULL, throw an error
3373 instead. Update the function comment. State symbol name in the error
3375 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3377 * stack.c (print_frame_args): Likewise.
3378 * valops.c (value_of_variable): Likewise.
3380 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * stack.c (print_frame_args): New variable except. Wrap
3383 read_var_value and common_val_print into TRY_CATCH.
3385 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3388 caller to value_of_this.
3389 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3391 * valops.c (value_of_this): Remove parameter complain and variable ret.
3392 Update function comment. Never return NULL by this code.
3393 (value_of_this_silent): New function.
3394 * value.h (value_of_this): Remove parameter complain.
3395 (value_of_this_silent): New declaration.
3397 2011-09-07 Yao Qi <yao@codesourcery.com>
3399 * gdbthread.h (struct thread_info): Remove fields
3400 `stepping_through_solib_after_catch' and
3401 `stepping_through_solib_catchpoints'.
3402 * infrun.c (init_thread_stepping_state): Update.
3403 (process_event_stop_test, currently_stepping): Update.
3404 (currently_stepping_or_nexting_callback): Update.
3406 2011-09-07 Yao Qi <yao@codesourcery.com>
3408 * gdbthread.h (struct thread_info): Comment on field
3409 `step_after_step_resume_breakpoint'.
3411 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3413 * remote.c (remote_console_output): Reindent.
3415 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3417 * frame.c (has_stack_frames): Check for currently selected
3420 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3422 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3423 (set_async_annotation_level, set_async_prompt, pop_prompt)
3424 (push_prompt, new_async_prompt): Delete declarations.
3425 * top.h (get_prompt, set_prompt): Change prototype.
3426 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3428 * top.c (command_loop):
3429 (top_prompt): New global.
3430 (get_prefix, set_prefix, get_suffix, ): Delete.
3431 (get_prompt, set_prompt): Rewrite.
3432 (show_new_async_prompt): Rename to ...
3433 (show_prompt): ... this.
3434 (init_main): Adjust. Don't handle --annotate=2 here.
3435 * event-top.c (new_async_prompt): Delete.
3436 (the_prompts): Delete.
3437 (more_to_come): Make static.
3438 (display_gdb_prompt): Use top_level_prompt() to compute the top
3439 level prompt, and don't notify the before_prompt observers
3440 directly here. Always trick readline into not trying to display
3441 the prompt if sync_execution and displaying the primary prompt.
3442 If displaying a local/secondary prompt, always show it, even if
3443 sync_execution is set.
3444 (change_annotation_level): Delete.
3445 (top_level_prompt): New, based on change_annotation_level.
3446 (push_prompt, pop_prompt): Delete.
3447 (async_disable_stdin): No longer pushes prompt.
3448 (command_line_handler): No longer pushes or pops prompt. If more
3449 input is expected, call display_gdb_prompt with an explicit empty
3451 (async_stop_sig): Adjust.
3452 (set_async_annotation_level, set_async_prompt): Delete.
3453 * python/python.c (before_prompt_hook): Adjust.
3455 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3459 * infrun.c (fetch_inferior_event): Check if there's a selected
3460 thread before checking if the selected thread is executing.
3462 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3464 * inf-loop.c (execute_command): Don't check if the current thread
3465 if running before synchronously waiting for command completion.
3466 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3468 (normal_stop): Call async_enable_stdin here.
3469 * inf-loop.c (inferior_event_handler): Don't call
3470 async_enable_stdin, nor handle "set exec-done-display" here.
3472 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3476 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3478 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3480 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3482 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3484 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3488 2011-09-02 Matt Rice <ratmice@gmail.com>
3491 * event-top.c (cli_command_loop): Replace readline setup with
3492 direct call to display_gdb_prompt.
3493 (display_gdb_prompt): Do not call observer mechanism during
3494 synchronous execution.
3496 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3498 * linux-nat.c (in_pid_list_p): New.
3499 (linux_record_stopped_pid): Delete.
3500 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3501 already attached to the LWP. Return an indication if so.
3502 (linux_nat_filter_event): Adjust.
3503 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3504 returning an indication to ignore this thread.
3506 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3508 * top.c: Include interps.h.
3509 (execute_command): If the target can async, but the interpreter is
3510 in sync mode, synchronously wait for the command to finish before
3512 (execute_command_to_string): Force the interpreter to sync mode.
3513 * infrun.c: Include interps.h.
3514 (fetch_inferior_event): Don't restore the prompt yet if the
3515 interpreter is in sync mode.
3516 * interps.c (interpreter_async): New global.
3517 * interps.h (interpreter_async): Declare.
3518 * inf-loop.c: Include interps.h.
3519 (inferior_event_handler): Don't print the language change or run
3520 breakpoint commands yet if the interpreter in is sync mode.
3521 * main.c (captured_command_loop): Flip the interpreter to async
3523 * cli/cli-script.c: Include interps.h.
3524 (execute_user_command, while_command, if_command): Force the
3525 interpreter to sync mode.
3526 * python/python.c: Include interps.h.
3527 (python_command, execute_gdb_command): Force the interpreter to
3530 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3532 * value.c (show_convenience): Catch errors thrown while printing
3533 each internal variable.
3534 * infrun.c (validate_siginfo_access): New function.
3535 (siginfo_value_read, siginfo_value_write): Call it.
3537 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3541 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3544 2011-08-29 Yao Qi <yao@codesourcery.com>
3546 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3548 (enable_break2): Update caller.
3549 * solib-frv.c (bfd_lookup_symbol): Removed.
3551 (enable_break2): Update caller.
3552 * solib-pa64.c (bfd_lookup_symbol): Removed.
3554 * solib-svr4.c (bfd_lookup_symbol): Removed.
3555 (cmp_name_and_sec_flags): New.
3556 (enable_break): Update caller.
3557 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3558 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3559 (gdb_bfd_lookup_symbol): New.
3560 * solib.h: Functions declarations.
3562 2011-08-29 Yao Qi <yao@codesourcery.com>
3564 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3567 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 Fix TUI stepi on code without symbols.
3570 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3573 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3577 and the static keyword.
3578 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3579 Make prefix an array.
3580 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3581 * mi/mi-main.c (get_register): Remove stb initialization and the static
3584 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3586 Code cleanup - make mi_opt const.
3587 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3589 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3590 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3591 (mi_cmd_env_dir): Likewise.
3592 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3593 (mi_cmd_target_file_put): Likewise.
3594 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3595 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3596 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3597 (mi_valid_noargs): Make opts const.
3598 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3599 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3600 (mi_cmd_data_read_memory): Likewise.
3601 (mi_cmd_data_read_memory_bytes): Likewise.
3602 (mi_cmd_data_write_memory): Likewise.
3604 2011-08-26 Matt Rice <ratmice@gmail.com>
3606 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3607 bcache_xmalloc, replace bcache_xmalloc with call to
3608 psymbol_bcache_init for psymbol_cache.
3609 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3611 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3613 * inf-loop.c (inferior_event_handler): Add exception_print in
3616 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3618 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3619 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3620 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3621 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3622 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3623 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3624 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3625 * infrun.c (fetch_inferior_event): Call
3626 make_bpstat_clear_actions_cleanup.
3627 * top.c (execute_command): New variable cleanup_if_error, call
3628 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3629 * utils.c (do_bpstat_clear_actions_cleanup)
3630 (make_bpstat_clear_actions_cleanup): New functions.
3632 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3634 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3635 either the parent or the child forks. Rename a couple locals.
3637 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3639 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3640 library call. Avoid reading the `status' local if all waitpid
3643 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3645 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3646 opening /proc/PID/task always succeeds.
3648 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3650 * linespec.c (symtab_from_filename): Check for the end of string.
3652 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3655 * varobj.c (cplus_describe_child): Add the keyword
3656 'class' to the output of the method when dealing
3657 with a cast to a base class.
3659 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3661 No functionality change.
3662 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3663 function comment a reference, new variables tp and bs, move here code
3664 from throw_exception.
3665 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3666 describe it in the comment.
3667 * exceptions.c (throw_exception): Remove variable tp, move the code for
3668 bpstat_clear_actions to bpstat_clear_actions.
3670 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3672 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3673 * linux-nat.c: Include linux-procfs.h.
3674 (linux_proc_get_tgid): Move to ...
3675 * common/linux-procfs.c: ... here. New file.
3676 * common/linux-procfs.h: New file.
3677 * linux-thread-db.c: Include linux-procfs.h.
3678 * Makefile.in: Update dependencies.
3679 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3680 * config/arm/linux.mh: Likewise.
3681 * config/i386/linux.mh: Likewise.
3682 * config/i386/linux64.mh: Likewise.
3683 * config/ia64/linux.mh: Likewise.
3684 * config/m32r/linux.mh: Likewise.
3685 * config/m68k/linux.mh: Likewise.
3686 * config/mips/linux.mh: Likewise.
3687 * config/pa/linux.mh: Likewise.
3688 * config/pa/linux.mh: Likewise.
3689 * config/powerpc/linux.mh: Likewise.
3690 * config/powerpc/ppc64-linux.mh: Likewise.
3691 * config/powerpc/spu-linux.mh: Likewise.
3692 * config/sparc/linux.mh: Likewise.
3693 * config/sparc/linux64.mh: Likewise.
3694 * config/xtensa/linux.mh: Likewise.
3696 2011-08-24 Hui Zhu <teawater@gmail.com>
3698 * tracepoint.c (cond_string_is_same): New function.
3699 (find_matching_tracepoint): Add condition check
3700 by cond_string_is_same.
3702 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3704 Fix build error in Darwin port.
3705 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3707 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3710 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3711 (command_line_is_silent): New function.
3712 (bpstat_do_actions_1): No longer use commands_left, use
3713 command_line_is_silent for commands.
3714 (bpstat_alloc): Remove clearing of commands_left.
3715 (bpstat_stop_status): Remove initialization of commands_left, use
3716 command_line_is_silent.
3717 * breakpoint.h (struct bpstats): Remove commands_left.
3719 2011-08-18 Keith Seitz <keiths@redhat.com>
3722 * cp-name-parser.y (struct demangle_info): Remove unused
3725 (allocate_info): Change return type to struct demangle_info *.
3726 Always allocate a new demangle_info.
3727 Remove unused PREV pointer.
3728 (cp_new_demangle_parse_info): New function.
3729 (cp_demangled_name_parse_free): New function.
3730 (do_demangled_name_parse_free_cleanup): New function.
3731 (make_cleanup_cp_demangled_name_parse_free): New function.
3732 (cp_demangled_name_to_comp): Change return type to
3733 struct demangle_parse_info *.
3734 Allocate a new storage for each call.
3735 (main): Update usage for cp_demangled_name_to_comp
3737 * cp-support.h (struct demangle_parse_info): New structure.
3738 (cp_demangled_name_to_comp): Update API change for
3740 (cp_new_demangle_parse_info): Declare.
3741 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3742 (cp_demangled_name_parse_free): Declare.
3743 * cp-support.c (cp_canonicalize_string): Update API
3744 change for cp_demangled_name_to_comp.
3745 (mangled_name_to_comp): Likewise.
3746 Return struct demangle_parse_info, too.
3747 (cp_class_name_from_physname): Update mangled_name_to_comp
3749 (method_name_from_physname): Likewise.
3750 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3751 (cp_remove_params): Likewise.
3752 * python/py-type.c (typy_legacy_template_argument): Likewise.
3754 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3755 (cp_merge_demangle_parse_infos): Declare.
3756 * cp-support.c (ignore_typedefs): New file global.
3757 (copy_string_to_obstack): New function.
3758 (inspect_type): New function.
3759 (replace_typedefs): New function.
3760 (replace_typedefs_qualified_name): New function.
3761 (cp_canonicalize_string_no_typedefs): New function.
3762 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3763 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3764 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3765 instead of cp_canonicalize_string.
3766 (find_method): Likewise.
3767 (decode_compound): Before looking up the name, call
3768 cp_canonicalize_string_no_typedefs.
3769 (decode_variable): Likewise.
3771 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3772 Tom Tromey <tromey@redhat.com>
3773 Matt Rice <ratmice@gmail.com>
3775 * python/lib/gdb/prompt.py: New file.
3776 * python/lib/gdb/command/prompt.py: New file.
3777 * NEWS: Document set extended-prompt and gdb.prompt library
3779 2011-08-16 Yao Qi <yao@codesourcery.com>
3781 * tic6x-linux-tdep.c: Move const arrays definition from here...
3782 * tic6x-tdep.c: to here ...
3784 2011-08-14 Yao Qi <yao@codesourcery.com>
3786 * NEWS: New port to Texas Instruments TMS320C6x.
3788 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3789 Bernd Schmidt <bernds@codesourcery.com>
3790 Yao Qi <yao@codesourcery.com>
3792 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3793 * solib-dsbt.c: New file. Support DSBT shared object.
3794 * tic6x-linux-tdep.c: New file.
3795 * tic6x-tdep.c: New file.
3796 * tic6x-tdep.h: New file.
3798 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3799 Yao Qi <yao@codesourcery.com>
3801 * remote.c (PACKET_qXfer_fdpic): New enum value.
3802 (remote_protocol_features): Add qXfer:fdpic:read packet.
3803 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3804 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3805 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3807 2011-08-14 Yao Qi <yao@codesourcery.com>
3809 Target description for tic6x.
3810 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3811 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3812 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3813 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3814 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3815 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3816 * features/tic6x-c64xp-linux.xml: New.
3817 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3818 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3819 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3820 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3821 * regformats/tic6x-c64xp.dat,
3822 regformats/tic6x-c62x-linux.dat: Generated.
3823 * regformats/tic6x-c64x-linux.dat,
3824 regformats/tic6x-c64xp-linux.dat: Generated.
3825 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3826 features/tic6x-*.c files.
3827 Add regformats/tic6x-*.dat files.
3829 2011-08-12 Doug Evans <dje@google.com>
3831 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3832 * python/py-symbol.c (sympy_get_type): New function.
3833 (symbol_object_getset): Add "type".
3835 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3839 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3841 (tui_show_register_group): Don't store a byte buffer in the data
3843 (tui_register_format): Skip registers with an empty name.
3844 (tui_get_register): Store a struct value in the data element's
3845 value field instead of a byte buffer holding the raw register
3846 contents. Account for optimized-out and unavailable registers
3847 when comparing register contents.
3849 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3851 * printcmd.c (current_display_number): Update comment.
3852 (disable_current_display_cleanup): Delete.
3853 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3854 catch errors thrown while evaluating and printing the display.
3856 2011-08-09 Tom Tromey <tromey@redhat.com>
3858 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3860 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3862 * elfread.c (elf_symtab_read): Rework comments.
3863 * maint.c (maintenance_command): Ditto.
3864 * somread.c (som_symtab_read): Ditto.
3865 * solib.c (solib_find, solib_map_sections, update_solib_list)
3866 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3867 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3868 (sharedlibrary_command, no_shared_libraries): Ditto.
3869 * solib-irix.c (locate_base, disable_break, enable_break)
3870 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3871 (irix_current_sos, irix_open_symbol_file_object)
3872 (irix_special_symbol_handling): Ditto.
3873 * solib-sunos.c (locate_base, first_link_map_member)
3874 (sunos_current_sos, disable_break, enable_break)
3875 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3877 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3878 (open_symbol_file_object, svr4_current_sos, enable_break)
3879 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3881 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3882 (frv_current_sos, enable_break, frv_special_symbol_handling)
3883 (frv_solib_create_inferior_hook): Ditto.
3884 * solist.h (struct target_so_ops): Extend the comments of the
3885 special_symbol_handling, current_sos and open_symbol_file_object
3888 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3890 * python/lib/gdb/__init__.py: Auto-load files in command and
3891 function directories.
3892 * python/python.c (finish_python_initialization): Use
3894 * python/lib/gdb/command/pretty_printers.py: Self register
3896 * NEWS: Document auto-loading.
3898 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3901 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3902 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3904 2011-08-08 Tom Tromey <tromey@redhat.com>
3906 * breakpoint.c (clean_up_filters): Remove.
3907 (catch_syscall_split_args): Use VEC_cleanup.
3909 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3912 (main): Uncomment "Demangling error\n".
3914 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3916 * solib-target.c (segment_attributes): Make them static.
3917 (section_attributes, library_children, library_attributes): Likewise.
3918 (library_list_children, library_list_attributes): Likesise.
3919 (library_list_elements): Likewise.
3921 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3923 * exceptions.c (throw_exception): Don't disable the current
3925 * printcmd.c (disable_current_display_cleanup): New function.
3926 (do_one_display): Install a cleanup to disable the current display
3927 if doing the display throws.
3929 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3931 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3932 initialization of the tp_new member to the corresponding
3933 gdbpy_initialize_* function.
3934 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3935 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3936 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3937 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3938 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3940 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3942 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3943 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3944 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3945 references to current_uiout.
3947 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3949 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3950 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3951 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3952 * top.c (gdb_readline_wrapper): Adjust.
3953 * tui/tui-interp.c (tui_command_loop):
3954 (_initialize_tui_interp): Don't install it.
3956 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3958 * ui-out.h (uiout): Rename to ...
3959 (current_uiout): ... this.
3960 * ui-out.c (uiout): Rename to ...
3961 (current_uiout): ... this.
3962 * ada-lang.c (print_it_exception, print_one_exception)
3963 (print_mention_exception): Adjust.
3964 * breakpoint.c (watchpoint_check): Adjust.
3965 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3966 (default_collect_info, watchpoints_info, print_one_catch_fork)
3967 (print_one_catch_vfork, print_one_catch_syscall)
3968 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3969 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3970 (print_it_watchpoint, print_mention_watchpoint)
3971 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3972 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3973 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3974 (bkpt_print_mention, momentary_bkpt_print_it)
3975 (tracepoint_print_mention, update_static_tracepoint)
3976 (tracepoints_info, save_breakpoints): Adjust.
3977 * cli-out.c (field_separator): Adjust.
3978 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3979 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3980 * frame.c (get_current_frame): Adjust.
3981 * infcmd.c (run_command_1, print_return_value): Adjust.
3982 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3983 * infrun.c (print_end_stepping_range_reason): Adjust.
3984 (print_signal_exited_reason, print_exited_reason): Adjust.
3985 (print_signal_received_reason, print_no_history_reason): Adjust.
3986 * interps.c (interp_set): Adjust.
3987 * osdata.c (info_osdata_command): Adjust.
3988 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3989 * remote-fileio.c (remote_fileio_request): Adjust.
3990 * remote.c (show_remote_cmd): Adjust.
3991 * solib.c (info_sharedlibrary_command): Adjust.
3992 * source.c (print_source_lines_base): Adjust.
3993 * stack.c (print_stack_frame): Adjust.
3994 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3995 * symfile-mem.c (add_vsyscall_page): Adjust.
3996 * symfile.c (load_progress, generic_load)
3997 (print_transfer_performance): Adjust.
3998 * thread.c (info_threads_command, restore_selected_frame)
3999 (thread_command): Adjust.
4000 * top.c (make_cleanup_restore_ui_file): Adjust.
4001 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4002 (print_one_static_tracepoint_marker): Adjust.
4003 * cli/cli-cmds.c (print_disassembly): Adjust.
4004 * cli/cli-decode.c (print_doc_line): Adjust.
4005 * cli/cli-interp.c (safe_execute_command): Adjust.
4006 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4007 (handle_redirections): Adjust.
4008 * cli/cli-script.c (show_user_1): Adjust.
4009 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4010 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4011 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4012 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4013 (mi_cmd_env_dir): Adjust.
4014 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4015 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4016 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4017 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4018 (list_args_or_locals): Adjust.
4019 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4020 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4021 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4022 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4023 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4024 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4025 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4026 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4027 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4028 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4029 (list_available_thread_groups, mi_cmd_list_thread_groups)
4030 (mi_cmd_data_list_register_names)
4031 (mi_cmd_data_list_changed_registers)
4032 (mi_cmd_data_list_register_values, get_register)
4033 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4034 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4035 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4036 (mi_execute_command, mi_load_progress): Adjust.
4037 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4038 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4040 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4041 * tui/tui-interp.c (tui_command_loop): Adjust.
4042 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4044 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4046 * exceptions.c (struct catcher): Remove saved_uiout field.
4047 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4048 no longer save/resvore the global ui_out builder.
4049 (catch_exceptions_with_msg): Save/override/restore the global
4050 ui_out builder manually instead of relying on TRY_CATCH to do it.
4051 (catch_errors): Save/restore the global ui_out builder manually
4052 instead of relying on TRY_CATCH to do it.
4053 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4055 (TRY_CATCH): Adjust.
4056 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4057 the global ui_out builder manually instead of relying on TRY_CATCH
4060 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4062 * breakpoint.c (update_global_location_list): Ensure
4063 invariant 'first loc marked not duplicated and inserted,
4064 following locs marked duplicated/not inserted' is respected
4065 for multiple locations at the same address.
4066 (unduplicated_should_be_inserted) New function.
4067 (swap_insertion) New function.
4069 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4071 * stack.c (print_frame_arguments_choices): Comment typo fix.
4073 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4076 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4077 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4078 argument. Update callers.
4080 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4083 * doublest.c (convert_doublest_to_floatformat): Pass correct
4084 mantissa length to put_field.
4086 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4088 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4089 exception_print code path.
4090 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4091 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4092 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4094 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4097 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4098 Remove, merge them into ...
4099 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4100 variable args and its initialization.
4101 (struct print_args_args, print_args_stub): Remove, merge them into
4103 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4105 (do_gdb_disassembly): ... here. Remove variable args and its
4107 (print_frame): Remove variable args and its initialization, new
4108 variable gdbarch and numargs (from print_args_stub), inline here
4109 print_args_stub with a TRY_CATCH.
4110 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4112 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4113 New variable e, remove variable btargs and its initialization.
4115 2011-08-01 Tristan Gingold <gingold@adacore.com>
4117 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4119 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4121 * breakpoint.c (insert_bp_location): Document return value.
4122 (insert_breakpoint_locations): Fix documentation.
4123 (remove_breakpoints): Add documentation.
4125 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4127 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4128 argument. Update callers.
4130 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4132 * stack.c (print_frame_info): Comment typo fix.
4134 2011-07-29 Sterling Augustine <saugustine@google.com>
4136 * MAINTAINERS (Write After Approval): Add myself to the list.
4138 2011-07-29 Tom Tromey <tromey@redhat.com>
4140 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4141 (library_list_start_segment): Update.
4142 (library_list_start_section): Update.
4144 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4146 * varobj.c (value_get_print_value): Move hint check later into the
4147 function. Comment function. Free thevalue before reusing it.
4149 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4150 Pedro Alves <pedro@codesourcery.com>
4152 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4154 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4155 Assert the result kind.
4156 * value.h (value_one): Remove parameter lv.
4158 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4160 Fix crash on lval_computed values.
4161 * valops.c (value_zero): Use not_lval for lval_computed.
4163 2011-07-27 Tom Tromey <tromey@redhat.com>
4165 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4166 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4168 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4171 "ptype" by their typedefs difference.
4173 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4175 * dwarf2expr.c (ctx_no_read_reg): New function.
4176 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4177 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4178 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4179 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4181 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4184 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4186 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4187 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4188 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4189 (ctx_no_get_base_type): Move the functions here.
4190 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4191 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4192 (ctx_no_get_base_type): New declarations.
4194 2011-07-27 Tom Tromey <tromey@redhat.com>
4196 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4198 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4199 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4201 2011-07-26 Sterling Augustine <saugustine@google.com>
4203 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4205 (dump_bfd_file): Likewise.
4207 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4209 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4210 (remote_hw_watchpoint_length_limit): New variable.
4211 (_initialize_remote) add set,show cmds for this new variable.
4212 * gdb.texinfo: document these new commands.
4213 * NEWS: Mention these new commands.
4215 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4217 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4218 true for software watchpoints.
4220 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4224 2011-07-26 Tom Tromey <tromey@redhat.com>
4226 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4227 * dwarf2read.c (read_indirect_string_at_offset): New function.
4228 (read_indirect_string): Use it.
4229 (dwarf_decode_macro_bytes): New function, taken from
4230 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4231 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4232 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4234 (struct dwarf2_per_objfile) <macro>: New field.
4235 (dwarf2_elf_names): Add .debug_macro.
4236 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4237 (dwarf2_locate_sections): Handle new section.
4238 (read_file_scope): Handle DW_AT_GNU_macros.
4239 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4241 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4243 * NEWS: Mention dcache configuration.
4244 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4245 (dcache_size, dcache_line_size): New variables.
4246 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4247 (struct dcache_block): Make it expandable.
4248 (struct dcache_struct): New field.
4249 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4250 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4251 (dcache_poke_byte, dcache_print_line): Adjust.
4252 (set_dcache_size, set_dcache_line_size): New functions.
4253 (set_dcache_command, show_dcache_command): New functions.
4254 (_initialize_dcache): Add new commands.
4256 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4258 * progspace.h (struct program_space): Add solib_add_generation.
4259 * infcmd.c (post_create_inferior): Only call solib_add if not
4261 * solib.c (solib_add): Increment solib_add_generation.
4263 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4265 Fix implicit pointer offsets.
4266 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4269 2011-07-25 Tom Tromey <tromey@redhat.com>
4271 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4273 (ada_exception_sal): Make 'ops' const.
4274 (ada_decode_exception_location): Likewise.
4275 (ada_decode_assert_location): Likewise.
4276 (catch_assert_command): Update.
4277 (catch_ada_exception_command): Update.
4278 (create_ada_exception_catchpoint): Make 'ops' const.
4279 * breakpoint.c (set_raw_breakpoint_without_location)
4280 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4282 (create_internal_breakpoint): Update.
4283 (init_raw_breakpoint_without_location): Make 'ops' const.
4284 (init_raw_breakpoint, init_catchpoint)
4285 (create_fork_vfork_event_catchpoint)
4286 (create_syscall_event_catchpoint, init_breakpoint_sal)
4287 (create_breakpoint_sal, create_breakpoints_sal)
4288 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4289 * breakpoint.h (struct breakpoint) <ops>: Now const.
4290 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4293 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4295 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4297 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4299 * breakpoint.h (print_recreate_thread): Declare.
4300 (struct breakpoint): Move step_count, pass_count,
4301 number_on_target, static_trace_marker_id,
4302 static_trace_marker_id_idx ...
4303 (struct tracepoint): ... to this new struct.
4304 (get_tracepoint, get_tracepoint_by_number_on_target)
4305 (get_tracepoint_by_number): Change return type to struct
4307 * breakpoint.c (is_tracepoint_type): New, factored out from
4309 (is_tracepoint): Adjust.
4310 (print_one_breakpoint_location): Cast to struct tracepoint as
4311 necessary, and adjust.
4312 (print_recreate_catch_fork, print_recreate_catch_vfork)
4313 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4314 print_recreate_thread.
4315 (init_breakpoint_sal): New, factored out from
4316 create_breakpoint_sal.
4317 (create_breakpoint_sal): Reimplement.
4318 (create_breakpoint): Allocate a struct tracecepoint if the caller
4319 wanted a tracepoint. Use init_breakpoint_sal and
4321 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4322 (print_recreate_masked_watchpoint)
4323 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4324 (tracepoint_print_one_detail): Adjust.
4325 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4326 Dump the pass count here.
4327 (update_static_tracepoint): Adjust.
4328 (addr_string_to_sals): Adjust.
4329 (create_tracepoint_from_upload): Adjust. Change return type to
4330 struct tracepoint pointer.
4331 (trace_pass_set_count): Change parameter type to struct tracepoint
4332 pointer, and adjust.
4333 (trace_pass_command): Adjust.
4334 (get_tracepoint, get_tracepoint_by_number_on_target)
4335 (get_tracepoint_by_number): Change return type to struct
4336 tracepoint pointer, and adjust.
4337 (print_recreate_thread): New, factored out from save_breakpoints.
4338 (save_breakpoints): Don't print thread and task and passcount
4340 * remote.c (remote_download_tracepoint): Adjust.
4341 * tracepoint.c (trace_actions_command, validate_actionline)
4342 (start_tracing, tfind_1, trace_find_tracepoint_command)
4343 (trace_dump_command): Adjust.
4344 (find_matching_tracepoint): Change return type to struct
4345 tracepoint pointer, and adjust.
4346 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4347 (tfile_trace_find, tfile_fetch_registers): Adjust.
4348 * tracepoint.h (create_tracepoint_from_upload): Change return type
4349 to struct tracepoint pointer.
4350 * ada-lang.c (print_recreate_exception): Call
4351 print_recreate_thread.
4352 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4354 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4356 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4357 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4358 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4359 watchpoint_thread, watchpoint_triggered ...
4360 (struct watchpoint): ... to this new struct.
4361 (is_watchpoint): Declare.
4362 (install_breakpoint): Add new `internal' parameter.
4363 * breakpoint.c (is_watchpoint): Delete declaration.
4364 (set_breakpoint_condition): Handle watchpoints.
4365 (is_watchpoint): Make public.
4366 (watchpoint_in_thread_scope): Change parameter type to struct
4368 (watchpoint_del_at_next_stop): Change parameter type to struct
4369 watchpoint. Remove assertion. Adjust.
4370 (update_watchpoint): Ditto.
4371 (insert_breakpoints, breakpoint_init_inferior)
4372 (watchpoints_triggered, watchpoint_check)
4373 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4374 (bpstat_stop_status, print_one_breakpoint_location)
4375 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4376 to struct watchpoint as necessary, and adjust.
4377 (install_breakpoint): Add `internal' argument. If true, don't
4378 mention the new breakpoint. Use set_breakpoint_number.
4379 (create_fork_vfork_event_catchpoint)
4380 (create_syscall_event_catchpoint): Adjust.
4381 (dtor_watchpoint): New.
4382 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4383 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4384 (print_it_watchpoint, print_mention_watchpoint)
4385 (print_recreate_watchpoint, insert_masked_watchpoint)
4386 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4387 (print_one_detail_masked_watchpoint)
4388 (print_mention_masked_watchpoint)
4389 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4390 necessary, and adjust.
4391 (watch_command_1): Allocate and initialize a struct watchpoint
4392 instead of a struct breakpoint. Use install_breakpoint.
4393 (catch_exec_command_1): Adjust.
4394 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4396 (delete_breakpoint, enable_breakpoint_disp)
4397 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4398 as necessary, and adjust.
4399 (initialize_breakpoint_ops): Install dtor_watchpoint as
4400 watchpoints' dtor method.
4401 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4402 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4403 to struct watchpoint as necessary, and adjust.
4405 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4407 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4408 the the base class ops table.
4409 (catch_exception_breakpoint_ops)
4410 (catch_exception_unhandled_breakpoint_ops)
4411 (catch_assert_breakpoint_ops): Don't statically initialize.
4412 (initialize_ada_catchpoint_ops): New.
4413 (_initialize_ada_language): Call it.
4414 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4415 (bkpt_breakpoint_ops): Forward declare.
4416 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4417 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4418 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4419 (masked_watchpoint_breakpoint_ops)
4420 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4421 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4422 base class ops table.
4423 (null_re_set, null_check_status, null_works_in_software_mode)
4424 (null_resources_needed, null_print_one_detail): Delete.
4425 (bkpt_dtor): Rename to ...
4426 (base_breakpoint_dtor): ... this. Make static.
4427 (bkpt_allocate_location): Rename to ...
4428 (base_breakpoint_allocate_location): ... this. Make static.
4429 (base_breakpoint_re_set): New.
4430 (internal_error_pure_virtual_called): New.
4431 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4432 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4433 (base_breakpoint_works_in_software_mode)
4434 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4435 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4436 (base_breakpoint_print_recreate): New functions.
4437 (base_breakpoint_ops): New global.
4438 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4439 (bkpt_breakpoint_hit): Make static.
4440 (bkpt_check_status): Delete.
4441 (bkpt_resources_needed): Make static.
4442 (bkpt_works_in_software_mode): Delete.
4443 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4445 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4446 (momentary_breakpoint_ops): Don't statically initialize.
4447 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4449 (tracepoint_insert_location, tracepoint_remove_location)
4450 (tracepoint_check_status, tracepoint_works_in_software_mode)
4451 (tracepoint_print_it): Delete.
4452 (tracepoint_breakpoint_ops): Don't statically initialize.
4453 (initialize_breakpoint_ops): New.
4454 (_initialize_breakpoint): Call it.
4455 * breakpoint.h (null_re_set, null_works_in_software_mode)
4456 (null_resources_needed, null_check_status, null_print_one_detail):
4457 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4458 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4459 (bkpt_check_status, bkpt_resources_needed)
4460 (bkpt_works_in_software_mode, bkpt_print_it)
4461 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4462 Delete declarations.
4463 (initialize_breakpoint_ops): Declare.
4465 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4467 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4468 (momentary_bkpt_print_it): Simplify.
4470 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4472 Split internal, momentary and user breakpoints breakpoint_ops
4475 * breakpoint.c (internal_breakpoint_ops)
4476 (momentary_breakpoint_ops): Forward declare.
4477 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4478 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4479 (create_overlay_event_breakpoint)
4480 (create_std_terminate_master_breakpoint)
4481 (create_exception_master_breakpoint): Create breakpoints with
4482 internal_breakpoint_ops vtable.
4483 (set_longjmp_breakpoint): Create momentary breakpoints with
4484 momentary_breakpoint_ops vtable, using
4485 momentary_breakpoint_from_master.
4486 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4487 (create_solib_event_breakpoint): Create breakpoints with
4488 internal_breakpoint_ops vtable.
4489 (set_momentary_breakpoint): Create breakpoints with
4490 momentary_breakpoint_ops vtable.
4491 (momentary_breakpoint_from_master): New, factored out from
4492 clone_momentary_breakpoint.
4493 (clone_momentary_breakpoint): Adjust.
4494 (watch_command_1): Create scope breakpoints with
4495 momentary_breakpoint_ops vtable.
4496 (bkpt_re_set): Remove handling of internal and momentary
4498 (bkpt_print_mention, bkpt_print_recreate): New.
4499 (bkpt_breakpoint_ops): Adjust.
4500 (internal_bkpt_re_set, internal_bkpt_check_status)
4501 (internal_bkpt_print_it, internal_bkpt_print_mention)
4502 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4503 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4504 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4505 (momentary_bkpt_print_recreate): New.
4506 (momentary_breakpoint_ops): New.
4508 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4510 Implement most breakpoint_ops methods for all breakpoint types,
4511 and move the default handlings to the proper callbacks.
4513 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4514 works_in_software_mode method.
4515 (insert_bp_location): Go through breakpoint_ops->insert_location
4516 for software and hardware watchpoints.
4517 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4519 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4520 for software and hardware watchpoints.
4521 (print_it_typical): Delete.
4522 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4524 (watchpoint_check): Adjust comment.
4525 (bpstat_check_location): Simply always call the breakpoint's
4526 breakpoint_hit method.
4527 (bpstat_stop_status): Always call the breakpoint's check_status
4528 method. Remove special cases for watchpoints and internal event
4529 breakpoints from here (moved to the check_status implementations).
4530 (print_one_breakpoint_location): Assume b->ops is never NULL.
4531 Remove static tracepoint marker id printing from here (moved to
4532 the print_one_detail callback implementation of tracepoints).
4533 (init_bp_location): Assert OPS is never NULL.
4534 (allocate_bp_location): Always call the breakpoint's
4535 allocate_location method, and remove the default code from here.
4536 (free_bp_location): Always call the location's dtor method, and
4537 remove the default code from here.
4538 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4539 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4540 parameter. Pass it down.
4541 (set_raw_breakpoint): Ditto.
4542 (print_it_catch_fork): Adjust to take a bpstat as argument.
4543 (catch_fork_breakpoint_ops): Install methods.
4544 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4545 (catch_vfork_breakpoint_ops): Install methods.
4546 (dtor_catch_syscall): Call the base dtor.
4547 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4548 (catch_syscall_breakpoint_ops): Install methods.
4549 (dtor_catch_exec): Call the base dtor.
4550 (print_it_catch_exec): Adjust to take a bpstat as argument.
4551 (catch_exec_breakpoint_ops): Install methods.
4552 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4553 the breakpoint's resources_needed method, and remove the default
4555 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4557 (clone_momentary_breakpoint): Clone the original's ops.
4558 (mention): Always call the breakpoint's print_mention method, and
4559 remove the default code from here.
4560 (create_breakpoint_sal): Adjust to pass the ops to
4561 set_raw_breakpoint rather than setting it manually.
4562 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4563 ops to set_raw_breakpoint_without_location rather than setting it
4565 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4566 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4567 (ranged_breakpoint_ops): Install methods.
4568 (break_range_command): Adjust to pass the ops to
4569 set_raw_breakpoint rather than setting it manually.
4570 (re_set_watchpoint, breakpoint_hit_watchpoint)
4571 (check_status_watchpoint, resources_needed_watchpoint)
4572 (works_in_software_mode_watchpoint, print_it_watchpoint)
4573 (print_mention_watchpoint, print_recreate_watchpoint): New
4575 (watchpoint_breakpoint_ops): Install new methods.
4576 (print_it_masked_watchpoint): New function.
4577 (masked_watchpoint_breakpoint_ops): Install new methods.
4578 (watch_command_1): Adjust to pass the right breakpoint_ops to
4579 set_raw_breakpoint_without_location rather than setting it
4580 manually later. Record the current pspace.
4581 (print_it_exception_catchpoint): Adjust to take a bpstat as
4583 (gnu_v3_exception_catchpoint_ops): Install new methods.
4584 (say_where): New function.
4585 (null_re_set, null_check_status, null_works_in_software_mode)
4586 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4588 (bp_location_ops): New global.
4589 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4590 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4591 (bkpt_check_status, bkpt_resources_needed)
4592 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4593 (bkpt_print_recreate): New functions.
4594 (bkpt_breakpoint_ops): New global.
4595 (tracepoint_re_set, tracepoint_insert_location)
4596 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4597 (tracepoint_check_status, tracepoint_works_in_software_mode)
4598 (tracepoint_print_it, tracepoint_print_one_detail)
4599 (tracepoint_print_mention, tracepoint_print_recreate): New
4601 (tracepoint_breakpoint_ops): New global.
4602 (delete_breakpoint): Always call the breakpoint's dtor method, and
4603 remove the default handling from here.
4604 (breakpoint_re_set_default): Make static.
4605 (breakpoint_re_set_one): Always call the breakpoints re_set
4606 method, and remove the default handling from here.
4607 (trace_command, ftrace_command, strace_command)
4608 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4609 to create_breakpoint.
4610 (save_breakpoints): Always call the breakpoint's print_recreate
4611 method, and remove the default handling from here.
4613 * ada-lang.c (dtor_exception): Call the base dtor.
4614 (re_set_exception): Call the base method.
4615 (print_it_exception, print_it_catch_exception): Adjust to take a
4617 (catch_exception_breakpoint_ops): Install methods.
4618 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4620 (catch_exception_unhandled_breakpoint_ops): Install methods.
4621 (print_it_catch_assert): Adjust to take a bpstat as argument.
4622 (catch_assert_breakpoint_ops): Install methods.
4624 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4625 to take a bpstat as argument.
4626 (enum print_stop_action): Add describing comments to each enum
4628 (breakpoint_re_set_default): Delete declaration.
4629 (null_re_set, null_works_in_software_mode, null_resources_needed)
4630 (null_check_status, null_print_one_detail): Declare.
4631 (bkpt_breakpoint_ops): Declare.
4632 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4633 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4634 (bkpt_check_status, bkpt_resources_needed)
4635 (bkpt_works_in_software_mode, bkpt_print_it)
4636 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4639 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4640 bkpt_breakpoint_ops.
4641 * python/py-breakpoint.c (bppy_init): Ditto.
4643 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4645 * MAINTAINERS (Write After Approval): Add myself to the list.
4647 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4649 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4651 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4653 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4654 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4655 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4657 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4658 (struct i386_debug_reg_state): New.
4659 (i386_init_dregs): New.
4661 (i386_cleanup_dregs): Use i386_init_dregs.
4662 (i386_show_dr): Add state parameter and adjust.
4663 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4665 (i386_remove_aligned_watchpoint): Likewise.
4666 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4667 (i386_update_inferior_debug_regs): New.
4668 (i386_insert_watchpoint): Work on a local mirror of the debug
4669 registers, and only update the inferior on success.
4670 (i386_remove_watchpoint): Ditto.
4671 (i386_region_ok_for_watchpoint): Adjust.
4672 (i386_stopped_data_address): Adjust.
4673 (i386_insert_hw_breakpoint): Adjust.
4674 (i386_remove_hw_breakpoint): Adjust.
4676 2011-07-22 Tom Tromey <tromey@redhat.com>
4678 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4679 from amd64_pseudo_register_read. Change arguments. Call
4680 mark_value_bytes_unavailable when needed.
4681 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4682 set_gdbarch_pseudo_register_read.
4683 * sentinel-frame.c (sentinel_frame_prev_register): Use
4684 regcache_cooked_read_value.
4685 * regcache.h (regcache_cooked_read_value): Declare.
4686 * regcache.c (regcache_cooked_read_value): New function.
4687 (regcache_cooked_read): Call
4688 gdbarch_pseudo_register_read_value if available.
4689 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4690 (i386_pseudo_register_read): Remove.
4691 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4692 i386_pseudo_register_read. Change arguments. Call
4693 mark_value_bytes_unavailable when needed.
4694 (i386_pseudo_register_read_value): New function.
4695 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4696 not set_gdbarch_pseudo_register_read.
4697 * gdbarch.sh (pseudo_register_read_value): New method.
4698 * gdbarch.c, gdbarch.h: Rebuild.
4699 * findvar.c (value_from_register): Call get_frame_register_value.
4701 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4703 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4705 (display_gdb_prompt): Likewise.
4706 (change_annotation_level): Likewise.
4707 (push_prompt): Likewise.
4708 (pop_prompt): Likewise.
4709 (handle_stop_sig): Use get_prompt with a level.
4710 * top.c (command_loop): Use get_prompt with a level.
4711 (set_async_annotation_level): Use set_prompt with a level.
4712 (get_prefix): New function.
4713 (set_prefix): Ditto.
4714 (set_suffix): Ditto.
4715 (get_suffix): Ditto.
4716 (get_prompt): Accept a level argument.
4717 (set_prompt): Accept a level argument. Free old prompts. Set
4718 new_async_prompt if level is 0.
4719 (init_main): Use set_prompt with a level. Do not set
4721 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4722 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4723 Modify set_prompt, get_prompt to account for levels.
4724 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4726 * python/python.c (before_prompt_hook): Use set_prompt.
4728 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4730 * defs.h: Add guard against inclusion in gdbserver.
4731 (struct ptid, ptid_t): Move to common/ptid.h.
4732 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4733 xsnprintf, internal_error): Move to common/common-utils.h.
4735 * gdb_assert.h: Move into common/ sub-directory.
4736 * gdb_locale.h: Ditto.
4737 * gdb_dirent.h: Ditto.
4738 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4739 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4740 Move into common/ptid.h.
4741 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4742 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4743 Change nomem to malloc_failure.
4744 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4745 * utils.c (nomem): Rename to malloc_failure.
4746 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4747 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4748 (gdb_buildargv): Change nomem to malloc_failure.
4749 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4750 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4751 ptid_is_pid): Move into common/ptid.c.
4752 (initialize_infrun): Delete initialization of null_ptid and
4754 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4755 linux_common_xfer_osdata.
4756 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4757 common/ptid.c and common/buffer.c.
4758 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4759 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4760 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4761 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4763 * common/gdb_assert.h: New.
4764 * common/gdb_dirent.h: New.
4765 * common/gdb_locale.h: New.
4766 * common/buffer.c: New.
4767 * common/buffer.h: New.
4768 * common/ptid.c: New.
4769 * common/ptid.h: New.
4770 * common/xml-utils.c: New.
4771 * common/xml-utils.h: New.
4772 * common/common-utils.c: New.
4773 * common/common-utils.h: New.
4774 * common/linux-osdata.c: New.
4775 * common/linux-osdata.h: New.
4776 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4777 * config/arm/linux.mh (NATDEPFILES): Ditto.
4778 * config/i386/linux.mh (NATDEPFILES): Ditto.
4779 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4780 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4781 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4782 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4783 * config/mips/linux.mh (NATDEPFILES): Ditto.
4784 * config/pa/linux.mh (NATDEPFILES): Ditto.
4785 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4786 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4787 * config/s390/s390.mh (NATDEPFILES): Ditto.
4788 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4789 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4790 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4792 2011-07-21 Matt Rice <ratmice@gmail.com>
4794 * NEWS: Add info macros and info definitions commands.
4796 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4798 * NEWS: Document Python prompt substitution hook.
4800 2011-07-18 Matt Rice <ratmice@gmail.com>
4803 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4804 * macrotab.c (foreach_macro): Ditto.
4805 (foreach_macro_in_scope): Ditto.
4806 * macrocmd.c (print_macro_callback): New function.
4807 (info_macro_command): Move some code to print_macro_definition.
4808 (print_macro_definition): New function.
4809 (print_one_macro): Add new arguments to callback.
4810 (info_definitions_command): New function.
4811 (info_macros_command): Ditto.
4812 (_initialize_macrocmd): Add info macros and info definitions commands.
4813 * symtab.c (add_macro_name): Add new arguments to callback.
4815 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4816 Tom Tromey <tromey@redhat.com>
4818 * top.c (set_prompt): Rewrite to free previous prompt, free
4819 asynch_new_prompt and set both on new prompts.
4820 * event-top.c (display_gdb_prompt): Add prompt substitution
4822 * python/python.c (before_prompt_hook): New function.
4824 2011-07-20 Matt Rice <ratmice@gmail.com>
4826 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4827 arguments to store_unsigned_integer.
4829 2011-07-20 Tom Tromey <tromey@redhat.com>
4831 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4832 in some declaration-only cases.
4834 2011-07-18 Tom Tromey <tromey@redhat.com>
4837 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4838 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4839 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4840 <debug_type_section>: New field.
4841 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4842 (load_cu): Use appropriate section.
4843 (create_signatured_type_table_from_index): Add 'section'
4845 (dwarf2_read_index): Only allow a single .debug_types section.
4846 (dw2_get_file_names): Use appropriate section.
4847 (read_type_comp_unit_head): Add 'section' argument.
4848 (create_debug_types_hash_table): Loop over all .debug_types
4850 (init_cu_die_reader): Use appropriate section.
4851 (process_psymtab_comp_unit, load_partial_comp_unit)
4852 (load_full_comp_unit, read_die_and_children, find_partial_die)
4853 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4854 (lookup_signatured_type_at_offset): Add 'section' argument.
4855 (read_signatured_type_at_offset): Add 'sect' argument.
4856 (read_signatured_type): Use appropriate section.
4857 (set_die_type, get_die_type_at_offset): Update.
4858 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4860 (write_psymtabs_to_index): Don't allow index with more than one
4861 .debug_types section.
4863 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 Fix crash if referenced CU is aged out.
4866 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4867 xfree of block.data.
4868 (indirect_pieced_value): New variable back_to, use to for xfree of
4870 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4872 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4873 (load_cu): New function from ...
4874 (dw2_do_instantiate_symtab): ... the code here ...
4875 (process_full_comp_unit): ... and here.
4876 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4879 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4881 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4884 2011-07-19 Gary Benson <gbenson@redhat.com>
4886 * infrun.c (struct execution_control_state): New member
4887 stop_func_filled_in.
4888 (clear_stop_func, fill_in_stop_func): New functions.
4889 (handle_inferior_event): Call clear_stop_func rather than
4890 manipulating the execution control state directly.
4891 Call fill_in_stop_func lazily as required rather than
4892 directly calling find_pc_partial_function in all cases.
4894 2011-07-18 Tom Tromey <tromey@redhat.com>
4896 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4897 checking for variable-sized array.
4899 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4901 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4902 of supported languages.
4903 * varobj.c: Add top definitions and basic implementation of the
4904 following callbacks: ada_number_of_children, ada_name_of_variable,
4905 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4906 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4907 (languages): Register Ada-specific callbacks.
4908 (variable_language): Add the Ada case in the language setter switch.
4910 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4912 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4914 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4917 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4918 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4919 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4920 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4921 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4922 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4923 (struct dwarf_expr_context_funcs): New, move here methods from ...
4924 (struct dwarf_expr_context): ... here. New fields funcs.
4925 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4926 (dwarf_expr_ctx_funcs): New.
4927 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4928 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4929 (needs_frame_ctx_funcs): New.
4930 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4932 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4934 * MAINTAINERS (Write After Approval): Add myself to the list.
4936 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4938 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4939 that CIE pointer of an FDE really points to a CIE .
4941 2011-07-15 Hui Zhu <teawater@gmail.com>
4943 * remote.c (remote_get_trace_status): Add comments.
4945 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4947 Code cleanup - constify struct lval_funcs.
4948 * dwarf2loc.c (pieced_value_funcs): Make it const.
4949 * infrun.c (siginfo_value_funcs): Likewise.
4950 * opencl-lang.c (opencl_value_funcs): Likewise.
4951 * valops.c (value_assign, value_ind): Make the funcs variable const.
4952 * value.c (struct value): Make location.computed.funcs target const.
4953 Rearrange the comments.
4954 (allocate_computed_value): Make the funcs parameter target const.
4955 (value_computed_funcs): Return the funcs target const.
4956 (value_free, value_copy, set_value_component_location): Make the funcs
4958 * value.h (allocate_computed_value): Make the funcs parameter target
4960 (value_computed_funcs): Return the funcs target const.
4961 * windows-tdep.c (tlb_value_funcs): Make it const.
4963 2011-07-14 Hui Zhu <teawater@gmail.com>
4965 * remote.c (remote_get_trace_status): Initialize p.
4967 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4970 * remote.c (remote_get_trace_status): New variable ex. Put
4971 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4973 2011-07-13 Tom Tromey <tromey@redhat.com>
4975 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4976 value_from_contents for final conversion.
4978 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4981 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4982 Indent prototypes so they do not get into tags.
4984 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4986 Code cleanup making also optimized out values lazy.
4987 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4988 allocate_optimized_out_value. Twice.
4989 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4990 * findvar.c (read_var_value): Likewise.
4991 * value.c (allocate_optimized_out_value): New function.
4992 * value.h (allocate_optimized_out_value): New declaration.
4994 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4996 Fix occasional crash of CTRL-C during DWARF read in.
4997 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4999 2011-07-11 Tom Tromey <tromey@redhat.com>
5001 * regcache.c (struct regcache_descr): Fix typo.
5002 * i387-tdep.c (i387_supply_xsave): Fix typo.
5004 2011-07-11 Tom Tromey <tromey@redhat.com>
5006 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5007 (read_file_scope, read_type_unit_scope): Use it.
5009 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5011 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5014 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5017 * python/python.c: Set gdbpy_should_print_stack default to off.
5018 (set_python): Deprecate maint set python print-stack to
5020 (_initialize_python): Deprecate maint set/show python print-stack.
5021 Add new prefix command, python. Add new setting, print-backtrace.
5022 * NEWS: Document set python print-stack. Document default change.
5024 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5026 * python/py-inferior.c (infpy_dealloc): New function.
5027 (inferior_to_inferior_object): Return a new object, or a
5028 new reference to the existing object.
5029 (find_thread_object): Cleanup references to inferior.
5030 (delete_thread_object): Ditto.
5031 * python/py-infthread.c (create_thread_object): Do not increment
5032 inferior reference count.
5034 2011-07-08 Tom Tromey <tromey@redhat.com>
5036 * dwarf2loc.c (locexpr_regname): New function.
5037 (locexpr_describe_location_piece): Use it.
5038 (disassemble_dwarf_expression): Add per_cu argument. Use
5040 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5041 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5043 (locexpr_describe_location_1): Add per_cu argument.
5044 (locexpr_describe_location): Update.
5045 (loclist_describe_location): Update.
5047 2011-07-08 Tom Tromey <tromey@redhat.com>
5049 * dwarf2expr.c (execute_stack_op): Add QUIT.
5051 2011-07-07 Hui Zhu <teawater@gmail.com>
5054 2011-07-06 Hui Zhu <teawater@gmail.com>
5055 * remote.c (remote_start_remote): Add TRY_CATCH for
5056 remote_get_trace_status.
5057 * tracepoint.c (disconnect_tracing): Ditto.
5059 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5061 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5062 variables as signed, not unsigned.
5064 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5066 * jit.c (jit_inferior_init): Reformat forward declaration.
5068 2011-07-06 Matt Rice <ratmice@gmail.com>
5070 * MAINTAINERS (Write After Approval): Add myself to the list.
5072 2011-07-06 Hui Zhu <teawater@gmail.com>
5074 * remote.c (remote_start_remote): Add TRY_CATCH for
5075 remote_get_trace_status.
5076 * tracepoint.c (disconnect_tracing): Ditto.
5078 2011-07-05 Tom Tromey <tromey@redhat.com>
5080 * symtab.c (operator_chars): Now static.
5081 * linespec.c (operator_chars): Don't declare.
5083 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5085 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5087 2011-07-05 Tom Tromey <tromey@redhat.com>
5089 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5090 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5091 (TYPE_CPLUS_REALLY_JAVA): New macro.
5092 * dwarf2read.c (process_structure_scope): Set
5093 TYPE_CPLUS_REALLY_JAVA.
5095 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5097 * ada-lang.c: Fix typos.
5098 * amd64-tdep.c: Likewise.
5099 * breakpoint.c: Likewise.
5100 * cli/cli-decode.c: Likewise.
5101 * findcmd.c: Likewise.
5102 * inline-frame.c: Likewise.
5103 * mi/mi-main.c: Likewise.
5104 * minsyms.c: Likewise.
5105 * monitor.c: Likewise.
5106 * monitor.h: Likewise.
5107 * prologue-value.c: Likewise.
5108 * reverse.c: Likewise.
5109 * s390-tdep.c: Likewise.
5111 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5113 * jit.c (jit_inferior_init): Forward declare.
5114 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5116 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5118 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5120 2011-07-04 Tristan Gingold <gingold@adacore.com>
5122 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5123 (tcb_fieldno): Add activation_link field.
5124 (get_known_tasks_addr): Moved and rewritten.
5125 (get_tcb_types_info): Set activation_link field.
5126 (read_known_tasks_array): Add parameter. Rewritten.
5127 (read_known_tasks_list): New function.
5128 (read_known_tasks): New function.
5129 (ada_build_task_list): Call read_known_tasks instead of
5130 read_known_tasks_array.
5131 * ravenscar-thread.c: Add first_task_name constant.
5132 (has_ravenscar_runtime): Check for task list too.
5134 2011-07-04 Tristan Gingold <gingold@adacore.com>
5136 * ada-tasks.c: Renames fieldno to actb_fieldno.
5137 (ada_get_task_number): Indentation.
5138 (get_tcb_types_info): Remove all parameters. Write directly
5140 (ptid_from_atcb_common): Adjust.
5141 (read_atcb): Adjust.
5143 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5145 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5147 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5149 * ui-out.c (ui_out_field_core_addr): Mention that the function
5150 description is in the header file.
5151 * ui-out.h (ui_out_field_core_addr): Document function.
5153 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5155 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5156 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5158 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5160 * symtab.c (expand_line_sal): Remove empty line.
5162 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5164 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5165 same way as ELFOSABI_NONE.
5166 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5168 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5170 * breakpoint.c: Fix typos in comments.
5171 * linespec.c: Likewise.
5172 * symtab.c: Likewise.
5174 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5176 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5177 section in separate object files.
5179 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5181 Fix false GCC warning.
5182 * linespec.c (decode_line_1): Initialize values.
5184 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5186 * linespec.c (find_method): Accept the function type automatically only
5187 if it was specified with parameter types.
5189 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5191 Stop on first linespec terminator instead of eating what we can.
5192 * linespec.c (is_linespec_boundary): New function.
5193 (name_end): Remove function.
5194 (keep_name_info): New parameter on_boundary, replace the body.
5195 (decode_line_1): Provide the parameter to keep_name_info.
5196 (decode_compound): Likewise. Drop the trailing java return type
5199 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5201 Fall back linespec to minimal symbols.
5202 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5203 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5204 (find_method, symbol_found): Change error to cplusplus_error.
5206 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5210 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 Tom Tromey <tromey@redhat.com>
5213 * dwarf2read.c (check_physname): New variable.
5214 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5215 (show_check_physname): New function.
5216 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5218 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5220 * machoread.c (macho_symfile_read): Delete OBE comment.
5222 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5224 * machoread.c (struct macho_oso_data): Delete.
5225 (current_oso): Delete.
5226 (macho_relocate_common_syms): New function, mostly extracted
5228 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5229 Remove code that sets and unset current_oso.
5230 (macho_symfile_relocate): Delete handling of common symbols,
5231 now moved to macho_relocate_common_syms.
5233 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5235 * darwin-nat.c (darwin_ptrace): Add documentation.
5236 Set errno to zero before calling ptrace. If ptrace returns
5237 -1 and errno is zero, then change then return zero.
5238 (darwin_kill_inferior): Issue a warning instead of triggering
5239 a failed assertion when the PT_KILL ptrace operations returned
5242 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5244 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5245 only when inf->private->no_ptrace.
5247 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5249 * ada-lang.c (print_it_exception): Print temporary catchpoints
5250 as "Temporary catchpoint".
5251 (print_mention_exception): Likewise.
5253 2011-07-01 Tom Tromey <tromey@redhat.com>
5255 * jv-lang.c (java_language_defn): Use java_printchar,
5257 (java_get_encoding): New function.
5258 (java_emit_char): Use generic_emit_char.
5259 (java_printchar): New function.
5260 (java_printstr): Likewise.
5262 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5264 * ada-typeprint.c (print_record_type): If unable to decode
5265 the name of the parent type, use the encoded name.
5267 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5269 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5270 pointer to constrained packed array type output.
5271 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5272 packed array output.
5274 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5276 * ada-typeprint.c (print_array_type): removed if condition on show
5277 being negative for bounds printing.
5279 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5281 * ada-lang.c (ada_identical_enum_types_p): New function.
5282 (symbols_are_identical_enums): New function.
5283 (remove_extra_symbols): Do nothing if NSYMS < 2.
5284 Use symbols_are_identical_enums.
5286 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5288 * ada-valprint.c (ada_value_print): Handle typedefs.
5290 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5292 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5294 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5296 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5297 (decode_constrained_packed_array): Likewise.
5298 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5300 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5302 * ada-exp.y (convert_char_literal): Handle typedef types.
5304 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5306 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5308 2011-06-30 Tom Tromey <tromey@redhat.com>
5310 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5311 * valops.c (find_overload_match): Call do_cleanups on early exit
5313 * solib.c (solib_find): Call do_cleanups on early exit path.
5315 2011-06-30 Tom Tromey <tromey@redhat.com>
5317 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5318 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5319 return paths. Defer final do_cleanups until last return.
5320 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5323 2011-06-30 Tom Tromey <tromey@redhat.com>
5325 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5327 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5329 * MAINTAINERS (Write After Approval): Add myself to the list.
5331 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 Disable epilogue unwinders on recent GCCs.
5334 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5335 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5336 * dwarf2read.c (process_full_comp_unit): Initialize
5337 EPILOGUE_UNWIND_VALID.
5338 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5339 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5340 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5342 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5344 Code cleanup - reformatting.
5345 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5346 (producer_is_gcc_ge_4): ... here, change the return value.
5347 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5350 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5352 Fix non-only rename list for Fortran modules import.
5353 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5354 cp_add_using_directive caller.
5355 (cp_add_using_directive): New parameter excludes, describe it. New
5356 variables ix and param. Compare if also excludes match. Allocate NEW
5357 with variable size, initialize EXCLUDES there.
5358 (cp_lookup_symbol_imports): New variable excludep, test
5359 current->EXCLUDES with it.
5360 * cp-support.h: Include vec.h.
5361 (struct using_direct): New field excludes, describe it.
5362 (DEF_VEC_P (const_char_ptr)): New.
5363 (cp_add_using_directive): New parameter excludes.
5364 * defs.h (const_char_ptr): New typedef.
5365 * dwarf2read.c (read_import_statement): New variables child_die,
5366 excludes and cleanups, read in excludes.
5367 (read_namespace): Adjust the cp_add_using_directive caller.
5369 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5372 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5373 negative comparisons.
5375 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5377 * mi/mi-main.c (mi_cmd_list_features): Emit
5378 breakpoint-notifications.
5380 2011-06-29 Tom Tromey <tromey@redhat.com>
5383 * valprint.h (generic_emit_char, generic_printstr): Declare.
5384 * valprint.c (wchar_printable, append_string_as_wide)
5385 (print_wchar): Move from c-lang.c.
5386 (generic_emit_char): New function; mostly taken from c_emit_char.
5387 (generic_printstr): New function; mostly taken from c_printstr.
5388 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5389 represented as arrays.
5390 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5392 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5393 identically to TYPE_CODE_INT.
5394 * f-lang.c (f_get_encoding): New function.
5395 (f_emit_char): Use generic_emit_char.
5396 (f_printchar): Replace comment.
5397 (f_printstr): Use generic_printstr.
5398 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5399 "character" types specially.
5400 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5402 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5404 (c_emit_char): Call generic_emit_char.
5405 (c_printstr): Call generic_printstr.
5407 2011-06-29 Gary Benson <gbenson@redhat.com>
5409 * breakpoint.c (bpstat_what): Removed duplicated case.
5411 2011-06-28 Tom Tromey <tromey@redhat.com>
5413 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5415 2011-06-27 Tom Tromey <tromey@redhat.com>
5417 * valops.c (find_overload_match): Call do_cleanups before early
5419 * top.c (execute_command): Call do_cleanups before early return.
5420 (command_loop): Likewise.
5421 * stack.c (backtrace_command): Make a null cleanup early. Don't
5422 conditionally call do_cleanups.
5423 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5425 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5426 so cleanups are always run.
5427 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5428 * findcmd.c (parse_find_args): Call do_cleanups on early return
5430 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5431 Don't conditionally call do_cleanups.
5432 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5435 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5437 * MAINTAINERS (Write After Approval): Use default email address.
5439 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5441 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5443 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5445 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5446 saved_regs_mask and copied_regs_mask fields.
5447 (sparc_record_save_insn): New prototype.
5448 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5449 (sparc_record_save_insn): New function.
5450 (sparc_analyze_prologue): Add head comment. Recognize store insns
5451 of call-saved registers. Use OFFSET consistently. Recognize flat
5452 frames and cache their settings.
5453 (sparc32_skip_prologue): Handle flat frames.
5454 (sparc_frame_cache): Add frame_offset to the base address.
5455 (sparc32_frame_cache): Adjust to new frame description.
5456 (sparc32_frame_prev_register): Likewise.
5457 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5458 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5459 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5460 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5461 frame by calling sparc_record_save_insn.
5462 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5463 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5464 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5466 2011-06-27 Tristan Gingold <gingold@adacore.com>
5468 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5469 field by map_addr and map_len.
5470 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5471 (munmap_section_buffer): Likewise.
5473 2011-06-24 Tom Tromey <tromey@redhat.com>
5475 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5476 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5477 * python/python.c (gdbpy_parameter): Make 'arg' const.
5478 (execute_gdb_command): Likewise.
5479 (gdbpy_decode_line): Likewise. Copy it.
5480 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5481 (gdbpy_write): Make 'arg' const.
5482 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5484 (gdbpy_lookup_type): Likewise.
5485 * python/py-prettyprint.c (print_children): Make 'name' const.
5486 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5487 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5489 * python/py-function.c (fnpy_init): Make 'name' const.
5490 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5491 (gdbpy_string_to_argv): Make 'input' const.
5492 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5494 * gdbtypes.h (lookup_typename): Update.
5495 * gdbtypes.c (lookup_typename): Make 'name' const.
5496 (lookup_struct): Likewise.
5497 (lookup_union): Likewise.
5498 (lookup_enum): Likewise.
5500 2011-06-24 Tom Tromey <tromey@redhat.com>
5502 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5503 gdb_thread_db.h. Move all common/ entries to be together.
5504 (TAGS): Don't depend on DEPFILES.
5506 2011-06-23 Yao Qi <yao@codesourcery.com>
5508 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5509 * remote.c (remote_start_remote): ... here.
5510 * monitor.c (monitor_open): ... here.
5512 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5514 * gdbtypes.c (append_composite_type_field_aligned): Fix
5515 calculation of bit position based on alignment.
5517 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5519 * breakpoint.c (bpstat_stop_status): Call the check_status
5520 breakpoint_ops method.
5521 (print_one_breakpoint_location): Also print the condition for Ada
5522 exception catchpoints.
5523 (allocate_bp_location): New, factored out from
5524 allocate_bp_location.
5525 (allocate_bp_location): Adjust. Call the owner breakpoint's
5526 allocate_location method, if there is one.
5527 (free_bp_location): Call the locations's dtor method, if there is
5529 (init_raw_breakpoint_without_location): New breakpoint_ops
5531 (set_raw_breakpoint_without_location): Adjust.
5532 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5533 (set_raw_breakpoint): Adjust.
5534 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5535 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5536 re_set and check_status methods.
5537 (init_catchpoint): Don't memset, initialize thread, addr_string
5538 and enable_state. Pass the ops down to init_raw_breakpoint.
5539 (install_catchpoint): Rename to ...
5540 (install_breakpoint): ... this, and make extern.
5541 (create_fork_vfork_event_catchpoint): Adjust.
5542 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5543 re_set and check_status methods.
5544 (create_syscall_event_catchpoint): Adjust.
5545 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5546 (masked_watchpoint_breakpoint_ops): Install NULL
5547 allocate_location, re_set and check_status methods.
5548 (catch_exec_command_1): Adjust.
5549 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5550 re_set and check_status methods.
5551 (create_ada_exception_breakpoint): Rename to ...
5552 (init_ada_exception_breakpoint): ... this. Add a struct
5553 breakpoint parameter, and delete the exp_string, cond_string and
5554 cond parameters. Use init_raw_breakpoint, and don't install or
5555 mention the breakpoint yet. Don't clear breakpoint fields that
5556 init_raw_breakpoint already clears.
5557 (re_set_breakpoint): Delete, split into ...
5558 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5560 (breakpoint_re_set_one): Call the breakpoint's
5561 breakpoint_ops->re_set implementation, if there's one. Adjust.
5562 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5563 (struct bp_location_ops): New type.
5564 (struct bp_location): New field `ops'.
5565 (struct breakpoint_ops): New `allocate_location', `re_set' and
5566 `check_status' fields. Make `breakpoint_hit''s description match
5568 (init_bp_location): Declare.
5569 (breakpoint_re_set_default): Declare.
5570 (create_ada_exception_breakpoint): Rename to ...
5571 (init_ada_exception_breakpoint): ... this. Add a struct
5572 breakpoint parameter, and delete the exp_string, cond_string and
5574 (install_breakpoint): Declare.
5575 * ada-lang.c: Include exceptions.h.
5576 <Ada exceptions description>: Update.
5577 (struct ada_catchpoint_location): New type.
5578 (ada_catchpoint_location_dtor): New function.
5579 (ada_catchpoint_location_ops): New global.
5580 (ada_catchpoint): New type.
5581 (create_excep_cond_exprs): New function.
5582 (dtor_exception, allocate_location_exception, re_set_exception)
5583 (should_stop_exception, check_status_exception): New functions.
5584 (print_one_exception, print_mention_exception)
5585 (print_recreate_exception): Adjust.
5586 (dtor_catch_exception, allocate_location_catch_exception)
5587 (re_set_catch_exception, check_status_catch_exception): New
5589 (catch_exception_breakpoint_ops): Install them.
5590 (dtor_catch_exception_unhandled)
5591 (allocate_location_catch_exception_unhandled)
5592 (re_set_catch_exception_unhandled)
5593 (check_status_catch_exception_unhandled): New functions.
5594 (catch_exception_unhandled_breakpoint_ops): Install them.
5595 (dtor_catch_assert, allocate_location_catch_assert)
5596 (re_set_catch_assert, check_status_catch_assert): New functions.
5597 (catch_assert_breakpoint_ops): Install them.
5598 (ada_exception_catchpoint_p): Delete.
5599 (catch_ada_exception_command_split)
5600 (ada_exception_catchpoint_cond_string): Rename exp_string
5601 parameter to excep_string. Adjust.
5602 (ada_parse_catchpoint_condition): Delete.
5603 (ada_exception_sal): Rename the exp_string parameter to
5604 excep_string. Delete the cond_string and cond parameters.
5606 (ada_decode_exception_location): Rename the exp_string parameter
5607 to excep_string. Delete the cond_string and cond parameters.
5609 (create_ada_exception_catchpoint): New function.
5610 (catch_ada_exception_command, ada_decode_assert_location)
5611 (catch_assert_command): Adjust.
5612 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5614 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5616 * ada-lang.c: Include arch-utils.h.
5617 (ada_decode_exception_location): Make static.
5618 (catch_ada_exception_command): Moved here from breakpoint.c.
5619 (ada_decode_assert_location): Make static.
5620 (catch_assert_command): Moved here from breakpoint.c.
5621 (_initialize_ada_lang): Install the exception and assert
5622 catchpoint commands here.
5623 * ada-lang.h (ada_decode_exception_location)
5624 (ada_decode_assert_location): Delete declarations.
5625 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5627 (create_ada_exception_breakpoint): Make extern.
5628 (catch_ada_exception_command, catch_assert_command): Moved to
5630 (add_catch_command): Make extern.
5631 (_initilize_breakpoint): Don't install the exception and assert
5632 catchpoint commands here.
5633 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5635 (add_catch_command, create_ada_exception_breakpoint): Declare.
5637 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5639 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5640 the breakpoint to the breakpoint chain here.
5641 (set_raw_breakpoint_without_location): Add the breakpoint to the
5642 breakpoint chain here.
5643 (init_raw_breakpoint): Adjust comments.
5644 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5646 (init_catchpoint): Don't set the catchpoint's breakpoint number
5648 (install_catchpoint): New function.
5649 (create_fork_vfork_event_catchpoint)
5650 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5651 use install_catchpoint.
5653 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5655 * breakpoint.c (create_catchpoint_without_mention)
5656 (create_catchpoint): Delete.
5658 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5660 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5661 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5662 reference to exec_pathname.
5663 (struct exec_catchpoint): New type.
5664 (dtor_catch_exec): New function.
5665 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5666 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5667 (catch_exec_command_1): Adjust to use init_catchpoint.
5668 (delete_breakpoint): Remove reference to exec_pathname.
5670 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5672 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5673 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5674 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5675 reference to syscalls_to_be_caught.
5676 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5678 (struct syscall_catchpoint): New type.
5679 (dtor_catch_syscall): New function.
5680 (insert_catch_syscall, remove_catch_syscall)
5681 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5682 (print_recreate_catch_syscall): Adjust.
5683 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5684 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5685 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5686 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5687 (masked_watchpoint_breakpoint_ops)
5688 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5689 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5690 there is one. Remove references to syscalls_to_be_caught.
5691 (catching_syscall_number): Adjust.
5692 * ada-lang.c (catch_exception_breakpoint_ops)
5693 (catch_exception_unhandled_breakpoint_ops)
5694 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5696 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5698 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5700 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5701 reference to forked_inferior_pid.
5702 (struct fork_catchpoint): New type.
5703 (breakpoint_hit_catch_fork, print_it_catch_fork)
5704 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5705 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5706 (create_fork_vfork_event_catchpoint): Adjust to use
5709 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5711 * breakpoint.c (add_to_breakpoint_chain)
5712 (init_raw_breakpoint_without_location): New functions, factored
5714 (set_raw_breakpoint_without_location): ... this one.
5715 (init_raw_breakpoint): New function, factored out from
5716 set_raw_breakpoint and adjusted to use
5717 init_raw_breakpoint_without_location.
5718 (set_raw_breakpoint): Adjust.
5719 (init_catchpoint): New function, factored out from
5720 create_catchpoint_without_mention and adjusted to use
5721 init_raw_breakpoint.
5722 (create_catchpoint_without_mention): Adjust.
5724 2011-06-22 Tom Tromey <tromey@redhat.com>
5726 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5727 argument of 0 specially.
5729 2011-06-22 Yao Qi <yao@codesourcery.com>
5731 * infrun.c (handle_inferior_event): Remove write-only local variable
5732 `sw_single_step_trap_p'.
5734 2011-06-20 Tom Tromey <tromey@redhat.com>
5736 * symtab.c (lookup_language_this): End loop if block is NULL.
5738 2011-06-17 Tom Tromey <tromey@redhat.com>
5740 * valops.c (value_of_this): Use lookup_language_this.
5741 * symtab.h (lookup_language_this): Declare.
5742 * symtab.c (lookup_language_this): New function.
5743 (lookup_symbol_aux): Use lookup_language_this.
5744 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5746 2011-06-17 Tom Tromey <tromey@redhat.com>
5748 * value.h (value_of_this): Update.
5749 (value_of_local): Remove.
5750 * valops.c (value_of_this): Rename from value_of_local. Change
5752 * p-exp.y (exp): Update.
5753 (variable): Likewise.
5754 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5756 2011-06-17 Tom Tromey <tromey@redhat.com>
5758 * valops.c (value_of_local): Complain if NAME is NULL.
5759 * std-operator.def (OP_OBJC_SELF): Remove.
5760 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5761 * objc-exp.y (name_not_typename): Use OP_THIS.
5762 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5764 <OP_OBJC_SELF>: Remove.
5765 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5767 2011-06-16 Tristan Gingold <gingold@adacore.com>
5769 * python/py-events.h (gdb_py_events): Make it extern.
5770 * python/py-evtregistry.c (gdb_py_events): Declare.
5772 2011-06-16 Hui Zhu <teawater@gmail.com>
5774 * remote.c (remote_trace_set_readonly_regions): Add check for
5775 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5778 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5780 * arm-linux-tdep.c: Include "auxv.h".
5782 (ARM_LINUX_SIZEOF_VFP): Define.
5783 (arm_linux_supply_vfp): New function.
5784 (arm_linux_collect_vfp): Likewise.
5785 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5786 (arm_linux_fpa_regset_sections): New variable.
5787 (arm_linux_vfp_regset_sections): Likewise.
5788 (arm_linux_core_read_description): New function.
5789 (arm_linux_init_abi): Install arm_linux_core_read_description and
5790 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5791 appropriate for the architecture.
5792 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5793 (tdesc_arm_with_m): Declare.
5794 (tdesc_arm_with_iwmmxt): Likewise.
5795 (tdesc_arm_with_vfpv2): Likewise.
5796 (tdesc_arm_with_vfpv3): Likewise.
5797 (tdesc_arm_with_neon): Likewise.
5798 * arm-linux-nat.c: Move features/*.c includes ...
5799 * arm-tdep.c: ... here.
5800 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5801 target description data structures ...
5802 * arm-tdep.c (_initialize_arm_tdep): ... here.
5803 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5804 HWCAP_VFPv3D16): Move definitions ...
5805 * arm-linux-tdep.h: ... here.
5807 2011-06-15 Hui Zhu <teawater@gmail.com>
5809 * remote.c (remote_trace_set_readonly_regions): Add a check for
5812 2011-06-14 Tom Tromey <tromey@redhat.com>
5814 * coffread.c (coffread_objfile): Rename from current_objfile.
5815 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5816 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5818 2011-06-14 Tom Tromey <tromey@redhat.com>
5820 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5821 (class_symtab): Remove.
5822 (jv_dynamics_progspace_key): New global.
5823 (jv_per_objfile_free): Reset program space data. Update assert.
5824 Don't clear globals.
5825 (get_dynamics_objfile): Use and set program space data.
5826 (get_java_class_symtab): Use get_dynamics_objfile.
5827 (add_class_symbol): Likewise.
5828 (java_link_class_type): Likewise.
5829 (java_object_type, jv_clear_object_type, set_java_object_type):
5831 (get_java_object_type): Update. Don't cache result.
5832 (is_object_type): Don't call set_java_object_type.
5833 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5834 initialize jv_dynamics_progspace_key.
5836 2011-06-14 Tom Tromey <tromey@redhat.com>
5838 * symtab.h (current_objfile): Don't declare.
5839 * objfiles.h (current_objfile): Don't declare.
5840 * objfiles.c (current_objfile): Remove.
5841 * mdebugread.c (current_objfile): New file-scope global.
5842 * dbxread.c (current_objfile): New file-scope global.
5843 * coffread.c (current_objfile): New file-scope global.
5845 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5847 * top.h (line): Rename to ...
5848 (saved_command_line): ... this.
5849 (linesize): Rename to ...
5850 (saved_command_line_size): ... this.
5851 * top.c (line): Rename to ...
5852 (saved_command_line): ... this.
5853 (linesize): Rename to ...
5854 (saved_command_line_size): ... this.
5855 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5856 * event-top.c (command_line_handler): Adjust.
5857 * main.c (captured_main): Adjust.
5859 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5861 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5862 get_frame_func instead of get_frame_pc to determine the code
5863 address used to construct the frame ID.
5864 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5865 (i386_epilogue_frame_this_id): Likewise.
5866 (i386_epilogue_frame_prev_register): New function.
5867 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5868 (i386_stack_tramp_frame_sniffer): Fix coding style.
5869 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5870 (i386_gdbarch_init): Fix comments.
5872 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5874 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5875 instruction when walking back through the instruction stream.
5877 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5879 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5880 fullname parameters order.
5882 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5885 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5887 * psymtab.c (map_symbol_filenames_psymtab)
5888 (map_partial_symbol_filenames): Likewise.
5889 * psymtab.h: Include symfile.h.
5890 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5891 * symfile.h (symbol_filename_ftype): New.
5892 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5893 map_symbol_filenames, clarify more the naming in comment.
5895 2011-06-07 Doug Evans <dje@google.com>
5897 * cc-with-index.sh: Fix typos in comment.
5898 Look for ../../gdb, for fullname.exp.
5900 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 Pedro Alves <pedro@codesourcery.com>
5903 * cli/cli-cmds.c (shell_escape): Use waitpid.
5904 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5906 2011-06-07 Tristan Gingold <gingold@adacore.com>
5908 * xcoffread.c (dwarf2_xcoff_names): New variable.
5909 (aix_process_linenos): Add a guard.
5910 (xcoff_symfile_finish): Free dwarf2.
5911 (xcoff_initial_scan): Add dwarf2 support.
5913 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5915 * infcall.c (run_inferior_call): Don't mask async. Instead force
5916 a synchronous wait, if the target can async.
5918 * target.h (struct target_ops): Delete to_async_mask.
5919 (target_async_mask): Delete.
5920 * target.c (update_current_target): Delete references to to_async_mask.
5921 * linux-nat.c (linux_nat_async_mask_value): Delete.
5922 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5923 to linux_nat_async_mask_value.
5924 (linux_nat_async_mask): Delete.
5925 (linux_nat_async, linux_nat_close): Remove references to
5926 linux_nat_async_mask_value.
5927 * record.c (record_async_mask_value): Delete.
5928 (record_async): Remove references to record_async_mask_value.
5929 (record_async_mask): Delete.
5930 (record_can_async_p, record_is_async_p): Remove references to
5931 record_async_mask_value.
5932 (init_record_ops, init_record_core_ops): Remove references to
5934 * remote.c (remote_async_mask_value): Delete.
5935 (init_remote_ops): Remove reference to remote_async_mask.
5936 (remote_can_async_p, remote_is_async_p): Remove references to
5937 remote_async_mask_value.
5938 (remote_async): Remove references to remote_async_mask_value.
5939 (remote_async_mask): Delete.
5941 * infrun.c (fetch_inferior_event): Don't claim registers changed
5942 if the current thread is already not executing.
5944 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5946 From Stephen Kitt <steve@sk2.org>
5947 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5948 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5950 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5952 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5953 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5955 2011-06-03 Tom Tromey <tromey@redhat.com>
5957 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5959 * python/py-exitedevent.c (create_exited_event_object): Change
5960 type of 'exit_code'. Optionally add exit_code attribute.
5961 (emit_exited_event): Change type of 'exit_code'.
5962 * python/py-event.h (emit_exited_event): Update.
5963 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5964 * infrun.c (handle_inferior_event): Set exit code fields on
5966 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5968 * inferior.c (exit_inferior_1): Initialize new fields.
5970 2011-06-03 Tom Tromey <tromey@redhat.com>
5972 * dwarf2expr.c (get_signed_type): New function.
5973 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5975 2011-06-02 Keith Seitz <keiths@redhat.com>
5977 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5979 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5981 * top.h (simplified_command_loop): Delete declaration.
5983 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5985 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5986 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5988 2011-06-01 Yao Qi <yao@codesourcery.com>
5990 * objfiles.h (obj_section_addr): Update reference to objfile from
5992 (obj_section_endaddr): Likewise.
5994 2011-06-01 Daniel Jacobowitz <drow@false.org>
5996 * MAINTAINERS: Update my email address and affiliation. Also
5997 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5999 2010-05-31 Keith Seitz <keiths@redhat.com>
6002 * linespec.c (get_search_block): New function.
6003 (find_methods): Add FILE_SYMTATB parameter and use it and
6004 get_search_block to pass an appropriate block to
6005 lookup_symbol_in_namespace.
6006 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6007 Check if *ARGPTR starts with a filename first.
6008 If it does, call locate_first_half again to locate the next
6009 "first half" of the linespec.
6010 Pass FILE_SYMTATB to decode_objc and decode_compound.
6011 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6012 (locate_first_half): Stop on the first colon seen.
6013 (decode_compound): Add FILE_SYMTAB parameter.
6014 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6015 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6016 get_search_block with lookup_symbol.
6017 (find_method): Add FILE_SYMTAB parameter and pass it to
6019 (decode_objc): Use get_search_block.
6021 2010-05-31 Keith Seitz <keiths@redhat.com>
6024 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6025 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6026 and CP_ANONYMOUS_NAMESPACE_LEN.
6027 (cp_is_anonymous): Likewise.
6028 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6029 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6030 * dwarf2read.c (namespace_name): Likewise.
6031 (fixup_partial_die): Likewise.
6032 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6033 seen in the input, keep it.
6035 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6037 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6038 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6039 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6040 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6041 * remote.c (_initialize_remote): Register
6042 async_remote_interrupt_twice directly as
6043 sigint_remote_twice_token event.
6045 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6047 * target.h (enum inferior_event_type): Delete INF_ERROR.
6048 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6050 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6052 * interps.c (interp_set): Don't cancel continuations.
6054 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6056 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6058 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6060 * continuations.h (continuation_ftype): Add `err' parameter.
6061 Document parameters.
6062 (do_all_continuations, do_all_continuations_thread)
6063 (do_all_intermediate_continuations)
6064 (do_all_intermediate_continuations_thread)
6065 (do_all_inferior_continuations): Add `err' parameter.
6066 * continuations.c (do_my_continuations_1, do_my_continuations)
6067 (do_all_inferior_continuations, do_all_continuations_ptid)
6068 (do_all_continuations_thread_callback)
6069 (do_all_continuations_thread, do_all_continuations)
6070 (do_all_intermediate_continuations_thread_callback)
6071 (do_all_intermediate_continuations_thread)
6072 (do_all_intermediate_continuations): Add `err' parameter, and pass
6073 it down all the way to the continuations proper.
6074 * inf-loop.c (inferior_event_handler): If fetching an inferior
6075 event throws an error, don't pop the target, and still call the
6076 continuations, but with `err' set. Adjust all other continuation
6078 * breakpoint.c (until_break_command_continuation): Add `err'
6080 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6081 issue another step if `err' is set.
6082 (struct until_next_continuation_args): New.
6083 (until_next_continuation): Add `err' parameter. Adjust.
6084 (until_next_command): Adjust.
6085 (struct finish_command_continuation_args): Add `thread' field.
6086 (finish_command_continuation): Add `err' parameter. Handle it.
6087 (finish_forward): Adjust.
6088 (attach_command_continuation): Add `err' parameter. Handle it.
6089 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6090 cancel the continuations.
6091 * interps.c (interp_set): Adjust to cancel the continuations.
6092 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6093 continuations rather than discarding.
6094 (free_thread): Don't clear thread inferior resources here.
6095 (delete_thread_1): Do it here instead. And do it before removing
6096 the thread from the threads list. Tag the thread as exited before
6097 clearing thread inferior resources.
6099 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6101 * infcall.c (call_function_by_hand): Rephrase error message.
6103 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6105 * defs.h (struct thread_info, struct inferior): Delete forward
6107 * breakpoint.h (struct thread_info): New forward declaration.
6108 * observer.sh (struct inferior): New forward declaration.
6109 * python/python-internal.h (struct inferior): New forward
6112 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6114 * defs.h (struct continuation, continuation_ftype)
6115 (continuation_free_arg_ftype, add_continuation)
6116 (do_all_continuations, do_all_continuations_thread)
6117 (discard_all_continuations, discard_all_continuations_thread)
6118 (add_intermediate_continuation, do_all_intermediate_continuations)
6119 (do_all_intermediate_continuations_thread)
6120 (discard_all_intermediate_continuations)
6121 (discard_all_intermediate_continuations_thread)
6122 (add_inferior_continuation, do_all_inferior_continuations)
6123 (discard_all_inferior_continuations): Move to ...
6124 * continuations.h: ... this new file.
6125 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6126 infcmd.c, inferior.c, infrun.c, interps.c: Include
6129 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6130 Doug Evans <dje@google.com>
6132 Fix PR 10970, PR 12702.
6133 * linux-nat.c (linux_lwp_is_zombie): New function.
6134 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6135 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6137 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6139 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6141 (add_continuation, add_intermediate_continuation)
6142 (add_inferior_continuation): Use them.
6143 * continuations.c (struct continuation): Use them.
6144 (make_continuation_ftype): Delete.
6145 (make_continuation, add_inferior_continuation, add_continuation)
6146 (add_intermediate_continuation): Use continuation_ftype and
6147 continuation_free_arg_ftype. Rename parameters to shorter names.
6149 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6151 * continuations.c (make_continuation): Make it return void.
6152 (do_my_continuations): Rename to ...
6153 (do_my_continuations_1): ... this. Remove old_chain parameter and
6155 (do_my_continuations): New.
6156 (discard_my_continuations): Rename to ...
6157 (discard_my_continuations_1): ... this. Remove old_chain
6158 parameter and adjust.
6159 (discard_my_continuations): New.
6160 (add_inferior_continuation): Simplify.
6161 (do_all_inferior_continuations): Reimplement on top
6162 do_my_continuations.
6163 (discard_all_inferior_continuations): Simplify.
6164 (add_continuation): Simplify.
6165 (do_all_continuations_ptid): Simplify.
6166 (discard_all_continuations_thread_callback): Simplify.
6167 (add_intermediate_continuation): Simplify.
6168 (discard_all_intermediate_continuations_thread_callback):
6171 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6173 * utils.c (struct continuation, add_continuation)
6174 (add_inferior_continuation)
6175 (do_all_inferior_continuations, discard_all_inferior_continuations)
6176 (restore_thread_cleanup, do_all_continuations_ptid)
6177 (do_all_continuations_thread_callback)
6178 (do_all_continuations_thread, do_all_continuations)
6179 (discard_all_continuations_thread_callback)
6180 (discard_all_continuations_thread, discard_all_continuations)
6181 (add_intermediate_continuation)
6182 (do_all_intermediate_continuations_thread_callback)
6183 (do_all_intermediate_continuations_thread)
6184 (do_all_intermediate_continuations)
6185 (discard_all_intermediate_continuations_thread_callback)
6186 (discard_all_intermediate_continuations_thread)
6187 (discard_all_intermediate_continuations): Move to ...
6188 * continuations.c: ... this new file, and adjust to no longer
6189 implement continuations on top of cleanups.
6190 * Makefile.in (SFILES): Add continuations.c.
6191 (COMMON_OBS): Add continuations.o.
6193 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6195 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6196 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6197 Internal error on invalid values.
6198 * reverse.c: Don't handle EXEC_ERROR.
6199 * mi/mi-main.c: Don't handle EXEC_ERROR.
6201 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6203 * record.c: Include event-loop.h, inf-loop.h.
6204 (record_beneath_to_async): New global.
6205 (tmp_to_async): New global.
6206 (record_async_inferior_event_token): New global.
6207 (record_open_1): Don't error out if async is enabled.
6208 (record_open): Handle to_async. Create an async event source in
6210 (record_close): Delete the async event source.
6211 (record_resumed): New global.
6212 (record_execution_dir): New global.
6213 (record_resume, record_core_resume): Set them. Register the
6214 target on the event loop.
6215 (record_wait): Rename to ...
6216 (record_wait_1): ... this. Add more debug output. Handle
6217 TARGET_WNOHANG, and the target beneath returning
6218 TARGET_WAITKIND_IGNORE.
6219 (record_wait): Reimplement on top of record_wait_1.
6220 (record_async_mask_value): New global.
6221 (record_async, record_async_mask, record_can_async_p)
6222 (record_is_async_p, record_execution_direction): New functions.
6223 (init_record_ops, init_record_core_ops): Install new methods.
6224 * infrun.c (fetch_inferior_event): Temporarily switch the global
6225 execution direction to the direction the target was going.
6226 (execution_direction): Change type to int.
6227 * target.c (default_execution_direction): New function.
6228 (update_current_target): Inherit and de_fault
6229 to_execution_direction.
6230 * target.h (struct target_ops) <to_execution_direction>: New
6232 (target_execution_direction): New macro.
6233 * inferior.h (execution_direction): Change type to int.
6235 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6237 * infcall.c (call_function_by_hand): Don't allow calling functions
6238 in reverse execution mode.
6240 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6242 * infcmd.c (finish_command): Allow async finish in reverse.
6244 2011-05-26 Yao Qi <yao@codesourcery.com>
6246 * gdb_thread_db.h: Delete. Move to ...
6247 * common/gdb_thread_db.h: ... here.
6249 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6251 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6252 function's entry point instead of a manually managed momentary
6253 breakpoint, and only ever issue one proceed call.
6254 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6255 doing a reverse-finish, switch to stepi mode, to do another step.
6256 (insert_step_resume_breakpoint_at_sal): Make public.
6257 (normal_stop): No need to save function value return registers if
6259 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6261 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6263 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6264 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6265 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6267 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6268 step-resume breakpoints.
6269 (print_it_typical): Handle bp_hp_step_resume.
6270 (bpstat_what): Ditto.
6271 (bptype_string): Ditto.
6272 (print_one_breakpoint_location): Ditto.
6273 (allocate_bp_location): Ditto.
6275 (breakpoint_re_set_one): Ditto.
6276 * infrun.c (handle_inferior_event): Adjust. Split
6277 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6278 BPSTAT_WHAT_HP_STEP_RESUME.
6279 (insert_step_resume_breakpoint_at_sal): Rename to ...
6280 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6281 parameter. Handle it.
6282 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6283 insert_step_resume_breakpoint_at_sal_1.
6284 (insert_step_resume_breakpoint_at_frame): Rename to ...
6285 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6286 set a high-priority step-resume breakpoint.
6287 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6288 (insert_step_resume_breakpoint_at_caller): Ditto.
6290 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6292 * breakpoint.c (iterate_over_related_breakpoints): New.
6293 (do_map_delete_breakpoint): New.
6294 (delete_command): Pass do_map_delete_breakpoint to
6295 map_breakpoint_numbers.
6296 (do_disable_breakpoint): New.
6297 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6299 (do_enable_breakpoint): Rename to ...
6300 (enable_breakpoint_disp): ... this.
6301 (enable_breakpoint): Adjust.
6302 (do_enable_breakpoint): New.
6303 (enable_once_breakpoint): Delete.
6304 (do_map_enable_breakpoint): New.
6305 (do_map_enable_once_breakpoint): New.
6306 (enable_once_command, enable_delete_command)
6307 (delete_trace_command): Iterate over the breakpoint's related
6310 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6312 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6313 for ALPHA_ZERO_REGNUM.
6314 (alpha_supply_int_regs): Explicitly supply zero as the value for
6315 ALPHA_ZERO_REGNUM in the register cache.
6316 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6318 2011-05-26 Yao Qi <yao@codesourcery.com>
6320 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6322 2011-05-26 Tristan Gingold <gingold@adacore.com>
6324 * symfile.h (struct dwarf2_section_names): New type.
6325 (struct dwarf2_debug_sections): New type.
6326 (dwarf2_has_info): Add parameter.
6327 * dwarf2read.c (dwarf2_elf_names): New variable.
6328 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6329 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6330 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6331 (dwarf2_has_info): Add names parameter. Pass names
6332 to dwarf2_locate_sections.
6333 (section_is_p): Rewrite using the names parameter.
6334 (dwarf2_locate_sections): Use section names from the names parameter.
6335 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6336 * elfread.c (read_psyms): Ditto.
6337 * machoread.c (macho_symfile_read): Ditto.
6339 2011-05-25 Andreas Schwab <schwab@redhat.com>
6342 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6344 2011-05-24 Keith Seitz <keiths@redhat.com>
6347 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6348 (decode_compound): Unconditionally call keep_name_info.
6350 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6352 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6353 scope, clear its command list.
6354 (map_breakpoint_numbers): Don't walk the related breakpoints list
6357 2011-05-24 Tom Tromey <tromey@redhat.com>
6359 * MAINTAINERS: Move Jim Blandy to past maintainers.
6361 2011-05-24 Tristan Gingold <gingold@adacore.com>
6363 * symfile.h (enum dwarf2_section_enum): New type.
6364 (dwarf2_get_section_info): New prototype.
6365 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6366 section_name by sect. Use a switch to select the info.
6367 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6368 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6370 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6372 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6373 shared library event breakpoint if there's no execution.
6375 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6377 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6378 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6380 2011-05-23 Tom Tromey <tromey@redhat.com>
6382 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6385 2011-05-23 Doug Evans <dje@google.com>
6387 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6388 entry for RuntimeError to doc string.
6390 2011-05-23 Jerome Guitton <guitton@adacore.com>
6392 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6393 sequence for probing loops.
6395 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6397 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6400 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6402 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6403 zero as the value for %g0 in the register cache.
6404 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6405 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6407 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6409 * infrun.c (proceed): Set previous_inferior_ptid here.
6410 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6411 inferior_ptid, not null_ptid.
6412 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6413 (fetch_inferior_event): Nor here.
6415 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6417 * inf-loop.c (inferior_event_handler): Only output a message if
6420 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6422 * MAINTAINERS: Update my e-mail address.
6424 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6426 * infrun.c (proceed): Switch the inferior event loop to
6427 INF_EXEC_COMPLETE if the target refused to resume from a
6430 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6432 * infcmd.c: Include "inf-loop.h".
6433 (step_once): When stepping into an inline subroutine, pretend the
6434 target has run. If the target can async, switch the inferior
6435 event loop to INF_EXEC_COMPLETE.
6436 * inferior.h (user_visible_resume_ptid): Declare.
6437 * infrun.c (user_visible_resume_ptid): New function, factored out
6440 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6441 that the current thread is running. Merge async and sync
6444 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6446 * infcmd.c (step_1): Simplify synchronous case.
6448 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6450 * tracepoint.c: Include exceptions.h.
6451 (TFILE_PID): Move higher in file.
6452 (tfile_open): Delay pushing the tfile target until we're assured
6453 the tfile header is present in the file. Wrap reading the initial
6454 newline-terminated lines in TRY_CATCH. Pop the target if the
6455 initial setup failed. Add the tfile's thread immediately
6456 aftwards, before any non-essential setup. Don't skip
6457 post_create_inferior if there are no traceframes present in the
6459 (tfile_close): Remove redundant check for null before xfree call.
6460 (tfile_thread_alive): New function.
6461 (init_tfile_ops): Register it as to_thread_alive callback.
6463 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6465 * tracepoint.c (tfile_open): Delete #if 0'd code.
6467 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6469 Fix -readnow for -gdwarf-4 unused type units.
6470 * dwarf2read.c (struct signatured_type): Remove the field offset.
6471 (create_signatured_type_table_from_index): Remove its initialization.
6472 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6473 instead. Add a complaint call.
6474 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6475 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6476 (lookup_signatured_type_at_offset, read_signatured_type)
6477 (write_one_signatured_type): Update the field for per_cu.
6479 2011-05-19 Tom Tromey <tromey@redhat.com>
6481 * python/py-inferior.c (python_inferior_exit): Use
6483 (python_on_resume): Likewise.
6485 2011-05-19 Matt Rice <ratmice@gmail.com>
6487 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6489 2011-05-19 Hui Zhu <teawater@gmail.com>
6491 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6493 2011-05-19 Hui Zhu <teawater@gmail.com>
6495 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6497 2011-05-18 Tom Tromey <tromey@redhat.com>
6499 * dwarf2read.c (dwarf2_add_field): Constify.
6500 * value.c (value_static_field): Constify.
6501 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6503 * ax-gdb.c (gen_static_field): Constify
6505 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 * linux-nat.c (kill_callback): Use SIGKILL first.
6509 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6511 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6513 2011-05-18 Tom Tromey <tromey@redhat.com>
6515 * value.c (value_fn_field): Constify.
6516 * symtab.c (gdb_mangle_name): Constify.
6517 * stabsread.c (update_method_name_from_physname): Make 'physname'
6519 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6520 const. Use explicit fputc_filtered loop.
6521 (pascal_type_print_base): Constify.
6522 * p-lang.h (pascal_type_print_method_args): Update.
6523 * linespec.c (add_matching_methods): Constify.
6524 (add_constructors): Likewise.
6525 * jv-typeprint.c (java_type_print_base): Constify.
6526 * gdbtypes.h (struct cplus_struct_type)
6527 <fn_fieldlist.fn_field.physname>: Now const.
6528 * dwarf2read.c (compute_delayed_physnames): Constify.
6529 (dwarf2_add_member_fn): Likewise.
6530 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6532 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6534 * infrun.c (resume): Mention which is the current thread, and its
6535 current PC in debug output.
6536 (prepare_to_proceed): Mention the thread switching in debug
6539 2011-05-18 Tom Tromey <tromey@redhat.com>
6541 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6542 path check. Use xmalloc and cleanups.
6543 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6545 2011-05-17 Tom Tromey <tromey@redhat.com>
6547 * cp-valprint.c (cp_print_value_fields): Catch errors from
6550 2011-05-17 Tom Tromey <tromey@redhat.com>
6552 * dwarf2read.c (dwarf2_get_die_type): Call
6553 get_die_type_at_offset.
6554 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6555 get_base_type function.
6557 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6559 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6562 2011-05-16 Doug Evans <dje@google.com>
6564 * python/py-auto-load.c (source_section_scripts): Mention objfile
6567 2011-05-15 Doug Evans <dje@google.com>
6569 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6570 (try_thread_db_load_from_pdir): Call it. If unable to find
6571 libthread_db in directory of libpthread, see if we're looking at
6572 the separate-debug-info copy.
6574 * python/py-autoload.c (print_script): Print "Missing" instead of
6575 "No" for missing scripts.
6576 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6578 2011-05-13 Doug Evans <dje@google.com>
6580 * ui-file.c (stdio_file_write_async_safe): Add comment.
6582 2011-05-14 Hui Zhu <teawater@gmail.com>
6584 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6586 2011-05-13 Doug Evans <dje@google.com>
6588 Support $pdir and $sdir in libthread-db-search-path.
6589 * NEWS: Mention $sdir,$pdir.
6590 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6591 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6592 (try_thread_db_load_from_sdir): New function.
6593 (try_thread_db_load_from_dir): New function.
6594 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6595 system directories if search of libthread-db-search-path fails,
6596 that is now done via $sdir.
6597 (has_libpthread): New function.
6598 (thread_db_load): Remove search for libthread_db in directory of
6599 libpthread, that is now done via $pdir.
6601 * NEWS: Mention "info auto-load-scripts".
6602 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6603 script_not_found_warning_printed.
6604 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6605 all callers updated. Initialize script_not_found_warning_printed.
6606 (get_auto_load_pspace_data_for_loading): New function.
6607 (maybe_add_script): New function.
6608 (source_section_scripts): Simplify. Only print one warning regardless
6609 of the number of auto-load scripts not found.
6610 (clear_section_scripts): Clear script_not_found_warning_printed.
6611 (auto_load_objfile_script): Record script in hash table.
6612 (count_matching_scripts): New function.
6613 (maybe_print_script): Renamed from maybe_print_section_script, all
6614 callers updated. Rewrite to use ui_out_*.
6615 (info_auto_load_scripts): Renamed from
6616 maintenance_print_section_scripts, all callers updated.
6617 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6618 renamed as "info auto-load-scripts".
6620 2011-05-13 Tom Tromey <tromey@redhat.com>
6622 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6623 (read_sleb128): Likewise.
6625 2011-05-13 Tom Tromey <tromey@redhat.com>
6627 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6630 2011-05-13 Doug Evans <dje@google.com>
6632 * linux-nat.c (debug_linux_nat_async): Delete.
6633 Replace all references to use debug_linux_nat instead.
6634 (show_debug_linux_nat_async): Delete.
6635 (sigchld_handler): Call ui_file_write_async_safe instead of
6637 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6638 * ui-file.c (struct ui_file): New member to_write_async_safe.
6639 (null_file_write_async_safe): New function.
6640 (ui_file_write_async_safe): New function.
6641 (set_ui_file_write_async_safe): New function.
6642 (ui_file_new): Initialize to_write_async_safe.
6643 (stdio_file_write_async_safe): New function.
6644 (struct stdio_file): New member fd.
6645 (stdio_file_new): Initialize to_write_async_safe, fd.
6646 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6648 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6649 (set_ui_file_write_async_safe): Declare.
6650 (ui_file_write_async_safe): Declare.
6652 2011-05-13 Tom Tromey <tromey@redhat.com>
6654 * utils.c (do_value_free): New function.
6655 (make_cleanup_value_free): Likewise.
6656 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6658 (dwarf2_loc_desc_needs_frame): Call
6659 make_cleanup_value_free_to_mark.
6660 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6661 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6663 (new_dwarf_expr_context): Don't call value_mark.
6664 * dwarf2-frame.c (execute_stack_op): Call
6665 make_cleanup_value_free_to_mark.
6666 * defs.h (make_cleanup_value_free): Declare.
6668 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6670 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6671 prepare_execute_command.
6672 * top.c (prepare_execute_command): Return cleanup.
6673 (execute_command): Use cleanup from prepare_execute_command.
6674 * top.h (prepare_execute_command): Change prototype to return
6676 * defs.h (struct value): Add opaque declaration.
6677 (make_cleanup_value_free_to_mark): Add prototype.
6678 * utils.c (do_value_free_to_mark): New function.
6679 (make_cleanup_value_free_to_mark): Likewise.
6681 2011-05-12 Tom Tromey <tromey@redhat.com>
6683 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6684 cast left-hand-side to unsigned.
6686 2011-05-12 Tom Tromey <tromey@redhat.com>
6689 * value.h (value_from_contents): Declare.
6690 * value.c (value_from_contents): New function.
6691 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6692 (dwarf2_get_die_type): New function.
6693 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6694 (allocate_piece_closure): Acquire reference to values.
6695 (read_pieced_value): Update for value-based expressions.
6696 (write_pieced_value): Likewise.
6697 (free_pieced_value_closure): Call value_free as needed.
6698 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6699 Update for value-based expressions.
6700 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6701 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6702 <get_base_type>: New field.
6703 (struct dwarf_expr_piece) <v.value>: Change type.
6704 <v.regno>: New field.
6705 (struct dwarf_expr_context) <mark>: New field.
6706 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6707 (dwarf_expr_pop, dwarf_expr_push): Remove.
6708 (dwarf_expr_push_address): Declare.
6709 * dwarf2expr.c (dwarf_arch_cookie): New global.
6710 (struct dwarf_gdbarch_types): New.
6711 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6713 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6715 (dwarf_expr_push_address): New function.
6716 (dwarf_expr_pop): Now static.
6717 (dwarf_expr_fetch): Change return type.
6718 (dwarf_require_integral): New function.
6719 (dwarf_expr_fetch): Simplify.
6720 (add_piece): Update.
6721 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6723 (execute_stack_op) <sign_ext>: Remove.
6724 Use values for DWARF stack.
6725 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6726 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6728 (_initialize_dwarf2expr): New function.
6729 (add_piece): Update.
6730 (new_dwarf_expr_context): Set new field.
6731 (free_dwarf_expr_context): Call value_free_to_mark.
6732 * dwarf2-frame.c (no_base_type): New function.
6733 (execute_stack_op): Set get_base_type field. Update.
6735 2011-05-12 Tom Tromey <tromey@redhat.com>
6737 * dwarf2read.c (read_common_block): Fix formatting.
6739 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6741 * breakpoint.c (disable_breakpoint): Disable all locations
6742 associated with a tracepoint on target if a trace experiment is
6744 (disable_command): Disable a specific tracepoint location on target if
6745 a trace experiment is running.
6746 (do_enable_breakpoint): Enable all locations associated with a
6747 tracepoint on target if a trace experiment is running.
6748 (enable_command) Enable a specific tracepoint location on target if a
6749 trace experiment is running.
6750 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6751 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6752 to_disable_tracepoint.
6753 * target.h: Add declaration of struct bp_location.
6754 (struct target_ops): Add new functions
6755 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6756 to_disable_tracepoint to target operations.
6757 (target_supports_enable_disable_tracepoint): New macro.
6758 (target_enable_tracepoint): New macro.
6759 (target_disable_tracepoint): New macro.
6760 * remote.c (struct remote_state): Add new field.
6761 (remote_enable_disable_tracepoint_feature): New.
6762 (remote_protocol_features): Add new entry.
6763 (remote_supports_enable_disable_tracepoint): New.
6764 (remote_enable_tracepoint): New.
6765 (remote_disable_tracepoint): New.
6766 (init_remote_ops): Add remote_enable_tracepoint,
6767 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6768 to remote operations.
6769 * tracepoint.c (start_tracing): Allow tracing to start without any
6770 tracepoints enabled with just a warning if they can be re-enabled
6772 * NEWS: Add news item for the new behaviour of the enable and disable
6773 GDB commands when applied to tracepoints.
6774 Add news items for the new remote packets QTEnable and QTDisable.
6776 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6778 * config.in: Regenerate.
6779 * configure: Regenerate.
6780 * configure.ac <--with-system-readline> (for readline_echoing_p):
6782 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6783 (tui_old_rl_echoing_p): ... here.
6784 (tui_setup_io): Rename extern declaration readline_echoing_p to
6785 _rl_echoing_p. Adjust assignments for the both renames.
6787 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6789 * symtab.c (lookup_symtab): Run cleanup before returning.
6791 2011-05-11 Tom Tromey <tromey@redhat.com>
6793 * dwarf2read.c (handle_data_member_location): New function.
6794 (dwarf2_add_field): Use it.
6795 (read_common_block): Likewise.
6797 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6799 Make addrs->SECTINDEX always defined.
6800 * symfile.c (relative_addr_info_to_section_offsets): Check for
6801 SECTINDEX -1, not for zero ADDR.
6802 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6803 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6804 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6807 2011-05-10 Doug Evans <dje@google.com>
6809 * linux-thread-db.c: Whitespace cleanup.
6810 (try_thread_db_load_1): Fix comment.
6812 * linux-thread-db.c (set_libthread_db_search_path): New function.
6813 (_initialize_thread_db): Add setter for libthread-db-search-path.
6815 2011-05-09 Doug Evans <dje@google.com>
6817 * NEWS: Mention --with-iconv-bin.
6818 * configure.ac: New option --with-iconv-bin.
6819 * configure: Regenerate.
6820 * config.in: Regenerate.
6821 * defs.h (relocate_gdb_directory): Declare.
6822 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6823 removed progname parameter, and exported. All callers updated.
6824 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6826 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6827 adding missing call to restore_child_signals_mask.
6829 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6831 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6833 * infrun.c (proceed, start_remote): Adjust.
6834 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6835 and adjust to not handle it.
6836 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6837 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6838 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6839 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6840 * windows-nat.c (do_initial_windows_stuff): Adjust.
6841 * infcmd.c (attach_command): Adjust.
6842 (notice_new_inferior): Adjust.
6844 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6846 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6847 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6848 * spu-tdep.c (op_selb): Use correct value.
6850 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6852 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6853 "parent" parameter to symbol_file_add_from_bfd call.
6855 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6856 Thiago Jung Bauermann <bauerman@br.ibm.com>
6858 Implement support for PowerPC BookE masked watchpoints.
6859 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6861 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6862 method. Initialize to NULL in all existing breakpoint_ops instances.
6863 (struct breakpoint) <hw_wp_mask>: New field.
6864 * breakpoint.c (is_masked_watchpoint): Add prototype.
6865 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6866 breakpoint's breakpoint_ops.works_in_software_mode if available.
6867 (watchpoints_triggered): Handle the case of a hardware masked
6869 (watchpoint_check): Likewise.
6870 (works_in_software_mode_watchpoint): New function.
6871 (insert_masked_watchpoint, remove_masked_watchpoint)
6872 (resources_needed_masked_watchpoint)
6873 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6874 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6875 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6877 (masked_watchpoint_breakpoint_ops): New structure.
6878 (watch_command_1): Check for the existence of the `mask' parameter.
6879 Set b->ops according to the type of hardware watchpoint being created.
6880 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6881 (ppc_linux_remove_mask_watchpoint)
6882 (ppc_linux_masked_watch_num_registers): New functions.
6883 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6884 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6885 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6886 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6887 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6888 (target_masked_watch_num_registers): New functions.
6889 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6890 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6892 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6893 (target_masked_watch_num_registers): Add prototypes.
6895 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6898 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6899 (producer_is_gcc_ge_4_0): New function.
6900 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6901 symtab->language code.
6902 (var_decode_location): Set cu->has_loclist.
6903 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6904 skip. Intialize force_skip from locations_valid. Move the prologue
6905 skipping code into two passes.
6906 * symtab.h (struct symtab): Make the primary field a bitfield. New
6907 field locations_valid.
6909 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6911 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6912 (classify_inner_name): Call cp_lookup_nested_type with
6914 * cp-namespace.c (cp_lookup_nested_type): New variable
6915 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6916 type_name_no_tag_or_error with saved_parent_type.
6917 * dwarf2read.c (load_partial_dies): Read in any children of
6918 DW_TAG_typedef with complaint in such case.
6919 * gdbtypes.c (type_name_no_tag_or_error): New function.
6920 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6921 * valops.c (destructor_name_p): New comment for parameter type. Remove
6922 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6923 * value.h (destructor_name_p): Remove type const.
6925 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6927 * symtab.c (compare_symbol_name): New function.
6928 (completion_list_add_name, expand_partial_symbol_name): Call it,
6929 remove the variable ncmp.
6930 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6933 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6935 Demote to sw watchpoint only in update_watchpoint.
6936 * breakpoint.c (update_watchpoint): Change between software and
6937 hardware watchpoint for all kinds of watchpoints, not just
6938 read/write ones. Determine b->exact value here instead of
6939 in watch_command_1. Error out if there are not enough resources
6940 for a read or access hardware watchpoint.
6941 (watch_command_1): Remove logic of checking whether there are
6942 enough resources available, since update_watchpoint will do that
6943 work now. Don't set b->exact here. Catch exceptions thrown by
6944 update_watchpoint and delete the watchpoint.
6945 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6946 Use target_exact_watchpoints instead.
6947 (delete_breakpoint): Notify observers only if deleted watchpoint
6948 has a breakpoint number assigned to it.
6950 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6952 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6954 2011-05-05 Jerome Guitton <guitton@adacore.com>
6956 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6958 (i386_stack_tramp_frame_unwind): New static global.
6959 (i386_match_pattern): New function, extracted from i386_match_insn.
6960 (i386_match_insn): Use i386_match_pattern.
6961 (i386_match_insn_block): New function.
6962 (i386_tramp_chain_in_reg_insns)
6963 (i386_tramp_chain_on_stack_insns): New static variables.
6964 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6967 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6969 * configure.host (xscale*): Don't handle target.
6970 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6973 2011-05-04 Yao Qi <yao@codesourcery.com>
6975 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6977 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6980 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6981 | * elfread.c (elf_symtab_read): Stop memory leak.
6983 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6985 * nto-tdep.c (nto_target): Replace deprecated call to
6986 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6988 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6990 Fix false GCC warning.
6991 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6993 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6995 * breakpoint.c (update_watchpoint): Move code to change
6996 the enable state of breakpoint from here ...
6997 (do_enable_breakpoint): ... to here.
6999 2011-04-26 Andrew Gontarek <andrewg@cray.com>
7001 * valprint.c (val_print_array_elements): Fixed poor performance
7002 of printing very large arrays with repeat_count_threshold set
7003 to unlimited. New comment.
7005 2011-04-29 Tom Tromey <tromey@redhat.com>
7007 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7008 (mi_parse): Likewise.
7009 * breakpoint.c (break_range_command): Use sizeof char*, not
7011 (create_breakpoint): Likewise.
7012 (parse_breakpoint_sals): Likewise.
7014 2011-04-29 Pedro Alves <pedro@codesourcery.com>
7016 * linux-nat.c (linux_child_remove_fork_catchpoint)
7017 (linux_child_remove_vfork_catchpoint)
7018 (linux_child_remove_exec_catchpoint): New functions.
7019 (linux_target_install_ops): Install them.
7021 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7025 * varobj.c (install_default_visualizer): Do not install a
7026 visualizer if the varobj is CPLUS_FAKE_CHILD.
7027 (construct_visualizer): Likewise.
7029 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7031 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7032 case insensitive comparison.
7034 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7036 * infrun.c (proceed): Revert previous change.
7037 (resume): Instead, handle the case of signal delivery while stepping
7038 off a breakpoint location here, and only if software single-stepping
7039 is used. Handle nested signals.
7041 2011-04-28 Yao Qi <yao@codesourcery.com>
7043 * arm-tdep.c (copy_unmodified): Rename to ...
7044 (arm_copy_unmodified): .. this. New.
7045 (copy_preload): Move common part to ...
7046 (install_preload): .. this. New.
7047 (arm_copy_preload): New.
7048 (copy_preload_reg): Move common part to ...
7049 (install_preload_reg): ... this. New.
7050 (arm_copy_preload_reg): New.
7051 (copy_b_bl_blx): Move common part to ...
7052 (install_b_bl_blx): .. this. New.
7053 (arm_copy_b_bl_blx): New.
7054 (copy_bx_blx_reg): Move common part to ...
7055 (install_bx_blx_reg): ... this. New.
7056 (arm_copy_bx_blx_reg): New.
7057 (copy_alu_reg): Move common part to ...
7058 (install_alu_reg): ... this. New.
7059 (arm_copy_alu_reg): New.
7060 (copy_alu_shifted_reg): Move common part to ...
7061 (install_alu_shifted_reg): ... this. New.
7062 (copy_ldr_str_ldrb_strb): Move common part to ...
7063 (install_ldr_str_ldrb_strb): ... this. New.
7064 (arm_copy_ldr_str_ldrb_strb): New.
7065 (copy_copro_load_store): Move some common part to ...
7066 (install_copy_copro_load_store): ... this. New.
7067 (arm_copy_copro_load_store): New.
7069 (arm_copy_svc): Renamed from copy_svc.
7070 (copy_undef): Delete.
7071 (arm_copy_undef): Renamed from copy_undef.
7072 (decode_ext_reg_ld_st): Delete.
7073 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7074 (decode_svc_copro): Delete.
7075 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7076 (copy_copro_load_store, copy_alu_imm): update callers.
7077 (copy_extra_ld_st, copy_block_xfer): Likewise.
7078 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7079 (decode_miscellaneous, decode_dp_misc): Likewise.
7080 (decode_ld_st_word_ubyte, decode_media): Likewise.
7081 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7082 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7083 (decode_unconditional, decode_miscellaneous): Likewise.
7084 (decode_media, decode_b_bl_ldmstm): Likewise.
7085 (arm_process_displaced_insn): Likewise..
7086 (decode_misc_memhint_neon): Delete.
7087 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7088 (decode_miscellaneous): Delete.
7089 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7090 (decode_dp_misc): Delete.
7091 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7092 (decode_ld_st_word_ubyte): Delete.
7093 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7094 (decode_media): Delete.
7095 (arm_decode_media): Renamed from decode_media.
7096 (decode_b_bl_ldmstm): Delete.
7097 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7098 (decode_ext_reg_ld_st): Delete.
7099 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7100 (decode_unconditional): Delete.
7101 (arm_decode_unconditional): Renamed from decode_unconditional.
7103 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7105 Case insensitive lookups implementation.
7106 * dwarf2read.c: Include ctype.h.
7107 (struct mapped_index): New field version.
7108 (mapped_index_string_hash): New parameter index_version. New comment
7109 for it. Call tolower appropriately.
7110 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7111 Choose the right index version for mapped_index_string_hash.
7112 (dwarf2_read_index): Support also the index version 5. Initialize the
7113 new struct mapped_index field version.
7114 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7115 (find_slot): Explain the version needs. Pass INT_MAX for the new
7117 (write_psymtabs_to_index): Produce version 5.
7118 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7119 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7120 * psymtab.c (lookup_partial_symbol): Find the
7121 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7123 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7125 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7126 (completion_list_add_name): New variable ncmp, initialize it, use it.
7127 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7128 * utils.c (strcmp_iw): Support case_sensitive_off.
7129 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7130 New function comment part. New variables saved_string1,
7131 saved_string2 and case_pass. Add a proper second pass.
7133 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 Replace re_comp/re_exec by regcomp/regexec.
7136 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7137 (search_symbols_name_matches): Use them, use regexec.
7138 (search_symbols): New variable retval_chain, adjust the use of
7139 old_chain against it. Replace re_comp by regcomp. Use the new struct
7140 search_symbols_data fields, use regexec instead of re_exec.
7142 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 Format the code for the next patch.
7145 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7146 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7147 New variables c1 and c2.
7149 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7151 * infrun.c (proceed): Do not single-step into signal delivery
7152 when stepping off a breakpoint location.
7153 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7154 (insert_step_resume_breakpoint_at_caller): Likewise.
7155 (insert_step_resume_breakpoint_at_sal): Likewise.
7156 (insert_longjmp_resume_breakpoint): Likewise.
7158 2011-04-27 Yao Qi <yao@codesourcery.com>
7160 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7162 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7164 * procfs.c (procfs_pass_signals): Fix advance declaration.
7166 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7168 * target.h (struct target_ops): Remove to_notice_signals;
7169 add to_pass_signals.
7170 (target_notice_signals): Remove.
7171 (target_pass_signals): Add prototype.
7172 * target.c (update_current_target): Remove to_notice_signals;
7173 mention to_pass_signals.
7174 (target_pass_signals): New function.
7175 (debug_to_notice_signals): Remove.
7176 (setup_target_debug): Do not install debug_to_notice_signals.
7178 * infrun.c (signal_pass): New global.
7179 (resume): Call target_pass_signals.
7180 (handle_inferior_event): Report all signals while stepping over
7181 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7182 are re-inserted when stepping over a signal handler.
7183 (signal_cache_update): New function.
7184 (signal_stop_update): Call it.
7185 (signal_print_update): Likewise.
7186 (signal_pass_update): Likewise.
7187 (handle_command): Call signal_cache_update and target_pass_signals
7188 instead of target_notice_signals.
7189 (_initialize_infrun): Initialize signal_pass.
7191 * linux-nat.c (pass_mask): New global.
7192 (linux_nat_pass_signals): New function.
7193 (linux_nat_create_inferior): Report all signals initially.
7194 (linux_nat_attach): Likewise.
7195 (linux_nat_resume): Use pass_mask to decide whether to directly
7196 handle an inferior signal.
7197 (linux_nat_wait_1): Likewise.
7198 (linux_nat_add_target): Install to_pass_signals callback.
7200 * nto-procfs.c (notice_signals): Remove.
7201 (procfs_resume): Do not call notice_signals.
7202 (procfs_notice_signals): Remove.
7203 (procfs_pass_signals): New function.
7204 (init_procfs_ops): Install to_pass_signals callback instead of
7205 to_notice_signals callback.
7206 (_initialize_procfs): Report all signals initially.
7208 * procfs.c (procfs_notice_signals): Remove.
7209 (procfs_pass_signals): New function.
7210 (procfs_target): Install to_pass_signals callback instead of
7211 to_notice_signals callback.
7212 (register_gdb_signals): Remove.
7213 (procfs_debug_inferior): Report all signals initially.
7214 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7216 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7217 parameters; use them instead of calling signal_..._state routines.
7218 (remote_notice_signals): Remove.
7219 (remote_start_remote): Report all signals initially.
7220 (remote_resume): Do not call remote_pass_signals.
7221 (_initialize_remote): Install to_pass_signals callback instead of
7222 to_notice_signals callback.
7224 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7226 * breakpoint.c (user_settable_breakpoint): Delete.
7227 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7228 (delete_command): Check user_breakpoint_p instead of looking at
7229 the breakpoint's type.
7230 (disable_command): Ditto.
7231 (enable_command): Ditto.
7232 (delete_trace_command): Use user_breakpoint_p instead of looking
7233 at the breakpoint number directly. When checking if there are
7234 user visible tracepoints, in order to know whether to ask the user
7235 for confirmation, check whether the breakpoint is actually a
7238 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7240 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7243 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7245 MI breakpoint notifications.
7247 * annotate.c (breakpoint_changed): Adjust parameter type.
7248 * breakpoint.c (set_breakpoint_condition): Adjust to change
7249 in breakpoint_modified type.
7250 (breakpoint_set_commands): Likewise.
7251 (do_map_commands_command): Likewise.
7252 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7253 changed after bumping hit count.
7254 (bpstat_stop_status): Likewise.
7255 (print_one_breakpoint_location): Don't wrap in tuple here.
7256 (print_one_breakpoint): Always print individual locations.
7257 For locations, use unnamed tuple.
7258 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7260 (create_catchpoint, create_syscall_event_catchpoint): Call
7261 breakpoint_created obsever.
7262 (mention): Don't call breakpoint_created observer.
7263 (create_breakpoint_sal): Call breakpoint_created observer.
7264 (create_breakpoint, watch_command_1): Likewise.
7265 (create_ada_exception_breakpoint): Likewise.
7266 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7267 (locations_are_equal): New.
7268 (update_breakpoint_locations): If locations were changed, notify.
7269 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7270 Call breakpoint_modified observer.
7272 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7273 (mi_cmd_break_insert): Don't set observers for modify and delete.
7274 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7275 (mi_breakpoint_created, mi_breakpoint_deleted)
7276 (mi_breakpoint_modified): New.
7277 (mi_interpreter_init): Hook the above.
7278 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7279 while -break-* commands are executing.
7280 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7281 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7283 (mi_ui_out_impl): Hook in mi_redirect.
7284 (mi_field_skip): True to the name, skip the field, don't output
7285 a field with an empty value.
7287 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7288 (gdbpy_breakpoint_deleted): Adjust.
7289 * tui/tui-hooks.c (tui_event_create_breakpoint)
7290 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7292 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7294 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7295 (procfs_remove_hw_watchpoint): Likewise.
7297 2011-04-26 Michael Walle <michael@walle.cc>
7299 * remote.c (remote_start_remote): Ack packet after sending the
7302 2011-04-26 Yao Qi <yao@codesourcery.com>
7304 * linux-nat.c: Move common macros to ...
7305 Include linux-ptrace.h.
7306 * common/linux-ptrace.h: ... here. New.
7308 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7310 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7311 !objfile_has_partial_symbols. New comment.
7312 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7313 SYM_READ_PSYMBOLS is not present. Extend the comment.
7314 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7316 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7318 * defs.h (ENUM_BITFIELD): Remove.
7320 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 Eli Zaretskii <eliz@gnu.org>
7323 * NEWS: Document the new gdbserver --once option.
7325 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7327 * MAINTAINERS: Update my email address.
7329 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7331 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7332 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7333 function call if __STDC_ISO_10646__ macro is defined.
7334 (intermediate_encoding): New prototype.
7335 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7336 to generate compile time error for unsupported gdb_wchar_t size.
7337 (ENDIAN_SUFFIX): New macro.
7338 (intermediate_encoding): New function.
7340 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7342 * ada-lang.c (struct add_partial_datum): Update the comment for
7343 expand_partial_symbol_name.
7344 (ada_add_partial_symbol_completions): Rename to ...
7345 (ada_expand_partial_symbol_name): ... here, change return type, update
7346 function comment, call symbol_completion_match instead of
7347 symbol_completion_add.
7348 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7349 and ada_expand_partial_symbol_name.
7350 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7352 (dw2_map_symbol_names): Remove.
7353 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7354 * psymtab.c (map_symbol_names_psymtab): Remove.
7355 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7356 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7358 (psym_functions): Unlist map_symbol_names_psymtab.
7359 (map_partial_symbol_names): Rename to ...
7360 (expand_partial_symbol_names): ... here, change the FUN type, call
7361 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7362 * psymtab.h (map_partial_symbol_names): Rename to ...
7363 (expand_partial_symbol_names): ... here, change the FUN type.
7364 * symfile.h (struct quick_symbol_functions): Update the description of
7365 expand_symtabs_matching. Remove map_symbol_names.
7366 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7367 (struct add_name_data): Update the comment for
7368 expand_partial_symbol_name.
7369 (add_partial_symbol_name): Rename to ...
7370 (expand_partial_symbol_name): ... here. Replace
7371 completion_list_add_name call by strncmp.
7372 (default_make_symbol_completion_list_break_on): Use now
7373 expand_partial_symbol_names and expand_partial_symbol_name.
7374 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7376 2011-04-20 Tom Tromey <tromey@redhat.com>
7378 * dwarf2read.c (save_gdb_index_command): Replace format
7379 documentation with a pointer to the manual.
7381 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7383 * regcache.c: Include remote.h.
7384 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7385 (regcache_dump): Handle regcache_dump_remote.
7386 (maintenance_print_remote_registers): New function.
7387 (_initialize_regcache): Install "maint print remote-registers"
7389 * remote.c (map_regcache_remote_table): New function, factored out
7391 (init_remote_state): ... here.
7392 (remote_register_number_and_offset): New.
7393 * remote.h (remote_register_number_and_offset): Declare.
7395 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7397 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7398 null_ptid, assume and allow a NULL address space, instead of
7399 asking the target for the ptid's address space.
7400 * infrun.c (ptid_is_pid): Remove assertion.
7402 2011-04-19 Tom Tromey <tromey@redhat.com>
7404 * windows-tdep.c (windows_xfer_shared_library):
7405 * windows-nat.c (get_module_name, windows_make_so):
7406 * v850-tdep.c (v850_handle_pushm):
7407 * utils.c (null_cleanup, gdb_realpath):
7408 * ui-out.c (get_next_header):
7409 * tracepoint.c (clear_traceframe_info):
7410 * symtab.c (lookup_symtab):
7411 * serial.h (struct serial_ops):
7412 * mipsread.c (read_alphacoff_dynamic_symtab):
7413 * infcmd.c (print_return_value):
7414 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7415 * f-exp.y (parse_number):
7416 * exceptions.c (catch_exceptions):
7417 * dummy-frame.c (dummy_frame_this_id):
7418 * defs.h (struct cleanup):
7419 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7420 * arm-tdep.c (arm_push_dummy_call):
7421 * amd64-tdep.h (amd64_collect_xsave):
7422 * amd64-tdep.c (amd64_collect_xsave):
7423 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7424 * README (typing): Remove duplicate words.
7425 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7426 * infrun.c (siginfo_value_read): Fix typo.
7427 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7428 * top.c (source_line_number): Add comma.
7430 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7432 * thread.c (any_live_thread_of_process): Prioritize threads
7433 that are not executing.
7434 * gdbthread.h (any_live_thread_of_process): Update comment
7435 as per above change.
7437 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7439 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7440 (scan_xcoff_symtab): Likewise.
7442 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7444 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7447 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7448 Pedro Alves <pedro@codesourcery.com>
7450 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7451 variables to simplify code and avoid == operator at end of
7452 line as this is against GNU coding standards.
7454 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7456 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7457 lm_name to name_lm to avoid conflict with lm_name function.
7459 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7461 ARI fixes: Use only lowercase function name for static functions.
7462 * nto-tdep.c (LM_ADDR): Rename to...
7463 (lm_addr): New function name.
7464 (nto_relocate_section_addresses): Adapt to change above.
7465 * solib-sunos.c (LM_ADDR): Rename to...
7466 (lm_addr): New function name.
7467 (LM_NEXT): Rename to...
7468 (lm_next): New function name.
7469 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7470 function name changes above.
7471 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7472 (lm_addr_from_link_map): New function name.
7473 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7474 (has_lm_dynamic_from_link_map): New function name.
7475 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7476 (lm_dynamic_from_link_map): New function name.
7477 (LM_ADDR_CHECK): Rename to...
7478 (lm_addr_check): New function name.
7479 (LM_NEXT): Rename to...
7480 (lm_next): New function name.
7481 (LM_PREV): Rename to...
7482 (lm_prev): New function name.
7483 (LM_NAME): Rename to...
7484 (lm_name): New function name.
7485 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7486 (ignore_first_link_map_entry): New function name.
7487 (svr4_keep_data_in_core): Adapt to function name changes above.
7488 (svr4_current_sos): Likewise.
7489 (enable_break): Likewise.
7490 (svr4_relocate_section_addresses): Likewise.
7492 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7495 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7496 sprintf. Simplify code and avoid loosing memory.
7497 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7498 (call0_frame_cache): Remove && operator from end of line.
7500 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7502 Fix libraries displacement if they change whether they were prelinked.
7503 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7504 does not match. Comment why.
7506 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 * corelow.c: Include wrapper.h.
7509 (core_open): Call now gdb_target_find_new_threads.
7510 * wrapper.c: Include target.h.
7511 (gdb_target_find_new_threads): New.
7512 * wrapper.h (gdb_target_find_new_threads): New declaration.
7514 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7516 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7517 even if !TARGET_HAS_EXECUTION.
7519 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7521 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7522 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7523 bfd_get_synthetic_symtab.
7524 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7525 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7526 parameter parent, remove the call to add_separate_debug_objfile.
7527 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7528 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7529 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7530 parent, new comment for it, call add_separate_debug_objfile for it.
7531 (symbol_file_add_separate): Pass objfile as the parameter parent,
7532 remove the call to add_separate_debug_objfile.
7533 (symbol_file_add_from_bfd): New parameter parent, pass it.
7534 (symbol_file_add): Pass NULL to the new parameter parent.
7535 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7537 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7539 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7542 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7544 Fix Python access to inlined frames.
7545 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7546 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7548 2011-04-15 Tom Tromey <tromey@redhat.com>
7550 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7552 2011-04-15 Gary Benson <gbenson@redhat.com>
7554 * MAINTAINERS: Add myself to write-after-approval section.
7556 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7558 * remote-sim.c (sim_command_completer): New function.
7559 (_initialize_remote_sim): Set completer to sim_command_completer.
7561 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7563 * breakpoint.c (print_exception_catchpoint): Rename to ...
7564 (print_it_exception_catchpoint): ... this.
7565 (gnu_v3_exception_catchpoint_ops): Update with new name
7566 for print_it_exception_catchpoint.
7568 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7570 * MAINTAINERS: Add myself for write after approval privileges.
7572 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7574 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7576 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7578 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7580 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7582 * breakpoint.c (save_breakpoints): Verify whether
7583 breakpoint_ops.print_recreate is defined before calling it.
7585 2011-04-11 Gary Benson <gbenson@redhat.com>
7587 Fix failure with --enable-maintainer-mode.
7588 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7590 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7593 * symtab.c (search_symbols): Reorder the KIND description in the
7594 function comment. Remove the unused 4th element of types, types2,
7595 types3 and types4. New gdb_assert on KIND.
7596 (symtab_symbol_info): Remove the unused 4th element of classnames.
7597 New gdb_assert on KIND.
7598 * symtab.h (enum search_domain): New warning in the enum comment.
7599 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7602 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 Fix crash of gdb save-index on a STABS file.
7605 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7608 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7610 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7611 * dwarf2read.c: Include ctype.h.
7612 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7614 (dwarf2_add_field): Fix new_field->accessibility by calling
7615 dwarf2_default_access_attribute. Restructure setting accessibility
7617 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7618 is_private and is_protected by calling
7619 dwarf2_default_access_attribute.
7621 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7623 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7624 to the initialization.
7626 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7628 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7631 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7633 Remove support for old Cygwin 1.5 versions.
7634 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7635 function on old Cygwin version.
7636 * windows-nat.c: Remove cygwin version check and always define
7637 __USEWIDE for Cygwin compilation.
7639 2011-04-07 Yao Qi <yao@codesourcery.com>
7641 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7643 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7644 (arm_copy_svc): Remove parameters INSN and TO.
7645 (decode_svc_copro): Update caller.
7646 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7647 from function pointer `copy_svc_os'.
7649 2011-04-07 Yao Qi <yao@codesourcery.com>
7651 * arm-tdep.c (cleanup_branch): Set a correct return address in
7652 LR for ARM and Thumb.
7654 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7657 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7658 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7659 in the function comment, a new note on values compatibility.
7660 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7661 * symtab.h (SYMBOL_HASH_NEXT): New.
7663 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7665 * ppc-linux-nat.c (check_condition): Add len output parameter.
7666 Set it based on the memory region referenced in the condition
7667 expression. Update all callers.
7669 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7671 Fix crash regression on systems featuring .gdb_index.
7672 * objfiles.c (free_objfile): Move the
7673 forget_cached_source_info_for_objfile call earlier. Comment it.
7674 Extend the comment for objfile_free_data.
7676 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7678 Fix regression of displaying the debug format.
7679 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7682 2011-04-04 Tom Tromey <tromey@redhat.com>
7684 * cli/cli-interp.c (struct captured_execute_command_args):
7686 (do_captured_execute_command): Remove.
7687 (safe_execute_command): Use TRY_CATCH.
7688 * cli/cli-script.c (struct wrapped_read_command_file_args):
7690 (wrapped_read_command_file): Remove.
7691 (script_from_file): Use TRY_CATCH.
7692 * exceptions.c (catch_exception): Remove.
7693 * exceptions.h (catch_exception): Remove.
7694 (deprecated_throw_reason): Update comment.
7695 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7696 argument to 'context'.
7697 (mi_execute_command): Use TRY_CATCH.
7698 * remote.c (struct start_remote_args): Remove.
7699 (remote_start_remote): Update; change arguments.
7700 (remote_open_1): Use TRY_CATCH.
7702 2011-04-04 Tom Tromey <tromey@redhat.com>
7704 * tracepoint.c (scope_info): Update.
7705 * symtab.c (decode_line_spec): Update.
7706 * python/python.c (gdbpy_decode_line): Update.
7707 * linespec.h (decode_line_1): Update.
7708 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7709 (decode_compound, find_method, symtab_from_filename)
7710 (decode_variable): Likewise.
7711 * cli/cli-cmds.c (edit_command): Update.
7712 (list_command): Update.
7713 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7715 (create_breakpoint): Update.
7716 (until_break_command): Update.
7717 (addr_string_to_sals): Update.
7718 (decode_line_spec_1): Update.
7720 2011-04-04 Tom Tromey <tromey@redhat.com>
7722 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7723 (do_captured_parse_breakpoint): Remove.
7724 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7725 Use TRY_CATCH directly.
7727 2011-04-04 Tom Tromey <tromey@redhat.com>
7729 * symtab.h (free_symtab): Remove.
7730 (forget_cached_source_info_for_objfile): Declare.
7731 * symmisc.c (free_symtab): Remove.
7732 * source.c (forget_cached_source_info_for_objfile): New function.
7733 (forget_cached_source_info): Use it.
7734 * objfiles.c (free_objfile): Simplify check before calling
7735 clear_current_source_symtab_and_line. Call
7736 forget_cached_source_info_for_objfile.
7738 2011-04-04 Tom Tromey <tromey@redhat.com>
7740 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7741 (new_symtab): Don't set `free_code' on symtab.
7742 (new_linetable): Properly handle size==0.
7743 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7744 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7746 * jv-lang.c (struct jv_per_objfile_data): New.
7747 (jv_per_objfile_free): Free the data.
7748 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7749 (get_java_class_symtab): Set the `dict' field on the
7750 jv_per_objfile_data.
7751 (free_class_block): Remove.
7752 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7755 2011-04-04 Tom Tromey <tromey@redhat.com>
7757 * symfile.c (reread_symbols): Update.
7758 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7760 * objfiles.c (allocate_objfile): Update.
7761 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7763 * cp-namespace.c (lookup_symbol_file): Don't call
7764 lookup_possible_namespace_symbol.
7765 (initialize_namespace_symtab, get_possible_namespace_block)
7766 (free_namespace_block, cp_check_possible_namespace_symbols)
7767 (check_possible_namespace_symbols_loop)
7768 (check_one_possible_namespace_symbol)
7769 (lookup_possible_namespace_symbol): Remove.
7770 (maintenance_cplus_namespace): Replace with notice.
7771 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7773 2011-04-04 Tom Tromey <tromey@redhat.com>
7775 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7776 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7777 * symmisc.c (free_symtab): Don't free debugformat.
7778 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7779 (record_debugformat, record_producer): Document.
7780 * buildsym.c (end_symtab): Don't save debugformat and producer
7782 (end_symtab): Don't free debugformat and producer fields.
7783 (record_debugformat): Don't call xstrdup.
7784 (record_producer): Likewise.
7786 2011-04-04 Tom Tromey <tromey@redhat.com>
7788 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7789 (source_line_charpos, source_charpos_line): Remove.
7791 2011-04-04 Tom Tromey <tromey@redhat.com>
7793 * symtab.h (domain_enum): Split in two...
7794 (enum search_domain): New.
7795 (search_symbols): Update.
7796 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7797 redundant declarations.
7798 (search_symbols): Change 'kind' argument to search_domain.
7800 (print_symbol_info): Likewise.
7801 (symtab_symbol_info): Likewise.
7802 * symfile.h (struct quick_symbol_functions)
7803 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7804 <expand_symtabs_matching>: Likewise.
7805 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7806 (expand_symtabs_matching_via_partial): Update.
7807 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7808 (dw2_expand_symtabs_for_function): Update.
7809 * block.h: Moved anonymous enum...
7810 * defs.h (enum block_enum): ... here. Now named.
7812 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7814 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7815 * version.in: Bump version to 7.3.50.20110403-cvs.
7817 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7819 * NEWS: Create a new section for the next release branch.
7820 Rename the section of the current branch, now that it has
7823 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7825 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7826 for "fpscr" in target description.
7828 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7830 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7831 initialize it. Delay HASH initialization. Strip the part after open
7832 parenthesis for languages with qualifiers. Call do_cleanups.
7834 2011-04-01 Tom Tromey <tromey@redhat.com>
7836 * utils.c (report_command_stats): Don't print `-' for negative
7839 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7841 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7842 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7845 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7847 * breakpoint.h (bpdisp_text): Add declaration.
7848 * breakpoint.c (bpdisp_text): Make non-static.
7849 * ada-lang.c: #include "mi/mi-common.h".
7850 (print_it_exception): Rewrite to improve GDB/MI output.
7852 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7854 * arm-tdep.h (struct address_space): Add forward declaration.
7856 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7858 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7859 * arm-tdep.c (arm_override_mode): New global.
7860 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7861 execution mode heuristics.
7862 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7863 second single-step breakpoint if needed, using
7864 arm_insert_single_step_breakpoint.
7865 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7866 ARM execution mode, do not call thumb_get_next_pc_raw.
7867 (arm_get_next_pc): Encode execution mode in return value. Call
7868 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7869 (arm_insert_single_step_breakpoint): New function.
7870 (arm_software_single_step): Call it.
7871 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7872 argument to return execution mode of sigreturn target.
7873 (arm_linux_syscall_next_pc): Use it.
7874 (arm_linux_copy_svc): Update call.
7875 (arm_linux_software_single_step): Call
7876 arm_insert_single_step_breakpoint.
7878 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7883 2011-03-31 Tom Tromey <tromey@redhat.com>
7885 * varobj.c (update_dynamic_varobj_children): Properly handle
7886 errors from iterator.
7888 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7890 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7891 struct linkage name twice.
7893 2011-03-31 Tom Tromey <tromey@redhat.com>
7895 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7896 missing ">" to message.
7898 2011-03-31 Tom Tromey <tromey@redhat.com>
7900 * varobj.c (instantiate_pretty_printer): Remove duplicate
7903 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7905 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7906 if neither saved value nor register available (e.g. signal frame).
7908 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7910 * macroexp.c (expand): Avoid uninitialized variable
7913 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7915 * breakpoint.c (break_range_command): Fix typo in comment.
7917 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7918 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7920 Implement support for PowerPC BookE ranged breakpoints.
7921 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7922 * breakpoint.h (struct bp_target_info) <length>: New member
7924 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7925 instead of struct breakpoint as argument, and also add ASPACE
7926 and BP_ADDR arguments. Update all callers.
7927 (struct breakpoint_ops) <print_one_detail>: New method.
7928 (struct breakpoint) <addr_string_range_end>: New member variable.
7929 * breakpoint.c (breakpoint_location_address_match): Add function
7931 (insert_bp_location): Set bl->target_info.length.
7932 (breakpoint_here_p): Call breakpoint_location_address_match.
7933 (moribund_breakpoint_here_p): Likewise.
7934 (regular_breakpoint_inserted_here_p): Likewise.
7935 (breakpoint_thread_match): Likewise.
7936 (bpstat_stop_status): Likewise.
7937 (bpstat_check_location): Move call to
7938 breakpoint_ops.breakpoint_hit to the top.
7939 (print_one_breakpoint_location): Call
7940 breakpoint_ops.print_one_detail if available.
7941 (breakpoint_address_match_range): New function.
7942 (breakpoint_location_address_match): Likewise.
7943 (breakpoint_locations_match): Compare the length field of the
7945 (hw_breakpoint_used_count): Count resources used by all locations
7946 in a breakpoint, and use breakpoint_ops.resources_needed if
7948 (breakpoint_hit_ranged_breakpoint): New function.
7949 (resources_needed_ranged_breakpoint): Likewise.
7950 (print_it_ranged_breakpoint): Likewise.
7951 (print_one_ranged_breakpoint): Likewise.
7952 (print_one_detail_ranged_breakpoint): Likewise.
7953 (print_mention_ranged_breakpoint): Likewise.
7954 (print_recreate_ranged_breakpoint): Likewise.
7955 (ranged_breakpoint_ops): New structure.
7956 (find_breakpoint_range_end): New function.
7957 (break_range_command): Likewise.
7958 (delete_breakpoint): Free addr_string_range_end.
7959 (update_breakpoint_locations): Add SALS_END argument. Update
7960 all callers. Calculate breakpoint length if a non-zero SALS_END
7961 is given. Call breakpoint_locations_match instead of
7962 breakpoint_address_match.
7963 (reset_breakpoint): Find SaL of the end of the range if B is a
7965 (_initialize_breakpoint): Register break-range command.
7966 * defs.h (print_core_address): Add function prototype.
7967 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7969 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7970 (ppc_linux_remove_hw_breakpoint): Likewise.
7971 (_initialize_ppc_linux_nat): Initialize
7972 to_ranged_break_num_registers.
7973 * target.c (update_current_target): Add comment about
7974 to_ranged_break_num_registers.
7975 (target_ranged_break_num_registers): New function.
7976 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7978 (target_ranged_break_num_registers): Add function prototype.
7979 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7980 * utils.c (print_core_address): ... here.
7982 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7984 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7985 variable compiler warning.
7987 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7989 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7991 (re_set_breakpoint): ... to here ...
7992 (addr_string_to_sals): ... and here.
7994 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7996 * Makefile.in (SFILES): Add missing C sources.
7997 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7998 Add missing headers.
8000 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8002 * .gitignore: New file.
8004 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8006 * NEWS: Mention new cfi device simulation.
8008 2011-03-29 Tom Tromey <tromey@redhat.com>
8010 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8011 otherwise anonymous types.
8012 (dwarf2_name): Likewise.
8013 * valops.c (value_struct_elt_for_reference): Refine artificial
8014 type logic. Call error if j==-1.
8016 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8018 Fix false GCC warning.
8019 * infcall.c (find_function_addr): Initialize funaddr.
8021 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8023 Fix mingw compilation with --enable-targets=all.
8024 * remote-mips.c (gdb_usleep.h): Include header.
8025 (mips_enter_debug): Use gdb_usleep instead of sleep.
8027 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8029 Support resolution of STT_GNU_IFUNC via breakpoints.
8030 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8031 bp_gnu_ifunc_resolver_return.
8032 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8033 the loop. Support bp_gnu_ifunc_resolver and
8034 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8035 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8037 (bptype_string, print_one_breakpoint_location): Support
8038 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8039 (user_settable_breakpoint): Return true also for
8040 bp_gnu_ifunc_resolver.
8041 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8042 bp_gnu_ifunc_resolver_return.
8043 (set_breakpoint_location_function): New parameter explicit_loc,
8044 describe it. Call find_pc_partial_function_gnu_ifunc with new
8045 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8046 EXPLICIT_LOC is not set.
8047 (set_raw_breakpoint): Set EXPLICIT_LOC for
8048 set_breakpoint_location_function.
8049 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8050 set_breakpoint_location_function.
8051 (mention): Support bp_gnu_ifunc_resolver and
8052 bp_gnu_ifunc_resolver_return.
8053 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8054 set_breakpoint_location_function.
8055 (update_breakpoint_locations): Remove static.
8056 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8057 bp_gnu_ifunc_resolver_return.
8058 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8059 bp_gnu_ifunc_resolver_return.
8060 (update_breakpoint_locations): New declaration.
8061 * elfread.c: Include gdbthread.h and regcache.h.
8062 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8064 (elf_gnu_ifunc_fns): Install them.
8065 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8066 (stub_gnu_ifunc_resolver_return_stop): New functions.
8067 (stub_gnu_ifunc_fns): Install them.
8068 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8069 and gnu_ifunc_resolver_return_stop.
8070 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8072 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8074 STT_GNU_IFUNC reader implementation.
8075 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8076 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8077 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8078 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8079 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8080 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8081 (elf_gnu_ifunc_resolve_addr): New.
8082 (elf_symfile_read): Call elf_rel_plt_read.
8083 (elf_gnu_ifunc_fns): New.
8084 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8085 Install elf_gnu_ifunc_fns.
8086 * infcall.c (find_function_return_type): New function.
8087 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8088 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8089 (stub_gnu_ifunc_resolve_name): New functions.
8090 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8091 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8092 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8094 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8096 Code cleanup for later STT_GNU_IFUNC support.
8097 * infcall.c (find_function_addr): Remove variable code, use explicit
8098 dereferences for it. Move VALUE_TYPE initialization later.
8100 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8102 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8103 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8104 (clear_pc_function_cache): Clear it.
8105 (find_pc_partial_function): Rename to ...
8106 (find_pc_partial_function_gnu_ifunc): ... this function. New
8107 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8108 (find_pc_partial_function): New wrapper for this function.
8109 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8111 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8113 GDB internal type support for STT_GNU_IFUNC.
8114 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8115 (elf_symtab_read): Set mst_text_gnu_ifunc for
8116 BSF_GNU_INDIRECT_FUNCTION.
8117 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8118 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8119 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8120 nodebug_got_plt_symbol.
8121 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8122 (TYPE_GNU_IFUNC): New.
8123 (struct main_type): New field flag_gnu_ifunc.
8124 (struct builtin_type): New field builtin_func_func.
8125 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8126 nodebug_got_plt_symbol.
8127 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8128 (in_gnu_ifunc_stub): New.
8129 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8131 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8132 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8133 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8135 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8136 * symtab.c (search_symbols): Likewise.
8137 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8138 and mst_slot_got_plt.
8139 (in_gnu_ifunc_stub): New declaration.
8141 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8143 Support a ring of related breakpoints.
8144 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8145 other functions, add gdb_assert.
8146 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8147 watchpoint_del_at_next_stop.
8148 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8149 (bpstat_stop_status): Handle ring in related_breakpoint.
8150 (set_raw_breakpoint_without_location): Initialize ring in
8152 (delete_breakpoint): Handle ring in related_breakpoint, use
8153 watchpoint_del_at_next_stop.
8154 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8156 2011-03-28 Tom Tromey <tromey@redhat.com>
8159 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8160 with `language_minimal'.
8162 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8164 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8165 instead of checking for STT_ARM_TFUNC symbol type.
8167 2011-03-25 Tom Tromey <tromey@redhat.com>
8169 * linespec.c (symbol_found): Restore line-based result for
8170 non-LOC_LABEL symbols.
8172 2011-03-25 Kai Tietz <ktietz@redhat.com>
8174 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8175 instead of strcmp for comparison.
8176 (tui_source_is_displayed): Likewise.
8177 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8179 2011-03-24 Mark Wielaard <mjw@redhat.com>
8181 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8183 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8184 (find_partial_die_in_comp_unit): Likewise in comment.
8185 (read_attribute_value): Likewise.
8186 (lookup_die_type): Likewise.
8187 (dwarf_form_name): Likewise.
8188 (dump_die_shallow): Likewise.
8189 (follow_die_ref_or_sig): Likewise.
8191 2011-03-24 Tom Tromey <tromey@redhat.com>
8193 PR breakpoints/11816:
8194 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8195 (decode_compound): Update.
8196 (find_function_symbol): New function.
8197 (decode_dollar): Update.
8198 (decode_label): Add 'function_symbol' parameter. Handle
8199 function-relative labels.
8200 (decode_variable): Update.
8201 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8202 not its line. Set `special_display' and canonical name for
8205 2011-03-24 Tom Tromey <tromey@redhat.com>
8207 * linespec.h (struct linespec_result) <special_display>: New
8209 * breakpoint.h (struct breakpoint) <display_canonical>: New
8211 * breakpoint.c (print_breakpoint_location): Respect
8213 (create_breakpoint_sal): Add 'display_canonical' parameter.
8214 (create_breakpoints_sal): Update.
8215 (create_breakpoint): Update.
8217 2011-03-24 Tom Tromey <tromey@redhat.com>
8219 * symtab.c (decode_line_spec): Update.
8220 * linespec.c (build_canonical_line_spec): Change type of
8222 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8223 (find_method, decode_all_digits, decode_dollar, decode_label)
8224 (symbol_found): Likewise.
8225 (init_linespec_result): New function.
8226 * breakpoint.c (struct captured_parse_breakpoint_args)
8227 <canonical_p>: New field, replaces addr_string_p.
8228 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8230 (parse_breakpoint_sals): Likewise.
8231 (do_captured_parse_breakpoint): Update.
8232 (create_breakpoint): Use struct linespec_result.
8233 (until_break_command): Update.
8234 (breakpoint_re_set_one): Update.
8235 (decode_line_spec_1): Update.
8236 * linespec.h (struct linespec_result): New.
8237 (init_linespec_result): Declare.
8239 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8241 * regcache.c (regcache_raw_read): If the target didn't supply a
8242 given raw register, mark it as unavailable.
8244 2011-03-23 Kai Tietz <ktietz@redhat.com>
8246 * breakpoint.c (clear_command): Use filename_cmp
8247 instead of strcmp for comparison.
8248 * buildsym.c (watch_main_source_file_lossage): Likewise.
8249 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8250 checking just for slash.
8251 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8252 strrchr and filename_cmp instead of strcmp for filenames.
8253 (add_old_header_file): Use filename_cmp
8254 instead of strcmp for comparison.
8255 * exec.c (exec_set_section_address): Likewise.
8256 * macrotab.c (macro_lookup_inclusion): Likewise.
8257 (macro_lookup_inclusion): Likewise.
8258 * elfread.c (_initialize_elfread): Likewise.
8259 (elfstab_offset_sections): Likewise.
8260 (elfstab_offset_sections): Use lbasename instead of
8262 * mdebugread.c (parse_partial_symbols): Likewise.
8263 (arse_partial_symbols): Use filename_(n)cmp instead of
8264 str(n)cmp for comparison.
8265 * minsyms.c (lookup_minimal_symbol): Likewise.
8266 * psymtab.c (read_psymtabs_with_filename): Likewise.
8267 * solib.c (solib_read_symbols): Likewise.
8268 (reload_shared_libraries_1): Likewise.
8269 * symmisc.c (maintenance_print_symbols): Likewise.
8270 * symfile.c (separate_debug_file_exists): Likewise.
8271 (reread_symbols): Likewise.
8272 (find_separate_debug_file_by_debuglink): Likewise.
8273 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8274 * source.c (add_path): Likewise.
8275 * symtab.c (filename_seen): Likewise.
8276 (file_matches): Likewise.
8277 (print_symbol_info): Likewise.
8278 (maybe_add_partial_symtab_filename): Likewise.
8279 (make_source_files_completion_list): Likewise.
8280 * xml-syscall.c (init_sysinfo): Likewise.
8281 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8282 IS_DIR_SEPARATOR for checking for trailing path separator.
8284 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8286 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8287 label abort_expression.
8288 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8289 DWARF_VALUE_OPTIMIZED_OUT.
8291 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8294 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8295 to linkage_name. Invert its value. Update the function comment.
8296 (c_type_print_varspec_suffix): Invert it at the caller.
8297 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8299 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8301 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8302 errors when reading the `stop_pc'.
8303 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8306 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8308 * NEWS: Document gdb.Write stream keyword.
8310 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8313 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8315 (dwarf2_add_field): Fix new_field->accessibility for
8316 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8318 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8322 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8323 other error classes. Do not print stack trace.
8325 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8327 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8328 (dwarf2_add_field): Fix new_field->accessibility for
8329 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8331 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8333 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8334 encountering a load via a non-SP register.
8336 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8338 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8339 field in returned unwinder.
8341 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8343 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8345 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8347 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8350 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8352 * frame.c (frame_unwind_register): Throw an error if unwinding the
8354 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8355 an unwind stop reason.
8356 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8357 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8358 UNWIND_UNAVAILABLE>: New.
8359 * inline-frame.c (inline_frame_unwind): Install
8360 default_frame_unwind_stop_reason.
8361 * frame-unwind.c: Include "exceptions.h".
8362 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8363 (default_frame_unwind_stop_reason): New.
8364 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8365 (default_frame_unwind_stop_reason): Declare.
8366 (struct frame_unwind) <stop_reason>: New function pointer.
8368 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8369 * dwarf2-frame.c: Include exceptions.h.
8370 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8371 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8372 computing the CFA. If such an error was thrown, set
8373 unavailable_retaddr.
8374 (dwarf2_frame_unwind_stop_reason): New.
8375 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8377 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8378 (dwarf2_signal_frame_unwind): Ditto.
8380 * amd64-tdep.c: Include "exceptions.h".
8381 (struct amd64_frame_cache): New field "base_p".
8382 (amd64_init_frame_cache): Clear it.
8383 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8384 Avoid reading registers with functions that throw if the register
8385 is not necessary to compute the frame base.
8386 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8387 swallowing NOT_AVAILABLE_ERROR.
8388 (amd64_frame_unwind_stop_reason): New.
8389 (amd64_frame_this_id): Don't build a frame id if the frame base
8391 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8392 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8393 base_p if the frame base was computable.
8394 (amd64_sigtramp_frame_unwind_stop_reason): New.
8395 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8396 frame base was unavailable.
8397 (amd64_sigtramp_frame_unwind): Install
8398 amd64_sigtramp_frame_unwind_stop_reason.
8399 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8400 base_p if the frame base was computable.
8401 (amd64_epilogue_frame_unwind_stop_reason): New.
8402 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8403 frame base was unavailable.
8404 (amd64_epilogue_frame_unwind): Install
8405 amd64_epilogue_frame_unwind_stop_reason.
8406 * i386-tdep.c: Include "exceptions.h".
8407 (struct i386_frame_cache): New field "base_p".
8408 (i386_init_frame_cache): Clear it.
8409 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8410 Avoid reading registers with functions that throw if the register
8411 is not necessary to compute the frame base.
8412 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8413 swallowing NOT_AVAILABLE_ERROR.
8414 (i386_frame_unwind_stop_reason): New.
8415 (i386_frame_this_id): Don't build a frame id if the frame base was
8417 (i386_frame_prev_register): Handle unavailable SP.
8418 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8419 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8420 base_p if the frame base was computable.
8421 (i386_epilogue_frame_unwind_stop_reason): New.
8422 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8423 base was unavailable.
8424 (i386_epilogue_frame_unwind): Install
8425 i386_epilogue_frame_unwind_stop_reason.
8426 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8427 base_p if the frame base was computable.
8428 (i386_sigtramp_frame_unwind_stop_reason): New.
8429 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8430 base was unavailable.
8431 (i386_sigtramp_frame_unwind): Install
8432 i386_sigtramp_frame_unwind_stop_reason.
8433 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8434 type's size, not the register's.
8435 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8437 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8438 default_frame_unwind_stop_reason.
8439 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8440 (alpha_heuristic_frame_unwind): Ditto.
8441 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8442 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8443 * avr-tdep.c (avr_frame_unwind): Ditto.
8444 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8446 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8447 * frv-tdep.c (frv_frame_unwind): Ditto.
8448 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8449 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8450 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8451 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8452 (hppa_stub_frame_unwind): Ditto.
8453 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8454 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8455 (ia64_libunwind_frame_unwind)
8456 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8457 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8458 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8459 * m32c-tdep.c (m32c_unwind): Ditto.
8460 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8461 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8462 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8463 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8464 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8465 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8466 * mep-tdep.c (mep_frame_unwind): Ditto.
8467 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8468 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8469 (mips_stub_frame_unwind): Ditto.
8470 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8471 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8472 * mt-tdep.c (mt_frame_unwind): Ditto.
8473 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8474 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8475 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8476 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8477 (s390_sigtramp_frame_unwind): Ditto.
8478 * score-tdep.c (score_prologue_unwind): Ditto.
8479 * sh-tdep.c (sh_frame_unwind): Ditto.
8480 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8481 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8482 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8483 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8484 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8485 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8486 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8487 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8488 (sparc64obsd_trapframe_unwind): Ditto.
8489 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8490 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8491 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8492 * v850-tdep.c (v850_frame_unwind): Ditto.
8493 * vax-tdep.c (vax_frame_unwind): Ditto.
8494 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8495 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8496 * xtensa-tdep.c (xtensa_unwind): Ditto.
8498 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8500 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8501 there's always a frame. Use get_frame_pc_if_available instead of
8502 get_frame_pc, and if there's no PC available, don't look up a
8505 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8507 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8510 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8512 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8515 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8517 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8518 * frame.c (frame_unwind_caller_pc_if_available): New.
8519 * stack.c (frame_info): Handle unavailable PC.
8521 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8523 * frame.c (frame_unwind_pc): Rename to ...
8524 (frame_unwind_pc_if_available): ... this. New `pc' output
8525 parameter. Change return type to int. Gracefully handle
8526 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8527 happened, or 1 otherwise.
8528 (frame_unwind_pc): Reimplement on top of
8529 frame_unwind_pc_if_available.
8530 (get_frame_func): Rename to ...
8531 (get_frame_func_if_available): New `pc' output parameter. Change
8532 return type to int. Gracefully handle the PC not being available.
8533 (get_frame_func): Reimplement on top of
8534 get_frame_func_if_available.
8535 (select_frame): Handle the PC being unavailable.
8536 (get_prev_frame): Handle the PC being unavailable.
8537 (get_frame_pc_if_available): New.
8538 (get_frame_address_in_block_if_available): New.
8539 (find_frame_sal): Handle the frame PC not being available.
8540 * frame.h (get_frame_pc_if_available): Declare.
8541 (get_frame_address_in_block_if_available): Declare.
8542 (get_frame_func_if_available): Declare.
8543 * stack.c (print_frame_info): Handle the PC being unavailable.
8544 (find_frame_funname): Ditto.
8545 (print_frame): Handle the PC being unavailable.
8546 (get_frame_language): Ditto.
8547 * blockframe.c (get_frame_block): Ditto.
8548 * macroscope.c (default_macro_scope): Ditto.
8549 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8551 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8553 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8554 NOT_AVAILABLE_ERROR when evaluating the location expression.
8556 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8558 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8559 returning that the register piece is unavailable/optimized out.
8560 (write_pieced_value): Handle get_frame_register_bytes returning
8561 that the register piece is unavailable/optimized out when doing a
8562 read-modify write of a bitfield.
8563 * findvar.c (value_from_register): Handle get_frame_register_bytes
8564 returning that the register piece is unavailable/optimized out.
8565 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8566 and `unavailablep'. Throw error on bad debug info. Use
8567 frame_register instead of frame_register_read, to fill in the new
8569 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8571 * valops.c: (value_assign): Adjust, and handle
8572 get_frame_register_bytes failing.
8573 * spu-tdep.c: Include exceptions.h.
8574 (spu_software_single_step): Adjust, and handle
8575 get_frame_register_bytes failing.
8576 (spu_get_longjmp_target): Ditto.
8577 * gdbarch.sh (register_to_value): Change to return int. New
8578 parameters `optimizedp' and `unavailablep'.
8579 * gdbarch.h, gdbarch.c: Regenerate.
8580 * i386-tdep.c (i386_register_to_value): Adjust to new
8581 gdbarch_register_to_value interface.
8582 * i387-tdep.c (i387_register_to_value): Ditto.
8583 * i387-tdep.h (i387_register_to_value): Ditto.
8584 * alpha-tdep.c (alpha_register_to_value): Ditto.
8585 * ia64-tdep.c (ia64_register_to_value): Ditto.
8586 * m68k-tdep.c (m68k_register_to_value): Ditto.
8587 * mips-tdep.c (mips_register_to_value): Ditto.
8588 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8590 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8592 * findvar.c (value_of_register): Mark the value as unavailable, if
8593 the register is unavailable.
8594 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8595 (frame_register): New `unavailablep' parameter.
8596 (frame_register_read): Update comment.
8597 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8598 Set it if the register is unavailable. If the register is
8599 unavailable, clear the output buffer.
8600 (frame_register): New `unavailablep' parameter. Pass it down.
8601 (frame_unwind_register): Adjust.
8602 (put_frame_register): Adjust.
8603 (frame_register_read): Adjust. Also return false if the register
8605 (frame_register_unwind_location): Adjust.
8606 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8607 is unavailable, mark the value accordingly.
8608 * stack.c (frame_info): Handle unavailable registers.
8610 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8612 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8613 simplify, using regcache_cooked_read.
8615 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8617 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8618 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8619 (regcache_raw_read_unsigned, regcache_raw_read_part)
8620 (regcache_cooked_read, regcache_cooked_read_signed)
8621 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8622 (regcache_cooked_read_ftype): Change return to enum
8624 * regcache.c: Include exceptions.h
8625 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8626 (do_cooked_read): Change return to enum register_status. Always
8627 forward to regcache_cooked_read.
8628 (regcache_raw_read): Change return to enum register_status. If
8629 the register is not REG_VALID, memset the buffer. Return the
8631 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8632 return the register's status.
8633 (regcache_raw_read_unsigned): Ditto.
8634 (regcache_cooked_read): Change return to enum register_status.
8635 Assert that with read-only regcaches, the register's status must
8636 be known. If the regcache is read-only, and the register is not
8637 REG_VALID, memset the buffer. Return the register's status.
8638 (regcache_cooked_read_signed): Change return to enum
8639 register_status. Handle non-REG_VALID registers and return the
8641 (regcache_cooked_read_unsigned): Change return to enum
8642 register_status. Handle non-REG_VALID registers and return the
8644 (regcache_xfer_part, regcache_raw_read_part)
8645 (regcache_cooked_read_part): Change return to enum
8646 register_status. Return the register's status.
8647 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8649 (regcache_dump): Handle unavailable cooked registers.
8650 * frame.c (do_frame_register_read): Adjust interface to match
8651 regcache_cooked_read_ftype.
8652 * gdbarch.sh (pseudo_register_read): Change return to enum
8654 * gdbarch.h, gdbarch.c: Regenerate.
8656 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8658 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8659 register_status. If reading a raw register indicates the raw
8660 register is not valid, return the raw register's status,
8661 otherwise, return REG_VALID.
8662 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8663 register_status. Handle non-REG_VALID raw registers and return
8664 the register's status.
8665 * arm-tdep.c (arm_neon_quad_read)
8666 (arm_pseudo_read): Change return to enum register_status. Handle
8667 non-REG_VALID raw registers and return the register's status.
8668 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8669 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8670 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8671 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8672 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8674 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8675 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8676 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8677 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8678 (m32c_pseudo_register_read): Change return to enum
8679 register_status. Adjust.
8680 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8681 enum register_status. Return the register's status.
8682 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8683 register_status. Return the register's status.
8684 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8685 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8686 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8687 * rs6000-tdep.c (move_ev_register_func): New typedef.
8688 (e500_move_ev_register): Use it. Change return to enum
8689 register_status. Return the register's status.
8690 (do_regcache_raw_read): New function.
8691 (do_regcache_raw_write): New function.
8692 (e500_pseudo_register_read): Change return to enum
8693 register_status. Return the register's status. Use
8694 do_regcache_raw_read.
8695 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8696 (dfp_pseudo_register_read): Change return to enum register_status.
8697 Return the register's status.
8698 (vsx_pseudo_register_read): Ditto.
8699 (efpr_pseudo_register_read): Ditto.
8700 (rs6000_pseudo_register_read): Ditto.
8701 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8702 register_status. Return the register's status.
8703 * sh64-tdep.c (pseudo_register_read_portions): New function.
8704 (sh64_pseudo_register_read): Change return to enum
8705 register_status. Use pseudo_register_read_portions. Return the
8707 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8708 register_status. Return the register's status.
8709 * sh-tdep.c (pseudo_register_read_portions): New function.
8710 (sh_pseudo_register_read): Change return to enum register_status.
8711 Use pseudo_register_read_portions. Return the register's status.
8712 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8713 enum register_status. Return the register's status.
8714 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8715 * spu-tdep.c (spu_pseudo_register_read_spu)
8716 (spu_pseudo_register_read): Ditto.
8717 * xtensa-tdep.c (xtensa_register_read_masked)
8718 (xtensa_pseudo_register_read): Ditto.
8719 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8721 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8723 * python/py-value.c (valpy_getitem): Fix formatting of error function
8726 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8728 ARI fixes: Add missing internationalization markups throughout
8730 * darwin-nat-info.c: Ditto.
8733 * mi/mi-main.c: Ditto.
8735 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8737 ARI fixes: Add missing internationalization markups throughout
8740 * cp-name-parser.y: Ditto.
8743 * objc-exp.y: Ditto.
8746 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8748 ARI fixes: Messages should have no trailing new lines.
8749 * darwin-nat.c (mach_check_error): Remove trailing new line from
8750 warning function call message.
8751 * record.c (bfdcore_read): Idem for error call.
8753 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8755 * common/signals.c (target_signal_from_host): Add _ markup to error
8756 function call message.
8757 (target_signal_to_host): Add _ markup and remove trailing new line
8758 from warning call message.
8759 (target_signal_from_command): Add _ markup to error function call
8762 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8766 * python/python.c (gdbpy_write): Accept a stream argument and
8767 operate to the appropriate stream.
8768 (gdbpy_flush): Likewise.
8769 (_initialize_python): Add stream constants.
8770 (finish_python_initialization): Add GdbOutputErrorFile class.
8772 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8774 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8776 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8778 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8779 to store_signed_integer. Add debug message when relocating CALL
8780 instructions. Fix formatting of debug message.
8781 * i386-tdep.c (i386_relocate_instruction): Ditto.
8783 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8785 * target.h (struct target_ops): Remove to_lookup_symbol field.
8786 (target_lookup_symbol): Delete macro.
8787 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8788 (update_current_target, setup_target_debug): Remove handling
8789 of to_lookup_symbol target_ops field.
8790 * ada-tasks.c (get_known_tasks_addr): Remove use of
8791 target_lookup_symbol.
8792 * coffread.c (coff_symtab_read): Likewise.
8793 * dbxread.c (read_dbx_symtab): Ditto.
8795 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8798 * configure.ac: Add getthrds declaration check.
8799 * configure, config.in: Regenerate.
8800 * aix-thread.c (getthrds): Declare only if not already declared
8801 in procinfo.h. More declaration out of get_signaled_thread to
8804 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8806 * python/py-symtab.c: Populate symtab_object_methods,
8808 (stpy_is_valid): New function.
8809 (salpy_is_valid): Ditto.
8810 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8811 (sympy_is_valid): New function.
8812 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8813 (objfpy_is_valid): New function.
8814 * python/py-inferior.c: Populate inferior_object_methods.
8815 (infpy_is_valid): New function.
8816 * python/py-infthread.c: Populate thread_object_methods.
8817 (thpy_is_valid): New function.
8818 * python/py-block.c: Declare block_object_methods. Populate. Declare
8819 block_iterator_object_methods. Populate.
8820 (blpy_is_valid): New function.
8821 (blpy_iter_is_valid): Ditto.
8823 2011-03-16 Keith Seitz <keiths@redhat.com>
8825 * linespec.c (find_methods): Canonicalize NAME before looking
8827 (name_end): New function.
8828 (keep_name_info): New function.
8829 (decode_line_1): Use keep_name_info.
8830 (decode_compound): Likewise.
8831 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8832 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8835 * linespec.c (locate_first_half): Keep overload information, too.
8836 (decode_compound): Use a string to represent break characters
8838 If P points to a break character, do not increment it.
8839 For C++ and Java, keep overload information and relevant keywords.
8840 If we cannot find a symbol, search the minimal symbols.
8843 * linespec.c (decode_compound): Rename SAVED_ARG to
8845 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8847 Pass a valid block to lookup_symbol.
8848 (lookup_prefix_sym): Likewise.
8849 (find_method): Construct search name based on SYM_CLASS instead
8851 * psymtab.c (lookup_partial_symbol): Add language parameter.
8852 (lookup_symbol_aux_psymtabs): Likewise.
8853 Don't assume that the psymtab we found was the right one. Search
8854 for the desired symbol in the symtab to be certain.
8855 (psymtab_search_name): New function.
8856 (lookup_partial_symbol): Use psymtab_search_name.
8857 Add language parameter.
8858 (read_symtabs_for_function): Add language parameter and pass to
8859 lookup_partial_symbol.
8860 (find_symbol_file_from_partial): Likewise.
8862 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8865 * dwarf2read.c (noop_record_line): New function.
8866 (dwarf_decode_lines): Ignore line tables for GCd functions.
8868 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8870 Fix ARI warnings about new lines at the end of messages, which
8871 are unneeded as there is a new line added at the end of the message
8873 * darwin-nat.c (darwin_stop_inferior): Ditto.
8874 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8875 * dfp.c (decimal_to_number): Ditto.
8876 * exec.c (print_section_info): Ditto.
8877 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8878 * osdata.c (get_osdata): Ditto.
8879 * record.c (bfdcore_write): Ditto.
8880 * remote-mips.c (mips_readchar): Ditto.
8881 * remote.c (read_ptid): Ditto.
8882 * ser-mingw.c (ser_windows_raw): Ditto.
8883 * tracepoint.c (add_local_symbols): Ditto.
8884 * windows-nat.c (fake_create_process): Ditto.
8886 2011-03-16 Tom Tromey <tromey@redhat.com>
8888 * tracepoint.c (stop_tracing): Don't declare.
8889 * event-top.c (after_char_processing_hook): Add `(void)'.
8891 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8893 * NEWS: Add Parameter sub-classing description.
8895 2011-03-16 Kai Tietz <ktietz@redhat.com>
8897 * MAINTAINERS: Update my e-mail address.
8899 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8901 * MAINTAINERS: Add myself for write after approval privileges.
8903 2011-03-15 Michael Snyder <msnyder@vmware.com>
8905 * frame.c (find_frame_sal): Assert sym is not null.
8907 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8909 * objc-lang.c (selectors_info): Check strchr for null result.
8911 * stabsread.c (define_symbol): Guard against bad stabstring input.
8913 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8915 Remove trailing spaces and tabulations from pascal language
8920 p-valprint.c: Ditto.
8922 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8924 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8925 than LOW. Comment it.
8926 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8927 HIGHPC not strictly higher than LOWPC.
8929 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8931 Fix formatting of function declarations returning a pointer in
8933 * varobj.c (varobj_add_child): Ditto.
8934 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8935 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8937 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8939 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8940 for the "generic" vector ABI used with GCC 4.3 and later.
8941 (ppc64_sysv_abi_return_value): Likewise.
8943 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8945 * infcall.c (call_function_by_hand): Function return value is
8946 always a non_lval, even when using struct_return.
8948 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8950 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8951 (map_display_numbers): New.
8952 (do_delete_display): New.
8953 (undisplay_command): Use map_display_numbers.
8954 (do_enable_disable_display): New.
8955 (enable_disable_display_command): New function.
8956 (enable_display): Delete.
8957 (enable_display_command): New.
8958 (disable_display_command): Reimplement.
8959 (_initialize_printcmd): Adjust "enable display" command to use
8960 `enable_display_command' as callback.
8962 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8964 * NEWS: Add Python breakpoint 'stop' operation.
8966 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8968 * NEWS: Delete duplicate entry. Fix typo.
8970 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8972 Fix ARI warning about function names in first column.
8973 Put prototype declaration on same line as return type.
8974 * objc-exp.y: Ditto.
8976 * python/py-stopevent.h: Ditto.
8977 For long function names, split parameters to
8978 allow function name on same line as return type.
8979 * solib-pa64.c: Ditto.
8982 For long function declaration, use single line.
8983 * hppa-tdep.h: Ditto.
8984 * inferior.h: Ditto.
8986 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8988 * python/python.h: Declare gdbpy_should_stop and
8989 gdbpy_breakpoint_has_py_cond.
8990 * python/python.c: Add python.h to includes. Remove python.h from
8991 HAVE_PYTHON definition
8992 (gdbpy_should_stop): New dummy function.
8993 (gdbpy_breakpoint_has_py_cond): New dummy function.
8994 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8995 sub-classing capabilities.
8996 (gdbpy_should_stop): New function.
8997 (gdbpy_breakpoint_has_py_cond): New function.
8998 (local_setattro): New function.
8999 * breakpoint.c (condition_command): Add check for Python 'stop'
9001 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9002 operation function as part of stop/continue tests.
9004 2011-03-14 Tom Tromey <tromey@redhat.com>
9007 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9008 (needs_frame_dwarf_call): Likewise.
9010 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9012 Fix ARI warning about functions without parameters that do not
9014 * breakpoint.c (all_tracepoints): Replace () by (void).
9015 * f-exp.y (match_string_literal): Ditto.
9017 * m2-exp.y (yylex): Ditto.
9018 * mep-tdep.c (current_me_module): Ditto.
9019 (current_options): Ditto.
9020 (current_cop_data_bus_width): Ditto.
9021 (current_cr_names): Ditto.
9022 (current_cr_is_float): Ditto.
9023 (current_ccr_names): Ditto.
9024 * objc-exp.y (yylex): Ditto.
9025 * p-exp.y (yylex): Ditto.
9026 * remote.c (send_interrupt_sequence): Ditto.
9027 * tracepoint.c (current_trace_status): Ditto.
9028 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9029 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9031 2011-03-11 Michael Snyder <msnyder@vmware.com>
9033 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9034 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9035 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9036 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9037 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9039 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9040 (delete_async_event_handler): Ditto.
9042 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9044 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9046 * top.c (set_verbose): Assert showcmd was found.
9048 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9050 * xtensa-tdep.c (warning_once): Correct style issues.
9052 2011-03-11 Yao Qi <yao@codesourcery.com>
9054 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9056 2011-03-11 Andreas Schwab <schwab@redhat.com>
9058 * common/aclocal.m4: Remove.
9060 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9062 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9063 (xtensa_write_register, xtensa_read_register): Likewise.
9064 (xtensa_hextochar): Removed.
9065 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9067 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9069 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9070 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9071 (xtensa_alloc_frame_cache): Add initialization for new fields.
9072 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9073 (warning_once): New function.
9074 (xtensa_insn_kind): New item c0opc_and.
9075 (call0_classify_opcode): Add the case for AND instruction.
9076 (call0_track_op): Change arguments. New local variable litbase.
9077 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9078 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9080 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9081 (call0_analyze_prologue): Update the comments. Change arguments.
9082 Add the variety of updates to handle extended prologues, which now can
9083 conduct dynamic stack adjustments.
9084 (call0_frame_cache): Likewise.
9085 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9086 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9088 2011-03-10 Michael Snyder <msnyder@vmware.com>
9090 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9091 (cmd_qtframe): Ditto.
9092 (cmd_qtbuffer): Ditto.
9093 (cmd_bigqtbuffer): Ditto.
9095 2011-03-10 Tom Tromey <tromey@redhat.com>
9097 * tracepoint.c (trace_actions_command): Update.
9098 * thread.c (thread_apply_command): Update.
9099 * reverse.c (delete_bookmark_command): Update.
9100 (bookmarks_info): Update.
9101 * printcmd.c (undisplay_command): Update.
9102 * memattr.c (mem_enable_command): Update.
9103 (mem_disable_command): Update.
9104 (mem_delete_command): Update.
9105 * inferior.c (detach_inferior_command): Update.
9106 (kill_inferior_command): Update.
9107 (remove_inferior_command): Update.
9108 * cli/cli-utils.h (struct get_number_or_range_state): New.
9109 (init_number_or_range): Declare.
9110 (get_number_or_range): Update.
9111 * cli/cli-utils.c (init_number_or_range): New function.
9112 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9114 (number_is_in_list): Update.
9115 * breakpoint.h (get_tracepoint_by_number): Update.
9116 * breakpoint.c (map_breakpoint_numbers): Update for change to
9117 get_number_or_range.
9118 (find_location_by_number): Use get_number, not
9119 get_number_or_range.
9120 (trace_pass_set_count): New function.
9121 (trace_pass_command): Update for change to get_number_or_range.
9123 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9126 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9128 * python/py-param.c (add_setshow_generic): Add set/show callback
9129 parameters. Register Python object context.
9130 (get_show_value): New function.
9131 (get_set_value): New function.
9132 (call_doc_function): New function.
9133 (get_doc_string): Move behind get_show_value/get_set_value.
9135 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9137 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9139 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9141 * xtensa-tdep.c (xtensa_read_register): Add comment.
9142 (xtensa_write_register): Likewise.
9143 (xtensa_hextochar): Add comment and update to match coding conventions.
9144 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9145 (execute_l32e, execute_s32e, execute_code): Update comments.
9146 (xtensa_exception_handler_t): Update to match coding conventions.
9147 (xtensa_insn_kind): Likewise.
9149 2011-03-09 Michael Snyder <msnyder@vmware.com>
9151 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9153 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9155 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9157 2011-03-09 Tom Tromey <tromey@redhat.com>
9159 * thread.c (restore_selected_frame): Handle frame_level == -1.
9160 (make_cleanup_restore_current_thread): Use
9161 get_selected_frame_if_set.
9162 * frame.h (get_selected_frame_if_set): Declare.
9163 * frame.c (get_selected_frame_if_set): New function.
9165 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9167 * cli/cli-cmds.c (shell_escape): Use lbasename.
9168 * coffread.c (coff_start_symtab): Constify parameter.
9169 (complete_symtab): Constify `name' parameter.
9170 (coff_symtab_read): Constify `filestring' local.
9171 (coff_getfilename): Constify return and `result' local.
9173 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9174 * linux-fork.c (info_checkpoints_command): Use lbasename.
9175 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9176 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9177 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9178 * procfs.c (procfs_make_note_section): Use lbasename.
9179 * tui/tui-io.c (printable_part): Constity return and parameter.
9181 (print_filename): Constify parameters, and local `s'.
9182 (tui_rl_display_match_list): Constify local `temp'.
9184 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9187 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9188 Fix DWARF-3+ DW_AT_accessibility default assumption.
9189 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9190 cu->header.version >= 3.
9192 2011-03-09 Yao Qi <yao@codesourcery.com>
9194 * common/Makefile.in: Remove.
9195 * common/configure: Remove.
9196 * common/configure.ac: Remove.
9198 2011-03-09 Yao Qi <yao@codesourcery.com>
9201 2011-02-11 Yao Qi <yao@codesourcery.com>
9203 * common/Makefile.in: Add copyright header.
9205 2011-02-11 Yao Qi <yao@codesourcery.com>
9207 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9209 * configure.ac: Add common to sub dir.
9210 * configure: Regenerate.
9212 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9214 * xtensa-tdep.c (call0_ret): New function.
9215 (xtensa_skip_prologue): Speed up analysis.
9217 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9219 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9220 while executing MI command -data-list-changed-registers.
9222 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9224 * xtensa-tdep.c (xtensa_read_register): New function.
9225 (xtensa_write_register): New function.
9226 (xtensa_find_register_by_name): New function.
9227 (xtensa_windowed_frame_cache): Update comments in type description.
9228 (xtensa_frame_cache): Likewise.
9229 (xtensa_window_interrupt_insn): New function.
9230 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9231 (xtensa_insn_kind): Add new instructions.
9232 (rwx_special_register): New function.
9233 (call0_classify_opcode): Add new instructions to the analysis.
9234 (a0_saved, a7_saved, a11_saved): New variables.
9235 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9236 (execute_l32e): New function.
9237 (execute_s32e): New function.
9238 (xtensa_exception_handler_t): New type.
9239 (execute_code): New function.
9240 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9241 analysis for Xtensa Window Exception handlers.
9243 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9245 * xtensa-tdep.c (TX_PS): New.
9246 (windowing_enabled): Update to count for Call0 ABI.
9247 (xtensa_hextochar): New.
9248 (xtensa_init_reggroups): Make algorithm generic.
9249 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9251 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9253 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9255 2011-03-08 Michael Snyder <msnyder@vmware.com>
9257 * i386-tdep.c (i386_follow_jump): Check return value of
9259 (i386_analyze_struct_return): Ditto.
9260 (i386_skip_probe): Ditto.
9261 (i386_match_insn): Ditto.
9262 (i386_skip_noop): Ditto.
9263 (i386_analyze_frame_setup): Ditto.
9264 (i386_analyze_register_saves): Ditto.
9265 (i386_skip_prologue): Ditto.
9266 (i386_skip_main_prologue): Ditto.
9268 * target.c (read_whatever_is_readable): Fix memory leak.
9270 * i386-tdep.c (i386_process_record): Document fall through.
9272 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9274 Fix DWARF-3+ DW_AT_accessibility default assumption.
9275 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9276 cu->header.version >= 3.
9278 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9280 * remote.c (remote_check_symbols): Skip if the target has no
9283 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9285 * target.c (read_whatever_is_readable): Reformat comment,
9286 with a minor typo fix. Minor reformatting of the code.
9288 2011-03-08 Yao Qi <yao@codesourcery.com>
9290 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9291 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9292 Use cached result instead of calling displaced_in_arm_mode again.
9293 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9294 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9295 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9296 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9297 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9298 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9299 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9300 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9301 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9302 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9303 (arm_catch_kernel_helper_return): Likewise.
9304 * gdb/arm-tdep.h : Update function declarations.
9306 2011-03-07 Michael Snyder <msnyder@vmware.com>
9308 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9310 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9312 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9314 * elfread.c (elf_symtab_read): Stop memory leak.
9316 * main.c (captured_main): Fix memory leak.
9318 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9320 * ada-lang.c (compare_names): Call is_name_suffix with string1
9323 2011-03-07 Tom Tromey <tromey@redhat.com>
9325 * xcoffread.c (xcoff_sym_fns): Update.
9326 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9327 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9328 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9329 (symbol_file_add_with_addrs_or_offsets): Likewise.
9330 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9331 * somread.c (som_sym_fns): Update.
9332 * psymtab.h (require_partial_symbols): Declare.
9333 * psymtab.c (require_partial_symbols): New function.
9334 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9335 (ALL_OBJFILE_PSYMTABS): Undef.
9336 (ALL_PSYMTABS): Move from psympriv.h.
9337 (lookup_partial_symtab, find_pc_sect_psymtab)
9338 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9339 (find_last_source_symtab_from_partial)
9340 (forget_cached_source_info_partial)
9341 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9342 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9343 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9344 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9345 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9346 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9347 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9348 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9349 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9351 * mipsread.c (ecoff_sym_fns): Update.
9352 * machoread.c (macho_sym_fns): Update.
9353 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9354 (read_psyms): New function.
9355 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9356 (elf_sym_fns_lazy_psyms): New global.
9357 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9358 dwarf2_build_psymtabs.
9359 * dbxread.c (aout_sym_fns): Update.
9360 * coffread.c (coff_sym_fns): Update.
9362 2011-03-07 Tom Tromey <tromey@redhat.com>
9364 * infrun.c (print_exited_reason): Include inferior id and pid in
9367 2011-03-07 Tom Tromey <tromey@redhat.com>
9369 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9371 (target_has_execution_1): Update.
9372 (target_has_execution_current): Declare.
9373 (target_has_execution): Call target_has_execution_current.
9374 (default_child_has_execution): Update.
9375 * target.c (default_child_has_execution): Add 'the_ptid'
9377 (target_has_execution_1): Likewise.
9378 (target_has_execution_current): New function.
9379 (add_target): Update.
9380 (init_dummy_target): Update.
9381 * remote-m32r-sdi.c (m32r_has_execution): New function.
9382 (init_m32r_ops): Use it.
9383 * record.c (record_core_has_execution): Now static. Add
9384 'the_ptid' parameter.
9385 * inferior.c (have_live_inferiors): Don't save current thread.
9386 Use target_has_execution_1.
9388 2011-03-07 Yao Qi <yao@codesourcery.com>
9390 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9392 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9394 * elfread.c (elf_symtab_read): Minor reformatting.
9396 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9398 * objc-lang.c (selectors_info): Minor reformatting.
9400 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9402 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9404 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9405 Michael Snyder <msnyder@vmware.com>
9407 * ada-valprint.c (ada_val_print_array): Move the declaration of
9408 "byte_order" and "elttype" inside the block where these variables
9409 are actually used. Remove some special handling for the case
9410 where "elttype" and "eltlen" are null. Replace by a comment
9411 and a couple of assertion checks.
9413 2011-03-05 Michael Snyder <msnyder@vmware.com>
9415 * source.c (add_path): Replace semicolon at end of block.
9416 * dwarf2expr.c (execute_stack_op): Ditto.
9418 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9420 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9421 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9422 (bfin-*-*): Likewise.
9424 2011-03-05 Michael Snyder <msnyder@vmware.com>
9426 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9427 * mdebugread.c (parse_symbol): Ditto.
9428 * parse.c (parse_exp_in_context): Ditto.
9429 * source.c (add_path): Ditto.
9430 * utils.c (gnu_debuglink_crc32): Ditto.
9431 * varobj.c (variable_language): Ditto.
9433 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9435 2011-03-04 Michael Snyder <msnyder@vmware.com>
9437 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9439 * symfile.c (simple_overlay_update): Check for null return value
9440 from lookup_minimal_symbol.
9442 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9444 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9446 * eval.c (parse_and_eval_address_1): Remove function.
9447 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9448 instead of parse_and_eval_address_1.
9449 * value.h (parse_and_eval_address_1): Remove prototype.
9451 2011-03-04 Michael Snyder <msnyder@vmware.com>
9453 * remote.c (putpkt_binary): Document that case stmt falls through.
9455 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9457 * breakpointc (print_it_typical): Move NULL check from here...
9458 (print_bp_stop_message): ... to here.
9460 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9462 * breakpoint.c (enable_command): Use break instead of continue,
9463 and fill in a missing break.
9464 (disable_command): Ditto.
9466 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9468 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9469 (terminal_save_ours): Remove misleading comment.
9470 (inflow_inferior_data_cleanup): Free ttystate.
9471 (inflow_inferior_exit): Likewise.
9472 (copy_terminal_info): Copy ttystate.
9474 * serial.c (serial_copy_tty_state): New function.
9475 * serial.h (serial_copy_tty_state): Add prototype.
9476 (struct serial_ops): Add copy_tty_state callback.
9477 * ser-base.c (ser_base_copy_tty_state): New function.
9478 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9479 * ser-go32.c (dos_copy_tty_state): New function.
9480 (dos_ops): Install copy_tty_state callback.
9481 * ser-mingw.c (_initialize_ser_windows): Likewise.
9482 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9483 * ser-unix.c (hardwire_copy_tty_state): New function.
9484 (_initialize_ser_hardwire): Install it.
9486 2011-03-04 Michael Snyder <msnyder@vmware.com>
9488 * breakpoint.c (create_breakpoint): Add missing break statement.
9490 Reverting this patch:
9491 * infcall.c (call_function_by_hand): Add break statements for lint.
9493 Reverting this patch:
9494 * cli/cli-script.c (script_from_file): Add break for lint.
9496 2011-03-04 Michael Snyder <msnyder@vmware.com>
9498 * solib.c (reload_shared_libraries_1): Close memory leak.
9500 2011-03-03 Tom Tromey <tromey@redhat.com>
9503 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9506 2011-03-03 Michael Snyder <msnyder@vmware.com>
9508 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9509 fields of struct 'st' to zero.
9511 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9512 sal.pspace before calling set_current_source_symtab_and_line.
9514 2011-03-03 Yao Qi <yao@codesourcery.com>
9516 * Makefile.in (configure-common): Remove. Let Makefile
9517 in dir common to rebuild itself.
9518 (common/Makefile): Likewise.
9520 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9522 * utils.c (parse_escape): Add i18n markup in error message.
9524 2011-03-03 Yao Qi <yao@codesourcery.com>
9526 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9528 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9529 (displaced_write_reg, displaced_read_reg): Likewise.
9530 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9531 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9532 (cleanup_branch): Replace magic number 14 and 15 with
9533 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9535 2011-03-02 Michael Snyder <msnyder@vmware.com>
9537 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9539 * cli/cli-script.c (script_from_file): Add break for lint.
9541 * mdebugread.c (parse_partial_symbols): Fix indent.
9543 * target-descriptions.c (tdesc_gdb_type): No need to call
9544 xstrdup, callee saves a copy.
9546 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9548 * infcall.c (call_function_by_hand): Add break statements for lint.
9550 * utils.c (parse_escape): Escape the escape char.
9552 * python/py-inferior.c (build_inferior_list): Error out if
9553 PyList_Append fails.
9554 (gdbpy_inferiors): Error out if build_inferior_list fails.
9556 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9559 * record.c (record_restore): Move printf to before error return.
9561 2011-03-02 Yao Qi <yao@codesourcery.com>
9563 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9564 is_thumb and insn_size.
9565 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9566 on both ARM and Thumb mode.
9567 (arm_process_displaced_insn): Set is_thumb and insn_size.
9568 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9569 (arm_displaced_step_fixup): Likewise.
9571 2011-03-01 Michael Snyder <msnyder@vmware.com>
9573 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9575 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9577 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9579 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9581 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9584 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9585 which shadows function parameter.
9587 * tracepoint.c (create_tsv_from_upload): Superfluous call
9588 to xstrdup. Callee already calls xstrdup.
9590 * linespec.c (decode_line_1): Remove unnecessary null check.
9592 * tracepoint.c (scope_info): Fix mem leak, remove underused
9595 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9596 superfluous null check.
9598 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9599 (value_of_builtin_frame_fp_reg): Ditto.
9601 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9603 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9606 * linespec.c (decode_line_1): Check for null before dereference.
9608 * reverse.c (record_restore): Move null-check to before pointer
9611 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9613 * objc-lang.c (selectors_info): Add explanitory comment.
9614 (classes_info): Ditto.
9616 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9618 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9619 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9620 versions of the trampoline. Handle Thumb vs. ARM addresses.
9621 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9622 (arm_linux_init_abi): Install it.
9623 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9624 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9626 2011-02-28 Michael Snyder <msnyder@vmware.com>
9628 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9629 a little bigger, to avoid possibility of an overflow.
9631 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9632 buffers a little bigger, to avoid possibility of an overflow.
9634 * coffread.c (coff_getfilename): Add check to avoid overflow.
9636 * objc-lang.c (selectors_info): Add a small safety margin to
9638 (classes_info): Error out on too long REGEXP.
9640 * infrun.c (handle_inferior_event): Remove unused function call.
9642 * fork-child.c (fork_inferior): Remove ifdef'd code and
9645 * linux-thread-db.c (attach_thread): Discard unused value.
9647 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9649 * remote.c (remote_get_noisy_reply): Discard unused value.
9650 (remote_vcont_resume): Ditto.
9651 (remote_stop_ns): Ditto.
9653 * linespec.c (decode_objc): Delete unused variable.
9655 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9657 * dwarf2read.c (add_partial_symbol): Discard unused values.
9658 (read_base_type): Delete unused variable.
9660 * dbxread.c (read_dbx_symtab): Discard unused value.
9662 * eval.c (evaluate_subexp_standard): Delete unused variable,
9663 and discard unused values.
9665 * infcmd.c (_initialize_infcmd): Discard unused values.
9667 * stabsread.c (rs6000_builtin_type): Missing break statement.
9669 * dbxread.c (process_one_symbol): Discard unused value.
9671 * coffread.c (coff_end_symtab): Delete unused variable.
9673 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9674 (dwarf2_add_typedef): Delete unused variable.
9675 (read_namespace): Ditto.
9676 (dwarf_decode_macros): Ditto.
9678 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9680 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9682 * p-valprint.c (pascal_val_print): Discard unused value.
9684 * utils.c (nquery): Call va_end before return;
9688 * proc-service.c (ps_plog): Call va_end before return.
9690 2011-02-28 Tom Tromey <tromey@redhat.com>
9692 * python/python.c (gdbpy_value_cst): New global.
9693 (_initialize_python): Initialize it.
9694 * python/python-internal.h (gdbpy_value_cst): Declare.
9695 * python/py-value.c (convert_value_from_python): Use
9698 2011-02-28 Michael Snyder <msnyder@vmware.com>
9700 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9702 * breakpoint.c (catch_syscall_completer): Free malloced list.
9704 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9706 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9707 (lval_func_check_synthetic_pointer): Ditto.
9708 (lval_func_free_closure): Fix use-after-free.
9710 2011-02-28 Tom Tromey <tromey@redhat.com>
9712 * psymtab.c (expand_partial_symbol_tables): Use
9713 ALL_OBJFILE_PSYMTABS.
9715 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9717 * objc-lang.c (selectors_info): Error on too long REGEXP.
9719 2011-02-28 Michael Snyder <msnyder@vmware.com>
9721 * python/py-param.c (set_parameter_value): Add missing
9724 * linux-record.c (record_linux_system_call): Add missing
9727 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9729 * breakpoint.c (print_one_breakpoint_location): Remove unused
9730 argument PRINT_ADDRESS_BITS. Update callers.
9731 (print_one_breakpoint): Likewise.
9733 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9735 * breakpoint.c (wrap_indent_at_field): New function.
9736 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9737 Allocate ui_stream locally instead of using STB argument.
9738 (print_one_breakpoint_location): Update call.
9739 * ui-out.c (ui_out_query_field): New function.
9740 * ui-out.h (ui_out_query_field): Add prototype.
9742 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9744 From Michael Snyder <msnyder@vmware.com>
9745 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9747 2011-02-27 Michael Snyder <msnyder@vmware.com>
9749 * objc-lang.c (selectors_info): Prevent string overrun.
9751 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9754 * symtab.c (rbreak_command): Move variable 'file_name' to
9757 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9758 param with a local variable of the same name.
9760 2011-02-27 Michael Snyder <msnyder@vmware.com>
9762 * value.c (value_from_history_ref): New function.
9763 * value.h (value_from_history_ref): Export.
9764 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9765 to parse value history references.
9766 * cli/cli-utils.h (get_number_trailer): Update comment.
9768 2011-02-27 Michael Snyder <msnyder@vmware.com>
9770 * inferior.c (detach_inferior_command): Use get_number_or_range.
9771 (kill_inferior_command): Ditto.
9772 (remove_inferior_command): Ditto.
9773 (initialize_inferiors): Make command names plural.
9774 Update help strings.
9776 2011-02-27 Michael Snyder <msnyder@vmware.com>
9778 * darwin-nat-info.c: Fix comment typo.
9779 * dwarf2expr.h: Ditto.
9780 * fbsd-nat.c: Ditto.
9781 * fbsd-nat.h: Ditto.
9782 * frame-unwind.h: Ditto.
9784 * hppa-hpux-tdep.c: Ditto.
9785 * i386-linux-nat.c: Ditto.
9786 * linux-nat.c: Ditto.
9787 * nbsd-nat.c: Ditto.
9788 * nbsd-nat.h: Ditto.
9789 * ppc-linux-tdep.c: Ditto.
9792 * tui/tui-winsource.c: Ditto.
9794 2011-02-26 Michael Snyder <msnyder@vmware.com>
9796 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9798 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9800 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9801 with a local variable of the same name.
9803 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9804 param with a local variable of the same name.
9805 (i387_supply_xsave): Ditto.
9807 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9808 that it does not shadow a function parameter.
9810 * i386-nat.c (i386_length_and_rw_bits): Document that case
9811 statement is meant to fall through.
9813 * expprint.c (dump_subexp_body_standard): Document that case
9814 statement is meant to fall through.
9816 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9817 dead if statement. Condition can't be false.
9819 2011-02-25 Michael Snyder <msnyder@vmware.com>
9821 * arm-tdep.c: Fix typos in comments.
9822 * bsd-uthread.c: Ditto.
9823 * completer.c: Ditto.
9825 * cp-namespace.c: Ditto.
9826 * cp-support.c: Ditto.
9827 * cris-tdep.c: Ditto.
9829 * dwarf2read.c: Ditto.
9831 * gdbtypes.h: Ditto.
9832 * inferior.h: Ditto.
9833 * mdebugread.c: Ditto.
9834 * mips-tdep.c: Ditto.
9835 * ppc-linux-nat.c: Ditto.
9836 * ppc-linux-tdep.c: Ditto.
9837 * printcmd.c: Ditto.
9838 * sol-thread.c: Ditto.
9839 * solib-frv.c: Ditto.
9841 * sparc64-tdep.c: Ditto.
9842 * spu-tdep.c: Ditto.
9843 * stabsread.c: Ditto.
9848 * python/py-block.c: Ditto.
9849 * python/py-symbol.c: Ditto.
9850 * python/py-symtab.c: Ditto.
9851 * python/py-value.c: Ditto.
9852 * tui/tui-win.c: Ditto.
9854 2011-02-25 Michael Snyder <msnyder@vmware.com>
9856 * inferior.c (print_inferior): Accept a string instead of an int
9857 for requested_inferiors, and use get_number_or_range to parse it.
9858 (info_inferiors_command): Pass args string to print_inferior.
9859 (initialize_inferiors): Change help string for info inferiors.
9860 * inferior.h (print_inferior): Export prototype change.
9862 2011-02-25 Tom Tromey <tromey@redhat.com>
9864 * common/ax.def (invalid2): Set to 0x31.
9866 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9868 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9870 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9872 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9874 2011-02-24 Michael Snyder <msnyder@vmware.com>
9876 * Makefile.in (clean): Make clean should remove generated files
9877 observer.h and observer.inc.
9879 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9881 Revert the following patch (not approved yet):
9882 2011-02-21 Hui Zhu <teawater@gmail.com>
9883 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9884 * ax-gdb.c (gen_printf_expr_callback): New function.
9885 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9886 * ax-general.c (ax_memcpy): New function.
9887 (ax_print): Handle "printf".
9889 * ax.h (ax_memcpy): Forward declare.
9890 * common/ax.def (invalid2): Removed.
9891 (printf): New entry.
9892 * printcmd.c (printcmd.h): New include.
9893 (string_printf): New function.
9894 (ui_printf): Removed.
9895 (printf_command): Remove static. Call string_printf.
9896 (eval_command): Call string_printf.
9897 * printcmd.h: New file.
9898 * tracepoint.c (validate_actionline,
9899 encode_actions_1): handle printf_command.
9901 2011-02-23 Tom Tromey <tromey@redhat.com>
9903 * ax-general.c (ax_pick): Add missing newline.
9905 2011-02-23 Michael Snyder <msnyder@vmware.com>
9907 * breakpoint.c (breakpoint_1): Change first argument from an int
9908 to a char pointer, so that the function now accepts a list of
9909 breakpoints rather than just one. Use new function
9910 'number_is_in_list' to implement.
9911 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9912 (watchpoints_info): Ditto.
9913 (tracepoints_info): Ditto.
9914 (maintenance_info_breakpoints): Ditto.
9915 (_initialize_breakpoint): Update help strings to reflect the fact
9916 that these functions can now take more than one argument.
9917 * cli/cli-utils.c (number_is_in_list): New function.
9918 * cli/cli-utils.h (number_is_in_list): Export.
9920 2011-02-23 Michael Snyder <msnyder@vmware.com>
9922 * memattr.c (mem_enable_command): Use get_number_or_range.
9923 (mem_disable_command): Ditto.
9924 (mem_delete_command): Ditto.
9925 (_initialize_mem): Tweak usage message to reflect multiple
9928 2011-02-22 Doug Evans <dje@google.com>
9930 Add gdb.lookup_global_symbol python function.
9932 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9933 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9934 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9936 2011-02-22 Tom Tromey <tromey@redhat.com>
9938 * language.c (language_class_name_from_physname): Rename
9939 'curr_language' argument to 'lang'; use in body.
9941 2011-02-22 Michael Snyder <msnyder@vmware.com>
9943 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9945 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9947 * frame-unwind.h: Fix comment to mention the this frame, not the
9950 2011-02-22 Tom Tromey <tromey@redhat.com>
9952 * symfile.c (auto_solib_limit): Remove.
9953 * symfile.h (auto_solib_limit): Remove.
9955 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9957 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9959 2011-02-21 Michael Snyder <msnyder@vmware.com>
9961 * gdbthread.h (print_thread_info): Change prototype.
9962 * thread.c (print_thread_info): Accept char* instead of int for
9963 requested_threads argument. Use new function number_is_in_list
9964 to determine which threads to list.
9965 (info_threads_command): Pass char* to print_thread_info.
9966 * cli/cli-utils.c (number_is_in_list): New function.
9967 * cli/cli-utils.h (number_is_in_list): Export.
9968 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9970 (print_one_inferior): Ditto.
9971 (mi_cmd_list_thread_groups): Ditto.
9973 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9975 * common/Makefile.in (CFLAGS): New.
9976 (COMPILE): Add $(CFLAGS).
9978 2011-02-21 Tom Tromey <tromey@redhat.com>
9980 * breakpoint.c (catch_syscall_command_1): Fix typo.
9982 2011-02-21 Tom Tromey <tromey@redhat.com>
9984 * reverse.c: Include cli-utils.h.
9985 * printcmd.c: Include cli-utils.h.
9986 (string_printf): Use skip_spaces.
9987 * cli/cli-utils.h: New file.
9988 * cli/cli-utils.c: New file.
9989 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9990 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9991 * breakpoint.h (get_number, get_number_or_range): Move to
9993 * breakpoint.c: Include cli-utils.h.
9994 (get_number_trailer, get_number, get_number_or_range)
9995 (ep_skip_leading_whitespace): Move to cli-utils.c.
9996 (create_breakpoint_sal, find_condition_and_thread)
9997 (decode_static_tracepoint_spec, watch_command_1)
9998 (watch_maybe_just_location, ep_parse_optional_if_clause)
9999 (catch_fork_command_1, catch_exec_command_1)
10000 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10001 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10002 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10003 (HFILES_NO_SRCDIR): Add cli-utils.h.
10004 (cli-utils.o): New target.
10006 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10008 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10009 before calling discard_all_inferiors.
10011 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10013 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10014 (struct builtin_opencl_type): Remove.
10015 (builtin_opencl_type): Change return type to "struct type **".
10016 (lookup_opencl_vector_type): Update caller.
10017 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10018 (build_opencl_types): Install plain array of "struct type *"
10019 instead of "struct builtin_opencl_type".
10021 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10022 Ulrich Weigand <uweigand@de.ibm.com>
10024 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10025 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10026 (struct arm_linux_hwbp_cap): New type.
10027 (arm_linux_get_hwbp_cap): New function.
10028 (arm_linux_get_hw_breakpoint_count): Likewise.
10029 (arm_linux_get_hw_watchpoint_count): Likewise.
10030 (arm_linux_can_use_hw_breakpoint): Likewise.
10031 (arm_hwbp_type): New type.
10032 (arm_hwbp_control_t): Likewise.
10033 (struct arm_linux_hw_breakpoint): Likewise.
10034 (struct arm_linux_thread_points): Likewise.
10035 (arm_threads): New global variable.
10036 (arm_linux_find_breakpoints_by_tid): New function.
10037 (arm_hwbp_control_initialize): Likewise.
10038 (arm_hwbp_control_is_enabled): Likewise.
10039 (arm_hwbp_control_disable): Likewise.
10040 (arm_linux_hw_breakpoint_initialize): Likewise.
10041 (arm_linux_get_hwbp_type): Likewise.
10042 (arm_linux_hw_watchpoint_initialize): Likewise.
10043 (arm_linux_hw_breakpoint_equal): Likewise.
10044 (arm_linux_insert_hw_breakpoint1): Likewise.
10045 (arm_linux_remove_hw_breakpoint1): Likewise.
10046 (arm_linux_insert_hw_breakpoint): Likewise.
10047 (arm_linux_remove_hw_breakpoint): Likewise.
10048 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10049 (arm_linux_insert_watchpoint): Likewise.
10050 (arm_linux_remove_watchpoint): Likewise.
10051 (arm_linux_stopped_data_address): Likewise.
10052 (arm_linux_stopped_by_watchpoint): Likewise.
10053 (arm_linux_watchpoint_addr_within_range): Likewise.
10054 (arm_linux_new_thread): Likewise.
10055 (arm_linux_thread_exit): Likewise.
10056 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10057 related target callbacks. Register arm_linux_new_thread and
10058 arm_linux_thread_exit.
10059 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10060 * arm-tdep.c (arm_pc_is_thumb): Make global.
10061 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10063 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10065 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10066 per-frame locations while within a function epilogue.
10068 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10070 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10071 to GNU coding standards.
10073 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10075 Allow use of mingw native on Windows 95 OS.
10076 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10077 (ser_windows_close): Only call CancelIo if function exists.
10078 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10079 to check for existence of CancelIo function in kernel32 DLL.
10081 2011-02-21 Hui Zhu <teawater@gmail.com>
10083 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10084 * ax-gdb.c (gen_printf_expr_callback): New function.
10085 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10086 * ax-general.c (ax_memcpy): New function.
10087 (ax_print): Handle "printf".
10089 * ax.h (ax_memcpy): Forward declare.
10090 * common/ax.def (invalid2): Removed.
10091 (printf): New entry.
10092 * printcmd.c (printcmd.h): New include.
10093 (string_printf): New function.
10094 (ui_printf): Removed.
10095 (printf_command): Remove static. Call string_printf.
10096 (eval_command): Call string_printf.
10097 * printcmd.h: New file.
10098 * tracepoint.c (validate_actionline,
10099 encode_actions_1): handle printf_command.
10101 2011-02-19 Michael Snyder <msnyder@vmware.com>
10103 * reverse.c (delete_one_bookmark): Argument is now bookmark
10104 id rather than pointer to bookmark struct.
10105 (delete_bookmark_command): Use get_number_or_range.
10106 (goto_bookmark_command): Parse with get_number instead of strtoul.
10107 (bookmark_1): New function. Print info for one bookmark.
10108 (bookmarks_info): Use get_number_or_range and bookmark_1.
10110 2011-02-18 Michael Snyder <msnyder@vmware.com>
10112 * thread.c (info_threads_command): Re-implement using
10113 get_number_or_range.
10114 (thread_apply_command): Ditto.
10116 2011-02-18 Tom Tromey <tromey@redhat.com>
10118 * common/ax.def: New file.
10119 * ax.h (enum agent_op): Use ax.def.
10120 * ax-general.c (aop_map): Use ax.def.
10122 2011-02-18 Tom Tromey <tromey@redhat.com>
10124 * ax-general.c (aop_map): Add pick and rot.
10125 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10126 <DW_OP_rot>: Implement.
10127 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10128 (ax_pick): Declare.
10129 * ax-general.c (ax_pick): New function.
10131 2011-02-18 Tom Tromey <tromey@redhat.com>
10133 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10135 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10136 Tom Tromey <tromey@redhat.com>
10138 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10139 make_symbol_overload_list_block with NULL BLOCK.
10140 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10142 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10144 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10145 * breakpoint.h (get_number_or_range): Declare.
10146 * printcmd.c (ALL_DISPLAYS): Declare.
10147 (delete_display): Reimplement taking a display pointer.
10148 (undisplay_command): Accept a range of displays to delete, using
10149 get_number_or_range.
10151 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10153 * c-valprint.c (c_val_print): Add embedded_offset to address
10154 for arrays of unspecified length.
10155 * p-valprint.c (pascal_val_print): Likewise.
10157 2011-02-18 Yao Qi <yao@codesourcery.com>
10159 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10160 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10161 (thumb_process_displaced_insn): New.
10162 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10163 call to arm_process_displaced_insn.
10164 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10166 2011-02-17 Tom Tromey <tromey@redhat.com>
10168 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10169 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10170 compile_dwarf_to_ax. No longer static. Call
10171 dwarf2_compile_cfa_to_ax.
10172 (locexpr_tracepoint_var_ref): Update.
10173 (loclist_tracepoint_var_ref): Update.
10174 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10175 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10176 argument; add 'gdbarch' and 'pc'.
10177 (dwarf2_compile_cfa_to_ax): New function.
10178 (dwarf2_frame_cache): Update.
10180 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10182 * ada-lang.c (ada_type_of_array): Fix the size of the array
10183 in the case of an unconstrained packed array.
10185 2011-02-17 Yao Qi <yao@codesourcery.com>
10187 * common/Makefile.in: Add more targets for make.
10189 2011-02-16 Tom Tromey <tromey@redhat.com>
10191 * dwarf2loc.c (unimplemented): Fix typo.
10193 2011-02-16 Tom Tromey <tromey@redhat.com>
10195 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10196 (compile_dwarf_to_ax) <default>: Use unimplemented.
10197 <DW_OP_deref>: Update.
10198 (disassemble_dwarf_expression): Update.
10199 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10200 (decode_locdesc): Update.
10201 * dwarf2expr.h (dwarf_stack_op_name): Update.
10203 2011-02-16 Tom Tromey <tromey@redhat.com>
10205 * ax.h (struct aop_map) <name>: Now const.
10207 2011-02-16 Tom Tromey <tromey@redhat.com>
10209 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10212 2011-02-16 Yao Qi <yao@codesourcery.com>
10214 * infrun.c (get_displaced_step_closure_by_addr): New.
10215 * inferior.h: Declare it.
10216 * arm-tdep.c: (arm_pc_is_thumb): Call
10217 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10220 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10221 Jan Kratochvil <jan.kratochvil@redhat.com>
10224 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10226 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10227 Jan Kratochvil <jan.kratochvil@redhat.com>
10229 * value.c (value_contents_copy_raw): Extend describing comment.
10230 Assert that the destination contents we're overwriting are wholly
10232 (value_contents_copy): Extend describing comment.
10234 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10235 Jan Kratochvil <jan.kratochvil@redhat.com>
10237 * value.c (value_available_contents_eq): Remove redundant local
10238 variables. Fix available contents comparision.
10239 * value.h (value_available_contents_eq): Extend describing
10242 2011-02-16 Yao Qi <yao@codesourcery.com>
10244 * thread.c (info_threads_command): Add missing i18n markup and remove
10247 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10249 * breakpoint.c (longjmp_names): New variable.
10250 (struct breakpoint_objfile_data): New type.
10251 (breakpoint_objfile_key): New variable.
10252 (msym_not_found): New variable.
10253 (msym_not_found_p): New predicate.
10254 (get_breakpoint_objfile_data): New function.
10255 (create_overlay_event_breakpoint): Check per-objfile cache for
10257 (create_longjmp_master_breakpoint): Likewise.
10258 (create_std_terminate_master_breakpoint): Likewise.
10259 (create_exception_master_breakpoint): Likewise.
10260 (_initialize_breakpoint): Register per-objfile data key.
10262 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10264 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10266 (create_longjmp_master_breakpoint): Loop over longjmp names.
10267 (create_std_terminate_master_breakpoint): Const-propagate parameter
10269 (update_breakpoints_after_exec): Adjust.
10270 (breakpoint_re_set): Adjust.
10272 2011-02-15 Michael Snyder <msnyder@vmware.com>
10274 * thread.c (info_threads_command): Process arg as thread id,
10275 or list of thread ids.
10276 (thread_find_command): New command.
10277 (_initialize_thread): Document argument for info threads.
10278 Document 'thread find' command.
10279 * NEWS: Document new command "thread find".
10281 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10283 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10284 * aclocal.m4: Regenerated with aclocal-1.11.1.
10285 * common/configure: Regenerate with autoconf-2.64.
10287 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10289 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10290 bool data type to a size of one byte.
10292 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10293 Jan Kratochvil <jan.kratochvil@redhat.com>
10295 * target.c (memory_xfer_live_readonly_partial): Document where to
10296 look for interface description.
10298 2011-02-15 Yao Qi <yao@codesourcery.com>
10301 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10302 order to store PC value on stack instead of text section.
10304 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10306 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10307 the EFP register set size.
10308 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10309 data from the VMX register.
10310 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10311 and write data from/to the VMX register.
10313 2011-02-14 Michael Snyder <msnyder@vmware.com>
10315 * command.h (enum command_class): New class 'no_set_class', for
10316 "show" commands without a corresponding "set" command.
10317 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10318 * copying.c (_initialize_copying): Ditto for "show copying" and
10320 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10322 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10323 which there is no corresponding "set" command (eg. "show copying").
10325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10326 Jan Kratochvil <jan.kratochvil@redhat.com>
10328 * exec.c (section_table_available_memory): Change `len' parameter
10330 * exec.h (section_table_available_memory): Ditto.
10331 * value.h (read_value_memory): Rename the `offset' parameter to
10334 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10335 Jan Kratochvil <jan.kratochvil@redhat.com>
10337 * memrange.c (compare_mem_ranges): Mention sort order in
10338 describing comment.
10339 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10340 * tracepoint.c (traceframe_available_memory): Extend comment to
10341 mention what happens to RESULT when the target does not support
10344 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10345 Jan Kratochvil <jan.kratochvil@redhat.com>
10347 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10352 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10353 No longer handle NULL values.
10355 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10357 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10358 * value.c: Include "exceptions.h".
10359 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10361 * cp-abi.c: Include gdb_assert.h.
10362 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10363 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10365 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10366 parameters. No longer returns -1 on error.
10367 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10369 * cp-valprint.c: Include exceptions.h.
10370 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10371 the baseclass_offset. Handle unavailable base classes. Use
10372 val_print_invalid_address.
10373 * p-valprint.c: Include exceptions.h.
10374 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10375 when fetching the baseclass_offset. No longer expect
10376 baseclass_offset returning -1. Handle unavailable base classes.
10377 Use val_print_invalid_address.
10378 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10379 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10380 `embedded_offset' and `val' parameters. Adjust.
10381 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10382 parameter, and change its type to gdb_byte pointer. Add
10383 `embedded_offset' and `val' parameters. Adjust. No longer expect
10384 baseclass_offset returning -1.
10385 (value_dynamic_cast): Use value_contents_for_printing rather than
10386 value_contents. Adjust.
10387 (search_struct_field): No longer expect baseclass_offset returning
10389 (search_struct_method): If reading memory from the target is
10390 necessary, wrap it in a new value to pass to baseclass_offset. No
10391 longer expect baseclass_offset returning -1.
10392 (find_method_list): No longer expect baseclass_offset returning
10393 -1. Use value_contents_for_printing rather than value_contents.
10394 * valprint.c (val_print_invalid_address): New function.
10395 * valprint.h (val_print_invalid_address): Declare.
10396 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10397 and `val' parameters. No longer expect baseclass_offset returning
10399 * gnu-v2-abi.c: Include "exceptions.h".
10400 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10401 parameters. Handle unavailable memory. Recurse through
10402 gnuv2_baseclass_offset directly, rather than through
10403 baseclass_offset. No longer returns -1 on not found, instead
10405 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10406 `val' parameters. Adjust.
10408 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10410 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10411 almost but not quite adjacent.
10413 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10415 * value.h (value_entirely_available): Declare.
10416 * value.c (value_entirely_available): New function.
10417 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10418 real type if the pointer is unavailable.
10420 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10422 * valops.c (value_repeat): Use read_value_memory instead of
10425 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10427 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10428 * value.c (value_contents_copy_raw, value_contents_copy): New
10430 (value_primitive_field): Use value_contents_copy_raw instead of
10432 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10434 (value_array, value_slice): Ditto.
10435 * valarith.c (value_subscripted_rvalue): Use
10436 value_contents_copy_raw instead of memcpy.
10438 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10440 <unavailable> references.
10442 * valops.c (get_value_at): Use value_from_contents_and_address,
10443 avoiding read_memory.
10445 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10447 * c-valprint.c (c_val_print): Print a string with unavailable
10448 contents as an array.
10450 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10452 * value.h (unpack_bits_as_long): Delete declaration.
10453 (unpack_value_bits_as_long): Declare.
10454 (unpack_value_field_as_long): Declare.
10455 (value_field_bitfield): Declare.
10456 * value.c (unpack_bits_as_long): Rename to...
10457 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10458 value parameters. Return the extracted result in a new output
10459 parameter. If the value contents are unavailable, return false,
10460 otherwise return true.
10461 (unpack_value_bits_as_long): New.
10462 (unpack_field_as_long): Rename to...
10463 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10464 Add embedded_offset and value parameters. Return the extracted
10465 result in a new output parameter. If the value contents are
10466 unavailable, return false, otherwise return true.
10467 (unpack_value_field_as_long): New.
10468 (unpack_field_as_long_1): New.
10469 (unpack_field_as_long): Reimplement as wrapper around
10470 unpack_value_field_as_long_1.
10471 (value_field_bitfield): New function.
10472 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10473 unpack_value_bits_as_long. Mark the value as unavailable, if it
10475 * jv-valprint.c (java_print_value_fields): Use
10476 value_field_bitfield.
10477 * p-valprint.c (pascal_object_print_value_fields): Use
10478 value_field_bitfield.
10479 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10483 * value.c (get_internalvar_integer): Also return the int value of
10484 TYPE_CODE_INT INTERNALVAR_VALUE values.
10485 (set_internalvar): Don't special case TYPE_CODE_INT.
10487 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10489 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10490 INTERNALVAR_POINTER.
10492 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10493 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10494 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10496 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10498 * value.h (value_available_contents_eq): Declare.
10499 * value.c (find_first_range_overlap): New function.
10500 (value_available_contents_eq): New function.
10501 * valprint.c (val_print_array_elements): Use
10502 value_available_contents_eq.
10503 * ada-valprint.c (val_print_packed_array_elements): Use
10504 value_available_contents_eq.
10505 * jv-valprint.c (java_value_print): Use
10506 value_available_contents_eq.
10508 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10510 * target.c (target_read_live_memory): New function.
10511 (memory_xfer_live_readonly_partial): New.
10512 (memory_xfer_partial): If reading from a traceframe, fallback to
10513 reading unavailable read-only memory from read-only regions of
10514 live target memory.
10515 * tracepoint.c (disconnect_tracing): Adjust.
10516 (set_current_traceframe): New, factored out from
10517 set_traceframe_number.
10518 (set_traceframe_number): Reimplement to only change the traceframe
10519 number on the GDB side.
10520 (do_restore_current_traceframe_cleanup): Adjust.
10521 (make_cleanup_restore_traceframe_number): New.
10522 (cur_traceframe_number): New global.
10523 (tfile_open): Set cur_traceframe_number to no traceframe.
10524 (set_tfile_traceframe): New function.
10525 (tfile_trace_find): If looking up a traceframe using any method
10526 other than by number, make sure the current tfile traceframe
10527 matches gdb's current traceframe. Update the current tfile
10528 traceframe if the lookup succeeded.
10529 (tfile_fetch_registers, tfile_xfer_partial)
10530 (tfile_get_trace_state_variable_value): Make sure the remote
10531 traceframe matches gdb's current traceframe.
10532 * remote.c (remote_traceframe_number): New global.
10533 (remote_open_1): Set it to -1.
10534 (set_remote_traceframe): New function.
10535 (remote_fetch_registers, remote_store_registers)
10536 (remote_xfer_memory, remote_xfer_partial)
10537 (remote_get_trace_state_variable_value): Make sure the remote
10538 traceframe matches gdb's current traceframe.
10539 (remote_trace_find): If looking up a traceframe using any method
10540 other than by number, make sure the current remote traceframe
10541 matches gdb's current traceframe. Update the current remote
10542 traceframe if the lookup succeeded.
10543 * infrun.c (fetch_inferior_event): Adjust.
10544 * tracepoint.h (set_current_traceframe): Declare.
10545 (get_traceframe_number, set_traceframe_number): Add describing
10548 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10550 Mark pieces of values as unavailable if the corresponding memory
10553 * valops.c: Include tracepoint.h.
10554 (value_fetch_lazy): Use read_value_memory.
10555 (read_value_memory): New.
10556 * value.h (read_value_memory): Declare.
10557 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10558 * exec.c (section_table_available_memory): New function.
10559 * exec.h (section_table_available_memory): Declare.
10561 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10563 * Makefile.in (SFILES): Add memrange.c.
10564 (HFILES_NO_SRCDIR): Add memrange.h.
10565 (COMMON_OBS): Add memrange.o.
10566 * memrange.c: New file.
10567 * memrange.h: New file.
10568 * tracepoint.c: Include memrange.h.
10569 (struct mem_range): Delete.
10570 (mem_range_s): Delete.
10571 (traceframe_available_memory): New function.
10572 * tracepoint.h (traceframe_available_memory): Declare.
10574 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10576 * target.h (struct traceframe_info): Forward declare.
10577 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10578 (struct target_ops) <to_traceframe_info>: New field.
10579 (target_traceframe_info): New.
10580 * target.c (update_current_target): Inherit and default
10581 to_traceframe_info.
10582 * remote.c (PACKET_qXfer_traceframe_info): New.
10583 (remote_protocol_features): Register qXfer:traceframe-info:read.
10584 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10585 (remote_traceframe_info): New.
10586 (init_remote_ops): Install it.
10587 (_initialize_remote): Install "set/show remote traceframe-info"
10589 * tracepoint.h (parse_traceframe_info): Declare.
10590 * tracepoint.c (struct mem_range): New.
10591 (mem_range_s): New typedef.
10592 (struct traceframe_info): New.
10593 (traceframe_info): New global.
10594 (free_traceframe_info): New function.
10595 (clear_traceframe_info): New function.
10596 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10598 (build_traceframe_info): New function.
10599 (tfile_traceframe_info): New function.
10600 (init_tfile_ops): Install tfile_traceframe_info.
10601 (traceframe_info_start_memory, free_result): New functions.
10602 (memory_attributes, traceframe_info_elements): New globals.
10603 (parse_traceframe_info, get_traceframe_info): New functions.
10604 * features/traceframe-info.dtd: New file.
10605 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10607 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10609 Base support for <unavailable> value contents.
10611 * value.h (value_bytes_available): Declare.
10612 (mark_value_bytes_unavailable): Declare.
10613 * value.c (struct range): New struct.
10614 (range_s): New typedef.
10615 (ranges_overlap): New function.
10616 (range_lessthan): New function.
10617 (ranges_contain_p): New function.
10618 (struct value) <unavailable>: New field.
10619 (value_bytes_available): New function.
10620 (mark_value_bytes_unavailable): New function.
10621 (require_not_optimized_out): Constify parameter.
10622 (require_available): New function.
10623 (value_contents_all, value_contents): Require all bytes be
10625 (value_free): Free `unavailable'.
10626 (value_copy): Copy `unavailable'.
10627 * valprint.h (val_print_unavailable): Declare.
10628 * valprint.c (valprint_check_validity): Rename `offset' parameter
10629 to `embedded_offset'. If printing a scalar, check whether the
10630 value chunk is available.
10631 (val_print_unavailable): New.
10632 (val_print_scalar_formatted): Check whether the value is
10634 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10635 pretty-printing unavailable values.
10637 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10639 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10640 * c-typeprint.c (c_type_print_args): Update the function comment. New
10641 variable param_type, initialize it. Remove const/volatile qualifiers
10642 for language_cplus and !show_artificial. Use param_type.
10644 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10646 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10647 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10648 * symtab.h (struct symtab) <next>: Comment extension.
10650 2011-02-12 Yao Qi <yao@codesourcery.com>
10652 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10654 2011-02-11 Yao Qi <yao@codesourcery.com>
10656 * common/Makefile.in: Add copyright header.
10658 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10660 * infrun.c (proceed): Move switching out and in of tfind mode from
10662 (fetch_inferior_event): ... to here.
10664 2011-02-11 Yao Qi <yao@codesourcery.com>
10666 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10668 * configure.ac: Add common to sub dir.
10669 * configure: Regenerate.
10671 2011-02-11 Yao Qi <yao@codesourcery.com>
10675 * common/Makefile.in: New.
10676 * common/configure.ac: New.
10677 * common/aclocal.m4: New.
10678 * common/configure: Generate.
10680 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10682 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10683 side of the parenthesis.
10686 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10687 * vec.h (VEC_block_remove): Fix comment.
10689 2011-02-08 Michael Snyder <msnyder@vmware.com>
10691 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10693 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10695 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10696 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10699 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10702 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10704 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10705 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10707 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10709 * dwarf2read.c (read_subroutine_type): Set special calling
10710 convention flag for functions compiled by IBM XL C for OpenCL.
10711 * ppc-sysv-tdep.c: Include "dwarf2.h"
10712 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10713 calling convention.
10714 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10715 IBM OpenCL vector types calling convention.
10716 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10717 (ppc_sysv_abi_broken_return_value): Likewise.
10718 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10719 types calling convention.
10720 (ppc64_sysv_abi_return_value): Likewise.
10721 * spu-tdep.c: Include "dwarf2.h"
10722 (spu_return_value): Implement IBM OpenCL vector types calling
10725 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10728 correct ABI for AltiVec vector arguments.
10730 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10732 * valprint.c (val_print): Extend comment.
10733 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10734 interface explanation to val_print.
10735 (ada_val_print_array): Adjust comment to current interface.
10736 (print_field_values): Adjust comment to current interface.
10737 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10738 explanation to val_print.
10739 * f-valprint.c (f_val_print): Ditto.
10740 * jv-valprint.c (java_val_print): Ditto.
10741 * m2-valprint.c (m2_val_print): Ditto.
10742 * p-valprint.c (pascal_val_print): Ditto.
10744 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10746 * breakpoint.c (parse_breakpoint_sals): Fix description.
10748 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10749 Oguz Kayral <oguzkayral@gmail.com>
10751 * python/py-inferior.c (python_on_normal_stop): New function.
10752 (python_on_resume): New function.
10753 (python_inferior_exit): New function.
10754 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10755 inferior_exit observers.
10756 * python/py-evtregistry.c: New file.
10757 * python/py-threadevent.c : New file.
10758 * python/py-event.c: New file.
10759 * python/py-evts.c: New file.
10760 * python/py-continueevent.c: New file.
10761 * python/py-bpevent.c: New file.
10762 * python/py-signalevent.c: New file.
10763 * python/py-exetiedevent.c: New file.
10764 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10765 Move struct breakpoint_object from here...
10766 * python/python-internal.h: ... to here.
10767 * python/py-event.h: New file.
10768 * python/py-events.h: New file.
10769 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10770 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10771 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10772 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10773 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10774 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10775 Add build rules for all the above.
10777 2011-02-04 Tom Tromey <tromey@redhat.com>
10779 * dwarf2read.c (dwarf2_section_empty_p): New function.
10780 (dwarf2_read_section): Use dwarf2_section_empty_p.
10781 (dwarf2_section_size): New function.
10782 (dwarf2_get_section_info): Unconditionally read section.
10783 (dwarf2_read_index): Use dwarf2_section_empty_p.
10784 (partial_read_comp_unit_head): Use dwarf2_section_size.
10785 (dwarf2_symbol_mark_computed): Likewise.
10787 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10789 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10791 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10793 * mips-linux-tdep.c: Include xml-syscall.h.
10794 (mips_linux_get_syscall_number): New function.
10795 (mips_linux_init_abi): Add calls to
10796 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10797 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10798 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10799 * syscalls/mips-n32-linux.xml: New file.
10800 * syscalls/mips-n64-linux.xml: New file.
10801 * syscalls/mips-o32-linux.xml: New file.
10803 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10805 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10806 Complain about inverted range entries.
10807 (dwarf2_record_block_ranges): Likewise.
10809 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10812 * breakpoint.c (update_watchpoint): Fix name of the
10813 update_global_location_list function.
10814 (print_one_breakpoint): Fix typo.
10815 (_initialize_breakpoint): Remove extra space in hbreak help
10817 * breakpoint.h (struct bp_location) <length>: Fix field
10820 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10822 * regcache.c (registers_changed_ptid): Don't explictly always
10823 clear `current_regcache'. Only clear current_thread_ptid and
10824 current_thread_arch when PTID matches. Only reinit the frame
10825 cache if PTID matches the current inferior_ptid. Move alloca(0)
10827 (registers_changed): ... here.
10829 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10831 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10832 starts with __stack_chk_guard as stack guard symbol.
10834 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10836 * disasm.c (compare_lines): Handle the end of sequence markers
10837 within the line table to better support disassembling over
10838 compilation unit boundaries.
10840 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10842 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10843 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10844 implementation even if no symbols are available.
10845 (thumb_analyze_prologue): Update call to skip_prologue_function.
10846 (arm_analyze_prologue): Likewise.
10848 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10850 * arm-tdep.c: Include "observer.h".
10851 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10852 (arm_exidx_data_key): New static variable.
10853 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10854 (struct arm_exidx_data): Likewise.
10855 (arm_exidx_data_free): New function.
10856 (arm_compare_exidx_entries): Likewise.
10857 (arm_obj_section_from_vma): Likewise.
10858 (arm_exidx_new_objfile): Likewise.
10859 (arm_find_exidx_entry): Likewise.
10860 (arm_exidx_fill_cache): Likewise.
10861 (arm_exidx_unwind_sniffer): Likewise.
10862 (arm_exidx_unwind): New global variable.
10863 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10864 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10865 observer. Register arm_exidx_data_key as objfile data.
10867 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10869 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10870 due to accessing uninitialized variable. Fix indentation.
10872 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10874 * c-valprint.c (c_value_print): When doing virtual base pointer
10875 adjustment, create a new value with adjusted contents rather than
10876 changing the contents of the value being printed (and getting it
10879 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10881 * xml-support.c (xml_find_attribute): New.
10882 (xinclude_start_include): Use it.
10883 * xml-support.h (xml_find_attribute): Declare.
10884 * memory-map.c (memory_map_start_memory)
10885 (memory_map_start_property): Use xml_find_attribute.
10886 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10887 xml_find_attribute.
10888 * remote.c (start_thread): Use xml_find_attribute.
10889 * solib-target.c (library_list_start_segment)
10890 (library_list_start_section, library_list_start_library)
10891 (library_list_start_list): Use xml_find_attribute.
10892 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10893 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10894 (tdesc_start_field): Use xml_find_attribute.
10896 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10898 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10899 (BUILD_OCL_VTYPES): Update.
10901 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10903 * configure.ac: Work around non-GNU sed limitation when computing
10904 python version number.
10905 * configure: Regenerate.
10907 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10909 Fix debug printing of TYPE_INSTANCE.
10910 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10911 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10913 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10915 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10916 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10917 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10918 * ada-operator.inc: Rename the file to ...
10919 * ada-operator.def: ... here, wrap all the entries by macro OP.
10920 * expprint.c (op_name_standard): Remove all the entries. Include
10921 "std-operator.def" instead.
10922 * expression.h (enum exp_opcode): Include "std-operator.def" and
10923 "ada-operator.def". Move all the entries ...
10924 * std-operator.def: ... here, wrap all the entries by macro OP.
10926 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10928 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10929 * breakpoint.c (remove_jit_event_breakpoints): New function.
10930 * jit.c (jit_descriptor_addr): Delete.
10931 (registering_code): Delete.
10932 (clear_int): Delete.
10933 (jit_inferior_data): New variable.
10934 (struct jit_inferior_data): New type.
10935 (get_jit_inferior_data): New function.
10936 (jit_inferior_data_cleanup): New function.
10937 (jit_read_descriptor): Adjust.
10938 (jit_register_code): Adjust.
10939 (jit_breakpoint_re_set_internal): New function; move code here ...
10940 (jit_inferior_init): ... from here.
10941 (jit_breakpoint_re_set): Adjust.
10942 (jit_reset_inferior_data_and_breakpoints): New function.
10943 (jit_inferior_created_observer): Adjust.
10944 (jit_inferior_exit_hook): Adjust.
10945 (jit_executable_changed_observer): New function.
10946 (jit_event_handler): Adjust.
10947 (_initialize_jit): Adjust.
10949 2011-01-31 Michael Snyder <msnyder@vmware.com>
10951 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10954 2011-01-31 Tom Tromey <tromey@redhat.com>
10957 * python/python.c (execute_gdb_command): Call
10958 prevent_dont_repeat.
10959 * top.c (suppress_dont_repeat): New global.
10960 (dont_repeat): Use it.
10961 (prevent_dont_repeat): New function.
10962 * command.h (prevent_dont_repeat): Declare.
10964 2011-01-31 Tom Tromey <tromey@redhat.com>
10966 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10967 * python/py-breakpoint.c (bppy_set_silent): Use
10968 breakpoint_set_silent.
10969 (bppy_set_thread): Use breakpoint_set_thread.
10970 (bppy_set_task): Use breakpoint_set_task.
10971 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10972 (breakpoint_set_task): Declare.
10973 (make_breakpoint_silent): Remove.
10974 * breakpoint.c (breakpoint_set_silent): New function.
10975 (breakpoint_set_thread): Likewise.
10976 (breakpoint_set_task): Likewise.
10977 (make_breakpoint_silent): Remove.
10979 2011-01-31 Tom Tromey <tromey@redhat.com>
10981 * breakpoint.h (user_breakpoint_p): Declare.
10982 * breakpoint.c (user_breakpoint_p): New function.
10983 (breakpoint_1): Use it.
10984 (save_breakpoints): Likewise.
10986 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10988 * configure.ac: Add handling of Python distribution on Windows.
10989 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10990 sysconfig variables are not defined, then do not use them.
10991 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10992 instead. On Windows, return all paths using forward-slashes
10993 rather than backslashes.
10995 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10997 * configure.ac: Remove fallback behavior for building
10998 against Python. Remove tweaking of Python include path.
10999 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11000 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11001 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11002 Always restore CPPFLAGS and LIBS after linking test.
11003 * configure: Regenerated.
11004 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11005 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11006 * python/python-internal.h: Adjust includes of Python .h files.
11008 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11010 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11013 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11015 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11018 2011-01-31 Yao Qi <yao@codesourcery.com>
11020 * arm-linux-nat.c: Update calls to regcache_register_status
11021 instead of regcache_valid_p.
11022 * aix-thread.c: Likewise.
11023 * i386gnu-nat.c: Likewise.
11025 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11028 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11029 touching TYPE_FIELD_ARTIFICIAL.
11031 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11033 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11036 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11038 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11039 selected, don't try iterating over the traceframe's blocks.
11040 (tfile_has_stack): If there's no traceframe selected, then there's
11042 (tfile_has_registers): If there's no traceframe selected, then
11043 there's no registers.
11045 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11047 * target.c (memory_xfer_partial): No need to restore shadows if we
11048 haven't read anything.
11050 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11052 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11053 and val_print_scalar_formatted.
11055 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11057 * tracepoint.c (tfile_read): New.
11058 (tfile_open): Use it.
11059 (tfile_get_traceframe_address): Use it.
11060 (tfile_trace_find): Use it.
11061 (walk_blocks_callback_func): New typedef.
11062 (match_blocktype): New function.
11063 (traceframe_walk_blocks): New function.
11064 (traceframe_find_block_type): New function.
11065 (tfile_fetch_registers, tfile_xfer_partial)
11066 (tfile_get_trace_state_variable_value): Use
11067 traceframe_find_block_type and tfile_read.
11069 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11071 * remote-mips.c: Add internationalization mark ups. Remove
11072 trailing \n from already marked up strings.
11074 2011-01-26 Tom Tromey <tromey@redhat.com>
11076 * python/py-prettyprint.c (print_string_repr): Clear
11077 'addressprint' option when calling val_print_string.
11078 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11079 option when calling val_print_string.
11081 2011-01-26 Tom Tromey <tromey@redhat.com>
11083 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11085 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11087 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11088 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11089 (gdb_py_long_as_ulongest): New defines.
11090 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11091 (gdb_py_int_as_long): Declare.
11092 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11093 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11094 (valpy_long): Add comment.
11095 * python/py-utils.c (get_addr_from_python): Use
11096 gdb_py_long_as_ulongest. Handle overflow properly.
11097 (gdb_py_object_from_longest): New function.
11098 (gdb_py_object_from_ulongest): Likewise.
11099 (gdb_py_int_as_long): Likewise.
11100 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11101 * python/py-symtab.c (salpy_get_pc): Use
11102 gdb_py_long_from_ulongest.
11103 (salpy_get_line): Use PyInt_FromLong.
11104 * python/py-param.c (set_parameter_value): Use
11105 gdb_py_int_as_long.
11106 * python/py-lazy-string.c (stpy_get_address): Use
11107 gdb_py_long_from_ulongest.
11108 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11109 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11110 * python/py-breakpoint.c (bppy_set_thread): Use
11111 gdb_py_int_as_long.
11112 (bppy_set_task): Likewise.
11113 (bppy_set_ignore_count): Likewise.
11114 (bppy_set_hit_count): Likewise.
11115 * python/py-block.c (blpy_get_start): Use
11116 gdb_py_object_from_ulongest.
11117 (blpy_get_end): Likewise.
11118 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11120 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11123 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11124 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11125 equality test for objfile, initialize addr_low if needed.
11127 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11129 * tui/tui-regs.c (tui_register_format): Remove dead code.
11131 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11133 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11134 instead of print_scalar_formatted.
11135 (print_scalar_formatted): Don't handle 's' format strings here,
11136 and add an assertion that we never see such format here.
11137 * valprint.h (val_print_scalar_formatted): Declare.
11138 * valprint.c (val_print_scalar_formatted): New.
11139 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11140 instead of print_scalar_formatted.
11141 * jv-valprint.c (java_val_print): Ditto.
11142 * p-valprint.c (pascal_val_print): Ditto.
11143 * ada-valprint.c (ada_val_print_1): Ditto.
11144 * f-valprint.c (f_val_print): Ditto.
11145 * infcmd.c (registers_info): Ditto.
11146 * m2-valprint.c (m2_val_print): Ditto.
11148 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11150 * m2-valprint.c (print_unbounded_array): Pass
11151 value_contents_for_printing rather than value_contents, to
11152 m2_print_array_contents. Also pass in the value.
11154 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11156 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11157 (save_gdb_index_command): Switch to .gdb_index version 4.
11159 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11161 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11162 than frame_register, and always pass a valid value to val_print.
11164 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11166 Centralize printing "<optimized out>".
11168 * valprint.h (val_print_optimized_out): Declare.
11169 * cp-valprint.c (cp_print_value_fields): Use
11170 val_print_optimized_out.
11171 * jv-valprint.c (java_print_value_fields): Ditto.
11172 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11173 * printcmd.c (print_formatted): Ditto.
11174 * valprint.c (valprint_check_validity): Ditto.
11175 (value_check_printable): Ditto.
11176 (val_print_optimized_out): New.
11178 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11180 * infcmd.c (default_print_registers_info): Allocate values so to
11181 never pass a NULL value to val_print.
11183 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11185 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11186 boolean. Make sure to always pass a value that matches the
11187 contents buffer to callees. Preserve `address' for following
11189 * value.c (value_contents_for_printing_const): New.
11190 (value_address): Constify value argument.
11191 * value.h (value_contents_for_printing_const): Declare.
11192 (value_address): Constify value argument.
11194 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11196 * regcache.c (struct regcache_descr): Rename
11197 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11198 and sizeof_cooked_register_valid_p to
11199 sizeof_cooked_register_status.
11200 (init_regcache_descr): Adjust.
11201 (struct regcache): Rename register_valid_p field to
11203 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11204 (do_cooked_read): Adjust.
11205 (regcache_valid_p): Rename to ...
11206 (regcache_register_status): ... this. Adjust.
11207 (regcache_invalidate): Adjust.
11208 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11210 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11211 as unavailable, not valid.
11212 (regcache_dump): Adjust.
11213 * regcache.h (enum register_status): New.
11214 (regcache_register_status): Declare.
11215 (regcache_invalidate): Delete declaration.
11216 * corelow.c (get_core_registers): Adjust.
11217 * tracepoint.c (tfile_fetch_registers): Adjust.
11218 * trad-frame.c (REG_VALUE): Rename to ...
11219 (TF_REG_VALUE): ... this.
11220 (REG_UNKNOWN): Rename to ...
11221 (TF_REG_UNKNOWN): ... this.
11222 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11223 * mi/mi-main.c (register_changed_p): Adjust.
11225 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11227 * regcache.c (struct regcache_descr): Remove outdated comment.
11228 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11230 (regcache_xmalloc): Rename to ...
11231 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11232 Allocate the regcache type accordingly.
11233 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11234 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11235 cooked registers, not raw.
11236 (regcache_dup_no_passthrough): Delete.
11237 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11238 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11239 mention obsolete write_register_bytes.
11240 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11242 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11244 Stop remote_read_bytes from handling partial reads itself.
11246 * remote-fileio.c: Include target.h.
11247 (remote_fileio_write_bytes): Delete.
11248 (remote_fileio_func_open, remote_fileio_func_write)
11249 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11250 target_read_memory.
11251 (remote_fileio_func_stat): Use target_read_memory and
11252 target_write_memory.
11253 (remote_fileio_func_gettimeofday): Use target_write_memory.
11254 (remote_fileio_func_system): Use target_read_memory.
11255 * remote.c (remote_write_bytes): Make it static.
11256 (remote_read_bytes): Don't handle partial reads here.
11257 * remote.h (remote_read_bytes): Delete declaration.
11259 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11261 Simplify XML parsing a bit.
11263 * xml-support.h (gdb_xml_parse_quick): Declare.
11264 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11265 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11267 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11268 gdb_xml_create_parser_and_cleanup_1.
11269 (gdb_xml_parse_quick): New.
11270 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11271 * osdata.c (osdata_parse): Ditto.
11272 * remote.c (remote_threads_info): Ditto.
11273 * solib-target.c (solib_target_parse_libraries): Ditto.
11274 * xml-syscall.c (syscall_parse_xml): Ditto.
11275 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11277 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11279 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11280 with remote-mips.o added to gdb_target_obs.
11281 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11283 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11285 * ada-valprint.c (val_print_packed_array_elements): Pass the
11286 correct struct value to val_print.
11287 (ada_val_print_1): Ditto.
11289 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11291 Don't lose embedded_offset in printing routines throughout.
11293 * valprint.h (val_print_array_elements): Change prototype.
11294 * valprint.c (val_print_array_elements): Add `embedded_offset'
11295 parameter, and adjust to pass it down to val_print, while passing
11296 `valaddr' or `address' unmodified. Take embedded_offset into
11297 account when checking repetitions.
11298 * c-valprint.c (c_val_print): Pass embedded_offset to
11299 val_print_array_elements instead of adjusting `valaddr' and
11301 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11302 embedded_offset to val_print_array_elements instead of adjusting
11304 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11305 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11306 val_print_array_elements and pascal_object_print_value_fields
11307 instead of adjusting `valaddr'.
11308 (pascal_object_print_value_fields): Add `offset' parameter, and
11310 (pascal_object_print_value): Add `offset' parameter, and adjust to
11312 (pascal_object_print_static_field): Use
11313 value_contents_for_printing/value_embedded_offset, rather than
11315 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11316 parameter, and adjust to use it. Use
11317 value_contents_for_printing/value_embedded_offset, rather than
11319 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11320 (ada_val_print_array): Add `offset' parameter, and adjust to use
11322 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11323 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11324 Instead work with offsets. Use
11325 value_contents_for_printing/value_embedded_offset, rather than
11326 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11327 and use value_from_pointer to extract a target pointer, rather
11328 than value_from_longest.
11329 (print_variant_part): Add `offset' parameter. Replace
11330 `outer_valaddr' parameter by a new `outer_offset' parameter.
11331 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11332 (ada_value_print): Use
11333 value_contents_for_printing/value_embedded_offset, rather than
11335 (print_record): Add `offset' parameter, and adjust to pass it
11337 (print_field_values): Add `offset' parameter. Replace
11338 `outer_valaddr' parameter by a new `outer_offset' parameter.
11339 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11340 Use value_contents_for_printing/value_embedded_offset, rather than
11342 * d-valprint.c (dynamic_array_type): Use
11343 value_contents_for_printing/value_embedded_offset, rather than
11345 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11346 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11347 (java_print_value_fields): Take `offset' into account. Don't
11348 re-adjust `valaddr'. Instead pass down adjusted offsets.
11349 (java_val_print): Take `embedded_offset' into account. Pass it to
11350 java_print_value_fields.
11351 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11352 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11353 down adjusted offsets.
11354 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11355 (f_val_print): Take `embedded_offset' into account.
11357 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11359 * inflow.c: Include "gdbcmd.h".
11360 (interactive_mode): New static global, moved here from top.c.
11361 (show_interactive_mode): New function, moved here from top.c.
11362 use gdb_has_a_terminal instead of input_from_terminal_p to
11363 determine the current mode.
11364 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11366 (_initialize_inflow): Add the "set/show interactive-mode"
11367 commands. Moved here from top.c, after having adjusted slightly
11369 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11371 (input_from_terminal_p): Remove handling of "interactive-mode"
11372 setting, moved to infow.c.
11373 (init_main): Remove creation of the "set/show interactive-mode"
11374 commands, moved to inflow.c.
11376 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11378 * NEWS: Add entry for native ia64-hpux support.
11380 2011-01-19 Tom Tromey <tromey@redhat.com>
11383 * thread.c (free_thread): Free 'name'.
11384 (print_thread_info): Emit thread name. Change CLI output.
11385 (thread_name_command): New function.
11386 (do_captured_thread_select): Emit newline.
11387 (_initialize_thread): Register 'thread name' command.
11388 * target.h (struct target_ops) <to_thread_name>: New field.
11389 (target_thread_name): New macro.
11390 * target.c (update_current_target): Handle to_thread_name.
11391 * python/py-infthread.c (thpy_get_name): New function.
11392 (thpy_set_name): Likewise.
11393 (thread_object_getset): Add "name".
11394 * linux-nat.c (linux_nat_thread_name): New function.
11395 (linux_nat_add_target): Set to_thread_name.
11396 * gdbthread.h (struct thread_info) <name>: New field.
11398 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11400 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11401 (ada_val_print_1): Likewise.
11403 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11405 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11406 upper limit address is not greater than the function end address
11407 when the upper limit could not be computed using the debugging
11410 2011-01-17 Tom Tromey <tromey@redhat.com>
11412 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11414 * utils.c: Include gdb_regex.h.
11415 (do_regfree_cleanup): New function.
11416 (make_regfree_cleanup): Likewise.
11417 (get_regcomp_error): Likewise.
11418 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11420 2011-01-17 Tom Tromey <tromey@redhat.com>
11422 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11423 re_compile_fastmap.
11425 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11427 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11428 for internal variables.
11429 (last_was_structop): New static variable.
11430 (COMPLETE): New token.
11431 (field_exp): New rule to group all '.' suffix handling.
11432 Add mark_struct_expression calls when approriate to be able
11433 to correctly find fields for completion.
11434 (yylex): Adapt to handle field completion and set INTVAR when
11437 2011-01-14 Yao Qi <yao@codesourcery.com>
11439 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11440 save_reggroup, restore_reggroup and all_reggroup.
11442 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11444 * ada-valprint. (ada_printchar): Use the correct type length
11445 in call to ada_emit_char.
11446 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11448 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11450 * solib-som.h (hpux_major_release): Declare variable here.
11451 * solib-som.c: Remove <sys/utsname.h> header.
11452 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11453 (hpux_major_release): Make global, change default value to
11454 DEFAULT_HPUX_MAJOR_RELEASE.
11455 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11456 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11457 Add "solib-som.h" header.
11458 (set_hpux_major_release): New function.
11459 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11461 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11463 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11465 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11467 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11468 new-line at end of warning message.
11469 (ia64_hpux_store_register): Remove trailing new-line at end of
11471 * ia64-hpux-tdep.c: Rephrase comment.
11472 * solib-ia64-hpux.c (struct dld_info): Change type of field
11473 dld_flags from "long long" to ULONGEST.
11475 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11477 * target.h (deprecated_child_ops): Delete declaration.
11478 * target.c (deprecated_child_ops): Delete definition.
11480 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11482 * Makefile.in (hpux-thread.o): Delete rule.
11483 * configure.ac: Don't check for HPUX DCE threads support.
11484 * configure, config.in: Regenerate.
11485 * hppa-hpux-nat.c (child_suppress_run): Delete.
11486 (hppa_hpux_child_can_run): Delete.
11487 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11488 * hpux-thread.c: Delete.
11490 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11492 * hpux-thread.c (hpux_pid_to_str): Delete.
11494 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11496 * ada-valprint.c (ada_emit_char): Remove strange code.
11497 Check that c is <= UCHAR_MAX before passing it to isascii.
11498 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11500 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11502 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11503 to the case where instream is stdin.
11505 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11507 * ia64-tdep.h (struct regcache): Forward declare.
11508 (struct ia64_infcall_ops): New struct type.
11509 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11511 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11512 Renames ia64_find_global_pointer.
11513 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11514 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11515 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11517 (ia64_infcall_ops): New static global constant.
11518 (ia64_gdbarch_init): Set tdep->infcall_ops.
11519 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11520 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11521 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11522 (ia64_hpux_dummy_code): New static global constant.
11523 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11524 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11525 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11527 (ia64_hpux_infcall_ops): New static global constant.
11528 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11529 for inferior function calls to work properly on ia64-hpux.
11531 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11533 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11534 * ia64-tdep.h (struct frame_info): forward declaration.
11535 (struct gdbarch_tdep): Add field size_of_register_frame.
11536 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11537 to determine the size of the register frame.
11538 (ia64_size_of_register_frame): New function.
11539 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11540 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11541 (IA64_HPUX_UREG_REASON): New macro.
11542 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11544 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11545 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11546 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11549 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11551 Add support for ia64-hpux.
11552 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11553 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11555 * configure.host: Add handling for ia64-hpux hosts. Add associated
11557 * configure.tgt: Add handling for ia64-hpux targets.
11558 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11559 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11560 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11562 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11564 [ttrace] Compute thread list immediately after attach.
11565 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11567 (inf_ttrace_attach): Use it.
11569 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11571 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11572 if we could not determine the frame's function address. Instead,
11573 use the frame's PC, and then continue.
11575 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11577 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11578 not already defined.
11580 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11582 * ia64-tdep.c (ia64_struct_type_p): New function.
11583 (ia64_extract_return_value): Handle integral values that are
11584 less than 8 bytes long.
11585 (ia64_push_dummy_call): Likewise.
11587 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11589 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11590 floatformat_ia64_ext.
11591 (floatformat_ia64_ext_big): New static const.
11592 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11594 2011-01-12 Tom Tromey <tromey@redhat.com>
11596 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11598 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11599 (mi_cmd_thread_list_ids): Likewise.
11600 (mi_cmd_data_list_changed_registers): Likewise.
11601 (mi_cmd_data_list_register_values): Likewise.
11602 (mi_cmd_data_write_register_values): Likewise.
11603 (mi_cmd_data_evaluate_expression): Likewise.
11604 (mi_cmd_data_read_memory): Likewise.
11605 (mi_cmd_data_read_memory_bytes): Likewise.
11606 (mi_cmd_data_write_memory): Likewise.
11607 (mi_cmd_enable_timings): Likewise.
11608 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11609 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11610 (mi_cmd_var_delete): Likewise.
11611 (mi_cmd_var_set_format): Likewise.
11612 (mi_cmd_var_show_format): Likewise.
11613 (mi_cmd_var_info_num_children): Likewise.
11614 (mi_cmd_var_list_children): Likewise.
11615 (mi_cmd_var_info_type): Likewise.
11616 (mi_cmd_var_info_expression): Likewise.
11617 (mi_cmd_var_show_attributes): Likewise.
11618 (mi_cmd_var_assign): Likewise.
11619 (mi_cmd_var_update): Likewise.
11620 (mi_cmd_enable_pretty_printing): Likewise.
11621 (mi_cmd_var_set_update_range): Likewise.
11622 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11624 (mi_cmd_target_file_put): Likewise.
11625 (mi_cmd_target_file_delete): Likewise.
11626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11628 (mi_cmd_stack_info_depth): Likewise.
11629 (mi_cmd_stack_list_locals): Likewise.
11630 (mi_cmd_stack_list_args): Likewise.
11631 (mi_cmd_stack_select_frame): Likewise.
11632 (mi_cmd_stack_select_frame): Likewise.
11633 (mi_cmd_stack_info_frame): Likewise.
11634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11636 (mi_cmd_file_list_exec_source_files): Likewise.
11637 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11638 (mi_cmd_env_cd): Likewise.
11639 (mi_cmd_env_path): Likewise.
11640 (mi_cmd_env_dir): Likewise.
11641 (mi_cmd_inferior_tty_show): Likewise.
11642 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11643 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11644 (mi_cmd_break_watch): Likewise.
11646 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11648 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11649 (ppc_linux_insert_hw_breakpoint): Likewise.
11650 (ppc_linux_remove_hw_breakpoint): Likewise.
11651 (ppc_linux_insert_watchpoint): Likewise.
11653 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11654 Jan Kratochvil <jan.kratochvil@redhat.com>
11656 PR fortran/11104 and DWARF unbound arrays detection.
11657 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11658 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11659 unspecified upper bound.
11660 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11661 variables array_size_array, tmp_type and offset_item. New variable
11662 array. Remove call to f77_get_upperbound. New variables array_type
11663 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11664 the final call to deprecated_set_value_type.
11666 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11668 Make value allocations more lazy.
11669 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11670 instead of allocate_value and set_value_lazy when possible.
11671 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11672 instead of allocate_value and set_value_lazy.
11673 * findvar.c (value_of_register_lazy): Likewise.
11674 (read_var_value): Remove V preallocation, call just check_typedef in
11675 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11676 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11677 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11678 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11679 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11680 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11681 the end, remove set_value_lazy there.
11682 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11683 instead of allocate_value and set_value_lazy when possible.
11684 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11685 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11686 of allocate_value and set_value_lazy.
11687 (value_from_contents_and_address): Use allocate_value_lazy instead of
11688 allocate_value and set_value_lazy when possible.
11690 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11692 * disasm.c (dump_insns): Support dumping opcodes for MI.
11693 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11694 dumping of instruction opcodes.
11696 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11698 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11701 2011-01-11 Tom Tromey <tromey@redhat.com>
11703 * thread.c (do_captured_thread_select): Emit newline before
11706 2011-01-11 Michael Snyder <msnyder@vmware.com>
11708 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11709 * score-tdep.c: Ditto.
11710 * score-tdep.h: Ditto.
11711 * ser-base.c: Ditto.
11712 * ser-go32.c: Ditto.
11715 * ser-mingw.c: Ditto.
11716 * ser-pipe.c: Ditto.
11717 * ser-tcp.c: Ditto.
11718 * ser-unix.c: Ditto.
11719 * sh64-tdep.c: Ditto.
11720 * shnbsd-nat.c: Ditto.
11721 * sh-tdep.c: Ditto.
11722 * sh-tdep.h: Ditto.
11724 * solib-darwin.c: Ditto.
11725 * solib-frv.c: Ditto.
11727 * solib-irix.c: Ditto.
11728 * solib-osf.c: Ditto.
11729 * solib-pa64.c: Ditto.
11730 * solib-som.c: Ditto.
11731 * solib-spu.c: Ditto.
11732 * solib-sunos.c: Ditto.
11733 * solib-svr4.c: Ditto.
11735 * sol-thread.c: Ditto.
11736 * somread.c: Ditto.
11739 * sparc64-linux-tdep.c: Ditto.
11740 * sparc64-tdep.c: Ditto.
11741 * sparc-linux-nat.c: Ditto.
11742 * sparc-linux-tdep.c: Ditto.
11743 * sparc-sol2-nat.c: Ditto.
11744 * sparc-sol2-tdep.c: Ditto.
11745 * sparc-tdep.c: Ditto.
11746 * sparc-tdep.h: Ditto.
11747 * spu-tdep.c: Ditto.
11748 * stabsread.c: Ditto.
11749 * stabsread.h: Ditto.
11751 * symfile.c: Ditto.
11752 * symfile.h: Ditto.
11753 * symmisc.c: Ditto.
11757 * target-descriptions.c: Ditto.
11758 * target-descriptions.h: Ditto.
11760 * target-memory.c: Ditto.
11761 * terminal.h: Ditto.
11764 * tracepoint.c: Ditto.
11765 * tracepoint.h: Ditto.
11766 * trad-frame.h: Ditto.
11767 * typeprint.c: Ditto.
11769 2011-01-11 Michael Snyder <msnyder@vmware.com>
11771 * ui-file.c: Comment cleanup, mostly periods and spaces.
11772 * ui-file.h: Ditto.
11776 * v850-tdep.c: Ditto.
11777 * valarith.c: Ditto.
11779 * valprint.c: Ditto.
11780 * valprint.h: Ditto.
11785 * vax-tdep.c: Ditto.
11788 * version.h: Ditto.
11789 * windows-nat.c: Ditto.
11790 * windows-tdep.c: Ditto.
11791 * xcoffread.c: Ditto.
11792 * xcoffsolib.c: Ditto.
11793 * xml-support.c: Ditto.
11794 * xstormy16-tdep.c: Ditto.
11795 * xtensa-tdep.c: Ditto.
11796 * xtensa-tdep.h: Ditto.
11798 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11800 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11801 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11803 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11804 Thiago Jung Bauermann <bauerman@br.ibm.com>
11806 Implement support for PowerPC BookE ranged watchpoints.
11808 (struct breakpoint_ops) <resources_needed>: New method.
11809 Initialize to NULL in all existing breakpoint_ops instances.
11810 (struct breakpoint) <exact>: New field.
11811 (target_exact_watchpoints): Declare external global.
11812 * breakpoint.c (target_exact_watchpoints): New global flag.
11813 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11814 b->enable_state to bp_enabled before calling
11815 hw_watchpoint_used_count.
11816 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11817 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11819 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11820 if the watchpoint is exact.
11821 (resources_needed_watchpoint): New function.
11822 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11823 (watch_command_1): Set b->exact if the user asked for an exact
11824 watchpoint and one can be set.
11825 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11826 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11827 the user asks for an exact watchpoint and one can be set. Return
11828 number of needed debug registers to watch the expression.
11829 * gdbtypes.c (is_scalar_type): New function, based on
11830 valprint.c:scalar_type_p.
11831 (is_scalar_type_recursive): New function.
11832 * gdbtypes.h (is_scalar_type_recursive): Declare.
11833 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11834 handle regions when ranged watchpoints are available.
11835 (create_watchpoint_request): New function.
11836 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11837 create_watchpoint_request.
11838 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11839 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11840 `set powerpc' and `show powerpc' commands.
11841 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11842 Mention documentation comment in the target macro.
11843 (target_region_ok_for_hw_watchpoint): Document return value.
11845 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11847 * breakpoint.c (update_watchpoint): Decide on using a software or
11848 hardware watchpoint after the bp_locations are created.
11850 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11852 Convert hardware watchpoints to use breakpoint_ops.
11853 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11854 <insert_location>: ... this. Return int instead of void.
11855 Accept pointer to struct bp_location instead of pointer to
11856 struct breakpoint. Adapt all implementations.
11857 (breakpoint_ops) <remove>: Rename to...
11858 <remove_location>: ... this. Accept pointer to struct bp_location
11859 instead of pointer to struct breakpoint. Adapt all implementations.
11860 * breakpoint.c (insert_catchpoint): Delete function.
11861 (insert_bp_location): Call the watchpoint or catchpoint's
11862 breakpoint_ops.insert method.
11863 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11864 breakpoint_ops.remove method.
11865 (insert_watchpoint, remove_watchpoint): New functions.
11866 (watchpoint_breakpoint_ops): New structure.
11867 (watch_command_1): Initialize the OPS field.
11868 * inf-child.c (inf_child_insert_fork_catchpoint)
11869 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11870 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11871 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11873 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11874 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11875 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11876 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11877 * target.c (update_current_target): Change default implementation of
11878 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11879 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11880 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11881 to_set_syscall_catchpoint to return_one.
11882 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11883 (debug_to_insert_exec_catchpoint): Report return value.
11884 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11885 (to_insert_exec_catchpoint): Change declaration to return int instead
11888 2011-01-11 Michael Snyder <msnyder@vmware.com>
11890 * arm-tdep.c: Internationalization.
11892 * charset.c: Ditto.
11893 * fork-child.c: Ditto.
11894 * nto-procfs.c: Ditto.
11895 * ppc-sysv-tdep.c: Ditto.
11897 * remote-mips.c: Ditto.
11899 * rs6000-nat.c: Ditto.
11900 * rs6000-tdep.c: Ditto.
11904 * xml-support.c: Ditto.
11905 * mi/mi-cmd-break.c: Ditto.
11906 * mi/mi-cmd-var.c: Ditto.
11907 * mi/mi-interp.c: Ditto.
11908 * mi/mi-main.c: Ditto.
11910 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11912 * remote-sim.c (gdbsim_store_register): Update API to
11913 sim_store_register to check more error conditions.
11915 2011-01-10 Michael Snyder <msnyder@vmware.com>
11917 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11918 * nto-tdep.c: Ditto.
11919 * nto-tdep.h: Ditto.
11920 * objc-exp.y: Ditto.
11921 * objc-lang.c: Ditto.
11922 * objfiles.c: Ditto.
11923 * objfiles.h: Ditto.
11924 * observer.c: Ditto.
11925 * opencl-lang.c: Ditto.
11928 * parser-defs.h: Ditto.
11931 * posix-hdep.c: Ditto.
11932 * ppcbug-rom.c: Ditto.
11933 * ppc-linux-nat.c: Ditto.
11934 * ppc-linux-tdep.c: Ditto.
11935 * ppc-linux-tdep.h: Ditto.
11936 * ppcnbsd-tdep.c: Ditto.
11937 * ppcobsd-tdep.c: Ditto.
11938 * ppcobsd-tdep.h: Ditto.
11939 * ppc-sysv-tdep.c: Ditto.
11940 * ppc-tdep.h: Ditto.
11941 * printcmd.c: Ditto.
11942 * proc-abi.c: Ditto.
11943 * proc-flags.c: Ditto.
11945 * proc-utils.h: Ditto.
11946 * progspace.h: Ditto.
11947 * prologue-value.c: Ditto.
11948 * prologue-value.h: Ditto.
11949 * psympriv.h: Ditto.
11950 * psymtab.c: Ditto.
11951 * p-typeprint.c: Ditto.
11952 * p-valprint.c: Ditto.
11953 * ravenscar-sparc-thread.c: Ditto.
11954 * ravenscar-thread.c: Ditto.
11955 * ravenscar-thread.h: Ditto.
11957 * regcache.c: Ditto.
11958 * regcache.h: Ditto.
11960 * remote-fileio.c: Ditto.
11961 * remote-fileio.h: Ditto.
11963 * remote-m32r-sdi.c: Ditto.
11964 * remote-mips.c: Ditto.
11965 * remote-sim.c: Ditto.
11966 * rs6000-aix-tdep.c: Ditto.
11967 * rs6000-nat.c: Ditto.
11968 * rs6000-tdep.c: Ditto.
11970 2011-01-10 Michael Snyder <msnyder@vmware.com>
11972 * charset.c (validate): Internationalization.
11973 * coffread.c (read_one_sym): Ditto.
11974 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11975 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11976 * inflow.c (new_tty): Ditto.
11977 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11978 * m32c-tdep.c (m32c_return_value): Ditto.
11979 * mep-tdep.c (mep_store_return_value): Ditto.
11980 * score-tdep.c (score7_fetch_insn): Ditto.
11981 * ser-mingw.c (pipe_windows_open): Ditto.
11982 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11983 * spu-tdep.c (spu_register_type): Ditto.
11984 * tracepoint.c (trace_find_command): Ditto.
11985 * valarith.c (value_pos): Ditto.
11987 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11989 * ada-valprint.c (printstr): Minor comment reformatting.
11991 2011-01-08 Michael Snyder <msnyder@vmware.com>
11993 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11996 2011-01-08 Michael Snyder <msnyder@vmware.com>
11998 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11999 * hppa-hpux-tdep.c: Ditto.
12000 * hppa-linux-nat.c: Ditto.
12001 * hppa-linux-tdep.c: Ditto.
12002 * hppanbsd-tdep.c: Ditto.
12003 * hppa-tdep.c: Ditto.
12004 * hppa-tdep.h: Ditto.
12005 * hpux-thread.c: Ditto.
12006 * i386-cygwin-tdep.c: Ditto.
12007 * i386-darwin-nat.c: Ditto.
12008 * i386gnu-nat.c: Ditto.
12009 * i386-linux-nat.c: Ditto.
12010 * i386-linux-tdep.c: Ditto.
12011 * i386-nat.c: Ditto.
12012 * i386-nat.h: Ditto.
12013 * i386nbsd-tdep.c: Ditto.
12014 * i386-sol2-nat.c: Ditto.
12015 * i386-stub.c: Ditto.
12016 * i386-tdep.c: Ditto.
12017 * i386-tdep.h: Ditto.
12018 * i387-tdep.c: Ditto.
12019 * ia64-linux-nat.c: Ditto.
12020 * ia64-linux-tdep.c: Ditto.
12021 * ia64-tdep.c: Ditto.
12022 * infcall.c: Ditto.
12023 * infcall.h: Ditto.
12025 * inferior.c: Ditto.
12026 * inferior.h: Ditto.
12027 * infloop.c: Ditto.
12030 * interps.c: Ditto.
12031 * interps.h: Ditto.
12032 * iq2000-tdep.c: Ditto.
12033 * irix5-nat.c: Ditto.
12037 * jv-lang.c: Ditto.
12038 * jv-lang.h: Ditto.
12039 * jv-typeprint.c: Ditto.
12040 * jv-valprint.c: Ditto.
12041 * language.c: Ditto.
12042 * language.h: Ditto.
12043 * linespec.c: Ditto.
12044 * linux-fork.c: Ditto.
12045 * linux-nat.c: Ditto.
12046 * linux-thread-db.c: Ditto.
12047 * lm32-tdep.c: Ditto.
12049 2011-01-08 Michael Snyder <msnyder@vmware.com>
12051 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12052 * m2-lang.c: Ditto.
12053 * m2-typeprint.c: Ditto.
12054 * m2-valprint.c: Ditto.
12055 * m32c-tdep.c: Ditto.
12056 * m32r-linux-nat.c: Ditto.
12057 * m32r-rom.c: Ditto.
12058 * m32r-tdep.c: Ditto.
12059 * m32r-tdep.h: Ditto.
12060 * m68hc11-tdep.c: Ditto.
12061 * m58klinux-nat.c: Ditto.
12062 * m68k-tdep.c: Ditto.
12063 * m88k-tdep.c: Ditto.
12064 * m88k-tdep.h: Ditto.
12065 * machoread.c: Ditto.
12066 * macrocmd.c: Ditto.
12067 * macroexp.c: Ditto.
12068 * macrotab.c: Ditto.
12071 * mdebugread.c: Ditto.
12072 * mdebugread.h: Ditto.
12073 * memattr.c: Ditto.
12074 * memattr.h: Ditto.
12075 * memory-map.h: Ditto.
12076 * mep-tdep.c: Ditto.
12077 * microblaze-rom.c: Ditto.
12078 * microblaze-tdep.c: Ditto.
12079 * minsyms.c: Ditto.
12080 * mips-irix-tdep.c: Ditto.
12081 * mips-linux-nat.c: Ditto.
12082 * mips-linux-tdep.c: Ditto.
12083 * mips-linux-tdep.h: Ditto.
12084 * mipsnbsd-nat.c: Ditto.
12085 * mipsnbsd-tdep.c: Ditto.
12086 * mipsread.c: Ditto.
12087 * mips-tdep.c: Ditto.
12088 * mips-tdep.h: Ditto.
12089 * mn10300-linux-tdep.c: Ditto.
12090 * mn10300-tdep.c: Ditto.
12091 * mn10300-tdep.h: Ditto.
12092 * monitor.c: Ditto.
12093 * monitor.h: Ditto.
12094 * moxie-tdep.c: Ditto.
12095 * moxie-tdep.h: Ditto.
12096 * mt-tdep.c: Ditto.
12098 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12100 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12102 2011-01-08 Robert Millan <rmh@gnu.org>
12104 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12106 2011-01-07 Michael Snyder <msnyder@vmware.com>
12108 * charset.c (_initialize_charset): Fix typo in string.
12110 2011-01-07 Michael Snyder <msnyder@vmware.com>
12112 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12114 * tui/tui-layout.c (tui_set_layout_for_display_command):
12115 Split line so that operator goes to beginning of line.
12116 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12117 assignment out of if statement.
12119 2011-01-07 Michael Snyder <msnyder@vmware.com>
12121 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12122 * ada-lang.h: Ditto.
12123 * ada-tasks.c: Ditto.
12124 * ada-valprint.c: Ditto.
12125 * aix-threads.c: Ditto.
12126 * alpha-linux-nat.c: Ditto.
12127 * alpha-linux-tdep.c: Ditto.
12128 * alpha-mdebug-tdep.c: Ditto.
12129 * alpha-nat.c: Ditto.
12130 * alpha-osf1-tdep.c: Ditto.
12131 * alpha-tdep.c: Ditto.
12132 * alphabsd-nat.c: Ditto.
12133 * alphabsd-tdep.c: Ditto.
12134 * amd64-darwin-tdep.c: Ditto.
12135 * amd64-linux-nat.c: Ditto.
12136 * amd64-linux-tdep.c: Ditto.
12137 * amd64-sol2-tdep.c: Ditto.
12138 * amd64-tdep.c: Ditto.
12139 * amd64-fbsd-tdep.c: Ditto.
12140 * amd64-nbsd-tdep.c: Ditto.
12141 * amd64-obsd-tdep.c: Ditto.
12142 * amd64-linux-nat.c: Ditto.
12143 * amd64-linux-tdep.c: Ditto.
12144 * arm-tdep.c: Ditto.
12145 * arm-tdep.h: Ditto.
12146 * armnbsd-nat.c: Ditto.
12147 * avr-tdep.c: Ditto.
12148 * bfin-tdep.c: Ditto.
12149 * bsd-kvm.c: Ditto.
12150 * c-typeprintc: Ditto.
12151 * c-valprint.c: Ditto.
12152 * coff-pe-read.h: Ditto.
12153 * coffreead.c: Ditto.
12154 * cris-tdep.c: Ditto.
12156 * darwin-nat-info.c: Ditto.
12157 * darwin-nat.c: Ditto.
12158 * dbug-rom.c: Ditto.
12159 * dbxread.c: Ditto.
12162 * dec-thread.c: Ditto.
12164 * demangle.c: Ditto.
12165 * dicos-tdep.c: Ditto.
12166 * dictionary.c: Ditto.
12167 * dictionary.h: Ditto.
12168 * dink32-rom.c: Ditto.
12170 * doublest.c: Ditto.
12172 * dummy-frame.c: Ditto.
12173 * dwarf2-frame.c: Ditto.
12174 * dwarf2expr.c: Ditto.
12175 * dwarf2loc.c: Ditto.
12176 * dwarf2read.c: Ditto.
12177 * elfread.c: Ditto.
12178 * environ.c: Ditto.
12180 * event-top.h: Ditto.
12181 * exceptions.c: Ditto.
12182 * exceptions.h: Ditto.
12184 * expprint.c: Ditto.
12185 * expression.h: Ditto.
12189 * f-typeprint.c: Ditto.
12190 * f-valprint.c: Ditto.
12191 * fbsd-nat.c: Ditto.
12192 * findvar.c: Ditto.
12193 * fork-child.c: Ditto.
12196 * frv-linux-tdep.c: Ditto.
12197 * frv-tdep.c: Ditto.
12199 * gdb-stabs.h: Ditto.
12200 * gdb_assert.h: Ditto.
12201 * gdb_string.h: Ditto.
12202 * gdb_thread_db.h: Ditto.
12203 * gdb_wait.h: Ditto.
12204 * gdbarch.sh: Ditto.
12205 * gdbcore.h: Ditto.
12206 * gdbthread.h: Ditto.
12207 * gdbtypes.c: Ditto.
12208 * gdbtypes.h: Ditto.
12209 * gnu-nat.c: Ditto.
12210 * gnu-nat.h: Ditto.
12211 * gnu-v2-abi.c: Ditto.
12212 * gnu-v3-abi.c: Ditto.
12213 * go32-nat.c: Ditto.
12214 * gdbarch.c: Regenerate.
12215 * gdbarch.h: Regenerate.
12217 2011-01-07 Michael Snyder <msnyder@vmware.com>
12219 * ax-gdb.c: Adjust some long output strings.
12220 * breakpoint.c: Ditto.
12221 * charset.c: Ditto.
12223 * infcall.c: Ditto.
12225 * linux-nat.c: Ditto.
12226 * solib-pa64.c: Ditto.
12227 * solib-som.c: Ditto.
12229 2011-01-06 Tom Tromey <tromey@redhat.com>
12233 * python/python.c (GdbMethods): Add "newest_frame" method.
12234 * python/python-internal.h (gdbpy_newest_frame): Declare.
12235 * python/py-frame.c (gdbpy_newest_frame): New function.
12237 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12239 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12240 * jit.c (jit_debug): New variable.
12241 (show_jit_debug): New function.
12242 (struct target_buffer): Use ULONGEST.
12243 (bfd_open_from_target_memory): Likewise.
12244 (jit_register_code, jit_inferior_init): Add debug output.
12245 (_initialize_jit): Register "debug jit" command.
12247 2011-01-06 Tom Tromey <tromey@redhat.com>
12249 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12250 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12253 2011-01-06 Tom Tromey <tromey@redhat.com>
12255 * python/py-frame.c (frapy_block): Use get_frame_block.
12257 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12259 Do not stop on SIGPRIO signals by default
12260 * infrun.c (_initialize_infrun): Unset signal_stop and
12261 signal_print for TARGET_SIGNAL_PRIO.
12263 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12265 * ada-tasks.c: Fix style violation in comment.
12267 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12269 * linespec.c (decode_compound, find_method): Remove trailing \n
12270 at end of error string.
12271 * solib-irix.c (irix_current_sos): Likewise.
12272 * varobj.c (uninstall_variable): Likewise.
12274 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12276 * copyright.py: New script.
12277 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12278 Launch emacs without exec'ing. Call copyright.py afterwards.
12280 2011-01-05 Michael Snyder <msnyder@vmware.com>
12282 * addrmap.c: Shorten lines of >= 80 columns.
12283 * arch-utils.c: Ditto.
12284 * arch-utils.h: Ditto.
12286 * ax-general.c: Ditto.
12288 * blockframe.c: Ditto.
12289 * breakpoint.c: Ditto.
12290 * buildsym.c: Ditto.
12292 * c-typeprint.c: Ditto.
12293 * charset.c: Ditto.
12294 * coffread.c: Ditto.
12295 * command.h: Ditto.
12296 * corelow.c: Ditto.
12298 * cp-namespace.c: Ditto.
12299 * cp-support.c: Ditto.
12300 * dbug-rom.c: Ditto.
12301 * dbxread.c: Ditto.
12305 * dictionary.c: Ditto.
12307 * doublest.c: Ditto.
12308 * dwarf2-frame.c: Ditto.
12309 * dwarf2expr.c: Ditto.
12310 * dwarf2loc.c: Ditto.
12311 * dwarf2read.c: Ditto.
12312 * elfread.c: Ditto.
12314 * event-loop.c: Ditto.
12315 * event-loop.h: Ditto.
12316 * exceptions.h: Ditto.
12318 * expprint.c: Ditto.
12319 * expression.h: Ditto.
12321 * f-valprint.c: Ditto.
12322 * findcmd.c: Ditto.
12323 * frame-base.c: Ditto.
12324 * frame-unwind.c: Ditto.
12325 * frame-unwind.h: Ditto.
12329 * gdb-stabs.h: Ditto.
12330 * gdb_assert.h: Ditto.
12331 * gdb_dirent.h: Ditto.
12332 * gdb_obstack.h: Ditto.
12333 * gdbcore.h: Ditto.
12334 * gdbtypes.c: Ditto.
12335 * gdbtypes.h: Ditto.
12336 * inf-ttrace.c: Ditto.
12337 * infcall.c: Ditto.
12341 * inline-frame.h: Ditto.
12342 * language.c: Ditto.
12343 * language.h: Ditto.
12344 * libunwind-frame.c: Ditto.
12345 * libunwind-frame.h: Ditto.
12346 * linespec.c: Ditto.
12347 * linux-nat.c: Ditto.
12348 * linux-nat.h: Ditto.
12349 * linux-thread-db.c: Ditto.
12350 * machoread.c: Ditto.
12351 * macroexp.c: Ditto.
12352 * macrotab.c: Ditto.
12355 * mdebugread.c: Ditto.
12356 * memattr.c: Ditto.
12357 * minsyms.c: Ditto.
12358 * monitor.c: Ditto.
12359 * monitor.h: Ditto.
12360 * objfiles.c: Ditto.
12361 * objfiles.h: Ditto.
12363 * p-typeprint.c: Ditto.
12364 * p-valprint.c: Ditto.
12366 * printcmd.c: Ditto.
12367 * proc-events.c: Ditto.
12369 * progspace.c: Ditto.
12370 * progspace.h: Ditto.
12371 * psympriv.h: Ditto.
12372 * psymtab.c: Ditto.
12374 * regcache.c: Ditto.
12375 * regcache.h: Ditto.
12376 * remote-fileio.c: Ditto.
12378 * ser-mingw.c: Ditto.
12379 * ser-tcp.c: Ditto.
12380 * ser-unix.c: Ditto.
12383 * solib-frv.c: Ditto.
12384 * solib-irix.c: Ditto.
12385 * solib-osf.c: Ditto.
12386 * solib-pa64.c: Ditto.
12387 * solib-som.c: Ditto.
12388 * solib-sunos.c: Ditto.
12389 * solib-svr4.c: Ditto.
12390 * solib-target.c: Ditto.
12392 * somread.c: Ditto.
12394 * stabsread.c: Ditto.
12395 * stabsread.c: Ditto.
12398 * symfile-mem.c: Ditto.
12399 * symfile.c: Ditto.
12400 * symfile.h: Ditto.
12401 * symmisc.c: Ditto.
12404 * target-descriptions.c: Ditto.
12405 * target-memory.c: Ditto.
12408 * terminal.h: Ditto.
12411 * tracepoint.c: Ditto.
12412 * tracepoint.h: Ditto.
12413 * ui-file.c: Ditto.
12414 * ui-file.h: Ditto.
12416 * user-regs.c: Ditto.
12417 * user-regs.h: Ditto.
12419 * valarith.c: Ditto.
12421 * valprint.c: Ditto.
12422 * valprint.h: Ditto.
12427 * xcoffread.c: Ditto.
12428 * xcoffsolib.c: Ditto.
12429 * xcoffsolib.h: Ditto.
12430 * xml-syscall.c: Ditto.
12431 * xml-tdesc.c: Ditto.
12433 2011-01-05 Michael Snyder <msnyder@vmware.com>
12435 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12436 * cli/cli-decode.c: Ditto.
12437 * cli/cli-dump.c: Ditto.
12438 * cli/cli-logging.c: Ditto.
12439 * cli/cli-script.c: Ditto.
12440 * cli/cli-setshow.c: Ditto.
12441 * common/signals.c: Ditto.
12442 * mi/mi-cmd-break.c: Ditto.
12443 * mi/mi-cmd-disas.c: Ditto.
12444 * mi/mi-cmd-stack.c: Ditto.
12445 * mi/mi-cmd-var.c: Ditto.
12446 * mi/mi-cmds.c: Ditto.
12447 * mi/mi-common.h: Ditto.
12448 * mi/mi-console.c: Ditto.
12449 * mi/mi-interp.c: Ditto.
12450 * mi/mi-main.c: Ditto.
12451 * osf-share/cma_attr.c: Ditto.
12452 * osf-share/cma_deb_core.h: Ditto.
12453 * osf-share/cma_debug_client.h: Ditto.
12454 * osf-share/cma_handle.h: Ditto.
12455 * osf-share/cma_mutex.h: Ditto.
12456 * osf-share/cma_stack_int.h: Ditto.
12457 * osf-share/cma_tcb_defs.h: Ditto.
12458 * python/py-auto-load.c: Ditto.
12459 * python/py-breakpoint.c: Ditto.
12460 * python/py-cmd.c: Ditto.
12461 * python/py-frame.c: Ditto.
12462 * python/py-objfile.c: Ditto.
12463 * python/py-param.c: Ditto.
12464 * python/py-progspace.c: Ditto.
12465 * python/py-symbol.c: Ditto.
12466 * python/py-value.c: Ditto.
12467 * python/python-internal.h: Ditto.
12468 * python/python.c: Ditto.
12469 * tui/tui-data.c: Ditto.
12470 * tui/tui-disasm.c: Ditto.
12471 * tui/tui-hooks.c: Ditto.
12472 * tui/tui-io.c: Ditto.
12473 * tui/tui-layout.c: Ditto.
12474 * tui/tui-regs.c: Ditto.
12475 * tui/tui-source.c: Ditto.
12476 * tui/tui-stack.c: Ditto.
12477 * tui/tui-win.c: Ditto.
12478 * tui/tui-windata.c: Ditto.
12479 * tui/tui-winsource.c: Ditto.
12481 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12483 * configure.ac, gdb.1: Copyright year update.
12485 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12487 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12488 this_pc_in_block, morestack_msym and morestack_name. Check for
12489 "__morestack" minimal symbol there.
12491 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12493 * symfile.c (find_sym_fns): Add call to dont_repeat.
12495 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12497 Copyright year update in most files (performed by copyright.sh).
12499 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12501 * top.c (print_gdb_version): Update copyright year in version output.
12503 For older changes see ChangeLog-2010.
12509 version-control: never