summaryrefslogtreecommitdiffstats
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
...
* *** empty log message ***gdbadmin2013-05-011-1/+1
|
* * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.Doug Evans2013-04-302-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.
* * dwarf2read.c (dw2_find_symbol_file): Initialize filename beforeDoug Evans2013-04-302-0/+8
| | | | calling init_cutu_and_read_dies.
* Fix display of structures/bitfields in register description.Walfred Tedeschi2013-04-305-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>
* Fix date in some of my recent ChangeLog entries...Joel Brobecker2013-04-301-3/+3
|
* Fix -Wpointer-sign warning in sol-thread.cJoel Brobecker2013-04-302-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 *".
* Fix build error in sol-thread.c:info_cbJoel Brobecker2013-04-302-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.
* Add myself as a maintainer.Walfred Tedeschi2013-04-302-0/+5
| | | | Change-Id: Ie1b0cb082a384144eef327e9294949e9bacc4415
* 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>Thomas Schwinge2013-04-302-1/+20
| | | | | | * i386gnu-nat.c (CREG_OFFSET): New macro. (creg_offset): New array. (CREG_ADDR): Use creg_offset instead of reg_offset.
* mep: define gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker2013-04-302-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.
* Delete ChangeLog entry with no corresponding change in sources.Joel Brobecker2013-04-301-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.
* filestuff.c: Include "gdb_dirent.h" instead of <dirent.h>Joel Brobecker2013-04-302-1/+6
| | | | | | | gdb/ChangeLog: * common/filestuff.c: Replace #include <dirent.h> by #include "gdb_dirent.h".
* filestuff.c: Use gdb_stat.h instead of <sys/stat.h>Joel Brobecker2013-04-302-1/+6
| | | | | | | gdb/ChangeLog: * common/filestuff.c: Replace #include <sys/stat.h> by #include "gdb_stat.h".
* *** empty log message ***gdbadmin2013-04-301-1/+1
|
* PR python/14204:Tom Tromey2013-04-292-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.
* * gdb.texinfo (Python API): Mention Python help and keywordTom Tromey2013-04-292-7/+43
| | | | | | arguments. Move pagination text to Basic Python. (Basic Python): Put pagination text here. Document close-on-exec, SIGCHLD, and SIGINT.
* mep: define gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker2013-04-291-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.
* Use gdbarch_pc_regnum instead of gdbarch_write_pc.Joel Brobecker2013-04-292-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.
* * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning forPierre Muller2013-04-292-3/+9
| | | | | editCase function rule. (get_DW_AT_signature_type): Likewise.
* * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.Pierre Muller2013-04-292-1/+5
|
* Add ARI marker to get_DW_AT_signature_type.Joel Brobecker2013-04-292-2/+6
| | | | | | gdb/ChangeLog: * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
* *** empty log message ***gdbadmin2013-04-291-1/+1
|
* gdb/Yao Qi2013-04-282-24/+30
| | | | | | * solib-dsbt.c (fetch_loadmap): Re-indent. (displacement_from_map, enable_break2): Likewise. (dsbt_relocate_section_addresses): Likewise.
* *** empty log message ***gdbadmin2013-04-281-1/+1
|
* *** empty log message ***gdbadmin2013-04-271-1/+1
|
* GDB 7.6 released.gdbadmin2013-04-261-0/+4
|
* *** empty log message ***gdbadmin2013-04-261-1/+1
|
* PR corefiles/14983:Tom Tromey2013-04-254-2/+70
| | | | | | | * dwarf2read.c (process_full_comp_unit): Always create a static block. gdb/testsuite * gdb.dwarf2/nostaticblock.exp: New file.
* Fix format error of ChangeLog.Hui Zhu2013-04-253-5/+0
|
* 2013-04-25 Hui Zhu <hui@codesourcery.com>Hui Zhu2013-04-252-0/+7
| | | | | | PR gdb/15186 * ax.c (ax_printf): Add fflush.
* *** empty log message ***gdbadmin2013-04-251-1/+1
|
* 2013-04-25 Hui Zhu <hui@codesourcery.com>Hui Zhu2013-04-242-3/+8
| | | | | * breakpoint.c (build_target_command_list): Change loc->cond_bytecode to loc->cmd_bytecode.
* * dwarf2read.c (setup_type_unit_groups): Fix comment.Doug Evans2013-04-242-1/+5
|
* * tracepoint.c (trace_save): Call the writer's start method.Keith Seitz2013-04-242-0/+6
|
* 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>Muhammad Bilal2013-04-244-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.
* *** empty log message ***gdbadmin2013-04-241-1/+1
|
* * common/filestuff.c: Check USE_WIN32API before includingTom Tromey2013-04-233-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-23 Hui Zhu <hui@codesourcery.com>Hui Zhu2013-04-234-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-23 Hui Zhu <hui@codesourcery.com>Hui Zhu2013-04-234-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.
* *** empty log message ***gdbadmin2013-04-231-1/+1
|
* * gdb.gdb/selftest.exp (do_steps_and_nexts): Check forTom Tromey2013-04-222-0/+9
| | | | notice_open_fds.
* PR gdb/7912:Tom Tromey2013-04-2237-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-22 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado2013-04-222-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'.
* gdb/Yao Qi2013-04-222-1/+5
| | | | * infrun.c: Fix typo in comment.
* 2013-04-22 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2013-04-222-1/+6
| | | | | * gdb.arch/arm-bl-branch-dest.exp: Replace additional_flags by ldflags.
* Andrew Haley found a bug on GDB running on ARM when usingSergio Durigan Junior2013-04-225-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.
* *** empty log message ***gdbadmin2013-04-221-1/+1
|
* *** empty log message ***gdbadmin2013-04-211-1/+1
|
* gdb/Yao Qi2013-04-202-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 *'.
* *** empty log message ***gdbadmin2013-04-201-1/+1
|
OpenPOWER on IntegriCloud