Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFA: [symfile.c} Fix to symbol_file_add() [REPOST]
Date: Thu, 10 May 2001 08:34:00 -0000	[thread overview]
Message-ID: <3AFAB48A.255373CC@redhat.com> (raw)
In-Reply-To: <3AF6C7EE.394BFC1F@redhat.com>

Checked in.

Thanks again Elena.

Fernando


> ChangeLog:
> 
>         * symfile.c (symbol_file_add_main_1): New static function.
> Passes
>         the flags arguments to  symbol_file_add() and takes care of any
>         necessary reinitializations.
>         (symbol_file_command): Call symbol_file_add_main_1() instead of
>         symbol_file_add().
>         (symbol_file_add_main): Ditto.
> 
> 
>   ------------------------------------------------------------------------
> Index: symfile.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/symfile.c,v
> retrieving revision 1.31
> diff -c -p -r1.31 symfile.c
> *** symfile.c   2001/04/05 02:02:13     1.31
> --- symfile.c   2001/05/07 15:44:48
> *************** static void set_initial_language (void);
> *** 109,114 ****
> --- 109,116 ----
> 
>   static void load_command (char *, int);
> 
> + static void symbol_file_add_main_1 (char *args, int from_tty, int flags);
> +
>   static void add_symbol_file_command (char *, int);
> 
>   static void add_shared_symbol_files_command (char *, int);
> *************** symbol_file_add (char *name, int from_tt
> *** 896,908 ****
>     return (objfile);
>   }
> 
> ! /* Just call the above with default values.
> !    Used when the file is supplied in the gdb command line. */
> 
>   void
>   symbol_file_add_main (char *args, int from_tty)
>   {
> !   symbol_file_add (args, from_tty, NULL, 1, 0);
>   }
> 
>   void
> --- 898,931 ----
>     return (objfile);
>   }
> 
> ! /* Call symbol_file_add() with default values and update whatever is
> !    affected by the loading of a new main().
> !    Used when the file is supplied in the gdb command line
> !    and by some targets with special loading requirements.
> !    The auxiliary function, symbol_file_add_main_1(), has the flags
> !    argument for the switches that can only be specified in the symbol_file
> !    command itself.  */
> 
>   void
>   symbol_file_add_main (char *args, int from_tty)
> + {
> +   symbol_file_add_main_1 (args, from_tty, 0);
> + }
> +
> + static void
> + symbol_file_add_main_1 (char *args, int from_tty, int flags)
>   {
> !   symbol_file_add (args, from_tty, NULL, 1, flags);
> !
> ! #ifdef HPUXHPPA
> !   RESET_HP_UX_GLOBALS ();
> ! #endif
> !
> !   /* Getting new symbols may change our opinion about
> !      what is frameless.  */
> !   reinit_frame_cache ();
> !
> !   set_initial_language ();
>   }
> 
>   void
> *************** symbol_file_command (char *args, int fro
> *** 979,993 ****
>               else
>                 {
>                     name = *argv;
> -                 symbol_file_add (name, from_tty, NULL, 1, flags);
> - #ifdef HPUXHPPA
> -                 RESET_HP_UX_GLOBALS ();
> - #endif
> -                 /* Getting new symbols may change our opinion about
> -                    what is frameless.  */
> -                 reinit_frame_cache ();
> 
> !                 set_initial_language ();
>                 }
>           argv++;
>         }
> --- 1002,1009 ----
>               else
>                 {
>                     name = *argv;
> 
> !                 symbol_file_add_main_1 (name, from_tty, flags);
>                 }
>           argv++;
>         }

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


  reply	other threads:[~2001-05-10  8:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-07  9:08 Fernando Nasser
2001-05-10  8:34 ` Fernando Nasser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-30  8:25 RFA: [symfile.c} Fix to symbol_file_add() Fernando Nasser
2001-04-30 11:28 ` Elena Zannoni
2001-04-30 16:36   ` Fernando Nasser
2001-04-30 20:29     ` Elena Zannoni
2001-05-01  5:51       ` Fernando Nasser
     [not found]         ` <15087.31793.429533.289522@kwikemart.cygnus.com>
2001-05-02  8:55           ` RFA: [symfile.c} Fix to symbol_file_add() [REPOST] Fernando Nasser
     [not found]             ` <15088.12423.711167.908434@kwikemart.cygnus.com>
2001-05-02  9:43               ` Fernando Nasser
2001-05-02 10:26                 ` Elena Zannoni
2001-05-02 11:06                   ` Fernando Nasser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AFAB48A.255373CC@redhat.com \
    --to=fnasser@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox