* solib-svr4.c (enable_break): Don't attempt to place breakpoints,

when attaching, on the names in bkpt_names: _start, __start, and
	main.
This commit is contained in:
Kevin Buettner
2010-12-13 15:45:55 +00:00
parent 0914bcdbf6
commit c6490bf2ed
2 changed files with 18 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2010-12-13 Kevin Buettner <kevinb@redhat.com>
* solib-svr4.c (enable_break): Don't attempt to place breakpoints,
when attaching, on the names in bkpt_names: _start, __start, and
main.
2010-12-12 Stan Shebs <stan@codesourcery.com>
* value.c (value_of_internalvar): Add case for trace state

View File

@ -1607,6 +1607,8 @@ enable_break (struct svr4_info *info, int from_tty)
}
}
if (!current_inferior ()->attach_flag)
{
for (bkpt_namep = bkpt_names; *bkpt_namep != NULL; bkpt_namep++)
{
msymbol = lookup_minimal_symbol (*bkpt_namep, NULL, symfile_objfile);
@ -1620,6 +1622,7 @@ enable_break (struct svr4_info *info, int from_tty)
return 1;
}
}
}
return 0;
}