aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-06-162011-06-16 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-1/+8
* python/py-events.h (gdb_py_events): Make it extern. * python/py-evtregistry.c (gdb_py_events): Declare.
2011-06-162011-06-16 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+9
* remote.c (remote_trace_set_readonly_regions): Add check for remote_protocol_packets[PACKET_qXfer_traceframe_info].support before output warning.
2011-06-16*** empty log message ***gdbadmin1-1/+1
2011-06-15 * arm-linux-tdep.c: Include "auxv.h".Ulrich Weigand6-21/+155
(AT_HWCAP): Define. (ARM_LINUX_SIZEOF_VFP): Define. (arm_linux_supply_vfp): New function. (arm_linux_collect_vfp): Likewise. (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections. (arm_linux_fpa_regset_sections): New variable. (arm_linux_vfp_regset_sections): Likewise. (arm_linux_core_read_description): New function. (arm_linux_init_abi): Install arm_linux_core_read_description and arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as appropriate for the architecture. * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset". (tdesc_arm_with_m): Declare. (tdesc_arm_with_iwmmxt): Likewise. (tdesc_arm_with_vfpv2): Likewise. (tdesc_arm_with_vfpv3): Likewise. (tdesc_arm_with_neon): Likewise. * arm-linux-nat.c: Move features/*.c includes ... * arm-tdep.c: ... here. * arm-linux-nat.c (arm_linux_read_description): Move initializing target description data structures ... * arm-tdep.c (_initialize_arm_tdep): ... here. * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3, HWCAP_VFPv3D16): Move definitions ... * arm-linux-tdep.h: ... here.
2011-06-152011-06-15 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+16
* remote.c (remote_trace_set_readonly_regions): Add a check for target_buf_size.
2011-06-15*** empty log message ***gdbadmin1-1/+1
2011-06-14 * coffread.c (coffread_objfile): Rename from current_objfile.Tom Tromey4-54/+60
* dbxread.c (dbxread_objfile): Rename from current_objfile. * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2011-06-14 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)Tom Tromey2-56/+51
(class_symtab): Remove. (jv_dynamics_progspace_key): New global. (jv_per_objfile_free): Reset program space data. Update assert. Don't clear globals. (get_dynamics_objfile): Use and set program space data. (get_java_class_symtab): Use get_dynamics_objfile. (add_class_symbol): Likewise. (java_link_class_type): Likewise. (java_object_type, jv_clear_object_type, set_java_object_type): Remove. (get_java_object_type): Update. Don't cache result. (is_object_type): Don't call set_java_object_type. (_initialize_java_language): Don't set jv_type_objfile_data_key; initialize jv_dynamics_progspace_key.
2011-06-14 * symtab.h (current_objfile): Don't declare.Tom Tromey7-21/+23
* objfiles.h (current_objfile): Don't declare. * objfiles.c (current_objfile): Remove. * mdebugread.c (current_objfile): New file-scope global. * dbxread.c (current_objfile): New file-scope global. * coffread.c (current_objfile): New file-scope global.
2011-06-14 gdb/testsuite/Yao Qi2-1/+5
* gdb.threads/ia64-sigill.exp: Remove "set debug lin-lwp 1".
2011-06-14*** empty log message ***gdbadmin1-1/+1
2011-06-132011-06-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-25/+38
gdb/ * top.h (line): Rename to ... (saved_command_line): ... this. (linesize): Rename to ... (saved_command_line_size): ... this. * top.c (line): Rename to ... (saved_command_line): ... this. (linesize): Rename to ... (saved_command_line_size): ... this. (dont_repeat, command_line_input, dont_repeat_command): Adjust. * event-top.c (command_line_handler): Adjust. * main.c (captured_main): Adjust.
2011-06-13*** empty log message ***gdbadmin1-1/+1
2011-06-12* i386-tdep.c (i386_epilogue_frame_cache): Simplify code. CallMark Kettenis2-24/+41
get_frame_func instead of get_frame_pc to determine the code address used to construct the frame ID. (i386_epilogue_frame_unwind_stop_reason): Fix coding style. (i386_epilogue_frame_this_id): Likewise. (i386_epilogue_frame_prev_register): New function. (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register. (i386_stack_tramp_frame_sniffer): Fix coding style. (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register. (i386_gdbarch_init): Fix comments.
2011-06-12* i386-tdep.c (i386_match_insn_block): Use length of the properMark Kettenis2-3/+8
instruction when walking back through the instruction stream.
2011-06-12*** empty log message ***gdbadmin1-1/+1
2011-06-11*** empty log message ***gdbadmin1-1/+1
2011-06-10gdb/Jan Kratochvil4-1/+13
* symtab.c (output_partial_symbol_filename): Exchange the filename and fullname parameters order. gdb/testsuite/ * gdb.dwarf2/dw2-filename.exp (info sources): New testcase.
2011-06-10gdb/Jan Kratochvil5-16/+27
Code cleanup. * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype for fun. * psymtab.c (map_symbol_filenames_psymtab) (map_partial_symbol_filenames): Likewise. * psymtab.h: Include symfile.h. (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. * symfile.h (symbol_filename_ftype): New. (struct quick_symbol_functions): Use symbol_filename_ftype for fun of map_symbol_filenames, clarify more the naming in comment.
2011-06-10 * gdb.cp/temargs.exp: Let tests pass if compiler bug is fixed.Tom Tromey3-6/+53
Add tests for pointer-to-member-function. * gdb.cp/temargs.cc (S::somefunc): New function. (K2): New class. (main): Instantiate K2; call method.
2011-06-10*** empty log message ***gdbadmin1-1/+1
2011-06-09*** empty log message ***gdbadmin1-1/+1
2011-06-08py-inferior.exp: Make sure local var is allocated on the stack.Joel Brobecker3-2/+12
The testcase, at some point, is trying to change the contents of a string that was defined as follow: char *str = "hello, testsuite"; The problem is that the string is constant, and str is never used to change the contents of the string in the program, so the compiler is free to allocate it in a read-only section. This is what happens on x86-windows, for instance. As a result, trying to change the contents of the string during the `python gdb.inferiors()[0].write_memory (addr, str)' results in the following error: (gdb) python gdb.inferiors()[0].write_memory (addr, str) gdb: write target memory, 5 bytes at 0x00403064 Traceback (most recent call last): File "<string>", line 1, in <module> gdb.MemoryError: Cannot access memory at address 0x403064 Error while executing Python code. This patch prevents this from happening by declaring str as an array rather than a pointer. gdb/testsuite/ChangeLog: * gdb.python/py-inferior.c (f2): Make str an array rather than a pointer. * gdb.python/py-inferior.exp: Adjust testcase accordingly.
2011-06-08 * cc-with-index.sh: Look for ../../gdb, for fullname.exp.Doug Evans2-0/+4
2011-06-08 * cc-with-index.sh: Fix typos in comment.Doug Evans2-2/+6
2011-06-08*** empty log message ***gdbadmin1-1/+1
2011-06-07gdb/Jan Kratochvil6-4/+78
* cli/cli-cmds.c (shell_escape): Use waitpid. * rs6000-nat.c (exec_one_dummy_insn): Likewise. gdb/testsuite/ * gdb.base/async-shell.c: New file. * gdb.base/async-shell.exp: New file.
2011-06-072011-06-07 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+36
* xcoffread.c (dwarf2_xcoff_names): New variable. (aix_process_linenos): Add a guard. (xcoff_symfile_finish): Free dwarf2. (xcoff_initial_scan): Add dwarf2 support.
2011-06-07*** empty log message ***gdbadmin1-1/+1
2011-06-062011-06-06 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+5
gdb/testsuite/ * gdb.threads/pending-step.exp: Add more context to SIGTRAP match.
2011-06-062011-06-06 Pedro Alves <pedro@codesourcery.com>Pedro Alves8-138/+61
gdb/ * infcall.c (run_inferior_call): Don't mask async. Instead force a synchronous wait, if the target can async. * target.h (struct target_ops): Delete to_async_mask. (target_async_mask): Delete. * target.c (update_current_target): Delete references to to_async_mask. * linux-nat.c (linux_nat_async_mask_value): Delete. (linux_nat_is_async_p, linux_nat_can_async_p): Remove references to linux_nat_async_mask_value. (linux_nat_async_mask): Delete. (linux_nat_async, linux_nat_close): Remove references to linux_nat_async_mask_value. * record.c (record_async_mask_value): Delete. (record_async): Remove references to record_async_mask_value. (record_async_mask): Delete. (record_can_async_p, record_is_async_p): Remove references to record_async_mask_value. (init_record_ops, init_record_core_ops): Remove references to record_async_mask. * remote.c (remote_async_mask_value): Delete. (init_remote_ops): Remove reference to remote_async_mask. (remote_can_async_p, remote_is_async_p): Remove references to remote_async_mask_value. (remote_async): Remove references to remote_async_mask_value. (remote_async_mask): Delete. * infrun.c (fetch_inferior_event): Don't claim registers changed if the current thread is already not executing.
2011-06-06*** empty log message ***gdbadmin1-1/+1
2011-06-05*** empty log message ***gdbadmin1-1/+1
2011-06-04*** empty log message ***gdbadmin1-1/+1
2011-06-03Various spelling fixes.Joel Brobecker10-25/+37
gdb/ChangeLog: From Stephen Kitt <steve@sk2.org> * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c, gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes. gdb/testsuite/ChangeLog: From Stephen Kitt <steve@sk2.org> * gdb.base/help.exp: Adjust following some spelling corrections in GDB.
2011-06-03Minor spelling fix.Joel Brobecker1-1/+1
2011-06-03address size can be different from DW_OP_deref sizeJoel Brobecker2-0/+18
gdb/ChangeLog: * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2011-06-03gdbTom Tromey10-20/+59
* python/py-inferior.c (python_inferior_exit): Use inferior's exit code fields. * python/py-exitedevent.c (create_exited_event_object): Change type of 'exit_code'. Optionally add exit_code attribute. (emit_exited_event): Change type of 'exit_code'. * python/py-event.h (emit_exited_event): Update. * mi/mi-interp.c (mi_inferior_exit): Print exit code. * infrun.c (handle_inferior_event): Set exit code fields on inferior. * inferior.h (struct inferior) <has_exit_code, exit_code>: New fields. * inferior.c (exit_inferior_1): Initialize new fields. gdb/doc * gdb.texinfo (GDB/MI Async Records): Document 'exit-code' field. (Events In Python): Note that exit_code is optional.
2011-06-03 * dwarf2expr.c (get_signed_type): New function.Tom Tromey2-0/+39
(execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2011-06-03*** empty log message ***gdbadmin1-1/+1
2011-06-02 * objc-lang.c (find_methods): Increment objfile_csym earlier.Keith Seitz2-2/+6
2011-06-022011-06-02 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-3/+4
gdb/ * top.h (simplified_command_loop): Delete declaration.
2011-06-02*** empty log message ***gdbadmin1-1/+1
2011-06-012011-06-01 Yao Qi <yao@codesourcery.com>Yao Qi2-0/+8
* gdb.base/ending-run.exp: Match __uClibc_main for uClibc.
2011-06-01gdb: sim: automatically pass down sysrootMike Frysinger2-0/+9
Since gdb sets up a nice sysroot path for us by default, automatically pass it down to the sim target so it too gets a good default. This does not override anything the user explicitly specifies of course. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-012011-06-01 Yao Qi <yao@codesourcery.com>Yao Qi2-2/+8
* objfiles.h (obj_section_addr): Update reference to objfile from `abfd' to `obfd'. (obj_section_endaddr): Likewise.
2011-06-01Really correct email address.Daniel Jacobowitz1-1/+1
2011-06-01 * MAINTAINERS: Update my email address and affiliation. AlsoDaniel Jacobowitz2-8/+13
update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2011-06-01*** empty log message ***gdbadmin1-1/+1
2011-05-31 PR c++/12750Keith Seitz3-0/+134
* gdb.cp/static-method.cc: New file. * gdb.cp/static-method.exp: New file.