logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: [RFA/controversial] move bp by line number past the prologue: msg#00991

gdb.patches

Subject: Re: [RFA/controversial] move bp by line number past the prologue

On Aug 29, 11:15am, Joel Brobecker wrote:


2002-08-29 Jim Ingham <jingham@xxxxxxxxx>

* linespec.c (decode_line_1): Skip the function prologue if
funfirstline is set. Changes the behavior of the break command
to skip the function prologue when breaking by line number.


Joel,

My opinion is that this is a reasonable change providing that we
still have a mechanism for setting a breakpoint on the prologue.
When I want to do this I usually do ``b *foo'' instead of relying
on line numbers. (Usually I don't know the line number anyway.)
So, I have no objection to this patch so long as it doesn't change
the present behavior of ``b *foo''.

I've reread the thread in which this matter was discussed earlier
(i.e, the "[RFC] breakpoints and function prologues" messages). Given
that there was such disagreement before, I doubt that everyone will
agree with my point of view. If this turns out to be the case, might
I suggest a user settable option for controlling whether setting a
breakpoint by line number will always cause the prologue to be
skipped? That way both sides get the behavior they want. (GUIs can
set the desired behavior at initialization time.)

GUI and CLI behavior should be kept independant. Running GDB under a GUI, should not affect the CLI.

Andrew





<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo