This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/rfc] The off again, on again, PC == 0 in get_prev_frame


   Date: Sun, 22 Feb 2004 12:40:53 -0500
   From: Andrew Cagney <cagney@gnu.org>

   > The Linux folks should add proper CFI to the implementation of
   > close(2) in glibc.  A DW_CFA_def_cfa rule that sets the CFA to %rbp
   > should do the trick.

   clone(2)?

Yup.  Sorry.  Typo.  The thread_start you're seeing in the backtrace
is part of the clone(2) implementation in glibc.

See sysdeps/unix/sysv/linux/x86_64/clone.S.

   How come the trad unwind code doesn't recover?

There simply isn't a frame pointer.

   Thinking about it, the test would stop this backtrace:

	   sigsegv_handler
	   <signal trampoline>
	   "null"
	   foo (which called "null")
	   main

   is this tested anywhere?

No it isn't.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]