Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / lc3tools / 0002-lc3os-path.patch
blob413c95e12f64f34f5e348e6e4e38e41716ae2c15
1 diff --git a/lc3sim.c b/lc3sim.c
2 index dac7f7a..736fd7c 100644
3 --- a/lc3sim.c
4 +++ b/lc3sim.c
5 @@ -665,14 +665,14 @@ init_machine ()
6 bzero (lc3_sym_hash, sizeof (lc3_sym_hash));
7 clear_all_breakpoints ();
9 - if (read_obj_file (INSTALL_DIR "/lc3os.obj", &os_start, &os_end) == -1) {
10 + if (read_obj_file (INSTALL_DIR "/share/lc3tools/lc3os.obj", &os_start, &os_end) == -1) {
11 if (gui_mode)
12 puts ("ERR {Failed to read LC-3 OS code.}");
13 else
14 puts ("Failed to read LC-3 OS code.");
15 show_state_if_stop_visible ();
16 } else {
17 - if (read_sym_file (INSTALL_DIR "/lc3os.sym") == -1) {
18 + if (read_sym_file (INSTALL_DIR "/share/lc3tools/lc3os.sym") == -1) {
19 if (gui_mode)
20 puts ("ERR {Failed to read LC-3 OS symbols.}");
21 else