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