nistar

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Setting breakpoints in C++ code #2677
    nistar
    Participant

    P.S. It looks like VisualGDB uses a mangled name to set a break point when i’m doing it in the source file:

    -break-insert -f /home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc:867
    ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00002afbff5b53a4″,func=”BlbsUploadUtility::CatalogMappingStage(RWDBConnection&, RWCString const&, RWDateTime const&, RWDateTime const&, RWCString const&, int&, EtlLog&, RWCString const&, BlbsContext&, RWCString&)”,file=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc”,fullname=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc”,line=”867″,thread-groups=[“i1″],times=”0″,original-location=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc:867”}
    -break-info 2
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”18″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00002afbff5b53a4″,func=”BlbsUploadUtility::CatalogMappingStage(RWDBConnection&, RWCString const&, RWDateTime const&, RWDateTime const&, RWCString const&, int&, EtlLog&, RWCString const&, BlbsContext&, RWCString&)”,file=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc”,fullname=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc”,line=”867″,thread-groups=[“i1″],times=”0″,original-location=”/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc:867”}]}
    -break-after 2 0
    OK
    info symbol 0x2afbff5b53a4
    &”info symbol 0x2afbff5b53a4n”
    _ZN17BlbsUploadUtility19CatalogMappingStageER14RWDBConnectionRK9RWCStringRK10RWDateTimeS7_S4_RiR6EtlLogS4_R11BlbsContextRS2_ + 56 in section .text of /home/avilensky/sandbox/dist/apps-lib/libaumXmlUpload4012d.so
    OK
    info line *0x2afbff5b53a4
    &”info line *0x2afbff5b53a4n”
    Line 882 of “/home/avilensky/sandbox/src/tahoe/insight/rhino/upload_util/UploadUtilUI.cc” starts at address 0x2afbff5b53a4 and ends at 0x2afbff5b53b8 .
    OK

    in reply to: Setting breakpoints in C++ code #2675
    nistar
    Participant

    Screenshots are attached.

    Here’s the gdb interaction output after i click the OK button:

    -break-insert -f updateProdEnvMappingData
    &”Function “updateProdEnvMappingData” not defined.n”
    ^done,bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”“,pending=”updateProdEnvMappingData”,times=”0″,original-location=”updateProdEnvMappingData”}
    -break-info 3
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”
    “,pending=”updateProdEnvMappingData”,times=”0″,original-location=”updateProdEnvMappingData”}]}
    -break-after 3 0
    OK

Viewing 2 posts - 1 through 2 (of 2 total)