aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-05-27 16:33:56 +0100
committerPedro Alves <pedro@palves.net>2022-06-17 09:58:49 +0100
commit7464aeaab47ca3fb7127223fe372489c9c7ed69e (patch)
tree0b301cd6c229f435b44b97b81ac543ab840a0a2b /gdb/breakpoint.c
parent238dc9af03392ecd8129ee54a340efd736782cf9 (diff)
downloadgdb-7464aeaab47ca3fb7127223fe372489c9c7ed69e.zip
gdb-7464aeaab47ca3fb7127223fe372489c9c7ed69e.tar.gz
gdb-7464aeaab47ca3fb7127223fe372489c9c7ed69e.tar.bz2
Convert location_spec_type to a method
This converts location_spec_type to location_spec::type(). Change-Id: Iff4cbfafb1cf3d22adfa142ff939b4a148e52273
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index bfa9e68..e3739a7 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8453,7 +8453,7 @@ parse_breakpoint_sals (location_spec *locspec,
{
struct symtab_and_line cursal;
- if (location_spec_type (locspec) == LINESPEC_LOCATION_SPEC)
+ if (locspec->type () == LINESPEC_LOCATION_SPEC)
{
const char *spec = as_linespec_location_spec (locspec)->spec_string;
@@ -8505,7 +8505,7 @@ parse_breakpoint_sals (location_spec *locspec,
{
const char *spec = NULL;
- if (location_spec_type (locspec) == LINESPEC_LOCATION_SPEC)
+ if (locspec->type () == LINESPEC_LOCATION_SPEC)
spec = as_linespec_location_spec (locspec)->spec_string;
if (!cursal.symtab
@@ -8768,7 +8768,7 @@ breakpoint_ops_for_location_spec (const location_spec *locspec,
{
if (locspec != nullptr)
return (breakpoint_ops_for_location_spec_type
- (location_spec_type (locspec), is_tracepoint));
+ (locspec->type (), is_tracepoint));
return &code_breakpoint_ops;
}
@@ -11673,7 +11673,7 @@ std::vector<symtab_and_line>
code_breakpoint::decode_location_spec (location_spec *locspec,
program_space *search_pspace)
{
- if (location_spec_type (locspec) == PROBE_LOCATION_SPEC)
+ if (locspec->type () == PROBE_LOCATION_SPEC)
return bkpt_probe_decode_location_spec (this, locspec, search_pspace);
return decode_location_spec_default (this, locspec, search_pspace);