This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patchv2] Record objfile->original_name as an absolute path


On Wed, Oct 9, 2013 at 7:46 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> diff --git a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> index 5be12fb..a93d5e7 100644
> --- a/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> +++ b/gdb/testsuite/gdb.dwarf2/dwp-symlink.c
> @@ -15,6 +15,13 @@
>     You should have received a copy of the GNU General Public License
>     along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
>
> +/* Cheezy hack to prevent set_initial_language from trying to look up main.
> +   We do this so that gdb won't try to open the dwp file when the file is
> +   first selected.  This gives us a chance to do a chdir before attempting
> +   to access the debug info.  */
> +asm (".globl main.main");
> +asm ("main.main: .byte 0");
> +
>  int
>  main (int argc, char **argv)
>  {

People are actually ok with this?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]