Skip to content

Commit c72d72b

Browse files
authored
Merge pull request #4 from qtc-de/dev
Prepare v1.1.1 Release
2 parents 91f128a + ac3012a commit c72d72b

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

.github/workflows/build-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929

3030
steps:
3131
- name: Checkout ${{ github.event.repository.name }}
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333

3434
- name: Setup Pages
35-
uses: actions/configure-pages@v3
35+
uses: actions/configure-pages@v5
3636

3737
- name: Install V
38-
uses: vlang/setup-v@v1.3
38+
uses: vlang/setup-v@v1.4
3939

4040
- name: Build Docs
4141
run: |
@@ -45,7 +45,7 @@ jobs:
4545
echo '<meta http-equiv="refresh" content="0;url=https://qtc-de.github.io/rpv/rpv.html" />' > html/index.html
4646
4747
- name: Upload artifact
48-
uses: actions/upload-pages-artifact@v2
48+
uses: actions/upload-pages-artifact@v3
4949
with:
5050
path: 'html/'
5151

@@ -61,4 +61,4 @@ jobs:
6161
steps:
6262
- name: Deploy to GitHub Pages
6363
id: deployment
64-
uses: actions/deploy-pages@v2
64+
uses: actions/deploy-pages@v4

.github/workflows/build-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323

2424
steps:
2525
- name: Install V
26-
uses: vlang/setup-v@v1.3
26+
uses: vlang/setup-v@v1.4
2727

2828
- name: Install mingw
2929
run: |
3030
sudo apt install -y gcc-mingw-w64
3131
3232
- name: ${{ github.event.repository.name }}
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
- name: Build Examples
3636
run: |

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9+
## v1.1.1 - July 19, 2024
10+
11+
### Added
12+
13+
* Add some PDB related debug logging
14+
15+
### Changed
16+
17+
* Updated GitHub actions in workflow files
18+
19+
920
## v1.1.0 - July 17, 2024
1021

1122
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[![](https://github.com/qtc-de/rpv/actions/workflows/build-examples.yml/badge.svg?branch=main)](https://github.com/qtc-de/rpv/actions/workflows/build-examples.yml)
77
[![](https://github.com/qtc-de/rpv/actions/workflows/build-examples.yml/badge.svg?branch=dev)](https://github.com/qtc-de/rpv/actions/workflows/build-examples.yml)
8-
[![](https://img.shields.io/badge/version-1.1.0-blue)](https://github.com/qtc-de/rpv/releases)
8+
[![](https://img.shields.io/badge/version-1.1.1-blue)](https://github.com/qtc-de/rpv/releases)
99
[![](https://img.shields.io/badge/programming%20language-v-blue)](https://vlang.io/)
1010
[![](https://img.shields.io/badge/license-GPL%20v3.0-blue)](https://github.com/qtc-de/rpv/blob/master/LICENSE)
1111
[![](https://img.shields.io/badge/docs-fa6b05)](https://qtc-de.github.io/rpv)

src/rpc.v

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ pub fn (mut pi RpvProcessInformation) update(mut resolver SymbolResolver)!
309309
{
310310
for mut intf_info in pi.rpc_info.interface_infos
311311
{
312-
resolver.attach_pdb(process_handle, intf_info.location.base, intf_info.location.size) or {}
312+
resolver.attach_pdb(process_handle, intf_info.location.base, intf_info.location.size) or {
313+
utils.log_debug('Failed to attach PDB resolver: ${err}')
314+
}
315+
313316
intf_info.name = resolver.load_uuid(intf_info.id)
314317

315318
for mut method in intf_info.methods
@@ -320,7 +323,9 @@ pub fn (mut pi RpvProcessInformation) update(mut resolver SymbolResolver)!
320323
if intf_info.sec_callback.addr != &voidptr(0)
321324
{
322325
if intf_info.sec_callback.location.base != intf_info.location.base {
323-
resolver.attach_pdb(process_handle, intf_info.sec_callback.location.base, intf_info.sec_callback.location.size) or {}
326+
resolver.attach_pdb(process_handle, intf_info.sec_callback.location.base, intf_info.sec_callback.location.size) or {
327+
utils.log_debug('Failed to attach PDB resolver: ${err}')
328+
}
324329
}
325330

326331
intf_info.sec_callback.name = resolver.load_symbol(intf_info.sec_callback.location.path, u64(intf_info.sec_callback.addr)) or { '' }
@@ -626,7 +631,9 @@ pub fn (interface_info RpcInterfaceBasicInfo) enrich_h(process_handle win.HANDLE
626631
mut midl_stub_desc := C.MIDL_STUB_DESC{}
627632

628633
mut rpc_methods := []RpcMethod{cap: int(dispatch_table.DispatchTableCount)}
629-
resolver.attach_pdb(process_handle, location_info.base, location_info.size) or {}
634+
resolver.attach_pdb(process_handle, location_info.base, location_info.size) or {
635+
utils.log_debug('Failed to attach PDB resolver: ${err}')
636+
}
630637

631638
if interface_info.intf.server_interface.interpreter_info != &voidptr(0)
632639
{
@@ -663,7 +670,9 @@ pub fn (interface_info RpcInterfaceBasicInfo) enrich_h(process_handle win.HANDLE
663670
sec_callback.location = sec_location
664671

665672
if location_info.base != sec_location.base {
666-
resolver.attach_pdb(process_handle, sec_location.base, sec_location.size) or {}
673+
resolver.attach_pdb(process_handle, sec_location.base, sec_location.size) or {
674+
utils.log_debug('Failed to attach PDB resolver: ${err}')
675+
}
667676
}
668677

669678
sec_callback.name = resolver.load_symbol(sec_location.path, u64(sec_callback.addr)) or { '' }

win/pdb-resolver.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module win
22

3+
import utils
4+
35
// PdbResolver is used to resolve symbols using .pdb files. This
46
// struct should be initialized by using the new_pdb_resolver
57
// function.
@@ -21,6 +23,7 @@ pub fn new_pdb_resolver(process_handle HANDLE, symbol_path string, module_base v
2123
}
2224

2325
pdb_path := get_pdb_path(process_handle, symbol_path, module_base)!
26+
utils.log_debug('Trying to load symbols from: ${pdb_path}')
2427

2528
if C.SymLoadModuleEx(process_handle, &voidptr(0), &char(pdb_path.str), &voidptr(0), u64(module_base), module_size, &voidptr(0), 0) == 0
2629
{

0 commit comments

Comments
 (0)