Pedro Alves
c7dd36a172
* gdb.mi/mi-var-child.c (do_children_tests): Add 'dummy' integer
...
and 'dummy_ptr' integer pointer. Initialize struct_declarations
with dummy_ptr's address.
* gdb.mi/var-cmd.c (do_children_tests): Likewise.
* gdb.mi/mi-var-child.exp: int_ptr_ptr is now always "editable" on
all targets.
* gdb.mi/mi2-var-child.exp: Likewise.
2008-01-17 14:34:22 +00:00
Joel Brobecker
39d5313e31
* gdb.ada/null_array: New test program.
...
* gdb.ada/null_array.exp: New testcase.
2008-01-09 17:05:26 +00:00
Luis Machado
0aea4bf354
* printcmd.c (printf_command): Add seen_big_h, seen_big_d and
...
seen_double_big_d, treat the new H, D, and DD modifiers as length
modifiers.
* doc/gdb.texinfo (Output): Update documentation on using printf with DFP
types.
* testsuite/gdb.base/printcmds.exp (test_printf_with_dfp): Update
printf calls with required float modifiers.
2008-01-09 13:47:59 +00:00
Joel Brobecker
0b3549005a
* gdb.ada/funcall_param: New test program.
...
* gdb.ada/funcall_param.exp: New testcase.
2008-01-08 19:39:34 +00:00
Joel Brobecker
cdb7f5d4dc
* gdb.ada/arrayparam: New test program.
...
* gdb.ada/arrayparam.exp: New testcase.
2008-01-08 19:31:36 +00:00
Joel Brobecker
88e2547f13
* gdb.ada/print_pc.exp: Add verification of where gdb_start_cmd
...
landed. Should also fix random failures in the test following it.
2008-01-08 18:17:30 +00:00
Thiago Jung Bauermann
f6867ce08c
* gdb.base/dfp-exprs.exp (test_dfp_arithmetic_expressions): Add tests
...
for expressions with decimal float values.
(test_dfp_conversions): New function to test casts to and from
decimal float types.
Call test_dfp_conversions.
* gdb.base/dfp-test.c (struct decstruct): Add float4 and double8
elements.
(main): Initialize ds.float4 and ds.double8 elements.
* gdb.base/dfp-test.exp (d32_set_tests): Fix typo. Adjust expect
string to new error message.
(d64_set_tests): Likewise.
(d128_set_tests): Likewise.
Add tests for expressions with decimal float variables. Add tests for
conversions to and from decimal float types.
2008-01-07 22:34:49 +00:00
Joel Brobecker
f9c112822a
* gdb.ada/packed_tagged/comp_bug.adb: New file.
...
* gdb.ada/packed_tagged.exp: New testcase.
2008-01-05 15:48:08 +00:00
Joel Brobecker
0ecbca72c8
* gdb.ada/homonym/homonym.ads, gdb.ada/homonym/homonym.adb,
...
gdb.ada/homonym/homonym_main.adb: New files.
* gdb.ada/homonym.exp: New testcase.
2008-01-04 21:40:34 +00:00
Joel Brobecker
c18d3d891b
* gdb.ada/packed_array.exp: Add testing of references to
...
a packed array.
2008-01-04 20:47:16 +00:00
Joel Brobecker
ecc7085baf
* gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
...
New files.
* gdb.ada/type_coercion.exp: New testcase.
2008-01-04 20:07:40 +00:00
Joel Brobecker
c474c9229e
* gdb.ada/tagged/pck.ads, gdb.ada/tagged/pck.adb,
...
gdb.ada/tagged/foo.adb: New file.
* gdb.ada/tagged.exp: New testcase.
2008-01-04 20:02:29 +00:00
Joel Brobecker
9005b927e2
* gdb.ada/ptype_field/pck.ads, gdb.ada/ptype_field/pck.adb,
...
gdb.ada/ptype_field/foo.adb: New files.
* gdb.ada/ptype_field.exp: New testcase.
2008-01-04 15:10:10 +00:00
Joel Brobecker
1a6aaad875
* gdb.ada/print_pc.exp: New testcase.
2008-01-03 19:22:20 +00:00
Joel Brobecker
0ef22f5306
* gdb.ada/taft_type/pck.ads, gdb.ada/taft_type/pck.adb,
...
gdb.ada/taft_type/p.adb: New files.
* gdb.ada/taft_type.exp: New testcase.
2008-01-03 19:19:22 +00:00
Joel Brobecker
1689ecf896
* gdb.ada/array_bounds/bar.adb: New file.
...
* gdb.ada/array_bounds.exp: New testcase.
2008-01-03 14:19:52 +00:00
Joel Brobecker
a4d0b9c3e1
* gdb.ada/arrayptr/pck.ads, gdb.ada/arrayptr/pck.adb,
...
gdb.ada/arrayptr/foo.adb: New files.
* gdb.ada/arrayptr.exp: New testcase.
2008-01-03 13:15:43 +00:00
Joel Brobecker
a31ace0071
* gdb.base/set-lang-auto.exp: New testcase.
2008-01-03 04:26:57 +00:00
Joel Brobecker
a97fced314
* gdb.ada/fun_addr/foo.adb: New file.
...
* gdb.ada/fun_addr.exp: New testcase.
2008-01-03 04:12:24 +00:00
Jan Kratochvil
ef29ce1ab3
* linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
...
* gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c:
New files
2008-01-02 13:36:38 +00:00
Joel Brobecker
0fafefe315
* array_subscript_addr/p.adb: New file.
...
* array_subscript_addr.exp: New testcase.
2008-01-02 12:06:38 +00:00
Joel Brobecker
c4359f8d00
* gdb.ada/str_cmp_ref/pck.ads, gdb.ada/str_cmp_ref/foo.adb:
...
New files.
* gdb.ada/str_cmp_ref.exp: New testcase.
2008-01-02 11:25:01 +00:00
Joel Brobecker
1aa1b15b3c
* gdb.ada/fun_in_declare/pck.ads, gdb.ada/fun_in_declare/pck.adb,
...
gdb.ada/fun_in_declare/foo.adb: New files.
* gdb.ada/fun_in_declare.exp: New testcase.
2008-01-01 12:43:41 +00:00
Joel Brobecker
81c9b2cf53
* gdb.ada/ref_param/foo.adb, gdb.ada/ref_param/pck.adb,
...
gdb.ada/ref_param/pck.ads: New files.
* gdb.ada/ref_param.exp: New testcase.
2008-01-01 11:42:53 +00:00
Joel Brobecker
319e46745f
* gdb.ada/interface/types.ads, gdb.ada/interface/types.adb,
...
gdb.ada/interface/foo.adb: New files.
* gdb.ada/interface.exp: New testcase.
2008-01-01 07:25:45 +00:00
Jim Blandy
ef682c56ef
* gdb.base/multi-forks.exp: Consume all output from child
...
processes before proceeding to next test.
2007-12-31 21:34:48 +00:00
Jim Blandy
f6f3eb6ccf
* configure: Regenerated.
2007-12-29 14:01:30 +00:00
Joel Brobecker
f652e42f28
* gdb.ada/fixed_cmp/pck.ads, gdb.ada/fixed_cmp/pck.adb,
...
gdb.ada/fixed_cmp/fixed.adb: New files.
* gdb.ada/fixed_cmp.exp: New testcase.
2007-12-28 06:32:46 +00:00
Joel Brobecker
6943e5962a
* gdb.ada/boolean_expr.exp: New testcase.
2007-12-28 06:17:49 +00:00
Jim Blandy
aad9a19303
* gdb.base/multi-forks.exp: Doc fix.
2007-12-26 17:11:16 +00:00
Joel Brobecker
fb5f3683c3
* gdb.ada/Makefile.in (EXECUTABLES): Update list.
...
* gdb.ada/char_param.exp: Do not compile our test program with
-gnata, this is unnecessary.
* gdb.ada/char_param/pck.ads: Remove unnecessary "with".
2007-12-26 14:21:53 +00:00
Joel Brobecker
384e4a9cc2
* gdb.ada/print_chars/pck.ads, gdb.ada/print_chars/pck.adb,
...
gdb.ada/print_chars/foo.adb: New files.
* gdb.ada/print_chars.exp: New testcase.
2007-12-24 17:13:32 +00:00
Joel Brobecker
01e044f750
* gdb.ada/char_param/pck.ads, gdb.ada/char_param/pck.adb,
...
gdb.ada/char_param/foo.adb: New files.
* gdb.ada/char_param.exp: New testcase.
2007-12-24 07:57:00 +00:00
Jim Blandy
0ce17860b0
* gdb.asm/asm-source.exp: Use gdb_get_line_number, instead of
...
hard-coding source line numbers into the test.
* gdb.asm/asmsrc1.s, gdb.asm/asmsrc2.s: Add comments for
gdb_get_line_number to find.
2007-12-22 06:44:28 +00:00
Joel Brobecker
919809b973
* gdb.base/ptype.c (highest): New struct type.
...
(the_highest): New variable of that type.
(main): Add dummy assignment to a field of variable the_highest.
* gdb.base/ptype.exp: Test type printing of our new variable.
2007-12-22 05:28:19 +00:00
Pierre Muller
abc8a88dc5
2007-12-19 Pierre Muller <muller@ics-u-strasbg.fr>
...
* (gdb.base/watch_thread_num.exp): Add breakpoint at thread_function
and record first explicitly generated thread number.
Use that thread number for thread specific watchpoint test.
Add iteration number to repetitive tests.
2007-12-19 14:40:37 +00:00
Carlos Eduardo Seo
5158f3e312
* gdb.base/expand-psymtabs.c: New testcase
...
source file.
* gdb.base/expand-psymtabs.exp: New testcase
expect file.
2007-12-17 14:56:33 +00:00
Luis Machado
37e4754d76
* breakpoint.c: (watch_command_1): Parse additional optional
...
"thread" parameter to the watchpoint command and set the
"thread" member of the breakpoint struct.
* doc/gdb.texinfo: Add new parameter's description.
* testsuite/gdb.base/watch_thread_num.c: New testcase source file.
* testsuite/gdb.base/watch_thread_num.exp: New testcase expect file.
2007-12-17 12:32:23 +00:00
Joel Brobecker
551e5d04d1
* gdb.ada/frame_args/foo.adb: New file.
...
* gdb.ada/frame_args/pck.ads: New file.
* gdb.ada/frame_args/pck.adb: New file.
* gdb.ada/frame_args.exp: New testcase.
2007-12-17 07:26:08 +00:00
Joel Brobecker
a05ee09706
* gdb.base/frame-args.c: New file.
...
* gdb.base/frame-args.exp: New testcase.
2007-12-17 07:18:03 +00:00
Joseph Myers
c162e8c9a4
2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
...
Joseph Myers <joseph@codesourcery.com>
* configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
*-*-solaris2.1[[0-9]].
* configure: Regenerate.
* procfs.c (proc_set_current_signal): If redelivering a signal,
reuse the current siginfo if possible.
testsuite:
* gdb.base/siginfo-addr.exp, gdb.base/siginfo-addr.c: New.
2007-12-16 22:19:21 +00:00
Vladimir Prus
afe8ab2206
Add support for pending breakpoints in MI.
...
* gdb.h (gdb_breakpoint): Add parameter pending.
* breakpoint.c (gdb_breakpoint): Add parameter pending.
* mi/mi-cmd-break.c (mi_break_insert): Change
comment to refer to manual. Add support for
the -f flag, for pending breakpoint.
2007-12-14 18:15:47 +00:00
Jim Blandy
dfdfb3ca98
Remove unused support for target-based exception catching.
...
* target.h (struct target_ops): Delete
to_enable_exception_callback and to_get_current_exception_event
members.
(target_enable_exception_callback)
(target_get_current_exception_event): Delete macros.
* target.c (update_current_target): Remove code to inherit and
default those members.
(debug_to_enable_exception_callback)
(debug_to_get_current_exception_event): Delete functions.
(setup_target_debug): Don't install those methods.
* inf-child.c (inf_child_enable_exception_callback)
(inf_child_get_current_exception_event): Delete dummy functions.
(inf_child_target): Don't install them in the target vector.
* breakpoint.h (enum bptype): Delete bp_catch_catch,
bp_catch_throw.
* breakpoint.c (cover_target_enable_exception_callback)
(ep_is_exception_catchpoint, create_exception_catchpoint): Delete
functions.
(insert_bp_location, update_breakpoints_after_exec)
(remove_breakpoint, ep_is_catchpoint, print_it_typical)
(bpstat_stop_status, bpstat_what)
(bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
(user_settable_breakpoint, allocate_bp_location)
(disable_watchpoints_before_interactive_call_start)
(enable_watchpoints_after_interactive_call_stop, mention)
(delete_breakpoint, breakpoint_re_set_one, disable_command)
(enable_command): Remove exception catchpoint cases.
(catch_exception_command_1): Don't try target-based exception
handling.
* stack.c (catch_info): Call print_frame_label_vars
unconditionally.
2007-12-13 02:00:09 +00:00
Jan Kratochvil
b7fca99000
* lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
...
must be set to binary.
2007-12-10 14:32:50 +00:00
Pedro Alves
6a1afc1e2a
* lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
2007-12-09 11:21:21 +00:00
Daniel Jacobowitz
a6b151f187
* remote.c (remote_cmdlist): New variable.
...
(PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
(PACKET_vFile_close, PACKET_vFile_unlink): New constants.
(remote_buffer_add_string, remote_buffer_add_bytes)
(remote_buffer_add_int, remote_hostio_parse_result)
(remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
(remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
(remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
(remote_hostio_close_cleanup, remote_file_put, remote_file_get)
(remote_file_delete, remote_put_command, remote_get_command)
(remote_delete_command, remote_command): New functions.
(_initialize_remote): Register new packets and commands.
* Makefile.in (gdb_fileio_h): New variable.
(remote.o): Update.
(SUBDIR_MI_OBS): Add mi-cmd-target.o.
(SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
(mi-cmd-target.o): New rule.
* mi/mi-cmd-target.c: New file.
* mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
and target-file-put.
* mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
(mi_cmd_target_file_delete): Declare.
* remote.h (remote_file_put, remote_file_get, remote_file_delete):
Declare.
* NEWS: Describe new file transfer support.
* gdb.texinfo (Debugging Programs with Multiple Processes): Correct
formatting.
(Remote Debugging): Add File Transfer section.
(Remote Configuration): Document Host I/O packets.
(GDB/MI): Add GDB/MI File Transfer Commands section.
(Remote Protocol): Add Host I/O Packets section.
(Packets): Add vFile.
* Makefile.in (OBS): Add hostio.o.
(hostio.o): New rule.
* server.h (handle_vFile): Declare.
* hostio.c: New file.
* server.c (handle_v_requests): Take packet_len and new_packet_len
for binary packets. Call handle_vFile.
(main): Update call to handle_v_requests.
* gdb.server/file-transfer.exp, gdb.server/transfer.txt,
gdb.mi/mi-file-transfer.exp: New.
2007-11-30 21:50:19 +00:00
Jan Kratochvil
4303944388
gdb/
...
* dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
code with its variables OBJFILE, CU_HEADER and OBFD into ...
(dwarf2_ranges_read): ... a new function.
(read_partial_die): Implemented the parsing of `DW_AT_ranges'.
gdb/testsuite/
* gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.
2007-11-25 21:40:39 +00:00
Maciej W. Rozycki
0ef2251b99
* gdb.trace/backtrace.exp: Fix a typo.
...
* gdb.trace/circ.exp: Likewise.
* gdb.trace/collection.exp: Likewise.
* gdb.trace/limits.exp: Likewise.
* gdb.trace/report.exp: Likewise.
* gdb.trace/tfind.exp: Likewise.
* gdb.trace/while-dyn.exp: Likewise.
2007-11-22 16:03:00 +00:00
Nick Roberts
5443631e12
*** empty log message ***
2007-11-20 19:59:05 +00:00
Ulrich Weigand
a4ce5b0d02
* config/alpha/alpha-linux.mt: Remove file.
...
* config/alpha/alpha.mt: Remove file.
* config/alpha/alpha-osf1.mt: Remove file.
* config/alpha/fbsd.mt: Remove file.
* config/alpha/nbsd.mt: Remove file.
* config/alpha/obsd.mt: Remove file.
* config/arm/embed.mt: Remove file.
* config/arm/linux.mt: Remove file.
* config/arm/nbsd.mt: Remove file.
* config/arm/obsd.mt: Remove file.
* config/arm/wince.mt: Remove file.
* config/avr/avr.mt: Remove file.
* config/cris/cris.mt: Remove file.
* config/frv/frv.mt: Remove file.
* config/h8300/h8300.mt: Remove file.
* config/i386/cygwin.mt: Remove file.
* config/i386/fbsd64.mt: Remove file.
* config/i386/fbsd.mt: Remove file.
* config/i386/i386gnu.mt: Remove file.
* config/i386/i386.mt: Remove file.
* config/i386/i386sol2.mt: Remove file.
* config/i386/linux64.mt: Remove file.
* config/i386/linux.mt: Remove file.
* config/i386/mingw.mt: Remove file.
* config/i386/nbsd64.mt: Remove file.
* config/i386/nbsd.mt: Remove file.
* config/i386/nto.mt: Remove file.
* config/i386/obsd64.mt: Remove file.
* config/i386/obsd.mt: Remove file.
* config/i386/sol2-64.mt: Remove file.
* config/ia64/ia64.mt: Remove file.
* config/ia64/linux.mt: Remove file.
* config/iq2000/iq2000.mt: Remove file.
* config/m32c/m32c.mt: Remove file.
* config/m32r/linux.mt: Remove file.
* config/m32r/m32r.mt: Remove file.
* config/m68hc11/m68hc11.mt: Remove file.
* config/m68k/linux.mt: Remove file.
* config/m68k/monitor.mt: Remove file.
* config/m68k/nbsd.mt: Remove file.
* config/m68k/obsd.mt: Remove file.
* config/m88k/obsd.mt: Remove file.
* config/mep/mep.mt: Remove file.
* config/mips/embed.mt: Remove file.
* config/mips/irix5.mt: Remove file.
* config/mips/irix6.mt: Remove file.
* config/mips/linux.mt: Remove file.
* config/mips/nbsd.mt: Remove file.
* config/mips/obsd64.mt: Remove file.
* config/mn10300/linux.mt: Remove file.
* config/mn10300/mn10300.mt: Remove file.
* config/mt/mt.mt: Remove file.
* config/pa/hppahpux.mt: Remove file.
* config/pa/hppa.mt: Remove file.
* config/pa/linux.mt: Remove file.
* config/pa/obsd.mt: Remove file.
* config/powerpc/aix.mt: Remove file.
* config/powerpc/linux.mt: Remove file.
* config/powerpc/nbsd.mt: Remove file.
* config/powerpc/obsd.mt: Remove file.
* config/powerpc/ppc-eabi.mt: Remove file.
* config/s390/s390.mt: Remove file.
* config/score/embed.mt: Remove file.
* config/sh/embed.mt: Remove file.
* config/sh/linux.mt: Remove file.
* config/sh/nbsd.mt: Remove file.
* config/sh/obsd.mt: Remove file.
* config/sh/sh64.mt: Remove file.
* config/sparc/embed.mt: Remove file.
* config/sparc/fbsd.mt: Remove file.
* config/sparc/linux64.mt: Remove file.
* config/sparc/linux.mt: Remove file.
* config/sparc/nbsd64.mt: Remove file.
* config/sparc/nbsd.mt: Remove file.
* config/sparc/obsd64.mt: Remove file.
* config/sparc/obsd.mt: Remove file.
* config/sparc/sol2-64.mt: Remove file.
* config/sparc/sol2.mt: Remove file.
* config/sparc/sparc64.mt: Remove file.
* config/sparc/sparc.mt: Remove file.
* config/spu/spu.mt: Remove file.
* config/v850/v850.mt: Remove file.
* config/vax/nbsd.mt: Remove file.
* config/vax/obsd.mt: Remove file.
* config/vax/vax.mt: Remove file.
* config/xstormy16/xstormy16.mt: Remove file.
* config/xtensa/xtensa.mt: Remove file.
* configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
(gdb_target): Likewise.
(gdb_target_obs): Document. Set for every target to contents
of TDEPFILES in former .mt makefile fragment.
* configure.ac (TARGET_OBS): Define.
(target_makefile_frag, gdb_target_cpu): Do not define.
* configure: Regenerate.
* Makefile.in (MT_FLAGS): Remove.
(GLOBAL_CFLAGS): Update.
(TARGET_OBS): Substitute from configure.
(DEPFILES): Remove TDEPFILES, add TARGET_OBS.
(@target_makefile_frag@): Remove.
doc/ChangeLog:
* Makefile.in (Makefile): Do not depend on target_makefile_frag.
testsuite/ChangeLog:
* Makefile.in (Makefile): Do not depend on target_makefile_frag.
(target_cpu): Remove.
2007-11-17 00:54:18 +00:00