From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10764 invoked by alias); 13 May 2009 08:07:12 -0000 Received: (qmail 10748 invoked by uid 22791); 13 May 2009 08:07:11 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.190) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 May 2009 08:07:06 +0000 Received: by ti-out-0910.google.com with SMTP id a1so51465tib.12 for ; Wed, 13 May 2009 01:07:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.31.5 with SMTP id e5mr55499tie.35.1242202023467; Wed, 13 May 2009 01:07:03 -0700 (PDT) Date: Wed, 13 May 2009 08:07:00 -0000 Message-ID: Subject: [RFA Precord] Disable process record in amd64 From: Hui Zhu To: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00262.txt.bz2 Hi, The i386 process record can't work together with amd64 now. So I make a patch to disable it in amd64. 2009-05-13 Hui Zhu =09 * amd64-tdep.c (amd64_init_abi): Disable process record function that set in i386_gdbarch_init. * i386-tdep.c (i386_gdbarch_init): Call set_gdbarch_process_record before gdbarch_init_osabi to make process record can be disable in gdbarch_init_osabi. Thanks, Hui --- amd64-tdep.c | 3 +++ i386-tdep.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) --- a/amd64-tdep.c +++ b/amd64-tdep.c @@ -2049,6 +2049,9 @@ amd64_init_abi (struct gdbarch_info info amd64_regset_from_core_section); set_gdbarch_get_longjmp_target (gdbarch, amd64_get_longjmp_target); + + /* Disable process record function that set in i386_gdbarch_init. */ + set_gdbarch_process_record (gdbarch, 0); } =0C --- a/i386-tdep.c +++ b/i386-tdep.c @@ -5256,6 +5256,8 @@ i386_gdbarch_init (struct gdbarch_info i frame_base_set_default (gdbarch, &i386_frame_base); + set_gdbarch_process_record (gdbarch, i386_process_record); + /* Hook in ABI-specific overrides, if they have been registered. */ gdbarch_init_osabi (info, gdbarch); @@ -5277,8 +5279,6 @@ i386_gdbarch_init (struct gdbarch_info i set_gdbarch_skip_permanent_breakpoint (gdbarch, i386_skip_permanent_breakpoint); - set_gdbarch_process_record (gdbarch, i386_process_record); - return gdbarch; }