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