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