aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2008-08-21 * dwarf2read.c (processing_current_prefix): Delete staticDaniel Jacobowitz1-7/+10
variable. (process_full_comp_unit): Do not set processing_current_prefix. (dwarf2_full_name): New function. (read_func_scope): Do not set processing_current_prefix. Use determine_prefix. (read_structure_type): Do not set processing_current_prefix. Remove unused inner cleanup. (process_structure_scope): Do not set processing_current_prefix. (read_enumeration_type): Use dwarf2_full_name. (determine_class_name): Return a const char *. Put the result on the objfile obstack. Use dwarf2_full_name. (read_namespace_type): New function. (read_namespace): Do not create the type here. Use determine_prefix. (read_typedef): Use dwarf2_full_name. Do not pass the name to init_type. (read_base_type): Do not pass the name to init_type. Handle TYPE_FLAG_NOSIGN. (read_unspecified_type): Do not pass the name to init_type. (new_symbol): Use dwarf2_full_name instead of processing_current_prefix. (read_type_die): Do not set processing_current_prefix. Handle DW_TAG_namespace. (determine_prefix): Handle specifications. Return the result on the objfile obstack. Handle unions correctly.
2008-08-21 * gdb.mi/mi-nonstop.exp: Fix the check for non-stopVladimir Prus3-13/+35
support. Adjust the order of "*running" notifications. * gdb.mi/non-stop.c: Don't cast from int to void* and back.
2008-08-21* gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don'tMark Kettenis2-1/+6
expect to find it in the "info frame" output.
2008-08-20 * gdb.base/interp.exp: Always consume both prompts.Daniel Jacobowitz2-1/+14
2008-08-20 gdb/Pedro Alves2-0/+31
* linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if there are no symbols loaded, instead of throwing a generic error. (decode_variable): Likewise. gdb/testsuite/ * gdb.base/pending.exp: Test pending breakpoints without symbols loaded.
2008-08-19 * lib/mi-support.exp (mi_expect_stop): ProduceVladimir Prus4-1/+296
more details on failures. * gdb.mi/mi-nonstop.exp: New. * gdb.mi/non-stop.c: New.
2008-08-19 * target.c (target_async_permitted, target_async_permitted_1)Vladimir Prus3-3/+8
(set_maintenance_target_async_permitted) (show_maintenance_target_async_permitted): New. (initialize_targets): Register 'set target-async'. * target.h (target_async_permitted): Declare. * linux-nat.c (linux_nat_async_enabled) (linux_nat_async_permitted, set_maintenance_linux_async_permitted) (show_maintenance_linux_async_permitted): Remove. (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p) (get_pending_events, linux_nat_async): Use target_async_permitted. (linux_nat_set_async_mode): Remove, moving the only used bits into... (linux_nat_setup_async): This. (_initialize_linux_nat): Do not register 'maint set linux-async'. Use linux_nat_setup_async. * remote.c (remote_async_permitted, remote_async_permitted_set) (set_maintenance_remote_async_permitted) (show_maintenance_remote_async_permitted): Remove. (remote_open_1, remote_terminal_inferior, remote_can_async_p) (remote_is_async_p): Use target_async_permitted. (_initialize_remote): Don't register 'main set remote-async'. * mi/mi-cmds.c (mi_cmds): Register -list-target-features. * mi/mi-cmds.h (mi_cmd_list_target_features): New. * mi/mi-main.c (mi_cmd_list_target_features): New.
2008-08-18 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,Daniel Jacobowitz2-1/+5
lr_register. (rs6000_in_function_epilogue_p): Check for bctr. (skip_prologue): Initialize lr_register. Set lr_reg to a register number. Set gpr_mask and used_bl. Continue scanning while some expected registers are not saved. Set lr_register if LR is not stored. (rs6000_frame_cache): Handle gpr_mask and lr_register. * gdb.arch/powerpc-prologue.exp: Correct saved registers.
2008-08-17gdb:Tom Tromey2-1/+5
PR gdb/1535: * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros. (ep_find_event_name_end): Remove. (catch_fork_temporary, catch_vfork_temporary, catch_fork_permanent, catch_vfork_permanent): New constants. (catch_vfork, catch_fork): Remove. (catch_fork_command_1): Add 'command' argument. Remove 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for all cases. (catch_exec_command_1): Add 'command' argument; remove 'tempflag'. Handle NULL 'arg'. (catch_load_command_1): Likewise. (catch_unload_command_1): Likewise. (catch_ada_exception_command): Likewise. (catch_assert_command): Likewise. (catch_catch_command): New function. (catch_throw_command): Likewise. (catch_command_1): Remove. (catch_command): Just call error. (tcatch_command): Likewise. (catch_cmdlist): New global. (tcatch_cmdlist): Likewise. (add_catch_command): New function. (_initialize_breakpoint): Create "catch" and "tcatch" as prefix commands. Create all catch sub-commands. gdb/testsuite: * gdb.base/help.exp (help catch): Rewrite.
2008-08-16gdb/Thiago Jung Bauermann3-0/+37
2008-08-16 Vladimir Prus <vladimir@codesourcery.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * cli-script.c (read_next_line): Add parse_commands argument. (recurse_read_control_structure): Adapt to new read_next_line signature. (read_command_lines): Add parse_commands argument. (define_command): Adapt to new read_command_lines signature. (document_command): Likewise. * breakpoint.c (commands_command): Likewise. * defs.h (read_command_lines): Adjust function prototype. testsuite/ 2008-08-16 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.base/define.exp: Test indented command documentation. * gdb.python/python.exp: Test indented multi-line command.
2008-08-15 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".Luis Machado4-0/+326
Include "features/rs6000/powerpc-vsx64.c". (ppc_supply_vsxregset): New function. (ppc_collect_vsxregset): New function. (IS_VSX_PSEUDOREG): New macro. (IS_EFP_PSEUDOREG): New macro. (vsx_register_p): New function. (ppc_vsx_support_p): New function. (rs6000_builtin_type_vec128): New function. (rs6000_register_name): Hide upper halves of vs0~vs31. Return correct names for VSX registers and EFPR registers. (rs6000_pseudo_register_type): Return correct types for VSX and EFPR registers. (rs6000_pseudo_register_reggroup_p): Return correct group for VSX and EFPR registers. (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. (vsx_pseudo_register_read): New function. (vsx_pseudo_register_write): New function. (efpr_pseudo_register_read): New function. (efpr_pseudo_register_write): New function. (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. (rs6000_gdbarch_init): Declare have_vsx. Initialize new upper half VSX registers. Initialize VSX-related and EFPR-related pseudo-registers variables. Adjust the number of pseudo registers accordingly. * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS and SIZEOF_VSRREGS. (gdb_vsxregset_t): New type. (have_ptrace_getsetvsxregs): New variable. (fetch_vsx_register): New function. (fetch_register): Handle VSX registers. (fetch_vsx_registers): New function. (fetch_ppc_registers): Handle VSX registers. (store_ppc_registers): Handle VSX registers. (store_vsx_register): New function. (store_register): Handle VSX registers. (store_vsx_registers): New function. (ppc_linux_read_description): Handle VSX-enabled inferiors. (gdb_vsxregset_t): New type. (supply_vsxregset): New function. (fill_vsxregset): New function. * ppc-tdep.h (vsx_register_p): New prototype. (vsx_support_p): New prototype. (ppc_vsr0_regnum): New variable. (ppc_vsr0_upper_regnum): Likewise. (ppc_efpr0_regnum): Likewise. (ppc_builtin_type_vec128): New type. (ppc_num_vsrs): New constant. (ppc_num_vshrs): New constant. (ppc_num_efprs): Likewise. Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. (ppc_supply_vsxregset): New prototype. (ppc_collect_vsxregset): New prototype. * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" Include "features/rs6000/powerpc-vsx64l.c". (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. (ppc_linux_regset_from_core_section): Handle VSX core section. (ppc_linux_core_read_description): Support VSX-enabled core files. * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l Declare tdesc_powerpc_vsx64l * corelow.c (get_core_register_section): Support VSX-enabled core files. * features/rs6000/power-vsx.xml: New VSX descriptions. * features/rs6000/powerpc-vsx32.xml: New file. * features/rs6000/powerpc-vsx32l.xml: New file. * features/rs6000/powerpc-vsx64.xml: New file. * features/rs6000/powerpc-vsx64l.xml: New file. * features/rs6000/powerpc-vsx32.c: New file (generated). * features/rs6000/powerpc-vsx32l.c: New file (generated). * features/rs6000/powerpc-vsx64.c: New file (generated). * features/rs6000/powerpc-vsx64l.c: New file (generated). * features/Makefile: Updated with new descriptions. * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). * testsuite/gdb.arch/vsx-regs.c: New source file. * testsuite/gdb.arch/vsx-regs.exp: New testcase. * testsuite/lib/gdb.exp (skip_vsx_tests): New function.
2008-08-14gdb:Tom Tromey2-0/+15
* macrocmd.c (macro_define_command): Check for NULL argument. (macro_undef_command): Likewise. gdb/testsuite: * gdb.base/macscp.exp: Add regression test for "macro define" or "macro undef" with no arguments.
2008-08-08gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.Paul Pluzhnikov2-5/+9
2008-08-07ChangeLog:Ulrich Weigand2-4/+8
* spu-tdep.c (info_spu_dma_cmdlist): Only show entries with the valid bit set. Ensure display order respects partial order defined by dependency bits. testsuite/ChangeLog: * gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
2008-08-06Initial python support.Thiago Jung Bauermann2-0/+70
gdb/ 2008-08-06 Vladimir Prus <vladimir@codesourcery.com> Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> Doug Evans <dje@google.com> * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS, PYTHON_CFLAGS): New. (python_h, python_internal_h): New. (cli-script.o): Depend on python.h (python.o, python-utils.o): New. * cli/cli-script.c (print_command_lines): Handle python_control. (execute_control_command): Handle python_control. (execute_control_command_untraced): New function. (while_command): Call execute_control_command_untraced. (if_command): Likewise. (get_command_line): Remove static attribute. (read_next_line): Handle "python". (recurse_read_control_structure): Handle python_control. (read_command_lines): Handle python_control. Include python.h. * cli/cli-script.h (get_command_line): Add prototype. (execute_control_command_untraced): Likewise. * configure.ac: Add --with-python. * defs.h (enum command_control_type) <python_control>: New constant. * python/python-internal.h: New file. * python/python.c: New file. * python/python.h: New file. * python/python-utils.c: New file. * NEWS: Mention Python scripting support and its new commands. gdb/doc/ 2008-08-06 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Extending GDB): New chapter. (Sequences): Demoted chapter, now a section under the new Extending GDB chapter. (Python): New section. gdb/testsuite/ 2008-08-06 Tom Tromey <tromey@redhat.com> * gdb.python/python.exp: New file.
2008-08-06 Fix for PR gdb/1543.Jan Kratochvil222-686/+115
* gdb.base/sep.exp: `sep-proc.c' absolute line numbers replaced with $LOCATION. (location): New variable. * config/cfdbug.exp, config/d10v.exp, config/dve.exp, config/i960.exp, config/m32r.exp, config/mn10300-eval.exp, config/proelf.exp, config/rom68k.exp, config/sh.exp, config/unix.exp, config/vr4300.exp, config/vr5000.exp, config/vxworks.exp, gdb.arch/altivec-regs.exp, gdb.arch/e500-abi.exp, gdb.arch/e500-regs.exp, gdb.asm/asm-source.exp, gdb.base/a2-run.exp, gdb.base/advance.exp, gdb.base/all-bin.exp, gdb.base/args.exp, gdb.base/arithmet.exp, gdb.base/assign.exp, gdb.base/async.exp, gdb.base/auxv.exp, gdb.base/bigcore.c, gdb.base/bigcore.exp, gdb.base/bitfields.exp, gdb.base/bitops.exp, gdb.base/break.c, gdb.base/break.exp, gdb.base/break1.c, gdb.base/call-ar-st.exp, gdb.base/call-rt-st.exp, gdb.base/call-strs.exp, gdb.base/callfuncs.c, gdb.base/callfuncs.exp, gdb.base/checkpoint.exp, gdb.base/chng-syms.exp, gdb.base/code-expr.exp, gdb.base/commands.exp, gdb.base/completion.exp, gdb.base/complex.exp, gdb.base/cond-expr.exp, gdb.base/condbreak.exp, gdb.base/consecutive.exp, gdb.base/corefile.exp, gdb.base/cvexpr.c, gdb.base/cvexpr.exp, gdb.base/dbx.exp, gdb.base/default.exp, gdb.base/define.exp, gdb.base/del.c, gdb.base/detach.exp, gdb.base/display.exp, gdb.base/dump.exp, gdb.base/echo.exp, gdb.base/environ.exp, gdb.base/eval-skip.exp, gdb.base/exprs.exp, gdb.base/fileio.exp, gdb.base/find.exp, gdb.base/finish.exp, gdb.base/funcargs.exp, gdb.base/gcore-buffer-overflow.exp, gdb.base/gcore.exp, gdb.base/gdb1555.exp, gdb.base/gdbvars.exp, gdb.base/help.exp, gdb.base/huge.exp, gdb.base/info-proc.exp, gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/langs.exp, gdb.base/lineinc.exp, gdb.base/list.exp, gdb.base/macscp.exp, gdb.base/maint.exp, gdb.base/mips_pro.exp, gdb.base/miscexprs.exp, gdb.base/nodebug.exp, gdb.base/nofield.c, gdb.base/opaque.exp, gdb.base/overlays.exp, gdb.base/page.exp, gdb.base/pc-fp.exp, gdb.base/pending.c, gdb.base/pendshr.c, gdb.base/pointers.exp, gdb.base/psymtab.exp, gdb.base/ptype.exp, gdb.base/randomize.c, gdb.base/readline.exp, gdb.base/recurse.exp, gdb.base/regs.exp, gdb.base/relational.exp, gdb.base/relocate.exp, gdb.base/remote.exp, gdb.base/reread.exp, gdb.base/return.exp, gdb.base/return2.exp, gdb.base/scope.exp, gdb.base/sect-cmd.exp, gdb.base/sep-proc.c, gdb.base/sep.c, gdb.base/sep.exp, gdb.base/sepdebug.c, gdb.base/sepdebug.exp, gdb.base/setshow.exp, gdb.base/shlib-call.exp, gdb.base/sigaltstack.c, gdb.base/so-indr-cl.exp, gdb.base/solib.exp, gdb.base/source.exp, gdb.base/start.c, gdb.base/step-bt.c, gdb.base/step-line.exp, gdb.base/structs.c, gdb.base/structs.exp, gdb.base/structs2.exp, gdb.base/term.exp, gdb.base/twice.exp, gdb.base/type-opaque.exp, gdb.base/until.exp, gdb.base/value-double-free.c, gdb.base/varargs.exp, gdb.base/watchpoint.exp, gdb.base/whatis-exp.exp, gdb.disasm/am33.exp, gdb.disasm/h8300s.exp, gdb.disasm/hppa.exp, gdb.disasm/mn10300.exp, gdb.disasm/sh3.exp, gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp, gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp, gdb.disasm/t05_cmp.exp, gdb.disasm/t06_ari2.exp, gdb.disasm/t07_ari3.exp, gdb.disasm/t08_or.exp, gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp, gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp, gdb.disasm/t13_otr.exp, gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.hp/gdb.aCC/exception.exp, gdb.hp/gdb.aCC/optimize.exp, gdb.hp/gdb.aCC/watch-cmd.exp, gdb.hp/gdb.base-hp/callfwmall.exp, gdb.hp/gdb.base-hp/dollar.exp, gdb.hp/gdb.base-hp/hwwatchbus.exp, gdb.hp/gdb.base-hp/pxdb.exp, gdb.hp/gdb.base-hp/reg-pa64.exp, gdb.hp/gdb.base-hp/reg.exp, gdb.hp/gdb.base-hp/sized-enum.exp, gdb.hp/gdb.base-hp/so-thresh.exp, gdb.hp/gdb.compat/xdb1.exp, gdb.hp/gdb.compat/xdb2.exp, gdb.hp/gdb.compat/xdb3.exp, gdb.java/jmisc.exp, gdb.java/jv-exp.exp, gdb.java/jv-print.exp, gdb.mi/gdb669.exp, gdb.mi/gdb680.exp, gdb.mi/gdb701.exp, gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-console.exp, gdb.mi/mi-hack-cli.exp, gdb.mi/mi-pending.c, gdb.mi/mi-pendshr.c, gdb.mi/mi-pthreads.exp, gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp, gdb.mi/mi2-basics.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-hack-cli.exp, gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-read-memory.exp, gdb.mi/mi2-regs.exp, gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp, gdb.pascal/types.exp, gdb.stabs/weird.exp, gdb.threads/gcore-thread.exp, gdb.threads/manythreads.exp, gdb.threads/print-threads.exp, gdb.threads/pthreads.exp, gdb.threads/schedlock.exp, gdb.threads/step.exp, gdb.threads/step2.exp, gdb.threads/switch-threads.exp, gdb.threads/thread-specific.exp, gdb.threads/thread_check.exp, gdb.threads/thread_events.exp, gdb.threads/tls-nodebug.exp, gdb.threads/tls-shared.exp, gdb.threads/tls.exp, gdb.trace/actions.exp, gdb.trace/backtrace.exp, gdb.trace/circ.exp, gdb.trace/collection.exp, gdb.trace/deltrace.exp, gdb.trace/infotrace.exp, gdb.trace/limits.exp, gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp, gdb.trace/report.exp, gdb.trace/save-trace.exp, gdb.trace/tfind.exp, gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp, lib/mi-support.exp, lib/trace-support.exp: Remove reference to bug-gdb@prep.ai.mit.edu .
2008-07-31 * lib/mi-support.exp (mi_load_shlibs): New.Vladimir Prus3-1/+21
* gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
2008-07-30 * lib/mi-support.exp (get_mi_thread_list)Vladimir Prus5-415/+145
(check_mi_and_console_threads): New, moved from ... * gdb.mi/mi-pthread.exp: ...here. * gdb.mi/gdb669.exp (get_mi_thread_list) (check_mi_and_console_threads): Delete. * gdb.mi/mi2-pthread.exp: Likewise.
2008-07-28 * Makefile.in (just-check): Remove. Move body to...Tom Tromey2-3/+6
(check): ... here.
2008-07-27 * linux-nat.c (resume_callback): Add more debugging output.Daniel Jacobowitz2-2/+37
(linux_nat_has_pending_sigint): New function, based on linux_nat_has_pending. (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. (stop_wait_callback): Remove flush_mask handling. Honor ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL to recursive calls. (linux_nat_has_pending, flush_callback): Remove. (linux_nat_filter_event): Check for ignore_sigint. (linux_nat_wait): Remove flush_mask support and call to flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. * linux-nat.h (struct lwp_info): Add ignore_sigint field. * gdb.threads/manythreads.exp: Use remote_expect instead of after. Add a test for duplicated SIGINTs.
2008-07-27 * linux-nat.c (count_events_callback, select_event_lwp_callback): OnlyDaniel Jacobowitz2-6/+23
report events from resumed threads. * gdb.threads/schedlock.exp (get_args): Update to work for any value of NUM. (Top level): Report the number of threads that did not resume.
2008-07-27 * gdb.dwarf2/dw2-compressed.S: Also define __start.Daniel Jacobowitz2-0/+6
2008-07-27 * lib/mi-support.exp (default_mi_gdb_start): Remove check forDaniel Jacobowitz2-5/+5
non-MI prompt.
2008-07-27gdb:Tom Tromey3-0/+18
PR gdb/1158: * valops.c (value_struct_elt): Treat function-valued field as a static method. gdb/testsuite: * gdb.base/callfuncs.c (struct struct_with_fnptr): New struct. (function_struct, function_struct_ptr): New globals. * gdb.base/callfuncs.exp (do_function_calls): Test calling via a function pointer in a struct.
2008-07-27gdb:Tom Tromey2-0/+9
PR gdb/1136: * macroexp.c (get_punctuator) <punctuators>: Rearrange to put longer tokens first. gdb/testsuite: * gdb.base/macscp.exp: Add test for macro lexing bug.
2008-07-18gdbTom Tromey2-0/+48
PR gdb/855: * NEWS: Add entry for macro commands. * Makefile.in (macrocmd.o): Add gdb_string.h. * macroscope.h (user_macro_scope): Declare. (default_macro_scope): Update documentation. (macro_user_macros): Declare. * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. Use user_macro_scope. (null_macro_lookup): Remove. * macrotab.h (macro_callback_fn): Declare. (macro_for_each): Likewise. (macro_allow_redefinitions): Likewise. * macrotab.c (foreach_macro): New function (macro_for_each): Likewise. (struct macro_table) <redef_ok>: New field. (macro_allow_redefinitions): New function. (new_macro_table): Update. (macro_define_function): Likewise. (macro_define_object): Likewise. * macroscope.c (user_macro_scope): New function. (default_macro_scope): Use it. (macro_user_macros): New global. (standard_macro_lookup): Look in macro_user_macros. (_initialize_macroscope): New function. * macroexp.h (macro_is_whitespace, macro_is_digit, macro_is_identifier_nondigit): Declare. * macroexp.c (macro_is_whitespace): Rename. No longer static. (macro_is_digit): Likewise. (macro_is_identifier_nondigit): Likewise. (get_identifier): Update. (get_pp_number): Likewise. (get_token): Likewise. * macrocmd.c (skip_ws): New function. (extract_identifier): Likewise. (free_macro_definition_ptr): Likewise. (user_macros): Remove. (macro_define_command): Implement. (_initialize_macrocmd): Update. (macro_undef_command): Implement. (print_one_macro): New function. (macro_list_command): Implement. gdb/doc * gdb.texinfo (Macros): Update. Use @code rather than @command. gdb/testsuite * gdb.base/macscp.exp: Add macro tests.
2008-07-17Fix for Linux/VDSO failure.Paul Pluzhnikov2-2/+6
2008-07-17Fix for gdb.base/corefile.exp failure on LinuxPaul Pluzhnikov2-1/+6
2008-07-15Fix for 'FAIL: gdb.cp/class2.exp: p acp->c2' on spu-elfPaul Pluzhnikov2-2/+6
2008-07-14Fix for PR gdb/2477Paul Pluzhnikov3-1/+21
2008-07-13 * gdb.base/randomize.exp: Catch non-Linux targets as untested.Jan Kratochvil2-1/+9
2008-07-12 * infrun.c (normal_stop): For MI, report which threadsVladimir Prus2-3/+7
were stopped.
2008-07-11 * gdb.arch/e500-regs.exp (decimal_vector): Adjust "v8_int8" portionKevin Buettner2-6/+8
of regexp to account for changes made to GDB in the printing of byte vectors.
2008-07-11gdbTom Tromey2-0/+21
* completer.c (complete_line_internal): New function, from complete_line. Add 'for_help' parameter. (complete_line): Use it. (command_completer): Move later. Rewrite. gdb/testsuite * gdb.base/completion.exp: Add 'help' completion test.
2008-07-10 * gdb.base/randomize.exp: Remove dependency on tcl-8.4+.Jan Kratochvil2-2/+6
2008-07-10gdb/Jan Kratochvil3-0/+122
* NEWS (New commands): Mention "set disable-randomization". * configure.ac: Add check for HAVE_PERSONALITY and HAVE_DECL_ADDR_NO_RANDOMIZE. * configure, config.in: Regenerate. * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>. [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set ADDR_NO_RANDOMIZE. (disable_randomization, show_disable_randomization) (set_disable_randomization): New. (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the variable DISABLE_RANDOMIZATION. (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable DISABLE_RANDOMIZATION. gdb/doc/ * gdb.texinfo (Starting): Document "set disable-randomization". gdb/testsuite/ * gdb.base/randomize.exp, gdb.base/randomize.c: New files.
2008-07-09gdb/Pedro Alves2-2/+6
2008-07-09 Pedro Alves <pedro@codesourcery.com> * symfile.c (load_command): Reopen the exec file and reread symbols before anything else. gdb/testsuite/ 2008-07-09 Pedro Alves <pedro@codesourcery.com> * gdb.base/chng-syms.exp: Don't expect "No symbol ...".
2008-07-09 * gdb.base/fullname.exp: Restore pwd if compiling failed.Pedro Alves2-0/+5
2008-07-07gdb/Jan Kratochvil3-0/+78
* breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. gdb/testsuite/ * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.
2008-07-05Add missed changelog entry.Daniel Jacobowitz1-0/+7
2008-06-28 * lib/mi-support.exp (mi_send_resuming_command_raw): RevertVladimir Prus2-1/+14
previous commit. Add a comment.
2008-06-28gdb/Pedro Alves3-0/+86
2008-06-28 Pedro Alves <pedro@codesourcery.com> * linux-nat.c (enum sigchld_state): New. (linux_nat_async_events_state): Renamed from linux_nat_async_events_enabled. (linux_nat_event_pipe_push, my_waitpid): Adjust. (sigchld_default_action): New. (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events unconditionally. (linux_nat_create_inferior): Set events state to sigchld_default state. (linux_nat_resume): Adjust. (linux_nat_wait): Call linux_nat_async_events unconditionally. (sigchld_handler): Adjust. (linux_nat_async_mask): Don't set SIGCHLD actions here. (get_pending_events): Adjust. (linux_nat_async_events): Rewrite to handle enum sigchld_state instead of a boolean. (linux_nat_async): Adjust. (_initialize_linux_nat): Capture default SIGCHLD action into sigchld_default_action. gdb/testsuite/ 2008-06-28 Pedro Alves <pedro@codesourcery.com> * gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
2008-06-28 * lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.Vladimir Prus2-0/+5
2008-06-28Revert accidental commitVladimir Prus1-1/+1
2008-06-27 * lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.Pedro Alves3-0/+81
(gdb_compile): If target is *-*-cygwin* or *-*-mingw*, and we're compiling an executable, link in an object that forces unbuffered output. * lib/set_unbuffered_mode.c: New file.
2008-06-26 * target.c (target_read_until_error): New.Vladimir Prus1-1/+1
* target.h (target_read_until_error): Declare. * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read_until_error.
2008-06-25 * lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.Jan Kratochvil2-1/+5
2008-06-25Revert accidental commit.Daniel Jacobowitz1-2/+0
2008-06-25 Emit ^running via observer.Vladimir Prus3-81/+40
* mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print ^running here. (mi_on_resume): Print ^running if not previously output. * mi/mi-main.c (running_result_record_printed): New. (captured_mi_execute_command): Reset running_result_record_printed. Use running_result_record_printed to decide if we should skip ^done. (mi_execute_async_cli_command): Don't print ^running here. * mi/mi-main.h (current_token, running_result_record_printed): Declare.
2008-06-25 * elf32-arm.c (STUB_ENTRY_NAME): Define.Daniel Jacobowitz1-0/+2
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of R_ARM_ABS32. (struct elf32_arm_stub_hash_entry): Add output_name. (arm_build_one_stub): Move offsets into the offset argument of _bfd_final_link_relocate. Correct offset for arm_thumb_arm_v4t_stub_long_branch. (elf32_arm_size_stubs): Set stub_entry->output_name. (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. Update all callers. (elf32_arm_output_stub_sym): New. (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. * ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d, ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d, ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d, ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d, ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d, ld-arm/farcall-thumb-arm-blx-pic-veneer.d, ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d, ld-arm/farcall-thumb-thumb-blx-pic-veneer.d, ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d, ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for stub symbols and stub corrections.