Michael Snyder
f662c3bce4
2009-07-14 Michael Snyder <msnyder@vmware.com>
...
* gdb.reverse/step-reverse.exp (stepi into function call):
Call instruction may not be first instruction in the line.
(reverse stepi from a function call): Used wrong line number.
2009-07-14 20:17:26 +00:00
Ulrich Weigand
b101f7a125
* objfiles.c (objfile_relocate): Do not relocate the same
...
BLOCKVECTOR_MAP address map multiple times.
2009-07-14 14:55:06 +00:00
Ulrich Weigand
217f1f7954
* remote.c (process_stop_reply): Access expedited target registers
...
in target_gdbarch.
2009-07-14 14:53:41 +00:00
gdbadmin
f9930c508d
*** empty log message ***
2009-07-14 00:00:03 +00:00
Jan Kratochvil
8f31392312
gdb/
...
Fix memory access from signed 32bit inferior registers on 64bit GDB.
* linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable
addr_bit. Mask OFFSET by the ADDR_BIT width.
gdb/testsuite/
* gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.
2009-07-13 20:16:48 +00:00
Jan Kratochvil
4662c76e91
gdb/testsuite/
...
Fix gdb.base/macscp.exp when using custom inputrc.
* gdb.base/completion.exp: Remove env(INPUTRC) set and restore.
* gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove
env(TERM) set.
* gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set.
* lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
2009-07-13 19:24:18 +00:00
Jan Kratochvil
aa81e255f3
gdb/testsuite/
...
Fix racy clashing of output files for gdb.base{1,2}/ parallel run.
* gdb.base/annota1.exp (thread_test): Import global $testfile.
Change the compilation target to match the testcase name.
* gdb.base/sect-cmd.exp: Change the compilation target to match the
testcase name.
* a2-run.exp: Use for setup prepare_for_testing. Change the
compilation target to match the testcase name.
* gdb.base/commands.exp: Likewise.
* gdb.base/finish.exp: Likewise.
* gdb.base/float.exp: Likewise.
* gdb.base/info-target.exp: Likewise.
* gdb.base/relational.exp: Likewise.
* gdb.base/term.exp: Likewise.
* gdb.base/until.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/whatis-exp.exp: Likewise.
2009-07-13 19:20:39 +00:00
Anthony Green
451fa05e5d
Add process recording support to the moxie gdb port.
2009-07-13 04:56:14 +00:00
gdbadmin
93466eda94
*** empty log message ***
2009-07-13 00:00:02 +00:00
Michael Snyder
06da04c610
2009-07-12 Michael Snyder <msnyder@vmware.com>
...
* i386-tdep.c: Add a frame unwinder for function epilogues.
(i386_in_function_epilogue_p): New function.
(i386_epilogue_frame_sniffer): New function.
(i386_epilogue_frame_cache): New function.
(i386_epilogue_frame_this_id): New function.
(i386_epilogue_frame_unwind): New struct frame_unwind.
(i386_gdbarch_init): Hook the new unwinder.
2009-07-12 17:46:21 +00:00
gdbadmin
ffbb1eb245
*** empty log message ***
2009-07-12 00:00:03 +00:00
Hui Zhu
858031d911
This is the part of prev commit.
2009-07-11 14:41:38 +00:00
Hui Zhu
4c93b1d7e3
2009-07-11 Hui Zhu <teawater@gmail.com>
...
* gdb.base/help.exp (disassemble): Update expected help text.
2009-07-11 14:11:25 +00:00
Hui Zhu
9b117ef31f
2009-07-11 Hui Zhu <teawater@gmail.com>
...
* gdb.texinfo (disassemble): Add a new modifier /r
to "disassemble" command to make it print the raw instructions
in hex as well as in symbolic form.
2009-07-11 14:09:16 +00:00
Hui Zhu
e6158f167b
2009-07-11 Hui Zhu <teawater@gmail.com>
...
* cli/cli-cmds.c (disassemble_command): Add a new modifier /r
to "disassemble" command to print the raw instructions in hex as
well as in symbolic form.
(init_cli_cmds): Ditto.
(print_disassembly): Change "mixed" to "flags" to translate
the behavior of disassemble.
(disassemble_current_function): Ditto.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
* stack.c (gdb_disassembly_stub): Ditto.
* disasm.c (do_mixed_source_and_assembly): Ditto.
(do_mixed_source_and_assembly): Ditto.
(do_assembly_only): Ditto.
(gdb_disassembly): Ditto.
(dump_insns): print the raw instructions in hex as well as in
symbolic form if DISASSEMBLY_RAW_INSN and flags is true.
* disasm.h (DISASSEMBLY_SOURCE): Include source code with the
assembly if it and flags is true.
(DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with
the assembly if it and flags is true.
(gdb_disassembly): Update extern.
* NEWS: Document disassemble/r support.
2009-07-11 14:04:23 +00:00
gdbadmin
44e0e2ae2a
*** empty log message ***
2009-07-11 00:00:03 +00:00
Tom Tromey
f5a3328452
* gdbint.texinfo (Testsuite): Document parallel make check.
2009-07-10 19:38:00 +00:00
Tom Tromey
812f734247
gdb/doc
...
* gdbint.texinfo (Testsuite): Document test transcripts.
gdb/testsuite
* lib/gdb.exp: Handle TRANSCRIPT.
(remote_spawn, remote_close, send_gdb): New procs.
2009-07-10 18:48:41 +00:00
Tom Tromey
fa8f86ff3b
bfd
...
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
(elf-eh-frame.lo): Likewise.
(elf32-bfin.lo): Likewise.
(elf32-frv.lo): Likewise.
(elf32-xc16x.lo): Likewise.
* Makefile.in: Rebuild.
* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
* elf-eh-frame.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-xc16x.c: Likewise.
binutils
* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
* Makefile.in: Rebuild.
* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
gas
* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
elf/dwarf2.h.
(DEPTC_alpha_elf): Likewise.
(DEPTC_alpha_evax): Likewise.
(DEPTC_arm_elf): Likewise.
(DEPTC_hppa_elf): Likewise.
(DEPTC_i386_aout): Likewise.
(DEPTC_i386_coff): Likewise.
(DEPTC_i386_elf): Likewise.
(DEPTC_m68k_aout): Likewise.
(DEPTC_m68k_coff): Likewise.
(DEPTC_m68k_elf): Likewise.
(DEPTC_mips_coff): Likewise.
(DEPTC_mips_ecoff): Likewise.
(DEPTC_mips_elf): Likewise.
(DEPTC_ppc_coff): Likewise.
(DEPTC_ppc_elf): Likewise.
(DEPTC_s390_elf): Likewise.
(DEPTC_sh_coff): Likewise.
(DEPTC_sh_elf): Likewise.
(DEPTC_sh64_elf): Likewise.
(DEPTC_sparc_aout): Likewise.
(DEPTC_sparc_coff): Likewise.
(DEPTC_sparc_elf): Likewise.
(as.o): Likewise.
(dwarf2dbg.o): Likewise.
(dw2gencfi.o): Likewise.
(ehopt.o): Likewise.
(read.o): Likewise.
* Makefile.in: Rebuild.
* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
gdb
* dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2expr.c: Likewise.
* dwarf2loc.c: Likewise.
* dwarf2read.c: Likewise.
* sh-tdep.c: Likewise.
* xtensa-tdep.c: Likewise.
include
* dwarf2.h: New file, moved from elf/.
include/elf
* dwarf2.h: Move to `..'.
2009-07-10 15:27:04 +00:00
Jan Kratochvil
6e9ef2a82d
gdb/
...
Tidy up the code.
* mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv. Move
variables var, rootlist and cr to their local sub-block. Move the
make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end
and do_cleanups calls to the common base block. Remove the zero NV
check.
2009-07-10 14:18:14 +00:00
Phil Muldoon
fbb8f2990c
2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
...
* python/python-internal.h (apply_varobj_pretty_printer): Update
definition.
(python_string_to_target_python_string): Add definition.
* python/python-utils.c (unicode_to_encoded_python_string)
(unicode_to_target_python_string)
(python_string_to_target_python_string): New Functions.
* python/python-prettyprint.c (pretty_print_one_value): Likewise.
(print_string_repr): Refactor to logic to account for PyObject
returned strings.
(apply_varobj_pretty_printer): Likewise.
* python/python-value.c (valpy_string): Parse length keyword. Use
length keyword in LA_GET_STRING.
* varobj.c (value_get_print_value): Refactor logic to account for
PyObject returned strings.
* c-lang.c (c_get_string): If the length parameter is specified,
use that. Return value in characters. Update comments.
* language.h: Update c_get_string prototype comments.
2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Values From Inferior): Add length parameter
description.
2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/python-prettyprint.c: Add counted null string
structure.
* gdb.python/python-prettyprint.exp: Print null string. Test for
embedded nulls.
* gdb.python/python-prettyprint.py (pp_ns): New Function.
* gdb.python/python-value.exp (test_value_in_inferior): Add
variable length string fetch tests.
* gdb.python/python-value.c (main): Add strings for string fetch tests.
2009-07-10 10:35:17 +00:00
gdbadmin
686aae345e
*** empty log message ***
2009-07-10 00:00:02 +00:00
Doug Evans
b75f0b83bc
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
...
to read_memory_unsigned_integer.
2009-07-09 23:27:07 +00:00
Jan Kratochvil
c0ac0ec78d
gdb/
...
Report error on inaccessible memory.
* cli/cli-dump.c: Include gdbcore.h.
(dump_memory_to_file): Call read_memory instead of target_read_memory.
gdb/testsuite/
* gdb.base/dump.exp (inaccessible memory is reported): New test.
2009-07-09 20:30:59 +00:00
Hui Zhu
378d2b72b6
2009-07-09 Hui Zhu <teawater@gmail.com>
...
* solib.c (solib_bfd_open): Output a warning if solib's
architecture is not compatible with inferior's architecture.
2009-07-09 13:39:17 +00:00
Jan Kratochvil
3a8f7b070d
gdb/
...
* target.h (struct target_ops <to_thread_architecture>): Describe it.
(target_thread_architecture): Refer to to_thread_architecture.
2009-07-09 12:50:47 +00:00
Pierre Muller
a177aad3d7
* cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
2009-07-09 07:23:33 +00:00
gdbadmin
15e46ac194
*** empty log message ***
2009-07-09 00:00:05 +00:00
Ulrich Weigand
2d5f09f0fa
* tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
2009-07-08 12:03:01 +00:00
gdbadmin
ea8bd517f2
*** empty log message ***
2009-07-08 00:00:03 +00:00
Pierre Muller
63c252f8d0
* breakpoint.c (set_raw_breakpoint): Remove static modifier.
2009-07-07 22:21:09 +00:00
Tom Tromey
30b66ecc73
gdb
...
* c-lang.c (convert_octal): Only allow 3 octal digits.
(print_wchar): Prefer 3-digit octal form. Fall back to hex if
needed.
* c-exp.y (c_parse_escape): Only allow 3 octal digits.
gdb/testsuite
* gdb.base/call-rt-st.exp: Update for change to escape output.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/charset.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/pointers.exp: Likewise.
* gdb.base/printcmds.exp: Likewise.
* gdb.base/setvar.exp: Likewise.
* gdb.base/store.exp: Likewise.
* gdb.cp/ref-types.exp: Likewise.
* gdb.mi/mi-var-child.exp: Likewise.
* gdb.mi/mi-var-display.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.base/charset.exp: Test octal escape sequence length.
Update for change to escape output.
2009-07-07 21:33:50 +00:00
Paul Pluzhnikov
06878dd230
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* python/python-value.c (valpy_getitem): Remove incorrect assert.
2009-07-07 21:03:00 +00:00
Paul Pluzhnikov
570e2b1a04
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
2009-07-07 19:36:09 +00:00
Sami Wagiaalla
8c902bb1fe
2009-07-07 Sami Wagiaalla <swagiaal@redhat.com>
...
* cp-support.h (struct using_direct): Rename members inner and
outer to import_src, and import_dest respectively.
* cp-namespace.c (cp_add_using_directive): Update.
(cp_add_using): Update.
(cp_copy_usings): Update.
(cp_lookup_symbol_namespace): Update.
(cp_scan_for_anonymous_namespaces): Update.
* cp-support.c (make_symbol_overload_list_using): Update.
* cp-support.h (cp_add_using_directive, cp_add_using): Rename
arguments from inner and outer to src and dest respectively.
* cp-namespace.c (cp_add_using_directive): Ditto.
(cp_add_using): Ditto.
2009-07-07 17:25:11 +00:00
Jan Kratochvil
fd115a4b71
gdb/
...
* mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
* varobj.c (varobj_invalidate): Replace a while loop by for loop.
2009-07-07 09:26:13 +00:00
Jan Kratochvil
187c4a2b7b
gdb/testsuite/
...
* gdb.mi/mi2-var-cmd.exp (floating varobj invalidation): New test.
2009-07-07 09:25:38 +00:00
Vladimir Prus
60d329700d
Fix hang in floating varobjs.
...
* varob.c (varobj_invalidate): Advance to next
element when processing floating varobj.
2009-07-07 08:51:31 +00:00
Vladimir Prus
9a139cba57
* varobj.c: Remove unnecessary include.
2009-07-07 08:47:10 +00:00
Tristan Gingold
02b96ddcb6
2009-07-07 Tristan Gingold <gingold@adacore.com>
...
* config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
Remove excServer.c target. Remove _all target.
* darwin.defs: Removed.
2009-07-07 07:47:22 +00:00
gdbadmin
0f181fa925
*** empty log message ***
2009-07-07 00:00:32 +00:00
Daniel Jacobowitz
d80a43f961
* lib/java.exp (java_init): Ignore $GCJ if it is empty.
2009-07-06 19:14:01 +00:00
Aleksandar Ristovski
7f86f49920
* configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.
2009-07-06 18:52:14 +00:00
Jan Kratochvil
047427a8a8
gdb/testsuite/
...
* lib/gdbserver-support.exp (gdbserver_start): Loop spawning
gdbserver increasing $portnum if "Can't bind address" has been seen.
2009-07-06 18:51:10 +00:00
Aleksandar Ristovski
ac8c974e4f
Adding Neutrino gdbserver.
...
* configure: Regenerated.
* configure.ac: Add case for srv_qnx and set LIBS accordingly.
* configure.srv (i[34567]86-*-nto*): New target.
* nto-low.c, nto-low.h, nto-x86-low.c: New files.
* remote-utils.c [__QNX__]: Include sys/iomgr.h
(nto_comctrl) [__QNX__]: New function.
(enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
2009-07-06 18:31:20 +00:00
Jan Kratochvil
e235789238
gdb/
...
* source.c (find_and_open_source): Remove the `objfile' parameter.
Update the function comment.
(open_source_file, symtab_to_fullname, psymtab_to_fullname): Update the
find_and_open_source callers.
2009-07-06 18:23:47 +00:00
gdbadmin
34daeec4e0
*** empty log message ***
2009-07-06 00:01:05 +00:00
Pedro Alves
4424e0c3c0
Ooops. Fix date.
2009-07-05 22:58:53 +00:00
Pedro Alves
8b5a0f4fc0
* gdb.base/ending-run.exp: Add "step out of main" pattern for
...
mingw32ce.
2009-07-05 22:38:19 +00:00
Pedro Alves
7d93ba58ab
* gdb.base/long_long.exp: arm-mingw32ce defaults to natural-endian
...
VFP format.
2009-07-05 22:21:40 +00:00