summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* * dwarf2loc.c (struct piece_closure) <refc>: New field.Tom Tromey2010-05-272-3/+19
| | | | | | (allocate_piece_closure): Initialize refc. (copy_pieced_value_closure): Use refc. (free_pieced_value_closure): Likewise.
* * arm-tdep.c (push_stack_item): 'contents' now const.Tom Tromey2010-05-272-5/+12
| | | | | (arm_push_dummy_call): Make 'val' const. Use value_contents, not value_contents_writeable. Introduce new temporary.
* * findcmd.c (parse_find_args): Use value_contents, notTom Tromey2010-05-272-1/+6
| | | | value_contents_raw.
* * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contentsTom Tromey2010-05-272-3/+8
| | | | const. Use value_contents, not value_contents_writeable.
* Replace call to value_contents_raw by call to value_contents.Joel Brobecker2010-05-272-1/+6
| | | | | | | | | | | 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 Ozkan Sezer <sezeroz@gmail.com>Ozkan Sezer2010-05-272-0/+5
| | | | * gdb/MAINTAINERS: Add myself for write after approval privileges.
* Allow python to find its files if moved from original location.Doug Evans2010-05-278-33/+183
| | | | | | | | | | | | | | | * 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.
* * configure.ac: Try to use python's distutils to fetch compilationDoug Evans2010-05-274-92/+452
| | | | | | parameters. * configure: Regenerate. * python/python-config.py: New file.
* *** empty log message ***gdbadmin2010-05-271-1/+1
|
* 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>Ozkan Sezer2010-05-265-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2010-05-263-29/+18
| | | | | * gdb.java/jmisc.exp: Replace send_gdb with gdb_test. * gdb.java/jprint.exp: Replace send_gdb with gdb_test.
* 2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2010-05-264-138/+39
| | | | | | * 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.
* gdb/Pedro Alves2010-05-2610-9/+406
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2010-05-2616-222/+116
| | | | | | | | | | | | | | | | | | | * 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-25 Michael Snyder <msnyder@vmware.com>Michael Snyder2010-05-2612-1320/+518
| | | | | | | | | | | | | | | | * 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.
* * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.Tom Tromey2010-05-263-9/+20
| | | | | | | | | | (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.
* *** empty log message ***gdbadmin2010-05-261-1/+1
|
* * gdb.base/macscp.exp: Add missing space after setup_kfail.Tom Tromey2010-05-252-3/+7
|
* * gdb.arch/i386-prologue.exp (skip_breakpoint): Fix setup_kfailTom Tromey2010-05-2516-71/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * gdb.dwarf2/pieces.exp (pieces_test_f3): Mention PR 11636.Tom Tromey2010-05-252-1/+5
|
* 2010-05-25 Michael Snyder <msnyder@vmware.com>Michael Snyder2010-05-256-1049/+421
| | | | | | | | * 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.
* * dwarf2loc.c (dwarf_expr_frame_base): Constify.Tom Tromey2010-05-256-47/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * ser-pipe.c (pipe_open): Ignore SIGINTs in child.Doug Evans2010-05-252-0/+11
|
* * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...Doug Evans2010-05-254-9/+16
| | | | | | | | * 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.
* Add python gdb.GdbError and gdb.string_to_argv.Doug Evans2010-05-2510-11/+253
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * windows-nat.c (display_selector): Call GetLastError to give betterPierre Muller2010-05-252-1/+10
| | | | failure explanation.
* *** empty log message ***gdbadmin2010-05-251-1/+1
|
* * config.in: Regenerate.Pedro Alves2010-05-242-0/+10
|
* 2010-05-24 Michael Snyder <msnyder@vmware.com>Michael Snyder2010-05-2420-1225/+613
| | | | | | | | | | | | | | | | | | | | | | * 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 Michael Snyder <msnyder@vmware.com>Michael Snyder2010-05-2415-651/+249
| | | | | | | | | | | | | | | | | * 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.
* *** empty log message ***gdbadmin2010-05-241-1/+1
|
* gdb/Jan Kratochvil2010-05-233-8/+9
| | | | | | | Code cleanup. * target.c (push_target): Return only void. Remove the return value comment. * target.h (push_target): Return only void.
* * config.h: Regenerate.Pedro Alves2010-05-231-0/+4
|
* gdb/Pedro Alves2010-05-2342-1776/+5153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* *** empty log message ***gdbadmin2010-05-231-1/+1
|
* *** empty log message ***gdbadmin2010-05-221-1/+1
|
* gdbTom Tromey2010-05-218-103/+404
| | | | | | | | | | | | | | | | | | | | * 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.
* gdbTom Tromey2010-05-218-199/+531
| | | | | | | | | | | | | | | | | * 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.
* gdbTom Tromey2010-05-214-2/+26
| | | | | | | | * 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.
* * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameterPierre Muller2010-05-212-0/+14
| | | | attribute.
* gdbTom Tromey2010-05-216-28/+1932
| | | | | | | | | | * 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.
* * dwarf2read.c (process_die): Also allow DW_TAG_const_typePierre Muller2010-05-212-0/+10
| | | | | and DW_TAG_volatile_type. (new_symbol): Likewise.
* *** empty log message ***gdbadmin2010-05-211-1/+1
|
* lib/gdb.exp: New gdb_test_no_output function.Joel Brobecker2010-05-203-6/+34
| | | | | | | | | | | | | | 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.
* * p-valprint.c (pascal_val_print): Call get_array_boundsPierre Muller2010-05-202-2/+8
| | | | to obtain the number of elements in an array.
* *** empty log message ***gdbadmin2010-05-201-1/+1
|
* * python.c (gdbpy_print_stack): Ensure output ends with a newline.Doug Evans2010-05-192-1/+9
|
* * python.c (source_python_script): Add comment.Doug Evans2010-05-192-4/+11
| | | | | (source_python_script_for_objfile): Remove unnecessary call to gdbpy_print_stack.
* 2010-05-19 Michael Snyder <msnyder@vmware.com>Michael Snyder2010-05-192-141/+21
| | | | * gdb.base/whatis.exp: Replace send_gdb with gdb_test.
* * linux-m68k-low.c (ps_get_thread_area): Don't define if kernelMaxim Kuvyrkov2010-05-192-0/+7
| | | | doesn't provide PTRACE_GET_THREAD_AREA.