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