3 * value.h (address_of_variable): Add prototype.
4 (locate_var_value): Remove prototype.
6 * findvar.c (read_var_value): Do not attempt to default frame
8 (locate_var_value): Remove function.
9 * valops.c (value_of_variable): Retrieve selected frame for
10 symbols that require a frame when called with NULL block.
11 * valops.c (address_of_variable): New function.
13 * eval.c (evaluate_subexp_for_address): Call address_of_variable
14 instead of calling locate_var_value.
15 (evaluate_subexp_with_coercion): Likewise.
19 * NEWS: Document "define" for prefixed commands.
20 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
21 show_user_1 for prefix commands.
22 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
23 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
24 commands. Return the containing command list.
25 (define_command, document_command): Update to handle prefix commands.
26 (show_user_1): Add prefix and name arguments. Handle prefix
28 * cli/cli-script.h (show_user_1): Update prototype.
32 * mingw-ser.c (console_select_thread): Add return to make
34 (pipe_select_thread): Likewise.
35 (file_select_thread): Likewise.
39 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
44 * remote.c (extended_remote_mourn_1): Invalidate our notion of
45 current general thread.
49 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
50 without a live selected thread.
54 Update the copyright notice of some of the files I missed
55 in the previous copyright update.
59 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
60 base address instead of casting it to DWORD.
64 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
65 for NULL frame pointers.
69 * utils.c (host_address_to_string): Reimplement in a way that
70 avoids the cast of the address to long.
74 * mdebugread.c (parse_symbol): Save the symbol private data
75 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
76 (psymtab_to_symtab_1): Likewise.
77 (parse_procedure): Declare variable "e" only in the scope
78 where it is used. Extract the symbol private data using
83 Abstract out common code for copying value locations.
85 * value.h (set_value_component_location): New declaration.
86 * value.c (set_value_component_location): New function.
87 (value_primitive_field): Use it.
88 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
89 * valops.c (search_struct_field, value_slice): Same.
90 * ada-lang.c (coerce_unspec_val_to_type)
91 (ada_value_primitive_packed_val): Same.
95 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
99 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
101 * i386-cygwin-tdep.c: Ditto.
102 * i386-windows-nat.c: Ditto.
103 * windows-nat.h: Ditto.
104 * windows-tdep.c: Ditto.
105 * windows-tdep.h: Ditto.
106 * windows-nat.c: Ditto.
107 (cygwin_load_start): Redefine as CORE_ADDR.
108 (cygwin_load_end): Ditto.
109 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
110 before coercing to CORE_ADDR to avoid a compiler warning.
111 (handle_exception): Define addr as CORE_ADDR and coerce
112 ExceptionAddress to uintptr_t before assigining to avoid a compiler
114 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
119 Fix linking with --enable-targets=all:
120 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
121 (HFILES_NO_SRCDIR): Add windows-tdep.h.
122 (ALLDEPFILES): Add windows-tdep.c.
126 * win32-nat.h: Delete.
127 * windows-nat.h: Rename from win32-nat.h.
128 * win32-nat.c: Delete.
129 * windows-nat.c: Rename from win32-nat.c.
130 * win32-termcap.c: Delete.
131 * windows-termcap.c: Rename from win32-termcap.c.
132 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
133 * configure.ac: Handle rename from win32-termcap.c ->
135 * configure: Regenerate.
136 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
137 -> windows-termcap.c.
138 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
140 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
141 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
143 (win32_make_so): Handle cygwin compiler warning due to change of
144 load_addr from DWORD to LPVOID.
145 (handle_load_dll): Use %p in format string to properly print address
146 and avoid a compiler warning.
147 (DEBUG_EXCEPTION_SIMPLE): Ditto.
148 (handle_exception): Ditto.
149 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
150 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
152 * config/i386/mingw.mh: Ditto.
153 * config/i386/mingw64.mh: Ditto.
157 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
158 arrayprint_recurse_level to a parameter. Update all the callers. New
159 comment at autovariables.
163 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
168 * target.c (target_xfer_partial): Use host_address_to_string to
169 print the address of readbuf and writebuf. Cast the address of
170 elements inside the myaddr buffer into intptr_t.
171 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
172 Cast the address of elements inside the myaddr buffer into
177 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
178 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
179 * configure.host, configure.tgt: Add handling for x86_64/windows.
180 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
181 and amd64-windows-tdep.c.
185 * win32-tdep.h, win32-tdep.c: New files.
186 * i386-cygwin-tdep.h: Delete.
187 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
189 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
190 * win32-nat.c: Likewise.
191 * configure.tgt: Add win32-tdep.o to the list of target object
192 files for i386-cygwin and i386-mingw targets.
196 * win32-nat.h: New file.
197 * win32-nat.c (mappings): Initialize to NULL.
198 (win32_set_context_register_offsets): New function.
199 * i386-windows-nat.c: New file.
200 (mappings): Moved here from win32-nat.c.
201 (_initialize_i386_windows_nat): New function.
202 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
203 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
207 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
211 * gdbtypes.c (append_composite_type_field): Correct the location of
216 * defs.h (deprecated_error_hook): Delete declaration.
217 * interps.c (clear_interpreter_hooks): Adjust.
218 * remote-sim.c (gdb_os_error): Don't try to call
219 deprecated_error_hook. No need to call exit anymore.
220 * top.c (deprecated_error_hook): Delete.
224 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
225 to print the address of the gdbarch pointer.
229 * gdbarch.sh: Fix all the compilation errors on amd64-windows
230 due to casting a pointer to a long when printing a function
231 address. Instead, use host_address_to_string to convert our
233 * gdbarch.c: Regenerate.
237 * event-top.c (async_disconnect, async_stop_sig): use "raise"
238 instead of "kill" to raise a signal.
242 * win32-nat.c (get_module_name): Change the type of parameter
243 "base_address" to LPVOID. Remove unnecessary cast.
244 (struct lm_info): Change type of load_addr to LPVOID.
245 (win32_make_so): Change the type of parameter "load_addr"
246 to LPVOID. Remove some unnecessary casts.
247 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
248 (win32_xfer_shared_libraries): Add missing cast.
252 * win32-nat.c (has_detach_ability, set_process_privilege):
253 Cast the result of GetProcAddress to (void *) to avoid
254 a compilation warning.
258 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
263 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
264 definition of local variable "done".
265 (info_w32_command, handle_exception): Remove unnecessary cast.
269 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
270 DebugSetProcessKillOnExit. Update all uses in this file.
271 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
272 Update all uses in this file.
276 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
277 and use it when pushing the target.
278 (win32_attach, win32_create_inferior): Update call to
279 do_initial_win32_stuff.
280 (win32_detach, win32_mourn_inferior): Use our ops parameter
281 instead of the global win32_ops to unpush the target.
285 * ser-mingw.c (ser_windows_open): Use proper type when casting
286 in call to _open_osfhandle.
290 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
294 * CONTRIBUTE: Minor reformatting.
298 * MAINTAINERS: Add myself to Write After Approval.
299 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
304 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
305 Call exit to make it obvious to GCC.
310 * varobj.c (varobj_invalidate): Unconditionally free
312 * symfile.c (syms_from_objfile): Free local_addr when returning
314 * exec.c (exec_file_attach): Do cleanups before returning.
315 (exec_file_command): Likewise.
316 * corefile.c (reopen_exec_file): Do cleanups before returning.
317 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
319 (do_vec_free): New function.
320 (update_global_location_list): Make a cleanup for old_locations.
321 Do cleanups before returning. Remove unused variable 'e'.
322 (find_condition_and_thread): Free result of parsing the
324 (print_it_typical): Do cleanups before returning.
325 (breakpoint_re_set_one): Always free sals.sals.
330 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
335 * top.c (gdb_prompt_string): Delete, unused.
339 Delete ONE_PROCESS_WRITETEXT leftovers.
341 * breakpoint.c (insert_bp_location): Delete process_warning
343 (insert_breakpoint_locations): Adjust.
344 (reattach_breakpoints): Adjust.
345 * infrun.c (normal_stop): Drop "It might be running in another
350 * config/pa/linux.mh (XDEPFILES): Remove.
354 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
358 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
359 spacing, a regression from 2008-04-22.
363 * utils.c (gdb_print_host_address): Adjust implementation to
364 reuse host_address_to_string. Move comment explaining the conversion
365 from host address to string from here...
366 (host_address_to_string): ... to there.
370 * MAINTAINERS: Add myself for write after approval privileges.
374 * value.c (set_internalvar): Use value_free, not xfree.
378 Check return values of functions declared with warn_unused_result
379 attribute in GLIBC 2.8.
380 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
381 * inflow.c (check_syscall): New function.
382 (new_tty): Use check_syscall to check return values from open and dup.
383 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
384 * main.c (captured_main): Call cwd after setting up gdb_stderr;
385 check for errors from getcwd.
386 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
387 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
388 (stdio_file_fputs): Same.
389 * utils.c (internal_vproblem): abort if last-ditch error message
392 * top.c (gdb_init): Don't set the current directory here; that's
393 already been done in captured_main.
397 * ser-tcp.c: Adjust includes.
398 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
399 (tcp_auto_retry, tcp_retry_limit): Declare.
400 (TIMEOUT): Remove, in favor of tcp_retry_limit.
401 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
402 (wait_for_connect): New function.
403 (net_open): Use it. Add auto-retry logic.
404 (set_tcp_cmd, show_tcp_cmd): New functions.
405 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
406 and "set/show tcp connect-timeout" commands.
407 * NEWS: Document new commands.
411 * python/python-internal.h (Py_ssize_t): Define as int.
415 * MAINTAINERS: Fix my e-mail address as steering committee member.
419 Updated copyright notices for most files.
423 * top.c (print_gdb_version): Update copyright year.
427 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
432 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
433 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
434 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
435 retrow all other exceptions.
437 For older changes see ChangeLog-2008.
443 version-control: never