This is the mail archive of the
mailing list for the GDB project.
Re: gdb breakpoint problem
> Cc: email@example.com
> From: Jim Blandy <firstname.lastname@example.org>
> Date: Mon, 11 Jun 2007 10:36:04 -0700
> What's probably going on is that there is no machine code generated
> for lines 24 and 25. They're just declarations. The first actual
> machine instruction in main is for line 26, so the 'addresses' of lines
> 24, 25, and 26 are probably all the same.
> You can try setting three breakpoints on lines 24, 25, and 26, and
> then comparing the addresses printed for each to see if this is the
Or just use the "info line" command to tell you directly what
addresses does each line compile to.