mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
This commit is contained in:
parent
d945323396
commit
d75ea6de3d
@ -1,3 +1,8 @@
|
||||
Tue Jun 18 17:35:58 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
|
||||
* source.c (source_file_lookup_path): Likewise.
|
||||
|
||||
Mon Apr 8 14:44:33 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* configure.in: Permit --enable-shared to specify a list of
|
||||
|
@ -589,7 +589,7 @@ DEFUN (core_create_line_syms, (core_bfd), bfd * core_bfd)
|
||||
}
|
||||
|
||||
/* make name pointer a malloc'ed string: */
|
||||
ltab.limit->name = strdup (ltab.limit->name);
|
||||
ltab.limit->name = xstrdup (ltab.limit->name);
|
||||
ltab.limit->file = source_file_lookup_path (filename);
|
||||
|
||||
ltab.limit->addr = core_text_sect->vma + offset;
|
||||
|
@ -36,7 +36,7 @@ DEFUN (source_file_lookup_path, (path), const char *path)
|
||||
|
||||
sf = (Source_File *) xmalloc (sizeof (*sf));
|
||||
memset (sf, 0, sizeof (*sf));
|
||||
sf->name = strdup (path);
|
||||
sf->name = xstrdup (path);
|
||||
sf->next = first_src_file;
|
||||
first_src_file = sf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user