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