Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright year range in header of all files managed by GDB | 2024-01-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | This commit is the result of the following actions: - Running gdb/copyright.py to update all of the copyright headers to include 2024, - Manually updating a few files the copyright.py script told me to update, these files had copyright headers embedded within the file, - Regenerating gdbsupport/Makefile.in to refresh it's copyright date, - Using grep to find other files that still mentioned 2023. If these files were updated last year from 2022 to 2023 then I've updated them this year to 2024. I'm sure I've probably missed some dates. Feel free to fix them up as you spot them. | ||||
* | sim: m68hc11: fix -Wshadow=local warnings | 2023-12-22 | 1 | -1/+1 | |
| | | | | | Delete redundant decls when the existing scope has the same var and type available for use. | ||||
* | sim: info: convert verbose field to a bool | 2023-01-18 | 1 | -1/+1 | |
| | | | | | | | The verbose argument has always been an int treated as a bool, so convert it to an explicit bool. Further, update the API docs to match the reality that the verbose value is actually used by some of the internal modules. | ||||
* | sim: replace -I$srcroot/bfd include with -I$srcroot | 2023-01-01 | 1 | -1/+1 | |
| | | | | | | Clean up includes a bit by making ports include bfd/ headers explicitly. This matches other projects, and makes it more clear where these headers are coming from. | ||||
* | Update copyright year range in header of all files managed by GDB | 2023-01-01 | 1 | -1/+1 | |
| | | | | | | | This commit is the result of running the gdb/copyright.py script, which automated the update of the copyright year range for all source files managed by the GDB project to be updated to include year 2023. | ||||
* | sim: cpu: change default init to handle all cpus | 2022-12-25 | 1 | -1/+1 | |
| | | | | | | All the runtimes were only initializing a single CPU. When SMP is enabled, things quickly crash as none of the other CPU structs are setup. Change the default from 0 to the compile time value. | ||||
* | sim: m68hc11: move arch-specific settings to internal header | 2022-12-23 | 1 | -0/+2 | |
| | | | | | | There's no need for these settings to be in sim-main.h which is shared with common/ sim code, so move it all out to a new header which only this port will include. | ||||
* | sim: move bfd.h include out of sim-main.h | 2022-12-22 | 1 | -0/+2 | |
| | | | | | | | | Not all arches include this in sim-main.h, and the ones that do don't actually use bfd defines in the sim-main.h header. Prune it to make sim-main.h simpler so we can kill it off entirely in the future. We add the include to the files that utilize e.g. bfd_vma though. | ||||
* | sim: m68hc11: invert sim_cpu storage | 2022-12-21 | 1 | -25/+34 | |
| | |||||
* | sim: common: change sim_{fetch,store}_register helpers to use void* buffers | 2022-11-02 | 1 | -4/+6 | |
| | | | | | | | When reading/writing arbitrary data to the system's memory, the unsigned char pointer type doesn't make that much sense. Switch it to void so we align a bit with standard C library read/write functions, and to avoid having to sprinkle casts everywhere. | ||||
* | sim: reg: constify store helper | 2022-10-31 | 1 | -2/+2 | |
| | | | | These functions only read from memory, so mark the pointer as const. | ||||
* | sim: m68hc11: migrate to standard uintXX_t types | 2022-01-06 | 1 | -2/+2 | |
| | | | | | | | This old port setup its own uintXX types, but since we require C11 now, we can assume the standard uintXX_t types exist and use them. Also migrate off the sim-specific unsignedXX types. | ||||
* | Automatic Copyright Year update after running gdb/copyright.py | 2022-01-01 | 1 | -1/+1 | |
| | | | | | | | | This commit brings all the changes made by running gdb/copyright.py as per GDB's Start of New Year Procedure. For the avoidance of doubt, all changes in this commits were performed by the script. | ||||
* | sim: split program path out of argv vector | 2021-11-15 | 1 | -4/+1 | |
| | | | | | | | | | | | | | | We use the program argv to both find the program to run (argv[0]) and to hold the arguments to the program. Most of the time this is fine, but if we want to let programs specify argv[0] independently (which is possible in standard *NIX programs), this double duty doesn't work. So let's split the path to the program to run out into a separate field by itself. This simplifies the various sim_open funcs too. By itself, this code is more of a logical cleanup than something that is super useful. But it will open up customization of argv[0] in a follow up commit. Split the changes to make it easier to review. | ||||
* | sim: overhaul & unify endian settings management | 2021-06-17 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The m4 macro has 2 args: the "wire" settings (which represents the hardwired port behavior), and the default settings (which are used if nothing else is specified). If none are specified, the arch is expected to support both, and the value will be probed based on the user runtime options or the input program. Only two arches today set the default value (bpf & mips). We can probably let this go as it only shows up in one scenario: the sim is invoked, but with no inputs, and no user endian selection. This means bpf will not behave like the other arches: an error is shown and forces the user to make a choice. If an input program is used though, we'll still switch the default to that. This allows us to remove the WITH_DEFAULT_TARGET_BYTE_ORDER setting. For the ports that set a "wire" endian, move it to the runtime init of the respective sim_open calls. This allows us to change the WITH_TARGET_BYTE_ORDER to purely a user-selected configure setting if they want to force a specific endianness. With all the endian logic moved to runtime selection, we can move the configure call up to the common dir so we only process it once across all ports. The ppc arch was picking the wire endian based on the target used, but since we weren't doing that for other biendian arches, we can let this go too. We'll rely on the input selecting the endian, or make the user decide. | ||||
* | sim: switch config.h usage to defs.h | 2021-05-16 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | The defs.h header will take care of including the various config.h headers. For now, it's just config.h, but we'll add more when we integrate gnulib in. This header should be used instead of config.h, and should be the first include in every .c file. We won't rely on the old behavior where we expected files to include the port's sim-main.h which then includes the common sim-basics.h which then includes config.h. We have a ton of code that includes things before sim-main.h, and it sometimes needs to be that way. Creating a dedicated header avoids the ordering mess and implicit inclusion that shows up otherwise. | ||||
* | sim: m68hc11: fix up last warnings | 2021-05-06 | 1 | -4/+4 | |
| | | | | | Change the printf formats a little to fix the last build warnings in here, and then turn on -Werror by default for the arch port. | ||||
* | sim: cgen: move cgen_cpu_max_extra_bytes logic into the common code | 2021-04-12 | 1 | -1/+1 | |
| | | | | | Every arch handles this the same way, so move it to the common code. This will also make unifying the sim_cpu structure easier. | ||||
* | sim: m68hc11: tweak printf-style funcs | 2021-01-30 | 1 | -2/+2 | |
| | | | | | GCC complains that we past non-string literals to a printf style func, so put a %s in here to keep it quiet. | ||||
* | Update copyright year range in all GDB files | 2021-01-01 | 1 | -1/+1 | |
| | | | | | | | | | This commits the result of running gdb/copyright.py as per our Start of New Year procedure... gdb/ChangeLog Update copyright year range in copyright header of all GDB files. | ||||
* | Update copyright year range in all GDB files. | 2020-01-01 | 1 | -1/+1 | |
| | | | | | | gdb/ChangeLog: Update copyright year range in all GDB files. | ||||
* | bfd_section_* macros | 2019-09-19 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This large patch removes the unnecessary bfd parameter from various bfd section macros and functions. The bfd is hardly ever used and if needed for the bfd_set_section_* or bfd_rename_section functions can be found via section->owner except for the com, und, abs, and ind std_section special sections. Those sections shouldn't be modified anyway. The patch also removes various bfd_get_section_<field> macros, replacing their use with bfd_section_<field>, and adds bfd_set_section_lma. I've also fixed a minor bug in gas where compressed section renaming was done directly rather than calling bfd_rename_section. This would have broken bfd_get_section_by_name and similar functions, but that hardly mattered at such a late stage in gas processing. bfd/ * bfd-in.h (bfd_get_section_name, bfd_get_section_vma), (bfd_get_section_lma, bfd_get_section_alignment), (bfd_get_section_size, bfd_get_section_flags), (bfd_get_section_userdata): Delete. (bfd_section_name, bfd_section_size, bfd_section_vma), (bfd_section_lma, bfd_section_alignment): Lose bfd parameter. (bfd_section_flags, bfd_section_userdata): New. (bfd_is_com_section): Rename parameter. * section.c (bfd_set_section_userdata, bfd_set_section_vma), (bfd_set_section_alignment, bfd_set_section_flags, bfd_rename_section), (bfd_set_section_size): Delete bfd parameter, rename section parameter. (bfd_set_section_lma): New. * bfd-in2.h: Regenerate. * mach-o.c (bfd_mach_o_init_section_from_mach_o): Delete bfd param, update callers. * aoutx.h, * bfd.c, * coff-alpha.c, * coff-arm.c, * coff-mips.c, * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c, * compress.c, * ecoff.c, * elf-eh-frame.c, * elf-hppa.h, * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-properties.c, * elf-s390-common.c, * elf-vxworks.c, * elf.c, * elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c, * elf32-d10v.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-nios2.c, * elf32-or1k.c, * elf32-ppc.c, * elf32-pru.c, * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score7.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c, * elf64-bpf.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c, * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, * elflink.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, * i386msdos.c, * linker.c, * mach-o.c, * mmo.c, * opncls.c, * pdp11.c, * pei-x86_64.c, * peicode.h, * reloc.c, * section.c, * syms.c, * vms-alpha.c, * xcofflink.c: Update throughout for bfd section macro and function changes. binutils/ * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c, * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c, * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c, * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update throughout for bfd section macro and function changes. gas/ * as.c, * as.h, * dw2gencfi.c, * dwarf2dbg.c, * ecoff.c, * read.c, * stabs.c, * subsegs.c, * subsegs.h, * write.c, * config/obj-coff-seh.c, * config/obj-coff.c, * config/obj-ecoff.c, * config/obj-elf.c, * config/obj-macho.c, * config/obj-som.c, * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c, * config/tc-arm.c, * config/tc-avr.c, * config/tc-bfin.c, * config/tc-bpf.c, * config/tc-d10v.c, * config/tc-d30v.c, * config/tc-epiphany.c, * config/tc-fr30.c, * config/tc-frv.c, * config/tc-h8300.c, * config/tc-hppa.c, * config/tc-i386.c, * config/tc-ia64.c, * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-lm32.c, * config/tc-m32c.c, * config/tc-m32r.c, * config/tc-m68hc11.c, * config/tc-mep.c, * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c, * config/tc-msp430.c, * config/tc-mt.c, * config/tc-nds32.c, * config/tc-or1k.c, * config/tc-ppc.c, * config/tc-pru.c, * config/tc-rl78.c, * config/tc-rx.c, * config/tc-s12z.c, * config/tc-s390.c, * config/tc-score.c, * config/tc-score7.c, * config/tc-sh.c, * config/tc-sparc.c, * config/tc-spu.c, * config/tc-tic4x.c, * config/tc-tic54x.c, * config/tc-tic6x.c, * config/tc-tilegx.c, * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-visium.c, * config/tc-wasm32.c, * config/tc-xc16x.c, * config/tc-xgate.c, * config/tc-xstormy16.c, * config/tc-xtensa.c, * config/tc-z8k.c: Update throughout for bfd section macro and function changes. * write.c (compress_debug): Use bfd_rename_section. gdb/ * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c, * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c, * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c, * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h, * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c, * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c, * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c, * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c, * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c, * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c, * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c, * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c, * solib-spu.c, * solib-svr4.c, * solib-target.c, * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c, * symmisc.c, * symtab.c, * target.c, * windows-nat.c, * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c, * mi/mi-interp.c: Update throughout for bfd section macro and function changes. * gcore (gcore_create_callback): Use bfd_set_section_lma. * spu-tdep.c (spu_overlay_new_objfile): Likewise. gprof/ * corefile.c, * symtab.c: Update throughout for bfd section macro and function changes. ld/ * ldcref.c, * ldctor.c, * ldelf.c, * ldlang.c, * pe-dll.c, * emultempl/aarch64elf.em, * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/armelf.em, * emultempl/cr16elf.em, * emultempl/cskyelf.em, * emultempl/m68hc1xelf.em, * emultempl/m68kelf.em, * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em, * emultempl/mmo.em, * emultempl/msp430.em, * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em, * emultempl/ppc64elf.em, * emultempl/xtensaelf.em: Update throughout for bfd section macro and function changes. libctf/ * ctf-open-bfd.c: Update throughout for bfd section macro changes. opcodes/ * arc-ext.c: Update throughout for bfd section macro changes. sim/ * common/sim-load.c, * common/sim-utils.c, * cris/sim-if.c, * erc32/func.c, * lm32/sim-if.c, * m32c/load.c, * m32c/trace.c, * m68hc11/interp.c, * ppc/hw_htab.c, * ppc/hw_init.c, * rl78/load.c, * rl78/trace.c, * rx/gdb-if.c, * rx/load.c, * rx/trace.c: Update throughout for bfd section macro changes. | ||||
* | Update copyright year range in all GDB files. | 2019-01-01 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files. | ||||
* | Update copyright year range in all GDB files | 2018-01-02 | 1 | -1/+1 | |
| | | | | | | gdb/ChangeLog: Update copyright year range in all GDB files | ||||
* | update copyright year range in GDB files | 2017-01-01 | 1 | -1/+1 | |
| | | | | | | | | | This applies the second part of GDB's End of Year Procedure, which updates the copyright year range in all of GDB's files. gdb/ChangeLog: Update copyright year range in all GDB files. | ||||
* | sim: unify symbol table handling | 2016-08-15 | 1 | -37/+12 | |
| | | | | | | | | The common sim tracing code already handles loading and tracking of symbols from the target program so that it can show symbol info in trace/disassembly calls. Once we touch up the trace code and add a few API callbacks, ports don't need to do loading and searching of symbol tables themselves anymore. | ||||
* | sim: sim_{create_inferior,open,parse_args}: constify argv/env slightly | 2016-01-06 | 1 | -2/+2 | |
| | | | | | | | 2016-01-03 Mike Frysinger <vapier@gentoo.org> * sim-options.c (sim_parse_args): Mark argv array const. * sim-options.h (sim_parse_args): Likewise. | ||||
* | sim: parse_args: display getopt error ourselves | 2016-01-03 | 1 | -3/+1 | |
| | | | | | | Fix a long standing todo where we let getopt write directly to stderr when an invalid option is passed. Use the sim io funcs instead as they go through the filtered callbacks that gdb wants. | ||||
* | GDB copyright headers update after running GDB's copyright.py script. | 2016-01-01 | 1 | -1/+1 | |
| | | | | | | gdb/ChangeLog: Update year range in copyright notice of all files. | ||||
* | sim: cris/m68hc11: move default endian/alignment to configure | 2015-12-30 | 1 | -4/+0 | |
| | |||||
* | sim: arm/d10v/h8300/m68hc11/microblaze/mips/mn10300/moxie/sh/v850: convert ↵ | 2015-12-30 | 1 | -9/+9 | |
| | | | | to common sim_{fetch,store}_register | ||||
* | sim: sim-close: unify sim_close logic | 2015-11-15 | 1 | -16/+0 | |
| | | | | | | | | | | | | | | | | Other than the nice advantage of all sims having to declare one fewer common function, this also fixes leakage in pretty much every sim. Many were not freeing any resources, and a few were inconsistent as to the ones they did. Now we have a single module that takes care of all the logic for us. Most of the non-cgen based ones could be deleted outright. The cgen ones required adding a callback to the arch-specific cleanup func. The few that still have close callbacks are to manage their internal state. We do not convert erc32, m32c, ppc, rl78, or rx as they do not use the common sim core. | ||||
* | sim: m68hc11: delete unused interrupt_names | 2015-06-11 | 1 | -8/+0 | |
| | | | | | The interrupts.c file has a static/fuller definition that is used, so drop this copy in interp.c. | ||||
* | sim: m68hc11: switch to common sim_resume | 2015-06-11 | 1 | -76/+0 | |
| | | | | | This code already matched the common sim reusme logic, so we can simply drop it and pull in the common code. | ||||
* | sim: m68hc11/mn10300/v850: delete redundant INLINE defines | 2015-06-11 | 1 | -8/+0 | |
| | | | | | The sim-inline.h header already takes care of this for us, so punt the local definitions. | ||||
* | sim: m68hc11: convert to sim-cpu | 2015-04-13 | 1 | -8/+31 | |
| | | | | | Make cpu allocation fully dynamic so we can leverage the common sim-cpu and its APIs. | ||||
* | sim: m68hc11/mips/mn10300/v850: add basic sim_pc_get | 2015-03-24 | 1 | -0/+6 | |
| | | | | | | The previous profile change broke these sims that use sim-profile but not sim-cpu (due to missing model support). Add simple funcs until we can convert these over properly. | ||||
* | sim: erc32/h8300/m68hc11: trim unused functions | 2015-03-24 | 1 | -31/+0 | |
| | | | | | These funcs are only used with the old run.o, and these sims use nrun.o, so drop these stub funcs. | ||||
* | Update year range in copyright notice of all files owned by the GDB project. | 2015-01-01 | 1 | -1/+1 | |
| | | | | | | gdb/ChangeLog: Update year range in copyright notice of all files. | ||||
* | Update Copyright year range in all files maintained by GDB. | 2014-01-01 | 1 | -1/+1 | |
| | |||||
* | Update years in copyright notice for the GDB files. | 2013-01-01 | 1 | -1/+1 | |
| | | | | | | | Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF. | ||||
* | Copyright year update in most files of the GDB Project. | 2012-01-04 | 1 | -2/+1 | |
| | | | | | | gdb/ChangeLog: Copyright year update in most files of the GDB Project. | ||||
* | sim: start a unified sim_do_command | 2011-07-05 | 1 | -27/+0 | |
| | | | | | | | | Since sim_do_command for many people simply calls sim_args_command, start a unified version of it. For people who handle their own options, they could switch to this by using sim_add_option_table instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | run copyright.sh for 2011. | 2011-01-01 | 1 | -2/+2 | |
| | |||||
* | Update copyright notices to add year 2010. | 2010-01-01 | 1 | -1/+1 | |
| | |||||
* | Update the copyright notice of some of the files I missed | 2009-01-14 | 1 | -1/+1 | |
| | | | | in the previous copyright update. | ||||
* | Updated copyright notices for most files. | 2008-01-01 | 1 | -1/+1 | |
| | |||||
* | Switch the license of all files explicitly copyright the FSF | 2007-08-24 | 1 | -5/+4 | |
| | | | | to GPLv3. | ||||
* | Copyright updates for 2007. | 2007-01-09 | 1 | -1/+1 | |
| | |||||
* | * interp.c (sim_prepare_for_program): Use bfd_get_section_size | 2004-06-15 | 1 | -2/+3 | |
| | | | | instead of bfd_get_section_size_before_reloc. |