gdbadmin
74e4e5f0d8
*** empty log message ***
2012-04-26 00:00:03 +00:00
Doug Evans
b6201d445c
* cli/cli-decode.c (print_doc_line): Use stream instead of
...
current_uiout.
2012-04-25 21:56:01 +00:00
Doug Evans
cf53da4b63
back out previous change
2012-04-25 20:55:47 +00:00
Doug Evans
ee4d97bc8b
* cli/cli-decode.c (print_doc_line): Use stream instead of
...
current_uiout.
2012-04-25 18:58:57 +00:00
Sergio Durigan Junior
4e2f8df673
2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
...
* features/arm-with-iwmmxt.c: Regenerate.
* features/arm-with-m-fpa-layout.c: Likewise.
* features/arm-with-m.c: Likewise.
* features/arm-with-neon.c: Likewise.
* features/arm-with-vfpv2.c: Likewise.
* features/arm-with-vfpv3.c: Likewise.
* features/mips-dsp-linux.c: Likewise.
* features/mips-linux.c: Likewise.
* features/mips64-dsp-linux.c: Likewise.
* features/mips64-linux.c: Likewise.
* features/s390-linux32.c: Likewise.
* features/s390-linux32v1.c: Likewise.
* features/s390-linux32v2.c: Likewise.
* features/s390-linux64.c: Likewise.
* features/s390-linux64v1.c: Likewise.
* features/s390-linux64v2.c: Likewise.
* features/s390x-linux64.c: Likewise.
* features/s390x-linux64v1.c: Likewise.
* features/s390x-linux64v2.c: Likewise.
* features/tic6x-c62x-linux.c: Likewise.
* features/tic6x-c62x.c: Likewise.
* features/tic6x-c64x-linux.c: Likewise.
* features/tic6x-c64x.c: Likewise.
* features/tic6x-c64xp-linux.c: Likewise.
* features/tic6x-c64xp.c: Likewise.
* target-descriptions.c: Only generate `field_type' and `type'
variables when needed.
2012-04-25 18:36:05 +00:00
Doug Evans
50f042b9a1
* gdb.texinfo (Go): Fix thinko.
2012-04-25 16:13:17 +00:00
Joel Brobecker
2def3e664d
Fix location of entry added last.
2012-04-25 15:16:29 +00:00
Joel Brobecker
b2a3b50908
Corrupted path caused by "cd" command.
...
gdb/ChangeLog:
* cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2012-04-25 15:14:59 +00:00
Doug Evans
a766d390bb
Initial pass at Go language support.
...
* NEWS: Mention Go.
* Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
go-valprint.c.
(COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
(YYFILES): Add go-exp.c.
(YYOBJ): Add go-exp.o.
(local-maintainer-clean): Delete go-exp.c.
* defs.h (enum language): Add language_go.
* dwarf2read.c: #include "go-lang.h".
(fixup_go_packaging): New function.
(process_full_comp_unit): Call it when processing Go CUs.
(dwarf2_physname): Add Go support.
(read_file_scope): Handle missing language spec for GNU Go.
(set_cu_language): Handle DW_LANG_Go.
* go-exp.y: New file.
* go-lang.h: New file.
* go-lang.c: New file.
* go-typeprint.c: New file.
* go-valprint.c: New file.
* symtab.c: #include "go-lang.h".
(symbol_set_language): Handle language_go.
(symbol_find_demangled_name, symbol_set_names): Ditto.
(symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
testsuite/
* configure.ac: Create gdb.go/Makefile.
* configure: Regenerate.
* gdb.base/default.exp: Add "go" to "set language" testing.
* gdb.go/Makefile.in: New file.
* gdb.go/basic-types.exp: New file.
* gdb.go/chan.exp: New file.
* gdb.go/chan.go: New file.
* gdb.go/handcall.exp: New file.
* gdb.go/handcall.go: New file.
* gdb.go/hello.exp: New file.
* gdb.go/hello.go: New file.
* gdb.go/integers.exp: New file.
* gdb.go/integers.go: New file.
* gdb.go/methods.exp: New file.
* gdb.go/methods.go: New file.
* gdb.go/package.exp: New file.
* gdb.go/package1.go: New file.
* gdb.go/package2.go: New file.
* gdb.go/print.exp: New file.
* gdb.go/strings.exp: New file.
* gdb.go/strings.go: New file.
* gdb.go/types.exp: New file.
* gdb.go/types.go: New file.
* gdb.go/unsafe.exp: New file.
* gdb.go/unsafe.go: New file.
* lib/future.exp: Add Go support.
(gdb_find_go, gdb_find_go_linker): New procs.
(gdb_default_target_compile): Add Go support.
* lib/gdb.exp (skip_go_tests): New proc.
* lib/go.exp: New file.
doc/
* gdb.texinfo (Supported Languages): Add Go.
(Go): New node.
2012-04-25 14:07:23 +00:00
Tom Tromey
e65f9ffb8e
* gdb.threads/linux-dp.exp: Unset 'seen' before 'array set'.
2012-04-25 13:54:00 +00:00
Yao Qi
f02e2b19dd
gdb/doc
...
* gdbint.texinfo (Testsuite): New section `Board settings'.
2012-04-25 10:59:10 +00:00
Jim Meyering
4e2af517f1
avoid a few strncpy-induced buffer overruns
...
* procfs.c (procfs_make_note_section): Be sure to NUL-terminate
fname and psargs before trying to concatenate.
* tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
"name" before applying strchr.
2012-04-25 08:16:43 +00:00
Siva Chandra Reddy
b77b7f52b8
2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
...
* CONTRIBUTE: Use unified diff instead of context diff when
generating patches.
2012-04-25 07:08:07 +00:00
gdbadmin
566ce71f9c
*** empty log message ***
2012-04-25 00:00:03 +00:00
Maciej W. Rozycki
6321c22a8c
* mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
...
code. Handle JR.HB correctly.
2012-04-24 19:56:02 +00:00
Maciej W. Rozycki
742c84f629
* mips-tdep.c
...
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
with the other MIPS16 helpers.
2012-04-24 19:44:16 +00:00
Sergio Durigan Junior
7fc7e0c328
2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
...
* observer.sh: Conditionally declare `args', thus cleaning up
unused instances of this variable.
2012-04-24 18:10:31 +00:00
Thiago Jung Bauermann
f15f99484e
* linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
...
(PTRACE_ARG4_TYPE): Likewise.
(PTRACE_XFER_TYPE): Likewise.
* linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
ptrace to PTRACE_ARG3_TYPE.
* linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
(PTRACE_ARG4_TYPE): Likewise.
(PTRACE_XFER_TYPE): Likewise.
(linux_detach_one_lwp): Cast fourth argument of
ptrace to long then PTRACE_ARG4_TYPE.
(regsets_fetch_inferior_registers): Cast third argument of
ptrace to long then PTRACE_ARG3_TYPE.
(regsets_store_inferior_registers): Likewise.
2012-04-24 15:03:43 +00:00
Yao Qi
20388dd6b6
gdb:
...
Revert this patch to allow breakpoint always-inserted
in record target.
2011-12-05 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c: Include record.h.
(breakpoints_always_inserted_mode): Return false when the record
target is in use.
* breakpoint.c (iterate_over_bp_locations): New.
* breakpoint.h: Declare.
New typedef walk_bp_location_callback.
* record.c (record_open): Call record_init_record_breakpoints.
(record_sync_record_breakpoints): New.
(record_init_record_breakpoints): New.
* NEWS: Mention supporting breakpoint always-inserted mode in
record target.
2012-04-24 14:33:12 +00:00
Marc Khouzam
4734f50e63
2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
...
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
any thread.
2012-04-24 14:26:22 +00:00
Yao Qi
c326b90eb9
gdb/
...
* breakpoint.c (ep_is_catchpoint): Renamed to ...
(is_catchpoint): ... it.
(print_one_breakpoint_location): Caller update.
* breakpoint.h: Update declaration.
2012-04-24 13:20:16 +00:00
David S. Miller
d8fb5a1e65
gdb: Enable gdbserver by default on sparc-*-linux*
...
This appears to be an oversight, since this is done already for
sparc64-*-linux*, and essentially every other linux target.
gdb/
* configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2012-04-24 03:33:16 +00:00
gdbadmin
45a263927b
*** empty log message ***
2012-04-24 00:00:33 +00:00
Tom Tromey
34431a2aa1
* buildsym.c (add_free_pendings): Remove.
...
* buildsym.h (add_free_pendings): Remove.
2012-04-23 18:53:16 +00:00
Jan Kratochvil
174bb630b6
gdb/doc/
...
* gdb.texinfo (Auto-loading safe path): Add trailing @dots{}.
Three times.
2012-04-23 17:26:01 +00:00
Jan Kratochvil
68d41a48a4
gdb/doc/
...
* gdb.texinfo (Auto-loading safe path): Remove trailing [@dots{}].
Three times.
2012-04-23 17:20:56 +00:00
Doug Evans
4568ecf961
* dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
...
attr.u.unsnd instead of attr.u.addr.
(read_attribute_value) Ditto for cases DW_FORM_ref_addr,
DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
DW_FORM_ref_udata.
(dump_die_shallow): Update cases DW_FORM_ref_addr,
DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
DW_FORM_ref_udata.
(dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2012-04-23 16:46:02 +00:00
Maciej W. Rozycki
dca9aa3ad4
* mips-tdep.c (mips_n32n64_return_value): Fix coding style.
...
(mips_o32_return_value): Likewise.
(mips_o64_return_value): Likewise.
2012-04-23 16:00:19 +00:00
gdbadmin
ca0421429c
*** empty log message ***
2012-04-23 00:00:32 +00:00
Jan Kratochvil
0511cc75f8
gdb/doc/
...
* gdb.texinfo (Auto-loading safe path): Replace @itemize @bullet
by @table @asis. Fix formatting of one item.
2012-04-22 15:49:21 +00:00
gdbadmin
4ff4b0eb41
*** empty log message ***
2012-04-22 00:00:32 +00:00
Paul N. Hilfinger
c8ea197278
Add proper handling for internal functions and STT_GNU_IFUNC symbols in Ada mode.
...
The code for handling calls to internal functions (esp., Python
functions) and for handling STT_GNU_IFUNC had not been added to the Ada
expression evaluator. This change adapts them from eval.c.
gdb/Changelog:
* ada-lang.c (ada_evaluate_subexp): Add cases for
TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
their treatment in eval.c.
2012-04-21 22:12:59 +00:00
David S. Miller
8d1b3521db
Handle sparc compare-and-branch
...
SPARC-T4 adds a "compare and branch" instruction which fuses
a compare and a branch instruction into one. The branch
is non-delayed, there are no anulling facilities, and the
displacement is 10-bits.
This also corrects the existing bit test for Branch on
Integer Register. The distinguising characteristic between
Branch on Integer Register and Compare-and-Branch is bit
28. The existing code was checking bit 24 for zero, but
that's pointless because bit 24 is already covered by
the "X_OP2 (insn) == 3" test.
gdb/
* sparc-tdep.c (X_DISP10): Define.
(sparc_analyze_control_transfer): Handle compare-and-branch.
2012-04-21 19:03:52 +00:00
gdbadmin
4272ccafdd
*** empty log message ***
2012-04-21 00:00:34 +00:00
Jonathan Larmour
03145bf42d
* features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
...
* arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2012-04-20 23:39:58 +00:00
Maciej W. Rozycki
004159a2dc
* mips-tdep.c (mips_float_register_p): New function.
...
(mips_convert_register_float_case_p): Use mips_float_register_p.
(mips_register_type): Likewise.
(mips_print_register): Likewise.
(print_gp_register_row): Likewise.
(mips_print_registers_info): Likewise.
2012-04-20 23:31:39 +00:00
Maciej W. Rozycki
7f0e6aaed2
* mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
...
of mips16 symbols.
2012-04-20 23:01:51 +00:00
Andrew Pinski
bc17beea2d
2012-04-20 Andrew Pinski <apinski@cavium.com>
...
* MAINTAINERS (Write After Approval): Add myself to the list.
2012-04-20 22:59:48 +00:00
Sergio Durigan Junior
1730a5a56b
2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
...
* MAINTAINERS: Update my e-mail address.
2012-04-20 22:56:45 +00:00
Pedro Alves
38ea300a20
2012-04-20 Pedro Alves <palves@redhat.com>
...
gdb/
* acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
$srcdir.
* configure: Regenerate.
gdb/gdbserver/
* configure: Regenerate.
2012-04-20 17:58:49 +00:00
Sergio Durigan Junior
111dfaae04
2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
...
* cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
declaration.
* gdb_vecs.h: Declare `const_char_ptr' VEC.
2012-04-20 16:57:17 +00:00
Pedro Alves
a09130f92f
whitespace/tabify
2012-04-20 16:36:24 +00:00
Jan Kratochvil
4fb2c64af1
gdb/
...
Fix compilation compatibility with python-2.4
* python/py-type.c (convert_field): Cast ADDRSTRING for
PyObject_SetAttrString as non-const. New comment.
2012-04-20 07:17:58 +00:00
gdbadmin
d5003ebff0
*** empty log message ***
2012-04-20 00:00:33 +00:00
Tom Tromey
6328eb3805
* top.c (quit_target): Use all_cleanups.
...
* main.c (captured_command_loop): Use all_cleanups.
* exceptions.c (throw_exception): Use all_cleanups.
2012-04-19 20:18:26 +00:00
Pedro Alves
c971b7fa72
2012-04-19 Pedro Alves <palves@redhat.com>
...
gdb/
* Makefile.in (GNULIB_BUILDDIR): New.
(LIBGNU, INCGNU, GNULIB_H): Adjust.
(SUBDIRS): Add $(GNULIB_BUILDDIR).
(CLEANDIRS). Remove gnulib/import.
(REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
(all-lib): Ditto.
(distclean): Remove the $(GNULIB_BUILDDIR) directory.
(gnulib/import/Makefile): Replace gnulib/import with
$(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
(ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
(aclocal_m4_deps): Remove the gnulib dependencies. Add
acx_configure_dir.m4.
* acinclude.m4: Include acx_configure_dir.m4.
* acx_configure_dir.m4: New file.
* aclocal.m4: Regenerate.
* configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
calls. Configure gnulib using ACX_CONFIGURE_DIR.
(GNULIB): New variable.
(GNULIB_STDINT_H): Adjust.
(AC_OUTPUT): Don't output gnulib/Makefile.
* gdb/defs.h: Include build-gnulib/config.h.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* gnulib/Makefile.in: New file.
* gnulib/configure.ac: New file.
* gnulib/aclocal.m4: New file.
* gnulib/config.in: New file.
* gnulib/configure: New file.
* gnulib/: Re-run gnulib-tool to adjust.
gdb/gdbserver/
* Makefile.in (GNULIB_BUILDDIR): New.
(LIBGNU, INCGNU, GNULIB_H): Adjust.
(SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
(all, install-only, uninstall, clean-info, all-lib, clean): No
longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
(maintainer-clean realclean distclean): Use subdir_do.
(subdir_do): New.
(gnulib/import/Makefile): Adjust. Replace gnulib/import with
$(GNULIB_BUILDDIR). Don't pass argument to config.status.
* acinclude.m4: Include acx_configure_dir.m4.
* configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
calls. Call AC_PROG_RANLIB. Configure gnulib using
ACX_CONFIGURE_DIR.
(GNULIB): New.
(GNULIB_STDINT_H): Adjust.
(AC_OUTPUT): Don't output gnulib/Makefile anymore.
* gdbreplay.c: Include build-gnulib/config.h.
* server.h: Likewise.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
2012-04-19 19:34:52 +00:00
Pedro Alves
9d28a8c73b
Revert commit that should not have gone in.
2012-04-19 19:32:15 +00:00
Doug Evans
b10faa68a4
* cleanups.h (struct cleanup): Move to cleanups.c.
...
(make_cleanup_dtor_ftype): New typedef.
(make_cleanup_dtor): Use it.
(ALL_CLEANUPS): Replace with ...
(all_cleanups): ... this. Declare. All uses updated.
* cleanups.c: #include "gdb_assert.h".
(sentinel_cleanup): New static global.
(SENTINEL_CLEANUP): Define.
(cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
(make_my_cleanup2): Assert result is non-NULL.
(all_cleanups): New function.
(save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
of NULL.
2012-04-19 19:11:02 +00:00
Pedro Alves
ff188ee48b
2012-04-19 Pedro Alves <palves@redhat.com>
...
* Makefile.in (GNULIB_BUILDDIR): New.
(LIBGNU, INCGNU, GNULIB_H): Adjust.
(SUBDIRS): Add $(GNULIB_BUILDDIR).
(CLEANDIRS). Remove gnulib/import.
(REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
(all-lib): Ditto.
(distclean): Remove the $(GNULIB_BUILDDIR) directory.
(gnulib/import/Makefile): Replace gnulib/import with
$(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
(ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
(aclocal_m4_deps): Remove the gnulib dependencies. Add
acx_configure_dir.m4.
* acinclude.m4: Include acx_configure_dir.m4.
* acx_configure_dir.m4: New file.
* aclocal.m4: Regenerate.
* configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
calls. Configure gnulib using ACX_CONFIGURE_DIR.
(GNULIB): New variable.
(GNULIB_STDINT_H): Adjust.
(AC_OUTPUT): Don't output gnulib/Makefile.
* gdb/defs.h: Include build-gnulib/config.h.
* acx_configure_dir.m4: New file.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* gnulib/Makefile.in: New file.
* gnulib/configure.ac: New file.
* gnulib/aclocal.m4: New file.
* gnulib/config.in: New file.
* gnulib/configure: New file.
* gnulib/: Re-run gnulib-tool to adjust.
gdbserver/
* Makefile.in (GNULIB_BUILDDIR): New.
(LIBGNU, INCGNU, GNULIB_H): Adjust.
(SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
(all, install-only, uninstall, clean-info, all-lib, clean): No
longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
(maintainer-clean realclean distclean): Use subdir_do.
(subdir_do): New.
(gnulib/import/Makefile): Adjust. Replace gnulib/import with
$(GNULIB_BUILDDIR). Don't pass argument to config.status.
* acinclude.m4: Include acx_configure_dir.m4.
* configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
calls. Call AC_PROG_RANLIB. Configure gnulib using
ACX_CONFIGURE_DIR.
(GNULIB): New.
(GNULIB_STDINT_H): Adjust.
(AC_OUTPUT): Don't output gnulib/Makefile anymore.
* gdbreplay.c: Include build-gnulib/config.h.
* server.h: Likewise.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
2012-04-19 17:18:18 +00:00
Pedro Alves
e22314be6a
2012-04-19 Pedro Alves <palves@redhat.com>
...
* Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
Adjust paths to gnulib imported files.
C
2012-04-19 17:15:07 +00:00