gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2009-02-02 Tom Tromey <tromey@redhat.com>
2
3 PR gdb/2489:
4 * completer.c (count_struct_fields): Count method names.
5 (add_struct_fields): Add matching method names.
6
7 2009-02-02 Doug Evans <dje@google.com>
8
9 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
10 doing any further tcl/tk configury. Don't configure gdbtk if
11 tcl or tk check fails.
12 * aclocal.m4: Regenerate.
13 * configure: Regenerate.
14
15 2009-02-02 Tom Tromey <tromey@redhat.com>
16
17 PR exp/9059:
18 * valops.c (find_overload_match): Follow typedefs before taking
19 address of object argument.
20
21 2009-02-01 Doug Evans <dje@google.com>
22
23 * target.h (target_waitstatus_to_string): Declare.
24 * target.c (target_waitstatus_to_string): New function. Copied from
25 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
26 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
27 TARGET_WAITKIND_NO_HISTORY.
28 (debug_to_wait): Call it.
29 * infrun.c (wait_for_inferior): If debug_infrun, print result of
30 target_wait.
31 (fetch_inferior_event): Ditto.
32
33 2009-01-30 Tom Tromey <tromey@redhat.com>
34
35 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
36
37 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
38
39 PR 8145.
40 * thread.c (do_captured_list_thread_ids): Report the current
41 thread id.
42
43 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
44
45 * breakpoint.c (create_breakpoint, create_breakpoints)
46 (break_command_really, set_breakpoint): New parameter enabled.
47 (create_breakpoint, break_command_really): Make breakpoint
48 disabled if so requested.
49 * breakpoint.h (set_breakpoint): New parameter enabled.
50 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
51
52 2009-01-28 Doug Evans <dje@google.com>
53
54 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
55 (amd64_displaced_step_fixup): Declare.
56 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
57 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
58 and make static global.
59 (amd64_arch_regmap_len): New static global.
60 (amd64_arch_reg_to_regnum): New function.
61 (struct amd64_insn): New struct.
62 (struct displaced_step_closure): New struct.
63 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
64 (rex_prefix_p,skip_prefixes)
65 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
66 (amd64_insn_length,amd64_get_unused_input_int_reg)
67 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
68 (amd64_displaced_step_copy_insn)
69 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
70 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
71 (amd64_displaced_step_fixup): New functions.
72 * amd64-linux-tdep.c: #include arch-utils.h.
73 (amd64_linux_init_abi): Install displaced stepping support.
74
75 2009-01-28 Pedro Alves <pedro@codesourcery.com>
76
77 * corefile.c (generic_search): Delete disabled code.
78 * gdbcore.h (generic_search): Delete declaration.
79
80 2009-01-26 Pedro Alves <pedro@codesourcery.com>
81
82 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
83 parent to the child.
84 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
85 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
86 remove_breakpoints to remove breakpoints from the parent.
87
88 2009-01-26 Pedro Alves <pedro@codesourcery.com>
89
90 PR backtrace/9458, PR backtrace/8864:
91 * frame.c (create_new_frame): Update the frame's cached PC before
92 finding its unwinder. Use frame_id_build to build the new frame's
93 id.
94 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
95 array values from the ``args'' array values.
96
97 2009-01-26 Pedro Alves <pedro@codesourcery.com>
98
99 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
100 (create_array_type, create_set_type, init_flags_type)
101 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
102 with a call to XZALLOC or XCALLOC, and pairs of calls to
103 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
104
105 2009-01-26 Pedro Alves <pedro@codesourcery.com>
106
107 Add "maint set|show internal-error|internal-warning quit|corefile
108 ask|yes|no" commands.
109
110 PR gdb/7580:
111 * utils.c (internal_problem_ask, internal_problem_yes)
112 (internal_problem_no, internal_problem_modes): New.
113 (struct internal_problem): Remove FIXME. Make should_quit and
114 should_dump_core types to char *.
115 (internal_vproblem, internal_error_problem)
116 (internal_warning_problem): Adjust.
117 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
118 functions.
119 (add_internal_problem_command): New.
120 (_initialize_utils): New.
121
122 2009-01-25 Pedro Alves <pedro@codesourcery.com>
123
124 * infcmd.c (program_info): Use paddress instead of casting stop_pc
125 to unsigned long.
126
127 2009-01-24 Pedro Alves <pedro@codesourcery.com>
128
129 * infrun.c (normal_stop): Don't call
130 deprecated_update_frame_pc_hack.
131 * frame.c (deprecated_update_frame_pc_hack)
132 (deprecated_update_frame_base_hack): Delete, and ...
133 (create_new_frame): ... inline here.
134 * frame.h (deprecated_update_frame_pc_hack)
135 (deprecated_update_frame_base_hack): Delete declarations.
136
137 2009-01-23 Pedro Alves <pedro@codesourcery.com>
138
139 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
140 * cli/cli-setshow.c (do_setshow_command): Handle it.
141 * command.h (enum var_types): Add var_zuinteger.
142 (add_setshow_zuinteger_cmd): Declare.
143
144 * valprint.c (_initialize_valprint): Change the set input-radix
145 and set output-radix commands to zuinteger type.
146
147 2009-01-23 Pedro Alves <pedro@codesourcery.com>
148
149 PR gdb/9664:
150 * infrun.c (normal_stop): Tag threads as stopped, and run the
151 hook-stop before printing the stack frame.
152
153 2009-01-22 Pedro Alves <pedro@codesourcery.com>
154
155 PR c++/9631:
156 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
157 vbasetype.
158
159 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
160
161 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
162 unsigned long.
163
164 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
165
166 PR gdb/9346
167 * infcmd.c (signal_command): Do not specify a resume PC.
168
169 2009-01-19 Doug Evans <dje@google.com>
170
171 * dummy-frame.c (dummy_frame): Replace regcache member with
172 caller_state.
173 (dummy_frame_push): Replace caller_regcache arg with caller_state.
174 All callers updated.
175 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
176 (dummy_frame_pop): Rewrite. Verify requested frame is in the
177 dummy frame stack. Restore program state.
178 (cleanup_dummy_frames): Rewrite.
179 (dummy_frame_sniffer): Update. Make static.
180 * dummy-frame.h (regcache,frame_info): Delete forward decls.
181 (inferior_thread_state): New forward decl.
182 (dummy_frame_push): Update prototype.
183 * frame.c (frame_pop): dummy_frame_pop now does all the work for
184 DUMMY_FRAMEs.
185 * infcall.c (breakpoint_auto_delete_contents): Delete.
186 (get_function_name,run_inferior_call): New fns.
187 (call_function_by_hand): Simplify by moving some code to
188 get_function_name, run_inferior_call. Inferior function call wrapped
189 in TRY_CATCH so there's less need for cleanups and all exits from
190 proceed are handled similarily. Detect program exit.
191 Detect program stopping in a different thread.
192 Make error messages more consistent.
193 * inferior.h (inferior_thread_state): Declare (opaque type).
194 (save_inferior_thread_state,restore_inferior_thread_state,
195 make_cleanup_restore_inferior_thread_state,
196 discard_inferior_thread_state, get_inferior_thread_state_regcache):
197 Declare.
198 (save_inferior_status): Update prototype.
199 * infrun.c: (normal_stop): When stopped for the completion of an
200 inferior function call, verify the expected stack frame kind.
201 (inferior_thread_state): New struct.
202 (save_inferior_thread_state,restore_inferior_thread_state,
203 do_restore_inferior_thread_state_cleanup,
204 make_cleanup_restore_inferior_thread_state,
205 discard_inferior_thread_state,
206 get_inferior_thread_state_regcache): New functions.
207 (inferior_status): Move stop_signal, stop_pc, registers to
208 inferior_thread_state. Remove restore_stack_info.
209 (save_inferior_status): Remove arg restore_stack_info.
210 All callers updated. Remove saving of state now saved by
211 save_inferior_thread_state.
212 (restore_inferior_status): Remove restoration of state now done by
213 restore_inferior_thread_state.
214 (discard_inferior_status): Remove freeing of registers, now done by
215 discard_inferior_thread_state.
216
217 2009-01-18 Pedro Alves <pedro@codesourcery.com>
218
219 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
220 at a time, times NUM_TO_SCROLL.
221 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
222 fetch the selected frame if there is no stack.
223
224 2009-01-18 Pedro Alves <pedro@codesourcery.com>
225
226 PR gdb/9747:
227 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
228 Declare.
229 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
230 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
231 is thrown while handling an event, finish the thread state.
232 (normal_stop): Use finish_thread_state cleanup.
233 * infcmd.c (run_command_1): If an error is thrown while starting
234 the inferior, finish the thread state.
235
236 2009-01-18 Pedro Alves <pedro@codesourcery.com>
237
238 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
239 skip breakpoints without a location (pending breakpoints).
240
241 2009-01-18 Pedro Alves <pedro@codesourcery.com>
242
243 PR build/9186:
244 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
245
246 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
247
248 * thread.c (thread_command): Move call to annotate_thread_changed
249 to...
250 (do_captured_thread_select): ... here, to avoid printing an
251 annotation if the thread change generates an exception.
252
253 2009-01-16 Joel Brobecker <brobecker@adacore.com>
254
255 * NEWS: Document x86_64/MinGW as a new native configuration.
256
257 2009-01-16 Joel Brobecker <brobecker@adacore.com>
258
259 * NEWS: Move the documentation of "info os processes" to
260 the appropriate section (documenting the new commands).
261
262 2009-01-15 Doug Evans <dje@google.com>
263
264 * target.h (target_signal_to_string): Make return type const char *.
265 (target_signal_to_name): Ditto.
266 (target_signal_from_name): Make arg const char *.
267 * infrun.c (sig_print_info): Update.
268 * signals/signals.c (signals): Make array and struct members const.
269 (target_signal_to_string): Make return type const char *.
270 (target_signal_to_name): Ditto.
271 (target_signal_from_name): Make arg const char *.
272
273 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
274 Tristan Gingold <gingold@adacore.com>
275
276 * solist.h (struct target_so_ops): New member bfd_open.
277 (solib_find): Add prototype.
278 (solib_bfd_fopen): Add prototype.
279 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
280 from solib_bfd_open.
281 (solib_bfd_open): Use ops->bfd_open override if present. Call
282 solib_find and solib_bfd_open otherwise.
283
284 * objfiles.h (OBJF_KEEPBFD): New define.
285 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
286 objfile flag is set.
287 * solib.c (symbol_add_stub): Do not allocate second BFD for
288 shared library; use OBJF_KEEPBFD flag on solib objfile.
289
290 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
291
292 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
293
294 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
295
296 * value.h (address_of_variable): Add prototype.
297 (locate_var_value): Remove prototype.
298
299 * findvar.c (read_var_value): Do not attempt to default frame
300 to selected frame.
301 (locate_var_value): Remove function.
302 * valops.c (value_of_variable): Retrieve selected frame for
303 symbols that require a frame when called with NULL block.
304 * valops.c (address_of_variable): New function.
305
306 * eval.c (evaluate_subexp_for_address): Call address_of_variable
307 instead of calling locate_var_value.
308 (evaluate_subexp_with_coercion): Likewise.
309
310 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
311
312 * NEWS: Document "define" for prefixed commands.
313 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
314 show_user_1 for prefix commands.
315 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
316 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
317 commands. Return the containing command list.
318 (define_command, document_command): Update to handle prefix commands.
319 (show_user_1): Add prefix and name arguments. Handle prefix
320 commands.
321 * cli/cli-script.h (show_user_1): Update prototype.
322
323 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
324
325 * mingw-ser.c (console_select_thread): Add return to make
326 compiler happy.
327 (pipe_select_thread): Likewise.
328 (file_select_thread): Likewise.
329
330 2009-01-14 Pedro Alves <pedro@codesourcery.com>
331
332 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
333 previous change.
334
335 2009-01-14 Pedro Alves <pedro@codesourcery.com>
336
337 * remote.c (extended_remote_mourn_1): Invalidate our notion of
338 current general thread.
339
340 2009-01-14 Pedro Alves <pedro@codesourcery.com>
341
342 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
343 without a live selected thread.
344
345 2009-01-14 Joel Brobecker <brobecker@adacore.com>
346
347 Update the copyright notice of some of the files I missed
348 in the previous copyright update.
349
350 2009-01-14 Joel Brobecker <brobecker@adacore.com>
351
352 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
353 base address instead of casting it to DWORD.
354
355 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
356
357 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
358 for NULL frame pointers.
359
360 2009-01-13 Mark Kettenis <kettenis@gnu.org>
361
362 * utils.c (host_address_to_string): Reimplement in a way that
363 avoids the cast of the address to long.
364
365 2009-01-13 Joel Brobecker <brobecker@adacore.com>
366
367 * mdebugread.c (parse_symbol): Save the symbol private data
368 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
369 (psymtab_to_symtab_1): Likewise.
370 (parse_procedure): Declare variable "e" only in the scope
371 where it is used. Extract the symbol private data using
372 SYMBOL_VALUE_BYTES.
373
374 2009-01-13 Jim Blandy <jimb@codesourcery.com>
375
376 Abstract out common code for copying value locations.
377
378 * value.h (set_value_component_location): New declaration.
379 * value.c (set_value_component_location): New function.
380 (value_primitive_field): Use it.
381 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
382 * valops.c (search_struct_field, value_slice): Same.
383 * ada-lang.c (coerce_unspec_val_to_type)
384 (ada_value_primitive_packed_val): Same.
385
386 2009-01-13 Joel Brobecker <brobecker@adacore.com>
387
388 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
389
390 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
391
392 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
393 throughout.
394 * i386-cygwin-tdep.c: Ditto.
395 * i386-windows-nat.c: Ditto.
396 * windows-nat.h: Ditto.
397 * windows-tdep.c: Ditto.
398 * windows-tdep.h: Ditto.
399 * windows-nat.c: Ditto.
400 (cygwin_load_start): Redefine as CORE_ADDR.
401 (cygwin_load_end): Ditto.
402 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
403 before coercing to CORE_ADDR to avoid a compiler warning.
404 (handle_exception): Define addr as CORE_ADDR and coerce
405 ExceptionAddress to uintptr_t before assigining to avoid a compiler
406 warning.
407 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
408 files.
409
410 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 Fix linking with --enable-targets=all:
413 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
414 (HFILES_NO_SRCDIR): Add windows-tdep.h.
415 (ALLDEPFILES): Add windows-tdep.c.
416
417 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
418
419 * win32-nat.h: Delete.
420 * windows-nat.h: Rename from win32-nat.h.
421 * win32-nat.c: Delete.
422 * windows-nat.c: Rename from win32-nat.c.
423 * win32-termcap.c: Delete.
424 * windows-termcap.c: Rename from win32-termcap.c.
425 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
426 * configure.ac: Handle rename from win32-termcap.c ->
427 windows-termcap.c.
428 * configure: Regenerate.
429 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
430 -> windows-termcap.c.
431 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
432 windows-tdep.h.
433 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
434 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
435 windows-tdep.h.
436 (win32_make_so): Handle cygwin compiler warning due to change of
437 load_addr from DWORD to LPVOID.
438 (handle_load_dll): Use %p in format string to properly print address
439 and avoid a compiler warning.
440 (DEBUG_EXCEPTION_SIMPLE): Ditto.
441 (handle_exception): Ditto.
442 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
443 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
444 windows-nat.o.
445 * config/i386/mingw.mh: Ditto.
446 * config/i386/mingw64.mh: Ditto.
447
448 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
451 arrayprint_recurse_level to a parameter. Update all the callers. New
452 comment at autovariables.
453
454 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
457 coding style.
458
459 2009-01-11 Joel Brobecker <brobecker@adacore.com>
460
461 * target.c (target_xfer_partial): Use host_address_to_string to
462 print the address of readbuf and writebuf. Cast the address of
463 elements inside the myaddr buffer into intptr_t.
464 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
465 Cast the address of elements inside the myaddr buffer into
466 intptr_t.
467
468 2009-01-11 Joel Brobecker <brobecker@adacore.com>
469
470 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
471 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
472 * configure.host, configure.tgt: Add handling for x86_64/windows.
473 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
474 and amd64-windows-tdep.c.
475
476 2009-01-11 Joel Brobecker <brobecker@adacore.com>
477
478 * win32-tdep.h, win32-tdep.c: New files.
479 * i386-cygwin-tdep.h: Delete.
480 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
481 i386-cygwin-tdep.h.
482 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
483 * win32-nat.c: Likewise.
484 * configure.tgt: Add win32-tdep.o to the list of target object
485 files for i386-cygwin and i386-mingw targets.
486
487 2009-01-11 Joel Brobecker <brobecker@adacore.com>
488
489 * win32-nat.h: New file.
490 * win32-nat.c (mappings): Initialize to NULL.
491 (win32_set_context_register_offsets): New function.
492 * i386-windows-nat.c: New file.
493 (mappings): Moved here from win32-nat.c.
494 (_initialize_i386_windows_nat): New function.
495 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
496 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
497
498 2009-01-09 Andreas Schwab <schwab@suse.de>
499
500 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
501
502 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
503
504 * gdbtypes.c (append_composite_type_field): Correct the location of
505 appended fields.
506
507 2009-01-09 Pedro Alves <pedro@codesourcery.com>
508
509 * defs.h (deprecated_error_hook): Delete declaration.
510 * interps.c (clear_interpreter_hooks): Adjust.
511 * remote-sim.c (gdb_os_error): Don't try to call
512 deprecated_error_hook. No need to call exit anymore.
513 * top.c (deprecated_error_hook): Delete.
514
515 2009-01-09 Joel Brobecker <brobecker@adacore.com>
516
517 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
518 to print the address of the gdbarch pointer.
519
520 2009-01-09 Joel Brobecker <brobecker@adacore.com>
521
522 * gdbarch.sh: Fix all the compilation errors on amd64-windows
523 due to casting a pointer to a long when printing a function
524 address. Instead, use host_address_to_string to convert our
525 address to a string.
526 * gdbarch.c: Regenerate.
527
528 2009-01-09 Joel Brobecker <brobecker@adacore.com>
529
530 * event-top.c (async_disconnect, async_stop_sig): use "raise"
531 instead of "kill" to raise a signal.
532
533 2009-01-09 Joel Brobecker <brobecker@adacore.com>
534
535 * win32-nat.c (get_module_name): Change the type of parameter
536 "base_address" to LPVOID. Remove unnecessary cast.
537 (struct lm_info): Change type of load_addr to LPVOID.
538 (win32_make_so): Change the type of parameter "load_addr"
539 to LPVOID. Remove some unnecessary casts.
540 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
541 (win32_xfer_shared_libraries): Add missing cast.
542
543 2009-01-09 Joel Brobecker <brobecker@adacore.com>
544
545 * win32-nat.c (has_detach_ability, set_process_privilege):
546 Cast the result of GetProcAddress to (void *) to avoid
547 a compilation warning.
548
549 2009-01-09 Joel Brobecker <brobecker@adacore.com>
550
551 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
552 already defined.
553
554 2009-01-09 Joel Brobecker <brobecker@adacore.com>
555
556 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
557 definition of local variable "done".
558 (info_w32_command, handle_exception): Remove unnecessary cast.
559
560 2009-01-09 Joel Brobecker <brobecker@adacore.com>
561
562 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
563 DebugSetProcessKillOnExit. Update all uses in this file.
564 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
565 Update all uses in this file.
566
567 2009-01-09 Joel Brobecker <brobecker@adacore.com>
568
569 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
570 and use it when pushing the target.
571 (win32_attach, win32_create_inferior): Update call to
572 do_initial_win32_stuff.
573 (win32_detach, win32_mourn_inferior): Use our ops parameter
574 instead of the global win32_ops to unpush the target.
575
576 2009-01-09 Joel Brobecker <brobecker@adacore.com>
577
578 * ser-mingw.c (ser_windows_open): Use proper type when casting
579 in call to _open_osfhandle.
580
581 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
582
583 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
584
585 2009-01-09 Joel Brobecker <brobecker@adacore.com>
586
587 * CONTRIBUTE: Minor reformatting.
588
589 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
590
591 * MAINTAINERS: Add myself to Write After Approval.
592 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
593 export directory.
594
595 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
596
597 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
598 Call exit to make it obvious to GCC.
599
600 2009-01-08 Tom Tromey <tromey@redhat.com>
601
602 PR breakpoints/9350:
603 * varobj.c (varobj_invalidate): Unconditionally free
604 all_rootvarobj.
605 * symfile.c (syms_from_objfile): Free local_addr when returning
606 normally.
607 * exec.c (exec_file_attach): Do cleanups before returning.
608 (exec_file_command): Likewise.
609 * corefile.c (reopen_exec_file): Do cleanups before returning.
610 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
611 returning.
612 (do_vec_free): New function.
613 (update_global_location_list): Make a cleanup for old_locations.
614 Do cleanups before returning. Remove unused variable 'e'.
615 (find_condition_and_thread): Free result of parsing the
616 expression.
617 (print_it_typical): Do cleanups before returning.
618 (breakpoint_re_set_one): Always free sals.sals.
619
620 2009-01-08 Joel Brobecker <brobecker@adacore.com>
621 Emi Suzuki <emi-suzuki@tjsys.co.jp>
622
623 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
624 watchpoints.
625
626 2009-01-07 Doug Evans <dje@google.com>
627
628 * top.c (gdb_prompt_string): Delete, unused.
629
630 2009-01-07 Pedro Alves <pedro@codesourcery.com>
631
632 Delete ONE_PROCESS_WRITETEXT leftovers.
633
634 * breakpoint.c (insert_bp_location): Delete process_warning
635 argument. Adjust.
636 (insert_breakpoint_locations): Adjust.
637 (reattach_breakpoints): Adjust.
638 * infrun.c (normal_stop): Drop "It might be running in another
639 process" notice.
640
641 2009-01-07 Stan Shebs <stan@codesourcery.com>
642
643 * config/pa/linux.mh (XDEPFILES): Remove.
644
645 2009-01-07 Doug Evans <dje@google.com>
646
647 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
648
649 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
652 spacing, a regression from 2008-04-22.
653
654 2009-01-07 Joel Brobecker <brobecker@adacore.com>
655
656 * utils.c (gdb_print_host_address): Adjust implementation to
657 reuse host_address_to_string. Move comment explaining the conversion
658 from host address to string from here...
659 (host_address_to_string): ... to there.
660
661 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
662
663 * MAINTAINERS: Add myself for write after approval privileges.
664
665 2009-01-06 Tom Tromey <tromey@redhat.com>
666
667 * value.c (set_internalvar): Use value_free, not xfree.
668
669 2009-01-06 Jim Blandy <jimb@red-bean.com>
670
671 Check return values of functions declared with warn_unused_result
672 attribute in GLIBC 2.8.
673 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
674 * inflow.c (check_syscall): New function.
675 (new_tty): Use check_syscall to check return values from open and dup.
676 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
677 * main.c (captured_main): Call cwd after setting up gdb_stderr;
678 check for errors from getcwd.
679 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
680 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
681 (stdio_file_fputs): Same.
682 * utils.c (internal_vproblem): abort if last-ditch error message
683 write fails.
684
685 * top.c (gdb_init): Don't set the current directory here; that's
686 already been done in captured_main.
687
688 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
689
690 * ser-tcp.c: Adjust includes.
691 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
692 (tcp_auto_retry, tcp_retry_limit): Declare.
693 (TIMEOUT): Remove, in favor of tcp_retry_limit.
694 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
695 (wait_for_connect): New function.
696 (net_open): Use it. Add auto-retry logic.
697 (set_tcp_cmd, show_tcp_cmd): New functions.
698 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
699 and "set/show tcp connect-timeout" commands.
700 * NEWS: Document new commands.
701
702 2009-01-05 Tom Tromey <tromey@redhat.com>
703
704 * python/python-internal.h (Py_ssize_t): Define as int.
705
706 2009-01-05 Jim Blandy <jimb@red-bean.com>
707
708 * MAINTAINERS: Fix my e-mail address as steering committee member.
709
710 2009-01-03 Joel Brobecker <brobecker@adacore.com>
711
712 Updated copyright notices for most files.
713
714 2009-01-03 Joel Brobecker <brobecker@adacore.com>
715
716 * top.c (print_gdb_version): Update copyright year.
717
718 2009-01-03 Joel Brobecker <brobecker@adacore.com>
719
720 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
721
722 2009-01-01 Pedro Alves <pedro@codesourcery.com>
723
724 PR breakpoints/9681:
725 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
726 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
727 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
728 retrow all other exceptions.
729
730 For older changes see ChangeLog-2008.
731 \f
732 Local Variables:
733 mode: change-log
734 left-margin: 8
735 fill-column: 74
736 version-control: never
737 coding: utf-8
738 End:
This page took 0.045748 seconds and 5 git commands to generate.