aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-12-25gdb/Jan Kratochvil14-85/+124
* ada-lang.c (is_known_support_routine): New variable fullname. Use access call to verify the symtab_to_fullname result. * breakpoint.c (print_breakpoint_location, update_static_tracepoint): Remove NULL check of symtab_to_fullname result. * cli/cli-cmds.c (edit_command): Likewise. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) (mi_cmd_file_list_exec_source_files): Likewise. * python/py-symtab.c (stpy_fullname): Likewise. * source.c (symtab_to_fullname): Update function comment. Rename variable r to fd, move it to inner block. Always provide non-NULL result. (print_source_lines_base): Remove NULL check of symtab_to_fullname result. * stack.c (print_frame): Likewise. * symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info): Likewise. * tracepoint.c (print_one_static_tracepoint_marker): Likewise. gdb/doc/ * gdb.texinfo (GDB/MI Data Manipulation) (fullname): Make it always present. (GDB/MI File Commands) (-file-list-exec-source-files): Make the fullname output always present. gdb/testsuite/ * gdb.mi/mi-fullname-deleted.exp: New file.
2012-12-25*** empty log message ***gdbadmin1-1/+1
2012-12-24gdb/Jan Kratochvil9-10/+24
Code cleanup. * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for NULL. * linespec.c (add_sal_to_sals): Likewise. * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL. * stack.c (print_frame): Do not check symtab->FILENAME for NULL. * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL. * symtab.h (struct symtab): Add comment it is never NULL for filename. * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME for NULL. * tui/tui-source.c (tui_set_source_content): Likewise.
2012-12-24gdb/Jan Kratochvil10-277/+218
* breakpoint.c (breakpoint_re_set): Remove the skip_re_set call. * infrun.c (handle_inferior_event): Rename the called function to function_name_is_marked_for_skip, pass it TMP_SAL. * skip.c (struct skiplist_entry): Update function_name comment. Remove fields pc, gdbarch and pending. (skip_function_pc): Rename this forward declaration to ... (skip_function): ... here. (skip_file_command): Remove variable pending and its use, remove initialization of E fields pending and gdbarch. Do not use SYMTAB filename, use the specified one. (skip_function_command): Remove variable func_pc, do not set it. Update the caller of skip_function. Replace decode_line_1 call by a lookup_symbol call. Remove variables orig_arg, decode_exception and sals. Update the caller of skip_function. (skip_info): Remove variable address_width and its use. Do not print address (PC). Renumber column 5 to 4. (skip_function_pc): Rename to ... (skip_function): ... here and remove its parameters pc, arch and pending. Update the function comment and no longer use those parameters. (function_pc_is_marked_for_skip): Rename to ... (function_name_is_marked_for_skip): ... here, update function comment just to a skip.h reference, replace pc parameter by function_name and function_sal. No longer use E field pending and pc. Remove variables searched_for_sal, sal and filename. Call compare_filenames_for_search instead of just strcmp. (skip_re_set): Remove the function. * skip.h (struct symtab_and_line): New declaration. (function_pc_is_marked_for_skip): Rename to ... (function_name_is_marked_for_skip): ... here, replace pc parameter by function_name and function_sal, update the function comment. gdb/testsuite/ * gdb.base/skip-solib.exp (info skip with pending file): Update the expected output. (info skip with pending file): Remove. (ignoring function in solib, info skip for function multiply): Update the expected output. * gdb.base/skip.ex (skip (main), skip function baz, info skip) (info skip (delete 1), info skip after disabling all) (info skip after enabling all, info skip after disabling 4 2-3) (info skip after enabling 2-3, info skip 2-3) (info skip after deleting 2 3): Update the expected output. * gdb.linespec/base/two/thefile.cc (n): New variable v, split the statement to its initialization and return. * gdb.linespec/skip-two.exp: New file.
2012-12-24*** empty log message ***gdbadmin1-1/+1
2012-12-23*** empty log message ***gdbadmin1-1/+1
2012-12-22 * ui-file.h (tee_file_new): Add extern modifier in header declaration.Pierre Muller2-4/+8
2012-12-22 * gdbint.texinfo (Function prototypes): Require use of "extern"Pierre Muller2-1/+7
modifier for function prototypes in headers.
2012-12-22*** empty log message ***gdbadmin1-1/+1
2012-12-21*** empty log message ***gdbadmin1-1/+1
2012-12-20 * serial.c (deprecated_serial_fd): Remove.Tom Tromey3-20/+5
* serial.h (deprecated_serial_fd): Remove.
2012-12-20 * gdb.base/maint.exp: Handle testing with .gdb_index.Doug Evans2-29/+45
2012-12-20gdb/Yao Qi4-37/+40
2012-12-20 Yao Qi <yao@codesourcery.com> * maint.c (_initialize_maint_cmds): Move code ... * symmisc.c (_initialize_symmisc): ... to here. (maintenance_print_msymbols): Make it static. (maintenance_print_objfiles): Likewise. (maintenance_print_symbols): Likewise. (maintenance_info_symtabs): Likewise. * symtab.h (maintenance_print_msymbols): Remove declaration. (maintenance_print_objfiles, maintenance_print_symbols): Likewise. (maintenance_info_symtabs): Likewise.
2012-12-20gdb/Yao Qi4-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.
2012-12-20*** empty log message ***gdbadmin1-1/+1
2012-12-19 * MAINTAINERS: Add myself to write-after-approval maintainers.Maxim Kuvyrkov2-0/+5
2012-12-192012-12-19 Andreas Tobler <andreast@neon.andreas.nets>Andreas Tobler2-1/+7
* mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize branch_bp to keep gcc happy.
2012-12-19Change copyright from Cavium to FSF.Joel Brobecker2-1/+6
gdb/testsuite/ChangeLog: * gdb.arch/mips-octeon-bbit.exp: Fix copyright header from Cavium to FSF.
2012-12-19Add copyright header to stubs/buildvms.com.Joel Brobecker2-0/+22
gdb/stubs/ChangeLog: * buildvms.com: Add copyright header.
2012-12-19Fix copyright years in gdbarch.h and gdbarch.c.Joel Brobecker5-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'.
2012-12-19update copyright notices in various GDB files.Joel Brobecker13-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.
2012-12-19gdb/Yao Qi3-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.
2012-12-19NEWS: Announce ppc-lynx178 support.Joel Brobecker2-0/+8
gdb/ChangeLog: * NEWS: Add entry announcing ppc-lynx178 support.
2012-12-19Revert "Import gnulib's errno module."Joel Brobecker10-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.
2012-12-19*** empty log message ***gdbadmin1-1/+1
2012-12-18fix some bad ChangeLog dates from todayTom Tromey1-7/+7
2012-12-18 * defs.h (directory_command): Don't declare.Tom Tromey3-3/+6
* source.c (directory_command): Now static.
2012-12-18 * infcmd.c (all_registers_info, nexti_command, stepi_command)Tom Tromey3-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.
2012-12-18 * cli/cli-cmds.c (apropos_command): Now static.Tom Tromey2-3/+5
2012-12-18 * breakpoint.c (dprintf_command): Now static.Tom Tromey2-3/+5
2012-12-18 * Makefile.in (init.c): Declare initialize_all_files;Tom Tromey5-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.
2012-12-18 * symfile.c (list_overlays_command, map_overlay_command)Tom Tromey2-9/+8
(unmap_overlay_command): Now static.
2012-12-18 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",Tom Tromey4-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.
2012-12-18 * cli/cli-cmds.c (_initialize_cli_cmds): New function.Tom Tromey2-16/+30
(init_cli_cmds): Move most code into new function.
2012-12-18 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.Tom Tromey3-8/+10
* minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't declare.
2012-12-18Port GDB to powerpc-lynx178.Joel Brobecker9-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.
2012-12-18Fix ChangeLog format.Markus Metzger2-5/+5
2012-12-182012-12-18 Hui Zhu <hui_zhu@mentor.com>Hui Zhu3-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-182012-12-18 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2-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.
2012-12-18solib-darwin.c: handle PIE when attaching processes.Joel Brobecker4-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.
2012-12-18Import gnulib's errno module.Joel Brobecker10-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.
2012-12-18Update gnulib to current HEAD.Joel Brobecker19-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.
2012-12-18Fix author in last ChangeLog entry.Joel Brobecker1-1/+1
2012-12-18Add call to autoheader in update-gnulib.sh.Joel Brobecker2-0/+5
gdb/ChangeLog: * gnulib/update-gnulib.sh: Add call to autoheader.
2012-12-18*** empty log message ***gdbadmin1-1/+1
2012-12-17Enable accidentally commented out code.Doug Evans1-3/+3
2012-12-17 * top.c (xgdb_verbose): Remove.Tom Tromey2-1/+4
2012-12-17lynx-low: Add debug trace when new thread is discovered.Joel Brobecker2-1/+10
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_wait_1): Add debug trace before adding new thread.
2012-12-17Add PTRACE_GETTRACESIG handling in ptrace_request_to_strJoel Brobecker2-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.
2012-12-17Delete unused variable in lynx_attach.Joel Brobecker2-2/+5
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_attach): Delete variable new_process.