1 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
3 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
4 inside the loop. Only call addrmap_set_empty if the compilation unit
5 had DW_AT_high_pc and DW_AT_low_pc. Update call to
7 (scan_partial_symbols): Take NEED_PC argument and pass it along with
9 (add_partial_namespace): Take NEED_PC argument and pass it through.
10 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
13 2009-02-07 Pedro Alves <pedro@codesourcery.com>
15 * NEWS: Mention inspecting extra signal information, $_siginfo,
16 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
18 2009-02-07 Pedro Alves <pedro@codesourcery.com>
20 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
23 2009-02-06 Pedro Alves <pedro@codesourcery.com>
25 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
26 (compat_timer_t, compat_clock_t, struct compat_timeval)
27 (compat_sigval_t, compat_siginfo_t): New types.
28 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
29 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
30 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
31 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
32 (amd64_linux_siginfo_fixup): New.
33 * linux-nat.c (linux_nat_siginfo_fixup): New.
35 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
36 siginfo layout expected by ptrace and the siginfo layout of the
38 (linux_nat_set_siginfo_fixup): New.
39 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
41 2009-02-06 Pedro Alves <pedro@codesourcery.com>
43 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
44 * infrun.c (siginfo_value_read, siginfo_value_write): New.
45 (siginfo_value_funcs): New.
46 (siginfo_make_value): New.
47 (_initialize_infrun): Create the $_siginfo convenience variable.
48 * gdbtypes.h (append_composite_type_field_aligned): Declare.
49 * gdbtypes.c (append_composite_type_field): Rename to...
50 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
52 (append_composite_type_field): Rewrite on top of
53 append_composite_type_field_aligned.
54 * value.h (internalvar_make_value): New typedef.
55 (struct internalvar) <make_value>: New field.
56 (create_internalvar_type_lazy): Declare.
57 * value.c (create_internalvar): Clear make_value.
58 (create_internalvar_type_lazy): New.
59 (value_of_internalvar): If make_value is set use it.
60 (preserve_values): Skip internal variables that don't have a
62 * gdbarch.sh (get_siginfo_type): New.
63 * gdbarch.h, gdbarch.c: Regenerate.
65 * linux-tdep.h, linux-tdep.c: New.
66 * amd64-linux-tdep.c: Include "linux-tdep.h".
67 (amd64_linux_init_abi): Register linux_get_siginfo_type and
68 linux_get_siginfo_mapper.
69 * i386-linux-tdep.c: Include "linux-tdep.h".
70 (i386_linux_init_abi): Register linux_get_siginfo_type and
71 linux_get_siginfo_mapper.
72 * arm-linux-tdep.c: Include "linux-tdep.h".
73 (i386_linux_init_abi): Register linux_get_siginfo_type and
74 linux_get_siginfo_mapper.
76 * linux-nat.c (linux_xfer_siginfo): New.
77 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
78 * remote.c (PACKET_qXfer_siginfo_read)
79 (PACKET_qXfer_siginfo_write): New.
80 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
81 "qXfer:siginfo:write" features.
82 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
83 (_initialize_remote): Add "set/show remote read-siginfo-object"
84 and "set/show remote write-siginfo-object" commands.
86 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
87 (HFILES_NO_SRCDIR): Add linux-tdep.h.
88 (ALLDEPFILES): Add linux-tdep.c.
90 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
91 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
94 2009-02-06 Jim Blandy <jimb@codesourcery.com>
95 Daniel Jacobowitz <dan@codesourcery.com>
96 Vladimir Prus <vladimir@codesourcery.com>
97 Pedro Alves <pedro@codesourcery.com>
99 * defs.h (enum lval_type): New value: lval_computed.
100 * value.h (struct lval_funcs): New type.
101 (allocate_computed_value, value_computed_funcs)
102 (value_computed_closure): New declarations.
103 * value.c (struct value): Add a structure to the location union
104 for computed lvalues, containing 'funcs' and 'closure' members.
105 (allocate_computed_value, value_computed_funcs)
106 (value_computed_closure): New functions.
107 (value_free): For computed lvalues, call the closure's
108 'free_closure' function before freeing the value itself.
109 (value_copy): If we're copying an lval_computed value, call the
110 closure's 'copy_closure' function.
111 (set_value_component_location): If the original value is a
112 computed lvalue, then call the closure's 'copy_closure' function.
113 (value_of_internalvar): If an internal variable's value is a
114 computed lvalue, make retrieving its value produce an equivalent
116 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
118 (value_assign): Assign to computed lvalues by calling their write
121 2009-02-06 Pedro Alves <pedro@codesourcery.com>
123 * linux-nat.c (linux_nat_wait): Adjust.
124 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
125 * linux-nat.h (thread_db_init): Delete declaration.
126 * linux-thread-db.c (target_beneath): Delete.
127 (thread_db_init): Delete.
128 (thread_db_detach): Use find_target_beneath.
129 (thread_db_wait): Adjust interface. Use find_target_beneath.
130 (thread_db_mourn_inferior): Use find_target_beneath.
131 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
132 (thread_db_async_mask): Delete.
133 (thread_db_pid_to_str): Adjust interface. Use
135 (thread_db_get_thread_local_address): Adjust interface. Use
137 (init_thread_db_ops): Delete references to delete functions.
138 * target.c (update_current_target): Don't inherit or default
139 to_wait. Don't inherit to_pid_to_str and
140 to_get_thread_local_address.
141 (target_translate_tls_address): Look for a pushed target that
142 implements to_get_thread_local_address, and use it instead of
143 checking for target_get_thread_local_address_p.
144 (target_wait, target_pid_to_str): Reimplement as functions.
145 (dummy_pid_to_str): New.
146 (init_dummy_target): Register it.
147 (debug_to_wait): Delete.
148 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
149 to_get_thread_local_address accept a pointer to struct target_ops.
150 (target_wait): Delete macro, and declare as function.
151 (target_pid_to_str): Likewise.
152 (target_get_thread_local_address)
153 (target_get_thread_local_address_p): Delete.
154 (noprocess): Add NORETURN and ATTR_NORETURN tags.
155 * inf-ptrace.c (inf_ptrace_wait): Adjust.
156 (inf_ptrace_pid_to_str): New.
157 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
158 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
159 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
160 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
162 * corelow.c (core_pid_to_str): Adjust.
163 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
164 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
165 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
166 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
167 * hpux-thread.c (hpux_thread_wait): Adjust.
168 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
169 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
170 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
171 * procfs.c (procfs_pid_to_str): Adjust.
172 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
173 * remote-mips.c (mips_wait): Adjust.
174 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
175 * remote.c (remote_wait, remote_pid_to_str)
176 (remote_get_thread_local_address): Adjust.
177 * rs6000-nat.c (rs6000_wait): Adjust.
178 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
179 (sol_thread_wait, solaris_pid_to_str): Adjust.
180 * spu-linux-nat.c (spu_child_wait): Adjust.
181 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
183 2009-02-06 Tom Tromey <tromey@redhat.com>
185 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
186 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
187 (python-cmd.o): New target.
188 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
190 (add_cmd): Initialize destroyer member of cmd_list_element. Use
191 make_symbol_completion_list_fn as completer.
192 (delete_cmd): Call destroyer if one is set.
193 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
194 completer member. Add destroyer member.
195 (set_cmd_completer): Add self parameter to
197 * command.h (set_cmd_completer): Add cmd parameter to
199 * completer.c (noop_completer, filename_completer,
200 location_completer, expression_completer, command_completer): Adapt
201 to new completer prototype.
202 (complete_line_internal): Pass new parameter to completer function.
203 * completer.h (noop_completer, filename_completer,
204 location_completer, expression_completer, command_completer): Adapt
205 prototypes to new completer prototype.
206 * interps.c (interpreter_completer): Adapt to new completer
208 * python/python-cmd.c: New file.
209 * python/python-internal.h (gdbpy_initialize_commands): Add
211 (gdbpy_doc_cst): Add forward declaration.
212 * python/python.c (gdbpy_doc_cst): Declare.
213 (_initialize_python): Call gdbpy_initialize_commands. Initialize
215 * symtab.c (make_symbol_completion_list_fn): New function.
216 * symtab.h (make_symbol_completion_list_fn): Add prototype.
218 2009-02-06 Pedro Alves <pedro@codesourcery.com>
220 * target.c (target_get_osdata): Check for equal or higher than
221 process_stratum, not dummy_stratum.
223 2009-02-06 Pedro Alves <pedro@codesourcery.com>
225 * remote.c (extended_remote_can_run): Delete.
226 (init_remote_ops): Don't register it.
227 * target.c (target_get_osdata): Don't check for target_can_run.
228 Instead any target that has already been pushed, otherwise
229 fallback to the default run target.
231 2009-02-06 Pedro Alves <pedro@codesourcery.com>
233 * target.c (target_create_inferior, target_detach)
234 (target_mourn_inferior, target_attach, target_close): Do target
236 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
237 (debug_to_mourn_inferior, debug_to_close): Delete.
238 (setup_target_debug): Adjust.
240 2009-02-05 Pedro Alves <pedro@codesourcery.com>
242 * target.h (target_stopped_data_address_p): Delete declaration,
243 and don't define as macro.
244 * target.c (target_stopped_data_address_p): Delete.
246 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
247 Tom Tromey <tromey@redhat.com>
249 * python/python-utils.c (target_string_to_unicode): New function.
250 * python/python-internal.h (target_string_to_unicode): New prototype.
251 * python/python-value.c (valpy_string): New function.
252 (value_object_methods): Add `string' entry.
254 2009-02-05 Pedro Alves <pedro@codesourcery.com>
256 * target.h (target_tid_to_str): Delete.
257 * thread.c (print_thread_info, thread_apply_all_command)
258 (thread_apply_command, thread_command, do_captured_thread_select):
259 Use target_pid_to_str instead of target_tid_to_str.
260 * linux-fork.c (delete_fork_command): Likewise.
262 2009-02-05 Pedro Alves <pedro@codesourcery.com>
264 * frame.c (has_stack_frames): Make public.
265 (get_prev_frame): Don't allow a NULL this_frame anymore.
266 * frame.h (has_stack_frames): Declare.
267 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
268 to get_prev_frame, instead start at get_current_frame.
269 (varobj_create): Check has_stack_frames before getting any frame;
270 eliminate one usage of deprecated_safe_get_selected_frame.
272 2009-02-05 Tom Tromey <tromey@redhat.com>
273 Thiago Jung Bauermann <bauerman@br.ibm.com>
275 * python/python.c (GdbMethods): Move to bottom of file.
276 (get_parameter, execute_gdb_command, gdbpy_write,
277 gdbpy_flush): Remove forward declarations.
278 (eval_python_from_control_command): Fix error checking of function
279 PyRun_SimpleString. Fix error string.
280 (python_command): Likewise.
281 (execute_gdb_command): Added from_tty argument.
283 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
285 * language.h (language_dfn): Add la_get_string member.
286 (LA_GET_STRING): New macro.
287 (default_get_string): New prototype.
288 * language.c (default_get_string): New function.
289 (unknown_language_defn, auto_language_defn, local_language_defn): Use
290 default_get_string for la_get_string.
291 * c-lang.c (c_get_string): New function.
292 (c_language_defn, cplus_language_defn, asm_language_defn): Use
293 c_get_string for la_get_string.
294 (minimal_language_defn): Likewise
295 * ada-lang.c (ada_language_defn): Likewise.
296 * f-lang.c (f_language_defn): Use default_get_string for
298 * jv-lang.c (java_language_defn): Likewise.
299 * m2-lang.c (m2_language_defn): Likewise.
300 * objc-lang.c (objc_language_defn): Likewise.
301 * p-lang.c (p_language_defn): Likewise.
302 * scm-lang.c (scm_language_defn): Likewise.
303 * typeprint.c (type_to_string): New function.
304 * value.h (type_to_string): New prototype.
305 * valprint.c (val_print_string): Factor out code for reading string
306 from the inferior into its own function. Put 2 spaces after period
308 (read_string): New function.
309 * valprint.h (read_string): New prototype.
311 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
312 Tom Tromey <tromey@redhat.com>
315 * breakpoint.c (print_one_breakpoint): Use exp_string field
316 to display expression of watchpoints.
318 (watch_command_1): Remove trailing whitespace from expression.
319 * printcmd.c (struct display) <exp_string>: New field.
320 (display_command): Set exp_string.
321 (free_display): Free exp_string.
322 (clear_displays): Use free_display.
323 (do_one_display): Print exp_string.
324 (display_info): Likewise.
326 2009-02-04 Tom Tromey <tromey@redhat.com>
327 Thiago Jung Bauermann <bauerman@br.ibm.com>
328 Phil Muldoon <pmuldoon@redhat.com>
330 * python/python-internal.h (gdbpy_get_value_from_history): Rename
331 prototype to gdbpy_history.
332 (gdbpy_is_string): Declare.
333 (python_string_to_host_string): Declare.
334 * python/python-utils.c (gdbpy_is_string): New function.
335 (unicode_to_encoded_string): New function.
336 (unicode_to_target_string): Use it.
337 (python_string_to_host_string): New function.
338 * python/python-value.c (valpy_address): New function.
339 (convert_value_from_python): Use gdbpy_is_string. Change to throw
340 Python exception instead of a GDB exception on error. Properly check
342 (valpy_getitem): Convert field name to host string. Handle array
343 accesses. Adapt to new behaviour of convert_value_from_python.
344 (valpy_new): Adapt to new behaviour of convert_value_from_python.
345 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
346 VALPY_BITXOR, VALPY_BITOR>: New constants.
347 (valpy_binop): Update. Adapt to new behaviour of
348 convert_value_from_python.
349 (valpy_invert): New function.
350 (valpy_lsh): Likewise.
351 (valpy_rsh): Likewise.
352 (valpy_and): Likewise.
353 (valpy_or): Likewise.
354 (valpy_xor): Likewise.
355 (valpy_richcompare): Call convert_value_from_python instead of doing
357 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
358 (gdbpy_get_value_from_history): Rename
359 function to gdbpy_history.
360 (gdbpy_initialize_values): Don't set tp_new.
361 (value_object_type): Add valpy_new.
362 (value_object_methods): Add `address' entry.
363 (value_object_as_number): Update for new methods.
364 * python/python.c (GdbMethods): Rename entry from
365 `get_value_from_history' to `history'.
367 2009-02-04 Jerome Guitton <guitton@adacore.com>
369 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
370 of type to guard against a crash.
372 2009-02-04 Jerome Guitton <guitton@adacore.com>
374 * value.c (value_from_contents_and_address): Always return
375 a lval_memory value, even if address is null.
377 2009-02-04 Tristan Gingold <gingold@adacore.com>
379 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
380 (amd64_darwin_sigcontext_addr): Ditto.
381 (darwin_dwarf_signal_frame_p): Ditto.
382 (i386_darwin_init_abi): Handle signal frames, use the const for
384 (x86_darwin_init_abi_64): Ditto.
386 2009-02-04 Tristan Gingold <gingold@adacore.com>
388 * i386-tdep.c (i386_sigtramp_p): Make it public.
389 * i386-tdep.h (i386_sigtramp_p): Declare.
391 2009-02-04 Tristan Gingold <gingold@adacore.com>
393 * machoread.c (macho_symfile_read): Read minsymtab also from
395 (macho_symfile_read): Try to read dwarf2 frame info from main
396 object file, but not from OSO files.
397 (macho_symfile_offsets): Update section names for latest BFD
399 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
400 (x86_darwin_init_abi_64): Ditto.
401 * solib-darwin.c: New file.
402 * solib-darwin.h: New file.
403 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
405 2009-02-04 Tristan Gingold <gingold@adacore.com>
407 * solist.h (struct target_so_ops): Comment fallback behavior for
410 2009-02-03 Tom Tromey <tromey@redhat.com>
412 * completer.c (add_struct_fields): Check type_name against NULL
415 2009-02-03 Joel Brobecker <brobecker@adacore.com>
417 * MAINTAINERS: Update Elena's email address.
419 2009-02-02 Joel Brobecker <brobecker@adacore.com>
421 * breakpoint (update_watchpoint): Minor comment adjustment.
423 2009-02-02 Tom Tromey <tromey@redhat.com>
426 * completer.c (count_struct_fields): Count method names.
427 (add_struct_fields): Add matching method names.
429 2009-02-02 Doug Evans <dje@google.com>
431 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
432 doing any further tcl/tk configury. Don't configure gdbtk if
433 tcl or tk check fails.
434 * aclocal.m4: Regenerate.
435 * configure: Regenerate.
437 2009-02-02 Tom Tromey <tromey@redhat.com>
440 * valops.c (find_overload_match): Follow typedefs before taking
441 address of object argument.
443 2009-02-01 Doug Evans <dje@google.com>
445 * target.h (target_waitstatus_to_string): Declare.
446 * target.c (target_waitstatus_to_string): New function. Copied from
447 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
448 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
449 TARGET_WAITKIND_NO_HISTORY.
450 (debug_to_wait): Call it.
451 * infrun.c (wait_for_inferior): If debug_infrun, print result of
453 (fetch_inferior_event): Ditto.
455 2009-01-30 Tom Tromey <tromey@redhat.com>
457 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
459 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
462 * thread.c (do_captured_list_thread_ids): Report the current
465 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
467 * breakpoint.c (create_breakpoint, create_breakpoints)
468 (break_command_really, set_breakpoint): New parameter enabled.
469 (create_breakpoint, break_command_really): Make breakpoint
470 disabled if so requested.
471 * breakpoint.h (set_breakpoint): New parameter enabled.
472 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
474 2009-01-28 Doug Evans <dje@google.com>
476 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
477 (amd64_displaced_step_fixup): Declare.
478 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
479 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
480 and make static global.
481 (amd64_arch_regmap_len): New static global.
482 (amd64_arch_reg_to_regnum): New function.
483 (struct amd64_insn): New struct.
484 (struct displaced_step_closure): New struct.
485 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
486 (rex_prefix_p,skip_prefixes)
487 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
488 (amd64_insn_length,amd64_get_unused_input_int_reg)
489 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
490 (amd64_displaced_step_copy_insn)
491 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
492 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
493 (amd64_displaced_step_fixup): New functions.
494 * amd64-linux-tdep.c: #include arch-utils.h.
495 (amd64_linux_init_abi): Install displaced stepping support.
497 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
498 Jerome Guitton <guitton@adacore.com>
500 * configure, config.in: Regenerated.
501 * configure.ac: Add --with-system-gdbinit.
502 * main.c (get_init_files): New.
503 (captured_main): Use get_init_files. Load system gdbinit before
505 (print_gdb_help): Print location of init files.
507 2009-01-28 Pedro Alves <pedro@codesourcery.com>
509 * corefile.c (generic_search): Delete disabled code.
510 * gdbcore.h (generic_search): Delete declaration.
512 2009-01-26 Pedro Alves <pedro@codesourcery.com>
514 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
516 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
517 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
518 remove_breakpoints to remove breakpoints from the parent.
520 2009-01-26 Pedro Alves <pedro@codesourcery.com>
522 PR backtrace/9458, PR backtrace/8864:
523 * frame.c (create_new_frame): Update the frame's cached PC before
524 finding its unwinder. Use frame_id_build to build the new frame's
526 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
527 array values from the ``args'' array values.
529 2009-01-26 Pedro Alves <pedro@codesourcery.com>
531 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
532 (create_array_type, create_set_type, init_flags_type)
533 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
534 with a call to XZALLOC or XCALLOC, and pairs of calls to
535 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
537 2009-01-26 Pedro Alves <pedro@codesourcery.com>
539 Add "maint set|show internal-error|internal-warning quit|corefile
540 ask|yes|no" commands.
543 * utils.c (internal_problem_ask, internal_problem_yes)
544 (internal_problem_no, internal_problem_modes): New.
545 (struct internal_problem): Remove FIXME. Make should_quit and
546 should_dump_core types to char *.
547 (internal_vproblem, internal_error_problem)
548 (internal_warning_problem): Adjust.
549 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
551 (add_internal_problem_command): New.
552 (_initialize_utils): New.
554 2009-01-25 Pedro Alves <pedro@codesourcery.com>
556 * infcmd.c (program_info): Use paddress instead of casting stop_pc
559 2009-01-24 Pedro Alves <pedro@codesourcery.com>
561 * infrun.c (normal_stop): Don't call
562 deprecated_update_frame_pc_hack.
563 * frame.c (deprecated_update_frame_pc_hack)
564 (deprecated_update_frame_base_hack): Delete, and ...
565 (create_new_frame): ... inline here.
566 * frame.h (deprecated_update_frame_pc_hack)
567 (deprecated_update_frame_base_hack): Delete declarations.
569 2009-01-23 Pedro Alves <pedro@codesourcery.com>
571 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
572 * cli/cli-setshow.c (do_setshow_command): Handle it.
573 * command.h (enum var_types): Add var_zuinteger.
574 (add_setshow_zuinteger_cmd): Declare.
576 * valprint.c (_initialize_valprint): Change the set input-radix
577 and set output-radix commands to zuinteger type.
579 2009-01-23 Pedro Alves <pedro@codesourcery.com>
582 * infrun.c (normal_stop): Tag threads as stopped, and run the
583 hook-stop before printing the stack frame.
585 2009-01-22 Pedro Alves <pedro@codesourcery.com>
588 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
591 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
593 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
596 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
599 * infcmd.c (signal_command): Do not specify a resume PC.
601 2009-01-19 Doug Evans <dje@google.com>
603 * dummy-frame.c (dummy_frame): Replace regcache member with
605 (dummy_frame_push): Replace caller_regcache arg with caller_state.
607 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
608 (dummy_frame_pop): Rewrite. Verify requested frame is in the
609 dummy frame stack. Restore program state.
610 (cleanup_dummy_frames): Rewrite.
611 (dummy_frame_sniffer): Update. Make static.
612 * dummy-frame.h (regcache,frame_info): Delete forward decls.
613 (inferior_thread_state): New forward decl.
614 (dummy_frame_push): Update prototype.
615 * frame.c (frame_pop): dummy_frame_pop now does all the work for
617 * infcall.c (breakpoint_auto_delete_contents): Delete.
618 (get_function_name,run_inferior_call): New fns.
619 (call_function_by_hand): Simplify by moving some code to
620 get_function_name, run_inferior_call. Inferior function call wrapped
621 in TRY_CATCH so there's less need for cleanups and all exits from
622 proceed are handled similarily. Detect program exit.
623 Detect program stopping in a different thread.
624 Make error messages more consistent.
625 * inferior.h (inferior_thread_state): Declare (opaque type).
626 (save_inferior_thread_state,restore_inferior_thread_state,
627 make_cleanup_restore_inferior_thread_state,
628 discard_inferior_thread_state, get_inferior_thread_state_regcache):
630 (save_inferior_status): Update prototype.
631 * infrun.c: (normal_stop): When stopped for the completion of an
632 inferior function call, verify the expected stack frame kind.
633 (inferior_thread_state): New struct.
634 (save_inferior_thread_state,restore_inferior_thread_state,
635 do_restore_inferior_thread_state_cleanup,
636 make_cleanup_restore_inferior_thread_state,
637 discard_inferior_thread_state,
638 get_inferior_thread_state_regcache): New functions.
639 (inferior_status): Move stop_signal, stop_pc, registers to
640 inferior_thread_state. Remove restore_stack_info.
641 (save_inferior_status): Remove arg restore_stack_info.
642 All callers updated. Remove saving of state now saved by
643 save_inferior_thread_state.
644 (restore_inferior_status): Remove restoration of state now done by
645 restore_inferior_thread_state.
646 (discard_inferior_status): Remove freeing of registers, now done by
647 discard_inferior_thread_state.
649 2009-01-18 Pedro Alves <pedro@codesourcery.com>
651 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
652 at a time, times NUM_TO_SCROLL.
653 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
654 fetch the selected frame if there is no stack.
656 2009-01-18 Pedro Alves <pedro@codesourcery.com>
659 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
661 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
662 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
663 is thrown while handling an event, finish the thread state.
664 (normal_stop): Use finish_thread_state cleanup.
665 * infcmd.c (run_command_1): If an error is thrown while starting
666 the inferior, finish the thread state.
668 2009-01-18 Pedro Alves <pedro@codesourcery.com>
670 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
671 skip breakpoints without a location (pending breakpoints).
673 2009-01-18 Pedro Alves <pedro@codesourcery.com>
676 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
678 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
680 * thread.c (thread_command): Move call to annotate_thread_changed
682 (do_captured_thread_select): ... here, to avoid printing an
683 annotation if the thread change generates an exception.
685 2009-01-16 Joel Brobecker <brobecker@adacore.com>
687 * NEWS: Document x86_64/MinGW as a new native configuration.
689 2009-01-16 Joel Brobecker <brobecker@adacore.com>
691 * NEWS: Move the documentation of "info os processes" to
692 the appropriate section (documenting the new commands).
694 2009-01-15 Doug Evans <dje@google.com>
696 * target.h (target_signal_to_string): Make return type const char *.
697 (target_signal_to_name): Ditto.
698 (target_signal_from_name): Make arg const char *.
699 * infrun.c (sig_print_info): Update.
700 * signals/signals.c (signals): Make array and struct members const.
701 (target_signal_to_string): Make return type const char *.
702 (target_signal_to_name): Ditto.
703 (target_signal_from_name): Make arg const char *.
705 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
706 Tristan Gingold <gingold@adacore.com>
708 * solist.h (struct target_so_ops): New member bfd_open.
709 (solib_find): Add prototype.
710 (solib_bfd_fopen): Add prototype.
711 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
713 (solib_bfd_open): Use ops->bfd_open override if present. Call
714 solib_find and solib_bfd_open otherwise.
716 * objfiles.h (OBJF_KEEPBFD): New define.
717 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
719 * solib.c (symbol_add_stub): Do not allocate second BFD for
720 shared library; use OBJF_KEEPBFD flag on solib objfile.
722 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
724 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
726 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
728 * value.h (address_of_variable): Add prototype.
729 (locate_var_value): Remove prototype.
731 * findvar.c (read_var_value): Do not attempt to default frame
733 (locate_var_value): Remove function.
734 * valops.c (value_of_variable): Retrieve selected frame for
735 symbols that require a frame when called with NULL block.
736 * valops.c (address_of_variable): New function.
738 * eval.c (evaluate_subexp_for_address): Call address_of_variable
739 instead of calling locate_var_value.
740 (evaluate_subexp_with_coercion): Likewise.
742 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
744 * NEWS: Document "define" for prefixed commands.
745 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
746 show_user_1 for prefix commands.
747 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
748 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
749 commands. Return the containing command list.
750 (define_command, document_command): Update to handle prefix commands.
751 (show_user_1): Add prefix and name arguments. Handle prefix
753 * cli/cli-script.h (show_user_1): Update prototype.
755 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
757 * mingw-ser.c (console_select_thread): Add return to make
759 (pipe_select_thread): Likewise.
760 (file_select_thread): Likewise.
762 2009-01-14 Pedro Alves <pedro@codesourcery.com>
764 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
767 2009-01-14 Pedro Alves <pedro@codesourcery.com>
769 * remote.c (extended_remote_mourn_1): Invalidate our notion of
770 current general thread.
772 2009-01-14 Pedro Alves <pedro@codesourcery.com>
774 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
775 without a live selected thread.
777 2009-01-14 Joel Brobecker <brobecker@adacore.com>
779 Update the copyright notice of some of the files I missed
780 in the previous copyright update.
782 2009-01-14 Joel Brobecker <brobecker@adacore.com>
784 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
785 base address instead of casting it to DWORD.
787 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
789 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
790 for NULL frame pointers.
792 2009-01-13 Mark Kettenis <kettenis@gnu.org>
794 * utils.c (host_address_to_string): Reimplement in a way that
795 avoids the cast of the address to long.
797 2009-01-13 Joel Brobecker <brobecker@adacore.com>
799 * mdebugread.c (parse_symbol): Save the symbol private data
800 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
801 (psymtab_to_symtab_1): Likewise.
802 (parse_procedure): Declare variable "e" only in the scope
803 where it is used. Extract the symbol private data using
806 2009-01-13 Jim Blandy <jimb@codesourcery.com>
808 Abstract out common code for copying value locations.
810 * value.h (set_value_component_location): New declaration.
811 * value.c (set_value_component_location): New function.
812 (value_primitive_field): Use it.
813 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
814 * valops.c (search_struct_field, value_slice): Same.
815 * ada-lang.c (coerce_unspec_val_to_type)
816 (ada_value_primitive_packed_val): Same.
818 2009-01-13 Joel Brobecker <brobecker@adacore.com>
820 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
822 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
824 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
826 * i386-cygwin-tdep.c: Ditto.
827 * i386-windows-nat.c: Ditto.
828 * windows-nat.h: Ditto.
829 * windows-tdep.c: Ditto.
830 * windows-tdep.h: Ditto.
831 * windows-nat.c: Ditto.
832 (cygwin_load_start): Redefine as CORE_ADDR.
833 (cygwin_load_end): Ditto.
834 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
835 before coercing to CORE_ADDR to avoid a compiler warning.
836 (handle_exception): Define addr as CORE_ADDR and coerce
837 ExceptionAddress to uintptr_t before assigining to avoid a compiler
839 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
842 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
844 Fix linking with --enable-targets=all:
845 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
846 (HFILES_NO_SRCDIR): Add windows-tdep.h.
847 (ALLDEPFILES): Add windows-tdep.c.
849 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
851 * win32-nat.h: Delete.
852 * windows-nat.h: Rename from win32-nat.h.
853 * win32-nat.c: Delete.
854 * windows-nat.c: Rename from win32-nat.c.
855 * win32-termcap.c: Delete.
856 * windows-termcap.c: Rename from win32-termcap.c.
857 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
858 * configure.ac: Handle rename from win32-termcap.c ->
860 * configure: Regenerate.
861 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
862 -> windows-termcap.c.
863 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
865 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
866 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
868 (win32_make_so): Handle cygwin compiler warning due to change of
869 load_addr from DWORD to LPVOID.
870 (handle_load_dll): Use %p in format string to properly print address
871 and avoid a compiler warning.
872 (DEBUG_EXCEPTION_SIMPLE): Ditto.
873 (handle_exception): Ditto.
874 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
875 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
877 * config/i386/mingw.mh: Ditto.
878 * config/i386/mingw64.mh: Ditto.
880 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
882 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
883 arrayprint_recurse_level to a parameter. Update all the callers. New
884 comment at autovariables.
886 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
888 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
891 2009-01-11 Joel Brobecker <brobecker@adacore.com>
893 * target.c (target_xfer_partial): Use host_address_to_string to
894 print the address of readbuf and writebuf. Cast the address of
895 elements inside the myaddr buffer into intptr_t.
896 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
897 Cast the address of elements inside the myaddr buffer into
900 2009-01-11 Joel Brobecker <brobecker@adacore.com>
902 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
903 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
904 * configure.host, configure.tgt: Add handling for x86_64/windows.
905 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
906 and amd64-windows-tdep.c.
908 2009-01-11 Joel Brobecker <brobecker@adacore.com>
910 * win32-tdep.h, win32-tdep.c: New files.
911 * i386-cygwin-tdep.h: Delete.
912 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
914 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
915 * win32-nat.c: Likewise.
916 * configure.tgt: Add win32-tdep.o to the list of target object
917 files for i386-cygwin and i386-mingw targets.
919 2009-01-11 Joel Brobecker <brobecker@adacore.com>
921 * win32-nat.h: New file.
922 * win32-nat.c (mappings): Initialize to NULL.
923 (win32_set_context_register_offsets): New function.
924 * i386-windows-nat.c: New file.
925 (mappings): Moved here from win32-nat.c.
926 (_initialize_i386_windows_nat): New function.
927 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
928 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
930 2009-01-09 Andreas Schwab <schwab@suse.de>
932 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
934 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
936 * gdbtypes.c (append_composite_type_field): Correct the location of
939 2009-01-09 Pedro Alves <pedro@codesourcery.com>
941 * defs.h (deprecated_error_hook): Delete declaration.
942 * interps.c (clear_interpreter_hooks): Adjust.
943 * remote-sim.c (gdb_os_error): Don't try to call
944 deprecated_error_hook. No need to call exit anymore.
945 * top.c (deprecated_error_hook): Delete.
947 2009-01-09 Joel Brobecker <brobecker@adacore.com>
949 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
950 to print the address of the gdbarch pointer.
952 2009-01-09 Joel Brobecker <brobecker@adacore.com>
954 * gdbarch.sh: Fix all the compilation errors on amd64-windows
955 due to casting a pointer to a long when printing a function
956 address. Instead, use host_address_to_string to convert our
958 * gdbarch.c: Regenerate.
960 2009-01-09 Joel Brobecker <brobecker@adacore.com>
962 * event-top.c (async_disconnect, async_stop_sig): use "raise"
963 instead of "kill" to raise a signal.
965 2009-01-09 Joel Brobecker <brobecker@adacore.com>
967 * win32-nat.c (get_module_name): Change the type of parameter
968 "base_address" to LPVOID. Remove unnecessary cast.
969 (struct lm_info): Change type of load_addr to LPVOID.
970 (win32_make_so): Change the type of parameter "load_addr"
971 to LPVOID. Remove some unnecessary casts.
972 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
973 (win32_xfer_shared_libraries): Add missing cast.
975 2009-01-09 Joel Brobecker <brobecker@adacore.com>
977 * win32-nat.c (has_detach_ability, set_process_privilege):
978 Cast the result of GetProcAddress to (void *) to avoid
979 a compilation warning.
981 2009-01-09 Joel Brobecker <brobecker@adacore.com>
983 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
986 2009-01-09 Joel Brobecker <brobecker@adacore.com>
988 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
989 definition of local variable "done".
990 (info_w32_command, handle_exception): Remove unnecessary cast.
992 2009-01-09 Joel Brobecker <brobecker@adacore.com>
994 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
995 DebugSetProcessKillOnExit. Update all uses in this file.
996 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
997 Update all uses in this file.
999 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1001 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
1002 and use it when pushing the target.
1003 (win32_attach, win32_create_inferior): Update call to
1004 do_initial_win32_stuff.
1005 (win32_detach, win32_mourn_inferior): Use our ops parameter
1006 instead of the global win32_ops to unpush the target.
1008 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1010 * ser-mingw.c (ser_windows_open): Use proper type when casting
1011 in call to _open_osfhandle.
1013 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
1015 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
1017 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1019 * CONTRIBUTE: Minor reformatting.
1021 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1023 * MAINTAINERS: Add myself to Write After Approval.
1024 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
1027 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
1029 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
1030 Call exit to make it obvious to GCC.
1032 2009-01-08 Tom Tromey <tromey@redhat.com>
1034 PR breakpoints/9350:
1035 * varobj.c (varobj_invalidate): Unconditionally free
1037 * symfile.c (syms_from_objfile): Free local_addr when returning
1039 * exec.c (exec_file_attach): Do cleanups before returning.
1040 (exec_file_command): Likewise.
1041 * corefile.c (reopen_exec_file): Do cleanups before returning.
1042 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
1044 (do_vec_free): New function.
1045 (update_global_location_list): Make a cleanup for old_locations.
1046 Do cleanups before returning. Remove unused variable 'e'.
1047 (find_condition_and_thread): Free result of parsing the
1049 (print_it_typical): Do cleanups before returning.
1050 (breakpoint_re_set_one): Always free sals.sals.
1052 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1053 Emi Suzuki <emi-suzuki@tjsys.co.jp>
1055 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
1058 2009-01-07 Doug Evans <dje@google.com>
1060 * top.c (gdb_prompt_string): Delete, unused.
1062 2009-01-07 Pedro Alves <pedro@codesourcery.com>
1064 Delete ONE_PROCESS_WRITETEXT leftovers.
1066 * breakpoint.c (insert_bp_location): Delete process_warning
1068 (insert_breakpoint_locations): Adjust.
1069 (reattach_breakpoints): Adjust.
1070 * infrun.c (normal_stop): Drop "It might be running in another
1073 2009-01-07 Stan Shebs <stan@codesourcery.com>
1075 * config/pa/linux.mh (XDEPFILES): Remove.
1077 2009-01-07 Doug Evans <dje@google.com>
1079 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
1081 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1083 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
1084 spacing, a regression from 2008-04-22.
1086 2009-01-07 Joel Brobecker <brobecker@adacore.com>
1088 * utils.c (gdb_print_host_address): Adjust implementation to
1089 reuse host_address_to_string. Move comment explaining the conversion
1090 from host address to string from here...
1091 (host_address_to_string): ... to there.
1093 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
1095 * MAINTAINERS: Add myself for write after approval privileges.
1097 2009-01-06 Tom Tromey <tromey@redhat.com>
1099 * value.c (set_internalvar): Use value_free, not xfree.
1101 2009-01-06 Jim Blandy <jimb@red-bean.com>
1103 Check return values of functions declared with warn_unused_result
1104 attribute in GLIBC 2.8.
1105 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
1106 * inflow.c (check_syscall): New function.
1107 (new_tty): Use check_syscall to check return values from open and dup.
1108 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
1109 * main.c (captured_main): Call cwd after setting up gdb_stderr;
1110 check for errors from getcwd.
1111 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
1112 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
1113 (stdio_file_fputs): Same.
1114 * utils.c (internal_vproblem): abort if last-ditch error message
1117 * top.c (gdb_init): Don't set the current directory here; that's
1118 already been done in captured_main.
1120 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
1122 * ser-tcp.c: Adjust includes.
1123 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
1124 (tcp_auto_retry, tcp_retry_limit): Declare.
1125 (TIMEOUT): Remove, in favor of tcp_retry_limit.
1126 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
1127 (wait_for_connect): New function.
1128 (net_open): Use it. Add auto-retry logic.
1129 (set_tcp_cmd, show_tcp_cmd): New functions.
1130 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
1131 and "set/show tcp connect-timeout" commands.
1132 * NEWS: Document new commands.
1134 2009-01-05 Tom Tromey <tromey@redhat.com>
1136 * python/python-internal.h (Py_ssize_t): Define as int.
1138 2009-01-05 Jim Blandy <jimb@red-bean.com>
1140 * MAINTAINERS: Fix my e-mail address as steering committee member.
1142 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1144 Updated copyright notices for most files.
1146 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1148 * top.c (print_gdb_version): Update copyright year.
1150 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1152 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
1154 2009-01-01 Pedro Alves <pedro@codesourcery.com>
1156 PR breakpoints/9681:
1157 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
1158 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
1159 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
1160 retrow all other exceptions.
1162 For older changes see ChangeLog-2008.
1168 version-control: never