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