]> Git Repo - binutils.git/blob - gdb/ChangeLog
* value.h (address_of_variable): Add prototype.
[binutils.git] / gdb / ChangeLog
1 2009-01-15  Ulrich Weigand  <[email protected]>
2
3         * value.h (address_of_variable): Add prototype.
4         (locate_var_value): Remove prototype.
5
6         * findvar.c (read_var_value): Do not attempt to default frame
7         to selected 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.
12
13         * eval.c (evaluate_subexp_for_address): Call address_of_variable
14         instead of calling locate_var_value.
15         (evaluate_subexp_with_coercion): Likewise.
16
17 2009-01-14  Daniel Jacobowitz  <[email protected]>
18
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
27         commands.
28         * cli/cli-script.h (show_user_1): Update prototype.
29
30 2009-01-14  Kai Tietz  <[email protected]>
31
32         * mingw-ser.c (console_select_thread): Add return to make
33         compiler happy.
34         (pipe_select_thread): Likewise.
35         (file_select_thread): Likewise.
36
37 2009-01-14  Pedro Alves  <[email protected]>
38
39         * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
40         previous change.
41
42 2009-01-14  Pedro Alves  <[email protected]>
43
44         * remote.c (extended_remote_mourn_1): Invalidate our notion of
45         current general thread.
46
47 2009-01-14  Pedro Alves  <[email protected]>
48
49         * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
50         without a live selected thread.
51
52 2009-01-14  Joel Brobecker  <[email protected]>
53
54         Update the copyright notice of some of the files I missed
55         in the previous copyright update.
56
57 2009-01-14  Joel Brobecker  <[email protected]>
58
59         * windows-nat.c (handle_unload_dll): Use %p to print the DLL
60         base address instead of casting it to DWORD.
61
62 2009-01-13  Ulrich Weigand  <[email protected]>
63
64         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
65         for NULL frame pointers.
66
67 2009-01-13  Mark Kettenis  <[email protected]>
68
69         * utils.c (host_address_to_string): Reimplement in a way that
70         avoids the cast of the address to long.
71
72 2009-01-13  Joel Brobecker  <[email protected]>
73
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
79         SYMBOL_VALUE_BYTES.
80
81 2009-01-13  Jim Blandy  <[email protected]>
82
83         Abstract out common code for copying value locations.
84
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.
92
93 2009-01-13  Joel Brobecker  <[email protected]>
94
95         * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
96
97 2009-01-12  Christopher Faylor  <[email protected]>
98
99         * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
100         throughout.
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
113         warning.
114         * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
115         files.
116
117 2009-01-11  Jan Kratochvil  <[email protected]>
118
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.
123
124 2009-01-11  Christ Faylor  <[email protected]>
125
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 ->
134         windows-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 ->
139         windows-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 ->
142         windows-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 ->
151         windows-nat.o.
152         * config/i386/mingw.mh: Ditto.
153         * config/i386/mingw64.mh: Ditto.
154
155 2009-01-11  Jan Kratochvil  <[email protected]>
156
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.
160
161 2009-01-11  Jan Kratochvil  <[email protected]>
162
163         * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
164         coding style.
165
166 2009-01-11  Joel Brobecker  <[email protected]>
167
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
173         intptr_t.
174
175 2009-01-11  Joel Brobecker  <[email protected]>
176
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.
182
183 2009-01-11  Joel Brobecker  <[email protected]>
184
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
188         i386-cygwin-tdep.h.
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.
193
194 2009-01-11  Joel Brobecker  <[email protected]>
195
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.
204
205 2009-01-09  Andreas Schwab  <[email protected]>
206
207         * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
208
209 2009-01-09  Daniel Jacobowitz  <[email protected]>
210
211         * gdbtypes.c (append_composite_type_field): Correct the location of
212         appended fields.
213
214 2009-01-09  Pedro Alves  <[email protected]>
215
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.
221
222 2009-01-09  Joel Brobecker  <[email protected]>
223
224         * arch-utils.c (gdbarch_update_p): Use host_address_to_string
225         to print the address of the gdbarch pointer.
226
227 2009-01-09  Joel Brobecker  <[email protected]>
228
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
232         address to a string.
233         * gdbarch.c: Regenerate.
234
235 2009-01-09  Joel Brobecker  <[email protected]>
236
237         * event-top.c (async_disconnect, async_stop_sig): use "raise"
238         instead of "kill" to raise a signal.
239
240 2009-01-09  Joel Brobecker  <[email protected]>
241
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.
249
250 2009-01-09  Joel Brobecker  <[email protected]>
251
252         * win32-nat.c (has_detach_ability, set_process_privilege):
253         Cast the result of GetProcAddress to (void *) to avoid
254         a compilation warning.
255
256 2009-01-09  Joel Brobecker  <[email protected]>
257
258         * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
259         already defined.
260
261 2009-01-09  Joel Brobecker  <[email protected]>
262
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.
266
267 2009-01-09  Joel Brobecker  <[email protected]>
268
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.
273
274 2009-01-09  Joel Brobecker  <[email protected]>
275
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.
282
283 2009-01-09  Joel Brobecker  <[email protected]>
284
285         * ser-mingw.c (ser_windows_open): Use proper type when casting
286         in call to _open_osfhandle.
287
288 2009-01-09  Kai Tietz  <[email protected]>
289
290         * coff-pe-read.c (read_pe_exported_syms): Fix typo.
291
292 2009-01-09  Joel Brobecker  <[email protected]>
293
294         * CONTRIBUTE: Minor reformatting.
295
296 2009-01-08  Kai Tietz  <[email protected]>
297
298         * MAINTAINERS: Add myself to Write After Approval.
299         * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
300         export directory.
301
302 2009-01-08  Nathan Froyd  <[email protected]>
303
304         * remote-sim.c (gdb_os_error): Mark as a noreturn function.
305         Call exit to make it obvious to GCC.
306
307 2009-01-08  Tom Tromey  <[email protected]>
308
309         PR breakpoints/9350:
310         * varobj.c (varobj_invalidate): Unconditionally free
311         all_rootvarobj.
312         * symfile.c (syms_from_objfile): Free local_addr when returning
313         normally.
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
318         returning. 
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
323         expression.
324         (print_it_typical): Do cleanups before returning.
325         (breakpoint_re_set_one): Always free sals.sals.
326
327 2009-01-08  Joel Brobecker  <[email protected]>
328             Emi Suzuki  <[email protected]>
329  
330         * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
331         watchpoints.
332
333 2009-01-07  Doug Evans  <[email protected]>
334
335         * top.c (gdb_prompt_string): Delete, unused.
336
337 2009-01-07  Pedro Alves  <[email protected]>
338
339         Delete ONE_PROCESS_WRITETEXT leftovers.
340
341         * breakpoint.c (insert_bp_location): Delete process_warning
342         argument.  Adjust.
343         (insert_breakpoint_locations): Adjust.
344         (reattach_breakpoints): Adjust.
345         * infrun.c (normal_stop): Drop "It might be running in another
346         process" notice.
347
348 2009-01-07  Stan Shebs  <[email protected]>
349
350         * config/pa/linux.mh (XDEPFILES): Remove.
351
352 2009-01-07  Doug Evans  <[email protected]>
353
354         * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
355
356 2009-01-07  Jan Kratochvil  <[email protected]>
357
358         * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
359         spacing, a regression from 2008-04-22.
360
361 2009-01-07  Joel Brobecker  <[email protected]>
362
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.
367
368 2009-01-07  Emi Suzuki  <[email protected]>
369
370         * MAINTAINERS: Add myself for write after approval privileges.
371
372 2009-01-06  Tom Tromey  <[email protected]>
373
374         * value.c (set_internalvar): Use value_free, not xfree.
375
376 2009-01-06  Jim Blandy  <[email protected]>
377
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
390         write fails.
391
392         * top.c (gdb_init): Don't set the current directory here; that's
393         already been done in captured_main.
394
395 2009-01-06  Sandra Loosemore  <[email protected]>
396
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.
408
409 2009-01-05  Tom Tromey  <[email protected]>
410
411         * python/python-internal.h (Py_ssize_t): Define as int.
412
413 2009-01-05  Jim Blandy  <[email protected]>
414
415         * MAINTAINERS: Fix my e-mail address as steering committee member.
416
417 2009-01-03  Joel Brobecker  <[email protected]>
418
419         Updated copyright notices for most files.
420
421 2009-01-03  Joel Brobecker  <[email protected]>
422
423         * top.c (print_gdb_version): Update copyright year.
424
425 2009-01-03  Joel Brobecker  <[email protected]>
426
427         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
428
429 2009-01-01  Pedro Alves  <[email protected]>
430
431         PR breakpoints/9681:
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.
436
437 For older changes see ChangeLog-2008.
438 \f
439 Local Variables:
440 mode: change-log
441 left-margin: 8
442 fill-column: 74
443 version-control: never
444 coding: utf-8
445 End:
This page took 0.057651 seconds and 4 git commands to generate.