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