Michael Snyder
c0645fb52f
2007-08-01 Michael Snyder <msnyder@access-company.com>
...
* tui/tui-data.c (tui_alloc_content): Move assign out of if,
clean up long lines.
(tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
(tui_alloc_win_info): Ditto.
(tui_add_content_elements): Ditto.
* tui/tui-file.c (tui_file_magic): Ditto.
2007-08-01 20:15:36 +00:00
Michael Snyder
967af18d0d
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
True and false paths are mutually exclusive.
2007-07-31 23:08:22 +00:00
Michael Snyder
40742ab60a
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* event-top.c (command_line_handler): Add pedantic return.
2007-07-31 22:01:03 +00:00
Michael Snyder
7c6e0d4812
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* f-valprint.c (info_common_command): Bail out to prevent null
pointer deref. Break up a long line.
2007-07-31 21:56:00 +00:00
Michael Snyder
c7b1adc9a0
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* exec.c (xfer_memory): Remove redundant condition from 'if'.
2007-07-31 21:49:21 +00:00
Michael Snyder
73780b3c0a
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* symfile.c (reread_separate_symbols): Free xmalloced memory.
2007-07-31 21:42:19 +00:00
Michael Snyder
abe34c358d
2007-07-31 Michael Snyder <msnyder@access-company.com>
...
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.
2007-07-31 21:36:13 +00:00
Daniel Jacobowitz
e48883f791
* linespec.c (minsym_found): Advance to the next line if possible.
...
* gdb.base/prologue.c, gdb.base/prologue.exp: New.
* lib/gdb.exp (gdb_breakpoint): Handle "temporary".
2007-07-31 19:58:40 +00:00
Pedro Alves
5720483760
* arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
...
* config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
solib-svr4.o, and add solib-target.o
2007-07-31 13:50:11 +00:00
Michael Snyder
fed8b01e54
2007-07-27 Michael Snyder <msnyder@access-company.com>
...
* tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2007-07-28 01:16:39 +00:00
Maciej W. Rozycki
9ceb0b4c1d
* MAINTAINERS (Write After Approval): Add myself.
2007-07-26 10:37:41 +00:00
Maciej W. Rozycki
c80a96a874
gdb/:
...
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.
gdb/doc/:
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.
2007-07-26 10:34:00 +00:00
Maciej W. Rozycki
5b31182830
* Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2007-07-25 15:25:14 +00:00
Michael Snyder
f52df7d9b7
2007-07-23 Michael Snyder <msnyder@access-company.com>
...
* solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
'buffer' must cover both branches that call strcmp (Coverity).
2007-07-25 02:12:33 +00:00
Michael Snyder
55765a25f6
2007-07-05 Michael Snyder <msnyder@access-company.com>
...
* stack.c (print_frame_args): Check return value of lookup_symbol.
2007-07-25 00:28:25 +00:00
Michael Snyder
747f3d1889
2007-07-24 Michael Snyder <msnyder@access-company.com>
...
* ax-gdb.c (find_field): Guard against null ptr.
2007-07-24 22:49:44 +00:00
Ulrich Weigand
69ae91d311
* regformats/reg-spu.dat: Fix order of npc, id registers.
2007-07-24 12:51:51 +00:00
Ulrich Weigand
98646950ba
* target.c (memory_xfer_partial): Accesses to unmapped overlay
...
sections should always go to the executable file.
2007-07-24 12:49:24 +00:00
Maciej W. Rozycki
193774b320
* mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
...
prologue instructions.
2007-07-20 17:29:59 +00:00
Maciej W. Rozycki
ce1f96de2e
* mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
...
a direct test.
2007-07-20 15:31:56 +00:00
Maciej W. Rozycki
bcf1ea1e61
* mips-tdep.c (fetch_mips_16): Fix typos and reformat the
...
description.
2007-07-20 15:19:39 +00:00
Daniel Jacobowitz
255e7678a9
2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
...
Daniel Jacobowitz <dan@codesourcery.com>
* config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
* coff-pe-read.c (read_pe_exported_syms): Delete verbose
printf.
* NEWS: Mention gdbserver DLL support.
* gdb.base/unload.c (dlopen, dlsym, dlclose, dlerror): Define
for __WIN32__.
(SHLIB_NAME): Delete definition. Always pass dlerror to fprintf.
* gdb.base/unload.exp: Use shared library test routines.
* inferiors.c (all_dlls, dlls_changed, get_dll): New.
(add_thread): Minor cleanups.
(clear_inferiors): Move lower in the file. Clear the DLL
list.
(free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
* remote-utils.c (prepare_resume_reply): Check dlls_changed.
(xml_escape_text): New.
* server.c (handle_query): Handle qXfer:libraries:read. Report it
for qSupported.
(handle_v_cont): Report errors.
(gdbserver_version): Update.
(main): Correct size of own_buf. Do not report initial DLL events.
* server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
(unloaded_dll, xml_escape_text): New.
* win32-low.c (enum target_waitkind): Update comments.
(win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
(winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
(win32_EnumProcessModules, win32_GetModuleInformation)
(win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
(winapi_CreateToolhelp32Snapshot, winapi_Module32First)
(winapi_Module32Next, win32_CreateToolhelp32Snapshot)
(win32_Module32First, win32_Module32Next, load_toolhelp)
(toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
(get_child_debug_event): Handle DLL events.
(win32_wait): Likewise.
2007-07-17 12:51:41 +00:00
Daniel Jacobowitz
a8c50c1f55
* dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2007-07-17 12:46:35 +00:00
H.J. Lu
2e024c20eb
2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
...
* i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
warning bug.
2007-07-16 18:34:50 +00:00
Kevin Buettner
f219aedc69
* mep-tdep.c (mep_analyze_prologue): Update comment for BRA
...
instruction case.
2007-07-14 00:15:50 +00:00
Kevin Buettner
1ba3e7a3e6
* mep-tdep.c (IS_BRA, BRA_DISP): New macros.
...
(mep_analyze_prologue): Add case for BRA instruction.
2007-07-13 00:00:15 +00:00
Ulrich Weigand
f1e5580630
* solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2007-07-12 20:15:24 +00:00
Nick Roberts
d9f71b56cf
*** empty log message ***
2007-07-10 22:58:42 +00:00
Pedro Alves
358eb95ea3
* solib-target.c (library_list_start_segment): Cast address to
...
CORE_ADDR.
2007-07-08 19:31:11 +00:00
Mark Kettenis
a4e7b2e7cf
* bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
...
for terminated processes.
2007-07-06 11:39:44 +00:00
Michael Snyder
2ed23f5f14
2007-07-05 Michael Snyder <msnyder@access-company.com>
...
* event-top.c (cli_command_loop): Prompt string can (and should)
be freed after call to readline (Coverity). Also move local var
declarations into block where they are used.
* tui/tui-interp.c (tui_command_loop): Prompt string can (and
should) be freed after call to readline (Coverity). Also move
local var declarations into block where they are used.
2007-07-05 22:47:27 +00:00
Andreas Schwab
a25694b439
* linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
...
/proc/../stat.
2007-07-03 17:01:55 +00:00
Daniel Jacobowitz
2bbe3cc107
2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
...
Thiago Bauermann <bauerman@br.ibm.com>
Joseph S. Myers <joseph@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
gdb/
* remote.c (remote_check_symbols): Use
gdbarch_convert_from_func_ptr_addr.
* infcall.c (find_function_addr): Handle function descriptors
without debugging information.
* ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
(ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
* solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
(bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
allow SEC_CODE and SEC_DATA.
(enable_break): Update calls. Pass current_target to solib_add.
Use gdbarch_convert_from_func_ptr_addr.
gdb/gdbserver/
* remote-utils.c (look_up_one_symbol): Handle 'm' packets.
2007-07-03 15:58:42 +00:00
Daniel Jacobowitz
9f43d28cb0
2007-07-03 Ilko Iliev <iliev@ronetix.at>
...
Daniel Jacobowitz <dan@codesourcery.com>
* symfile.c (print_transfer_performance): Avoid integer overflow.
Use larger units.
2007-07-03 15:32:20 +00:00
Ulrich Weigand
3a40aaa0eb
2007-07-03 Markus Deuling <deuling@de.ibm.com>
...
* cp-namespace.c (lookup_symbol_file): Add block to
lookup_symbol_global call.
* Makefile.in (solist_h): Add dependency on symtab header.
(symtab.o): Add dependency on solist header.
* solib.c (solib_global_lookup): New function.
* solib-svr4.c (scan_dyntag): Likewise.
(elf_locate_base): Call helper routine scan_dyntag.
(elf_lookup_lib_symbol): New function.
(_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
* solist.h (symtab.h): New include.
(struct target_so_ops): New member lookup_lib_global_symbol.
(solib_global_lookup): New prototype.
* symtab.c: New include solist.h.
(lookup_objfile_from_block): New function.
(lookup_global_symbol_from_objfile): New function.
(basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
(lookup_symbol_global): Call library-specific lookup procedure.
* symtab.h (lookup_global_symbol_from_objfile): New prototype.
* NEWS: Document framework.
testsuite/
* gdb.base/solib-symbol.exp: New file (testcase multiple symbol lookup).
* gdb.base/solib-symbol-lib.c: Likewise.
* gdb.base/solib-symbol-main.c: Likewise.
2007-07-03 12:14:44 +00:00
Daniel Jacobowitz
c8c1229320
* target-descriptions.c (tdesc_create_reg): Do not set reg->type
...
to NULL.
* cli/cli-script.c (build_command_line): Update NULL check.
2007-07-03 01:23:01 +00:00
Michael Snyder
7877e97730
2007-07-02 Michael Snyder <msnyder@access-company.com>
...
* p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2007-07-03 01:01:13 +00:00
Daniel Jacobowitz
cfa9d6d991
* Makefile.in (XMLFILES): Add library-list.dtd.
...
(ALLDEPFILES): Add solib-target.o.
(solib-target.o): New rule.
* remote.c (PACKET_qXfer_libraries): New constant.
(remote_protocol_features): Add qXfer:libraries:read.
(remote_wait): Recognize library stop replies.
(remote_async_wait): Likewise. Fix typo.
(remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
(init_remote_async_ops): Fix typo.
(_initialize_remote): Register "set remote library-info-packet".
* solib-som.c (som_current_sos): Set addr_low and addr_high.
* solib-target.c: New file.
* solib.c (solib_map_sections): Use addr_low and addr_high instead
of textsection.
(info_sharedlibrary_command): Likewise.
(solib_add_library, solib_remove_library): New.
* solist.h (struct so_list): Replace textsection with addr_low and
addr_high.
* target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
* NEWS: Describe new qXfer:libraries:read and shared library
event support.
* features/library-list.dtd: New.
* gdb.texinfo (Remote Configuration): Document library-info-packet.
Add other missing entries. Adjust the table size to fit.
(Stop Reply Packets): Use @itemize instead of @enumerate. Document
stop reasons including the new "library" event.
(General Query Packets): Adjust table widths for qSupported. Mention
qXfer:libraries:read reply to qSupported and document the new packet.
(Library List Format): New section.
2007-07-02 22:01:09 +00:00
Daniel Jacobowitz
b0f4b84b5c
* infrun.c (inferior_ignoring_startup_exec_events): Delete.
...
(start_remote): Use STOP_QUIETLY_REMOTE.
(handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
support on a SOLIB_ADD definition. Update breakpoints_inserted.
Update to match shared library event breakpoint support. Only
resume if appropriate. Handle STOP_QUIETLY_REMOTE.
(normal_stop): Handle TARGET_WAITKIND_LOADED.
* fork-child.c (startup_inferior): Do not set
inferior_ignoring_startup_exec_events
* inferior.h (inferior_ignoring_startup_exec_events): Delete
declaration.
(enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
* config/gdbserver.exp (gdb_reconnect): New.
* gdb.base/so-disc-shr.c, gdb.base/solib-disc.c,
gdb.base/solib-disc.exp: New files.
* lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending
remote debugging".
(gdb_compile): Add shlib_load flag.
* lib/gdbserver-support.exp (gdbserver_run): Save the protocol and
port.
(gdbserver_reconnect): New.
2007-07-02 21:29:28 +00:00
Ulrich Weigand
9bbf65bb08
2007-07-02 Markus Deuling <deuling@de.ibm.com>
...
* breakpoint.c (insert_bp_location): Remove dead code
(DISABLE_UNSETTABLE_BREAK).
(disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2007-07-02 18:30:19 +00:00
Daniel Jacobowitz
a4954f26af
* breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
...
Call insert_bp_location.
2007-07-02 16:14:01 +00:00
H.J. Lu
b48516f9cd
2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
...
* core-regset.c (fetch_core_registers): Work around gcc 3.4
alias warning bug.
2007-07-02 00:03:29 +00:00
Daniel Jacobowitz
962257181f
* minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
...
objfiles.
2007-07-01 22:39:04 +00:00
Daniel Jacobowitz
1b05479a47
2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
...
* top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
(struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
(gdb_readline_wrapper_cleanup): Do not reset the prompt.
(gdb_readline_wrapper): Do not save the prompt. Pass our prompt
to display_gdb_prompt.
2007-07-01 Nick Roberts <nickrob@snap.net.nz>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/annota3.exp: Test for if construct.
2007-07-01 22:37:52 +00:00
Daniel Jacobowitz
5ad3a4ca20
PR symtab/2161
...
* target.c (memory_xfer_partial): Do not continue past targets with
all memory.
2007-07-01 22:35:55 +00:00
Andreas Schwab
4713453b1e
* m68k-tdep.c (m68k_ps_type): New.
...
(m68k_init_types): New.
(m68k_register_type): Use m68k_ps_type for PS register.
(_initialize_m68k_tdep): Call m68k_init_types.
2007-06-30 17:15:15 +00:00
Andreas Schwab
4ed7793328
* m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
...
from the generic m68k arch.
2007-06-30 15:35:19 +00:00
Michael Snyder
f08312c2d4
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* m2-typeprint.c (m2_print_type): Move pointer ref after null test
(Coverity).
2007-06-29 00:35:08 +00:00
Michael Snyder
a787bedf4f
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* linux-thread-db.c (thread_db_get_thread_local_address): Add
gdb_assert before using return value of find_thread_pid (Coverity).
2007-06-28 23:02:06 +00:00
Michael Snyder
77accacd47
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* source.c (unset_substitute_path_command): Plug leak (Coverity).
2007-06-28 22:14:06 +00:00