Index: solib-svr4.c =================================================================== RCS file: /cvs/src/src/gdb/solib-svr4.c,v retrieving revision 1.110 diff -u -p -r1.110 solib-svr4.c --- solib-svr4.c 8 Jan 2010 22:52:03 -0000 1.110 +++ solib-svr4.c 14 Jan 2010 21:57:37 -0000 @@ -1312,7 +1312,10 @@ enable_break (struct svr4_info *info, in os->objfile->sect_index_text); interp_sect = bfd_get_section_by_name (tmp_bfd, ".text"); - if (interp_sect) + + /* Skip if tmp_bfd points to main executable. */ + if (interp_sect + && strcmp (tmp_bfd->filename, exec_bfd->filename) != 0) { info->interp_text_sect_low = bfd_section_vma (tmp_bfd, interp_sect) + load_addr;