summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* gdb/qiyao2012-12-204-25/+36
| | | | | | | | | | | | 2012-12-20 Yao Qi <yao@codesourcery.com> * maint.c (_initialize_maint_cmds): Move code to ... * psymtab.c (_initialize_psymtab): ... here. New. Include "gdbcmd.h". (maintenance_print_psymbols): Make it static. (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise. * symtab.h (maintenance_print_psymbols): Remove declaration. (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
* *** empty log message ***gdbadmin2012-12-201-1/+1
|
* * MAINTAINERS: Add myself to write-after-approval maintainers.mkuvyrkov2012-12-192-0/+5
|
* 2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>andreast2012-12-192-1/+7
| | | | | * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize branch_bp to keep gcc happy.
* Change copyright from Cavium to FSF.Joel Brobecker2012-12-192-1/+6
| | | | | | | gdb/testsuite/ChangeLog: * gdb.arch/mips-octeon-bbit.exp: Fix copyright header from Cavium to FSF.
* Add copyright header to stubs/buildvms.com.Joel Brobecker2012-12-192-0/+22
| | | | | | gdb/stubs/ChangeLog: * buildvms.com: Add copyright header.
* Fix copyright years in gdbarch.h and gdbarch.c.Joel Brobecker2012-12-195-7/+11
| | | | | | | | | | | | | | | | | | | | | | | copyright.py was updating gdbarch.sh' copyright years, but not the function that genarates the copyright headers for gdbarch.[hc]. This patch makes the following changes: - fixes gdbarch.sh and regenerates gdbarch.[hc] - Modify copyright.py to remind the user to update gdbarch.sh by hand. This should also remind the user to rerun the script and update gdbarch.[hc] - see next point; - Allow copyright.py to update gdbarch.[hc]'c copyright years, even though these are generated files; This should free the user from having to update gdbarch.[hc] himself; gdb/ChangeLog: * gdbarch.sh (copyright): Update copyright years. * gdbarch.h, gdbarch.c: Regenerate. * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c. (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
* update copyright notices in various GDB files.Joel Brobecker2012-12-1913-37/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update some files in GDB that were accidently left with a GPL v2 copyright header. Update some files where the copyright notice still provides the old contact info, using the approach for providing the FSF's contact info. gdb/ChangeLog: * acinclude.m4: Update contact info in copyright notice. gdb/doc/ChangeLog: * refcard.tex: Update copyright notice to GPL v3 or later. Update contact info. gdb/testsuite/ChangeLog: * dg-extract-results.sh: Update contact info in copyright notice. * gdb.arch/mips-octeon-bbit.exp: Update copyright notice to GPL v3 or later. Update contact info. * gdb.fortran/logical.f90, gdb.threads/watchpoint-fork-child.c, gdb.threads/watchpoint-fork-mt.c, gdb.threads/watchpoint-fork-parent.c, gdb.threads/watchpoint-fork-st.c, gdb.threads/watchpoint-fork.h: Likewise.
* gdb/qiyao2012-12-193-5/+6
| | | | | | | 2012-12-19 Yao Qi <yao@codesourcery.com> * maint.c (maintenance_print_statistics): Make it static. * symtab.h (maintenance_print_statistics): Remove declaration.
* NEWS: Announce ppc-lynx178 support.Joel Brobecker2012-12-192-0/+8
| | | | | | gdb/ChangeLog: * NEWS: Add entry announcing ppc-lynx178 support.
* Revert "Import gnulib's errno module."Joel Brobecker2012-12-1910-1053/+188
| | | | | | | | | | | | | | | | | | There are some compatibility concerns with libiconv to be discussed first. gdb/ChangeLog: Revert the following change: * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno. * gnulib/import/errno.in.h: Import. * gnulib/import/m4/errno_h.m4: Import. * gnulib/aclocal.m4: Regenerate. * gnulib/configure: Regenerate. * gnulib/import/Makefile.am: Update. * gnulib/import/Makefile.in: Update. * gnulib/import/m4/gnulib-cache.m4: Update. * gnulib/import/m4/gnulib-comp.m4: Update.
* *** empty log message ***gdbadmin2012-12-191-1/+1
|
* fix some bad ChangeLog dates from todayTom Tromey2012-12-181-7/+7
|
* * defs.h (directory_command): Don't declare.Tom Tromey2012-12-183-3/+6
| | | | * source.c (directory_command): Now static.
* * infcmd.c (all_registers_info, nexti_command, stepi_command)Tom Tromey2012-12-183-29/+13
| | | | | | | (continue_command, interrupt_target_command): Now static. (registers_info): Remove declaration. * inferior.h (all_registers_info, nexti_command, stepi_command) (continue_command, interrupt_target_command): Don't declare.
* * cli/cli-cmds.c (apropos_command): Now static.Tom Tromey2012-12-182-3/+5
|
* * breakpoint.c (dprintf_command): Now static.Tom Tromey2012-12-182-3/+5
|
* * Makefile.in (init.c): Declare initialize_all_files;Tom Tromey2012-12-185-37/+12
| | | | | | | | don't include call-cmds.h. * call-cmds.h: Remove. * symtab.c: Don't include call-cmds.h. * top.c: Don't include call-cmds.h. Declare initialize_all_files.
* * symfile.c (list_overlays_command, map_overlay_command)Tom Tromey2012-12-182-9/+8
| | | | (unmap_overlay_command): Now static.
* * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",Tom Tromey2012-12-184-35/+45
| | | | | | | | | "define", "while", and "if" commands. * cli/cli-script.c (while_command, if_command, define_command) (document_command): Now static. (_initialize_cli_script): New function. * cli/cli-script.h (while_command, if_command, define_command) (document_command): Don't declare.
* * cli/cli-cmds.c (_initialize_cli_cmds): New function.Tom Tromey2012-12-182-16/+30
| | | | (init_cli_cmds): Move most code into new function.
* * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.Tom Tromey2012-12-183-8/+10
| | | | | * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't declare.
* Port GDB to powerpc-lynx178.Joel Brobecker2012-12-189-0/+518
| | | | | | | | | | | | | | | | | gdb/ChangeLog: * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178. * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178. * xcoffread.c (xcoff_get_core_n_import_files): New function. (xcoff_get_n_import_files): New function. * xcoffread.h (xcoffread.h): Add declaration. * rs6000-aix-tdep.c: #include "xcoffread.h". (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for XCOFF executables that do not depend on any shared library. * rs6000-lynx178-tdep.c: New file. * configure.tgt: Add powerpc-*-lynx*178 handling. * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o. (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
* Fix ChangeLog format.mmetzger2012-12-182-5/+5
|
* 2012-12-18 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2012-12-183-0/+54
| | | | | | | | | | * ui-file.c (ui_file): Add to_fseek. (ui_file_new): Call set_ui_file_fseek. (null_file_fseek, ui_file_fseek, set_ui_file_fseek, stdio_file_fseek): New functions. (stdio_file_new): Call set_ui_file_fseek. * ui-file.h (ui_file_fseek_ftype): New typedef. (set_ui_file_fseek, ui_file_fseek): New externs.
* 2012-12-18 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2012-12-182-18/+31
| | | | | | | | | | | | | * ui-file.c (set_ui_file_flush): Change flush to flush_ptr. (set_ui_file_isatty): Change isatty to isatty_ptr. (set_ui_file_rewind): Change rewind to rewind_ptr. (set_ui_file_put): Change put to put_ptr. (set_ui_file_write): Change write to write_ptr. (set_ui_file_write_async_safe): Change write_async_safe to write_async_safe_ptr. (set_ui_file_read): Change read to read_ptr. (set_ui_file_fputs): Change fputs to fputs_ptr. (set_ui_file_data): Change delete to delete_ptr.
* solib-darwin.c: handle PIE when attaching processes.Joel Brobecker2012-12-184-2/+128
| | | | | | | | | | gdb/ChangeLog: * solib-darwin.c (darwin_current_sos): Fix indentation. (darwin_read_exec_load_addr): New function. (darwin_solib_create_inferior_hook): Rebase executable. * objfiles.c (objfile_rebase1, objfile_rebase): New functions. * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
* Import gnulib's errno module.Joel Brobecker2012-12-1810-175/+1065
| | | | | | | | | | | | | | gdb/ChangeLog: * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno. * gnulib/import/errno.in.h: Import. * gnulib/import/m4/errno_h.m4: Import. * gnulib/aclocal.m4: Regenerate. * gnulib/configure: Regenerate. * gnulib/import/Makefile.am: Update. * gnulib/import/Makefile.in: Update. * gnulib/import/m4/gnulib-cache.m4: Update. * gnulib/import/m4/gnulib-comp.m4: Update.
* Update gnulib to current HEAD.Joel Brobecker2012-12-1819-172/+330
| | | | | | | | | | | | | | | | | | | | | | gdb/ChangeLog: * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to 8d5bd1402003bd0153984b138735adf537d960b0. * gnulib/aclocal.m4, configure, config.in: Regenerate. * gnulib/import/m4/extern-inline.m4: Import. * gnulib/import/wctype-h.c: Import. * gnulib/import/Makefile.am: Update. * gnulib/import/Makefile.in: Update. * gnulib/import/alloca.in.h: Update. * gnulib/import/extra/snippet/warn-on-use.h: Update. * gnulib/import/localcharset.c: Update. * gnulib/import/m4/fcntl-o.m4: Update. * gnulib/import/m4/gnulib-cache.m4: Update. * gnulib/import/m4/gnulib-comp.m4: Update. * gnulib/import/m4/wctype_h.m4: Update. * gnulib/import/stdbool.in.h: Update. * gnulib/import/verify.h: Update. * gnulib/import/wctype.in.h: Update.
* Fix author in last ChangeLog entry.Joel Brobecker2012-12-181-1/+1
|
* Add call to autoheader in update-gnulib.sh.Joel Brobecker2012-12-182-0/+5
| | | | | | gdb/ChangeLog: * gnulib/update-gnulib.sh: Add call to autoheader.
* *** empty log message ***gdbadmin2012-12-181-1/+1
|
* Enable accidentally commented out code.Doug Evans2012-12-171-3/+3
|
* * top.c (xgdb_verbose): Remove.Tom Tromey2012-12-172-1/+4
|
* lynx-low: Add debug trace when new thread is discovered.Joel Brobecker2012-12-172-1/+10
| | | | | | | gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_wait_1): Add debug trace before adding new thread.
* Add PTRACE_GETTRACESIG handling in ptrace_request_to_strJoel Brobecker2012-12-172-0/+8
| | | | | | | | | | | | | | We use this ptrace request when handling SIGTRAP signals, and without this change, the debug trances show: PTRACE (<unknown-request>, ... This patch fixes this. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Add handling for PTRACE_GETTRACESIG.
* Delete unused variable in lynx_attach.Joel Brobecker2012-12-172-2/+5
| | | | | | gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_attach): Delete variable new_process.
* remove unused variable in lynx_create_inferior.Joel Brobecker2012-12-172-2/+6
| | | | | | gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_create_inferior): Delete variable new_process.
* lynx-low.c: PTRACE_GETTHREADLIST may not be defined.Joel Brobecker2012-12-172-0/+7
| | | | | | | | | LynxOS 178 does not define this macro. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Do not handle PTRACE_GETTHREADLIST if this macro does not exist.
* *** empty log message ***gdbadmin2012-12-171-1/+1
|
* gdb/Jan Kratochvil2012-12-164-52/+96
| | | | | | | | | | | | | | | | | | | | | | | | | Code cleanup. * skip.c (skip_function_command, skip_file_command, skip_info): Remove unused forward declarations. (skip_file_command): Make variables symtab and filename targets const. Use proper 0 vs. NULL constant everywhere. (skip_function_command): Use proper 0 vs. NULL constant everywhere. Include empty line after declarations. Use GNU spacing in a comment. Do not use strlen for end of string check. (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5 comments. (skip_enable_command, skip_disable_command, skip_delete_command) (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere. (function_pc_is_marked_for_skip): Make variable filename target const. Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant comment formatting. (skip_re_set): Add empty line after function comment. Use proper 0 vs. NULL constant everywhere. Include empty line after declarations. Make variable symtab target const. Do not use strlen for end of string check. gdb/doc/ * gdbint.texinfo (Coding Standards) (C Usage): New rule for 0 vs. NULL.
* gdb/Jan Kratochvil2012-12-166-27/+33
| | | | | | | | | | | | | | | | | Code cleanup. * breakpoint.c (clear_command): Remove variable sal_name_len and its initialization, remove it from the compare_filenames_for_search call. * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable name_len and its initialization, remove it from the compare_filenames_for_search calls. * psymtab.c (partial_map_symtabs_matching_filename): Likewise. * symtab.c (compare_filenames_for_search): Remove the search_len parameter, update the function comment, new variable search_len initialized from SEARCH_NAME. (iterate_over_some_symtabs): Remove variable name_len and its initialization, remove it from the compare_filenames_for_search calls. * symtab.h (compare_filenames_for_search): Remove the search_len parameter,
* Makefile.in: Move ravenscar-thread.c from SFILES to ALLDEPFILES.Joel Brobecker2012-12-162-1/+6
| | | | | | | gdb/ChangeLog: * Makefile.in (SFILES): Move ravenscar-thread.c from here... (ALLDEPFILES): ... to there.
* *** empty log message ***gdbadmin2012-12-161-1/+1
|
* Minor ChangeLog fix.Joel Brobecker2012-12-151-1/+1
|
* Add missing backslash in configure.tgt gdb_target_ops (sparc-*-*)Joel Brobecker2012-12-152-1/+5
| | | | | | | | I forgot to put a '\' when splitting the line in two. gdb/ChangeLog: * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
* Add ravenscar-thread support for powerpc.Joel Brobecker2012-12-156-8/+352
| | | | | | | | | | | | | | gdb/ChangeLog: * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files. * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o. (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h. (ALLDEPFILES): Add ppc-ravenscar-thread.c. * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o to gdb_target_obs for every target that uses rs6000-tdep.o. * rs6000-tdep.c: #include "ppc-ravenscar-thread.h". (rs6000_gdbarch_init): Call register_e500_ravenscar_ops or register_ppc_ravenscar_ops.
* change ravenscar_sparc prefixes into sparc_ravenscar...Joel Brobecker2012-12-153-13/+21
| | | | | | | | | | | | ... following the file renaming in the previous commit. gdb/ChangeLog: * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames RAVENSCAR_SPARC_THREAD_H. * sparc-ravenscar-thread.c: Rename all global entities whose name is uses "ravenscar_sparc" as the prefix to use "sparc_ravenscar" instead.
* Rename ravenscar-sparc-thread.[hc] into sparc-ravenscar-thread.[hc].Joel Brobecker2012-12-156-16/+27
| | | | | | | | | | | | | gdb/ChangeLog: * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h. * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c. Adjust sparc-ravenscar-thread.h #include. * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include accordingly. * Makefile.in: Replace ravenscar-sparc-thread with sparc-ravenscar-thread throughout. * configure.tgt: Likewise.
* gdbarch-ification of ravenscar-thread support.Joel Brobecker2012-12-1511-51/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gdb/ChangeLog: * gdbarch.sh: Add "struct ravenscar_arch_ops" advance declaration. (ravenscar_ops): New gdbarch variable. * gdbarch.h, gdbarch.c: Regenerate. * ravenscar-thread.h (ravenscar_register_arch_ops): Delete. * ravenscar-thread.c (current_arch_ops): Delete. (ravenscar_fetch_registers): Get the ravenscar_arch_ops from the gdbarch. (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise. (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check. (ravenscar_register_arch_ops): Delete. * ravenscar-sparc-thread.h: New file. * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h". (ravenscar_sparc_ops): Define value statically. (_initialize_ravenscar_sparc): Delete. (register_sparc_ravenscar_ops): New function. * sparc-tdep.c: #include "ravenscar-sparc-thread.h". (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops. * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and ravenscar-sparc-thread.o. (SFILES): Add ravenscar-thread.c. (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h. (ALLDEPFILES): ravenscar-sparc-thread.c. * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o to gdb_target_obs for all the targets that use sparc-tdep.o.