1 2009-02-04 Tristan Gingold <gingold@adacore.com>
3 * machoread.c (macho_symfile_read): Read minsymtab also from
5 (macho_symfile_read): Try to read dwarf2 frame info from main
6 object file, but not from OSO files.
7 (macho_symfile_offsets): Update section names for latest BFD
9 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
10 (x86_darwin_init_abi_64): Ditto.
11 * solib-darwin.c: New file.
12 * solib-darwin.h: New file.
13 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
15 2009-02-04 Tristan Gingold <gingold@adacore.com>
17 * solist.h (struct target_so_ops): Comment fallback behavior for
20 2009-02-03 Tom Tromey <tromey@redhat.com>
22 * completer.c (add_struct_fields): Check type_name against NULL
25 2009-02-03 Joel Brobecker <brobecker@adacore.com>
27 * MAINTAINERS: Update Elena's email address.
29 2009-02-02 Joel Brobecker <brobecker@adacore.com>
31 * breakpoint (update_watchpoint): Minor comment adjustment.
33 2009-02-02 Tom Tromey <tromey@redhat.com>
36 * completer.c (count_struct_fields): Count method names.
37 (add_struct_fields): Add matching method names.
39 2009-02-02 Doug Evans <dje@google.com>
41 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
42 doing any further tcl/tk configury. Don't configure gdbtk if
43 tcl or tk check fails.
44 * aclocal.m4: Regenerate.
45 * configure: Regenerate.
47 2009-02-02 Tom Tromey <tromey@redhat.com>
50 * valops.c (find_overload_match): Follow typedefs before taking
51 address of object argument.
53 2009-02-01 Doug Evans <dje@google.com>
55 * target.h (target_waitstatus_to_string): Declare.
56 * target.c (target_waitstatus_to_string): New function. Copied from
57 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
58 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
59 TARGET_WAITKIND_NO_HISTORY.
60 (debug_to_wait): Call it.
61 * infrun.c (wait_for_inferior): If debug_infrun, print result of
63 (fetch_inferior_event): Ditto.
65 2009-01-30 Tom Tromey <tromey@redhat.com>
67 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
69 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
72 * thread.c (do_captured_list_thread_ids): Report the current
75 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
77 * breakpoint.c (create_breakpoint, create_breakpoints)
78 (break_command_really, set_breakpoint): New parameter enabled.
79 (create_breakpoint, break_command_really): Make breakpoint
80 disabled if so requested.
81 * breakpoint.h (set_breakpoint): New parameter enabled.
82 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
84 2009-01-28 Doug Evans <dje@google.com>
86 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
87 (amd64_displaced_step_fixup): Declare.
88 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
89 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
90 and make static global.
91 (amd64_arch_regmap_len): New static global.
92 (amd64_arch_reg_to_regnum): New function.
93 (struct amd64_insn): New struct.
94 (struct displaced_step_closure): New struct.
95 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
96 (rex_prefix_p,skip_prefixes)
97 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
98 (amd64_insn_length,amd64_get_unused_input_int_reg)
99 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
100 (amd64_displaced_step_copy_insn)
101 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
102 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
103 (amd64_displaced_step_fixup): New functions.
104 * amd64-linux-tdep.c: #include arch-utils.h.
105 (amd64_linux_init_abi): Install displaced stepping support.
107 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
108 Jerome Guitton <guitton@adacore.com>
110 * configure, config.in: Regenerated.
111 * configure.ac: Add --with-system-gdbinit.
112 * main.c (get_init_files): New.
113 (captured_main): Use get_init_files. Load system gdbinit before
115 (print_gdb_help): Print location of init files.
117 2009-01-28 Pedro Alves <pedro@codesourcery.com>
119 * corefile.c (generic_search): Delete disabled code.
120 * gdbcore.h (generic_search): Delete declaration.
122 2009-01-26 Pedro Alves <pedro@codesourcery.com>
124 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
126 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
127 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
128 remove_breakpoints to remove breakpoints from the parent.
130 2009-01-26 Pedro Alves <pedro@codesourcery.com>
132 PR backtrace/9458, PR backtrace/8864:
133 * frame.c (create_new_frame): Update the frame's cached PC before
134 finding its unwinder. Use frame_id_build to build the new frame's
136 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
137 array values from the ``args'' array values.
139 2009-01-26 Pedro Alves <pedro@codesourcery.com>
141 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
142 (create_array_type, create_set_type, init_flags_type)
143 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
144 with a call to XZALLOC or XCALLOC, and pairs of calls to
145 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
147 2009-01-26 Pedro Alves <pedro@codesourcery.com>
149 Add "maint set|show internal-error|internal-warning quit|corefile
150 ask|yes|no" commands.
153 * utils.c (internal_problem_ask, internal_problem_yes)
154 (internal_problem_no, internal_problem_modes): New.
155 (struct internal_problem): Remove FIXME. Make should_quit and
156 should_dump_core types to char *.
157 (internal_vproblem, internal_error_problem)
158 (internal_warning_problem): Adjust.
159 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
161 (add_internal_problem_command): New.
162 (_initialize_utils): New.
164 2009-01-25 Pedro Alves <pedro@codesourcery.com>
166 * infcmd.c (program_info): Use paddress instead of casting stop_pc
169 2009-01-24 Pedro Alves <pedro@codesourcery.com>
171 * infrun.c (normal_stop): Don't call
172 deprecated_update_frame_pc_hack.
173 * frame.c (deprecated_update_frame_pc_hack)
174 (deprecated_update_frame_base_hack): Delete, and ...
175 (create_new_frame): ... inline here.
176 * frame.h (deprecated_update_frame_pc_hack)
177 (deprecated_update_frame_base_hack): Delete declarations.
179 2009-01-23 Pedro Alves <pedro@codesourcery.com>
181 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
182 * cli/cli-setshow.c (do_setshow_command): Handle it.
183 * command.h (enum var_types): Add var_zuinteger.
184 (add_setshow_zuinteger_cmd): Declare.
186 * valprint.c (_initialize_valprint): Change the set input-radix
187 and set output-radix commands to zuinteger type.
189 2009-01-23 Pedro Alves <pedro@codesourcery.com>
192 * infrun.c (normal_stop): Tag threads as stopped, and run the
193 hook-stop before printing the stack frame.
195 2009-01-22 Pedro Alves <pedro@codesourcery.com>
198 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
201 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
203 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
206 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
209 * infcmd.c (signal_command): Do not specify a resume PC.
211 2009-01-19 Doug Evans <dje@google.com>
213 * dummy-frame.c (dummy_frame): Replace regcache member with
215 (dummy_frame_push): Replace caller_regcache arg with caller_state.
217 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
218 (dummy_frame_pop): Rewrite. Verify requested frame is in the
219 dummy frame stack. Restore program state.
220 (cleanup_dummy_frames): Rewrite.
221 (dummy_frame_sniffer): Update. Make static.
222 * dummy-frame.h (regcache,frame_info): Delete forward decls.
223 (inferior_thread_state): New forward decl.
224 (dummy_frame_push): Update prototype.
225 * frame.c (frame_pop): dummy_frame_pop now does all the work for
227 * infcall.c (breakpoint_auto_delete_contents): Delete.
228 (get_function_name,run_inferior_call): New fns.
229 (call_function_by_hand): Simplify by moving some code to
230 get_function_name, run_inferior_call. Inferior function call wrapped
231 in TRY_CATCH so there's less need for cleanups and all exits from
232 proceed are handled similarily. Detect program exit.
233 Detect program stopping in a different thread.
234 Make error messages more consistent.
235 * inferior.h (inferior_thread_state): Declare (opaque type).
236 (save_inferior_thread_state,restore_inferior_thread_state,
237 make_cleanup_restore_inferior_thread_state,
238 discard_inferior_thread_state, get_inferior_thread_state_regcache):
240 (save_inferior_status): Update prototype.
241 * infrun.c: (normal_stop): When stopped for the completion of an
242 inferior function call, verify the expected stack frame kind.
243 (inferior_thread_state): New struct.
244 (save_inferior_thread_state,restore_inferior_thread_state,
245 do_restore_inferior_thread_state_cleanup,
246 make_cleanup_restore_inferior_thread_state,
247 discard_inferior_thread_state,
248 get_inferior_thread_state_regcache): New functions.
249 (inferior_status): Move stop_signal, stop_pc, registers to
250 inferior_thread_state. Remove restore_stack_info.
251 (save_inferior_status): Remove arg restore_stack_info.
252 All callers updated. Remove saving of state now saved by
253 save_inferior_thread_state.
254 (restore_inferior_status): Remove restoration of state now done by
255 restore_inferior_thread_state.
256 (discard_inferior_status): Remove freeing of registers, now done by
257 discard_inferior_thread_state.
259 2009-01-18 Pedro Alves <pedro@codesourcery.com>
261 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
262 at a time, times NUM_TO_SCROLL.
263 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
264 fetch the selected frame if there is no stack.
266 2009-01-18 Pedro Alves <pedro@codesourcery.com>
269 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
271 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
272 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
273 is thrown while handling an event, finish the thread state.
274 (normal_stop): Use finish_thread_state cleanup.
275 * infcmd.c (run_command_1): If an error is thrown while starting
276 the inferior, finish the thread state.
278 2009-01-18 Pedro Alves <pedro@codesourcery.com>
280 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
281 skip breakpoints without a location (pending breakpoints).
283 2009-01-18 Pedro Alves <pedro@codesourcery.com>
286 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
288 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
290 * thread.c (thread_command): Move call to annotate_thread_changed
292 (do_captured_thread_select): ... here, to avoid printing an
293 annotation if the thread change generates an exception.
295 2009-01-16 Joel Brobecker <brobecker@adacore.com>
297 * NEWS: Document x86_64/MinGW as a new native configuration.
299 2009-01-16 Joel Brobecker <brobecker@adacore.com>
301 * NEWS: Move the documentation of "info os processes" to
302 the appropriate section (documenting the new commands).
304 2009-01-15 Doug Evans <dje@google.com>
306 * target.h (target_signal_to_string): Make return type const char *.
307 (target_signal_to_name): Ditto.
308 (target_signal_from_name): Make arg const char *.
309 * infrun.c (sig_print_info): Update.
310 * signals/signals.c (signals): Make array and struct members const.
311 (target_signal_to_string): Make return type const char *.
312 (target_signal_to_name): Ditto.
313 (target_signal_from_name): Make arg const char *.
315 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
316 Tristan Gingold <gingold@adacore.com>
318 * solist.h (struct target_so_ops): New member bfd_open.
319 (solib_find): Add prototype.
320 (solib_bfd_fopen): Add prototype.
321 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
323 (solib_bfd_open): Use ops->bfd_open override if present. Call
324 solib_find and solib_bfd_open otherwise.
326 * objfiles.h (OBJF_KEEPBFD): New define.
327 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
329 * solib.c (symbol_add_stub): Do not allocate second BFD for
330 shared library; use OBJF_KEEPBFD flag on solib objfile.
332 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
334 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
336 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
338 * value.h (address_of_variable): Add prototype.
339 (locate_var_value): Remove prototype.
341 * findvar.c (read_var_value): Do not attempt to default frame
343 (locate_var_value): Remove function.
344 * valops.c (value_of_variable): Retrieve selected frame for
345 symbols that require a frame when called with NULL block.
346 * valops.c (address_of_variable): New function.
348 * eval.c (evaluate_subexp_for_address): Call address_of_variable
349 instead of calling locate_var_value.
350 (evaluate_subexp_with_coercion): Likewise.
352 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
354 * NEWS: Document "define" for prefixed commands.
355 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
356 show_user_1 for prefix commands.
357 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
358 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
359 commands. Return the containing command list.
360 (define_command, document_command): Update to handle prefix commands.
361 (show_user_1): Add prefix and name arguments. Handle prefix
363 * cli/cli-script.h (show_user_1): Update prototype.
365 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
367 * mingw-ser.c (console_select_thread): Add return to make
369 (pipe_select_thread): Likewise.
370 (file_select_thread): Likewise.
372 2009-01-14 Pedro Alves <pedro@codesourcery.com>
374 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
377 2009-01-14 Pedro Alves <pedro@codesourcery.com>
379 * remote.c (extended_remote_mourn_1): Invalidate our notion of
380 current general thread.
382 2009-01-14 Pedro Alves <pedro@codesourcery.com>
384 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
385 without a live selected thread.
387 2009-01-14 Joel Brobecker <brobecker@adacore.com>
389 Update the copyright notice of some of the files I missed
390 in the previous copyright update.
392 2009-01-14 Joel Brobecker <brobecker@adacore.com>
394 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
395 base address instead of casting it to DWORD.
397 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
399 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
400 for NULL frame pointers.
402 2009-01-13 Mark Kettenis <kettenis@gnu.org>
404 * utils.c (host_address_to_string): Reimplement in a way that
405 avoids the cast of the address to long.
407 2009-01-13 Joel Brobecker <brobecker@adacore.com>
409 * mdebugread.c (parse_symbol): Save the symbol private data
410 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
411 (psymtab_to_symtab_1): Likewise.
412 (parse_procedure): Declare variable "e" only in the scope
413 where it is used. Extract the symbol private data using
416 2009-01-13 Jim Blandy <jimb@codesourcery.com>
418 Abstract out common code for copying value locations.
420 * value.h (set_value_component_location): New declaration.
421 * value.c (set_value_component_location): New function.
422 (value_primitive_field): Use it.
423 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
424 * valops.c (search_struct_field, value_slice): Same.
425 * ada-lang.c (coerce_unspec_val_to_type)
426 (ada_value_primitive_packed_val): Same.
428 2009-01-13 Joel Brobecker <brobecker@adacore.com>
430 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
432 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
434 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
436 * i386-cygwin-tdep.c: Ditto.
437 * i386-windows-nat.c: Ditto.
438 * windows-nat.h: Ditto.
439 * windows-tdep.c: Ditto.
440 * windows-tdep.h: Ditto.
441 * windows-nat.c: Ditto.
442 (cygwin_load_start): Redefine as CORE_ADDR.
443 (cygwin_load_end): Ditto.
444 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
445 before coercing to CORE_ADDR to avoid a compiler warning.
446 (handle_exception): Define addr as CORE_ADDR and coerce
447 ExceptionAddress to uintptr_t before assigining to avoid a compiler
449 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
452 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
454 Fix linking with --enable-targets=all:
455 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
456 (HFILES_NO_SRCDIR): Add windows-tdep.h.
457 (ALLDEPFILES): Add windows-tdep.c.
459 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
461 * win32-nat.h: Delete.
462 * windows-nat.h: Rename from win32-nat.h.
463 * win32-nat.c: Delete.
464 * windows-nat.c: Rename from win32-nat.c.
465 * win32-termcap.c: Delete.
466 * windows-termcap.c: Rename from win32-termcap.c.
467 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
468 * configure.ac: Handle rename from win32-termcap.c ->
470 * configure: Regenerate.
471 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
472 -> windows-termcap.c.
473 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
475 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
476 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
478 (win32_make_so): Handle cygwin compiler warning due to change of
479 load_addr from DWORD to LPVOID.
480 (handle_load_dll): Use %p in format string to properly print address
481 and avoid a compiler warning.
482 (DEBUG_EXCEPTION_SIMPLE): Ditto.
483 (handle_exception): Ditto.
484 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
485 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
487 * config/i386/mingw.mh: Ditto.
488 * config/i386/mingw64.mh: Ditto.
490 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
492 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
493 arrayprint_recurse_level to a parameter. Update all the callers. New
494 comment at autovariables.
496 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
498 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
501 2009-01-11 Joel Brobecker <brobecker@adacore.com>
503 * target.c (target_xfer_partial): Use host_address_to_string to
504 print the address of readbuf and writebuf. Cast the address of
505 elements inside the myaddr buffer into intptr_t.
506 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
507 Cast the address of elements inside the myaddr buffer into
510 2009-01-11 Joel Brobecker <brobecker@adacore.com>
512 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
513 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
514 * configure.host, configure.tgt: Add handling for x86_64/windows.
515 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
516 and amd64-windows-tdep.c.
518 2009-01-11 Joel Brobecker <brobecker@adacore.com>
520 * win32-tdep.h, win32-tdep.c: New files.
521 * i386-cygwin-tdep.h: Delete.
522 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
524 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
525 * win32-nat.c: Likewise.
526 * configure.tgt: Add win32-tdep.o to the list of target object
527 files for i386-cygwin and i386-mingw targets.
529 2009-01-11 Joel Brobecker <brobecker@adacore.com>
531 * win32-nat.h: New file.
532 * win32-nat.c (mappings): Initialize to NULL.
533 (win32_set_context_register_offsets): New function.
534 * i386-windows-nat.c: New file.
535 (mappings): Moved here from win32-nat.c.
536 (_initialize_i386_windows_nat): New function.
537 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
538 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
540 2009-01-09 Andreas Schwab <schwab@suse.de>
542 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
544 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
546 * gdbtypes.c (append_composite_type_field): Correct the location of
549 2009-01-09 Pedro Alves <pedro@codesourcery.com>
551 * defs.h (deprecated_error_hook): Delete declaration.
552 * interps.c (clear_interpreter_hooks): Adjust.
553 * remote-sim.c (gdb_os_error): Don't try to call
554 deprecated_error_hook. No need to call exit anymore.
555 * top.c (deprecated_error_hook): Delete.
557 2009-01-09 Joel Brobecker <brobecker@adacore.com>
559 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
560 to print the address of the gdbarch pointer.
562 2009-01-09 Joel Brobecker <brobecker@adacore.com>
564 * gdbarch.sh: Fix all the compilation errors on amd64-windows
565 due to casting a pointer to a long when printing a function
566 address. Instead, use host_address_to_string to convert our
568 * gdbarch.c: Regenerate.
570 2009-01-09 Joel Brobecker <brobecker@adacore.com>
572 * event-top.c (async_disconnect, async_stop_sig): use "raise"
573 instead of "kill" to raise a signal.
575 2009-01-09 Joel Brobecker <brobecker@adacore.com>
577 * win32-nat.c (get_module_name): Change the type of parameter
578 "base_address" to LPVOID. Remove unnecessary cast.
579 (struct lm_info): Change type of load_addr to LPVOID.
580 (win32_make_so): Change the type of parameter "load_addr"
581 to LPVOID. Remove some unnecessary casts.
582 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
583 (win32_xfer_shared_libraries): Add missing cast.
585 2009-01-09 Joel Brobecker <brobecker@adacore.com>
587 * win32-nat.c (has_detach_ability, set_process_privilege):
588 Cast the result of GetProcAddress to (void *) to avoid
589 a compilation warning.
591 2009-01-09 Joel Brobecker <brobecker@adacore.com>
593 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
596 2009-01-09 Joel Brobecker <brobecker@adacore.com>
598 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
599 definition of local variable "done".
600 (info_w32_command, handle_exception): Remove unnecessary cast.
602 2009-01-09 Joel Brobecker <brobecker@adacore.com>
604 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
605 DebugSetProcessKillOnExit. Update all uses in this file.
606 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
607 Update all uses in this file.
609 2009-01-09 Joel Brobecker <brobecker@adacore.com>
611 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
612 and use it when pushing the target.
613 (win32_attach, win32_create_inferior): Update call to
614 do_initial_win32_stuff.
615 (win32_detach, win32_mourn_inferior): Use our ops parameter
616 instead of the global win32_ops to unpush the target.
618 2009-01-09 Joel Brobecker <brobecker@adacore.com>
620 * ser-mingw.c (ser_windows_open): Use proper type when casting
621 in call to _open_osfhandle.
623 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
625 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
627 2009-01-09 Joel Brobecker <brobecker@adacore.com>
629 * CONTRIBUTE: Minor reformatting.
631 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
633 * MAINTAINERS: Add myself to Write After Approval.
634 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
637 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
639 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
640 Call exit to make it obvious to GCC.
642 2009-01-08 Tom Tromey <tromey@redhat.com>
645 * varobj.c (varobj_invalidate): Unconditionally free
647 * symfile.c (syms_from_objfile): Free local_addr when returning
649 * exec.c (exec_file_attach): Do cleanups before returning.
650 (exec_file_command): Likewise.
651 * corefile.c (reopen_exec_file): Do cleanups before returning.
652 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
654 (do_vec_free): New function.
655 (update_global_location_list): Make a cleanup for old_locations.
656 Do cleanups before returning. Remove unused variable 'e'.
657 (find_condition_and_thread): Free result of parsing the
659 (print_it_typical): Do cleanups before returning.
660 (breakpoint_re_set_one): Always free sals.sals.
662 2009-01-08 Joel Brobecker <brobecker@adacore.com>
663 Emi Suzuki <emi-suzuki@tjsys.co.jp>
665 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
668 2009-01-07 Doug Evans <dje@google.com>
670 * top.c (gdb_prompt_string): Delete, unused.
672 2009-01-07 Pedro Alves <pedro@codesourcery.com>
674 Delete ONE_PROCESS_WRITETEXT leftovers.
676 * breakpoint.c (insert_bp_location): Delete process_warning
678 (insert_breakpoint_locations): Adjust.
679 (reattach_breakpoints): Adjust.
680 * infrun.c (normal_stop): Drop "It might be running in another
683 2009-01-07 Stan Shebs <stan@codesourcery.com>
685 * config/pa/linux.mh (XDEPFILES): Remove.
687 2009-01-07 Doug Evans <dje@google.com>
689 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
691 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
693 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
694 spacing, a regression from 2008-04-22.
696 2009-01-07 Joel Brobecker <brobecker@adacore.com>
698 * utils.c (gdb_print_host_address): Adjust implementation to
699 reuse host_address_to_string. Move comment explaining the conversion
700 from host address to string from here...
701 (host_address_to_string): ... to there.
703 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
705 * MAINTAINERS: Add myself for write after approval privileges.
707 2009-01-06 Tom Tromey <tromey@redhat.com>
709 * value.c (set_internalvar): Use value_free, not xfree.
711 2009-01-06 Jim Blandy <jimb@red-bean.com>
713 Check return values of functions declared with warn_unused_result
714 attribute in GLIBC 2.8.
715 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
716 * inflow.c (check_syscall): New function.
717 (new_tty): Use check_syscall to check return values from open and dup.
718 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
719 * main.c (captured_main): Call cwd after setting up gdb_stderr;
720 check for errors from getcwd.
721 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
722 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
723 (stdio_file_fputs): Same.
724 * utils.c (internal_vproblem): abort if last-ditch error message
727 * top.c (gdb_init): Don't set the current directory here; that's
728 already been done in captured_main.
730 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
732 * ser-tcp.c: Adjust includes.
733 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
734 (tcp_auto_retry, tcp_retry_limit): Declare.
735 (TIMEOUT): Remove, in favor of tcp_retry_limit.
736 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
737 (wait_for_connect): New function.
738 (net_open): Use it. Add auto-retry logic.
739 (set_tcp_cmd, show_tcp_cmd): New functions.
740 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
741 and "set/show tcp connect-timeout" commands.
742 * NEWS: Document new commands.
744 2009-01-05 Tom Tromey <tromey@redhat.com>
746 * python/python-internal.h (Py_ssize_t): Define as int.
748 2009-01-05 Jim Blandy <jimb@red-bean.com>
750 * MAINTAINERS: Fix my e-mail address as steering committee member.
752 2009-01-03 Joel Brobecker <brobecker@adacore.com>
754 Updated copyright notices for most files.
756 2009-01-03 Joel Brobecker <brobecker@adacore.com>
758 * top.c (print_gdb_version): Update copyright year.
760 2009-01-03 Joel Brobecker <brobecker@adacore.com>
762 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
764 2009-01-01 Pedro Alves <pedro@codesourcery.com>
767 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
768 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
769 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
770 retrow all other exceptions.
772 For older changes see ChangeLog-2008.
778 version-control: never