From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17709 invoked by alias); 1 Jul 2004 21:36:21 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17692 invoked from network); 1 Jul 2004 21:36:20 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 1 Jul 2004 21:36:20 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i61LaJe1025676 for ; Thu, 1 Jul 2004 17:36:20 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i61LaHw06467; Thu, 1 Jul 2004 17:36:17 -0400 Received: from redhat.com (dhcp-172-16-25-160.sfbay.redhat.com [172.16.25.160]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i61LaGP05666; Thu, 1 Jul 2004 14:36:16 -0700 Message-ID: <40E483D0.3090806@redhat.com> Date: Thu, 01 Jul 2004 21:36:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.4.2) Gecko/20040301 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com, cgf@alum.bu.edu CC: Corinna Vinschen Subject: [PATCH] indent fix, win32-nat.c Content-Type: multipart/mixed; boundary="------------080508020204000802000204" X-SW-Source: 2004-07/txt/msg00012.txt.bz2 This is a multi-part message in MIME format. --------------080508020204000802000204 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 116 Chris, hope you don't mind, this seemed pretty obvious. Indentation seems to have gotten whacked out of line here. --------------080508020204000802000204 Content-Type: text/plain; name="win32-nat.indent" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="win32-nat.indent" Content-length: 4334 2004-07-01 Michael Snyder * win32-nat.c (core_dll_symbols_add): Re-indent a small section that seems to have gotten whacked out of line. Index: win32-nat.c =================================================================== RCS file: /cvs/src/src/gdb/win32-nat.c,v retrieving revision 1.93 diff -p -r1.93 win32-nat.c *** win32-nat.c 29 Jun 2004 15:37:31 -0000 1.93 --- win32-nat.c 1 Jul 2004 21:32:11 -0000 *************** core_dll_symbols_add (char *dll_name, DW *** 2267,2331 **** } } ! register_loaded_dll (dll_name, base_addr + 0x1000); ! solib_symbols_add (dll_name, 0, (CORE_ADDR) base_addr + 0x1000); ! out: ! return 1; ! } ! ! typedef struct ! { ! struct target_ops *target; ! bfd_vma addr; ! } map_code_section_args; ! ! static void ! map_single_dll_code_section (bfd * abfd, asection * sect, void *obj) ! { ! int old; ! int update_coreops; ! struct section_table *new_target_sect_ptr; ! ! map_code_section_args *args = (map_code_section_args *) obj; ! struct target_ops *target = args->target; ! if (sect->flags & SEC_CODE) ! { ! update_coreops = core_ops.to_sections == target->to_sections; ! ! if (target->to_sections) ! { ! old = target->to_sections_end - target->to_sections; ! target->to_sections = (struct section_table *) ! xrealloc ((char *) target->to_sections, ! (sizeof (struct section_table)) * (1 + old)); ! } ! else ! { ! old = 0; ! target->to_sections = (struct section_table *) ! xmalloc ((sizeof (struct section_table))); ! } ! target->to_sections_end = target->to_sections + (1 + old); ! ! /* Update the to_sections field in the core_ops structure ! if needed. */ ! if (update_coreops) ! { ! core_ops.to_sections = target->to_sections; ! core_ops.to_sections_end = target->to_sections_end; ! } ! new_target_sect_ptr = target->to_sections + old; ! new_target_sect_ptr->addr = args->addr + bfd_section_vma (abfd, sect); ! new_target_sect_ptr->endaddr = args->addr + bfd_section_vma (abfd, sect) + ! bfd_section_size (abfd, sect);; ! new_target_sect_ptr->the_bfd_section = sect; ! new_target_sect_ptr->bfd = abfd; ! } ! } ! static int ! dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *target) { bfd *dll_bfd; map_code_section_args map_args; --- 2267,2331 ---- } } ! register_loaded_dll (dll_name, base_addr + 0x1000); ! solib_symbols_add (dll_name, 0, (CORE_ADDR) base_addr + 0x1000); ! out: ! return 1; ! } ! ! typedef struct ! { ! struct target_ops *target; ! bfd_vma addr; ! } map_code_section_args; ! ! static void ! map_single_dll_code_section (bfd * abfd, asection * sect, void *obj) ! { ! int old; ! int update_coreops; ! struct section_table *new_target_sect_ptr; ! ! map_code_section_args *args = (map_code_section_args *) obj; ! struct target_ops *target = args->target; ! if (sect->flags & SEC_CODE) ! { ! update_coreops = core_ops.to_sections == target->to_sections; ! ! if (target->to_sections) ! { ! old = target->to_sections_end - target->to_sections; ! target->to_sections = (struct section_table *) ! xrealloc ((char *) target->to_sections, ! (sizeof (struct section_table)) * (1 + old)); ! } ! else ! { ! old = 0; ! target->to_sections = (struct section_table *) ! xmalloc ((sizeof (struct section_table))); ! } ! target->to_sections_end = target->to_sections + (1 + old); ! ! /* Update the to_sections field in the core_ops structure ! if needed. */ ! if (update_coreops) ! { ! core_ops.to_sections = target->to_sections; ! core_ops.to_sections_end = target->to_sections_end; ! } ! new_target_sect_ptr = target->to_sections + old; ! new_target_sect_ptr->addr = args->addr + bfd_section_vma (abfd, sect); ! new_target_sect_ptr->endaddr = args->addr + bfd_section_vma (abfd, sect) + ! bfd_section_size (abfd, sect);; ! new_target_sect_ptr->the_bfd_section = sect; ! new_target_sect_ptr->bfd = abfd; ! } ! } ! static int ! dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *target) { bfd *dll_bfd; map_code_section_args map_args; --------------080508020204000802000204--