Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
ad0faecb
Commit
ad0faecb
authored
May 16, 2020
by
houkime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ease gdb string restrictions
parent
412b4007
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/rt/src/rt_gdb.c
src/lib/rt/src/rt_gdb.c
+3
-3
No files found.
src/lib/rt/src/rt_gdb.c
View file @
ad0faecb
...
...
@@ -319,7 +319,7 @@ static void unlinkPool(const char* name)
struct
shmid_ds
ds
;
char
*
str
=
getenv
(
pwr_dEnvBusId
);
char
segname
[
128
]
;
pwr_tFileName
segname
;
char
busid
[
8
];
strncpy
(
busid
,
(
str
?
str
:
"XXX"
),
3
);
...
...
@@ -339,7 +339,7 @@ static void unlinkPool(const char* name)
unlink
(
segname
);
for
(
i
=
1
;
TRUE
;
i
++
)
{
sprintf
(
segname
,
"%
.11
s%4.4x_%.3s"
,
name
,
i
,
busid
);
sprintf
(
segname
,
"%s%4.4x_%.3s"
,
name
,
i
,
busid
);
fd
=
open
(
segname
,
flags
,
mode
);
if
(
fd
==
-
1
)
...
...
@@ -831,7 +831,7 @@ gdb_sLocal* gdb_CreateDb(pwr_tStatus* sts, gdb_sInit* ip)
void
gdb_UnlinkDb
()
{
char
segname
[
128
]
;
pwr_tFileName
segname
;
char
busid
[
8
];
char
*
str
=
getenv
(
pwr_dEnvBusId
);
key_t
key
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment