mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
linux: introduce build variants selectable at runtime
This commit is contained in:
@@ -35,11 +35,11 @@ set_common_vars "$arch" "$gem5"
|
||||
executable="${build_dir}/${executable_rel}"
|
||||
addr="$("${root_dir}/runtc" readelf -h "$executable" | awk '/Entry/{ print $NF }' )"
|
||||
ex="-ex \"add-symbol-file $executable $addr\""
|
||||
# -L or else lx-symbols throws for arm:
|
||||
# -X or else lx-symbols throws for arm:
|
||||
# gdb.MemoryError: Cannot access memory at address 0xbf0040cc
|
||||
# TODO understand better.
|
||||
#
|
||||
# Also, lx-symbols overrides the add-symbol-file commands.
|
||||
cmd="./rungdb -a '${arch}' -b '${ex}' ${gem5_opt} -L ${brk}"
|
||||
cmd="./rungdb -a '${arch}' -b '${ex}' ${gem5_opt} -X ${brk}"
|
||||
echo "$cmd"
|
||||
eval "$cmd"
|
||||
|
||||
Reference in New Issue
Block a user