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