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