This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Our next GDB release (GDB version 6.8)
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Joel Brobecker'" <brobecker at adacore dot com>, <gdb at sourceware dot org>
- Cc: "'Pedro Alves'" <pedro_alves at portugalmail dot pt>
- Date: Mon, 28 Jan 2008 11:55:40 +0100
- Subject: RE: Our next GDB release (GDB version 6.8)
- References: <20080126005319.GD21874@adacore.com>
I would really like to have the
call to __main fixed !
This would allow to get consistent behavior
between linux and cygwin/mingw32 for the
'start' command as skip_prologue would
really go up to the first real instruction.
Pedro proposed a patch for this,
http://sourceware.org/ml/gdb-patches/2007-10/msg00361.html
which is not perfect in the sense that it is
i386 specific, while this should be
processor independent.
But supporting this for all compilers
might require much bigger changes,
like adding a processor independent layer to
skip_prologue, that would be able to
just call process_is_call (CORE_ADDR pc, char *func_name)
that would return pc if it is not a call instruction
or the CORE_ADDR after the call instruction if pc points to a call
instruction,
and func_name would return the function name if the call
points to a existing function (the second argument type
might also be a psymbol struct, or something similar...)
This could be used for __main _alloca, but probably also
for _mcount for executables containing profiling information.
The reason this change is probably much bigger is
that it would require to add a new processor_is_call function
to the tdep struct, and restructure the skip_prologue.
Is it reasonable to hope for inclusion of this
patch before the branch?
Pierre Muller
PS: I would also like my small second patch about BINOP_INTDIV
http://sourceware.org/ml/gdb-patches/2008-01/msg00606.html