diff options
author | Michael Snyder <msnyder@specifix.com> | 2002-01-09 18:49:22 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2002-01-09 18:49:22 +0000 |
commit | f607045dbcec0f24a3293d9a028f5bbf9e0bd8f8 (patch) | |
tree | 84f28ee323c43b2ba68c4c42c059bfb06d814b9d /gdb/exec.c | |
parent | ed56d9f546c466cefa8a65dbc0e7b0f130d20d49 (diff) | |
download | gdb-f607045dbcec0f24a3293d9a028f5bbf9e0bd8f8.tar.gz |
2002-01-09 Michael Snyder <msnyder@redhat.com>
* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 404617e0116..b07175ef5c6 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -771,30 +771,5 @@ file itself are wrong. Each section must be changed separately. The\n\ static char * exec_make_note_section (bfd *obfd, int *note_size) { - struct cleanup *old_chain; - char fname[16] = {'\0'}; - char psargs[80] = {'\0'}; - char *note_data = NULL; - - if (get_exec_file (0)) - { - strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname)); - strncpy (psargs, get_exec_file (0), - sizeof (psargs)); - if (get_inferior_args ()) - { - strncat (psargs, " ", - sizeof (psargs) - strlen (psargs)); - strncat (psargs, get_inferior_args (), - sizeof (psargs) - strlen (psargs)); - } - - note_data = (char *) elfcore_write_prpsinfo (obfd, - note_data, - note_size, - fname, - psargs); - make_cleanup (xfree, note_data); - } - return note_data; + error ("Can't create a corefile"); } |