aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-03-17 * symfile.c (generic_load): Reset breakpoints after loading.Daniel Jacobowitz2-0/+14
2010-03-17 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.Tom Tromey2-4/+9
2010-03-17Avoid overflow.H.J. Lu2-1/+6
2010-03-17 Jie Zhang <jie@codesourcery.com> * elf.c (assign_file_positions_for_load_sections): Avoid overflow.
2010-03-17gdb/Jan Kratochvil2-5/+12
* spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the create_breakpoint call, adjust the parameters.
2010-03-17 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno usingAlan Modra2-2/+7
proper type.
2010-03-17rename filesAlan Modra2-0/+0
2010-03-17 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" fromAlan Modra2-13/+16
*prev instead. Update all callers.
2010-03-17warning fixesAlan Modra4-2/+10
2010-03-17*** empty log message ***gdbadmin1-1/+1
2010-03-16daily updateAlan Modra1-1/+1
2010-03-16sim: avoid TRACE redefine warningsMike Frysinger3-16/+13
The common code sets up an autoconf option --enable-sim-trace which adds -DTRACE= to CPPFLAGS. This causes warnings in the building of some files that declare a local TRACE() helper macro. So punt it from hw-ports.c (since it isn't actually used) and convert hw-properties.c to HW_TRACE().
2010-03-16gdb/Jan Kratochvil3-1/+15
* dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. * valarith.c (value_subscripted_rvalue): Suppress error if TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
2010-03-16Avoid switch to invalid ptid during Ada task switch.Joel Brobecker2-0/+18
This is to prevent an internal error during an Ada task switch. A task switch is simply a thread switch under the hood. What we do is collect the info from the Ada Task Control Block, deduce the associated thread ptid, and then switch to that thread. If the thread ptid computation routine has not been implemented for the target, of if there is a bug, then we end up computing a bogus ptid which GDB does not know about, which eventually leads to an assertion failure: (gdb) task 1 [New Thread 5715] /[...]/gdb/thread.c:595: internal-error: is_thread_state: Assertion `tp' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) When this happens, it's just nicer for the user to print an error message, and cancel the task switch. After this patch is applied, this is what we get: (gdb) task 1 [New Thread 10250] Unable to compute thread ID for task 1. Cannot switch to this task. gdb/ChangeLog: * ada-tasks.c (task_command_1): Check that the task ptid is valid before doing the associated thread switch.
2010-03-162010-03-16 Segher Boessenkool <segher@kernel.crashing.org>Segher Boessenkool2-0/+7
* gmon_io.c (gmon_out_read): Close file when done.
2010-03-16 gdb/gdbserver/Pedro Alves3-0/+52
* server.h (internal_error): Declare. (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. * utils.c (internal_error): New function.
2010-03-162010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>Hui Zhu2-2/+6
* linux-record.c (record_linux_msghdr): Remove unintended semicolons.
2010-03-16Add missing newline.Daniel Jacobowitz1-1/+1
2010-03-16 * ldlang.c (lang_insert_orphan): Place loadable orphans in the sameDaniel Jacobowitz6-1/+58
region and phdrs as their placement section. testsuite/ * ld-elf/orphan-region.d, ld-elf/orphan-region.ld, ld-elf/orphan-region.s: New files.
2010-03-16 * MAINTAINERS: Update my email address. List Tristan GingoldDaniel Jacobowitz2-3/+8
as the release branch maintainer.
2010-03-16 * MAINTAINERS: Update my email address.Daniel Jacobowitz2-5/+9
2010-03-16 Simplify MI breakpoint setting.Vladimir Prus4-139/+115
* breakpoint.c (break_command_really): Make nonstatic and rename to... (create_breakpoint): ...this. Rename prior function by this name to... (create_breakpoint_sal): ...this. (create_breakpoints): Rename to... (create_breakpoints_sal): ...this. (set_breakpoint): Remove. * breakpoint.h: Adjust to above changes. * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2010-03-162010-03-15 Doug Kwan <dougkwan@google.com>Doug Kwan3-33/+74
* stringpool.cc (Stringpool_template::Stringpool_template): Initialize offset_. (Stringpool_template::new_key_offset): New method. (Stringpool_template::add_string): Assign offsets when adding new strings. (Stringpool_template::set_string_offsets): Do not set string offsets when not optimizing. * stringpool.h (Chunked_vector::Chunked_vector): Initialize data member size_. (Chunked_vector::clear): Clear size_. (Chunked_vector::reserve): Call reserve method of all Element_vectors. (Chunked_vector::size): Return size_. (Chunked_vector::push_back): Use size_ to find insert position. (Chunked_vector::size_): New data member. (Stringpool_template::set_no_zero_null): Assert string set is empty. (Stringpool_template::new_key_offset): New method declaration. (Stringpool_template::offset_): New data member.
2010-03-16Fix a commit snafuStan Shebs1-1/+1
2010-03-16 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.Alan Modra2-1/+139
(ppc64_elf_edit_toc): Set it here. (ha_reloc_match): New function. (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
2010-03-16*** empty log message ***gdbadmin1-1/+1
2010-03-152010-03-15 Stan Shebs <stan@codesourcery.com>Stan Shebs2-53/+269
* ax-gdb.c: Include cp-support.h. (find_field): Remove. (gen_primitive_field): New function. (gen_struct_ref_recursive): New function. (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead of find_field. (gen_static_field): New function. (gen_struct_elt_for_reference): New. (gen_namespace_elt): New. (gen_maybe_namespace_elt): New. (gen_aggregate_elt_ref): New. (gen_expr): Add OP_SCOPE, display opcode name in error message.
2010-03-15daily updateAlan Modra1-1/+1
2010-03-15 * dwarf2read.c (die_needs_namespace): Also return 0 forTom Tromey2-1/+7
DW_TAG_subprogram.
2010-03-15merge from gccDJ Delorie2-1/+5
2010-03-15Requalify Ralf Corsepius' change as a "tiny change".Joel Brobecker1-1/+1
Ralf's copyright assignment does not cover GDB for the moment. He only contributed one other change, in 2005, so this should be fine.
2010-03-15 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla11-44/+156
PR c++/7936: * cp-support.h: Added char *declaration element to using_direct data struct. (cp_add_using): Added char *declaration argument. (cp_add_using_directive): Ditto. (cp_lookup_symbol_imports): made extern. * cp-namespace.c: Updated with the above changes. * dwarf2read.c (read_import_statement): Ditto. (read_namespace): Ditto. (read_import_statement): Support import declarations. * cp-namespace.c (cp_lookup_symbol_imports): Check for imported declarations. Added support for 'declaration_only' search. (cp_lookup_symbol_namespace): Attempt to search for the name as is before consideration of imports. * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' search at every block level search. Now takes language argument. (lookup_symbol_aux): Updated. 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/shadow.exp: Removed kfail; test has been fix. * gdb.cp/nsusing.exp: Ditto.
2010-03-15gdbTom Tromey5-0/+31
* c-exp.y (name_not_typename): Add 'operator' clause. gdb/testsuite * gdb.cp/userdef.exp: Add tests for explicit calls to operator==. * gdb.cp/userdef.cc (operator==): New function. (main): New locals mem1, mem2.
2010-03-15Fix date in latest entry.Joel Brobecker1-1/+1
2010-03-15Fail gdb configure if target is not supported.Joel Brobecker3-0/+12
* configure.ac: Exit if ${gdb_target_obs}" is not set. * configure: Regenerate.
2010-03-15* configure.srv: Fix typo setting srv_regobj.Andreas Schwab2-2/+6
2010-03-152010-03-15 Thomas Schwinge <thomas@codesourcery.com>Thomas Schwinge2-2/+5
* dw2gencfi.c (output_cie): Consider emitting the S augmentation in all cases, and not only for .eh_frame.
2010-03-152010-03-15 Thomas Schwinge <thomas@codesourcery.com>Thomas Schwinge2-17/+24
* dw2gencfi.c (output_cie): Make it more explicit which code paths belong to .eh_frame only.
2010-03-152010-03-15 Rafael Espindola <espindola@google.com>Rafael Ávila de Espíndola3-5/+8
* readsyms.cc (Read_symbols::do_read_symbols): Update calls to Add_symbols' constructor. * readsyms.h (Add_symbols): Remove the input_group member.
2010-03-15gdb/Jan Kratochvil2-8/+16
* symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" and ".sdynbss". Update the comment.
2010-03-15sim: rename bool argument to avoid stdbool clashMike Frysinger2-1/+6
Including stdbool.h before hw-properties.h results in a build error due to the hw_add_boolean_property function having an argument named "bool" in its prototype. The source file has already be renamed to not use this ("boolean" instead), so match the header to the source.
2010-03-15 * MAINTAINERS: Update my email address.Jie Zhang2-1/+5
2010-03-15 * lib/mi-support.exp (mi_gdb_target_load): Delete unused timeout var.Jie Zhang2-11/+21
Declare and use new loadtimeout variable.
2010-03-15 * gdb.base/printcmds.exp: Use gdb_file_cmd instead of gdb_load.Daniel Jacobowitz2-1/+7
Use gdb_load later.
2010-03-15 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.Daniel Jacobowitz2-1/+6
2010-03-15 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.Alan Modra2-1/+156
(ppc_before_allocation): Call sort_toc_sections. (no_toc_sort, OPTION_NO_TOC_SORT): New. (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
2010-03-15 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.Alan Modra3-0/+17
* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
2010-03-15 * linux-low.c (fetch_register): Avoid passing a non string literalPedro Alves2-19/+8
format to `error'. (usr_store_inferior_registers): Ditto.
2010-03-15*** empty log message ***gdbadmin1-1/+1
2010-03-14daily updateAlan Modra1-1/+1
2010-03-14 * charset.c [USE_WIN32API]: Include <windows.h>.Daniel Jacobowitz2-1/+9
(_initialize_charset): Correct type of w32_host_default_charset.