1 2009-10-11 Joel Brobecker <brobecker@adacore.com>
3 * win32-tdep.h, win32-tdep.c: New files.
4 * i386-cygwin-tdep.h: Delete.
5 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
7 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
8 * win32-nat.c: Likewise.
9 * configure.tgt: Add win32-tdep.o to the list of target object
10 files for i386-cygwin and i386-mingw targets.
12 2009-10-11 Joel Brobecker <brobecker@adacore.com>
14 * win32-nat.h: New file.
15 * win32-nat.c (mappings): Initialize to NULL.
16 (win32_set_context_register_offsets): New function.
17 * i386-windows-nat.c: New file.
18 (mappings): Moved here from win32-nat.c.
19 (_initialize_i386_windows_nat): New function.
20 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
21 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
23 2009-01-09 Andreas Schwab <schwab@suse.de>
25 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
27 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
29 * gdbtypes.c (append_composite_type_field): Correct the location of
32 2009-01-09 Pedro Alves <pedro@codesourcery.com>
34 * defs.h (deprecated_error_hook): Delete declaration.
35 * interps.c (clear_interpreter_hooks): Adjust.
36 * remote-sim.c (gdb_os_error): Don't try to call
37 deprecated_error_hook. No need to call exit anymore.
38 * top.c (deprecated_error_hook): Delete.
40 2009-01-09 Joel Brobecker <brobecker@adacore.com>
42 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
43 to print the address of the gdbarch pointer.
45 2009-01-09 Joel Brobecker <brobecker@adacore.com>
47 * gdbarch.sh: Fix all the compilation errors on amd64-windows
48 due to casting a pointer to a long when printing a function
49 address. Instead, use host_address_to_string to convert our
51 * gdbarch.c: Regenerate.
53 2009-01-09 Joel Brobecker <brobecker@adacore.com>
55 * event-top.c (async_disconnect, async_stop_sig): use "raise"
56 instead of "kill" to raise a signal.
58 2009-01-09 Joel Brobecker <brobecker@adacore.com>
60 * win32-nat.c (get_module_name): Change the type of parameter
61 "base_address" to LPVOID. Remove unnecessary cast.
62 (struct lm_info): Change type of load_addr to LPVOID.
63 (win32_make_so): Change the type of parameter "load_addr"
64 to LPVOID. Remove some unnecessary casts.
65 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
66 (win32_xfer_shared_libraries): Add missing cast.
68 2009-01-09 Joel Brobecker <brobecker@adacore.com>
70 * win32-nat.c (has_detach_ability, set_process_privilege):
71 Cast the result of GetProcAddress to (void *) to avoid
72 a compilation warning.
74 2009-01-09 Joel Brobecker <brobecker@adacore.com>
76 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
79 2009-01-09 Joel Brobecker <brobecker@adacore.com>
81 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
82 definition of local variable "done".
83 (info_w32_command, handle_exception): Remove unnecessary cast.
85 2009-01-09 Joel Brobecker <brobecker@adacore.com>
87 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
88 DebugSetProcessKillOnExit. Update all uses in this file.
89 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
90 Update all uses in this file.
92 2009-01-09 Joel Brobecker <brobecker@adacore.com>
94 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
95 and use it when pushing the target.
96 (win32_attach, win32_create_inferior): Update call to
97 do_initial_win32_stuff.
98 (win32_detach, win32_mourn_inferior): Use our ops parameter
99 instead of the global win32_ops to unpush the target.
101 2009-01-09 Joel Brobecker <brobecker@adacore.com>
103 * ser-mingw.c (ser_windows_open): Use proper type when casting
104 in call to _open_osfhandle.
106 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
108 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
110 2009-01-09 Joel Brobecker <brobecker@adacore.com>
112 * CONTRIBUTE: Minor reformatting.
114 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
116 * MAINTAINERS: Add myself to Write After Approval.
117 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
120 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
122 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
123 Call exit to make it obvious to GCC.
125 2009-01-08 Tom Tromey <tromey@redhat.com>
128 * varobj.c (varobj_invalidate): Unconditionally free
130 * symfile.c (syms_from_objfile): Free local_addr when returning
132 * exec.c (exec_file_attach): Do cleanups before returning.
133 (exec_file_command): Likewise.
134 * corefile.c (reopen_exec_file): Do cleanups before returning.
135 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
137 (do_vec_free): New function.
138 (update_global_location_list): Make a cleanup for old_locations.
139 Do cleanups before returning. Remove unused variable 'e'.
140 (find_condition_and_thread): Free result of parsing the
142 (print_it_typical): Do cleanups before returning.
143 (breakpoint_re_set_one): Always free sals.sals.
145 2009-01-08 Joel Brobecker <brobecker@adacore.com>
146 Emi Suzuki <emi-suzuki@tjsys.co.jp>
148 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
151 2009-01-07 Doug Evans <dje@google.com>
153 * top.c (gdb_prompt_string): Delete, unused.
155 2009-01-07 Pedro Alves <pedro@codesourcery.com>
157 Delete ONE_PROCESS_WRITETEXT leftovers.
159 * breakpoint.c (insert_bp_location): Delete process_warning
161 (insert_breakpoint_locations): Adjust.
162 (reattach_breakpoints): Adjust.
163 * infrun.c (normal_stop): Drop "It might be running in another
166 2009-01-07 Stan Shebs <stan@codesourcery.com>
168 * config/pa/linux.mh (XDEPFILES): Remove.
170 2009-01-07 Doug Evans <dje@google.com>
172 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
174 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
176 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
177 spacing, a regression from 2008-04-22.
179 2009-01-07 Joel Brobecker <brobecker@adacore.com>
181 * utils.c (gdb_print_host_address): Adjust implementation to
182 reuse host_address_to_string. Move comment explaining the conversion
183 from host address to string from here...
184 (host_address_to_string): ... to there.
186 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
188 * MAINTAINERS: Add myself for write after approval privileges.
190 2009-01-06 Tom Tromey <tromey@redhat.com>
192 * value.c (set_internalvar): Use value_free, not xfree.
194 2009-01-06 Jim Blandy <jimb@red-bean.com>
196 Check return values of functions declared with warn_unused_result
197 attribute in GLIBC 2.8.
198 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
199 * inflow.c (check_syscall): New function.
200 (new_tty): Use check_syscall to check return values from open and dup.
201 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
202 * main.c (captured_main): Call cwd after setting up gdb_stderr;
203 check for errors from getcwd.
204 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
205 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
206 (stdio_file_fputs): Same.
207 * utils.c (internal_vproblem): abort if last-ditch error message
210 * top.c (gdb_init): Don't set the current directory here; that's
211 already been done in captured_main.
213 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
215 * ser-tcp.c: Adjust includes.
216 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
217 (tcp_auto_retry, tcp_retry_limit): Declare.
218 (TIMEOUT): Remove, in favor of tcp_retry_limit.
219 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
220 (wait_for_connect): New function.
221 (net_open): Use it. Add auto-retry logic.
222 (set_tcp_cmd, show_tcp_cmd): New functions.
223 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
224 and "set/show tcp connect-timeout" commands.
225 * NEWS: Document new commands.
227 2009-01-05 Tom Tromey <tromey@redhat.com>
229 * python/python-internal.h (Py_ssize_t): Define as int.
231 2009-01-05 Jim Blandy <jimb@red-bean.com>
233 * MAINTAINERS: Fix my e-mail address as steering committee member.
235 2009-01-03 Joel Brobecker <brobecker@adacore.com>
237 Updated copyright notices for most files.
239 2009-01-03 Joel Brobecker <brobecker@adacore.com>
241 * top.c (print_gdb_version): Update copyright year.
243 2009-01-03 Joel Brobecker <brobecker@adacore.com>
245 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
247 2009-01-01 Pedro Alves <pedro@codesourcery.com>
250 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
251 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
252 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
253 retrow all other exceptions.
255 For older changes see ChangeLog-2008.
261 version-control: never