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