aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2013-05-01*** empty log message ***gdbadmin1-1/+1
2013-04-30 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.Doug Evans2-55/+72
(init_cutu_and_read_dies): Flag a complaint, not error, for bad DWO stub. If DWO isn't found, just use stub. (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2013-04-30 * dwarf2read.c (dw2_find_symbol_file): Initialize filename beforeDoug Evans2-0/+8
calling init_cutu_and_read_dies.
2013-04-30Fix display of structures/bitfields in register description.Walfred Tedeschi5-1/+104
Add support for displaying structures and bitfields for registers when executing "maint print c-tdesc". This command is also used when converting the xml target description file into c file. Example of the behaviour is given below reporting a snipet of the xml file and a snippet of the c code generated. XML file contains: ... <union id="vecint"> <field name="v4" type="v4int8"/> <field name="v2" type="v2int16"/> </union> <struct id="struct1"> <field name="v4" type="v4int8"/> <field name="v2" type="v2int16"/> </struct> <struct id="struct2" size="8"> <field name="f1" start="0" end="34"/> <field name="f2" start="63" end="63"/> </struct> ... Setting this xml file as target description file and issuing the maintenance print c-tdesc the following output is obtained: feature = tdesc_create_feature (result, "extra"); field_type = tdesc_named_type (feature, "int8"); tdesc_create_vector (feature, "v4int8", field_type, 4); field_type = tdesc_named_type (feature, "int16"); tdesc_create_vector (feature, "v2int16", field_type, 2); type = tdesc_create_union (feature, "vecint"); field_type = tdesc_named_type (feature, "v4int8"); tdesc_add_field (type, "v4", field_type); field_type = tdesc_named_type (feature, "v2int16"); tdesc_add_field (type, "v2", field_type); C output is not supported type "struct1". This is finally the issue. 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com> * target-descriptions.c (maint_print_c_tdesc_cmd): Add case to parse structures as register types and bitfields. testsuite/ * gdb.xml/maint_print_struct.exp: New file. * gdb.xml/maint_print_struct.xml: New file. Change-Id: I2e20b095d508319c80275e724a9452c7e2834067 Signed-off-by: Walfred Tedeschi <walfred.tedeschi@intel.com>
2013-04-30Fix date in some of my recent ChangeLog entries...Joel Brobecker1-3/+3
2013-04-30Fix -Wpointer-sign warning in sol-thread.cJoel Brobecker2-3/+10
This fixes a couple of compiler warnings in rw_common when calling target_read_memory/target_write_memory due to the type of parameter "buf" (char *) not matching what these function expect (gdb_byte *). gdb/ChangeLog: * sol-thread.c (rw_common): Change type of parameter "buf" to "gdb_byte *". (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to rw_common to "gdb_byte *" instead of "char *".
2013-04-30Fix build error in sol-thread.c:info_cbJoel Brobecker2-8/+17
gdb/ChangeLog: * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type of local variable msym to const struct bound_minimal_symbol. Adjust use accordingly. [ti.ti_state == TD_THR_SLEEP]: Likewise.
2013-04-30Add myself as a maintainer.Walfred Tedeschi2-0/+5
Change-Id: Ie1b0cb082a384144eef327e9294949e9bacc4415
2013-04-302013-04-30 Samuel Thibault <samuel.thibault@gnu.org>Thomas Schwinge2-1/+20
* i386gnu-nat.c (CREG_OFFSET): New macro. (creg_offset): New array. (CREG_ADDR): Use creg_offset instead of reg_offset.
2013-04-30mep: define gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker2-8/+7
gdb/ChangeLog: * mep-tdep.c (mep_write_pc): Delete. (mep_gdbarch_init): Remove call to set_gdbarch_write_pc. Add call to set_gdbarch_pc_regnum.
2013-04-30Delete ChangeLog entry with no corresponding change in sources.Joel Brobecker1-6/+0
This ChangeLog entry was the result of a result of botched commit which resulted in the ChangeLog update being checked in, while the actual code code itself did not make it to CVS. This patch deletes the entry in gdb/ChangeLog titled: mep: define gdbarch_pc_regnum instead of gdbarch_write_pc.
2013-04-30filestuff.c: Include "gdb_dirent.h" instead of <dirent.h>Joel Brobecker2-1/+6
gdb/ChangeLog: * common/filestuff.c: Replace #include <dirent.h> by #include "gdb_dirent.h".
2013-04-30filestuff.c: Use gdb_stat.h instead of <sys/stat.h>Joel Brobecker2-1/+6
gdb/ChangeLog: * common/filestuff.c: Replace #include <sys/stat.h> by #include "gdb_stat.h".
2013-04-30*** empty log message ***gdbadmin1-1/+1
2013-04-29 PR python/14204:Tom Tromey2-12/+68
* gdb.texinfo (Python API): Fix menu entry. (Blocks In Python): Fix subsubsection text. Rewrite intro. Define global and static block. Add example. Clarify block relationship for inline functions.
2013-04-29 * gdb.texinfo (Python API): Mention Python help and keywordTom Tromey2-7/+43
arguments. Move pagination text to Basic Python. (Basic Python): Put pagination text here. Document close-on-exec, SIGCHLD, and SIGINT.
2013-04-29mep: define gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker1-0/+6
gdb/ChangeLog: * mep-tdep.c (mep_write_pc): Delete. (mep_gdbarch_init): Remove call to set_gdbarch_write_pc. Add call to set_gdbarch_pc_regnum.
2013-04-29Use gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker2-7/+7
gdb/ChangeLog: * m32r-tdep.c (m32r_write_pc): Delete. (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc. Add call to set_gdbarch_pc_regnum.
2013-04-29 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning forPierre Muller2-3/+9
editCase function rule. (get_DW_AT_signature_type): Likewise.
2013-04-29 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.Pierre Muller2-1/+5
2013-04-29Add ARI marker to get_DW_AT_signature_type.Joel Brobecker2-2/+6
gdb/ChangeLog: * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2013-04-29*** empty log message ***gdbadmin1-1/+1
2013-04-28gdb/Yao Qi2-24/+30
* solib-dsbt.c (fetch_loadmap): Re-indent. (displacement_from_map, enable_break2): Likewise. (dsbt_relocate_section_addresses): Likewise.
2013-04-28*** empty log message ***gdbadmin1-1/+1
2013-04-27*** empty log message ***gdbadmin1-1/+1
2013-04-26GDB 7.6 released.gdbadmin1-0/+4
2013-04-26*** empty log message ***gdbadmin1-1/+1
2013-04-25 PR corefiles/14983:Tom Tromey4-2/+70
* dwarf2read.c (process_full_comp_unit): Always create a static block. gdb/testsuite * gdb.dwarf2/nostaticblock.exp: New file.
2013-04-25Fix format error of ChangeLog.Hui Zhu3-5/+0
2013-04-252013-04-25 Hui Zhu <hui@codesourcery.com>Hui Zhu2-0/+7
PR gdb/15186 * ax.c (ax_printf): Add fflush.
2013-04-25*** empty log message ***gdbadmin1-1/+1
2013-04-242013-04-25 Hui Zhu <hui@codesourcery.com>Hui Zhu2-3/+8
* breakpoint.c (build_target_command_list): Change loc->cond_bytecode to loc->cmd_bytecode.
2013-04-24 * dwarf2read.c (setup_type_unit_groups): Fix comment.Doug Evans2-1/+5
2013-04-24 * tracepoint.c (trace_save): Call the writer's start method.Keith Seitz2-0/+6
2013-04-242013-04-24 Muhammad Bilal <mbilal@codesourcery.com>Muhammad Bilal4-0/+21
PR gdb/10462 * cli/cli-decode.c (lookup_command): Show an error if there is no space before argument. 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com> PR gdb/10462 * gdb.base/setshow.exp: Add test case.
2013-04-24*** empty log message ***gdbadmin1-1/+1
2013-04-23 * common/filestuff.c: Check USE_WIN32API before includingTom Tromey3-4/+35
sys/socket.h. (HAVE_F_GETFD): New define. (mark_cloexec): Check HAVE_F_GETFD. (gdb_open_cloexec): Change 'mode' to unsigned long. (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR. (gdb_pipe_cloexec): Check HAVE_PIPE. * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned long.
2013-04-232013-04-23 Hui Zhu <hui@codesourcery.com>Hui Zhu4-2/+19
PR gdb/15293 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf. 2013-04-23 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * gdb.base/dprintf.exp: Add ignore command.
2013-04-232013-04-23 Hui Zhu <hui@codesourcery.com>Hui Zhu4-3/+30
PR gdb/15165 * breakpoint.c (dprintf_print_recreate): New. (save_breakpoints): Let it not save dprintf commands. (initialize_breakpoint_ops): Set dprintf_print_recreate. 2013-04-23 Hui Zhu <hui@codesourcery.com> PR gdb/15165 * gdb.base/save-bp.exp: Add test for dprintf.
2013-04-23*** empty log message ***gdbadmin1-1/+1
2013-04-22 * gdb.gdb/selftest.exp (do_steps_and_nexts): Check forTom Tromey2-0/+9
notice_open_fds.
2013-04-22 PR gdb/7912:Tom Tromey37-67/+583
* Makefile.in (SFILES): Add filestuff.c (COMMON_OBS): Add filestuff.o. (filestuff.o): New target. * auto-load.c (auto_load_objfile_script_1): Use gdb_fopen_cloexec. * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec. * cli/cli-cmds.c (shell_escape): Call close_most_fds. * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec. * common/agent.c (gdb_connect_sync_socket): Use gdb_socket_cloexec. * common/filestuff.c: New file. * common/filestuff.h: New file. * common/linux-osdata.c (linux_common_core_of_thread) (command_from_pid, commandline_from_pid, print_source_lines) (linux_xfer_osdata_shm, linux_xfer_osdata_sem) (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use gdb_fopen_cloexec. * common/linux-procfs.c (linux_proc_get_int) (linux_proc_pid_has_state): Use gdb_fopen_cloexec. * config.in, configure: Rebuild. * configure.ac: Don't check for sys/socket.h. Check for fdwalk, pipe2. * corelow.c (core_open): Use gdb_open_cloexec. * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec. * fork-child.c (fork_inferior): Call close_most_fds. * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec. * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec. * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals): Use gdb_fopen_cloexec. (linux_proc_xfer_partial, linux_proc_xfer_spu): Use gdb_open_cloexec. (linux_async_pipe): Use gdb_pipe_cloexec. * remote-fileio.c (remote_fileio_func_open): Use gdb_open_cloexec. * remote.c (remote_file_put, remote_file_get): Use gdb_fopen_cloexec. * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec, close_most_fds. * ser-tcp.c (net_open): Use gdb_socket_cloexec. * ser-unix.c (hardwire_open): Use gdb_open_cloexec. * solib.c (solib_find): Use gdb_open_cloexec. * source.c (openp, find_and_open_source): Use gdb_open_cloexec. * tracepoint.c (tfile_start): Use gdb_fopen_cloexec. (tfile_open): Use gdb_open_cloexec. * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec. * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec. * xml-support.c (xml_fetch_content_from_file): Use gdb_fopen_cloexec. * main.c (captured_main): Call notice_open_fds. gdbserver * Makefile.in (SFILES): Add filestuff.c. (OBS): Add filestuff.o. (filestuff.o): New target. * config.in, configure: Rebuild. * configure.ac: Check for fdwalk, pipe2.
2013-04-222013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado2-3/+10
* remote-sim.c (dump_mem): Change the type of 'buf' parameter from 'char *' to 'gdb_byte *'. (gdbsim_store_register): Change the type of 'tmp' from 'char' to 'gdb_byte'.
2013-04-22gdb/Yao Qi2-1/+5
* infrun.c: Fix typo in comment.
2013-04-222013-04-22 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+6
* gdb.arch/arm-bl-branch-dest.exp: Replace additional_flags by ldflags.
2013-04-22Andrew Haley found a bug on GDB running on ARM when usingSergio Durigan Junior5-1/+77
--enable-64-bit-bfd. Basically the issue happens when dealing with "bl" instructions: GDB does branch destination calculation and (wrongly) sign-extends the PC. Here is a piece of his original message explaining the problem: > next_pc = arm_get_next_pc (frame, get_frame_pc (frame)); > > /* The Linux kernel offers some user-mode helpers in a high page. We can > not read this page (as of 2.6.23), and even if we could then we couldn't > set breakpoints in it, and even if we could then the atomic operations > would fail when interrupted. They are all called as functions and return > to the address in LR, so step to there instead. */ > if (next_pc > 0xffff0000) > next_pc = get_frame_register_unsigned (frame, ARM_LR_REGNUM); > > arm_insert_single_step_breakpoint (gdbarch, aspace, next_pc); > > Unfortunately, branch destination addresses are SIGN EXTENDED to 64 > bits. So, > > (top-gdb) p/x next_pc > $14 = 0xffffffffb6df2864 > > Which triggers the next_pc = get_frame_register_unsigned(), and we > cannot step into any branches because the destination PC is wrong. Anyway, the fix is simple and Andrew himself provided it for us. It took a while for me to figure out how to trigger the bug (in order to write a testcase for it), but I finally made it. The attached patch fixes the problem (by casting to `unsigned long' instead of just `long'), and also includes a testcase to reproduce the issue. gdb/ChangeLog: 2013-04-22 Andrew Haley <aph@redhat.com> * arm-tdep.c (BranchDest): Cast result as "unsigned long", instead of "long". gdb/testsuite/ChangeLog: 2013-04-22 Sergio Durigan Junior <sergiodj@redhat.com> * gdb.arch/arm-bl-branch-dest.c: New file. * gdb.arch/arm-bl-branch-dest.exp: Likewise.
2013-04-22*** empty log message ***gdbadmin1-1/+1
2013-04-21*** empty log message ***gdbadmin1-1/+1
2013-04-20gdb/Yao Qi2-2/+8
* ctf.c (ctf_fetch_registers): Change the type of 'regs' from 'char *' to 'gdb_byte *'. Cast the return value of 'bt_ctf_get_char_array' to 'gdb_byte *'.
2013-04-20*** empty log message ***gdbadmin1-1/+1