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