• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
gdb and memory access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb and memory access


  • Subject: gdb and memory access
  • From: Patrick Cusack <email@hidden>
  • Date: Sat, 15 Jan 2005 22:44:41 -0800 (PST)

I am currently trying to wrap my head around gdb on
Mac OS X. To
understand how gdb works, I created a small app in
RealBasic, and am
trying to step through the program to understand
registers and assembly
code. When I attach to the program and do a backtrace
I get the
following readout. gdb will allow me to disassemble
certain parts of
the running program, but when i try to disassemble any
unknown_text()
functions,    I get the following: Cannot access
memory at address
whatever. Does anyone know why gdb can't read these
memory addresses?  Is the memory protected from
reading?

(gdb) bt
#0  0x900074c8 in mach_msg_trap ()
#1  0x90007018 in mach_msg ()
#2  0x90191700 in __CFRunLoopRun ()
#3  0x90195e8c in CFRunLoopRunSpecific ()
#4  0x927d5f60 in RunCurrentEventLoopInMode ()
#5  0x927d903c in GetNextEventMatchingMask ()
#6  0x927ec9f0 in WNEInternal ()
#7  0x927fd708 in WaitNextEvent ()
#8  0x0049d98c in unknown_text ()
#9  0x0049caec in unknown_text ()
#10 0x0049cd74 in unknown_text ()
#11 0x00499bf0 in unknown_text ()
#12 0x000b2998 in unknown_text ()
#13 0x000b0098 in unknown_text ()
#14 0x000b31bc in unknown_text ()
#15 0x902d9d44 in CCFM_LaunchApplication ()
#16 0x00008840 in ?? ()
#17 0x00008408 in ?? ()
#18 0x0000827c in ?? ()
(gdb) disas 0x0049d98c
Dump of assembler code for function unknown_text:
0x00405000Cannot access memory at address 0x405000
(gdb)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: gdb and memory access
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Carbon with UNIX
  • Next by Date: Re: 'Copy Files Build Phase' is empty of file reference
  • Previous by thread: Re: Carbon with UNIX
  • Next by thread: Re: gdb and memory access
  • Index(es):
    • Date
    • Thread