mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
(process_linenos): free the previously allocated subfile name, then
allocate the new one from the heap.
This commit is contained in:
@ -3,6 +3,8 @@ Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
|
|||||||
* xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
|
* xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
|
||||||
expects a pointer to complaint rather than a complaint
|
expects a pointer to complaint rather than a complaint
|
||||||
structure.
|
structure.
|
||||||
|
(process_linenos): free the previously allocated subfile name,
|
||||||
|
then allocate the new one from the heap.
|
||||||
|
|
||||||
Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
|
Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||||
|
|
||||||
|
@ -630,9 +630,8 @@ process_linenos (start, end)
|
|||||||
|
|
||||||
/* start_subfile (inclTable[ii].name, (char*)0); */
|
/* start_subfile (inclTable[ii].name, (char*)0); */
|
||||||
start_subfile (" ?", (char*)0);
|
start_subfile (" ?", (char*)0);
|
||||||
current_subfile->name =
|
free (current_subfile->name);
|
||||||
obsavestring (inclTable[ii].name, strlen (inclTable[ii].name),
|
current_subfile->name = strdup (inclTable[ii].name);
|
||||||
¤t_objfile->symbol_obstack);
|
|
||||||
|
|
||||||
if (lv == lineTb) {
|
if (lv == lineTb) {
|
||||||
current_subfile->line_vector = (struct linetable *)
|
current_subfile->line_vector = (struct linetable *)
|
||||||
|
Reference in New Issue
Block a user