public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/27672] New: C frontend does not generate line information for multi-line conditions
@ 2006-05-18 21:36 drow at gcc dot gnu dot org
2006-05-18 21:38 ` [Bug debug/27672] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: drow at gcc dot gnu dot org @ 2006-05-18 21:36 UTC (permalink / raw)
To: gcc-bugs
Compile something like this with debugging information:
if (func1 ()
|| func2 ()
|| func3 ())
Set a breakpoint on func1, and then use GDB's "finish" command to leave the
function. You'll be back on the first line of the if. Same if you finish from
func2. Nothing in the process of parsing a conditional expression sets
expression locations for individual parts of the expression.
We do set a line number on the outer compound expression, and that points at
the beginning. It would be strange to single-step onto the conditional jump
instruction and be taken back to the top of the "if". So this may not be a
straightforward fix.
--
Summary: C frontend does not generate line information for multi-
line conditions
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27672
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27672] C frontend does not generate line information for multi-line conditions
2006-05-18 21:36 [Bug debug/27672] New: C frontend does not generate line information for multi-line conditions drow at gcc dot gnu dot org
@ 2006-05-18 21:38 ` pinskia at gcc dot gnu dot org
2006-05-22 9:12 ` rguenth at gcc dot gnu dot org
2009-12-14 16:26 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-18 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-18 21:38 -------
I have seen this also.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27672
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27672] C frontend does not generate line information for multi-line conditions
2006-05-18 21:36 [Bug debug/27672] New: C frontend does not generate line information for multi-line conditions drow at gcc dot gnu dot org
2006-05-18 21:38 ` [Bug debug/27672] " pinskia at gcc dot gnu dot org
@ 2006-05-22 9:12 ` rguenth at gcc dot gnu dot org
2009-12-14 16:26 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-22 9:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-05-22 09:11 -------
Confirmed. I don't like this, too.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-22 09:11:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27672
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/27672] C frontend does not generate line information for multi-line conditions
2006-05-18 21:36 [Bug debug/27672] New: C frontend does not generate line information for multi-line conditions drow at gcc dot gnu dot org
2006-05-18 21:38 ` [Bug debug/27672] " pinskia at gcc dot gnu dot org
2006-05-22 9:12 ` rguenth at gcc dot gnu dot org
@ 2009-12-14 16:26 ` tromey at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-14 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tromey at gcc dot gnu dot org 2009-12-14 16:26 -------
This seems to work better with svn trunk:
Breakpoint 2, func2 () at pr.c:5
5 return 0;
(gdb) fini
Run till exit from #0 func2 () at pr.c:5
0x080483c3 in main () at pr.c:13
13 || func2 ()
Value returned is $3 = 0
(gdb) s
14 || func3 ())
(gdb) s
func3 () at pr.c:8
8 return 1;
(gdb) fini
Run till exit from #0 func3 () at pr.c:8
0x080483cc in main () at pr.c:14
14 || func3 ())
Value returned is $4 = 1
(gdb) s
15 return 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27672
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-14 16:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-18 21:36 [Bug debug/27672] New: C frontend does not generate line information for multi-line conditions drow at gcc dot gnu dot org
2006-05-18 21:38 ` [Bug debug/27672] " pinskia at gcc dot gnu dot org
2006-05-22 9:12 ` rguenth at gcc dot gnu dot org
2009-12-14 16:26 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).