aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-10-16 * remote.c (set_general_process): New.Pedro Alves2-0/+32
(remote_check_symbols): Use it.
2008-10-16 * remote.c (push_remote_target): Delete.Pedro Alves3-20/+5
* target.h (push_remote_target): Delete declaration.
2008-10-162008-10-16 Thiago Jung Bauermann <bauerman@br.ibm.com>Thiago Jung Bauermann13-15/+430
Tom Tromey <tromey@redhat.com> gdb/ * Makefile.in (SUBDIR_PYTHON_OBS): Add python-value.o. (SUBDIR_PYTHON_SRCS): Add python-value.c. (python-value.o): New target. * configure.ac (CONFIG_OBS): Add python-value.o. (CONFIG_SRCS): Add python/python-value.c * configure: Regenerate. * python-internal.h (value_object_type): Add external declaration. (gdbpy_get_value_from_history, value_to_value_object, convert_value_from_python, gdbpy_initialize_values): Add function prototype. * python/python-value.c: New file. * python/python.c (GdbMethods): Add gdbpy_get_value_from_history. (_initialize_python): Call gdbpy_initialize_values. * python/python.h (values_in_python): Add external declaration. * value.c (value_prepend_to_list, value_remove_from_list): New functions. (preserve_values): Iterate over values_in_python list as well. * value.h (value_prepend_to_list, value_remove_from_list): Add function prototypes. gdb/doc/ * gdb.texinfo. (Values From Inferior): New subsubsection. gdb/testsuite/ * gdb.python/python-value.c: New file. * gdb.python/python-value.exp: New file.
2008-10-16*** empty log message ***gdbadmin1-1/+1
2008-10-15 * remote.c (remote_close): Unregister remote_desc from the eventPedro Alves2-23/+35
loop. Always restore the SIGINT handler. Discard all inferiors here. (remote_detach_1, remote_disconnect): Don't unregister the file descriptor from the event loop here. (interrupt_query, readchar, getpkt_sane): Pop the target instead of morning the current inferior. (remote_kill): Don't unregister the file descriptor from the event loop here. (remote_mourn_1): Don't discard inferiors here.
2008-10-15gdb/Pedro Alves7-32/+362
* breakpoint.c (breakpoint_init_inferior): Clean up the moribund locations list. (moribund_breakpoint_here_p): Record the moribund location in the moribund_locations vector. * breakpoint.h (moribund_breakpoint_here_p): Declare. (displaced_step_fixup): Check if the breakpoint the thread was trying to step over has been removed since having been placed in the displaced stepping queue. (adjust_pc_after_break): In non-stop mode, check for a moribund breakpoint at the stop pc. (handle_inferior_event): Don't retire moribund breakpoints on TARGET_WAITKIND_IGNORE. gdb/testsuite/ * gdb.mi/mi-nsmoribund.exp, gdb.mi/nsmoribund.c: New test.
2008-10-15TypoDenis Pilat1-1/+1
2008-10-15typo.Denis Pilat2-1/+5
2008-10-15*** empty log message ***gdbadmin1-1/+1
2008-10-14 * infrun.c (displaced_step_prepare): Switch thread temporarilyPedro Alves2-7/+32
while we're here. (displaced_step_fixup): Make sure target_resume sees ptid as inferior_ptid. Add debug output.
2008-10-14 Remove dead code.Pedro Alves4-26/+14
* breakpoint.c (show_breakpoint_hit_counts): Delete. (print_one_breakpoint_location): Adjust. (breakpoint_clear_ignore_counts): Delete. * breakpoint.h (breakpoint_clear_ignore_counts): Remove declaration. * target.c (generic_mourn_inferior): Don't clear ignore counts (never reached).
2008-10-14*** empty log message ***gdbadmin1-1/+1
2008-10-13*** empty log message ***gdbadmin1-1/+1
2008-10-12*** empty log message ***gdbadmin1-1/+1
2008-10-11*** empty log message ***gdbadmin1-1/+1
2008-10-10 * dwarf2read.c (comp_unit_head): Use unsigned int consistentlyDoug Evans2-72/+117
for dwarf section offsets and sizes. (dwarf2_cu): Ditto. (dwarf2_per_cu_data): Ditto. (create_all_comp_units): Change offset to unsigned int. (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die, dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto. * dwarf2read.c (read_initial_length): Delete cu_header arg. All callers updated. (read_checked_initial_length_and_offset): New function. (read_offset_1): New function. (read_offset): Call it. (dwarf_decode_line_header): Call read_checked_initial_length_and_offset instead of read_initial_length. Call read_offset_1 instead of read_offset. * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'. All callers updated. * dwarf2read.c (dwarf_attr_name): Unconditionally support all DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with DW_AT_HP_block_index.
2008-10-10 * remote.c (remote_start_remote): Always tell the stub if we're inPedro Alves2-7/+12
extended-remote.
2008-10-10 * server.c (handle_v_run): If GDB didn't specify an argv, use thePedro Alves2-8/+21
whole argv from the last run, not just argv[0].
2008-10-10*** empty log message ***gdbadmin1-1/+1
2008-10-09 * remote.c (remote_wait): Rename to...Pedro Alves2-222/+239
(remote_wait_as): ... this. Don't loop here. If the remote didn't stop, return TARGET_WAITKIND_IGNORE. (remote_wait): New, reimplemented on top of remote_wait_as.
2008-10-09 * gdb.base/macscp.exp: Use 'vafunc' and 'fixedarg' rather thanTom Tromey2-10/+15
'fprintf' and 'stderr'.
2008-10-092008-10-09 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2-7/+3
* Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem is fixed upstream.
2008-10-092008-10-09 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2-1/+3
* reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
2008-10-092008-10-09 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2-0/+5
* MAINTAINERS (Write After Approval): Add myself.
2008-10-092008-10-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-47/+64
Make it compile without warnings. * procfs.c (create_procinfo): Initialize `parent'. (dead_procinfo): Pass a constant string as format to error. (procfs_address_to_host_pointer): Add cast to gdb_type *. (procfs_find_LDT_entry): Adjust format string to long int ptid.tid. (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast. (procfs_xfer_memory): Adjust prototype. (info_mappings_callback, info_proc_mappings): Adjust to not pass a variable as printf_filtered format. (procfs_make_note_section): Change type of auxv local to gdb_byte. * Makefile.in: Remove special rule.
2008-10-09 * remote.c (remote_open_1): Move acknowledging any pending ack,Pedro Alves3-54/+76
querying supported features, activating noack mode, finding the target description, enabling extended remote, and checking remote symbols from here ... (remote_start_remote): ... to here. (remote_open_1): Don't pop the target if it is already gone. * target.c (unpush_target): Check for the dummy target.
2008-10-09 * ser-mingw.c: Include "command.h".Pedro Alves2-2/+11
(pipe_windows_open): Declare locals at the beginning of the scope.
2008-10-09*** empty log message ***gdbadmin1-1/+1
2008-10-08 * remote.c (struct remote_state) <waiting_for_stop_reply>: NewPedro Alves2-0/+56
field. (remote_open_1): Clear waiting_for_stop_reply. (remote_resume): Set waiting_for_stop_reply. (remote_wait): Clear or set waiting_for_stop_reply accordingly. (putpkt_binary): If we're in async mode and waiting for a stop reply, bail out with an error. (extended_remote_mourn_1): Clear waiting_for_stop_reply.
2008-10-08 * remote.c (remote_get_thread_info): If the remote doesn't supportPedro Alves2-0/+9
the query, bail out.
2008-10-08 Convert static_kind into loc_kind enum.Jan Kratochvil17-86/+150
* gdbtypes.h (enum field_loc_kind): New. (union field_location): New field dwarf_block. (struct field): Rename static_kind as loc_kind. (FIELD_STATIC_KIND): Rename to ... (FIELD_LOC_KIND): ... here. (TYPE_FIELD_STATIC_KIND): Rename to ... (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND. (TYPE_FIELD_STATIC_HAS_ADDR): Remove. (TYPE_FIELD_STATIC): Remove. (TYPE_FIELD_BITPOS): Reformat. (SET_FIELD_BITPOS): New. (FIELD_PHYSADDR): Rename to ... (FIELD_STATIC_PHYSADDR): ... here. (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename. (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND. (FIELD_PHYSNAME): Rename to ... (FIELD_STATIC_PHYSNAME): ... here. (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename. (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND. (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New. (field_is_static): New declaration. * gdbtypes.c (field_is_static): New function. (copy_type_recursive): Update throughout. * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c, eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c, p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
2008-10-08*** empty log message ***gdbadmin1-1/+1
2008-10-07 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' toPedro Alves4-33/+41
avoid a name collision. * gnu-nat.c: Likewise. * i386gnu-nat.c: Likewise.
2008-10-07 * gdb.ada/ref_tick_size.exp: New testcase.Joel Brobecker5-0/+128
2008-10-07 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handlingJoel Brobecker2-2/+14
of arguments that are references.
2008-10-07*** empty log message ***gdbadmin1-1/+1
2008-10-06 * dwarf2read.c (dwarf2_die_debug): New static global.Doug Evans5-33/+169
(dump_die_shallow): Renamed from dump_die, New args f, indent. Print to specified file, indented by the specified amount. (dump_die_for_error): New fn. Point all existing callers of dump_die here. (dump_die_die_1,dump_die): New fns, replaces ... (dump_die_list): ... deleted. (read_die_and_children_1): Old contents of read_die_and_children moved here. (read_die_and_children): Rewrite. (read_die_and_siblings): Call read_die_and_children_1 instead of read_die_and_children. (_initialize_dwarf2_read): New option "debug dwarf2-die". * gdbinit.in (pdie): New macro. * doc/gdb.texinfo (set debug dwarf2-die): Document it.
2008-10-06 * dwarf2read.c (offset_in_cu_p): New function.Doug Evans6-9/+190
(find_partial_die,follow_die_ref): Use it. * gdb.dwarf2/dw2-cu-size.exp: New file. * gdb.dwarf2/dw2-cu-size.S: New file. * gdb.dwarf2/dw2-intercu.S (.Ltype_int_in_cu2): Renamed from .Ltype_int for clarity.
2008-10-06 * symmisc.c (maintenance_info_symtabs): Watch for ^c.Doug Evans2-90/+103
(maintenance_info_psymtabs): Ditto.
2008-10-06*** empty log message ***gdbadmin1-1/+1
2008-10-05Fix email addressMichael Snyder1-1/+1
2008-10-052008-10-05 Michael Snyder <msnyder@promb-2s-dhcp59.eng.vmware.com>Michael Snyder2-1/+5
* infrun.c (handle_inferior_event): Fix typo in comment.
2008-10-05*** empty log message ***gdbadmin1-1/+1
2008-10-04 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.Vladimir Prus2-0/+5
2008-10-04*** empty log message ***gdbadmin1-1/+1
2008-10-032008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov5-40/+67
PR gdb/2384: * gdb.cp/gdb2384.exp: Extended to test more cases. * gdb.cp/gdb2384.cc: Likewise. * gdb.cp/gdb2384-base.h: Likewise. * gdb.cp/gdb2384-base.cc: Likewise.
2008-10-032008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+7
PR gdb/2384: * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have different lifetimes.
2008-10-03Fix the date in the last entry.Joel Brobecker1-1/+1
2008-10-03 * solib-osf.c: Include "solib.h".Joel Brobecker2-0/+5
2008-10-032008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov16-87/+96
* utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv and check for out-of-memory condition. * exec.c (exec_file_command): Call it. * infrun.c (handle_command, xdb_handle_command): Likewise. * interps.c (interpreter_exec_cmd): Likewise. * linux-nat.c (linux_nat_info_proc_cmd): Likewise. * procfs.c (info_proc_cmd): Likewise. * remote-mips.c (common_open): Likewise. * remote-sim.c (gdbsim_kill, gdbsim_create_inferior) (gdbsim_open): Likewise. * remote.c (extended_remote_run, remote_put_command) (remote_get_command, remote_delete_command): Likewise. * ser-mingw.c (pipe_windows_open): Likesise. * source.c (add_path, show_substitute_path_command) (unset_substitute_path_command, set_substitute_path_command): Likewise. * stack.c (backtrace_command): Likewise. * symfile.c (symbol_file_command, generic_load) (add_symbol_file_command): Likesise. * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols) (maintenance_print_msymbols): Likewise.