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