1 2008-02-04 Jerome Guitton <guitton@adacore.com>
3 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
4 of type to guard against a crash.
6 2009-02-04 Jerome Guitton <guitton@adacore.com>
8 * value.c (value_from_contents_and_address): Always return
9 a lval_memory value, even if address is null.
11 2009-02-04 Tristan Gingold <gingold@adacore.com>
13 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
14 (amd64_darwin_sigcontext_addr): Ditto.
15 (darwin_dwarf_signal_frame_p): Ditto.
16 (i386_darwin_init_abi): Handle signal frames, use the const for
18 (x86_darwin_init_abi_64): Ditto.
20 2009-02-04 Tristan Gingold <gingold@adacore.com>
22 * i386-tdep.c (i386_sigtramp_p): Make it public.
23 * i386-tdep.h (i386_sigtramp_p): Declare.
25 2009-02-04 Tristan Gingold <gingold@adacore.com>
27 * machoread.c (macho_symfile_read): Read minsymtab also from
29 (macho_symfile_read): Try to read dwarf2 frame info from main
30 object file, but not from OSO files.
31 (macho_symfile_offsets): Update section names for latest BFD
33 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
34 (x86_darwin_init_abi_64): Ditto.
35 * solib-darwin.c: New file.
36 * solib-darwin.h: New file.
37 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
39 2009-02-04 Tristan Gingold <gingold@adacore.com>
41 * solist.h (struct target_so_ops): Comment fallback behavior for
44 2009-02-03 Tom Tromey <tromey@redhat.com>
46 * completer.c (add_struct_fields): Check type_name against NULL
49 2009-02-03 Joel Brobecker <brobecker@adacore.com>
51 * MAINTAINERS: Update Elena's email address.
53 2009-02-02 Joel Brobecker <brobecker@adacore.com>
55 * breakpoint (update_watchpoint): Minor comment adjustment.
57 2009-02-02 Tom Tromey <tromey@redhat.com>
60 * completer.c (count_struct_fields): Count method names.
61 (add_struct_fields): Add matching method names.
63 2009-02-02 Doug Evans <dje@google.com>
65 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
66 doing any further tcl/tk configury. Don't configure gdbtk if
67 tcl or tk check fails.
68 * aclocal.m4: Regenerate.
69 * configure: Regenerate.
71 2009-02-02 Tom Tromey <tromey@redhat.com>
74 * valops.c (find_overload_match): Follow typedefs before taking
75 address of object argument.
77 2009-02-01 Doug Evans <dje@google.com>
79 * target.h (target_waitstatus_to_string): Declare.
80 * target.c (target_waitstatus_to_string): New function. Copied from
81 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
82 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
83 TARGET_WAITKIND_NO_HISTORY.
84 (debug_to_wait): Call it.
85 * infrun.c (wait_for_inferior): If debug_infrun, print result of
87 (fetch_inferior_event): Ditto.
89 2009-01-30 Tom Tromey <tromey@redhat.com>
91 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
93 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
96 * thread.c (do_captured_list_thread_ids): Report the current
99 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
101 * breakpoint.c (create_breakpoint, create_breakpoints)
102 (break_command_really, set_breakpoint): New parameter enabled.
103 (create_breakpoint, break_command_really): Make breakpoint
104 disabled if so requested.
105 * breakpoint.h (set_breakpoint): New parameter enabled.
106 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
108 2009-01-28 Doug Evans <dje@google.com>
110 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
111 (amd64_displaced_step_fixup): Declare.
112 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
113 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
114 and make static global.
115 (amd64_arch_regmap_len): New static global.
116 (amd64_arch_reg_to_regnum): New function.
117 (struct amd64_insn): New struct.
118 (struct displaced_step_closure): New struct.
119 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
120 (rex_prefix_p,skip_prefixes)
121 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
122 (amd64_insn_length,amd64_get_unused_input_int_reg)
123 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
124 (amd64_displaced_step_copy_insn)
125 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
126 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
127 (amd64_displaced_step_fixup): New functions.
128 * amd64-linux-tdep.c: #include arch-utils.h.
129 (amd64_linux_init_abi): Install displaced stepping support.
131 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
132 Jerome Guitton <guitton@adacore.com>
134 * configure, config.in: Regenerated.
135 * configure.ac: Add --with-system-gdbinit.
136 * main.c (get_init_files): New.
137 (captured_main): Use get_init_files. Load system gdbinit before
139 (print_gdb_help): Print location of init files.
141 2009-01-28 Pedro Alves <pedro@codesourcery.com>
143 * corefile.c (generic_search): Delete disabled code.
144 * gdbcore.h (generic_search): Delete declaration.
146 2009-01-26 Pedro Alves <pedro@codesourcery.com>
148 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
150 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
151 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
152 remove_breakpoints to remove breakpoints from the parent.
154 2009-01-26 Pedro Alves <pedro@codesourcery.com>
156 PR backtrace/9458, PR backtrace/8864:
157 * frame.c (create_new_frame): Update the frame's cached PC before
158 finding its unwinder. Use frame_id_build to build the new frame's
160 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
161 array values from the ``args'' array values.
163 2009-01-26 Pedro Alves <pedro@codesourcery.com>
165 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
166 (create_array_type, create_set_type, init_flags_type)
167 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
168 with a call to XZALLOC or XCALLOC, and pairs of calls to
169 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
171 2009-01-26 Pedro Alves <pedro@codesourcery.com>
173 Add "maint set|show internal-error|internal-warning quit|corefile
174 ask|yes|no" commands.
177 * utils.c (internal_problem_ask, internal_problem_yes)
178 (internal_problem_no, internal_problem_modes): New.
179 (struct internal_problem): Remove FIXME. Make should_quit and
180 should_dump_core types to char *.
181 (internal_vproblem, internal_error_problem)
182 (internal_warning_problem): Adjust.
183 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
185 (add_internal_problem_command): New.
186 (_initialize_utils): New.
188 2009-01-25 Pedro Alves <pedro@codesourcery.com>
190 * infcmd.c (program_info): Use paddress instead of casting stop_pc
193 2009-01-24 Pedro Alves <pedro@codesourcery.com>
195 * infrun.c (normal_stop): Don't call
196 deprecated_update_frame_pc_hack.
197 * frame.c (deprecated_update_frame_pc_hack)
198 (deprecated_update_frame_base_hack): Delete, and ...
199 (create_new_frame): ... inline here.
200 * frame.h (deprecated_update_frame_pc_hack)
201 (deprecated_update_frame_base_hack): Delete declarations.
203 2009-01-23 Pedro Alves <pedro@codesourcery.com>
205 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
206 * cli/cli-setshow.c (do_setshow_command): Handle it.
207 * command.h (enum var_types): Add var_zuinteger.
208 (add_setshow_zuinteger_cmd): Declare.
210 * valprint.c (_initialize_valprint): Change the set input-radix
211 and set output-radix commands to zuinteger type.
213 2009-01-23 Pedro Alves <pedro@codesourcery.com>
216 * infrun.c (normal_stop): Tag threads as stopped, and run the
217 hook-stop before printing the stack frame.
219 2009-01-22 Pedro Alves <pedro@codesourcery.com>
222 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
225 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
227 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
230 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
233 * infcmd.c (signal_command): Do not specify a resume PC.
235 2009-01-19 Doug Evans <dje@google.com>
237 * dummy-frame.c (dummy_frame): Replace regcache member with
239 (dummy_frame_push): Replace caller_regcache arg with caller_state.
241 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
242 (dummy_frame_pop): Rewrite. Verify requested frame is in the
243 dummy frame stack. Restore program state.
244 (cleanup_dummy_frames): Rewrite.
245 (dummy_frame_sniffer): Update. Make static.
246 * dummy-frame.h (regcache,frame_info): Delete forward decls.
247 (inferior_thread_state): New forward decl.
248 (dummy_frame_push): Update prototype.
249 * frame.c (frame_pop): dummy_frame_pop now does all the work for
251 * infcall.c (breakpoint_auto_delete_contents): Delete.
252 (get_function_name,run_inferior_call): New fns.
253 (call_function_by_hand): Simplify by moving some code to
254 get_function_name, run_inferior_call. Inferior function call wrapped
255 in TRY_CATCH so there's less need for cleanups and all exits from
256 proceed are handled similarily. Detect program exit.
257 Detect program stopping in a different thread.
258 Make error messages more consistent.
259 * inferior.h (inferior_thread_state): Declare (opaque type).
260 (save_inferior_thread_state,restore_inferior_thread_state,
261 make_cleanup_restore_inferior_thread_state,
262 discard_inferior_thread_state, get_inferior_thread_state_regcache):
264 (save_inferior_status): Update prototype.
265 * infrun.c: (normal_stop): When stopped for the completion of an
266 inferior function call, verify the expected stack frame kind.
267 (inferior_thread_state): New struct.
268 (save_inferior_thread_state,restore_inferior_thread_state,
269 do_restore_inferior_thread_state_cleanup,
270 make_cleanup_restore_inferior_thread_state,
271 discard_inferior_thread_state,
272 get_inferior_thread_state_regcache): New functions.
273 (inferior_status): Move stop_signal, stop_pc, registers to
274 inferior_thread_state. Remove restore_stack_info.
275 (save_inferior_status): Remove arg restore_stack_info.
276 All callers updated. Remove saving of state now saved by
277 save_inferior_thread_state.
278 (restore_inferior_status): Remove restoration of state now done by
279 restore_inferior_thread_state.
280 (discard_inferior_status): Remove freeing of registers, now done by
281 discard_inferior_thread_state.
283 2009-01-18 Pedro Alves <pedro@codesourcery.com>
285 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
286 at a time, times NUM_TO_SCROLL.
287 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
288 fetch the selected frame if there is no stack.
290 2009-01-18 Pedro Alves <pedro@codesourcery.com>
293 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
295 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
296 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
297 is thrown while handling an event, finish the thread state.
298 (normal_stop): Use finish_thread_state cleanup.
299 * infcmd.c (run_command_1): If an error is thrown while starting
300 the inferior, finish the thread state.
302 2009-01-18 Pedro Alves <pedro@codesourcery.com>
304 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
305 skip breakpoints without a location (pending breakpoints).
307 2009-01-18 Pedro Alves <pedro@codesourcery.com>
310 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
312 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
314 * thread.c (thread_command): Move call to annotate_thread_changed
316 (do_captured_thread_select): ... here, to avoid printing an
317 annotation if the thread change generates an exception.
319 2009-01-16 Joel Brobecker <brobecker@adacore.com>
321 * NEWS: Document x86_64/MinGW as a new native configuration.
323 2009-01-16 Joel Brobecker <brobecker@adacore.com>
325 * NEWS: Move the documentation of "info os processes" to
326 the appropriate section (documenting the new commands).
328 2009-01-15 Doug Evans <dje@google.com>
330 * target.h (target_signal_to_string): Make return type const char *.
331 (target_signal_to_name): Ditto.
332 (target_signal_from_name): Make arg const char *.
333 * infrun.c (sig_print_info): Update.
334 * signals/signals.c (signals): Make array and struct members const.
335 (target_signal_to_string): Make return type const char *.
336 (target_signal_to_name): Ditto.
337 (target_signal_from_name): Make arg const char *.
339 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
340 Tristan Gingold <gingold@adacore.com>
342 * solist.h (struct target_so_ops): New member bfd_open.
343 (solib_find): Add prototype.
344 (solib_bfd_fopen): Add prototype.
345 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
347 (solib_bfd_open): Use ops->bfd_open override if present. Call
348 solib_find and solib_bfd_open otherwise.
350 * objfiles.h (OBJF_KEEPBFD): New define.
351 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
353 * solib.c (symbol_add_stub): Do not allocate second BFD for
354 shared library; use OBJF_KEEPBFD flag on solib objfile.
356 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
358 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
360 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
362 * value.h (address_of_variable): Add prototype.
363 (locate_var_value): Remove prototype.
365 * findvar.c (read_var_value): Do not attempt to default frame
367 (locate_var_value): Remove function.
368 * valops.c (value_of_variable): Retrieve selected frame for
369 symbols that require a frame when called with NULL block.
370 * valops.c (address_of_variable): New function.
372 * eval.c (evaluate_subexp_for_address): Call address_of_variable
373 instead of calling locate_var_value.
374 (evaluate_subexp_with_coercion): Likewise.
376 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
378 * NEWS: Document "define" for prefixed commands.
379 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
380 show_user_1 for prefix commands.
381 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
382 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
383 commands. Return the containing command list.
384 (define_command, document_command): Update to handle prefix commands.
385 (show_user_1): Add prefix and name arguments. Handle prefix
387 * cli/cli-script.h (show_user_1): Update prototype.
389 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
391 * mingw-ser.c (console_select_thread): Add return to make
393 (pipe_select_thread): Likewise.
394 (file_select_thread): Likewise.
396 2009-01-14 Pedro Alves <pedro@codesourcery.com>
398 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
401 2009-01-14 Pedro Alves <pedro@codesourcery.com>
403 * remote.c (extended_remote_mourn_1): Invalidate our notion of
404 current general thread.
406 2009-01-14 Pedro Alves <pedro@codesourcery.com>
408 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
409 without a live selected thread.
411 2009-01-14 Joel Brobecker <brobecker@adacore.com>
413 Update the copyright notice of some of the files I missed
414 in the previous copyright update.
416 2009-01-14 Joel Brobecker <brobecker@adacore.com>
418 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
419 base address instead of casting it to DWORD.
421 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
423 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
424 for NULL frame pointers.
426 2009-01-13 Mark Kettenis <kettenis@gnu.org>
428 * utils.c (host_address_to_string): Reimplement in a way that
429 avoids the cast of the address to long.
431 2009-01-13 Joel Brobecker <brobecker@adacore.com>
433 * mdebugread.c (parse_symbol): Save the symbol private data
434 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
435 (psymtab_to_symtab_1): Likewise.
436 (parse_procedure): Declare variable "e" only in the scope
437 where it is used. Extract the symbol private data using
440 2009-01-13 Jim Blandy <jimb@codesourcery.com>
442 Abstract out common code for copying value locations.
444 * value.h (set_value_component_location): New declaration.
445 * value.c (set_value_component_location): New function.
446 (value_primitive_field): Use it.
447 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
448 * valops.c (search_struct_field, value_slice): Same.
449 * ada-lang.c (coerce_unspec_val_to_type)
450 (ada_value_primitive_packed_val): Same.
452 2009-01-13 Joel Brobecker <brobecker@adacore.com>
454 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
456 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
458 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
460 * i386-cygwin-tdep.c: Ditto.
461 * i386-windows-nat.c: Ditto.
462 * windows-nat.h: Ditto.
463 * windows-tdep.c: Ditto.
464 * windows-tdep.h: Ditto.
465 * windows-nat.c: Ditto.
466 (cygwin_load_start): Redefine as CORE_ADDR.
467 (cygwin_load_end): Ditto.
468 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
469 before coercing to CORE_ADDR to avoid a compiler warning.
470 (handle_exception): Define addr as CORE_ADDR and coerce
471 ExceptionAddress to uintptr_t before assigining to avoid a compiler
473 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
476 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
478 Fix linking with --enable-targets=all:
479 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
480 (HFILES_NO_SRCDIR): Add windows-tdep.h.
481 (ALLDEPFILES): Add windows-tdep.c.
483 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
485 * win32-nat.h: Delete.
486 * windows-nat.h: Rename from win32-nat.h.
487 * win32-nat.c: Delete.
488 * windows-nat.c: Rename from win32-nat.c.
489 * win32-termcap.c: Delete.
490 * windows-termcap.c: Rename from win32-termcap.c.
491 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
492 * configure.ac: Handle rename from win32-termcap.c ->
494 * configure: Regenerate.
495 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
496 -> windows-termcap.c.
497 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
499 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
500 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
502 (win32_make_so): Handle cygwin compiler warning due to change of
503 load_addr from DWORD to LPVOID.
504 (handle_load_dll): Use %p in format string to properly print address
505 and avoid a compiler warning.
506 (DEBUG_EXCEPTION_SIMPLE): Ditto.
507 (handle_exception): Ditto.
508 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
509 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
511 * config/i386/mingw.mh: Ditto.
512 * config/i386/mingw64.mh: Ditto.
514 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
517 arrayprint_recurse_level to a parameter. Update all the callers. New
518 comment at autovariables.
520 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
522 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
525 2009-01-11 Joel Brobecker <brobecker@adacore.com>
527 * target.c (target_xfer_partial): Use host_address_to_string to
528 print the address of readbuf and writebuf. Cast the address of
529 elements inside the myaddr buffer into intptr_t.
530 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
531 Cast the address of elements inside the myaddr buffer into
534 2009-01-11 Joel Brobecker <brobecker@adacore.com>
536 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
537 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
538 * configure.host, configure.tgt: Add handling for x86_64/windows.
539 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
540 and amd64-windows-tdep.c.
542 2009-01-11 Joel Brobecker <brobecker@adacore.com>
544 * win32-tdep.h, win32-tdep.c: New files.
545 * i386-cygwin-tdep.h: Delete.
546 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
548 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
549 * win32-nat.c: Likewise.
550 * configure.tgt: Add win32-tdep.o to the list of target object
551 files for i386-cygwin and i386-mingw targets.
553 2009-01-11 Joel Brobecker <brobecker@adacore.com>
555 * win32-nat.h: New file.
556 * win32-nat.c (mappings): Initialize to NULL.
557 (win32_set_context_register_offsets): New function.
558 * i386-windows-nat.c: New file.
559 (mappings): Moved here from win32-nat.c.
560 (_initialize_i386_windows_nat): New function.
561 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
562 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
564 2009-01-09 Andreas Schwab <schwab@suse.de>
566 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
568 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
570 * gdbtypes.c (append_composite_type_field): Correct the location of
573 2009-01-09 Pedro Alves <pedro@codesourcery.com>
575 * defs.h (deprecated_error_hook): Delete declaration.
576 * interps.c (clear_interpreter_hooks): Adjust.
577 * remote-sim.c (gdb_os_error): Don't try to call
578 deprecated_error_hook. No need to call exit anymore.
579 * top.c (deprecated_error_hook): Delete.
581 2009-01-09 Joel Brobecker <brobecker@adacore.com>
583 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
584 to print the address of the gdbarch pointer.
586 2009-01-09 Joel Brobecker <brobecker@adacore.com>
588 * gdbarch.sh: Fix all the compilation errors on amd64-windows
589 due to casting a pointer to a long when printing a function
590 address. Instead, use host_address_to_string to convert our
592 * gdbarch.c: Regenerate.
594 2009-01-09 Joel Brobecker <brobecker@adacore.com>
596 * event-top.c (async_disconnect, async_stop_sig): use "raise"
597 instead of "kill" to raise a signal.
599 2009-01-09 Joel Brobecker <brobecker@adacore.com>
601 * win32-nat.c (get_module_name): Change the type of parameter
602 "base_address" to LPVOID. Remove unnecessary cast.
603 (struct lm_info): Change type of load_addr to LPVOID.
604 (win32_make_so): Change the type of parameter "load_addr"
605 to LPVOID. Remove some unnecessary casts.
606 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
607 (win32_xfer_shared_libraries): Add missing cast.
609 2009-01-09 Joel Brobecker <brobecker@adacore.com>
611 * win32-nat.c (has_detach_ability, set_process_privilege):
612 Cast the result of GetProcAddress to (void *) to avoid
613 a compilation warning.
615 2009-01-09 Joel Brobecker <brobecker@adacore.com>
617 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
620 2009-01-09 Joel Brobecker <brobecker@adacore.com>
622 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
623 definition of local variable "done".
624 (info_w32_command, handle_exception): Remove unnecessary cast.
626 2009-01-09 Joel Brobecker <brobecker@adacore.com>
628 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
629 DebugSetProcessKillOnExit. Update all uses in this file.
630 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
631 Update all uses in this file.
633 2009-01-09 Joel Brobecker <brobecker@adacore.com>
635 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
636 and use it when pushing the target.
637 (win32_attach, win32_create_inferior): Update call to
638 do_initial_win32_stuff.
639 (win32_detach, win32_mourn_inferior): Use our ops parameter
640 instead of the global win32_ops to unpush the target.
642 2009-01-09 Joel Brobecker <brobecker@adacore.com>
644 * ser-mingw.c (ser_windows_open): Use proper type when casting
645 in call to _open_osfhandle.
647 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
649 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
651 2009-01-09 Joel Brobecker <brobecker@adacore.com>
653 * CONTRIBUTE: Minor reformatting.
655 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
657 * MAINTAINERS: Add myself to Write After Approval.
658 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
661 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
663 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
664 Call exit to make it obvious to GCC.
666 2009-01-08 Tom Tromey <tromey@redhat.com>
669 * varobj.c (varobj_invalidate): Unconditionally free
671 * symfile.c (syms_from_objfile): Free local_addr when returning
673 * exec.c (exec_file_attach): Do cleanups before returning.
674 (exec_file_command): Likewise.
675 * corefile.c (reopen_exec_file): Do cleanups before returning.
676 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
678 (do_vec_free): New function.
679 (update_global_location_list): Make a cleanup for old_locations.
680 Do cleanups before returning. Remove unused variable 'e'.
681 (find_condition_and_thread): Free result of parsing the
683 (print_it_typical): Do cleanups before returning.
684 (breakpoint_re_set_one): Always free sals.sals.
686 2009-01-08 Joel Brobecker <brobecker@adacore.com>
687 Emi Suzuki <emi-suzuki@tjsys.co.jp>
689 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
692 2009-01-07 Doug Evans <dje@google.com>
694 * top.c (gdb_prompt_string): Delete, unused.
696 2009-01-07 Pedro Alves <pedro@codesourcery.com>
698 Delete ONE_PROCESS_WRITETEXT leftovers.
700 * breakpoint.c (insert_bp_location): Delete process_warning
702 (insert_breakpoint_locations): Adjust.
703 (reattach_breakpoints): Adjust.
704 * infrun.c (normal_stop): Drop "It might be running in another
707 2009-01-07 Stan Shebs <stan@codesourcery.com>
709 * config/pa/linux.mh (XDEPFILES): Remove.
711 2009-01-07 Doug Evans <dje@google.com>
713 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
715 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
717 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
718 spacing, a regression from 2008-04-22.
720 2009-01-07 Joel Brobecker <brobecker@adacore.com>
722 * utils.c (gdb_print_host_address): Adjust implementation to
723 reuse host_address_to_string. Move comment explaining the conversion
724 from host address to string from here...
725 (host_address_to_string): ... to there.
727 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
729 * MAINTAINERS: Add myself for write after approval privileges.
731 2009-01-06 Tom Tromey <tromey@redhat.com>
733 * value.c (set_internalvar): Use value_free, not xfree.
735 2009-01-06 Jim Blandy <jimb@red-bean.com>
737 Check return values of functions declared with warn_unused_result
738 attribute in GLIBC 2.8.
739 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
740 * inflow.c (check_syscall): New function.
741 (new_tty): Use check_syscall to check return values from open and dup.
742 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
743 * main.c (captured_main): Call cwd after setting up gdb_stderr;
744 check for errors from getcwd.
745 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
746 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
747 (stdio_file_fputs): Same.
748 * utils.c (internal_vproblem): abort if last-ditch error message
751 * top.c (gdb_init): Don't set the current directory here; that's
752 already been done in captured_main.
754 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
756 * ser-tcp.c: Adjust includes.
757 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
758 (tcp_auto_retry, tcp_retry_limit): Declare.
759 (TIMEOUT): Remove, in favor of tcp_retry_limit.
760 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
761 (wait_for_connect): New function.
762 (net_open): Use it. Add auto-retry logic.
763 (set_tcp_cmd, show_tcp_cmd): New functions.
764 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
765 and "set/show tcp connect-timeout" commands.
766 * NEWS: Document new commands.
768 2009-01-05 Tom Tromey <tromey@redhat.com>
770 * python/python-internal.h (Py_ssize_t): Define as int.
772 2009-01-05 Jim Blandy <jimb@red-bean.com>
774 * MAINTAINERS: Fix my e-mail address as steering committee member.
776 2009-01-03 Joel Brobecker <brobecker@adacore.com>
778 Updated copyright notices for most files.
780 2009-01-03 Joel Brobecker <brobecker@adacore.com>
782 * top.c (print_gdb_version): Update copyright year.
784 2009-01-03 Joel Brobecker <brobecker@adacore.com>
786 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
788 2009-01-01 Pedro Alves <pedro@codesourcery.com>
791 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
792 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
793 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
794 retrow all other exceptions.
796 For older changes see ChangeLog-2008.
802 version-control: never