This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Simple but crucial bug fix to gdb
- To: Charlie Mills <cmills at synopsys dot com>
- Subject: Re: Simple but crucial bug fix to gdb
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 30 May 2001 22:13:36 -0500
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <3.0.5.32.20010530142745.01470ec0@pophost.pdxuxbre.lmc.com>
> I would like to submit a very simple patch to gdb.
> I would like if possible to avoid legal issues (avoid having to
> submit a form to our legal department) by simply describing the fix,
> which is a diff of only a few characters, rather than sending you a
> source file.
The size of the text you send doesn't make any difference --- it's the
size of the change that matters. You could have posted an ordinary
patch without legal troubles.
I find it odd that the stabs reader is seeing a function definition
symbol (a descriptor of 'f') before it's seen anything to set up the
psymtab. Does your object file really have an N_FUN stab (or
whatever) before the first N_SO stab?
If we just ignore the N_FUN, I'm worried that the pst's textlow will
not be set correctly --- that is, I'm not sure it's safe to just
ignore the N_FUN when pst is zero.
Could you post the result of running `objdump --stabs' on your
executable, or object file, if it's not too large or revealing?