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