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