Doug Evans
45e58e77b7
* dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
...
All callers updated.
2012-07-09 18:21:31 +00:00
Tom Tromey
e314d62968
* c-exp.y (check_parameter_typelist): New function.
...
(parameter_typelist): Call it.
* eval.c (make_params): Handle '(void)' case.
* gdbtypes.c (lookup_function_type_with_arguments): Handle
'(void)' case.
testsuite
* gdb.base/whatis.exp: Add error checks for improper 'void' uses.
* gdb.base/callfuncs.exp: Add cast-based test.
* gdb.base/callfuncs.c (voidfunc): New function.
2012-07-09 14:20:52 +00:00
Alan Modra
1416057852
PR ld/14323
...
* elflink.c (elf_sort_symbol): Sort by size too.
(elf_link_add_object_symbols <weakdefs>): Simplify binary search.
Do not depend on ordering of symbol aliases. Match largest size.
2012-07-09 08:17:34 +00:00
Alan Modra
2e515f7e37
daily update
2012-07-09 00:00:04 +00:00
gdbadmin
a7d5c8c4fc
*** empty log message ***
2012-07-09 00:00:02 +00:00
Doug Evans
06928b3f65
* gdb.dwarf2/dw4-sig-type-unused.S: Fix typo.
2012-07-08 22:34:59 +00:00
gdbadmin
5413e7225e
*** empty log message ***
2012-07-08 00:00:36 +00:00
Alan Modra
461be744ee
daily update
2012-07-08 00:00:06 +00:00
Jan Kratochvil
aa7c744796
gdb/
...
* common/linux-ptrace.c: Include gdb_assert.h.
<__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
<__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
stdint.h.
(linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
functions.
* common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
* linux-nat.c (linux_child_post_attach)
(linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
gdb/gdbserver/
* gdbserver/linux-low.c (initialize_low): Call
linux_ptrace_init_warnings.
2012-07-07 12:13:57 +00:00
Jan Kratochvil
889003ed52
gdb/
...
* linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
nptl <2.7 bug workaround for core files.
2012-07-07 12:11:31 +00:00
Jan Kratochvil
32f11bad17
gdb/testsuite/
...
Fix XFAIL compatibility with old i386 systems.
* gdb.base/stale-infcall.exp (test system longjmp tracking support):
Check also 'Cannot insert breakpoint 0'.
2012-07-07 12:10:14 +00:00
Alan Modra
f33353ae21
daily update
2012-07-07 00:00:04 +00:00
gdbadmin
1ab7426b52
*** empty log message ***
2012-07-07 00:00:03 +00:00
Jan Kratochvil
da559b09fd
gdb/
...
* linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
clearing.
(save_siginfo): Remove.
(stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
call.
(resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
(linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
* linux-nat.h (struct lwp_info): Remove field siginfo.
2012-07-06 16:52:20 +00:00
Jan Kratochvil
f865ee35b7
gdb/
...
Code cleanup for the next patch.
* arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
call for it.
* ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
(ia64_linux_stopped_data_address):
* linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
the return value.
* linux-nat.h (linux_nat_get_siginfo): Likewise.
* ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
call for it.
2012-07-06 16:49:43 +00:00
Jan Kratochvil
76b83c514f
gdb/
...
PR 14321
* findcmd.c (parse_find_args): New variable pattern_buf_size_need.
Increase buffer sizes to 2x we need, not just 2x of the previous size.
gdb/testsuite/
PR 14321
* gdb.base/find.exp
(find int64_search_buf, +64/8*100, int64_search_buf): New test.
2012-07-06 15:51:40 +00:00
Tom Tromey
a6fb9c08a9
* c-exp.y (DOTDOTDOT): New token.
...
(func_mod, exp): Use parameter_typelist.
(parameter_typelist): New production.
(tokentab3): Add "..." token.
* eval.c (make_params): Handle varargs.
* gdbtypes.c (lookup_function_type_with_arguments): Handle
varargs.
testsuite
* gdb.base/whatis.exp: Add test.
2012-07-06 14:48:48 +00:00
Tom Tromey
71918a863f
PR exp/9608:
...
* c-exp.y (%union) <tvec>: Change type.
(func_mod): Now uses <tvec> type.
(exp): Update for tvec change.
(direct_abs_decl): Push the typelist.
(func_mod): Return a typelist.
(nonempty_typelist): Update for tvec change.
* gdbtypes.c (lookup_function_type_with_arguments): New function.
* gdbtypes.h (lookup_function_type_with_arguments): Declare.
* parse.c (pop_type_list): New function.
(push_typelist): New function.
(follow_types): Handle tp_function_with_arguments.
* parser-defs.h (type_ptr): New typedef. Define a VEC.
(enum type_pieces) <tp_function_with_arguments>: New constant.
(union type_stack_elt) <typelist_val>: New field.
(push_typelist): Declare.
testsuite
* gdb.base/whatis.exp: Add regression test.
2012-07-06 14:47:00 +00:00
Tom Tromey
fcde5961eb
* c-exp.y (%union) <type_stack>: New field.
...
(abs_decl, direct_abs_decl): Use <type_stack> type. Update.
(ptr_operator_ts): New production.
(ptype): Update.
* parse.c (type_stack_reserve): New function.
(check_type_stack_depth): Use it.
(pop_type_stack, append_type_stack, push_type_stack)
(get_type_stack, type_stack_cleanup): New functions.
(follow_types): Handle tp_type_stack.
(_initialize_parse): Simplify initialization.
* parser-defs.h (enum type_pieces) <tp_type_stack>: New
constant.
(union type_stack_elt) <stack_val>: New field.
(get_type_stack, append_type_stack, push_type_stack)
(type_stack_cleanup): Declare.
testsuite
* gdb.base/whatis.exp: Add tests.
2012-07-06 14:44:22 +00:00
Tom Tromey
1a7d0ce4eb
* parser-defs.h (type_stack, type_stack_size, type_stack_depth):
...
Remove.
(struct type_stack): New.
* parse.c (type_stack, type_stack_size, type_stack_depth):
Remove.
(type_stack): New global.
(parse_exp_in_context, check_type_stack_depth)
(insert_into_type_stack, insert_type, push_type, push_type_int)
(insert_type_address_space, pop_type, pop_type_int)
(_initialize_parse): Update.
2012-07-06 14:42:09 +00:00
Tom Tromey
16d0138401
* c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
...
Remove %type.
2012-07-06 14:40:30 +00:00
Maciej W. Rozycki
9d7b4c23ac
* mips.h: Fix a typo in description.
2012-07-06 14:20:22 +00:00
Siddhesh Poyarekar
9bfc60bf8d
* c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2012-07-06 05:46:04 +00:00
Siddhesh Poyarekar
d5161074cc
* cp-valprint.c (cp_print_value): Replace potentially unsafe
...
alloca with xmalloc/xfree.
2012-07-06 05:36:07 +00:00
Siddhesh Poyarekar
a74bc57646
* MAINTAINERS (Write After Approval): Add myself to the list.
2012-07-06 03:54:22 +00:00
Doug Evans
667e0a4be5
* dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2012-07-06 00:01:11 +00:00
gdbadmin
316f74070b
*** empty log message ***
2012-07-06 00:00:33 +00:00
Alan Modra
51fe2ab425
daily update
2012-07-06 00:00:04 +00:00
Sean Keys
3879925e69
gas/config/
...
* tc-xgate.c: Revised assembler so that operands
are collected before the addressing mode is
determined.
include/opcode/
* xgate.h: Changed the format string for mode
XGATE_OP_DYA_MON.
opcodes/
* xgate-dis.c: Removed an IF statement that will
always be false due to overlapping operand masks.
* xgate-opc.c: Corrected 'com' opcode entry and
fixed spacing.
2012-07-05 19:37:52 +00:00
Thomas Schwinge
f4263ca2cd
Typo fix.
2012-07-05 08:28:22 +00:00
Thomas Schwinge
8b99bf0bbe
opcodes/
...
* mips-dis: Remove gratuitous newline.
2012-07-05 08:18:43 +00:00
Hui Zhu
f77cc5f048
2012-07-05 Hui Zhu <hui_zhu@mentor.com>
...
* gdb.texinfo (Maintenance Commands): Change help for "maint agent"
and "maint agent-eval".
2012-07-05 01:08:24 +00:00
Hui Zhu
34b536a803
2012-07-05 Hui Zhu <hui_zhu@mentor.com>
...
* ax-gdb.c (cli/cli-utils.h): New include.
(linespec.h): Ditto.
(agent_eval_command_one): New function.
(agent_command_1): Ditto.
(agent_command): Call function agent_command_1.
(agent_eval_command): Ditto.
(_initialize_ax_gdb): Change help for "maint agent"
and "maint agent-eval".
2012-07-05 01:03:01 +00:00
Hui Zhu
e6f0bce70d
2012-07-05 Hui Zhu <hui_zhu@mentor.com>
...
* breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
* cli/cli-utils.c (check_for_argument): New function.
* cli/cli-utils.h (check_for_argument): Ditto.
2012-07-05 01:00:43 +00:00
gdbadmin
38401e4002
*** empty log message ***
2012-07-05 00:00:32 +00:00
Alan Modra
0a56835690
daily update
2012-07-05 00:00:04 +00:00
H.J. Lu
1b3371b136
Mention x32 ABI support in NEWS
...
* NEWS: Mention x32 ABI support.
2012-07-04 20:49:56 +00:00
H.J. Lu
23e2d720d1
Add sp_regnum_from_eax/pc_regnum_from_eax to i386 gdbarch_tdep
...
* amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
* i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
and pc_regnum_from_eax to -1. Update SP regnum from
sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
needed.
* i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
pc_regnum_from_eax.
2012-07-04 20:46:20 +00:00
Jan Kratochvil
f9cf0f4ab2
gdb/testsuite/
...
PR 12649
* gdb.base/dprintf.exp (Set dprintf style to agent): Add missing
gdb_test_multiple $gdb_prompt terminator.
2012-07-04 14:57:23 +00:00
Pedro Alves
979ade8b16
2012-07-04 Pedro Alves <palves@redhat.com>
...
* gdb.mi/mi-reverse.exp: Use supports_reverse and
supports_process_record.
2012-07-04 11:28:04 +00:00
Pedro Alves
8a980b44d0
2012-07-04 Pedro Alves <palves@redhat.com>
...
* gdb.ada/packed_tagged/comp_bug.adb: Convert to unix text line
endings.
* gdb.mi/mi-reverse.exp: Convert to unix text line endings.
2012-07-04 10:48:32 +00:00
H.J. Lu
1c52a64577
Check number of sections overflow
...
* elf.c (assign_section_numbers): Check if number of sections
>= SHN_LORESERVE.
* elfcode.h (elf_object_p): Likewise.
2012-07-04 00:29:52 +00:00
gdbadmin
93a0472204
*** empty log message ***
2012-07-04 00:00:33 +00:00
Alan Modra
e37fa14346
daily update
2012-07-04 00:00:05 +00:00
Stan Shebs
855ba978e4
* gdb.base/info-os.c (main): Retry resource acquisition until an
...
available one is found.
* gdb.base/info-os.exp: Collect resource keys from the program
and use them in matching.
2012-07-03 23:17:13 +00:00
Jan Kratochvil
836bf45453
gdb/
...
Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
* dwarf2expr.h: Include gdbtypes.h.
(enum call_site_parameter_kind, union call_site_parameter_u): Remove
these forward declarations.
(cu_offset, sect_offset): Move these ...
* gdbtypes.h: Remove include dwarf2expr.h.
(cu_offset, sect_offset): ... here.
2012-07-03 20:09:49 +00:00
Nick Clifton
5f8ebec53d
* archive.c (bsd_write_armap): Catch attempts to create an archive
...
with indicies bigger than 4Gb.
(coff_write_armap): Likewise.
* readelf.c (process_archive): Display member indicies when
dumping index.
2012-07-03 16:25:17 +00:00
Eli Zaretskii
00595b5e79
gdb.texinfo: Separate the index into 2 indices, cp and fn, to
...
avoid file-name clashes between Index.html and index.html on
case-insensitive filesystems. See the discussion starting in
http://sourceware.org/ml/gdb-patches/2012-06/msg00457.html for the
details of the problem.
(Top): Update the master menu for the above.
(Concept Index, Command and Variable Index): New nodes, instead of
the old "Index" node that was deleted. All cross-references
updated.
2012-07-03 16:22:42 +00:00
H.J. Lu
5a5ed5b0e4
Don't compress empty debug section
...
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14319
* elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
debug section.
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14319
* binutils-all/compress.exp: Test compress empty debug sections.
* binutils-all/dw2-empty.S: New file.
2012-07-03 16:06:34 +00:00
H.J. Lu
1e55e04f56
Support x32 sigtramp
...
* amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
(amd64_linux_sigtramp_code): This.
(amd64_x32_linux_sigtramp_code): New.
(LINUX_SIGTRAMP_LEN): Updated.
(amd64_linux_sigtramp_start): Check x32 sigtramp.
2012-07-03 14:53:56 +00:00