Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing copyright information #846

Merged
merged 1 commit into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,13 @@ License: MIT
Files: shlr/tcc/*
Copyright: 2001-2004 Fabrice Bellard
License: LGPL-2.0-or-later

Files: shlr/winkd/profiles.h
Copyright: 2014-2017 The Lemon Man <thatlemon@gmail.com>
Copyright: 2019-2020 GustavoLCR <gugulcr@gmail.com>
License: LGPL-3.0-only

Files: subprojects/mpc/*
Copyright: 2013-present Daniel Holden <contact@theorangeduck.com>
License: BSD-2-Clause

2 changes: 1 addition & 1 deletion librz/asm/arch/avr/avr_disasm.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2007 Vanya A. Sergeev
// SPDX-FileCopyrightText: 2007-2010 Vanya A. Sergeev <vsergeev@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later

/*
Expand Down
34 changes: 7 additions & 27 deletions librz/asm/arch/avr/avr_instructionset.c
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
// SPDX-FileCopyrightText: 2007 Vanya A. Sergeev
// SPDX-FileCopyrightText: 2007-2010 Vanya A. Sergeev <vsergeev@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later

/*
* vAVRdisasm - AVR program disassembler.
* Version 1.6 - February 2010.
* Written by Vanya A. Sergeev - <vsergeev@gmail.com>
*
* Copyright (C) 2007 Vanya A. Sergeev
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* avrinstructionset.c - AVR instruction set data structure stored in an
* array of instruction info structures, as defined in avrdisasm.h.
*
*/

/* Sorted by number of operands so disassembler can find the most
Expand All @@ -32,17 +12,17 @@
/* I decided to have the operand masks and types here in the
* main instruction set data structure of the disassembler for clean
* opcode recognition and operand extraction. It's much more straight
* forward to work with numbers (duh) then manipulating ugly operand
* forward to work with numbers (duh) then manipulating ugly operand
* strings such as "000011rdddddrrrr" for the add instruction. */
/* This was my first disassembler, and my program ended evolving with this
* data structure. Turns out it makes code quite clear, and it generalizes the
* entire disassembly process, but development probably took about 2x longer
* instead of hard coding the disassembly for different types of operands. */
/* But this disassembler model can be applied to virtually any 16-bit
* or less opcode architecture, making it very flexible in nature--I don't
* have to rewrite all of the operand disassembly code for interpreting
* different r, d, K, k, s, etc. characters in the opcode, which all stand
* for a different operand type, because they are clearly written out
* have to rewrite all of the operand disassembly code for interpreting
* different r, d, K, k, s, etc. characters in the opcode, which all stand
* for a different operand type, because they are clearly written out
* in the instruction set data structure.
*/

Expand Down Expand Up @@ -100,7 +80,7 @@ instructionInfo instructionSet[AVR_TOTAL_INSTRUCTIONS] = {
{"brvs", 0xf003, 1, {0x03f8, 0x0000}, {OPERAND_BRANCH_ADDRESS, OPERAND_NONE}},
{"bset", 0x9408, 1, {0x0070, 0x0000}, {OPERAND_BIT, OPERAND_NONE}},
{"call", 0x940e, 1, {0x01f1, 0x0000}, {OPERAND_LONG_ABSOLUTE_ADDRESS, OPERAND_NONE}},
{"clr", 0x2400, 1, {0x01f0, 0x020f}, {OPERAND_REGISTER, OPERAND_REGISTER_GHOST}},
{"clr", 0x2400, 1, {0x01f0, 0x020f}, {OPERAND_REGISTER, OPERAND_REGISTER_GHOST}},
{"com", 0x9400, 1, {0x01f0, 0x0000}, {OPERAND_REGISTER, OPERAND_NONE}},
{"dec", 0x940a, 1, {0x01f0, 0x0000}, {OPERAND_REGISTER, OPERAND_NONE}},
{"inc", 0x9403, 1, {0x01f0, 0x0000}, {OPERAND_REGISTER, OPERAND_NONE}},
Expand All @@ -123,7 +103,7 @@ instructionInfo instructionSet[AVR_TOTAL_INSTRUCTIONS] = {
{"ser", 0xef0f, 1, {0x00f0, 0x0000}, {OPERAND_REGISTER_STARTR16, OPERAND_NONE}},
{"swap", 0x9402, 1, {0x01f0, 0x0000}, {OPERAND_REGISTER, OPERAND_NONE}},
{"tst", 0x2000, 1, {0x01f0, 0x020f}, {OPERAND_REGISTER, OPERAND_REGISTER_GHOST}},

{"adc", 0x1c00, 2, {0x01f0, 0x020f}, {OPERAND_REGISTER, OPERAND_REGISTER}},
{"add", 0x0c00, 2, {0x01f0, 0x020f}, {OPERAND_REGISTER, OPERAND_REGISTER}},
{"adiw", 0x9600, 2, {0x0030, 0x00cf}, {OPERAND_REGISTER_EVEN_PAIR_STARTR24, OPERAND_DATA}},
Expand Down
6 changes: 5 additions & 1 deletion librz/asm/arch/avr/disasm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-only
// SPDX-FileCopyrightText: 2007-2010 Vanya A. Sergeev <vsergeev@gmail.com>
// SPDX-FileCopyrightText: 2010-2016 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2021 Giovanni <wargio@libero.it>
// SPDX-License-Identifier: GPL-2.0-or-later

#include "avr_disasm.h"
#include "format.h"
#include <string.h>
Expand Down
2 changes: 2 additions & 0 deletions librz/asm/arch/cr16/cr16_disas.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// SPDX-FileCopyrightText: 2014 Fedor Sakharov <fedor.sakharov@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include <rz_util.h>

Expand Down
1 change: 1 addition & 0 deletions librz/asm/arch/h8300/h8300_disas.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-FileCopyrightText: 2014 Fedor Sakharov <fedor.sakharov@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
Expand Down
4 changes: 4 additions & 0 deletions librz/asm/arch/mcore/mcore.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// SPDX-FileCopyrightText: 2018 Giovanni <wargio@libero.it>
// SPDX-FileCopyrightText: 2018-2020 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2020 Anton Kochkov <anton.kochkov@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include "mcore.h"

#include <rz_analysis.h>
Expand Down
5 changes: 5 additions & 0 deletions librz/asm/arch/msp430/msp430_disas.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-FileCopyrightText: 2014 Fedor Sakharov <fedor.sakharov@gmail.com>
// SPDX-FileCopyrightText: 2015 Mauro Matteo Cascella <mauromatteo.cascella@gmail.com>
// SPDX-FileCopyrightText: 2016 Mitchell Johnson <ehntoo@gmail.com>
// SPDX-FileCopyrightText: 2018 Neven Sajko <nsajko@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include <rz_util.h>

Expand Down
2 changes: 2 additions & 0 deletions librz/asm/arch/propeller/propeller_disas.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// SPDX-FileCopyrightText: 2014 Fedor Sakharov <fedor.sakharov@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include <rz_util.h>

Expand Down
1 change: 1 addition & 0 deletions librz/asm/arch/spc700/spc700dis.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-FileCopyrightText: 2014 condret <condr3t@protonmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
Expand Down
4 changes: 2 additions & 2 deletions librz/asm/arch/xap/dis.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2007 sorbo
// SPDX-FileCopyrightText: 2010-2019 pancake <pancake@nopcode.org>
// SPDX-License-Identifier: LGPL-3.0-only

/* sorbo '07 */

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
Expand Down
2 changes: 2 additions & 0 deletions librz/asm/p/asm_spc700.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2012-2014 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2014 condret <condr3t@protonmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
Expand Down
1 change: 1 addition & 0 deletions librz/asm/p/cs_mnemonics.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-FileCopyrightText: 2016-2018 pancake <pancake@nopcode.org>
// SPDX-License-Identifier: LGPL-3.0-only

static char *mnemonics(RzAsm *a, int id, bool json) {
Expand Down
1 change: 1 addition & 0 deletions librz/bin/p/bin_spc700.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-FileCopyrightText: 2015-2019 - maijin <maijin21@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_bin.h>
Expand Down
165 changes: 0 additions & 165 deletions shlr/ptrace-wrap/COPYING

This file was deleted.

11 changes: 5 additions & 6 deletions shlr/ptrace-wrap/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# ptrace-wrap

ptrace on Linux has one major issue: When one process attaches to another, the tracer's pid is
Expand All @@ -15,7 +14,7 @@ Thus, it is possible to create multi-threaded applications that use ptrace.

Initialize a ptrace-wrap instance:

```
```c
ptrace_wrap_instance inst;
int r = ptrace_wrap_instance_start (&inst);
if (r != 0) {
Expand All @@ -25,7 +24,7 @@ if (r != 0) {

Then, simply use the `ptrace_wrap()` function instead of `ptrace()` for your calls.

```
```c
long pr = ptrace_wrap (&inst, <request>, <pid>, <addr>, <data>);
if (pr < 0) {
perror ("ptrace");
Expand All @@ -37,7 +36,7 @@ from inside of it, `ptrace_wrap_fork()` has to be used instead of plain `fork()`
The behaviour in the child process is slightly different then. Instead of returning 0,
`ptrace_wrap_fork()` calls a callback in the child process. Example:

```
```c
void child_callback(void *user) {
const char *file = user;
ptrace (PTRACE_TRACEME, 0, NULL, NULL);
Expand All @@ -55,7 +54,7 @@ if (pid < 0) {
```

Finally, stop the ptrace-wrap instance:
```
```c
ptrace_wrap_instance_stop (&inst);
```

Expand All @@ -80,4 +79,4 @@ GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with ptrace-wrap. If not, see <http://www.gnu.org/licenses/>.
```
```
Loading