gdbadmin
ff7f9a578c
*** empty log message ***
2010-05-30 00:00:34 +00:00
gdbadmin
09e879b72c
*** empty log message ***
2010-05-29 00:00:33 +00:00
Pedro Alves
94f3113617
* limits.c, limits.exp: Delete files.
...
* Makefile.in (clean mostlyclean): Adjust.
* tracecmd.exp: Adjust.
2010-05-28 23:47:40 +00:00
Jan Kratochvil
f6528abd64
gdb/
...
* Makefile.in (RDYNAMIC): New.
(SFILES): Add proc-service.list.
* config/alpha/alpha-linux.mh (NAT_CDEPS): New.
(LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
* config/arm/linux.mh: Likewise.
* config/i386/linux.mh: Likewise.
* config/i386/linux64.mh: Likewise.
* config/ia64/linux.mh: Likewise.
* config/m32r/linux.mh: Likewise.
* config/m68k/linux.mh: Likewise.
* config/mips/linux.mh: Likewise.
* config/pa/linux.mh: Likewise.
* config/powerpc/linux.mh: Likewise.
* config/powerpc/ppc64-linux.mh: Likewise.
* config/s390/s390.mh: Likewise.
* config/sparc/linux.mh: Likewise.
* config/sparc/linux64.mh: Likewise.
* config/xtensa/linux.mh: Likewise.
* configure.ac: New RDYNAMIC on native host and GCC.
(solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
* configure: Regenerate.
* proc-service.list: New.
gdb/gdbserver/
* Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
(CDEPS): New.
* configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
-Wl,--dynamic-list.
* configure: Regenerate.
* proc-service.list: New.
2010-05-28 18:50:35 +00:00
Jan Kratochvil
096554ab8e
gdb/testsuite/
...
* gdb.base/tui-layout.exp: New.
2010-05-28 18:35:54 +00:00
Michael Snyder
bcd2dc5021
2010-05-28 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.reverse/break-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/break-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/consecutive-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/consecutive-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/finish-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/finish-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-sse-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i387-env-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i387-stack-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/machinestate-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/machinestate.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/sigall-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/sigall-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/solib-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/solib-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/step-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/step-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/until-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/until-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/watch-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/watch-reverse.exp:
Replace uses of send_gdb / gdb_expect.
2010-05-28 18:26:41 +00:00
Jan Kratochvil
ca2a87a056
gdb/
...
* linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
CONTENT.
gdb/gdbserver/
* linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
New comment.
2010-05-28 18:23:15 +00:00
Jan Kratochvil
1e22549240
gdb/
...
* linux-nat.c (linux_nat_wait_1): Do not call
linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
TARGET_WAITKIND_SIGNALLED.
2010-05-28 18:00:46 +00:00
Jan Kratochvil
3def43e060
gdb/testsuite/
...
* gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy
excessive newline.
2010-05-28 17:57:44 +00:00
Joel Brobecker
e802dbe04f
Cache the TSD type in inferior-data (performance).
...
This is something I noticed while looking at ada_find_any_type.
Use of that function is expensive, since it causes a global lookup.
Reviewing some of the uses, I found that we were calling it to get
a specific type everytime we print a tagged type (the equivalent of
classes in C++); and not only that, we did it 4 times [1]!
Since the type in question (ada__tags__type_specific_data) is guarantied
to remain the same througout the entire life of the inferior, the solution
was to cache that type in inferior private data. This patch creates
an ada-land private-data area, and uses it to store that type after
the first time we look it up.
[1]: The problem is mitigated in AdaCore's tree because we use an Ada
symbol cache which we are thinking of contributing to the FSF tree.
But that's still pretty bad, regardless.
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ada_inferior_data): New struct.
(ada_inferior_data): New static global.
(ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
(ada_get_tsd_type): New functions.
(ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
to look the tsd type up.
(_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
event. Set ada_inferior_data.
2010-05-28 01:32:08 +00:00
gdbadmin
e15a9a5e1c
*** empty log message ***
2010-05-28 00:00:35 +00:00
Michael Snyder
02746bbc9f
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/return.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
2010-05-27 23:44:51 +00:00
Michael Snyder
2245442480
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.base/break.exp: Replace uses of send_gdb / gdb_expect.
2010-05-27 23:39:56 +00:00
Pedro Alves
176a69613a
* remote.c (unpack_varlen_hex): Remove forward declaration.
...
(remote_console_output): Make static, and add forward declaration.
* remote.h: Drop FIXME comment.
(unpack_varlen_hex): Declare.
(remote_console_output, remote_cisco_objfile_relocate)
(deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
Delete declarations.
* tracepoint.c: Include "remote.h".
(unpack_varlen_hex): Delete declaration.
2010-05-27 22:06:00 +00:00
Tom Tromey
88bfdde411
* dwarf2loc.c (struct piece_closure) <refc>: New field.
...
(allocate_piece_closure): Initialize refc.
(copy_pieced_value_closure): Use refc.
(free_pieced_value_closure): Likewise.
2010-05-27 19:14:35 +00:00
Tom Tromey
8c6363cf5c
* arm-tdep.c (push_stack_item): 'contents' now const.
...
(arm_push_dummy_call): Make 'val' const. Use value_contents, not
value_contents_writeable. Introduce new temporary.
2010-05-27 19:06:12 +00:00
Tom Tromey
7ecb917ec8
* findcmd.c (parse_find_args): Use value_contents, not
...
value_contents_raw.
2010-05-27 18:53:47 +00:00
Tom Tromey
f42a0a3369
* alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
...
const. Use value_contents, not value_contents_writeable.
2010-05-27 18:45:45 +00:00
Joel Brobecker
12b795ad7b
Replace call to value_contents_raw by call to value_contents.
...
This is something that Tom spotted. It shouldn't make much of a difference
in practice with the current code, but Tom is planning on making some
changes (bitwise optimized-out tracking) in value_contents...
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ensure_lval): Replace call to value_contents_raw
by call to value_contents.
2010-05-27 17:37:45 +00:00
Ozkan Sezer
5a2e11c715
2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
...
* gdb/MAINTAINERS: Add myself for write after approval privileges.
2010-05-27 16:03:24 +00:00
Doug Evans
0c4a40633c
Allow python to find its files if moved from original location.
...
* acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
(GDB_AC_WITH_DIR): Call it.
* configure.ac: Define WITH_PYTHON_PATH if we can find the
python installation directory.
* config.in: Regenerate.
* configure: Regenerate.
* defs.h (python_libdir): Declare.
* main.c (python_libdir): Define.
(captured_main): Initialize python_libdir.
* python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
call Py_SetProgramName to make sure python can find its libraries
and modules.
2010-05-27 03:40:45 +00:00
Doug Evans
ec685c5eca
* configure.ac: Try to use python's distutils to fetch compilation
...
parameters.
* configure: Regenerate.
* python/python-config.py: New file.
2010-05-27 01:36:22 +00:00
gdbadmin
89694387a0
*** empty log message ***
2010-05-27 00:00:03 +00:00
Ozkan Sezer
363a6e9f2c
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
...
gdb/
* ser-tcp.c (net_open): Check error return from socket() call by its
equality to -1 not by it being negative.
(net_close): Likewise.
gdb/gdbserver/
* gdbreplay.c (remote_open): Check error return from socket() call by
its equality to -1 not by it being negative.
* remote-utils.c (remote_open): Likewise.
sim/arm/
* communicate.c (MYread_char): Check error return from accept() call
by its equality to -1 not by it being negative.
(MYread_charwait): Likewise.
* main.c (main): Likewise for both socket() and accept() calls.
sim/common/
* dv-sockser.c (dv_sockser_init): Check error return from socket()
call by its equality to -1 not by it being negative.
(connected_p): Likewise for accept() call.
sim/cris/
* dv-rv.c (hw_rv_init_socket): Check error return from socket() call
by its equality to -1 not by it being negative.
(hw_rv_write): Likewise.
(hw_rv_handle_incoming): Likewise.
(hw_rv_poll_once): Likewise.
* rvdummy.c (setupsocket): Likewise.
(main): Likewise for accept() call as returned from setupsocket().
sim/m32c/
* main.c (setup_tcp_console): Check error return from socket() call
by its equality to -1 not by it being negative.
2010-05-26 22:40:24 +00:00
Michael Snyder
23de6b3410
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.java/jmisc.exp: Replace send_gdb with gdb_test.
* gdb.java/jprint.exp: Replace send_gdb with gdb_test.
2010-05-26 18:34:12 +00:00
Michael Snyder
a127f7b491
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.gdb/complaints.exp: Replace send_gdb with gdb_test.
* gdb.gdb/selftest.exp: Replace send_gdb with gdb_test.
* gdb.gdb/xfullpath.exp: Replace send_gdb with gdb_test.
2010-05-26 18:31:25 +00:00
Pedro Alves
dde08ee109
gdb/
...
2010-05-26 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention the `qRelocInsn' feature.
* gdbarch.sh (relocate_instruction): New.
* amd64-tdep.c (rip_relative_offset): New.
(append_insns): New.
(amd64_relocate_instruction): New.
(amd64_init_abi): Install it.
* i386-tdep.c (append_insns): New.
(i386_relocate_instruction): New.
(i386_gdbarch_init): Install it.
* remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
* gdbarch.h, gdbarch.c: Regenerate.
gdb/doc/
2010-05-26 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (General Query Packets) <qSupported>: Describe the
`qRelocInsn' feature.
(Relocate instruction reply packet): New subsection
of `Tracepoint Packets'.
(Tracepoint Packets): Mention that packets QTDP and QTStart
support the qRelocInsn request, and add cross reference to new
subsection.
2010-05-26 18:19:28 +00:00
Michael Snyder
ec9f121215
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
...
* gdb.reverse/consecutive-reverse.exp: Replace send_gdb with gdb_test.
* gdb.reverse/consecutive-precsave.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-basics.exp:
* gdb.mi/mi-nonstop-exit.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nonstop.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-ns-stale-regcache.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsintrall.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsmoribund.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsthrexec.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-return.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-var-display.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-basics.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-console.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-return.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-var-display.exp: Replace send_gdb with gdb_test.
2010-05-26 18:12:13 +00:00
Michael Snyder
6acb16a293
2010-05-25 Michael Snyder <msnyder@vmware.com>
...
* gdb.ada/formatted_ref.exp: Replace send_gdb with gdb_test.
* gdb.asm/asm-source.exp: Replace send_gdb with gdb_test.
* gdb.base/a2-run.exp: Replace send_gdb with gdb_test.
* gdb.base/all-bin.exp: Replace send_gdb with gdb_test.
* gdb.base/annota1.exp: Replace send_gdb with gdb_test.
* gdb.base/annota3.exp: Replace send_gdb with gdb_test.
* gdb.base/assign.exp: Replace send_gdb with gdb_test.
* gdb.base/attach.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields2.exp: Replace send_gdb with gdb_test.
* gdb.base/bitops.exp: Replace send_gdb with gdb_test.
2010-05-26 18:05:25 +00:00
Tom Tromey
947bb88ff5
* dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
...
(struct dwarf2_loclist_baton) <data>: Likewise.
* dwarf2loc.c (find_location_expression): Constify return type.
(dwarf2_evaluate_loc_desc): Make 'data' argument const.
(dwarf2_loc_desc_needs_frame): Likewise.
(loclist_read_variable): Constify.
(loclist_describe_location): Likewise.
(loclist_tracepoint_var_ref): Likewise.
2010-05-26 15:21:13 +00:00
gdbadmin
e64f12acb5
*** empty log message ***
2010-05-26 00:00:33 +00:00
Tom Tromey
6e5f2c591e
* gdb.base/macscp.exp: Add missing space after setup_kfail.
2010-05-25 22:23:07 +00:00
Tom Tromey
bbc8b9587b
* gdb.arch/i386-prologue.exp (skip_breakpoint): Fix setup_kfail
...
argument order.
* gdb.base/macscp.exp: Fix setup_kfail argument order.
* gdb.base/long_long.exp (gdb_test_xxx): Fix setup_kfail argument
order.
* gdb.base/sigbpt.exp (stepi_out): Fix setup_kfail argument
order.
* gdb.base/call-sc.exp (setup_kfails): Remove.
(setup_compiler_kfails): Remove.
* gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail
argument order.
* gdb.base/siginfo.exp: Fix setup_kfail argument order.
* gdb.base/sigstep.exp (advance): Fix setup_kfail argument order.
(advancei): Fix setup_kfail argument order.
* gdb.base/radix.exp: Fix setup_kfail argument order.
* gdb.base/solib-weak.exp (do_test): Fix setup_kfail argument
order.
* gdb.base/structs.exp (setup_kfails): Remove.
(setup_compiler_kfails): Fix setup_kfail argument order.
* gdb.base/sigaltstack.exp (finish_test): Fix setup_kfail argument
order.
* gdb.java/jmain.exp: Fix setup_kfail argument order.
* gdb.pascal/types.exp (test_string_literal_types_accepted): Fix
setup_kfail argument order.
* gdb.cp/overload.exp: Fix setup_kfail argument order.
2010-05-25 21:02:00 +00:00
Tom Tromey
83d1babf22
* gdb.dwarf2/pieces.exp (pieces_test_f3): Mention PR 11636.
2010-05-25 19:54:47 +00:00
Michael Snyder
65731a6b77
2010-05-25 Michael Snyder <msnyder@vmware.com>
...
* gdb.base/maint.exp: Replace send_gdb with gdb_test.
* gdb.base/miscexprs.exp: Replace send_gdb with gdb_test.
* gdb.base/nodebug.exp: Replace send_gdb with gdb_test.
* gdb.base/pointers.exp: Replace send_gdb with gdb_test.
* gdb.base/ptype.exp: Replace send_gdb with gdb_test.
2010-05-25 19:34:05 +00:00
Tom Tromey
0d45f56e47
* dwarf2loc.c (dwarf_expr_frame_base): Constify.
...
(dwarf_expr_frame_base_1): Likewise.
(read_pieced_value): Update.
(needs_frame_frame_base): Constify.
(dwarf2_tracepoint_var_loc): Likewise.
(dwarf2_tracepoint_var_access): Likewise.
(locexpr_describe_location_piece): Likewise.
(locexpr_describe_location_1): Likewise.
* dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
Constify.
(data): Now const.
(struct dwarf_expr_piece) <v.literal.data>: Likewise.
(dwarf_expr_eval, read_uleb128, read_sleb128)
(dwarf2_read_address): Update.
* dwarf2expr.c (dwarf_expr_eval): Constify.
(read_uleb128): Likewise.
(read_sleb128): Likewise.
(dwarf2_read_address): Likewise.
(require_composition): Likewise.
(execute_stack_op): Likewise.
* dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
"const gdb_byte *".
* dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
Now const.
(no_get_frame_base): Constify.
(execute_stack_op): Likewise.
(execute_cfa_program): Likewise.
(read_encoded_value): Likewise.
2010-05-25 16:41:46 +00:00
Doug Evans
e34838f0f7
* ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2010-05-25 16:00:09 +00:00
Doug Evans
01f69b386b
* event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
...
* event-loop.c: ... here.
* tui/tui-io.c (tui_readline_output): Rename parameter `code' to
`error' for clarity.
(tui_getc): Pass correct value for `error' parameter to
tui_readline_output.
2010-05-25 15:48:44 +00:00
Doug Evans
07ca107c2d
Add python gdb.GdbError and gdb.string_to_argv.
...
* NEWS: Document them.
* python/py-cmd.c (cmdpy_function): Don't print a traceback if
the exception is gdb.GdbError. Print a second traceback if there's
an error computing the error message.
(gdbpy_string_to_argv): New function.
* python/py-utils.c (gdbpy_obj_to_string): New function.
(gdbpy_exception_to_string): New function.
* python/python-internal.h (gdbpy_string_to_argv): Declare.
(gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
(gdbpy_gdberror_exc): Declare.
* python/python.c (gdbpy_gdberror_exc): New global.
(_initialize_python): Initialize gdbpy_gdberror_exc and create
gdb.GdbError.
(GdbMethods): Add string_to_argv.
doc/
* gdb.texinfo (Exception Handling): Document gdb.GdbError.
(Commands In Python): Document gdb.string_to_argv.
testsuite/
* gdb.python/py-cmd.exp: Add tests for gdb.GdbError and
gdb.string_to_argv.
2010-05-25 15:27:17 +00:00
Pierre Muller
5572ce1f3d
* windows-nat.c (display_selector): Call GetLastError to give better
...
failure explanation.
2010-05-25 07:38:18 +00:00
gdbadmin
2f2c2811aa
*** empty log message ***
2010-05-25 00:00:03 +00:00
Pedro Alves
acd5838ab1
* config.in: Regenerate.
2010-05-24 22:54:21 +00:00
Michael Snyder
a76e022adf
2010-05-24 Michael Snyder <msnyder@vmware.com>
...
* gdb.base/default.exp: Replace send_gdb with gdb_test.
* gdb.base/define.exp: Replace send_gdb with gdb_test.
* gdb.base/display.exp: Replace send_gdb with gdb_test.
* gdb.base/dump.exp: Replace send_gdb with gdb_test.
* gdb.base/ending-run.exp: Replace send_gdb with gdb_test.
* gdb.base/eval-skip.exp: Replace send_gdb with gdb_test.
* gdb.base/exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/fileio.exp: Replace send_gdb with gdb_test.
* gdb.base/finish.exp: Replace send_gdb with gdb_test.
* gdb.base/foll-fork.exp: Replace send_gdb with gdb_test.
* gdb.base/funcargs.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore-buffer-overflow.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore.exp: Replace send_gdb with gdb_test.
* gdb.base/gdb1090.exp: Replace send_gdb with gdb_test.
* gdb.base/gdbvars.exp: Replace send_gdb with gdb_test.
* gdb.base/help.exp: Replace send_gdb with gdb_test.
* gdb.base/info-proc.exp: Replace send_gdb with gdb_test.
* gdb.base/jump.exp: Replace send_gdb with gdb_test.
* gdb.base/long_long.exp: Replace send_gdb with gdb_test.
2010-05-24 22:06:59 +00:00
Michael Snyder
ad3986f07b
2010-05-24 Michael Snyder <msnyder@vmware.com>
...
* gdb.base/call-ar-st.exp: Replace send_gdb with gdb_test.
* gdb.base/callfuncs.exp: Replace send_gdb with gdb_test.
* gdb.base/call-rt-st.exp: Replace send_gdb with gdb_test.
* gdb.base/call-signal-resume.exp: Replace send_gdb with gdb_test.
* gdb.base/call-strs.exp: Replace send_gdb with gdb_test.
* gdb.base/catch-syscall.exp: Replace send_gdb with gdb_test.
* gdb.base/charset.exp: Replace send_gdb with gdb_test.
* gdb.base/checkpoint.exp: Replace send_gdb with gdb_test.
* gdb.base/commands.exp: Replace send_gdb with gdb_test.
* gdb.base/condbreak.exp: Replace send_gdb with gdb_test.
* gdb.base/cond-exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/consecutive.exp: Replace send_gdb with gdb_test.
* gdb.base/constvars.exp: Replace send_gdb with gdb_test.
* gdb.base/corefile.exp: Replace send_gdb with gdb_test.
2010-05-24 22:03:59 +00:00
gdbadmin
4ec602f108
*** empty log message ***
2010-05-24 00:00:04 +00:00
Jan Kratochvil
b26a4dcbe3
gdb/
...
Code cleanup.
* target.c (push_target): Return only void. Remove the return value
comment.
* target.h (push_target): Return only void.
2010-05-23 14:23:31 +00:00
Pedro Alves
d23b6cb1cc
* config.h: Regenerate.
2010-05-23 09:22:56 +00:00
Pedro Alves
f434ba0309
gdb/
...
2010-05-23 Pedro Alves <pedro@codesourcery.com>
Update gnulib from latest git.
(250b80067c1e1d8faa0c42fb572f721975b929c5)
* gnulib/memcmp.c: Removed.
* gnulib/memchr.valgrind: New.
* gnulib/stddef.in.h: New.
* gnulib/Makefile.am: Updated.
* gnulib/memchr.c: Updated.
* gnulib/memmem.c: Updated.
* gnulib/stdint.in.h: Updated.
* gnulib/str-two-way.h: Updated.
* gnulib/string.in.h: Updated.
* gnulib/wchar.in.h: Updated.
* gnulib/extra/link-warning.h: Removed.
* gnulib/extra/c++defs.h: New.
* gnulib/extra/warn-on-use.h: New.
* gnulib/extra/arg-nonnull.h: Updated.
* gnulib/m4/extensions.m4: Updated.
* gnulib/m4/gnulib-cache.m4: Updated.
* gnulib/m4/gnulib-common.m4: Updated.
* gnulib/m4/gnulib-comp.m4: Updated.
* gnulib/m4/gnulib-tool.m4: Updated.
* gnulib/m4/include_next.m4: Updated.
* gnulib/m4/longlong.m4: Updated.
* gnulib/m4/memchr.m4: Updated.
* gnulib/m4/memmem.m4: Updated.
* gnulib/m4/stdint.m4: Updated.
* gnulib/m4/string_h.m4: Updated.
* gnulib/m4/memcmp.m4: Removed.
* gnulib/m4/onceonly_2_57.m4: Removed.
* gnulib/m4/00gnulib.m4: New.
* gnulib/m4/mmap-anon.m4: New.
* gnulib/m4/multiarch.m4: New.
* gnulib/m4/onceonly.m4: New.
* gnulib/m4/stddef_h.m4: New.
* gnulib/m4/warn-on-use.m4: New.
* gnulib/m4/wchar.m4: Removed.
* gnulib/m4/wchar_h.m4: New.
* gnulib/m4/wchar_t.m4: New.
* gnulib/m4/wint_t.m4: New.
* aclocal.m4: Regenerate.
* config.in: Likewise.
* configure: Likewise.
* gnulib/Makefile.in: Likewise.
gdb/gdbserver/
2010-05-23 Pedro Alves <pedro@codesourcery.com>
* config.h, configure: Regenerate.
2010-05-23 00:57:01 +00:00
gdbadmin
528b55c0a0
*** empty log message ***
2010-05-23 00:00:34 +00:00
gdbadmin
c46a1bc8cb
*** empty log message ***
2010-05-22 00:00:07 +00:00
Tom Tromey
d3b1e87423
gdb
...
* dwarf2loc.c (extract_bits_primitive): New function.
(extract_bits): Likewise.
(insert_bits): Likewise.
(copy_bitwise): Likewise.
(read_pieced_value): Do all operations in bits.
(write_pieced_value): Likewise.
* dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
* dwarf2expr.c (add_piece): New arguments bit_piece, offset.
Always use xrealloc to resize piece array.
(execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
<DW_OP_piece>: Update.
<DW_OP_bit_piece>: New case.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f3): New proc.
Call it.
* gdb.dwarf2/pieces.S: Update.
* gdb.dwarf2/pieces.c (struct B): Remove initial field.
2010-05-21 21:13:13 +00:00
Tom Tromey
cb82636715
gdb
...
* dwarf2loc.c (read_pieced_value): Exit loop when result is full.
<DWARF_VALUE_OPTIMIZED_OUT>: New case.
* dwarf2expr.h (enum dwarf_value_location)
<DWARF_VALUE_OPTIMIZED_OUT>: New constant.
* dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
(add_piece): Handle empty piece.
(execute_stack_op) <DW_OP_piece>: Handle
DWARF_VALUE_OPTIMIZED_OUT.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f6): New proc.
Call it.
* gdb.dwarf2/pieces.c (struct C): New.
(f6): New function.
* gdb.dwarf2/pieces.S: Replace.
2010-05-21 21:01:46 +00:00
Tom Tromey
74de6778b1
gdb
...
* eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
evaluate_subexp, not evaluate_subexp_with_coercion.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f2): New proc.
Call it.
2010-05-21 21:00:27 +00:00
Pierre Muller
f346a30d48
* dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
...
attribute.
2010-05-21 20:45:19 +00:00
Tom Tromey
afd74c5ff7
gdb
...
* dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
offset.
(write_pieced_value): Likewise.
gdb/testsuite
* gdb.dwarf2.pieces.exp: New file.
* gdb.dwarf2.pieces.S: New file.
* gdb.dwarf2.pieces.c: New file.
2010-05-21 20:39:50 +00:00
Pierre Muller
90e7c2c53d
* dwarf2read.c (process_die): Also allow DW_TAG_const_type
...
and DW_TAG_volatile_type.
(new_symbol): Likewise.
2010-05-21 20:34:47 +00:00
gdbadmin
dd2d38b55f
*** empty log message ***
2010-05-21 00:00:33 +00:00
Joel Brobecker
a7b75dfda1
lib/gdb.exp: New gdb_test_no_output function.
...
This new testsuite routine allows us to test commands that are not
expected to generate any output.
2010-05-20 Pedro Alves <pedro@codesourcery.com>
Joel Brobecker <brobecker@adacore.com>
* lib/gdb.exp (gdb_test_no_output): New function.
* lib/gdb.ada/arrayidx.exp: Use gdb_test_no_output instead of gdb_test
when testing commands that should produce no output.
Tested on x86_64-linux.
2010-05-20 19:18:58 +00:00
Pierre Muller
8148cf8d75
* p-valprint.c (pascal_val_print): Call get_array_bounds
...
to obtain the number of elements in an array.
2010-05-20 07:41:40 +00:00
gdbadmin
c1527ce688
*** empty log message ***
2010-05-20 00:00:33 +00:00
Doug Evans
0bf0f8c4cd
* python.c (gdbpy_print_stack): Ensure output ends with a newline.
2010-05-19 23:32:24 +00:00
Doug Evans
3a1d4620d6
* python.c (source_python_script): Add comment.
...
(source_python_script_for_objfile): Remove unnecessary call to
gdbpy_print_stack.
2010-05-19 21:57:24 +00:00
Michael Snyder
b72374d8f5
2010-05-19 Michael Snyder <msnyder@vmware.com>
...
* gdb.base/whatis.exp: Replace send_gdb with gdb_test.
2010-05-19 20:24:44 +00:00
Maxim Kuvyrkov
28d3cf859d
* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
...
doesn't provide PTRACE_GET_THREAD_AREA.
2010-05-19 14:13:37 +00:00
Maxim Kuvyrkov
fea36a59a1
* linux-m68k-low.c: Include <asm/ptrace.h>
...
(ps_get_thread_area): Implement.
2010-05-19 14:07:08 +00:00
gdbadmin
7982ccdc5c
*** empty log message ***
2010-05-19 00:00:34 +00:00
Jan Kratochvil
dc21167c9b
gdb/
...
Code cleanup.
* parse.c (exp_iterate): Use operator_length wrapper function.
2010-05-18 23:05:28 +00:00
Michael Snyder
5b4ee69b43
2010-05-18 Michael Snyder <msnyder@vmware.com>
...
* ada-lang.c: White space.
* ada-typeprint.c: White space.
* ada-valprint.c: White space.
* addrmap.c: White space.
* auxv.c: White space.
* ax-gdb.c: White space.
2010-05-18 19:23:37 +00:00
Hui Zhu
e17c9e56cb
2010-05-18 Hui Zhu <teawater@gmail.com>
...
* linux-fork.c (inferior_call_waitpid_cleanup): Add check
for oldfp.
(inferior_call_waitpid): Move make_cleanup out of check.
Check the return of waitpid.
(delete_checkpoint_command): Add pptid to save fi->parent_ptid.
2010-05-18 02:47:45 +00:00
gdbadmin
6b83653042
*** empty log message ***
2010-05-18 00:00:06 +00:00
Michael Snyder
1c5313c5c8
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* tui/tui.c: White space.
* tui/tui-data.c: White space.
* tui/tui-disasm.c: White space.
* tui/tui-file.c: White space.
* tui/tui-interp.c: White space.
* tui/tui-main.c: White space.
* tui/tui-out.c: White space.
* tui/tui-regs.c: White space.
* tui/tui-source.c: White space.
* tui/tui-stack.c: White space.
* tui/tui-win.c: White space.
* tui/tui-winsource.c: White space.
2010-05-17 22:21:43 +00:00
Michael Snyder
f4a14ae60d
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* procfs.c: White space.
2010-05-17 21:47:01 +00:00
Joel Brobecker
c81c812a7a
make parameter being watched is a non-constant.
...
The gdb.ada/watch_arg testcase is testing a situation where we are
leaving the scope where a parameter being watched is defined. The
testcase is a little non-sensical that we're watching a parameter
declared as an "access integer", which in non-Ada terms means
a constant pointer. Doesn't make much sense to watch a constant...
So this patch changes the code a little to use an "in out Integer",
which makes the parameter a non-constant integer, rather than a
constant access Integer. I verified that I could still reproduce
the problem with the original debugger and the modified testcase.
This was motivated by a patch that Sergio is about to submit which
will forbid the user from watching a constant (discussed on IRC)
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/watch_arg/watch.adb: Rewrite testcase to avoid the
parameter that we want to watch being a constant.
Tested on both sparc-solaris (where the ancient debugger could still
run ;-), and on x86_64-linux.
2010-05-17 21:32:57 +00:00
Michael Snyder
d59b6f6c38
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* python/py-auto-load.c: White space.
* python/py-block.c: White space.
* python/py-breakpoint.c: White space.
* python/py-cmd.c: White space.
* python/py-function.c: White space.
* python/py-lazy-string.c: White space.
* python/py-objfile.c: White space.
* python/py-param.c: White space.
* python/py-prettyprint.c: White space.
* python/py-progspace.c: White space.
* python/py-symtab.c: White space.
* python/python.c: White space.
* python/py-type.c: White space.
* python/py-utils.c: White space.
* python/py-value.c: White space.
2010-05-17 21:23:25 +00:00
Michael Snyder
102040f0d0
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* mi/mi-cmd-break.c: White space.
* mi/mi-cmd-env.c: White space.
* mi/mi-cmds.c: White space.
* mi/mi-cmd-stack.c: White space.
* mi/mi-cmd-var.c: White space.
* mi/mi-console.c: White space.
* mi/mi-getopt.c: White space.
* mi/mi-interp.c: White space.
* mi/mi-main.c: White space.
* mi/mi-out.c: White space.
* mi/mi-parse.c: White space.
2010-05-17 20:49:39 +00:00
Michael Snyder
cdb27c12f3
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* cli/cli-cmds.c: White space.
* cli/cli-decode.c: White space.
* cli/cli-dump.c: White space.
* cli/cli-interp.c: White space.
* cli/cli-logging.c: White space.
* cli/cli-script.c: White space.
* cli/cli-setshow.c: White space.
2010-05-17 19:28:12 +00:00
Michael Snyder
a109c7c104
2010-05-17 Michael Snyder <msnyder@vmware.com>
...
* valarith.c: White space.
* valops.c: White space.
* valprint.c: White space.
* value.c: White space.
* varobj.c: White space.
* xcoffread.c: White space.
* xml-support.c: White space.
* xml-tdesc.c: White space.
2010-05-17 18:48:52 +00:00
Joel Brobecker
0cce5bd9dd
Use breakpoint location to parse condition over current language.
...
gdb/ChangeLog:
* parse.c (parse_exp_in_context): When block is not NULL, use
its associated language to parse the expression instead of
the current_language.
gdb/testsuite/ChangeLog:
* gdb.ada/cond_lang: New testcase.
2010-05-17 17:23:33 +00:00
Joel Brobecker
5f19d646be
Remove commented-out code in jv-lang.c
...
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* jv-lang.c (java_lookup_class): Remove commented out code.
(type_from_class): Likewise.
(java_op_print_tab): Remove commented-out elements.
2010-05-17 17:18:39 +00:00
Joel Brobecker
47050449b9
testsuite: Prevent writes to prms_id and bug_id.
...
gdb/testsuite/ChangeLog:
* lib/gdb.exp (banned_variables): New variable/constant.
(gdb_init): Add write trace on variables listed in banned_variables.
(gdb_finish): Remove write traces on variables listed in
banned_variables.
2010-05-17 17:11:28 +00:00
Joel Brobecker
77c015860d
Some uses of bug_id and prms_id just reappeared - remove them.
...
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* gdb.base/gdb11530.exp: Delete setting of prms_id and bug_id.
* gdb.cp/koenig.exp: Likewise.
Tested on x86_64-linux.
2010-05-17 17:06:01 +00:00
Joel Brobecker
28c85d6c4b
Avoid global lookup when decoding XA type.
...
This patch enhances GDB to take advantage of a recent change in the GNAT
encoding regarding XA types. A detailed description of the logic has
been added at the start of ada_fixup_array_indexes_type to give the
context behind this enhancement.
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (to_fixed_range_type): The the raw index type as
argument instead of the raw type name. Remove orig_type parameter.
Update calls throughout.
(ada_fixup_array_indexes_type): New function.
(ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
* ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
* ada-typeprint.c (print_range_type): Renames print_range_type_named.
Remove name parameter.
(print_array_type): Add call to ada_fixup_array_indexes_type.
Update calls to print_range_type.
(ada_print_type): Update calls to print_range_type.
2010-05-17 16:55:31 +00:00
Andreas Schwab
3872d37d18
PR gdb/11092
...
* c-lang.c (c_printstr): Compute real length of NUL terminated
string at first.
2010-05-17 16:53:21 +00:00
Pierre Muller
d09039ddeb
* dwarf2read.c (read_set_type): Set type length if
...
DW_AT_byte_size attribute is present.
2010-05-17 15:55:01 +00:00
Pierre Muller
7a081a30fd
* p-valprint.c (pascal_val_print): Handle set type if range limits
...
are undefined but size is known.
2010-05-17 15:29:02 +00:00
Pedro Alves
77382aeed2
* procfs.c: Reformat.
2010-05-17 10:42:27 +00:00
Pedro Alves
c2fb7f9853
Revert previous change that inadvertently added reset_schedlock, and
...
revert changes done on top on that.
2010-05-17 10:40:06 +00:00
Joel Brobecker
070abf125e
Add reset_schedlock declaration in target.h.
...
This patches improves a couple of previous patches:
- one that introduces reset_schedlock, but failed to add a declarationl;
- one that was checked in to avoid a compilation failure due to that
missing declaration.
It also improves the declaration itself to better conform to our coding
practices. Same for the comments.
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* target.h (reset_schedlock): Add declaration.
* infrun.c (reset_schedlock): Add missing void in function profile.
* target.c (target_mourn_inferior): Delete local declaration of
reset_schedlock. Style-fix in comment.
2010-05-17 05:31:00 +00:00
Hui Zhu
6d53bf82fc
2010-05-17 Hui Zhu <teawater@gmail.com>
...
* target.c (target_mourn_inferior): Extern reset_schedlock.
2010-05-17 03:20:57 +00:00
Michael Snyder
5d5021647d
2010-05-16 Michael Snyder <msnyder@vmware.com>
...
* target.c: White space.
* target-descriptions.c: White space.
* target-memory.c: White space.
* thread.c: White space.
* top.c: White space.
* tracepoint.c: White space.
* trad-frame.c: White space.
* tramp-frame.c: White space.
* ui-file.c: White space.
* ui-out.c: White space.
* user-regs.c: White space.
* utils.c: White space.
2010-05-17 01:15:20 +00:00
gdbadmin
3a6f1766e1
*** empty log message ***
2010-05-17 00:00:33 +00:00
Michael Snyder
433759f709
2010-05-16 Michael Snyder <msnyder@vmware.com>
...
* scm-exp.c: White space.
* scm-lang.c: White space.
* scm-valprint.c: White space.
* sentinel-frame.c: White space.
* ser-base.c: White space.
* ser-go32.c: White space.
* serial.c: White space.
* ser-mingw.c: White space.
* ser-pipe.c: White space.
* ser-tcp.c: White space.
* ser-unix.c: White space.
* solib.c: White space.
* solib-darwin.c: White space.
* solib-frv.c: White space.
* solib-irix.c: White space.
* solib-osf.c: White space.
* solib-pa64.c: White space.
* solib-som.c: White space.
* solib-spu.c: White space.
* solib-svr4.c: White space.
* solib-target.c: White space.
* source.c: White space.
* stabsread.c: White space.
* stack.c: White space.
* std-regs.c: White space.
* symfile.c: White space.
* symmisc.c: White space.
* symtab.c: White space.
2010-05-16 23:49:58 +00:00
Michael Snyder
dd304d5382
2010-05-16 Michael Snyder <msnyder@vmware.com>
...
* source.c (_initialize_source): Add "rev" as an abbreviation
for the "reverse-search" command.
2010-05-16 21:26:53 +00:00
Michael Snyder
123f5f96b6
2010-05-16 Michael Snyder <msnyder@vmware.com>
...
* record.c: White space.
* regcache.c: White space.
* reggroups.c: White space.
* remote-fileio.c: White space.
* remote-m32r-sdi.c: White space.
* remote-mips.c: White space.
* remote-sim.c: White space.
2010-05-16 21:11:14 +00:00
Michael Snyder
a744cf537e
2010-05-16 Michael Snyder <msnyder@vmware.com>
...
* remote.c: White space.
(process_g_packet): Remove orphan braces.
2010-05-16 21:07:22 +00:00
Michael Snyder
ad3bbd48b6
2010-05-15 Michael Snyder <msnyder@vmware.com>
...
* parse.c: White space.
* p-lang.c: White space.
* posix-hdep.c: White space.
* printcmd.c: White space.
* progspace.c: White space.
* prologue-value.c: White space.
* psymtab.c: White space.
* p-typeprint.c: White space.
* p-valprint.c: White space.
2010-05-16 01:27:02 +00:00
Michael Snyder
5cc80db34d
2010-05-15 Michael Snyder <msnyder@vmware.com>
...
* objc-lang.c: White space.
* objfiles.c: White space.
* observer.c: White space.
* osabi.c: White space.
* osdata.c: White space.
2010-05-16 00:46:46 +00:00
Michael Snyder
b8d56208c5
2010-05-15 Michael Snyder <msnyder@vmware.com>
...
* m2-lang.c: White space.
* m2-valprint.c: White space.
* macrocmd.c: White space.
* macroexp.c: White space.
* macroscope.c: White space.
* macrotab.c: White space.
* main.c: White space.
* maint.c: White space.
* mdebugread.c: White space.
* memattr.c: White space.
* minsyms.c: White space.
* monitor.c: White space.
2010-05-16 00:18:02 +00:00
gdbadmin
54534c15fe
*** empty log message ***
2010-05-16 00:00:35 +00:00
gdbadmin
39199e037d
*** empty log message ***
2010-05-15 00:00:04 +00:00
Michael Snyder
e0881a8e0f
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* jv-lang.c: White space.
* jv-typeprint.c: White space.
* jv-valprint.c: White space.
* language.c: White space.
* libunwind-frame.c: White space.
* linespec.c: White space.
* linux-nat.c: White space.
* linux-record.c: White space.
* linux-thread-db.c: White space.
2010-05-14 23:41:05 +00:00
Michael Snyder
abbb1732a9
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* infcall.c: White space.
* inf-child.c: White space.
* infcmd.c: White space.
* inferior.c: White space.
* inf-loop.c: White space.
* inflow.c: White space.
* inline-frame.c: White space.
* interps.c: White space.
2010-05-14 21:25:51 +00:00
Michael Snyder
d8734c886e
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* gcore.c: White space.
* gdb.c: White space.
* gdbtypes.c: White space.
* gnu-nat.c: White space.
* gnu-v2-abi.c: White space.
* gnu-v3-abi.c: White space.
2010-05-14 20:17:37 +00:00
Michael Snyder
bb9bcb69cd
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* findcmd.c: White space.
* findvar.c: White space.
* fork-child.c: White space.
* frame-base.c: White space.
* frame.c: White space.
* frame-unwind.c: White space.
* f-valprint.c: White space.
2010-05-14 19:27:05 +00:00
Michael Snyder
d7f9d72972
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* elfread.c: White space.
* environ.c: White space.
* eval.c: White space.
* event-loop.c: White space.
* event-top.c: White space.
* exceptions.c: White space.
* exec.c: White space.
* expprint.c: White space.
2010-05-14 18:35:11 +00:00
Michael Snyder
9a619af0d3
2010-05-14 Michael Snyder <msnyder@vmware.com>
...
* dbxread.c: White space.
* dcache.c: White space.
* disasm.c: White space.
* doublest.c: White space.
* dsrec.c: White space.
* dummy-frame.c: White space.
* dwarf2expr.c: White space.
* dwarf2-frame.c: White space.
* dwarf2loc.c: White space.
* dwarf2read.c: White space.
2010-05-14 17:53:16 +00:00
Phil Muldoon
88d4aea747
2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
...
PR python/11482
* python/py-value.c (valpy_hash): New function.
(value_object_type): Register valpy_hash.
2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
PR python/11482
* gdb.python/py-value.exp (test_value_hash): New function
2010-05-14 11:11:28 +00:00
Hui Zhu
7a2988756d
2010-05-14 Hui Zhu <teawater@gmail.com>
...
Michael Snyder <msnyder@vmware.com>
* linux-fork.c (gdbthread.h): New include.
(fork_info): Add parent_ptid.
(inferior_call_waitpid_cleanup, inferior_call_waitpid): New
functions.
(delete_checkpoint_command): Call inferior_call_waitpid.
(checkpoint_command): Set parent_ptid.
2010-05-14 06:38:44 +00:00
Michael Snyder
6595d32bb2
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* dictionary.c: Re-indent to GNU coding standard.
2010-05-14 00:23:26 +00:00
gdbadmin
432116da31
*** empty log message ***
2010-05-14 00:00:02 +00:00
Michael Snyder
c5504eafbc
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* charset.c: White space.
* c-lang.c: White space.
* cli-out.c: White space.
* coffread.c: White space.
* complaints.c: White space.
* completer.c: White space.
* corefile.c: White space.
* corelow.c: White space.
* cp-abi.c: White space.
* cp-namespace.c: White space.
* cp-support.c: White space.
* cp-valprint.c: White space.
* c-typeprint.c: White space.
* c-valprint.c: White space.
2010-05-13 23:53:32 +00:00
Michael Snyder
cc59ec59c8
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* blockframe.c: White space.
* breakpoint.c: White space.
* buildsym.c: White space.
2010-05-13 22:44:02 +00:00
Michael Snyder
b6de9da444
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* bcache.c: White space.
2010-05-13 22:04:58 +00:00
Michael Snyder
05c547f629
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* gdbarch.sh: White space, add blank lines.
* arch-utils.c: Ditto.
* gdbarch.c: Regenerate.
2010-05-13 21:56:58 +00:00
Michael Snyder
1c4d3f9687
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* frame.c: White space, add blank lines.
2010-05-13 21:36:08 +00:00
Michael Snyder
f89b749f3c
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* stack.c: White space, add blank lines.
2010-05-13 21:24:21 +00:00
Michael Snyder
c14feecc50
2010-05-13 Michael Snyder <msnyder@vmware.com>
...
* stack.c (initialize_stack): Remove long-dead code.
2010-05-13 21:11:43 +00:00
Jan Kratochvil
a2d33775a1
gdb/
...
Code cleanup.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
(locexpr_read_variable, loclist_read_variable): Update the callers.
2010-05-13 15:44:35 +00:00
Jan Kratochvil
33ac96f04d
gdb/
...
Code cleanup.
* dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
Remove check of NULL returned by tag_type_to_type.
(die_containing_type): Remove variable type. Remove type_die variable
initialization. Remove check of NULL returned by tag_type_to_type.
2010-05-13 09:09:20 +00:00
gdbadmin
36d099ec67
*** empty log message ***
2010-05-13 00:00:04 +00:00
gdbadmin
32ecf4c853
*** empty log message ***
2010-05-12 00:00:34 +00:00
Pierre Muller
f5a010c000
2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
...
PR exp/11530.
* gdbtypes.c (lookup_struct_elt_type): Also lookup
names of unnamed structures or unions.
testsuite ChangeLog entry:
2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
PR exp/11530.
* testsuite/gdb.base/gdb11530.c: New file.
* testsuite/gdb.base/gdb11530.exp: New file.
2010-05-11 22:03:04 +00:00
Pierre Muller
bf701c2c79
* procfs.c (proc_watchpoint_address): New function.
...
(procfs_stopped_by_watchpoint): Remove useless check after
find_procinfo_or_die call.
(procfs_stopped_data_address): New function.
(procfs_use_watchpoints): Register new watchpoint related function.
2010-05-11 21:55:47 +00:00
Tom Tromey
d02691ef9a
* eval.c (evaluate_subexp_standard): Revert inadvertent change.
2010-05-11 16:54:28 +00:00
gdbadmin
9d9b811621
*** empty log message ***
2010-05-11 00:00:09 +00:00
Michael Snyder
e0627e85b1
2010-05-10 Michael Snyder <msnyder@vmware.com>
...
* utils.c: White space cleanup.
2010-05-10 20:58:00 +00:00
Tom Tromey
cc73bb8c7a
* eval.c (ptrmath_type_p): Add 'lang' argument.
...
(evaluate_subexp_standard): Update.
(evaluate_subexp_with_coercion): Update.
* language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2010-05-10 20:20:21 +00:00
Michael Snyder
c02866a09f
2010-05-10 Michael Snyder <msnyder@vmware.com>
...
* utils.c (do_fclose_cleanup) Restore local variable.
2010-05-10 17:26:36 +00:00
gdbadmin
d46835f770
*** empty log message ***
2010-05-10 00:00:03 +00:00
Doug Evans
06280d23c6
* record.c (init_record_core_ops): Rename record_core to record-core.
2010-05-09 20:04:52 +00:00
gdbadmin
56839c8495
*** empty log message ***
2010-05-09 00:00:03 +00:00
Joel Brobecker
fa07e785f2
Implement task switching on pa-hpux.
...
gdb/ChangeLog:
* inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
(inf_ttrace_target): Set t->to_get_ada_task_ptid.
2010-05-08 18:23:42 +00:00
Pierre Muller
4c680d1d4c
* valops.c (find_overload_match): Add missing i18n markup.
2010-05-08 09:26:47 +00:00
Pierre Muller
28e176a623
* p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
2010-05-08 09:18:02 +00:00
Jan Kratochvil
48cb83fdd0
gdb/
...
* dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
list for the obconcat call.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
Likewise.
* symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
New variable ap. Remove variables len and val.
* symfile.h (obconcat): Likewise for the prototype.
2010-05-08 04:58:45 +00:00
Jan Kratochvil
8ef4892fb6
gdb/testsuite/
...
* gdb.dwarf2/dw2-modula2-self-type.exp: New.
* gdb.dwarf2/dw2-modula2-self-type.S: New.
2010-05-08 04:55:32 +00:00
gdbadmin
9827512048
*** empty log message ***
2010-05-08 00:00:03 +00:00
Michael Snyder
f92adf3ccc
2010-05-07 Michael Snyder <msnyder@vmware.com>
...
* python/python.c (execute_gdb_command): Remove unused variables.
* python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
* python/py-breakpoint.c (gdbpy_breakpoint_created):
Remove unused variable.
* python/py-cmd.c (cmdpy_function): Remove unused variable.
(cmdpy_completer): Remove unused variable.
* python/py-frame.c (frapy_find_sal): Remove unused variable.
* python/py-function.c (fnpy_call): Remove unused variable.
* python/py-objfile.c (objfile_to_objfile_object):
Remove unused variable.
* python/py-param.c (parmpy_init): Remove unused variable.
* python/py-prettyprint.c (apply_varobj_pretty_printer):
Remove unused variable.
(gdbpy_default_visualizer): Remove unused variable.
* python/py-progspace.c (pspace_to_pspace_object):
Remove unused variable.
* python/py-symtab.c (symtab_and_line_to_sal_object):
Remove unused variable.
* python/py-type.c (typy_template_argument):
Remove unused variable.
* python/py-value.c (valpy_string): Remove unused variable.
(convert_value_from_python): Remove unused variables.
2010-05-07 19:26:30 +00:00
Michael Snyder
d160942fa5
2010-05-07 Michael Snyder <msnyder@vmware.com>
...
* valops.c (value_cast_pointers): Restore unused variable 'type1',
and use it to compute variable 't1'.
2010-05-07 18:49:27 +00:00
Joel Brobecker
63db82b293
Fix formatting.
2010-05-07 16:07:32 +00:00
Joel Brobecker
587542abbb
* ada-lang.c (assign_aggregate): Remove unused variable.
2010-05-07 16:00:48 +00:00
Joel Brobecker
3caf13b459
Implement task switching on solaris targets.
...
* sol-thread.c (thread_db_find_thread_from_tid)
(sol_get_ada_task_ptid): New functions.
(init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2010-05-07 15:24:16 +00:00
Sami Wagiaalla
7322dca9c1
Add ADL support
...
2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/7943:
* valops.c (find_overload_match): Handle fsym == NULL case.
Add int no_adl argument.
(find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
when appropriate.
Add int no_adl argument.
(find_oload_champ_namespace): Add int no_adl argument.
* parse.c (operator_length_standard): Return length for OP_ADL_FUNC
expression.
* expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
* eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
Evaluate arguments and use them to perform ADL lookup.
Pass no_adl argument to find_overload_match.
Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
* cp-support.h: Added prototype for
make_symbol_overload_list_namespace.
* cp-support.c (make_symbol_overload_list_namespace): New function.
(make_symbol_overload_list_adl_namespace): New function.
(make_symbol_overload_list_adl): New function.
(make_symbol_overload_list_using): Moved code to add function to
overload set to make_symbol_overload_list_namespace.
* c-exp.y: create UNKNOWN_CPP_NAME token.
Add parse rule for ADL functions.
(classify_name): Recognize an UNKNOWN_CPP_NAME.
2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.exp: New test.
* gdb.cp/koenig.cc: New test program.
2010-05-07 14:46:28 +00:00
Jan Kratochvil
3f1f688424
gdb/
...
* fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
sentinel.
2010-05-07 14:42:30 +00:00
Pedro Alves
94b0dee141
* remote.c (remote_query_supported_append): Use reconcat.
...
(remote_query_supported): Install a cleanup. Use reconcat.
2010-05-07 14:01:55 +00:00
Pedro Alves
1408c25101
* gdbarch.sh (qsupported): Delete.
...
* gdbarch.h, gdbarch.c: Regenerate.
* remote.c (remote_query_supported): Remove use of
gdbarch_qsupported.
2010-05-07 14:00:30 +00:00
Sergio Durigan Junior
f8e50cfe04
gdb/ChangeLog:
...
2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
* xml-syscall.c (syscall_start_syscalls_info): Remove unused
function.
2010-05-07 03:41:33 +00:00
Michael Snyder
c6913b7d1e
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* xml-support.c (xinclude_start_include): Delete unused variable.
(xml_process_xincludes): Delete unused variable.
* xml-syscall.c (syscall_parse_xml): Delete unused variable.
* target-descriptions.c (tdesc_gdb_type): Delete unused variable.
(tdesc_find_arch_register): Delete unused variable.
(tdesc_use_registers): Delete unused variable.
* xml-tdesc.c (tdesc_start_target): Delete unused variable.
* inferior.c (print_inferior): Delete unused variable.
* record.c (record_open_1): Delete unused variable.
(record_restore): Delete unused variable.
(cmd_record_save): Delete unused variable.
* gcore.c (derive_heap_segment): Delete unused variable.
(objfile_find_memory_regions): Use unused variable.
* jit.c (jit_inferior_init): Delete unused variable.
* progspace.c (clone_program_space): Delete unused variable.
(pspace_empty_p): Delete unused variable.
2010-05-07 02:09:55 +00:00
Michael Snyder
1c5465ac60
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* frame-unwind.c (frame_unwind_find_by_frame):
Delete unused variable.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
* cp-support.c (mangled_name_to_comp): Delete unused variable.
(method_name_from_physname): Delete unused variable.
(cp_func_name): Delete unused variable.
(cp_validate_operator): Delete unused variable.
* cp-namespace.c (cp_scan_for_anonymous_namespaces):
Delete unused variable.
* trad-frame.c (trad_frame_get_prev_register):
Delete unused variable.
* tramp-frame.c (tramp_frame_cache): Delete unused variable.
2010-05-07 01:12:14 +00:00
Michael Snyder
1be757cfff
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* serial.c (serial_for_fd): Delete unused variable.
* mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
* top.c (execute_command): Delete unused variable.
(init_main): Delete unused variable.
* utils.c (do_fclose_cleanup): Delete unused variable.
(do_all_inferior_continuations): Delete unused variable.
(initialize_utils): Delete unused variable.
(internal_problem_mode): Delete unused global.
* frame.c (get_prev_frame): Delete unused global.
(get_frame_locals_address): Delete unused global.
(get_frame_args_address): Delete unused global.
2010-05-07 00:47:37 +00:00
Michael Snyder
9216103f92
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* p-typeprint.c (pascal_type_print_base): Delete unused variable.
(pascal_type_print_varspec_prefix): Delete unused variable.
* f-typeprint.c (f_type_print_base): Delete unused variable.
(f_type_print_varspec_suffix): Delete unused variable.
* m2-typeprint.c (m2_print_type): Delete unused variable.
(m2_long_set): Delete unused variable.
* ada-valprint.c (ada_val_print_1): Delete unused variable.
* d-valprint.c (dynamic_array_type): Delete unused variable.
* f-valprint.c (f77_get_dynamic_length_of_aggregate):
Delete unused variable.
(f77_create_arrayprint_offset_tbl): Delete unused variable.
* m2-valprint.c (m2_val_print): Delete unused variable.
2010-05-07 00:28:32 +00:00
Michael Snyder
34fa1d9dd2
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* ui-out.c (ui_out_field_int): Delete unused variable.
(ui_out_field_fmt_int): Delete unused variable.
* varobj.c (varobj_list_children): Delete unused variable.
(varobj_set_value): Delete unused variable.
(install_new_value_visualizer): Delete unused variable.
(varobj_set_visualizer): Delete unused variable.
(varobj_update): Delete unused variable.
(varobj_editable_p): Delete unused variable.
(c_value_of_root): Delete unused variable.
(cplus_describe_child): Delete unused variable.
2010-05-07 00:01:31 +00:00
gdbadmin
a364cec007
*** empty log message ***
2010-05-07 00:00:33 +00:00
Michael Snyder
b5385fc0f0
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* ada-lang.c (add_defn_to_vec): Delete unused variable.
(decode_constrained_packed_array_type): Delete unused variable.
(add_defn_to_vec): Delete unused variable.
(symbol_completion_match): Delete unused variable.
(value_tag_from_contents_and_address): Delete unused variable.
(ada_evaluate_subexp): Delete unused variable.
* c-lang.c (classify_type): Delete unused variable.
* f-lang.c (f_printstr): Delete unused variable.
* objc-lang.c (objc_printstr): Delete unused variable.
* ada-tasks.c (get_known_tasks_addr): Delete unused variable.
* jv-lang.c (type_from_class): ifdef unused variable.
(java_class_name_from_physname): Delete unused variable.
* m2-lang.c (m2_printstr): Delete unused variable.
2010-05-06 23:36:39 +00:00
Michael Snyder
4fc06681d3
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* objfiles.c (objfile_relocate): Delete unused variable.
* maint.c (_initialize_maint_cmds): Delete unused variable.
* demangle.c (_initialize_demangler): Delete unused variable.
* corefile.c (reopen_exec_file): Delete unused variable.
* dwarf2expr.c (dwarf2_read_address): Delete unused variable.
* dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2010-05-06 22:50:09 +00:00
Michael Snyder
6b4398f7cd
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* osabi.c (_initialize_gdb_osabi): Delete unused variable.
* memattr.c (mem_delete): Delete unused variable.
(invalidate_target_mem_regions): Delete unused variable.
* mem-break.c (default_memory_insert_breakpoint):
Delete unused variable.
* target.c (target_get_osdata): Delete unused variable.
* parse.c (length_of_subexp): Delete unused variable.
(prefixify_subexp): Delete unused variable.
(exp_iterate): Delete unused variable.
* reverse.c (delete_bookmark_command): Delete unused variable.
2010-05-06 22:29:49 +00:00
Michael Snyder
308d96edc1
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* macrocmd.c (_initialize_macrocmd): Delete unused variable.
* macroexp.c (gather_arguments): Delete unused variable.
(substitute_args): Delete unused variable.
* completer.c (gdb_completer_loc_break_characters): Unused, delete.
* gdbarch.sh (gdbarch_printable_names): Delete unused variable.
(_initialize_gdbarch): Delete unused variable.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (initialize_current_architecture):
Delete unused variable.
(_initialize_gdbarch_utils): Delete unused variable.
* gdbtypes.c (make_cv_type): Delete unused variable.
(make_type_with_address_space): Delete unused variable.
2010-05-06 19:41:12 +00:00
Michael Snyder
167e43849e
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* linespec.c (decode_compound): Delete unused variable.
* dictionary.c (iterator_next_hashed): Delete unused variable.
* infcall.c (call_function_by_hand): Delete unused variable.
* infcmd.c (step_1): Delete unused variable.
(registers_info): Delete unused variable.
(attach_command): Delete unused variable.
* infrun.c (follow_exec): Delete unused variable.
(handle_step_into_function_backwards): Delete unused variable.
(_initialize_infrun): Delete unused variable.
* stack.c (parse_frame_specification_1): Delete unused variable.
(frame_info): Delete unused variable.
(backtrace_command_1): Delete unused variable.
(catch_info): Delete unused variable.
2010-05-06 19:14:09 +00:00
Michael Snyder
8f78b329f0
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* eval.c (evaluate_subexp_standard): Delete unused variable.
* valops.c (value_cast_pointers): Delete unused variable.
(value_dynamic_cast): Delete unused variable.
(value_array): Delete unused variable.
(find_overload_match): Delete unused variable.
* valarith.c (value_subscript): Delete unused variable.
(value_binop): Delete unused variable.
* valprint.c (_initialize_valprint): Delete unused variable.
* printcmd.c (print_command_1): Delete unused variable.
(address_info): Delete unused variable.
(printf_command): Delete unused variable.
2010-05-06 18:26:13 +00:00
Michael Snyder
8ea1369558
2010-05-06 Michael Snyder <msnyder@vmware.com>
...
* auxv.c (target_auxv_search): Delete unused variable.
* blockframe.c (get_frame_block): Delete unused variable.
* regcache.c (regcache_cpy): Delete unused variable.
(regcache_cpy_no_passthrough): Delete unused variable.
* charset.c (wchar_iterate): Delete unused variable.
(find_charset_names): Delete unused variable.
(_initialize_charset): Delete unused variable.
* disasm.c (do_mixed_source_and_assembly):
Delete unused variable.
* source.c (set_default_source_symtab_and_line):
Delete unused variable.
(set_substitute_path_command): Delete unused variable.
* value.c (preserve_values): Delete unused variable.
(value_from_double): Delete unused variable.
2010-05-06 18:07:08 +00:00
Michael Snyder
952a6d4151
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* psymtab.c (lookup_partial_symbol): Delete unused variable.
(find_last_source_symtab_from_partial): Delete unused variable.
* symfile.c (place_section): Delete unused variable.
(default_symfile_offsets): Delete unused variable.
(get_debug_link_info): Delete unused variable.
(find_separate_debug_file_by_debuglink): Delete unused variable.
(add_symbol_file_command): Delete unused variable.
(symfile_find_segment_sections): Delete unused variable.
* symmisc.c (free_symtab): Delete unused variable.
(dump_symtab_1): Delete unused variable.
* symtab.c (lookup_symbil_aux_quick): Delete unused variable.
(find_pc_sect_symtab): Delete unused variable.
(skip_prologue_using_lineinfo): Delete unused variable.
(sources_info): Delete unused variable.
(completion_list_add_name): Delete unused variable.
(expand_line_sal): Delete unused variable.
2010-05-06 01:16:15 +00:00
Michael Snyder
afe38095c3
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* breakpoint.c (validate_commands_for_breakpoint):
Delete unused variables.
(insert_catchpoint): Delete unused variable.
(update_watchpoint): Delete unused variable.
(insert_bp_location): Delete unused variable.
(insert_breakpoint_locations): Delete unused variable.
(remove_breakpoint_1): Delete unused variable.
(software_breakpoint_inserted_here_p): Delete unused variable.
(watchpoints_triggered): Delete unused variable.
(bpstat_check_watchpoint): Delete unused variable.
(bpstat_stop_status): Delete unused variable.
(print_one_breakpoint_location): Delete unused variable.
(allocate_bp_location): Delete unused variable.
(create_breakpoint): Delete unused variable.
(watch_command_1): Delete unused variable.
(catch_exception_command_1): Delete unused variable.
(catch_ada_exception_command): Delete unused variable.
(delete_breakpoint): Delete unused variable.
(breakpoint_re_set_one): Delete unused variable.
(do_enable_breakpoint): Delete unused variable.
2010-05-06 00:41:41 +00:00
Michael Snyder
a1b7d1984a
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* mi/mi-out.c (mi_table_begin): Delete unused variable.
* mi/mi-cmd-var.c (print_varobj): Delete unused variable.
(mi_cmd_var_list_children): Delete unused variable.
(varobj_update_one): Delete unused variable.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
Delete unused variable.
(mi_cmd_stack_list_variables): Delete unused variable.
(list_args_or_locals): Delete unused variable.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
Delete unused variables.
(mi_cmd_file_list_exec_source_files): Delete unused variable.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete):
Delete unused variable.
* mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
(mi_cmd_interpreter_exec): Delete unused variable.
(mi_on_normal_stop): Delete unused variable.
* mi/mi-main.c (run_one_inferior): Delete unused variable.
(print_one_inferior): Delete unused variables.
(mi_execute_command): Delete unused variable.
(mi_cmd_execute): Delete unused variable.
(timestamp): Delete unused variable.
2010-05-06 00:32:38 +00:00
Michael Snyder
2a2287c76e
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
* tracepoint.c (delete_trace_variable_command):
Delete unused variables.
(encode_actions_1): Delete unused variables.
(start_tracing): Delete unused variable.
(trace_status_mi): Delete unused variable.
(tfind_1): Delete unused variable.
(trace_find_pc_command): Delete unused variable.
(trace_find_line_command): Delete unused variables.
(trace_find_range_command): Delete unused variables.
(trace_find_outside_command): Delete unused variables.
(parse_tracepoint_definition): Delete unused variables.
(tfile_fetch_registers): Delete unused variable.
2010-05-06 00:31:46 +00:00
Pedro Alves
eda5a4d720
* amd64-tdep.c: Include disasm.h.
...
(amd64_insn_length_fprintf, amd64_insn_length_init_dis)
(amd64_insn_length): Moved to disasm.c and renamed.
(fixup_riprel): Adjust.
* disasm.c (do_ui_file_delete): New.
(gdb_insn_length): New.
(gdb_buffered_insn_length_fprintf)
(gdb_buffered_insn_length_init_dis)
(gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
renamed.
* disasm.h (gdb_insn_length): Declare.
(gdb_buffered_insn_length): Declare.
2010-05-06 00:21:53 +00:00
Pedro Alves
02357a4aaf
* remote.c (clear_threads_parsing_context): New.
...
(remote_threads_info): Delete unused null_cleanup. Install a
cleanup to clear the threads_parsing_context in case parsing
throws.
2010-05-06 00:15:29 +00:00
Michael Snyder
8c5630cb08
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* c-exp.y (parse_string_or_char): Delete unused variable.
(c_lex): Delete unused variable.
* cp-name-parser.y (cpname_lex): Delete unused variable.
* ada-exp.y (find_primitive_type): Delete unused variable.
(write_var_or_type): Delete unused variable.
* jv-exp.y (java_parse): Delete unused variable.
(push_expression_name): Delete unused variable.
* p-exp.y (pascal_lex): Delete unused variable.
2010-05-06 00:08:44 +00:00
gdbadmin
d11bdf9018
*** empty log message ***
2010-05-06 00:00:07 +00:00
Michael Snyder
fa238c0364
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* elfread.c (elf_symtab_read): Delete unused variable.
(find_separate_debug_file_by_buildid): Delete unused variables.
(elf_symfile_read): Delete unused variable.
* coffread.c (coff_symfile_read): Delete unused variables.
* coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
(read_pe_exported_syms): Delete unused variable.
* stabsread.c (define_symbol): Delete unused variable.
* dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
(process_psymtab_comp_unit): Delete unused variable.
(dwarf2_build_psymtabs_hard): Delete unused variable.
(load_partial_comp_unit): Delete unused variable.
(create_all_comp_units): Delete unused variable.
(scan_partial_symbols): Delete unused variable.
(add_partial_symbol): Delete unused variable.
(add_partial_namespace): Delete unused variable.
(add_partial_enumeration): Delete unused variable.
(load_full_comp_unit): Delete unused variable.
(process_full_comp_unit): Delete unused variable.
(read_file_scope): Delete unused variable.
(read_type_unit_scope): Delete unused variable.
(process_structure_scope): Delete unused variable.
(process_enumeration_scope): Delete unused variable.
(read_tag_ptr_to_member_type): Delete unused variable.
(read_typedef): Delete unused variable.
(read_partial_die): Delete unused variable.
(decode_locdesc): Delete unused variable.
(zeroed_partial_die): Delete unused global variable.
2010-05-05 23:44:19 +00:00
Pedro Alves
46c162d47b
* remote.c (remote_threads_info): Really revert previous previous
...
change.
2010-05-05 23:39:56 +00:00
Michael Snyder
0043e6a5cc
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* tui/tui-interp.c (_initialize_tui_interp):
Delete unused variable.
* tui/tui-regs.c tui_display_registers_from):
Delete unused variable.
(tui_check_register_values): Delete unused variable.
(tui_register_format): Delete unused variable.
* tui/tui-win.c (_initialize_tui_win): Delete unused variable.
* tui/tui-windata.c (tui_display_data_from_line):
Delete unused variables.
(tui_vertical_data_scroll): Delete unused variables.
2010-05-05 22:53:54 +00:00
Michael Snyder
c31a71f44f
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* remote.c (remote_threads_info): Revert questionable part of
the previous change.
2010-05-05 22:27:15 +00:00
Michael Snyder
d36fc00bca
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* cli-dump.c (dump_memory_to_file): Delete unused variable.
(restore_binary_file): Delete unused variable.
* cli-decode.c (deprecated_cmd_warning): Delete unused variables.
* cli-script.c (define_command): Delete unused variables.
(recurse_read_control_structure): Delete unused variable.
(script_from_file): Delete unused variable.
* cli-cmds.c (complete_command): Delete unused variable.
(disassemble_command): Delete unused variable.
2010-05-05 21:32:56 +00:00
Michael Snyder
9128a50386
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* dcache.c (dcache_init): Delete unused variable.
(dcache_info): Delete unused variable.
2010-05-05 20:50:24 +00:00
Michael Snyder
aa369b55eb
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* remote.c (remote_threads_info): Delete unused variable.
(process_stop_reply): Delete unused variable.
(remote_get_trace_status): Delete unused variables.
2010-05-05 20:46:06 +00:00
Michael Snyder
9e9547e485
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* linux-thread-db.c (add_thread_db_info): Delete unused variable.
(thread_from_lwp): Delete unused variable.
(enable_thread_event_reporting): Delete unused variable.
(check_for_thread_db): Delete unused variables.
(thread_db_find_new_threads_2): Delete unused variable.
* linux-fork.c (info_checkpoints_command): Delete unused variables.
(checkpoint_command): Delete unused variable.
(linux_fork_context): Delete unused variables.
2010-05-05 20:37:23 +00:00
Michael Snyder
75083f7e9a
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* linux-nat.c (top level): Delete unused global variable.
(linux_tracefork_child): Delete unused variable.
(linux_child_follow_fork): Delete unused variable.
(linux_nat_detach): Delete unused variable.
(linux_handle_extended_wait): Delete unused variable.
(linux_nat_has_pending_sigint): Delete unused variable.
(linux_nat_find_memory_regions): Delete unused variable.
(linux_nat_make_corefile_notes): Delete unused variables.
(linux_nat_info_proc_cmd): Delete unused variable.
(linux_proc_pending_signals): Delete unused variable.
(linux_nat_stop_lwp): Delete unused variables.
(_initialize_linux_nat): Delete unused variable.
2010-05-05 20:16:45 +00:00
Michael Snyder
2d148b942b
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* ser-pipe.c (top level): Delete unused global variable.
2010-05-05 20:01:34 +00:00
Michael Snyder
e0f069a3ea
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* linux-record.c (record_linux_system_call):
Delete unused variables.
2010-05-05 19:58:12 +00:00
Michael Snyder
789d24f07f
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* corelow.c (core_xfer_partial): Delete unused variables.
2010-05-05 19:53:54 +00:00
Michael Snyder
1cd337a56b
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* solib-svr4.c (find_program_interpreter): Delete unused variable.
(svr4_solib_create_inferior_hook): Add ifdef around
conditionally-used variable declarations.
2010-05-05 19:50:10 +00:00
Michael Snyder
b00e3f5614
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* solib.c (solib_find): Delete unused variable.
(free_so_symbols): Delete unused variable.
(info_sharedlibrary_command): Delete unused variable.
(reload_shared_libraries_1): Delete unused variable.
(_initialize_solib): Delete unused variable.
2010-05-05 19:37:45 +00:00
Michael Snyder
90f6219628
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
(i386_collect_xstateregset): Delete unused variable.
* i387-tdep.c (i387_print_float_info): Delete unused variable.
2010-05-05 19:30:36 +00:00
Michael Snyder
0f3b76ca4a
fix edit error
2010-05-05 19:05:24 +00:00
Michael Snyder
75721c6694
2010-05-05 Michael Snyder <msnyder@vmware.com>
...
* features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
Delete unused variable 'type'.
2010-05-05 18:56:12 +00:00
Joel Brobecker
02e7ea1823
Do not set prms_id/bug_id anymore.
...
2010-05-05 Joel Brobecker <brobecker@adacore.com>
Remove the use of prms_id and bug_id throughout the testsuite.
2010-05-05 18:07:04 +00:00
Joel Brobecker
af33db377b
Remove unused MAX_OF*/MIN_OF* macros.
...
FWIW: They can no longer work either, as they depend on other macros
which have been missing for quite a while.
ChangeLog:
* gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.
* ada-lang.c: Remove comment mentioning these macros.
* m2-exp.y: Delete commented out code.
2010-05-05 17:07:40 +00:00
Joel Brobecker
0497f5b03f
"finish" does not work on sparc if function returns array.
...
ChangeLog:
* sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
for array types.
* sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2010-05-05 16:59:00 +00:00
Pierre Muller
6e39997a39
ARI fix: Remove ATTRIBUTE_UNUSED throughout.
...
* arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
ATTRIBUTE_UNUSED.
(cleanup_kernel_helper_return): Likewise.
* arm-tdep.c (copy_unmodified): Likewise.
(copy_preload): Likewise.
(copy_copro_load_store): Likewise.
(cleanup_branch): Likewise.
(copy_b_bl_blx): Likewise.
(copy_bx_blx_reg): Likewise.
(copy_alu_imm): Likewise.
(copy_alu_reg): Likewise.
(copy_alu_shifted_reg): Likewise.
(cleanup_load): Likewise.
(cleanup_store): Likewise.
(cleanup_block_load_pc): Likewise.
(cleanup_svc): Likewise.
(copy_undef): Likewise.
(copy_unpred): Likewise.
* remote.c (register_remote_support_xml): Likewise.
2010-05-05 15:05:57 +00:00
Hui Zhu
1412f70bc6
2010-05-05 Hui Zhu <teawater@gmail.com>
...
* gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2010-05-05 09:20:20 +00:00
gdbadmin
d903301282
*** empty log message ***
2010-05-05 00:00:33 +00:00
Mark Kettenis
c4f7c68703
* remote.c (register_remote_support_xml)
...
(remote_query_supported_append, remote_query_supported): Add cast
to NULL used as sentinel.
* tracepoint.c (tvariables_info_1): Likewise.
* utils.c (add_internal_problem_command): Likewise.
2010-05-04 21:09:25 +00:00
Matthew Gretton-Dann
63b4f126d1
* gdb/dwarf2loc.c (read_pieced_value, write_pieced_value,
...
dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
registers gracefully.
2010-05-04 09:54:18 +00:00
Matthew Gretton-Dann
2f1bdd26c4
* gdb/exec.c (print_section_info): Display entry point without arch
...
specific parts.
2010-05-04 08:47:13 +00:00
Pierre Muller
e1c34c5d94
PR exp/11349.
...
* printcmd.c (x_command): Only dereference once implicitly for
TYPE_CODE_REF.
testsuite dir:
PR exp/11349.
* testsuite/gdb.cp/ref-types.exp: Add test to examine
use a reference local variable.
2010-05-04 06:48:27 +00:00
gdbadmin
bf49180de2
*** empty log message ***
2010-05-04 00:00:32 +00:00
Doug Evans
ae462839ef
* event-loop.c (gdb_timer): Delete unused global.
...
(create_timer): Update.
2010-05-03 20:58:21 +00:00
Doug Evans
24b066ba2b
* event-loop.c (struct callback_event): New struct.
...
(callback_list): New global.
(append_callback_event, delete_callback_event): New functions.
(process_callback): New function.
(start_event_loop): Call it.
* remote-utils.c (NOT_SCHEDULED): Define.
(readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
moved out of readchar.
(readchar): Rewrite. Call reschedule before returning.
(reset_readchar): New function.
(remote_close): Call it.
(process_remaining, reschedule): New functions.
* server.h (callback_handler_func): New typedef.
(append_callback_event, delete_callback_event): Declare.
2010-05-03 20:53:21 +00:00
Jan Kratochvil
1ac77ea163
gdb/
...
* cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
CURRENT->DECLARATION case.
* cp-support.h (struct using_direct): Provide extended comment.
2010-05-03 20:10:22 +00:00
Mark Kettenis
7c54a10880
* hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
...
HPPABSD_SIZEOF_GREGS.
(HPPAOBSD_SIZEOF_FPREGS): New define.
(hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
(hppaobsd_supply_fpregset): New function.
(hppaobsd_gregset): Renamed from hppabsd_gregset.
(hppaobsd_fpregset): New variable.
(hppaobsd_regset_from_core_section): Handle floating-point registers.
(_initialize_hppabsd_tdep): Remove spurious blank line.
2010-05-03 19:59:13 +00:00