* f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
[external/binutils.git] / gdb / ChangeLog
1 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
4         arrayprint_recurse_level to a parameter.  Update all the callers.  New
5         comment at autovariables.
6
7 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8
9         * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
10         coding style.
11
12 2009-01-11  Joel Brobecker  <brobecker@adacore.com>
13
14         * target.c (target_xfer_partial): Use host_address_to_string to
15         print the address of readbuf and writebuf. Cast the address of
16         elements inside the myaddr buffer into intptr_t.
17         (deprecated_debug_xfer_memory): Use paddress to print memaddr.
18         Cast the address of elements inside the myaddr buffer into
19         intptr_t.
20
21 2009-01-11  Joel Brobecker  <brobecker@adacore.com>
22
23         * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
24         * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
25         * configure.host, configure.tgt: Add handling for x86_64/windows.
26         * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
27         and amd64-windows-tdep.c.
28
29 2009-01-11  Joel Brobecker  <brobecker@adacore.com>
30
31         * win32-tdep.h, win32-tdep.c: New files.
32         * i386-cygwin-tdep.h: Delete.
33         * i386-cygwin-tdep.c: Include win32-tdep.h instead of
34         i386-cygwin-tdep.h.
35         (win32_xfer_shared_library): Delete.  Moved to win32-tdep.c.
36         * win32-nat.c: Likewise.
37         * configure.tgt: Add win32-tdep.o to the list of target object
38         files for i386-cygwin and i386-mingw targets.
39
40 2009-01-11  Joel Brobecker  <brobecker@adacore.com>
41
42         * win32-nat.h: New file.
43         * win32-nat.c (mappings): Initialize to NULL.
44         (win32_set_context_register_offsets): New function.
45         * i386-windows-nat.c: New file.
46         (mappings): Moved here from win32-nat.c.
47         (_initialize_i386_windows_nat): New function.
48         * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
49         * config/i386/cygwin.mh (NATDEPFILES): Likewise.
50
51 2009-01-09  Andreas Schwab  <schwab@suse.de>
52
53         * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
54
55 2009-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
56
57         * gdbtypes.c (append_composite_type_field): Correct the location of
58         appended fields.
59
60 2009-01-09  Pedro Alves  <pedro@codesourcery.com>
61
62         * defs.h (deprecated_error_hook): Delete declaration.
63         * interps.c (clear_interpreter_hooks): Adjust.
64         * remote-sim.c (gdb_os_error): Don't try to call
65         deprecated_error_hook.  No need to call exit anymore.
66         * top.c (deprecated_error_hook): Delete.
67
68 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
69
70         * arch-utils.c (gdbarch_update_p): Use host_address_to_string
71         to print the address of the gdbarch pointer.
72
73 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
74
75         * gdbarch.sh: Fix all the compilation errors on amd64-windows
76         due to casting a pointer to a long when printing a function
77         address. Instead, use host_address_to_string to convert our
78         address to a string.
79         * gdbarch.c: Regenerate.
80
81 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
82
83         * event-top.c (async_disconnect, async_stop_sig): use "raise"
84         instead of "kill" to raise a signal.
85
86 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
87
88         * win32-nat.c (get_module_name): Change the type of parameter
89         "base_address" to LPVOID.  Remove unnecessary cast.
90         (struct lm_info): Change type of load_addr to LPVOID.
91         (win32_make_so): Change the type of parameter "load_addr"
92         to LPVOID.  Remove some unnecessary casts.
93         (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
94         (win32_xfer_shared_libraries): Add missing cast.
95
96 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
97
98         * win32-nat.c (has_detach_ability, set_process_privilege):
99         Cast the result of GetProcAddress to (void *) to avoid
100         a compilation warning.
101
102 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
103
104         * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
105         already defined.
106
107 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
108
109         * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
110         definition of local variable "done".
111         (info_w32_command, handle_exception): Remove unnecessary cast.
112
113 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
114
115         * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
116         DebugSetProcessKillOnExit.  Update all uses in this file.
117         (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
118         Update all uses in this file.
119
120 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
121
122         * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
123         and use it when pushing the target.
124         (win32_attach, win32_create_inferior): Update call to
125         do_initial_win32_stuff.
126         (win32_detach, win32_mourn_inferior): Use our ops parameter
127         instead of the global win32_ops to unpush the target.
128
129 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
130
131         * ser-mingw.c (ser_windows_open): Use proper type when casting
132         in call to _open_osfhandle.
133
134 2009-01-09  Kai Tietz  <kai.tietz@onevision.com>
135
136         * coff-pe-read.c (read_pe_exported_syms): Fix typo.
137
138 2009-01-09  Joel Brobecker  <brobecker@adacore.com>
139
140         * CONTRIBUTE: Minor reformatting.
141
142 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
143
144         * MAINTAINERS: Add myself to Write After Approval.
145         * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
146         export directory.
147
148 2009-01-08  Nathan Froyd  <froydnj@codesourcery.com>
149
150         * remote-sim.c (gdb_os_error): Mark as a noreturn function.
151         Call exit to make it obvious to GCC.
152
153 2009-01-08  Tom Tromey  <tromey@redhat.com>
154
155         PR breakpoints/9350:
156         * varobj.c (varobj_invalidate): Unconditionally free
157         all_rootvarobj.
158         * symfile.c (syms_from_objfile): Free local_addr when returning
159         normally.
160         * exec.c (exec_file_attach): Do cleanups before returning.
161         (exec_file_command): Likewise.
162         * corefile.c (reopen_exec_file): Do cleanups before returning.
163         * breakpoint.c (insert_breakpoint_locations): Do cleanups before
164         returning. 
165         (do_vec_free): New function.
166         (update_global_location_list): Make a cleanup for old_locations.
167         Do cleanups before returning.  Remove unused variable 'e'.
168         (find_condition_and_thread): Free result of parsing the
169         expression.
170         (print_it_typical): Do cleanups before returning.
171         (breakpoint_re_set_one): Always free sals.sals.
172
173 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
174             Emi Suzuki  <emi-suzuki@tjsys.co.jp>
175  
176         * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
177         watchpoints.
178
179 2009-01-07  Doug Evans  <dje@google.com>
180
181         * top.c (gdb_prompt_string): Delete, unused.
182
183 2009-01-07  Pedro Alves  <pedro@codesourcery.com>
184
185         Delete ONE_PROCESS_WRITETEXT leftovers.
186
187         * breakpoint.c (insert_bp_location): Delete process_warning
188         argument.  Adjust.
189         (insert_breakpoint_locations): Adjust.
190         (reattach_breakpoints): Adjust.
191         * infrun.c (normal_stop): Drop "It might be running in another
192         process" notice.
193
194 2009-01-07  Stan Shebs  <stan@codesourcery.com>
195
196         * config/pa/linux.mh (XDEPFILES): Remove.
197
198 2009-01-07  Doug Evans  <dje@google.com>
199
200         * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
201
202 2009-01-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
203
204         * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
205         spacing, a regression from 2008-04-22.
206
207 2009-01-07  Joel Brobecker  <brobecker@adacore.com>
208
209         * utils.c (gdb_print_host_address): Adjust implementation to
210         reuse host_address_to_string. Move comment explaining the conversion
211         from host address to string from here...
212         (host_address_to_string): ... to there.
213
214 2009-01-07  Emi Suzuki  <emi-suzuki@tjsys.co.jp>
215
216         * MAINTAINERS: Add myself for write after approval privileges.
217
218 2009-01-06  Tom Tromey  <tromey@redhat.com>
219
220         * value.c (set_internalvar): Use value_free, not xfree.
221
222 2009-01-06  Jim Blandy  <jimb@red-bean.com>
223
224         Check return values of functions declared with warn_unused_result
225         attribute in GLIBC 2.8.
226         * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
227         * inflow.c (check_syscall): New function.
228         (new_tty): Use check_syscall to check return values from open and dup.
229         * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
230         * main.c (captured_main): Call cwd after setting up gdb_stderr;
231         check for errors from getcwd.
232         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
233         * ui-file.c (stdio_file_write): Ignore return value from fwrite.
234         (stdio_file_fputs): Same.
235         * utils.c (internal_vproblem): abort if last-ditch error message
236         write fails.
237
238         * top.c (gdb_init): Don't set the current directory here; that's
239         already been done in captured_main.
240
241 2009-01-06  Sandra Loosemore  <sandra@codesourcery.com>
242
243         * ser-tcp.c: Adjust includes.
244         (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
245         (tcp_auto_retry, tcp_retry_limit): Declare.
246         (TIMEOUT): Remove, in favor of tcp_retry_limit.
247         (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
248         (wait_for_connect): New function.
249         (net_open): Use it.  Add auto-retry logic.
250         (set_tcp_cmd, show_tcp_cmd): New functions.
251         (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
252         and "set/show tcp connect-timeout" commands.
253         * NEWS: Document new commands.
254
255 2009-01-05  Tom Tromey  <tromey@redhat.com>
256
257         * python/python-internal.h (Py_ssize_t): Define as int.
258
259 2009-01-05  Jim Blandy  <jimb@red-bean.com>
260
261         * MAINTAINERS: Fix my e-mail address as steering committee member.
262
263 2009-01-03  Joel Brobecker  <brobecker@adacore.com>
264
265         Updated copyright notices for most files.
266
267 2009-01-03  Joel Brobecker  <brobecker@adacore.com>
268
269         * top.c (print_gdb_version): Update copyright year.
270
271 2009-01-03  Joel Brobecker  <brobecker@adacore.com>
272
273         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
274
275 2009-01-01  Pedro Alves  <pedro@codesourcery.com>
276
277         PR breakpoints/9681:
278         * exceptions.h (enum errors): New error type, MEMORY_ERROR.
279         * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
280         * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
281         retrow all other exceptions.
282
283 For older changes see ChangeLog-2008.
284 \f
285 Local Variables:
286 mode: change-log
287 left-margin: 8
288 fill-column: 74
289 version-control: never
290 coding: utf-8
291 End: