summaryrefslogtreecommitdiff
path: root/src/lib/region_file.c
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2020-06-29 11:28:25 -0600
committerAaron Durbin <adurbin@chromium.org>2020-07-10 15:39:51 +0000
commit5bb926e3c9bc00edef45b8a119469fc70e92990d (patch)
tree183d02053460f25f52454a29aa96c856d1e8aec9 /src/lib/region_file.c
parent812efb1fc21c1b54bc5b0657481a8f6616f663e1 (diff)
arch/x86/exception: Print stack on exception
It's useful to see the stack when an exception happens so you can see the variables on the stack, and also manually recreate the back trace. If you need to recreate the back trace, you will need to add -fno-omit-frame-pointer to the CFLAGS. BUG=b:159081993 TEST=Caused an exception and saw the stack dumped. Then I manually recreated the back trace. 0xcc6fff6c: 0xcc6ce02e <- 0xcc6ce02e is in dev_initialize 0xcc6fff68: 0xcc6fff88 <-- frame 1 0xcc6fff64: 0x00000005 0xcc6fff60: 0x000000dc 0xcc6fff5c: 0x00000000 0xcc6fff58: 0x00000200 0xcc6fff54: 0x00000000 0xcc6fff50: 0x00000400 0xcc6fff4c: 0xcc6d72d4 <- 0xcc6d72d4 is in setup_default_ebdad 0xcc6fff48: 0xcc6fff68 <-ebp 0xcc6fff44: 0x00000005 0xcc6fff40: 0xcc6f571c <-esp Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I3822ea7aa23202ecc98612850402eeb4b1f7b5ef Reviewed-on: https://review.coreboot.org/c/coreboot/+/42884 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/region_file.c')
0 files changed, 0 insertions, 0 deletions