projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable async mode in the target in attach_cmd.
[binutils-gdb.git]
/
gdb
/
linespec.c
diff --git
a/gdb/linespec.c
b/gdb/linespec.c
index a8ae5943811a7c311b23b4ef60485efe216949cd..707a3a2586a2ce6d80e5d2f607119befacb78acd 100644
(file)
--- a/
gdb/linespec.c
+++ b/
gdb/linespec.c
@@
-4273,8
+4273,7
@@
add_minsym (struct minimal_symbol *minsym, struct objfile *objfile,
if (!list_mode && !msymbol_is_function (objfile, minsym))
return;
if (!list_mode && !msymbol_is_function (objfile, minsym))
return;
- struct bound_minimal_symbol mo = {minsym, objfile};
- msyms->push_back (mo);
+ msyms->emplace_back (minsym, objfile);
return;
}
return;
}
@@
-4451,7
+4450,7
@@
symbol_to_sal (struct symtab_and_line *result,
*result = {};
result->symtab = symbol_symtab (sym);
result->symbol = sym;
*result = {};
result->symtab = symbol_symtab (sym);
result->symbol = sym;
- result->line =
SYMBOL_LINE (sym
);
+ result->line =
sym->line (
);
result->pc = SYMBOL_VALUE_ADDRESS (sym);
result->pspace = result->symtab->pspace ();
result->explicit_pc = 1;
result->pc = SYMBOL_VALUE_ADDRESS (sym);
result->pspace = result->symtab->pspace ();
result->explicit_pc = 1;
@@
-4461,13
+4460,13
@@
symbol_to_sal (struct symtab_and_line *result,
{
/* Nothing. */
}
{
/* Nothing. */
}
- else if (
SYMBOL_LINE (sym
) != 0)
+ else if (
sym->line (
) != 0)
{
/* We know its line number. */
*result = {};
result->symtab = symbol_symtab (sym);
result->symbol = sym;
{
/* We know its line number. */
*result = {};
result->symtab = symbol_symtab (sym);
result->symbol = sym;
- result->line =
SYMBOL_LINE (sym
);
+ result->line =
sym->line (
);
result->pc = SYMBOL_VALUE_ADDRESS (sym);
result->pspace = result->symtab->pspace ();
return 1;
result->pc = SYMBOL_VALUE_ADDRESS (sym);
result->pspace = result->symtab->pspace ();
return 1;