Skip to content

Commit

Permalink
[README] Fix indentation
Browse files Browse the repository at this point in the history
Make the README file 'github'-like
  • Loading branch information
djolertrk authored May 31, 2019
1 parent 9d47003 commit b00d60f
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,27 @@ built with glibc 2.22.. We are trying to print, by using Multiarch GNU GDB,
the value of the TLS variable (declared as __thread int foo = 0xdeadbeef;) from
a core file generated on a target machine.)


./gdb
...
(gdb) add-auto-load-safe-path ~/path_to_the_glibc22_build/INSTALL/lib
(gdb) set libthread-db-search-path ~/path_to_the_glibc22_build/INSTALL/lib
(gdb) set solib-search-path ~/path_to_libs_from_target_machine/
(gdb) file exampleFromMipsPlatform
Reading symbols from exampleFromMipsPlatform...done.
(gdb) core-file core.mips
...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "~/path_to_the_glibc22_build/INSTALL/liblibthread_db.so.1".
Core was generated by `./exampleFromMipsPlatform'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00000000 in ?? ()
[Current thread is 1 (Thread 0x771bf000 (LWP 21808))]

...

(gdb) add-auto-load-safe-path ~/path_to_the_glibc22_build/INSTALL/lib
(gdb) set libthread-db-search-path ~/path_to_the_glibc22_build/INSTALL/lib
(gdb) set solib-search-path ~/path_to_libs_from_target_machine/
(gdb) file exampleFromMipsPlatform
Reading symbols from exampleFromMipsPlatform...done.
(gdb) core-file core.mips
[Thread debugging using libthread_db enabled]
Using host libthread_db library "~/path_to_the_glibc22_build/INSTALL/liblibthread_db.so.1".
Core was generated by `./exampleFromMipsPlatform'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00000000 in ?? ()
[Current thread is 1 (Thread 0x771bf000 (LWP 21808))]

-before patching:
(gdb) p/x foo
Cannot find user-level thread for LWP 21808: generic error

(gdb) p/x foo
Cannot find user-level thread for LWP 21808: generic error

-after pathing:
(gdb) p/x foo
$1 = 0xdeadbeef

(gdb) p/x foo
$1 = 0xdeadbeef

0 comments on commit b00d60f

Please sign in to comment.