Hello community, here is the log from the commit of package gdb checked in at Wed Sep 24 15:24:59 CEST 2008. -------- --- gdb/gdb.changes 2008-09-12 11:37:23.000000000 +0200 +++ /mounts/work_src_done/STABLE/gdb/gdb.changes 2008-09-24 14:23:07.000000000 +0200 @@ -1,0 +2,8 @@ +Wed Sep 24 14:23:01 CEST 2008 - schwab@suse.de + +- Update to head of trunk. +- Add POWER7 support. +- Add gcore. +- Add spu-elf to list of targets. + +------------------------------------------------------------------- Old: ---- gdb-6.8.50.20080912-cvs.tar.bz2 New: ---- gdb-6.8.50.20080924-cvs.tar.bz2 power7.diff power7-gdbserver.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.V23016/_old 2008-09-24 15:24:35.000000000 +0200 +++ /var/tmp/diff_new_pack.V23016/_new 2008-09-24 15:24:35.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package gdb (Version 6.8.50.20080912) +# spec file for package gdb (Version 6.8.50.20080924) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,6 +18,9 @@ Name: gdb +Summary: The GNU Debugger +Version: 6.8.50.20080924 +Release: 1 BuildRequires: bison dejagnu flex gcc-c++ gcc-fortran gcc-java gcc-objc python-devel readline-devel zlib-devel %if 0%{?suse_version} > 1020 BuildRequires: libexpat-devel @@ -35,9 +38,6 @@ Group: Development/Tools/Debuggers AutoReqProv: on PreReq: %{install_info_prereq} -Summary: The GNU Debugger -Version: 6.8.50.20080912 -Release: 1 %define sss -cvs Source: gdb-%{version}%{sss}.tar.bz2 Patch: cell-combined.diff @@ -51,6 +51,8 @@ Patch8: find-separate-debug-file.diff Patch9: fix-gdb-backtrace.diff Patch10: expand-line-sal-maybe.diff +Patch11: power7.diff +Patch12: power7-gdbserver.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -121,6 +123,8 @@ %patch8 %patch9 %patch10 +%patch11 -p1 +%patch12 -p1 %build %ifarch %ix86 ia64 ppc ppc64 s390 s390x x86_64 @@ -132,6 +136,7 @@ %define DIST %(echo '%distribution' | sed 's/ (.*)//') %if %build_multitarget ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')" +ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS spu-elf" %else ADDITIONAL_TARGETS= %endif @@ -158,6 +163,7 @@ %install make install-gdb install-info-gdb DESTDIR="$RPM_BUILD_ROOT" +install -m 755 gdb/gdb_gcore.sh $RPM_BUILD_ROOT%{_bindir}/gcore rm -f $RPM_BUILD_ROOT%{_bindir}/gdbtui rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gdbtui.1 rm -f $RPM_BUILD_ROOT%{_infodir}/stabs.info* @@ -180,6 +186,7 @@ %doc COPYING COPYING.LIB gdb/README gdb/NEWS %{_bindir}/gdb %{_bindir}/gstack +%{_bindir}/gcore %{_mandir}/man1/gdb.1.gz %{_infodir}/annotate.info*.gz %{_infodir}/gdb.info*.gz @@ -194,6 +201,11 @@ %endif %changelog +* Wed Sep 24 2008 schwab@suse.de +- Update to head of trunk. +- Add POWER7 support. +- Add gcore. +- Add spu-elf to list of targets. * Fri Sep 12 2008 schwab@suse.de - Update to head of trunk. - Add Cell combined debugger patch. ++++++ cell-combined.diff ++++++ --- /var/tmp/diff_new_pack.V23016/_old 2008-09-24 15:24:35.000000000 +0200 +++ /var/tmp/diff_new_pack.V23016/_new 2008-09-24 15:24:35.000000000 +0200 @@ -5034,7 +5034,7 @@ =================================================================== --- /dev/null +++ gdb-head/gdb/solib-spu.c -@@ -0,0 +1,477 @@ +@@ -0,0 +1,478 @@ +/* Cell SPU GNU/Linux support -- shared library handling. + Copyright (C) 2008 Free Software Foundation, Inc. + @@ -5115,6 +5115,7 @@ + if (target_has_execution) + { + struct cleanup *old_chain; ++ struct inferior *inferior = current_inferior (); + + /* Suppress MI messages that are unexpected at this point. */ + old_chain = make_cleanup_restore_integer (&suppress_resume_observer); @@ -5128,10 +5129,10 @@ + in particular when using the extended-remote target. Thus, we pass + TARGET_SIGNAL_TRAP to resume -- this way we will always get a trap. + (If one was already pending, it will be combined into this trap.) */ -+ stop_soon = STOP_QUIETLY; ++ inferior->stop_soon = STOP_QUIETLY; + resume (0, TARGET_SIGNAL_TRAP); + wait_for_inferior (1); -+ stop_soon = NO_STOP_QUIETLY; ++ inferior->stop_soon = NO_STOP_QUIETLY; + + do_cleanups (old_chain); + } ++++++ gdb-6.8.50.20080912-cvs.tar.bz2 -> gdb-6.8.50.20080924-cvs.tar.bz2 ++++++ gdb/gdb-6.8.50.20080912-cvs.tar.bz2 /mounts/work_src_done/STABLE/gdb/gdb-6.8.50.20080924-cvs.tar.bz2 differ: byte 11, line 1 ++++++ pie-relocate.diff ++++++ --- /var/tmp/diff_new_pack.V23016/_old 2008-09-24 15:24:35.000000000 +0200 +++ /var/tmp/diff_new_pack.V23016/_new 2008-09-24 15:24:35.000000000 +0200 @@ -1,6 +1,6 @@ --- gdb/breakpoint.c +++ gdb/breakpoint.c -@@ -4119,6 +4119,7 @@ describe_other_breakpoints (CORE_ADDR pc +@@ -4125,6 +4125,7 @@ describe_other_breakpoints (CORE_ADDR pc printf_filtered (" (thread %d)", b->thread); printf_filtered ("%s%s ", ((b->enable_state == bp_disabled || @@ -8,7 +8,7 @@ b->enable_state == bp_call_disabled) ? " (disabled)" : b->enable_state == bp_permanent -@@ -4194,6 +4195,7 @@ check_duplicates_for (CORE_ADDR address, +@@ -4200,6 +4201,7 @@ check_duplicates_for (CORE_ADDR address, ALL_BP_LOCATIONS (b) if (b->owner->enable_state != bp_disabled && b->owner->enable_state != bp_call_disabled @@ -16,7 +16,7 @@ && b->enabled && !b->shlib_disabled && b->address == address /* address / overlay match */ -@@ -4229,6 +4231,7 @@ check_duplicates_for (CORE_ADDR address, +@@ -4235,6 +4237,7 @@ check_duplicates_for (CORE_ADDR address, { if (b->owner->enable_state != bp_disabled && b->owner->enable_state != bp_call_disabled @@ -24,7 +24,7 @@ && b->enabled && !b->shlib_disabled && b->address == address /* address / overlay match */ && (!overlay_debugging || b->section == section) -@@ -4760,6 +4763,60 @@ disable_breakpoints_in_unloaded_shlib (s +@@ -4766,6 +4769,60 @@ disable_breakpoints_in_unloaded_shlib (s } } @@ -85,7 +85,7 @@ static void create_fork_vfork_event_catchpoint (int tempflag, char *cond_string, enum bptype bp_kind) -@@ -7555,6 +7612,7 @@ breakpoint_re_set_one (void *bint) +@@ -7561,6 +7618,7 @@ breakpoint_re_set_one (void *bint) if (not_found && (b->condition_not_parsed || (b->loc && b->loc->shlib_disabled) @@ -103,7 +103,7 @@ bp_permanent /* There is a breakpoint instruction hard-wired into the target's code. Don't try to write another breakpoint instruction on top of it, or restore -@@ -842,6 +843,10 @@ extern void remove_thread_event_breakpoi +@@ -843,6 +844,10 @@ extern void remove_thread_event_breakpoi extern void disable_breakpoints_in_shlibs (void); @@ -116,7 +116,7 @@ --- gdb/dwarf2read.c +++ gdb/dwarf2read.c -@@ -1257,7 +1257,7 @@ dwarf2_build_psymtabs (struct objfile *o +@@ -1258,7 +1258,7 @@ dwarf2_build_psymtabs (struct objfile *o else dwarf2_per_objfile->loc_buffer = NULL; @@ -136,13 +136,43 @@ { init_psymbol_list (objfile, 0); mainline = 0; +--- gdb/ia64-tdep.c ++++ gdb/ia64-tdep.c +@@ -3243,8 +3243,13 @@ ia64_convert_from_func_ptr_addr (struct + the target address itself points to a section that is executable. */ + if (s && (s->the_bfd_section->flags & SEC_CODE) == 0) + { +- CORE_ADDR pc = read_memory_unsigned_integer (addr, 8); +- struct obj_section *pc_section = find_pc_section (pc); ++ char buf[8]; ++ CORE_ADDR pc; ++ struct obj_section *pc_section; ++ if (target_read_memory (addr, buf, sizeof (buf)) == 0) ++ return addr; ++ pc = extract_unsigned_integer (buf, sizeof (buf)); ++ pc_section = find_pc_section (pc); + + if (pc_section && (pc_section->the_bfd_section->flags & SEC_CODE)) + return pc; --- gdb/infrun.c +++ gdb/infrun.c -@@ -1958,6 +1958,11 @@ handle_inferior_event (struct execution_ +@@ -1972,6 +1972,11 @@ handle_inferior_event (struct execution_ + #endif + target_terminal_inferior (); + ++ /* For PIE executables, we don't really know where the ++ breakpoints are going to be until we start up the ++ inferior. */ ++ re_enable_breakpoints_at_startup (); ++ + /* If requested, stop when the dynamic linker notifies + gdb of events. This allows the user to get control + and place breakpoints in initializer routines for +@@ -2896,6 +2901,11 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME ( #endif target_terminal_inferior (); -+ /* For PIE executables, we dont really know where the ++ /* For PIE executables, we don't really know where the + breakpoints are going to be until we start up the + inferior. */ + re_enable_breakpoints_at_startup (); @@ -332,9 +362,9 @@ /* Return 1 if PC lies in the dynamic symbol resolution code of the SVR4 run time loader. */ static CORE_ADDR interp_text_sect_low; -@@ -1604,6 +1638,8 @@ svr4_solib_create_inferior_hook (void) +@@ -1606,6 +1640,8 @@ svr4_solib_create_inferior_hook (void) while (tp->stop_signal != TARGET_SIGNAL_TRAP); - stop_soon = NO_STOP_QUIETLY; + inf->stop_soon = NO_STOP_QUIETLY; #endif /* defined(_SCO_DS) */ + + disable_breakpoints_at_startup (1); @@ -385,7 +415,7 @@ free_section_addr_info (sap); return (1); -@@ -627,28 +648,7 @@ update_solib_list (int from_tty, struct +@@ -633,28 +654,7 @@ update_solib_list (int from_tty, struct /* Fill in the rest of each of the `struct so_list' nodes. */ for (i = inferior; i; i = i->next) { @@ -415,7 +445,7 @@ /* Notify any observer that the shared object has been loaded now that we've added it to GDB's tables. */ -@@ -744,6 +744,39 @@ solib_add (char *pattern, int from_tty, +@@ -750,6 +750,39 @@ solib_add (char *pattern, int from_tty, } } @@ -546,7 +576,7 @@ free_all_objfiles (); /* solib descriptors may have handles to objfiles. Since their -@@ -2451,6 +2456,8 @@ reread_symbols (void) +@@ -2454,6 +2459,8 @@ reread_symbols (void) /* Discard cleanups as symbol reading was successful. */ discard_cleanups (old_cleanups); ++++++ power7.diff ++++++ ++++ 1430 lines (skipped) ++++++ power7-gdbserver.diff ++++++ ++++ 912 lines (skipped) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org