Skip to content

Commit 69548cc

Browse files
authored
Rename gdb.c to debugger.c (#27812)
Rename `gdb.c` to `debugger.c`, since its used in multiple debuggers, not just gdb. This will affect the line information users see in a debugger when stopping on a breakpoint - [x] paratest [Reviewed by @DanilaFe]
2 parents 02de26c + 8f3d4a2 commit 69548cc

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

runtime/include/chpltypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,6 @@ typedef int8_t chpl_arg_bundle_kind_t;
367367

368368
#include "chpl-string-support.h"
369369

370-
#include "gdb.h"
370+
#include "debugger.h"
371371

372372
#endif

runtime/src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ include $(RUNTIME_ROOT)/make/Makefile.runtime.subdirrules
7474
include $(RUNTIME_ROOT)/make/Makefile.runtime.foot
7575

7676
#
77-
# turn on debugging for gdb.c to help make debugging test uniform
77+
# turn on debugging for debugger.c to help make debugging test uniform
7878
# for developers and users
7979
#
80-
$(RUNTIME_OBJ_DIR)/gdb.o: gdb.c $(RUNTIME_OBJ_DIR_STAMP)
80+
$(RUNTIME_OBJ_DIR)/debugger.o: debugger.c $(RUNTIME_OBJ_DIR_STAMP)
8181
@if [ `grep "chplrt.h" $< | wc -l` -ne 1 ]; then echo "PROBLEM: $< does not include 'chplrt.h'."; exit 1; fi
8282
$(CC) -c -g $(RUNTIME_CFLAGS) $(RUNTIME_INCLS) -o $@ $<

runtime/src/Makefile.share

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ COMMON_NOGEN_SRCS = \
5858
chpl-tasks-callbacks.c \
5959
chpl-timers.c \
6060
chpl-visual-debug.c \
61-
gdb.c \
61+
debugger.c \
6262

6363
MAIN_SRCS = \
6464
main.c

runtime/src/chplexit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "chpl-mem.h"
2727
#include "chplmemtrack.h"
2828
#include "chpl-topo.h"
29-
#include "gdb.h"
29+
#include "debugger.h"
3030

3131
#include <stdio.h>
3232
#include <stdlib.h>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "chplrt.h"
2222

23-
#include "gdb.h"
23+
#include "debugger.h"
2424

2525
#include <stdio.h>
2626

test/llvm/debugInfo/gdb/basicTypes.good

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Reading symbols from basicTypes...
2-
Breakpoint 1 at 0xXXXX: file gdb.c, line 28.
2+
Breakpoint 1 at 0xXXXX: file debugger.c, line 28.
33
[Switching to Thread 0xXXXX (LWP XXXX)]
4-
Thread 2 "basicTypes" hit Breakpoint 1, debuggerBreakHere () at gdb.c:28
4+
Thread 2 "basicTypes" hit Breakpoint 1, debuggerBreakHere () at debugger.c:28
55
28 void debuggerBreakHere(void) {printf("%s", "");}
66
#1 0xXXXX in chpl_user_main ()
77
54 use Debugger; breakpoint;

test/llvm/debugInfo/gdb/targetVar.good

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Reading symbols from targetVar...
2-
Breakpoint 1 at 0xXXXX: file gdb.c, line 28.
2+
Breakpoint 1 at 0xXXXX: file debugger.c, line 28.
33
Breakpoint 2 at 0xXXXX: file targetVar.chpl, line 5.
44
Breakpoint 3 at 0xXXXX: file targetVar.chpl, line 10.
55
[Switching to Thread 0xXXXX (LWP XXXX)]

0 commit comments

Comments
 (0)