6231f89aa7da92b421bb9b67a276456c3da6e8e8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2
3 Non-stop inferior control.
4
5 * infrun.c (resume): In non-stop mode, always resume just one
6 thread.
7 (proceed): Don't call prepare_to_proceed in non-stop mode.
8 (fetch_inferior_event): In non-stop mode, switch context before
9 handling the event.
10 (error_is_running, ensure_not_running): New.
11 (handle_inferior_event): In non-stop mode: Mark only the event
12 thread as stopped. Require that the target module manages adding
13 threads to the thread list. Assert that there isn't a
14 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
15 (normal_stop): Only mark not-running if inferior hasn't exited.
16 In non-stop mode, only mark the event thread.
17
18 * thread.c:Include "cli/cli-decode.h".
19 (print_thread_info): Don't read from a running thread.
20 Output "(running)" if thread is running.
21 (switch_to_thread): Don't read stop_pc if thread is executing.
22 (do_restore_current_thread_cleanup): Don't write to a running
23 thread.
24 (thread_apply_all_command): Don't read from a running thread. In
25 non-stop mode, do a full context-switch instead of just switching
26 threads.
27 (thread_apply_command): In non-stop mode, do a full context-switch
28 instead of just switching threads.
29 (do_captured_thread_select): Likewise. Inform user if selected
30 thread is running.
31 (_initialize_thread): Mark "info threads" and "thread" and
32 async_ok.
33
34 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
35 unregister the target from the event loop.
36
37 * infcmd.c (continue_command, step_1, jump_command)
38 (signal_command): Ensure the selected thread isn't running.
39 (interrupt_target_command): In non-stop mode, interrupt only the
40 selected thread.
41
42 * inferior.h (error_is_running, ensure_not_running): Declare.
43
44 * target.h (struct target_ops): Add ptid argument to the to_stop
45 member.
46 (target_stop): Add ptid_t argument.
47
48 * target.c (update_current_target): Add ptid argument to to_stop's
49 type.
50 (debug_to_stop): Add ptid_t argument.
51 (debug_to_rcmd): Set to_stop_ptid.
52
53 * remote.c (remote_stop): Add ptid_t argument.
54 (async_remote_interrupt): Add inferior_ptid to target_stop.
55 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
56
57 * Makefile.in (thread.o): Depend on $(cli_decode_h).
58
59 2008-07-09 Pedro Alves <pedro@codesourcery.com>
60
61 Don't rely on ecs->wait_for_more.
62
63 * infrun.c (proceed): Clear the stepping state, set
64 previous_inferior_ptid and clear infwait state.
65 (wait_for_inferior): Don't clear the stepping state, set
66 previous_inferior_ptid, or clear the infwait state here.
67 (fetch_inferior_event): Don't clear the stepping state, set
68 previous_inferior_ptid, or clear the infwait state here. Don't
69 condition on wait_for_more.
70
71 2008-07-09 Pedro Alves <pedro@codesourcery.com>
72
73 Refactor infrun a bit.
74
75 * infrun.c (currently_stepping): Take a struct
76 thread_stepping_state instead of an execution_control_state.
77 (struct thread_stepping_state): New, split from
78 execution_control_state.
79 (gtss, tss): New globals.
80 (proceed): Clear the stepping state, set previous_inferior_ptid
81 and clear infwait state.
82 (init_wait_for_inferior): Clear the stepping state,
83 previous_inferior_ptid and infwait state.
84 (waiton_ptid, infwait_state): New, split from
85 execution_control_state.
86 (struct execution_control_state): Members that persist through
87 events moved out to either struct thred_stepping_state or made
88 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
89 (wait_for_inferior, fetch_inferior_event): Use local
90 execution_control_state. Update to execution_control_state split.
91 (init_execution_control_state): Adjust.
92 (init_thread_stepping_state): New, extracted from
93 init_execution_control_state.
94 (context_switch): Take a ptid instead of an
95 execution_control_state.
96 (context_switch_to): Adjust.
97 (adjust_pc_after_break): Adjust.
98 (init_infwait_state): New.
99 (handle_inferior_event): Adjust.
100
101 2008-07-09 Pedro Alves <pedro@codesourcery.com>
102 Vladimir Prus <vladimir@codesourcery.com>
103
104 Per-thread commands.
105
106 * gdbthread.h: Remove unneeded forward declarations.
107 Include "inferior.h".
108 (struct thread_info): Add continuations,
109 intermediate_continuations, proceed_to_finish, step_over_calls,
110 stop_step, step_multi and stop_signal members.
111 (save_infrun_state): Add continuations,
112 intermediate_continuations, proceed_to_finish, step_over_calls,
113 stop_step, step_multi, stop_signal and stop_bpstat parameters.
114 (load_infrun_state): Add continuations,
115 intermediate_continuations, proceed_to_finish, step_over_calls,
116 stop_step, step_multi, stop_signal and stop_bpstat parameters.
117
118 * thread.c (load_infrun_state): In non-stop mode, load
119 continuations, intermediate_continuations, proceed_to_finish,
120 step_over_calls, stop_step, step_multi and stop_signal.
121 (save_infrun_state): Store continuations,
122 intermediate_continuations, proceed_to_finish, step_over_calls,
123 stop_step, step_multi, stop_signal and stop_bpstat.
124 (save_infrun_state): Store continuations,
125 intermediate_continuations, proceed_to_finish, step_over_calls,
126 stop_step, step_multi, stop_signal and stop_bpstat.
127 (free_thread): Clear The thread's stop_bpstat.
128
129 * inferior.h (context_switch_to): Declare.
130
131 * infrun.c (ecss): New global.
132 (context_switch): Context switch continuations,
133 intermediate_continuations, proceed_to_finish, step_over_calls,
134 stop_step, step_multi, stop_signal and stop_bpstat.
135 (wait_for_inferior): Use global ecss.
136 (async_ecss, async_ecs): Delete.
137 (fetch_inferior_event): Use global ecss.
138 (context_switch_to): New.
139
140 * top.c (execute_command): In non-stop, only check if the current
141 thread is running, in all-stop, check if there's any thread
142 running.
143
144 * breakpoint.c (bpstat_remove_breakpoint): New.
145 (bpstat_remove_breakpoint_callback): New.
146 (delete_breakpoint): Clear the stop_bpstats of all threads.
147
148 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
149 current thread is running, in all-stop, check if there's any
150 thread running.
151
152 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
153
154 2008-07-09 Pedro Alves <pedro@codesourcery.com>
155
156 Add non_stop global.
157
158 * inferior.h (non_stop): Declare.
159 * infrun.c (non_stop, non_stop_1): New.
160 (set_non_stop, show_non_stop): New.
161 (_initialize_infrun): Add "set/show non-stop" command.
162
163 2008-07-09 Pedro Alves <pedro@codesourcery.com>
164
165 Adjust fork/vfork/exec to pass ptids around.
166
167 * target.h (struct target_waitstatus): Store related_pid as a ptid.
168 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
169 Take a ptid_t.
170 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
171 type to ptid.
172 * breakpoint.c (print_it_typical, bpstat_check_location)
173 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
174 (create_fork_vfork_event_catchpoint): Adjust.
175 * infrun.c (fork_event): Change parent_pid and child_pid types to
176 ptid.
177 (follow_exec, inferior_has_forked, inferior_has_vforked)
178 (inferior_has_execd): Take a ptid_t and don't trim it.
179 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
180 * linux-nat.c (linux_child_follow_fork): Adjust.
181 * inf-ptrace.c (inf_ptrace_wait): Adjust.
182 * inf-ttrace.c (inf_ttrace_wait): Adjust.
183 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
184
185 2008-07-09 Pedro Alves <pedro@codesourcery.com>
186
187 Add "executing" property to threads.
188
189 * inferior.h (target_executing): Delete.
190 * gdbthread.h (struct thread_info): Add executing_ field.
191 (set_executing, is_executing): New.
192 * thread.c (main_thread_executing): New.
193 (init_thread_list): Clear it and also main_thread_running.
194 (is_running): Return false if target has no execution.
195 (any_running, is_executing, set_executing): New.
196
197 * top.c: Include "gdbthread.h".
198 (target_executing): Delete.
199 (execute_command): Replace target_executing check by any_running.
200 * event-top.c: Include "gdbthread.h".
201 (display_gdb_prompt, command_handler): Replace target_executing by
202 is_running.
203 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
204 here. Replace target_executing by is_running.
205 * infrun.c (handle_inferior_event): Mark all threads as
206 not-executing.
207 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
208 here.
209 * stack.c (get_selected_block): Return null if inferior is
210 executing.
211 * target.c (target_resume): Mark resumed ptid as executing.
212 * breakpoint.c (until_break_command): Replace target_executing
213 check by is_executing.
214 * remote.c (remote_async_resume): Don't mark inferior as executing
215 here.
216 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
217 by any_running.
218
219 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
220 (mi_execute_async_cli_command): Replace target_executing by
221 is_running.
222
223 * frame.c (get_current_frame): Error out if the current thread is
224 executing.
225 (has_stack_frames): New.
226 (get_selected_frame, deprecated_safe_get_selected_frame): Check
227 has_stack_frames.
228
229 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
230 $(gdbthread_h).
231
232 2008-07-09 Pedro Alves <pedro@codesourcery.com>
233
234 * symfile.c (load_command): Reopen the exec file and reread
235 symbols before anything else.
236
237 2008-07-09 Pedro Alves <pedro@codesourcery.com>
238
239 * remote-sim.c: Include gdbthread.h.
240 (remote_sim_ptid): New global.
241 (gdbsim_create_inferior): Silently add the main task to GDB's
242 thread list.
243 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
244 task from GDB's thread list.
245 (gdbsim_resume): Adjust to use remote_sim_ptid.
246 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
247 (init_gdbsim_ops): Register gdbsim_thread_alive and
248 gdbsim_pid_to_str.
249 (_initialize_remote_sim): Initialize remote_sim_ptid.
250 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
251
252 2008-07-09 Pedro Alves <pedro@codesourcery.com>
253
254 * monitor (monitor_ptid): New global.
255 (monitor_open): Silently add the main task to GDB's thread list.
256 (monitor_close, monitor_mourn_inferior): Silently delete the main
257 task from GDB's thread list.
258 (monitor_thread_alive, monitor_pid_to_str): New.
259 (init_base_monitor_ops): Register monitor_thread_alive and
260 monitor_pid_to_str.
261 (_initialize_remote_monitors): Initialize monitor_ptid.
262
263 * gdbthread.h (delete_thread_silent): Declare.
264 * thread.c (delete_thread): Rename to ...
265 (delete_thread_1): ... this. Add "silent" parameter. If silent,
266 don't do exit notifications.
267 (delete_thread, delete_thread_silent): New, as wrappers to
268 delete_thread_1.
269
270 2008-07-08 Pedro Alves <pedro@codesourcery.com>
271
272 * breakpoint.c (update_global_location_list): Add boolean
273 "should_insert" argument. Only insert locations if caller told it
274 too.
275 (update_global_location_list_nothrow): Add boolean "should_insert"
276 argument. Pass it to update_global_location_list.
277 (insert_breakpoints, create_longjmp_breakpoint)
278 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
279 (create_thread_event_breakpoint, create_solib_event_breakpoint)
280 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
281 (enable_watchpoints_after_interactive_call_stop)
282 (set_momentary_breakpoint, create_breakpoints)
283 (break_command_really, watch_command_1)
284 (create_ada_exception_breakpoint, update_breakpoint_locations)
285 (do_enable_breakpoint, enable_command): Pass true to
286 update_global_location_list.
287 (bpstat_stop_status, disable_overlay_breakpoints)
288 (disable_watchpoints_before_interactive_call_start)
289 (delete_breakpoint, disable_breakpoint, disable_command): Pass
290 false to update_global_location_list.
291 (update_breakpoints_after_exec): Don't temporarily disable
292 always-inserted mode.
293
294 2008-07-08 Pedro Alves <pedro@codesourcery.com>
295
296 * breakpoint.c (mark_breakpoints_out): Make public.
297 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
298 here. Update comment.
299 * breakpoint.h (mark_breakpoints_out): Declare.
300
301 * linux-nat.c (linux_handle_extended_wait): On
302 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
303 * inf-ttrace.c (inf_ttrace_wait): Likewise.
304
305 2008-07-08 Pedro Alves <pedro@codesourcery.com>
306
307 * infrun.c (follow_exec): Reset shared libraries before adding the
308 main exec file.
309
310 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
313
314 2008-07-07 Pedro Alves <pedro@codesourcery.com>
315
316 * i386-dicos-tdep.c: Include "inferior.h".
317 (i386_dicos_frame_align): New.
318 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
319 dummy location ON_STACK.
320 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
321
322 2008-07-07 Joel Brobecker <brobecker@adacore.com>
323
324 * gstdint.h: New file.
325
326 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
327
328 * mi/mi-interp.c (mi_on_resume): Don't try to report
329 resumed thread it the thread list is empty.
330
331 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
332
333 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
334 completer for set to filename_completer.
335
336 NEWS: Mention it.
337
338 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
339
340 Implement -target-attach.
341 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
342
343 2008-06-21 Hui Zhu <teawater@gmail.com>
344
345 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
346
347 2008-07-03 Pedro Alves <pedro@codesourcery.com>
348
349 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
350 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
351
352 * target.h (struct target_ops): Add to_attach_no_wait member.
353 (target_attach_no_wait): New.
354 * target.c (update_current_target): Inherit to_attach_no_wait.
355
356 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
357 target_attach_no_wait runtime check.
358
359 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
360 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
361 win32_ops.
362
363 2008-07-03 Pedro Alves <pedro@codesourcery.com>
364
365 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
366 on debug_displaced being set.
367
368 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
369
370 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
371 directly instead of get_frame_id.
372
373 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
374
375 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
376 (deal_with_atomic_sequence): Update BC masks.
377 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
378 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
379
380 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
381
382 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
383 register, not the previous frame's.
384
385 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
386
387 * source.c (select_source_symtab): Make sure we skip namespace
388 symtabs when showing cpp source code.
389
390 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
391
392 * MAINTAINERS (Authorized committers): Fix my email address.
393
394 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
395
396 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
397 -target-download and -target-select via CLI, so that
398 the quoting rules are the same as they were (unfortunately)
399 in all prior gdb releases.
400 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
401 (mi_cmd_target_download, mi_cmd_target_select): Remove.
402 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
403 (mi_cmd_target_download, mi_cmd_target_select): Remove.
404 (mi_cmd_execute): Set current_token even for commands
405 routed via CLI.
406
407 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
408
409 * alphafbsd-tdep.c: Update for unwinder changes.
410 * alpha-linux-tdep.c: Likewise.
411 * alphanbsd-tdep.c: Likewise.
412 * alphaobsd-tdep.c: Likewise.
413 * avr-tdep.c: Likewise.
414 * cris-tdep.c: Likewise.
415 * frv-linux-tdep.c: Likewise.
416 * frv-tdep.c: Likewise.
417 * h8300-tdep.c: Likewise.
418 * hppa-linux-tdep.c: Likewise.
419 * iq2000-tdep.c: Likewise.
420 * m32c-tdep.c: Likewise.
421 * m32r-linux-tdep.c: Likewise.
422 * m32r-tdep.c: Likewise.
423 * m68hc11-tdep.c: Likewise.
424 * mep-tdep.c: Likewise.
425 * mn10300-tdep.c: Likewise.
426 * mt-tdep.c: Likewise.
427 * score-tdep.c: Likewise.
428 * sh64-tdep.c: Likewise.
429 * sh-tdep.c: Likewise.
430 * sparc64fbsd-tdep.c: Likewise.
431 * sparc64nbsd-tdep.c: Likewise.
432 * sparc64obsd-tdep.c: Likewise.
433 * v850-tdep.c: Likewise.
434 * vaxobsd-tdep.c: Likewise.
435 * vax-tdep.c: Likewise.
436 * xstormy16-tdep.c: Likewise.
437
438 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
439
440 * mi/mi-main.c (enum captured_mi_execute_command_actions)
441 (captured_mi_execute_command_args): Remove.
442 (captured_mi_execute_command): Cast the closure to mi_parse
443 pointer, not to captured_mi_execute_command_args, and don't
444 set the action field thereof.
445 (mi_execute_command): Pass struct mi_parse, not
446 captured_mi_execute_command_args to captured_mi_execute_command.
447 (mi_execute_command): Remove (dead) code for suppressing
448 printing prompt.
449
450 2008-06-28 Pedro Alves <pedro@codesourcery.com>
451
452 * linux-nat.c (enum sigchld_state): New.
453 (linux_nat_async_events_state): Renamed from
454 linux_nat_async_events_enabled.
455 (linux_nat_event_pipe_push, my_waitpid): Adjust.
456 (sigchld_default_action): New.
457 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
458 unconditionally.
459 (linux_nat_create_inferior): Set events state to sigchld_default
460 state.
461 (linux_nat_resume): Adjust.
462 (linux_nat_wait): Call linux_nat_async_events unconditionally.
463 (sigchld_handler): Adjust.
464 (linux_nat_async_mask): Don't set SIGCHLD actions here.
465 (get_pending_events): Adjust.
466 (linux_nat_async_events): Rewrite to handle enum sigchld_state
467 instead of a boolean.
468 (linux_nat_async): Adjust.
469 (_initialize_linux_nat): Capture default SIGCHLD action into
470 sigchld_default_action.
471
472 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
473
474 * breakpoint.c (moribund_locations): New.
475 (bpstat_stop_status): Process moribund locations.
476 (update_global_location_list): Add removed
477 locations to moribund_locations.
478 (breakpoint_retire_moribund): New.
479 * breakpoint.h (struct bp_location): New field
480 events_till_retirement.
481 (breakpoint_retire_moribund): Declare.
482 * thread.c (thread_count): New.
483 * infrun.c (handle_inferior_event): Call
484 breakpoint_retire_moribund.
485 * gdbthread.h (thread_count): Declare.
486
487 2008-06-27 Joseph Myers <joseph@codesourcery.com>
488
489 * dfp.c (decimal_convert): Call match_endianness before and after
490 conversion.
491
492 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
493
494 * remote.c (remote_insert_breakpoint): Ensure that if Z0
495 unsupported and we fall back to memory_insert_breakpoint, we
496 use the unmodified requested address.
497
498 2008-06-27 Joel Brobecker <brobecker@adacore.com>
499
500 * dwarf2read.c (read_attribute_value): Issue a complaint when
501 adjusting size attribute values of 0xffffffff as zero.
502
503 2008-06-27 Joseph Myers <joseph@codesourcery.com>
504
505 * i386-tdep.c (i386_16_byte_align_p): New.
506 (i386_push_dummy_call): Determine stack space required for
507 arguments going forwards allowing for 16-byte alignment, then push
508 arguments going forwards.
509
510 2008-06-27 Pedro Alves <pedro@codesourcery.com>
511
512 * infrun.c (start_remote): Don't clear thread list here.
513 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
514 list here.
515 * remote.c (record_currthread): Upgrade the main thread and its
516 entry in the thread list if this is the first time we hear about
517 threads.
518 (remote_thread_alive): Consider magic_null_ptid or a ptid without
519 a tid member always alive.
520 (remote_find_new_threads): Don't update the main thread here.
521 (remote_start_remote): Clear thread list here. Always add the
522 main thread.
523 (extended_remote_attach_1): Add the main thread here.
524 (extended_remote_mourn_1): Re-add the main thread here.
525 (extended_remote_create_inferior_1): Add a main thread.
526
527 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
528
529 2008-06-27 Pedro Alves <pedro@codesourcery.com>
530
531 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
532
533 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
534 globals.
535 (general_thread, continue_thread): Change type to ptid_t.
536 (record_currthread): Take a ptid_t parameter instead of an
537 integer.
538 (MAGIC_NULL_PID): Delete.
539 (set_thread): Take a ptid_t parameter and adjust.
540 (set_general_thread, set_continue_thread): New.
541 (remote_thread_alive, remote_newthread_step)
542 (remote_current_thread, remote_find_new_threads)
543 (remote_threads_info, remote_start_remote, remote_vcont_resume)
544 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
545 (threadalive_test, remote_pid_to_str)
546 (remote_get_thread_local_address): Adjust.
547 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
548 and any_thread_ptid.
549
550 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
551
552 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
553 * configure: Regenerated.
554
555 2008-06-26 Joel Brobecker <brobecker@adacore.com>
556
557 * dwarf2read.c (read_attribute_value): Treat size attribute
558 values of 0xffffffff as if the attribute value was zero.
559
560 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
561
562 * linux-nat.c: Add description of overall logic.
563
564 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
565
566 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
567 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
568 all dependencies on $(gdb_stdint_h).
569 (distclean): Do not delete gdb_stdint.h.
570 * acinclude.m4: Do not use stdint.m4.
571 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
572 uintptr_t, and gdb_stdint.h.
573 * defs.h: Include <stdint.h>.
574 * gdb_thread_db.h: Assume stdint.h is already included.
575 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
576 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
577 include gdb_stdint.h.
578 * configure, config.in: Regenerate.
579
580 2008-06-26 Joseph Myers <joseph@codesourcery.com>
581
582 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
583 decimal floating-point values in GPRs for soft-float.
584 (do_ppc_sysv_return_value): Handle returning decimal
585 floating-point values in GPRs for soft-float.
586
587 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
588
589 * target.c (target_read_until_error): New.
590 * target.h (target_read_until_error): Declare.
591 * mi/mi-main.c (mi_cmd_data_read_memory): Use
592 target_read_until_error.
593
594 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
597 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
598 after the DECFLOAT detection to fix a memory leak. Remove the
599 redundant NUM initialization. Protect the DECFLOAT detection memory
600 access before the P block. Restore the P memory content for the
601 DECFLOAT detection.
602
603 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
604
605 Kill the return value for all MI command functions.
606 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
607 (mi_cmd_argv_ftype): Change return type to void.
608
609 * mi/mi-main.c: Adjust all function that implement
610 MI commands to return nothing.
611 (struct captured_mi_execute_command_actions):
612 Remove the rc field.
613 (mi_cmd_execute): Return nothing.
614 (mi_execute_async_cli_command): Return nothing.
615 (mi_cmd_exec_interrupt): Don't print ^done here.
616 (mi_cmd_target_select): Don't print ^connected here.
617 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
618 Special-case -target-select and output ^connected, not ^done.
619
620 * mi/mi-cmd-break.c: Adjust.
621 * mi/mi-cmd-disas.c: Adjust.
622 * mi/mi-cmd-env.c: Adjust.
623 * mi/mi-cmd-file.c: Adjust.
624 * mi/mi-cmd-stack.c: Adjust.
625 * mi/mi-cmd-target.c: Adjust.
626 * mi/mi-cmd-var.c: Adjust.
627 * mi/mi-interp.c: Adjust.
628 * mi/mi-symbol-cmds.c: Adjust.
629
630 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
631
632 Emit ^running via observer.
633 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
634 ^running here.
635 (mi_on_resume): Print ^running if not previously output.
636 * mi/mi-main.c (running_result_record_printed): New.
637 (captured_mi_execute_command): Reset
638 running_result_record_printed. Use running_result_record_printed
639 to decide if we should skip ^done.
640 (mi_execute_async_cli_command): Don't print ^running here.
641 * mi/mi-main.h (current_token, running_result_record_printed):
642 Declare.
643
644 2008-06-24 Michael Snyder <msnyder@specifix.com>
645
646 * infrun.c (_initialize_infrun): White space and typo fix.
647
648 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
649
650 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
651 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
652 when first loading DLL with "dll" command.
653
654 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
655
656 * gnu-nat.c (proc_string): Use capital T for "Thread".
657
658 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
659
660 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
661
662 2008-06-18 Joel Brobecker <brobecker@adacore.com>
663
664 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
665 the target cannot run.
666
667 2008-06-18 Joel Brobecker <brobecker@adacore.com>
668
669 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
670 we're attaching to a running process.
671
672 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
673
674 * win32-nat.c (handle_load_dll): Give dll name and load address
675 if debug_events is on.
676 (handle_unload_dll): Likewise.
677
678 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
679
680 Don't suppress *running when doing finish.
681 * infcall.c (call_function_by_hand): Set both
682 suppress_resume_observer and suppress_stop_observer.
683 * infcmd.c (suppress_run_stop_observers): Split into...
684 (suppress_resume_observer, suppress_stop_observer): ...those.
685 (finish_command_continuation): Clear suppress_stop_observer.
686 (finish_command): Set suppress_stop_observer.
687 * inferior.h (suppress_run_stop_observers): Split into...
688 (suppress_resume_observer, suppress_stop_observer): ...those.
689 * infrun.c (normal_stop): Check for suppress_stop_observer.
690 * thread.c (set_running): Check for suppress_resume_observer.
691
692 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
693 Pierre Muller <muller@ics.u-strasbg.fr>
694
695 * gdbarch.sh (gdbarch_skip_main_prologue): New.
696 * gdbarch.h, gdbarch.c: Regenerate.
697 * i386-tdep.h (i386_skip_main_prologue): Declare.
698 * i386-tdep.c (i386_skip_main_prologue): New.
699 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
700 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
701 * symtab.c (find_function_start_sal): When pc points at the "main"
702 function, call gdbarch_skip_main_prologue.
703
704 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
705
706 * value.c (value_primitive_field): Fetch lazy register values.
707
708 2008-06-11 Pedro Alves <pedro@codesourcery.com>
709
710 * NEWS: Mention support removal of undocumented S AA p PID stop
711 reply packet.
712
713 * remote.c (remote_wait): Remove undocumented S AA p PID support.
714
715 2008-06-10 Stan Shebs <stan@codesourcery.com>
716
717 * MAINTAINERS: Update my affiliation and address.
718
719 2008-06-10 Andreas Schwab <schwab@suse.de>
720
721 * top.c (print_gdb_version): Don't print final newline.
722
723 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
724
725 Implement *running.
726 * Makefile.in: Update dependencies.
727 * gdbthread.h (struct thread_info): New field
728 running_.
729 (set_running, is_running): New.
730 * thread.c (set_running, is_running): New.
731 * inferior.h (suppress_normal_stop_observer): Rename to...
732 (suppress_run_stop_observers): ..this.
733 * infcmd.c (suppress_normal_stop_observer): Rename to...
734 (suppress_run_stop_observers): ..this.
735 (finish_command_continuation, finish_command): Adjust.
736 * infcall.c (call_function_by_hand): Adjust.
737 * infrun.c (normal_stop): Call set_running.
738 * target.c (target_resume): New. Call set_running.
739 * target.h (target_resume): Convert from macro to
740 a function.
741
742 * mi/mi-interp.c (mi_on_resume): New.
743 (mi_interpreter_init): Register mi_on_resume.
744
745 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
746
747 Use observers to report stop events in MI.
748 * mi/mi-interp.c (mi_on_normal_stop): New.
749 (mi_interpreter_init): Register mi_on_normal_stop.
750 (mi_interpreter_exec_continuation): Remove.
751 (mi_cmd_interpreter_exec): Don't register the above.
752 * mi/mi-main.c (captured_mi_execute_command): Don't care
753 about sync_execution.
754 (mi_execute_async_cli_command): Don't install continuation. Don't
755 print *stopped.
756 (mi_exec_async_cli_cmd_continuation): Remove.
757
758 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
759
760 Suppress normal stop observer when it's problematic.
761 * inferior.h (suppress_normal_stop_observer): New.
762 * infcall.c (call_function_by_hand): Disable stop events when
763 doing function calls.
764 * infmcd.c (suppress_normal_stop_observer): New.
765 (finish_command_continuation): Call normal_stop observer
766 explicitly.
767 (finish_command): Disable stop events inside proceed.
768 * infrun.c (normal_stop): Don't call normal stop observer if
769 suppressed of if multi-step is in progress.
770
771 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
772
773 Remove stale code.
774 * infrun.c (finish_command): Don't pass cleanup
775 to continuation.
776 (finish_command_continuation): Don't grab cleanup from
777 the passed data, as we don't use, and cannot, use it anyway.
778
779 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
780
781 Introduce common cleanup for restoring integers.
782 * defs.h (make_cleanup_restore_integer): New declaration.
783 (struct cleanup): New field free_arg.
784 (make_my_cleanup_2): New.
785 * utils.c (restore_integer_closure, restore_integer)
786 (make_cleanup_restore_integer): New.
787 (make_my_cleanup): Initialize the free_arg field and
788 renamed to make_my_cleanup_2.
789 (do_my_cleanups): Call free_arg.
790 (discard_cleanups): Call free_arg.
791 * breakpoint.c (restore_always_inserted_mode): Remove.
792 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
793
794 2008-06-09 Doug Evans <dje@google.com>
795
796 * remote.c (remote_wait): Include beginning of malformed packet
797 in error output.
798
799 2008-06-09 Tom Tromey <tromey@redhat.com>
800
801 * completer.c (complete_line): Don't special-case
802 expression_completer.
803 (expression_completer): Only pass last word to
804 location_completer.
805 * c-exp.y (yylex): Check 'token', not 'operator'.
806
807 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
808
809 * configure.ac (build_warnings): Add -Wno-format for mingw.
810 * configure: Regenerated.
811
812 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
813
814 * NEWS: Make indentation consistent. Move exec tracing entry out
815 of remote packet list.
816
817 2008-06-06 Tom Tromey <tromey@redhat.com>
818
819 * value.h (evaluate_subexpression_type, extract_field_op):
820 Declare.
821 * printcmd.c (_initialize_printcmd): Use expression_completer for
822 'p', 'inspect', 'call'.
823 * parser-defs.h (parse_field_expression): Declare.
824 * parse.c: Include exceptions.h.
825 (in_parse_field, expout_last_struct): New globals.
826 (mark_struct_expression): New function.
827 (prefixify_expression): Return int.
828 (prefixify_subexp): Return int. Use expout_last_struct.
829 (parse_exp_1): Update.
830 (parse_exp_in_context): Add 'out_subexp' argument. Handle
831 in_parse_field.
832 (parse_field_expression): New function.
833 * expression.h (parse_field_expression): Declare.
834 (in_parse_field): Likewise.
835 * eval.c (evaluate_subexpression_type): New function.
836 (extract_field_op): Likewise.
837 * completer.h (expression_completer): Declare.
838 * completer.c (expression_completer): New function.
839 (count_struct_fields, add_struct_fields): New functions.
840 * c-exp.y (yyparse): Redefine.
841 (COMPLETE): New token.
842 (exp): New productions.
843 (saw_name_at_eof, last_was_structop): New globals.
844 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
845 (c_parse): New function.
846 * breakpoint.c (_initialize_breakpoint): Use expression_completer
847 for watch, awatch, and rwatch.
848 * Makefile.in (parse.o): Depend on exceptions_h.
849
850 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
851
852 PR gdb/1147
853 * gdb/valopts.c (find_overload_match): Handle references
854 to pointers.
855
856 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
857
858 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
859 account the bitsize of the 'from' operand.
860
861 2008-06-06 Pedro Alves <pedro@codesourcery.com>
862
863 * annotate.h (annotate_thread_changed): Declare.
864
865 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
866
867 * annotate.c (annotate_thread_changed): New function.
868 * thread.c (thread_command) : Use it.
869 * infrun.c (normal_stop): Use it.
870
871 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
872 Nathan Sidwell <nathan@codesourcery.com>
873 Joseph Myers <joseph@codesourcery.com>
874
875 * acinclude.m4: Include ../config/acx.m4.
876 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
877 * configure, config.in: Regenerate.
878 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
879 address.
880 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
881
882 2008-06-05 Pedro Alves <pedro@codesourcery.com>
883
884 Replace 'target async' by 'maintenance set remote-async' and
885 'target remote' combination.
886
887 * remote.c (remote_async_wait): Merge into remote_wait, and
888 remove.
889 (remote_async_permitted, remote_async_permitted_set): New
890 variables.
891 (set_maintenance_remote_async_permitted)
892 (show_maintenance_remote_async_permitted): New functions.
893 (remote_async_ops, extended_async_remote_ops): Delete.
894 (remote_async_open, extended_remote_async_open): Delete.
895 (remote_open_1): Drop async_p parameter. Update callers. Replace
896 async_p with remote_async_permitted checks.
897 (extended_async_remote_attach): Delete.
898 (remote_resume, remote_async_resume): Merge and leave remote_resume.
899 (remote_async_terminal_inferior): Rename to...
900 (remote_terminal_inferior): ... this, and add
901 remote_async_termitted check.
902 (remote_async_terminal_ours): Rename to...
903 (remote_terminal_ours): ... this, and add remote_async_termitted
904 check.
905 (remote_wait, remote_async_wait): Merge and leave remote_wait
906 only.
907 (remote_kill, remote_async_kill): Merge and leave remote_kill
908 only.
909 (remote_async_mourn, extended_async_remote_mourn): Delete.
910 (extended_remote_create_inferior_1): Drop async_p parameter.
911 Update callers. Always use extended_remote_ops.
912 (extended_remote_async_create_inferior): Delete.
913 (remote_return_zero): Delete.
914 (init_remote_ops): Register remote_can_async_p, remote_async,
915 remote_async_mask, remote_terminal_inferior and
916 remote_terminal_ours.
917 (remote_can_async_p, remote_is_async_p): Check for
918 remote_async_permitted.
919 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
920 (set_remote_cmd): Don't add async and extended-async targets.
921 (_initialize_remote): Add set/show remote-async maintenance
922 commands.
923
924 2008-06-05 Pedro Alves <pedro@codesourcery.com>
925
926 * remote.c (kill_kludge): Delete.
927 (remote_wait, remote_async_wait): Don't set it.
928 (remote_kill, remote_async_kill): Don't do anything with it.
929
930 2008-06-05 Pedro Alves <pedro@codesourcery.com>
931
932 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
933
934 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
935
936 * bcache.c (bcache_data): Call deprecated_bcache_added function.
937 (deprecated_bcache_added): New function name. Body of function
938 bcache_data is used here with the addition of 'added' argument.
939 * bcache.h (deprecated_bcache_added): New function.
940 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
941 work from add_psymbol_to_list - initialises partial symbol and stashes
942 it in objfile's cache.
943 (append_psymbol_to_list): New helper function, takes other part of
944 work from add_psymbol_to_list - adds partial symbol to the given list.
945 (add_psymbol_to_list): Call helper functions instead of doing work
946 here. If adding to global list, do not duplicate partial symbols in the
947 partial symtab.
948
949 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
950
951 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
952 'exception caught|thrown' message.
953
954 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * Makefile.in: Update dependencies.
957 * dwarf2expr.c: New include "gdb_assert.h".
958 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
959 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
960 (execute_stack_op): Error out on too large RECURSION_DEPTH.
961 Increase/decrease RECURSION_DEPTH around the function.
962
963 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
964
965 * remote.c (get_offsets): Handle a single segment.
966 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
967 than segments.
968
969 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
970
971 * solib-svr4.c (struct lm_info): Add lm_addr.
972 (main_lm_addr): New.
973 (svr4_default_sos): Set lm_addr.
974 (svr4_current_sos): Set lm_addr and main_lm_addr.
975 (svr4_fetch_objfile_link_map): Rewrite.
976 (svr4_clear_solib): Clear main_lm_addr.
977
978 2008-06-03 Michael Snyder <msnyder@redhat.com>
979 Joseph Myers <joseph@codesourcery.com>
980
981 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
982 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
983
984 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
985
986 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
987
988 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
989
990 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
991
992 2008-06-01 Joel Brobecker <brobecker@adacore.com>
993
994 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
995 treat pointers in data space as function descriptors if the
996 target address is also in the data space.
997
998 2008-05-30 Joel Brobecker <brobecker@adacore.com>
999
1000 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
1001 the trad-frame register value for the SP register.
1002
1003 2008-05-29 Mark Kettenis <kettenis@gnu.org>
1004
1005 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
1006
1007 2008-05-28 Joel Brobecker <brobecker@adacore.com>
1008
1009 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
1010 that identifies function descriptors outside of the .opd section.
1011
1012 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
1013
1014 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
1015 temporary catchpoints. In MI add missing fields 'reason', 'disp',
1016 'bkptno'.
1017 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
1018 catchpoints.
1019 (handle_gnu_v3_exceptions): Use tempflag.
1020
1021 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1022
1023 Refactor varobj_update interface.
1024 * varobj.c (varobj_update): Report changes as vector. Also
1025 return not just a list of varobj, but a list of special structures
1026 that tell what exactly has changed.
1027 * varobj.h (enum varobj_update_error): Rename to
1028 varobj_scope_status.
1029 (struct varobj_update_result_t): New.
1030 (varobj_update): Adjust prototype.
1031 * mi/mi-cmd-var.c: Adjust for changes.
1032
1033 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1034
1035 * varobj.c (varobj_update): Fix comment typo.
1036 Fix indentation.
1037
1038 2008-05-26 Joel Brobecker <brobecker@adacore.com>
1039
1040 Set the symtab field of symbols read from ECOFF debugging entries.
1041 * mdebugread.c (add_symbol): Add new parameter symtab.
1042 (parse_symbol): Update calls to add_symbol throughout.
1043
1044 2008-05-27 Andreas Schwab <schwab@suse.de>
1045
1046 * symtab.h (enum address_class): Remove LOC_REGPARM and
1047 LOC_COMPUTED_ARG.
1048 (struct symbol): Add is_argument.
1049 (SYMBOL_IS_ARGUMENT): Define.
1050
1051 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
1052 * buildsym.c (finish_block): Likewise.
1053 * stack.c (print_frame_args, print_block_frame_locals)
1054 (print_frame_arg_vars): Likewise.
1055 * symtab.c (lookup_block_symbol): Likewise.
1056 * tracepoint.c (add_local_symbols): Likewise.
1057 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1058
1059 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
1060 * dwarf2read.c (new_symbol): Likewise.
1061 * mdebugread.c (parse_symbol): Likewise.
1062 * stabsread.c (define_symbol): Likewise.
1063
1064 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
1065 and LOC_COMPUTED_ARG.
1066 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1067 * ax-gdb.c (gen_var_ref): Likewise.
1068 * eval.c (evaluate_subexp_for_address): Likewise.
1069 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1070 * m2-exp.y (yylex): Likewise.
1071 * printcmd.c (address_info): Likewise.
1072 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1073 * tracepoint.c (collect_symbol, scope_info): Likewise.
1074
1075 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1076
1077 * gdbarch.sh: Added new gdbarch struct
1078 core_regset_sections.
1079 * gdbarch.c: Refreshed.
1080 * gdbarch.h: Refreshed.
1081 * regset.h (core_regset_section): Declared.
1082 * linux-nat.c (linux_nat_do_thread_registers): Added
1083 support for the new gdbarch struct core_regset_sections.
1084 * utils.c (host_address_to_string): New function.
1085 * defs.h (host_address_to_string): New prototype.
1086 * i386-linux-tdep.c (i386_regset_rections): New register
1087 sections list for i386.
1088 (i386_linux_init_abi): Initialized new gdbarch struct
1089 core_regset_sections.
1090 * Makefile.in: Updated to reflect dependency changes.
1091 * ppc-linux-tdep.c (ppc_regset_sections): Register
1092 sections list for ppc.
1093 (ppc_linux_init_abi): Initialized new gdbarch struct
1094 core_regset_sections
1095
1096 2008-05-24 Andreas Schwab <schwab@suse.de>
1097
1098 * linespec.c (decode_objc): Save current language around call to
1099 get_selected_block.
1100
1101 2008-05-23 Joel Brobecker <brobecker@adacore.com>
1102
1103 * valprint.h (get_array_bounds): Renames get_array_low_bound.
1104 * valprint.c (get_array_bounds): Renames get_array_low_bound.
1105 Return the proper bound value if the array index type is an
1106 enumerated type. Compute the high bound if requested.
1107 (val_print_array_elements): Handle the case when the array
1108 element has a null size.
1109 * ada-valprint.c (print_optional_low_bound): Add handling
1110 for empty arrays or arrays of zero-size elements.
1111 (ada_val_print_array): New function, extracted out from
1112 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
1113 handle empty arrays and arrays of zero-size elements.
1114 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
1115 code by call to ada_val_print_array.
1116 (ada_value_print): Remove handling of null array. The handling
1117 was incomplete and is now better handled by ada_val_print_array.
1118
1119 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1120
1121 * annotate.c (annotate_source, annotate_frame_begin): Replace
1122 deprecated_print_address_numeric with paddress.
1123 * cli/cli-cmds.c (list_command, edit_command): Likewise.
1124 * tui/tui-stack.c (tui_make_status_line): Likewise.
1125
1126 * defs.h (deprecated_print_address_numeric): Remove.
1127 * printcmd.c (deprecated_print_address_numeric): Remove.
1128 * maint.c (maint_print_section_info): Fix comment.
1129
1130 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1131
1132 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
1133 print_binary_chars, print_char_chars): Add byte_order parameter and
1134 replace gdbarch_byte_order.
1135 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
1136 expressions and remove them. Remove unused TWO_TO_FOURTH.
1137 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
1138 endianness. Update call to print_hex_chars.
1139 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
1140 print_binary_chars, print_char_chars): Add byte_order parameter.
1141 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
1142 get at the endianness. Update print_*_char calls to use byte_order.
1143
1144 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1145
1146 * symtab.h (struct symbol): Make "aux_value" member a void pointer
1147 instead of a union.
1148 (SYMBOL_LOCATION_BATON): Update.
1149
1150 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1151
1152 * symtab.h (enum address_class): Remove LOC_BASEREG and
1153 LOC_BASEREG_ARG.
1154 (struct symbol): Remove "basereg" member of "aux_value" union.
1155 (SYMBOL_BASEREG): Remove.
1156
1157 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
1158 or LOC_BASEREG_ARG.
1159 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1160 (ada_add_block_symbols): Likewise.
1161 * ax-gdb.c (gen_var_ref): Likewise.
1162 * buildsym.c (finish_block): Likewise.
1163 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1164 * m2-exp.y (yylex): Likewise.
1165 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1166 * printcmd.c (address_info): Likewise.
1167 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
1168 (print_frame_arg_vars): Likewise.
1169 * symmisc.c (print_symbol): Likewise.
1170 * symtab.c (lookup_block_symbol): Likewise.
1171 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1172 (scope_info): Likewise.
1173
1174 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1175
1176 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
1177
1178 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
1179 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1180 (ada_add_block_symbols): Likewise.
1181 * ax-gdb.c (gen_var_ref): Likewise.
1182 * buildsyms.c (finish_block): Likewise.
1183 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1184 * m2-exp.y (yylex): Likewise.
1185 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1186 * printcmd.c (address_info): Likewise.
1187 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
1188 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1189 * symtab.c (lookup_block_symbol): Likewise.
1190 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1191 (scope_info): Likewise.
1192
1193 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1194
1195 * symtab.h (enum address_class): Remove LOC_INDIRECT and
1196 LOC_HP_THREAD_LOCAL_STATIC.
1197
1198 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
1199 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
1200 (read_var_value): Likewise.
1201 * buildsym.c (finish_block): Likewise.
1202 * objfiles.c (objfile_relocate): Likewise.
1203 * printcmd.c (address_info): Likewise.
1204 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1205 * tracepoint.c (scope_info): Likewise.
1206
1207 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1208 Maxim Grigoriev <maxim2405@gmail.com>
1209
1210 * xtensa-tdep.c (xtensa_read_register): Remove.
1211 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
1212 argument litbase to call0_frame_cache().
1213 (call0_track_op, call0_analyze_prologue)
1214 (call0_frame_cache): Use extra argument litbase.
1215
1216 2008-05-21 Joel Brobecker <brobecker@adacore.com>
1217
1218 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
1219
1220 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1221
1222 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
1223
1224 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1225
1226 * alpha-mdebug-tdep.c: Include "trad-frame.h".
1227 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
1228 struct trad_frame_saved_reg *.
1229 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
1230 trad_frame_alloc_saved_regs. Update accesses. Record previous
1231 value of SP as being vfp.
1232 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
1233 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1234
1235 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1236
1237 * score-tdep.c (score_print_insn): Get the current endianess from
1238 disassemble_info instead of gdbarch_byte_order.
1239
1240 2008-05-21 Pedro Alves <pedro@codesourcery.com>
1241
1242 * frame.c (get_prev_frame_1): Build frame id before setting
1243 this_frame->prev_p, not after.
1244
1245 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
1246
1247 * annotate.c (annotate_new_thread): New function for new-thread
1248 annotation.
1249 * annotate.h: (annotate_new_thread): New extern.
1250 * thread.c (add_thread_with_info): Use it.
1251 * Makefile.in (thread.o): Add dependency on annotate.h.
1252
1253 2008-05-20 Joel Brobecker <brobecker@adacore.com>
1254
1255 * win32-nat.c (win32_wait): Block the control-c event while
1256 waiting for a debug event.
1257
1258 2008-05-19 Pedro Alves <pedro@codesourcery.com>
1259
1260 * symtab.h (lookup_symbol_in_language): Update comment.
1261 * symtab.c (lookup_symbol_aux_block): Update comment.
1262 * ada-lang.c (ada_lookup_symbol_list): Update comment.
1263
1264 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1265
1266 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
1267 (lookup_symbol): Likewise.
1268 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
1269 (lookup_symbol): Likewise.
1270 (search_symbols): Update.
1271
1272 * linespec.c (find_methods, collect_methods): Update.
1273 (add_matching_methods, add_constructors): Update.
1274 (decode_compound, decode_dollar, decode_variable): Update.
1275 (lookup_prefix_sym): Update.
1276
1277 (symbol_found): Remove SYM_SYMTAB parameter.
1278 Use SYMBOL_SYMTAB (sym) instead.
1279
1280 * gdbtypes.c (lookup_typename): Update.
1281 (lookup_struct, lookup_union, lookup_enum): Update.
1282 (lookup_template_type): Update.
1283 (check_typedef): Update.
1284 * language.c (lang_bool_type): Update.
1285 * mdebugread.c (parse_procedure): Update.
1286 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1287 * parse.c (write_dollar_variable): Update.
1288 * printcmd.c (address_info): Update.
1289 * source.c (select_source_symtab): Update.
1290 * stack.c (print_frame_args, print_frame_arg_vars): Update.
1291 * valops.c (find_function_in_inferior): Update.
1292 (value_struct_elt_for_reference): Update.
1293 * value.c (value_static_field, value_fn_field): Update.
1294
1295 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1296 * arm-tdep.c (arm_skip_prologue): Update.
1297 * mt-tdep.c (mt_skip_prologue): Update.
1298 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
1299
1300 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
1301 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
1302 (add_defn_to_vec): Likewise.
1303 (ada_add_block_symbols): Likewise.
1304 (lookup_cached_symbol, cache_symbol): Likewise.
1305 (standard_lookup): Update.
1306 (ada_lookup_symbol_list): Update.
1307
1308 * c-valprint.c (c_val_print): Update.
1309 * cp-support.c (cp_lookup_rtti_type): Update.
1310 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
1311 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
1312 * p-valprint.c (pascal_val_print): Update.
1313 * scm-lang.c (scm_lookup_name): Update.
1314
1315 * c-exp.y: Update.
1316 * f-exp.y: Update.
1317 * jv-exp.y: Update.
1318 * m2-exp.y: Update.
1319 * objc-exp.y: Update.
1320 * p-exp.y: Update.
1321
1322 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1323
1324 * language.h (struct language_defn): Remove SYMTAB parameter from
1325 la_lookup_symbol_nonlocal callback function pointer.
1326
1327 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1328 (ada_lookup_encoded_symbol): Likewise.
1329 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1330 Always call fixup_symbol_section.
1331 (ada_lookup_symbol): Remove SYMTAB parameter.
1332 (ada_lookup_symbol_nonlocal): Likewise.
1333 * ada-exp.y (write_object_renaming): Update.
1334 (find_primitive_type): Likewise.
1335
1336 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1337 (cp_lookup_symbol_namespace): Likewise.
1338 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
1339 (lookup_symbol_file): Likewise.
1340 (lookup_possible_namespace_symbol): Likewise.
1341 (cp_lookup_symbol_nonlocal): Likewise.
1342 (cp_lookup_symbol_namespace): Likewise.
1343 (cp_lookup_nested_type): Update.
1344
1345 * scm-valprint.c (scm_inferior_print): Update.
1346 * valops.c (value_maybe_namespace_elt): Update.
1347
1348 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
1349 lookup_lib_global_symbol callback function pointer.
1350 (solib_global_lookup): Remove SYMTAB parameter.
1351 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
1352 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1353
1354 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1355 (lookup_symbol_static): Likewise.
1356 (lookup_symbol_global): Likewise.
1357 (lookup_symbol_aux_block): Likewise.
1358 (lookup_global_symbol_from_objfile): Likewise.
1359 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
1360 (lookup_symbol_aux_local): Likewise.
1361 (lookup_symbol_aux_block): Likewise.
1362 (lookup_symbol_aux_symtabs): Likewise.
1363 (lookup_symbol_aux_psymtabs): Likewise.
1364 (lookup_global_symbol_from_objfile): Likewise.
1365 (basic_lookup_symbol_nonlocal): Likewise.
1366 (lookup_symbol_static): Likewise.
1367 (lookup_symbol_global): Likewise.
1368
1369 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
1370
1371 2008-05-17 Pedro Alves <pedro@codesourcery.com>
1372
1373 * remote.c (init_extended_remote_ops): Fix typo.
1374
1375 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1376
1377 * NEWS: Mention new DICOS x86 target configuration.
1378
1379 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1380 Ulrich Weigand <uweigand@de.ibm.com>
1381
1382 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
1383 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
1384
1385 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
1386 use it instead of ginfo->value.address. Look up minimal symbol by
1387 address and name. Assume OBJFILE is non-NULL.
1388 (fixup_symbol_section): Ensure we always have an objfile to look
1389 into. Extract and pass to fixup_section the symbol's address that
1390 will match the minimal symbol's address.
1391 (fixup_psymbol_section): Likewise.
1392
1393 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1394 overlays and the addrmap returned the wrong section.
1395
1396 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1397 calling fixup_symbol_section.
1398
1399 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1400
1401 * minsyms.c: Include "target.h".
1402 (find_solib_trampoline_target): Handle minimal symbols pointing
1403 to function descriptors as well.
1404 * Makefile.in (minsyms.o): Update dependencies.
1405
1406 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1407 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1408 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1409 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1410 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1411 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1412 (ppc64_standard_linkage_target): Rename to ...
1413 (ppc64_standard_linkage1_target): ... this.
1414 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1415 (ppc64_skip_trampoline_code): Support three variants of standard
1416 linkage stubs. Call find_solib_trampoline_target to handle
1417 glink stubs.
1418
1419 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1420
1421 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1422 ppc64_sysv_abi_adjust_breakpoint_address.
1423 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1424 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1425
1426 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1429 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1430 of ppc_linux_skip_trampoline_code.
1431
1432 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1433
1434 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1435 * gdbarch.c, gdbarch.h: Regenerated.
1436 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1437 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1438 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1439
1440 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1441
1442 * linux-nat.c (trap_ptid): Delete.
1443 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1444 Adjust.
1445 * linux-thread-db.c (thread_db_wait): Adjust.
1446
1447 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1448
1449 * linespec.c (decode_line_1): Fix a couple of comments.
1450
1451 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1452
1453 * dbxread.c: Formatting.
1454 (INTERNALIZE_SYMBOL): Init n_other.
1455 (set_namestring): Take pointer to nlist arg rather than struct
1456 copy. Update all callers.
1457
1458 2008-05-15 Andreas Schwab <schwab@suse.de>
1459
1460 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1461 (dwarf2read.o): Add $(addrmap_h).
1462
1463 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1464
1465 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
1466 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
1467 to handle ppc32 PLT entries.
1468 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
1469 only on ppc64.
1470
1471 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1472
1473 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
1474 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
1475 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
1476 (lookup_minimal_symbol_by_pc_section): Use
1477 lookup_minimal_symbol_by_pc_section_1.
1478 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1479
1480 2008-05-13 Joel Brobecker <brobecker@adacore.com>
1481
1482 * findcmd.c: Add #include "gdb_stdint.h".
1483 * Makefile.in (findcmd.o): Update dependencies.
1484
1485 2008-05-11 David S. Miller <davem@davemloft.net>
1486
1487 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
1488 long double size override, Linux does use 128-bit now.
1489
1490 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
1491 (sparc_linux_write_pc): New function.
1492 (sparc32_linux_init_abi): Register it.
1493 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
1494 (sparc64_linux_write_pc): New function.
1495 (sparc64_linux_init_abi): Register it.
1496
1497 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
1498 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
1499
1500 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1501
1502 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
1503 and info.tdep_info before calling gdbarch_init_osabi.
1504
1505 2008-05-09 Joel Brobecker <brobecker@adacore.com>
1506
1507 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
1508 the type of the right hand side of the assignment to the type
1509 of the left hand side if the left hand side is a convenience
1510 variable.
1511
1512 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
1513
1514 * NEWS: Mention gdbserver bi-arch capability.
1515
1516 2008-05-09 Doug Evans <dje@google.com>
1517
1518 New "find" command.
1519 * NEWS: Document find command and qSearch:memory packet.
1520 * Makefile.in (SFILES): Add findcmd.c.
1521 (COMMON_OBJS): Add findcmd.o.
1522 (findcmd.o): New rule.
1523 * findcmd.c: New file.
1524 * target.h (target_ops): New member to_search_memory.
1525 (simple_search_memory): Declare.
1526 (target_search_memory): Declare.
1527 * target.c (simple_search_memory): New fn.
1528 (target_search_memory): New fn.
1529 * remote.c (PACKET_qSearch_memory): New packet kind.
1530 (remote_search_memory): New fn.
1531 (init_remote_ops): Init to_search_memory.
1532 (init_extended_remote_ops): Ditto.
1533 (_initialize_remote): Add qSearch:memory packet config command.
1534
1535 2008-05-09 Eli Zaretskii <eliz@gnu.org>
1536
1537 * thread.c (_initialize_thread): Don't use commas and periods in
1538 first line of doc string of "set/show print thread-events".
1539
1540 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1541
1542 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
1543 Update for unwinder changes.
1544
1545 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1546
1547 * frame.c (get_frame_base_address, get_frame_locals_address)
1548 (get_frame_args_address): Pass the correct frame when calling
1549 frame_base_find_by_frame.
1550
1551 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1552
1553 * remote.c (extended_remote_attach_1): Call target_find_description.
1554
1555 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1556
1557 * remote.c (extended_remote_create_inferior_1): Clean up
1558 before marking the target running.
1559
1560 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1561
1562 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
1563 changes.
1564
1565 2008-05-07 Joel Brobecker <brobecker@adacore.com>
1566
1567 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
1568 sparc64-sol2-tdep.c: Update for unwinder changes.
1569
1570 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1571
1572 * cp-support.c (mangled_name_to_comp): Initialize storage.
1573 (unqualified_name_from_comp): Likewise.
1574
1575 2008-05-07 Jie Zhang <jie.zhang@analog.com>
1576
1577 * remote.c (remote_insert_breakpoint): Call get_remote_state
1578 after gdbarch_breakpoint_from_pc is called.
1579 (remote_insert_hw_breakpoint): Likewise.
1580
1581 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1582
1583 * valprint.c (val_print): Add new language parameter and use it
1584 instead of using the current_language. Update calls to val_print
1585 throughout.
1586 (common_val_print): Add new langauge parameter and pass it to
1587 val_print.
1588 * value.h (struct language_defn): Add opaque declaration.
1589 (val_print, common_val_print): Update declarations.
1590 * stack.c (print_frame_args): Update call to common_val_print
1591 using the appropriate language.
1592 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1593 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1594 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1595 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1596 #include "language.h" if necessary.
1597 Update calls to val_print and common_val_print.
1598 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1599 Update dependencies.
1600
1601 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1602
1603 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1604 pointing inside a non-executable section as function descriptors.
1605
1606 2008-05-06 Pedro Alves <pedro@codesourcery.com>
1607
1608 * inf-loop.c (inferior_event_handler): Run all continuations and
1609 print any language change before running the breakpoint commands.
1610
1611 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1612
1613 * frame-unwind.c (frame_unwind_got_bytes): New function.
1614 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1615 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1616 for unwinder changes.
1617
1618 2008-05-05 Doug Evans <dje@google.com>
1619
1620 * NEWS: Mention new /m modifier for disassemble command.
1621 * cli/cli-cmds.c (print_disassembly): New function.
1622 (disassemble_current_function): New function
1623 (disassemble_command): Recognize /m modifier, print mixed
1624 source+assembly.
1625 (init_cli_cmds): Update disassemble help text.
1626
1627 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
1628
1629 * xtensa-tdep.c: Update for unwinder changes.
1630
1631 2008-05-05 Andreas Schwab <schwab@suse.de>
1632
1633 Update m68k port for unwinder changes.
1634 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1635 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1636 (m68k_frame_unwind): Use default_frame_sniffer.
1637 (m68k_frame_sniffer): Remove.
1638 (m68k_frame_base_address): Expect this_frame.
1639 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
1640 this_frame.
1641 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1642 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1643 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1644 parameter instead of pc value.
1645 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1646 Expect this_frame.
1647 (m68k_linux_sigtramp_frame_this_id)
1648 (m68k_linux_sigtramp_frame_prev_register)
1649 (m68k_linux_sigtramp_frame_sniffer): Update signature.
1650 (m68k_linux_sigtramp_frame_unwind): Use
1651 m68k_linux_sigtramp_frame_sniffer.
1652 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1653
1654 * m68klinux-nat.c (store_register): Fix typo.
1655
1656 2008-05-05 Pedro Alves <pedro@codesourcery.com>
1657
1658 * infcmd.c (step_1): Put thread id on the stack to avoid possible
1659 NULL dereferencing.
1660
1661 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
1662
1663 * symfile.c (reread_symbols): Update objfile's entry point.
1664
1665 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
1666 Joel Brobecker <brobecker@adacore.com>
1667
1668 * ada-lang.c: Update throughout to use symbol_matches_domain
1669 instead of matching the symbol domain explictly.
1670 * dwarf2read.c (add_partial_symbol): Do not add new psym for
1671 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1672 class as typedefs. See lookup_partial_symbol function.
1673 (new_symbol): Similar to add_partial_symbol, do not create
1674 symbol for the typedef. See lookup_block_symbol.
1675 * symtab.c (symbol_matches_domain): New function, takes care
1676 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1677 (lookup_partial_symbol): Use symbol_matches_domain to see if the
1678 found psym domain matches the given domain.
1679 (lookup_block_symbol): Likewise.
1680
1681 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1682
1683 * top.c (command_line_handler_continuation): Remove.
1684 (execute_command): Do not install the above.
1685
1686 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1687
1688 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1689 and catch all exceptions from it.
1690 * top.c (command_line_handler_continuation): Don't
1691 call bpstat_do_action here.
1692
1693 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1694
1695 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1696 (struct die_info): Remove type.
1697 (read_type_die, read_typedef, read_base_type, read_subrange_type)
1698 (read_structure_type, read_enumeration_type, read_array_type)
1699 (read_tag_pointer_type, read_tag_ptr_to_member_type)
1700 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1701 (read_tag_string_type, read_subroutine_type, read_set_type)
1702 (read_unspecified_type): Delete prototypes. Remove check for
1703 already-loaded type. Return the new type.
1704 (set_die_type): Return the new type.
1705 (reset_die_and_siblings_types): Delete.
1706 (load_comp_unit, load_full_comp_unit): Set type_hash.
1707 (process_queue): Remove call to reset_die_and_siblings_types.
1708 (process_die): Do not read most types here. Use read_type_die
1709 for others.
1710 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1711 (quirk_gcc_member_function_pointer): Return the new type.
1712 (process_structure_scope, process_enumeration_scope): Use
1713 get_die_type and read the DIE's type.
1714 (read_full_die): Do not initialize die->type.
1715 (tag_type_to_type): Use read_type_die.
1716 (read_type_die): Check for already defined types. Return the
1717 type.
1718 (determine_prefix): Use get_die_type.
1719 (set_die_type): Return the type.
1720 (get_die_type): Take a CU argument. Check for no type_hash.
1721
1722 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1723
1724 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1725 locals.
1726
1727 2008-05-04 Pedro Alves <pedro@codesourcery.com>
1728
1729 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1730 and bp_longjmp_resume breakpoints.
1731 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1732 meaningful.
1733 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1734 breakpoints. Create bp_longjmp breakpoints as momentary
1735 breakpoints.
1736 (enable_longjmp_breakpoint): Delete.
1737 (set_longjmp_breakpoint): New.
1738 (disable_longjmp_breakpoint): Delete.
1739 (delete_longjmp_breakpoint): New.
1740 (set_longjmp_resume_breakpoint): Delete.
1741 (set_momentary_breakpoint_at_pc): New.
1742 (breakpoint_re_set_one): Don't delete bp_longjmp and
1743 bp_longjmp_resume breakpoints.
1744 (breakpoint_re_set): Don't create longjmp and longjmp-resume
1745 breakpoints.
1746
1747 * infrun.c (step_resume_breakpoint): Add comment.
1748 (struct execution_control_state): Delete handling_longjmp member.
1749 (init_execution_control_state). Don't clear handling_longjmp.
1750 (context_switch): Don't context switch handling_longjmp.
1751 (handle_inferior_event): If handling a bp_longjmp breakpoint,
1752 create a bp_longjmp_resume breakpoint, and set it as current
1753 step_resume_breakpoint, then step over the longjmp breakpoint. If
1754 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
1755 breakpoint, delete the longjmp-resume breakpoint, and stop
1756 stepping.
1757 (currently_stepping): Remove handling_longjmp from expression.
1758 (insert_step_resume_breakpoint_at_sal): Update comment.
1759 (insert_longjmp_resume_breakpoint): New.
1760
1761 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
1762 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
1763 declarations.
1764 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
1765 (set_longjmp_resume_breakpoint): Delete declaration.
1766
1767 * gdbthread.h (save_infrun_state): Remove handling_longjmp
1768 parameter.
1769 (load_infrun_state): Delete *handling_longjmp parameter.
1770 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
1771 Update body.
1772 (load_infrun_state): Delete *handling_longjmp parameter. Update
1773 body.
1774
1775 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
1776 (delete_longjmp_breakpoint_cleanup): New.
1777 (step_1): Call set_longjmp_breakpoint instead of
1778 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
1779 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
1780 (step_1_continuation): Pass thread id in the continuation args to
1781 step_once.
1782 (step_once): Add thread parameter. Pass thread id the the
1783 continuation.
1784
1785 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1786
1787 Set CU BASE_ADDRESS already from partial DIEs.
1788 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
1789 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
1790 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
1791 from these variables if it was still unset.
1792
1793 * Makefile.in: Update dependencies.
1794 * dwarf2read.c: Include "addrmap.h"
1795 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
1796 (dwarf2_ranges_read): New prototype.
1797 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
1798 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
1799 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
1800 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
1801 comment for it. Add the found ranges to RANGES_PST. New variable
1802 BASEADDR, initialize it the common way.
1803 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
1804 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
1805 HAS_RANGES_OFFSET for the later processing.
1806 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
1807 * symtab.c: Include "addrmap.h"
1808 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
1809 Move the psymtab locator into ...
1810 (find_pc_sect_psymtab_closer): ... a new function.
1811
1812 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1813
1814 * arch-utils.c (gdbarch_update_p): Use default values for
1815 info.abfd and info.target_desc if they are NULL.
1816 (gdbarch_from_bfd): Remove assertion.
1817 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
1818 using the current target description.
1819 (gdbarch_info_fill): Do not use default values for info->abfd
1820 and info->target_desc.
1821
1822 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1823
1824 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
1825
1826 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1827
1828 * inferior.h (read_pc_pid, write_pc_pid): Remove.
1829 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
1830
1831 * regcache.c (read_pc_pid): Remove, replace by ...
1832 (regcache_read_pc): ... this function.
1833 (write_pc_pid): Remove, replace by ...
1834 (regcache_write_pc): ... this function.
1835 (read_pc, write_pc): Update.
1836
1837 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
1838 write_pc_pid by regcache_read_pc and regcache_write_pc.
1839 (displaced_step_fixup): Likewise.
1840 (resume): Likewise. Use regcache arch instead of current_gdbarch.
1841 (prepare_to_proceed): Likewise.
1842 (proceed): Likewise.
1843 (adjust_pc_after_break): Likewise.
1844 (handle_inferior_event): Likewise.
1845
1846 * linux-nat.c (cancel_breakpoint): Likewise.
1847 * linux-thread-db.c (check_event): Likewise.
1848 * aix-thread.c (aix_thread_wait): Likewise.
1849 * tracepoint.c (trace_dump_command): Likewise.
1850
1851 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
1854 SYMBOL_LOCATION_BATON.
1855
1856 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
1857
1858 * target.h (struct target_ops): New field to_auxv_parse.
1859 * auxv.c (default_auxv_parse): New, renamed from previous
1860 target_auxv_parse.
1861 (target_auxv_parse): Try to call target method. Fallback to
1862 default_auxv_parse if not found.
1863 * procfs.c (procfs_auxv_parse): New.
1864 (init_procfs_ops): On Solaris, in 64-bit mode, install
1865 procfs_auxv_parse.
1866
1867 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
1868
1869 * symfile.c (add_symbol_file_command): Use paddress rather than
1870 hex_string to print the address.
1871
1872 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1873
1874 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
1875 return the null frame ID to terminate the backtrace.
1876
1877 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1878
1879 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
1880 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
1881 (SIG_FRAME_PC_OFFSET): Likewise.
1882 (SIG_FRAME_LR_OFFSET): Likewise.
1883 (SIG_FRAME_FP_OFFSET): Likewise.
1884 (rs6000_push_dummy_call): Likewise.
1885 (rs6000_return_value): Likewise.
1886 (rs6000_convert_from_func_ptr_addr): Likewise.
1887 (branch_dest, rs6000_software_single_step): Likewise.
1888 (deal_with_atomic_sequence): Rename to ...
1889 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
1890 Do not call branch_dest; inline required parts of that function.
1891 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
1892 with SYMBOL_LINKAGE_NAME.
1893 (struct reg, regsize): Delete.
1894 (read_memory_addr): Delete; inline into callers.
1895 (rs6000_skip_prologue): Move after skip_prologue.
1896 (skip_prologue): Remove prototype.
1897 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
1898 initialization as if this variable were true. Do not install
1899 ppc64_sysv_abi_adjust_breakpoint_address.
1900
1901 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
1902 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
1903 and "breakpoint.h".
1904 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
1905 (SIG_FRAME_PC_OFFSET): Likewise.
1906 (SIG_FRAME_LR_OFFSET): Likewise.
1907 (SIG_FRAME_FP_OFFSET): Likewise.
1908 (rs6000_push_dummy_call): Likewise.
1909 (rs6000_return_value): Likewise.
1910 (rs6000_convert_from_func_ptr_addr): Likewise.
1911 (branch_dest, rs6000_software_single_step): Likewise. Replace
1912 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
1913 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
1914 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
1915 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
1916 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
1917
1918 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
1919 (AIX_TEXT_SEGMENT_BASE): New macro.
1920 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
1921 by AIX_TEXT_SEGMENT_BASE.
1922
1923 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
1924 (struct gdbarch_tdep): Remove text_segment_base member.
1925 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
1926 ppc64_sysv_abi_adjust_breakpoint_address.
1927
1928 * Makefile.in (rs6000-tdep.o): Update dependencies.
1929 (rs6000-aix-tdep.o): Likewise.
1930
1931 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
1932 Thiago Jung Bauermann <bauerman@br.ibm.com>
1933
1934 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
1935 * doublest.c (convert_typed_floating): Fix typo in comment.
1936 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1937 * frame-unwind.h (frame_sniffer_ftype): Likewise.
1938 * frame.c (frame_unwind_address_in_block): Likewise.
1939 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
1940 * symtab.h (struct symbol): Likewise.
1941 * tramp-frame.h (struct trad_frame_cache): Likewise.
1942 * value.c (allocate_repeat_value): Likewise.
1943
1944 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1945
1946 * infrun.c (handle_inferior_event): Do not insert breakpoints at
1947 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
1948
1949 2008-05-03 Pedro Alves <pedro@codesourcery.com>
1950
1951 * parse.c (parse_exp_in_context): Don't override
1952 expression_context_pc if get_selected_block returned a valid
1953 block.
1954
1955 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
1956
1957 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
1958 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
1959 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
1960 Delete.
1961 * c-typeprint.c (c_type_print_base): Delete handling of template
1962 instantiations.
1963 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
1964 (METHOD_PTR_TO_VOFFSET): Delete.
1965 * defs.h (QUIT_FIXME): Delete.
1966 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
1967 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
1968 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
1969 ninstantiations, and instantiations.
1970 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
1971 (TYPE_FN_FIELD_INLINED): Delete.
1972 * srec.h (SREC_BINARY): Delete.
1973 * symtab.c (symbol_init_demangled_name): Delete.
1974 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
1975 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
1976 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
1977 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
1978 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
1979 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
1980 * target.h (enum thread_control_capabilities): Delete tc_switch.
1981 (target_can_switch_threads): Delete.
1982
1983 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
1984
1985 * Makefile.in (objfiles.o): Update.
1986 * exec.c (exec_set_section_address): Support p->addr != 0.
1987 * objfiles.c (objfile_relocate): Update exec_ops section
1988 addresses.
1989 * symfile.c (place_section): Move exec_set_section_address call...
1990 (default_symfile_offsets): ...to here.
1991
1992 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1993
1994 * Makefile.in (ppc_linux_tdep_h): New macro.
1995 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
1996 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
1997 (powerpc_e500l_c): Likewise.
1998 (ppc-linux-nat.o): Update dependencies.
1999 (ppc-linux-tdep.o): Update dependencies.
2000 (rs6000-tdep.o): Update dependencies.
2001
2002 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
2003 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
2004 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
2005 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
2006 (tdesc_powerpc_e500): Remove.
2007
2008 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
2009 and "features/rs6000/powerpc-altivec64.c".
2010 (ppc_supply_reg, ppc_collect_reg): Make global.
2011 (variants): Use tdesc_powerpc_32 for "powerpc" and
2012 tdesc_powerpc_altivec64 for "powerpc64".
2013 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
2014
2015 * ppc-linux-tdep.h: New file.
2016
2017 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
2018 Include "features/rs6000/powerpc-32l.c".
2019 Include "features/rs6000/powerpc-altivec32l.c".
2020 Include "features/rs6000/powerpc-64l.c".
2021 Include "features/rs6000/powerpc-altivec64l.c".
2022 Include "features/rs6000/powerpc-e500l.c".
2023 (ppc_linux_supply_gregset): New function.
2024 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
2025 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
2026 (ppc64_linux_gregset): Likewise.
2027 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
2028 (ppc_linux_trap_reg_p): New function.
2029 (ppc_linux_write_pc): New function.
2030 (ppc_linux_core_read_description): New function.
2031 (ppc_linux_init_abi): Install ppc_linux_write_pc and
2032 ppc_linux_core_read_description. Install orig_r3 and trap
2033 registers if present in the target description.
2034 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
2035
2036 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
2037 (PT_ORIG_R3, PT_TRAP): Define if necessary.
2038 (ppc_register_u_addr): Handle orig_r3 and trap registers.
2039 (fetch_ppc_registers): Likewise.
2040 (store_ppc_registers): Likewise.
2041 (store_register): Likewise.
2042 (ppc_linux_read_description): Check whether AltiVec is supported.
2043 Check whether inferior is 32-bit or 64-bit. Return the appropriate
2044 Linux target description.
2045
2046 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
2047 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
2048 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
2049 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
2050 rs6000/powerpc-e500. Update -expedite variables accordingly.
2051
2052 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
2053 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
2054 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
2055 * features/rs6000/powerpc-e500.c: Regenerate.
2056 * features/rs6000/powerpc-32.c: Regenerate.
2057 * features/rs6000/powerpc-64.c: Regenerate.
2058
2059 * features/rs6000/power-linux.xml: New file.
2060 * features/rs6000/power64-linux.xml: New file.
2061 * features/rs6000/powerpc-32l.xml: New file.
2062 * features/rs6000/powerpc-altivec32l.xml: New file.
2063 * features/rs6000/powerpc-64l.xml: New file.
2064 * features/rs6000/powerpc-altivec64l.xml: New file.
2065 * features/rs6000/powerpc-e500l.xml: New file.
2066 * features/rs6000/powerpc-32l.c: New (generated) file.
2067 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
2068 * features/rs6000/powerpc-64l.c: New (generated) file.
2069 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
2070 * features/rs6000/powerpc-e500l.xml: New (generated) file.
2071
2072 * regformats/reg-ppc.dat: Remove.
2073 * regformats/reg-ppc64.dat: Remove.
2074 * regformats/rs6000/powerpc-32.dat: Remove.
2075 * regformats/rs6000/powerpc-64.dat: Remove.
2076 * regformats/rs6000/powerpc-e500.dat: Remove.
2077 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
2078 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
2079 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
2080 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
2081 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
2082
2083 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2084
2085 * thread.c (delete_thread): Call observer_notify_thread_exit.
2086 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
2087 thread_exit observer.
2088 (mi_thread_exit): New.
2089
2090 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2091
2092 * breakpoint.c (create_exception_catchpoint): Remove prototype
2093 for already deleted function.
2094 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
2095 * frame.h (show_stack_frame): Remove prototype.
2096 * stack.c (show_stack_frame): Remove empty, unused function.
2097 * source.c (symtab_to_fullname, print_source_lines): Small fix
2098 in comment.
2099 * value.c (show_values): Update comments to mention "show values"
2100 command instead of "info history".
2101
2102 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2103
2104 * linespec.c: Include "target.h".
2105 (minsym_found): Handle minimal symbols pointing to function
2106 descriptors. Use find_function_start_pc.
2107 * minsyms.c (msymbol_objfile): New function.
2108 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
2109 to function descriptors.
2110 * symtab.c (fixup_section): Only use minimal symbol at the same
2111 address to determine section of a symbol.
2112 (find_function_start_pc): New function.
2113 (find_function_start_sal): Use it.
2114 * symtab.h (msymbol_objfile): Add prototype.
2115 (find_function_start_pc): Likewise.
2116 * value.c: Include "objfiles.h".
2117 (value_fn_field): Handle minimal symbols pointing to function
2118 descriptors.
2119 * Makefile.in (linespec.o): Update dependencies.
2120 (value.o): Likewise.
2121
2122 2008-05-02 Joel Brobecker <brobecker@adacore.com>
2123
2124 * ada-lang.c (unwrap_value): Handle the case where the "F" field
2125 inside a PAD type is a bitfield.
2126
2127 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2128
2129 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
2130 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2131 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2132 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
2133 Allow typedefs when checking for function pointer arguments.
2134 Right-align small structs passed on the stack.
2135 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
2136 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2137 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2138
2139 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2140
2141 * Makefile.in (arm-tdep.o): Update.
2142 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
2143 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
2144 (arm_pc_is_thumb): Use mapping symbols.
2145 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
2146 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
2147 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
2148 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
2149 * gdbarch.sh: Add record_special_symbol.
2150 * gdbarch.c, gdbarch.h: Regenerated.
2151 * objfiles.c (struct objfile_data): Add cleanup member.
2152 (register_objfile_data_with_cleanup): New function, from
2153 register_objfile_data.
2154 (register_objfile_data): Use it.
2155 (objfile_free_data): Call clear_objfile_data.
2156 (clear_objfile_data): Call cleanup functions.
2157 * objfiles.h (register_objfile_data_with_cleanup): Declare.
2158
2159 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2160
2161 * objfiles.c (init_entry_point_info): Handle shared libraries.
2162
2163 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2164
2165 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
2166 lowest_pc.
2167
2168 2008-05-02 Jim Blandy <jimb@codesourcery.com>
2169 Pedro Alves <pedro@codesourcery.com>
2170
2171 Implement displaced stepping.
2172
2173 * gdbarch.sh (max_insn_length): New 'variable'.
2174 (displaced_step_copy, displaced_step_fixup)
2175 (displaced_step_free_closure, displaced_step_location): New
2176 functions.
2177 (struct displaced_step_closure): Add forward declaration.
2178 * gdbarch.c, gdbarch.h: Regenerated.
2179
2180 * arch-utils.c: #include "objfiles.h".
2181 (simple_displaced_step_copy_insn)
2182 (simple_displaced_step_free_closure)
2183 (displaced_step_at_entry_point): New functions.
2184 * arch-utils.h (simple_displaced_step_copy_insn)
2185 (simple_displaced_step_free_closure)
2186 (displaced_step_at_entry_point): New prototypes.
2187
2188 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
2189 (I386_MAX_MATCHED_INSN_LEN): ... this.
2190 (i386_absolute_jmp_p, i386_absolute_call_p)
2191 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
2192 (i386_displaced_step_fixup): New functions.
2193 (struct i386_insn, i386_match_insn): Update.
2194 (i386_gdbarch_init): Set gdbarch_max_insn_length.
2195 * i386-tdep.h (I386_MAX_INSN_LEN): New.
2196 (i386_displaced_step_fixup): New prototype.
2197 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
2198 Register gdbarch_displaced_step_copy,
2199 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
2200 and gdbarch_displaced_step_location functions.
2201
2202 * infrun.c (debug_displaced): New variable.
2203 (show_debug_displaced): New function.
2204 (struct displaced_step_request): New struct.
2205 (displaced_step_request_queue, displaced_step_ptid)
2206 (displaced_step_gdbarch, displaced_step_closure)
2207 (displaced_step_original, displaced_step_copy)
2208 (displaced_step_saved_copy, can_use_displaced_stepping): New
2209 variables.
2210 (show_can_use_displaced_stepping, use_displaced_stepping)
2211 (displaced_step_clear, cleanup_displaced_step_closure)
2212 (displaced_step_dump_bytes, displaced_step_prepare)
2213 (displaced_step_clear_cleanup, write_memory_ptid)
2214 (displaced_step_fixup): New functions.
2215 (resume): Call displaced_step_prepare.
2216 (proceed): Call read_pc once, and remember the value. If using
2217 displaced stepping, don't remove breakpoints.
2218 (handle_inferior_event): Call displaced_step_fixup. Add some
2219 debugging output. When we try to step over a breakpoint, but get
2220 a signal to deliver to the thread instead, ensure the step-resume
2221 breakpoint is actually inserted. If a thread hop is needed, and
2222 displaced stepping is enabled, don't remove breakpoints.
2223 (init_wait_for_inferior): Call displaced_step_clear.
2224 (_initialize_infrun): Add "set debug displaced" command. Add
2225 "maint set can-use-displaced-stepping" command. Clear
2226 displaced_step_ptid.
2227 * inferior.h (debug_displaced): Declare variable.
2228 (displaced_step_dump_bytes): Declare function.
2229
2230 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
2231 dependencies.
2232
2233 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2234
2235 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
2236 (arm_force_mode_string, arm_show_fallback_mode)
2237 (arm_show_force_mode): New.
2238 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
2239 arm_frame_is_thumb.
2240 (_initialize_arm_tdep): Add "set arm fallback-mode"
2241 and "set arm force-mode".
2242 * NEWS: Document new commands.
2243
2244 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
2245
2246 * main.h (batch_silent): Declare.
2247 * event-top.c: Include main.h.
2248 (gdb_setup_readline): Remove extern batch_silent declaration.
2249 * infrun.c (normal_stop): Don't print source location when running in
2250 --batch-silent mode.
2251 * Makefile.in (event-top.o): Add main.h dependency.
2252
2253 2008-05-02 Andreas Schwab <schwab@suse.de>
2254
2255 * target.h (struct target_ops): Add
2256 to_watchpoint_addr_within_range.
2257 (target_watchpoint_addr_within_range): New function.
2258 * target.c (update_current_target): Inherit
2259 to_watchpoint_addr_within_range, defaulting to
2260 default_watchpoint_addr_within_range.
2261 (default_watchpoint_addr_within_range): New function.
2262 (debug_to_watchpoint_addr_within_range): New function.
2263 (setup_target_debug): Set to_watchpoint_addr_within_range.
2264 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
2265 New function.
2266 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
2267 * breakpoint.c (watchpoints_triggered): Use
2268 target_watchpoint_addr_within_range.
2269
2270 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2271
2272 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
2273 (i[34567]86-*-dicos*, x86_64-*-dicos*):
2274 Set gdb_osabi to GDB_OSABI_DICOS.
2275
2276 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
2277 * osabi.c (gdb_osabi_name): Add "DICOS".
2278
2279 * i386-dicos-tdep.c: New file.
2280
2281 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
2282 (ALLDEPFILES): Add i386-dicos-tdep.c.
2283 (i386-dicos-tdep.o): New rule.
2284
2285 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2286
2287 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
2288 and register the fork's PTID as a thread.
2289
2290 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2291
2292 PR gdb/1665
2293 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
2294 assign its value to the breakpoint created.
2295 (create_breakpoints): Add breakpoint_ops argument and pass it
2296 to create_breakpoint call.
2297 (break_command_really): Add breakpoint_ops argument and pass/assign
2298 appropriately.
2299 (break_command_1): Pass NULL as ops argument.
2300 (set_breakpoint): Pass NULL as ops argument.
2301 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
2302 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
2303 catch and throw catchpoints.
2304
2305 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2306
2307 PR gdb/2343
2308 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
2309 translate signal numeric value from the target to GDB's enum
2310 target_signal.
2311 * gdbarch.c, gdbarch.h: Regenerated.
2312 * gdbarch.sh: Added two new functions target_signal_from_host and
2313 target_signal_to_host.
2314 * target.h (default_target_signal_from_host,
2315 default_target_signal_to_host): New functions - declarations.
2316 * signals/signals.c (struct gdbarch): New declaration.
2317 (default_target_signal_to_host, default_target_signal_from_host): New
2318 functions.
2319
2320 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2321 Pedro Alves <pedro@codesourcery.com>
2322
2323 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
2324 Johnston <jjohnstn@redhat.com>.
2325
2326 * NEWS: Mention attach to stopped process fix.
2327 * infcmd.c (detach_command, disconnect_command): Discard the thread
2328 list.
2329 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
2330 attaching. Use signal_stop_state.
2331 (signal_stop_state): Check stop_soon.
2332 * linux-nat.c (kill_lwp): Declare earlier.
2333 (pid_is_stopped, linux_nat_post_attach_wait): New.
2334 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
2335 comments.
2336 (linux_nat_attach): Use linux_nat_post_attach_wait.
2337 (detach_callback, linux_nat_detach): Improve handling for signalled
2338 processes.
2339 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
2340 from the process ID.
2341 * Makefile.in (infcmd.o): Update.
2342
2343 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2344
2345 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
2346 * arm-tdep.c (arm_frame_is_thumb): New.
2347 (arm_pc_is_thumb): Clarify comment.
2348 (thumb_analyze_prologue): Remove PC special case.
2349 (thumb_scan_prologue): Take a block_addr argument. Use it for
2350 find_pc_partial_function. Remove unused variables.
2351 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
2352 for find_pc_partial_function. Remove PC special case.
2353 (arm_prologue_prev_register): Add special handling for PC and CPSR.
2354 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
2355 (arm_get_next_pc): Use arm_frame_is_thumb.
2356 (arm_write_pc): Use CPSR_T instead of 0x20.
2357 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
2358 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
2359 (CPSR_T): Define.
2360 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
2361 DWARF2_FRAME_REG_FN.
2362 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2363 DWARF2_FRAME_REG_FN.
2364 (struct dwarf2_frame_state_reg): Add FN to loc union.
2365
2366 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
2367
2368 * exec.c (print_section_info): Add missing '\n'.
2369
2370 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
2371
2372 * thread.c (add_thread): Move observer call to ...
2373 (add_thread_silent): ... here.
2374
2375 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2376
2377 * rs6000-tdep.c: Update for unwinder changes.
2378 * ppcobsd-tdep.c: Likewise.
2379
2380 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2381
2382 * s390-tdep.c: Update for unwinder changes.
2383
2384 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2385
2386 * spu-tdep.c: Update for unwinder changes.
2387
2388 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2389
2390 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
2391 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
2392 sparc64-linux-tdep.c: Update for unwinder changes.
2393
2394 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2395
2396 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
2397 for unwinder changes.
2398 * mips-tdep.c: Likewise.
2399 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
2400 raw one.
2401
2402 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2403
2404 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
2405 unwinder changes.
2406
2407 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2408
2409 Update i386 and amd64 ports for unwinder changes.
2410
2411 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
2412 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
2413 (amd64_frame_unwind): Use default_frame_sniffer.
2414 (amd64_frame_sniffer): Delete.
2415 (amd64_sigtramp_frame_cache): Expect this_frame.
2416 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2417 (amd64_sigtramp_frame_sniffer): Update signature.
2418 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2419 (amd64_frame_base_address): Expect this_frame.
2420 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2421 this_frame.
2422 (amd64_init_abi): Use set_gdbarch_dummy_id and
2423 frame_unwind_append_unwinder.
2424 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2425 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2426 (i386_frame_unwind): Use default_frame_sniffer.
2427 (i386_frame_sniffer): Delete.
2428 (i386_sigtramp_frame_cache): Expect this_frame.
2429 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2430 (i386_sigtramp_frame_sniffer): Update signature.
2431 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2432 (i386_frame_base_address): Update signature.
2433 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2434 (i386_push_dummy_call): Update comment.
2435 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2436 Expect this_frame.
2437 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2438 and frame_unwind_append_unwinder.
2439 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2440 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2441 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2442 i386nbsd-tdep.c: Update for unwinder changes.
2443
2444 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2445
2446 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2447 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2448 this_frame.
2449 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2450 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2451 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2452 signature.
2453 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2454 this_frame.
2455 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2456 Update signature.
2457 * tramp-frame.h (struct tramp_frame): Update signature of init.
2458 * Makefile.in (trad-frame.o): Update.
2459
2460 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2461
2462 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2463 (execute_stack_op): Put this_frame in the baton.
2464 (execute_cfa_program): Take this_frame.
2465 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
2466 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
2467 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
2468 (dwarf2_frame_this_id): Adjust to work on this_frame.
2469 (dwarf2_signal_frame_this_id): Delete.
2470 (dwarf2_frame_prev_register): Update signature. Use new frame
2471 unwind methods.
2472 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
2473 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
2474 dwarf2_frame_sniffer.
2475 (dwarf2_append_unwinders): New.
2476 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
2477 this_frame.
2478 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
2479 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
2480 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
2481 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
2482 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2483 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2484 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2485 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
2486 (dwarf2_append_unwinders): Declare.
2487 (dwarf2_frame_base_sniffer): Update declaration.
2488 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
2489 this_frame.
2490
2491 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2492
2493 Convert frame unwinders to use the current frame and
2494 "struct value".
2495
2496 * frame.c (frame_debug): Make global.
2497 (get_frame_id): Pass this frame to unwinder routines.
2498 (frame_pc_unwind): Remove unused unwind->prev_pc support.
2499 (do_frame_register_read): Do not discard the return value of
2500 frame_register_read.
2501 (frame_register_unwind): Remove debug messages. Use
2502 frame_unwind_register_value.
2503 (frame_unwind_register_value, get_frame_register_value): New
2504 functions.
2505 (create_new_frame, get_frame_base_address, get_frame_locals_address)
2506 (get_frame_args_address, get_frame_type): Pass this frame to
2507 unwinder routines.
2508 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
2509 functions.
2510 * frame.h: Update comments.
2511 (frame_debug, frame_unwind_register_value, get_frame_register_value)
2512 (frame_prepare_for_sniffer): Declare.
2513 * frame-unwind.h: Update comments and parameter names.
2514 (default_frame_sniffer): Declare.
2515 (frame_prev_register_ftype): Return a struct value *.
2516 (struct frame_unwind): Remove prev_pc member.
2517 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
2518 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
2519 (frame_unwind_got_register, frame_unwind_got_memory)
2520 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
2521 * frame-base.h: Update comments and parameter names.
2522 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
2523 if necessary. Add debugging output.
2524 * sentinel-frame.c (sentinel_frame_prev_register)
2525 (sentinel_frame_this_id): Update for new signature.
2526 (sentinel_frame_prev_pc): Delete.
2527 (sentinel_frame_unwinder): Remove prev_pc.
2528 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
2529 prev_pc.
2530 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
2531 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
2532 (frame_unwind_append_sniffer): Delete.
2533 (frame_unwind_append_unwinder): New function.
2534 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
2535 from unwinders. Use frame_prepare_for_sniffer.
2536 (default_frame_sniffer, frame_unwind_got_optimized)
2537 (frame_unwind_got_register, frame_unwind_got_memory)
2538 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
2539 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
2540 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
2541 signature.
2542 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
2543 * gdbarch.c, gdbarch.c: Regenerated.
2544 * frame-base.c (default_frame_base_address)
2545 (default_frame_locals_address, default_frame_args_address): Update
2546 for new signature.
2547 (frame_base_find_by_frame): Pass this frame to unwinder routines.
2548 * infcall.c (call_function_by_hand): Update comments.
2549 * Makefile.in (frame-unwind.o): Update dependencies.
2550
2551 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2552
2553 * ada-lang.c (ada_value_primitive_packed_val): Only check
2554 value_lazy for memory lvals.
2555 * findvar.c (value_of_register_lazy): New function.
2556 (locate_var_value): Only check value_lazy for memory lvals.
2557 * valarith.c (value_subscripted_rvalue): Likewise.
2558 * valops.c (value_fetch_lazy): Handle both memory and register
2559 lvals.
2560 (search_struct_field, value_slice): Only check value_lazy for memory
2561 lvals.
2562 * value.c (struct value): Update comment for lazy.
2563 (value_primitive_field): Only check value_lazy for memory lvals.
2564 * value.h (value_lazy): Update comment.
2565 (value_of_register_lazy): Declare.
2566
2567 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2568
2569 * corefile.c (reopen_exec_file): Close any open files.
2570
2571 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2572
2573 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
2574 show_memory_breakpoints to 1 while reading the instruction bundle.
2575
2576 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2577
2578 * gdbarch.sh: Document the return_value method. Explain that
2579 the FUNCTYPE parameter might be NULL.
2580 * gdbarch.h: Regenerated.
2581 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
2582 type when calling using_struct_return, as this is unnecessary
2583 on this target.
2584
2585 2008-04-28 Joel Brobecker <brobecker@adacore.com>
2586
2587 * terminal.h (create_tty_session): Fix return type.
2588
2589 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
2590
2591 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
2592
2593 2008-04-26 Joel Brobecker <brobecker@adacore.com>
2594
2595 * breakpoint.c (condition_command, commands_from_control_command)
2596 (break_command_really): Minor reformatting.
2597
2598 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2599
2600 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
2601
2602 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2603
2604 * amd64-tdep.c (amd64_get_longjmp_target): New.
2605 (amd64_init_abi): Register amd64_get_longjmp_target as
2606 gdbarch_get_longjmp_target callback.
2607 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
2608
2609 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2610
2611 * breakpoint.h (enum bpstat_what_main_action): Delete
2612 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2613
2614 * breakpoint.c (clrs): Delete.
2615 (bpstat_what): Update table.
2616
2617 * infrun.c (handle_inferior_event): Remove
2618 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2619
2620 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2621
2622 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2623 Adjust all prototypes using mi_cmd_args_ftype to use
2624 mi_cmd_argv_ftype.
2625 (struct mi_cmd): Remove the args_func field.
2626 * mi/mi-cmds.c: Don't provide value for the args_func field.
2627 * mi/mi-main.c (mi_execute_async_cli_command)
2628 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2629 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2630 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2631 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2632 (mi_cmd_target_download): Adjust.
2633 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2634 (mi_cmd_execute): Do not check for args_func.
2635 (mi_execute_async_cli_command): Adjust.
2636 * mi/mi-parse.c: Don't check for args_func.
2637
2638 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2639
2640 * breakpoint.c (bpstat_check_location)
2641 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2642 New, extracted from bpstat_stop_status.
2643 (bpstat_stop_status): Use the above.
2644
2645 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2646
2647 * mi/mi-main.c (last_async_command): Rename to current_token.
2648 (previous_async_command): Remove.
2649 (mi_cmd_gdb_exit): Adjust.
2650 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2651 (mi_cmd_target_select): Adjust.
2652 (mi_cmd_execute): Don't set previous_async_command. Free token
2653 here even in async mode.
2654 (mi_execute_async_cli_command): Adjust.
2655 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
2656 token.
2657 (mi_load_progress): Adjust.
2658
2659 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2660
2661 * infcmd.c (step_1_continuation): Always disable longjmp
2662 breakpoint if we're not going to do another step.
2663
2664 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2665
2666 exec_cleanup murder.
2667 * breakpoint.c (until_break_command_continuation): Add
2668 the 'error' parameter. Directly delete the breakoint as
2669 opposed to running cleanups.
2670 (until_break_command): Install continuation only
2671 after starting the target. Don't use exec cleanups,
2672 use ordinary cleanups. Discard cleanups is successfully
2673 started the target in async mode.
2674 (make_cleanup_delete_breakpoint): Remove.
2675 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2676 declaration.
2677 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2678 declarations.
2679 (struct continations): Add the 'error' parameter to the
2680 continuation_hook field.
2681 (add_continuation, do_all_continuations)
2682 (add_intermediate_continuation)
2683 (do_all_intermediate_continuations): Add the 'error' parameter.
2684 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2685 * inf-loop.c (inferior_event_handler): Instead of calling
2686 discard_all_continuations, use do_all_continuations with 1 as
2687 'error' parameter. Pass 0 as 'error' parameter in existing uses
2688 of discard_all_continuations.
2689 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
2690 cleanups.
2691 (step_once): Install continuation only after resuming the target.
2692 (step_1_continuation): Disable longjmp breakpoint on error.
2693 (finish_command_continuation): Add the error parameter. Delete
2694 the finish breakpoint directly, do not use cleanups.
2695 (finish_command): Do not use exec_cleanups. Always setup
2696 continuation. For sync case, immediately run them.
2697 (attach_command_continuation): Add the error parameter.
2698 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2699 remove step_resume_breakpoint -- adjust delete it directly.
2700 * interps.c (interp_set): Adjust call to do_all_continations.
2701 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2702 do exec cleanups.
2703 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2704 cleanups.
2705 (mi_cmd_execute): Do not use exec_cleanup.
2706 (mi_execute_async_cli_command): Simplify the string concatenation
2707 logic. Do no use exec cleanup.
2708 (mi_exec_async_cli_cmd_continuation): New parameter error.
2709 Free last_async_command.
2710 * top.c (command_line_handler_continuation): New parameter error.
2711 * utils.c (exec_cleanup_chain, make_exec_cleanup)
2712 (do_exec_cleanups): Remove.
2713 (add_continuation, do_all_continations)
2714 (add_intermediate_continuation)
2715 (do_all_intermediate_continuations): New parameter error.
2716
2717 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2718
2719 * breakpoint.h (bp_location_p): New typedef.
2720 Register a vector of bp_location_p.
2721 * breakpoint.c (always_inserted_mode)
2722 (show_always_inserted_mode): New.
2723 (unlink_locations_from_global_list): Remove.
2724 (update_global_location_list)
2725 (update_global_location_list_nothrow): New.
2726 (update_watchpoint): Don't free locations.
2727 (should_insert_location): New.
2728 (insert_bp_location): Use should_insert_location.
2729 (insert_breakpoint_locations): Copied from
2730 insert_breakpoints.
2731 (insert_breakpoint): Use insert_breakpoint_locations.
2732 (bpstat_stop_status): Call update_global_location_list
2733 when disabling breakpoint.
2734 (allocate_bp_location): Don't add to bp_location_chain.
2735 (set_raw_breakpoint)
2736 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2737 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2738 (enable_overlay_breakpoints, disable_overlay_breakpoints)
2739 (set_longjmp_resume_breakpoint)
2740 (enable_watchpoints_after_interactive_call_stop)
2741 (disable_watchpoints_before_interactive_call_start)
2742 (create_internal_breakpoint)
2743 (create_fork_vfork_event_catchpoint)
2744 (create_exec_event_catchpoint, set_momentary_breakpoint)
2745 (create_breakpoints, break_command_1, watch_command_1)
2746 (create_exception_catchpoint)
2747 (handle_gnu_v3_exceptions)
2748 (disable_breakpoint, breakpoint_re_set_one)
2749 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2750 (create_ada_exception_breakpoint): : Don't call check_duplicates.
2751 Call update_global_location_list.
2752 (delete_breakpoint): Don't remove locations and don't
2753 try to reinsert them. Call update_global_location_list.
2754 (update_breakpoint_locations): Likewise.
2755 (restore_always_inserted_mode): New.
2756 (update_breakpoints_after_exec): Temporary disable
2757 always inserted mode.
2758 * Makefile.in: Update dependencies.
2759
2760 * infrun.c (proceed): Remove breakpoints while stepping
2761 over breakpoint.
2762 (handle_inferior_event): Don't remove or insert
2763 breakpoints.
2764 * linux-fork.c (checkpoint_command): Remove breakpoints
2765 before fork and insert after.
2766 (linux_fork_context): Remove breakpoints before switch
2767 and insert after.
2768 * target.c (target_disconnect, target_detach): Remove
2769 breakpoints from target.
2770
2771
2772 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2773
2774 * breakpoint.c (print_one_breakpoint_location): In MI
2775 mode, report the location string the breakpoint was
2776 originally created with.
2777
2778 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
2779
2780 * Makefile.in (xtensa-tdep.o): Update dependencies.
2781 * configure.tgt (xtensa*): Update dependencies.
2782 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
2783 Local variable areg renamed to arreg.
2784 (areg_number): New function.
2785 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2786 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
2787 replaced by arreg_number.
2788 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
2789 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
2790 (xtensa_scan_prologue): New function.
2791 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
2792 when ENTRY instraction hasn't been executed yet. Get the frame pointer
2793 value based on prologue analysis. Fix the bugs preventing WS and
2794 AR4-AR7/A11 registers from getting right values for intermediate frames,
2795 whose registers have been already spilled.
2796 (xtensa_frame_prev_register): Fix WS register value. Use are_number
2797 and arreg_number appropriately.
2798 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2799 svr4_ilp32_fetch_link_map_offsets.
2800
2801 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
2802
2803 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
2804 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
2805
2806 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2807
2808 * acinclude.m4: Add override.m4.
2809 * configure: Regenerate.
2810
2811 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 * ada-lang.c (get_selections): Variable PROMPT made non-const and
2814 initialized with a trailing space now. Use PROMPT_ARG of
2815 COMMAND_LINE_INPUT instead of printing it ourselves.
2816
2817 2008-04-22 Joel Brobecker <brobecker@adacore.com>
2818
2819 * NEWS: Document support for 64-bit core file.
2820
2821 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
2822
2823 * NEWS: Add information on calling convention and new SH CLI options.
2824
2825 * sh-tdep.c (sh_cc_gcc): New static string.
2826 (sh_cc_renesas): Ditto.
2827 (sh_cc_enum): New static string array.
2828 (sh_active_calling_convention): New static string pointer denoting
2829 active user chosen ABI.
2830 (sh_is_renesas_calling_convention): New function to return function
2831 specific ABI, or user choice if necessary.
2832 (sh_use_struct_convention): Rename first argument and turn around its
2833 meaning. Check for renesas ABI and return accordingly.
2834 (sh_use_struct_convention_nofpu): New function.
2835 (sh_next_flt_argreg): Get function type as third parameter. Check
2836 for renesas ABI and choose floating registers accordingly.
2837 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
2838 struct return slot accordingly.
2839 (sh_push_dummy_call_nofpu): Ditto.
2840 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
2841 Evaluate ABI and give to sh_use_struct_convention_nofpu.
2842 (sh_return_value_fpu): Evaluate ABI and give to
2843 sh_use_struct_convention.
2844 (show_sh_command): New function.
2845 (set_sh_command): Ditto.
2846 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
2847 CLI command.
2848
2849 * gdbarch.sh (return_value): Add func_type argument.
2850 * gdbarch.c: Regenerate.
2851 * gdbarch.h: Ditto.
2852 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
2853 val_type so as not to collide with value_type function. Call
2854 using_struct_return with additional function type argument.
2855 * infcall.c (call_function_by_hand): Call using_struct_return and
2856 gdbarch_return_value with additional function type argument.
2857 * infcmd.c (print_return_value): Take addition func_type argument.
2858 Call gdbarch_return_value with additional function type argument.
2859 (finish_command_continuation): Call print_return_value with additional
2860 function type argument.
2861 (finish_command): Ditto.
2862 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
2863 additional function type argument.
2864 * stack.c (return_command): Call using_struct_return and
2865 gdbarch_return_value with additional function type argument.
2866 * value.c (using_struct_return): Take additional function type argument.
2867 * value.h (using_struct_return): Accommodate declaration.
2868 * alpha-tdep.c (alpha_return_value): Add func_type argument.
2869 * amd64-tdep.c (amd64_return_value): Ditto.
2870 * arm-tdep.c (arm_return_value): Ditto.
2871 * avr-tdep.c (avr_return_value): Ditto.
2872 * cris-tdep.c (cris_return_value): Ditto.
2873 * frv-tdep.c (frv_return_value): Ditto.
2874 * h8300-tdep.c (h8300_return_value): Ditto.
2875 (h8300h_return_value): Ditto.
2876 * hppa-tdep.c (hppa32_return_value): Ditto.
2877 (hppa64_return_value): Ditto.
2878 * i386-tdep.c (i386_return_value): Ditto.
2879 * ia64-tdep.c (ia64_return_value): Ditto.
2880 * iq2000-tdep.c (iq2000_return_value): Ditto.
2881 * m32c-tdep.c (m32c_return_value): Ditto.
2882 * m32r-tdep.c (m32r_return_value): Ditto.
2883 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
2884 * m68k-tdep.c (m68k_return_value): Ditto.
2885 (m68k_svr4_return_value): Ditto.
2886 * m88k-tdep.c (m88k_return_value): Ditto.
2887 * mep-tdep.c (mep_return_value): Ditto.
2888 * mips-tdep.c (mips_eabi_return_value): Ditto.
2889 (mips_n32n64_return_value): Ditto.
2890 (mips_o32_return_value): Ditto.
2891 (mips_o64_return_value): Ditto.
2892 * mn10300-tdep.c (mn10300_return_value): Ditto.
2893 * mt-tdep.c (mt_return_value): Ditto.
2894 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
2895 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
2896 (ppc_sysv_abi_broken_return_value): Ditto.
2897 (ppc64_sysv_abi_return_value): Ditto.
2898 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
2899 (ppc_sysv_abi_broken_return_value): Ditto.
2900 (ppc64_sysv_abi_return_value): Ditto.
2901 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
2902 * rs6000-tdep.c (rs6000_return_value): Ditto.
2903 * s390-tdep.c (s390_return_value): Ditto.
2904 * score-tdep.c (score_return_value): Ditto.
2905 * sh-tdep.c (sh_return_value_nofpu): Ditto.
2906 (sh_return_value_fpu): Ditto.
2907 * sh64-tdep.c (sh64_return_value): Ditto.
2908 * sparc-tdep.c (sparc32_return_value): Ditto.
2909 * sparc64-tdep.c (sparc64_return_value): Ditto.
2910 * spu-tdep.c (spu_return_value): Ditto.
2911 * v850-tdep.c (v850_return_value): Ditto.
2912 * vax-tdep.c (vax_return_value): Ditto.
2913 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
2914 * xtensa-tdep.c (xtensa_return_value): Ditto.
2915
2916 * gdbtypes.h (struct type): Add calling_convention member.
2917 * dwarf2read.c (read_subroutine_type): Add calling convention read
2918 from DW_AT_calling_convention attribute to function type.
2919
2920 2008-04-22 Markus Deuling <deuling@de.ibm.com>
2921
2922 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
2923 multi_f77_subscript to support values from registers.
2924 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
2925 * value.h (value_subscripted_rvalue): Add prototype.
2926
2927 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
2928 Fix output.
2929 * f-valprint.c (f_val_print): Likewise.
2930
2931 2008-04-21 Craig Silverstein <csilvers@google.com>
2932
2933 * dwarf2read.c (zlib_decompress_section): Define abfd in the
2934 !HAVE_ZLIB_H case.
2935
2936 2008-04-21 Pedro Alves <pedro@codesourcery.com>
2937
2938 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
2939 section is not a code section.
2940
2941 2008-04-19 Craig Silverstein <csilvers@google.com>
2942
2943 * NEWS: Add information on compressed debug sections.
2944
2945 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
2946
2947 * mi/mi-cmd-var.c (varobj_update_one): Print new
2948 value for variable objects that changed type.
2949
2950 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
2951
2952 * varobj.c (varobj_invalidate): Don't touch floating
2953 varobjs.
2954
2955 2008-04-19 Mark Kettenis <kettenis@gnu.org>
2956
2957 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
2958 (multiple_symbols_cancel): Remove extra const.
2959 * symtab.h: Likewise.
2960
2961 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
2962
2963 * interps.c (top_level_interpreter): Rename static variable...
2964 (top_level_interpreter_ptr): ...to this.
2965 (top_level_interpreter): New function.
2966
2967 * interps.h: New extern for top_level_interpreter.
2968
2969 * linespec.c: Include interps.h and mi/mi-cmds.h.
2970 (decode_line_2): When using MI, always set all breakpoints in menu.
2971
2972 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
2973
2974 2008-04-18 Craig Silverstein <csilvers@google.com>
2975
2976 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
2977 * config.in, configure: Regenerate.
2978 * dwarf2read.c: Include zlib.h if present.
2979 Modified *_SECTION macros.
2980 (section_is_p): New.
2981 (dwarf2_locate_sections): Use section_is_p instead of strcmp
2982 (dwarf2_resize_section): New.
2983 to determine whether a given section has a given name.
2984 (zlib_decompress_section): New.
2985 (dwarf2_read_section): Read the compressed section if present
2986 in the binary.
2987 * MAINTAINERS: Added myself to section Write After Approval.
2988
2989 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
2990
2991 * defs.h (exec_set_section_offsets): Remove prototype.
2992 * exec.c (exec_set_section_offsets): Remove function.
2993
2994 2008-04-18 Joel Brobecker <brobecker@adacore.com>
2995
2996 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
2997 in the search for the matching symbol.
2998
2999 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
3000
3001 * breakpoint.c (update_watchpoint): Always reparse
3002 condition.
3003
3004 2008-04-17 Joel Brobecker <brobecker@adacore.com>
3005
3006 * breakpoint.c (print_one_breakpoint_location): Make sure to print
3007 the breakpoint address only once.
3008
3009 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
3010
3011 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
3012 rather than a hard-coded architecture, for xcoff executables.
3013
3014 2008-04-17 Doug Evans <dje@google.com>
3015
3016 * buildsym.c (watch_main_source_file_lossage): New fn.
3017 (end_symtab): Call it.
3018
3019 * source.c (find_and_open_source): Add some comments clarifying
3020 handling of FULLNAME argument. Make static. Remove pointless
3021 xstrdup/xfree.
3022
3023 2008-04-17 Pedro Alves <pedro@codesourcery.com>
3024
3025 * inf-loop.c (inferior_event_handler): Also run the intermediate
3026 continuations in the INF_EXEC_COMPLETE case.
3027
3028 2008-04-16 Tom Tromey <tromey@redhat.com>
3029
3030 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
3031 (set_cmd_async_ok, get_cmd_async_ok): Declare.
3032 * cli/cli-decode.c (set_cmd_async_ok): New function.
3033 (get_cmd_async_ok): New function.
3034 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
3035 "show" as async-ok.
3036 * top.c (execute_command): Use get_cmd_async_ok.
3037 * infcmd.c: Include cli/cli-decode.h.
3038 (_initialize_infcmd): Mark "interrupt" as async-ok.
3039 * Makefile.in (infcmd.o): Depend on cli_decode_h.
3040
3041 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
3042
3043 PR gdb/2445
3044 * exec.c: Correct "arch-utils.h" include.
3045
3046 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
3047
3048 PR gdb/2424
3049 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
3050 to allow printing to 'see' real reason of stop. This fixes PR 2424.
3051 * breakpoint.c (bpdisp_texst): New function. The function takes over
3052 the role of bpstats static array in print_one_breakpoint_location.
3053 (print_it_typical): Print "Temporary breakpoint" instead
3054 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
3055 protocols, print disp field.
3056 (print_one_breakpoint_location): Removed bpdisps static definition.
3057 Call new bpstat_text function to get value for 'disp' field.
3058 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
3059
3060 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
3061
3062 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
3063 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
3064 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
3065 * gnulib/Makefile.in: Regenerate.
3066
3067 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3068
3069 * Makefile.in (GNULIB_H): New. Trigger all-lib.
3070 (defs_h): Use $(GNULIB_H).
3071 (all-lib): Depend on gnulib/Makefile.
3072 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
3073 * config.in, gnulib/Makefile.in: Regenerated.
3074
3075 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3076
3077 * Makefile.in (LIBGNU, INCGNU): Define.
3078 (INTERNAL_CFLAGS_BASE): Add INCGNU.
3079 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
3080 (CLEANDIRS): New.
3081 ($(LIBGNU), all-lib): New rules.
3082 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
3083 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
3084 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
3085 * gnulib: New directory, from gnulib-tool.
3086 * configure, aclocal.m4: Regenerated.
3087
3088 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3089
3090 * linux-thread-db.c (have_threads_callback): Check thread->private.
3091
3092 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
3093 Vladimir Prus <vladimir@codesourcery.com>
3094
3095 Fix @-varobjs.
3096 * varobj.c (value_of_root): Update the expression for
3097 floating varobjs.
3098 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
3099 report that.
3100
3101 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
3102
3103 * mi/mi-cmd-var.c: Include "mi-getopt.h".
3104 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
3105 (mi_cmd_var_set_format): Use new mi_parse_format.
3106 (mi_cmd_var_evaluate_expression): Support for -f option to specify
3107 format.
3108 * Makefile.in (mi-cmd-var.o): Update dependencies.
3109
3110 * varobj.h (varobj_get_formatted_value): Declare.
3111 * varobj.c (my_value_of_variable): Added format parameter.
3112 (cplus_value_of_variable): Likewise.
3113 (java_value_of_variable): Likewise.
3114 (c_value_of_variable): Likewise. Evaluate expression based
3115 on format parameter.
3116 (struct language_specific): Add format parameter to function member
3117 *value_of_variable.
3118 (varobj_get_formatted_value): New.
3119 (varobj_get_value): Added format parameter to method call.
3120
3121 2008-04-08 Joel Brobecker <brobecker@adacore.com>
3122
3123 * stabsread.c (cleanup_undefined_types_noname): Manually set the
3124 instance flags of the undefined type before calling replace_type.
3125
3126 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
3127
3128 * target.h (enum strata): Remove the download_stratum.
3129
3130 2008-04-07 Doug Evans <dje@google.com>
3131
3132 * buildsym.h (last_source_file): Add dwarf info to comment.
3133 (last_source_start_addr): Ditto.
3134
3135 2008-04-07 Pedro Alves <pedro@codesourcery.com>
3136
3137 * alphanbsd-tdep.c: Include "target.h".
3138 * mn10300-tdep.c: Include "target.h".
3139 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
3140
3141 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
3142
3143 Fix breakpoint condition that use member variables.
3144 * valops.c (check_field): Remove.
3145 (check_field_in): Rename to check_field.
3146 (value_of_this): Use la_name_of_this.
3147 * value.h (check_field): Adjust prototype.
3148
3149 * language.h (la_value_of_this): Rename to la_name_of_this.
3150 * language.c (unknown_language_defn): Specify "this" for
3151 name_of_this.
3152 (auto_language_defn): Likewise.
3153 (local_language_defn): Likewise.
3154 * ada-lang.c (ada_language_defn): Adjust comment.
3155 * c-lang.c (c_language_defn): Adjust comment.
3156 (cplus_language_defn): Specify "this" for name_of_this.
3157 (asm_language_defn): Adjust comment.
3158 (minimal_language_defn): Adjust comment.
3159 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
3160 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
3161 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
3162 * objc-lang.c (objc_language_defn): Specify "self" for
3163 name_of_this.
3164 * p-lang.c (pascal_language_defn): Specify "this" for
3165 name_of_this.
3166 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
3167
3168 * symtab.c (lookup_symbol_aux): Lookup "this" in the
3169 proper scope, and check for field in type of "this", without
3170 trying to create a value.
3171
3172 2008-04-04 Pedro Alves <pedro@codesourcery.com>
3173
3174 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
3175 (mi_error_message): Delete declaration.
3176 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
3177 returning MI_CMD_ERROR.
3178 * mi/mi-main.c (mi_error_message): Delete.
3179 (mi_cmd_exec_interrupt):
3180 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3181 (mi_cmd_thread_info): Call error instead of returning
3182 MI_CMD_ERROR.
3183 (mi_cmd_data_list_register_values): Call error instead of
3184 returning MI_CMD_ERROR. Adapt to new get_register interface.
3185 (get_register): Change return typo to void. Call error instead of
3186 returning MI_CMD_ERROR.
3187 (mi_cmd_data_write_register_values): Call error instead of
3188 returning MI_CMD_ERROR.
3189 (mi_cmd_list_features): Return MI_CMD_DONE.
3190 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
3191 (mi_execute_command): Always print exceptions with -error.
3192
3193 2008-04-04 Joel Brobecker <brobecker@adacore.com>
3194
3195 * NEWS: Mention new commands set/show multiple-symbols.
3196
3197 2008-04-03 Joel Brobecker <brobecker@adacore.com>
3198
3199 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
3200 (multiple_symbols_cancel): New constants.
3201 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
3202 (multiple_symbols_select_mode): New function.
3203 (_initialize_symtab): Add new set/show multiple-symbols commands.
3204 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
3205 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
3206 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
3207 setting.
3208 * linespec.c (decode_line_2): Likewise.
3209
3210 2008-04-03 Doug Evans <dje@sebabeach.org>
3211
3212 * symtab.h (enum free_code): Delete free_contents, unused.
3213 * symmisc.c (free_symtab_block): Delete.
3214 (free_symtab, case free_code): Delete.
3215
3216 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3217
3218 * valops.c (value_cast_structs): New function. Cast related
3219 STRUCT types up/down and return cast value. The body of this
3220 function comes mostly from value_cast_pointers.
3221 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
3222 to value_cast_structs. Now value_cast_pointers needs only create
3223 appropriate reference after using value_cast_structs for actual
3224 casting.
3225 (value_cast): Handle references.
3226
3227 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
3228
3229 * MAINTAINERS: Added myself to section Write After Approval.
3230
3231 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3232
3233 * ia64-tdep.c (examine_prologue): Correct array access.
3234
3235 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3236
3237 * cp-support.c (first_component_command): Return if no arguments.
3238
3239 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
3240
3241 * ser-mingw.c (ser_windows_open): Open requested name.
3242
3243 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3244
3245 * MAINTAINERS: Added myself.
3246
3247 2008-03-28 Pedro Alves <pedro@codesourcery.com>
3248
3249 * target.c (find_default_run_target): Allow a NULL `do_mesg'
3250 parameter. If it is NULL, don't call error.
3251 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
3252 `do_mesg' parameter to find_default_run_target. If no target was
3253 found, return 0.
3254
3255 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3256
3257 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
3258 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
3259 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
3260 Delete.
3261 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
3262
3263 2008-03-27 Joel Brobecker <brobecker@adacore.com>
3264
3265 GDB 6.8 released.
3266
3267 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3268
3269 * features/Makefile (%.dat): Set xmltarget to the base filename
3270 of the XML source, without subdirectory.
3271 * regformats/rs6000/powerpc-32.dat: Regenerate.
3272 * regformats/rs6000/powerpc-64.dat: Regenerate.
3273 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3274
3275 2008-03-27 Markus Deuling <deuling@de.ibm.com>
3276
3277 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
3278 objfile arch.
3279
3280 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
3281
3282 * mi/mi-main.c (enum captured_mi_execute_command_actions):
3283 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
3284
3285 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3286
3287 * objfiles.h (struct objfile): New GDBARCH member.
3288 (get_objfile_arch): Add prototype.
3289 * objfiles.c: Include "arch-utils.h".
3290 (allocate_objfile): Look up gdbarch associated with bfd.
3291 (get_objfile_arch): New function.
3292 * Makefile (objfiles.o): Update dependencies.
3293
3294 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
3295 by objfile arch.
3296 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
3297 by frame arch.
3298 (locexpr_describe_location): Replace current_gdbarch by
3299 objfile arch.
3300 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
3301 (dwarf2_add_field): Likewise.
3302 (read_tag_pointer_type): Likewise.
3303 (read_base_type): Likewise.
3304 (new_symbol): Likewise.
3305
3306 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
3307 (decode_base_type, decode_function_type): Likewise.
3308 (coff_read_struct_type, coff_read_enum_type): Likewise.
3309 (coff_symtab_read): Replace current_gdbarch by objfile arch.
3310 (decode_base_type): Likewise.
3311 (coff_read_enum_type): Likewise.
3312 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
3313 (coff_read_enum_type): Likewise.
3314
3315 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
3316 (end_psymtab): Likewise.
3317 (process_one_symbol): Likewise.
3318
3319 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
3320 (parse_procedure): Likewise.
3321 (parse_partial_symbols): Likewise.
3322
3323 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
3324
3325 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
3326 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
3327 built-in types.
3328 (read_range_type): Replace current_gdbarch by objfile arch. Replace
3329 static range_index_type by built-in type.
3330 (read_one_struct_field): Replace current_gdbarch by objfile arch.
3331 (read_enum_type): Likewise.
3332
3333 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
3334 objfile arch.
3335
3336 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3337
3338 * varobj.h (varobj_floating_p): Declare.
3339 * varobj.c (varobj_floating_p): New.
3340 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
3341 '@' as the name, update all floating varobjs.
3342
3343 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3344
3345 * varobj.c (struct varobj_root): Rename use_selected_frame to
3346 floating, and clarify the meaning.
3347 (varobj_create, varobj_update, new_root_variable): Adjust.
3348 (value_of_root): Don't use type_changed as in variable,
3349 adjust comment.
3350 (c_value_of_root): Adjust.
3351
3352 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3353
3354 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
3355 gdb's thread list.
3356 (linux_nat_wait): Add main lwp to gdb's thread list.
3357 * linux-thread-db.c (find_new_threads_callback): Also attach to
3358 already listed threads which thread_db didn't know about yet.
3359
3360 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3361
3362 * linux-nat.c (drain_queued_events): Fix comment typo.
3363 (linux_nat_attach): In async mode, don't rely on storing a pending
3364 status. Instead place the wait status on the pipe.
3365 (linux_nat_resume): Remove unreacheable shortcut code in async
3366 mode.
3367 (stop_wait_callback): In async mode, don't store pending status.
3368 Instead, cancel breakpoints or resend the signal appropriatelly.
3369 (cancel_breakpoint): New, refactored from
3370 cancel_breakpoints_callback.
3371 (cancel_breakpoints_callback): Call cancel_breakpoint.
3372 (pipe_to_local_event_queue): Remove special token processing.
3373 (linux_nat_wait): Issue an internal error if a pending status is
3374 found in async mode.
3375
3376 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3377
3378 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
3379
3380 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
3381 Vladimir Prus <vladimir@codesourcery.com>
3382
3383 * varobj.c (struct varobj_root): New component thread_id.
3384 (varobj_get_thread_id, check_scope): New functions.
3385 (c_value_of_root): Use check_scope. Switch to the
3386 proper thread if necessary.
3387
3388 * varobj.h (varobj_get_thread_id): New extern.
3389
3390 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
3391
3392 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
3393
3394 PR gdb/544
3395 * top.c: Revert 2008-03-21 changes.
3396
3397 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3398
3399 * thread.c (make_cleanup_restore_current_thread): Make it
3400 globally visible.
3401 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3402 * varobj.c (varobj_update): Don't save/restore frame.
3403 (c_value_of_root): Save/restore thread and frame here,
3404 using make_cleanup_restore_current_thread.
3405 * Makefile.in: Update dependecies.
3406
3407 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3408
3409 * varobj.c (struct varobj_root): Clarify
3410 comment on the frame field.
3411 (varobj_create): Don't set frame if we have no
3412 block.
3413
3414 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3415
3416 PR gdb/544
3417 Suggested by Jan Kratochvil:
3418 * top.c (gdb_rl_operate_and_get_next_completion): Call
3419 rl_redisplay_function.
3420 (gdb_rl_redisplay): New.
3421 (init_main): Set rl_redisplay_function.
3422
3423 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3424
3425 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3426 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3427 (store_regs_kernel_thread): Likewise.
3428
3429 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3430
3431 Linux native async support.
3432
3433 * target.h (struct target_ops): Delete to_async_mask_value and add
3434 to_async_mask.
3435 (target_is_async_p, target_async): Formatting.
3436 (target_async_mask_value): Delete.
3437 (target_async_mask): Delete function declaration, and add new
3438 target macro with the same name.
3439
3440 * target.c (update_current_target): Replace to_async_mask_value by
3441 to_async_mask. Default to_async_mask to return_one.
3442 (target_async_mask): Delete.
3443 (find_default_can_async_p, find_default_is_async_p): New.
3444 (init_dummy_target): register find_default_can_async_p and
3445 find_default_is_async_p on the dummy target.
3446
3447 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3448 (debug_linux_nat_async): New global.
3449 (show_debug_linux_nat_async): New function.
3450 (linux_nat_async_enabled, linux_nat_async_mask_value)
3451 (linux_nat_event_pipe, linux_nat_num_queued_events)
3452 (linux_nat_async_events_enabled): New globals.
3453 (struct waitpid_result): New struct.
3454 (waitpid_queue): New global.
3455 (queued_waitpid, push_waitpid, drain_queued_events): New.
3456 (my_waitpid): Call queued_waitpid.
3457 (linux_child_follow_fork): Disable async events during the call.
3458 (blocked_mask): Delete.
3459 (sync_sigchld_action, async_sigchld_action): New globals.
3460 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3461 async mode, block events during the call.
3462 (linux_nat_create_inferior): New.
3463 (linux_nat_attach): In sync mode, restore the mask states. In
3464 async mode, wake the event loop immediatelly.
3465 (detach_callback): Drain all queued events of the lwp we're
3466 detaching from.
3467 (linux_nat_detach): Block async mode, and drain events of the main
3468 process.
3469 (linux_nat_resume): If in async mode, mask async events during the
3470 call. If short circuiting, force event loop to wake up. If
3471 resuming, set target_executing, and register target events in the
3472 event loop.
3473 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
3474 (linux_nat_wait): In async mode, block events during the call.
3475 Only enable/disable passing SIGINT to the inferior in sync mode.
3476 Get events from local waitpid queue. If no interesting events was
3477 found, return to events loop. Reregister target events in the
3478 event loop on exit. In sync mode, no need to reblock SIGCHLD.
3479 (linux_nat_kill): Disable events on entry.
3480 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
3481 here. Detach async mode from the event loop if there are no more
3482 forks available, otherwise leave it on.
3483 (sigchld_handler): Assure this is called only in sync mode.
3484 (linux_async_permitted, linux_async_permitted_1): New globals.
3485 (set_maintenance_linux_async_permitted)
3486 (show_maintenance_linux_async_permitted): New functions.
3487 (linux_nat_is_async_p, linux_nat_can_async_p)
3488 (linux_nat_async_mask): New.
3489 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
3490 (get_pending_events, async_sigchld_handler): New.
3491 (linux_nat_async_events): New.
3492 (async_terminal_is_ours): New global.
3493 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
3494 (async_client_callback, async_client_context): New.
3495 (linux_nat_async_file_handler, linux_nat_async)
3496 (linux_nat_disable_async, linux_nat_enable_async): New.
3497 (linux_nat_add_target): Register linux_nat_create_inferior,
3498 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
3499 linux_nat_async_mask, linux_nat_terminal_inferior and
3500 linux_nat_terminal_ours.
3501 (_initialize_linux_nat): Remove local action variable, and update
3502 code that used it to use sync_sigchld_action. Add new
3503 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
3504 set/show command in the maintenance class. Add new "linux-async"
3505 maintenance set/show command. Block SIGCHLD by default. Setup
3506 async_sichld_action, and sync_sigchld_action. Install the default
3507 async mode.
3508 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
3509 the cancel signals.
3510
3511 * linux-thread-db.c (re_check_for_thread_db): New.
3512 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
3513 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3514 (thread_db_async_mask): New.
3515 (init_thread_db_ops): Register thread_db_can_async_p,
3516 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
3517
3518 * remote.c (remote_async_mask_value): New.
3519 (remote_return_zero): New.
3520 (init_remote_ops): Register remote_return_zero as callbacks of
3521 to_can_async_p and to_is_async_p.
3522 (remote_can_async_p, remote_is_async_p, remote_async): Update to
3523 use remote_async_mask_value.
3524 (remote_async_mask): New.
3525 (init_remote_async_ops): Remove to_async_mask_value setting and
3526 register remote_async_mask as to_async_mask callback in
3527 remote_async_ops.
3528
3529 * Makefile.in (linux-nat.o): Update.
3530
3531 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3532
3533 * gdbthread.h (add_thread_with_info): New.
3534 * linux-thread-db.c: Add some documentation.
3535 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
3536 (struct private_thread_info): Remove th_valid and ti_valid.
3537 Replace ti with tid.
3538 (thread_get_info_callback): Do not add TID to the new ptid. Do
3539 not cache th or ti.
3540 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
3541 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
3542 new PTID.
3543 (attach_thread): Handle an already-existing thread. Use
3544 add_thread_with_info. Cache the th and tid.
3545 (detach_thread): Verify that private was set. Remove verbose
3546 argument and printing. Update caller.
3547 (thread_db_detach): Do not adjust inferior_ptid.
3548 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
3549 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
3550 (thread_db_wait): Do not use lwp_from_thread.
3551 (thread_db_pid_to_str): Use the cached TID.
3552 (thread_db_extra_thread_info): Check that private is set.
3553 (same_ptid_callback): Delete.
3554 (thread_db_get_thread_local_address): Do not use it or check
3555 is_thread. Check that private is set. Assume that the thread
3556 handle is already cached.
3557 (init_thread_db_ops): Remove to_resume and to_kill.
3558 * thread.c (add_thread_with_info): New.
3559 (add_thread): Use it.
3560 * linux-nat.c (find_thread_from_lwp): Delete.
3561 (exit_lwp): Do not use it. Check print_thread_events. Print before
3562 deleting the thread.
3563 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
3564 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
3565 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
3566 printf_unfiltered for thread exits.
3567 * procfs.c (procfs_wait): Likewise.
3568
3569 2008-03-21 Chris Demetriou <cgd@google.com>
3570
3571 * symtab.c (rbreak_command): Quote symbol name before passing
3572 it to break_command.
3573
3574 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3575
3576 * eval.c (evaluate_subexp_for_address): Clarify error message.
3577 Use value_must_coerce_to_target.
3578 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
3579 * valops.c (value_assign): Call value_coerce_to_target when
3580 assigning to anything but internalvars. Leave GDB-side arrays
3581 as arrays when assigning to internalvars.
3582 (value_must_coerce_to_target, value_coerce_to_target): New.
3583 (value_coerce_array, value_addr): Call value_coerce_to_target.
3584 (value_array): Create the array in GDB's memory instead of
3585 the inferior's.
3586 * value.h (value_must_coerce_to_target, value_coerce_to_target):
3587 Declare.
3588
3589 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3590
3591 * top.c (quit_confirm): Warn that we will kill the program.
3592
3593 2008-03-19 Pedro Alves <pedro@codesourcery.com>
3594
3595 * inflow.c (terminal_ours_1): Guard access to
3596 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
3597
3598 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3599 Jim Blandy <jimb@codesourcery.com>
3600 Daniel Jacobowitz <drow@false.org>
3601
3602 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
3603 (dwarf2_read_address): Update prototype.
3604
3605 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
3606 (signed_address_type): Likewise.
3607 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
3608 (execute_stack_op): Update calls to unsigned_address_type,
3609 signed_address_type and dwarf2_read_address. Fix implementation
3610 of DW_OP_deref_size.
3611
3612 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3613 (dwarf2_per_cu_addr_size): Likewise.
3614 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3615 (struct dwarf2_loclist_baton): Likewise.
3616
3617 * dwarf2loc.c (find_location_expression): Update calls to
3618 dwarf2_read_address. Use dwarf2_per_cu_objfile and
3619 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3620 (locexpr_describe_location): Likewise.
3621 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3622 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3623 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
3624 to dwarf2_per_cu_addr_size (per_cu).
3625 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3626 (loclist_read_variable): Likewise.
3627 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3628
3629 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3630 instead of baton->objfile.
3631 (dwarf2_per_cu_obfile): New function.
3632 (dwarf2_per_cu_addr_size): Likewise.
3633
3634 * dwarf2-frame.c (struct comp_unit): Move higher.
3635 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3636 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3637 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
3638 parameter by using fde->eh_frame_p. Use read_encoded_value
3639 to implement DW_CFA_set_loc.
3640 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3641 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
3642 execute_stack_op and execute_cfa_program.
3643 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3644 (size_of_encoded_value): Remove.
3645 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3646 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
3647 (add_cie): Set cie->unit backlink.
3648 (decode_frame_entry_1): Set cie->addr_size. Update calls to
3649 read_encoded_value.
3650 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3651
3652 2008-03-17 Markus Deuling <deuling@de.ibm.com>
3653
3654 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3655 gdbarch_bfd_arch_info.
3656
3657 2008-03-17 Joel Brobecker <brobecker@adacore.com>
3658
3659 * aix-thread.c (pdc_read_regs): Minor reformatting.
3660
3661 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
3662
3663 * thread.c (print_thread_info): Don't insist
3664 on having current thread if there are no
3665 threads at all.
3666
3667 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3668
3669 * infcmd.c (attach_command_post_wait)
3670 (attach_command_continuation): New.
3671 (attach_command): Support background async execution, and async
3672 execution in synchronous mode.
3673
3674 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3675
3676 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3677 * symmisc.c (dump_symtab_1): Likewise.
3678 * wrapper.c (gdb_value_struct_elt): Likewise.
3679
3680 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3681
3682 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3683
3684 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3685
3686 * linux-nat.c (linux_nat_filter_event): New, refactored from
3687 linux_nat_wait.
3688 (linux_nat_wait): Call linux_nat_filter_event.
3689
3690 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
3691
3692 * top.c (execute_command): Fix uninitialized variable error.
3693
3694 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3695
3696 * Makefile.in (amd64nbsd-nat.o): New dependency.
3697 * amd64nbsd-nat.c: Include "nbsd-nat.h".
3698 (_initialize_amd64nbsd_nat): Update target vector to use
3699 nbsd_pid_to_exec_file.
3700 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3701
3702 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3703
3704 Remove ignoring leading exec events code.
3705 * fork-child.c (startup_inferior): Do not set
3706 inferior_ignoring_leading_exec_events.
3707 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3708 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3709 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3710 (handle_inferior_event): Remove code for ignoring leading exec
3711 events.
3712 * target.c (update_current_target): Do not inherit, or default,
3713 to_reported_exec_events_per_exec_call.
3714 (debug_to_reported_exec_events_per_exec_call): Remove.
3715 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3716 * target.h (target_reported_exec_events_per_exec_call): Remove.
3717 (struct target): Remove the to_reported_exec_events_per_exec_call
3718 field.
3719
3720 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3721
3722 Implement -thread-info.
3723 * gdbthread.h (print_thread_info): Declare.
3724
3725 * thread.c (print_thread_info): New, extracted
3726 from info_threads_command and adjusted to
3727 work for CLI and MI.
3728 (info_threads_command): Use print_thread_info.
3729 * Makefile.in: Update dependencies.
3730
3731 * mi/mi-cmds.c (mi_cmds): Specify a handler
3732 for -thread-info.
3733 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3734 * mi/mi-main.c (mi_cmd_thread_info): New.
3735 (mi_cmd_list_features): Include 'thread-info'.
3736
3737 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3738
3739 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3740 to decide whether to match instruction patterns using "sw" and "sd".
3741
3742 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3743
3744 * infcmd.c (jump_command): Postpone disabling stdin until after
3745 the possible query.
3746
3747 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3748
3749 * inflow.c (gdb_getpgrp): New.
3750 (gdb_has_a_terminal): Use get_getpgrp.
3751 (terminal_ours_1): If attach_flag is set, don't refetch
3752 inferior_process_group.
3753
3754 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3755
3756 * features/library-list.dtd: Allow "section" elements as children
3757 of "library". Add "section" element and describe its attributes.
3758
3759 * solib-target.c (struct lm_info): Add section_bases member.
3760 (library_list_start_segment): Error out if seen a section element.
3761 (library_list_start_section): New.
3762 (library_list_end_library): New.
3763 (solib_target_free_library_list): Free section_bases.
3764 (section_attributes): New.
3765 (library_children): Make "segment" optional. Add "section" child.
3766 (library_list_children): Register library_list_end_library.
3767 (solib_target_relocate_section_addresses): Handle section bases.
3768
3769 * NEWS: Mention new qXfer:libraries:read section offsets support.
3770
3771 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3772
3773 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
3774 (make_exec_error_cleanup): Remove declarations.
3775 * utils.c (exec_error_cleanup_chain): Remove.
3776 (do_exec_error_cleanups, discard_exec_error_cleanups)
3777 (make_exec_error_cleanup): Remove.
3778 * event-loop.c (start_event_loop): Adjust call to
3779 async_enable_stdin.
3780 * event-top.c (async_enable_stdin): Remove the paramater dummy.
3781 (async_disable_stdin): Don't register async_enable_stdin via
3782 cleanup.
3783 * inf-loop.c (inferior_event_handler): Don't
3784 call do_exec_error_cleanups. Call async_enable_stdin instead.
3785 * event-loop.c (start_event_loop): Adjust call to
3786 async_enable_stdin.
3787 * tui/tui-interp.c (tui_command_loop): Adjust call to
3788 async_enable_stdin.
3789
3790 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3791
3792 Async mode fixes.
3793 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
3794 * breakpoint.c (bpstat_do_actions): In async mode,
3795 don't jump to top expecting stop_bpstat to be already
3796 updated.
3797 * event-loop.c (start_event_loop): Call async_enable_stdin
3798 on exception.
3799 * event-top.c (async_enable_stdin): Do nothing if sync_execution
3800 is not set.
3801 (command_handler): Do not setup continuation here.
3802 (command_line_handler_continuation): Move to...
3803 * top.c (command_line_handler_continuation): ... here.
3804 (execute_command): In async mode, register continuation.
3805 Don't check frame's language in running in async mode.
3806 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
3807 * inf-loop.c (complete_execution): Inline into...
3808 (inferior_event_handler): ... here. Clear target_executing before
3809 doing any cleanups. Don't try to show prompt if the target was
3810 resumed.
3811 * infcmd.c (signal_command): Add support for async mode.
3812 (finish_command): Only add continuation if the target was
3813 successfully resumed.
3814 * remote.c (init_async_opts): Register to_get_thread_local_address
3815 handler.
3816 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
3817 with sync_execution.
3818 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
3819 on exception.
3820
3821 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3822
3823 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
3824 * exec.c (exec_bfd_mtime): Define.
3825 (exec_close): Clear it.
3826 (exec_file_attach): Set it.
3827 * gdbcore.h (exec_bfd_mtime): Declare.
3828 * source.c (find_source_lines): Do not use bfd_get_mtime.
3829
3830 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3831
3832 * top.c (simplified_command_loop): Remove.
3833
3834 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3835
3836 Remove unused remote.c hooks.
3837 * remote.c (deprecated_target_resume_hook)
3838 (deprecated_target_wait_loop_hook): Remove.
3839 (remote_resume): Do not call deprecated_target_resume_hook.
3840 (remote_wait): Do not call deprecated_target_wait_loop_hook.
3841 (remote_async_wait): Likewise.
3842
3843 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3844
3845 Implement MI notification for new threads.
3846 * doc/observer.texi (new_thread): Document.
3847 * observer.sh: Forward declare struct thread_info.
3848 * thread.c (add_thread): Notify observer.
3849
3850 * interps.h (interp_init_ftype): New parameter
3851 top_level.
3852 (interp_set): Likewise.
3853 (top_level_interpreter_data): Declare.
3854 * interps.c (interp_set): New parameter top_level.
3855 Pass it to interpreter's init function. Remember
3856 top level interpreter.
3857 (interpreter_exec_cmd): Adjust.
3858 (top_level_interpreter_data): New.
3859 * main.c (captured_main): Pass 1 for top_level
3860 parameter of interp_set.
3861 * cli/cli-interp.c (cli_interpreter_init): New
3862 parameter top_level.
3863 * tui/tui-interp.c (tui_init): New parameter top_level.
3864
3865 * mi/mi-interp.c (mi_new_thread): New.
3866 (mi_interpreter_init): If top level, register
3867 observer for new threads.
3868
3869 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
3870
3871 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3872
3873 * top.c (execute_command): Disable break and stop
3874 commands in async mode.
3875
3876 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3877
3878 revert:
3879 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3880 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3881 Call target_stop in the INF_QUIT_REQ case.
3882 * Makefile.in (inf-loop.o): Update.
3883
3884 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3885
3886 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3887 Call target_stop in the INF_QUIT_REQ case.
3888 * Makefile.in (inf-loop.o): Update.
3889
3890 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3891
3892 * top.c (execute_command): Enable break, info and interrupt
3893 commands in async mode.
3894
3895 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
3896 Daniel Jacobowitz <dan@codesourcery.com>
3897
3898 * breakpoint.h (breakpoint_restore_shadows): New
3899 declaration.
3900 * breakpoint.c (breakpoint_restore_shadows): New.
3901 (read_memory_nobpt): Delete.
3902 * gdbcore.h (read_memory_nobpt): Delete declaration.
3903 * target.c (memory_xfer_partial): Call
3904 breakpoint_restore_shadows.
3905 (restore_show_memory_breakpoints)
3906 (make_show_memory_beakpoints_cleanup): New.
3907 (show_memory_breakpoints): New.
3908 * target.h (make_show_memory_beakpoints_cleanup): Declare.
3909 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
3910 Make sure we see memory breakpoints when checking if
3911 breakpoint is still there.
3912 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
3913 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
3914 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
3915 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
3916
3917 2008-03-12 Pedro Alves <pedro@codesourcery.com>
3918
3919 * thread.c (add_thread): Use printf_unfiltered to print.
3920
3921 2008-03-12 Joel Brobecker <brobecker@gnat.com>
3922
3923 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
3924 that is true only on x86-solaris and x86_64-solaris.
3925 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
3926 with proc_get_LDT_entry.
3927
3928 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3929
3930 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
3931 * config.in, configure: Regenerate.
3932 * fork-child.c (fork_inferior): Call create_tty_session.
3933 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
3934 (create_tty_session): New function.
3935 * terminal.h: Declare create_tty_session.
3936
3937 2008-03-12 Alan Modra <amodra@bigpond.net.au>
3938
3939 PR 5900
3940 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
3941 * mipsread.c: Include elf/internal.h.
3942 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
3943 to internal range.
3944
3945 2008-03-11 Markus Deuling <deuling@de.ibm.com>
3946
3947 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
3948 to get at the current architecture and at the target specific vector.
3949 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
3950 remove define of I387_ST0_REGNUM.
3951
3952 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
3953
3954 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
3955 get at the current architecture
3956 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
3957 parameter.
3958
3959 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
3960 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
3961
3962 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
3963 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
3964 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
3965
3966 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
3967 at the target specific vector.
3968
3969 (i386_get_longjmp_target): Use get_frame_arch to get at the current
3970 architecture. Use gdbarch_tdep to get at the target specific vector.
3971
3972 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
3973 update caller. Use gdbarch_tdep to get at the target specific vector.
3974
3975 (i386_register_to_value: Use get_frame_arch to get at the current
3976 architecture.
3977
3978 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
3979 parameter.
3980
3981 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3982 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
3983 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
3984 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
3985
3986 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
3987 undef's.
3988
3989 (i387_convert_register_p, i387_register_to_value,
3990 i387_value_to_register): Update call for i386_fp_regnum_p.
3991
3992 * i387-tdep.h: Remove comment.
3993 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
3994 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3995 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
3996 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
3997 I387_MXCSR_REGNUM): Add target specific vector as parameter.
3998
3999 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4000
4001 * Makefile.in (fork-child.o): Update.
4002 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
4003 argument. Gather all gdbserver features together.
4004 * fork-child.c (exec_wrapper): New variable.
4005 (fork_inferior): Use it.
4006 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
4007 (unset_exec_wrapper_command, _initialize_fork_child): New.
4008
4009 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4010
4011 * source.c (directory_command): Modify the determination of
4012 condition of terminal "from_tty".
4013
4014 2008-03-10 Matt Rice <ratmice@gmail.com>
4015
4016 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
4017
4018 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4019
4020 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
4021 of the data passing to strtoulst function.
4022 (info_spu_signal_command): Likewise.
4023
4024 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
4025
4026 * mi/mi-interp.c (mi_command_loop): Remove
4027 commented-out code.
4028
4029 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4030
4031 * remote.c (extended_remote_attach_1): Make local variable pid an int
4032 instead of a pid_t.
4033
4034 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4035
4036 * solib-svr4.c (svr4_same_1): New function, originally extracted
4037 from svr4_same and expanded to handle the sparc64 case.
4038 (svr4_same): Move up and reimplement using svr4_same_1.
4039 (enable_break): Use svr4_same_1 to do shared library name comparisons.
4040
4041 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
4042
4043 * MAINTAINERS: Move self to Paper trail.
4044
4045 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
4046
4047 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
4048 * event-loop.c (call_async_signal_handler): New.
4049 * event-loop.h (call_async_signal_handler)
4050 (gdb_call_async_signal_handler): Declare.
4051 (mark_async_signal_handler): Add comments.
4052 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
4053 * mingw-hdep.c (sigint_event, sigint_handler): New.
4054 (gdb_select): Use them. Wait for the readline signal handler
4055 to finish.
4056 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
4057 * posix-hdep.c (gdb_call_async_signal_handler): New function.
4058 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
4059 New.
4060 (remote_fileio_ctrl_c_signal_handler): Use
4061 gdb_call_async_signal_handler.
4062 (initialize_remote_fileio): Initialize sigint_fileio_token.
4063 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
4064 not initialize tokens here.
4065 (handle_remote_sigint_twice): Likewise. Reinstall
4066 handle_remote_sigint.
4067 (async_remote_interrupt_twice): Just call interrupt_query.
4068 (cleanup_sigint_signal_handler): Do not delete tokens.
4069 (remote_interrupt, remote_interrupt_twice): Use
4070 gdb_call_async_signal_handler.
4071 (interrupt_query): Reinstall the default signal handler.
4072 (_initialize_remote): Initialize tokens here.
4073
4074 2008-03-04 Joel Brobecker <brobecker@adacore.com>
4075
4076 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
4077 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4078 Change the type of the lr register to code_ptr.
4079 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4080 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4081 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4082 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4083 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4084 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4085 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
4086
4087 2008-03-03 James E. Wilson <wilson@tuliptree.org>
4088
4089 * MAINTAINERS: Update my email address.
4090
4091 2008-03-03 Keith Seitz <keiths@redhat.com>
4092
4093 From Dave Murphy <davem@devkitpro.org>:
4094 * configure.ac: Set tcl configdir to win under mingw.
4095 * configure: Regenerate.
4096
4097 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4098
4099 * breakpoint.c (fetch_watchpoint_value): New function.
4100 (update_watchpoint): Set and clear val_valid. Use
4101 fetch_watchpoint_value. Handle unreadable values on the
4102 value chain. Correct check for user-requested array watchpoints.
4103 (breakpoint_init_inferior): Clear val_valid.
4104 (watchpoint_value_print): New function.
4105 (print_it_typical): Use it. Do not free or clear old_val. Print
4106 watchpoints even if old_val == NULL.
4107 (watchpoint_check): Use fetch_watchpoint_value. Check for values
4108 becoming readable or unreadable.
4109 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
4110 (do_enable_watchpoint): Likewise.
4111 * breakpoint.h (struct breakpoint): Update comment for val. Add
4112 val_valid.
4113 * NEWS: Mention watchpoints on inaccessible memory.
4114
4115 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
4116
4117 * Makefile.in (i386-nat.o): Update.
4118 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
4119 i386_use_watchpoints.
4120 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
4121 i386_use_watchpoints.
4122 * i386-nat.c (i386_stopped_data_address): Take two arguments.
4123 (i386_stopped_by_watchpoint): Update call.
4124 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
4125 * config/i386/nm-i386.h: Conditionalize definitions on
4126 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
4127 (i386_use_watchpoints): Declare.
4128 (i386_stopped_data_address): Update.
4129 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4130 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4131
4132 2008-02-29 Joel Brobecker <brobecker@adacore.com>
4133
4134 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
4135 * version.in: Bump version to 6.8.50.20080229-cvs.
4136
4137 2008-02-28 Markus Deuling <deuling@de.ibm.com>
4138
4139 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
4140 properly.
4141
4142 2008-02-28 Tom Tromey <tromey@redhat.com>
4143
4144 * infcmd.c (notice_args_read): Print result of get_inferior_args.
4145
4146 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4147
4148 * infcmd.c (kill_if_already_running): Make static. Use
4149 target_require_runnable.
4150 * target.c (target_require_runnable): New.
4151 * target.h (target_require_runnable): Declare.
4152
4153 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4154
4155 * frame.c (reinit_frame_cache): Only annotate if frames were
4156 previously valid.
4157
4158 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4159
4160 * regformats/reg-ppc.dat: Rename "ps" to "msr".
4161 * regformats/reg-ppc64.dat: Likewise.
4162
4163 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4164
4165 * features/Makefile (%.dat): Emit xmltarget statement.
4166
4167 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
4168 Generate code to set gdbserver_xmltarget in init_registers_${name}.
4169
4170 * regformats/arm-with-iwmmxt.dat: Regenerate.
4171 * regformats/mips64-linux.dat: Regenerate.
4172 * regformats/mips-linux.dat: Regenerate.
4173 * regformats/rs6000/powerpc-32.dat: Regenerate.
4174 * regformats/rs6000/powerpc-64.dat: Regenerate.
4175 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4176
4177 * regformats/reg-arm.dat: Add xmlarch statement.
4178 * regformats/reg-i386.dat: Likewise.
4179 * regformats/reg-i386-linux.dat: Likewise.
4180 * regformats/reg-x86-64-linux.dat: Likewise.
4181 * regformats/reg-spu.dat: Likewise.
4182
4183 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4184
4185 * remote.c (remote_wait, remote_async_wait): Stop if we receive
4186 an error.
4187
4188 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4189
4190 * utils.c (debug_timestamp): New.
4191 (vfprintf_unfiltered): Print timestamps if requested.
4192 (show_debug_timestamp): New.
4193 (initialize_utils): Register "set debug timestamp".
4194 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
4195
4196 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4197
4198 * breakpoint.c (skip_prologue_sal): New function.
4199 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
4200 computed from a line number.
4201
4202 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4203
4204 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4205 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4206 Set PC register type to "code_ptr".
4207 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4208 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4209 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4210 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4211 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4212 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4213 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
4214 Regenerate.
4215
4216 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4217
4218 * regformats/regdat.sh: Rename init_registers function in
4219 generated file to init_registers_${name}.
4220
4221 * regformats/reg-crisv32.dat: Set "name" to crisv32.
4222 * regformats/reg-ppc64.dat: Set "name" to ppc64.
4223 * regformats/reg-s390x.dat: Set "name" to s390x.
4224
4225 2008-02-26 Greg Law <glaw@undo-software.com>
4226
4227 * regcache.c (registers_changed): Call reinit_frame_cache.
4228
4229 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4230
4231 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
4232 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
4233 and svr4_fetch_objfile_link_map.
4234 * Makefile.in (sh-linux-tdep.o): Update.
4235
4236 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
4237
4238 * amd64-tdep.c (amd64_classify): Add support for decimal float
4239 types.
4240 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
4241 use the struct return convention.
4242
4243 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
4244
4245 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
4246 to old format. Discard breakpoint address if shared library is
4247 unloaded.
4248 (breakpoint_1): Adjust formatting of table header accordingly.
4249
4250 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
4251
4252 * remote.c (remote_get_threadlist): If the response
4253 is empty, don't try to parse it.
4254
4255 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
4256
4257 Unbreak 'target async'.
4258 * serial.c (serial_async): Set the
4259 handler function before enabling async
4260 mode.
4261
4262 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
4263
4264 * solib-svr4.c (enable_break): Convert r_brk to a code address.
4265
4266 2008-02-21 Pedro Alves <pedro@codesourcery.com>
4267
4268 * remote.c (extended_remote_attach_1): Set attach_flag.
4269 (extended_remote_create_inferior_1): Clear attach_flag.
4270
4271 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4272
4273 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
4274 r_brk_offset.
4275 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4276 * solib-svr4.c (solib_svr4_r_brk): New.
4277 (open_symbol_file_object, svr4_current_sos): Always check the
4278 debug base.
4279 (svr4_fetch_objfile_link_map): Do not set debug_base.
4280 (enable_break): Use r_brk if it is set.
4281 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
4282 (svr4_lp64_fetch_link_map_offsets): Likewise.
4283 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
4284
4285 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4286 Mark Kettenis <kettenis@gnu.org>
4287
4288 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
4289 trad_frame_saved_reg.
4290 (trad-frame.h): New include.
4291
4292 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
4293 instead of frame_obstack_zalloc.
4294 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
4295
4296 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
4297
4298 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4299
4300 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
4301 from disassemble_info instead of gdbarch_byte_order.
4302
4303 * mips-tdep.c (gdb_print_insn_mips): Likewise.
4304 * arm-tdep.c (gdb_print_insn_arm): Likewise.
4305
4306 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4307
4308 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
4309 gdbarch as parameter.
4310
4311 * gdbarch.{c,h}: Regenerate.
4312
4313 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4314 parameter.
4315 * mem-break.c (default_memory_insert_breakpoint)
4316 (default_memory_remove_breakpoint): Likewise.
4317 * target.h (default_memory_remove_breakpoint)
4318 (default_memory_insert_breakpoint): Likewise.
4319
4320 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4321 parameter. Replace current_gdbarch by gdbarch.
4322 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4323 (m32r_memory_remove_breakpoint): Likewise.
4324
4325 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
4326
4327 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
4328
4329 2008-02-19 Joel Brobecker <brobecker@adacore.com>
4330
4331 * NEWS: Add entry describing Add support improvements.
4332
4333 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4334
4335 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
4336 M68K_FP0_REGNUM.
4337
4338 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4339
4340 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
4341 register_offset_hack anymore.
4342
4343 * regcache.{c,h} (register_offset_hack): Remove.
4344
4345 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4346
4347 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
4348
4349 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
4350 current_gdbarch by gdbarch.
4351 (hppa64_hpux_find_global_pointer): Likewise.
4352 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
4353 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
4354 find_global_pointer.
4355
4356 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
4357 parameter.
4358 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4359
4360 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
4361 of gdbarch_num_regs.
4362
4363 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
4364 replace current_gdbarch by gdbarch.
4365 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
4366
4367 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4368
4369 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
4370 and replace current_gdbarch by gdbarch.
4371
4372 (store_register): Update call for exec_one_dummy_insn.
4373 (fetch_register, store_register): Update call of regmap.
4374
4375 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
4376 parameter and replace current_gdbarch by gdbarch.
4377
4378 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
4379 the current architecture. Update call for getregs_supplies and
4380 getfpregs_supplies.
4381 (ppcnbsd_fetch_inferior_registers): Likewise.
4382
4383 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
4384 replace current_gdbarch by gdbarch.
4385 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
4386 get_regcache_arch to get at the current architecture. Update call for
4387 getfpregs_supplies.
4388
4389 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4390
4391 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
4392 variables.
4393
4394 2008-02-15 Markus Deuling <deuling@de.ibm.com>
4395
4396 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
4397
4398 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
4399
4400 * NEWS: Mention pending breakpints in MI.
4401
4402 2008-02-14 Markus Deuling <deuling@de.ibm.com>
4403
4404 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
4405
4406 2008-02-13 Markus Deuling <deuling@de.ibm.com>
4407
4408 Add script to build and test GDB using enable-targets=all.
4409
4410 * gdb_buildall.sh: New file.
4411
4412 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
4413
4414 * NEWS (New native configurations): Xtensa GNU/Linux.
4415 (New targets): Xtensa GNU/Linux.
4416 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4417 xtensa-linux-tdep.o
4418 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4419 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4420 * configure.tgt (xtensa*-*-linux*): New entry.
4421 * xtensa-config.c (xtensa_tdep): New variable.
4422 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4423 (rmap): Change format based on new macro XTREG.
4424 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4425 * xtensa-linux-nat.c: New.
4426 * xtensa-linux-tdep.c: New.
4427 * xtensa-xtregs.c: New.
4428 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4429 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4430 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4431 (xtensa_register_t): New field coprocessor.
4432 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4433 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4434 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4435 Update to handle privileged registers.
4436 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4437 (xtensa_push_dummy_call): Set windowstart register correctly.
4438 (call0_analyze_prologue): Initialize xtensa_default_isa.
4439 (xtensa_derive_tdep): New.
4440 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4441 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4442 Call xtensa_derive_tdep().
4443 * config/xtensa/linux.mh: New.
4444 * regformats/reg-xtensa.dat: New.
4445
4446 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4447
4448 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4449 (filenames.h): New include.
4450 * Makefile.in (corelow.o): Add dependency for filenames.h.
4451
4452 2008-02-08 Doug Evans <dje@google.com>
4453
4454 * source.c (find_and_open_source): Always rewrite absolute filenames.
4455
4456 2008-02-07 Doug Evans <dje@google.com>
4457
4458 * breakpoint.c: #include "hashtab.h".
4459 (ambiguous_names_p): New fn.
4460 (update_breakpoint_locations): When restoring bp enable status, don't
4461 compare function names if any functions have same name.
4462 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4463
4464 2008-02-07 Joel Brobecker <brobecker@adacore.com>
4465
4466 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
4467 instead of just a VEC*. Update use of SV.
4468 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
4469
4470 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4471
4472 * NEWS: Put all new commands since gdb-6.7 together.
4473
4474 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4475
4476 * ada-lang.c: #include "vec.h".
4477 (struct string_vector, new_string_vector, string_vector_append):
4478 Delete.
4479 (char_ptr): New typedef.
4480 (DEF_VEC_P (char_ptr)): New VEC type.
4481 (symbol_completion_add): Update profile to take the new VEC type
4482 instead of the old string_vector structure. Update code accordingly.
4483 (ada_make_symbol_completion_list): Use the new VEC type instead of
4484 the old string_vector structure, and update the code accordingly.
4485 * Makefile.in (ada-lang.o): Add dependency on vec.h.
4486
4487 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4488
4489 * p-exp.y: Set current_type in missing places.
4490 (leftdiv_is_integer): New static variable.
4491 Typecast right operand of BINOP_DIV to long_double if both operands
4492 are integers.
4493
4494 2008-02-06 Maciej W. Rozycki <macro@mips.com>
4495
4496 * remote-mips.c (set_breakpoint): Rename to...
4497 (mips_set_breakpoint): ... this.
4498 (clear_breakpoint): Rename to...
4499 (mips_clear_breakpoint): ... this.
4500 (common_breakpoint): Rename to...
4501 (mips_common_breakpoint): ... this.
4502 (check_lsi_error): Rename to...
4503 (mips_check_lsi_error): ... this.
4504
4505 2007-02-05 Joel Brobecker <brobecker@adacore.com>
4506
4507 * language.h (struct language_defn): Add new field
4508 la_make_symbol_completion_list.
4509 * symtab.c (default_make_symbol_completion_list): Renames
4510 make_symbol_completion_list.
4511 (make_symbol_completion_list): New function.
4512 * symtab.h (default_make_symbol_completion_list): Add declaration.
4513 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
4514 (auto_language, local_language): Likewise.
4515 * objc-lang.c (objc_language_defn): Likewise.
4516 * scm-lang.c (scm_language_defn): Likewise.
4517 * m2-lang.c (m2_language_defn): Likewise.
4518 * f-lang.c (f_language_defn): Likewise.
4519 * jv-lang.c (java_language_defn): Likewise.
4520 * p-lang.c (pascal_language_defn): Likewise.
4521 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
4522 (minimal_language_defn): Likewise.
4523 * ada-lang.c (struct string_vector): New structure.
4524 (new_string_vector, string_vector_append, ada_unqualified_name)
4525 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
4526 (ada_make_symbol_completion_list): New functions.
4527 (ada_language_defn): Set la_make_symbol_completion_list.
4528 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
4529 this function is static.
4530
4531 2008-02-05 Kevin Buettner <kevinb@redhat.com>
4532
4533 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
4534 to account for call site optimizations.
4535
4536 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
4537
4538 * tracepoint.c (read_actions): Handle end-of-text indicator
4539 in action list properly. (Committed by Jim Blandy)
4540
4541 2008-02-05 Jim Blandy <jimb@red-bean.com>
4542
4543 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
4544 pseudoregister, not an internal error.
4545 Reported by: Andrzej Zaborowski
4546
4547 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4548
4549 * varobj.c (c_value_of_variable): Use xstrdup.
4550
4551 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4552
4553 Update stored rendition of varobj value when format changes.
4554 * varobj.c (varobj_set_display_format): Recomputed
4555 print_value.
4556 (c_value_of_variable): Return print_value.
4557
4558 2008-02-03 Doug Evans <dje@google.com>
4559
4560 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
4561 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
4562 * valops.c (value_one): New function.
4563 * value.h (value_one): Declare.
4564
4565 Fix argument promotion for binary arithmetic ops for C.
4566 * valarith.c (unop_result_type): New fn.
4567 (binop_result_type): New fn.
4568 (value_binop): Move result type computation to binop_result_type.
4569 (value_pos, value_neg, value_complement): Move result type
4570 computation to unop_result_type.
4571
4572 PR 2384
4573 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4574 Return basetype, fieldno if found. All callers updated.
4575 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
4576 objfile.
4577 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4578 * symfile.h (fill_in_vptr_fieldno): Delete.
4579
4580 2008-02-02 Doug Evans <dje@google.com>
4581
4582 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
4583
4584 * typeprint.c (*): Whitespace cleanup.
4585
4586 2008-02-02 Mark Kettenis <kettenis@gnu.org>
4587 Luis Machado <luisgpm@br.ibm.com>
4588 Thiago Jung Bauermann <bauerman@br.ibm.com>
4589
4590 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
4591 don't fit into registerson the stack the way GCC does.
4592
4593 2008-02-01 Joel Brobecker <brobecker@adacore.com>
4594
4595 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4596 hash table for Ada symbols. Just store the linkage name as is,
4597 and leave the demangled_name as NULL.
4598
4599 2007-02-01 Joel Brobecker <brobecker@adacore.com>
4600
4601 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
4602 in the global scope.
4603 (new_symbol): Likewise.
4604
4605 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4606
4607 * breakpoint.c (break_command_1): Return void.
4608 (break_command_really): Return void. Rethrow
4609 exceptions instead of returning.
4610 (gdb_breakpoint): Remove the error_message parameter.
4611 Return void. Rename to set_breakpoint.
4612 * gdb.h (gdb_breakpoint): Rename and move to...
4613 * breakpoint.h (set_breakpoint): ...here.
4614 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4615 event hooks even if exception is thrown. Adjust to
4616 gdb_breakpoint interface changes.
4617
4618
4619 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4620
4621 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4622 float in both first and second word in the doubleword, to support
4623 old and new ABIs.
4624
4625 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4626
4627 Properly rethrow exception. This fixes errors
4628 about non-existent functions for -break-insert.
4629 * breakpoint.c (break_command_really): Use throw_exception
4630 for rethrowing. If rethrowing, don't print the exception.
4631
4632 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4633
4634 * NEWS: Mention Decimal Floating Point support.
4635
4636 2008-01-31 Joel Brobecker <brobecker@adacore.com>
4637
4638 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4639 value type to builtin_type_void_func_ptr.
4640
4641 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
4642
4643 * s390-tdep.c (is_float_singleton, is_float_like,
4644 alignment_of, s390_return_value): Make checks for
4645 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4646
4647 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
4648 Thiago Jung Bauermann <bauerman@br.ibm.com>
4649
4650 * infcmd.c (default_print_registers_info): Also print hex
4651 raw contents for TYPE_CODE_DECFLOAT registers.
4652 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4653 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4654 (rs6000_register_name): Add support for DFP pseudo-registers.
4655 (rs6000_pseudo_register_type): Likewise.
4656 rs6000_pseudo_register_reggroup_p): Likewise.
4657 (ppc_pseudo_register_read): New function.
4658 (ppc_pseudo_register_write): Likewise.
4659 (rs6000_pseudo_register_read): Likewise.
4660 (rs6000_pseudo_register_write): Likewise.
4661 (e500_pseudo_register_read): Move checks to
4662 rs6000_pseudo_register_read.
4663 (e500_pseudo_register_write): Move checks to
4664 rs6000_pseudo_register_write.
4665 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
4666 rs6000_pseudo_register_read and rs6000_pseudo_register_write
4667 in gdbarch if SPE or DFP is available. Adjust gdbarch's
4668 num_pseudo_regs to account for DFP pseudo regs.
4669
4670 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4671
4672 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4673 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4674 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4675 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4676 e500_pseudo_register_read, e500_pseudo_register_write): Use
4677 IS_SPE_PSEUDOREG macro.
4678 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4679 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4680 Remove initialization of tdep->ppc_ev31_regnum.
4681
4682 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4683
4684 * printcmd.c (print_formatted): Handle references as for unformatted
4685 prints.
4686
4687 2008-01-30 Joel Brobecker <brobecker@adacore.com>
4688
4689 * eval.c (evaluate_subexp_standard): Add handling of user
4690 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4691
4692 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
4693
4694 * eval.c (evaluate_subexp_standard): Support
4695 BINOP_INTDIV opcode.
4696
4697 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
4698
4699 * valarith.c (value_binop): Add floating-point BINOP_MIN and
4700 BINOP_MAX cases.
4701 For BINOP_EXP, use length and signedness of left operand only for
4702 result, as for shifts.
4703 For integral operands to BINOP_EXP, use new integer_pow and
4704 uinteger_pow functions so as to get full range of results.
4705 (integer_pow): New function.
4706 (uinteger_pow): New function.
4707
4708 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
4709
4710 Use vector for varobj_list_children interface.
4711 * gdb/varobj.c (varobj_list_children): Return vector
4712 of varobjs.
4713 * gdb/varobj.h (varobj_list_children): Adjust
4714 prototype.
4715 (varobj_p): Declare. Declare vector thereof.
4716 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4717 for varobj_list_children change.
4718 * Makefile.in (varobj_h): Update dependencies.
4719
4720 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4721
4722 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4723 TYPE_CODE_DECFLOAT arguments.
4724 (ppc64_sysv_abi_push_dummy_call) Likewise.
4725 (get_decimal_float_return_value): New function.
4726 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4727 values by calling get_decimal_float_return_value.
4728 (ppc64_sysv_abi_return_value): Likewise.
4729
4730 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
4731
4732 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
4733 for preprocessor macro information. Formatting changes.
4734
4735 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4736
4737 * remote.c (struct remote_state): Add cached_wait_status.
4738 (remote_exec_file): New variable.
4739 (PACKET_vAttach, PACKET_vRun): New constants.
4740 (extended_remote_restart): Do not query for status.
4741 (struct start_remote_args): New.
4742 (remote_start_remote): Take it as a second argument. Check
4743 whether the target is running. Issue an error for non-running
4744 non-extended targets. Cache the wait status. Set inferior_ptid
4745 here.
4746 (remote_open_1): Prompt to disconnect non-running targets. Make
4747 sure the target is marked running. Do not set inferior_ptid here.
4748 Update call to remote_start_remote. Do not call remote_check_symbols
4749 if the target is not running.
4750 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
4751 argument. Handle a non-running target.
4752 (remote_detach): Use it.
4753 (extended_remote_detach): New.
4754 (remote_disconnect): Fix typo. Use remoute_mourn_1.
4755 (extended_remote_attach_1, extended_remote_attach)
4756 (extended_async_remote_attach): New.
4757 (remote_vcont_resume): Remove unused variable.
4758 (remote_wait, remote_async_wait): Use any cached wait status.
4759 (putpkt_binary, getpkt): Clear any cached wait status.
4760 (extended_remoute_mourn_1): New.
4761 (extended_remote_mourn): Use it.
4762 (extended_async_remote_mourn, extended_remote_run): New.
4763 (extended_remote_create_inferior_1): New.
4764 (extended_remote_create_inferior): Use it.
4765 (extended_remote_async_create_inferior): Likewise.
4766 (remote_xfer_partial): Skip for non-executing targets.
4767 (init_extended_remote_ops): Set to_detach and to_attach.
4768 (init_extended_async_remote_ops): Likewise. Use
4769 extended_async_remote_mourn.
4770 (_initialize_remote): Register vAttach, vRun, and
4771 set remote exec-file.
4772 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
4773
4774 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4775
4776 * Makefile.in (symfile.o): Update.
4777 * NEWS: Mention exec tracing support.
4778 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
4779 exec events.
4780 * infcmd.c (kill_if_already_running, detach_command)
4781 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
4782 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
4783 (follow_exec): Do not check may_follow_exec. Do not mourn and push
4784 targets. Apply the sysroot path to the loaded executable. Use
4785 no_shared_libraries.
4786 * linux-nat.c (linux_child_follow_fork): Print fork following
4787 messages if verbose.
4788 (kill_wait_callback): Kill again before waiting a second time.
4789 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
4790 no_shared_libraries.
4791
4792 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4793
4794 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
4795
4796 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4797
4798 * nto-tdep.h: Remove #include "defs.h".
4799 * nto-tdep.c: Add #include "defs.h".
4800 * Makefile.in (nto_tdep_h): Update dependencies.
4801 (nto-tdep.o): Likewise.
4802
4803 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4804
4805 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
4806 and use it.
4807 (proceed, start_remote): Update call to wait_for_inferior.
4808 * inferior.h (wait_for_inferior): Update declaration.
4809 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
4810 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
4811 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
4812 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
4813
4814 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
4815
4816 * varobj (adjust_value_for_child_access): Added checking for
4817 returned value from gdb_value_ind.
4818 (c_describe_child): Likewise.
4819 (cplus_describe_child): Fixed a typo.
4820
4821 2008-01-29 Jim Blandy <jimb@red-bean.com>
4822
4823 * MAINTAINERS: Update my info.
4824
4825 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4826
4827 Use multiple locations for hardware watchpoints.
4828 This eliminates the need to traverse value chain, doing
4829 various checks, in three different places.
4830
4831 * breakpoint.h (struct bp_location): New fields
4832 lengths and watchpoint_type.
4833 (struct breakpoint): Remove the val_chain field.
4834 * breakpoint.c (is_hardware_watchpoint): New.
4835 (free_valchain): Remove.
4836 (update_watchpoint): New.
4837 (insert_bp_location): For hardware watchpoint, just
4838 directly insert it.
4839 (insert_breakpoints): Call update_watchpoint_locations
4840 on all watchpoints. If we have failed to insert
4841 any location of a hardware watchpoint, remove all inserted
4842 locations.
4843 (remove_breakpoint): For hardware watchpoints, directly
4844 remove location.
4845 (watchpoints_triggered): Iterate over locations.
4846 (bpstat_stop_status): Use only first location of
4847 a resource watchpoint.
4848 (delete_breakpoint): Don't call free_valchain.
4849 (print_one_breakpoint): Don't print all
4850 locations for watchpoints.
4851 (breakpoint_re_set_one): Use update_watchpoint for
4852 watchpoints.
4853
4854 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4855
4856 Don't reset watchpoint block on solib load.
4857
4858 * breakpoint.c (insert_bp_location): For watchpoints,
4859 recompute condition.
4860 (breakpoint_re_set_one): Instead of recomputing value
4861 and condition for watchpoints, just reset value and
4862 let insert_breakpoints/insert_bp_location recompute it.
4863 Don't do anything about disabled watchpoint.
4864
4865 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
4866
4867 * valarith.c (value_binop): Handle unsigned integer
4868 division by zero.
4869
4870 2008-01-28 Kevin Buettner <kevinb@redhat.com>
4871
4872 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
4873 instruction pattern that appears frequently in position
4874 independent code. Fix bug in code which looks for "fmov" and
4875 backtracks if no "fmov" is found.
4876
4877 2008-01-28 Doug Evans <dje@google.com>
4878
4879 * dbxread.c (read_dbx_symtab): Fix indentation.
4880 Reformat comments to 80 columns.
4881 Move local var def closer to only use.
4882
4883 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4884
4885 * fork-child.c (SHELL_FILE): Remove #ifndef.
4886 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
4887
4888 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
4889
4890 * i386-tdep.c (i386_skip_noop): New function.
4891 (i386_analyze_prologue): Call i386_skip_noop function.
4892
4893 2008-01-24 Michael Snyder <msnyder@specifix.com>
4894
4895 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
4896 * win32-nat.c (win32_xfer_partial): Ditto.
4897 * target.c (default_xfer_partial): Minor whitespace adjustment.
4898
4899 2008-01-24 Pedro Alves <pedro@codesourcery.com>
4900
4901 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
4902 strip bit 1 even if pc doesn't point to thumb code.
4903
4904 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
4905
4906 * remote.c (remote_wait): Handle SIGINT between packets.
4907 (remote_async_wait): Likewise.
4908
4909 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
4910 Chris Demetriou <cgd@google.com>
4911
4912 * thread.c (add_thread_silent): Renamed
4913 from add_thread.
4914 (print_thread_events): New variable definition.
4915 (show_print_thread_events): New function.
4916 (_initialize_thread): Add "set print thread-events" and
4917 "show print thread-events" commands.
4918 (add_thread): Announce new thread.
4919 * gdbthread.h (add_thread_silent): Declare.
4920 (print_thread_events): New variable declaration.
4921 * inf-ttrace.c (inf_ttrace_wait): Don't
4922 inform about new thread, as add_thread is always
4923 called too, and will take care of that.
4924 * infrun.c (handle_inferior_event): Likewise.
4925 * procfs.c (procfs_wait): Likewise.
4926 * remote.c (remote_currthread): Likewise.
4927 * sol-thread.c (sol_thread_wait): Likewise.
4928 * win32-nat.c (get_win32_debug_event): Likewise.
4929 * linux-thread-db.c (attach_thread): Likewise.
4930 Remove the verbose parameter.
4931 (check_event): Make detach_thread be verbose
4932 only if print_thread_events is set.
4933 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
4934 about new thread. This is called only from
4935 linux-thread-db.c:attach_thread, which will take care.
4936 Remove the verbose parameter.
4937 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
4938
4939 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
4940
4941 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
4942
4943 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
4944
4945 * breakpoint.c (break_command_really): New parameter
4946 ignore_count.
4947 (break_command_1): Pass 0 as
4948 ignore_count to break_command_really.
4949 (gdb_breakpoint): Pass ignore_count to
4950 break_command_really.
4951
4952 2008-01-21 Kevin Buettner <kevinb@redhat.com>
4953
4954 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
4955 sigcontext struct via pointer.
4956 (struct sigframe comment): Update to show new field `psc'.
4957
4958 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
4959
4960 * infrun.c (handle_inferior_event): If
4961 we failed to remove breakpoints, error,
4962 don't try to increment PC by hand.
4963
4964 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
4965
4966 Add NetBSD/hppa target and host support.
4967
4968 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
4969 (hppabsd_gregset): Move to ...
4970 (hppabsd_regset_from_core_section): Rename
4971 hppaobsd_regset_from_core_section and move to ...
4972 (hppabsd_find_global_pointer): Update comment.
4973 (hppabsd_init_abi): Make global. Do not register
4974 hppabsd_regset_from_core_section.
4975 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
4976 move to ...
4977 (_initialize_hppabsd_tdep): Move to ...
4978 * hppaobsd-tdep.c: ... here. New file.
4979 * hppnbsd-tdep.c: New file.
4980 * hppnbsd-nat.c: New file.
4981 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
4982 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4983 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
4984 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
4985 * configure.host (hppa*-*-netbsd*): New entry.
4986 * configure.tgt (hppa*-*-netbsd*): New entry.
4987 (hppa*-*-openbsd*): Update.
4988 * NEWS (New native configuration): Mention NetBSD/hppa.
4989 (New targets): Mention NetBSD/hppa.
4990
4991 2008-01-18 Markus Deuling <deuling@de.ibm.com>
4992
4993 * gdbarch.sh (function_list): Add new property bits_big_endian to
4994 gdbarch structure.
4995 * gdbarch.{c,h}: Regenerate.
4996
4997 * value.c (struct value): Replace BITS_BIG_ENDIAN by
4998 gdbarch_bits_big_endian (comment).
4999 (unpack_field_as_long, modify_field): Likewise.
5000 * value.h: Likewise (comment).
5001 * valops.c (value_slice): Likewise.
5002 * valarith.c (value_subscript, value_bit_index): Likewise.
5003 * gdbtypes.h (field): Likewise (comment).
5004 * eval.c (evaluate_subexp_standard): Likewise.
5005 * dwarf2read.c (dwarf2_add_field): Likewise.
5006 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
5007 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
5008
5009 * defs.h (BITS_BIG_ENDIAN): Remove.
5010
5011 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5012
5013 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
5014 function calls.
5015 * m2-exp.y (yylex): Likewise.
5016 * objc-exp.y (yylex): Likewise.
5017
5018 * defs.h (DEPRECATED_STREQN): Remove.
5019
5020 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
5021
5022 * MAINTAINERS: Update my email address.
5023
5024 2008-01-17 Jim Blandy <jimb@codesourcery.com>
5025
5026 * README: Mention gdbserver/README.
5027
5028 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5029
5030 * valarith.c (value_binop): Handle BINOP_INTDIV
5031 for unsigned and signed integers.
5032
5033 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
5034
5035 * s390-tdep.c (s390_gdbarch_init): Set default long double
5036 type to 128-bit IEEE quad.
5037
5038 2008-01-17 Joel Brobecker <brobecker@adacore.com>
5039
5040 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
5041
5042 2008-01-16 Mark Kettenis <kettenis@gnu.org>
5043
5044 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
5045
5046 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
5047 * value.c: All callers changed.
5048
5049 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5050
5051 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
5052 DEPRECATED_STREQ by its expression.
5053 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
5054 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
5055 (scan_xcoff_symtab): Likewise.
5056 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
5057 * f-lang.c (find_common_for_function): Likewise.
5058 * objc-exp.y (parse_number): Likewise.
5059
5060 * defs.h (DEPRECATED_STREQ): Remove.
5061
5062 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5063
5064 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
5065 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
5066 get_frame_arch to get at the current_architecture. Update AM33_MODE
5067 call.
5068 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
5069 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
5070 architecture.
5071 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
5072
5073 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5074
5075 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
5076 parameter.
5077 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
5078
5079 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
5080 current_gdbarch by gdbarch. Update caller.
5081
5082 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
5083 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
5084 the current architecture. Update calls of
5085 amd64_native_gregset_supplies_p.
5086 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
5087 (amd64bsd_store_inferior_registers): Likewise.
5088
5089 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5090
5091 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
5092 Replace current_gdbarch by gdbarch. Update caller.
5093
5094 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5095
5096 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
5097 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
5098 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
5099 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
5100 (stabsect_build_psymtabs): Fix indentation.
5101
5102 2008-01-15 Michael Snyder <msnyder@specifix.com>
5103
5104 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5105
5106 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5107
5108 * win32-nat.c (win32_create_inferior): Restore code calling
5109 CloseHandle on ProcessInformation structure.
5110
5111 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
5112
5113 * configure.ac: Check for void * as 3 argument of ptrace.
5114 * configure: regenerate.
5115
5116 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5117
5118 * alpha-tdep.c (alpha_heuristic_proc_start)
5119 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
5120 current_gdbarch by gdbarch.
5121
5122 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
5123 current architecture by frame_info. Update alpha_heuristic_proc_start
5124 call.
5125
5126 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
5127 get_frame_arch to get at the current architecture by frame_info. Update
5128 alpha_sigtramp_register_address call.
5129
5130 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
5131 current_gdbarch by gdbarch. Update caller.
5132 (convert_to_extended, convert_from_extended): Add endianess parameter
5133 for comparison. Update caller.
5134 (arm_extract_return_value, arm_store_return_value): Use
5135 get_regcache_arch to get at the current architecture.
5136
5137 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
5138 current_gdbarch by gdbarch. Update caller.
5139 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
5140 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
5141
5142 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
5143 gdbarch as parameter. Update caller.
5144 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
5145 current_gdbarch by gdbarch. Update caller.
5146
5147 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
5148 update caller. Replace current_gdbarch by gdbarch.
5149
5150 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
5151 the current architecture. Replace current_gdbarch by gdbarch.
5152 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5153 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
5154 expression. Add gdbarch as parameter and replace current_gdbarch with
5155 it. Update caller.
5156 (M6811_TDEP): Remove.
5157 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
5158 architecture.
5159 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
5160 current_gdbarch by gdbarch. Update caller.
5161
5162 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
5163 update caller.
5164 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
5165 by gdbarch.
5166
5167 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
5168 caller. Relace current_gdbarch by gdbarch.
5169 (altivec_register_p, spe_register_p): Likewise.
5170 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
5171 parameter.
5172 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
5173 altivec_register_p and spe_register_p.
5174
5175 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
5176 caller. Replace current_gdbarch by gdbarch.
5177 (score_analyze_prologue): use get_frame_arch to get at the current
5178 architecture.
5179
5180 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
5181 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
5182 current_gdbarch by gdbarch. Update caller.
5183 (sparc_frame_cache): Use get_frame_arch to get at the current
5184 architecture.
5185 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
5186 sparc_analyze_prologue.
5187
5188 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
5189 parameter.
5190
5191 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5192
5193 * exec.c: #include "arch-utils.h"
5194 (print_section_info): Use gdbarch_from_bfd to get at the
5195 current architecture. Replace current_gdbarch. Fix indention. Replace
5196 deprecated_print_address_numeric by paddress.
5197 * Makefile.in (exec.o) Add dependency to arch-utils.h.
5198
5199 * valprint.c (val_print_string): Replace
5200 deprecated_print_address_numeric.
5201 * tracepoint.c (trace_mention, scope_info): Likewise.
5202 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
5203 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
5204 (maintenance_check_symtabs): Likewise.
5205 * symfile.c (list_overlays_command): Likewise.
5206 * stack.c (frame_info, print_block_frame_labels): Likewise.
5207 * printcmd.c (print_address, print_address_demangle)
5208 (address_info): Likewise.
5209 * corefile.c (memory_error): Likewise.
5210 * infcmd.c (jump_command): Likewise.
5211 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
5212 (mention, delete_breakpoint): Likewise.
5213 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
5214 * dwarf2read.c (dump_die): Likewise.
5215 * ada-valprint.c (ada_val_print_1): Likewise.
5216 * f-valprint.c (f_val_print): Likewise.
5217 * linux-fork.c (info_forks_command): Likewise.
5218 * m32r-com.c (m32r_load_section, m32r_load)
5219 (m32r_upload_command): Likewise.
5220
5221 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
5222
5223 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5224
5225 * gdbarch.sh (skip_prologue): Add gdbarch
5226 as parameter.
5227 * gdbarch.{c,h}: Regenerate.
5228
5229 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
5230 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5231 * avr-tdep.c (avr_skip_prologue): Likewise.
5232 * cris-tdep.c (cris_skip_prologue): Likewise.
5233 * frv-tdep.c (frv_skip_prologue): Likewise.
5234 * h8300-tdep.c (h8300_skip_prologue): Likewise.
5235 * hppa-tdep.c (hppa_skip_prologue): Likewise.
5236 * i386-tdep.c (i386_skip_prologue): Likewise.
5237 * ia64-tdep.c (ia64_skip_prologue): Likewise.
5238 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
5239 * m32r-tdep.c (m32r_skip_prologue): Likewise.
5240 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
5241 * m68k-tdep.c (m68k_skip_prologue): Likewise.
5242 * m88k-tdep.c (m88k_skip_prologue): Likewise.
5243 * mep-tdep.c (mep_skip_prologue): Likewise.
5244 * mips-tdep.c (mips_skip_prologue): Likewise.
5245 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
5246 * mt-tdep.c (mt_skip_prologue): Likewise.
5247 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
5248 * score-tdep.c (score_skip_prologue): Likewise.
5249 * sh64-tdep.c (sh64_skip_prologue): Likewise.
5250 * sh-tdep.c (sh_skip_prologue): Likewise.
5251 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
5252 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
5253 * spu-tdep.c (spu_skip_prologue): Likewise.
5254 * v850-tdep.c (v850_skip_prologue): Likewise.
5255 * vax-tdep.c (vax_skip_prologue): Likewise.
5256 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5257 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
5258
5259 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
5260 current_gdbarch by gdbarch.
5261 * m32c-tdep.c (m32c_skip_prologue): Likewise.
5262 * s390-tdep.c (s390_skip_prologue): Likewise.
5263
5264 2008-01-10 Doug Evans <dje@google.com>
5265
5266 * defs.h (struct continuation_arg): Fix typo in comment.
5267 * target.c (target_translate_tls_address): Fix comment spelling error.
5268
5269 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
5270
5271 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
5272 (DOUBLEST_SCAN_FORMAT): Likewise.
5273 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
5274 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
5275 * c-exp.y (parse_number): Likewise.
5276 * jv-exp.y (parse_number): Likewise.
5277 * objc-exp.y (parse_number): Likewise.
5278 * p-exp.y (parse_number): Likewise.
5279
5280 2008-01-09 Joel Brobecker <brobecker@adacore.com>
5281
5282 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
5283 (check_typedef): Likewise.
5284
5285 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
5286
5287 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
5288 seen_double_big_d, treat the new H, D, and DD modifiers as length
5289 modifiers.
5290
5291 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5292
5293 * dwarf2read.c (read_enumeration_type): Add comment.
5294
5295 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5296
5297 * config.in: Regenerate.
5298
5299 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5300
5301 * ada-lang.c (ada_convert_actual): Renames convert_actual.
5302 Make non-static.
5303 (ada_convert_actuals): Delete.
5304 * ada-lang.h (ada_convert_actual): Add declaration.
5305 (ada_convert_actuals): Remove declaration.
5306 * infcall.c: #include "ada-lang.h".
5307 (value_arg_coerce): Add new parameter sp. Update function
5308 documetnation. Add handling of Ada function call parameters.
5309 * Makefile.in (infcall.o): Update dependencies.
5310
5311 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5312
5313 * ada-lang.c (ensure_lval): Fix value lval kind.
5314 (convert_actual): Add handling for arguments passed by reference.
5315
5316 2008-01-08 Doug Evans <dje@google.com>
5317
5318 * dbxread.c (read_dbx_symtab): Fix indentation.
5319
5320 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5321
5322 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
5323 (valarith.o): Depend on dfp.h.
5324 (valops.o): Likewise.
5325 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
5326 (set_decnumber_context): New function.
5327 (decimal_check_errors): Likewise.
5328 (decimal_from_number): Likewise.
5329 (decimal_to_number): Likewise.
5330 (decimal_from_string): Use set_decnumber_context and
5331 decimal_check_errors.
5332 (decimal_from_integral): New function.
5333 (decimal_from_floating): Likewise.
5334 (decimal_to_double): Likewise.
5335 (promote_decimal): Likewise.
5336 (decimal_binop): Likewise.
5337 (decimal_is_zero): Likewise.
5338 (decimal_compare): Likewise.
5339 (decimal_convert): Likewise.
5340 * dfp.h (decimal_from_integral): New prototype.
5341 (decimal_from_floating): Likewise.
5342 (decimal_to_double): Likewise.
5343 (decimal_binop): Likewise.
5344 (decimal_is_zero): Likewise.
5345 (decimal_compare): Likewise.
5346 (decimal_convert): Likewise.
5347 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
5348 call to value_from_decfloat.
5349 * valarith.c: Include dfp.h.
5350 (value_args_as_decimal): New function.
5351 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
5352 (value_logical_not): Likewise.
5353 (value_equal): Likewise.
5354 (value_less): Likewise.
5355 (value_pos): Likewise.
5356 (value_neg): Formatting fix.
5357 * valops.c: Include dfp.h.
5358 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
5359 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
5360 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
5361 (value_from_decfloat): Remove expect_type argument.
5362 * value.h (value_from_decfloat): Update prototype.
5363
5364 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
5365
5366 Ignore change in name of dynamic linker during
5367 execution on Solaris. This also unbreaks pending breakpoints.
5368
5369 * solist.h (struct target_so_ops): New field same.
5370 * solib-svr4.c (svr4_same): New.
5371 (_initialize_svr4_solib): Register svr4_same.
5372 * solib.c (update_solib_list): Use ops->same, if available.
5373
5374 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
5375
5376 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
5377 when using MS-DOS paths.
5378
5379 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5380
5381 * NEWS: Mention --pid and --core command line behaviour changes.
5382
5383 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5384
5385 * main.c (captured_main): Remove 'count' varible and the
5386 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
5387 --pid options were issued simultaneously. If an explicit pid
5388 option was passed, don't fallback to core file. Detect extra
5389 arguments better in the presence of explicit pid or core
5390 arguments.
5391
5392 2008-01-05 Joel Brobecker <brobecker@adacore.com>
5393
5394 * ada-lang.c (ada_which_variant_applies): Correctly compute
5395 the value of the discriminant when the variant record is packed.
5396
5397 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5398
5399 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
5400 that are used to differentiate homonyms.
5401
5402 2008-01-04 Jerome Guitton <guitton@adacore.com>
5403
5404 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
5405 when the type is an anonymous pointer type.
5406 (ada_check_typedef): Avoid a seg fault when the type is null.
5407 * ada-typeprint.c (print_array_type): Add support for pointer
5408 to packed arrays.
5409
5410 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
5411
5412 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
5413
5414 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5415
5416 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5417 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5418
5419 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5420
5421 * ada-exp.y (chop_separator): New function.
5422 (write_selectors): Rewrite to re-use chop_separator.
5423 (ada_nget_field_index, get_symbol_field_type): New functions.
5424 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5425 expressions.
5426
5427 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5428
5429 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5430 of SYMBOL_VALUE when working with function symbols.
5431
5432 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5433
5434 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5435 expressions. These expressions do not need to be rewriten.
5436
5437 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5438
5439 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5440 the given die is a declaration.
5441
5442 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5443
5444 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5445 Handle properly the case when the index type is an enumerated type.
5446 Do not return the subtype of the bounds type, just return the
5447 bounds type directly - this is not needed and is more consistent
5448 with what we do for arrays when no XA parallel type exists.
5449
5450 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5451
5452 * ada-lang.c (static_unwrap_type): Add forward declaration.
5453 (template_to_static_fixed_type): Fields of dynamic types sometimes
5454 also need to be unwrapped. Take this into account.
5455 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5456 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5457 * ada-typeprint.c (ada_print_type): Get the typename from
5458 the original type, not the base type.
5459
5460 2008-01-03 Jerome Guitton <guitton@adacore.com>
5461
5462 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5463 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5464 Update calls to ada_to_fixed_type.
5465 (ada_template_to_fixed_record_type_1): Ditto, but without looking
5466 for the tag.
5467 (ada_to_fixed_type): Add check_tag parameter; do not look for
5468 tag if null. When looking for a tag, use a fixed record type.
5469 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
5470 * ada-valprint.c (printable_val_type, ada_value_print): Update
5471 calls to ada_to_fixed_type.
5472
5473 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
5474
5475 * doublest.c (convert_floatformat_to_doublest): Call
5476 floatformat_to_doublest instead of floatformat_to_double and use
5477 DOUBLEST variables.
5478 (convert_doublest_to_floatformat): Call floatformat_from_doublest
5479 instead of floatformat_from_double and use DOUBLEST variables.
5480
5481 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
5482
5483 * MAINTAINERS (Write After Approval): Add self.
5484
5485 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5486
5487 * symfile.c (set_initial_language): Make non-static.
5488 * symfile.h (set_initial_language): Add declaration.
5489 * language.c: #include "symfile.h".
5490 (set_language): Call set_initial_language if the frame language
5491 could not be determined.
5492
5493 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
5494
5495 * eval.c (evaluate_subexp_for_address): Provide frame address to
5496 locate_var_value only if it will be needed.
5497
5498 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
5501
5502 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5503
5504 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
5505 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
5506 This is needed to make sure that any other treatment applied
5507 to the resulting value does not fail for spurious reason,
5508 such as trying to take the address of this value.
5509
5510 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5511
5512 * ada-lang.c (ada_value_equal): Dereference reference types when
5513 comparing arrays.
5514
5515 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
5516
5517 Updated copyright notices for most files.
5518
5519 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
5520
5521 * win32-nat.c (psapi_module_handle): Remove static.
5522 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
5523 return first module found if base_address is zero. Don't initialize
5524 psapi function pointers here. Convert to cygwin paths when
5525 appropriate.
5526 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
5527 executable name. Use get_module_name when that fails or when
5528 !__CYGWIN__.
5529 (_initialize_psapi): New function. Initialize psapi stuff before it is
5530 needed or issue a warning if it is not found. Move psapi_module_handle
5531 here.
5532
5533 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5534
5535 * ada-lang.c (ada_remove_trailing_digits): New function.
5536 (ada_remove_po_subprogram_suffix): New function.
5537 (ada_decode): Improve. Move the description of the algorithm
5538 directly inside the code, instead of in the function global
5539 description.
5540
5541 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5542
5543 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
5544 and always print the dereferenced value.
5545
5546 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5547
5548 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
5549 of the case where the first argument is a reference.
5550 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
5551
5552 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5553
5554 Implement support for Ada interface types.
5555
5556 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
5557 (ada_is_ignored_field): Ignore fields that are a dispatch table
5558 of a tagged type.
5559
5560 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5561
5562 * top.c (print_gdb_version): Update copyright year.
5563
5564 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5565
5566 * ChangeLog-2007: New ChangeLog rotation.
5567 * ChangeLog: Reset for 2008.
5568 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
5569 ChangeLog-2007.
5570
5571 For older changes see ChangeLog-2007.
5572 \f
5573 Local Variables:
5574 mode: change-log
5575 left-margin: 8
5576 fill-column: 74
5577 version-control: never
5578 coding: utf-8
5579 End:
This page took 0.142643 seconds and 4 git commands to generate.