1 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3 * linux-nat.c (linux_nat_wait): Adjust.
4 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
5 * linux-nat.h (thread_db_init): Delete declaration.
6 * linux-thread-db.c (target_beneath): Delete.
7 (thread_db_init): Delete.
8 (thread_db_detach): Use find_target_beneath.
9 (thread_db_wait): Adjust interface. Use find_target_beneath.
10 (thread_db_mourn_inferior): Use find_target_beneath.
11 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
12 (thread_db_async_mask): Delete.
13 (thread_db_pid_to_str): Adjust interface. Use
15 (thread_db_get_thread_local_address): Adjust interface. Use
17 (init_thread_db_ops): Delete references to delete functions.
18 * target.c (update_current_target): Don't inherit or default
19 to_wait. Don't inherit to_pid_to_str and
20 to_get_thread_local_address.
21 (target_translate_tls_address): Look for a pushed target that
22 implements to_get_thread_local_address, and use it instead of
23 checking for target_get_thread_local_address_p.
24 (target_wait, target_pid_to_str): Reimplement as functions.
25 (dummy_pid_to_str): New.
26 (init_dummy_target): Register it.
27 (debug_to_wait): Delete.
28 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
29 to_get_thread_local_address accept a pointer to struct target_ops.
30 (target_wait): Delete macro, and declare as function.
31 (target_pid_to_str): Likewise.
32 (target_get_thread_local_address)
33 (target_get_thread_local_address_p): Delete.
34 (noprocess): Add NORETURN and ATTR_NORETURN tags.
35 * inf-ptrace.c (inf_ptrace_wait): Adjust.
36 (inf_ptrace_pid_to_str): New.
37 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
38 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
39 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
40 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
42 * corelow.c (core_pid_to_str): Adjust.
43 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
44 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
45 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
46 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
47 * hpux-thread.c (hpux_thread_wait): Adjust.
48 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
49 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
50 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
51 * procfs.c (procfs_pid_to_str): Adjust.
52 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
53 * remote-mips.c (mips_wait): Adjust.
54 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
55 * remote.c (remote_wait, remote_pid_to_str)
56 (remote_get_thread_local_address): Adjust.
57 * rs6000-nat.c (rs6000_wait): Adjust.
58 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
59 (sol_thread_wait, solaris_pid_to_str): Adjust.
60 * spu-linux-nat.c (spu_child_wait): Adjust.
61 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
63 2009-02-06 Tom Tromey <tromey@redhat.com>
65 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
66 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
67 (python-cmd.o): New target.
68 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
70 (add_cmd): Initialize destroyer member of cmd_list_element. Use
71 make_symbol_completion_list_fn as completer.
72 (delete_cmd): Call destroyer if one is set.
73 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
74 completer member. Add destroyer member.
75 (set_cmd_completer): Add self parameter to
77 * command.h (set_cmd_completer): Add cmd parameter to
79 * completer.c (noop_completer, filename_completer,
80 location_completer, expression_completer, command_completer): Adapt
81 to new completer prototype.
82 (complete_line_internal): Pass new parameter to completer function.
83 * completer.h (noop_completer, filename_completer,
84 location_completer, expression_completer, command_completer): Adapt
85 prototypes to new completer prototype.
86 * interps.c (interpreter_completer): Adapt to new completer
88 * python/python-cmd.c: New file.
89 * python/python-internal.h (gdbpy_initialize_commands): Add
91 (gdbpy_doc_cst): Add forward declaration.
92 * python/python.c (gdbpy_doc_cst): Declare.
93 (_initialize_python): Call gdbpy_initialize_commands. Initialize
95 * symtab.c (make_symbol_completion_list_fn): New function.
96 * symtab.h (make_symbol_completion_list_fn): Add prototype.
98 2009-02-06 Pedro Alves <pedro@codesourcery.com>
100 * target.c (target_get_osdata): Check for equal or higher than
101 process_stratum, not dummy_stratum.
103 2009-02-06 Pedro Alves <pedro@codesourcery.com>
105 * remote.c (extended_remote_can_run): Delete.
106 (init_remote_ops): Don't register it.
107 * target.c (target_get_osdata): Don't check for target_can_run.
108 Instead any target that has already been pushed, otherwise
109 fallback to the default run target.
111 2009-02-06 Pedro Alves <pedro@codesourcery.com>
113 * target.c (target_create_inferior, target_detach)
114 (target_mourn_inferior, target_attach, target_close): Do target
116 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
117 (debug_to_mourn_inferior, debug_to_close): Delete.
118 (setup_target_debug): Adjust.
120 2009-02-05 Pedro Alves <pedro@codesourcery.com>
122 * target.h (target_stopped_data_address_p): Delete declaration,
123 and don't define as macro.
124 * target.c (target_stopped_data_address_p): Delete.
126 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
127 Tom Tromey <tromey@redhat.com>
129 * python/python-utils.c (target_string_to_unicode): New function.
130 * python/python-internal.h (target_string_to_unicode): New prototype.
131 * python/python-value.c (valpy_string): New function.
132 (value_object_methods): Add `string' entry.
134 2009-02-05 Pedro Alves <pedro@codesourcery.com>
136 * target.h (target_tid_to_str): Delete.
137 * thread.c (print_thread_info, thread_apply_all_command)
138 (thread_apply_command, thread_command, do_captured_thread_select):
139 Use target_pid_to_str instead of target_tid_to_str.
140 * linux-fork.c (delete_fork_command): Likewise.
142 2009-02-05 Pedro Alves <pedro@codesourcery.com>
144 * frame.c (has_stack_frames): Make public.
145 (get_prev_frame): Don't allow a NULL this_frame anymore.
146 * frame.h (has_stack_frames): Declare.
147 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
148 to get_prev_frame, instead start at get_current_frame.
149 (varobj_create): Check has_stack_frames before getting any frame;
150 eliminate one usage of deprecated_safe_get_selected_frame.
152 2009-02-05 Tom Tromey <tromey@redhat.com>
153 Thiago Jung Bauermann <bauerman@br.ibm.com>
155 * python/python.c (GdbMethods): Move to bottom of file.
156 (get_parameter, execute_gdb_command, gdbpy_write,
157 gdbpy_flush): Remove forward declarations.
158 (eval_python_from_control_command): Fix error checking of function
159 PyRun_SimpleString. Fix error string.
160 (python_command): Likewise.
161 (execute_gdb_command): Added from_tty argument.
163 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
165 * language.h (language_dfn): Add la_get_string member.
166 (LA_GET_STRING): New macro.
167 (default_get_string): New prototype.
168 * language.c (default_get_string): New function.
169 (unknown_language_defn, auto_language_defn, local_language_defn): Use
170 default_get_string for la_get_string.
171 * c-lang.c (c_get_string): New function.
172 (c_language_defn, cplus_language_defn, asm_language_defn): Use
173 c_get_string for la_get_string.
174 (minimal_language_defn): Likewise
175 * ada-lang.c (ada_language_defn): Likewise.
176 * f-lang.c (f_language_defn): Use default_get_string for
178 * jv-lang.c (java_language_defn): Likewise.
179 * m2-lang.c (m2_language_defn): Likewise.
180 * objc-lang.c (objc_language_defn): Likewise.
181 * p-lang.c (p_language_defn): Likewise.
182 * scm-lang.c (scm_language_defn): Likewise.
183 * typeprint.c (type_to_string): New function.
184 * value.h (type_to_string): New prototype.
185 * valprint.c (val_print_string): Factor out code for reading string
186 from the inferior into its own function. Put 2 spaces after period
188 (read_string): New function.
189 * valprint.h (read_string): New prototype.
191 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
192 Tom Tromey <tromey@redhat.com>
195 * breakpoint.c (print_one_breakpoint): Use exp_string field
196 to display expression of watchpoints.
198 (watch_command_1): Remove trailing whitespace from expression.
199 * printcmd.c (struct display) <exp_string>: New field.
200 (display_command): Set exp_string.
201 (free_display): Free exp_string.
202 (clear_displays): Use free_display.
203 (do_one_display): Print exp_string.
204 (display_info): Likewise.
206 2009-02-04 Tom Tromey <tromey@redhat.com>
207 Thiago Jung Bauermann <bauerman@br.ibm.com>
208 Phil Muldoon <pmuldoon@redhat.com>
210 * python/python-internal.h (gdbpy_get_value_from_history): Rename
211 prototype to gdbpy_history.
212 (gdbpy_is_string): Declare.
213 (python_string_to_host_string): Declare.
214 * python/python-utils.c (gdbpy_is_string): New function.
215 (unicode_to_encoded_string): New function.
216 (unicode_to_target_string): Use it.
217 (python_string_to_host_string): New function.
218 * python/python-value.c (valpy_address): New function.
219 (convert_value_from_python): Use gdbpy_is_string. Change to throw
220 Python exception instead of a GDB exception on error. Properly check
222 (valpy_getitem): Convert field name to host string. Handle array
223 accesses. Adapt to new behaviour of convert_value_from_python.
224 (valpy_new): Adapt to new behaviour of convert_value_from_python.
225 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
226 VALPY_BITXOR, VALPY_BITOR>: New constants.
227 (valpy_binop): Update. Adapt to new behaviour of
228 convert_value_from_python.
229 (valpy_invert): New function.
230 (valpy_lsh): Likewise.
231 (valpy_rsh): Likewise.
232 (valpy_and): Likewise.
233 (valpy_or): Likewise.
234 (valpy_xor): Likewise.
235 (valpy_richcompare): Call convert_value_from_python instead of doing
237 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
238 (gdbpy_get_value_from_history): Rename
239 function to gdbpy_history.
240 (gdbpy_initialize_values): Don't set tp_new.
241 (value_object_type): Add valpy_new.
242 (value_object_methods): Add `address' entry.
243 (value_object_as_number): Update for new methods.
244 * python/python.c (GdbMethods): Rename entry from
245 `get_value_from_history' to `history'.
247 2009-02-04 Jerome Guitton <guitton@adacore.com>
249 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
250 of type to guard against a crash.
252 2009-02-04 Jerome Guitton <guitton@adacore.com>
254 * value.c (value_from_contents_and_address): Always return
255 a lval_memory value, even if address is null.
257 2009-02-04 Tristan Gingold <gingold@adacore.com>
259 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
260 (amd64_darwin_sigcontext_addr): Ditto.
261 (darwin_dwarf_signal_frame_p): Ditto.
262 (i386_darwin_init_abi): Handle signal frames, use the const for
264 (x86_darwin_init_abi_64): Ditto.
266 2009-02-04 Tristan Gingold <gingold@adacore.com>
268 * i386-tdep.c (i386_sigtramp_p): Make it public.
269 * i386-tdep.h (i386_sigtramp_p): Declare.
271 2009-02-04 Tristan Gingold <gingold@adacore.com>
273 * machoread.c (macho_symfile_read): Read minsymtab also from
275 (macho_symfile_read): Try to read dwarf2 frame info from main
276 object file, but not from OSO files.
277 (macho_symfile_offsets): Update section names for latest BFD
279 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
280 (x86_darwin_init_abi_64): Ditto.
281 * solib-darwin.c: New file.
282 * solib-darwin.h: New file.
283 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
285 2009-02-04 Tristan Gingold <gingold@adacore.com>
287 * solist.h (struct target_so_ops): Comment fallback behavior for
290 2009-02-03 Tom Tromey <tromey@redhat.com>
292 * completer.c (add_struct_fields): Check type_name against NULL
295 2009-02-03 Joel Brobecker <brobecker@adacore.com>
297 * MAINTAINERS: Update Elena's email address.
299 2009-02-02 Joel Brobecker <brobecker@adacore.com>
301 * breakpoint (update_watchpoint): Minor comment adjustment.
303 2009-02-02 Tom Tromey <tromey@redhat.com>
306 * completer.c (count_struct_fields): Count method names.
307 (add_struct_fields): Add matching method names.
309 2009-02-02 Doug Evans <dje@google.com>
311 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
312 doing any further tcl/tk configury. Don't configure gdbtk if
313 tcl or tk check fails.
314 * aclocal.m4: Regenerate.
315 * configure: Regenerate.
317 2009-02-02 Tom Tromey <tromey@redhat.com>
320 * valops.c (find_overload_match): Follow typedefs before taking
321 address of object argument.
323 2009-02-01 Doug Evans <dje@google.com>
325 * target.h (target_waitstatus_to_string): Declare.
326 * target.c (target_waitstatus_to_string): New function. Copied from
327 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
328 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
329 TARGET_WAITKIND_NO_HISTORY.
330 (debug_to_wait): Call it.
331 * infrun.c (wait_for_inferior): If debug_infrun, print result of
333 (fetch_inferior_event): Ditto.
335 2009-01-30 Tom Tromey <tromey@redhat.com>
337 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
339 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
342 * thread.c (do_captured_list_thread_ids): Report the current
345 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
347 * breakpoint.c (create_breakpoint, create_breakpoints)
348 (break_command_really, set_breakpoint): New parameter enabled.
349 (create_breakpoint, break_command_really): Make breakpoint
350 disabled if so requested.
351 * breakpoint.h (set_breakpoint): New parameter enabled.
352 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
354 2009-01-28 Doug Evans <dje@google.com>
356 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
357 (amd64_displaced_step_fixup): Declare.
358 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
359 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
360 and make static global.
361 (amd64_arch_regmap_len): New static global.
362 (amd64_arch_reg_to_regnum): New function.
363 (struct amd64_insn): New struct.
364 (struct displaced_step_closure): New struct.
365 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
366 (rex_prefix_p,skip_prefixes)
367 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
368 (amd64_insn_length,amd64_get_unused_input_int_reg)
369 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
370 (amd64_displaced_step_copy_insn)
371 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
372 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
373 (amd64_displaced_step_fixup): New functions.
374 * amd64-linux-tdep.c: #include arch-utils.h.
375 (amd64_linux_init_abi): Install displaced stepping support.
377 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
378 Jerome Guitton <guitton@adacore.com>
380 * configure, config.in: Regenerated.
381 * configure.ac: Add --with-system-gdbinit.
382 * main.c (get_init_files): New.
383 (captured_main): Use get_init_files. Load system gdbinit before
385 (print_gdb_help): Print location of init files.
387 2009-01-28 Pedro Alves <pedro@codesourcery.com>
389 * corefile.c (generic_search): Delete disabled code.
390 * gdbcore.h (generic_search): Delete declaration.
392 2009-01-26 Pedro Alves <pedro@codesourcery.com>
394 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
396 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
397 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
398 remove_breakpoints to remove breakpoints from the parent.
400 2009-01-26 Pedro Alves <pedro@codesourcery.com>
402 PR backtrace/9458, PR backtrace/8864:
403 * frame.c (create_new_frame): Update the frame's cached PC before
404 finding its unwinder. Use frame_id_build to build the new frame's
406 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
407 array values from the ``args'' array values.
409 2009-01-26 Pedro Alves <pedro@codesourcery.com>
411 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
412 (create_array_type, create_set_type, init_flags_type)
413 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
414 with a call to XZALLOC or XCALLOC, and pairs of calls to
415 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
417 2009-01-26 Pedro Alves <pedro@codesourcery.com>
419 Add "maint set|show internal-error|internal-warning quit|corefile
420 ask|yes|no" commands.
423 * utils.c (internal_problem_ask, internal_problem_yes)
424 (internal_problem_no, internal_problem_modes): New.
425 (struct internal_problem): Remove FIXME. Make should_quit and
426 should_dump_core types to char *.
427 (internal_vproblem, internal_error_problem)
428 (internal_warning_problem): Adjust.
429 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
431 (add_internal_problem_command): New.
432 (_initialize_utils): New.
434 2009-01-25 Pedro Alves <pedro@codesourcery.com>
436 * infcmd.c (program_info): Use paddress instead of casting stop_pc
439 2009-01-24 Pedro Alves <pedro@codesourcery.com>
441 * infrun.c (normal_stop): Don't call
442 deprecated_update_frame_pc_hack.
443 * frame.c (deprecated_update_frame_pc_hack)
444 (deprecated_update_frame_base_hack): Delete, and ...
445 (create_new_frame): ... inline here.
446 * frame.h (deprecated_update_frame_pc_hack)
447 (deprecated_update_frame_base_hack): Delete declarations.
449 2009-01-23 Pedro Alves <pedro@codesourcery.com>
451 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
452 * cli/cli-setshow.c (do_setshow_command): Handle it.
453 * command.h (enum var_types): Add var_zuinteger.
454 (add_setshow_zuinteger_cmd): Declare.
456 * valprint.c (_initialize_valprint): Change the set input-radix
457 and set output-radix commands to zuinteger type.
459 2009-01-23 Pedro Alves <pedro@codesourcery.com>
462 * infrun.c (normal_stop): Tag threads as stopped, and run the
463 hook-stop before printing the stack frame.
465 2009-01-22 Pedro Alves <pedro@codesourcery.com>
468 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
471 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
473 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
476 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
479 * infcmd.c (signal_command): Do not specify a resume PC.
481 2009-01-19 Doug Evans <dje@google.com>
483 * dummy-frame.c (dummy_frame): Replace regcache member with
485 (dummy_frame_push): Replace caller_regcache arg with caller_state.
487 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
488 (dummy_frame_pop): Rewrite. Verify requested frame is in the
489 dummy frame stack. Restore program state.
490 (cleanup_dummy_frames): Rewrite.
491 (dummy_frame_sniffer): Update. Make static.
492 * dummy-frame.h (regcache,frame_info): Delete forward decls.
493 (inferior_thread_state): New forward decl.
494 (dummy_frame_push): Update prototype.
495 * frame.c (frame_pop): dummy_frame_pop now does all the work for
497 * infcall.c (breakpoint_auto_delete_contents): Delete.
498 (get_function_name,run_inferior_call): New fns.
499 (call_function_by_hand): Simplify by moving some code to
500 get_function_name, run_inferior_call. Inferior function call wrapped
501 in TRY_CATCH so there's less need for cleanups and all exits from
502 proceed are handled similarily. Detect program exit.
503 Detect program stopping in a different thread.
504 Make error messages more consistent.
505 * inferior.h (inferior_thread_state): Declare (opaque type).
506 (save_inferior_thread_state,restore_inferior_thread_state,
507 make_cleanup_restore_inferior_thread_state,
508 discard_inferior_thread_state, get_inferior_thread_state_regcache):
510 (save_inferior_status): Update prototype.
511 * infrun.c: (normal_stop): When stopped for the completion of an
512 inferior function call, verify the expected stack frame kind.
513 (inferior_thread_state): New struct.
514 (save_inferior_thread_state,restore_inferior_thread_state,
515 do_restore_inferior_thread_state_cleanup,
516 make_cleanup_restore_inferior_thread_state,
517 discard_inferior_thread_state,
518 get_inferior_thread_state_regcache): New functions.
519 (inferior_status): Move stop_signal, stop_pc, registers to
520 inferior_thread_state. Remove restore_stack_info.
521 (save_inferior_status): Remove arg restore_stack_info.
522 All callers updated. Remove saving of state now saved by
523 save_inferior_thread_state.
524 (restore_inferior_status): Remove restoration of state now done by
525 restore_inferior_thread_state.
526 (discard_inferior_status): Remove freeing of registers, now done by
527 discard_inferior_thread_state.
529 2009-01-18 Pedro Alves <pedro@codesourcery.com>
531 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
532 at a time, times NUM_TO_SCROLL.
533 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
534 fetch the selected frame if there is no stack.
536 2009-01-18 Pedro Alves <pedro@codesourcery.com>
539 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
541 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
542 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
543 is thrown while handling an event, finish the thread state.
544 (normal_stop): Use finish_thread_state cleanup.
545 * infcmd.c (run_command_1): If an error is thrown while starting
546 the inferior, finish the thread state.
548 2009-01-18 Pedro Alves <pedro@codesourcery.com>
550 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
551 skip breakpoints without a location (pending breakpoints).
553 2009-01-18 Pedro Alves <pedro@codesourcery.com>
556 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
558 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
560 * thread.c (thread_command): Move call to annotate_thread_changed
562 (do_captured_thread_select): ... here, to avoid printing an
563 annotation if the thread change generates an exception.
565 2009-01-16 Joel Brobecker <brobecker@adacore.com>
567 * NEWS: Document x86_64/MinGW as a new native configuration.
569 2009-01-16 Joel Brobecker <brobecker@adacore.com>
571 * NEWS: Move the documentation of "info os processes" to
572 the appropriate section (documenting the new commands).
574 2009-01-15 Doug Evans <dje@google.com>
576 * target.h (target_signal_to_string): Make return type const char *.
577 (target_signal_to_name): Ditto.
578 (target_signal_from_name): Make arg const char *.
579 * infrun.c (sig_print_info): Update.
580 * signals/signals.c (signals): Make array and struct members const.
581 (target_signal_to_string): Make return type const char *.
582 (target_signal_to_name): Ditto.
583 (target_signal_from_name): Make arg const char *.
585 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
586 Tristan Gingold <gingold@adacore.com>
588 * solist.h (struct target_so_ops): New member bfd_open.
589 (solib_find): Add prototype.
590 (solib_bfd_fopen): Add prototype.
591 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
593 (solib_bfd_open): Use ops->bfd_open override if present. Call
594 solib_find and solib_bfd_open otherwise.
596 * objfiles.h (OBJF_KEEPBFD): New define.
597 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
599 * solib.c (symbol_add_stub): Do not allocate second BFD for
600 shared library; use OBJF_KEEPBFD flag on solib objfile.
602 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
604 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
606 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
608 * value.h (address_of_variable): Add prototype.
609 (locate_var_value): Remove prototype.
611 * findvar.c (read_var_value): Do not attempt to default frame
613 (locate_var_value): Remove function.
614 * valops.c (value_of_variable): Retrieve selected frame for
615 symbols that require a frame when called with NULL block.
616 * valops.c (address_of_variable): New function.
618 * eval.c (evaluate_subexp_for_address): Call address_of_variable
619 instead of calling locate_var_value.
620 (evaluate_subexp_with_coercion): Likewise.
622 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
624 * NEWS: Document "define" for prefixed commands.
625 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
626 show_user_1 for prefix commands.
627 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
628 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
629 commands. Return the containing command list.
630 (define_command, document_command): Update to handle prefix commands.
631 (show_user_1): Add prefix and name arguments. Handle prefix
633 * cli/cli-script.h (show_user_1): Update prototype.
635 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
637 * mingw-ser.c (console_select_thread): Add return to make
639 (pipe_select_thread): Likewise.
640 (file_select_thread): Likewise.
642 2009-01-14 Pedro Alves <pedro@codesourcery.com>
644 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
647 2009-01-14 Pedro Alves <pedro@codesourcery.com>
649 * remote.c (extended_remote_mourn_1): Invalidate our notion of
650 current general thread.
652 2009-01-14 Pedro Alves <pedro@codesourcery.com>
654 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
655 without a live selected thread.
657 2009-01-14 Joel Brobecker <brobecker@adacore.com>
659 Update the copyright notice of some of the files I missed
660 in the previous copyright update.
662 2009-01-14 Joel Brobecker <brobecker@adacore.com>
664 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
665 base address instead of casting it to DWORD.
667 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
669 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
670 for NULL frame pointers.
672 2009-01-13 Mark Kettenis <kettenis@gnu.org>
674 * utils.c (host_address_to_string): Reimplement in a way that
675 avoids the cast of the address to long.
677 2009-01-13 Joel Brobecker <brobecker@adacore.com>
679 * mdebugread.c (parse_symbol): Save the symbol private data
680 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
681 (psymtab_to_symtab_1): Likewise.
682 (parse_procedure): Declare variable "e" only in the scope
683 where it is used. Extract the symbol private data using
686 2009-01-13 Jim Blandy <jimb@codesourcery.com>
688 Abstract out common code for copying value locations.
690 * value.h (set_value_component_location): New declaration.
691 * value.c (set_value_component_location): New function.
692 (value_primitive_field): Use it.
693 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
694 * valops.c (search_struct_field, value_slice): Same.
695 * ada-lang.c (coerce_unspec_val_to_type)
696 (ada_value_primitive_packed_val): Same.
698 2009-01-13 Joel Brobecker <brobecker@adacore.com>
700 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
702 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
704 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
706 * i386-cygwin-tdep.c: Ditto.
707 * i386-windows-nat.c: Ditto.
708 * windows-nat.h: Ditto.
709 * windows-tdep.c: Ditto.
710 * windows-tdep.h: Ditto.
711 * windows-nat.c: Ditto.
712 (cygwin_load_start): Redefine as CORE_ADDR.
713 (cygwin_load_end): Ditto.
714 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
715 before coercing to CORE_ADDR to avoid a compiler warning.
716 (handle_exception): Define addr as CORE_ADDR and coerce
717 ExceptionAddress to uintptr_t before assigining to avoid a compiler
719 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
722 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
724 Fix linking with --enable-targets=all:
725 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
726 (HFILES_NO_SRCDIR): Add windows-tdep.h.
727 (ALLDEPFILES): Add windows-tdep.c.
729 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
731 * win32-nat.h: Delete.
732 * windows-nat.h: Rename from win32-nat.h.
733 * win32-nat.c: Delete.
734 * windows-nat.c: Rename from win32-nat.c.
735 * win32-termcap.c: Delete.
736 * windows-termcap.c: Rename from win32-termcap.c.
737 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
738 * configure.ac: Handle rename from win32-termcap.c ->
740 * configure: Regenerate.
741 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
742 -> windows-termcap.c.
743 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
745 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
746 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
748 (win32_make_so): Handle cygwin compiler warning due to change of
749 load_addr from DWORD to LPVOID.
750 (handle_load_dll): Use %p in format string to properly print address
751 and avoid a compiler warning.
752 (DEBUG_EXCEPTION_SIMPLE): Ditto.
753 (handle_exception): Ditto.
754 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
755 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
757 * config/i386/mingw.mh: Ditto.
758 * config/i386/mingw64.mh: Ditto.
760 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
763 arrayprint_recurse_level to a parameter. Update all the callers. New
764 comment at autovariables.
766 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
768 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
771 2009-01-11 Joel Brobecker <brobecker@adacore.com>
773 * target.c (target_xfer_partial): Use host_address_to_string to
774 print the address of readbuf and writebuf. Cast the address of
775 elements inside the myaddr buffer into intptr_t.
776 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
777 Cast the address of elements inside the myaddr buffer into
780 2009-01-11 Joel Brobecker <brobecker@adacore.com>
782 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
783 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
784 * configure.host, configure.tgt: Add handling for x86_64/windows.
785 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
786 and amd64-windows-tdep.c.
788 2009-01-11 Joel Brobecker <brobecker@adacore.com>
790 * win32-tdep.h, win32-tdep.c: New files.
791 * i386-cygwin-tdep.h: Delete.
792 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
794 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
795 * win32-nat.c: Likewise.
796 * configure.tgt: Add win32-tdep.o to the list of target object
797 files for i386-cygwin and i386-mingw targets.
799 2009-01-11 Joel Brobecker <brobecker@adacore.com>
801 * win32-nat.h: New file.
802 * win32-nat.c (mappings): Initialize to NULL.
803 (win32_set_context_register_offsets): New function.
804 * i386-windows-nat.c: New file.
805 (mappings): Moved here from win32-nat.c.
806 (_initialize_i386_windows_nat): New function.
807 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
808 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
810 2009-01-09 Andreas Schwab <schwab@suse.de>
812 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
814 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
816 * gdbtypes.c (append_composite_type_field): Correct the location of
819 2009-01-09 Pedro Alves <pedro@codesourcery.com>
821 * defs.h (deprecated_error_hook): Delete declaration.
822 * interps.c (clear_interpreter_hooks): Adjust.
823 * remote-sim.c (gdb_os_error): Don't try to call
824 deprecated_error_hook. No need to call exit anymore.
825 * top.c (deprecated_error_hook): Delete.
827 2009-01-09 Joel Brobecker <brobecker@adacore.com>
829 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
830 to print the address of the gdbarch pointer.
832 2009-01-09 Joel Brobecker <brobecker@adacore.com>
834 * gdbarch.sh: Fix all the compilation errors on amd64-windows
835 due to casting a pointer to a long when printing a function
836 address. Instead, use host_address_to_string to convert our
838 * gdbarch.c: Regenerate.
840 2009-01-09 Joel Brobecker <brobecker@adacore.com>
842 * event-top.c (async_disconnect, async_stop_sig): use "raise"
843 instead of "kill" to raise a signal.
845 2009-01-09 Joel Brobecker <brobecker@adacore.com>
847 * win32-nat.c (get_module_name): Change the type of parameter
848 "base_address" to LPVOID. Remove unnecessary cast.
849 (struct lm_info): Change type of load_addr to LPVOID.
850 (win32_make_so): Change the type of parameter "load_addr"
851 to LPVOID. Remove some unnecessary casts.
852 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
853 (win32_xfer_shared_libraries): Add missing cast.
855 2009-01-09 Joel Brobecker <brobecker@adacore.com>
857 * win32-nat.c (has_detach_ability, set_process_privilege):
858 Cast the result of GetProcAddress to (void *) to avoid
859 a compilation warning.
861 2009-01-09 Joel Brobecker <brobecker@adacore.com>
863 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
866 2009-01-09 Joel Brobecker <brobecker@adacore.com>
868 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
869 definition of local variable "done".
870 (info_w32_command, handle_exception): Remove unnecessary cast.
872 2009-01-09 Joel Brobecker <brobecker@adacore.com>
874 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
875 DebugSetProcessKillOnExit. Update all uses in this file.
876 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
877 Update all uses in this file.
879 2009-01-09 Joel Brobecker <brobecker@adacore.com>
881 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
882 and use it when pushing the target.
883 (win32_attach, win32_create_inferior): Update call to
884 do_initial_win32_stuff.
885 (win32_detach, win32_mourn_inferior): Use our ops parameter
886 instead of the global win32_ops to unpush the target.
888 2009-01-09 Joel Brobecker <brobecker@adacore.com>
890 * ser-mingw.c (ser_windows_open): Use proper type when casting
891 in call to _open_osfhandle.
893 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
895 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
897 2009-01-09 Joel Brobecker <brobecker@adacore.com>
899 * CONTRIBUTE: Minor reformatting.
901 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
903 * MAINTAINERS: Add myself to Write After Approval.
904 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
907 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
909 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
910 Call exit to make it obvious to GCC.
912 2009-01-08 Tom Tromey <tromey@redhat.com>
915 * varobj.c (varobj_invalidate): Unconditionally free
917 * symfile.c (syms_from_objfile): Free local_addr when returning
919 * exec.c (exec_file_attach): Do cleanups before returning.
920 (exec_file_command): Likewise.
921 * corefile.c (reopen_exec_file): Do cleanups before returning.
922 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
924 (do_vec_free): New function.
925 (update_global_location_list): Make a cleanup for old_locations.
926 Do cleanups before returning. Remove unused variable 'e'.
927 (find_condition_and_thread): Free result of parsing the
929 (print_it_typical): Do cleanups before returning.
930 (breakpoint_re_set_one): Always free sals.sals.
932 2009-01-08 Joel Brobecker <brobecker@adacore.com>
933 Emi Suzuki <emi-suzuki@tjsys.co.jp>
935 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
938 2009-01-07 Doug Evans <dje@google.com>
940 * top.c (gdb_prompt_string): Delete, unused.
942 2009-01-07 Pedro Alves <pedro@codesourcery.com>
944 Delete ONE_PROCESS_WRITETEXT leftovers.
946 * breakpoint.c (insert_bp_location): Delete process_warning
948 (insert_breakpoint_locations): Adjust.
949 (reattach_breakpoints): Adjust.
950 * infrun.c (normal_stop): Drop "It might be running in another
953 2009-01-07 Stan Shebs <stan@codesourcery.com>
955 * config/pa/linux.mh (XDEPFILES): Remove.
957 2009-01-07 Doug Evans <dje@google.com>
959 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
961 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
963 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
964 spacing, a regression from 2008-04-22.
966 2009-01-07 Joel Brobecker <brobecker@adacore.com>
968 * utils.c (gdb_print_host_address): Adjust implementation to
969 reuse host_address_to_string. Move comment explaining the conversion
970 from host address to string from here...
971 (host_address_to_string): ... to there.
973 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
975 * MAINTAINERS: Add myself for write after approval privileges.
977 2009-01-06 Tom Tromey <tromey@redhat.com>
979 * value.c (set_internalvar): Use value_free, not xfree.
981 2009-01-06 Jim Blandy <jimb@red-bean.com>
983 Check return values of functions declared with warn_unused_result
984 attribute in GLIBC 2.8.
985 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
986 * inflow.c (check_syscall): New function.
987 (new_tty): Use check_syscall to check return values from open and dup.
988 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
989 * main.c (captured_main): Call cwd after setting up gdb_stderr;
990 check for errors from getcwd.
991 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
992 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
993 (stdio_file_fputs): Same.
994 * utils.c (internal_vproblem): abort if last-ditch error message
997 * top.c (gdb_init): Don't set the current directory here; that's
998 already been done in captured_main.
1000 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
1002 * ser-tcp.c: Adjust includes.
1003 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
1004 (tcp_auto_retry, tcp_retry_limit): Declare.
1005 (TIMEOUT): Remove, in favor of tcp_retry_limit.
1006 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
1007 (wait_for_connect): New function.
1008 (net_open): Use it. Add auto-retry logic.
1009 (set_tcp_cmd, show_tcp_cmd): New functions.
1010 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
1011 and "set/show tcp connect-timeout" commands.
1012 * NEWS: Document new commands.
1014 2009-01-05 Tom Tromey <tromey@redhat.com>
1016 * python/python-internal.h (Py_ssize_t): Define as int.
1018 2009-01-05 Jim Blandy <jimb@red-bean.com>
1020 * MAINTAINERS: Fix my e-mail address as steering committee member.
1022 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1024 Updated copyright notices for most files.
1026 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1028 * top.c (print_gdb_version): Update copyright year.
1030 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1032 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
1034 2009-01-01 Pedro Alves <pedro@codesourcery.com>
1036 PR breakpoints/9681:
1037 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
1038 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
1039 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
1040 retrow all other exceptions.
1042 For older changes see ChangeLog-2008.
1048 version-control: never