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