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