Hello community,
here is the log from the commit of package gdb
checked in at Tue May 23 01:08:36 CEST 2006.
--------
--- gdb/gdb.changes 2006-04-23 16:42:54.000000000 +0200
+++ gdb/gdb.changes 2006-05-22 14:54:41.000000000 +0200
@@ -1,0 +2,5 @@
+Mon May 22 14:53:53 CEST 2006 - schwab(a)suse.de
+
+- Update to gdb 6.4.90 snapshot 20060522.
+
+-------------------------------------------------------------------
Old:
----
cflags-for-build.patch
dw-tag-member.diff
dwarf2-comp-dir.diff
gdb-6.4.tar.bz2
observer-notify-inferior-created.diff
ppc-skip-prologue.patch
New:
----
gdb-6.4.90.20060522.tar.bz2
mst-solib-trampoline.diff
readline-5.1-random.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.5xjRqN/_old 2006-05-23 01:07:44.000000000 +0200
+++ /var/tmp/diff_new_pack.5xjRqN/_new 2006-05-23 01:07:44.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package gdb (Version 6.4)
+# spec file for package gdb (Version 6.4.90.20060522)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -20,22 +20,18 @@
Group: Development/Tools/Debuggers
Autoreqprov: on
PreReq: %{install_info_prereq}
-Version: 6.4
-Release: 15
-%define gdb_version %(echo %version | sed s/_/-/)
+Version: 6.4.90.20060522
+Release: 1
Summary: The GNU Debugger
-Source: gdb-%{gdb_version}.tar.bz2
+Source: gdb-%{version}.tar.bz2
Patch1: gdb-misc.patch
Patch2: warn.patch
+Patch3: readline-5.1-random.patch
Patch4: readnever.patch
Patch5: gstack.patch
-Patch6: dw-tag-member.diff
Patch7: ppc-dwarf2-cfi.patch
-Patch8: cflags-for-build.patch
-Patch9: observer-notify-inferior-created.diff
-Patch10: ppc-skip-prologue.patch
-Patch11: pie-relocate.diff
-Patch12: dwarf2-comp-dir.diff
+Patch8: pie-relocate.diff
+Patch9: mst-solib-trampoline.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -63,18 +59,15 @@
Stu Grossman <grossman(a)cygnus.com>
%prep
-%setup -q -n %{name}-%{gdb_version}
+%setup -q
%patch1
%patch2
+%patch3
%patch4
%patch5
-%patch6
%patch7
%patch8
-%patch9 -p1
-%patch10 -p1
-%patch11
-%patch12 -p1
+%patch9
%build
CFLAGS="$RPM_OPT_FLAGS" \
@@ -86,7 +79,7 @@
--without-libunwind \
%endif
--with-separate-debug-dir=%{_prefix}/lib/debug \
- --enable-64-bit-bfd \
+ --enable-64-bit-bfd --disable-werror \
--enable-tui %{_target_cpu}-suse-linux
make %{?jobs:-j%jobs}
make info
@@ -130,6 +123,8 @@
%endif
%changelog -n gdb
+* Mon May 22 2006 - schwab(a)suse.de
+- Update to gdb 6.4.90 snapshot 20060522.
* Sun Apr 23 2006 - schwab(a)suse.de
- Add patch to avoid losing compilation directory.
- Fix a parallel build problem.
++++++ gdb-6.4.tar.bz2 -> gdb-6.4.90.20060522.tar.bz2 ++++++
gdb/gdb-6.4.tar.bz2 gdb/gdb-6.4.90.20060522.tar.bz2 differ: char 11, line 1
++++++ gdb-misc.patch ++++++
--- /var/tmp/diff_new_pack.5xjRqN/_old 2006-05-23 01:07:44.000000000 +0200
+++ /var/tmp/diff_new_pack.5xjRqN/_new 2006-05-23 01:07:44.000000000 +0200
@@ -12,14 +12,3 @@
WARN_CFLAGS = @WARN_CFLAGS@
WERROR_CFLAGS = @WERROR_CFLAGS@
---- sim/ppc/Makefile.in 2006/04/23 14:05:01 1.15
-+++ sim/ppc/Makefile.in 2006/04/23 14:29:33
-@@ -756,7 +756,7 @@ tmp-ld-cache: ld-cache.o misc.o lf.o tab
-
- ld-insn.o: ld-insn.c $(MISC_H) $(LF_H) $(TABLE_H) $(FILTER_H) $(LD_DECODE_H) $(LD_CACHE_H) $(LD_INSN_H) $(IGEN_H)
- $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/ld-insn.c
--tmp-ld-insn: ld-insn.o misc.o lf.o table.o ld-decode.o filter_host.o filter.o
-+tmp-ld-insn: ld-cache.o ld-insn.o misc.o lf.o table.o ld-decode.o filter_host.o filter.o
- $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-insn -DMAIN $(srcdir)/ld-insn.c ld-cache.o misc.o lf.o table.o ld-decode.o filter_host.o filter.o $(BUILD_LIBS)
-
- gen-model.o: gen-model.c $(MISC_H) $(LF_H) $(TABLE_H) $(FILTER_H) $(LD_CACHE_H) $(LD_DECODE_H) $(LD_INSN_H) $(GEN_MODEL_H)
++++++ mst-solib-trampoline.diff ++++++
--- gdb/minsyms.c.~1.45.~ 2006-01-09 18:20:59.000000000 +0100
+++ gdb/minsyms.c 2006-05-22 13:19:48.000000000 +0200
@@ -486,6 +486,8 @@ lookup_minimal_symbol_by_pc_section (COR
don't fill the bfd_section member, so don't
throw away symbols on those platforms. */
&& SYMBOL_BFD_SECTION (&msymbol[hi]) != NULL
+ /* Don't ignore symbols for solib trampolines. */
+ && MSYMBOL_TYPE (&msymbol[hi]) != mst_solib_trampoline
&& SYMBOL_BFD_SECTION (&msymbol[hi]) != section)
--hi;
++++++ pie-relocate.diff ++++++
--- /var/tmp/diff_new_pack.5xjRqN/_old 2006-05-23 01:07:45.000000000 +0200
+++ /var/tmp/diff_new_pack.5xjRqN/_new 2006-05-23 01:07:45.000000000 +0200
@@ -1,36 +1,28 @@
--- gdb/Makefile.in
+++ gdb/Makefile.in
-@@ -572,6 +572,7 @@
- coff_ecoff_h = $(INCLUDE_DIR)/coff/ecoff.h
- coff_internal_h = $(INCLUDE_DIR)/coff/internal.h
- dis_asm_h = $(INCLUDE_DIR)/dis-asm.h $(bfd_h)
-+elf_common_h = $(INCLUDE_DIR)/elf/common.h
- elf_reloc_macros_h = $(INCLUDE_DIR)/elf/reloc-macros.h
- elf_sh_h = $(INCLUDE_DIR)/elf/sh.h
- elf_arm_h = $(INCLUDE_DIR)/elf/arm.h $(elf_reloc_macros_h)
-@@ -2371,7 +2372,8 @@
+@@ -2401,7 +2401,8 @@
objfiles.o: objfiles.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \
$(objfiles_h) $(gdb_stabs_h) $(target_h) $(bcache_h) $(mdebugread_h) \
$(gdb_assert_h) $(gdb_stat_h) $(gdb_obstack_h) $(gdb_string_h) \
-- $(hashtab_h) $(breakpoint_h) $(block_h) $(dictionary_h)
-+ $(hashtab_h) $(breakpoint_h) $(block_h) $(dictionary_h) $(auxv_h) \
-+ $(elf_common_h)
+- $(hashtab_h) $(breakpoint_h) $(block_h) $(dictionary_h) $(source_h)
++ $(hashtab_h) $(breakpoint_h) $(block_h) $(dictionary_h) $(source_h) \
++ $(auxv_h) $(elf_common_h)
observer.o: observer.c $(defs_h) $(observer_h) $(command_h) $(gdbcmd_h) \
$(observer_inc)
- ocd.o: ocd.c $(defs_h) $(gdbcore_h) $(gdb_string_h) $(frame_h) $(inferior_h) \
-@@ -2588,8 +2590,9 @@
+ obsd-tdep.o: obsd-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(obsd_tdep_h)
+@@ -2624,9 +2625,9 @@
$(bcache_h) $(regcache_h)
solib-svr4.o: solib-svr4.c $(defs_h) $(elf_external_h) $(elf_common_h) \
$(elf_mips_h) $(symtab_h) $(bfd_h) $(symfile_h) $(objfiles_h) \
- $(gdbcore_h) $(target_h) $(inferior_h) $(gdb_assert_h) \
-- $(solist_h) $(solib_h) $(solib_svr4_h) $(bfd_target_h) $(exec_h)
+ $(gdbcore_h) $(target_h) $(inferior_h) $(command_h) $(gdb_assert_h) \
-+ $(solist_h) $(solib_h) $(solib_svr4_h) $(bfd_target_h) $(exec_h) \
-+ $(auxv_h)
+ $(solist_h) $(solib_h) $(solib_svr4_h) $(bfd_target_h) $(elf_bfd_h) \
+- $(exec_h)
++ $(exec_h) $(auxv_h)
sol-thread.o: sol-thread.c $(defs_h) $(gdbthread_h) $(target_h) \
$(inferior_h) $(gdb_stat_h) $(gdbcmd_h) $(gdbcore_h) $(regcache_h) \
$(solib_h) $(symfile_h) $(gdb_string_h) $(gregset_h)
-@@ -2681,7 +2684,7 @@
+@@ -2724,7 +2725,7 @@
$(objfiles_h) $(source_h) $(gdbcmd_h) $(breakpoint_h) $(language_h) \
$(complaints_h) $(demangle_h) $(inferior_h) $(filenames_h) \
$(gdb_stabs_h) $(gdb_obstack_h) $(completer_h) $(bcache_h) \
@@ -41,7 +33,7 @@
$(objfiles_h) $(exceptions_h) $(gdbcmd_h) $(target_h) $(value_h) \
--- gdb/breakpoint.c
+++ gdb/breakpoint.c
-@@ -3798,6 +3798,7 @@
+@@ -3804,6 +3804,7 @@
b->number,
((b->enable_state == bp_disabled ||
b->enable_state == bp_shlib_disabled ||
@@ -49,7 +41,7 @@
b->enable_state == bp_call_disabled)
? " (disabled)"
: b->enable_state == bp_permanent
-@@ -4475,6 +4476,60 @@
+@@ -4481,6 +4482,60 @@
}
}
@@ -110,7 +102,7 @@
static void
solib_load_unload_1 (char *hookname, int tempflag, char *dll_pathname,
char *cond_string, enum bptype bp_kind)
-@@ -6826,6 +6881,7 @@
+@@ -6827,6 +6882,7 @@
&& !b->loc->duplicate
&& b->enable_state != bp_disabled
&& b->enable_state != bp_shlib_disabled
@@ -118,7 +110,7 @@
&& !b->pending
&& b->enable_state != bp_call_disabled)
{
-@@ -7039,7 +7095,8 @@
+@@ -7042,7 +7098,8 @@
break;
save_enable = b->enable_state;
@@ -138,7 +130,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
-@@ -765,8 +766,12 @@
+@@ -794,8 +795,12 @@
extern void disable_breakpoints_in_shlibs (int silent);
@@ -153,7 +145,7 @@
extern void create_solib_unload_event_breakpoint (char *, int,
--- gdb/dwarf2read.c
+++ gdb/dwarf2read.c
-@@ -1201,7 +1201,7 @@
+@@ -1207,7 +1207,7 @@
else
dwarf2_per_objfile->loc_buffer = NULL;
@@ -164,7 +156,7 @@
{
--- gdb/elfread.c
+++ gdb/elfread.c
-@@ -559,7 +559,7 @@
+@@ -556,7 +556,7 @@
/* If we are reinitializing, or if we have never loaded syms yet,
set table to empty. MAINLINE is cleared so that *_read_psymtab
functions do not all also re-initialize the psymbol table. */
@@ -175,7 +167,7 @@
mainline = 0;
--- gdb/infrun.c
+++ gdb/infrun.c
-@@ -2177,6 +2177,11 @@
+@@ -2183,6 +2183,11 @@
code segments in shared libraries might be mapped in now. */
re_enable_breakpoints_in_shlibs ();
@@ -189,16 +181,16 @@
and place breakpoints in initializer routines for
--- gdb/objfiles.c
+++ gdb/objfiles.c
-@@ -45,6 +45,8 @@
- #include "breakpoint.h"
+@@ -46,6 +46,8 @@
#include "block.h"
#include "dictionary.h"
+ #include "source.h"
+#include "auxv.h"
+#include "elf/common.h"
/* Prototypes for local functions */
-@@ -257,7 +259,16 @@
+@@ -258,7 +260,16 @@
CORE_ADDR
entry_point_address (void)
{
@@ -226,15 +218,15 @@
#include "gdb_assert.h"
-@@ -43,6 +44,7 @@
-
+@@ -44,6 +45,7 @@
#include "bfd-target.h"
+ #include "elf-bfd.h"
#include "exec.h"
+#include "auxv.h"
static struct link_map_offsets *svr4_fetch_link_map_offsets (void);
static int svr4_have_link_map_offsets (void);
-@@ -170,8 +172,6 @@
+@@ -265,8 +267,6 @@
/* Local function prototypes */
@@ -243,7 +235,7 @@
static CORE_ADDR bfd_lookup_symbol (bfd *, char *, flagword);
/*
-@@ -296,17 +296,29 @@
+@@ -391,17 +391,29 @@
gdb_byte *buf;
gdb_byte *bufend;
int arch_size;
@@ -274,10 +266,10 @@
return 0;
/* Find the DT_DEBUG entry in the the .dynamic section.
-@@ -623,9 +635,55 @@
+@@ -718,9 +730,55 @@
does have a name, so we can no longer use a missing name to
decide when to ignore it. */
- if (IGNORE_FIRST_LINK_MAP_ENTRY (new))
+ if (IGNORE_FIRST_LINK_MAP_ENTRY (new) && ldsomap == 0)
- free_so (new);
+ {
+ /* It is the first link map entry, i.e. it is the main
@@ -331,7 +323,7 @@
int errcode;
char *buffer;
-@@ -643,10 +701,8 @@
+@@ -738,10 +796,8 @@
strcpy (new->so_original_name, new->so_name);
}
@@ -344,7 +336,7 @@
free_so (new);
else
{
-@@ -732,24 +788,6 @@
+@@ -834,24 +890,6 @@
return 0;
}
@@ -369,7 +361,7 @@
/* Return 1 if PC lies in the dynamic symbol resolution code of the
SVR4 run time loader. */
static CORE_ADDR interp_text_sect_low;
-@@ -1221,6 +1259,8 @@
+@@ -1323,6 +1361,8 @@
while (stop_signal != TARGET_SIGNAL_TRAP);
stop_soon = NO_STOP_QUIETLY;
#endif /* defined(_SCO_DS) */
@@ -526,7 +518,7 @@
reinit_frame_cache ();
--- gdb/symfile.c
+++ gdb/symfile.c
-@@ -50,6 +50,7 @@
+@@ -51,6 +51,7 @@
#include "block.h"
#include "observer.h"
#include "exec.h"
@@ -534,7 +526,7 @@
#include <sys/types.h>
#include <fcntl.h>
-@@ -660,7 +661,7 @@
+@@ -659,7 +660,7 @@
/* Now either addrs or offsets is non-zero. */
@@ -543,7 +535,7 @@
{
/* We will modify the main symbol table, make sure that all its users
will be cleaned up if an error occurs during symbol reading. */
-@@ -688,7 +689,7 @@
+@@ -687,7 +688,7 @@
We no longer warn if the lowest section is not a text segment (as
happens for the PA64 port. */
@@ -552,7 +544,7 @@
{
asection *lower_sect;
asection *sect;
-@@ -857,14 +858,14 @@
+@@ -856,14 +857,14 @@
/* If this is the main symbol file we have to clean up all users of the
old main symbol file. Otherwise it is sufficient to fixup all the
breakpoints that may have been redefined by this symbol file. */
@@ -569,7 +561,7 @@
{
breakpoint_re_set ();
}
-@@ -910,7 +911,7 @@
+@@ -909,7 +910,7 @@
interactively wiping out any existing symbols. */
if ((have_full_symbols () || have_partial_symbols ())
@@ -578,9 +570,9 @@
&& from_tty
&& !query ("Load new symbol table from \"%s\"? ", name))
error (_("Not confirmed."));
-@@ -1089,6 +1090,11 @@
- && !query ("Discard symbol table from `%s'? ",
- symfile_objfile->name))
+@@ -1090,6 +1091,11 @@
+ symfile_objfile->name)
+ : !query (_("Discard symbol table? "))))
error (_("Not confirmed."));
+
+#ifdef CLEAR_SOLIB
@@ -590,7 +582,7 @@
free_all_objfiles ();
/* solib descriptors may have handles to objfiles. Since their
-@@ -2114,6 +2120,8 @@
+@@ -2155,6 +2161,8 @@
/* Discard cleanups as symbol reading was successful. */
discard_cleanups (old_cleanups);
@@ -599,7 +591,7 @@
/* If the mtime has changed between the time we set new_modtime
and now, we *want* this to be out of date, so don't call stat
again now. */
-@@ -2491,6 +2499,7 @@
+@@ -2530,6 +2538,7 @@
clear_pc_function_cache ();
if (deprecated_target_new_objfile_hook)
deprecated_target_new_objfile_hook (NULL);
@@ -609,7 +601,7 @@
static void
--- gdb/varobj.c
+++ gdb/varobj.c
-@@ -872,6 +872,58 @@
+@@ -870,6 +870,58 @@
return rootcount;
}
++++++ ppc-dwarf2-cfi.patch ++++++
--- /var/tmp/diff_new_pack.5xjRqN/_old 2006-05-23 01:07:45.000000000 +0200
+++ /var/tmp/diff_new_pack.5xjRqN/_new 2006-05-23 01:07:45.000000000 +0200
@@ -1,259 +1,16 @@
-Index: gdb/Makefile.in
-===================================================================
-RCS file: /cvs/src/src/gdb/Makefile.in,v
-retrieving revision 1.613
-diff -c -p -r1.613 Makefile.in
-*** gdb/Makefile.in 1 Sep 2004 18:00:27 -0000 1.613
---- gdb/Makefile.in 2 Sep 2004 17:11:13 -0000
-*************** rs6000-tdep.o: rs6000-tdep.c $(defs_h) $
-*** 2396,2402 ****
- $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \
- $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \
- $(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_h) \
-! $(frame_unwind_h) $(frame_base_h) $(reggroups_h)
- s390-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \
- $(s390_tdep_h)
- s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \
---- 2396,2402 ----
- $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \
- $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \
- $(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_h) \
-! $(frame_unwind_h) $(frame_base_h) $(reggroups_h) $(dwarf2_frame_h)
- s390-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \
- $(s390_tdep_h)
- s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \
---- gdb/dwarf2-frame.c.~1.58.~ 2006-02-07 23:07:06.000000000 +0100
-+++ gdb/dwarf2-frame.c 2006-03-26 19:12:49.000000000 +0200
-@@ -89,6 +89,10 @@ struct dwarf2_fde
- gdb_byte *instructions;
- gdb_byte *end;
-
-+ /* True if this FDE is read from a .eh_frame instead of a .debug_frame
-+ section. */
-+ unsigned char eh_frame_p;
-+
- struct dwarf2_fde *next;
- };
-
-@@ -267,10 +271,11 @@ execute_stack_op (gdb_byte *exp, ULONGES
- static void
- execute_cfa_program (gdb_byte *insn_ptr, gdb_byte *insn_end,
- struct frame_info *next_frame,
-- struct dwarf2_frame_state *fs)
-+ struct dwarf2_frame_state *fs, int eh_frame_p)
- {
- CORE_ADDR pc = frame_pc_unwind (next_frame);
- int bytes_read;
-+ struct gdbarch *gdbarch = get_frame_arch (next_frame);
-
- while (insn_ptr < insn_end && fs->pc <= pc)
- {
-@@ -283,6 +288,8 @@ execute_cfa_program (gdb_byte *insn_ptr,
- else if ((insn & 0xc0) == DW_CFA_offset)
- {
- reg = insn & 0x3f;
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
- offset = utmp * fs->data_align;
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
-@@ -293,6 +300,8 @@ execute_cfa_program (gdb_byte *insn_ptr,
- {
- gdb_assert (fs->initial.reg);
- reg = insn & 0x3f;
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- if (reg < fs->initial.num_regs)
- fs->regs.reg[reg] = fs->initial.reg[reg];
-@@ -333,6 +342,8 @@ register %s (#%d) at 0x%s"),
-
- case DW_CFA_offset_extended:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
- offset = utmp * fs->data_align;
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
-@@ -343,25 +354,35 @@ register %s (#%d) at 0x%s"),
- case DW_CFA_restore_extended:
- gdb_assert (fs->initial.reg);
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- fs->regs.reg[reg] = fs->initial.reg[reg];
- break;
-
- case DW_CFA_undefined:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- fs->regs.reg[reg].how = DWARF2_FRAME_REG_UNDEFINED;
- break;
-
- case DW_CFA_same_value:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- fs->regs.reg[reg].how = DWARF2_FRAME_REG_SAME_VALUE;
- break;
-
- case DW_CFA_register:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
-+ if (eh_frame_p)
-+ utmp = dwarf2_frame_eh_frame_regnum (gdbarch, utmp);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- fs->regs.reg[reg].how = DWARF2_FRAME_REG_SAVED_REG;
- fs->regs.reg[reg].loc.reg = utmp;
-@@ -405,6 +426,9 @@ bad CFI data; mismatched DW_CFA_restore_
-
- case DW_CFA_def_cfa_register:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &fs->cfa_reg);
-+ if (eh_frame_p)
-+ fs->cfa_reg = dwarf2_frame_eh_frame_regnum (gdbarch,
-+ fs->cfa_reg);
- fs->cfa_how = CFA_REG_OFFSET;
- break;
-
-@@ -426,6 +450,8 @@ bad CFI data; mismatched DW_CFA_restore_
-
- case DW_CFA_expression:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
- fs->regs.reg[reg].loc.exp = insn_ptr;
-@@ -436,6 +462,8 @@ bad CFI data; mismatched DW_CFA_restore_
-
- case DW_CFA_offset_extended_sf:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, ®);
-+ if (eh_frame_p)
-+ reg = dwarf2_frame_eh_frame_regnum (gdbarch, reg);
- insn_ptr = read_sleb128 (insn_ptr, insn_end, &offset);
- offset *= fs->data_align;
- dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
-@@ -445,6 +473,9 @@ bad CFI data; mismatched DW_CFA_restore_
-
- case DW_CFA_def_cfa_sf:
- insn_ptr = read_uleb128 (insn_ptr, insn_end, &fs->cfa_reg);
-+ if (eh_frame_p)
-+ fs->cfa_reg = dwarf2_frame_eh_frame_regnum (gdbarch,
-+ fs->cfa_reg);
- insn_ptr = read_sleb128 (insn_ptr, insn_end, &offset);
- fs->cfa_offset = offset * fs->data_align;
- fs->cfa_how = CFA_REG_OFFSET;
-@@ -511,6 +542,9 @@ struct dwarf2_frame_ops
- /* Check whether the frame preceding NEXT_FRAME will be a signal
- trampoline. */
- int (*signal_frame_p) (struct gdbarch *, struct frame_info *);
-+
-+ /* Convert .eh_frame register number to DWARF register number. */
-+ int (*eh_frame_regnum) (struct gdbarch *, int);
- };
-
- /* Default architecture-specific register state initialization
-@@ -614,6 +648,31 @@ dwarf2_frame_signal_frame_p (struct gdba
- return 0;
- return ops->signal_frame_p (gdbarch, next_frame);
- }
-+
-+/* Set the architecture-specific mapping of .eh_frame register numbers to
-+ DWARF register numbers. */
-+
-+void
-+dwarf2_frame_set_eh_frame_regnum (struct gdbarch *gdbarch,
-+ int (*eh_frame_regnum) (struct gdbarch *,
-+ int))
-+{
-+ struct dwarf2_frame_ops *ops = gdbarch_data (gdbarch, dwarf2_frame_data);
-+
-+ ops->eh_frame_regnum = eh_frame_regnum;
-+}
-+
-+/* Translate a .eh_frame register to DWARF register. */
-+
-+int
-+dwarf2_frame_eh_frame_regnum (struct gdbarch *gdbarch, int regnum)
-+{
-+ struct dwarf2_frame_ops *ops = gdbarch_data (gdbarch, dwarf2_frame_data);
-+
-+ if (ops->eh_frame_regnum == NULL)
-+ return regnum;
-+ return ops->eh_frame_regnum (gdbarch, regnum);
-+}
-
-
- struct dwarf2_frame_cache
-@@ -682,14 +741,15 @@ dwarf2_frame_cache (struct frame_info *n
-
- /* First decode all the insns in the CIE. */
- execute_cfa_program (fde->cie->initial_instructions,
-- fde->cie->end, next_frame, fs);
-+ fde->cie->end, next_frame, fs, fde->eh_frame_p);
-
- /* Save the initialized register set. */
- fs->initial = fs->regs;
- fs->initial.reg = dwarf2_frame_state_copy_regs (&fs->regs);
-
- /* Then decode the insns in the FDE up to our target PC. */
-- execute_cfa_program (fde->instructions, fde->end, next_frame, fs);
-+ execute_cfa_program (fde->instructions, fde->end, next_frame, fs,
-+ fde->eh_frame_p);
-
- /* Caclulate the CFA. */
- switch (fs->cfa_how)
-@@ -1486,6 +1546,11 @@ decode_frame_entry_1 (struct comp_unit *
- else
- cie->return_address_register = read_unsigned_leb128 (unit->abfd, buf,
- &bytes_read);
-+ if (eh_frame_p)
-+ cie->return_address_register
-+ = dwarf2_frame_eh_frame_regnum (current_gdbarch,
-+ cie->return_address_register);
-+
- buf += bytes_read;
-
- cie->saw_z_augmentation = (*augmentation == 'z');
-@@ -1603,6 +1668,8 @@ decode_frame_entry_1 (struct comp_unit *
- fde->instructions = buf;
- fde->end = end;
-
-+ fde->eh_frame_p = eh_frame_p;
-+
- add_fde (unit, fde);
- }
-
---- gdb/dwarf2-frame.h.~1.10.~ 2005-12-29 02:06:19.000000000 +0100
-+++ gdb/dwarf2-frame.h 2006-03-26 18:49:36.000000000 +0200
-@@ -89,6 +89,19 @@ extern void
- int (*signal_frame_p) (struct gdbarch *,
- struct frame_info *));
-
-+/* Set the architecture-specific mapping of .eh_frame register numbers to
-+ DWARF register numbers. */
-+
-+extern void
-+ dwarf2_frame_set_eh_frame_regnum (struct gdbarch *gdbarch,
-+ int (*eh_frame_regnum) (struct gdbarch *,
-+ int));
-+
-+/* Translate a .eh_frame register to DWARF register. */
-+
-+extern int
-+ dwarf2_frame_eh_frame_regnum (struct gdbarch *gdbarch, int regnum);
-+
- /* Return the frame unwind methods for the function that contains PC,
- or NULL if it can't be handled by DWARF CFI frame unwinder. */
-
---- gdb/rs6000-tdep.c.~1.256.~ 2006-02-12 18:13:13.000000000 +0100
-+++ gdb/rs6000-tdep.c 2006-03-26 19:48:05.000000000 +0200
+--- gdb/Makefile.in
++++ gdb/Makefile.in
+@@ -2538,7 +2538,7 @@
+ $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \
+ $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \
+ $(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_h) \
+- $(frame_unwind_h) $(frame_base_h) $(rs6000_tdep_h)
++ $(frame_unwind_h) $(frame_base_h) $(rs6000_tdep_h) $(dwarf2_frame_h)
+ rs6000-aix-tdep.o: rs6000-aix-tdep.c $(defs_h) $(osabi_h) $(rs6000_tdep_h)
+ s390-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \
+ $(s390_tdep_h) $(target_h) $(linux_nat_h)
+--- gdb/rs6000-tdep.c
++++ gdb/rs6000-tdep.c
@@ -40,6 +40,7 @@
#include "sim-regno.h"
#include "gdb/sim-ppc.h"
@@ -262,7 +19,7 @@
#include "libbfd.h" /* for bfd_default_set_arch_mach */
#include "coff/internal.h" /* for libcoff.h */
-@@ -2267,6 +2268,40 @@ rs6000_dwarf2_reg_to_regnum (int num)
+@@ -2243,6 +2244,40 @@
}
@@ -303,7 +60,7 @@
static void
rs6000_store_return_value (struct type *type,
struct regcache *regcache,
-@@ -3485,6 +3520,10 @@ rs6000_gdbarch_init (struct gdbarch_info
+@@ -3461,6 +3496,10 @@
/* Helpers for function argument information. */
set_gdbarch_fetch_pointer_argument (gdbarch, rs6000_fetch_pointer_argument);
++++++ readline-5.1-random.patch ++++++
--- readline/misc.c
+++ readline/misc.c 2005-12-09 18:12:24.000000000 +0100
@@ -210,8 +210,10 @@
r = _rl_arg_dispatch (_rl_argcxt, c);
if (r <= 0 || (RL_ISSTATE (RL_STATE_NUMERICARG) == 0))
- break;
+ return r;
}
+
+ return 1;
}
/* Create a default argument. */
++++++ warn.patch ++++++
--- /var/tmp/diff_new_pack.5xjRqN/_old 2006-05-23 01:07:45.000000000 +0200
+++ /var/tmp/diff_new_pack.5xjRqN/_new 2006-05-23 01:07:45.000000000 +0200
@@ -1,7 +1,7 @@
--- gdb/remote.c
+++ gdb/remote.c
-@@ -980,8 +980,8 @@
-
+@@ -864,8 +864,8 @@
+ static int use_threadextra_query;
/* Tokens for use by the asynchronous signal handlers for SIGINT. */
-static void *sigint_remote_twice_token;
@@ -11,7 +11,7 @@
/* These are pointers to hook functions that may be set in order to
modify resume/wait behavior for a particular architecture. */
-@@ -2687,11 +2687,9 @@ cleanup_sigint_signal_handler (void *dum
+@@ -2523,11 +2523,9 @@
{
signal (SIGINT, handle_sigint);
if (sigint_remote_twice_token)
@@ -120,7 +120,7 @@
}
else
{
-@@ -912,37 +912,27 @@
+@@ -912,37 +912,25 @@
** init_and_make_win().
*/
static void
@@ -142,18 +142,14 @@
+ generic = tui_alloc_generic_win_info ();
else
- opaque_win_info = (void *) tui_alloc_win_info (win_type);
-+ generic = &tui_alloc_win_info (win_type)->generic;
-+ *win_info_ptr = generic;
- }
+- }
- if (tui_win_is_auxillary (win_type))
- generic = (struct tui_gen_win_info *) opaque_win_info;
- else
- generic = &((struct tui_win_info *) opaque_win_info)->generic;
-
- if (opaque_win_info != NULL)
-+ init_gen_win_info (generic, win_type, height, width, origin_x, origin_y);
-+ if (!tui_win_is_auxillary (win_type))
- {
+- {
- init_gen_win_info (generic, win_type, height, width, origin_x, origin_y);
- if (!tui_win_is_auxillary (win_type))
- {
@@ -163,15 +159,19 @@
- ((struct tui_win_info *) opaque_win_info)->can_highlight = TRUE;
- }
- tui_make_window (generic, box_it);
-+ ((struct tui_win_info *) generic)->can_highlight
-+ = generic->type != CMD_WIN;
++ generic = &tui_alloc_win_info (win_type)->generic;
++ *win_info_ptr = generic;
}
- *win_info_ptr = opaque_win_info;
++ init_gen_win_info (generic, win_type, height, width, origin_x, origin_y);
++ if (!tui_win_is_auxillary (win_type))
++ ((struct tui_win_info *) generic)->can_highlight
++ = generic->type != CMD_WIN;
+ tui_make_window (generic, box_it);
}
-@@ -959,23 +949,23 @@
+@@ -959,23 +947,23 @@
execution_info = tui_source_exec_info_win_ptr ();
else
execution_info = tui_disassem_exec_info_win_ptr ();
@@ -209,7 +209,7 @@
(*win_info_ptr)->detail.source_info.execution_info = execution_info;
}
-@@ -1009,13 +999,13 @@
+@@ -1009,13 +997,13 @@
make_source_window (win_info_ptr, src_height - 1, 0);
else
make_disasm_window (win_info_ptr, src_height - 1, 0);
@@ -230,8 +230,18 @@
}
else
{
---- sim/ppc/debug.c.~1.1.1.1.~ 1999-04-16 03:35:08.000000000 +0200
-+++ sim/ppc/debug.c 2005-07-07 15:57:15.000000000 +0200
+--- sim/common/gentmap.c
++++ sim/common/gentmap.c
+@@ -1,6 +1,7 @@
+ /* Generate targ-vals.h and targ-map.c. */
+
+ #include <stdio.h>
++#include <string.h>
+
+ struct tdefs {
+ char *symbol;
+--- sim/ppc/debug.c
++++ sim/ppc/debug.c
@@ -29,6 +29,10 @@
#include <stdlib.h>
#endif
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...