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