Our next GDB release (GDB version 6.8)

Pierre Muller muller@ics.u-strasbg.fr
Thu Jan 31 13:34:00 GMT 2008


  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





More information about the Gdb-patches mailing list