Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RE: Our next GDB release (GDB version 6.8)
       [not found]   ` <20080130180336.GD11271@adacore.com>
@ 2008-01-31 13:34     ` Pierre Muller
  2008-01-31 17:58       ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Muller @ 2008-01-31 13:34 UTC (permalink / raw)
  To: 'Joel Brobecker'; +Cc: pedro_alves, gdb-patches

  Joel,
  the main problem here is that
when you use the 'start' command
or set a breakpoint in 'main' function
and 'run', the behavior is not consistent
between ELF and other exe formats.
http://sourceware.org/ml/gdb-patches/2007-10/msg00361.html
  Currently GDB stops at the first line of real code
on ELF but on the call to __main
function.
  I added to the confusion because I tried to
argue that I was glad that it was that way,
and I proposed a testsuite solution to cope with that
problem that was rejected.
Daniel and Pedro convinced me that it would be much 
better to get the same behavior on all targets.

The problem is not restricted to i386 processor,
this is why Pedro proposed a patch with a new gdbarch
member. He only implemented the i386, but it
should be easy to extend this to other archs needed
this.

  I retested Pedro's patch tonight and 
it got
  174 more PASS
  175 less FAIL, 
no new FAIL appears
  1 more KFAIL (in fact a FAIL to KFAIL change).

  I really would like this one to go into
GDB 6.8

Pierre Muller
Pascal language maintainer

> -----Original Message-----
> From: Joel Brobecker [mailto:brobecker@adacore.com]
> Sent: Wednesday, January 30, 2008 7:04 PM
> To: Pierre Muller
> Cc: pedro_alves@portugalmail.pt
> Subject: Re: Our next GDB release (GDB version 6.8)
> 
> Pierre and Pedro,
> 
> >   I would really like to have the
> > call to __main fixed !
> 
> Would you mind reminding me what the actual problem is? I have a
> feeling
> at this point that there isn't a consensus on how to fix the problem
> yet
> and that could delay the release more than I'd like.  I would like to
> know more about the problem and its severity before we make a decision.
> 
> Thanks,
> --
> Joel




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Our next GDB release (GDB version 6.8)
  2008-01-31 13:34     ` Our next GDB release (GDB version 6.8) Pierre Muller
@ 2008-01-31 17:58       ` Joel Brobecker
  2008-01-31 19:53         ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2008-01-31 17:58 UTC (permalink / raw)
  To: Pierre Muller; +Cc: pedro_alves, gdb-patches

>   the main problem here is that when you use the 'start' command or
>   set a breakpoint in 'main' function and 'run', the behavior is not
>   consistent between ELF and other exe formats.

Got it: http://www.sourceware.org/ml/gdb/2006-11/msg00140.html.
Thanks.

> I really would like this one to go into GDB 6.8

In my opinion, this is not a critical issue. IIUC, this is not a regression,
and the only issue is that, for the "main", the breakpoint will be placed
at a location such that the debugger will stop at the open curly brace.
So the user will need an extra "next".

I did notice that the fix gets rid of a lot of FAILs though.

If it was just me, I would categorize this as non release-critical.
But the rest of the group might disagree, so I'll defer to them.

-- 
Joel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Our next GDB release (GDB version 6.8)
  2008-01-31 17:58       ` Joel Brobecker
@ 2008-01-31 19:53         ` Pedro Alves
  0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2008-01-31 19:53 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Pierre Muller, gdb-patches

Joel Brobecker wrote:
> In my opinion, this is not a critical issue. IIUC, this is not a regression,
> and the only issue is that, for the "main", the breakpoint will be placed
> at a location such that the debugger will stop at the open curly brace.
> So the user will need an extra "next".
> 

That and the fact that global c++ ctors will only run after "next".
That's what's most different, and surprising.

> I did notice that the fix gets rid of a lot of FAILs though.
> 

This happens, because a lot of tests fail because runto_main or
similar fails.

> If it was just me, I would categorize this as non release-critical.
> But the rest of the group might disagree, so I'll defer to them.
> 

I agree.  I'd like this to go in, of course, but there's no rush
from me.

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-31 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20080126005319.GD21874@adacore.com>
     [not found] ` <000501c8619c$5261e940$f725bbc0$@u-strasbg.fr>
     [not found]   ` <20080130180336.GD11271@adacore.com>
2008-01-31 13:34     ` Our next GDB release (GDB version 6.8) Pierre Muller
2008-01-31 17:58       ` Joel Brobecker
2008-01-31 19:53         ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox