mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 12:24:19 +08:00
2002-01-09 Michael Snyder <msnyder@redhat.com>
* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2002-01-09 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
|
* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
|
||||||
|
|
||||||
2002-01-09 Richard Earnshaw <rearnsha@arm.com>
|
2002-01-09 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
* config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
|
* config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
|
||||||
|
27
gdb/exec.c
27
gdb/exec.c
@ -771,30 +771,5 @@ file itself are wrong. Each section must be changed separately. The\n\
|
|||||||
static char *
|
static char *
|
||||||
exec_make_note_section (bfd *obfd, int *note_size)
|
exec_make_note_section (bfd *obfd, int *note_size)
|
||||||
{
|
{
|
||||||
struct cleanup *old_chain;
|
error ("Can't create a corefile");
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user