[LineageOS Questions & Answers] marcinguy:
Trying to debug Bluetooth on Anrdoid 7.1.2 (LineageOS 14.1)

I want to break on:

bnep_data_ind()

Snippet from Source:

lineage/system/bt/stack/bnep/bnep_main.c

/********************************************************************************/

/* L O C A L F U N C T I O N P R O T O T Y P E S */

/********************************************************************************/

static void bnep_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id);

static void bnep_connect_cfm (UINT16 l2cap_cid, UINT16 result);

static void bnep_config_ind (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);

static void bnep_config_cfm (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);

static void bnep_disconnect_ind (UINT16 l2cap_cid, BOOLEAN ack_needed);

static void bnep_disconnect_cfm (UINT16 l2cap_cid, UINT16 result);

static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg);

static void bnep_congestion_ind (UINT16 lcid, BOOLEAN is_congested);

and Makefile:

lineage/system/bt/stack/Android.mk

# Bluetooth stack static library for target

# ========================================================

include $(CLEAR_VARS)

LOCAL_C_INCLUDES:= \

$(LOCAL_PATH)/include \

$(LOCAL_PATH)/avct \

$(LOCAL_PATH)/btm \

$(LOCAL_PATH)/avrc \

$(LOCAL_PATH)/l2cap \

$(LOCAL_PATH)/avdt \

$(LOCAL_PATH)/gatt \

$(LOCAL_PATH)/gap \

$(LOCAL_PATH)/pan \

$(LOCAL_PATH)/bnep \

$(LOCAL_PATH)/hid \

$(LOCAL_PATH)/sdp \

$(LOCAL_PATH)/smp \

$(LOCAL_PATH)/srvc \

$(LOCAL_PATH)/../btcore/include \

$(LOCAL_PATH)/../vnd/include \

$(LOCAL_PATH)/../vnd/ble \

$(LOCAL_PATH)/../btif/include \

$(LOCAL_PATH)/../hci/include \

$(LOCAL_PATH)/../include \

$(LOCAL_PATH)/../udrv/include \

$(LOCAL_PATH)/../rpc/include \

$(LOCAL_PATH)/../hcis \

$(LOCAL_PATH)/../ctrlr/include \

$(LOCAL_PATH)/../bta/include \

$(LOCAL_PATH)/../bta/sys \

$(LOCAL_PATH)/../utils/include \

$(LOCAL_PATH)/../ \

$(bluetooth_C_INCLUDES)

LOCAL_SRC_FILES:= \

./a2dp/a2d_api.c \

./a2dp/a2d_sbc.c \

./a2dp/a2d_aptx.c \

./a2dp/a2d_aptx_hd.c \

./a2dp/a2d_aac.c \

./avrc/avrc_api.c \

./avrc/avrc_sdp.c \

./avrc/avrc_opt.c \

./avrc/avrc_bld_tg.c \

./avrc/avrc_bld_ct.c \

./avrc/avrc_pars_tg.c \

./avrc/avrc_pars_ct.c \

./avrc/avrc_utils.c \

./hid/hidh_api.c \

./hid/hidh_conn.c \

./bnep/bnep_main.c \

./bnep/bnep_utils.c \

./bnep/bnep_api.c \

./hcic/hciblecmds.c \

./hcic/hcicmds.c \

./btm/btm_ble.c \

./btm/btm_sec.c \

./btm/btm_inq.c \

./btm/btm_ble_addr.c \

./btm/btm_ble_bgconn.c \

./btm/btm_main.c \

./btm/btm_dev.c \

./btm/btm_ble_gap.c \

./btm/btm_ble_adv_filter.c \

./btm/btm_ble_multi_adv.c \

./btm/btm_ble_batchscan.c \

./btm/btm_ble_cont_energy.c \

./btm/btm_ble_privacy.c \

./btm/btm_acl.c \

./btm/btm_sco.c \

./btm/btm_pm.c \

./btm/btm_devctl.c \

./rfcomm/rfc_utils.c \

./rfcomm/port_rfc.c \

./rfcomm/rfc_l2cap_if.c \

./rfcomm/rfc_mx_fsm.c \

./rfcomm/port_utils.c \

./rfcomm/rfc_port_fsm.c \

./rfcomm/rfc_port_if.c \

./rfcomm/port_api.c \

./rfcomm/rfc_ts_frames.c \

./mcap/mca_dact.c \

./mcap/mca_dsm.c \

./mcap/mca_l2c.c \

./mcap/mca_main.c \

./mcap/mca_csm.c \

./mcap/mca_cact.c \

./mcap/mca_api.c \

./gatt/gatt_sr.c \

./gatt/gatt_cl.c \

./gatt/gatt_api.c \

./gatt/gatt_auth.c \

./gatt/gatt_utils.c \

./gatt/gatt_main.c \

./gatt/att_protocol.c \

./gatt/gatt_attr.c \

./gatt/gatt_db.c \

./avct/avct_api.c \

./avct/avct_l2c.c \

./avct/avct_lcb.c \

./avct/avct_ccb.c \

./avct/avct_lcb_act.c \

./smp/smp_main.c \

./smp/smp_l2c.c \

./smp/smp_cmac.c \

./smp/smp_utils.c \

./smp/smp_act.c \

./smp/smp_keys.c \

./smp/smp_api.c \

./smp/aes.c \

./smp/smp_br_main.c\

./smp/p_256_curvepara.c \

./smp/p_256_ecc_pp.c \

./smp/p_256_multprecision.c \

./avdt/avdt_ccb.c \

./avdt/avdt_scb_act.c \

./avdt/avdt_msg.c \

./avdt/avdt_ccb_act.c \

./avdt/avdt_api.c \

./avdt/avdt_scb.c \

./avdt/avdt_ad.c \

./avdt/avdt_l2c.c \

./sdp/sdp_server.c \

./sdp/sdp_main.c \

./sdp/sdp_db.c \

./sdp/sdp_utils.c \

./sdp/sdp_api.c \

./sdp/sdp_discovery.c \

./pan/pan_main.c \

./srvc/srvc_battery.c \

./srvc/srvc_dis.c \

./srvc/srvc_eng.c \

./pan/pan_api.c \

./pan/pan_utils.c \

./btu/btu_hcif.c \

./btu/btu_init.c \

./btu/btu_task.c \

./l2cap/l2c_fcr.c \

./l2cap/l2c_ucd.c \

./l2cap/l2c_main.c \

./l2cap/l2c_api.c \

./l2cap/l2c_utils.c \

./l2cap/l2c_csm.c \

./l2cap/l2c_link.c \

./l2cap/l2c_ble.c \

./l2cap/l2cap_client.c \

./gap/gap_api.c \

./gap/gap_ble.c \

./gap/gap_conn.c \

./gap/gap_utils.c

LOCAL_MODULE := libbt-stack

LOCAL_STATIC_LIBRARIES := libbt-hci

LOCAL_SHARED_LIBRARIES := libcutils

LOCAL_CFLAGS += $(bluetooth_CFLAGS)

LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS)

LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS)

include $(BUILD_STATIC_LIBRARY)

So it seems it will be build as libbt-stack ???

I attached to bluetooth process, but the libbt-stack is not there and the functions like bnep_data_ind and osi_malloc are not visible

(gdb) attach 3622

Attaching to process 3622

[New LWP 3627]

[New LWP 3628]

[New LWP 3629]

[New LWP 3630]

[New LWP 3631]

[New LWP 3632]

[New LWP 3633]

[New LWP 3634]

[New LWP 3635]

[New LWP 3644]

[New LWP 3645]

[New LWP 3646]

[New LWP 3647]

[New LWP 3648]

[New LWP 3649]

[New LWP 3650]

[New LWP 3651]

[New LWP 3652]

[New LWP 3653]

[New LWP 3654]

[New LWP 3655]

[New LWP 3657]

[New LWP 3659]

[New LWP 3660]

[New LWP 3661]

[New LWP 3663]

[New LWP 3664]

[New LWP 3665]

[New LWP 3666]

[New LWP 3667]

[New LWP 3668]

[New LWP 3669]

[New LWP 3670]

[New LWP 3672]

[New LWP 3673]

[New LWP 3679]

[New LWP 3680]

[New LWP 3682]

[New LWP 3683]

[New LWP 3684]

[New LWP 3686]

[New LWP 3691]

[New LWP 3692]

[New LWP 3694]

[New LWP 3695]

[New LWP 3696]

[New LWP 3843]

[New LWP 6196]

0xb5503114 in __epoll_pwait () from target:/system/lib/libc.so

(gdb) search data_in

Can't find a default source file

(gdb) search data_ind

Can't find a default source file

(gdb) b bnep_data_ind

Function "bnep_data_ind" not defined.

Make breakpoint pending on future shared library load? (y or [n]) n

(gdb) info sharedlibrary

From To Syms Read Shared Object Library

0xb6f7c440 0xb6fcb034 Yes (*) target:/system/bin/linker

0xb55707a0 0xb5571fac Yes (*) target:/system/lib/libsigchain.so

0xb66be1d8 0xb66cb7d8 Yes (*) target:/system/lib/libcutils.so

0xb62256f0 0xb62304c4 Yes (*) target:/system/lib/libutils.so

0xb6820898 0xb6828da0 Yes (*) target:/system/lib/liblog.so

0xb52b2ad0 0xb52d03fc Yes (*) target:/system/lib/libbinder.so

0xb4c17ab0 0xb4c1be68 Yes (*) target:/system/lib/libnativeloader.so

0xb44c9538 0xb453db90 Yes (*) target:/system/lib/libandroid_runtime.so

0xb6834190 0xb684c6d0 Yes (*) target:/system/lib/libwilhelm.so

0xb4e52d10 0xb4e99c87 Yes (*) target:/system/lib/libc++.so

0xb54d0330 0xb552bd99 Yes (*) target:/system/lib/libc.so

0xb521edf8 0xb5235958 Yes (*) target:/system/lib/libm.so

0xb5057b30 0xb505fc28 Yes (*) target:/system/lib/libbacktrace.so

0xb504d5e4 0xb50504c8 Yes (*) target:/system/lib/libnativehelper.so

0xb55758f0 0xb55772d8 Yes (*) target:/system/lib/libmemtrack.so

0xb524cca0 0xb5263424 Yes (*) target:/system/lib/libandroidfw.so

0xb5194e7c 0xb51a51c8 Yes (*) target:/system/lib/libexpat.so

0xb54588b0 0xb545c128 Yes (*) target:/system/lib/libnetutils.so

0xb4dd9290 0xb4de2178 Yes (*) target:/system/lib/libui.so

0xb51009c0 0xb5125911 Yes (*) target:/system/lib/libgui.so

0xb5431c10 0xb543dd30 Yes (*) target:/system/lib/libinput.so

0xb4da73a0 0xb4dc4650 Yes (*) target:/system/lib/libinputflinger.so

---Type <return> to continue, or q <return> to quit---

0xb445c680 0xb446e6a4 Yes (*) target:/system/lib/libcamera_client.so

0xb527afc4 0xb527e828 Yes (*) target:/system/lib/libcamera_metadata.so

0xb64039c0 0xb662141c Yes (*) target:/system/lib/libskia.so

0xb679da70 0xb680473c Yes (*) target:/system/lib/libsqlite.so

0xb677f4a0 0xb678a4c4 Yes (*) target:/system/lib/libEGL.so

0xb544b37c 0xb544e250 Yes (*) target:/system/lib/libGLESv1_CM.so

0xb506def4 0xb50731d4 Yes (*) target:/system/lib/libGLESv2.so

0xb4c23260 0xb4c2eb84 Yes (*) target:/system/lib/libvulkan.so

0xb536a7f4 0xb536cb58 Yes (*) target:/system/lib/libETC1.so

0xb4595868 0xb459726c Yes (*) target:/system/lib/libhardware.so

0xb5270c58 0xb5274544 Yes (*) target:/system/lib/libhardware_legacy.so

0xb4c3fb18 0xb4c49c34 Yes (*) target:/system/lib/libselinux.so

0xb62a4640 0xb62bb1e0 Yes (*) target:/system/lib/libsonivox.so

0xb539a400 0xb53fbe84 Yes (*) target:/system/lib/libcrypto.so

0xb5331b44 0xb53483d0 Yes (*) target:/system/lib/libssl.so

0xb4c86ff0 0xb4d14adb Yes (*) target:/system/lib/libicuuc.so

0xb4f21f30 0xb50092f4 Yes (*) target:/system/lib/libicui18n.so

0xb68ab890 0xb68f3bc0 Yes (*) target:/system/lib/libmedia.so

0xb4bd54f0 0xb4c09b74 Yes (*) target:/system/lib/libjpeg.so

0xb457f1d8 0xb45814f4 Yes (*) target:/system/lib/libusbhost.so

0xb557edc0 0xb55b4e38 Yes (*) target:/system/lib/libharfbuzz_ng.so

0xb517b780 0xb518aba0 Yes (*) target:/system/lib/libz.so

0xb4baeca8 0xb4bb2c84 Yes (*) target:/system/lib/libaudioutils.so

---Type <return> to continue, or q <return> to quit---

0xb4795db0 0xb49af75c Yes (*) target:/system/lib/libpdfium.so

0xb623f3c0 0xb62451d4 Yes (*) target:/system/lib/libimg_utils.so

0xb4d80ebc 0xb4d82f90 Yes (*) target:/system/lib/libnetd_client.so

0xb458afb0 0xb458f700 Yes (*) target:/system/lib/libradio.so

0xb504044c 0xb5044a18 Yes (*) target:/system/lib/libsoundtrigger.so

0xb5488dd8 0xb5494634 Yes (*) target:/system/lib/libminikin.so

0xb4c4fad4 0xb4c51878 Yes (*) target:/system/lib/libprocessgroup.so

0xb66d2c80 0xb66d4bf4 Yes (*) target:/system/lib/libnativebridge.so

0xb4d8699c 0xb4d88550 Yes (*) target:/system/lib/libradio_metadata.so

0xb6255168 0xb62610bc Yes (*) target:/system/lib/libmemunreachable.so

0xb55e4890 0xb5636334 Yes (*) target:/system/lib/libhwui.so

0xb4612fa0 0xb46d0ae8 Yes (*) target:/system/lib/libstagefright.so

0xb508d2bc 0xb509b554 Yes (*) target:/system/lib/libstagefright_foundation.so

0xb4c10900 0xb4c12294 Yes (*) target:/system/lib/libstagefright_http_support.so

0xb6771f90 0xb677677c Yes (*) target:/system/lib/libbase.so

0xb564a840 0xb565aaac Yes (*) target:/system/lib/libunwind.so

0xb62fdccc 0xb63001a0 Yes (*) target:/system/lib/libstdc++.so

0xb4c37844 0xb4c39118 Yes (*) target:/system/lib/libsync.so

0xb55505d0 0xb5569354 Yes (*) target:/system/lib/libpng.so

0xb51b1ab0 0xb52008d0 Yes (*) target:/system/lib/libft2.so

0xb670b6f0 0xb6758ed5 Yes (*) target:/system/lib/libdng_sdk.so

---Type <return> to continue, or q <return> to quit---

0xb66dab70 0xb66dfb1c Yes (*) target:/system/lib/libpiex.so

0xb45785dc 0xb457a950 Yes (*) target:/system/lib/libwpa_client.so

0xb534f37c 0xb535f438 Yes (*) target:/system/lib/libpcre.so

0xb5364900 0xb53663a4 Yes (*) target:/system/lib/libpackagelistparser.so

0xb5452004 0xb5454048 Yes (*) target:/system/lib/libboringssl-compat.so

0xb4d78b2c 0xb4d7c1fc Yes (*) target:/system/lib/libnbaio.so

0xb4ba5e20 0xb4ba943c Yes (*) target:/system/lib/libspeexresampler.so

0xb50aedd0 0xb50bac30 Yes (*) target:/system/lib/libprotobuf-cpp-lite.so

0xb531eb90 0xb5322822 Yes (*) target:/system/lib/libRS.so

0xb5145a40 0xb5172a68 Yes (*) target:/system/lib/libRScpp.so

0xb4bc3c8c 0xb4bcbddc Yes (*) target:/system/lib/libdrmframework.so

0xb50ce748 0xb50d165c Yes (*) target:/system/lib/libmediautils.so

0xb626bfd8 0xb62962a8 Yes (*) target:/system/lib/libopus.so

0xb4dfb290 0xb4e0f3c0 Yes (*) target:/system/lib/libstagefright_omx.so

0xb4e1c0b0 0xb4e1e514 Yes (*) target:/system/lib/libstagefright_yuv.so

0xb549c8d4 0xb54abe5c Yes (*) target:/system/lib/libvorbisidec.so

0xb56a6fa4 0xb56a90e4 Yes (*) target:/system/lib/libpowermanager.so

0xb623580c 0xb6236fe0 Yes (*) target:/system/lib/libstagefright_enc_common.so

0xb50c1688 0xb50c6cdc Yes (*) target:/system/lib/libstagefright_avc_common.so

0xb5463860 0xb54753ec Yes (*) target:/system/lib/liblzma.so

0xb6816a40 0xb68192b4 Yes (*) target:/system/lib/libbinary_parse.so

---Type <return> to continue, or q <return> to quit---

0xb4d6d2d0 0xb4d71860 Yes (*) target:/system/lib/libimage_type_recognition.so

0xb5078408 0xb507b624 Yes (*) target:/system/lib/libtiff_directory.so

0xb52fce00 0xb5311a4f Yes (*) target:/system/lib/libRS_internal.so

0xb6930800 0xb695a6e4 Yes (*) target:/system/lib/libbcinfo.so

0xb5820670 0xb607a208 Yes (*) target:/system/lib/libLLVM.so

0xb3f28600 0xb42a49e0 Yes (*) target:/system/lib/libart.so

0xb6e71ac0 0xb6e791f8 Yes (*) target:/system/lib/liblz4.so

0x70481000 0x704813d4 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot.oat

0x7099a000 0x70c6c23c Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-core-oj.oat

0x710e9000 0x7131cdd4 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-core-libart.oat

0x7138b000 0x713c6e64 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-conscrypt.oat

0x7144f000 0x714968d2 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-okhttp.oat

0x714a3000 0x714a4f5c Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-core-junit.oat

0x71611000 0x7164429c Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-bouncycastle.oat

0x71762000 0x71791264 Yes (*) target:/data/dalvik-cache/arm/system@framew---Type <return> to continue, or q <return> to quit---

ork@boot-ext.oat

0x72d5f000 0x73923624 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-framework.oat

0x73c26000 0x73db3bb4 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-telephony-common.oat

0x73de6000 0x73df2226 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-voip-common.oat

0x73e22000 0x73e36f34 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-ims-common.oat

0x73f89000 0x73fa46a4 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-apache-xml.oat

0x7404f000 0x740a1af4 Yes (*) target:/data/dalvik-cache/arm/system@framework@boot-org.apache.http.legacy.boot.oat

0xaea4d5b4 0xaea5480c Yes (*) target:/system/lib/libandroid.so

0xb6d83ae0 0xb6d90a30 Yes (*) target:/system/lib/libcamera2ndk.so

0xb6d76ef4 0xb6d7c1d4 Yes (*) target:/system/lib/libGLESv3.so

0xb6e3c98c 0xb6e3e224 Yes (*) target:/system/lib/libjnigraphics.so

0xb6d38bc0 0xb6d40558 Yes (*) target:/system/lib/libmediandk.so

0xb6d28634 0xb6d2d848 Yes (*) target:/system/lib/libmediadrm.so

0xb6d681fc 0xb6d699dc Yes (*) target:/system/lib/libOpenMAXAL.so

0xb6d62458 0xb6d63c40 Yes (*) target:/system/lib/libOpenSLES.so

0xb6d5c280 0xb6d5dfc4 Yes (*) target:/system/lib/libwebviewchromium_plat_support.so

---Type <return> to continue, or q <return> to quit---

0xb6cf0e48 0xb6d08a8c Yes (*) target:/system/lib/libjavacore.so

0xb6cc8100 0xb6cdea84 Yes (*) target:/system/lib/libopenjdk.so

0xb6d4a538 0xb6d4e1a8 Yes (*) target:/system/lib/libopenjdkjvm.so

0xad23d580 0xad404e20 Yes (*) target:/system/lib/libart-compiler.so

0xad0f16b0 0xad16dfcc Yes (*) target:/system/lib/libvixl.so

0xb6d198b0 0xb6d1b1d4 Yes (*) target:/system/lib/hw/memtrack.msm8226.so

0xa8fca410 0xa8ff29e0 Yes (*) target:/system/lib/libmedia_jni.so

0xa8f91944 0xa8f9985c Yes (*) target:/system/lib/libmtp.so

0xaa58e348 0xaa599ce0 Yes (*) target:/system/lib/libexif.so

0xa8fa2c9c 0xa8fa7844 Yes (*) target:/system/lib/libstagefright_amrnb_common.so

0xa912ab2c 0xa9137808 Yes (*) target:/system/lib/libjavacrypto.so

0xaa5f9f24 0xaa5fbcb8 Yes (*) target:/system/lib/libkeystore-engine.so

0xa90f186c 0xa90fb320 Yes (*) target:/system/lib/libkeystore_binder.so

0xaa5c8894 0xaa5cd0e8 Yes (*) target:/system/lib/libkeymaster_messages.so

0xa914be20 0xa9155254 Yes (*) target:/system/lib/libsoftkeymasterdevice.so

0xa9110600 0xa911d410 Yes (*) target:/system/lib/libkeymaster1.so

0xa7c1b7e0 0xa7c3b340 Yes (*) target:/system/vendor/lib/egl/libEGL_adreno.so

0xa7bddd10 0xa7c01918 Yes (*) target:/system/vendor/lib/libgsl.so

0xa7bceff0 0xa7bd2440 Yes (*) target:/system/vendor/lib/libadreno_utils.s---Type <return> to continue, or q <return> to quit---

o

0xa7ba7060 0xa7bc1770 Yes (*) target:/system/vendor/lib/egl/libGLESv1_CM_adreno.so

0xa75dd450 0xa767b36c Yes (*) target:/system/vendor/lib/egl/libGLESv2_adreno.so

0xa76fc1a8 0xa7ab1ed8 Yes (*) target:/system/vendor/lib/libsc-a3xx.so

0xa7b91a60 0xa7b96c74 Yes (*) target:/system/lib/libcompiler_rt.so

0xa7496a3c 0xa74986c4 Yes (*) target:/system/lib/libwebviewchromium_loader.so

0xb3065000 0xb30741d0 Yes (*) target:/data/dalvik-cache/arm/system@framework@javax.obex.jar@classes.dex

0xb2ea3c8c 0xb2eb8ca0 Yes (*) target:/system/lib/libbluetooth_jni.so

0xace65610 0xacf61814 Yes (*) target:/system/lib/hw/bluetooth.default.so

0xb2e197d8 0xb2e1b08c Yes (*) target:/system/lib/libpower.so

0xb2db6d40 0xb2e08892 Yes (*) target:/system/lib/libprotobuf-cpp-full.so

0xacdf6cf0 0xace4c5f4 Yes (*) target:/system/lib/libchrome.so

0xb2d3a3e0 0xb2d660ec Yes (*) target:/system/lib/libevent.so

0xb2e61620 0xb2e69a5c Yes (*) target:/system/vendor/lib/libbt-vendor.so

0xb2cd3000 0xb2ce21d0 Yes (*) target:/data/dalvik-cache/arm/system@framework@javax.obex.jar@classes.dex

(*): Shared library is missing debugging information.

(gdb)

(gdb) b osi_malloc

Function "osi_malloc" not defined.

Make breakpoint pending on future shared library load? (y or [n]) n

(gdb) b *osi_malloc

No symbol table is loaded. Use the "file" command.

(gdb) b bnep_data_ind

Function "bnep_data_ind" not defined.

Make breakpoint pending on future shared library load? (y or [n]) n

My question:

What is the problem here? Why osi_malloc and bnep_data_ind is not visible? How can I load libbt-stack??? Why it is not loaded automatically?