Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Does gdb support weak/normal symbols?
@ 2006-01-16  0:48 H. J. Lu
  2006-01-16  1:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 9+ messages in thread
From: H. J. Lu @ 2006-01-16  0:48 UTC (permalink / raw)
  To: GDB

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

I got

[hjl@gnu-10 weak]$ make
cc -o foo -O -g main.c foo.c weak.c
for f in foo; do ./$f; done
Normal foo
[hjl@gnu-10 weak]$ gdb foo
GNU gdb 6.4.50.20060115-cvs
...
(gdb) b foo
Breakpoint 1 at 0x804839a: file weak.c, line 8.
(gdb) r
Starting program: /export/home/hjl/bugs/gdb/weak/foo
Normal foo

Program exited normally.
(gdb) b *0x08048380
Breakpoint 2 at 0x8048380: file foo.c, line 5.
(gdb) r
Starting program: /export/home/hjl/bugs/gdb/weak/foo
Breakpoint 1 at 0x8048386: file foo.c, line 6.

Breakpoint 2, foo () at foo.c:5
5       {
(gdb)

foo in weak.c isn't in the symbol table. But gdb sets the breakpoint
of foo on it. Shouldn't gdb be clever enough to know to check the
other one?

H.J.

[-- Attachment #2: bug.tar.gz --]
[-- Type: application/x-gzip, Size: 466 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-01-16 18:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16  0:48 Does gdb support weak/normal symbols? H. J. Lu
2006-01-16  1:49 ` Daniel Jacobowitz
2006-01-16 15:48   ` H. J. Lu
2006-01-16 15:58     ` Daniel Jacobowitz
2006-01-16 18:11       ` H. J. Lu
2006-01-16 18:30         ` Daniel Jacobowitz
2006-01-16 18:32           ` H. J. Lu
2006-01-16 18:53             ` Daniel Jacobowitz
2006-01-16 18:35               ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox