]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
056623569154be5e116f9b70fddc95fc1e49b6f4
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
2
3 * mingw-ser.c (console_select_thread): Add return to make
4 compiler happy.
5 (pipe_select_thread): Likewise.
6 (file_select_thread): Likewise.
7
8 2009-01-14 Pedro Alves <pedro@codesourcery.com>
9
10 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
11 previous change.
12
13 2009-01-14 Pedro Alves <pedro@codesourcery.com>
14
15 * remote.c (extended_remote_mourn_1): Invalidate our notion of
16 current general thread.
17
18 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19
20 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
21 without a live selected thread.
22
23 2009-01-14 Joel Brobecker <brobecker@adacore.com>
24
25 Update the copyright notice of some of the files I missed
26 in the previous copyright update.
27
28 2009-01-14 Joel Brobecker <brobecker@adacore.com>
29
30 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
31 base address instead of casting it to DWORD.
32
33 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
34
35 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
36 for NULL frame pointers.
37
38 2009-01-13 Mark Kettenis <kettenis@gnu.org>
39
40 * utils.c (host_address_to_string): Reimplement in a way that
41 avoids the cast of the address to long.
42
43 2009-01-13 Joel Brobecker <brobecker@adacore.com>
44
45 * mdebugread.c (parse_symbol): Save the symbol private data
46 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
47 (psymtab_to_symtab_1): Likewise.
48 (parse_procedure): Declare variable "e" only in the scope
49 where it is used. Extract the symbol private data using
50 SYMBOL_VALUE_BYTES.
51
52 2009-01-13 Jim Blandy <jimb@codesourcery.com>
53
54 Abstract out common code for copying value locations.
55
56 * value.h (set_value_component_location): New declaration.
57 * value.c (set_value_component_location): New function.
58 (value_primitive_field): Use it.
59 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
60 * valops.c (search_struct_field, value_slice): Same.
61 * ada-lang.c (coerce_unspec_val_to_type)
62 (ada_value_primitive_packed_val): Same.
63
64 2009-01-13 Joel Brobecker <brobecker@adacore.com>
65
66 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
67
68 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
69
70 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
71 throughout.
72 * i386-cygwin-tdep.c: Ditto.
73 * i386-windows-nat.c: Ditto.
74 * windows-nat.h: Ditto.
75 * windows-tdep.c: Ditto.
76 * windows-tdep.h: Ditto.
77 * windows-nat.c: Ditto.
78 (cygwin_load_start): Redefine as CORE_ADDR.
79 (cygwin_load_end): Ditto.
80 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
81 before coercing to CORE_ADDR to avoid a compiler warning.
82 (handle_exception): Define addr as CORE_ADDR and coerce
83 ExceptionAddress to uintptr_t before assigining to avoid a compiler
84 warning.
85 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
86 files.
87
88 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
89
90 Fix linking with --enable-targets=all:
91 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
92 (HFILES_NO_SRCDIR): Add windows-tdep.h.
93 (ALLDEPFILES): Add windows-tdep.c.
94
95 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
96
97 * win32-nat.h: Delete.
98 * windows-nat.h: Rename from win32-nat.h.
99 * win32-nat.c: Delete.
100 * windows-nat.c: Rename from win32-nat.c.
101 * win32-termcap.c: Delete.
102 * windows-termcap.c: Rename from win32-termcap.c.
103 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
104 * configure.ac: Handle rename from win32-termcap.c ->
105 windows-termcap.c.
106 * configure: Regenerate.
107 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
108 -> windows-termcap.c.
109 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
110 windows-tdep.h.
111 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
112 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
113 windows-tdep.h.
114 (win32_make_so): Handle cygwin compiler warning due to change of
115 load_addr from DWORD to LPVOID.
116 (handle_load_dll): Use %p in format string to properly print address
117 and avoid a compiler warning.
118 (DEBUG_EXCEPTION_SIMPLE): Ditto.
119 (handle_exception): Ditto.
120 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
121 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
122 windows-nat.o.
123 * config/i386/mingw.mh: Ditto.
124 * config/i386/mingw64.mh: Ditto.
125
126 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
129 arrayprint_recurse_level to a parameter. Update all the callers. New
130 comment at autovariables.
131
132 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
133
134 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
135 coding style.
136
137 2009-01-11 Joel Brobecker <brobecker@adacore.com>
138
139 * target.c (target_xfer_partial): Use host_address_to_string to
140 print the address of readbuf and writebuf. Cast the address of
141 elements inside the myaddr buffer into intptr_t.
142 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
143 Cast the address of elements inside the myaddr buffer into
144 intptr_t.
145
146 2009-01-11 Joel Brobecker <brobecker@adacore.com>
147
148 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
149 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
150 * configure.host, configure.tgt: Add handling for x86_64/windows.
151 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
152 and amd64-windows-tdep.c.
153
154 2009-01-11 Joel Brobecker <brobecker@adacore.com>
155
156 * win32-tdep.h, win32-tdep.c: New files.
157 * i386-cygwin-tdep.h: Delete.
158 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
159 i386-cygwin-tdep.h.
160 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
161 * win32-nat.c: Likewise.
162 * configure.tgt: Add win32-tdep.o to the list of target object
163 files for i386-cygwin and i386-mingw targets.
164
165 2009-01-11 Joel Brobecker <brobecker@adacore.com>
166
167 * win32-nat.h: New file.
168 * win32-nat.c (mappings): Initialize to NULL.
169 (win32_set_context_register_offsets): New function.
170 * i386-windows-nat.c: New file.
171 (mappings): Moved here from win32-nat.c.
172 (_initialize_i386_windows_nat): New function.
173 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
174 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
175
176 2009-01-09 Andreas Schwab <schwab@suse.de>
177
178 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
179
180 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
181
182 * gdbtypes.c (append_composite_type_field): Correct the location of
183 appended fields.
184
185 2009-01-09 Pedro Alves <pedro@codesourcery.com>
186
187 * defs.h (deprecated_error_hook): Delete declaration.
188 * interps.c (clear_interpreter_hooks): Adjust.
189 * remote-sim.c (gdb_os_error): Don't try to call
190 deprecated_error_hook. No need to call exit anymore.
191 * top.c (deprecated_error_hook): Delete.
192
193 2009-01-09 Joel Brobecker <brobecker@adacore.com>
194
195 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
196 to print the address of the gdbarch pointer.
197
198 2009-01-09 Joel Brobecker <brobecker@adacore.com>
199
200 * gdbarch.sh: Fix all the compilation errors on amd64-windows
201 due to casting a pointer to a long when printing a function
202 address. Instead, use host_address_to_string to convert our
203 address to a string.
204 * gdbarch.c: Regenerate.
205
206 2009-01-09 Joel Brobecker <brobecker@adacore.com>
207
208 * event-top.c (async_disconnect, async_stop_sig): use "raise"
209 instead of "kill" to raise a signal.
210
211 2009-01-09 Joel Brobecker <brobecker@adacore.com>
212
213 * win32-nat.c (get_module_name): Change the type of parameter
214 "base_address" to LPVOID. Remove unnecessary cast.
215 (struct lm_info): Change type of load_addr to LPVOID.
216 (win32_make_so): Change the type of parameter "load_addr"
217 to LPVOID. Remove some unnecessary casts.
218 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
219 (win32_xfer_shared_libraries): Add missing cast.
220
221 2009-01-09 Joel Brobecker <brobecker@adacore.com>
222
223 * win32-nat.c (has_detach_ability, set_process_privilege):
224 Cast the result of GetProcAddress to (void *) to avoid
225 a compilation warning.
226
227 2009-01-09 Joel Brobecker <brobecker@adacore.com>
228
229 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
230 already defined.
231
232 2009-01-09 Joel Brobecker <brobecker@adacore.com>
233
234 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
235 definition of local variable "done".
236 (info_w32_command, handle_exception): Remove unnecessary cast.
237
238 2009-01-09 Joel Brobecker <brobecker@adacore.com>
239
240 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
241 DebugSetProcessKillOnExit. Update all uses in this file.
242 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
243 Update all uses in this file.
244
245 2009-01-09 Joel Brobecker <brobecker@adacore.com>
246
247 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
248 and use it when pushing the target.
249 (win32_attach, win32_create_inferior): Update call to
250 do_initial_win32_stuff.
251 (win32_detach, win32_mourn_inferior): Use our ops parameter
252 instead of the global win32_ops to unpush the target.
253
254 2009-01-09 Joel Brobecker <brobecker@adacore.com>
255
256 * ser-mingw.c (ser_windows_open): Use proper type when casting
257 in call to _open_osfhandle.
258
259 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
260
261 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
262
263 2009-01-09 Joel Brobecker <brobecker@adacore.com>
264
265 * CONTRIBUTE: Minor reformatting.
266
267 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
268
269 * MAINTAINERS: Add myself to Write After Approval.
270 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
271 export directory.
272
273 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
274
275 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
276 Call exit to make it obvious to GCC.
277
278 2009-01-08 Tom Tromey <tromey@redhat.com>
279
280 PR breakpoints/9350:
281 * varobj.c (varobj_invalidate): Unconditionally free
282 all_rootvarobj.
283 * symfile.c (syms_from_objfile): Free local_addr when returning
284 normally.
285 * exec.c (exec_file_attach): Do cleanups before returning.
286 (exec_file_command): Likewise.
287 * corefile.c (reopen_exec_file): Do cleanups before returning.
288 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
289 returning.
290 (do_vec_free): New function.
291 (update_global_location_list): Make a cleanup for old_locations.
292 Do cleanups before returning. Remove unused variable 'e'.
293 (find_condition_and_thread): Free result of parsing the
294 expression.
295 (print_it_typical): Do cleanups before returning.
296 (breakpoint_re_set_one): Always free sals.sals.
297
298 2009-01-08 Joel Brobecker <brobecker@adacore.com>
299 Emi Suzuki <emi-suzuki@tjsys.co.jp>
300
301 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
302 watchpoints.
303
304 2009-01-07 Doug Evans <dje@google.com>
305
306 * top.c (gdb_prompt_string): Delete, unused.
307
308 2009-01-07 Pedro Alves <pedro@codesourcery.com>
309
310 Delete ONE_PROCESS_WRITETEXT leftovers.
311
312 * breakpoint.c (insert_bp_location): Delete process_warning
313 argument. Adjust.
314 (insert_breakpoint_locations): Adjust.
315 (reattach_breakpoints): Adjust.
316 * infrun.c (normal_stop): Drop "It might be running in another
317 process" notice.
318
319 2009-01-07 Stan Shebs <stan@codesourcery.com>
320
321 * config/pa/linux.mh (XDEPFILES): Remove.
322
323 2009-01-07 Doug Evans <dje@google.com>
324
325 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
326
327 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
330 spacing, a regression from 2008-04-22.
331
332 2009-01-07 Joel Brobecker <brobecker@adacore.com>
333
334 * utils.c (gdb_print_host_address): Adjust implementation to
335 reuse host_address_to_string. Move comment explaining the conversion
336 from host address to string from here...
337 (host_address_to_string): ... to there.
338
339 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
340
341 * MAINTAINERS: Add myself for write after approval privileges.
342
343 2009-01-06 Tom Tromey <tromey@redhat.com>
344
345 * value.c (set_internalvar): Use value_free, not xfree.
346
347 2009-01-06 Jim Blandy <jimb@red-bean.com>
348
349 Check return values of functions declared with warn_unused_result
350 attribute in GLIBC 2.8.
351 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
352 * inflow.c (check_syscall): New function.
353 (new_tty): Use check_syscall to check return values from open and dup.
354 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
355 * main.c (captured_main): Call cwd after setting up gdb_stderr;
356 check for errors from getcwd.
357 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
358 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
359 (stdio_file_fputs): Same.
360 * utils.c (internal_vproblem): abort if last-ditch error message
361 write fails.
362
363 * top.c (gdb_init): Don't set the current directory here; that's
364 already been done in captured_main.
365
366 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
367
368 * ser-tcp.c: Adjust includes.
369 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
370 (tcp_auto_retry, tcp_retry_limit): Declare.
371 (TIMEOUT): Remove, in favor of tcp_retry_limit.
372 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
373 (wait_for_connect): New function.
374 (net_open): Use it. Add auto-retry logic.
375 (set_tcp_cmd, show_tcp_cmd): New functions.
376 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
377 and "set/show tcp connect-timeout" commands.
378 * NEWS: Document new commands.
379
380 2009-01-05 Tom Tromey <tromey@redhat.com>
381
382 * python/python-internal.h (Py_ssize_t): Define as int.
383
384 2009-01-05 Jim Blandy <jimb@red-bean.com>
385
386 * MAINTAINERS: Fix my e-mail address as steering committee member.
387
388 2009-01-03 Joel Brobecker <brobecker@adacore.com>
389
390 Updated copyright notices for most files.
391
392 2009-01-03 Joel Brobecker <brobecker@adacore.com>
393
394 * top.c (print_gdb_version): Update copyright year.
395
396 2009-01-03 Joel Brobecker <brobecker@adacore.com>
397
398 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
399
400 2009-01-01 Pedro Alves <pedro@codesourcery.com>
401
402 PR breakpoints/9681:
403 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
404 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
405 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
406 retrow all other exceptions.
407
408 For older changes see ChangeLog-2008.
409 \f
410 Local Variables:
411 mode: change-log
412 left-margin: 8
413 fill-column: 74
414 version-control: never
415 coding: utf-8
416 End: