1 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
5 (linux_nat_wait): Add main lwp to gdb's thread list.
6 * linux-thread-db.c (find_new_threads_callback): Also attach to
7 already listed threads which thread_db didn't know about yet.
9 2008-03-25 Pedro Alves <pedro@codesourcery.com>
11 * linux-nat.c (drain_queued_events): Fix comment typo.
12 (linux_nat_attach): In async mode, don't rely on storing a pending
13 status. Instead place the wait status on the pipe.
14 (linux_nat_resume): Remove unreacheable shortcut code in async
16 (stop_wait_callback): In async mode, don't store pending status.
17 Instead, cancel breakpoints or resend the signal appropriatelly.
18 (cancel_breakpoint): New, refactored from
19 cancel_breakpoints_callback.
20 (cancel_breakpoints_callback): Call cancel_breakpoint.
21 (pipe_to_local_event_queue): Remove special token processing.
22 (linux_nat_wait): Issue an internal error if a pending status is
25 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
27 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
29 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
30 Vladimir Prus <vladimir@codesourcery.com>
32 * varobj.c (struct varobj_root): New component thread_id.
33 (varobj_get_thread_id, check_scope): New functions.
34 (c_value_of_root): Use check_scope. Switch to the
35 proper thread if necessary.
37 * varobj.h (varobj_get_thread_id): New extern.
39 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
41 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
44 * top.c: Revert 2008-03-21 changes.
46 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
48 * thread.c (make_cleanup_restore_current_thread): Make it
50 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
51 * varobj.c (varobj_update): Don't save/restore frame.
52 (c_value_of_root): Save/restore thread and frame here,
53 using make_cleanup_restore_current_thread.
54 * Makefile.in: Update dependecies.
56 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
58 * varobj.c (struct varobj_root): Clarify
59 comment on the frame field.
60 (varobj_create): Don't set frame if we have no
63 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
66 Suggested by Jan Kratochvil:
67 * top.c (gdb_rl_operate_and_get_next_completion): Call
68 rl_redisplay_function.
69 (gdb_rl_redisplay): New.
70 (init_main): Set rl_redisplay_function.
72 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
74 * aix-thread.c (pdc_read_regs): Fix compiler warning.
75 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
76 (store_regs_kernel_thread): Likewise.
78 2008-03-21 Pedro Alves <pedro@codesourcery.com>
80 Linux native async support.
82 * target.h (struct target_ops): Delete to_async_mask_value and add
84 (target_is_async_p, target_async): Formatting.
85 (target_async_mask_value): Delete.
86 (target_async_mask): Delete function declaration, and add new
87 target macro with the same name.
89 * target.c (update_current_target): Replace to_async_mask_value by
90 to_async_mask. Default to_async_mask to return_one.
91 (target_async_mask): Delete.
92 (find_default_can_async_p, find_default_is_async_p): New.
93 (init_dummy_target): register find_default_can_async_p and
94 find_default_is_async_p on the dummy target.
96 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
97 (debug_linux_nat_async): New global.
98 (show_debug_linux_nat_async): New function.
99 (linux_nat_async_enabled, linux_nat_async_mask_value)
100 (linux_nat_event_pipe, linux_nat_num_queued_events)
101 (linux_nat_async_events_enabled): New globals.
102 (struct waitpid_result): New struct.
103 (waitpid_queue): New global.
104 (queued_waitpid, push_waitpid, drain_queued_events): New.
105 (my_waitpid): Call queued_waitpid.
106 (linux_child_follow_fork): Disable async events during the call.
107 (blocked_mask): Delete.
108 (sync_sigchld_action, async_sigchld_action): New globals.
109 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
110 async mode, block events during the call.
111 (linux_nat_create_inferior): New.
112 (linux_nat_attach): In sync mode, restore the mask states. In
113 async mode, wake the event loop immediatelly.
114 (detach_callback): Drain all queued events of the lwp we're
116 (linux_nat_detach): Block async mode, and drain events of the main
118 (linux_nat_resume): If in async mode, mask async events during the
119 call. If short circuiting, force event loop to wake up. If
120 resuming, set target_executing, and register target events in the
122 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
123 (linux_nat_wait): In async mode, block events during the call.
124 Only enable/disable passing SIGINT to the inferior in sync mode.
125 Get events from local waitpid queue. If no interesting events was
126 found, return to events loop. Reregister target events in the
127 event loop on exit. In sync mode, no need to reblock SIGCHLD.
128 (linux_nat_kill): Disable events on entry.
129 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
130 here. Detach async mode from the event loop if there are no more
131 forks available, otherwise leave it on.
132 (sigchld_handler): Assure this is called only in sync mode.
133 (linux_async_permitted, linux_async_permitted_1): New globals.
134 (set_maintenance_linux_async_permitted)
135 (show_maintenance_linux_async_permitted): New functions.
136 (linux_nat_is_async_p, linux_nat_can_async_p)
137 (linux_nat_async_mask): New.
138 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
139 (get_pending_events, async_sigchld_handler): New.
140 (linux_nat_async_events): New.
141 (async_terminal_is_ours): New global.
142 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
143 (async_client_callback, async_client_context): New.
144 (linux_nat_async_file_handler, linux_nat_async)
145 (linux_nat_disable_async, linux_nat_enable_async): New.
146 (linux_nat_add_target): Register linux_nat_create_inferior,
147 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
148 linux_nat_async_mask, linux_nat_terminal_inferior and
149 linux_nat_terminal_ours.
150 (_initialize_linux_nat): Remove local action variable, and update
151 code that used it to use sync_sigchld_action. Add new
152 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
153 set/show command in the maintenance class. Add new "linux-async"
154 maintenance set/show command. Block SIGCHLD by default. Setup
155 async_sichld_action, and sync_sigchld_action. Install the default
157 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
160 * linux-thread-db.c (re_check_for_thread_db): New.
161 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
162 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
163 (thread_db_async_mask): New.
164 (init_thread_db_ops): Register thread_db_can_async_p,
165 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
167 * remote.c (remote_async_mask_value): New.
168 (remote_return_zero): New.
169 (init_remote_ops): Register remote_return_zero as callbacks of
170 to_can_async_p and to_is_async_p.
171 (remote_can_async_p, remote_is_async_p, remote_async): Update to
172 use remote_async_mask_value.
173 (remote_async_mask): New.
174 (init_remote_async_ops): Remove to_async_mask_value setting and
175 register remote_async_mask as to_async_mask callback in
178 * Makefile.in (linux-nat.o): Update.
180 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
182 * gdbthread.h (add_thread_with_info): New.
183 * linux-thread-db.c: Add some documentation.
184 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
185 (struct private_thread_info): Remove th_valid and ti_valid.
187 (thread_get_info_callback): Do not add TID to the new ptid. Do
189 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
190 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
192 (attach_thread): Handle an already-existing thread. Use
193 add_thread_with_info. Cache the th and tid.
194 (detach_thread): Verify that private was set. Remove verbose
195 argument and printing. Update caller.
196 (thread_db_detach): Do not adjust inferior_ptid.
197 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
198 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
199 (thread_db_wait): Do not use lwp_from_thread.
200 (thread_db_pid_to_str): Use the cached TID.
201 (thread_db_extra_thread_info): Check that private is set.
202 (same_ptid_callback): Delete.
203 (thread_db_get_thread_local_address): Do not use it or check
204 is_thread. Check that private is set. Assume that the thread
205 handle is already cached.
206 (init_thread_db_ops): Remove to_resume and to_kill.
207 * thread.c (add_thread_with_info): New.
208 (add_thread): Use it.
209 * linux-nat.c (find_thread_from_lwp): Delete.
210 (exit_lwp): Do not use it. Check print_thread_events. Print before
212 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
213 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
214 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
215 printf_unfiltered for thread exits.
216 * procfs.c (procfs_wait): Likewise.
218 2008-03-21 Chris Demetriou <cgd@google.com>
220 * symtab.c (rbreak_command): Quote symbol name before passing
223 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
225 * eval.c (evaluate_subexp_for_address): Clarify error message.
226 Use value_must_coerce_to_target.
227 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
228 * valops.c (value_assign): Call value_coerce_to_target when
229 assigning to anything but internalvars. Leave GDB-side arrays
230 as arrays when assigning to internalvars.
231 (value_must_coerce_to_target, value_coerce_to_target): New.
232 (value_coerce_array, value_addr): Call value_coerce_to_target.
233 (value_array): Create the array in GDB's memory instead of
235 * value.h (value_must_coerce_to_target, value_coerce_to_target):
238 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
240 * top.c (quit_confirm): Warn that we will kill the program.
242 2008-03-19 Pedro Alves <pedro@codesourcery.com>
244 * inflow.c (terminal_ours_1): Guard access to
245 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
247 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
248 Jim Blandy <jimb@codesourcery.com>
249 Daniel Jacobowitz <drow@false.org>
251 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
252 (dwarf2_read_address): Update prototype.
254 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
255 (signed_address_type): Likewise.
256 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
257 (execute_stack_op): Update calls to unsigned_address_type,
258 signed_address_type and dwarf2_read_address. Fix implementation
261 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
262 (dwarf2_per_cu_addr_size): Likewise.
263 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
264 (struct dwarf2_loclist_baton): Likewise.
266 * dwarf2loc.c (find_location_expression): Update calls to
267 dwarf2_read_address. Use dwarf2_per_cu_objfile and
268 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
269 (locexpr_describe_location): Likewise.
270 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
271 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
272 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
273 to dwarf2_per_cu_addr_size (per_cu).
274 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
275 (loclist_read_variable): Likewise.
276 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
278 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
279 instead of baton->objfile.
280 (dwarf2_per_cu_obfile): New function.
281 (dwarf2_per_cu_addr_size): Likewise.
283 * dwarf2-frame.c (struct comp_unit): Move higher.
284 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
285 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
286 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
287 parameter by using fde->eh_frame_p. Use read_encoded_value
288 to implement DW_CFA_set_loc.
289 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
290 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
291 execute_stack_op and execute_cfa_program.
292 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
293 (size_of_encoded_value): Remove.
294 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
295 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
296 (add_cie): Set cie->unit backlink.
297 (decode_frame_entry_1): Set cie->addr_size. Update calls to
299 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
301 2008-03-17 Markus Deuling <deuling@de.ibm.com>
303 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
304 gdbarch_bfd_arch_info.
306 2008-03-17 Joel Brobecker <brobecker@adacore.com>
308 * aix-thread.c (pdc_read_regs): Minor reformatting.
310 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
312 * thread.c (print_thread_info): Don't insist
313 on having current thread if there are no
316 2008-03-17 Pedro Alves <pedro@codesourcery.com>
318 * infcmd.c (attach_command_post_wait)
319 (attach_command_continuation): New.
320 (attach_command): Support background async execution, and async
321 execution in synchronous mode.
323 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
325 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
326 * symmisc.c (dump_symtab_1): Likewise.
327 * wrapper.c (gdb_value_struct_elt): Likewise.
329 2008-03-17 Pedro Alves <pedro@codesourcery.com>
331 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
333 2008-03-17 Pedro Alves <pedro@codesourcery.com>
335 * linux-nat.c (linux_nat_filter_event): New, refactored from
337 (linux_nat_wait): Call linux_nat_filter_event.
339 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
341 * top.c (execute_command): Fix uninitialized variable error.
343 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
345 * Makefile.in (amd64nbsd-nat.o): New dependency.
346 * amd64nbsd-nat.c: Include "nbsd-nat.h".
347 (_initialize_amd64nbsd_nat): Update target vector to use
348 nbsd_pid_to_exec_file.
349 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
351 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
353 Remove ignoring leading exec events code.
354 * fork-child.c (startup_inferior): Do not set
355 inferior_ignoring_leading_exec_events.
356 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
357 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
358 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
359 (handle_inferior_event): Remove code for ignoring leading exec
361 * target.c (update_current_target): Do not inherit, or default,
362 to_reported_exec_events_per_exec_call.
363 (debug_to_reported_exec_events_per_exec_call): Remove.
364 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
365 * target.h (target_reported_exec_events_per_exec_call): Remove.
366 (struct target): Remove the to_reported_exec_events_per_exec_call
369 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
371 Implement -thread-info.
372 * gdbthread.h (print_thread_info): Declare.
374 * thread.c (print_thread_info): New, extracted
375 from info_threads_command and adjusted to
377 (info_threads_command): Use print_thread_info.
378 * Makefile.in: Update dependencies.
380 * mi/mi-cmds.c (mi_cmds): Specify a handler
382 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
383 * mi/mi-main.c (mi_cmd_thread_info): New.
384 (mi_cmd_list_features): Include 'thread-info'.
386 2008-03-14 Kevin Buettner <kevinb@redhat.com>
388 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
389 to decide whether to match instruction patterns using "sw" and "sd".
391 2008-03-14 Pedro Alves <pedro@codesourcery.com>
393 * infcmd.c (jump_command): Postpone disabling stdin until after
396 2008-03-14 Pedro Alves <pedro@codesourcery.com>
398 * inflow.c (gdb_getpgrp): New.
399 (gdb_has_a_terminal): Use get_getpgrp.
400 (terminal_ours_1): If attach_flag is set, don't refetch
401 inferior_process_group.
403 2008-03-14 Pedro Alves <pedro@codesourcery.com>
405 * features/library-list.dtd: Allow "section" elements as children
406 of "library". Add "section" element and describe its attributes.
408 * solib-target.c (struct lm_info): Add section_bases member.
409 (library_list_start_segment): Error out if seen a section element.
410 (library_list_start_section): New.
411 (library_list_end_library): New.
412 (solib_target_free_library_list): Free section_bases.
413 (section_attributes): New.
414 (library_children): Make "segment" optional. Add "section" child.
415 (library_list_children): Register library_list_end_library.
416 (solib_target_relocate_section_addresses): Handle section bases.
418 * NEWS: Mention new qXfer:libraries:read section offsets support.
420 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
422 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
423 (make_exec_error_cleanup): Remove declarations.
424 * utils.c (exec_error_cleanup_chain): Remove.
425 (do_exec_error_cleanups, discard_exec_error_cleanups)
426 (make_exec_error_cleanup): Remove.
427 * event-loop.c (start_event_loop): Adjust call to
429 * event-top.c (async_enable_stdin): Remove the paramater dummy.
430 (async_disable_stdin): Don't register async_enable_stdin via
432 * inf-loop.c (inferior_event_handler): Don't
433 call do_exec_error_cleanups. Call async_enable_stdin instead.
434 * event-loop.c (start_event_loop): Adjust call to
436 * tui/tui-interp.c (tui_command_loop): Adjust call to
439 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
442 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
443 * breakpoint.c (bpstat_do_actions): In async mode,
444 don't jump to top expecting stop_bpstat to be already
446 * event-loop.c (start_event_loop): Call async_enable_stdin
448 * event-top.c (async_enable_stdin): Do nothing if sync_execution
450 (command_handler): Do not setup continuation here.
451 (command_line_handler_continuation): Move to...
452 * top.c (command_line_handler_continuation): ... here.
453 (execute_command): In async mode, register continuation.
454 Don't check frame's language in running in async mode.
455 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
456 * inf-loop.c (complete_execution): Inline into...
457 (inferior_event_handler): ... here. Clear target_executing before
458 doing any cleanups. Don't try to show prompt if the target was
460 * infcmd.c (signal_command): Add support for async mode.
461 (finish_command): Only add continuation if the target was
462 successfully resumed.
463 * remote.c (init_async_opts): Register to_get_thread_local_address
465 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
467 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
470 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
472 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
473 * exec.c (exec_bfd_mtime): Define.
474 (exec_close): Clear it.
475 (exec_file_attach): Set it.
476 * gdbcore.h (exec_bfd_mtime): Declare.
477 * source.c (find_source_lines): Do not use bfd_get_mtime.
479 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
481 * top.c (simplified_command_loop): Remove.
483 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
485 Remove unused remote.c hooks.
486 * remote.c (deprecated_target_resume_hook)
487 (deprecated_target_wait_loop_hook): Remove.
488 (remote_resume): Do not call deprecated_target_resume_hook.
489 (remote_wait): Do not call deprecated_target_wait_loop_hook.
490 (remote_async_wait): Likewise.
492 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
494 Implement MI notification for new threads.
495 * doc/observer.texi (new_thread): Document.
496 * observer.sh: Forward declare struct thread_info.
497 * thread.c (add_thread): Notify observer.
499 * interps.h (interp_init_ftype): New parameter
501 (interp_set): Likewise.
502 (top_level_interpreter_data): Declare.
503 * interps.c (interp_set): New parameter top_level.
504 Pass it to interpreter's init function. Remember
505 top level interpreter.
506 (interpreter_exec_cmd): Adjust.
507 (top_level_interpreter_data): New.
508 * main.c (captured_main): Pass 1 for top_level
509 parameter of interp_set.
510 * cli/cli-interp.c (cli_interpreter_init): New
512 * tui/tui-interp.c (tui_init): New parameter top_level.
514 * mi/mi-interp.c (mi_new_thread): New.
515 (mi_interpreter_init): If top level, register
516 observer for new threads.
518 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
520 2008-03-14 Pedro Alves <pedro@codesourcery.com>
522 * top.c (execute_command): Disable break and stop
523 commands in async mode.
525 2008-03-14 Pedro Alves <pedro@codesourcery.com>
528 2008-03-14 Pedro Alves <pedro@codesourcery.com>
529 * inf-loop.c (inferior_event_handler): Don't include remote.h.
530 Call target_stop in the INF_QUIT_REQ case.
531 * Makefile.in (inf-loop.o): Update.
533 2008-03-14 Pedro Alves <pedro@codesourcery.com>
535 * inf-loop.c (inferior_event_handler): Don't include remote.h.
536 Call target_stop in the INF_QUIT_REQ case.
537 * Makefile.in (inf-loop.o): Update.
539 2008-03-14 Pedro Alves <pedro@codesourcery.com>
541 * top.c (execute_command): Enable break, info and interrupt
542 commands in async mode.
544 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
545 Daniel Jacobowitz <dan@codesourcery.com>
547 * breakpoint.h (breakpoint_restore_shadows): New
549 * breakpoint.c (breakpoint_restore_shadows): New.
550 (read_memory_nobpt): Delete.
551 * gdbcore.h (read_memory_nobpt): Delete declaration.
552 * target.c (memory_xfer_partial): Call
553 breakpoint_restore_shadows.
554 (restore_show_memory_breakpoints)
555 (make_show_memory_beakpoints_cleanup): New.
556 (show_memory_breakpoints): New.
557 * target.h (make_show_memory_beakpoints_cleanup): Declare.
558 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
559 Make sure we see memory breakpoints when checking if
560 breakpoint is still there.
561 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
562 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
563 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
564 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
566 2008-03-12 Pedro Alves <pedro@codesourcery.com>
568 * thread.c (add_thread): Use printf_unfiltered to print.
570 2008-03-12 Joel Brobecker <brobecker@gnat.com>
572 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
573 that is true only on x86-solaris and x86_64-solaris.
574 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
575 with proc_get_LDT_entry.
577 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
579 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
580 * config.in, configure: Regenerate.
581 * fork-child.c (fork_inferior): Call create_tty_session.
582 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
583 (create_tty_session): New function.
584 * terminal.h: Declare create_tty_session.
586 2008-03-12 Alan Modra <amodra@bigpond.net.au>
589 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
590 * mipsread.c: Include elf/internal.h.
591 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
594 2008-03-11 Markus Deuling <deuling@de.ibm.com>
596 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
597 to get at the current architecture and at the target specific vector.
598 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
599 remove define of I387_ST0_REGNUM.
601 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
603 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
604 get at the current architecture
605 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
608 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
609 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
611 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
612 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
613 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
615 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
616 at the target specific vector.
618 (i386_get_longjmp_target): Use get_frame_arch to get at the current
619 architecture. Use gdbarch_tdep to get at the target specific vector.
621 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
622 update caller. Use gdbarch_tdep to get at the target specific vector.
624 (i386_register_to_value: Use get_frame_arch to get at the current
627 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
630 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
631 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
632 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
633 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
635 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
638 (i387_convert_register_p, i387_register_to_value,
639 i387_value_to_register): Update call for i386_fp_regnum_p.
641 * i387-tdep.h: Remove comment.
642 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
643 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
644 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
645 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
646 I387_MXCSR_REGNUM): Add target specific vector as parameter.
648 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
650 * Makefile.in (fork-child.o): Update.
651 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
652 argument. Gather all gdbserver features together.
653 * fork-child.c (exec_wrapper): New variable.
654 (fork_inferior): Use it.
655 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
656 (unset_exec_wrapper_command, _initialize_fork_child): New.
658 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
660 * source.c (directory_command): Modify the determination of
661 condition of terminal "from_tty".
663 2008-03-10 Matt Rice <ratmice@gmail.com>
665 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
667 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
669 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
670 of the data passing to strtoulst function.
671 (info_spu_signal_command): Likewise.
673 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
675 * mi/mi-interp.c (mi_command_loop): Remove
678 2008-03-07 Joel Brobecker <brobecker@adacore.com>
680 * remote.c (extended_remote_attach_1): Make local variable pid an int
683 2008-03-07 Joel Brobecker <brobecker@adacore.com>
685 * solib-svr4.c (svr4_same_1): New function, originally extracted
686 from svr4_same and expanded to handle the sparc64 case.
687 (svr4_same): Move up and reimplement using svr4_same_1.
688 (enable_break): Use svr4_same_1 to do shared library name comparisons.
690 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
692 * MAINTAINERS: Move self to Paper trail.
694 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
696 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
697 * event-loop.c (call_async_signal_handler): New.
698 * event-loop.h (call_async_signal_handler)
699 (gdb_call_async_signal_handler): Declare.
700 (mark_async_signal_handler): Add comments.
701 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
702 * mingw-hdep.c (sigint_event, sigint_handler): New.
703 (gdb_select): Use them. Wait for the readline signal handler
705 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
706 * posix-hdep.c (gdb_call_async_signal_handler): New function.
707 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
709 (remote_fileio_ctrl_c_signal_handler): Use
710 gdb_call_async_signal_handler.
711 (initialize_remote_fileio): Initialize sigint_fileio_token.
712 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
713 not initialize tokens here.
714 (handle_remote_sigint_twice): Likewise. Reinstall
715 handle_remote_sigint.
716 (async_remote_interrupt_twice): Just call interrupt_query.
717 (cleanup_sigint_signal_handler): Do not delete tokens.
718 (remote_interrupt, remote_interrupt_twice): Use
719 gdb_call_async_signal_handler.
720 (interrupt_query): Reinstall the default signal handler.
721 (_initialize_remote): Initialize tokens here.
723 2008-03-04 Joel Brobecker <brobecker@adacore.com>
725 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
726 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
727 Change the type of the lr register to code_ptr.
728 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
729 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
730 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
731 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
732 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
733 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
734 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
736 2008-03-03 James E. Wilson <wilson@tuliptree.org>
738 * MAINTAINERS: Update my email address.
740 2008-03-03 Keith Seitz <keiths@redhat.com>
742 From Dave Murphy <davem@devkitpro.org>:
743 * configure.ac: Set tcl configdir to win under mingw.
744 * configure: Regenerate.
746 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
748 * breakpoint.c (fetch_watchpoint_value): New function.
749 (update_watchpoint): Set and clear val_valid. Use
750 fetch_watchpoint_value. Handle unreadable values on the
751 value chain. Correct check for user-requested array watchpoints.
752 (breakpoint_init_inferior): Clear val_valid.
753 (watchpoint_value_print): New function.
754 (print_it_typical): Use it. Do not free or clear old_val. Print
755 watchpoints even if old_val == NULL.
756 (watchpoint_check): Use fetch_watchpoint_value. Check for values
757 becoming readable or unreadable.
758 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
759 (do_enable_watchpoint): Likewise.
760 * breakpoint.h (struct breakpoint): Update comment for val. Add
762 * NEWS: Mention watchpoints on inaccessible memory.
764 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
766 * Makefile.in (i386-nat.o): Update.
767 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
768 i386_use_watchpoints.
769 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
770 i386_use_watchpoints.
771 * i386-nat.c (i386_stopped_data_address): Take two arguments.
772 (i386_stopped_by_watchpoint): Update call.
773 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
774 * config/i386/nm-i386.h: Conditionalize definitions on
775 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
776 (i386_use_watchpoints): Declare.
777 (i386_stopped_data_address): Update.
778 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
779 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
781 2008-02-29 Joel Brobecker <brobecker@adacore.com>
783 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
784 * version.in: Bump version to 6.8.50.20080229-cvs.
786 2008-02-28 Markus Deuling <deuling@de.ibm.com>
788 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
791 2008-02-28 Tom Tromey <tromey@redhat.com>
793 * infcmd.c (notice_args_read): Print result of get_inferior_args.
795 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
797 * infcmd.c (kill_if_already_running): Make static. Use
798 target_require_runnable.
799 * target.c (target_require_runnable): New.
800 * target.h (target_require_runnable): Declare.
802 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
804 * frame.c (reinit_frame_cache): Only annotate if frames were
807 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
809 * regformats/reg-ppc.dat: Rename "ps" to "msr".
810 * regformats/reg-ppc64.dat: Likewise.
812 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
814 * features/Makefile (%.dat): Emit xmltarget statement.
816 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
817 Generate code to set gdbserver_xmltarget in init_registers_${name}.
819 * regformats/arm-with-iwmmxt.dat: Regenerate.
820 * regformats/mips64-linux.dat: Regenerate.
821 * regformats/mips-linux.dat: Regenerate.
822 * regformats/rs6000/powerpc-32.dat: Regenerate.
823 * regformats/rs6000/powerpc-64.dat: Regenerate.
824 * regformats/rs6000/powerpc-e500.dat: Regenerate.
826 * regformats/reg-arm.dat: Add xmlarch statement.
827 * regformats/reg-i386.dat: Likewise.
828 * regformats/reg-i386-linux.dat: Likewise.
829 * regformats/reg-x86-64-linux.dat: Likewise.
830 * regformats/reg-spu.dat: Likewise.
832 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
834 * remote.c (remote_wait, remote_async_wait): Stop if we receive
837 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
839 * utils.c (debug_timestamp): New.
840 (vfprintf_unfiltered): Print timestamps if requested.
841 (show_debug_timestamp): New.
842 (initialize_utils): Register "set debug timestamp".
843 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
845 2008-02-27 Joel Brobecker <brobecker@adacore.com>
847 * breakpoint.c (skip_prologue_sal): New function.
848 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
849 computed from a line number.
851 2008-02-27 Joel Brobecker <brobecker@adacore.com>
853 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
854 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
855 Set PC register type to "code_ptr".
856 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
857 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
858 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
859 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
860 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
861 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
862 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
865 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
867 * regformats/regdat.sh: Rename init_registers function in
868 generated file to init_registers_${name}.
870 * regformats/reg-crisv32.dat: Set "name" to crisv32.
871 * regformats/reg-ppc64.dat: Set "name" to ppc64.
872 * regformats/reg-s390x.dat: Set "name" to s390x.
874 2008-02-26 Greg Law <glaw@undo-software.com>
876 * regcache.c (registers_changed): Call reinit_frame_cache.
878 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
880 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
881 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
882 and svr4_fetch_objfile_link_map.
883 * Makefile.in (sh-linux-tdep.o): Update.
885 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
887 * amd64-tdep.c (amd64_classify): Add support for decimal float
889 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
890 use the struct return convention.
892 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
894 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
895 to old format. Discard breakpoint address if shared library is
897 (breakpoint_1): Adjust formatting of table header accordingly.
899 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
901 * remote.c (remote_get_threadlist): If the response
902 is empty, don't try to parse it.
904 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
906 Unbreak 'target async'.
907 * serial.c (serial_async): Set the
908 handler function before enabling async
911 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
913 * solib-svr4.c (enable_break): Convert r_brk to a code address.
915 2008-02-21 Pedro Alves <pedro@codesourcery.com>
917 * remote.c (extended_remote_attach_1): Set attach_flag.
918 (extended_remote_create_inferior_1): Clear attach_flag.
920 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
922 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
924 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
925 * solib-svr4.c (solib_svr4_r_brk): New.
926 (open_symbol_file_object, svr4_current_sos): Always check the
928 (svr4_fetch_objfile_link_map): Do not set debug_base.
929 (enable_break): Use r_brk if it is set.
930 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
931 (svr4_lp64_fetch_link_map_offsets): Likewise.
932 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
934 2008-02-20 Markus Deuling <deuling@de.ibm.com>
935 Mark Kettenis <kettenis@gnu.org>
937 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
938 trad_frame_saved_reg.
939 (trad-frame.h): New include.
941 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
942 instead of frame_obstack_zalloc.
943 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
945 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
947 2008-02-20 Markus Deuling <deuling@de.ibm.com>
949 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
950 from disassemble_info instead of gdbarch_byte_order.
952 * mips-tdep.c (gdb_print_insn_mips): Likewise.
953 * arm-tdep.c (gdb_print_insn_arm): Likewise.
955 2008-02-20 Markus Deuling <deuling@de.ibm.com>
957 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
958 gdbarch as parameter.
960 * gdbarch.{c,h}: Regenerate.
962 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
964 * mem-break.c (default_memory_insert_breakpoint)
965 (default_memory_remove_breakpoint): Likewise.
966 * target.h (default_memory_remove_breakpoint)
967 (default_memory_insert_breakpoint): Likewise.
969 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
970 parameter. Replace current_gdbarch by gdbarch.
971 * m32r-tdep.c (m32r_memory_insert_breakpoint)
972 (m32r_memory_remove_breakpoint): Likewise.
974 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
976 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
978 2008-02-19 Joel Brobecker <brobecker@adacore.com>
980 * NEWS: Add entry describing Add support improvements.
982 2008-02-18 Markus Deuling <deuling@de.ibm.com>
984 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
987 2008-02-18 Markus Deuling <deuling@de.ibm.com>
989 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
990 register_offset_hack anymore.
992 * regcache.{c,h} (register_offset_hack): Remove.
994 2008-02-18 Markus Deuling <deuling@de.ibm.com>
996 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
998 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
999 current_gdbarch by gdbarch.
1000 (hppa64_hpux_find_global_pointer): Likewise.
1001 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1002 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1003 find_global_pointer.
1005 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1007 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1009 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1010 of gdbarch_num_regs.
1012 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1013 replace current_gdbarch by gdbarch.
1014 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1016 2008-02-18 Markus Deuling <deuling@de.ibm.com>
1018 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1019 and replace current_gdbarch by gdbarch.
1021 (store_register): Update call for exec_one_dummy_insn.
1022 (fetch_register, store_register): Update call of regmap.
1024 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1025 parameter and replace current_gdbarch by gdbarch.
1027 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1028 the current architecture. Update call for getregs_supplies and
1030 (ppcnbsd_fetch_inferior_registers): Likewise.
1032 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1033 replace current_gdbarch by gdbarch.
1034 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1035 get_regcache_arch to get at the current architecture. Update call for
1038 2008-02-18 Markus Deuling <deuling@de.ibm.com>
1040 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1043 2008-02-15 Markus Deuling <deuling@de.ibm.com>
1045 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1047 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
1049 * NEWS: Mention pending breakpints in MI.
1051 2008-02-14 Markus Deuling <deuling@de.ibm.com>
1053 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1055 2008-02-13 Markus Deuling <deuling@de.ibm.com>
1057 Add script to build and test GDB using enable-targets=all.
1059 * gdb_buildall.sh: New file.
1061 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
1063 * NEWS (New native configurations): Xtensa GNU/Linux.
1064 (New targets): Xtensa GNU/Linux.
1065 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
1067 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
1068 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
1069 * configure.tgt (xtensa*-*-linux*): New entry.
1070 * xtensa-config.c (xtensa_tdep): New variable.
1071 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1072 (rmap): Change format based on new macro XTREG.
1073 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1074 * xtensa-linux-nat.c: New.
1075 * xtensa-linux-tdep.c: New.
1076 * xtensa-xtregs.c: New.
1077 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1078 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1079 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1080 (xtensa_register_t): New field coprocessor.
1081 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1082 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1083 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1084 Update to handle privileged registers.
1085 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1086 (xtensa_push_dummy_call): Set windowstart register correctly.
1087 (call0_analyze_prologue): Initialize xtensa_default_isa.
1088 (xtensa_derive_tdep): New.
1089 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1090 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1091 Call xtensa_derive_tdep().
1092 * config/xtensa/linux.mh: New.
1093 * regformats/reg-xtensa.dat: New.
1095 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
1097 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1098 (filenames.h): New include.
1099 * Makefile.in (corelow.o): Add dependency for filenames.h.
1101 2008-02-08 Doug Evans <dje@google.com>
1103 * source.c (find_and_open_source): Always rewrite absolute filenames.
1105 2008-02-07 Doug Evans <dje@google.com>
1107 * breakpoint.c: #include "hashtab.h".
1108 (ambiguous_names_p): New fn.
1109 (update_breakpoint_locations): When restoring bp enable status, don't
1110 compare function names if any functions have same name.
1111 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1113 2008-02-07 Joel Brobecker <brobecker@adacore.com>
1115 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1116 instead of just a VEC*. Update use of SV.
1117 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1119 2007-02-07 Joel Brobecker <brobecker@adacore.com>
1121 * NEWS: Put all new commands since gdb-6.7 together.
1123 2007-02-07 Joel Brobecker <brobecker@adacore.com>
1125 * ada-lang.c: #include "vec.h".
1126 (struct string_vector, new_string_vector, string_vector_append):
1128 (char_ptr): New typedef.
1129 (DEF_VEC_P (char_ptr)): New VEC type.
1130 (symbol_completion_add): Update profile to take the new VEC type
1131 instead of the old string_vector structure. Update code accordingly.
1132 (ada_make_symbol_completion_list): Use the new VEC type instead of
1133 the old string_vector structure, and update the code accordingly.
1134 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1136 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1138 * p-exp.y: Set current_type in missing places.
1139 (leftdiv_is_integer): New static variable.
1140 Typecast right operand of BINOP_DIV to long_double if both operands
1143 2008-02-06 Maciej W. Rozycki <macro@mips.com>
1145 * remote-mips.c (set_breakpoint): Rename to...
1146 (mips_set_breakpoint): ... this.
1147 (clear_breakpoint): Rename to...
1148 (mips_clear_breakpoint): ... this.
1149 (common_breakpoint): Rename to...
1150 (mips_common_breakpoint): ... this.
1151 (check_lsi_error): Rename to...
1152 (mips_check_lsi_error): ... this.
1154 2007-02-05 Joel Brobecker <brobecker@adacore.com>
1156 * language.h (struct language_defn): Add new field
1157 la_make_symbol_completion_list.
1158 * symtab.c (default_make_symbol_completion_list): Renames
1159 make_symbol_completion_list.
1160 (make_symbol_completion_list): New function.
1161 * symtab.h (default_make_symbol_completion_list): Add declaration.
1162 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1163 (auto_language, local_language): Likewise.
1164 * objc-lang.c (objc_language_defn): Likewise.
1165 * scm-lang.c (scm_language_defn): Likewise.
1166 * m2-lang.c (m2_language_defn): Likewise.
1167 * f-lang.c (f_language_defn): Likewise.
1168 * jv-lang.c (java_language_defn): Likewise.
1169 * p-lang.c (pascal_language_defn): Likewise.
1170 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1171 (minimal_language_defn): Likewise.
1172 * ada-lang.c (struct string_vector): New structure.
1173 (new_string_vector, string_vector_append, ada_unqualified_name)
1174 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1175 (ada_make_symbol_completion_list): New functions.
1176 (ada_language_defn): Set la_make_symbol_completion_list.
1177 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1178 this function is static.
1180 2008-02-05 Kevin Buettner <kevinb@redhat.com>
1182 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1183 to account for call site optimizations.
1185 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
1187 * tracepoint.c (read_actions): Handle end-of-text indicator
1188 in action list properly. (Committed by Jim Blandy)
1190 2008-02-05 Jim Blandy <jimb@red-bean.com>
1192 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1193 pseudoregister, not an internal error.
1194 Reported by: Andrzej Zaborowski
1196 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1198 * varobj.c (c_value_of_variable): Use xstrdup.
1200 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1202 Update stored rendition of varobj value when format changes.
1203 * varobj.c (varobj_set_display_format): Recomputed
1205 (c_value_of_variable): Return print_value.
1207 2008-02-03 Doug Evans <dje@google.com>
1209 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1210 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1211 * valops.c (value_one): New function.
1212 * value.h (value_one): Declare.
1214 Fix argument promotion for binary arithmetic ops for C.
1215 * valarith.c (unop_result_type): New fn.
1216 (binop_result_type): New fn.
1217 (value_binop): Move result type computation to binop_result_type.
1218 (value_pos, value_neg, value_complement): Move result type
1219 computation to unop_result_type.
1222 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1223 Return basetype, fieldno if found. All callers updated.
1224 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1226 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1227 * symfile.h (fill_in_vptr_fieldno): Delete.
1229 2008-02-02 Doug Evans <dje@google.com>
1231 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1233 * typeprint.c (*): Whitespace cleanup.
1235 2008-02-02 Mark Kettenis <kettenis@gnu.org>
1236 Luis Machado <luisgpm@br.ibm.com>
1237 Thiago Jung Bauermann <bauerman@br.ibm.com>
1239 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1240 don't fit into registerson the stack the way GCC does.
1242 2008-02-01 Joel Brobecker <brobecker@adacore.com>
1244 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1245 hash table for Ada symbols. Just store the linkage name as is,
1246 and leave the demangled_name as NULL.
1248 2007-02-01 Joel Brobecker <brobecker@adacore.com>
1250 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1251 in the global scope.
1252 (new_symbol): Likewise.
1254 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1256 * breakpoint.c (break_command_1): Return void.
1257 (break_command_really): Return void. Rethrow
1258 exceptions instead of returning.
1259 (gdb_breakpoint): Remove the error_message parameter.
1260 Return void. Rename to set_breakpoint.
1261 * gdb.h (gdb_breakpoint): Rename and move to...
1262 * breakpoint.h (set_breakpoint): ...here.
1263 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1264 event hooks even if exception is thrown. Adjust to
1265 gdb_breakpoint interface changes.
1268 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1271 float in both first and second word in the doubleword, to support
1274 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1276 Properly rethrow exception. This fixes errors
1277 about non-existent functions for -break-insert.
1278 * breakpoint.c (break_command_really): Use throw_exception
1279 for rethrowing. If rethrowing, don't print the exception.
1281 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1283 * NEWS: Mention Decimal Floating Point support.
1285 2008-01-31 Joel Brobecker <brobecker@adacore.com>
1287 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1288 value type to builtin_type_void_func_ptr.
1290 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1292 * s390-tdep.c (is_float_singleton, is_float_like,
1293 alignment_of, s390_return_value): Make checks for
1294 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1296 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
1297 Thiago Jung Bauermann <bauerman@br.ibm.com>
1299 * infcmd.c (default_print_registers_info): Also print hex
1300 raw contents for TYPE_CODE_DECFLOAT registers.
1301 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1302 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1303 (rs6000_register_name): Add support for DFP pseudo-registers.
1304 (rs6000_pseudo_register_type): Likewise.
1305 rs6000_pseudo_register_reggroup_p): Likewise.
1306 (ppc_pseudo_register_read): New function.
1307 (ppc_pseudo_register_write): Likewise.
1308 (rs6000_pseudo_register_read): Likewise.
1309 (rs6000_pseudo_register_write): Likewise.
1310 (e500_pseudo_register_read): Move checks to
1311 rs6000_pseudo_register_read.
1312 (e500_pseudo_register_write): Move checks to
1313 rs6000_pseudo_register_write.
1314 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1315 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1316 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1317 num_pseudo_regs to account for DFP pseudo regs.
1319 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1321 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1322 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1323 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1324 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1325 e500_pseudo_register_read, e500_pseudo_register_write): Use
1326 IS_SPE_PSEUDOREG macro.
1327 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1328 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1329 Remove initialization of tdep->ppc_ev31_regnum.
1331 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1333 * printcmd.c (print_formatted): Handle references as for unformatted
1336 2008-01-30 Joel Brobecker <brobecker@adacore.com>
1338 * eval.c (evaluate_subexp_standard): Add handling of user
1339 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1341 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1343 * eval.c (evaluate_subexp_standard): Support
1344 BINOP_INTDIV opcode.
1346 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1348 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1350 For BINOP_EXP, use length and signedness of left operand only for
1351 result, as for shifts.
1352 For integral operands to BINOP_EXP, use new integer_pow and
1353 uinteger_pow functions so as to get full range of results.
1354 (integer_pow): New function.
1355 (uinteger_pow): New function.
1357 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1359 Use vector for varobj_list_children interface.
1360 * gdb/varobj.c (varobj_list_children): Return vector
1362 * gdb/varobj.h (varobj_list_children): Adjust
1364 (varobj_p): Declare. Declare vector thereof.
1365 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1366 for varobj_list_children change.
1367 * Makefile.in (varobj_h): Update dependencies.
1369 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1371 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1372 TYPE_CODE_DECFLOAT arguments.
1373 (ppc64_sysv_abi_push_dummy_call) Likewise.
1374 (get_decimal_float_return_value): New function.
1375 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1376 values by calling get_decimal_float_return_value.
1377 (ppc64_sysv_abi_return_value): Likewise.
1379 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1381 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1382 for preprocessor macro information. Formatting changes.
1384 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1386 * remote.c (struct remote_state): Add cached_wait_status.
1387 (remote_exec_file): New variable.
1388 (PACKET_vAttach, PACKET_vRun): New constants.
1389 (extended_remote_restart): Do not query for status.
1390 (struct start_remote_args): New.
1391 (remote_start_remote): Take it as a second argument. Check
1392 whether the target is running. Issue an error for non-running
1393 non-extended targets. Cache the wait status. Set inferior_ptid
1395 (remote_open_1): Prompt to disconnect non-running targets. Make
1396 sure the target is marked running. Do not set inferior_ptid here.
1397 Update call to remote_start_remote. Do not call remote_check_symbols
1398 if the target is not running.
1399 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1400 argument. Handle a non-running target.
1401 (remote_detach): Use it.
1402 (extended_remote_detach): New.
1403 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1404 (extended_remote_attach_1, extended_remote_attach)
1405 (extended_async_remote_attach): New.
1406 (remote_vcont_resume): Remove unused variable.
1407 (remote_wait, remote_async_wait): Use any cached wait status.
1408 (putpkt_binary, getpkt): Clear any cached wait status.
1409 (extended_remoute_mourn_1): New.
1410 (extended_remote_mourn): Use it.
1411 (extended_async_remote_mourn, extended_remote_run): New.
1412 (extended_remote_create_inferior_1): New.
1413 (extended_remote_create_inferior): Use it.
1414 (extended_remote_async_create_inferior): Likewise.
1415 (remote_xfer_partial): Skip for non-executing targets.
1416 (init_extended_remote_ops): Set to_detach and to_attach.
1417 (init_extended_async_remote_ops): Likewise. Use
1418 extended_async_remote_mourn.
1419 (_initialize_remote): Register vAttach, vRun, and
1420 set remote exec-file.
1421 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1423 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1425 * Makefile.in (symfile.o): Update.
1426 * NEWS: Mention exec tracing support.
1427 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1429 * infcmd.c (kill_if_already_running, detach_command)
1430 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1431 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1432 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1433 targets. Apply the sysroot path to the loaded executable. Use
1434 no_shared_libraries.
1435 * linux-nat.c (linux_child_follow_fork): Print fork following
1436 messages if verbose.
1437 (kill_wait_callback): Kill again before waiting a second time.
1438 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1439 no_shared_libraries.
1441 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1443 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1445 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1447 * nto-tdep.h: Remove #include "defs.h".
1448 * nto-tdep.c: Add #include "defs.h".
1449 * Makefile.in (nto_tdep_h): Update dependencies.
1450 (nto-tdep.o): Likewise.
1452 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1454 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1456 (proceed, start_remote): Update call to wait_for_inferior.
1457 * inferior.h (wait_for_inferior): Update declaration.
1458 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1459 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1460 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1461 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1463 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1465 * varobj (adjust_value_for_child_access): Added checking for
1466 returned value from gdb_value_ind.
1467 (c_describe_child): Likewise.
1468 (cplus_describe_child): Fixed a typo.
1470 2008-01-29 Jim Blandy <jimb@red-bean.com>
1472 * MAINTAINERS: Update my info.
1474 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1476 Use multiple locations for hardware watchpoints.
1477 This eliminates the need to traverse value chain, doing
1478 various checks, in three different places.
1480 * breakpoint.h (struct bp_location): New fields
1481 lengths and watchpoint_type.
1482 (struct breakpoint): Remove the val_chain field.
1483 * breakpoint.c (is_hardware_watchpoint): New.
1484 (free_valchain): Remove.
1485 (update_watchpoint): New.
1486 (insert_bp_location): For hardware watchpoint, just
1488 (insert_breakpoints): Call update_watchpoint_locations
1489 on all watchpoints. If we have failed to insert
1490 any location of a hardware watchpoint, remove all inserted
1492 (remove_breakpoint): For hardware watchpoints, directly
1494 (watchpoints_triggered): Iterate over locations.
1495 (bpstat_stop_status): Use only first location of
1496 a resource watchpoint.
1497 (delete_breakpoint): Don't call free_valchain.
1498 (print_one_breakpoint): Don't print all
1499 locations for watchpoints.
1500 (breakpoint_re_set_one): Use update_watchpoint for
1503 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1505 Don't reset watchpoint block on solib load.
1507 * breakpoint.c (insert_bp_location): For watchpoints,
1508 recompute condition.
1509 (breakpoint_re_set_one): Instead of recomputing value
1510 and condition for watchpoints, just reset value and
1511 let insert_breakpoints/insert_bp_location recompute it.
1512 Don't do anything about disabled watchpoint.
1514 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1516 * valarith.c (value_binop): Handle unsigned integer
1519 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1521 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1522 instruction pattern that appears frequently in position
1523 independent code. Fix bug in code which looks for "fmov" and
1524 backtracks if no "fmov" is found.
1526 2008-01-28 Doug Evans <dje@google.com>
1528 * dbxread.c (read_dbx_symtab): Fix indentation.
1529 Reformat comments to 80 columns.
1530 Move local var def closer to only use.
1532 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1534 * fork-child.c (SHELL_FILE): Remove #ifndef.
1535 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1537 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1539 * i386-tdep.c (i386_skip_noop): New function.
1540 (i386_analyze_prologue): Call i386_skip_noop function.
1542 2008-01-24 Michael Snyder <msnyder@specifix.com>
1544 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1545 * win32-nat.c (win32_xfer_partial): Ditto.
1546 * target.c (default_xfer_partial): Minor whitespace adjustment.
1548 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1550 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1551 strip bit 1 even if pc doesn't point to thumb code.
1553 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1555 * remote.c (remote_wait): Handle SIGINT between packets.
1556 (remote_async_wait): Likewise.
1558 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1559 Chris Demetriou <cgd@google.com>
1561 * thread.c (add_thread_silent): Renamed
1563 (print_thread_events): New variable definition.
1564 (show_print_thread_events): New function.
1565 (_initialize_thread): Add "set print thread-events" and
1566 "show print thread-events" commands.
1567 (add_thread): Announce new thread.
1568 * gdbthread.h (add_thread_silent): Declare.
1569 (print_thread_events): New variable declaration.
1570 * inf-ttrace.c (inf_ttrace_wait): Don't
1571 inform about new thread, as add_thread is always
1572 called too, and will take care of that.
1573 * infrun.c (handle_inferior_event): Likewise.
1574 * procfs.c (procfs_wait): Likewise.
1575 * remote.c (remote_currthread): Likewise.
1576 * sol-thread.c (sol_thread_wait): Likewise.
1577 * win32-nat.c (get_win32_debug_event): Likewise.
1578 * linux-thread-db.c (attach_thread): Likewise.
1579 Remove the verbose parameter.
1580 (check_event): Make detach_thread be verbose
1581 only if print_thread_events is set.
1582 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1583 about new thread. This is called only from
1584 linux-thread-db.c:attach_thread, which will take care.
1585 Remove the verbose parameter.
1586 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1588 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1590 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1592 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1594 * breakpoint.c (break_command_really): New parameter
1596 (break_command_1): Pass 0 as
1597 ignore_count to break_command_really.
1598 (gdb_breakpoint): Pass ignore_count to
1599 break_command_really.
1601 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1603 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1604 sigcontext struct via pointer.
1605 (struct sigframe comment): Update to show new field `psc'.
1607 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1609 * infrun.c (handle_inferior_event): If
1610 we failed to remove breakpoints, error,
1611 don't try to increment PC by hand.
1613 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1615 Add NetBSD/hppa target and host support.
1617 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1618 (hppabsd_gregset): Move to ...
1619 (hppabsd_regset_from_core_section): Rename
1620 hppaobsd_regset_from_core_section and move to ...
1621 (hppabsd_find_global_pointer): Update comment.
1622 (hppabsd_init_abi): Make global. Do not register
1623 hppabsd_regset_from_core_section.
1624 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1626 (_initialize_hppabsd_tdep): Move to ...
1627 * hppaobsd-tdep.c: ... here. New file.
1628 * hppnbsd-tdep.c: New file.
1629 * hppnbsd-nat.c: New file.
1630 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1631 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1632 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1633 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1634 * configure.host (hppa*-*-netbsd*): New entry.
1635 * configure.tgt (hppa*-*-netbsd*): New entry.
1636 (hppa*-*-openbsd*): Update.
1637 * NEWS (New native configuration): Mention NetBSD/hppa.
1638 (New targets): Mention NetBSD/hppa.
1640 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1642 * gdbarch.sh (function_list): Add new property bits_big_endian to
1644 * gdbarch.{c,h}: Regenerate.
1646 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1647 gdbarch_bits_big_endian (comment).
1648 (unpack_field_as_long, modify_field): Likewise.
1649 * value.h: Likewise (comment).
1650 * valops.c (value_slice): Likewise.
1651 * valarith.c (value_subscript, value_bit_index): Likewise.
1652 * gdbtypes.h (field): Likewise (comment).
1653 * eval.c (evaluate_subexp_standard): Likewise.
1654 * dwarf2read.c (dwarf2_add_field): Likewise.
1655 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1656 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1658 * defs.h (BITS_BIG_ENDIAN): Remove.
1660 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1662 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1664 * m2-exp.y (yylex): Likewise.
1665 * objc-exp.y (yylex): Likewise.
1667 * defs.h (DEPRECATED_STREQN): Remove.
1669 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1671 * MAINTAINERS: Update my email address.
1673 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1675 * README: Mention gdbserver/README.
1677 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1679 * valarith.c (value_binop): Handle BINOP_INTDIV
1680 for unsigned and signed integers.
1682 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1684 * s390-tdep.c (s390_gdbarch_init): Set default long double
1685 type to 128-bit IEEE quad.
1687 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1689 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1691 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1693 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1695 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1696 * value.c: All callers changed.
1698 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1700 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1701 DEPRECATED_STREQ by its expression.
1702 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1703 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1704 (scan_xcoff_symtab): Likewise.
1705 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1706 * f-lang.c (find_common_for_function): Likewise.
1707 * objc-exp.y (parse_number): Likewise.
1709 * defs.h (DEPRECATED_STREQ): Remove.
1711 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1713 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1714 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1715 get_frame_arch to get at the current_architecture. Update AM33_MODE
1717 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1718 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1720 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1722 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1724 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1726 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1728 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1729 current_gdbarch by gdbarch. Update caller.
1731 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1732 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1733 the current architecture. Update calls of
1734 amd64_native_gregset_supplies_p.
1735 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1736 (amd64bsd_store_inferior_registers): Likewise.
1738 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1740 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1741 Replace current_gdbarch by gdbarch. Update caller.
1743 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1745 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1746 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1747 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1748 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1749 (stabsect_build_psymtabs): Fix indentation.
1751 2008-01-15 Michael Snyder <msnyder@specifix.com>
1753 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1755 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1757 * win32-nat.c (win32_create_inferior): Restore code calling
1758 CloseHandle on ProcessInformation structure.
1760 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1762 * configure.ac: Check for void * as 3 argument of ptrace.
1763 * configure: regenerate.
1765 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1767 * alpha-tdep.c (alpha_heuristic_proc_start)
1768 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1769 current_gdbarch by gdbarch.
1771 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1772 current architecture by frame_info. Update alpha_heuristic_proc_start
1775 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1776 get_frame_arch to get at the current architecture by frame_info. Update
1777 alpha_sigtramp_register_address call.
1779 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1780 current_gdbarch by gdbarch. Update caller.
1781 (convert_to_extended, convert_from_extended): Add endianess parameter
1782 for comparison. Update caller.
1783 (arm_extract_return_value, arm_store_return_value): Use
1784 get_regcache_arch to get at the current architecture.
1786 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1787 current_gdbarch by gdbarch. Update caller.
1788 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1789 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1791 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1792 gdbarch as parameter. Update caller.
1793 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1794 current_gdbarch by gdbarch. Update caller.
1796 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1797 update caller. Replace current_gdbarch by gdbarch.
1799 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1800 the current architecture. Replace current_gdbarch by gdbarch.
1801 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1802 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1803 expression. Add gdbarch as parameter and replace current_gdbarch with
1805 (M6811_TDEP): Remove.
1806 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1808 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1809 current_gdbarch by gdbarch. Update caller.
1811 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1813 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1816 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1817 caller. Relace current_gdbarch by gdbarch.
1818 (altivec_register_p, spe_register_p): Likewise.
1819 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1821 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1822 altivec_register_p and spe_register_p.
1824 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1825 caller. Replace current_gdbarch by gdbarch.
1826 (score_analyze_prologue): use get_frame_arch to get at the current
1829 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1830 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1831 current_gdbarch by gdbarch. Update caller.
1832 (sparc_frame_cache): Use get_frame_arch to get at the current
1834 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1835 sparc_analyze_prologue.
1837 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1840 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1842 * exec.c: #include "arch-utils.h"
1843 (print_section_info): Use gdbarch_from_bfd to get at the
1844 current architecture. Replace current_gdbarch. Fix indention. Replace
1845 deprecated_print_address_numeric by paddress.
1846 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1848 * valprint.c (val_print_string): Replace
1849 deprecated_print_address_numeric.
1850 * tracepoint.c (trace_mention, scope_info): Likewise.
1851 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1852 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1853 (maintenance_check_symtabs): Likewise.
1854 * symfile.c (list_overlays_command): Likewise.
1855 * stack.c (frame_info, print_block_frame_labels): Likewise.
1856 * printcmd.c (print_address, print_address_demangle)
1857 (address_info): Likewise.
1858 * corefile.c (memory_error): Likewise.
1859 * infcmd.c (jump_command): Likewise.
1860 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1861 (mention, delete_breakpoint): Likewise.
1862 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1863 * dwarf2read.c (dump_die): Likewise.
1864 * ada-valprint.c (ada_val_print_1): Likewise.
1865 * f-valprint.c (f_val_print): Likewise.
1866 * linux-fork.c (info_forks_command): Likewise.
1867 * m32r-com.c (m32r_load_section, m32r_load)
1868 (m32r_upload_command): Likewise.
1870 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1872 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1874 * gdbarch.sh (skip_prologue): Add gdbarch
1876 * gdbarch.{c,h}: Regenerate.
1878 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1879 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1880 * avr-tdep.c (avr_skip_prologue): Likewise.
1881 * cris-tdep.c (cris_skip_prologue): Likewise.
1882 * frv-tdep.c (frv_skip_prologue): Likewise.
1883 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1884 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1885 * i386-tdep.c (i386_skip_prologue): Likewise.
1886 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1887 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1888 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1889 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1890 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1891 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1892 * mep-tdep.c (mep_skip_prologue): Likewise.
1893 * mips-tdep.c (mips_skip_prologue): Likewise.
1894 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1895 * mt-tdep.c (mt_skip_prologue): Likewise.
1896 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1897 * score-tdep.c (score_skip_prologue): Likewise.
1898 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1899 * sh-tdep.c (sh_skip_prologue): Likewise.
1900 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1901 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1902 * spu-tdep.c (spu_skip_prologue): Likewise.
1903 * v850-tdep.c (v850_skip_prologue): Likewise.
1904 * vax-tdep.c (vax_skip_prologue): Likewise.
1905 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1906 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1908 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1909 current_gdbarch by gdbarch.
1910 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1911 * s390-tdep.c (s390_skip_prologue): Likewise.
1913 2008-01-10 Doug Evans <dje@google.com>
1915 * defs.h (struct continuation_arg): Fix typo in comment.
1916 * target.c (target_translate_tls_address): Fix comment spelling error.
1918 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1920 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1921 (DOUBLEST_SCAN_FORMAT): Likewise.
1922 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1923 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1924 * c-exp.y (parse_number): Likewise.
1925 * jv-exp.y (parse_number): Likewise.
1926 * objc-exp.y (parse_number): Likewise.
1927 * p-exp.y (parse_number): Likewise.
1929 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1931 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1932 (check_typedef): Likewise.
1934 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1936 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1937 seen_double_big_d, treat the new H, D, and DD modifiers as length
1940 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1942 * dwarf2read.c (read_enumeration_type): Add comment.
1944 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1946 * config.in: Regenerate.
1948 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1950 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1952 (ada_convert_actuals): Delete.
1953 * ada-lang.h (ada_convert_actual): Add declaration.
1954 (ada_convert_actuals): Remove declaration.
1955 * infcall.c: #include "ada-lang.h".
1956 (value_arg_coerce): Add new parameter sp. Update function
1957 documetnation. Add handling of Ada function call parameters.
1958 * Makefile.in (infcall.o): Update dependencies.
1960 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1962 * ada-lang.c (ensure_lval): Fix value lval kind.
1963 (convert_actual): Add handling for arguments passed by reference.
1965 2008-01-08 Doug Evans <dje@google.com>
1967 * dbxread.c (read_dbx_symtab): Fix indentation.
1969 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1971 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1972 (valarith.o): Depend on dfp.h.
1973 (valops.o): Likewise.
1974 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1975 (set_decnumber_context): New function.
1976 (decimal_check_errors): Likewise.
1977 (decimal_from_number): Likewise.
1978 (decimal_to_number): Likewise.
1979 (decimal_from_string): Use set_decnumber_context and
1980 decimal_check_errors.
1981 (decimal_from_integral): New function.
1982 (decimal_from_floating): Likewise.
1983 (decimal_to_double): Likewise.
1984 (promote_decimal): Likewise.
1985 (decimal_binop): Likewise.
1986 (decimal_is_zero): Likewise.
1987 (decimal_compare): Likewise.
1988 (decimal_convert): Likewise.
1989 * dfp.h (decimal_from_integral): New prototype.
1990 (decimal_from_floating): Likewise.
1991 (decimal_to_double): Likewise.
1992 (decimal_binop): Likewise.
1993 (decimal_is_zero): Likewise.
1994 (decimal_compare): Likewise.
1995 (decimal_convert): Likewise.
1996 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1997 call to value_from_decfloat.
1998 * valarith.c: Include dfp.h.
1999 (value_args_as_decimal): New function.
2000 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2001 (value_logical_not): Likewise.
2002 (value_equal): Likewise.
2003 (value_less): Likewise.
2004 (value_pos): Likewise.
2005 (value_neg): Formatting fix.
2006 * valops.c: Include dfp.h.
2007 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2008 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2009 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2010 (value_from_decfloat): Remove expect_type argument.
2011 * value.h (value_from_decfloat): Update prototype.
2013 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
2015 Ignore change in name of dynamic linker during
2016 execution on Solaris. This also unbreaks pending breakpoints.
2018 * solist.h (struct target_so_ops): New field same.
2019 * solib-svr4.c (svr4_same): New.
2020 (_initialize_svr4_solib): Register svr4_same.
2021 * solib.c (update_solib_list): Use ops->same, if available.
2023 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
2025 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2026 when using MS-DOS paths.
2028 2008-01-05 Pedro Alves <pedro@codesourcery.com>
2030 * NEWS: Mention --pid and --core command line behaviour changes.
2032 2008-01-05 Pedro Alves <pedro@codesourcery.com>
2034 * main.c (captured_main): Remove 'count' varible and the
2035 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2036 --pid options were issued simultaneously. If an explicit pid
2037 option was passed, don't fallback to core file. Detect extra
2038 arguments better in the presence of explicit pid or core
2041 2008-01-05 Joel Brobecker <brobecker@adacore.com>
2043 * ada-lang.c (ada_which_variant_applies): Correctly compute
2044 the value of the discriminant when the variant record is packed.
2046 2008-01-04 Joel Brobecker <brobecker@adacore.com>
2048 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2049 that are used to differentiate homonyms.
2051 2008-01-04 Jerome Guitton <guitton@adacore.com>
2053 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2054 when the type is an anonymous pointer type.
2055 (ada_check_typedef): Avoid a seg fault when the type is null.
2056 * ada-typeprint.c (print_array_type): Add support for pointer
2059 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
2061 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
2063 2008-01-04 Joel Brobecker <brobecker@adacore.com>
2065 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
2066 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2068 2008-01-04 Joel Brobecker <brobecker@adacore.com>
2070 * ada-exp.y (chop_separator): New function.
2071 (write_selectors): Rewrite to re-use chop_separator.
2072 (ada_nget_field_index, get_symbol_field_type): New functions.
2073 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2076 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2078 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2079 of SYMBOL_VALUE when working with function symbols.
2081 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2083 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2084 expressions. These expressions do not need to be rewriten.
2086 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2088 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2089 the given die is a declaration.
2091 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2093 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2094 Handle properly the case when the index type is an enumerated type.
2095 Do not return the subtype of the bounds type, just return the
2096 bounds type directly - this is not needed and is more consistent
2097 with what we do for arrays when no XA parallel type exists.
2099 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2101 * ada-lang.c (static_unwrap_type): Add forward declaration.
2102 (template_to_static_fixed_type): Fields of dynamic types sometimes
2103 also need to be unwrapped. Take this into account.
2104 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2105 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2106 * ada-typeprint.c (ada_print_type): Get the typename from
2107 the original type, not the base type.
2109 2008-01-03 Jerome Guitton <guitton@adacore.com>
2111 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2112 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2113 Update calls to ada_to_fixed_type.
2114 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2116 (ada_to_fixed_type): Add check_tag parameter; do not look for
2117 tag if null. When looking for a tag, use a fixed record type.
2118 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2119 * ada-valprint.c (printable_val_type, ada_value_print): Update
2120 calls to ada_to_fixed_type.
2122 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
2124 * doublest.c (convert_floatformat_to_doublest): Call
2125 floatformat_to_doublest instead of floatformat_to_double and use
2127 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2128 instead of floatformat_from_double and use DOUBLEST variables.
2130 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
2132 * MAINTAINERS (Write After Approval): Add self.
2134 2008-01-03 Joel Brobecker <brobecker@adacore.com>
2136 * symfile.c (set_initial_language): Make non-static.
2137 * symfile.h (set_initial_language): Add declaration.
2138 * language.c: #include "symfile.h".
2139 (set_language): Call set_initial_language if the frame language
2140 could not be determined.
2142 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
2144 * eval.c (evaluate_subexp_for_address): Provide frame address to
2145 locate_var_value only if it will be needed.
2147 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2151 2008-01-02 Joel Brobecker <brobecker@adacore.com>
2153 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2154 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2155 This is needed to make sure that any other treatment applied
2156 to the resulting value does not fail for spurious reason,
2157 such as trying to take the address of this value.
2159 2008-01-02 Joel Brobecker <brobecker@adacore.com>
2161 * ada-lang.c (ada_value_equal): Dereference reference types when
2164 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
2166 Updated copyright notices for most files.
2168 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
2170 * win32-nat.c (psapi_module_handle): Remove static.
2171 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2172 return first module found if base_address is zero. Don't initialize
2173 psapi function pointers here. Convert to cygwin paths when
2175 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2176 executable name. Use get_module_name when that fails or when
2178 (_initialize_psapi): New function. Initialize psapi stuff before it is
2179 needed or issue a warning if it is not found. Move psapi_module_handle
2182 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2184 * ada-lang.c (ada_remove_trailing_digits): New function.
2185 (ada_remove_po_subprogram_suffix): New function.
2186 (ada_decode): Improve. Move the description of the algorithm
2187 directly inside the code, instead of in the function global
2190 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2192 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2193 and always print the dereferenced value.
2195 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2197 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2198 of the case where the first argument is a reference.
2199 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2201 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2203 Implement support for Ada interface types.
2205 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2206 (ada_is_ignored_field): Ignore fields that are a dispatch table
2209 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2211 * top.c (print_gdb_version): Update copyright year.
2213 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2215 * ChangeLog-2007: New ChangeLog rotation.
2216 * ChangeLog: Reset for 2008.
2217 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2220 For older changes see ChangeLog-2007.
2226 version-control: never