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