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