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