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