Joel Brobecker
45ac276db3
* gdb.texinfo (Ada Tasks): Add documentation about task-specific
...
breakpoints.
(Set Breaks): Add reference to thread-specific and task-specific
breakpoints.
2009-03-31 16:51:02 +00:00
Joel Brobecker
02d9a9cebf
* gdb.ada/tasks: New testcase.
2009-03-31 16:48:49 +00:00
Joel Brobecker
4a306c9a89
Provide support for (Ada) task-specific breakpoints.
...
* ada-lang.h (ada_get_task_number): Add declaration.
(breakpoint_ada_task_match): Delete declaration.
* ada-tasks.c (ada_get_task_number): Make non-static.
* breakpoint.h (struct breakpoint): Add field "task".
* breakpoint.c (print_one_breakpoint_location): Add handling of
task-specific breakpoints.
(create_breakpoint, create_breakpoints, find_condition_and_thread):
New parameter "task".
(break_command_really): Update calls to find_condition_and_thread
and create_breakpoints.
(breakpoint_re_set_one): Update call to find_condition_and_thread.
Set b->task.
2009-03-31 16:44:18 +00:00
Joel Brobecker
32cd1edcd2
* gdb.texinfo (Ada Tasks): Remove the documentation about
...
the "Running" state, as this state has been eliminated.
Now all runnable tasks are shown as "Runnable".
2009-03-31 16:33:37 +00:00
Joel Brobecker
4a5a99175a
* ada-tasks.c (short_task_info): Eliminate the "Running" task state.
2009-03-31 16:31:24 +00:00
Pedro Alves
bad34192e5
* remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
...
if the thread's ptid without a thread id field is in the list
before calling thread_change_ptid.
(extended_remote_attach_1): In non-stop mode, do not rely on
querying the current thread, instead, query the thread list, and
select the first thread of the process.
* gdbthread.h (first_thread_of_process): Declare.
* thread.c (first_thread_of_process): Define.
2009-03-31 15:23:57 +00:00
Nick Clifton
e352511738
PR 9992
...
* configure.in: Import Solaris specific largefile test from
bfd/configure.in.
* configure: Regenerate.
2009-03-31 08:08:33 +00:00
Stan Shebs
1042e4c058
2009-03-30 Stan Shebs <stan@codesourcery.com>
...
Make tracepoints into a type of breakpoint.
* breakpoint.h (enum bptype): Add bp_tracepoint.
(struct breakpoint): Add fields step_count, pass_count, actions.
(get_tracepoint, get_tracepoint_by_number): Declare.
(all_tracepoints): Declare.
* breakpoint.c: Include tracepoint.h, readline.h.
(ALL_TRACEPOINTS): Move here from tracepoint.c.
(tracepoint_count): Ditto.
(should_be_inserted): GDB does not insert tracepoints itself.
(print_it_typical): Add tracepoint case.
(bpstat_what): Ditto.
(print_one_breakpoint_location): Ditto, and add printing for
pass count, step count, and action list.
(user_settable_breakpoint): Add tracepoint case.
(allocate_bp_location): Ditto.
(set_breakpoint_location_function): Ditto.
(disable_breakpoints_in_shlibs): Ditto.
(mention): Ditto.
(break_command_really): Add argument traceflag, use to choose
basic breakpoint type.
(break_command_1): Pass extra argument.
(set_breakpoint, handle_gnu_v3_exceptions): Ditto.
(breakpoint_re_set_one): Add tracepoint case.
(disable_command, enable_command): Ditto.
(set_tracepoint_count): Move here from tracepoint.c.
(trace_command): Move here from tracepoint.c and use
break_command_really.
(tracepoints_info): Move here from tracepoint.c and call
breakpoints_info.
(enable_trace_command): Move here from tracepoint.c and call
enable_command.
(disable_trace_command): Move here from tracepoint.c and call
disable_command.
(delete_trace_command): Move here from tracepoint.c and call
delete_breakpoint.
(trace_pass_command): Move here from tracepoint.c.
(get_tracepoint_by_number): Ditto.
(tracepoint_save_command): Ditto.
(get_tracepoint): New function.
(all_tracepoints): New function.
(_initialize_breakpoint): Move tracepoint init from tracepoint.c,
deprecate "enable trace" and "disable trace" commands.
* tracepoint.h (struct tracepoint): Remove.
(tracepoint_chain): Remove decl.
(deprecated_create_tracepoint_hook): Remove decl.
(deprecated_delete_tracepoint_hook): Remove decl.
(deprecated_modify_tracepoint_hook): Remove decl.
(ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
(free_actions): Update signature.
(validate_actionline): Update signature.
(end_actions_pseudocommand): Declare.
(while_stepping_pseudocommand): Declare.
* tracepoint.c: Include breakpoint.h.
(tracepoint_chain, tracepoint_count): Remove.
(free_actions, make_cleanup_free_actions): Update signature.
(trace_command, set_raw_tracepoint): Remove.
(trace_mention): Remove.
(tracepoints_info): Remove.
(tracepoint_operation, map_args_over_tracepoints): Remove.
(get_tracepoint_by_number): Remove.
(enable_trace_command, disable_trace_command): Remove.
(delete_trace_command, trace_pass_command): Remove.
(trace_actions_command, read_actions): Update signature.
(validate_actionline): Update signature, use bp loc.
(encode_actions): Ditto.
(download_tracepoint): New function, body of trace_start_command.
(trace_start_command): Call it, use all_tracepoints.
(tracepoint_save_command): Remove.
(tracepoint_dump_command): Use get_tracepoint.
(end_actions_pseudocommand): Make globally visible.
(while_stepping_pseudocommand): Ditto.
(_initialize_tracepoint): Move command definitions to breakpoint.c.
doc/
* gdb.texinfo (Tracepoints): Describe tracepoints as a
special case of breakpoints.
(Enable and Disable Tracepoints): Mention deprecation.
(Listing Tracepoints): Update description and example.
testsuite/
* gdb.trace/actions.exp: Update to match new info trace format.
* gdb.trace/deltrace.exp: Ditto.
* gdb.trace/infotrace.exp: Ditto.
* gdb.trace/passcount.exp: Ditto.
* gdb.trace/save-trace.exp: Ditto.
* gdb.trace/while-stepping.exp: Ditto.
* gdb.trace/tracecmd.exp: Ditto, plus don't allow pending option.
gdbtk/
* generic/gdbtk-bp.c (gdb_actions_command): Update to handle
tracepoints as breakpoints.
(gdb_get_tracepoint_info): Ditto, plus use get_tracepoint and
breakpoint locations.
(tracepoint_exists): Ditto, plus use all_tracepoints.
2009-03-31 05:08:37 +00:00
Dave Korn
adfd732835
* doc/internals.texi: Fix trivial syntax errors.
2009-03-31 04:57:48 +00:00
DJ Delorie
c301e70067
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
...
relocs when doing a relocatable link.
2009-03-31 01:42:29 +00:00
Alan Modra
4a19ce7eb9
daily update
2009-03-31 00:00:09 +00:00
gdbadmin
4da75b00e8
*** empty log message ***
2009-03-31 00:00:03 +00:00
Ian Lance Taylor
154b857c95
* ffsll.c (ffsll): Correct implementation.
2009-03-30 23:17:11 +00:00
Richard Sandiford
93abc97ad2
binutils/
...
* MAINTAINERS: Add self.
2009-03-30 20:39:43 +00:00
Thiago Jung Bauermann
f8f6f20b6e
gdb/
...
Expose frames to Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
(SUBDIR_PYTHON_SRCS): Add python-frame.c.
(python-frame.o): New target.
* python/python-frame.c: New file.
* python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
gdbpy_initialize_frames): New prototypes.
* python/python.c (_initialize_python): Call gdbpy_initialize_frames.
(GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
entries.
* stack.c (find_frame_funname): New function, factored out of
print_frame.
(print_frame): Call find_frame_funname.
* stack.h (find_frame_funname): Add prototype.
gdb/doc/
* gdb.texinfo (Frames in Python): New node.
(Python API): Update.
gdb/testsuite/
* gdb.python/python-frame.c: New file.
* gdb.python/python-frame.exp: New file.
2009-03-30 19:54:33 +00:00
Joseph Myers
d460e92e41
gas/testsuite:
...
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New.
opcodes:
* arm-dis.c (print_insn): Also check section matches in backwards
search for mapping symbol.
2009-03-30 14:41:31 +00:00
DJ Delorie
87d32bb7b0
merge from gcc
2009-03-30 03:01:38 +00:00
DJ Delorie
f2be950300
merge from gcc
2009-03-30 00:01:29 +00:00
gdbadmin
4104b747d5
*** empty log message ***
2009-03-30 00:00:33 +00:00
Alan Modra
3d474056d3
daily update
2009-03-30 00:00:05 +00:00
Thiago Jung Bauermann
77316f4c7e
Remove unused value_object attribute `owned_by_gdb'.
...
* python/python-value.c (value_object): Remove owned_by_gdb
attribute.
(valpy_dealloc): Remove reference to self->owned_by_gdb.
(valpy_new): Likewise.
(value_to_value_object): Likewise.
2009-03-29 21:19:40 +00:00
Thiago Jung Bauermann
c0c6f77785
gdb/
...
Change gdb.Value.address from a method to an attribute.
* python/python-value.c (value_object): Add `address' element.
(valpy_dealloc): Decrement reference to self->address if set.
(valpy_new): Initialize val_obj->address.
(valpy_address): Rename to ...
(valpy_get_address): ... this. Change signature from method to
attribute. Update self->address if not set.
(value_to_value_object): Initialize val_obj->address.
(value_object_getset): Add `address' element.
(value_object_methods): Remove `address' element.
gdb/testsuite/
* gdb.python/python-value.exp: Add tests for the address
attribute.
gdb/doc/
* gdb.texinfo (Values From Inferior): Change gdb.Value.address
from a method to an attribute.
2009-03-29 21:11:11 +00:00
Andreas Schwab
3cb5190557
* gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.
2009-03-29 14:52:54 +00:00
Andreas Schwab
c2c8d75b34
* observer.sh: Set LANG/LC_ALL to C, not c.
2009-03-29 13:36:27 +00:00
DJ Delorie
3481f392b0
merge from gcc
2009-03-29 02:15:39 +00:00
gdbadmin
9259819687
*** empty log message ***
2009-03-29 00:00:33 +00:00
Alan Modra
f6bd35909f
daily update
2009-03-29 00:00:06 +00:00
Mark Mitchell
3895f85287
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
...
"ERROR:", in error messages.
* cpu-arm.c (bfd_arm_merge_machines): Likewise.
* elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
* elf32-arm.c (tag_cpu_arch_combine): Likewise.
(elf32_arm_merge_eabi_attributes): Likewise.
(elf32_arm_merge_private_bfd_data): Likewise.
2009-03-28 23:19:00 +00:00
Ian Lance Taylor
fd03461a93
* ffsll.c: New file.
...
* configure.ac: Call AC_REPLACE_FUNCS on ffsll.
* gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
* ftruncate.c (ftruncate): Declare before definition.
* mremap.c (mremap): Likewise.
* pread.c (pread): Likewise.
* configure, Makefile.in, config.in: Rebuild.
2009-03-28 05:22:30 +00:00
Kevin Buettner
1b31f75d63
* mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
...
`char' is unsigned.
2009-03-28 04:56:42 +00:00
Pedro Alves
f91d3df5c6
* remote.c (remote_stop_ns): If multi-process extensions are off,
...
and GDB is requesting the whole process to stop, sent "vCont;t",
not "vCont;t:-1"
2009-03-28 01:15:13 +00:00
Pedro Alves
7b0e805131
* inf-loop.c (inferior_event_handler): Avoid calling is_running on
...
null inferior_ptid.
2009-03-28 00:58:31 +00:00
Alan Modra
4af38be89b
daily update
2009-03-28 00:00:05 +00:00
gdbadmin
11fe854022
*** empty log message ***
2009-03-28 00:00:03 +00:00
Ian Lance Taylor
2f35ab9b82
* mremap.c: New file.
...
* configure.ac: Call AC_REPLACE_FUNCS on mremap.
* gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined.
(mremap): Declare if HAVE_MREMAP is not defined.
* configure, Makefile.in, config.in: Rebuild.
2009-03-27 23:21:09 +00:00
DJ Delorie
10e1b6bb90
merge from gcc
2009-03-27 23:07:30 +00:00
Cary Coutant
33aea2fd65
* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
...
position independent.
* sparc.cc (Target_sparc::check_non_pic): Likewise.
* x86_64.cc (Target_x86_64::check_non_pic): Likewise.
2009-03-27 18:19:09 +00:00
Nick Clifton
4a149252f1
* dwarf.c (display_debug_ranges): Add the base address to the
...
displayed values for 'Begin' and 'End'.
2009-03-27 14:27:02 +00:00
Eli Zaretskii
20ec62945d
Add one more tweak for readline/examples.
2009-03-27 13:59:38 +00:00
Eli Zaretskii
5362e076aa
* config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
2009-03-27 13:38:31 +00:00
Eli Zaretskii
47afba5fc1
* djunpack.bat: Use ".." quoting in Sed command, for the sake of
...
Windows builds of Sed.
2009-03-27 13:37:09 +00:00
Nick Clifton
ea882e8744
* section.c (bfd_get_section_contents): Detect and handle the case
...
where a section has the SEC_IN_MEMORY flag set but no actual
contents allocated.
2009-03-27 11:38:30 +00:00
Nick Clifton
c0157db47e
Remove merge markers
2009-03-27 08:26:18 +00:00
Doug Evans
88fc996f58
* thread.c (do_restore_current_thread_cleanup): Redo test for
...
whether to restore old->inferior_ptid.
* gdb.mi/mi-nonstop-exit.exp: New file.
* gdb.mi/non-stop-exit.c: New file.
2009-03-27 02:44:51 +00:00
H.J. Lu
d34b50065a
2009-03-26 H.J. Lu <hongjiu.lu@intel.com>
...
* i386-dis.c (get_valid_dis386): Abort on unhandled table.
2009-03-27 00:28:32 +00:00
gdbadmin
5cff901f31
*** empty log message ***
2009-03-27 00:00:34 +00:00
Alan Modra
cafcb80735
daily update
2009-03-27 00:00:10 +00:00
Tom Tromey
56ef84b1f1
gdb
...
* breakpoint.c (resolve_sal_pc): Preserve original line number
when skipping prologue.
gdb/testsuite
Update for change to prologue skipping:
* gdb.mi/mi2-simplerun.exp: Update.
* gdb.mi/mi2-break.exp: Update.
* gdb.mi/mi-simplerun.exp: Update.
* gdb.mi/mi-break.exp: Update.
* gdb.base/ending-run.exp: Update.
2009-03-26 23:30:12 +00:00
Doug Evans
a5321aa4d5
* thread.c (inferior_thread) Remove "extern" in definition.
2009-03-26 21:30:26 +00:00
Thiago Jung Bauermann
def2b0009c
gdb/
...
Add gdb.Value.is_optimized_out attribute.
* python/python-value.c (valpy_get_is_optimized_out): New
function.
(value_object_getset): New variable.
(value_object_type): Initialize tp_getset element.
gdb/doc/
* gdb.texinfo (Values From Inferior): Document is_optimized_out
attribute.
gdb/testsuite/
* gdb.python/python-value.exp (test_value_in_inferior): Test
gdb.Value.is_optimized_out attribute.
2009-03-26 20:58:11 +00:00