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