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