aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves3-15/+195
* gdb.base/foll-vfork-exit.c: New file. * gdb.base/foll-vfork.exp (top level): New file-describing comment. (vfork_child_follow_to_exit): New procedure. (tcatch_vfork_then_child_follow): Rename as ... (tcatch_vfork_then_child_follow_exec): ... this. (tcatch_vfork_then_child_follow_exit): New procedure. (do_vfork_and_follow_parent_tests): New procedure, factored out from do_vfork_and_exec_tests. (do_vfork_and_follow_child_tests_exec): Ditto. (do_vfork_and_exec_tests): Delete. (do_vfork_and_follow_child_tests_exit): New procedure. (top level): Run tests with both the program that has the vfork child execing, and the program has the vfork child exiting.
2012-11-02Move entries to correct ChangeLog file...Pedro Alves2-66/+66
gdb/ChangeLog -> gdb/testsuite/ChangeLog
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves2-49/+53
* gdb.base/foll-vfork.exp (setup_gdb): New procedure. (check_vfork_catchpoints, vfork_parent_follow_through_step) (vfork_parent_follow_to_bp): Call it. (kill_child): Delete. (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step): Call setup_gdb. No longer call kill_child. (tcatch_vfork_then_parent_follow): Call setup_gdb. (do_vfork_and_exec_tests): Don't runto_main before calling each test procedure. (top level): Don't clean restart and set verbose before running each test procedure.
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves2-37/+39
* gdb.base/foll-vfork.exp (vfork_parent_follow_through_step) (vfork_parent_follow_to_bp) (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step) (tcatch_vfork_then_parent_follow) (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow): Use with_test_prefix.
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves3-0/+39
* gdb.base/foll-vfork.c: Add copyright header. * gdb.base/vforked-prog.c: Add copyright header.
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves2-14/+40
* gdb.base/foll-vfork.exp (vfork_and_exec_child_follow_through_step): Don't skip on non-HP/UX targets. Expect the next to only step one line on non-HP/UX targets, rather than stopping only after the exec.
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves2-8/+30
Don't hard code line numbers. * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step): Expect text from the sources instead of a line number. (vfork_parent_follow_to_bp) (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step) (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow): Use gdb_get_line_number.
2012-11-022012-11-02 Pedro Alves <palves@redhat.com>Pedro Alves2-167/+144
Modernize. * gdb.base/foll-vfork.exp: Use standard_testfile and build_executable. Pass descriptive string to untested. (vfork_parent_follow_through_step, vfork_parent_follow_to_bp) (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step) (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow) (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead of send_gdb/gdb_expect. (kill_child): New procedure. (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step): Use it.
2012-11-02gdb:Yao Qi8-180/+77
2012-11-02 Yao Qi <yao@codesourcery.com> * std-operator.def: Remove OP_LABELED. * eval.c: Remove the declaration of 'get_label'. (get_label): Remove. (evaluate_struct_tuple): Remove code handling OP_LABELED. Update comment. Remove local variable 'variantno' and related code. Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno' with 'fieldno'. * expprint.c (print_subexp_standard): Likewise. (dump_subexp_body_standard): Likewise. * parse.c (operator_length_standard): Likewise. gdb/testsuite: 2012-11-02 Yao Qi <yao@codesourcery.com> * gdb.base/setvar.exp: Test setting nested struct. * gdb.base/setvar.c (v_struct3): New.
2012-11-02*** empty log message ***gdbadmin1-1/+1
2012-11-01 Incorporate ARI web page generator into GDB sources.Pierre Muller5-0/+2398
* contrib/ari/create-web-ari-in-src.sh: New file. * contrib/ari/gdb_ari.sh: New file. * contrib/ari/gdb_find.sh: New file. * contrib/ari/update-web-ari.sh: New file.
2012-11-01 * gdb.arch/amd64-pseudo.c (main): Mark registers that the testsuiteDoug Evans2-0/+22
changes as clobbered (e.g., amd64-dword.exp) so gcc doesn't try to use them.
2012-11-01*** empty log message ***gdbadmin1-1/+1
2012-10-31 * gdbarch.c: Rebuild.Tom Tromey4-16/+10
* gdbarch.sh: Remove references to gdbarch_swap. * corelow.c (core_open): Remove obsolete comment.
2012-10-31http://sourceware.org/ml/gdb-patches/2012-10/msg00525.htmlAndrew Burgess5-2/+42
gdb/ChangeLog PR cli/14772 * c-typeprint.c (c_print_type): Don't print a space for vector types, this is handled within the suffix. (c_type_print_varspec_suffix): Add a space to vector suffix gdb/testsuite/ChangeLog PR cli/14772 * gdb.base/gnu_vector.c (union_with_vector_1) (struct_with_vector_1): Add new struct and union for testing ptype. * gdb.base/gnu_vector.exp: Add testing of ptype on vectors, and structs / unions containing vectors.
2012-10-31*** empty log message ***gdbadmin1-1/+1
2012-10-30*** empty log message ***gdbadmin1-1/+1
2012-10-29*** empty log message ***gdbadmin1-1/+1
2012-10-28*** empty log message ***gdbadmin1-1/+1
2012-10-27*** empty log message ***gdbadmin1-1/+1
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves3-2/+8
* amd64-tdep.c (amd64_relocate_instruction): Use store_unsigned_integer instead of memcpy. * i386-tdep.c (i386_relocate_instruction): Ditto.
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-27/+30
* infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>: Remove comment.
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+5
* infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>: Remove comment.
2012-10-26 * gdb.texinfo (General Query Packets): Use @itemx for QAgent.Tom Tromey2-1/+5
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+7
* target.c (target_waitstatus_to_string): Handle TARGET_WAITKIND_VFORK_DONE.
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+11
* infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2012-10-26*** empty log message ***gdbadmin1-1/+1
2012-10-25 * gdb.texinfo (General Query Packets): Use @itemx.Tom Tromey2-7/+11
2012-10-25gdb/testsuite:Yao Qi4-13/+12
* gdb.trace/ftrace.exp (test_fast_tracepoints): Use 'setup_kfail' instead of 'setup_kfail_for_target'. * gdb.base/varargs.exp: Likewise. * lib/gdb.exp (setup_kfail_for_target): Remove.
2012-10-25gdb.base/ldbl_e308.exp: Do not allow "inf" in value output.Joel Brobecker1-1/+1
That was an attempt at handling the targets where sizeof(long double) is less than 8, but the way it was implement allows the bug that this testcase verifies to come back without being noticed. gdb/testsuite/ChangeLog: * gdb.base/ldbl_e308.exp: Remove "inf" from possible expected output for "print inp" test.
2012-10-25* gdb.base/varargs.exp: PR gdb/12790 is now fixed.Mark Kettenis2-3/+4
2012-10-25* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.Mark Kettenis2-2/+4
2012-10-25*** empty log message ***gdbadmin1-1/+1
2012-10-24Add comments in ravenscar_sparc_fetch_registers.Joel Brobecker2-0/+9
gdb/ChangeLog: * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers): Add comments.
2012-10-24remote packet sent after Ravenscar inferior exitedJoel Brobecker2-2/+18
When debugging a program using the Ravenscar profile, the debugger sometimes tries to send the following packet to the remote after the inferior exited. (gdb) c Continuing. [...] Sending packet: $vCont;c:1#13...Ack Packet received: W00 Sending packet: $Hg1#e0...putpkt: write failed: Broken pipe. As the inferior exited, the remote has already disconnected, and thus the operation fails. The reason why GDB sends the package is because the ravenscar-thread module tries to updates the list of threads. But this doesn't make sense, since the program has exited. This patch fixes it. gdb/ChangeLog: * ravenscar-thread.c (ravenscar_wait): Only update the list of threads and inferior_ptid if the inferior is still alive.
2012-10-24[Ada] use lbasename when testing if file is part of Ada runtime.Joel Brobecker2-1/+7
We use a list of regular expressions to match a symtab filenames against the names of the files in the Ada runtime. These regular expressions do assume that the filename is a basename, however. So make sure to evaluate these regular expressions against the symtab's filename. Without this patch, we run into problems when the Ada runtime was built using a project file (through gprbuild). gdb/ChangeLog: * ada-lang.c (is_known_support_routine): Use lbasename when matching the symtab's filename against known_runtime_file_name_patterns.
2012-10-24[Ada] Allow assignment to wide string.Joel Brobecker7-3/+233
Given the following variable declaration... Www : Wide_String := "12345"; ... this patch allows the following assignment to work: (gdb) set variable www := "qwert" Without this patch, the debugger rejects the assignment because the size of the array elements are different: (gdb) set www := "asdfg" Incompatible types in assignment (on the lhs, we have an array of 2-bytes elements, and on the rhs, we have a standard 1-byte string). gdb/ChangeLog: * ada-lang.c (ada_same_array_size_p): New function. (ada_promote_array_of_integrals): New function. (coerce_for_assign): Add handling of arrays where the elements are integrals of a smaller size than the size of the target array element type. gdb/testsuite/ChangeLog: * gdb.ada/set_wstr: New testcase.
2012-10-24off-by-one max exponent computation in convert_doublest_to_floatformatJoel Brobecker5-1/+67
Assuming the following variable definition: long double inp = 2.0; On platforms where "long double" is a double precision IEEE flaoting point, GDB currently behaves as follow: (gdb) set variable inp = 1.6e+308l (gdb) p inp $2 = inf <<<<---- !!!! Instead, the value of "inp" should be printed as: (gdb) p inp $1 = 1.6e+308 The problem is due to a small error in the comparison of the exponent versus the maximum value this exponent can take, causing us to think that the value was too big to fit. But it isn't. gdb/ChangeLog: * doublest.c (convert_doublest_to_floatformat): Fix comparison against maximum exponent value. gdb/testsuite/ChangeLog: * gdb.base/ldbl_e308.c, gdb.base/ldbl_e308.exp: New files.
2012-10-24[Ada] Skip unwind-seh.c when searching first "user" frameJoel Brobecker2-0/+6
On x86_64-windows with GCC 4.7 (using native SEH info), the debugger behaves as follow: (gdb) catch exception unhandled Catchpoint 1: unhandled Ada exceptions (gdb) run Starting program: C:\[...]\b.exe Catchpoint 1, unhandled CONSTRAINT_ERROR at 0x000000000040cc57 in _GCC_specific_handler ([...]) at ../../../src/libgcc/unwind-seh.c:289 [...] This is after compiler the following code: procedure B is begin raise Constraint_Error; end B; ... using the following command: % gnatmake -g b When hitting the exception catchpoint, it should have gone up the stack all the way until finding the frame corresponding to procedure B. But if stopped short because unwind-seh.c is compiled with debugging information, and the debugger is also able to locate that source file. To prevent this from happening, this patch adds unwind-seh.c to the list of files that should be ignored, regardless of other factors. gdb/ChangeLog: * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for "unwind-seh.c".
2012-10-24[Ada] Pointers to unconstrained arrays inside variant record.Joel Brobecker7-14/+209
gdb/ChangeLog: * ada-lang.c (ada_template_to_fixed_record_type_1): Do not strip typedef layer when computing the fixed type's field type, only when computing its size. gdb/testsuite/ChangeLog: * gdb.ada/unc_arr_ptr_in_var_rec: New testcase.
2012-10-24* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.Mark Kettenis2-6/+4
2012-10-24PR gdb/12783Mark Kettenis2-0/+9
* i386-tdep.c (i386_return_value): Handle complex double and long double.
2012-10-24gdb/testsuite/Jan Kratochvil2-2/+11
* gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail_for_target for -m32 mode.
2012-10-24[Windows] run program with space in path to exe.Joel Brobecker2-4/+14
The following works... % gdb c:\path to exe\foo.exe (gdb) start ... unless a file or directory called "c:\path" or "c:\path to" exist. This is what happens in the latter case: (gdb) start [...] Error creating process C:\path to exe\foo.exe (error 193). This is because we are calling CreateProcess (et al) without specifying the lpApplicationName, so Windows determines the name of the executable using the second argument, which is the entire command line. This command line is a space-separated list of tokens, so the space in the path to the executable which potentially creates an ambiguity. The ambiguity is automatically resolved unless we're in the situation above. The solution, as suggested by the MSDN documentation for CreateProcess is to quote the executable name. gdb/ChangeLog: * windows-nat.c (windows_create_inferior) [!__CYGWIN__]: New local variable args_len. Quote the name of the executable when computing the command line.
2012-10-24*** empty log message ***gdbadmin1-1/+1
2012-10-23* gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800Mark Kettenis2-7/+5
are now fixed.
2012-10-23PR gdb/12796Mark Kettenis3-0/+53
PR gdb/12798 PR gdb/12800 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and AMD64_FTAG_REGNUM. * amd64-tdep.c (amd64_classify): Classify complex types. (amd64_return_value): Handle the COMPLEX_X87 class.
2012-10-23gdb/testsuite:Yao Qi2-1/+5
* gdb.base/info-os.exp: Resume the inferior until it exits.
2012-10-23Change target-wide-charset to UTF-16 on ppc-aix.Joel Brobecker2-0/+15
On ppc-aix, type wchar_t is 2 bytes long, so override the default target-wide-charset (UTF-32) with UTF-16. This allows us to print wide characters correctly. gdb/ChangeLog: * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function. (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2012-10-23Set default target-wide-charset setting to "UTF-16" for x86_64-windows.Joel Brobecker2-0/+17
Type wchar_t is only 2 bytes long on x86_64-windows. gdb/ChangeLog: * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New function. (amd64_windows_init_abi): Set auto_wide_charset gdbarch method to amd64_windows_auto_wide_charset.