From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6830 invoked by alias); 29 May 2013 09:13:42 -0000 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 Received: (qmail 6801 invoked by uid 89); 29 May 2013 09:13:41 -0000 X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,TW_RG autolearn=ham version=3.3.1 Received: from mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 29 May 2013 09:13:41 +0000 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 29 May 2013 02:13:38 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by AZSMGA002.ch.intel.com with ESMTP; 29 May 2013 02:13:36 -0700 Received: from ulslx001.iul.intel.com (ulslx001.iul.intel.com [172.28.207.63]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id r4T9DZmq011435; Wed, 29 May 2013 10:13:35 +0100 Received: from ulslx001.iul.intel.com (localhost [127.0.0.1]) by ulslx001.iul.intel.com with ESMTP id r4T9DZNw014328; Wed, 29 May 2013 11:13:35 +0200 Received: (from nblanc@localhost) by ulslx001.iul.intel.com with id r4T9DYJI014323; Wed, 29 May 2013 11:13:34 +0200 From: Nicolas Blanc To: gdb-patches@sourceware.org, palves@redhat.com, tromey@redhat.com, eliz@gnu.org, yao@codesourcery.com Cc: nicolas.blanc@intel.com Subject: [patch v4 0/3] remove-symbol-file Date: Wed, 29 May 2013 09:13:00 -0000 Message-Id: <1369818805-14288-1-git-send-email-nicolas.blanc@intel.com> X-SW-Source: 2013-05/txt/msg00979.txt.bz2 Changes between v3 and v4: * gdb/symfile.c: add missing space character in output string. * gdb/doc/gdb.texinfo: add usage example. Changes between v2 and v3: * gdb/breakpoints.c (disable_breakpoints_in_freed_objfile): Changed name of disable_breakpoints_in_free_objfile to disable_breakpoints_in_freed_objfile. Call observer_breakpoint_modified at most one time per breakpoint. * gdb/objfiles.h (struct objfile): Add comment for low_addr. * gdb/solib.c (remove_user_added_objfile): Don't check OBJF_SHARED anymore to avoid leaving dangling pointers. * gdb/symfile.c (add_symbol_file_command): Parse and evaluate the address parameter only once. * gdb/symfile.c (remove_symbol_file_command): Don't use gdb_buildargv anymore. Ask the user for confirmation before removing a file. * gdb/doc/gdb.texinfo: The parameter of the command is now referred to as "the address of the text section". * gdb/NEWS: Move the entry for remove-symbol-file to "Changes since GDB 7.6". The address parameter is now referred to as "the beginning of the text section". * Fixed letter case of variables in comments. * Fixed indentation typos. Nicolas Blanc (3): Create remove-symbol-file command. Test adding and removing a symbol file at runtime. Documentation for the remove-symbol-file command. gdb/NEWS | 5 + gdb/breakpoint.c | 82 +++++++- gdb/doc/gdb.texinfo | 31 +++- gdb/doc/observer.texi | 4 + gdb/objfiles.c | 3 + gdb/objfiles.h | 4 + gdb/printcmd.c | 15 +- gdb/solib.c | 23 ++ gdb/symfile.c | 55 +++++- gdb/testsuite/gdb.base/sym-file-lib.c | 21 ++ gdb/testsuite/gdb.base/sym-file-main.c | 377 ++++++++++++++++++++++++++++++++ gdb/testsuite/gdb.base/sym-file.exp | 160 ++++++++++++++ 12 files changed, 768 insertions(+), 12 deletions(-) create mode 100644 gdb/testsuite/gdb.base/sym-file-lib.c create mode 100644 gdb/testsuite/gdb.base/sym-file-main.c create mode 100644 gdb/testsuite/gdb.base/sym-file.exp -- 1.7.6.5