From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Blandy To: Charlie Mills Cc: gdb-patches@sourceware.cygnus.com Subject: Re: Simple but crucial bug fix to gdb Date: Wed, 30 May 2001 20:12:00 -0000 Message-id: References: <3.0.5.32.20010530142745.01470ec0@pophost.pdxuxbre.lmc.com> X-SW-Source: 2001-05/msg00496.html > 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?