Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: jtc@redback.com (J.T. Conklin)
To: Kevin Buettner <kevinb@cygnus.com>
Cc: RDBrown@mira.net, RodneyBrown@mynd.com, gdb-patches@sources.redhat.com
Subject: Re: PATCH: gdb/corefile.c (0401 snap on HP-UX).
Date: Tue, 10 Apr 2001 17:46:00 -0000	[thread overview]
Message-ID: <5m1yr09scb.fsf@jtc.redback.com> (raw)
In-Reply-To: <1010409171714.ZM10166@ocotillo.lan>

>>>>> "Kevin" == Kevin Buettner <kevinb@cygnus.com> writes:
Kevin> The reason that symfile_objfile is undefined for HP is because of the
Kevin> following code in core_file_command():

Kevin> [...]

Kevin> The code controlled by the above ifdef looks pretty generic and
Kevin> it seems to me that it could be useful on targets other than
Kevin> HP.  I suggest that we do one of two things:
Kevin>
Kevin>     1) Enable it for all targets and add Rodney's #include statments
Kevin>        unconditionally.
Kevin>
Kevin>     2) Remove it entirely.
Kevin>
Kevin> I'm not familiar enough with the code in question to know what
Kevin> the best course of action is.

Yes, on second look the code is host/target independent.  I can't
understand why it is wrapped in HPPAHPUX.  Perhaps it was part of the
infamous HP "merge".

The comment before core_file_command() states that the "core-file"
command exists for backwards compatibility; but the command is not
marked deprecated in the CLI.  If I knew the command was deprecated,
I wouldn't hesitate suggesting the code be removed.

It is interesting to note that "target core XXX" does look at the name
of the symbol file, but only to print the name, not to set the symbol
file.  This might be a more appropriate behavior for the "core-file"
command.

Also note that that section of code is the only bit in GDB that uses
the .to_core_file_to_sym_file() vector function.  If it is removed,
we'll be able to remove quite a bit of code as well.

        --jtc

-- 
J.T. Conklin
RedBack Networks


  reply	other threads:[~2001-04-10 17:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-09  6:03 RDBrown
2001-04-09 10:17 ` Kevin Buettner
2001-04-10 17:46   ` J.T. Conklin [this message]
2001-04-12  9:40     ` J.T. Conklin
2001-04-09 10:24 ` J.T. Conklin
2001-04-10 16:14   ` Daniel Berlin
2001-04-10 17:51     ` J.T. Conklin
2001-04-10 21:06       ` Daniel Berlin

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=5m1yr09scb.fsf@jtc.redback.com \
    --to=jtc@redback.com \
    --cc=RDBrown@mira.net \
    --cc=RodneyBrown@mynd.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@cygnus.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