Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Internal breakpoints
@ 2003-10-01  6:18 ankit thukral
  2003-10-01  6:45 ` Jim Blandy
  0 siblings, 1 reply; 3+ messages in thread
From: ankit thukral @ 2003-10-01  6:18 UTC (permalink / raw)
  To: gdb


 hi all,
      i was debugging a program using GDB (in linux)
 and realized that GDB puts some breakpoints of it's
 own known as internal breakpoints.they are visible
 on
 issuing the following command :
 
 (gdb) maintainence info breakpoints
 
 -2  shlib events   keep y   0x4000c9c0
 <_dl_debug_state_internal>
         breakpoint already hit 3 times
 -7  longjmp        keep n   0x4000f870 <longjmp>
 -8  longjmp        keep n   0x42027240 <siglongjmp>
 -9  longjmp        keep n   0x42027240 <siglongjmp>
 -10 longjmp resume keep n   0x00000000
 
        can anyone explain to me in detail what are
 these for?
 
 thanks in advance,
 ankit.
 

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


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

* Re: Internal breakpoints
  2003-10-01  6:18 Internal breakpoints ankit thukral
@ 2003-10-01  6:45 ` Jim Blandy
  2003-10-01 20:15   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2003-10-01  6:45 UTC (permalink / raw)
  To: ankit thukral; +Cc: gdb


ankit thukral <ankit_plug@yahoo.com> writes:
>  -2  shlib events   keep y   0x4000c9c0
>  <_dl_debug_state_internal>
>          breakpoint already hit 3 times

The dynamic linker in the program being debugged calls this function
each time it loads or unloads a shared library.  GDB sets this
breakpoint so it can keep its copy of the shared library table up to
date.

>  -7  longjmp        keep n   0x4000f870 <longjmp>
>  -8  longjmp        keep n   0x42027240 <siglongjmp>
>  -9  longjmp        keep n   0x42027240 <siglongjmp>
>  -10 longjmp resume keep n   0x00000000

GDB needs to be able to recognize calls to longjmp, to avoid losing
control of the program, to make sure watchpoints on local variables in
frames popped by the longjmp are disabled, and so on.

You'll need to look at breakpoint.c for more detail.


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

* Re: Internal breakpoints
  2003-10-01  6:45 ` Jim Blandy
@ 2003-10-01 20:15   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2003-10-01 20:15 UTC (permalink / raw)
  To: Jim Blandy; +Cc: ankit_plug, gdb

> From: Jim Blandy <jimb@redhat.com>
> Date: 01 Oct 2003 01:40:51 -0500
> 
> You'll need to look at breakpoint.c for more detail.

I believe the node "Set Breaks" in the GDB manual has something about
this.


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

end of thread, other threads:[~2003-10-01 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01  6:18 Internal breakpoints ankit thukral
2003-10-01  6:45 ` Jim Blandy
2003-10-01 20:15   ` Eli Zaretskii

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