mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
gdb: remove return value of set_current_source_symtab_and_line
It is never used. Change-Id: I9bbc87a232a2d0f074fefa08f3435aac82cd3dcf Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
7d169f96d5
commit
24c228f794
21
gdb/source.c
21
gdb/source.c
@@ -269,30 +269,15 @@ set_default_source_symtab_and_line (void)
|
|||||||
select_source_symtab ();
|
select_source_symtab ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the current default file for listing and next line to list
|
/* See source.h. */
|
||||||
(the returned sal pc and end fields are not valid.)
|
|
||||||
and set the current default to whatever is in SAL.
|
|
||||||
NOTE: The returned sal pc and end fields are not valid. */
|
|
||||||
|
|
||||||
struct symtab_and_line
|
void
|
||||||
set_current_source_symtab_and_line (const symtab_and_line &sal)
|
set_current_source_symtab_and_line (const symtab_and_line &sal)
|
||||||
{
|
{
|
||||||
symtab_and_line cursal;
|
get_source_location (sal.pspace)->set (sal.symtab, sal.line);
|
||||||
|
|
||||||
current_source_location *loc = get_source_location (sal.pspace);
|
|
||||||
|
|
||||||
cursal.pspace = sal.pspace;
|
|
||||||
cursal.symtab = loc->symtab ();
|
|
||||||
cursal.line = loc->line ();
|
|
||||||
cursal.pc = 0;
|
|
||||||
cursal.end = 0;
|
|
||||||
|
|
||||||
loc->set (sal.symtab, sal.line);
|
|
||||||
|
|
||||||
/* Force the next "list" to center around the current line. */
|
/* Force the next "list" to center around the current line. */
|
||||||
clear_lines_listed_range ();
|
clear_lines_listed_range ();
|
||||||
|
|
||||||
return cursal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset any information stored about a default file and line to print. */
|
/* Reset any information stored about a default file and line to print. */
|
||||||
|
|||||||
@@ -124,12 +124,9 @@ extern symtab_and_line get_current_source_symtab_and_line
|
|||||||
we have without erroring out or trying to get a default. */
|
we have without erroring out or trying to get a default. */
|
||||||
extern void set_default_source_symtab_and_line (void);
|
extern void set_default_source_symtab_and_line (void);
|
||||||
|
|
||||||
/* Return the current default file for listing and next line to list
|
/* Set the current default file for listing and next line to list to whatever is
|
||||||
(the returned sal pc and end fields are not valid.)
|
in SAL. */
|
||||||
and set the current default to whatever is in SAL.
|
extern void set_current_source_symtab_and_line (const symtab_and_line &sal);
|
||||||
NOTE: The returned sal pc and end fields are not valid. */
|
|
||||||
extern symtab_and_line set_current_source_symtab_and_line
|
|
||||||
(const symtab_and_line &sal);
|
|
||||||
|
|
||||||
/* Reset any information stored about a default file and line to print. */
|
/* Reset any information stored about a default file and line to print. */
|
||||||
extern void clear_current_source_symtab_and_line (program_space *pspace);
|
extern void clear_current_source_symtab_and_line (program_space *pspace);
|
||||||
|
|||||||
Reference in New Issue
Block a user