aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-25 * deffilep.y (def_image_name): Adjust type of base-addressKai Tietz2-6/+23
argument. (%union): Add new type bfd_vma as vma. (VMA): New rule. (opt_base): Use VMA instead of NUMBER rule to evaluate value. (def_file_print): Use bfd's fprintf_vma to output base-address.
2013-01-25* objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.Nick Clifton2-0/+5
2013-01-25 * MAINTAINERS: Update my email.Maxim Kuvyrkov2-1/+5
2013-01-25 * config/tc-ppc.c (md_assemble): Do not generate APUinfo sectionsJoseph Myers2-1/+7
for 64-bit output.
2013-01-25gdb/Yao Qi2-1/+5
* main.c (print_gdb_help): Remove "--epoch" from the help message.
2013-01-25*** empty log message ***gdbadmin1-1/+1
2013-01-24daily updateAlan Modra1-1/+1
2013-01-24gdb/Tiago Daitx6-0/+85
* symtab.c (skip_prologue_using_sal): Consider a file change the same as an increased line number gdb/testsuite/ * gdb.base/prologue-include.c: New file. * gdb.base/prologue-include.exp: New file. * gdb.base/prologue-include.h: New file.
2013-01-24gdb/Tiago Daitx2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2013-01-24 * dwarf.c (display_debug_addr): Add missing parentheses to expression.Doug Evans2-1/+5
2013-01-24Default text reordering fix with a flag to turn it off.Sriraman Tallam8-19/+99
2013-01-24 Sriraman Tallam <tmsriram@google.com> * layout.cc (Layout::layout): Check for option text_reorder. (Layout::make_output_section): Ditto. * options.h (text_reorder): New option. * output.cc (Input_section_sort_compare): Remove special ordering of section names. (Output_section:: Input_section_sort_section_name_special_ordering_compare:: operator()): New function. (Output_section::sort_attached_input_sections): Use new sort function for .text. * output.h (Input_section_sort_section_name_special_ordering_compare): New struct. * testsuite/Makefile.am (text_section_grouping): Test option --no-text-reorder * testsuite/Makefile.in: Regenerate. * testsuite/text_section_grouping.sh: Check order of functions without default text reordering.
2013-01-24 * ada-lang.h (ada_decode_symbol): Make return type const.Tom Tromey3-4/+9
* ada-lang.c (ada_decode_symbol): Likewise.
2013-01-24 * v850.h: Add e3v5 support.Nick Clifton2-13/+47
2013-01-24Add support for V850E3V5 architectureNick Clifton20-350/+1512
2013-01-242013-01-24 Hafiz Abid Qadeer <abidh@codesourcery.com>Hafiz Abid Qadeer2-8/+13
PR gdb/13443 * gdb.mi/mi-var-block.exp: Make test messages unique.
2013-01-24*** empty log message ***gdbadmin1-1/+1
2013-01-23daily updateAlan Modra1-1/+1
2013-01-23 * gdb.dwarf2/dw2-error.exp: Pass test name to "file" test.Tom Tromey2-2/+7
2013-01-23 * gdb.cp/converts.cc (main): Initialize 'a'.Tom Tromey2-1/+6
2013-01-23 * linespec.c (find_linespec_symbols): Make static.Doug Evans2-6/+10
2013-01-232013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>Sergio Durigan Junior2-4/+11
* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct type on float conversion for complex type.
2013-01-23 Add a new class gdb.Architecture which exposes GDB'sSiva Chandra Reddy11-0/+241
internal representation of architecture via GDB Python API. * Makefile.in: Add entries corresponding to the new file python/py-arch.c. * NEWS (Python Scripting): Add entries for the new class gdb.Architecture and the new method gdb.Frame.architecture. * python/py-arch.c: Implement gdb.Architecture class. * python/py-frame.c (frapy_arch): Implement the method gdb.Frame.architecture(). (frame_object_methods): Add 'architecture' to the method table. * python/python-internal.h: Add declarations of new utility functions. * python/python.c (_initialize_python): Initialize gdb.Architecture class. * doc/gdb.texinfo (Architectures In Python): New sub-sub-section describing the gdb.Architecture class. (Frames In Python): Add description about the new method gdb.Frame.architecture(). * testsuite/gdb.python/frame.exp: Add a test for gdb.Frame.architecture() method.
2013-01-23 Work around binutils/15021.Doug Evans4-40/+90
* dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and type_unit_group out of union s. All uses updated. (read_index_from_section): Watch for index version 8. (follow_die_sig): If using .gdb_index version <= 7, record the TU as an imported symtab. (write_psymtabs_to_index): Increment version number to 8. doc/ * gdb.texinfo (Index Section Format): Document .gdb_index version 8.
2013-01-23 PR ld/15041Nick Clifton2-4/+11
* scripttempl/pep.sc (.pdata): Only accept .pdata sections. (.xdata): Similarly. (.debug_frame): Similarly.
2013-01-23 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.Nick Clifton2-8/+39
2013-01-23 PR gas/15039Nick Clifton2-1/+7
* config/tc-avr.c: Include dwarf2dbg.h.
2013-01-23 PR ld/15037Nick Clifton2-1/+7
* scripttempl/avr.sc (.eeprom): Keep it.
2013-01-23 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.Alan Modra5-1/+41
(eelf64rdos.c): New rule. * emulparams/elf64rdos.sh: New file. * configure.tgt (x86_64-*-rdos*): Use above. * Makefile.in: Regenerate.
2013-01-23 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.Alan Modra2-1/+4
2013-01-232013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2-0/+9
* readelf.c: Add strings for NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL.
2013-01-23*** empty log message ***gdbadmin1-1/+1
2013-01-22daily updateAlan Modra1-1/+1
2013-01-22ld/Roland McGrath2-3/+8
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set new_dtags to TRUE for *-*-nacl* targets.
2013-01-22If a breakpoint is not user visible, then there's no point inPedro Alves5-4/+19
bothering the frontend about it... This is the exact same check MI does. I also smoke tested Emacs 23 in gud-gdb mode, both annotations=2 and annotations=3. I didn't notice anything break. gdb/ 2013-01-22 Pedro Alves <palves@redhat.com> * annotate.c (breakpoint_changed): Skip if breakpoint is not user-visible. gdb/testsuite/ 2013-01-22 Pedro Alves <palves@redhat.com> * gdb.base/annota1.exp (signal sent): No longer expect breakpoints-invalid. * gdb.cp/annota2.exp (continue until exit) (watch triggered on a.x): Ditto.
2013-01-22All annotate_breakpoints_changed calls are along-sidePedro Alves7-35/+49
observer_notify_breakpoints_changed calls. All, except the init_raw_breakpoint one. But that one is actually wrong. The breakpoint is being constructed at that point, and hasn't been placed on the breakpoint chain yet. It would be better placed in install_breakpoint, and I actually started out that way. But once the annotate_breakpoints_changed are parallel to the observer calls, we can fully move annotations to observers too. One issue is that this changes the order of annotations a bit. Before, we'd emit the annotation, and after call "mention()" on the breakpoint (which prints the breakpoint number, etc.). But, we call the observers _after_ mention is called, so the annotation output will change a little: void install_breakpoint (int internal, struct breakpoint *b, int update_gll) { add_to_breakpoint_chain (b); set_breakpoint_number (internal, b); if (is_tracepoint (b)) set_tracepoint_count (breakpoint_count); if (!internal) mention (b); observer_notify_breakpoint_created (b); if (update_gll) update_global_location_list (1); } I believe this order doesn't really matter (the frontend needs to wait for the prompt anyway), so I just adjust the expected output in the tests. Emacs in annotations mode doesn't seem to complain. Couple that with the previous patch that suppressed duplicated annotations, and, the fact that some annotations calls were actually missing (were we do have observer calls), more changes to the tests are needed anyway. Tested on x86_64 Fedora 17. gdb/ 2013-01-22 Pedro Alves <palves@redhat.com> * annotate.c (annotate_breakpoints_changed): Rename to ... (annotate_breakpoints_invalid): ... this. Make static. (breakpoint_changed): Adjust. (_initialize_annotate): Always install the observers. Install a "breakpoint_created" observer. * annotate.h (annotate_breakpoints_changed): Delete declaration. * breakpoint.c (set_breakpoint_condition) (breakpoint_set_commands, do_map_commands_command) (init_raw_breakpoint, clear_command, set_ignore_count) (enable_breakpoint_disp): No longer call annotate_breakpoints_changed. gdb/testsuite/ 2013-01-22 Pedro Alves <palves@redhat.com> * gdb.base/annota1.exp (breakpoints_invalid): New variable. Adjust tests to breakpoints-invalid changes. * gdb.cp/annota2.exp (breakpoints_invalid, frames_invalid): New variables. Adjust tests to breakpoints-invalid changes.
2013-01-22With some changes to how software single-step (SSS) breakpoints arePedro Alves4-2/+55
handled, one of those being to place SSS breakpoints on the breakpoint chain as all other breakpoints, annota1.exp times out with lots and lots of breakpoint-invalid and frame-changed annotations. All those extra annotations are actually unnecessary. For one, SSS breakpoints are internal breakpoints, so the frontend shouldn't care if they were added, removed or changed. Then, there's really no point in emitting "breakpoints-invalid" or "frames-invalid" more than once between times the frontend/user can actually issues GDB commands; the frontend will have to wait for the GDB prompt to refresh its state, so emitting those annotations at most once between prompts is enough. Non-stop or async would complicate this, but no frontend will be using annotations in those modes (one of goes of emacs switching to MI was non-stop mode support, AFAIK). The previous patch reveals there has been an intention in the past to suppress multiple breakpoints-invalid annotations caused by ignore count changes. As the previous patch shows, that's always been broken, but in any case, this patch actually makes it work. The next patch will remove several annotation-specific calls in breakpoint.c in favor of always using the breakpoint modified & friends observers, and that causes yet more of these annotations, because several calls to the corresponding annotate_* functions in breakpoint.c are missing, particularly in newer code. So all in all, here's a simple mechanism that avoids sending the same annotation to the frontend more than once until gdb is ready to accept further commands. Tested on x86_64 Fedora 17. 2013-01-22 Pedro Alves <palves@redhat.com> * annotate.c: Include "inferior.h". (frames_invalid_emitted) (breakpoints_invalid_emitted): New globals. (async_background_execution_p): New function. (annotate_breakpoints_changed, annotate_frames_invalid): Skip emitting the annotation if it has already been emitted. (annotate_display_prompt): New function. * annotate.h (annotate_display_prompt): New declaration. * event-top.c: Include annotate.h. (display_gdb_prompt): Call annotate_display_prompt.
2013-01-22There's code in annotate.c and breakpoint.c that is supposed toPedro Alves6-25/+20
suppress multiple breakpoints-invalid annotations when the ignore count of a breakpoint changes, up until the target actually stops. But, the code is bogus: void annotate_breakpoints_changed (void) { if (annotation_level == 2) { target_terminal_ours (); printf_unfiltered (("\n\032\032breakpoints-invalid\n")); if (ignore_count_changed) ignore_count_changed = 0; /* Avoid multiple break annotations. */ } } The "ignore_count_changed" flag isn't actually guarding the output of the annotation at all. It would have been better written something like: void annotate_breakpoints_changed (void) { if (annotation_level == 2 && !ignore_count_changed) { target_terminal_ours (); printf_unfiltered (("\n\032\032breakpoints-invalid\n")); ignore_count_changed = 0; /* Avoid multiple break annotations. */ } } but, it wasn't. AFAICS, that goes all the way back to the original patch'es submission and check in, at <http://sourceware.org/ml/gdb-patches/1999-q4/msg00106.html>. I looked a tar of HP's wdb from 1999, and even though that contains local changes in the annotate code, this suppression seems borked there too to me. The original patch added a test to supposedly exercise this suppression, but, it actually doesn't. It merely tests that "breakpoints-invalid" is output after "stopped", but doesn't check whether the duplicates supression actually works (IOW, check that only _one_ annotation is seen). I was going to simply delete the tests too, but a following patch will eliminate the duplicates in a different way (which I needed for a different reason), so instead, I'm making the tests actually fail if a duplicate annotation is seen. Worry not, the test doesn't actually fail! The reason is that breakpoint.c does: else if (b->ignore_count > 0) { b->ignore_count--; annotate_ignore_count_change (); bs->stop = 0; /* Increase the hit count even though we don't stop. */ ++(b->hit_count); observer_notify_breakpoint_modified (b); } where the annotate_ignore_count_change call is meant to inform the "breakpoint_modified" annotation observer to ignore the notification. All sounds good. But, the trouble is that nowadays annotate.c only installs the observers if GDB is started with annotations enabled with a command line option (gdb --annotate=2): void _initialize_annotate (void) { if (annotation_level == 2) { observer_attach_breakpoint_deleted (breakpoint_changed); observer_attach_breakpoint_modified (breakpoint_changed); } } and annota1.exp, to enable annotations, starts GDB normally, and afterwards does "set annotate 2", so the observers aren't installed when annota1.exp is run, and therefore changing the ignore count isn't triggering any annotation at all... gdb/ 2013-01-22 Pedro Alves <palves@redhat.com> * annotate.c (ignore_count_changed): Delete. (annotate_breakpoints_changed): Don't clear ignore_count_changed. (annotate_ignore_count_change): Delete. (annotate_stopped): Don't emit a delayed breakpoints-changed annotation. * annotate.h (annotate_ignore_count_change): Delete. * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call annotate_ignore_count_change. gdb/testsuite/ 2013-01-22 Pedro Alves <palves@redhat.com> * gdb.base/annota1.exp (annotate ignore count change): Add expected output for failure case.
2013-01-22 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: OnlyTom Tromey2-1/+7
require_rvalue for a register location.
2013-01-22 * gdb.gdb/selftest.exp (do_steps_and_nexts): Handle bfd_initTom Tromey2-0/+9
call.
2013-01-22Updated Changelog and testsuite/Changelog because of bad formatting.Marc Khouzam2-10/+11
2013-01-22*** empty log message ***gdbadmin1-1/+1
2013-01-212013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>Marc Khouzam11-62/+136
* breakpoint.c (print_one_breakpoint_location): Add MI field 'thread-groups' when printing a breakpoint. (output_thread_groups): New function. 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com> * gdb.texinfo (GDB/MI Breakpoint Commands): Document new 'thread-groups' field when printing a breakpoint in MI. 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com> * gdb.mi/mi-break.exp: Expect new 'thread-groups' field. * gdb.mi/mi-nsmoribund.exp: Expect new 'thread-groups' field. Also handle 'thread' field. * gdb.mi/mi-simplerun.exp: Expect new 'thread-groups' field. * gdb.mi/mi-watch.exp: Ditto. * lib/mi-support.exp: Ditto.
2013-01-21daily updateAlan Modra1-1/+1
2013-01-21 * python/lib/gdb/commands/explore.pySiva Chandra Reddy4-6/+28
(CompoundExplorer.explore_expr): Correct the name of a method being invoked. (ExploreTypeCommand.invoke): Add a missing 'return'. * testsuite/gdb.python/py-explore.exp: Improve a test
2013-01-21 * gdb_obstack.h (obconcat): Move declaration here, from...Tom Tromey6-35/+68
* symfile.h (obconcat): ... here. * gdb_obstack.c: New file. (obconcat): Move from... * symfile.c (obconcat): ... here. * Makefile.in (SFILES): Add gdb_obstack.c. (COMMON_OBS): Add gdb_obstack.o.
2013-01-21 * symfile.h (obsavestring): Don't declare.Tom Tromey14-96/+81
* symfile.c (obsavestring): Remove. * ada-exp.y: Use obstack_copy0, not obsavestring. * ada-lang.c: Use obstack_copy0, not obsavestring. * coffread.c: Use obstack_copy0, not obsavestring. * cp-namespace.c: Use obstack_copy0, not obsavestring. * dbxread.c: Use obstack_copy0, not obsavestring. * dwarf2read.c: Use obstack_copy0, not obsavestring. * jit.c: Use obstack_copy0, not obsavestring. * mdebugread.c: Use obstack_copy0, not obsavestring. * psymtab.c: Use obstack_copy0, not obsavestring. * stabsread.c: Use obstack_copy0, not obsavestring. * xcoffread.c: Use obstack_copy0, not obsavestring.
2013-01-21 * dwarf2read.c (fixup_go_packaging): Save package nameTom Tromey3-9/+16
on objfile obstack. * gdbtypes.c (init_type): Don't copy name.
2013-01-21 * dwarf2read.c (struct partial_die_info) <name, scope>: NowTom Tromey2-65/+88
const. (struct attribute) <u.str>: Now const. (struct fnfieldlist) <name>: Now const. (dw2_get_file_names_reader, init_cutu_and_read_dies): Update. (partial_die_parent_scope): Make return type const. (partial_die_full_name, add_partial_symbol): Update. (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make 'name' const. (find_file_and_directory): Make 'name' and 'comp_dir' const. (read_file_scope, read_func_scope, dwarf2_add_field) (dwarf2_add_member_fn, read_structure_type) (process_enumeration_scope, read_array_type, read_module_type) (read_base_type, read_subrange_type): Update. (dwarf2_start_symtab): Make 'name' and 'comp_dir' const. (new_symbol_full, guess_full_die_structure_name): Update. (dwarf2_canonicalize_name): Return const type. Make 'name' const. (dwarf2_name): Return const type. (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir' const.
2013-01-21 * gdbtypes.c (init_type): Make 'name' const.Tom Tromey3-2/+7
* gdbtypes.h (init_type): Update.
2013-01-21 * buildsym.c (patch_subfile_names): Use set_last_source_file.Tom Tromey7-34/+87
(start_symtab): Make 'name' and 'dirname' const. Use set_last_source_file. (restart_symtab, reset_symtab_globals): Use set_last_source_file. (last_source_file): Define. Now static. (set_last_source_file, get_last_source_file): New functions. * buildsym.h (last_source_file): Don't declare. (start_symtab): Update. (set_last_source_file, get_last_source_file): Declare. * coffread.c (complete_symtab): Use set_last_source_file. (coff_end_symtab): Likewise. (coff_symtab_read): Use set_last_source_file, get_last_source_file. * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use set_last_source_file. (process_one_symbol): Use get_last_source_file. * mdebugread.c (parse_partial_symbols): Use set_last_source_file. (psymtab_to_symtab_1): Use get_last_source_file. * xcoffread.c (process_linenos): Use get_last_source_file. (complete_symtab): Use set_last_source_file. (read_xcoff_symtab): Use set_last_source_file, get_last_source_file. (scan_xcoff_symtab): Use set_last_source_file.