Joel Brobecker
807160da3c
sol-thread.c: Remove commented-out code.
...
gdb/ChangeLog:
* sol-thread.c (sol_thread_fetch_registers)
(sol_thread_store_registers): Delete commented out code.
2012-09-27 12:53:57 +00:00
Joel Brobecker
43c75337b6
New unit sparc-sol-thread.c extracted from sol-thread.c
...
Moving some sparc-specific routines out of sol-thread.c into their
own (new) file.
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Move these functions to sparc-sol-thread.c.
* sparc-sol-thread.c: New file.
* configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
configurations.
* configure: Regenerate.
2012-09-27 12:53:44 +00:00
Joel Brobecker
d292a9723d
sol-thread.c: Remove #if 0-ed code.
...
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Remove commented-out code.
2012-09-27 12:53:13 +00:00
Joel Brobecker
8c3da00317
sol-thread.c: conditionalize some sparc-specific libthread_db functions.
...
gdb/ChangeLog:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
Enable this code for sparc hosts only.
2012-09-27 12:52:53 +00:00
Joel Brobecker
f00482b603
Add procfs_find_LDT_entry declaration (procfs.h).
...
Add a declaration for procfs_find_LDT_entry in order to prevent
a compiler warning about this function missing one. This also
helps making sure that declaration and definition remain consistent.
gdb/ChangeLog:
* procfs.h (procfs_find_LDT_entry): Add declaration.
* sol-thread.c (ps_lgetLDT): Delete local declaration of
function procfs_find_LDT_entry.
2012-09-27 12:52:10 +00:00
Joel Brobecker
337c776f02
Make procfs.c:proc_get_LDT_entry static
...
This function is not used outside of procfs.c.
gdb/ChangeLog:
* procfs.c (proc_get_LDT_entry): Make static.
2012-09-27 12:51:57 +00:00
Joel Brobecker
1a04d88fbc
Fix declaration of proc_find_memory_regions
...
This function is used as a target_ops callback. The function
implemention was recently changed, but the declaration wasn't
updated accordingly.
This fixes a build failure on Solaris.
gdb/ChangeLog:
* procfs.c (proc_find_memory_regions): Fix declaration.
2012-09-27 12:51:40 +00:00
Siddhesh Poyarekar
bad43aa52e
* amd64-tdep.c (amd64_return_value): Revert previous change
...
that used TYPE_LENGTH directly.
* bfin-tdep.c (bfin_extract_return_value): Likewise.
(bfin_store_return_value): Likewise.
* cris-tdep.c (cris_store_return_value): Likewise.
(cris_extract_return_value): Likewise.
* h8300-tdep.c (h8300_extract_return_value): Likewise.
* hppa-tdep.c (hppa64_return_value): Likewise.
* lm32-tdep.c (lm32_store_return_value): Likewise.
* microblaze-tdep.c (microblaze_store_return_value): Likewise.
* spu-tdep.c (spu_value_from_register): Likewise.
* vax-tdep.c (vax_return_value): Likewise.
2012-09-27 10:40:01 +00:00
Siddhesh Poyarekar
63375b7438
* gdbtypes.c (lookup_array_range_type): Expand parameters
...
LOW_BOUND and HIGH_BOUND to LONGEST.
(lookup_string_range_type): Likewise.
* gdbtypes.h (lookup_array_range_type): Likewise.
(lookup_string_range_type): Likewise.
* valops.c (value_cstring): Expand parameter LEN to ssize_t.
Expand HIGHBOUND to ssize_t.
(value_string): Likewise.
* value.h (value_cstring): Expand parameter LEN to ssize_t.
(value_string): Likewise.
2012-09-27 08:57:16 +00:00
gdbadmin
8b627ae9fa
*** empty log message ***
2012-09-27 00:00:02 +00:00
Yao Qi
19ca11c580
gdb/
...
PR breakpoints/13898
* breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
per breakpoint type.
2012-09-26 23:53:53 +00:00
Pierre Muller
9210735600
* procfs.c: Add gdb_bfd header.
...
* rs6000-nat.c: Likewise.
* solib-pa64.c: Likewise.
* spu-linux-nat.c: Likewise.
* windows-nat.c: Likewise.
2012-09-26 21:23:11 +00:00
Tom Tromey
9742094a45
* f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2012-09-26 19:58:18 +00:00
Tom Tromey
0971de02d5
* dwarf2read.c (mark_common_block_symbol_computed): New function.
...
(read_common_block): Handle child DIEs with
DW_AT_data_member_location.
(new_symbol_full): Add special case for common blocks.
gdb/testsuite
* gdb.dwarf2/dw2-common-block.S: New file.
* gdb.dwarf2/dw2-common-block.exp: New file.
2012-09-26 19:50:13 +00:00
Tom Tromey
4357ac6c6f
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
...
Tom Tromey <tromey@redhat.com>
* dwarf2read.c (read_common_block): Rewrite.
(new_symbol_full): Handle DW_TAG_common_block.
* f-lang.c (head_common_list, find_common_for_function):
Remove.
* f-lang.h (struct common_entry, struct saved_f77_common,
SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
BLANK_COMMON_NAME_LOCAL): Remove.
(struct common_block): New.
* f-valprint.c (list_all_visible_commons): Remove.
(info_common_command_for_block): New function.
(info_common_command): Use it.
* stack.c (iterate_over_block_locals): Special case for
COMMON_BLOCK_DOMAIN.
* symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
constant.
(struct general_symbol_info) <value.common_block>: New field.
(SYMBOL_VALUE_COMMON_BLOCK): New define.
gdb/testsuite
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.fortran/common-block.exp: New file.
* gdb.fortran/common-block.f90: New file.
2012-09-26 19:38:32 +00:00
Tom Tromey
965f07a88d
2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
...
Tom Tromey <tromey@redhat.com>
* f-lang.c (allocate_saved_bf_node,
allocate_saved_function_node, allocate_saved_f77_common_node,
allocate_common_entry_node, tail_common_list, current_common,
saved_bf_list, saved_bf_list_end, current_head_bf_list,
tmp_bf_ptr, add_common_block, add_common_entry,
find_first_common_named, patch_common_entries,
patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
global_remote_debug, get_bf_for_fcn, saved_function_list,
saved_function_list_end, clear_function_list, struct saved_fcn,
struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
SAVED_BF, SAVED_BF_PTR): Remove.
* f-lang.h (tail_common_list, current_common,
UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
real_main_c_value): Remove.
* f-valprint.c (there_is_a_visible_common_named): Remove.
2012-09-26 19:05:09 +00:00
Andrew Burgess
6f380991ba
http://sourceware.org/ml/gdb-patches/2012-09/msg00403.html
...
gdb/ChangeLog
* breakpoint.c (update_global_location_list): Ignore previous
duplicate status of a breakpoint when starting a new scan for
duplicate breakpoints.
gdb/testsuite/ChangeLog
* gdb.base/duplicate-bp.c: New file.
* gdb.base/duplicate-bp.exp: New file.
2012-09-26 16:36:00 +00:00
Karthik Bhat
8b3d5494ef
Adding PR number tp ChangeLog
2012-09-26 14:15:53 +00:00
Yao Qi
2536b51cfc
Fix changelog format.
2012-09-26 13:45:46 +00:00
Karthik Bhat
9ead7ae4a2
* arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.
2012-09-26 12:14:30 +00:00
Siddhesh Poyarekar
8f8a23a2c3
* amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
...
* bfin-tdep.c (bfin_extract_return_value): Likewise.
(bfin_store_return_value): Likewise.
* cris-tdep.c (cris_store_return_value): Likewise.
(cris_extract_return_value): Likewise.
* h8300-tdep.c (h8300_extract_return_value): Likewise.
* hppa-tdep.c (hppa64_return_value): Likewise.
* lm32-tdep.c (lm32_store_return_value): Likewise.
* microblaze-tdep.c (microblaze_store_return_value): Likewise.
* spu-tdep.c (spu_value_from_register): Likewise.
* vax-tdep.c (vax_return_value): Likewise.
2012-09-26 07:52:48 +00:00
Yao Qi
8ae551cf47
gdb/testsuite:
...
* gdb.mi/mi2-cli.exp: Avoid line number in test summary.
Revert:
2012-09-21 Yao Qi <yao@codesourcery.com>
* gdb.mi/mi2-cli.exp: Remove redundant '\'.
2012-09-26 06:53:46 +00:00
Siddhesh Poyarekar
d701958995
gdb/ChangeLog:
...
* breakpoint.c (invalidate_bp_value_on_memory_change): Expand
parameter LEN to ssize_t.
gdb/doc/ChangeLog:
observer.texi (memory_changed): Expand parameter LEN to ssize_t.
2012-09-26 02:06:55 +00:00
gdbadmin
5e5d3f22e4
*** empty log message ***
2012-09-26 00:00:33 +00:00
Siddhesh Poyarekar
744a805904
* ada-valprint.c (ada_val_print_1): Eliminate single-use
...
variable LEN.
* alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
directly.
(alpha_store_return_value): Likewise.
* amd64-tdep.c (amd64_classify_aggregate): Likewise.
(amd64_push_arguments): Likewise.
* ax-gdb.c (gen_trace_static_fields): Likewise.
(gen_traced_pop): Likewise.
* bfin-tdep.c (bfin_push_dummy_call): Likewise.
* breakpoint.c (update_watchpoint): Likewise.
* findcmd.c (parse_find_args): Use local variable for type
instead of length.
* findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
* h8300-tdep.c (h8300h_extract_return_value): Likewise.
(h8300_store_return_value): Likewise.
* i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
Use i386_darwin_arg_type_alignment directly.
* infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
* lm32-tdep.c (lm32_push_dummy_call): Likewise.
* m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
(m68hc11_extract_return_value): Likewise.
* mep-tdep.c (mep_push_dummy_call): Likewise.
* printcmd.c (float_type_from_length): Likewise.
* s390-tdep.c (s390_value_from_register): Likewise.
* stack.c (read_frame_arg): Likewise.
* tracepoint.c (encode_actions_1): Likewise.
* valops.c (value_fetch_lazy): Use local variable for type
instead of length. Use TYPE_LENGTH directly.
* value.c (value_contents_equal): Use TYPE_LENGTH directly.
2012-09-25 12:48:53 +00:00
Joel Brobecker
a4b411d69d
Fix typo in skip_prologue_sal's comment.
...
gdb/ChangeLog:
* symtab.c (skip_prologue_sal): Fix typo in comment.
2012-09-25 12:38:56 +00:00
Joel Brobecker
11dba07abb
Fix ChangeLog entry order (merge error).
2012-09-25 12:23:25 +00:00
Joel Brobecker
2e47c6caff
Small typo in comment inside create_sals_line_offset
...
gdb/ChangeLog:
* linespec.c (create_sals_line_offset): Fix typo in comment.
2012-09-25 12:22:54 +00:00
Siddhesh Poyarekar
318102b961
gdb/ChangeLog:
...
* c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
use plongest to print the array size.
testsuite/ChangeLog:
* gdb.base/longest-types.c: New test case.
* gdb.base/longest-types.exp: New test case.
2012-09-25 12:20:42 +00:00
Yao Qi
a1e5fd6938
gdb/testsuite:
...
* gdb.mi/mi2-cli.exp: Check breakpoint notification.
2012-09-25 00:55:15 +00:00
gdbadmin
6919373875
*** empty log message ***
2012-09-25 00:00:32 +00:00
Siddhesh Poyarekar
b4aa388a20
* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
...
* p-valprint.c (pascal_type_print_base): Likewise.
2012-09-24 10:25:09 +00:00
gdbadmin
b6b05ca274
*** empty log message ***
2012-09-24 00:00:32 +00:00
gdbadmin
9d6943f97c
*** empty log message ***
2012-09-23 00:00:33 +00:00
Yao Qi
84cebc4a97
gdb/testsuite/
...
* remote.c (remote_get_trace_status): Remove setting default
values of fields of 'ts'.
2012-09-22 13:04:55 +00:00
gdbadmin
0ea4fdcfc2
*** empty log message ***
2012-09-22 00:00:05 +00:00
Jan Kratochvil
04e7407c59
gdb/
...
Fix internal error on canonicalization of clang types.
* cp-name-parser.y (operator): New comment at make_operator call for
new, delete, new[] and delete[].
(exp): Use "sizeof ". Add new comment at make_operator call.
gdb/testsuite/
Fix internal error on canonicalization of clang types.
* gdb.dwarf2/dw2-canonicalize-type.S: New file.
* gdb.dwarf2/dw2-canonicalize-type.exp: New file.
* lib/gdb.exp (gdb_file_cmd): Catch also GDB internal error.
2012-09-21 20:01:12 +00:00
Jan Kratochvil
9bf4bce984
gdb/
...
Fix disassemble without parameters in tailcall frame.
* cli/cli-cmds.c (disassemble_current_function): Use
get_frame_address_in_block.
gdb/testsuite/
Fix disassemble without parameters in tailcall frame.
* gdb.arch/amd64-entry-value.exp (down, disassemble): New tests.
2012-09-21 18:53:15 +00:00
Tom Tromey
1c5b7826c5
* c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
...
TYPE_CODE_UNION>: Unify, removing a goto.
2012-09-21 17:37:47 +00:00
Tom Tromey
62a49610b8
* c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2012-09-21 17:33:17 +00:00
Andrew Burgess
2603f7eeca
http://sourceware.org/ml/gdb-patches/2012-08/msg00715.html
...
gdb/ChangeLog
* findvar.c (read_frame_register_value): Mark the result value as
optimized out if any of the input registers have been optimized out.
gdb/testsuite/ChangeLog
* gdb.dwarf2/dw2-op-out-param.S: New file.
* gdb.dwarf2/dw2-op-out-param.exp: New file.
2012-09-21 17:17:23 +00:00
Andreas Schwab
810849a34e
* python/python.c (finalize_python): Only define if HAVE_PYTHON.
2012-09-21 12:57:34 +00:00
Yao Qi
a3569abd1a
gdb/testsuite:
...
* gdb.mi/mi2-cli.exp: Remove redundant '\'.
2012-09-21 12:26:30 +00:00
Siddhesh Poyarekar
0953dec1c5
* eval.c (evaluate_subexp_standard): Eliminate single-use
...
variable LOWER.
2012-09-21 09:24:41 +00:00
Yao Qi
a065d7af0e
gdb/testsuite:
...
* gdb.mi/mi-cli.exp: Remove.
* gdb.mi/mi2-cli.exp: Merged from mi-cli.exp.
2012-09-21 08:39:08 +00:00
Yao Qi
15544bd96e
gdb/testsuite:
...
* gdb.mi/mi-reverse.exp: Fix the typo in expected output of
"=record-started" notification.
2012-09-21 07:29:46 +00:00
Yao Qi
82a90ccf2a
gdb/doc:
...
2012-09-21 Yao Qi <yao@codesourcery.com>
Pedro Alves <palves@redhat.com>
* gdb.texinfo (GDB/MI Async Records): Document notification
'record-started' and 'record-stopped'.
* observer.texi (GDB Observers): New observer 'record-changed'.
gdb:
2012-09-21 Yao Qi <yao@codesourcery.com>
* mi/mi-interp.c: Declare mi_record_changed.
(mi_interpreter_init): Call observer_attach_record_changed.
(mi_record_changed): New.
* record.c (record_open): Call observer_notify_record_changed.
(cmd_record_stop): Call observer_notify_record_changed.
* NEWS: Mention it.
gdb/testsuite:
2012-09-21 Yao Qi <yao@codesourcery.com>
* gdb.mi/mi-record-changed.exp: New.
* gdb.mi/mi-reverse.exp: Adjust expected output.
2012-09-21 01:46:46 +00:00
gdbadmin
b3aea08323
*** empty log message ***
2012-09-21 00:00:03 +00:00
Tom Tromey
d7de8e3ce9
* NEWS: Update.
...
* python/python.c (finalize_python): New function.
(_initialize_python): Make a final cleanup.
testsuite
* gdb.python/python.exp: Test atexit.register.
2012-09-20 20:54:11 +00:00
Doug Evans
05eade73e1
* boards/dwarf4-gdb-index.exp: New file.
2012-09-20 15:21:09 +00:00