* ada-lang.c (desc_data_type): Remove, replace by ...
[binutils-gdb.git] / gdb / ChangeLog
1 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * ada-lang.c (desc_data_type): Remove, replace by ...
4 (desc_data_target_type): ... this.
5 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
6 (ada_is_array_descriptor_type): Likewise.
7 (ada_type_of_array): Likewise.
8 (ada_coerce_to_simple_array_type): Likewise.
9 (ada_array_element_type): Likewise.
10
11 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
12
13 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
14 result of ada_vax_float_print_function inferior call.
15
16 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
17
18 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
19 avoid creating a dummy value.
20
21 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
22
23 * p-valprint.c (pascal_val_print): Use extract_typed_address
24 to extract reference value.
25
26 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
27
28 * doublest.c (NAN): Remove unused define.
29 (extract_floating_by_length, deprecated_extract_floating): Remove.
30 (store_floating_by_length, deprecated_store_floating): Remove.
31 (extract_typed_floating): Do not call extract_floating_by_length.
32 (store_typed_floating): Do not call store_floating_by_length.
33 (convert_typed_floating): Remove redundant assertions.
34 * doublest.h (deprecated_extract_floating): Remove.
35 (deprecated_store_floating): Remove.
36 * sh64-tdep.c (sh64_register_convert_to_raw): Call
37 extract_typed_floating instead of deprecated_extract_floating.
38
39 2009-05-18 Jon Beniston <jon@beniston.com>
40
41 * MAINTAINERS: Add lm32 target.
42 * Makefile.in: Add lm32 dependencies.
43 * NEWS: Indicate lm32 is a new target.
44 * configure.tgt: Add lm32 targets.
45 * lm32-tdep.c: New file.
46
47 2009-05-18 Pedro Alves <pedro@codesourcery.com>
48
49 * corelow.c (core_open): Flush the register cache before doing
50 anything with registers.
51
52 2009-05-18 Pedro Alves <pedro@codesourcery.com>
53
54 * inflow.h (our_process_group): Remove declaration.
55 (inferior_process_group): Delete global variable declaration.
56 (inferior_process_group): New function declaration.
57 * inflow.c: Include observer.h.
58 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
59 Delete.
60 (struct terminal_info): New struct.
61 (our_terminal_info): New global.
62 (inferior_process_group): New function.
63 (inferior_thisrun_terminal): Extend description comment.
64 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
65 instead of globals.
66 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
67 terminal settings.
68 (terminal_inferior): Ditto.
69 (terminal_ours_1): Ditto.
70 (inflow_new_inferior, inflow_inferior_exit): New functions.
71 (child_terminal_info): Adjust to per-inferior terminal settings.
72 (osig_set): New global.
73 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
74 or clear `osig_set' accordingly.
75 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
76 SIGINT handler, instead of checking the current inferior (which
77 may be none).
78 (_initialize_inflow): Attach inflow_new_inferior and
79 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
80 notifications, respectively.
81 * inferior.h (struct terminal_info): Forward declare.
82 (struct inferior): Add `terminal_info' field.
83 * inferior.c (delete_inferior_1): Notify the inferior_exit
84 observers before removing the inferior from the lists and deleting
85 it.
86 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
87 a function instead of a variable. Adjust.
88 * procfs.c (procfs_stop): Ditto.
89
90 2009-05-17 Pedro Alves <pedro@codesourcery.com>
91
92 * infrun.c (handle_inferior_event): When handling a
93 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
94 immediatelly.
95 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
96 from the child if vforking.
97 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
98 breakpoints from the child here.
99
100 2009-05-17 Pedro Alves <pedro@codesourcery.com>
101
102 * infrun.c (pending_follow): Remove execd_pathname member.
103 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
104 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
105 event, don't copy `execd_pathname' to pending_follow, use the
106 event copy instead. Release `execd_pathname' once done with
107 handling the event.
108
109 * infrun.c (pending_follow): Remove mention of exec events.
110
111 2009-05-17 Hui Zhu <teawater@gmail.com>
112
113 * i386-tdep.c (i386_process_record): Make it extern.
114 (i386_gdbarch_init): Don't call set_gdbarch_process_record
115 here.
116 * i386-tdep.h (i386_process_record): Declare.
117 * i386-linux-tdep.c (i386_linux_init_abi): Call
118 set_gdbarch_process_record.
119
120 2009-05-17 Vladimir Prus <vladimir@codesourcery.com>
121
122 Always report varobj as changed when in_scope attribute changes.
123
124 * varobj.c (install_new_value): If non-NULL-ness of value
125 changed, return 1.
126
127 2009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
128
129 * NEWS: Mention set/show libthread-db-search-path.
130 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
131 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
132 * linux-thread-db.c (libthread_db_search_path): New setting.
133 (thread_db_handle): New variable (replaces using_thread_db).
134 (try_thread_db_load_1): New function.
135 (try_thread_db_load, thread_db_load_search): Likewise.
136 (dladdr_to_soname): Likewise.
137 (thread_db_load): Iterate over possibly multiple libthread_db's.
138 (check_for_thread_db): Attempt to load new libthread_db.
139 (thread_db_detach, thread_db_wait): Unload libthread_db.
140 (thread_db_mourn_inferior): Likewise.
141 (_initialize_thread_db): Add new libthread-db-search-path option.
142 Defer loading of libthread_db to check_for_thread_db.
143 * solib.c (libpthread_name_p): New function.
144 (libpthread_solib_p): Call it.
145 * solib.h (libpthread_name_p): New prototype.
146
147 2009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
148
149 * MAINTAINERS: Update my email address.
150
151 2009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
152
153 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
154 * breakpoint.c (create_overlay_event_breakpoint): Renamed
155 from create_overlay_event_breakpoint_1, old
156 create_overlay_event_breakpoint deleted.
157 (breakpoint_re_set_objfile): Don't rescan all objfiles
158 unnecessarily.
159 (breakpoint_re_set): New function.
160 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
161 instead of breakpoint_re_set.
162 * objfiles.c (objfile_relocate): Likewise.
163
164 2009-05-14 Joel Brobecker <brobecker@adacore.com>
165
166 * gdbarch.sh: Add comment documenting the target_gdbarch global.
167 gdbarch.h does NOT need to be regenerated as the corresponding
168 change has already been made in a previous commit.
169
170 2009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
171
172 Remove all i386 debug register low level macros in config nm files.
173 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
174 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
175 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
176
177 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
178 (struct i386_dr_low_type): New type.
179 (i386_dr_low): New global variable.
180 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
181 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
182 i386_dr_low struct variable fields.
183 (i386_remove_aligned_watchpoint): Likewise.
184 (i386_stopped_data_address): Likewise.
185 (i386_stopped_by_hwbp): Likewise.
186 (show_debug_regs_command_added): New static variable.
187 (add_show_debug_regs_command): New static function.
188 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
189 (i386_set_debug_register_length): New function.
190 (_initialize_i386_nat): Delete.
191
192 * amd64-linux-nat.c: Include "i386-nat.h".
193 (amd64_linux_dr_set_control): Change to static.
194 (amd64_linux_dr_get_status): Change to static.
195 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
196 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
197
198 * go32-nat.c: Include "i386-nat.h".
199 (go32_set_addr): Change to static.
200 (go32_set_dr7): Change to static. Change arg type to unisgned long.
201 (go32_get_dr6): Change to static. Change return type to unisnged long.
202 (init_go32_ops): Set i386_dr_low variable fields.
203 * i386-linux-nat.c: Include "i386-nat.h".
204 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
205 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
206 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
207 * i386bsd-nat.h: Declare functions used for
208 i386_dr_low fields in i386fbsd-nat.c.
209 * i386fbsd-nat.c: Include "i386-nat.h".
210 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
211 * windows-nat.c: Include "i386-nat.h".
212 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
213 Change to static.
214 (cygwin_get_dr6): Change return type to unisnged long.
215 (cygwin_set_dr7): Change arg type to unisgned long.
216 (init_windows_ops): Set i386_dr_low function fields.
217
218 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
219 i386_set_debug_register_length.
220 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
221
222 * config/i386/nm-cygwin.h: Remove all I386_* macros.
223 * config/i386/nm-cygwin64.h: Likewise.
224 * config/i386/nm-fbsd.h: Likewise.
225 * config/i386/nm-linux.h: Likewise.
226 * config/i386/nm-i386.h: Remove completely.
227 * config/i386/nm-go32.h: Remove completely.
228 * config/i386/nm-linux64.h: Remove completely.
229 * config/i386/go32.mh (NAT_FILE): Remove entry.
230 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
231
232 2009-05-14 Jon Beniston <jon@beniston.com>
233
234 * MAINTAINERS: Add Jon Beniston to write after approval list.
235
236 2009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
237
238 * objc-lang.c (objc_objfile_data): New variable.
239 (find_methods): Skip objfiles without Obj-C methods.
240 (_initialize_objc_lang): New function.
241
242 2009-05-13 Joel Brobecker <brobecker@adacore.com>
243
244 * c-lang.c (print_wchar): Remove unnecessary cast.
245
246 2009-05-12 Jim Blandy <jimb@red-bean.com>
247
248 * MAINTAINERS: Remove self as m32c target maintainer.
249
250 2009-05-12 Pedro Alves <pedro@codesourcery.com>
251
252 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
253 * command.h (deprecated_add_set_cmd): Delete declaration.
254 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
255 'set debug gnu-nat' and 'show debug gnu-nat'.
256 * i386-nat.c (_initialize_i386_nat): Replace 'maint
257 show-debug-registers' with 'maint set show-debug-registers' and
258 'maint show show-debug-registers'.
259 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
260 show-debug-registers' with 'maint set show-debug-registers' and
261 'maint show show-debug-registers'.
262
263 2009-05-12 Joel Brobecker <brobecker@adacore.com>
264
265 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
266 pushing it on the output obstack.
267
268 2009-05-11 Joel Brobecker <brobecker@adacore.com>
269
270 Fix internal error on breaking at a multi-locations caller source line.
271 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
272 command with no parameters.
273
274 2009-05-11 Pedro Alves <pedro@codesourcery.com>
275
276 * linux-nat.c (enum sigchld_state): Delete.
277 (linux_nat_async_events_state): Delete.
278 (struct waitpid_result): Delete.
279 (waitpid_queue): Delete.
280 (queued_waitpid_1): Delete.
281 (async_file_flush): New.
282 (queued_waitpid, push_waitpid): Delete.
283 (async_file_mark): New.
284 (drain_queued_events): Delete.
285 (my_waitpid): Remove locally queued events handling.
286 (linux_test_for_tracefork): Upjust.
287 (linux_child_follow_fork): Ditto.
288 (sync_sigchld_action): Delete.
289 (blocked_mask): Reinstate.
290 (async_sigchld_action): Rename to...
291 (sigchld_action): ... this.
292 (block_child_signals): New.
293 (restore_child_signals_mask): New.
294 (lin_lwp_attach_lwp): Adjust.
295 (linux_nat_create_inferior): Ditto.
296 (linux_nat_attach): Also use lp->status in async mode.
297 (get_pending_status): Don't use queued_waitpid.
298 (linux_nat_detach): Don't drain locally queued events.
299 (linux_nat_resume): Allow pending wait statuses stored lp->status
300 in async mode. If returning early due to a pending event,
301 re-register the event source.
302 (stop_wait_callback): Allow pending wait statuses stored
303 lp->status in async mode.
304 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
305 (linux_nat_wait): Rename to ...
306 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
307 lp->status in async mode. Always add WNOHANG to the waitpid
308 options in async mode.
309 (linux_nat_wait): New.
310 (kill_callback): Don't drain locally queued events.
311 (sigchld_handler): Rewrite.
312 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
313 refer to "set target-async".
314 (linux_nat_async_mask): If in non-stop, and re-enabling async
315 mode, re-register the target event source in the event loop.
316 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
317 (get_pending_events, async_sigchld_handler)
318 (linux_nat_async_events): Delete.
319 (handle_target_event): New.
320 (linux_nat_async_file_handler): Delete.
321 (linux_async_pipe): New.
322 (linux_nat_async): Only re-register in the event loop if not
323 registered yet. Always notify the event-loop once if enabling the
324 event source.
325 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
326 lp->status, not in the locally queued event list.
327 (linux_nat_stop): Don't mask out async event handling.
328 (linux_nat_setup_async): Delete.
329 (_initialize_linux_nat): Adjust.
330 (lin_thread_get_thread_signals): blocked_mask is global again.
331 Adjust.
332
333 2009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
334
335 Unify target macros.
336
337 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
338 (target_stoppped_by_watchpoint): New macro.
339 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
340 (target_have_steppable_watchpoint): New macro.
341 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
342 (target_have_continuable_watchpoint): New macro.
343 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
344 (target_can_use_hardware_watchpoint): New macro.
345 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
346 (target_region_ok_for_hw_watchpoint): New macro.
347
348 * breakpoint.c (update_watchpoint): Use new macros.
349 (bpstat_alloc): Likewise.
350 (create_breakpoint): Likewise.
351 (watch_command_1): Likewise.
352 (can_use_hardware_watchpoint): Likewise.
353 (do_enable_breakpoint): Likewise.
354 * infrun.c (handle_inferior_event): Adapt to new macros.
355 * mips-tdep.c (mips_gdbarch_init): Update comments.
356 * procfs.c (procfs_set_watchpoint): Update comment.
357 (procfs_insert_watchpoint): Adapt to new macros.
358 * remote-m32r-sdi.c (m32r_stop):
359 * remote-mips.c (mips_remove_breakpoint):
360 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
361 (debug_to_stopped_by_watchpoint): Likewise.
362
363
364 2009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
365
366 * src/gdb/target.h: Remove all tests for already defined
367 macros. All macros defined here should not be set in config
368 headers anymore.
369
370 2009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
371
372 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
373 (have_ptrace_getsetfpregs): Likewise.
374 fetch_all_gp_regs): New function.
375 (fetch_gp_regs): New function.
376 (fetch_all_fp_regs): Likewise.
377 (fetch_fp_regs): New function.
378 (fetch_ppc_registers): Using the new methods to fetch general-
379 purpose and floating-pointer registers.
380 (store_all_gp_regs): New function.
381 (store_gp_regs): Likewise.
382 (store_all_fp_regs): New function.
383 (store_fp_regs): Likewise.
384 (store_ppc_registers): Using the new methods to store general-
385 purpose and floating-pointer registers.
386
387 2009-05-08 Doug Evans <dje@google.com>
388
389 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
390
391 2009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
392
393 * MAINTAINERS (Write After Approval): Add self.
394
395 2009-05-07 Joel Brobecker <brobecker@adacore.com>
396
397 * gdbarch.h (target_gdbarch): Add comment documenting this global.
398
399 2009-05-06 Joel Brobecker <brobecker@adacore.com>
400
401 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
402 system iconv.
403 * configure: Regenerate.
404
405 2009-05-06 Joel Brobecker <brobecker@adacore.com>
406
407 * utils.c: Add include of gdb_usleep.h.
408 (defaulted_query): Detect false EOF conditions that happen
409 on terminals opened with the O_NONBLOCK flag when there is
410 nothing to read.
411
412 2009-05-06 Pedro Alves <pedro@codesourcery.com>
413
414 * inferior.c (add_inferior): Move observer_notify_new_inferior
415 call to ...
416 (add_inferior_silent): ... here.
417
418 2009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
419 Pedro Alves <pedro@codesourcery.com>
420
421 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
422 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
423 functions.
424 (procfs_stopped_by_watchpoint): Made static, ptid argument
425 removed.
426 (_initialize_procfs): Register new watchpoint related target
427 functions.
428 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
429 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
430 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
431 (target_insert_watchpoint, target_remove_watchpoint): Delete.
432 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
433 declarations.
434 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
435 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
436 (target_insert_watchpoint, target_remove_watchpoint): Delete.
437 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
438 declarations.
439 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
440 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
441 (target_insert_watchpoint, target_remove_watchpoint): Delete.
442 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
443 declarations.
444
445 2009-05-06 Hui Zhu <teawater@gmail.com>
446
447 * i386-tdep.c (i386_process_record): Change bzero to memset.
448
449 2009-05-06 Hui Zhu <teawater@gmail.com>
450
451 * NEWS: Add item for process record and replay.
452
453 2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
454
455 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
456
457 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
458
459 * inferior.h (read_pc, write_pc): Remove.
460 * regcache.c (read_pc, write_pc): Remove.
461
462 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
463 of read_pc.
464 (handle_inferior_event): Use regcache_read_pc instead of read_pc
465 when determining value of stop_pc. Replace subsequent uses of
466 read_pc by inspecting already-retrieved stop_pc value.
467 (keep_going): Use regcache_read_pc instead of read_pc.
468
469 * breakpoint.c (watchpoint_check): Use current frame architecture
470 and PC instead of current_gdbarch and read_pc ().
471 * tracepoint.c (set_traceframe_context): Replace PC argument
472 with FRAME argument.
473 (trace_start_command, finish_tfind_command): Update calls.
474 (finish_tfind_command): Compare frame IDs to identify transitions
475 between frames.
476 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
477 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
478 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
479 of read_pc and write_pc.
480 (store_register): Make regcache argument non-const. Update call
481 to exec_one_dummy_insn.
482
483 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
484 * infcmd.c (post_create_inferior): Likewise.
485 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
486 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
487 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
488 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
489 * linux-fork.c (fork_load_infrun_state): Likewise.
490 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
491 * record.c (record_wait): Likewise.
492 * procfs.c (procfs_wait): Likewise.
493 * remote-mips.c (common_open, mips_wait): Likewise.
494 * remote-m32r-sdi.c (m32r_resume): Likewise.
495
496 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
497 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
498 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
499 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
500 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
501
502 * solib-darwin.c: Include "regcache.h".
503 * solib-pa64.c: Include "regcache.h".
504 * solib-svr4.c: Include "regcache.h.".
505
506 * symfile.c: Do not mention read_pc or write_pc in comments.
507 * dink32-rom.c: Likewise.
508 * m32r-rom.c: Likewise.
509 * mips-tdep.c: Likewise.
510
511 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
512
513 * fork-child.c (startup_inferior): Move setting stop_pc ...
514 * infcmd.c (post_create_inferior): ... to here.
515
516 2009-05-04 Michael Snyder <msnyder@vmware.com>
517
518 * NEWS: Add item for reverse debugging commands.
519
520 2009-05-04 Pedro Alves <pedro@codesourcery.com>
521
522 * go32-nat.c (go32_stop): Delete.
523 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
524 (go32_create_inferior): Don't call go32_stop or
525 go32_kill_inferior.
526 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
527 here.
528 (init_go32_ops): Don't register go32_stop.
529
530 2009-05-02 Eli Zaretskii <eliz@gnu.org>
531
532 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
533 sym_name.
534
535 * infcall.c (find_function_addr): Avoid compiler warnings for
536 funaddr.
537
538 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
539
540 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
541 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
542
543 2009-05-01 Doug Evans <dje@google.com>
544
545 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
546 to thread_info.
547
548 2009-05-01 Eli Zaretskii <eliz@gnu.org>
549
550 * record.c (_initialize_record): Reformat and clarify doc strings
551 for stop-at-limit and insn-number-max.
552
553 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
554
555 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 Make specifiable the make_function_type type memory ownership.
558 * gdbtypes.c (make_function_type): New parameter `objfile', use it
559 explicitely instead of TYPE-initialized removed local variable
560 `objfile'. Describe `objfile' it in the function comment.
561 (lookup_function_type): Update make_function_type callers.
562 * gdbtypes.h (make_function_type): Update the prototype.
563 * jv-lang.c (java_link_class_type): Update make_function_type callers.
564 * dwarf2read.c (read_subroutine_type): Likewise.
565 * stabsread.c (read_type): Likewise.
566
567 2009-05-01 Eli Zaretskii <eliz@gnu.org>
568
569 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
570 printing a bogus "Thread <main>".
571 (go32_thread_alive): Don't return 1 for null_ptid.
572
573 * i386-tdep.c (i386_go32_init_abi): Override the number of
574 registers due to non-support of SSE.
575
576 2009-04-30 Anthony Green <green@moxielogic.com>
577
578 * configure.tgt: Link the moxie simulator in with gdb.
579
580 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
581
582 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
583 are present.
584
585 2009-04-30 Hui Zhu <teawater@gmail.com>
586 Michael Snyder <msnyder@vmware.com>
587
588 I386 Linux process record and replay support.
589
590 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
591 This struct has the argument for the function
592 "record_linux_system_call".
593 (i386_linux_intx80_sysenter_record): New function. Parse the
594 system call instruction and call function
595 "record_linux_system_call" to record execute log.
596 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
597 Set "i386_linux_intx80_sysenter_record" to
598 "i386_intx80_record" and "i386_sysenter_record".
599
600 2009-04-30 Hui Zhu <teawater@gmail.com>
601 Michael Snyder <msnyder@vmware.com>
602
603 I386 architecture process record and replay support.
604
605 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
606 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
607 instruction set.
608 (aflag, dflag, override, modrm, mod, reg, rm, ot,
609 i386_record_pc): New variables. Ditto.
610 (i386_record_modrm, i386_record_lea_modrm_addr,
611 i386_record_lea_modrm): New functions. Ditto.
612 (i386_process_record): New function. Parse the instruction in
613 address "addr" and record the values of registers and memory
614 that will be changed by this instruction.
615 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
616 "process_record" interface.
617 * i386-tdep.h (gdbarch_tdep): New function pointers
618 "i386_intx80_record" and "i386_sysenter_record" that point to
619 the function that can record "intx80" and "sysenter" execute
620 log.
621
622 2009-04-30 Hui Zhu <teawater@gmail.com>
623 Michael Snyder <msnyder@vmware.com>
624
625 * infrun.c (use_displaced_stepping): Return false if process
626 record and replay target is used.
627 (proceed): Call function "record_not_record_set" if pocess
628 record and replay target is used.
629
630 2009-04-30 Hui Zhu <teawater@gmail.com>
631 Michael Snyder <msnyder@vmware.com>
632
633 Linux process record and replay support.
634
635 * Makefile.in (ALLDEPFILES): Add linux-record.c.
636 (ALL_TARGET_OBS): Add linux-record.o.
637 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
638 (i[34567]86-*-linux*): Add linux-record.o.
639 * linux-record.c, linux-record.h: New file.
640
641 2009-04-30 Hui Zhu <teawater@gmail.com>
642 Michael Snyder <msnyder@vmware.com>
643
644 Process record and replay target.
645
646 * Makefile.in (SFILES): Add record.c.
647 (COMMON_OBS): Add record.o.
648 * record.c, record.h: New file.
649
650 2009-04-30 Hui Zhu <teawater@gmail.com>
651 Michael Snyder <msnyder@vmware.com>
652
653 * target.h (strata): New stratum "record_stratum".
654
655 2009-04-30 Hui Zhu <teawater@gmail.com>
656 Michael Snyder <msnyder@vmware.com>
657
658 GDBARCH interface for process record and replay.
659
660 * gdbarch.sh (process_record): This interface point to the
661 function that records the inferior execute log.
662
663 2009-04-29 Doug Evans <dje@google.com>
664
665 * i386-nat.c (child_post_startup_inferior): Delete, unused.
666
667 2009-04-29 Pedro Alves <pedro@codesourcery.com>
668
669 * breakpoint.c (print_exception_catchpoint): Access `b' directly
670 instead of `b->loc->owner'.
671 (print_mention_exception_catchpoint): Ditto.
672
673 2009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
676
677 2009-04-27 Tom Tromey <tromey@redhat.com>
678
679 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
680
681 2009-04-27 Jerome Guitton <guitton@adacore.com>
682
683 * symtab.c (append_exact_match_to_sals): New function, extracted
684 from expand_line_sal.
685 (expand_line_sal): Use append_exact_match_to_sals to append exact
686 matches. If none found, append all best items.
687
688 2009-04-27 Jerome Guitton <guitton@adacore.com>
689
690 * main.c (captured_main): Move gdbinit lookups after gdb_init.
691
692 2009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 PR gdb/9675:
695 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
696 (read_func_scope): Call inherit_abstract_dies.
697
698 2009-04-25 Eli Zaretskii <eliz@gnu.org>
699
700 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
701 sparc-sol2-nat.c and sparc-sol2-tdep.c.
702
703 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
704
705 2009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
706
707 ARI change: Use "/* ARI: rule */" pattern.
708 * utils.c: Update ARI patterns.
709 * gdb_dirent.h: Likewise.
710
711 2009-04-23 Anthony Green <green@moxielogic.com>
712
713 * MAINTAINERS: Add moxie target.
714 * configure.tgt: Add moxie-*-elf target.
715 * moxie-tdep.c: New file.
716 * moxie-tdep.h: New file.
717
718 2009-04-23 Joel Brobecker <brobecker@adacore.com>
719
720 * ada-lang.c: Remove an extra empty line. No code change.
721
722 2009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 Fix double free on error inserting the breakpoint instruction.
725 * breakpoint.c (create_breakpoints): Move the
726 update_global_location_list call to ...
727 (break_command_really): ... here together with the second local call
728 both unified after all the cleanups.
729
730 2009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
731 Tom Tromey <tromey@redhat.com>
732
733 * configure, config.in: Regenerate.
734 * configure.ac: Support for relocatable GDB datadir. Use
735 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
736 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
737 * top.c (init_main): Add "set data-directory".
738 * defs.h (gdb_datadir): Declare.
739 * main.c (gdb_datadir): New global.
740 (captured_main): Initialize gdb_datadir. Use relocate_directory.
741 (relocate_path): New function.
742 (relocate_directory): Likewise.
743 (get_init_files): Use relocate_path.
744 (README): Mention --with-gdb-datadir.
745
746 2009-04-23 Joel Brobecker <brobecker@adacore.com>
747
748 * ada-tasks (task_command_1): Call target_find_new_threads.
749
750 2009-04-23 Joel Brobecker <brobecker@adacore.com>
751
752 * stack.c (do_gdb_disassembly): Print the exception message if an
753 error was thrown while trying to perform the disassembly.
754
755 2009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
756
757 * varobj.c (free_variable): Replace free_current_contents by xfree.
758
759 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
760
761 * arm-linux-nat.c (fetch_register, store_register): Use
762 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
763 * arm-linux-tdep.c (arm_linux_supply_gregset,
764 arm_linux_collect_gregset): Likewise.
765 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
766 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
767
768 2009-04-22 Hui Zhu <teawater@gmail.com>
769
770 * stack.c (_initialize_stack): Set the default of
771 disassemble-next-line to off.
772
773 2009-04-21 Tom Tromey <tromey@redhat.com>
774
775 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
776 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
777
778 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
779
780 * configure.ac: Add quotes to not lose brackets in help text.
781 * configure: Rebuild.
782
783 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
784
785 * configure.ac: Don't postprocess Makefile in config.status.
786 Substitute GDB_NM_FILE. Don't substitute nm_h.
787 * Makefile.in (GDB_NM_FILE): Substitute.
788 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
789 * configure: Regenerate.
790 * gnulib/Makefile.in: Regenerate.
791
792 2009-04-21 Joseph Myers <joseph@codesourcery.com>
793
794 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
795 --with-htmldir): New.
796 * configure: Regenerate.
797
798 2009-04-21 Tom Tromey <tromey@redhat.com>
799
800 * configure: Rebuild.
801 * configure.ac: Use lower case for start of help strings. Clean
802 up --with-sysroot help.
803
804 2009-04-21 Tom Tromey <tromey@redhat.com>
805
806 * configure: Rebuild.
807 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
808 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
809 in help.
810
811 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
812
813 ARI fix: remove "%p".
814 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
815 (ia64_sigtramp_frame_this_id): Ditto.
816 (ia64_libunwind_frame_this_id): Ditto.
817 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
818 * symmisc.c (maintenance_info_psymtabs): Ditto.
819
820 2009-04-21 Joseph Myers <joseph@codesourcery.com>
821
822 * configure.ac (--with-relocated-sources): New.
823 * configure, config.in: Regenerate.
824 * source.c (add_substitute_path_rule): Remove static.
825 * source.h (add_substitute_path_rule): Declare.
826 * main.c: Include "source.h".
827 (captured_main): Add substitution rule if RELOC_SRCDIR.
828
829 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
830
831 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
832
833 2009-04-20 David Daney <ddaney@caviumnetworks.com>
834
835 * NEWS: Mention MIPS/Linux hardware watchpoint support.
836
837 2009-04-20 David Daney <ddaney@caviumnetworks.com>
838
839 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
840 (maint_show_dr, super_close): New variables.
841 (super_fetch_registers, super_store_registers): Make static.
842 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
843 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
844 (pt_watch_style): Define new enum.
845 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
846 Define new structs.
847 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
848 New variables.
849 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
850 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
851 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
852 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
853 (type_to_irw, fill_mask, try_one_watch)
854 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
855 (mips_linux_new_thread, populate_regs_from_watches)
856 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
857 (mips_linux_close): New functions.
858 (_initialize_mips_linux_nat): Register watchpoint functions with
859 the target_ops. Add show-debug-regs maintenance command.
860
861 2009-04-20 David Daney <ddaney@caviumnetworks.com>
862
863 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
864
865 2009-04-19 Pedro Alves <pedro@codesourcery.com>
866
867 * NEWS: Mention gdbserver support for x86 Windows CE.
868
869 2009-04-19 Eli Zaretskii <eliz@gnu.org>
870
871 * config/djgpp/fnchange.lst: Fix typos.
872
873 Set default host and target charsets in the DJGPP port.
874
875 * config/djgpp/config.sed (am_cv_langinfo_codeset)
876 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
877 in all configure scripts that define ac_cv_env_CPP_value.
878
879 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
880 Include langinfo.h.
881
882 * config/djgpp/nl_types.h: New file.
883
884 * config/djgpp/langinfo.h: New file.
885
886 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
887
888 2009-04-18 Carlos O'Donell <carlos@codesourcery.com>
889
890 * Makefile.in (MAKEHTML): Set to makeinfo --html.
891 (MAKEHTMLFLAGS): Set to empty.
892
893 2009-04-18 Eli Zaretskii <eliz@gnu.org>
894
895 * NEWS: Mention all new set/show commands added since GDB 6.8 was
896 released.
897
898 * go32-nat.c (go32_sysinfo): Check if the call to
899 __dpmi_get_capabilities fills the buffer with information, and
900 don't use the buffer if not.
901
902 2009-04-17 Tom Tromey <tromey@redhat.com>
903
904 * charset.c (_initialize_charset): Add special case for "646".
905
906 2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
907
908 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
909 * configure: Regenerate.
910 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
911 configure substitutions.
912 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
913
914 2009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
915
916 ARI fix: Do not use %p, replace by call to host_address_to_string
917 for host pointers.
918 * darwin-nat.c (darwin_xfer_partial): Apply change.
919 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
920 * gnu-nat.h (proc_debug): Ditto.
921 * symmisc.c (maintenance_info_symtabs): Ditto.
922 (maintenance_info_psymtabs): Ditto.
923 * windows-nat.c (handle_load_dll): Ditto.
924 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
925 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
926
927 2009-04-17 Joseph Myers <joseph@codesourcery.com>
928
929 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
930 --enable-64-bit-bfd.
931 (sparc-*-linux*): Likewise.
932
933 2009-04-17 Eli Zaretskii <eliz@gnu.org>
934
935 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
936 the NT family.
937
938 2009-04-16 Pedro Alves <pedro@codesourcery.com>
939
940 * remote.c (remote_query_attached): Fix pasto in packet_ok result
941 checking.
942
943 2009-04-16 Joel Brobecker <brobecker@adacore.com>
944
945 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
946 Revert the previous change. Might not be correct, actually.
947
948 2009-04-16 Joel Brobecker <brobecker@adacore.com>
949
950 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
951 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
952 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
953 Remove declaration. These are non-existent functions.
954
955 2009-04-16 Joel Brobecker <brobecker@adacore.com>
956
957 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
958 Fix a compilation warning on mips-irix due to casting from
959 a pointer of different size.
960
961 2009-04-16 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-lang.c (symtab_for_sym): Delete.
964 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
965
966 2009-04-16 Joel Brobecker <brobecker@adacore.com>
967
968 * ada-lang.c (extract_string): Delete.
969 (ada_main_name): Reimplement using target_read_string instead of
970 extract_string.
971
972 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
973
974 * m68klinux-nat.c: Remove obsolete comment.
975 (fetch_register, store_register): Don't call
976 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
977 which are always nops here.
978
979 2009-04-14 Tom Tromey <tromey@redhat.com>
980
981 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
982 (c_printstr): Likewise.
983 * charset.c: Include gdb_wait.h.
984 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
985 (find_charset_names): Use pexecute. Handle libiconv's output.
986 Detect errors.
987 (_initialize_charset): Use xstrdup.
988 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
989 cases.
990 (INTERMEDIATE_ENCODING): New define.
991 * configure, config.in: Rebuild.
992 * configure.ac: Check for btowc.
993
994 2009-04-15 Tom Tromey <tromey@redhat.com>
995
996 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
997
998 2009-04-15 Eli Zaretskii <eliz@gnu.org>
999
1000 * utils.c (parse_escape): Initialize target_char to pacify GCC.
1001
1002 2009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
1005
1006 2009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
1007
1008 ARI fix: sprintf rule.
1009 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
1010 * ada-lang.c (add_angle_brackets): Use xstrprintf.
1011 (ada_decode): Replace sprintf by xsnprintf.
1012 (find_old_style_renaming_symbol): Ditto.
1013 (ada_to_fixed_type_1, ada_enum_name): Ditto.
1014
1015
1016 2009-04-14 Joel Brobecker <brobecker@adacore.com>
1017
1018 * target.c (target_mourn_inferior): Call bfd_cache_close_all
1019 after having executed the target mourn_inferior routine.
1020
1021 2009-04-14 Eli Zaretskii <eliz@gnu.org>
1022
1023 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
1024 undefined.
1025
1026 2009-04-13 David Daney <ddaney@caviumnetworks.com>
1027
1028 * infrun.c (maybe_software_singlestep): New function.
1029 (resume): Call maybe_software_singlestep.
1030 (handle_inferior_event): Same.
1031
1032 2009-04-13 Tom Tromey <tromey@redhat.com>
1033
1034 * python/python-frame.c (frapy_richcompare): Return
1035 Py_NotImplemented, not an error. Handle Py_NE as well.
1036
1037 2009-04-13 Eli Zaretskii <eliz@gnu.org>
1038
1039 * charset.c (EILSEQ): Define if not defined by system headers.
1040
1041 2009-04-11 Eli Zaretskii <eliz@gnu.org>
1042
1043 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
1044 to be consistent with renaming config.intl.in into config_intl.in.
1045
1046 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
1047 consistent with the change from 2008-11-09.
1048
1049 2009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1050
1051 * gdbtypes.c: Remove excessive parentheses at the return keywords.
1052 * varobj.c (varobj_invalidate): Fix indentation.
1053 * varobj.c (varobj_invalidate): Fix formatting text width.
1054
1055 2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
1056
1057 Implement -exec-jump.
1058
1059 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
1060 * mi/mi-main.c (mi_cmd_exec_jump): New.
1061 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
1062
1063 2009-04-07 Doug Evans <dje@google.com>
1064
1065 * symfile.c (symbol_file_clear): Fix indentation.
1066
1067 2009-04-06 Mark Kettenis <kettenis@gnu.org>
1068
1069 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
1070
1071 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
1072
1073 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
1074 (ppc_linux_auxv_parse): New function.
1075 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
1076 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
1077
1078 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
1079
1080 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
1081 BFD to contents of SPU name note.
1082 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
1083 with "from_tty" argument 1 instead of 0.
1084
1085 2009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1086
1087 * dwarf2read.c
1088 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
1089 Create the symbol in local scope.
1090 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
1091
1092 2009-04-02 Keith Seitz <keiths@redhat.com>
1093
1094 * stabsread.c (read_member_functions): GCC may emit an extra space
1095 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
1096 whitespace when looking for these functions.
1097
1098 2009-04-01 Joel Brobecker <brobecker@adacore.com>
1099
1100 Change the default value for "set print frame-arguments" to scalars.
1101
1102 * stack.c (print_frame_arguments): Set initial value to "scalars".
1103
1104 2009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1105
1106 * mips-tdep.c (mips_numeric_register_alieses): New definition.
1107 (mips_gdbarch_init): Add user registers from
1108 mips_numeric_register_aliases.
1109
1110 2009-04-01 Joel Brobecker <brobecker@adacore.com>
1111
1112 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
1113
1114 2009-04-01 Joel Brobecker <brobecker@adacore.com>
1115
1116 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
1117 this is the last one.
1118
1119 2009-04-01 Pedro Alves <pedro@codesourcery.com>
1120
1121 * remote.c (append_resumption): New.
1122 (remote_vcont_resume): Use it.
1123
1124 2009-04-01 Joel Brobecker <brobecker@adacore.com>
1125
1126 * windows-nat.c (+windows_get_ada_task_ptid): New function.
1127 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
1128
1129 2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
1130 Keith Seitz <keiths@redhat.com>
1131 Jan Kratochvil <jan.kratochvil@redhat.com>
1132
1133 PR gdb/6817
1134 * Makefile.in (dbxread.o): Update.
1135 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
1136 * dwarf2read.c (GDB_FORM_cached_string): New.
1137 (read_partial_die): Use dwarf2_canonicalize_name.
1138 (dwarf2_linkage_name): Use dwarf2_name.
1139 (dwarf2_canonicalize_name): New.
1140 (dwarf2_name): Use dwarf2_canonicalize_name.
1141 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
1142 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
1143 * symtab.c (lookup_symbol_in_language): Canonicalize input before
1144 searching.
1145 * cp-name-parser.y: operator() requires two parameters,
1146 according to libiberty.
1147 * minsyms.c (lookup_minimal_symbol): Canonicalize input
1148 before searching.
1149 * NEWS: Update.
1150
1151 2009-03-31 Joel Brobecker <brobecker@adacore.com>
1152
1153 Provide support for (Ada) task-specific breakpoints.
1154
1155 * ada-lang.h (ada_get_task_number): Add declaration.
1156 (breakpoint_ada_task_match): Delete declaration.
1157 * ada-tasks.c (ada_get_task_number): Make non-static.
1158 * breakpoint.h (struct breakpoint): Add field "task".
1159 * breakpoint.c (print_one_breakpoint_location): Add handling of
1160 task-specific breakpoints.
1161 (create_breakpoint, create_breakpoints, find_condition_and_thread):
1162 New parameter "task".
1163 (break_command_really): Update calls to find_condition_and_thread
1164 and create_breakpoints.
1165 (breakpoint_re_set_one): Update call to find_condition_and_thread.
1166 Set b->task.
1167
1168 2009-03-31 Joel Brobecker <brobecker@adacore.com>
1169
1170 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
1171
1172 2009-03-31 Pedro Alves <pedro@codesourcery.com>
1173
1174 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
1175 if the thread's ptid without a thread id field is in the list
1176 before calling thread_change_ptid.
1177 (extended_remote_attach_1): In non-stop mode, do not rely on
1178 querying the current thread, instead, query the thread list, and
1179 select the first thread of the process.
1180 * gdbthread.h (first_thread_of_process): Declare.
1181 * thread.c (first_thread_of_process): Define.
1182
1183 2009-03-30 Stan Shebs <stan@codesourcery.com>
1184
1185 Make tracepoints into a type of breakpoint.
1186 * breakpoint.h (enum bptype): Add bp_tracepoint.
1187 (struct breakpoint): Add fields step_count, pass_count, actions.
1188 (get_tracepoint, get_tracepoint_by_number): Declare.
1189 (all_tracepoints): Declare.
1190 * breakpoint.c: Include tracepoint.h, readline.h.
1191 (ALL_TRACEPOINTS): Move here from tracepoint.c.
1192 (tracepoint_count): Ditto.
1193 (should_be_inserted): GDB does not insert tracepoints itself.
1194 (print_it_typical): Add tracepoint case.
1195 (bpstat_what): Ditto.
1196 (print_one_breakpoint_location): Ditto, and add printing for
1197 pass count, step count, and action list.
1198 (user_settable_breakpoint): Add tracepoint case.
1199 (allocate_bp_location): Ditto.
1200 (set_breakpoint_location_function): Ditto.
1201 (disable_breakpoints_in_shlibs): Ditto.
1202 (mention): Ditto.
1203 (break_command_really): Add argument traceflag, use to choose
1204 basic breakpoint type.
1205 (break_command_1): Pass extra argument.
1206 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
1207 (breakpoint_re_set_one): Add tracepoint case.
1208 (disable_command, enable_command): Ditto.
1209 (set_tracepoint_count): Move here from tracepoint.c.
1210 (trace_command): Move here from tracepoint.c and use
1211 break_command_really.
1212 (tracepoints_info): Move here from tracepoint.c and call
1213 breakpoints_info.
1214 (enable_trace_command): Move here from tracepoint.c and call
1215 enable_command.
1216 (disable_trace_command): Move here from tracepoint.c and call
1217 disable_command.
1218 (delete_trace_command): Move here from tracepoint.c and call
1219 delete_breakpoint.
1220 (trace_pass_command): Move here from tracepoint.c.
1221 (get_tracepoint_by_number): Ditto.
1222 (tracepoint_save_command): Ditto.
1223 (get_tracepoint): New function.
1224 (all_tracepoints): New function.
1225 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
1226 deprecate "enable trace" and "disable trace" commands.
1227 * tracepoint.h (struct tracepoint): Remove.
1228 (tracepoint_chain): Remove decl.
1229 (deprecated_create_tracepoint_hook): Remove decl.
1230 (deprecated_delete_tracepoint_hook): Remove decl.
1231 (deprecated_modify_tracepoint_hook): Remove decl.
1232 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
1233 (free_actions): Update signature.
1234 (validate_actionline): Update signature.
1235 (end_actions_pseudocommand): Declare.
1236 (while_stepping_pseudocommand): Declare.
1237 * tracepoint.c: Include breakpoint.h.
1238 (tracepoint_chain, tracepoint_count): Remove.
1239 (free_actions, make_cleanup_free_actions): Update signature.
1240 (trace_command, set_raw_tracepoint): Remove.
1241 (trace_mention): Remove.
1242 (tracepoints_info): Remove.
1243 (tracepoint_operation, map_args_over_tracepoints): Remove.
1244 (get_tracepoint_by_number): Remove.
1245 (enable_trace_command, disable_trace_command): Remove.
1246 (delete_trace_command, trace_pass_command): Remove.
1247 (trace_actions_command, read_actions): Update signature.
1248 (validate_actionline): Update signature, use bp loc.
1249 (encode_actions): Ditto.
1250 (download_tracepoint): New function, body of trace_start_command.
1251 (trace_start_command): Call it, use all_tracepoints.
1252 (tracepoint_save_command): Remove.
1253 (tracepoint_dump_command): Use get_tracepoint.
1254 (end_actions_pseudocommand): Make globally visible.
1255 (while_stepping_pseudocommand): Ditto.
1256 (_initialize_tracepoint): Move command definitions to breakpoint.c.
1257
1258 2009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1259
1260 Expose frames to Python.
1261 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
1262 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
1263 (python-frame.o): New target.
1264 * python/python-frame.c: New file.
1265 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
1266 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
1267 gdbpy_initialize_frames): New prototypes.
1268 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
1269 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
1270 entries.
1271 * stack.c (find_frame_funname): New function, factored out of
1272 print_frame.
1273 (print_frame): Call find_frame_funname.
1274 * stack.h (find_frame_funname): Add prototype.
1275
1276 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
1277
1278 Remove unused value_object attribute `owned_by_gdb'.
1279 * python/python-value.c (value_object): Remove owned_by_gdb
1280 attribute.
1281 (valpy_dealloc): Remove reference to self->owned_by_gdb.
1282 (valpy_new): Likewise.
1283 (value_to_value_object): Likewise.
1284
1285 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
1286
1287 Change gdb.Value.address from a method to an attribute.
1288 * python/python-value.c (value_object): Add `address' element.
1289 (valpy_dealloc): Decrement reference to self->address if set.
1290 (valpy_new): Initialize val_obj->address.
1291 (valpy_address): Rename to ...
1292 (valpy_get_address): ... this. Change signature from method to
1293 attribute. Update self->address if not set.
1294 (value_to_value_object): Initialize val_obj->address.
1295 (value_object_getset): Add `address' element.
1296 (value_object_methods): Remove `address' element.
1297
1298 2009-03-29 Andreas Schwab <schwab@linux-m68k.org>
1299
1300 * observer.sh: Set LANG/LC_ALL to C, not c.
1301
1302 2009-03-28 Kevin Buettner <kevinb@redhat.com>
1303
1304 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
1305 `char' is unsigned.
1306
1307 2009-03-28 Pedro Alves <pedro@codesourcery.com>
1308
1309 * remote.c (remote_stop_ns): If multi-process extensions are off,
1310 and GDB is requesting the whole process to stop, sent "vCont;t",
1311 not "vCont;t:-1"
1312
1313 2009-03-28 Pedro Alves <pedro@codesourcery.com>
1314
1315 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
1316 null inferior_ptid.
1317
1318 2009-03-27 Eli Zaretskii <eliz@gnu.org>
1319
1320 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
1321
1322 2009-03-26 Doug Evans <dje@google.com>
1323
1324 * thread.c (do_restore_current_thread_cleanup): Redo test for
1325 whether to restore old->inferior_ptid.
1326
1327 2009-03-26 Tom Tromey <tromey@redhat.com>
1328
1329 * breakpoint.c (resolve_sal_pc): Preserve original line number
1330 when skipping prologue.
1331
1332 2009-03-26 Doug Evans <dje@google.com>
1333
1334 * thread.c (inferior_thread) Remove "extern" in definition.
1335
1336 2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1337
1338 Add gdb.Value.is_optimized_out attribute.
1339 * python/python-value.c (valpy_get_is_optimized_out): New
1340 function.
1341 (value_object_getset): New variable.
1342 (value_object_type): Initialize tp_getset element.
1343
1344 2009-03-26 Joel Brobecker <brobecker@adacore.com>
1345
1346 Recognize missing DW_AT_location as <value optimized out>.
1347 * dwarf2read.c
1348 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
1349 Call add_symbol_to_list.
1350
1351 2009-03-25 Tom Tromey <tromey@redhat.com>
1352
1353 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
1354 * stack.c (print_this_frame_argument_p): Use check_typedef.
1355
1356 2009-03-25 Tom Tromey <tromey@redhat.com>
1357
1358 * configure: Rebuild.
1359 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
1360 Rearrange flags setting. Add comments.
1361
1362 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
1363
1364 * config/i386/nm-i386.h: Remove code within
1365 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
1366 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
1367 macro.
1368 * config/i386/nm-cygwin64.h: Ditto.
1369 * config/i386/nm-fbsd.h: Ditto.
1370 * config/i386/nm-go32.h: Ditto.
1371 * config/i386/nm-linux.h: Ditto.
1372 * config/i386/nm-linux64.h: Ditto.
1373
1374 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
1375
1376 ARI fix: "xasprintf" rule.
1377 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
1378
1379 2009-03-25 Pedro Alves <pedro@codesourcery.com>
1380
1381 * remote.c (remote_start_remote): In non-stop mode, call
1382 init_wait_for_inferior before adding threads and inferiors.
1383
1384 2009-03-25 Joel Brobecker <brobecker@adacore.com>
1385
1386 * breakpoint.c (breakpoint_thread_match): Split a large condition
1387 into several smaller conditions. No behavior change.
1388
1389 2009-03-25 Pedro Alves <pedro@codesourcery.com>
1390
1391 * infrun.c (infrun_thread_thread_exit): New.
1392 (_initialize_infrun): Attach it to the thread_exit observer.
1393 * thread.c (delete_thread_1): Always call the observer, passing it
1394 the silent flag.
1395 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
1396 SILENT, return immediately.
1397
1398 2009-03-25 Pedro Alves <pedro@codesourcery.com>
1399
1400 * infrun.c (normal_stop): Use has_stack_frames instead of
1401 target_has_stack.
1402 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
1403 when there is no thread selected.
1404 (mi_cmd_execute): Don't special case commands that can run without
1405 a valid selected thread.
1406 * top.c (execute_command): Don't special case commands that can
1407 run without a valid selected thread. Use has_stack_frames.
1408 * infcmd.c (ensure_valid_thread): New.
1409 (continue_1, step_1, jump_command, signal_command): Use it.
1410 (detach_command): Error out if there's no selected thread/inferior.
1411 * thread.c (print_thread_info): Allow having no thread selected.
1412 (switch_to_thread): Don't read the PC if there is no current thread.
1413 (do_restore_current_thread_cleanup): Don't record the current
1414 frame if there is no current thread.
1415 (make_cleanup_restore_current_thread): Don't read frame info if
1416 there is no selected thread.
1417 (_initialize_thread): Don't mark commands as
1418 "no_selected_thread_ok".
1419 * frame.c (get_current_frame): Error out if there is no valid
1420 selected thread.
1421 (has_stack_frames): Return false if there is no valid
1422 selected thread.
1423 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
1424 "no_selected_thread_ok".
1425 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1426 (get_cmd_no_selected_thread_ok): Delete.
1427 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
1428 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1429 Delete declaration.
1430 * stack.c (get_selected_block): Use has_stack_frames.
1431
1432 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
1433
1434 Fix size of FPSCR in Power 7 processors.
1435 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
1436 (PPC_FEATURE_HAS_DFP): New #define.
1437 (ppc_linux_read_description): Check for DFP feature instead of
1438 ISA 2.05 to decide on size of the FPSCR.
1439
1440 2009-03-25 Kevin Buettner <kevinb@redhat.com>
1441
1442 * mn10300-tdep.c (trad-frame.h): Don't include.
1443 (prologue-value.h): Include.
1444 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
1445 (struct mn10300_prologue): Define.
1446 (push_reg, translate_rreg, check_for_saved): New functions.
1447 (mn10300_analyze_prologue): Rewrite, using prologue-value
1448 machinery. Handle more instructions than before. Permit
1449 instructions to occur in any order.
1450 (mn10300_skip_prologue): Find the extents of the function
1451 in question; mn10300_analyze_prologue no longer does this.
1452 (mn10300_analyze_frame_prologue): New function.
1453 (mn10300_frame_base): New function.
1454 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
1455 implementation.
1456 (mn10300_frame_prev_register): Likewise.
1457 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
1458 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
1459 `this_frame'.
1460 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
1461
1462 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
1463
1464 Fix completer problem for filename completion on the first try.
1465
1466 * gdb/completer.h (gdb_completion_word_break_characters): New function.
1467 * gdb/completer.c: Include gdb_assert.h.
1468 (complete_line_internal_reason): New enum.
1469 (complete_line_internal): Change last argument type to
1470 complete_line_internal_reason.
1471 Modify function to handle the different complete_line_internal_reason
1472 argument values.
1473 (complete_line): Adapt to change in complete_line_internal.
1474 (command_completer): Ditto.
1475 (gdb_completion_word_break_characters): Implement new function.
1476 * top.c (init_main): Set rl_completion_word_break_hook to
1477 gdb_completion_word_break_characters.
1478
1479
1480 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
1481
1482 ARI fix: "strlen d_name" rule.
1483 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
1484
1485
1486 2009-03-24 Tom Tromey <tromey@redhat.com>
1487 Pedro Alves <pedro@codesourcery.com>
1488
1489 * configure, config.in: Rebuild.
1490 * configure.ac: Check for libiconvlist.
1491 * charset.c: Check HAVE_LIBICONVLIST.
1492 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
1493 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
1494 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
1495 Remove.
1496 (INTERNAL_CFLAGS_BASE): Update.
1497 (INTERNAL_LDFLAGS): Update.
1498 (CLIBS): Update.
1499
1500 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 * configure.ac: Initialize the variable $PREFER_CURSES.
1503 * configure: Regenerated.
1504
1505 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1506
1507 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
1508 * configure: Regenerated.
1509
1510 2009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
1511
1512 ARI fix: "strerror" rule.
1513 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
1514 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
1515
1516 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1517
1518 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
1519 before looking up the fields inside our struct type.
1520
1521 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1522
1523 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
1524 trying to resolve the type qualification.
1525
1526 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1527
1528 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
1529 we try to apply the attribute on the real type, rather than
1530 its associated typedef.
1531
1532 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1533
1534 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
1535 to make sure we try to get the modulus of the actual type, not the
1536 associated typedef.
1537
1538 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1539
1540 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
1541 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
1542 to get the real type, not the associated typedef.
1543
1544 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1545
1546 * ada-lang.c (ada_get_field_index): Add handling of the case
1547 when TYPE is a typedef of a struct.
1548
1549 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1550
1551 Add gdb_usleep as a portable version of usleep based on gdb_select.
1552 * gdb_usleep.h, gdb_usleep.c: New files.
1553 * Makefile.in (SFILES): Add gdb_usleep.c.
1554 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
1555 (COMMON_OBS): Add gdb_usleep.o.
1556 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
1557 by call to gdb_usleep.
1558
1559 2009-03-23 Joel Brobecker <brobecker@adacore.com>
1560
1561 * buildsym.c (end_symtab): If we ignore the subfiles, then
1562 unlink the associated symtabs if they were already allocated.
1563
1564 2009-03-23 Jerome Guitton <guitton@adacore.com>
1565
1566 Provide a way to force building of GDB with libcurses.
1567 * configure.ac: Add --with-curses.
1568 * configure: Regenerated.
1569
1570 2009-03-23 Tom Tromey <tromey@redhat.com>
1571
1572 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
1573 error message.
1574
1575 2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1576
1577 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
1578 solib_contains_address_p instead of searching.
1579
1580 2009-03-23 Tom Tromey <tromey@redhat.com>
1581
1582 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
1583 (iconv): Make 'inbuf' argument const.
1584 (convert_between_encodings): Use ICONV_CONST.
1585 (wchar_iterate): Likewise.
1586
1587 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
1588
1589 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
1590 dynamically loaded function.
1591 (LookupPrivilegeValueA): Ditto.
1592 (OpenProcessToken): Ditto.
1593 (AdjustTokenPrivileges): Rename and define placeholder for address of
1594 dynamically loaded function.
1595 (LookupPrivilegeValueA): Ditto.
1596 (OpenProcessToken): Ditto.
1597 (set_process_privilege): Remove check for loaded functions.
1598 (bad_OpenProcessToken): Define.
1599 (_initialize_loadable): Load token functions from advapi here, setting
1600 OpenProcessToken function to a dummy static function which always return
1601 error if OS doesn't support this functionality.
1602
1603 2009-03-22 Nicolas Roche <roche@adacore.com>
1604 Christopher Faylor <me+cygwin@cgf.cx>
1605
1606 * win32-nat.c (ctrl_c_handler): New function.
1607 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
1608 is run in a separate console.
1609
1610 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
1611
1612 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
1613 for dynamically loaded function.
1614 (DebugBreakProcess): Ditto.
1615 (DebugSetProcessKillOnExit): Ditto.
1616 (EnumProcessModules): Ditto.
1617 (GetModuleFileNameExA): Ditto.
1618 (GetModuleInformation): Ditto.
1619 (DebugActiveProcessStop): Rename and define placeholder for address of
1620 dynamically loaded function.
1621 (DebugBreakProcess): Ditto.
1622 (DebugSetProcessKillOnExit): Ditto.
1623 (EnumProcessModules): Ditto.
1624 (GetModuleFileNameExA): Ditto.
1625 (GetModuleInformation): Ditto.
1626 (psapi_loaded): Delete.
1627 (get_module_name): Don't check psapi_loaded, just rely on the fact that
1628 dynamically loaded functions will return failure if they weren't
1629 previously found.
1630 (has_detach_ability): Delete.
1631 (windows_attach): Remove call to has_detach_ability (). Just rely on
1632 functions being callable.
1633 (bad_DebugActiveProcessStop): Define.
1634 (bad_DebugBreakProcess): Ditto.
1635 (bad_DebugSetProcessKillOnExit): Ditto.
1636 (bad_EnumProcessModules): Ditto.
1637 (bad_GetModuleFileNameExA): Ditto.
1638 (bad_GetModuleInformation): Ditto.
1639 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
1640 dynamic storage here, setting nonexistent functions to dummy static
1641 functions which always return error.
1642
1643 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1644
1645 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
1646 to the about_to_proceed observer notification.
1647 (mi_about_to_proceed): New.
1648 (mi_on_resume): Only output ^running and the prompt here if the
1649 target was proceeded.
1650 * breakpoint.c (breakpoint_proceeded): New static.
1651 (breakpoint_about_to_proceed): New.
1652 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
1653 the about_to_proceed observer notification.
1654 * inferior.h (breakpoint_proceeded): Delete declaration.
1655 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
1656 Notify the about_to_proceed observers.
1657 (struct inferior_status): Delete breakpoint_proceeded member.
1658 (save_inferior_status): Don't save it.
1659 (restore_inferior_status): Don't restore it.
1660 * mi-main.h (mi_proceeded): Declare.
1661 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
1662 a command.
1663
1664 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1665
1666 * gdbthread.h (struct thread_info): Add in_infcall member.
1667 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
1668 Remove reverences to suppress_resume_observer. Refresh
1669 `call_thread' after returning from `proceed'.
1670 * infcmd.c (suppress_resume_observer): Delete.
1671 * inferior.h (suppress_resume_observer): Delete declaration.
1672 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
1673 inferior function.
1674 * thread.c (set_running): Remove references to
1675 suppress_resume_observer.
1676 * infrun.c (struct inferior_status): Add in_infcall member.
1677 (save_inferior_status): Save it.
1678 (restore_inferior_status): Restore it.
1679
1680 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1681
1682 * infcall.c (run_inferior_call): Remove references to
1683 suppress_stop_observer.
1684 * infcmd.c (suppress_stop_observer): Delete.
1685 (finish_command_continuation): Remove NOTE. Don't clear
1686 suppress_stop_observer anymore.
1687 (finish_command_continuation_free_arg): Likewise.
1688 (finish_forward): Remove references to suppress_stop_observer.
1689 Call normal_stop observer if we haven't already.
1690 * inferior.h (suppress_stop_observer): Delete.
1691 * infrun.c (normal_stop): When deciding to suppress the
1692 normal_stop observer, check for proceed_to_finish instead of
1693 suppress_stop_observer.
1694
1695 2009-03-22 Pedro Alves <pedro@codesourcery.com>
1696
1697 * symfile.c (symfile_relocate_debug_section): Remove check for
1698 SEC_DEBUGGING.
1699
1700 2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1701 Jim Blandy <jimb@red-bean.com>
1702 Thiago Jung Bauermann <bauerman@br.ibm.com>
1703 Tom Tromey <tromey@redhat.com>
1704
1705 Miscellaneous fixes to the Python code.
1706 * python/python-cmd.c (cmdpy_init): Accept keyword
1707 arguments.
1708 * python/python-value.c (valpy_string): Accept keyword
1709 arguments.
1710 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
1711 Do not call value_to_value_object on NULL RES_VAL.
1712 (value_object_methods): Change `string' entry to also accept
1713 keyword arguments.
1714 (convert_value_from_python): Return a copy of the value if obj is
1715 a gdb.Value object.
1716 (value_object_methods): Mark the `string' method as accepting
1717 keywords, and show method "prototype" in the doc string.
1718 * python/python.c (get_parameter): Don't return inside a
1719 TRY_CATCH.
1720
1721 2009-03-20 Tom Tromey <tromey@redhat.com>
1722
1723 Add support for convenience functions in Python.
1724 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
1725 (SUBDIR_PYTHON_SRCS): Add python-function.c.
1726 (python-function.o): New target.
1727 * eval.c: Include "python/python.h" and <ctype.h>.
1728 (evaluate_subexp_standard): Handle values of type
1729 TYPE_CODE_INTERNAL_FUNCTION.
1730 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
1731 * parse.c (write_exp_string): Remove duplicate word in comment.
1732 * python/python-function.c: New file.
1733 * python/python-internal.h (gdbpy_initialize_functions): Add
1734 prototype.
1735 * python/python.c (_initialize_python): Call
1736 gdbpy_initialize_functions.
1737 * valprint.c (value_check_printable): Handle values of type
1738 TYPE_CODE_INTERNAL_FUNCTION.
1739 * value.c: Include "cli/cli-decode.h".
1740 (internal_function): New struct.
1741 (functionlist, internal_fn_type): New static variables.
1742 (lookup_only_internalvar,
1743 lookup_internalvar): Add const qualifier to name argument.
1744 (create_internalvar): Likewise. Initialize new field.
1745 (set_internal_var): Fix typo in comment. Don't allow assignment
1746 to canonical variable.
1747 (value_create_internal_function, value_internal_function_name,
1748 call_internal_function, function_command, function_destroyer,
1749 add_internal_function): New functions.
1750 (_initialize_values): Create `function' placeholder command.
1751 Initialize internal_fn_type.
1752 * value.h (lookup_only_internalvar, create_internalvar,
1753 lookup_internalvar): Add const qualifier to name argument.
1754 (internal_function_fn, add_internal_function, call_internal_function,
1755 value_internal_function_name): Add prototypes.
1756 (struct internalvar) <canonical>: New field.
1757
1758 2009-03-20 Tom Tromey <tromey@redhat.com>
1759
1760 * c-lang.c (evaluate_subexp_c): Call check_typedef.
1761
1762 2009-03-20 Tom Tromey <tromey@redhat.com>
1763 Julian Brown <julian@codesourcery.com>
1764
1765 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
1766 PR i18n/9401, PR exp/9613:
1767 * NEWS: Update
1768 * value.h (value_typed_string): Declare.
1769 (val_print_string): Update.
1770 * valprint.h (print_char_chars): Update.
1771 * valprint.c (print_char_chars): Add type argument. Update.
1772 (val_print_string): Likewise.
1773 * valops.c (value_typed_string): New function.
1774 * utils.c (host_char_to_target): New function.
1775 (parse_escape): Use host_char_to_target, host_hex_value. Update.
1776 Remove '^' case.
1777 (no_control_char_error): Remove.
1778 * typeprint.c (print_type_scalar): Update.
1779 * scm-valprint.c (scm_scmval_print): Update.
1780 * scm-lang.h (scm_printchar, scm_printstr): Update.
1781 * scm-lang.c (scm_printchar): Add type argument.
1782 (scm_printstr): Likewise.
1783 * printcmd.c (print_formatted): Update.
1784 (print_scalar_formatted): Update.
1785 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
1786 Handle '%lc' and '%ls'.
1787 * parser-defs.h (struct typed_stoken): New type.
1788 (struct stoken_vector): Likewise.
1789 (write_exp_string_vector): Declare.
1790 * parse.c (write_exp_string_vector): New function.
1791 * p-valprint.c (pascal_val_print): Update.
1792 * p-lang.h (is_pascal_string_type, pascal_printchar,
1793 pascal_printstr): Update.
1794 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
1795 Add 'char_type' argument.
1796 (pascal_emit_char): Add type argument.
1797 (pascal_printchar): Likewise.
1798 (pascal_printstr): Likewise.
1799 * objc-lang.c (objc_emit_char): Add type argument.
1800 (objc_printchar): Likewise.
1801 (objc_printstr): Likewise.
1802 * macroexp.c (get_character_constant): Handle unicode characters.
1803 Use c_parse_escape.
1804 (get_string_literal): Handle unicode strings. Use
1805 c_parse_escape.
1806 * m2-valprint.c (print_unpacked_pointer): Update.
1807 (m2_print_array_contents): Update.
1808 (m2_val_print): Update.
1809 * m2-lang.c (m2_emit_char): Add type argument.
1810 (m2_printchar): Likewise.
1811 (m2_printstr): Likewise.
1812 * language.h (struct language_defn) <la_printchar>: Add type
1813 argument.
1814 <la_printstr, la_emitchar>: Likewise.
1815 (LA_PRINT_CHAR): Likewise.
1816 (LA_PRINT_STRING): Likewise.
1817 (LA_EMIT_CHAR): Likewise.
1818 * language.c (unk_lang_emit_char): Add type argument.
1819 (unk_lang_printchar): Likewise.
1820 (unk_lang_printstr): Likewise.
1821 * jv-valprint.c (java_val_print): Update.
1822 * jv-lang.c (java_emit_char): Add type argument.
1823 * f-valprint.c (f_val_print): Update.
1824 * f-lang.c (f_emit_char): Add type argument.
1825 (f_printchar): Likewise.
1826 (f_printstr): Likewise.
1827 * expprint.c (print_subexp_standard): Update.
1828 * charset.h (target_wide_charset): Declare.
1829 (c_target_char_has_backslash_escape, c_parse_backslash,
1830 host_char_print_literally, host_char_to_target,
1831 target_char_to_host, target_char_to_control_char): Remove.
1832 (enum transliterations): New type.
1833 (convert_between_encodings): Declare.
1834 (HOST_ESCAPE_CHAR): New define.
1835 (host_letter_to_control_character, host_hex_value): Declare.
1836 (enum wchar_iterate_result): New enum.
1837 (struct wchar_iterator): Declare.
1838 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
1839 wchar_push_back): Declare.
1840 * charset-list.h: New file.
1841 * c-valprint.c (textual_name): New function.
1842 (textual_element_type): Handle wide character types.
1843 (c_val_print): Pass original type to textual_element_type. Handle
1844 wide character types.
1845 (c_value_print): Use textual_element_type. Pass original type of
1846 value to val_print.
1847 * c-lang.h (enum c_string_type): New type.
1848 (c_printchar, c_printstr): Update.
1849 * c-lang.c (classify_type): New function.
1850 (print_wchar): Likewise.
1851 (c_emit_char): Add type argument. Handle wide characters.
1852 (c_printchar): Likewise.
1853 (c_printstr): Add type argument. Handle wide and multibyte
1854 character sets.
1855 (convert_ucn): New function.
1856 (emit_numeric_character): Likewise.
1857 (convert_octal): Likewise.
1858 (convert_hex): Likewise.
1859 (ADVANCE): New macro.
1860 (convert_escape): New function.
1861 (parse_one_string): Likewise.
1862 (evaluate_subexp_c): Likewise.
1863 (exp_descriptor_c): New global.
1864 (c_language_defn): Use exp_descriptor_c.
1865 (cplus_language_defn): Likewise.
1866 (asm_language_defn): Likewise.
1867 (minimal_language_defn): Likewise.
1868 (charset_for_string_type): New function.
1869 * c-exp.y (%union): Add 'svec' and 'tsval'.
1870 (CHAR): New token.
1871 (exp): Add CHAR production.
1872 (string_exp): Rewrite.
1873 (exp) <string_exp>: Rewrite.
1874 (tempbuf): Now global.
1875 (tempbuf_init): New global.
1876 (parse_string_or_char): New function.
1877 (yylex) <tempbuf>: Now global.
1878 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
1879 Remove.
1880 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
1881 (c_parse_escape): New function.
1882 * auxv.c (fprint_target_auxv): Update.
1883 * ada-valprint.c (ada_emit_char): Add type argument.
1884 (ada_printchar): Likewise.
1885 (ada_print_scalar): Update.
1886 (printstr): Add type argument. Update calls to ada_emit_char.
1887 (ada_printstr): Add type argument.
1888 (ada_val_print_array): Update.
1889 (ada_val_print_1): Likewise.
1890 * ada-lang.c (emit_char): Add type argument.
1891 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
1892 type arguments.
1893 * gdb_locale.h: Include langinfo.h.
1894 * charset.c (_initialize_charset): Set default host charset from
1895 the locale. Don't register charsets. Add target-wide-charset
1896 commands. Call find_charset_names.
1897 (struct charset, struct translation): Remove.
1898 (GDB_DEFAULT_HOST_CHARSET): Remove.
1899 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
1900 (target_wide_charset_name): New global.
1901 (show_host_charset_name): Handle "auto".
1902 (show_target_wide_charset_name): New function.
1903 (host_charset_enum, target_charset_enum): Remove.
1904 (charset_enum): New global.
1905 (all_charsets, register_charset, lookup_charset, all_translations,
1906 register_translation, lookup_translation): Remove.
1907 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
1908 (iso_8859_print_literally, iso_8859_to_control,
1909 iso_8859_family_charset): Remove.
1910 (ebcdic_print_literally, ebcdic_to_control,
1911 ebcdic_family_charset): Remove.
1912 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
1913 register_iconv_charsets): Remove.
1914 (target_wide_charset_be_name, target_wide_charset_le_name): New
1915 globals.
1916 (identity_either_char_to_other): Remove.
1917 (set_be_le_names, validate): New functions.
1918 (backslashable, backslashed, represented): Remove.
1919 (default_c_target_char_has_backslash_escape): Remove.
1920 (default_c_parse_backslash, iconv_convert): Remove.
1921 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
1922 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
1923 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
1924 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
1925 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
1926 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
1927 (table_convert_char, table_translation, simple_table_translation):
1928 Remove.
1929 (current_host_charset, current_target_charset,
1930 c_target_char_has_backslash_escape_func,
1931 c_target_char_has_backslash_escape_baton): Remove.
1932 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
1933 (host_char_to_target_func, host_char_to_target_baton): Remove.
1934 (target_char_to_host_func, target_char_to_host_baton): Remove.
1935 (cached_iconv_host_to_target, cached_iconv_target_to_host):
1936 Remove.
1937 (lookup_charset_or_error, check_valid_host_charset): Remove.
1938 (set_host_and_target_charsets): Remove.
1939 (set_host_charset, set_target_charset): Remove.
1940 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
1941 (set_target_wide_charset_sfunc): New function.
1942 (show_charset): Print target wide character set.
1943 (host_charset, target_charset): Rewrite.
1944 (target_wide_charset): New function.
1945 (c_target_char_has_backslash_escape): Remove.
1946 (c_parse_backslash): Remove.
1947 (host_letter_to_control_character): New function.
1948 (host_char_print_literally): Remove.
1949 (host_hex_value): New function.
1950 (target_char_to_control_char): Remove.
1951 (cleanup_iconv): New function.
1952 (convert_between_encodings): New function.
1953 (target_char_to_host): Remove.
1954 (struct wchar_iterator): Define.
1955 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
1956 wchar_push_back): New functions.
1957 (do_cleanup_iterator): New function.
1958 (char_ptr): New typedef.
1959 (charsets): New global.
1960 (add_one, find_charset_names): New functions.
1961 (default_charset_names): New global.
1962 (auto_host_charset_name): Likewise.
1963 * aclocal.m4, config.in, configure: Rebuild.
1964 * configure.ac: Call AM_LANGINFO_CODESET.
1965 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
1966 (AM_ICONV): Invoke earlier.
1967 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
1968 LIBICONV_LIBDIR. Check for libiconv in build tree.
1969 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
1970 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
1971 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
1972 * gdb_obstack.h (obstack_grow_wstr): New define.
1973 * gdb_wchar.h: New file.
1974 * defs.h: Include it.
1975
1976 2009-03-20 Tom Tromey <tromey@redhat.com>
1977 Jan Kratochvil <jan.kratochvil@redhat.com>
1978
1979 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
1980 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
1981 typedef.
1982 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
1983 SYMBOL_TYPE result.
1984 * ada-typeprint.c (print_array_type): Do the NULL check
1985 unconditionally.
1986
1987 2009-03-19 Tom Tromey <tromey@redhat.com>
1988
1989 * utils.c (do_obstack_free): New function.
1990 (make_cleanup_obstack_free): Likewise.
1991 * defs.h (make_cleanup_obstack_free): Declare.
1992
1993 2009-03-18 Doug Evans <dje@google.com>
1994
1995 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
1996 int, not a long long.
1997 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
1998
1999 * expprint.c (dump_raw_expression): Print note if non-NULL.
2000
2001 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
2002 backwards.
2003
2004 2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
2005
2006 * Makefile.in: Update license to GPLv3.
2007 * ada-exp.y: Update license to GPLv3.
2008 * ada-lex.l: Update license to GPLv3.
2009 * c-exp.y: Update license to GPLv3.
2010 * cp-name-parser.y: Update license to GPLv3.
2011 * darwin-nat-info.c: Update license to GPLv3.
2012 * f-exp.y: Update license to GPLv3.
2013 * gdb_thread_db.h: Update license to GPLv3.
2014 * hppanbsd-nat.c: Update license to GPLv3.
2015 * hppanbsd-tdep.c: Update license to GPLv3.
2016 * hppaobsd-tdep.c: Update license to GPLv3.
2017 * jv-exp.y: Update license to GPLv3.
2018 * m2-exp.y: Update license to GPLv3.
2019 * objc-exp.y: Update license to GPLv3.
2020 * p-exp.y: Update license to GPLv3.
2021 * reply_mig_hack.awk: Update license to GPLv3.
2022 * reverse.c: Update license to GPLv3.
2023 * xtensa-xtregs.c: Update license to GPLv3.
2024
2025 2009-03-18 Pedro Alves <pedro@codesourcery.com>
2026
2027 * remote.c (remote_close): Don't call generic_mourn_inferior.
2028 (remote_mourn_1): Call generic_mourn_inferior after closing the
2029 target.
2030
2031 2009-03-18 Pedro Alves <pedro@codesourcery.com>
2032
2033 * remote.c (remote_start_remote): Add missing call to
2034 init_wait_for_inferior in non-stop mode.
2035
2036 2009-03-18 Pedro Alves <pedro@codesourcery.com>
2037
2038 * breakpoint.c (bpstat_should_step): Only consider software
2039 watchpoints that have a location.
2040
2041 2009-03-17 Joel Brobecker <brobecker@adacore.com>
2042
2043 Add a target_ops parameter to the to_kill method in struct target_ops.
2044
2045 * target.h (struct target_ops): Add a "target_ops *" parameter to
2046 method to_kill.
2047 (target_kill): Remove macro. Add declaration.
2048 * target.c (debug_to_kill): Delete, no longer necessary.
2049 (target_kill): New function.
2050 (update_current_target): Stop inheriting the to_kill method.
2051 Do not de_fault it to no_process either.
2052 (setup_target_debug): Do not set current_target.to_kill.
2053 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
2054 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
2055 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
2056 accordingly.
2057
2058 2009-03-17 Doug Evans <dje@google.com>
2059
2060 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
2061 glibc 2.3.2 and earlier.
2062
2063 2009-03-17 Joel Brobecker <brobecker@adacore.com>
2064
2065 * frame.c (get_prev_frame_1): Do not perform the inner_frame
2066 sanity check if this_frame is not NORMAL.
2067 (frame_id_inner): Update the description of this function.
2068
2069 2009-03-17 Hui Zhu <teawater@gmail.com>
2070
2071 * stack.c: Change the introduce of "disassemble-next-line".
2072
2073 2009-03-17 Pedro Alves <pedro@codesourcery.com>
2074
2075 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
2076 declare as extern.
2077
2078 2009-03-17 Hui Zhu <teawater@gmail.com>
2079
2080 * stack.c: Include valprint.h.
2081 (disassemble_next_line): New enum.
2082 (show_disassemble_next_line): New function. Show the current
2083 value of disassemble-next-line.
2084 (gdb_disassembly_stub_args): New struct for argument passing
2085 between function do_gdb_disassembly and function
2086 gdb_disassembly_stub.
2087 (gdb_disassembly_stub): New function. Helper for
2088 gdb_disassembly.
2089 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
2090 the exception from the gdb_disassembly because it will be
2091 broken by filter sometime.
2092 (print_frame_info): If disassemble-next-line is set to auto
2093 or on and doesn't have the line debug messages for $pc,
2094 output the next instruction.
2095 If disassemble-next-line is set to on and there is line debug
2096 messages, output assembly codes for next line.
2097 (_initialize_stack): Make the "set disassemble-next-line"
2098 command an auto-boolean command. Change its class to
2099 class_stack. Place it in the top level set list. Extend help
2100 to describe the auto mode.
2101
2102 2009-03-17 Pedro Alves <pedro@codesourcery.com>
2103
2104 * infrun.c (normal_stop): Don't overwrite old_chain.
2105
2106 2009-03-16 Joel Brobecker <brobecker@adacore.com>
2107
2108 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
2109 which is undefined, by call to regcache_invalidate, which should
2110 do what the original author wanted to do.
2111
2112 2009-03-16 Joel Brobecker <brobecker@adacore.com>
2113
2114 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
2115 (mips_create_inferior): Likewise.
2116
2117 2009-03-16 Joel Brobecker <brobecker@adacore.com>
2118
2119 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
2120
2121 2009-03-16 Joel Brobecker <brobecker@adacore.com>
2122
2123 * darwin-nat.c (darwin_resume): Fix a compiler warning when
2124 building on x86_64-darwin.
2125
2126 2009-03-16 Tristan Gingold <gingold@adacore.com>
2127
2128 * configure.tgt: Add handling for x86_64-darwin.
2129
2130 2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
2133
2134 2009-03-15 Joel Brobecker <brobecker@adacore.com>
2135
2136 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
2137 Use the ops parameter to get to the target beneath, rather than
2138 using the current_target global. Using the current_target global
2139 was an unintended accident.
2140
2141 2009-03-15 Joel Brobecker <brobecker@adacore.com>
2142
2143 Fix an error happening while loading symbols from a core file
2144 (on AIX).
2145
2146 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
2147 to detect whether we're debugging a core file or not.
2148
2149 2009-03-15 Joel Brobecker <brobecker@adacore.com>
2150
2151 Modernize the aix-thread later by getting rid of the base_target
2152 global. This brings back to life the AIX port which was otherwise
2153 crashing all the time.
2154
2155 * aix-thread.c (base_target): Delete.
2156 (pd_enable): Do not set base_target.
2157 (aix_thread_attach): Use find_target_beneath instead of base_target.
2158 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
2159 (aix_thread_fetch_registers, aix_thread_store_registers),
2160 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
2161 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
2162 (aix_thread_kill): Delete. Does not seem necessary.
2163 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
2164
2165 2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 * stack.c (return_command <retval_exp>): New variables retval_expr
2168 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
2169 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
2170 if RETURN_TYPE is NULL.
2171
2172 2009-03-14 Pedro Alves <pedro@codesourcery.com>
2173
2174 * remote.c (PACKET_qAttached): New.
2175 (remote_query_attached): New.
2176 (remote_add_inferior): Add new `attached' argument. Handle it.
2177 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
2178 -1 to remote_add_inferior in new parameter.
2179 (extended_remote_attach_1): Adjust to pass 1 to
2180 remote_add_inferior in the new parameter.
2181 (extended_remote_create_inferior_1): Adjust to pass 0 to
2182 remote_add_inferior in the new parameter.
2183 (_initialize_remote): Add "set/show remote query-attached-packet"
2184 commands.
2185
2186 2009-03-13 Tom Tromey <tromey@redhat.com>
2187
2188 * symtab.c (lookup_symbol_in_language): Use a cleanup.
2189
2190 2009-03-13 Doug Evans <dje@google.com>
2191
2192 * exceptions.h: Clean up some comments on catch_exceptions usage.
2193 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
2194 catch_exceptions.
2195
2196 2009-02-17 Joel Brobecker <brobecker@adacore.com>
2197
2198 The following patch helps getting rid of a warning inside solib-som.c.
2199
2200 * source.c (source_full_path_of): Constify parameter filename.
2201 * defs.h (source_full_path_of): Update declaration accordingly.
2202
2203 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2204
2205 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
2206 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
2207 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
2208
2209 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2210
2211 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
2212 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
2213
2214 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2215
2216 * ada-tasks.c (ada_task_is_alive): Move up and make static.
2217 * ada-lang.h (ada_task_is_alive): Remove declaration.
2218
2219 2009-03-12 Jerome Guitton <guitton@adacore.com>
2220
2221 * ada-lang.c (ada_delta): Change the type of numerators and
2222 denominators to DOUBLEST, as they may not fit into a long.
2223 (scaling_factor): Ditto.
2224
2225 2009-03-12 Jerome Guitton <guitton@adacore.com>
2226
2227 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
2228
2229 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2230
2231 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
2232 types, if we are unable to determine the actual symbol type
2233 from its tag, then use the static approximation instead.
2234
2235 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2236
2237 Fix crash printing packed record with packed array.
2238
2239 * ada-lang.c (ada_modulus_from_name): New function.
2240 (ada_modulus): In the case where the type length is bigger than
2241 the size of the type used to hold the bounds, try determining
2242 the modulus from the type name.
2243 (ada_value_primitive_packed_val): Fix bug in the computation of
2244 ntarg causing an out-of-buffer invalid access.
2245
2246 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2247
2248 Fix segfault when printing short_integer'last.
2249
2250 * ada-lang.c (ada_find_any_type): Search in the primitive types
2251 if a symbol could not be found.
2252
2253 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2254
2255 * ada-tasks.c (task_states,long_task_states): Add new states
2256 Activating and Acceptor_Delay_Sleep. Update the description
2257 of state Acceptor_Sleep.
2258
2259 2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
2260
2261 Fix a build failure on Darwin following some changes in
2262 the profile of some target_ops methods.
2263
2264 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
2265 where missing.
2266 (darwin_stop_inferior, darwin_detach): Likewise.
2267
2268 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
2269
2270 Include token in ^running notification for CLI commands.
2271
2272 * mi/mi-main.c (mi_execute_command): Set current_token here.
2273 (mi_cmd_execute): Do not set current_token here.
2274
2275 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
2276
2277 Fix MI timings.
2278
2279 * mi/mi-main.c (mi_print_timing_maybe): New.
2280 (captured_mi_execute_command): Simplify. Output timings to
2281 CLI commands, too.
2282 (mi_execute_async_cli_command): Do not print timings.
2283 * mi/mi-main.h (mi_print_timing_maybe): Declare.
2284 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
2285
2286 2009-03-12 Jerome Guitton <guitton@adacore.com>
2287
2288 * xcoffread.c (process_linenos): Check if the line in the
2289 include table refers to the main source file and, if so,
2290 add them to the main subfile.
2291
2292 2009-03-12 Joel Brobecker <brobecker@adacore.com>
2293
2294 Fix a build failure on AIX introduced after a change in the profile
2295 of some of the "methods" in the target_ops structure.
2296 * aix-thread.c: Add missing target_ops parameter throughout.
2297
2298 Implement Ada task switching on AIX.
2299 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
2300 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
2301
2302 2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
2303
2304 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
2305 value_mark and value_free_to_mark.
2306 * objfiles.c (free_objfile): Call objfile_free_data before
2307 freeing the BFD.
2308
2309 2009-03-10 Hui Zhu <teawater@gmail.com>
2310
2311 * disasm.c (gdb_disassembly): Remove unused argument
2312 "line_num".
2313 * disasm.h (gdb_disassembly): Ditto.
2314 * cli/cli-cmds.c (print_disassembly): Ditto.
2315 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
2316
2317 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
2318
2319 * solib.c (solib_contains_address_p): New function.
2320 (solib_name_from_address): Use it.
2321 * printcmd.c (display_uses_solib_p): Use it.
2322 * solib.h (solib_contains_address_p): Declare it.
2323
2324 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * varobj.c (free_variable): Call value_free.
2327
2328 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2329
2330 PR gdb/9873:
2331 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
2332 Move the variable `macinfo_type' out of the loop. Create a new
2333 processing pass before the current one to pre-create `current_file'.
2334 New complaint on misplaced zero/non-zero definitions/includes.
2335 Skip first DW_MACINFO_start_file with `at_commandline' set.
2336
2337 2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
2338
2339 * solib.c (reload_shared_libraries): Give
2340 inferior a chance to reset solib breakpoint.
2341 Reinit frame cache.
2342
2343 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
2344
2345 * windows-nat.c (dr): Redefine to use largest possible integer which
2346 holds a pointer.
2347 (cygwin_set_dr): Avoid coercion.
2348
2349 2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
2350
2351 * windows-nat.c (windows_create_inferior): Implement --tty handling on
2352 non-cygwin.
2353
2354 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2355
2356 Rename solib_address to solib_name_from_address.
2357 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
2358 (disable_breakpoints_in_unloaded_shlib): Update.
2359 * printcmd.c (display_uses_solib_p): Likewise.
2360 * stack.c (print_frame): Likewise.
2361 * solib.c: Rename.
2362 * solib.h: Rename.
2363
2364 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2365
2366 * printcmd.c (do_one_display): Reparse exp_string.
2367 (display_uses_solib_p): New function.
2368 (clear_dangling_display_expressions): New function.
2369 (_initialize_printcmd): Add observer.
2370 * solib.c (no_shared_libraries): Swap order of calls to
2371 clear_solib and objfile_purge_solibs.
2372
2373 2009-03-05 Joel Brobecker <brobecker@adacore.com>
2374
2375 Implement the target-specific part of Ada tasking support
2376 on Tru64.
2377
2378 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
2379 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
2380
2381 2009-03-05 Joel Brobecker <brobecker@adacore.com>
2382
2383 Get rid of the global "base_target" and use "find_target_beneath"
2384 to find the underlying target.
2385 * dec-thread.c (base_target): Delete.
2386 (enable_dec_thread): Remove assignement to base_target.
2387 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
2388 (dec_thread_fetch_registers, dec_thread_store_registers)
2389 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
2390 Update the function profile if necessary.
2391 Use find_target_beneath to call the same method but from
2392 the underlying target, removing the need for "base_target".
2393
2394 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
2395 Fix a copy/paste error in a few debug traces...
2396
2397 * solib-osf.c (init_so): Use a simpler method for computing
2398 the size of lm_info structure. This also gets rid of warning
2399 emitted by the compiler.
2400
2401 2009-03-05 Pedro Alves <pedro@codesourcery.com>
2402
2403 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
2404 duplicates of permanent breakpoints.
2405
2406 2009-03-04 Pedro Alves <pedro@codesourcery.com>
2407
2408 * inferior.h (notice_new_inferior): Declare.
2409 * infcmd.c (notice_new_inferior): New.
2410 * remote.c (remote_add_inferior, remote_add_thread): New.
2411 (notice_new_inferiors): Rename to...
2412 (remote_notice_new_inferior): ... this. Add RUNNING argument.
2413 Use remote_add_thread instead of add_thread, passing it the
2414 RUNNING argument. Add an inferior with remote_add_inferior. If
2415 we just learned about an inferior, call notice_new_inferior.
2416 (record_currthread): Adjust.
2417 (remote_threads_info): Adjust to use remote_notice_new_inferior.
2418 (remote_start_remote, extended_remote_attach_1): Use
2419 remote_add_inferior.
2420 (process_stop_reply): Adjust. Call remote_notice_new_inferior
2421 after handling expedited registers and watchpoint state.
2422 (extended_remote_create_inferior_1): Use remote_add_inferior.
2423
2424 2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
2425
2426 * infcmd.c (registers_info): Remove register number case.
2427
2428 2009-03-03 Pedro Alves <pedro@codesourcery.com>
2429
2430 * top.c (quit_target): Check for target_has_execution before
2431 killing or detaching from inferiors.
2432
2433 2009-03-02 Joel Brobecker <brobecker@adacore.com>
2434
2435 Remove some unused routines.
2436
2437 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
2438 Delete.
2439 * ada-lang.c (ada_task_list_iterator_ftype)
2440 (iterate_over_live_ada_tasks): Delete.
2441 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
2442 Delete.
2443
2444 2009-03-01 Doug Evans <dje@google.com>
2445
2446 * symtab.c: Remove trailing whitespace throughout the file.
2447 (expand_line_sal): Fix some typos and whitespace.
2448
2449 * Makefile.in (clean): rm -f $(DEPDIR)/*.
2450
2451 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
2452 (init.c): signals/ -> common/.
2453 (signals.o): Update.
2454 * target.h (target_signal_to_string,target_signal_to_string)
2455 (target_signal_from_name,target_signal_to_host_p)
2456 (target_signal_from_host,target_signal_to_host): Move to ...
2457 * common/gdb_signals.h: ... here. New file.
2458 * common/signals.c: Moved here from signals/signals.c.
2459 #include gdb_signals.h, remove #include of target.h in gdb case.
2460 (target_signal_from_command,default_target_signal_to_host)
2461 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
2462
2463 Include thread ID in target_wait debugging output.
2464 * infrun.c (print_target_wait_results): New function.
2465 (wait_for_inferior,fetch_inferior_event): Call it.
2466
2467 2009-02-27 Pedro Alves <pedro@codesourcery.com>
2468
2469 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
2470 with a ptid_t field.
2471 * linux-thread-db.c (thread_get_info_callback): Build the ptid
2472 using the pid stored in proc_handle.ptid.
2473 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
2474 (check_for_thread_db, thread_db_detach, check_event)
2475 (thread_db_mourn_inferior, find_new_threads_callback)
2476 (thread_db_find_new_threads_1): Adjust.
2477 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
2478 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
2479
2480 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
2481
2482 * valprint.c (read_string): Rework clean-up logic. Use
2483 free_current_contents to clean-up buffer.
2484
2485 2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
2486
2487 * MAINTAINERS: Update e-mail address.
2488
2489 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
2490
2491 * python/python-utils.c (python_string_to_unicode): Always return
2492 a new reference.
2493 (python_string_to_target_string): Decrement transient python
2494 instance.
2495 (python_string_to_host_string): Likewise.
2496
2497 2007-02-26 Pedro Alves <pedro@codesourcery.com>
2498
2499 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
2500 call to super_fetch_registers.
2501 (mips64_linux_store_registers): Pass `ops' to call to
2502 super_store_registers.
2503
2504 2009-02-25 Doug Evans <dje@google.com>
2505
2506 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
2507 error message.
2508
2509 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
2510 disabled_shlib_breaks, unused.
2511
2512 * printcmd.c (build_address_symbolic): Fix comment.
2513
2514 2009-02-25 Hui Zhu <teawater@gmail.com>
2515
2516 * cli/cli-script.c (define_command): Add _() to query.
2517 * gnu-nat.c (inf_validate_task_sc): Ditto.
2518 * infcmd.c (kill_if_already_running): Ditto.
2519 (jump_command): Ditto.
2520 (attach_command): Ditto.
2521 * inflow.c (kill_command): Ditto.
2522 * infrun.c (handle_command): Ditto.
2523 * maint.c (maintenance_dump_me): Ditto.
2524 * memattr.c (mem_delete_command): Ditto.
2525 * monitor.c (monitor_interrupt_query): Ditto.
2526 * nto-procfs.c (interrupt_query): Ditto.
2527 * printcmd.c (undisplay_command): Ditto.
2528 * remote-mips.c (mips_kill): Ditto.
2529 * remote.c (interrupt_query): Ditto.
2530 * solib-irix.c (irix_open_symbol_file_object): Ditto.
2531 * solib-osf.c (osf_open_symbol_file_object): Ditto.
2532 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
2533 * solib-som.c (som_open_symbol_file_object): Ditto.
2534 * solib-svr4.c (open_symbol_file_object): Ditto.
2535 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2536 * target.c (kill_or_be_killed): Ditto.
2537 * tracepoint.c (delete_trace_command): Ditto.
2538 * top.c (quit_confirm): Add _() to s that will be used
2539 in query.
2540
2541 2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
2542
2543 Fix windows-nat.c compilation failure.
2544
2545 * windows-nat.c (windows_thread_alive): Fix forward declaration.
2546 (get_windows_debug_event): Add ops parameter to call to windows_resume.
2547
2548 2009-02-23 Pedro Alves <pedro@codesourcery.com>
2549
2550 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
2551
2552 2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
2553
2554 * symtab.c (find_line_symtab): Initialize exact to avoid
2555 a compiler warning.
2556
2557 2009-02-23 Pedro Alves <pedro@codesourcery.com>
2558
2559 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
2560 `ops' to recursive call.
2561
2562 2009-02-23 Pedro Alves <pedro@codesourcery.com>
2563
2564 * corelow.c (get_core_registers): Adjust.
2565 (core_file_thread_alive): Rename to...
2566 (core_thread_alive): ... this.
2567 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
2568 (init_core_ops): Adjust.
2569 (coreops_suppress_target): Delete.
2570 (_initialize_corelow): Unconditionally add core_ops.
2571 * procfs.c: Include "inf-child.h".
2572 (procfs_ops): Delete.
2573 (init_procfs_ops): Delete. Reimplement as...
2574 (procfs_target): ... this, inheriting from inf-child.
2575 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
2576 (procfs_prepare_to_store): Delete.
2577 (procfs_store_registers, procfs_resume): Adjust.
2578 (procfs_open): Delete.
2579 (procfs_suppress_run): Delete.
2580 (procfs_can_run): Delete.
2581 (procfs_mourn_inferior): Adjust.
2582 (procfs_init_inferior): Add target_ops parameter. Adjust.
2583 (procfs_create_inferior): Don't pass procfs_init_inferior to
2584 fork_inferior. Instead call it after fork_inferior returns.
2585 (procfs_find_new_threads): Adjust.
2586 (_initialize_procfs): Adjust to use procfs_target instead of
2587 init_procfs_ops.
2588 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
2589 (lwp_to_thread): Use target_thread_alive.
2590 (sol_thread_open): Delete.
2591 (sol_thread_attach): Delete.
2592 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
2593 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
2594 to use find_target_beneath.
2595 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
2596 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
2597 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
2598 (check_for_thread_db): New.
2599 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
2600 (sol_thread_new_objfile): Call check_for_thread_db.
2601 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
2602 (sol_thread_can_run): Delete.
2603 (sol_thread_alive): Adjust to use find_target_beneath.
2604 (sol_thread_stop): Delete.
2605 (rw_common): Use target_write_memory or target_read_memory.
2606 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
2607 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
2608 (solaris_pid_to_str): Remove check for libthread_db initialization
2609 failing.
2610 (sol_find_new_threads): Remove check for libthread_db
2611 initialization failing, or for an invalid inferior_ptid. Adjust
2612 to use find_target_beneath.
2613 (sol_core_open, sol_core_close, sol_core_detach,
2614 sol_core_files_info, sol_find_memory_regions,
2615 sol_make_note_section, ignore): Delete.
2616 (init_sol_thread_ops): Make it a thread_stratum target. Remove
2617 unneeded callback settings.
2618 (init_sol_core_ops): Delete.
2619 (_initialize_sol_thread): No longer call init_sol_core_ops, set
2620 procfs_suppress_run, or hack with core_ops.
2621
2622 * target.h (struct target_ops): Add a target_ops * parameter to
2623 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
2624 and to_find_new_threads.
2625 (target_fetch_registers, target_store_registers)
2626 (target_thread_alive, target_find_new_threads): Redeclare as
2627 function.
2628
2629 * target.c (update_current_target): Do not inherit or de_fault
2630 to_resume, to_fetch_registers, to_store_registers,
2631 to_thread_alive, to_find_new_threads.
2632 (target_resume): Adjust.
2633 (target_thread_alive, target_find_new_threads): New.
2634 (debug_to_resume, debug_to_fetch_registers): Delete.
2635 (target_fetch_registers): New.
2636 (debug_to_store_registers): Delete.
2637 (target_store_registers): New.
2638 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
2639 (setup_target_debug): Adjust.
2640
2641 * gdbcore.h (core_ops): Delete declaration.
2642
2643 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
2644 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
2645 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
2646 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
2647 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
2648 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
2649 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
2650 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
2651 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
2652 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
2653 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
2654 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
2655 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
2656 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
2657
2658 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
2659 * gdbarch.h, gdbarch.c: Regenerate.
2660
2661 * sol2-tdep.c: Include "inferior.h".
2662 (sol2_core_pid_to_str): New.
2663 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
2664
2665 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
2666 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
2667 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
2668 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
2669
2670 2009-02-22 Doug Evans <dje@google.com>
2671
2672 * exec.c (exec_file_attach): Fix comment.
2673
2674 2009-02-22 Pedro Alves <pedro@codesourcery.com>
2675
2676 Silence a few -Wmissing-prototypes warnings.
2677
2678 PR build/9877:
2679 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
2680 it static.
2681 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
2682 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
2683 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
2684 (_initialize_amd64nbsd_tdep): ... this.
2685 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
2686 (_initialize_arm_linux_tdep): Declare.
2687 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
2688 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
2689 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
2690 * avr-tdep.c (avr_return_value): Make it static.
2691 (avr_frame_unwind_cache): Ditto.
2692 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
2693 (bsd_uthread_solib_loaded): Ditto.
2694 (bsd_uthread_solib_unloaded): Ditto.
2695 (bsd_uthread_target): Ditto.
2696 (_initialize_bsd_uthread): Declare.
2697 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
2698 (cris_frame_unwind_cache): Ditto.
2699 * frv-tdep.c (frv_return_value): Ditto.
2700 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
2701 (h8300h_use_struct_convention): Ditto.
2702 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
2703 Ditto.
2704 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
2705 declarations.
2706 * hppabsd-tdep.c: Include hppabsd-tdep.h.
2707 (hppabsd_find_global_pointer): Make it static.
2708 * hppabsd-tdep.h: New.
2709 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
2710 (hppabsd_init_abi): Remove declaration.
2711 (_initialize_hppabsd_tdep): Remove declaration.
2712 (_initialize_hppanbsd_tdep): Declare.
2713 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
2714 (hppabsd_init_abi): Delete declaration.
2715 (hppaobsd_init_abi): Make it static.
2716 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
2717 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
2718 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
2719 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
2720 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
2721 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
2722 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
2723 (_initialize_m32c_tdep): Declare.
2724 * m32r-rom.c (_initialize_m32r_rom): Declare.
2725 * m32r-tdep.c (m32r_skip_prologue): Make it static.
2726 (m32r_return_value): Ditto.
2727 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
2728 (m68hc11_return_value): Ditto.
2729 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
2730 * m88k-tdep.c (m88k_frame_cache): Make it static.
2731 * mep-tdep.c (mep_gdb_print_insn): Ditto.
2732 (mep_return_value): Ditto.
2733 (_initialize_mep_tdep): Declare.
2734 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
2735 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
2736 (mips_linux_syscall_next_pc): Ditto.
2737 (_initialize_mips_linux_tdep): Declare.
2738 * mips-tdep.c (mips_single_step_through_delay): Make it static.
2739 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
2740 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
2741 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
2742 * mt-tdep.c (_initialize_mt_tdep): Declare.
2743 * nbsd-tdep.c: Include nbsd-tdep.h.
2744 * nto-tdep.c (find_load_phdr): Make it static.
2745 (_initialize_nto_tdep): Declare.
2746 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
2747 static.
2748 (_initialize_ppc_linux_tdep): Declare.
2749 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
2750 (m32r_insert_watchpoint, m32r_remove_watchpoint)
2751 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
2752 static.
2753 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
2754 * rs6000-nat.c: Include xcoffread.h.
2755 (find_toc_address): Don't extern declare get_toc_offset. Adjust
2756 to call xcoff_get_to_offset.
2757 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
2758 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
2759 (rs6000_skip_trampoline_code): Make static.
2760 * s390-tdep.c (s390_regset_from_core_section): Ditto.
2761 * sh-tdep.c (sh_register_reggroup_p): Ditto.
2762 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
2763 (_initialize_shnbsd_tdep): Declare.
2764 * solib-frv.c (displacement_from_map): Make static.
2765 (_initialize_frv_solib): Declare.
2766 * solib-irix.c (fetch_lm_info): Make static.
2767 (_initialize_irix_solib): Declare.
2768 * solib-som.c: Include solib-som.h.
2769 (som_solib_select): Line break.
2770 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
2771 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
2772 (_initialize_sparcnbsd_tdep): ... this.
2773 * spu-tdep.c (spu_software_single_step): Make it static.
2774 (_initialize_spu_tdep): Declare.
2775 * vax-tdep.c (vax_frame_cache): Make it static.
2776 * xcoffread.c: Include xcoffread.h.
2777 (get_toc_offset): Rename to ...
2778 (xcoff_get_toc_offset): ... this.
2779 (_initialize_xcoffread): Declare.
2780 * xcoffread.h: New.
2781 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
2782 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
2783 static.
2784 (_initialize_xtensa_tdep): Declare.
2785
2786 2008-02-21 Pedro Alves <pedro@codesorcery.com>
2787
2788 Silence a few -Wmissing-prototypes warnings.
2789
2790 PR build/9877:
2791 * amd64-nat.c: Include "amd64-nat.h".
2792 * fork-child.c (_initialize_fork_child): Ditto.
2793 * gcore.c (_initialize_gcore): Ditto.
2794 * inf-ptrace.c: Include "inf-ptrace.h".
2795 (inf_ptrace_store_registers): Make it static.
2796 * linux-nat.c (linux_nat_terminal_ours): Make it static.
2797 (_initialize_linux_nat): Declare before definition.
2798 * linux-tdep.c: Include "linux-tdep.h".
2799 * linux-thread-db.c (_initialize_thread_db): Declare before
2800 definition.
2801 * proc-service.c (_initialize_proc_service): Ditto.
2802 * remote.c (remote_send_printf): Make it static.
2803 * solib.c: Include "solib.h".
2804 * symfile-mem.c (_initialize_symfile_mem): Declare before
2805 definition.
2806 * ada-lang.c (ada_la_decode, ada_match_name)
2807 (ada_suppress_symbol_printing, ada_is_array_type)
2808 (ada_value_ptr_subscript, ada_array_length)
2809 (ada_to_static_fixed_value): Make them static.
2810 (_initialize_ada_language): Declare before definition.
2811 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
2812 (ada_task_list_changed, ada_new_objfile_observer): Make them
2813 static.
2814 (_initialize_tasks): Declare before definition.
2815 * addrmap.c (_initialize_addrmap): Declare before definition.
2816 * auxv.c (default_auxv_parse): Make it static.
2817 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
2818 them static.
2819 * breakpoint.c (remove_sal): Add line break.
2820 (expand_line_sal_maybe): Make it static.
2821 * cp-name-parser.y: Include "cp-support.h".
2822 * cp-valprint.c (cp_find_class_member): Make it static.
2823 * eval.c (value_f90_subarray): Ditto.
2824 * exceptions.c (print_any_exception): Ditto.
2825 * findcmd.c (_initialize_mem_search): Declare before definition.
2826 * frame.c (frame_observer_target_changed): Make it static.
2827 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
2828 * inf-child.c: Include "inf-child.h".
2829 * inferior.h (valid_inferior_id): Rename to ...
2830 (valid_gdb_inferior_id): ... this.
2831 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
2832 Make them static.
2833 * jv-lang.c (java_language_arch_info): Make it static.
2834 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
2835 * osdata.c (info_osdata_command): Make it static.
2836 * regcache.c (regcache_observer_target_changed): Make it static.
2837 * reverse.c (_initialize_reverse): Declare before definition.
2838 * stabsread.c (cleanup_undefined_types_noname)
2839 (cleanup_undefined_types_1): Make them static.
2840 * symfile.c (place_section): Make it static.
2841 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
2842 * target-descriptions.c (_initialize_target_descriptions): Declare
2843 before definition.
2844 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
2845 (find_default_is_async_p, find_default_supports_non_stop): Make
2846 them static.
2847 (target_supports_non_stop): Add prototype.
2848 (dummy_pid_to_str): Make it static.
2849 * utils.c (_initialize_utils): Declare before definition.
2850 * ada-exp.y (_initialize_ada_exp): Declare before definition.
2851 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
2852 * target.h (struct target_ops): Add a prototype to the
2853 to_can_execute_reverse callback.
2854 * macroscope.c (_initialize_macroscope): Declare before definition.
2855 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2856 * python/python.c (_initialize_python): Declare before definition.
2857 * tui/tui-command.c: Include "tui/tui-command.h".
2858 * tui/tui-data.c (init_content_element, init_win_info): Make them
2859 static.
2860 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
2861 * tui/tui-interp.c (_initialize_tui_interp): Declare before
2862 definition.
2863 * tui/tui-layout.c: Include "tui/tui-layout.h".
2864 (_initialize_tui_layout): Declare before definition.
2865 * tui/tui-regs.c: Include "tui/tui-regs.h".
2866 (tui_display_reg_element_at_line): Make it static.
2867 (_initialize_tui_regs): Declare before definition.
2868 * tui/tui-stack.c (_initialize_tui_stack): Declare before
2869 definition.
2870 * tui/tui-win.c: Include "tui/tui-win.h".
2871 (_initialize_tui_win): Declare before definition.
2872 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
2873 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
2874 (tui_get_cmd_list): Add a prototype.
2875 * tui/tui-windata.c: Include tui-windata.h.
2876 * tui/tui-wingeneral.c (box_win): Make it static.
2877 * cli/cli-logging.c (show_logging_command): Make it static.
2878 (_initialize_cli_logging): Declare before definition.
2879 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
2880 definition.
2881
2882 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
2883
2884 Extend use of i386_use_watchpoints to all i386 native files
2885 using hardware watchpoints.
2886 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
2887 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
2888 * windows-nat.c (init_windows_ops): Ditto.
2889 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
2890 * config/i386/nm-cygwin64.h: Ditto.
2891 * config/i386/nm-fbsd.h: Ditto.
2892 * config/i386/nm-go32.h: Ditto.
2893
2894 2009-02-19 Joel Brobecker <brobecker@adacore.com>
2895
2896 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
2897
2898 2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
2899
2900 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
2901 (mi_interpreter_init): Register the above.
2902 * solib.c (clear_solib): Notify solib unload.
2903 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
2904 disable breakpoints on a.out targets.
2905
2906 2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
2907
2908 * observer.c (observer_test_first_notification_function)
2909 (observer_test_second_notification_function)
2910 (observer_test_third_notification_function): Adjust prototype.
2911
2912 2009-02-17 Pedro Alves <pedro@codesourcery.com>
2913
2914 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
2915 (ALL_TARGET_OBS): Add dicos-tdep.o.
2916 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
2917 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
2918 gdb_target_obs.
2919 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
2920 gdb_target_obs.
2921 * dicos-tdep.h, dicos-tdep.c: New.
2922 * amd64-dicos-tdep.c: New.
2923 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
2924 inferior.h. Include dicos-tdep.h.
2925 (i386_dicos_init_abi): Call dicos_init_abi.
2926 (i386_dicos_bfd_has_symbol_p): Delete.
2927 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
2928
2929 * NEWS: Mention x86-64 DICOS target support.
2930
2931 2009-02-16 Doug Evans <dje@google.com>
2932
2933 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
2934 All callers updated.
2935 (amd64_get_insn_details): Handle more 3-byte opcode insns.
2936 (amd64_breakpoint_p): Delete.
2937 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
2938 don't back up pc to the start of the int3.
2939 * i386-tdep.c: #include opcode/i386.h.
2940 (i386_skip_prefixes): New function.
2941 (i386_absolute_jmp_p): Constify argument.
2942 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
2943 (i386_breakpoint_p): Delete.
2944 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
2945 When fixing up after stepping an int3, don't back up pc to the start
2946 of the int3.
2947
2948 2009-02-16 Pedro Alves <pedro@codesourcery.com>
2949
2950 * corelow.c (core_close): Don't hardcode the core's pid.
2951 (core_open): Find core threads before calling
2952 post_create_inferior.
2953 (add_to_thread_list, get_core_register_section): Take into account
2954 systems where the regset section names encode the pid of the
2955 inferior.
2956
2957 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
2958 * gdbarch.h, gdbarch.c: Regenerate.
2959
2960 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
2961 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
2962 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
2963 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
2964
2965 2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
2966
2967 Include frame information for *stopped due to CLI commands.
2968
2969 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
2970 * infcmd.c (finish_command_continuation): Pass '1' for
2971 'print_frame' parameter to the observer.
2972 * infrun.c (normal_stop): Don't print mi-specific information
2973 here. Pass 'stop_print_frame' to the 'print_frame' parameter
2974 of the observer.
2975 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
2976 If we need to print frame, and current uiout is not the MI one,
2977 print frame again.
2978
2979 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
2980
2981 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
2982 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
2983
2984 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 PR fortran/9806
2987 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
2988 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
2989
2990 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
2991
2992 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
2993 for DW_ATE_signed_char and DW_ATE_unsigned_char
2994 for pascal language.
2995
2996 2009-02-11 Jim Meyering <meyering@redhat.com>
2997 Jan Kratochvil <jan.kratochvil@redhat.com>
2998
2999 Avoid NULL dereference.
3000 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
3001 New variable func_type.
3002
3003 2009-02-11 Pedro Alves <pedro@codesourcery.com>
3004
3005 * gdbarch.c: Regenerate.
3006
3007 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
3008
3009 * p-lang.c (is_pascal_string_type): Fix comment.
3010 Determine exact size of char elements for GPC
3011 strings.
3012 (pascal_printstr): Handle char width of 2 or 4.
3013 * p-valprint.c (pascal_val_print): Handle char
3014 of width 2 or 4.
3015
3016 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
3017
3018 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
3019 inside the loop. Only call addrmap_set_empty if the compilation unit
3020 had DW_AT_high_pc and DW_AT_low_pc. Update call to
3021 scan_partial_symbols.
3022 (scan_partial_symbols): Take NEED_PC argument and pass it along with
3023 LOWPC and HIGHPC.
3024 (add_partial_namespace): Take NEED_PC argument and pass it through.
3025 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
3026 if necessary.
3027
3028 2009-02-07 Pedro Alves <pedro@codesourcery.com>
3029
3030 * NEWS: Mention inspecting extra signal information, $_siginfo,
3031 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
3032
3033 2009-02-07 Pedro Alves <pedro@codesourcery.com>
3034
3035 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
3036 isn't defined.
3037
3038 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3039
3040 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
3041 (compat_timer_t, compat_clock_t, struct compat_timeval)
3042 (compat_sigval_t, compat_siginfo_t): New types.
3043 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
3044 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
3045 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
3046 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3047 (amd64_linux_siginfo_fixup): New.
3048 * linux-nat.c (linux_nat_siginfo_fixup): New.
3049 (siginfo_fixup): New.
3050 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
3051 siginfo layout expected by ptrace and the siginfo layout of the
3052 inferior.
3053 (linux_nat_set_siginfo_fixup): New.
3054 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
3055
3056 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3057
3058 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
3059 * infrun.c (siginfo_value_read, siginfo_value_write): New.
3060 (siginfo_value_funcs): New.
3061 (siginfo_make_value): New.
3062 (_initialize_infrun): Create the $_siginfo convenience variable.
3063 * gdbtypes.h (append_composite_type_field_aligned): Declare.
3064 * gdbtypes.c (append_composite_type_field): Rename to...
3065 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
3066 argument. Handle it.
3067 (append_composite_type_field): Rewrite on top of
3068 append_composite_type_field_aligned.
3069 * value.h (internalvar_make_value): New typedef.
3070 (struct internalvar) <make_value>: New field.
3071 (create_internalvar_type_lazy): Declare.
3072 * value.c (create_internalvar): Clear make_value.
3073 (create_internalvar_type_lazy): New.
3074 (value_of_internalvar): If make_value is set use it.
3075 (preserve_values): Skip internal variables that don't have a
3076 value.
3077 * gdbarch.sh (get_siginfo_type): New.
3078 * gdbarch.h, gdbarch.c: Regenerate.
3079
3080 * linux-tdep.h, linux-tdep.c: New.
3081 * amd64-linux-tdep.c: Include "linux-tdep.h".
3082 (amd64_linux_init_abi): Register linux_get_siginfo_type and
3083 linux_get_siginfo_mapper.
3084 * i386-linux-tdep.c: Include "linux-tdep.h".
3085 (i386_linux_init_abi): Register linux_get_siginfo_type and
3086 linux_get_siginfo_mapper.
3087 * arm-linux-tdep.c: Include "linux-tdep.h".
3088 (i386_linux_init_abi): Register linux_get_siginfo_type and
3089 linux_get_siginfo_mapper.
3090
3091 * linux-nat.c (linux_xfer_siginfo): New.
3092 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
3093 * remote.c (PACKET_qXfer_siginfo_read)
3094 (PACKET_qXfer_siginfo_write): New.
3095 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
3096 "qXfer:siginfo:write" features.
3097 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
3098 (_initialize_remote): Add "set/show remote read-siginfo-object"
3099 and "set/show remote write-siginfo-object" commands.
3100
3101 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
3102 (HFILES_NO_SRCDIR): Add linux-tdep.h.
3103 (ALLDEPFILES): Add linux-tdep.c.
3104
3105 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
3106 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
3107 gdb_target_obs.
3108
3109 2009-02-06 Jim Blandy <jimb@codesourcery.com>
3110 Daniel Jacobowitz <dan@codesourcery.com>
3111 Vladimir Prus <vladimir@codesourcery.com>
3112 Pedro Alves <pedro@codesourcery.com>
3113
3114 * defs.h (enum lval_type): New value: lval_computed.
3115 * value.h (struct lval_funcs): New type.
3116 (allocate_computed_value, value_computed_funcs)
3117 (value_computed_closure): New declarations.
3118 * value.c (struct value): Add a structure to the location union
3119 for computed lvalues, containing 'funcs' and 'closure' members.
3120 (allocate_computed_value, value_computed_funcs)
3121 (value_computed_closure): New functions.
3122 (value_free): For computed lvalues, call the closure's
3123 'free_closure' function before freeing the value itself.
3124 (value_copy): If we're copying an lval_computed value, call the
3125 closure's 'copy_closure' function.
3126 (set_value_component_location): If the original value is a
3127 computed lvalue, then call the closure's 'copy_closure' function.
3128 (value_of_internalvar): If an internal variable's value is a
3129 computed lvalue, make retrieving its value produce an equivalent
3130 computed lvalue.
3131 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
3132 their read function.
3133 (value_assign): Assign to computed lvalues by calling their write
3134 function.
3135
3136 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3137
3138 * linux-nat.c (linux_nat_wait): Adjust.
3139 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
3140 * linux-nat.h (thread_db_init): Delete declaration.
3141 * linux-thread-db.c (target_beneath): Delete.
3142 (thread_db_init): Delete.
3143 (thread_db_detach): Use find_target_beneath.
3144 (thread_db_wait): Adjust interface. Use find_target_beneath.
3145 (thread_db_mourn_inferior): Use find_target_beneath.
3146 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3147 (thread_db_async_mask): Delete.
3148 (thread_db_pid_to_str): Adjust interface. Use
3149 find_target_beneath.
3150 (thread_db_get_thread_local_address): Adjust interface. Use
3151 find_target_beneath.
3152 (init_thread_db_ops): Delete references to delete functions.
3153 * target.c (update_current_target): Don't inherit or default
3154 to_wait. Don't inherit to_pid_to_str and
3155 to_get_thread_local_address.
3156 (target_translate_tls_address): Look for a pushed target that
3157 implements to_get_thread_local_address, and use it instead of
3158 checking for target_get_thread_local_address_p.
3159 (target_wait, target_pid_to_str): Reimplement as functions.
3160 (dummy_pid_to_str): New.
3161 (init_dummy_target): Register it.
3162 (debug_to_wait): Delete.
3163 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
3164 to_get_thread_local_address accept a pointer to struct target_ops.
3165 (target_wait): Delete macro, and declare as function.
3166 (target_pid_to_str): Likewise.
3167 (target_get_thread_local_address)
3168 (target_get_thread_local_address_p): Delete.
3169 (noprocess): Add NORETURN and ATTR_NORETURN tags.
3170 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3171 (inf_ptrace_pid_to_str): New.
3172 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
3173 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
3174 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
3175 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
3176 Adjust.
3177 * corelow.c (core_pid_to_str): Adjust.
3178 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
3179 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
3180 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
3181 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
3182 * hpux-thread.c (hpux_thread_wait): Adjust.
3183 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
3184 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
3185 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
3186 * procfs.c (procfs_pid_to_str): Adjust.
3187 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
3188 * remote-mips.c (mips_wait): Adjust.
3189 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
3190 * remote.c (remote_wait, remote_pid_to_str)
3191 (remote_get_thread_local_address): Adjust.
3192 * rs6000-nat.c (rs6000_wait): Adjust.
3193 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
3194 (sol_thread_wait, solaris_pid_to_str): Adjust.
3195 * spu-linux-nat.c (spu_child_wait): Adjust.
3196 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
3197
3198 2009-02-06 Tom Tromey <tromey@redhat.com>
3199
3200 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
3201 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
3202 (python-cmd.o): New target.
3203 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
3204 completer prototype.
3205 (add_cmd): Initialize destroyer member of cmd_list_element. Use
3206 make_symbol_completion_list_fn as completer.
3207 (delete_cmd): Call destroyer if one is set.
3208 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
3209 completer member. Add destroyer member.
3210 (set_cmd_completer): Add self parameter to
3211 completer prototype.
3212 * command.h (set_cmd_completer): Add cmd parameter to
3213 completer prototype.
3214 * completer.c (noop_completer, filename_completer,
3215 location_completer, expression_completer, command_completer): Adapt
3216 to new completer prototype.
3217 (complete_line_internal): Pass new parameter to completer function.
3218 * completer.h (noop_completer, filename_completer,
3219 location_completer, expression_completer, command_completer): Adapt
3220 prototypes to new completer prototype.
3221 * interps.c (interpreter_completer): Adapt to new completer
3222 prototype.
3223 * python/python-cmd.c: New file.
3224 * python/python-internal.h (gdbpy_initialize_commands): Add
3225 prototype.
3226 (gdbpy_doc_cst): Add forward declaration.
3227 * python/python.c (gdbpy_doc_cst): Declare.
3228 (_initialize_python): Call gdbpy_initialize_commands. Initialize
3229 gdbpy_doc_cst.
3230 * symtab.c (make_symbol_completion_list_fn): New function.
3231 * symtab.h (make_symbol_completion_list_fn): Add prototype.
3232
3233 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3234
3235 * target.c (target_get_osdata): Check for equal or higher than
3236 process_stratum, not dummy_stratum.
3237
3238 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3239
3240 * remote.c (extended_remote_can_run): Delete.
3241 (init_remote_ops): Don't register it.
3242 * target.c (target_get_osdata): Don't check for target_can_run.
3243 Instead any target that has already been pushed, otherwise
3244 fallback to the default run target.
3245
3246 2009-02-06 Pedro Alves <pedro@codesourcery.com>
3247
3248 * target.c (target_create_inferior, target_detach)
3249 (target_mourn_inferior, target_attach, target_close): Do target
3250 debug output.
3251 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
3252 (debug_to_mourn_inferior, debug_to_close): Delete.
3253 (setup_target_debug): Adjust.
3254
3255 2009-02-05 Pedro Alves <pedro@codesourcery.com>
3256
3257 * target.h (target_stopped_data_address_p): Delete declaration,
3258 and don't define as macro.
3259 * target.c (target_stopped_data_address_p): Delete.
3260
3261 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3262 Tom Tromey <tromey@redhat.com>
3263
3264 * python/python-utils.c (target_string_to_unicode): New function.
3265 * python/python-internal.h (target_string_to_unicode): New prototype.
3266 * python/python-value.c (valpy_string): New function.
3267 (value_object_methods): Add `string' entry.
3268
3269 2009-02-05 Pedro Alves <pedro@codesourcery.com>
3270
3271 * target.h (target_tid_to_str): Delete.
3272 * thread.c (print_thread_info, thread_apply_all_command)
3273 (thread_apply_command, thread_command, do_captured_thread_select):
3274 Use target_pid_to_str instead of target_tid_to_str.
3275 * linux-fork.c (delete_fork_command): Likewise.
3276
3277 2009-02-05 Pedro Alves <pedro@codesourcery.com>
3278
3279 * frame.c (has_stack_frames): Make public.
3280 (get_prev_frame): Don't allow a NULL this_frame anymore.
3281 * frame.h (has_stack_frames): Declare.
3282 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
3283 to get_prev_frame, instead start at get_current_frame.
3284 (varobj_create): Check has_stack_frames before getting any frame;
3285 eliminate one usage of deprecated_safe_get_selected_frame.
3286
3287 2009-02-05 Tom Tromey <tromey@redhat.com>
3288 Thiago Jung Bauermann <bauerman@br.ibm.com>
3289
3290 * python/python.c (GdbMethods): Move to bottom of file.
3291 (get_parameter, execute_gdb_command, gdbpy_write,
3292 gdbpy_flush): Remove forward declarations.
3293 (eval_python_from_control_command): Fix error checking of function
3294 PyRun_SimpleString. Fix error string.
3295 (python_command): Likewise.
3296 (execute_gdb_command): Added from_tty argument.
3297
3298 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3299
3300 * language.h (language_dfn): Add la_get_string member.
3301 (LA_GET_STRING): New macro.
3302 (default_get_string): New prototype.
3303 * language.c (default_get_string): New function.
3304 (unknown_language_defn, auto_language_defn, local_language_defn): Use
3305 default_get_string for la_get_string.
3306 * c-lang.c (c_get_string): New function.
3307 (c_language_defn, cplus_language_defn, asm_language_defn): Use
3308 c_get_string for la_get_string.
3309 (minimal_language_defn): Likewise
3310 * ada-lang.c (ada_language_defn): Likewise.
3311 * f-lang.c (f_language_defn): Use default_get_string for
3312 la_get_string.
3313 * jv-lang.c (java_language_defn): Likewise.
3314 * m2-lang.c (m2_language_defn): Likewise.
3315 * objc-lang.c (objc_language_defn): Likewise.
3316 * p-lang.c (p_language_defn): Likewise.
3317 * scm-lang.c (scm_language_defn): Likewise.
3318 * typeprint.c (type_to_string): New function.
3319 * value.h (type_to_string): New prototype.
3320 * valprint.c (val_print_string): Factor out code for reading string
3321 from the inferior into its own function. Put 2 spaces after period
3322 in comments.
3323 (read_string): New function.
3324 * valprint.h (read_string): New prototype.
3325
3326 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
3327 Tom Tromey <tromey@redhat.com>
3328
3329 PR breakpoints/8079:
3330 * breakpoint.c (print_one_breakpoint): Use exp_string field
3331 to display expression of watchpoints.
3332 (mention): Likewise.
3333 (watch_command_1): Remove trailing whitespace from expression.
3334 * printcmd.c (struct display) <exp_string>: New field.
3335 (display_command): Set exp_string.
3336 (free_display): Free exp_string.
3337 (clear_displays): Use free_display.
3338 (do_one_display): Print exp_string.
3339 (display_info): Likewise.
3340
3341 2009-02-04 Tom Tromey <tromey@redhat.com>
3342 Thiago Jung Bauermann <bauerman@br.ibm.com>
3343 Phil Muldoon <pmuldoon@redhat.com>
3344
3345 * python/python-internal.h (gdbpy_get_value_from_history): Rename
3346 prototype to gdbpy_history.
3347 (gdbpy_is_string): Declare.
3348 (python_string_to_host_string): Declare.
3349 * python/python-utils.c (gdbpy_is_string): New function.
3350 (unicode_to_encoded_string): New function.
3351 (unicode_to_target_string): Use it.
3352 (python_string_to_host_string): New function.
3353 * python/python-value.c (valpy_address): New function.
3354 (convert_value_from_python): Use gdbpy_is_string. Change to throw
3355 Python exception instead of a GDB exception on error. Properly check
3356 Python booleans.
3357 (valpy_getitem): Convert field name to host string. Handle array
3358 accesses. Adapt to new behaviour of convert_value_from_python.
3359 (valpy_new): Adapt to new behaviour of convert_value_from_python.
3360 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
3361 VALPY_BITXOR, VALPY_BITOR>: New constants.
3362 (valpy_binop): Update. Adapt to new behaviour of
3363 convert_value_from_python.
3364 (valpy_invert): New function.
3365 (valpy_lsh): Likewise.
3366 (valpy_rsh): Likewise.
3367 (valpy_and): Likewise.
3368 (valpy_or): Likewise.
3369 (valpy_xor): Likewise.
3370 (valpy_richcompare): Call convert_value_from_python instead of doing
3371 conversions itself.
3372 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
3373 (gdbpy_get_value_from_history): Rename
3374 function to gdbpy_history.
3375 (gdbpy_initialize_values): Don't set tp_new.
3376 (value_object_type): Add valpy_new.
3377 (value_object_methods): Add `address' entry.
3378 (value_object_as_number): Update for new methods.
3379 * python/python.c (GdbMethods): Rename entry from
3380 `get_value_from_history' to `history'.
3381
3382 2009-02-04 Jerome Guitton <guitton@adacore.com>
3383
3384 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
3385 of type to guard against a crash.
3386
3387 2009-02-04 Jerome Guitton <guitton@adacore.com>
3388
3389 * value.c (value_from_contents_and_address): Always return
3390 a lval_memory value, even if address is null.
3391
3392 2009-02-04 Tristan Gingold <gingold@adacore.com>
3393
3394 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
3395 (amd64_darwin_sigcontext_addr): Ditto.
3396 (darwin_dwarf_signal_frame_p): Ditto.
3397 (i386_darwin_init_abi): Handle signal frames, use the const for
3398 sc_num_regs.
3399 (x86_darwin_init_abi_64): Ditto.
3400
3401 2009-02-04 Tristan Gingold <gingold@adacore.com>
3402
3403 * i386-tdep.c (i386_sigtramp_p): Make it public.
3404 * i386-tdep.h (i386_sigtramp_p): Declare.
3405
3406 2009-02-04 Tristan Gingold <gingold@adacore.com>
3407
3408 * machoread.c (macho_symfile_read): Read minsymtab also from
3409 shared libraries.
3410 (macho_symfile_read): Try to read dwarf2 frame info from main
3411 object file, but not from OSO files.
3412 (macho_symfile_offsets): Update section names for latest BFD
3413 changes.
3414 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
3415 (x86_darwin_init_abi_64): Ditto.
3416 * solib-darwin.c: New file.
3417 * solib-darwin.h: New file.
3418 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
3419
3420 2009-02-04 Tristan Gingold <gingold@adacore.com>
3421
3422 * solist.h (struct target_so_ops): Comment fallback behavior for
3423 operation same.
3424
3425 2009-02-03 Tom Tromey <tromey@redhat.com>
3426
3427 * completer.c (add_struct_fields): Check type_name against NULL
3428 before use.
3429
3430 2009-02-03 Joel Brobecker <brobecker@adacore.com>
3431
3432 * MAINTAINERS: Update Elena's email address.
3433
3434 2009-02-02 Joel Brobecker <brobecker@adacore.com>
3435
3436 * breakpoint (update_watchpoint): Minor comment adjustment.
3437
3438 2009-02-02 Tom Tromey <tromey@redhat.com>
3439
3440 PR gdb/9594:
3441 * completer.c (count_struct_fields): Count method names.
3442 (add_struct_fields): Add matching method names.
3443
3444 2009-02-02 Doug Evans <dje@google.com>
3445
3446 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
3447 doing any further tcl/tk configury. Don't configure gdbtk if
3448 tcl or tk check fails.
3449 * aclocal.m4: Regenerate.
3450 * configure: Regenerate.
3451
3452 2009-02-02 Tom Tromey <tromey@redhat.com>
3453
3454 PR exp/9059:
3455 * valops.c (find_overload_match): Follow typedefs before taking
3456 address of object argument.
3457
3458 2009-02-01 Doug Evans <dje@google.com>
3459
3460 * target.h (target_waitstatus_to_string): Declare.
3461 * target.c (target_waitstatus_to_string): New function. Copied from
3462 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
3463 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
3464 TARGET_WAITKIND_NO_HISTORY.
3465 (debug_to_wait): Call it.
3466 * infrun.c (wait_for_inferior): If debug_infrun, print result of
3467 target_wait.
3468 (fetch_inferior_event): Ditto.
3469
3470 2009-01-30 Tom Tromey <tromey@redhat.com>
3471
3472 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
3473
3474 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
3475
3476 PR 8145.
3477 * thread.c (do_captured_list_thread_ids): Report the current
3478 thread id.
3479
3480 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
3481
3482 * breakpoint.c (create_breakpoint, create_breakpoints)
3483 (break_command_really, set_breakpoint): New parameter enabled.
3484 (create_breakpoint, break_command_really): Make breakpoint
3485 disabled if so requested.
3486 * breakpoint.h (set_breakpoint): New parameter enabled.
3487 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
3488
3489 2009-01-28 Doug Evans <dje@google.com>
3490
3491 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
3492 (amd64_displaced_step_fixup): Declare.
3493 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
3494 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
3495 and make static global.
3496 (amd64_arch_regmap_len): New static global.
3497 (amd64_arch_reg_to_regnum): New function.
3498 (struct amd64_insn): New struct.
3499 (struct displaced_step_closure): New struct.
3500 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
3501 (rex_prefix_p,skip_prefixes)
3502 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
3503 (amd64_insn_length,amd64_get_unused_input_int_reg)
3504 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
3505 (amd64_displaced_step_copy_insn)
3506 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
3507 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
3508 (amd64_displaced_step_fixup): New functions.
3509 * amd64-linux-tdep.c: #include arch-utils.h.
3510 (amd64_linux_init_abi): Install displaced stepping support.
3511
3512 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3513 Jerome Guitton <guitton@adacore.com>
3514
3515 * configure, config.in: Regenerated.
3516 * configure.ac: Add --with-system-gdbinit.
3517 * main.c (get_init_files): New.
3518 (captured_main): Use get_init_files. Load system gdbinit before
3519 $HOME/.gdbinit.
3520 (print_gdb_help): Print location of init files.
3521
3522 2009-01-28 Pedro Alves <pedro@codesourcery.com>
3523
3524 * corefile.c (generic_search): Delete disabled code.
3525 * gdbcore.h (generic_search): Delete declaration.
3526
3527 2009-01-26 Pedro Alves <pedro@codesourcery.com>
3528
3529 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
3530 parent to the child.
3531 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3532 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
3533 remove_breakpoints to remove breakpoints from the parent.
3534
3535 2009-01-26 Pedro Alves <pedro@codesourcery.com>
3536
3537 PR backtrace/9458, PR backtrace/8864:
3538 * frame.c (create_new_frame): Update the frame's cached PC before
3539 finding its unwinder. Use frame_id_build to build the new frame's
3540 id.
3541 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
3542 array values from the ``args'' array values.
3543
3544 2009-01-26 Pedro Alves <pedro@codesourcery.com>
3545
3546 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
3547 (create_array_type, create_set_type, init_flags_type)
3548 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
3549 with a call to XZALLOC or XCALLOC, and pairs of calls to
3550 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
3551
3552 2009-01-26 Pedro Alves <pedro@codesourcery.com>
3553
3554 Add "maint set|show internal-error|internal-warning quit|corefile
3555 ask|yes|no" commands.
3556
3557 PR gdb/7580:
3558 * utils.c (internal_problem_ask, internal_problem_yes)
3559 (internal_problem_no, internal_problem_modes): New.
3560 (struct internal_problem): Remove FIXME. Make should_quit and
3561 should_dump_core types to char *.
3562 (internal_vproblem, internal_error_problem)
3563 (internal_warning_problem): Adjust.
3564 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
3565 functions.
3566 (add_internal_problem_command): New.
3567 (_initialize_utils): New.
3568
3569 2009-01-25 Pedro Alves <pedro@codesourcery.com>
3570
3571 * infcmd.c (program_info): Use paddress instead of casting stop_pc
3572 to unsigned long.
3573
3574 2009-01-24 Pedro Alves <pedro@codesourcery.com>
3575
3576 * infrun.c (normal_stop): Don't call
3577 deprecated_update_frame_pc_hack.
3578 * frame.c (deprecated_update_frame_pc_hack)
3579 (deprecated_update_frame_base_hack): Delete, and ...
3580 (create_new_frame): ... inline here.
3581 * frame.h (deprecated_update_frame_pc_hack)
3582 (deprecated_update_frame_base_hack): Delete declarations.
3583
3584 2009-01-23 Pedro Alves <pedro@codesourcery.com>
3585
3586 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
3587 * cli/cli-setshow.c (do_setshow_command): Handle it.
3588 * command.h (enum var_types): Add var_zuinteger.
3589 (add_setshow_zuinteger_cmd): Declare.
3590
3591 * valprint.c (_initialize_valprint): Change the set input-radix
3592 and set output-radix commands to zuinteger type.
3593
3594 2009-01-23 Pedro Alves <pedro@codesourcery.com>
3595
3596 PR gdb/9664:
3597 * infrun.c (normal_stop): Tag threads as stopped, and run the
3598 hook-stop before printing the stack frame.
3599
3600 2009-01-22 Pedro Alves <pedro@codesourcery.com>
3601
3602 PR c++/9631:
3603 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
3604 vbasetype.
3605
3606 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
3607
3608 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
3609 unsigned long.
3610
3611 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
3612
3613 PR gdb/9346
3614 * infcmd.c (signal_command): Do not specify a resume PC.
3615
3616 2009-01-19 Doug Evans <dje@google.com>
3617
3618 * dummy-frame.c (dummy_frame): Replace regcache member with
3619 caller_state.
3620 (dummy_frame_push): Replace caller_regcache arg with caller_state.
3621 All callers updated.
3622 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
3623 (dummy_frame_pop): Rewrite. Verify requested frame is in the
3624 dummy frame stack. Restore program state.
3625 (cleanup_dummy_frames): Rewrite.
3626 (dummy_frame_sniffer): Update. Make static.
3627 * dummy-frame.h (regcache,frame_info): Delete forward decls.
3628 (inferior_thread_state): New forward decl.
3629 (dummy_frame_push): Update prototype.
3630 * frame.c (frame_pop): dummy_frame_pop now does all the work for
3631 DUMMY_FRAMEs.
3632 * infcall.c (breakpoint_auto_delete_contents): Delete.
3633 (get_function_name,run_inferior_call): New fns.
3634 (call_function_by_hand): Simplify by moving some code to
3635 get_function_name, run_inferior_call. Inferior function call wrapped
3636 in TRY_CATCH so there's less need for cleanups and all exits from
3637 proceed are handled similarily. Detect program exit.
3638 Detect program stopping in a different thread.
3639 Make error messages more consistent.
3640 * inferior.h (inferior_thread_state): Declare (opaque type).
3641 (save_inferior_thread_state,restore_inferior_thread_state,
3642 make_cleanup_restore_inferior_thread_state,
3643 discard_inferior_thread_state, get_inferior_thread_state_regcache):
3644 Declare.
3645 (save_inferior_status): Update prototype.
3646 * infrun.c: (normal_stop): When stopped for the completion of an
3647 inferior function call, verify the expected stack frame kind.
3648 (inferior_thread_state): New struct.
3649 (save_inferior_thread_state,restore_inferior_thread_state,
3650 do_restore_inferior_thread_state_cleanup,
3651 make_cleanup_restore_inferior_thread_state,
3652 discard_inferior_thread_state,
3653 get_inferior_thread_state_regcache): New functions.
3654 (inferior_status): Move stop_signal, stop_pc, registers to
3655 inferior_thread_state. Remove restore_stack_info.
3656 (save_inferior_status): Remove arg restore_stack_info.
3657 All callers updated. Remove saving of state now saved by
3658 save_inferior_thread_state.
3659 (restore_inferior_status): Remove restoration of state now done by
3660 restore_inferior_thread_state.
3661 (discard_inferior_status): Remove freeing of registers, now done by
3662 discard_inferior_thread_state.
3663
3664 2009-01-18 Pedro Alves <pedro@codesourcery.com>
3665
3666 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
3667 at a time, times NUM_TO_SCROLL.
3668 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
3669 fetch the selected frame if there is no stack.
3670
3671 2009-01-18 Pedro Alves <pedro@codesourcery.com>
3672
3673 PR gdb/9747:
3674 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
3675 Declare.
3676 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
3677 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
3678 is thrown while handling an event, finish the thread state.
3679 (normal_stop): Use finish_thread_state cleanup.
3680 * infcmd.c (run_command_1): If an error is thrown while starting
3681 the inferior, finish the thread state.
3682
3683 2009-01-18 Pedro Alves <pedro@codesourcery.com>
3684
3685 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
3686 skip breakpoints without a location (pending breakpoints).
3687
3688 2009-01-18 Pedro Alves <pedro@codesourcery.com>
3689
3690 PR build/9186:
3691 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
3692
3693 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
3694
3695 * thread.c (thread_command): Move call to annotate_thread_changed
3696 to...
3697 (do_captured_thread_select): ... here, to avoid printing an
3698 annotation if the thread change generates an exception.
3699
3700 2009-01-16 Joel Brobecker <brobecker@adacore.com>
3701
3702 * NEWS: Document x86_64/MinGW as a new native configuration.
3703
3704 2009-01-16 Joel Brobecker <brobecker@adacore.com>
3705
3706 * NEWS: Move the documentation of "info os processes" to
3707 the appropriate section (documenting the new commands).
3708
3709 2009-01-15 Doug Evans <dje@google.com>
3710
3711 * target.h (target_signal_to_string): Make return type const char *.
3712 (target_signal_to_name): Ditto.
3713 (target_signal_from_name): Make arg const char *.
3714 * infrun.c (sig_print_info): Update.
3715 * signals/signals.c (signals): Make array and struct members const.
3716 (target_signal_to_string): Make return type const char *.
3717 (target_signal_to_name): Ditto.
3718 (target_signal_from_name): Make arg const char *.
3719
3720 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3721 Tristan Gingold <gingold@adacore.com>
3722
3723 * solist.h (struct target_so_ops): New member bfd_open.
3724 (solib_find): Add prototype.
3725 (solib_bfd_fopen): Add prototype.
3726 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
3727 from solib_bfd_open.
3728 (solib_bfd_open): Use ops->bfd_open override if present. Call
3729 solib_find and solib_bfd_open otherwise.
3730
3731 * objfiles.h (OBJF_KEEPBFD): New define.
3732 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
3733 objfile flag is set.
3734 * solib.c (symbol_add_stub): Do not allocate second BFD for
3735 shared library; use OBJF_KEEPBFD flag on solib objfile.
3736
3737 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3738
3739 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
3740
3741 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
3742
3743 * value.h (address_of_variable): Add prototype.
3744 (locate_var_value): Remove prototype.
3745
3746 * findvar.c (read_var_value): Do not attempt to default frame
3747 to selected frame.
3748 (locate_var_value): Remove function.
3749 * valops.c (value_of_variable): Retrieve selected frame for
3750 symbols that require a frame when called with NULL block.
3751 * valops.c (address_of_variable): New function.
3752
3753 * eval.c (evaluate_subexp_for_address): Call address_of_variable
3754 instead of calling locate_var_value.
3755 (evaluate_subexp_with_coercion): Likewise.
3756
3757 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
3758
3759 * NEWS: Document "define" for prefixed commands.
3760 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
3761 show_user_1 for prefix commands.
3762 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
3763 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
3764 commands. Return the containing command list.
3765 (define_command, document_command): Update to handle prefix commands.
3766 (show_user_1): Add prefix and name arguments. Handle prefix
3767 commands.
3768 * cli/cli-script.h (show_user_1): Update prototype.
3769
3770 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
3771
3772 * mingw-ser.c (console_select_thread): Add return to make
3773 compiler happy.
3774 (pipe_select_thread): Likewise.
3775 (file_select_thread): Likewise.
3776
3777 2009-01-14 Pedro Alves <pedro@codesourcery.com>
3778
3779 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
3780 previous change.
3781
3782 2009-01-14 Pedro Alves <pedro@codesourcery.com>
3783
3784 * remote.c (extended_remote_mourn_1): Invalidate our notion of
3785 current general thread.
3786
3787 2009-01-14 Pedro Alves <pedro@codesourcery.com>
3788
3789 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
3790 without a live selected thread.
3791
3792 2009-01-14 Joel Brobecker <brobecker@adacore.com>
3793
3794 Update the copyright notice of some of the files I missed
3795 in the previous copyright update.
3796
3797 2009-01-14 Joel Brobecker <brobecker@adacore.com>
3798
3799 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
3800 base address instead of casting it to DWORD.
3801
3802 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
3803
3804 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
3805 for NULL frame pointers.
3806
3807 2009-01-13 Mark Kettenis <kettenis@gnu.org>
3808
3809 * utils.c (host_address_to_string): Reimplement in a way that
3810 avoids the cast of the address to long.
3811
3812 2009-01-13 Joel Brobecker <brobecker@adacore.com>
3813
3814 * mdebugread.c (parse_symbol): Save the symbol private data
3815 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
3816 (psymtab_to_symtab_1): Likewise.
3817 (parse_procedure): Declare variable "e" only in the scope
3818 where it is used. Extract the symbol private data using
3819 SYMBOL_VALUE_BYTES.
3820
3821 2009-01-13 Jim Blandy <jimb@codesourcery.com>
3822
3823 Abstract out common code for copying value locations.
3824
3825 * value.h (set_value_component_location): New declaration.
3826 * value.c (set_value_component_location): New function.
3827 (value_primitive_field): Use it.
3828 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
3829 * valops.c (search_struct_field, value_slice): Same.
3830 * ada-lang.c (coerce_unspec_val_to_type)
3831 (ada_value_primitive_packed_val): Same.
3832
3833 2009-01-13 Joel Brobecker <brobecker@adacore.com>
3834
3835 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
3836
3837 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
3838
3839 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
3840 throughout.
3841 * i386-cygwin-tdep.c: Ditto.
3842 * i386-windows-nat.c: Ditto.
3843 * windows-nat.h: Ditto.
3844 * windows-tdep.c: Ditto.
3845 * windows-tdep.h: Ditto.
3846 * windows-nat.c: Ditto.
3847 (cygwin_load_start): Redefine as CORE_ADDR.
3848 (cygwin_load_end): Ditto.
3849 (windows_make_so): Coerce result of address arithmetic to uintptr_t
3850 before coercing to CORE_ADDR to avoid a compiler warning.
3851 (handle_exception): Define addr as CORE_ADDR and coerce
3852 ExceptionAddress to uintptr_t before assigining to avoid a compiler
3853 warning.
3854 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
3855 files.
3856
3857 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3858
3859 Fix linking with --enable-targets=all:
3860 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
3861 (HFILES_NO_SRCDIR): Add windows-tdep.h.
3862 (ALLDEPFILES): Add windows-tdep.c.
3863
3864 2009-01-11 Chris Faylor <me.gdb@cgf.cx>
3865
3866 * win32-nat.h: Delete.
3867 * windows-nat.h: Rename from win32-nat.h.
3868 * win32-nat.c: Delete.
3869 * windows-nat.c: Rename from win32-nat.c.
3870 * win32-termcap.c: Delete.
3871 * windows-termcap.c: Rename from win32-termcap.c.
3872 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
3873 * configure.ac: Handle rename from win32-termcap.c ->
3874 windows-termcap.c.
3875 * configure: Regenerate.
3876 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
3877 -> windows-termcap.c.
3878 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
3879 windows-tdep.h.
3880 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
3881 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
3882 windows-tdep.h.
3883 (win32_make_so): Handle cygwin compiler warning due to change of
3884 load_addr from DWORD to LPVOID.
3885 (handle_load_dll): Use %p in format string to properly print address
3886 and avoid a compiler warning.
3887 (DEBUG_EXCEPTION_SIMPLE): Ditto.
3888 (handle_exception): Ditto.
3889 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
3890 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
3891 windows-nat.o.
3892 * config/i386/mingw.mh: Ditto.
3893 * config/i386/mingw64.mh: Ditto.
3894
3895 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3896
3897 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
3898 arrayprint_recurse_level to a parameter. Update all the callers. New
3899 comment at autovariables.
3900
3901 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3902
3903 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
3904 coding style.
3905
3906 2009-01-11 Joel Brobecker <brobecker@adacore.com>
3907
3908 * target.c (target_xfer_partial): Use host_address_to_string to
3909 print the address of readbuf and writebuf. Cast the address of
3910 elements inside the myaddr buffer into intptr_t.
3911 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
3912 Cast the address of elements inside the myaddr buffer into
3913 intptr_t.
3914
3915 2009-01-11 Joel Brobecker <brobecker@adacore.com>
3916
3917 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
3918 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
3919 * configure.host, configure.tgt: Add handling for x86_64/windows.
3920 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
3921 and amd64-windows-tdep.c.
3922
3923 2009-01-11 Joel Brobecker <brobecker@adacore.com>
3924
3925 * win32-tdep.h, win32-tdep.c: New files.
3926 * i386-cygwin-tdep.h: Delete.
3927 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
3928 i386-cygwin-tdep.h.
3929 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
3930 * win32-nat.c: Likewise.
3931 * configure.tgt: Add win32-tdep.o to the list of target object
3932 files for i386-cygwin and i386-mingw targets.
3933
3934 2009-01-11 Joel Brobecker <brobecker@adacore.com>
3935
3936 * win32-nat.h: New file.
3937 * win32-nat.c (mappings): Initialize to NULL.
3938 (win32_set_context_register_offsets): New function.
3939 * i386-windows-nat.c: New file.
3940 (mappings): Moved here from win32-nat.c.
3941 (_initialize_i386_windows_nat): New function.
3942 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
3943 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
3944
3945 2009-01-09 Andreas Schwab <schwab@suse.de>
3946
3947 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
3948
3949 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
3950
3951 * gdbtypes.c (append_composite_type_field): Correct the location of
3952 appended fields.
3953
3954 2009-01-09 Pedro Alves <pedro@codesourcery.com>
3955
3956 * defs.h (deprecated_error_hook): Delete declaration.
3957 * interps.c (clear_interpreter_hooks): Adjust.
3958 * remote-sim.c (gdb_os_error): Don't try to call
3959 deprecated_error_hook. No need to call exit anymore.
3960 * top.c (deprecated_error_hook): Delete.
3961
3962 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3963
3964 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
3965 to print the address of the gdbarch pointer.
3966
3967 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3968
3969 * gdbarch.sh: Fix all the compilation errors on amd64-windows
3970 due to casting a pointer to a long when printing a function
3971 address. Instead, use host_address_to_string to convert our
3972 address to a string.
3973 * gdbarch.c: Regenerate.
3974
3975 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3976
3977 * event-top.c (async_disconnect, async_stop_sig): use "raise"
3978 instead of "kill" to raise a signal.
3979
3980 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3981
3982 * win32-nat.c (get_module_name): Change the type of parameter
3983 "base_address" to LPVOID. Remove unnecessary cast.
3984 (struct lm_info): Change type of load_addr to LPVOID.
3985 (win32_make_so): Change the type of parameter "load_addr"
3986 to LPVOID. Remove some unnecessary casts.
3987 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
3988 (win32_xfer_shared_libraries): Add missing cast.
3989
3990 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3991
3992 * win32-nat.c (has_detach_ability, set_process_privilege):
3993 Cast the result of GetProcAddress to (void *) to avoid
3994 a compilation warning.
3995
3996 2009-01-09 Joel Brobecker <brobecker@adacore.com>
3997
3998 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
3999 already defined.
4000
4001 2009-01-09 Joel Brobecker <brobecker@adacore.com>
4002
4003 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
4004 definition of local variable "done".
4005 (info_w32_command, handle_exception): Remove unnecessary cast.
4006
4007 2009-01-09 Joel Brobecker <brobecker@adacore.com>
4008
4009 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
4010 DebugSetProcessKillOnExit. Update all uses in this file.
4011 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
4012 Update all uses in this file.
4013
4014 2009-01-09 Joel Brobecker <brobecker@adacore.com>
4015
4016 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
4017 and use it when pushing the target.
4018 (win32_attach, win32_create_inferior): Update call to
4019 do_initial_win32_stuff.
4020 (win32_detach, win32_mourn_inferior): Use our ops parameter
4021 instead of the global win32_ops to unpush the target.
4022
4023 2009-01-09 Joel Brobecker <brobecker@adacore.com>
4024
4025 * ser-mingw.c (ser_windows_open): Use proper type when casting
4026 in call to _open_osfhandle.
4027
4028 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
4029
4030 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
4031
4032 2009-01-09 Joel Brobecker <brobecker@adacore.com>
4033
4034 * CONTRIBUTE: Minor reformatting.
4035
4036 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
4037
4038 * MAINTAINERS: Add myself to Write After Approval.
4039 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
4040 export directory.
4041
4042 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
4043
4044 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
4045 Call exit to make it obvious to GCC.
4046
4047 2009-01-08 Tom Tromey <tromey@redhat.com>
4048
4049 PR breakpoints/9350:
4050 * varobj.c (varobj_invalidate): Unconditionally free
4051 all_rootvarobj.
4052 * symfile.c (syms_from_objfile): Free local_addr when returning
4053 normally.
4054 * exec.c (exec_file_attach): Do cleanups before returning.
4055 (exec_file_command): Likewise.
4056 * corefile.c (reopen_exec_file): Do cleanups before returning.
4057 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
4058 returning.
4059 (do_vec_free): New function.
4060 (update_global_location_list): Make a cleanup for old_locations.
4061 Do cleanups before returning. Remove unused variable 'e'.
4062 (find_condition_and_thread): Free result of parsing the
4063 expression.
4064 (print_it_typical): Do cleanups before returning.
4065 (breakpoint_re_set_one): Always free sals.sals.
4066
4067 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4068 Emi Suzuki <emi-suzuki@tjsys.co.jp>
4069
4070 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
4071 watchpoints.
4072
4073 2009-01-07 Doug Evans <dje@google.com>
4074
4075 * top.c (gdb_prompt_string): Delete, unused.
4076
4077 2009-01-07 Pedro Alves <pedro@codesourcery.com>
4078
4079 Delete ONE_PROCESS_WRITETEXT leftovers.
4080
4081 * breakpoint.c (insert_bp_location): Delete process_warning
4082 argument. Adjust.
4083 (insert_breakpoint_locations): Adjust.
4084 (reattach_breakpoints): Adjust.
4085 * infrun.c (normal_stop): Drop "It might be running in another
4086 process" notice.
4087
4088 2009-01-07 Stan Shebs <stan@codesourcery.com>
4089
4090 * config/pa/linux.mh (XDEPFILES): Remove.
4091
4092 2009-01-07 Doug Evans <dje@google.com>
4093
4094 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
4095
4096 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
4099 spacing, a regression from 2008-04-22.
4100
4101 2009-01-07 Joel Brobecker <brobecker@adacore.com>
4102
4103 * utils.c (gdb_print_host_address): Adjust implementation to
4104 reuse host_address_to_string. Move comment explaining the conversion
4105 from host address to string from here...
4106 (host_address_to_string): ... to there.
4107
4108 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
4109
4110 * MAINTAINERS: Add myself for write after approval privileges.
4111
4112 2009-01-06 Tom Tromey <tromey@redhat.com>
4113
4114 * value.c (set_internalvar): Use value_free, not xfree.
4115
4116 2009-01-06 Jim Blandy <jimb@red-bean.com>
4117
4118 Check return values of functions declared with warn_unused_result
4119 attribute in GLIBC 2.8.
4120 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
4121 * inflow.c (check_syscall): New function.
4122 (new_tty): Use check_syscall to check return values from open and dup.
4123 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
4124 * main.c (captured_main): Call cwd after setting up gdb_stderr;
4125 check for errors from getcwd.
4126 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
4127 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
4128 (stdio_file_fputs): Same.
4129 * utils.c (internal_vproblem): abort if last-ditch error message
4130 write fails.
4131
4132 * top.c (gdb_init): Don't set the current directory here; that's
4133 already been done in captured_main.
4134
4135 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
4136
4137 * ser-tcp.c: Adjust includes.
4138 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
4139 (tcp_auto_retry, tcp_retry_limit): Declare.
4140 (TIMEOUT): Remove, in favor of tcp_retry_limit.
4141 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
4142 (wait_for_connect): New function.
4143 (net_open): Use it. Add auto-retry logic.
4144 (set_tcp_cmd, show_tcp_cmd): New functions.
4145 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
4146 and "set/show tcp connect-timeout" commands.
4147 * NEWS: Document new commands.
4148
4149 2009-01-05 Tom Tromey <tromey@redhat.com>
4150
4151 * python/python-internal.h (Py_ssize_t): Define as int.
4152
4153 2009-01-05 Jim Blandy <jimb@red-bean.com>
4154
4155 * MAINTAINERS: Fix my e-mail address as steering committee member.
4156
4157 2009-01-03 Joel Brobecker <brobecker@adacore.com>
4158
4159 Updated copyright notices for most files.
4160
4161 2009-01-03 Joel Brobecker <brobecker@adacore.com>
4162
4163 * top.c (print_gdb_version): Update copyright year.
4164
4165 2009-01-03 Joel Brobecker <brobecker@adacore.com>
4166
4167 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
4168
4169 2009-01-01 Pedro Alves <pedro@codesourcery.com>
4170
4171 PR breakpoints/9681:
4172 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
4173 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
4174 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
4175 retrow all other exceptions.
4176
4177 For older changes see ChangeLog-2008.
4178 \f
4179 Local Variables:
4180 mode: change-log
4181 left-margin: 8
4182 fill-column: 74
4183 version-control: never
4184 coding: utf-8
4185 End: