Skip to main content
added 232 characters in body
Source Link
user994165
  • 9.5k
  • 30
  • 108
  • 171

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.o
and:
cc -g main.c utmpib2.c -o main.o
and also:
ccg++ -g main.c utmpib2.c -o main.o

I also tried "-ggdb" instead of "-g" and I still get that error message.

I then execute gdb:

$gdb

In gdb:

(gdb)exec-file main.o
(gdb)break 59
No symbol table is loaded. Use the "file" command.

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.o
and also:
cc -g main.c utmpib2.c -o main.o

and I still get that error message.

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.o
and:
cc -g main.c utmpib2.c -o main.o
and also:
g++ -g main.c utmpib2.c -o main.o

I also tried "-ggdb" instead of "-g" and I still get that error message.

I then execute gdb:

$gdb

In gdb:

(gdb)exec-file main.o
(gdb)break 59
No symbol table is loaded. Use the "file" command.
edited title
Source Link
user994165
  • 9.5k
  • 30
  • 108
  • 171

gdb: N"o"No symbol table is loaded"

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.co
and also:
cc -g main.c utmpib2.c -o main.co

and I still get that error message.

gdb: N"o symbol table is loaded"

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.c
and also:
cc -g main.c utmpib2.c -o main.c

and I still get that error message.

gdb: "No symbol table is loaded"

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.o
and also:
cc -g main.c utmpib2.c -o main.o

and I still get that error message.

Source Link
user994165
  • 9.5k
  • 30
  • 108
  • 171

gdb: N"o symbol table is loaded"

I keep getting this error mesage when trying to add a breakpoint in gdb.

I've used these commands to compile:

gcc -g main.c utmpib2.c -o main.c
and also:
cc -g main.c utmpib2.c -o main.c

and I still get that error message.