]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
This commit was manufactured by cvs2svn to create branch
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f581415 12008-12-26 Sandra Loosemore <sandra@codesourcery.com>
2
3 * breakpoint.c (update_watchpoint): Refactor to avoid compiler
4 warning.
5
62008-12-22 Tom Tromey <tromey@redhat.com>
7
8 * stack.c (print_block_frame_locals): Print spaces, not tabs.
9 Update for call to print_variable_and_value.
10 (print_frame_arg_vars): Update.
11 * value.h (print_variable_and_value): Rename from
12 print_variable_value. Add 'name' and 'indent' parameters.
13 * printcmd.c (print_variable_and_value): Rename from
14 print_variable_value. Add 'name' and 'indent' parameters. Use
15 common_val_print.
16 * f-valprint.c (info_common_command): Update.
17
182008-12-22 Tom Tromey <tromey@redhat.com>
19
20 * python/python-value.c (valpy_length): Remove #if.
21
222008-12-22 Paul Pluzhnikov <ppluzhnikov@google.com>
23
24 * python/python-internal.h (PyEval_ReleaseLock): New define.
25
262008-12-22 Tom Tromey <tromey@redhat.com>
27
28 * c-exp.y (ident_tokens): New global.
29 (struct token) <cxx_only>: New field.
30 (tokentab3): Update.
31 (tokentab2): Update.
32 (yylex): Use ident_tokens.
33
342008-12-22 Adam Denton <adenton@yahoo.com>
35
36 PR gdb/8307:
37 * environ.c (free_environ): Free e->vector.
38
392008-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 Fix memory double-free.
42 * completer.c (line_completion_function): Clear LIST after called xfree.
43
442008-12-22 Joel Brobecker <brobecker@adacore.com>
45
46 * breakpoint.c (update_watchpoint): Adjust and extend the description
47 of this function. Fix one error message accordingly.
48
492008-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
50
51 Fix hw watchpoints created before the inferior was started.
52 * breakpoint.c (update_watchpoint): Convert the bp_watchpoint and
53 bp_hardware_watchpoint types according to the current runtime state.
54
552008-12-18 Pedro Alves <pedro@codesourcery.com>
56
57 * linux-nat.c (linux_child_follow_fork): If following the child,
58 and not detaching the parent, also add the child fork to the fork
59 list.
60 * linux-fork.c (linux_fork_context): Remove dead error call.
61 Assert that the incoming newfp argument is not null. Do not add a
62 new fork for inferior_ptid. Assert that there is one already.
63
642008-12-16 Tristan Gingold <gingold@adacore.com>
65
66 * inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
67 set_sigio_trap, clear_sigio_trap definitions.
68 * inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
69 * inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
70 and clear_sigio_trap.
71 * inf-ttrace.c (inf_ttrace_wait): Ditto.
72 * linux-nat.c (linux_nat_wait): Ditto.
73 * spu-linux-nat.c (spu_child_wait): Ditto.
74 * rs6000-nat.c (rs6000_wait): Ditto.
75 * target.c: Remove target_activity_function and target_activity_fd.
76 * target.h: Remove target_activity_function and target_activity_fd
77 declarations.
78
792008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
80
81 * dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
82 N_PSYM STABS values for 64-bit GDB.
83
842008-12-15 Tristan Gingold <gingold@adacore.com>
85
86 * dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.
87
882008-12-15 Jerome Guitton <guitton@adacore.com>
89
90 * ada-lang.c (ada_value_slice_ptr): Rename to...
91 (ada_value_slice_from_ptr): ... this. Return a lazy value instead
92 of a reference. Update comment.
93 (ada_value_struct_elt): Ditto if arg is a pointer or a reference.
94 Update comment as well.
95 (ada_evaluate_subexp): Update use of ada_value_slice_ptr.
96
972008-12-12 Kevin Buettner <kevinb@redhat.com>
98
99 * gnu-v3-abi.c (vtable_ptrdiff_type): New function.
100 (gnuv3_decode_method_ptr, gnuv3_print_method_ptr)
101 (gnuv3_method_ptr_to_value): Use a better approximation for
102 `ptrdiff_t' instead of `long'.
103
1042008-12-12 Kevin Buettner <kevinb@redhat.com>
105
106 * m32c-tdep.c (m32c_gdbarch_init): Call set_gdbarch_vbit_in_delta().
107 (m32c_push_dummy_call): Dereference pointer type.
108
1092008-12-12 Tom Tromey <tromey@redhat.com>
110
111 PR cli/2563:
112 * cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
113 (add_cmd): Update. Install hooks into new command.
114 (add_alias_cmd): Update.
115
1162008-12-11 Tom Tromey <tromey@redhat.com>
117
118 * macroexp.c (get_pp_number): Require digit after leading ".".
119 Correctly handle suffixes.
120
1212008-12-11 Tom Tromey <tromey@redhat.com>
122
123 * macrocmd.c (macro_define_command): Skip whitespace after
124 macro name.
125 (print_one_macro): Print space after macro name.
126
1272008-12-12 Pedro Alves <pedro@codesourcery.com>
128
129 * infrun.c (handle_inferior_event): Correctly tag non-executing
130 threads in multi-process.
131 (normal_stop): Correctly tag stopped threads in multi-process.
132
1332008-12-12 Pedro Alves <pedro@codesourcery.com>
134
135 * remote.c (extended_remote_mourn_1): Always call
136 generic_mourn_inferior.
137
1382008-12-12 Pedro Alves <pedro@codesourcery.com>
139
140 * remote.c (remote_detach_1): Don't delete the inferior here.
141 (process_stop_reply): Ditto.
142 (extended_remote_kill): Ditto.
143
1442008-12-12 Pedro Alves <pedro@codesourcery.com>
145
146 * remote.c (read_ptid): If we don't know about any inferior yet,
147 use the pid of magic_null_ptid.
148 (remote_start_remote): In the non-stop mode case, don't set
149 inferior_ptid to magic_null_ptid here.
150
1512008-12-11 Daniel Jacobowitz <dan@codesourcery.com>
152 Pedro Alves <pedro@codesourcery.com>
153
154 * infcmd.c (step_1): Use step_once in the synchronous case too.
155 (step_1_continuation): Wrap line.
156 (step_once): Adjust comment. Only install the continuation in
157 async mode.
158
1592008-12-11 Pedro Alves <pedro@codesourcery.com>
160
161 * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
162 TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
163 * linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
164 or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
165 returned.
166 * inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
167 minus_one_ptid if the inferior disappeared.
168 * rs6000-nat.c (rs6000_wait): Likewise.
169 * spu-linux-nat.c (spu_child_wait): Likewise.
170
1712008-12-11 Tom Tromey <tromey@redhat.com>
172
173 PR macros/2564:
174 * c-exp.y (macro_original_text, expansion_obstack,
175 expression_macro_scope): New globals.
176 (scan_macro_expansion): New function.
177 (scanning_macro_expansion): Likewise.
178 (finished_macro_expansion): Likewise.
179 (scan_macro_cleanup): Likewise.
180 (c_parse): Find macro scope. Initialize obstack.
181 * c-lang.h (scan_macro_expansion, scanning_macro_expansion,
182 finished_macro_expansion, expression_macro_lookup_func,
183 expression_macro_lookup_baton): Remove.
184 * c-lang.c (scan_macro_expansion, scanning_macro_expansion,
185 finished_macro_expansion, expression_macro_lookup_func,
186 expression_macro_lookup_baton): Remove.
187 (macro_original_text, macro_expanded_text,
188 c_preprocess_and_parse): Remove.
189 (c_language_defn, cplus_language_defn, asm_language_defn,
190 minimal_language_defn): Use c_parse.
191
1922008-12-10 Pedro Alves <pedro@codesourcery.com>
193
194 * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
195 instead of read_pc.
196
1972008-12-09 Tom Tromey <tromey@redhat.com>
198
199 PR gdb/1815:
200 * cli/cli-decode.c (delete_cmd): Forward declare.
201 (delete_cmd): Now static. Change return type. Remove command
202 from alias chain. Rewrite.
203 (add_cmd): Initialize new fields. Update cmd_pointer on all
204 aliases.
205 (add_alias_cmd): Put command on alias chain.
206 * command.h (delete_cmd): Don't declare.
207 * cli/cli-decode.h (delete_cmd): Don't declare.
208 (struct cmd_list_element) <aliases, alias_chain>: New fields.
209
2102008-12-09 Tom Tromey <tromey@redhat.com>
211
212 * config.in, configure: Rebuild.
213 * configure.ac: Check for locale.h, setlocale. Call
214 AM_LC_MESSAGES.
215 * acinclude.m4: Include lcmessage.m4.
216
2172008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
220
2212008-12-08 Joel Brobecker <brobecker@adacore.com>
222
223 * python/python-value.c (values_in_python): Add specific initialization
224 to NULL to work-around a MacOS linker bug.
225
2262008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 Fix loc_type of `bp_location's created by update_watchpoint.
229 * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
230 Replace bp_type by bpt->type. Update prototype. All callers updated.
231 (add_location_to_breakpoint): Remove the bp_type parameter.
232 Replace bp_type by b->type. All callers updated.
233 (set_breakpoint_location_function): Replace bptype by b->type.
234
2352008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
236
237 * breakpoint.c (update_global_location_list): Fix the comment.
238
2392008-12-05 Pedro Alves <pedro@codesourcery.com>
240
241 * infcmd.c (step_1, step_once): Look up the stepping range based
242 on the current frame's PC, not on stop_pc.
243
2442008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
245
246 Fix compilation on 32-bit host configurations.
247 * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
248
2492008-12-05 Tristan Gingold <gingold@adacore.com>
250
251 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
252 (amd64_darwin_sstep_at_sigreturn): New function.
253 (darwin_set_sstep): The sigreturn is a special case: the trace flag
254 must be set in the mcontext structure.
255
2562008-12-05 Pedro Alves <pedro@codesourcery.com>
257
258 * infcmd.c (step_once): Remove dead code.
259
2602008-12-04 Doug Evans <dje@google.com>
261
262 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
263
2642008-12-02 Doug Evans <dje@google.com>
265
266 * infrun.c (handle_inferior_event): Remove redundant resetting of
267 stepping_past_singlestep_breakpoint.
268
2692008-12-02 Pedro Alves <pedro@codesourcery.com>
270
271 * target.h (target_get_osdata): Describe.
272 * osdata.h (make_cleanup_osdata_free): Declare.
273 * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
274 not defined.
275 (osdata_free_cleanup): New.
276 (make_cleanup_osdata_free): New.
277 (get_osdata): Fix leak.
278 (info_osdata_command): Use make_cleanup_osdata_free.
279 (info_processes_command): Delete.
280 (_initialize_osdata): Drop undocumented "info processes" alias.
281 * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
282
2832008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 Fix resolving external references to TLS variables.
286 * findvar.c: Include `objfiles.h'.
287 (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
288 SEC_THREAD_LOCAL variables.
289 * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
290 variables.
291
2922008-12-02 Doug Evans <dje@google.com>
293
294 * infrun.c (handle_inferior_event): Delete unused local tp.
295
2962008-12-02 Pedro Alves <pedro@codesourcery.com>
297 Vladimir Prus <vladimir@codesourcery.com>
298
299 Implement -list-thread-groups --available
300
301 * Makefile.in (XMLFILES): Add osdata.dtd.
302 (SFILES): Add osdata.c.
303 (COMMON_OBS): Add osdata.o.
304 * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
305 (linux_nat_xfer_osdata): New function.
306 (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
307 * osdata.c: New file.
308 * osdata.h: New file.
309 * remote.c (PACKET_qXfer_osdata): New packet enum.
310 (remote_protocol_features): Add "qXfer:osdata:read".
311 (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
312 (extended_remote_can_run): New.
313 (init_extended_remote_ops): Set to_can_run to
314 extended_remote_can_run.
315 (_initialize_remote): Add packet config command for
316 "qXfer:osdata:read".
317 * xml-support.c (obstack_xml_printf): New function.
318 * xml-support.h (obstack_xml_printf): Declare.
319 * target.c (target_get_osdata): New function.
320 * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
321 (target_os_data): Declare.
322 * features/osdata.dtd: New file.
323 * mi/mi-main.c (mi_list_thread_groups): Handle the --available
324 option.
325
3262008-12-01 Doug Evans <dje@google.com>
327
328 * infrun.c (proceed): Delete unused local stop_signal.
329
3302008-11-27 Tristan Gingold <gingold@adacore.com>
331
332 * NEWS: Add entry for new native configuration: Darwin.
333 * configure.host: Add Darwin host.
334 * configure.tgt: Add Darwin target.
335 * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
336 * osabi.c (gdb_osabi_names): Add name for Darwin abi.
337 * i386-darwin-nat.c: New file.
338 * i386-darwin-tdep.c: New file.
339 * machoread.c: New file.
340 * darwin-nat-info.c: New file.
341 * darwin-nat.c: New file.
342 * darwin-nat.h: New file.
343 * darwin.defs: New file.
344 * config/i386/darwin.mh: New file.
345
3462008-11-26 Tristan Gingold <gingold@adacore.com>
347
348 * MAINTAINERS: Add myself for write after approval privileges.
349
3502008-11-26 Jerome Guitton <guitton@adacore.com>
351
352 * value.h (allocate_value_lazy): New function declaration.
353 (value_free): Remove macro, make it a function.
354 * value.c (value): Move actual content outside of the memory space
355 of the struct; add a pointer to this actual content.
356 (allocate_value_lazy, allocate_value_contents): New function.
357 (allocate_value): Reimplement using these two new functions.
358 (value_contents_raw, value_contents_all_raw): If no memory
359 has been allocated yet for the actual content, allocate it.
360 (value_contents_all): Resync with struct value's changes.
361 (value_free): New function.
362 (value_copy, value_primitive_field): Use new function
363 allocate_value_lazy to allocate lazy values.
364 (value_change_enclosing_type): Resync with struct value's changes.
365 As the value is not reallocated, remove the special handling for
366 the value chain (now obsolete).
367 * valops.c (value_at_lazy): Use new function allocate_value_lazy.
368 (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
369 to allocate lazy values.
370 (value_slice): Use allocate_value_lazy to allocate lazy values.
371
3722008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
373
374 Fix automatic restoration of breakpoints memory for ia64.
375 * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
376 (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
377 content. Remove variable instr. New variable cleanup. Disable
378 automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
379 set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
380 error if even just final target_write_memory has failed.
381 (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
382 and instr to instr_saved. New variables bundle_saved and
383 instr_breakpoint. Comment new reasons why we need to disable automatic
384 restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
385 check of the original memory content. Return error if even just final
386 target_write_memory has failed.
387 (ia64_breakpoint_from_pc): Implement the emulation of permanent
388 breakpoints compatible with current bp_loc_is_permanent.
389 (template_encoding_table): Make it `const'.
390 * breakpoint.c (bp_loc_is_permanent): Support unsupported software
391 breakpoints. New variables `cleanup' and `retval'.
392
3932008-11-24 Tom Tromey <tromey@redhat.com>
394
395 * ada-lang.c (value_from_contents_and_address): Move...
396 * value.c: ... here.
397 * ada-lang.h (value_from_contents_and_address): Move
398 declaration...
399 * value.h: ... here.
400
4012008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
402
403 * valprint.c (val_print_array_elements): Pass correct
404 element address to val_print.
405
4062008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 Fix access of an already freed memory.
409 * parse.c (parse_field_expression): Call xstrdup on `*name'.
410 * completer.c (expression_completer): Free fieldname.
411
4122008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
413
414 PR gdb/2474
415 * remote.c (remote_read_description_p): New function.
416 (remote_start_remote): Try to fetch the target description
417 before adding shared libraries. Try again later if the
418 target is running but stopped.
419 (remote_open_1): Mark extended targets as exited by default.
420 (remote_read_description): Check target_has_execution.
421
4222008-11-24 Jerome Guitton <guitton@adacore.com>
423
424 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
425 the frame address in block instead of the return address to
426 locate the mdebug PDR of the frame.
427
4282008-11-21 Joel Brobecker <brobecker@adacore.com>
429
430 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
431
432 * breakpoint.h (enum bpstat_what_main_action): Remove
433 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
434 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
435 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
436 variable table.
437 * infrun.c (wait_for_inferior): Remove handling of
438 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
439
4402008-11-21 Tom Tromey <tromey@redhat.com>
441
442 * configure: Rebuild.
443 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
444 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
445
4462008-11-21 Tom Tromey <tromey@redhat.com>
447
448 * python/python-internal.h (PyGILState_Ensure): New define.
449 (PyGILState_Release): Likewise.
450 (PyEval_InitThreads): Likewise.
451 (PyThreadState_Swap): Likewise.
452 (PyEval_InitThreads): Likewise.
453 * python/python.c (_initialize_python): Initialize threads.
454 Release GIL.
455 (eval_python_from_control_command): Acquire GIL.
456 (python_command): Likewise.
457 * python/python-internal.h (make_cleanup_py_restore_gil):
458 Declare.
459 * python/python-utils.c (py_gil_restore): New function.
460 (make_cleanup_py_restore_gil): Likewise.
461
4622008-11-20 Doug Evans <dje@google.com>
463
464 * frame.c (frame_debug_got_null_frame): Remove file arg.
465 All callers updated.
466
4672008-11-20 Pedro Alves <pedro@codesourcery.com>
468
469 * infrun.c (resume): If following a fork, also reset regcache,
470 gdbarch and pc.
471
4722008-11-20 Doug Evans <dje@google.com>
473
474 * printcmd.c (sym_info): Don't print the offset if it's zero.
475
4762008-11-20 Pedro Alves <pedro@codesourcery.com>
477
478 * infrun.c (resume): If following a fork, reread the current
479 thread. Avoid dereferencing a possibly dangling pointer.
480
b4812cfe 4812008-11-19 Doug Evans <dje@google.com>
482
483 * inferior.h (proceed_to_finish): Delete, unused.
484 (stop_registers): Tweak comment.
485 * infrun.c (stop_registers): Tweak comment.
486
4872008-11-19 Kevin Buettner <kevinb@redhat.com>
488
489 * frv-tdep.c (frv_skip_main_prologue): New function.
490 (frv_gdbarch_init): Register frv_skip_main_prologue.
491 * solib-frv.c (fetch_loadmap): Return early when no segments are
492 found.
493 (frv_relocate_main_executable): Return early when both interpreter
494 and executable loadmap addresses are zero.
495
4962008-11-19 Bob Wilson <bob.wilson@acm.org>
497
498 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
499 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
500 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
501 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
502 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
503 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
504 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
505 (xtensa_submask15): Adjust register numbers.
506 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
507 (xtensa_regmap_table): Add entry for scompare1.
508 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
509 and scompare1.
510
5112008-11-19 Pedro Alves <pedro@codesourcery.com>
512
513 * remote.c (escape_buffer): New.
514 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
515 sure debug output printing a packet buffer goes through a single
516 fprintf_unfiltered call.
517 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
518 output with a newline if it wasn't going to already.
519
5202008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
521
522 * maint.c (maintenance_translate_address): Fix a buglet.
523
5242008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
525
526 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
527 rs6000/powerpc-isa205-altivec32l-expedite,
528 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
529 rs6000/powerpc-isa205-altivec64l-expedite,
530 powerpc-isa205-vsx64l-expedite): New variables.
531 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
532 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
533 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
534 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
535 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
536 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
537
5382008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
539
540 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
541 offset for full 64-bit slot of FPSCR when in 32-bits.
542 (ppc_linux_read_description): Return target description with 64-bit
543 FPSCR when inferior is running on an ISA 2.05 or later processor.
544 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
545 initialize_tdec_powerpc_isa205_32l,
546 initialize_tdec_powerpc_isa205_altivec32l,
547 initialize_tdec_powerpc_isa205_vsx32l,
548 initialize_tdec_powerpc_isa205_64l,
549 initialize_tdec_powerpc_isa205_altivec64l and
550 initialize_tdec_powerpc_isa205_vsx64l.
551 * ppc-linux-tdep.h: Add external declaration for
552 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
553 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
554 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
555 * features/rs600/powerpc-fpu-isa205.xml: New file.
556 * features/rs600/powerpc-isa205-32l.xml: New file.
557 * features/rs600/powerpc-isa205-64l.xml: New file.
558 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
559 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
560 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
561 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
562 * features/rs600/powerpc-isa205-32l.c: Generate.
563 * features/rs600/powerpc-isa205-64l.c: Generate.
564 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
565 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
566 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
567 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
568
5692008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
570
571 * objfiles.h: New MULTI_OBJFILE_P macro.
572 * printcmd.c (sym_info): Print object name.
573 * maint.c (maintenance_translate_address): Likewise.
574
5752008-11-18 Joel Brobecker <brobecker@adacore.com>
576
577 * NEWS: Document the removal of "catch load" and "catch unload".
578
5792008-11-17 Doug Evans <dje@google.com>
580
581 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
582 on error messages.
583
5842008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
585
586 PR gdb/2250
587 * infrun.c (clear_proceed_status_thread): New function.
588 (clear_proceed_status_callback): New function.
589 (clear_proceed_status): In all-stop mode, clear per-thread
590 proceed status of *all* threads, not only the current.
591 (handle_inferior_event): In all-stop mode, if we're stepping
592 one thread, but got some inferior event in another thread
593 that does not cause GDB to break to the user interface,
594 ensure the interrupted stepping operation continues in the
595 original thread.
596 (currently_stepping): Move thread-related tests to ...
597 (currently_stepping_thread): ... this new function.
598 (currently_stepping_callback): New function.
599
6002008-11-17 Vladimir Prus <vladimir@codesourcery.com>
601
602 Implement =thread-selected notification.
603
604 * mi/mi-common.h (struct mi_interp): New, moved from ...
605 * mi/mi-interp.c: ...here.
606 * mi/mi-main.c (mi_execute_command): If the thread changed
607 as result of command, report that.
608
6092008-11-17 Vladimir Prus <vladimir@codesourcery.com>
610
611 Implement continue/interrupt of thread groups.
612
613 * mi/mi-main.c (proceed_thread_callback): New.
614 (mi_cmd_exec_continue): If --thread-group is specified, resume all
615 threads in that group.
616 (interrupt_thread_callback): New.
617 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
618 all threads in that group.
619
6202008-11-17 Vladimir Prus <vladimir@codesourcery.com>
621
622 Implement '-target-detach pid'.
623
624 * infcmd.c (detach_command): Make nonstatic.
625 * inferior.h (detach_command): Declare.
626 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
627 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
628 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
629
6302008-11-17 Vladimir Prus <vladimir@codesourcery.com>
631
632 Include group-id in thread-created notification.
633
634 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
635 group id in the output.
636
6372008-11-17 Vladimir Prus <vladimir@codesourcery.com>
638
639 Notification for attach/detach.
640
641 * inferior.c: Call the process observers.
642 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
643 (mi_interpreter_init): Register the above.
644
6452008-11-17 Vladimir Prus <vladimir@codesourcery.com>
646
647 Implement -list-thread-groups.
648
649 * thread.c (print_thread_info): New parameter pid, to print
650 threads of specific process.
651 * gdbthread.h (print_thread_info): New parameter pid.
652 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
653 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
654 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
655 (print_one_process, mi_cmd_list_thread_groups): New.
656
6572008-11-16 Joel Brobecker <brobecker@adacore.com>
658
659 Remove some unused macros related to the old load/unload catchpoints.
660
661 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
662 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
663 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
664
6652008-11-16 Joel Brobecker <brobecker@adacore.com>
666
667 Remove support for catch load and catch unload commands.
668
669 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
670 (struct breakpoint): Remove fields dll_pathname and
671 triggered_dll_pathname.
672 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
673 * breakpoint.c (ep_is_catchpoint): Remove handling of
674 bp_catch_load and bp_catch_unload.
675 (print_it_typical, bpstat_check_location, bpstat_what)
676 (print_one_breakpoint_location, print_one_breakpoint_location)
677 (user_settable_breakpoint, allocate_bp_location)
678 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
679 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
680 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
681 (catch_load_command_1, catch_unload_command_1): Delete.
682 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
683 command creation.
684 * infrun.c (handle_inferior_event): Remove the handling of
685 load/unload catchpoint events.
686
6872008-11-15 Joel Brobecker <brobecker@adacore.com>
688
689 From Jerome Guitton <guitton@adacore.com>
690 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
691 New function.
692 (dwarf_decode_lines): Detect null file numbers. Detect the end of
693 the line program sequence when no end sequence is emitted.
694
6952008-11-15 Joel Brobecker <brobecker@adacore.com>
696
697 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
698 type dereferencing.
699
7002008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
701
702 * NEWS: Mention sparc64-linux-gnu gdbserver support.
703
7042008-11-14 Daniel Gutson <dgutson@codesourcery.com>
705
706 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
707 * regformats/reg-sparc64.dat: New file.
708
7092008-11-14 Tom Tromey <tromey@redhat.com>
710
711 PR mi/2549:
712 * mi/mi-main.c (get_register): Use get_formatted_print_options.
713
7142008-11-13 Joel Brobecker <brobecker@adacore.com>
715
716 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
717
7182008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
719
720 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
721 AT_EXECFN. Re-sort AT_SECURE.
722
7232008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
724
725 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
726
7272008-11-13 Joel Brobecker <brobecker@adacore.com>
728
729 * ia64-tdep.c: Remove commented out #define.
730
7312008-11-12 Joel Brobecker <brobecker@adacore.com>
732
733 From Joel Sherrill <joel.sherrill@oarcorp.com>
734 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
735 instead of the "gdbsim_ops" global.
736
7372008-11-11 Doug Evans <dje@google.com>
738
739 * infcall.c (call_function_by_hand): Handle inferior exit.
740
7412008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
742
743 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
744 missing struct target_ops argument.
745
7462008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
747
748 * MAINTAINERS: Add myself for write after approval privileges.
749
7502008-11-10 Tom Tromey <tromey@redhat.com>
751
752 * gdbtypes.c (copy_type_recursive): Clear new fields.
753
7542008-11-10 Tom Tromey <tromey@redhat.com>
755
756 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
757 cleanups on early return.
758
7592008-11-09 Vladimir Prus <vladimir@codesourcery.com>
760
761 Kill pthread_ops_hack
762
763 * target.h (struct target_ops): Make to_attach, to_detach,
764 to_create_inferior and to_mourn_inferior accept a pointer
765 to struct target_ops.
766 (target_attach, target_create_inferior, target_create_inferior):
767 Convert from macros to function. Find the right target to
768 invoke a method of.
769 (find_default_attach, find_default_create_inferior): New parameter
770 ops.
771 * corefile.c (core_file_command): Pass target to to_detach.
772 * corelow.c (core_detach): Add 'ops' parameter.
773 * fork-child.c (fork_inferior): Return the pid. Allow
774 init_trace_fun to be NULL.
775 * inf-ptrace (ptrace_ops_hack): Remove.
776 (inf_ptrace_him): Remove, moving all logic into....
777 (inf_ptrace_create_inferior): ... here. Push the target
778 passed as parameter.
779 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
780 Push/pop target passed as parameter, no ptrace_ops_hack.
781 (inf_ptrace_target): Don't remember result.
782 * inferior.h (fork_inferior): Adjust prototype.
783 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
784 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
785 Pass it to linux_ops target.
786 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
787 New parameter ops. Pass it to the target beneath.
788 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
789 (extended_remote_create_inferior): New parameter ops. Pass it
790 further.
791 * target.c (debug_to_attach, debug_to_detach)
792 (debug_to_mourn_inferior): New parameter ops.
793 (target_create_inferior): New.
794 (update_current_target): Do not inherit to_attach, to_detach,
795 to_create_inferiour, to_mourn_inferior. Do not default
796 to_detach and to_mourn_inferior.
797 (target_detach): Find the right target to use.
798 (target_mourn_inferior): New.
799 (find_default_attach, find_default_create_inferior): New parameter
800 ops. Pass the found target when calling its method.
801 (init_dummy_target): Provide fallback definition of to_detach.
802 (target_attach): New.
803 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
804 (debug_to_mourn_inferiour): New parameter ops.
805 * aix-thread.c: Adjust.
806 * bsd-uthread.c: Adjust.
807 * gnu-nat.c: Adjust.
808 * go32-nat.c: Adjust.
809 * hpux-thread.c: Adjust.
810 * inf-ttrace.c: Ajust.
811 * monitor.c: Adjust.
812 * nto-procfs.c: Adjust.
813 * procfs.c: Adjust.
814 * remote-m32r-sdi.c: Adjust.
815 * remote-mips.c: Adjust.
816 * remote-sim.c: Adjust.
817 * rs6000-nat.c: Adjust.
818 * sol-thread.c: Adjust.
819 * win32-nat.c: Adjust.
820 * dec-thread.c: Adjust.
821
8222008-11-09 Vladimir Prus <vladimir@codesourcery.com>
823
824 * thread.c (print_thread_info): Eliminate now useless checks
825 for exited threads.
826
8272008-11-06 Pedro Alves <pedro@codesourcery.com>
828
829 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
830 to 0.
831
8322008-11-05 Pedro Alves <pedro@codesourcery.com>
833
834 * remote.c (notice_new_inferiors): Add a new inferior only when
835 we're going to add a new thread.
836
8372008-11-05 Pedro Alves <pedro@codesourcery.com>
838
839 * defs.h (add_inferior_continuation)
840 (do_all_inferior_continuations)
841 (discard_all_inferior_continuations): Declare.
842 * utils.c (add_inferior_continuation)
843 (do_all_inferior_continuations)
844 (discard_all_inferior_continuations): New.
845 * inferior.h (struct inferior) <continuations>: New field.
846 * inferior.c (free_inferior): Discard all the inferior
847 continuations.
848 * inf-loop.c (inferior_event_handler): Do all current inferior
849 continuations.
850 * infcmd.c (attach_command): Register an inferior continuation
851 instead of a thread continuation.
852 * infrun.c (handle_inferior_event): If stop_soon is
853 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
854
8552008-11-04 Pedro Alves <pedro@codesourcery.com>
856
857 * inf-loop.c (inferior_event_handler): On INF_ERROR and
858 INF_REG_EVENT throwing, don't call target_async or pop_target.
859 Call pop_all_targets_above.
860 * remote.c (remote_close): Call remote_terminal_ours. Don't call
861 signal or target_async.
862
8632008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
864
865 * eval.c (evaluate_subexp_standard): Assert that there is at
866 least one array dimension.
867
8682008-11-03 Vladimir Prus <vladimir@codesourcery.com>
869
870 Make attach_command exception-safe
871 * infcmd.c (attach_command): Call async_enable_stdin
872 if exception is thrown.
873
8742008-11-03 Pedro Alves <pedro@codesourcery.com>
875
876 * gdbarch.sh (has_global_solist): Mention global breakpoints.
877 * gdbarch.h: Regenerate.
878
8792008-11-03 Pedro Alves <pedro@codesourcery.com>
880
881 * remote.c (remote_start_remote): If the solib list is global,
882 fetch libraries and insert breakpoints after connecting.
883 * infcmd.c (post_create_inferior): If the solist is shared between
884 inferiors, no need to refetch it on every new inferior.
885 (detach_command): If the shared library list is shared between
886 inferiors, then don't clear it on every inferior detach.
887 * gdbarch.sh (has_global_solist): New.
888 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
889 gdbarch_has_global_solist.
890 * target.c (target_pre_inferior): If the shared library list is
891 shared between inferiors, then don't clear it here, neither
892 invalidate the memory regions or clear the target description.
893 (target_detach): If the shared library list is shared between
894 inferiors, then don't remove breakpoints from the target here.
895 (target_disconnect): Comment.
896 * solib.c (update_solib_list): Check for null_ptid.
897 * breakpoint.c (insert_breakpoints, update_global_location_list):
898 If the shared library list is shared between inferiors, insert
899 breakpoints even if there's no execution.
900 (breakpoint_init_inferior): If the shared library list is shared
901 between inferiors, don't delete breakpoints or mark them
902 uninserted here.
903
904 * gdbarch.c, gdbarch.h: Regenerate.
905
9062008-10-31 Pedro Alves <pedro@codesourcery.com>
907
908 * inferior.h (inferior_ignoring_leading_exec_events): Delete
909 declaration.
910
9112008-10-31 Pedro Alves <pedro@codesourcery.com>
912
913 * inferior.h (write_inferior_status_register): Delete.
914 * infrun.c (write_inferior_status_register): Delete.
915
9162008-10-30 Tom Tromey <tromey@redhat.com>
917
918 * value.c (coerce_array): Use check_typedef.
919
9202008-10-30 Tom Tromey <tromey@redhat.com>
921
922 * cli/cli-logging.c (handle_redirections): Make a cleanup.
923 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
924 * regcache.c (regcache_print): Make a cleanup.
925 * maint.c (maintenance_print_architecture): Make a cleanup.
926 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
927
9282008-10-30 Tom Tromey <tromey@redhat.com>
929
930 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
931 (do_close_cleanup): Don't free 'fd'.
932
9332008-10-30 Tom Tromey <tromey@redhat.com>
934
935 * source.c (symtab_to_fullname): Test 'r >= 0'.
936 (psymtab_to_fullname): Likewise.
937 (get_filename_and_charpos): Make a cleanup.
938 (forward_search_command): Likewise.
939 (reverse_search_command): Likewise.
940 * exec.c (exec_file_attach): Close scratch_chan on failure.
941 * nto-procfs.c (procfs_open): Make a cleanup.
942 (procfs_pidlist): Likewise.
943 (do_closedir_cleanup): New function.
944
9452008-10-30 Andreas Schwab <schwab@suse.de>
946
947 * infcmd.c (construct_inferior_arguments): Handle newlines
948 specially.
949
9502008-10-30 Joel Brobecker <brobecker@adacore.com>
951
952 * breakpoint.h (enum bptype): Delete bp_catch_exec.
953 * breakpoint.c (insert_catchpoint): Remove handling for
954 bp_catch_exec breakpoint kinds.
955 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
956 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
957 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
958 (print_one_breakpoint_location, user_settable_breakpoint)
959 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
960 (allocate_bp_location, mention, breakpoint_re_set_one)
961 (disable_command, enable_command): Likewise.
962 (create_exec_event_catchpoint): Delete.
963 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
964 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
965 New functions.
966 (catch_exec_breakpoint_ops): New static global.
967 (catch_exec_command_1): Use create_catchpoint instead of
968 create_exec_event_catchpoint to create the exec catchpoint.
969
9702008-10-28 Tom Tromey <tromey@redhat.com>
971
972 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
973 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
974 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
975 (cli-utils.o): Remove.
976 * cli/cli-utils.c: Remove.
977 * cli/cli-utils.h: Remove.
978
9792008-10-28 Tom Tromey <tromey@redhat.com>
980
981 * varobj.c (value_get_print_value): Include valprint.h.
982 (value_get_print_value): Use get_formatted_print_options.
983 * value.h (struct value_print_options): Declare.
984 (value_print, val_print, common_val_print, val_print_string):
985 Update.
986 * value.c: Include valprint.h.
987 (show_values): Use get_user_print_options.
988 (show_convenience): Likewise.
989 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
990 declare.
991 (struct value_print_options): New type.
992 (vtblprint, unionprint, addressprint, objectprint, print_max,
993 inspect_it, repeat_count_threshold, output_format,
994 stop_print_at_null): Don't declare.
995 (user_print_options, get_user_print_options,
996 get_raw_print_options, get_formatted_print_options): Declare.
997 (print_array_indexes_p): Don't declare.
998 (maybe_print_array_index, val_print_array_elements): Update.
999 * valprint.c (print_max): Remove.
1000 (user_print_options): New global.
1001 (get_user_print_options, get_raw_print_options,
1002 get_formatted_print_options): New functions.
1003 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
1004 prettyprint_structs, prettyprint_arrays, unionprint,
1005 addressprint): Remove.
1006 (val_print): Remove format, deref_ref, pretty arguments; add
1007 options. Update.
1008 (common_val_print): Likewise.
1009 (print_array_indexes_p): Remove.
1010 (maybe_print_array_index): Remove format, pretty arguments; add
1011 options. Update.
1012 (val_print_array_elements): Remove format, deref_ref, pretty
1013 arguments; add options. Update.
1014 (val_print_string): Add options argument. Update.
1015 (_initialize_valprint): Use user_print_options.
1016 (output_format): Remove.
1017 (set_output_radix_1): Use user_print_options.
1018 * typeprint.c: Include valprint.h.
1019 (objectprint): Don't declare.
1020 (whatis_exp): Use get_user_print_options.
1021 * tui/tui-regs.c: Include valprint.h.
1022 (tui_register_format): Use get_formatted_print_options.
1023 * tracepoint.c: Include valprint.h.
1024 (addressprint): Don't declare.
1025 (trace_mention): Use get_user_print_options.
1026 (tracepoints_info): Likewise.
1027 * stack.c (print_frame_args): Use get_raw_print_options.
1028 (print_frame_info): Use get_user_print_options.
1029 (print_frame): Likewise.
1030 * sh64-tdep.c: Include valprint.h
1031 (sh64_do_register): Use get_formatted_print_options.
1032 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
1033 pretty arguments; add options.
1034 (scm_scmlist_print): Likewise. Update.
1035 (scm_scmval_print): Likewise.
1036 (scm_val_print): Likewise.
1037 (scm_value_print): Remove format, pretty arguments; add options.
1038 Update.
1039 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
1040 Update.
1041 * scm-lang.c (scm_printstr): Add options argument.
1042 * python/python-value.c: Include valprint.h.
1043 (valpy_str): Use get_user_print_options.
1044 * printcmd.c: Include valprint.h.
1045 (addressprint): Don't declare.
1046 (inspect_it): Remove.
1047 (print_formatted): Remove format option; add options. Update.
1048 (print_scalar_formatted): Likewise.
1049 (print_address_demangle): Use get_user_print_options.
1050 (do_examine): Use get_formatted_print_options.
1051 (print_command_1): Likewise.
1052 (output_command): Use get_formatted_print_options.
1053 (do_one_display): Likewise.
1054 (print_variable_value): Use get_user_print_options.
1055 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
1056 pretty arguments; add options. Update.
1057 (pascal_value_print): Remove format, pretty arguments; add
1058 options. Update.
1059 (vtblprint, objectprint): Don't declare.
1060 (pascal_static_field_print): Remove.
1061 (pascal_object_print_value_fields): Remove format, pretty
1062 arguments; add options. Update.
1063 (pascal_object_print_static_field): Likewise.
1064 (_initialize_pascal_valprint): Use user_print_options. Update.
1065 * p-lang.h (pascal_val_print, pascal_value_print,
1066 pascal_printstr, pascal_object_print_value_fields): Update.
1067 (vtblprint, static_field_print): Don't declare.
1068 * p-lang.c (pascal_printstr): Add options argument. Update.
1069 * objc-lang.c (objc_printstr): Add options argument. Update.
1070 * mt-tdep.c: Include valprint.h.
1071 (mt_registers_info): Use get_raw_print_options.
1072 * mips-tdep.c: Include valprint.h.
1073 (mips_print_fp_register): Use get_formatted_print_options.
1074 (mips_print_register): Likewise.
1075 * mi/mi-main.c: Include valprint.h.
1076 (get_register): Use get_user_print_options.
1077 (mi_cmd_data_evaluate_expression): Likewise.
1078 (mi_cmd_data_read_memory): Use get_formatted_print_options.
1079 * mi/mi-cmd-stack.c: Include valprint.h.
1080 (list_args_or_locals): Use get_raw_print_options.
1081 * m2-valprint.c (print_function_pointer_address): Add addressprint
1082 argument.
1083 (m2_print_long_set): Remove format, pretty arguments.
1084 (m2_print_unbounded_array): Remove format, deref_ref, pretty
1085 arguments; add options. Update.
1086 (print_unpacked_pointer): Remove format argument; add options.
1087 Now static. Update.
1088 (print_variable_at_address): Remove format, deref_ref, pretty
1089 arguments; add options. Update.
1090 (m2_print_array_contents): Likewise.
1091 (m2_val_print): Likewise.
1092 * m2-lang.h (m2_val_print): Update.
1093 * m2-lang.c (m2_printstr): Add options argument. Update.
1094 * language.h (struct value_print_options): Declare.
1095 (struct language_defn) <la_printstr>: Add options argument.
1096 <la_val_print>: Remove format, deref_ref, pretty argument; add
1097 options.
1098 <la_value_print>: Remove format, pretty arguments; add options.
1099 <la_print_array_index>: Likewise.
1100 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
1101 LA_PRINT_ARRAY_INDEX): Update.
1102 (default_print_array_index): Update.
1103 * language.c (default_print_array_index): Remove format, pretty
1104 arguments; add options. Update.
1105 (unk_lang_printstr): Add options argument.
1106 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
1107 add options.
1108 (unk_lang_value_print): Remove format, pretty arguments; add
1109 options.
1110 * jv-valprint.c (java_value_print): Remove format, pretty
1111 arguments; add options. Update.
1112 (java_print_value_fields): Likewise.
1113 (java_val_print): Remove format, deref_ref, pretty arguments; add
1114 options. Update.
1115 * jv-lang.h (java_val_print, java_value_print): Declare.
1116 * infcmd.c: Include valprint.h.
1117 (print_return_value): Use get_raw_print_options.
1118 (default_print_registers_info): Use get_user_print_options,
1119 get_formatted_print_options.
1120 (registers_info): Use get_formatted_print_options.
1121 * gdbtypes.h (struct value_print_options): Declare.
1122 (print_scalar_formatted): Update.
1123 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
1124 pretty arguments; add options. Update.
1125 (f77_print_array): Likewise.
1126 (f_val_print): Likewise.
1127 * f-lang.h (f_val_print): Update.
1128 * f-lang.c (f_printstr): Add options argument. Update.
1129 (c_value_print): Update declaration.
1130 * expprint.c: Include valprint.h.
1131 (print_subexp_standard): Use get_raw_print_options,
1132 get_user_print_options.
1133 * eval.c: Include valprint.h.
1134 (objectprint): Don't declare.
1135 (evaluate_subexp_standard): Use get_user_print_options.
1136 * cp-valprint.c (vtblprint, objectprint, static_field_print):
1137 Remove.
1138 (cp_print_value_fields): Remove format, pretty arguments; add
1139 options. Update.
1140 (cp_print_value): Likewise.
1141 (cp_print_static_field): Likewise.
1142 (_initialize_cp_valprint): Use user_print_options. Update.
1143 * c-valprint.c (print_function_pointer_address): Add addressprint
1144 argument.
1145 (c_val_print): Remove format, deref_ref, pretty arguments; add
1146 options. Update.
1147 (c_value_print): Add options argument. Update.
1148 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
1149 (vtblprint, static_field_print): Don't declare.
1150 (cp_print_value_fields): Update.
1151 * c-lang.c (c_printstr): Add options argument. Update.
1152 * breakpoint.c: Include valprint.h.
1153 (addressprint): Don't declare.
1154 (watchpoint_value_print): Use get_user_print_options.
1155 (print_one_breakpoint_location): Likewise.
1156 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
1157 print_exception_catchpoint): Likewise.
1158 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
1159 get_user_print_options.
1160 * ada-valprint.c (struct ada_val_print_args): Remove format,
1161 deref_ref, and pretty; add options.
1162 (print_optional_low_bound): Add options argument.
1163 (val_print_packed_array_elements): Remove format and pretty
1164 arguments; add options. Update.
1165 (printstr): Add options argument. Update.
1166 (ada_printstr): Likewise.
1167 (ada_val_print): Remove format, deref_ref, pretty arguments; add
1168 options argument. Update.
1169 (ada_val_print_stub): Update.
1170 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
1171 add options. Update.
1172 (ada_val_print_1): Likewise.
1173 (print_variant_part): Likewise.
1174 (ada_value_print): Remove format, pretty arguments; add options.
1175 Update.
1176 (print_record): Likewise.
1177 (print_field_values): Likewise.
1178 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
1179 Update.
1180 * ada-lang.c (ada_print_array_index): Add options argument; remove
1181 format and pretty arguments.
1182 (print_one_exception): Use get_user_print_options.
1183
11842008-10-28 Tom Tromey <tromey@redhat.com>
1185
1186 * cli/cli-script.c (do_fclose_cleanup): Remove.
1187 (script_from_file): Use make_cleanup_fclose.
1188 * xml-tdesc.c (do_cleanup_fclose): Remove.
1189 (fetch_xml_from_file): Use make_cleanup_fclose.
1190 * tracepoint.c (tracepoint_save_command): Use
1191 make_cleanup_fclose. Always free pathname.
1192 * source.c (print_source_lines_base): Use make_cleanup_fclose.
1193 * remote.c (fclose_cleanup): Remove.
1194 (remote_file_put): Use make_cleanup_fclose.
1195 (remote_file_get): Likewise.
1196 * linux-nat.c (linux_nat_find_memory_regions): Use
1197 make_cleanup_fclose.
1198 (linux_nat_info_proc_cmd): Likewise.
1199 (linux_proc_pending_signals): Likewise.
1200 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
1201 Free file name.
1202 * cli/cli-dump.c (do_fclose_cleanup): Remove.
1203 (make_cleanup_fclose): Remove.
1204 * defs.h (make_cleanup_fclose): Declare.
1205 * utils.c (do_fclose_cleanup): New function.
1206 (make_cleanup_fclose): Likewise.
1207
12082008-10-27 Pedro Alves <pedro@codesourcery.com>
1209
1210 * inflow.c (kill_command): If the target claims there is still
1211 execution, don't clear the thread list.
1212
12132008-10-27 Pedro Alves <pedro@codesourcery.com>
1214
1215 * cp-name-parser.y: Include defs.h instead of config.h.
1216 (parse_escape): Rename to ...
1217 (cp_parse_escape): ... this.
1218 (yylex): Update.
1219 (xfree) [TEST_CPNAMES]: New.
1220
12212008-10-27 Pedro Alves <pedro@codesourcery.com>
1222
1223 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
1224 2.13 and configure.in.
1225
12262008-10-27 Pedro Alves <pedro@codesourcery.com>
1227
1228 * target.h (struct target_ops) <to_supports_multi_process>: New
1229 field.
1230 (target_supports_multi_process): New define.
1231 * target.c (update_current_target): Inherit and de_fault
1232 to_supports_multi_process.
1233 * infcmd.c (attach_command): Allow attaching to multiple processes
1234 if the target supports it.
1235 (detach_command): If the target claims there is still execution,
1236 don't clear the thread list.
1237 * remote.c (remote_supports_multi_process): New.
1238 (init_remote_ops): Register remote_supports_multi_process.
1239
12402008-10-27 Pedro Alves <pedro@codesourcery.com>
1241
1242 * Makefile.in (.y.c, .l.c): sed free to xfree.
1243
12442008-10-27 Pedro Alves <pedro@codesourcery.com>
1245
1246 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
1247 $(TM_CLIBS).
1248 (CDEPS): Remove reference to $(TM_CDEPS).
1249
12502008-10-26 Michael Snyder <msnyder@vmware.com>
1251
1252 * infrun.c (handle_inferior_event): Handle dynamic symbol
1253 resolution in reverse.
1254
12552008-10-25 Joel Brobecker <brobecker@adacore.com>
1256
1257 * infrun.c: Minor comment reformatting.
1258
12592008-10-25 Pedro Alves <pedro@codesourcery.com>
1260
1261 * ada-exp.y (write_object_renaming): Use malloc instead of
1262 xmalloc.
1263 * p-exp.y (pop_current_type): Use free instead of xfree.
1264
12652008-10-24 Pedro Alves <pedro@codesourcery.com>
1266
1267 * fork-child.c (startup_inferior): Only set threads not-executing
1268 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
1269 keep waiting, don't resume. On all other cases but
1270 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
1271 the event ptid.
1272
12732008-10-24 Pedro Alves <pedro@codesourcery.com>
1274
1275 Remote non-stop mode support.
1276
1277 * remote.c (pending_stop_reply): New.
1278 (struct remote_state) <non_stop_aware, support_vCont_t>: New
1279 fields.
1280 (remote_async_inferior_event_token)
1281 (remote_async_get_pending_events_token): New.
1282 (notice_new_inferiors): New, abstracted out from record_currthread.
1283 (record_currthread): Call it.
1284 (remote_threads_info): Default threads to running in non-stop
1285 mode. In non-stop mode, only qfThreadInfo is supported.
1286 (remote_close): Discard all pending stop_replies. Close the event
1287 sources.
1288 (set_stop_requested_callback): New.
1289 (remote_start_remote): Implement non-stop mode startup. In
1290 all-stop, don't clear the thread list here.
1291 (remote_non_stop_feature): New.
1292 (remote_protocol_features): Add a "QNonStop" feature.
1293 (remote_open_1): Clear cached_wait_status and non_stop_aware.
1294 Clear the thread list here.
1295 (remote_detach_1): Discard pending stop replies of the process we
1296 detached from.
1297 (extended_remote_attach_1): Implement non-stop mode.
1298 (remote_vcont_probe): Recognize `vCont;t'.
1299 (remote_vcont_resume): Implement non-stop mode.
1300 (remote_resume): Don't set waiting_for_stop_reply in non-stop
1301 mode.
1302 (remote_stop_ns): New.
1303 (remote_stop): Rename to ...
1304 (remote_stop_as): ... this. If we have a cached wait status,
1305 don't bother interrupting the remote.
1306 (remote_stop): Reimplement as wrapper around remote_stop_as and
1307 remote_stop_ns.
1308 (interrupt_query): Don't query in async mode.
1309 (struct cached_reg, cahed_reg_t): New.
1310 (struct stop_reply): New.
1311 (stop_reply_queue): New.
1312 (stop_reply_xmalloc, stop_reply_xfree)
1313 (discard_pending_stop_replies, do_stop_reply_xfree)
1314 (queued_stop_reply, push_stop_reply, peek_stop_reply)
1315 (remote_parse_stop_reply, remote_get_pending_stop_replies)
1316 (process_stop_reply): New.
1317 (remote_wait_ns): New.
1318 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
1319 notion of current general thread is a process exit was reported.
1320 (remote_wait): Call remote_wait_ns in non-stop mode.
1321 (handle_notification): New.
1322 (putpkt_binary): Handle notifications. Don't care for
1323 waiting_for_stop_reply in non-stop mode.
1324 (getpkt_sane): Rename to ...
1325 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
1326 argument. Handle it. Handle notifications.
1327 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
1328 (getpkt_or_notif_sane): New.
1329 (select_new_thread_callback): Check for exited state instead of
1330 comparing the ptid against minus_one_ptid.
1331 (extended_remote_create_inferior_1): Query the remote about the
1332 current thread.
1333 (remote_supports_non_stop): New.
1334 (init_remote_ops): Register it.
1335 (remote_async_inferior_event_handler): New.
1336 (remote_async_get_pending_events_handler): New.
1337
1338 * infcmd.c (proceed_thread_callback): Comment.
1339 (proceed_after_attach_callback, proceed_after_attach): New.
1340 (attach_command_post_wait): In background attach, resume all
1341 threads, but only if they are unsignalled, and not explicitly
1342 stopped. In foreground attach, in non-stop mode, make sure to
1343 stop all threads of the just attached to process.
1344 (attach_command): In non-stop mode: If doing a background attach,
1345 stop at least one thread. If a foreground attach, stop all
1346 threads.
1347
13482008-10-24 Pedro Alves <pedro@codesourcery.com>
1349
1350 * event-loop.h: Mention async_event_handlers.
1351 (async_event_handler): Forward declare.
1352 (async_event_handler_func): New typedef.
1353 (create_async_event_handler, delete_async_event_handler)
1354 (mark_async_event_handler): Declare.
1355 * event-loop.c (event_data): New.
1356 (event_handler_func): Take an event_data instead of an integer.
1357 (struct gdb_event): Replace the integer file descriptor by a
1358 generic event_data.
1359 (async_event_handler): New.
1360 (async_handler_ready): Delete.
1361 (async_event_handler_list): New.
1362 (create_event): New.
1363 (create_file_event): Use it.
1364 (process_event): Adjust.
1365 (gdb_do_one_event): Poll from the event sources in round-robin
1366 fashion across calls. Be sure to consult all sources before
1367 blocking.
1368 (handle_file_event): Take an event_data instead of an integer.
1369 Adjust.
1370 (gdb_wait_for_event): Add `block' argument. Handle it.
1371 (mark_async_signal_handler): Remove unneeded cast.
1372 (invoke_async_signal_handler): Rename to ...
1373 (invoke_async_signal_handlres): ... this. Return true if any was
1374 handled.
1375 (check_async_ready): Delete
1376 (create_async_event_handler): New.
1377 (mark_async_event_handler): New.
1378 (struct async_event_handler_data): New.
1379 (invoke_async_event_handler): New.
1380 (check_async_event_handlers): New.
1381 (delete_async_event_handler): New.
1382 (handle_timer_event): Adjust.
1383
13842008-10-24 Doug Evans <dje@google.com>
1385
1386 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
1387 is NULL. Simplify obs == NULL case.
1388
13892008-10-24 Hui Zhu <teawater@gmail.com>
1390 Pedro Alves <pedro@codesourcery.com>
1391
1392 * infrun.c (can_use_displaced_stepping): Change type to
1393 const char pointer.
1394 (can_use_displaced_stepping_auto): New string.
1395 (can_use_displaced_stepping_on): New string.
1396 (can_use_displaced_stepping_off): New string.
1397 (can_use_displaced_stepping_enum): New array.
1398 (show_can_use_displaced_stepping): In auto mode, also show
1399 the current effect of the option.
1400 (use_displaced_stepping): Return non-zero if displaced
1401 stepping is auto, and can be used with GDBARCH, and in
1402 non-stop mode. Return non-zero if displaced stepping is on,
1403 and can be used with GDBARCH. Return zero otherwise.
1404 (_initialize_infrun): Make the "set displaced-stepping"
1405 command an enum command. Change its class to class_run.
1406 Place it in the top level set list. Extend help to describe
1407 the auto mode.
1408
14092008-10-23 Pedro Alves <pedro@codesourcery.com>
1410
1411 * defs.h: Mention ptid_is_pid.
1412 * inferior.h (ptid_is_pid): Declare.
1413 * gdbthread.h (struct thread_info) <stop_requested>: New field.
1414 (set_stop_requested): Declare.
1415 * infcmd.c (interrupt_target_1): Call set_stop_requested.
1416 * infrun.c (clear_proceed_status): Clear stop_requested.
1417 (infrun_thread_stop_requested_callback,
1418 infrun_thread_stop_requested): New.
1419 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
1420 thread that had an explicit stop request, pretend we got a
1421 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1422 request.
1423 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1424 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1425 instead of mentioning signal 0.
1426 (ptid_is_pid): New.
1427 * thread.c (set_stop_requested): New.
1428
1429 * linux-nat.c (queued_waitpid): Rename to ...
1430 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1431 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1432 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1433 kernel's.
1434 (send_sigint_callback): Delete.
1435 (linux_nat_stop_lwp): New.
1436 (linux_nat_stop): Use it.
1437
14382008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1439
1440 * python/python-value (valpy_getitem): Fix heap corruption.
1441
14422008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1443
1444 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1445 (procfs_create_inferior): Fetch list of threads.
1446
14472008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1448
1449 * nto-procfs.c (procfs_files_info): Fix a typo.
1450 (procfs_create_inferior): Make attach_flag per-inferior.
1451
14522008-10-23 Tom Tromey <tromey@redhat.com>
1453
1454 * python/python-value.c (value_to_value_object): Initialize
1455 owned_by_gdb field.
1456 (valpy_new): Likewise.
1457
14582008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Joel Brobecker <brobecker@adacore.com>
1460
1461 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1462 initializer. Define the strings as const.
1463 (short_task_info, info_task): Translate the strings above.
1464
14652008-10-22 Joel Brobecker <brobecker@adacore.com>
1466
1467 * NEWS: Add entry for new feature (Ada tasking support).
1468
14692008-10-22 Joel Brobecker <brobecker@adacore.com>
1470
1471 * configure.ac: On alpha-osf, error out if enable_tui is set to
1472 "yes", and set enable_tui to "no" if previously set to "auto".
1473 Check for waddstr only if TUI support was requested. Move the
1474 part of the configure script that updates various Makefile
1475 variables up, together with the check for waddstr.
1476 * configure: Regenerate.
1477
14782008-10-22 Joel brobecker <brobecker@adacore.com>
1479
1480 * gdbtypes.c (copy_type): New function.
1481 * gdbtypes.h (copy_type): Add declaration.
1482 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1483 variable, then use it.
1484
14852008-10-22 Joel Brobecker <brobecker@adacore.com>
1486
1487 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1488 (target_get_ada_task_ptid): New macro.
1489 * target.c (default_get_ada_task_ptid): New function.
1490 (update_current_target): Inherit field default_get_ada_task_ptid.
1491 (update_current_target): Make default_get_ada_task_ptid the default
1492 value for field to_get_ada_task_ptid.
1493 * ada-lang.h (struct task_control_block): Delete. Never used.
1494 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1495 Likewise.
1496 (struct ada_task_info): New.
1497 (ada_task_is_alive, ada_find_printable_frame)
1498 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1499 declarations.
1500 (ada_build_task_list): Update prototype.
1501 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1502 * ada-lang.c (ada_find_printable_frame): Make non-static.
1503 * ada-tasks.c: New file.
1504 * Makefile.in (SFILES): Add ada-tasks.c.
1505 (COMMON_OBS): Add ada-tasks.o.
1506 * linux-thread-db.c (thread_db_find_thread_from_tid)
1507 (thread_db_get_ada_task_ptid): New functions.
1508 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1509
15102008-10-22 Tom Tromey <tromey@redhat.com>
1511
1512 PR gdb/2506:
1513 * c-exp.y (string_exp): New production.
1514 (exp): Use it.
1515
15162008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1517
1518 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1519 removed before.
1520
15212008-10-20 Joel Brobecker <brobecker@adacore.com>
1522
1523 * NEWS: Add entry mentioning thread-support on Tru64
1524
15252008-10-19 Joel Brobecker <brobecker@adacore.com>
1526
1527 * dec-thread.c: New file.
1528 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1529 (NAT_CLIBS): Define.
1530
15312008-10-19 Hui Zhu <teawater@gmail.com>
1532
1533 * infrun.c (handle_inferior_event): Set "stop_pc" when
1534 TARGET_WAITKIND_NO_HISTORY.
1535
15362008-10-19 Pedro Alves <pedro@codesourcery.com>
1537
1538 * python/python-value.c (value_object_methods)
1539 (value_object_as_number, value_object_as_mapping): Move to bottom
1540 of file.
1541 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1542 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1543 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1544 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1545 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1546 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1547
15482008-10-18 Pedro Alves <pedro@codesourcery.com>
1549
1550 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1551 reverse.
1552
15532008-10-17 Pedro Alves <pedro@codesourcery.com>
1554
1555 * infcmd.c (GO_USAGE): Delete.
1556 (go_command): Adjust.
1557
15582008-10-17 Michael Snyder <msnyder@vmware.com>
1559 Target interface for reverse debugging.
1560 * target.h (enum target_waitkind):
1561 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1562 (struct target_ops): New method to_can_execute_reverse.
1563 (target_can_execute_reverse): New macro.
1564 * target.c (update_current_target): Inherit to_can_execute_reverse.
1565
1566 Remote interface for reverse debugging.
1567 * remote.c (remote_can_execute_reverse): New target method.
1568 (remote_resume): Check for reverse exec direction, and send
1569 appropriate command to target.
1570 (remote_wait_as): Check target response for NO_HISTORY status.
1571 Also check for empty reply (target doesn't understand "bs" or "bc).
1572 (remote_vcont_resume): Jump out if attempting reverse execution.
1573
1574 Event handling interface for reverse debugging.
1575 * infrun.c (execution_direction): New state variable.
1576 (enum inferior_stop_reason): Add NO_HISTORY reason.
1577 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1578 Handle stepping over a function call in reverse.
1579 Handle stepping thru a line range in reverse.
1580 Handle setting a step-resume breakpoint in reverse.
1581 Handle stepping into a function in reverse.
1582 Handle stepping between line ranges in reverse.
1583 (print_stop_reason): Print reason for NO_HISTORY.
1584 (step_into_function): Rename to handle_step_into_function.
1585 (handle_step_into_function_backward): New function.
1586 (set_exec_direction_func, show_exec_direction_func): New funcs.
1587 (proceed): No need to singlestep over a breakpoint
1588 when resuming in reverse.
1589
1590 * inferior.h (enum exec_direction_kind): New enum.
1591 (execution_direction): Export new execution state variable.
1592
1593 * breakpoint.c (make_breakpoint_silent): New function.
1594 * breakpoint.h (make_breakpoint_silent): Export.
1595 * infcmd.c (finish_command): Check for reverse exec direction.
1596 (finish_backward): New function, handle finish cmd in reverse.
1597
1598 User interface for reverse execution.
1599 * Makefile.in (reverse.c): New file.
1600 * reverse.c: New file. User interface for reverse execution.
1601
16022008-10-17 Pedro Alves <pedro@codesourcery.com>
1603
1604 * remote.c (record_currthread): Add inferior before child threads.
1605 (remote_threads_info): Check for exited threads. Mention
1606 notification order.
1607
16082008-10-16 Joel Brobecker <brobecker@adacore.com>
1609
1610 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1611 Delete bp_catch_fork and bp_catch_vfork.
1612 (struct breakpoint_ops): Add new methods "insert", "remove"
1613 and "breakpoint_hit".
1614 * breakpoint.c (create_fork_vfork_event_catchpoint)
1615 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1616 (insert_catchpoint): Remove handling of bp_catch_fork and
1617 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1618 catchpoints instead.
1619 (insert_bp_location, update_breakpoints_after_exec)
1620 (remove_breakpoint, bpstat_check_location, bpstat_what)
1621 (allocate_bp_location): Likewise.
1622 (print_it_typical, print_one_breakpoint_location, mention): Remove
1623 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1624 (ep_is_catchpoint, user_settable_breakpoint)
1625 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1626 (breakpoint_re_set_one, disable_command, enable_command):
1627 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1628 bp_catchpoint breakpoints.
1629 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1630 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1631 New functions.
1632 (catch_fork_breakpoint_ops): New static constant.
1633 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1634 (print_it_catch_vfork, print_one_catch_vfork)
1635 (print_mention_catch_vfork): New functions.
1636 (catch_vfork_breakpoint_ops): New static constant.
1637 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1638 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1639 to create the fork and vfork catchpoints.
1640 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1641 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1642 fields.
1643 (catch_exception_unhandled_breakpoint_ops): Likewise.
1644 (catch_assert_breakpoint_ops): Likewise.
1645
16462008-10-16 Pedro Alves <pedro@codesourcery.com>
1647
1648 * remote.c (set_general_process): New.
1649 (remote_check_symbols): Use it.
1650
16512008-10-16 Pedro Alves <pedro@codesourcery.com>
1652
1653 * remote.c (push_remote_target): Delete.
1654 * target.h (push_remote_target): Delete declaration.
1655
16562008-10-15 Pedro Alves <pedro@codesourcery.com>
1657
1658 * remote.c (remote_close): Unregister remote_desc from the event
1659 loop. Always restore the SIGINT handler. Discard all inferiors
1660 here.
1661 (remote_detach_1, remote_disconnect): Don't unregister the file
1662 descriptor from the event loop here.
1663 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1664 of morning the current inferior.
1665 (remote_kill): Don't unregister the file descriptor from the event
1666 loop here.
1667 (remote_mourn_1): Don't discard inferiors here.
1668
16692008-10-15 Pedro Alves <pedro@codesourcery.com>
1670
1671 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1672 locations list.
1673 (moribund_breakpoint_here_p): Record the moribund
1674 location in the moribund_locations vector.
1675 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1676 (displaced_step_fixup): Check if the breakpoint the thread was
1677 trying to step over has been removed since having been placed in
1678 the displaced stepping queue.
1679 (adjust_pc_after_break): In non-stop mode, check for a moribund
1680 breakpoint at the stop pc.
1681 (handle_inferior_event): Don't retire moribund breakpoints on
1682 TARGET_WAITKIND_IGNORE.
1683
16842008-10-15 Pedro Alves <pedro@codesourcery.com>
1685
1686 * infrun.c (displaced_step_prepare): Switch thread temporarily
1687 while we're here.
1688 (displaced_step_fixup): Make sure target_resume sees ptid as
1689 inferior_ptid. Add debug output.
1690
16912008-10-14 Pedro Alves <pedro@codesourcery.com>
1692
1693 Remove dead code.
1694
1695 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1696 (print_one_breakpoint_location): Adjust.
1697 (breakpoint_clear_ignore_counts): Delete.
1698 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1699 declaration.
1700 * target.c (generic_mourn_inferior): Don't clear ignore
1701 counts (never reached).
1702
17032008-10-10 Doug Evans <dje@google.com>
1704
1705 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1706 for dwarf section offsets and sizes.
1707 (dwarf2_cu): Ditto.
1708 (dwarf2_per_cu_data): Ditto.
1709 (create_all_comp_units): Change offset to unsigned int.
1710 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1711 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1712
1713 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1714 All callers updated.
1715 (read_checked_initial_length_and_offset): New function.
1716 (read_offset_1): New function.
1717 (read_offset): Call it.
1718 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1719 instead of read_initial_length. Call read_offset_1 instead of
1720 read_offset.
1721
1722 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1723 All callers updated.
1724
1725 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1726 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1727 DW_AT_HP_block_index.
1728
17292008-10-10 Pedro Alves <pedro@codesourcery.com>
1730
1731 * remote.c (remote_start_remote): Always tell the stub if we're in
1732 extended-remote.
1733
17342008-10-09 Pedro Alves <pedro@codesourcery.com>
1735
1736 * remote.c (remote_wait): Rename to...
1737 (remote_wait_as): ... this. Don't loop here. If the remote
1738 didn't stop, return TARGET_WAITKIND_IGNORE.
1739 (remote_wait): New, reimplemented on top of remote_wait_as.
1740
17412008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1742
1743 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1744 is fixed upstream.
1745
1746 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1747
1748 * MAINTAINERS (Write After Approval): Add myself.
1749
17502008-10-09 Pedro Alves <pedro@codesourcery.com>
1751
1752 Make it compile without warnings.
1753
1754 * procfs.c (create_procinfo): Initialize `parent'.
1755 (dead_procinfo): Pass a constant string as format to error.
1756 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1757 (procfs_find_LDT_entry): Adjust format string to long int
1758 ptid.tid.
1759 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1760 (procfs_xfer_memory): Adjust prototype.
1761 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1762 variable as printf_filtered format.
1763 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1764 * Makefile.in: Remove special rule.
1765
17662008-10-09 Pedro Alves <pedro@codesourcery.com>
1767 Daniel Jacobowitz <dan@codesourcery.com>
1768
1769 * remote.c (remote_open_1): Move acknowledging any pending ack,
1770 querying supported features, activating noack mode, finding the
1771 target description, enabling extended remote, and checking remote
1772 symbols from here ...
1773 (remote_start_remote): ... to here.
1774 (remote_open_1): Don't pop the target if it is already gone.
1775 * target.c (unpush_target): Check for the dummy target.
1776
17772008-10-09 Pedro Alves <pedro@codesourcery.com>
1778
1779 * ser-mingw.c: Include "command.h".
1780 (pipe_windows_open): Declare locals at the beginning of the scope.
1781
17822008-10-08 Pedro Alves <pedro@codesourcery.com>
1783
1784 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1785 field.
1786 (remote_open_1): Clear waiting_for_stop_reply.
1787 (remote_resume): Set waiting_for_stop_reply.
1788 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1789 (putpkt_binary): If we're in async mode and waiting for a stop
1790 reply, bail out with an error.
1791 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1792
17932008-10-08 Pedro Alves <pedro@codesourcery.com>
1794
1795 * remote.c (remote_get_thread_info): If the remote doesn't support
1796 the query, bail out.
1797
17982008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1799
1800 Convert static_kind into loc_kind enum.
1801 * gdbtypes.h (enum field_loc_kind): New.
1802 (union field_location): New field dwarf_block.
1803 (struct field): Rename static_kind as loc_kind.
1804 (FIELD_STATIC_KIND): Rename to ...
1805 (FIELD_LOC_KIND): ... here.
1806 (TYPE_FIELD_STATIC_KIND): Rename to ...
1807 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1808 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1809 (TYPE_FIELD_STATIC): Remove.
1810 (TYPE_FIELD_BITPOS): Reformat.
1811 (SET_FIELD_BITPOS): New.
1812 (FIELD_PHYSADDR): Rename to ...
1813 (FIELD_STATIC_PHYSADDR): ... here.
1814 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1815 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1816 (FIELD_PHYSNAME): Rename to ...
1817 (FIELD_STATIC_PHYSNAME): ... here.
1818 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1819 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1820 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1821 (field_is_static): New declaration.
1822 * gdbtypes.c (field_is_static): New function.
1823 (copy_type_recursive): Update throughout.
1824 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1825 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1826 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1827
18282008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1829 Pedro Alves <pedro@codesourcery.com>
1830
1831 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1832 avoid a name collision.
1833 * gnu-nat.c: Likewise.
1834 * i386gnu-nat.c: Likewise.
1835
18362008-10-07 Joel Brobecker <brobecker@adacore.com>
1837
1838 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1839 of arguments that are references.
1840
18412008-10-06 Doug Evans <dje@google.com>
1842
1843 * dwarf2read.c (dwarf2_die_debug): New static global.
1844 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1845 Print to specified file, indented by the specified amount.
1846 (dump_die_for_error): New fn. Point all existing callers of
1847 dump_die here.
1848 (dump_die_die_1,dump_die): New fns, replaces ...
1849 (dump_die_list): ... deleted.
1850 (read_die_and_children_1): Old contents of read_die_and_children
1851 moved here.
1852 (read_die_and_children): Rewrite.
1853 (read_die_and_siblings): Call read_die_and_children_1 instead of
1854 read_die_and_children.
1855 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1856 * gdbinit.in (pdie): New macro.
1857
1858 * dwarf2read.c (offset_in_cu_p): New function.
1859 (find_partial_die,follow_die_ref): Use it.
1860
1861 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1862 (maintenance_info_psymtabs): Ditto.
1863
18642008-10-05 Michael Snyder <msnyder@vmware.com>
1865
1866 * infrun.c (handle_inferior_event): Fix typo in comment.
1867
18682008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1869
1870 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1871
18722008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1873
1874 PR gdb/2384:
1875 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1876 different lifetimes.
1877
18782008-10-03 Joel Brobecker <brobecker@adacore.com>
1879
1880 * solib-osf.c: Include "solib.h".
1881
18822008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1883
1884 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1885 and check for out-of-memory condition.
1886 * exec.c (exec_file_command): Call it.
1887 * infrun.c (handle_command, xdb_handle_command): Likewise.
1888 * interps.c (interpreter_exec_cmd): Likewise.
1889 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1890 * procfs.c (info_proc_cmd): Likewise.
1891 * remote-mips.c (common_open): Likewise.
1892 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1893 (gdbsim_open): Likewise.
1894 * remote.c (extended_remote_run, remote_put_command)
1895 (remote_get_command, remote_delete_command): Likewise.
1896 * ser-mingw.c (pipe_windows_open): Likesise.
1897 * source.c (add_path, show_substitute_path_command)
1898 (unset_substitute_path_command, set_substitute_path_command):
1899 Likewise.
1900 * stack.c (backtrace_command): Likewise.
1901 * symfile.c (symbol_file_command, generic_load)
1902 (add_symbol_file_command): Likesise.
1903 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1904 (maintenance_print_msymbols): Likewise.
1905
19062008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1907
1908 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1909 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1910 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1911 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1912 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1913 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1914 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1915 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1916 (f77_get_upperbound): ... this function handling now only
1917 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1918 (f77_get_dynamic_lowerbound): Replace with ...
1919 (f77_get_lowerbound): ... this function handling now only
1920 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1921 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1922 Update their callers.
1923 * eval.c (evaluate_subexp_standard): Update their callers.
1924 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1925 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1926 prototypes.
1927 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1928 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1929 the lower_bound_was_default variable. Update the
1930 f77_get_dynamic_upperbound, f77_get_upperbound and
1931 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1932 * gdbtypes.c (print_bound_type): Remove the function.
1933 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1934 LOWER_BOUND_TYPE.
1935 * gdbtypes.h (enum array_bound_type): Remove.
1936 (struct main_type): Remove the fields upper_bound_type and
1937 lower_bound_type. Comment the new overload of the field artificial.
1938 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1939 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1940 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1941 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1942
19432008-10-02 Tom Tromey <tromey@redhat.com>
1944
1945 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1946
19472008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1948
1949 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1950 comments.
1951 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1952 (mips_linux_init_abi): Do not override skip_trampoline_code.
1953 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1954 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1955 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1956 (mips_skip_mips16_trampoline_code): Rename from
1957 mips_skip_trampoline_code.
1958 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1959 * infrun.c (handle_inferior_event): Do not pass zero to
1960 in_solib_dynsym_resolve_code.
1961
19622008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1963 Pedro Alves <pedro@codesourcery.com>
1964
1965 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1966
1967
19682008-10-01 Tom Tromey <tromey@redhat.com>
1969
1970 * symtab.c (search_symbols): Update.
1971 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1972
19732008-10-01 Tom Tromey <tromey@redhat.com>
1974
1975 * symfile.c (syms_from_objfile): Update.
1976 (reread_symbols): Update.
1977 * objfiles.h (OBJF_SYMS): Remove.
1978 (OBJF_REORDERED): Renumber.
1979 (OBJF_SHARED): Likewise.
1980 (OBJF_READNOW): Likewise.
1981 (OBJF_USERLOADED): Likewise.
1982
19832008-10-01 Tom Tromey <tromey@redhat.com>
1984
1985 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1986 (find_pc_sect_symtab): Likewise.
1987 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1988 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1989 MSYMBOL_TYPE, not SYMBOL_TYPE.
1990 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1991 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1992 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1993 MSYMBOL_TYPE.
1994 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1995
19962008-10-01 Tom Tromey <tromey@redhat.com>
1997
1998 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1999 (scan_xcoff_symtab): Update.
2000 * mdebugread.c (record_minimal_symbol): Update.
2001 (parse_partial_symbols): Update.
2002 * elfread.c (record_minimal_symbol): Update.
2003 * dbxread.c (record_minimal_symbol): Update.
2004 * coffread.c (record_minimal_symbol): Update.
2005 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
2006 (sh64_elf_make_msymbol_special): Update.
2007 * mips-tdep.c (mips_elf_make_msymbol_special): Use
2008 MSYMBOL_TARGET_FLAG_1.
2009 (mips_elf_make_msymbol_special): Likewise.
2010 (msymbol_is_special): Likewise.
2011 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
2012 (install_minimal_symbols): Likewise.
2013 (prim_record_minimal_symbol): Update.
2014 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
2015 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
2016 (MSYMBOL_SET_RTI): Redefine.
2017 (MSYMBOL_IS_RTC): Redefine.
2018 (MSYMBOL_IS_RTI): Redefine.
2019 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
2020 (MSYMBOL_IS_SPECIAL): Redefine.
2021 * symtab.h (struct minimal_symbol) <info>: Remove.
2022 <target_flag_1, target_flag_2>: New fields.
2023 (MSYMBOL_INFO): Remove.
2024 (MSYMBOL_TARGET_FLAG_1): New macro.
2025 (MSYMBOL_TARGET_FLAG_2): Likewise.
2026 (prim_record_minimal_symbol_and_info): Update.
2027
20282008-09-30 Joel Brobecker <brobecker@adacore.com>
2029
2030 * ada-lang.c (is_digits_suffix): Delete unused function.
2031
d37209fd
JB
20322008-09-30 Paul Hilfinger <hilfinger@adacore.com>
2033
2034 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
2035 moduli >= 2**31.
2036
20372008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
2038
2039 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
2040 variant branch.
2041 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
2042 supposed to be null. Fixes debugger segfaults.
2043 (is_unchecked_variant): New function.
2044 (to_fixed_variant_branch_type): Modify to leave unchecked unions
2045 untouched.
2046 (ada_template_to_fixed_record_type_1): Fix comment.
2047
3d0b0fa3
JB
20482008-09-30 Joel Brobecker <brobecker@adacore.com>
2049
2050 * ada-lang.c (standard_exc): New static constant.
2051 (ada_exception_catchpoint_cond_string): Add special handling
2052 for the predefined exceptions.
2053
cdc7bb92
JB
20542008-09-30 Joel Brobecker <brobecker@adacore.com>
2055
2056 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
2057 the code accordingly.
2058
6b0d7253
JB
20592008-09-30 Joel Brobecker <brobecker@adacore.com>
2060
2061 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
2062 treatment of expect_type. Return the correct type when dereferencing
2063 an integer.
2064
9a044a89
TT
20652008-09-30 Tom Tromey <tromey@redhat.com>
2066
2067 PR gdb/2484:
2068 * symtab.c (struct add_macro_name_data): New struct.
2069 (add_macro_name): New function.
2070 (default_make_symbol_completion_list): Complete macro names.
2071 * scm-lang.c (scm_language_defn): Update.
2072 * p-lang.c (pascal_language_defn): Update.
2073 * objc-lang.c (objc_language_defn): Update.
2074 * macrotab.h (macro_callback_fn): Add user_data argument.
2075 (macro_for_each): Likewise.
2076 (macro_for_each_in_scope): Declare.
2077 * macrotab.c: (struct macro_for_each_data): New struct.
2078 (foreach_macro): Use it.
2079 (macro_for_each): Likewise.
2080 (foreach_macro_in_scope): New function.
2081 (macro_for_each_in_scope): Likewise.
2082 * macrocmd.c (print_one_macro): Add argument.
2083 (macro_list_command): Pass NULL to macro_for_each.
2084 * m2-lang.c (m2_language_defn): Update.
2085 * language.h (struct language_defn) <la_macro_expansion>: New
2086 field.
2087 (macro_expansion): New enum.
2088 * language.c (unknown_language_defn): Update. Fix order of
2089 initializers.
2090 (auto_language_defn): Likewise.
2091 (local_language_defn): Update.
2092 * jv-lang.c (java_language_defn): Update.
2093 * f-lang.c (f_language_defn): Update.
2094 * c-lang.c (c_language_defn): Update.
2095 (cplus_language_defn): Likewise.
2096 (asm_language_defn): Likewise.
2097 (minimal_language_defn): Likewise.
2098 * ada-lang.c (ada_language_defn): Update.
2099
b084d499
JB
21002008-09-30 Joel Brobecker <brobecker@adacore.com>
2101
2102 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
2103 (get_scope_pc_bounds): Use it.
2104
2fae03e8
TT
21052008-09-27 Tom Tromey <tromey@redhat.com>
2106
2107 * NEWS: Update.
2108 * macrocmd.c (extract_identifier): Add is_parameter argument.
2109 (macro_define_command): Update.
2110 (macro_undef_command): Likewise.
2111 * macroexp.c (stringify): New function.
2112 (find_parameter): Likewise.
2113 (gather_arguments): Add nargs argument. Handle varargs.
2114 (substitute_args): Add is_varargs and va_arg_name arguments.
2115 Handle varargs, splicing, stringification. Use find_parameter.
2116 (expand): Handle varargs.
2117
5c6ce71d
TT
21182008-09-27 Tom Tromey <tromey@redhat.com>
2119
2120 * scm-lang.c (scm_language_defn): Update.
2121 * p-typeprint.c (pascal_print_typedef): New function.
2122 * p-lang.h: (pascal_print_typedef): Declare.
2123 * p-lang.c (pascal_language_defn): Update.
2124 * objc-lang.c (objc_language_defn): Update.
2125 * m2-typeprint.c (m2_print_typedef): New function.
2126 * m2-lang.h (m2_print_typedef): Declare.
2127 * m2-lang.c (m2_language_defn): Update.
2128 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
2129 Remove.
2130 (struct language_defn) <la_print_typedef>: New field.
2131 (default_print_typedef): Declare.
2132 (LA_PRINT_TYPEDEF): New define.
2133 * language.c (unknown_language_defn): Update.
2134 (auto_language_defn): Update.
2135 (local_language_defn): Update.
2136 * jv-lang.c (java_language_defn): Update.
2137 * f-lang.c (f_language_defn): Update.
2138 * c-typeprint.c (c_print_typedef): New function.
2139 * c-lang.h (c_print_typedef): Declare.
2140 * c-lang.c (c_language_defn): Update.
2141 (cplus_language_defn): Update.
2142 (asm_language_defn): Update.
2143 (minimal_language_defn): Update.
2144 * ada-lang.c (ada_language_defn): Update.
2145 * typeprint.c (default_print_typedef): New function.
2146
09be204e
TT
21472008-09-27 Tom Tromey <tromey@redhat.com>
2148
2149 * jv-exp.y (insert_exp): Define using ISO syntax.
2150 (copy_exp): Likewise.
2151 (push_expression_name): Likewise.
2152 (push_fieldnames): Likewise.
2153 (java_type_from_name): Likewise.
2154 (yyerror): Likewise.
2155 (yylex): Likewise.
2156 (parse_number): Likewise.
2157
3cd9d164
JB
21582008-09-26 Joel Brobecker <brobecker@adacore.com>
2159
2160 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
2161
e3168615
JB
21622008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
2163
2164 * stack.c (print_frame_args): Fix typos in comments.
2165
8b8655b3
TJB
21662008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
2167
2168 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
2169
6fbd21a1
VP
21702008-09-24 Vladimir Prus <vladimir@codesourcery.com>
2171
2172 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
2173
45ef8ce0
AS
21742008-09-24 Andreas Schwab <schwab@suse.de>
2175
2176 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 2177 account. Avoid excessive function calls.
45ef8ce0 2178
9cbfa09e
DE
21792008-09-23 Doug Evans <dje@google.com>
2180
07128da0
DE
2181 * dcache.c (state_chars): New static global.
2182 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
2183 All uses updated.
2184 (dcache_info): Print cache state as mnemonically useful letters instead
2185 of magic numbers.
2186
9cbfa09e
DE
2187 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
2188
d4c0a7a0
TT
21892008-09-22 Tom Tromey <tromey@redhat.com>
2190
2191 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
2192 printf_filtered.
2193
6ca15a4b
PA
21942008-09-22 Pedro Alves <pedro@codesourcery.com>
2195
2196 * infrun.c (follow_exec): Don't do a generic mourn. Instead
2197 inline the required bits.
2198 * breakpoint.h (enum inf_context): Add inf_execd.
2199
795e548f
PA
22002008-09-22 Pedro Alves <pedro@codesourcery.com>
2201
2202 * infrun.c (handle_inferior_event): In the follow exec case,
2203 context-switch before doing anything else.
2204
54a012c9
PA
22052008-09-22 Pedro Alves <pedro@codesourcery.com>
2206
2207 * top.c (any_thread_of, kill_or_detach): New functions.
2208 (quit_target): Iterate over all inferiors, killing or detaching
2209 accordingly.
2210
181e7f93
PA
22112008-09-22 Pedro Alves <pedro@codesourcery.com>
2212
2213 Remove the attach_flag global, and make it per-inferior.
2214
2215 * inferior.h (attach_flag): Delete.
2216 (inferior_process): Declare.
2217 * solib.c (update_solib_list): Adjust.
2218 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
2219 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2220 (inf_ptrace_files_info): Get it from the current inferior.
2221 * inf-ttrace.c (inf_ttrace_attach): Adjust.
2222 (inf_ttrace_files_info): Get it from the current
2223 inferior.
2224 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
2225 (clear_sigint_trap): Get it from the current process.
2226 * remote.c (extended_remote_attach_1)
2227 (extended_remote_create_inferior_1): Adjust.
2228 * top.c (quit_confirm, quit_target): Get it from the current inferior.
2229 * procfs.c (do_detach): Adjust.
2230 (procfs_wait): Get it from the event inferior.
2231 (procfs_files_info): Get it from the current inferior.
2232 * nto-procfs.c (procfs_files_info): Likewise.
2233 (procfs_attach): Adjust. Set the attach_flag here.
2234 (do_attach): Don't set it here.
2235 (procfs_detach): Don't clear it.
2236 (procfs_mourn_inferior): Don't clear it.
2237 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2238 * target.c (attach_flag): Delete.
2239 (generic_mourn_inferior): Don't clear it.
2240 * win32-nat.c (get_win32_debug_event): Get it from the event
2241 process.
2242 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
2243 in the inferior accordingly.
2244 (win32_attach): Don't set the attach_flag here. Pass 1 to
2245 do_intial_win32_stuff.
2246 (win32_files_info): Get it from the current inferior.
2247 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
2248 do_intial_win32_stuff.
2249
d6b48e9c
PA
22502008-09-22 Pedro Alves <pedro@codesourcery.com>
2251
2252 Make the stop_soon global be per-inferior instead.
2253
2254 * infcmd.c (attach_command_post_wait): Adjust.
2255 (attach_command): Likewise.
2256
2257 * inferior.h (stop_soon): Delete.
2258 (struct inferior): Add stop_soon member.
2259
2260 * infrun.c (stop_soon): Delete.
2261 (clear_proceed_status, start_remote)
2262 (fetch_inferior_event, handle_inferior_event): Adjust.
2263 (signal_stop_state): Don't check stop_soon here. Check in callers
2264 instead.
2265 (save_inferior_status, restore_inferior_status): Adjust.
2266
2267 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
2268 signals to common code if starting up the inferior.
2269
2270 * inferior.h (struct inferior_info): Added stop_soon member.
2271 * inferior.c (add_inferior) Clear stop_soon.
2272
2273 * mips-tdep.c (heuristic_proc_start): Adjust.
2274 * nto-procfs.c (procfs_create_inferior): Adjust.
2275 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2276 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2277 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2278 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2279
2280 * win32-nat.c (do_initial_win32_stuff): Adjust.
2281
2282 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2283
82f73884
PA
22842008-09-22 Pedro Alves <pedro@codesourcery.com>
2285
2286 Implement remote multi-process extensions.
2287
2288 * remote.c (struct remote_state): Add extended and
2289 multi_process_aware fields.
2290 (remote_multi_process_p): New.
2291 (PACKET_vKill): New.
2292 (record_currthread): Use thread_change_ptid. Notice new
2293 inferiors.
2294 (set_thread, remote_thread_alive): Use write_ptid.
2295 (write_ptid, read_ptid): New.
2296 (remote_current_thread, remote_threads_extra_info): Use them.
2297 (remote_threads_info): Likewise. Detect new inferiors.
2298 (remote_start_remote): Add inferior to inferior list.
2299 (remote_multi_process_feature): New.
2300 (remote_protocol_features): Add "multiprocess" feature.
2301 (remote_query_supported): Pass "multiprocess+" as supported
2302 features.
2303 (remote_open_1): Clear multi_process_aware. Set extended
2304 accordingly.
2305 (remote_detach_1): Detach current process. Use extended packet
2306 format for extended-remote multi-process. Detach process from the
2307 inferior list. Only mourn after printing output.
2308 (extended_remote_attach_1): Add process to the inferior list.
2309 (remote_vcont_resume): Use write_ptid to pass the thread ids.
2310 (remote_wait): Use read_ptid. Implement the extended
2311 multi-process extension format of the 'W' and 'X' reply packets.
2312 Remove exited inferiors from inferior list.
2313 (remote_xfer_memory): Set general thread.
2314 (remote_vkill): New.
2315 (extended_remote_kill): New.
2316 (remote_mourn_1): Discard all inferiors.
2317 (select_new_thread_callback): New.
2318 (extended_remote_mourn_1): If there are more processes to debug,
2319 switch to a thread in another process, and don't pop the target.
2320 (extended_remote_create_inferior_1): Add the new process to the
2321 inferior list.
2322 (remote_stopped_by_watchpoint): Indenting.
2323 (remote_xfer_partial): Set the general thread.
2324 (remote_pid_to_str): If the remote is multi-process aware, print
2325 the process id as well as the thread id.
2326 (remote_get_thread_local_address): Use write_ptid.
2327 (init_extended_remote_ops): Register extended_remote_kill.
2328 (_initialize_remote): Register new packets. Change
2329 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
2330 member to 42000.
2331
2332 * thread.c (thread_change_ptid): Also account for the inferior pid
2333 changing.
2334
2335 * inferior.h (discard_all_inferiors): Declare.
2336 * inferior.c (discard_all_inferiors): New.
2337
7f9f62ba
PA
23382008-09-22 Pedro Alves <pedro@codesourcery.com>
2339
2340 * gnu-nat.c (gnu_attach): Add process to inferiors table.
2341 (gnu_detach): Remove it.
2342 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
2343 table.
2344 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
2345 to inferior table accordingly.
2346 (inf_ptrace_attach): Add new process to inferior table.
2347 (inf_ptrace_detach): Remove it.
2348 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
2349 to inferior table accordingly.
2350 (inf_ttrace_attach): Add process to inferior table.
2351 (inf_ttrace_detach): Remove it.
2352 * linux-fork.c (init_fork_list): Delete any left over inferior.
2353 (linux_fork_mourn_inferior, detach_fork_command): Also delete
2354 processes from inferior list.
2355 * monitor.c (monitor_open): Add process to inferior list.
2356 (monitor_close): Remove it.
2357 * nto-procfs.c (procfs_attach): Add process to inferior list.
2358 Find threads after pushing the target.
2359 (procfs_detach): Remove process from inferior list.
2360 (procfs_create_inferior): Add process to inferior list.
2361 * procfs.c (procfs_detach): Remove process from inferior list.
2362 (do_attach): Add process to inferior list.
2363 * remote-sim.c (sim_create_inferior): Add process to inferior list.
2364 (gdbsim_close): Remove it.
2365 * target.c (generic_mourn_inferior): If inferior_ptid is not
2366 null_ptid, remove the corresponding inferior from inferior list.
2367 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
2368 (win32_detach): Remove it.
2369 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
2370 to inferior list accordingly.
2371 * fork-child.c (fork_inferior): Add process to inferior list.
2372 * corelow.c (CORELOW_PID): Define.
2373 (core_close): Remove core from inferior list.
2374 (core_open): Add it.
2375
b77209e0
PA
23762008-09-22 Pedro Alves <pedro@codesourcery.com>
2377
2378 * inferior.h: Forward declare struct ui_out.
2379 Forward declare struct private_inferior.
2380 (struct inferior): New.
2381 (init_inferior_list, add_inferior, add_inferior_silent)
2382 (delete_inferior, delete_inferior_silent, detach_inferior)
2383 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2384 (valid_inferior_id, find_inferior_pid): New functions.
2385 (inferior_callback_func): New typedef.
2386 (iterate_over_inferiors, print_inferior, have_inferiors)
2387 (current_inferior): New functions.
2388 * inferior.c: New file.
2389
2390 * Makefile.in (SFILES): Add inferior.c.
2391 (COMMON_OBS): Add inferior.o.
2392
d8c3d48d
JL
23932008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
2394
2395 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
2396 instead of determining symbol and line info directly.
2397 * MAINTAINERS: Update my email address.
2398
d54be744
DJ
23992008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2400
2401 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
2402 at the same address as a prologue marker. Do not skip an entire
2403 function.
2404
26fae1d6
AS
24052008-09-22 Andrew Stubbs <ams@codesourcery.com>
2406
2407 * frame.c (get_frame_register_bytes): Comment improvments.
2408
1ad15515
PA
24092008-09-22 Pedro Alves <pedro@codesourcery.com>
2410
2411 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
2412 all-stop mode.
2413
14fc49fb
AS
24142008-09-19 Andrew Stubbs <ams@codesourcery.com>
2415
2416 * MAINTAINERS: Update my email address.
2417
3f27f2a4
AS
24182008-09-19 Andrew Stubbs <ams@codesourcery.com>
2419
2420 * frame.c (get_frame_register_bytes): Detect bad debug info.
2421
88ed393a
JK
24222008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2425 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2426 initialization ...
2427 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2428 ...
2429 (handle_inferior_event): ... here after the add_thread call together
2430 with the local adjust_pc_after_break and reinit_frame_cache calls.
2431
d832cb68
DD
24322008-09-16 David Daney <ddaney@avtrex.com>
2433
2434 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2435 all hardware bpstats.
2436
b1e40a6f
JB
24372008-09-16 Joel Brobecker <brobecker@adacore.com>
2438
2439 * gstdint.h: Delete.
2440
50a834af
MK
24412008-09-15 Mark Kettenis <kettenis@gnu.org>
2442
2443 * infcall.c (generic_push_dummy_code): Remove.
2444 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2445
9d25dd43
DE
24462008-09-15 Doug Evans <dje@google.com>
2447
2448 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2449 (struct attribute): Ditto.
2450
85c83e99
DA
24512008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2452
326e541f
DA
2453 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2454 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2455
85c83e99
DA
2456 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2457 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2458 Correct arguments and improve comments.
2459 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2460 disabled code.
2461 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2462 point DBX register, change error to warning, and improve comments.
2463
76815b17
DE
24642008-09-14 Doug Evans <dje@google.com>
2465
2466 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2467
51e753cf
DA
24682008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2469
2470 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2471
06e476f5
JB
24722008-09-13 Joel Brobecker <brobecker@adacore.com>
2473
2474 * defs.h (GCC_GENERATED_STDINT_H): Define.
2475
6c761d9c
TT
24762008-09-13 Tom Tromey <tromey@redhat.com>
2477
2478 * varobj.c (varobj_set_display_format): Use xfree.
2479 * tracepoint.c (stringify_collection_list): Use xfree.
2480 * remote-fileio.c (remote_fileio_reset): Use xfree.
2481 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2482 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2483 asprintf.
2484 * cp-support.c (mangled_name_to_comp): Use xfree.
2485
339c13b6
JB
24862008-09-13 Joel Brobecker <brobecker@adacore.com>
2487
2488 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2489 the associated complete symbol is also in the list.
2490 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2491 extracted out from ada_lookup_symbol_list.
2492 (ada_lookup_symbol_list): Use them. Remove the search through
2493 the minimal symbols.
2494
bc30ff58
JB
24952008-09-13 Joel Brobecker <brobecker@adacore.com>
2496
2497 * dwarf2read.c (add_partial_subprogram): New procedure.
2498 (scan_partial_symbols): Use it.
2499 (load_partial_dies): Read in children of subprogram and lexical
2500 blocks for Ada compilation units.
2501
bb01da77
TT
25022008-09-13 Tom Tromey <tromey@redhat.com>
2503
2504 * symfile.c (build_id_verify): Free 'found'.
2505 (find_separate_debug_file): Use xfree, not free.
2506
d00adf39
DE
25072008-09-12 Doug Evans <dje@google.com>
2508
00630ca8
DE
2509 * corefile.c (write_memory): Remove unnecessary copying.
2510
5d6fa950
DE
2511 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2512 order of _initialize_* fns.
2513
d00adf39
DE
2514 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2515 first_die_offset. All uses updated.
2516 Delete unused members cu_head_ptr, next.
2517 Move members base_known, base_address to ...
2518 (dwarf2_cu) ... here. All uses updated.
2519
3d0bb823
PA
25202008-09-12 Pedro Alves <pedro@codesourcery.com>
2521
2522 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2523 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2524
3c35e65b
UW
25252008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2526
2527 * fork-child.c (startup_inferior): Use target_wait and target_resume
2528 directly instead of calling wait_for_inferior / resume.
2529
2530 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2531 or init_wait_for_inferior.
2532 (run_command_1): Call init_wait_for_inferior.
2533
4cca3ac9
UW
25342008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2537 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2538 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2539 builtin_type_unsigned_char, builtin_type_unsigned_short,
2540 builtin_type_unsigned_int, builtin_type_unsigned_long,
2541 builtin_type_float, builtin_type_double, builtin_type_long_double,
2542 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2543 builtin_type_bool, builtin_type_long_long,
2544 builtin_type_unsigned_long_long): Remove macros.
2545
2546 (builtin_type_f_character, builtin_type_f_integer,
2547 builtin_type_f_integer_s2, builtin_type_f_logical,
2548 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2549 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2550 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2551 builtin_type_f_complex_s32): Likewise.
2552
2553 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2554 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2555
2556 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2557 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2558
2559 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2560 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2561
b6da22b0
UW
25622008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2563
2564 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2565 target_gdbarch instead of builtin_type_void_data_ptr.
2566 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2567 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2568 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2569 open_symbol_file_object): Likewise.
2570 * nto-tdep.c (LM_ADDR): Likewise.
2571
ff7da468
UW
25722008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2573
2574 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2575 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2576 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2577
4e906f53
UW
25782008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2579
2580 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2581 and its associated types to perform pointer conversion.
2582 (procfs_can_use_hw_breakpoint): Likewise.
2583 (procfs_auxv_parse): Remove unused variable.
2584
ffe5a37e
UW
25852008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2586
2587 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2588 instead of builtin_type_void_data_ptr.
2589 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2590
b806fb9a
UW
25912008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2592
2593 * expprint.c (print_subexp_standard): Compare against builtin type
2594 associated with exp->gdbarch instead of builtin_type_char.
2595
2596 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2597 extract values of arbitrary logical type. Handle arbitrary
2598 complex types.
2599
2600 * printcmd.c (float_type_from_length): New function.
2601 (print_scalar_formatted, printf_command): Use it.
2602
3e3b026f
UW
26032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2604
2605 * valops.c: Include "objfiles.h" and "symtab.h".
2606 (find_function_in_inferior): New argument OBJF_P. Use it to return
2607 objfile where function is defined. Use per-objfile arch types
2608 instead of builtin_type_ to define default return type.
2609
2610 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2611 architecture to define inferior call argument types.
2612 * gcore.c (derive_heap_segment): Likewise.
2613 * objc-lang.c (value_nsstring): Likewise.
2614 * scm-lang.c (scm_lookup_name): Likewise.
2615 * scm-valprint.c (scm_inferior_print): Likewise.
2616 * valops.c (value_allocate_space_in_inferior): Likewise.
2617
2618 * eval.c (evaluate_subexp_standard): Update calls.
2619 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2620
2621 * linux-fork.c: Include "objfiles.h".
2622 * scm-lang.c: Include "objfiles.h".
2623 * scm-valprint.c: Include "objfiles.h".
2624
f8dcfc0a
UW
26252008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2626
2627 * gdbarch.sh (name_of_malloc): Remove.
2628 * gdbarch.c, gdbarch.h: Re-generate.
2629 * valops.c (value_allocate_space_in_inferior): Do not call
2630 gdbarch_name_of_malloc.
2631
c56324e0
UW
26322008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2633
2634 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2635 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2636 (value_bit_index): Use extract_unsigned_integer
2637 instead of unpack_long to read single byte.
2638
7788af6d
UW
26392008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2640
2641 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2642 associates types instead of builtin_type_ macros.
2643 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2644 (call_function_by_hand): Use per-architecture "int" type as
2645 fall-back if find_function_addr returns NULL VALUE_TYPE.
2646 Update call to value_arg_coerce.
2647
ad4820ab
UW
26482008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2649
2650 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2651 (cplus_make_method_ptr): Add TYPE parameter.
2652 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2653 on to current_cp_abi.method_ptr_size callback.
2654 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2655 current_cp_abi.make_method_ptr callback.
2656
2657 * gdbtypes.c (lookup_methodptr_type): Pass target type
2658 argument to cplus_method_ptr_size.
2659 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2660 (value_struct_elt_for_reference): Likewise.
2661
2662 * gnu-v3-abi.c (get_class_arch): New function.
2663 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2664 instead of current_gdbarch. Update all callers.
2665 (gnuv3_get_vtable): Likewise.
2666 (gnuv3_get_virtual_fn): Likewise.
2667 (gnuv3_decode_method_ptr): Likewise.
2668 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2669 Use it instead of current_gdbarch.
2670 (gnuv3_virtual_fn_field): Likewise.
2671 (gnuv3_baseclass_offset): Likewise.
2672 (gnuv3_print_method_ptr): Likewise.
2673 (gnuv3_method_ptr_to_value): Likewise.
2674 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2675 class architecture. Use architecture types instead of builtin types.
2676 (gnuv3_make_method_ptr): Likewise.
2677
2678 * cp-valprint.c (cp_print_class_member): Expect pointer type
2679 instead of class type. Use its length when extracting value.
2680 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2681
5ed92fa8
UW
26822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2683
2684 * stack.c (return_command): Use frame architecture to determine
2685 default integer return type.
2686
2687 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2688 to determine pointer types.
2689 (f77_get_dynamic_upperbound): Likewise.
2690
2691 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2692 (resolve_msgsend): Use architecture of current frame to determine
2693 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2694 (resolve_msgsend_stret, resolve_msgsend_super,
2695 resolve_msgsend_super_stret): Likewise.
2696
0dfff4cb
UW
26972008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2698
2699 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2700 instead of builtin_type_ macros.
2701 * amd64-tdep.c (amd64_register_type): Likewise.
2702 (amd64_get_longjmp_target): Likewise.
2703 * arm-tdep.c (arm_register_type): Likewise.
2704 * avr-tdep.c (avr_register_type): Likewise.
2705 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2706 * frv-tdep.c (frv_register_type): Likewise.
2707 * h8300-tdep.c (h8300_register_type): Likewise.
2708 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2709 hppa_skip_trampoline_code): Likewise.
2710 * i386-tdep.c (i386_register_type): Likewise.
2711 (i386_unwind_pc, i386_sse_type): Likewise.
2712 * ia64-tdep.c (ia64_register_type): Likewise.
2713 * m32r-tdep.c (m32r_register_type): Likewise.
2714 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2715 * m88k-tdep.c (m88k_register_type): Likewise.
2716 * mep-tdep.c (mep_register_type): Likewise.
2717 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2718 * mn10300-tdep.c (mn10300_register_type): Likewise.
2719 * mt-tdep.c (mt_copro_register_type): Likewise.
2720 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2721 (rs6000_convert_register_p, rs6000_register_to_value,
2722 rs6000_value_to_register): Likewise.
2723 * s390-tdep.c (s390_register_type): Likewise.
2724 * sh64-tdep.c (sh64_register_type): Likewise.
2725 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2726 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2727 sh_sh4_build_float_register_type, sh_sh4_register_type,
2728 sh_default_register_type): Likewise.
2729 * sparc64-tdep.c (sparc64_register_type): Likewise.
2730 * sparc-tdep.c (sparc32_register_type): Likewise.
2731 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2732 * v850-tdep.c (v850_register_type): Likewise.
2733 * vax-tdep.c (vax_register_type): Likewise.
2734 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2735 xtensa_push_dummy_call): Likewise.
2736
2737 * std-regs.c (value_of_builtin_frame_fp_reg,
2738 value_of_builtin_frame_pc_reg): Likewise.
2739 * target-descriptions.c (tdesc_register_type): Likewise.
2740
6d84d3d8
UW
27412008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2744 instead of builtin_type_int as default unspecified integral type.
2745 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2746 assign_component, to_fixed_range_type): Likewise.
2747 * ada-typeprint.c (print_range, print_range_bound,
2748 print_range_type_named): Likewise.
2749 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2750 * eval.c (evaluate_subexp_standard): Likewise.
2751 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2752 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2753 build_gdb_vtable_type): Likewise.
2754 * jv-lang.c (java_array_type): Likewise.
2755 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2756 * m2-valprint.c (m2_print_long_set): Likewise.
2757 * parse.c (follow_types): Likewise.
2758 * p-typeprint.c (pascal_type_print_base): Likewise.
2759 * valops.c (value_one, value_array, value_string,
2760 value_bitstring): Likewise.
2761 * value.c (allocate_repeat_value, value_from_string): Likewise.
2762 * varobj.c (c_describe_child): Likewise.
2763 * mt-tdep.c (mt_register_type): Likewise.
2764 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2765 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2766
180b9a0e
UW
27672008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2768
2769 * defs.h (struct gdbarch): Add forward declaration.
2770 (set_next_address): Add GDBARCH argument.
2771 * printcmd.c (set_next_address): Use it to find pointer type.
2772 * breakpoint.c (breakpoint_1): Update call.
2773 * source.c (line_info): Likewise.
2774 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2775
2776 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2777 types for internal variable values.
2778 * infrun.c (handle_inferior_event): Likewise.
2779 * source.c (forward_search_command, reverse_search_command): Likewise.
2780 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2781 set_tracepoint_num, set_traceframe_context): Likewise.
2782
b769d911
UW
27832008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2784
2785 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2786 and builtin_true_unsigned_char.
2787 (builtin_type_true_char): Remove macro, add extern declaration.
2788 (builtin_type_true_unsigned_char): Add extern declaration.
2789 * gdbtypes.c (builtin_type_true_char): New global variable.
2790 (builtin_type_true_unsigned_char): Likewise.
2791 (_initialize_gdbtypes): Initialize them.
2792 (gdbtypes_post_init): Do not initialize builtin_true_char
2793 and builtin_true_unsigned_char members of struct builtin_type.
2794
2795 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2796 use builtin_type_true_unsigned_char instead.
2797
2798 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2799 instead of builtin_type_char for internal string.
2800
fde6c819
UW
28012008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2802
2803 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2804 (builtin_type_f_void): Remove macro.
2805 * gdbtypes.c (builtin_type_void): New global variable.
2806 (_initialize_gdbtypes): Initialize it.
2807
2808 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2809 lookup_pointer_type or lookup_function_type on builtin_type_void.
2810 * printcmd.c (set_next_address): Likewise.
2811 * objc-lang.c (value_nsstring): Likewise.
2812 * mt-tdep.c (mt_copro_register_type): Likewise.
2813 * xtensa-tdep.c (xtensa_register_type): Likewise.
2814
2815 * symfile.c (syms_from_objfile): Remove special handling
2816 of builtin_type_void and builtin_type_char.
2817
d4dbb9c7
UW
28182008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2819
2820 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2821 of builtin_type_ macros when handling OP_OBJC_ operations.
2822 * objc-lang.c (print_object_command): Likewise.
2823
8ca1c40e
UW
28242008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2825
2826 * ada-valprint.c: Include "objfiles.h".
2827 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2828 a System.Address type is defined to retrieve the proper pointer type
2829 to use to print it.
2830
3cb382c9
UW
28312008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2832
2833 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2834 result type instead of builtin_type_int.
2835 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2836 (ada_value_subscript): Update call to value_pos_atr.
2837 (ada_value_ptr_subscript): Likewise.
2838 (ada_evaluate_subexp): Likewise.
2839
a53b7a21
UW
28402008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2841
2842 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2843 (cast_from_fixed_to_double): Rename to ...
2844 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2845 of builtin_type_double.
2846 (ada_value_cast): Use cast_from_fixed instead of casting result
2847 of cast_from_fixed_to_double.
2848 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2849
22fe0fbb
UW
28502008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2851
2852 * valops.c (value_ind): No longer allow dereferencing an
2853 integer type.
2854 * eval.c (evaluate_subexp_standard): Handle deferencing an
2855 integer type here.
2856 * ada-lang.c (ada_evaluate_subexp): Likewise.
2857
d8631d21
UW
28582008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2859
2860 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2861 a reference type, pass the reference type directly to unpack_pointer.
2862 * c-valprint.c (c_val_print): Likewise.
2863 * f-valprint.c (f_val_print): Likewise.
2864 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2865 * p-valprint.c (pascal_val_print): Likewise.
2866
cb18ec49
UW
28672008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2868
2869 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2870 to construct the EVAL_SKIP dummy return value.
2871 * ada-lang.c (ada_evaluate_subexp): Likewise.
2872 * jv-lang.c (evaluate_subexp_java): Likewise.
2873 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2874 * scm-lang.c (evaluate_exp): Likewise.
2875
0ab7ba45
UW
28762008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2877
2878 * value.h (coerce_enum, coerce_number): Remove prototypes.
2879 * value.c (coerce_enum, coerce_number): Remove.
2880 * valarith.c (value_x_binop): Do not call coerce_enum.
2881 (value_x_unop): Likewise.
2882 (value_logical_not): Call coerce_array instead of coerce_number.
2883
f7c79c41
UW
28842008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2885
2886 * ax-gdb.c: Include "language.h".
2887 (gen_frame_args_address): Add GDBARCH parameter; use it
2888 instead of current_gdbarch.
2889 (gen_frame_locals_address): Likewise.
2890 (gen_var_ref): Add GDBARCH parameter. Update calls to
2891 gen_frame_args_address and gen_frame_locals_address. Use
2892 pointer type from gdbarch.
2893 (gen_usual_unary): Add EXP parameter. Use integer type
2894 from exp->gdbarch.
2895 (gen_usual_arithmetic): Likewise.
2896 (gen_integral_promotions): Likewise.
2897 (gen_add, gen_sub): Remove.
2898 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2899 (gen_logical_not): Use passed-in boolean result type
2900 instead of builtin_type_int.
2901 (gen_complement): Do not call gen_usual_unary or
2902 gen_integral_promotions.
2903 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2904 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2905 Use builtin_type_int32 as internal range type.
2906 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2907 as result type. Update call to gen_expr.
2908 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2909 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2910 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2911 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2912 Use exp->gdbarch instead of current_gdbarch.
2913 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2914
f44316fa
UW
29152008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2916
2917 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2918 and unop_promote before calling value_binop et. al.
2919 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2920 and unop_promote before calling value_binop et. al.
2921
2922 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2923 (value_pos): Do not call unop_promote.
2924 (value_neg, value_complement): Likewise.
2925
4066e646
UW
29262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2927
2928 * value.h (unop_promote, binop_promote): Add prototypes.
2929 * eval.c (unop_promote, binop_promote): New functions.
2930 * valarith.c (unop_result_type, binop_result_type): Remove.
2931 (value_binop): Call binop_promote or unop_promote.
2932 Inline remaining parts of binop_result_type. Remove special
2933 code to truncate integer values for unsigned operations.
2934 (value_pos): Call unop_promote. Inline remaining parts of
2935 unop_result_type.
2936 (value_neg, value_complement): Likewise.
2937
89eef114
UW
29382008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2939
2940 * value.h (value_add, value_sub): Remove.
2941 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2942 * valarith.c (value_add, value_sub): Remove.
2943 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2944 (find_size_for_pointer_math): Add assertion. Update comment.
2945 (value_binop): Update comment.
2946
2947 * eval.c (ptrmath_type_p): New function.
2948 (evaluate_subexp_standard): Replace value_add and value_sub
2949 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2950 Use builtin_type_uint8 instead of builtin_type_char to hold
2951 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2952 * valarith.c (value_subscript): Replace value_add by
2953 value_ptradd. Replace value_sub by value_binop.
2954 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2955 (ada_tag_name_2): Replace value_add by value_ptradd.
2956 (ada_evaluate_subexp): Replace value_add and value_sub by
2957 value_binop.
2958 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2959 by value_ptradd.
2960 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2961 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2962
98b90dd8
UW
29632008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2964
2965 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2966 the expression architecture instead of builtin_type_int as the
2967 sizeof return type.
2968
c806c55a
UW
29692008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2970
2971 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2972 a type parameter as expression element.
2973 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2974 type as expression element.
2975 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2976 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2977
fbb06eb1
UW
29782008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2979
2980 * language.h (struct language_arch_info): New members
2981 bool_type_default and bool_type_symbol.
2982 (lang_bool_type): Remove prototype.
2983 (LA_BOOL_TYPE): Remove macro.
2984 (language_bool_type): Add prototype.
2985 * language.c (lang_bool_type): Remove.
2986 (language_bool_type): New function.
2987
2988 * value.h (value_in): Change return value to int.
2989 * value.c (value_in): Return int instead of struct value *.
2990
2991 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2992 of using LA_BOOL_TYPE. Update call to value_in.
2993 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2994 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2995
2996 * language.c (unknown_language_arch_info): Set bool_type_default member
2997 of struct language_arch_info.
2998 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2999 bool_type_default members of struct language_arch_info.
3000 * c-lang.c (c_language_arch_info): Set bool_type_default member
3001 of struct language_arch_info.
3002 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
3003 members of struct language_arch_info.
3004 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
3005 bool_type_default members of struct language_arch_info.
3006 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
3007 bool_type_default members of struct language_arch_info.
3008 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
3009 bool_type_default members of struct language_arch_info.
3010 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
3011 bool_type_default members of struct language_arch_info.
3012
de7b6b47
UW
30132008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3014
3015 * jv-lang.c (enum java_primitive_types): New type.
3016 (java_language_arch_info): New function.
3017 (java_language): Use it instead of c_language_arch_info.
3018
afc05acb
UW
30192008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3020
3021 * value.h (value_bitstring_subscript): New prototype.
3022 * valarith.h (value_bitstring_subscript): New function.
3023 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
3024 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
3025 instead of value_subscript to handle TYPE_CODE_BITSTRING.
3026
3e79cecf
UW
30272008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3028
3029 * expression.h (struct expression): New member GDBARCH.
3030 * parse.c (parse_exp_in_context): Initialize it.
3031 * parser-def.h (parse_gdbarch, parse_language): New macros.
3032
3033 * ada-exp.y (parse_type): New macro.
3034 Replace builtin_type_ macros by using parse_type.
3035 Replace current_language by parse_language.
3036 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
3037 Replace builtin_type_ macros.
3038
3039 * c-exp.y (parse_type): New macro.
3040 Replace builtin_type_ macros by using parse_type.
3041 (parse_number): Replace current_gdbarch by parse_gdbarch.
3042 (yylex): Replace current_language by parse_language.
3043
3044 * f-exp.y (parse_type, parse_f_type): New macros.
3045 Replace builtin_type_ macros by using parse_{f_,}type.
3046 (parse_number): Replace current_gdbarch by parse_gdbarch.
3047 (yylex): Replace current_language by parse_language.
3048
3049 * jv-exp.y (parse_type): New macro.
3050 (parse_number): Replace builtin_type_ macros by using parse_type.
3051
3052 * m2-exp.y (parse_type, parse_m2_type): New macros.
3053 Replace builtin_type_ macros by using parse_{m2_,}type.
3054
3055 * objc-exp.y (parse_type): New macro.
3056 Replace builtin_type_ macros by using parse_type.
3057 (parse_number): Replace current_gdbarch by parse_gdbarch.
3058 (yylex): Replace current_language by parse_language.
3059
3060 * p-exp.y (parse_type): New macro.
3061 Replace builtin_type_ macros by using parse_type.
3062 (parse_number): Replace current_gdbarch by parse_gdbarch.
3063 (yylex): Replace current_language by parse_language.
3064
c841afd5
UW
30652008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3066
3067 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
3068 and DATA_SYMBOL_TYPE arguments.
3069 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
3070 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
3071 (write_dollar_variable): Update call.
3072
3073 * ada-exp.y (write_var_or_type): Update call.
3074 * c-exp.y: Likewise.
3075 * f-exp.y: Likewise.
3076 * jv-exp.y: Likewise.
3077 * m2-exp.y: Likewise.
3078 * objc-exp.y: Likewise.
3079 * p-exp.y: Likewise.
3080
0c1f74cf
JB
30812008-09-10 Joel Brobecker <brobecker@adacore.com>
3082
3083 * ada-lang.c (ada_parent_type): Add handling of the case where
3084 the _parent field is a pointer and/or has a parallel XVS type.
3085 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
3086 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
3087 the type of the tag instead of doing forcing an EVAL_NORMAL
3088 expression evaluation.
3089
5823c3ef
JB
30902008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
3091 Joel Brobecker <brobecker@adacore.com>
3092
3093 * ada-lang.c (is_digits_suffix): New function.
3094 (is_dot_digits_suffix): Remove.
3095 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
3096 before looking up in symbol table, and do not use wild matches on them.
3097 (wild_match): Reimplement for speed and to allow matching of operator
3098 symbols.
3099 (is_valid_name_for_wild_match): Return zero for names that do not
3100 follow the GNAT encoding.
3101
3102 (is_name_suffix): Fix typo in comment.
3103 (to_record_with_fixed_variant_part): Ditto.
3104
e5fa8013
PA
31052008-09-10 Pedro Alves <pedro@codesourcery.com>
3106
3107 * Makefile.in (gnu-nat.o): New rule.
3108
6d2e05aa
JB
31092008-09-10 Joel Brobecker <brobecker@adacore.com>
3110
3111 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
3112 archecture-neutral builtin_type_int32 instead of builtin_type_int.
3113
2ac8a782
JB
31142008-09-10 Joel Brobecker <brobecker@adacore.com>
3115
3116 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
3117 Add special handling for pointer types.
3118
b861ac81
PA
31192008-09-10 Pedro Alves <pedro@codesourcery.com>
3120
3121 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
3122 right scope level.
3123 (inf_ttrace_resume, inf_ttrace_wait): Typos.
3124
030b4912
UW
31252008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3126
3127 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
3128 of builtin_type_int.
3129 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
3130 instead of builtin_type_int.
3131
d51fd4c8
PA
31322008-09-09 Pedro Alves <pedro@codesourcery.com>
3133
3134 * infrun.c (normal_stop): Run hook-stop last.
3135
11cb6f65
PA
31362008-09-09 Pedro Alves <pedro@codesourcery.com>
3137
3138 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
3139 (init_gnu_ops): Don't register it.
3140
a9ab7422
PA
31412008-09-09 Pedro Alves <pedro@codesourcery.com>
3142
3143 * gnu-nat.c (gnu_attach): Push target before fetching the list of
3144 threads.
3145
694182d2
DJ
31462008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
3147
3148 * valops.c (value_cast_structs): Return NULL for failure.
3149 (value_cast): Handle NULL from value_cast_structs.
3150 (value_fetch_lazy): Call check_typedef. Remove unused variable.
3151
dcf4fbde
PA
31522008-09-08 Pedro Alves <pedro@codesourcery.com>
3153
3154 * inferior.h (context_switch_to): Delete.
3155 * infrun.c (context_switch): Don't save and load infrun state.
3156 (context_switch_to): Delete.
3157
3158 * infcmd.c (proceed_thread_callback): Replace context_switch_to
3159 calls by switch_to_thread calls.
3160
3161 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
3162 * thread.c (main_thread_state, main_thread_executing): Delete.
3163 (inferior_thread): Delete references to them.
3164 (add_thread_silent): Fix case where we're adding a thread with the
3165 same ptid as an exited thread. Remove references to
3166 context-switching.
3167 (load_infrun_state, save_infrun_state): Delete.
3168 (thread_alive, is_thread_state, any_running, is_executing)
3169 (set_executing): Remove the special handling for targets that
3170 don't register any thread.
3171 (restore_current_thread, thread_apply_all_command)
3172 (do_captured_thread_select): Unconditionally call
3173 switch_to_thread.
3174
3175 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
3176 Call switch_to_thread instead of context_switch_to.
3177
95e54da7
PA
31782008-09-08 Pedro Alves <pedro@codesourcery.com>
3179
3180 Remove global continuations in favour of a per-thread
3181 continuations.
3182
3183 * gdbthread.h (struct thread_info): Add comments around
3184 continuations and intermediate_continuations.
3185 (save_infrun_state, load_infrun_state): Delete continuations and
3186 intermediate_continuations arguments.
fedae5ff 3187 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
3188 * thread.c (clear_thread_inferior_resources): Discard all
3189 continuations of the thread we're clearing.
3190 (save_infrun_state, load_infrun_state): Delete continuations and
3191 intermediate_continuations arguments, and the code referencing
3192 them.
3193 * utils.c: Include "gdbthread.h".
3194 (cmd_continuation, intermediate_continuation): Delete.
3195 (add_continuation): Add thread_info* argument. Install the
3196 continuation on it.
3197 (restore_thread_cleanup): New.
3198 (do_all_continuations_ptid, do_all_continuations_thread_callback):
3199 New.
3200 (do_all_continuations): Reimplement.
3201 (discard_all_continuations_thread_callback,
3202 discard_all_continuations_thread): New.
3203 (discard_all_continuations): Reimplement.
3204 (add_intermediate_continuation): Add thread_info* argument.
3205 Install the continuation on it.
3206 (do_all_intermediate_continuations_thread_callback)
3207 (do_all_intermediate_continuations_thread): New.
3208 (do_all_intermediate_continuations): Reimplement.
3209 (discard_all_intermediate_continuations_thread_callback): New.
3210 (discard_all_intermediate_continuations_thread): New.
3211 (discard_all_intermediate_continuations): Reimplement.
3212
3213 * breakpoint.c (until_break_command): Install the continuation on
3214 the current thread.
3215
3216 * defs.h (cmd_continuation, intermediate_continuation): Delete.
3217 (struct thread_info): Forward declare.
3218 (add_continuation, add_intermediate_continuation): Add
3219 thread_info* argument.
3220 (do_all_continuations_thread, discard_all_continuations_thread)
3221 (do_all_intermediate_continuations_thread)
3222 (discard_all_intermediate_continuations_thread): Declare.
3223 * inf-loop.c (inferior_event_handler): In non-stop only run
3224 continuations on the thread that stopped. In all-stop, run
3225 continuations on all threads.
3226 * infcmd.c (step_once, finish_command): Adjust.
3227
414c69f7
PA
32282008-09-08 Pedro Alves <pedro@codesourcery.com>
3229
3230 Remove the global stop_step in favour of a per-thread
3231 stop_step.
3232
3233 * inferior.h (stop_step): Delete.
3234
3235 * gdbthread.h (struct thread_info): Add comments to stop_step.
3236 (save_infrun_state, load_infrun_state): Remove stop_step argument.
3237 * thread.c (load_infrun_state, save_infrun_state): Remove
3238 stop_step argument, and references to it.
3239
3240 * infrun.c (clear_proceed_status): Clear stop_step.
3241 (fetch_inferior_event): Adjust.
3242 (context_switch): Don't context-switch stop_step.
3243 (handle_inferior_event): Adjust.
3244 (normal_stop): Adjust.
3245 (save_inferior_status, restore_inferior_status): Adjust.
3246
3247 * infcmd.c (stop_step): Delete.
3248 (step_1, step_1_continuation, step_once, until_next_command):
3249 Adjust.
3250
af679fd0
PA
32512008-09-08 Pedro Alves <pedro@codesourcery.com>
3252
3253 Remove the global step_multi in favour of a per-thread
3254 step_multi.
3255
3256 * inferior.h (step_multi): Delete.
3257 * gdbthread.h (struct thread_info): Add comments around
3258 step_multi.
3259 (save_infrun_state, load_infrun_state): Remove step_multi
3260 parameter.
3261 * thread.c (load_infrun_state, save_infrun_state): Remove
3262 step_multi argument, and references to it.
3263 * infcmd.c (step_multi): Delete.
3264 (step_1): Adjust.
3265 (step_1_continuation, until_next_command): Adjust.
3266 * infrun.c (fetch_inferior_event): Adjust.
3267 (context_switch): Don't context-switch step_multi.
3268 (print_stop_reason, normal_stop): Adjust.
3269
2020b7ab
PA
32702008-09-08 Pedro Alves <pedro@codesourcery.com>
3271
3272 Remove the global stop_signal in favour of a per-thread
3273 stop_signal.
3274
3275 * inferior.h (stop_signal): Delete.
3276 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3277 stop_signal argument.
3278 * thread.c (load_infrun_state, save_infrun_state): Remove
3279 stop_signal argument. Don't reference it.
3280
3281 * infcmd.c (stop_signal): Delete.
3282 (program_info): Adjust.
3283 * infrun.c (resume): Clear stop_signal.
3284 (proceed): Adjust. Pass the last stop_signal to the thread we're
3285 resuming.
3286 (context_switch): Don't context-switch stop_signal.
3287 (handle_inferior_event, keep_going): Adjust.
3288 (save_inferior_status, restore_inferior_status): Adjust.
3289
3290 * fbsd-nat.c: Include "gdbthread.h".
3291 (find_signalled_thread, find_stop_signal): New.
3292 (fbsd_make_corefile_notes): Use it.
3293 * fork-child.c (startup_inferior): Adjust.
3294
3295 * linux-nat.c (get_pending_status): Adjust.
3296 (linux_nat_do_thread_registers): Adjust.
3297 (find_signalled_thread, find_stop_signal): New.
3298 (linux_nat_do_thread_registers): Add stop_signal parameter.
3299 (struct linux_nat_corefile_thread_data): Add stop_signal member.
3300 (linux_nat_corefile_thread_callback): Pass stop_signal.
3301 (linux_nat_do_registers): Delete.
3302 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
3303 there's always a thread.
3304
3305 * procfs.c (find_signalled_thread, find_stop_signal): New.
3306 (find_stop_signal): New.
3307 (procfs_do_thread_registers): Add stop_signal parameter.
3308 (struct procfs_corefile_thread_data): Add stop_signal member.
3309 (procfs_corefile_thread_callback): Pass args->stop_signal.
3310 (procfs_make_note_section): Find the last stop_signal.
3311
3312 * solib-irix.c: Include gdbthread.h.
3313 (irix_solib_create_inferior_hook): Adjust.
3314 * solib-osf.c: Include gdbthread.h.
3315 (osf_solib_create_inferior_hook): Adjust.
3316 * solib-sunos.c: Include gdbthread.h.
3317 (sunos_solib_create_inferior_hook): Adjust.
3318 * solib-svr4.c: Include gdbthread.h.
3319 (svr4_solib_create_inferior_hook): Adjust.
3320
3321 * win32-nat.c (do_initial_win32_stuff): Adjust.
3322
32400beb
PA
33232008-09-08 Pedro Alves <pedro@codesourcery.com>
3324
3325 * gdbthread.h (struct thread_info): Add comments around
3326 proceed_to_finish.
3327 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
3328 argument.
3329 * thread.c (load_infrun_state, save_infrun_state): Delete
3330 proceed_to_finish argument and references to it.
3331
3332 * infcall.c (call_function_by_hand): Adjust.
3333 * infcmd.c (finish_command): Adjust.
3334 * infrun.c (proceed_to_finish): Delete.
3335 (clear_proceed_status): Adjust.
3336 (context_switch): Don't context-switch proceed_to_finish.
3337 (normal_stop, save_inferior_status, restore_inferior_status):
3338 Adjust.
3339
347bddb7
PA
33402008-09-08 Pedro Alves <pedro@codesourcery.com>
3341
3342 * inferior.h (stop_bpstat): Delete.
3343
3344 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
3345
3346 * breakpoint.c (bpstat_do_actions): Rename to ...
3347 (bpstat_do_actions_1): ... this. Make static. Change return type
3348 to int. Return true if a breakpoint proceeded.
3349 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
3350 (delete_breakpoint): Don't reference the global stop_bpstat; it's
3351 gone.
3352
3353 * gdbthread.h (struct thread_info): Add stop_bpstat.
3354 (save_infrun_state, load_infrun_state): Remove stop_bpstat
3355 argument.
3356 * thread.c (load_infrun_state, save_infrun_state): Remove
3357 stop_bpstat argument, and the code referencing it.
3358
3359 * infcall.c: Include "gdbthread.h".
3360 (call_function_by_hand): Adjust.
3361 * exceptions.c: Include "gdbthread.h".
3362 (throw_exception): Adjust.
3363 * infcmd.c (stop_bpstat): Delete.
3364 (continue_command): In all-stop, set the ignore count on the
3365 thread that reported the stop. In non-stop, set it on the current
3366 thread.
3367 (finish_command_continuation): Adjust.
3368 (program_info): Adjust.
3369 * infrun.c (clear_proceed_status): Adjust.
3370 (context_switch): Don't context-switch stop_bpstat.
3371 (handle_inferior_event): Adjust.
3372 (normal_stop): Adjust.
3373 (save_inferior_status, restore_inferior_status): Adjust.
3374
3375 * inf-loop.c (inferior_event_handler): Remove parameter to
3376 bpstat_do_actions call.
3377 * top.c (command_loop): Remove parameter to bpstat_do_actions
3378 call. Call it unconditionally.
3379 * event-top.c (command_handler): Ditto.
3380 * python/python.c (execute_gdb_command): Ditto.
3381
078130d0
PA
33822008-09-08 Pedro Alves <pedro@codesourcery.com>
3383
3384 * inferior.h (step_over_calls): Delete.
3385
3386 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3387 step_over_calls argument.
3388 * thread.c (save_infrun_state, load_infrun_state): Remove
3389 step_over_calls argument. Adjust.
3390
3391 * infcmd.c (step_over_calls): Delete.
3392 (step_1): Adjust.
3393 * infrun.c (clear_proceed_status): Adjust.
3394 (context_switch): Don't context-switch step_over_calls.
3395 (handle_inferior_event, save_inferior_status)
3396 (restore_inferior_status): Adjust.
3397
4e1c45ea
PA
33982008-09-08 Pedro Alves <pedro@codesourcery.com>
3399
3400 Remove context switching in favour of accessing thread_info fields
3401 directly.
3402
3403 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
3404 Delete.
3405 (struct thread_stepping_state): Delete.
3406 (gtss, tss): Delete.
3407 (follow_inferior_reset_breakpoints, follow_exec)
3408 (resume, clear_proceed_status): Adjust.
3409 (prev_pc): Delete.
3410 (proceed, start_remote, init_wait_for_inferior): Adjust.
3411 (struct execution_control_state): Add event_thread member.
3412 (delete_step_resume_breakpoint_callback)
3413 (delete_step_thread_step_resume_breakpoint)
3414 (delete_step_thread_step_resume_breakpoint_cleanup)
3415 (delete_step_thread_step_resume_breakpoint): New.
3416 (wait_for_inferior, init_execution_control_state): Use
3417 delete_step_thread_step_resume_breakpoint_cleanup.
3418 (wait_for_inferior): Set the event_thread.
3419 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
3420 with delete_step_thread_step_resume_breakpoint.
3421 (init_thread_stepping_state): Change parameter type to
3422 thread_info. Adjust.
3423 (context_switch): Don't context switch prev_pc,
3424 stepping_over_breakpoint, step_resume_breakpoint,
3425 step_range_start, step_range_end, step_frame_id,
3426 tss->stepping_over_breakpoint,
3427 tss->stepping_through_solib_after_catch,
3428 tss->stepping_through_solib_catchpoints, tss->current_line, or
3429 tss->current_symtab.
3430 (adjust_pc_after_break, handle_inferior_event)
3431 (currently_stepping, step_into_function)
3432 (insert_step_resume_breakpoint_at_sal)
3433 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3434 (clear_stepping_state): New.
3435 (normal_stop): Adjust.
3436 (save_inferior_status, restore_inferior_status): Adjust.
3437
3438 * gdbthread.h (struct thread_info): Comments describing the
3439 members moved here. Add step_after_step_resume_breakpoint.
3440 (delete_step_resume_breakpoint): Add thread_info argument.
3441 (save_infrun_state, load_infrun_state): Remove prev_pc,
3442 trap_expected, step_resume_breakpoint, step_range_start,
3443 step_range_end, step_frame_id, another_trap,
3444 stepping_through_solib_after_catch,
3445 stepping_through_solib_catchpoints, current_line and
3446 current_symtab function arguments.
3447 (inferior_thread): Declare.
3448
3449 * thread.c (inferior_thread): New.
3450 (delete_step_resume_breakpoint): Add a thread_info parameter and
3451 rewrite.
3452 (load_infrun_state, save_infrun_state): Remove prev_pc,
3453 trap_expected, step_resume_breakpoint, step_range_start,
3454 step_range_end, step_frame_id, stepping_over_breakpoint,
3455 stepping_through_solib_after_catch,
3456 stepping_through_solib_catchpoints, current_line and
3457 current_symtab args. Remove code referencing them.
3458
3459 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3460 Delete.
3461 (step_1, step_once, until_next_command): Adjust.
3462
3463 * inferior.h (step_range_start, step_range_end, step_frame_id):
3464 Delete.
3465
3466 * linux-nat.c (linux_child_follow_fork): If following the child,
3467 move the step state to it. Adjust.
3468 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3469 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3470
757f359d
PA
34712008-09-08 Pedro Alves <pedro@codesourcery.com>
3472
3473 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3474 thread.
3475
0de3b513
PA
34762008-09-08 Pedro Alves <pedro@codesourcery.com>
3477
3478 * corelow.c (add_to_thread_list): If this is the first time we
3479 hear about thread info, update inferior_ptid.
3480 (core_open): Clear the thread list and set inferior_ptid before
3481 acknowledging a new inferior. Find threads before fetching
3482 register info. Give an upper target layer a chance to find and
3483 claim new threads. Print core generation and stop signal info
3484 after finding new threads.
3485 (get_core_register_section): Look at the lwp member of
3486 inferior_ptid for detecting if we have threads info, instead of
3487 the pid member.
3488 (core_pid_to_str): New.
3489 (init_core_ops): Register core_pid_to_str.
3490
4189d2f8
PA
34912008-09-08 Pedro Alves <pedro@codesourcery.com>
3492
3493 * spu-linux-nat.c (spu_child_post_startup_inferior)
3494 (spu_child_post_attach): Don't add the main thread here.
3495
617fd3b5
PA
34962008-09-08 Pedro Alves <pedro@codesourcery.com>
3497
3498 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3499
3500 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3501 seeing a thread id, extend the main thread's ptid. If we still
3502 have pending execs, don't be verbose about new threads.
3503 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3504 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3505 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3506 Adjust.
3507
2689673f
PA
35082008-09-08 Pedro Alves <pedro@codesourcery.com>
3509
3510 * procfs.c (to_attach): Create a procinfo for the current lwp.
3511 Add it to gdb's thread list.
3512 (procfs_fetch_registers, procfs_store_registers): Assume there's
3513 always an lwp.
3514 (procfs_wait): Don't add the main thread here.
3515 (procfs_init_inferior): Create a procinfo for the main lwp here.
3516 Change main thread's ptid with thread_change_ptid.
3517 (procfs_notice_thread): Check for exited threads.
3518 (procfs_corefile_thread_callback): Remove check for the main
3519 process.
3520 (procfs_make_note_section): Assume there is always a thread.
3521
3522 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3523 attaching. Change the main thread ptid with thread_change_ptid.
3524 (sol_thread_detach): Clear sol_thread_active.
3525 (sol_thread_wait): Check for exited threads.
3526 (sol_thread_create_inferior): Clear sol_thread_active before
3527 creating a new inferior. Change the main thread ptid with
3528 thread_change_ptid.
3529 (sol_thread_mourn_inferior): Clear sol_thread_active.
3530 (sol_find_new_threads_callback): Check for exited threads.
3531
62a93fa9
PA
35322008-09-08 Pedro Alves <pedro@codesourcery.com>
3533
3534 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3535 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3536 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3537 process, and return TARGET_WAITKIND_IGNORE.
3538
438ac09b
PA
35392008-09-08 Pedro Alves <pedro@codesourcery.com>
3540
3541 * inf-ttrace.c: Include <signal.h>
3542 (inf_ttrace_delete_dead_threads_callback): New.
3543 (inf_ttrace_resume_lwp): New.
3544 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3545 delete dying threads until they are really dead.
3546 (inf_ttrace_wait): After stopping the whole process, delete any
3547 dying thread that is really dead by now.
3548 (inf_ttrace_thread_alive): Return 1.
3549 (inf_ttrace_extra_thread_info): New.
3550 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3551
2935f27f
PA
35522008-09-08 Pedro Alves <pedro@codesourcery.com>
3553
3554 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3555 of the child fork.
3556 (inf_ttrace_attach): Add the main thread.
3557 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3558 for always a thread.
3559 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3560 using thread_change_ptid, and set its private data. Don't add the
3561 main thread here.
3562 (inf_ttrace_pid_to_str): Adjust.
3563
fb5e7258
PA
35642008-09-08 Pedro Alves <pedro@codesourcery.com>
3565
3566 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3567 thread_change_ptid. Check for exited threads.
3568 (bsd_uthread_find_new_threads): Check for exited threads.
3569
af990527
PA
35702008-09-08 Pedro Alves <pedro@codesourcery.com>
3571
3572 * inf-ptrace.c: Include "gdbthread.h".
3573 (inf_ptrace_attach): Add the main thread here.
3574 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3575 Decorate the main thread id with the lwp id.
3576
27c9d204
PA
35772008-09-08 Pedro Alves <pedro@codesourcery.com>
3578
3579 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3580 thread_change_ptid. Don't add or mark the main thread as running
3581 and executing here.
3582 * fork-child.c (fork_inferior): Add the main thread here.
3583
de9f48f0
JG
35842008-09-08 Jerome Guitton <guitton@adacore.com>
3585
3586 * rs6000-tdep.c (rs6000_fetch_instruction)
3587 (rs6000_skip_stack_check): New functions.
3588 (skip_prologue): Skip stack check sequence.
3589
52163a60
DD
35902008-09-08 David Daney <ddaney@avtrex.com>
3591
3592 * dummy-frame.h (frame.h): Include it.
3593 (struct frame_id): Remove declaration.
3594
87805e63
UW
35952008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3596
3597 * spu-tdep.c (spu_push_dummy_code): New function.
3598 (spu_gdbarch_init): Install it.
3599
0b1553bc
UW
36002008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3601
3602 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3603 instead of paddr_nz.
3604 * gdbarch.c: Regenerate.
3605
3606 * target.c (target_xfer_partial, debug_print_register): Use
3607 core_addr_to_string_nz instead of paddr_nz.
3608
2454a024
UW
36092008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3610
3611 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3612 *before* calling gdbarch_init_osabi.
3613 (rs6000_aix_init_osabi): Disable displaced stepping.
3614
b52323fa
UW
36152008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3616
3617 * target.c (update_current_target): Do not inherit to_open
3618 or to_close.
3619 (pop_target): Call target_close on target_stack instead
3620 of current_target.
3621 (pop_all_targets_above): Likewise.
3622
fead6908
UW
36232008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3624
3625 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3626 (gnuv3_print_method_ptr): Use it.
3627 (gnuv3_method_ptr_to_value): Likewise.
3628
60441ab9
UW
36292008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3630
3631 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3632 register_area callback function.
3633 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3634 Use it instead of current_gdbarch.
3635 * nto-procfs.c (procfs_store_registers): Update call.
3636
bb486190
UW
36372008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3638
3639 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3640 regcache architecture instead of current_gdbarch.
3641
9dacea90
UW
36422008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3643
3644 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3645 (check_for_saved): Use it instead of current_gdbarch.
3646 (is_arg_spill): Add gdbarch paramter. Use it instead
3647 of current_gdbarch.
3648 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3649 to is_arg_spill and check_for_saved.
3650 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3651
5db8bbe5
UW
36522008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3653
3654 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3655 instead of current_gdbarch.
3656
6ba38425
UW
36572008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3658
3659 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3660 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3661 Use it instead of current_gdbarch.
3662 (m68kbsd_supply_fpregset): Update call.
3663 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3664 (m68kbsd_collect_fpregset): Likewise.
3665
35488783
UW
36662008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3667
3668 * cris-tdep.c (cris_version, cris_mode): Remove.
3669 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3670 (cris_breakpoint_from_pc): Likewise.
3671 (cris_frame_unwind_cache): Use tdep->cris_version.
3672 (crisv32_scan_prologue): Likewise.
3673 (cris_spec_reg_applicable): Add gdbarch argument.
3674 Use tdep->cris_version.
3675 (cris_register_size, cris_special_register_name): Update calls.
3676 (cris_special_register_name): Add gdbarch argument.
3677 (cris_register_name, crisv32_register_name): Update calls.
3678
9dae60cc
UW
36792008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3680
3681 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3682 instead of current_gdbarch.
3683
3684 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3685 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3686 * sh-tdep.c (gdb_print_insn_sh): Remove.
3687 (sh_gdbarch_init): Install print_insn_sh directly.
3688
3689 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3690 from current_gdbarch.
3691 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3692 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3693 depending on mips_abi.
3694
24568a2c
UW
36952008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3696
3697 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3698 (smash_text_address): Likewise.
3699 * gdbarch.c, gdbarch.h: Regenerate.
3700
3701 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3702 * arch-utils.h (core_addr_identity): Likewise.
3703 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3704 (arm_smash_text_address): Likewise.
3705 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3706 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3707 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3708
3709 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3710 Use it instead of current_gdbarch.
3711
3712 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3713 arm_dwarf2_prev_register): Update calls.
3714 * m88k-tdep.c (m88k_unwind_pc): Update call.
3715
f7fd4728
UW
37162008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3717
3718 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3719 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3720 Call gdbarch_integer_to_address directly instead of converting
3721 to value and back. Update comment.
3722 (execute_stack_op): Update call site.
3723 * dwarf2loc.c (find_location_expression): Likewise.
3724 (locexpr_describe_location): Update
3725
3726 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3727 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3728 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3729 (dwarf2_loc_desc_needs_frame): Likewise.
3730
714835d5
UW
37312008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3732
3733 * breakpoint.h (struct bp_location): Change type of section
3734 member to "struct obj_section *".
3735 * tracepoint.h (struct tracepoint): Likewise.
3736 * symtab.h (struct general_symbol_info): Replace bfd_section
3737 member with obj_section.
3738 (struct symtab_and_line): Change type of section member to
3739 "struct obj_section *".
3740 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3741 (SYMBOL_OBJ_SECTION): ... this.
3742
3743 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3744 section as obj_section instead of bfd_section.
3745
3746 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3747 directly instead of looking of obj_section from bfd_section.
3748
3749 * objfiles.h (find_pc_sect_section): Remove.
3750 * objfiles.c (find_pc_sect_section): Remove.
3751 (find_pc_section): Inline find_pc_sect_section code.
3752
3753 * symfile.h (find_pc_overlay): Return struct obj_section *.
3754 (find_pc_mapped_section): Likewise.
3755 (section_is_overlay, section_is_mapped): Change type of section
3756 argument to struct obj_section *.
3757 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3758 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3759 (symbol_overlayed_address): Likewise.
3760 * symtab.h (symbol_overlayed_address): Likewise.
3761 * symfile.c (overlay_is_mapped): Remove.
3762 (section_is_mapped): Inline overlay_is_mapped code. Update.
3763 (overlay_invalidate_all): Update.
3764 (section_is_overlay): Change section argument to type
3765 "struct obj_section *". Use bfd_ methods.
3766 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3767 (pc_in_mapped_range): Likewise. Handle relocated sections.
3768 (sections_overlap): Likewise.
3769 (overlay_unmapped_address): Likewise.
3770 (overlay_mapped_address): Likewise.
3771 (symbol_overlayed_address): Likewise.
3772 (find_pc_overlay): Return struct obj_section *.
3773 (find_pc_mapped_section): Likewise.
3774 (list_overlays_command): Update.
3775 (map_overlay_command, unmap_overlay_command): Update.
3776 (simple_overlay_update): Update.
3777
3778 * block.h (blockvector_for_pc_sect): Change section argument
3779 to type "struct obj_section *".
3780 (block_for_pc_sect): Likewise.
3781 * block.c (blockvector_for_pc_sect): Change section argument
3782 to type "struct obj_section *".
3783 (block_for_pc_sect): Likewise.
3784 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3785 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3786 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3787 (matching_bfd_sections): Rename to ...
3788 (matching_obj_sections): ... this. Update argument types.
3789 * blockframe.c (find_pc_sect_function): Likewise.
3790 * breakpoint.c (describe_other_breakpoints): Likewise.
3791 (breakpoint_has_pc, check_duplicates_for): Likewise.
3792 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3793 (lookup_minimal_symbol_by_pc_section): Likewise.
3794 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3795 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3796 find_pc_sect_line, find_function_start_pc): Likewise.
3797 (matching_bfd_sections): Rename to ...
3798 (matching_obj_sections): ... this. Update argument types.
3799
3800 * blockframe.c (find_pc_partial_function): Update to section
3801 type changes. No longer call find_pc_sect_section.
3802 (cache_pc_function_section): Change to type "struct obj_section *".
3803 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3804 * exec.c (xfer_memory): Likewise.
3805 * findvar.c (read_var_value): Likewise.
3806 * infcmd.c (jump_command): Likewise.
3807 * linespec.c (minsym_found): Likewise.
3808 * maint.c (maintenance_translate_address): Likewise.
3809 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3810 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3811 * parse.c (write_exp_msymbol): Likewise.
3812 * printcmd.c (build_address_symbolic): Likewise.
3813 (address_info, sym_info): Likewise.
3814 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3815 * symtab.c (fixup_section): Likewise.
3816 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3817 (find_pc_line, find_function_start_sal): Likewise.
3818 * target.c (memory_xfer_partial): Likewise.
3819 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3820 * spu-tdep.c (spu_overlay_update): Likewise.
3821
623d3eb1
DE
38222008-09-04 Doug Evans <dje@google.com>
3823
3824 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3825 Change argument of pulongest from CORE_ADDR to ULONGEST.
3826 All callers updated.
3827 * utils.c (plongest): Renamed from paddr_d.
3828 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3829 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3830 `CORE_ADDR addr' arg of error message.
3831
8775bb90
MS
38322008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3833
3834 * ser-tcp.c (ser_tcp_send_break): New function.
3835 (_initialize_ser_tcp): Use ser_tcp_send_break.
3836 * ser-tcp.h (ser_tcp_send_break): New prototype.
3837
9ff3afda
UW
38382008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3839
3840 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3841 when allocating stack frame for inferior call.
3842
c4891da7
UW
38432008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3844
3845 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3846 SP or return address if we failed to find a valid frame.
3847
514f746b
AR
38482008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3849
3850 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3851 non-permanent breakpoints.
3852 (bpstat_stop_status): Change enable_state to bp_disabled only for
3853 non-permanent breakpoints.
3854 (bp_loc_is_permanent): New function.
3855 (create_breakpoint): Check if the location points to a permanent
3856 breakpoint and if it does, make breakpoint permanent.
3857 (update_breakpoint_locations): Make sure new locations of permanent
3858 breakpoints are properly initialized.
3859 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3860 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3861
a12654ce
PA
38622008-09-02 Pedro Alves <pedro@codesourcery.com>
3863
3864 * breakpoint.c (insert_breakpoints, update_global_location_list):
3865 Check breakpoints_always_inserted_mode instead of
3866 always_inserted_mode directly.
3867
8b7a6d61
AS
38682008-09-02 Andreas Schwab <schwab@suse.de>
3869
3870 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3871
d68209e4
JK
38722008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 Stay compatible after the GCC PR fortran/29635 fix.
3875 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3876 (process_die <DW_TAG_imported_module>): Do not assert anything about
3877 these unsupported tags.
3878
ef4cb050
TT
38792008-08-29 Tom Tromey <tromey@redhat.com>
3880
3881 * maint.c (_initialize_maint_cmds): Fix typo.
3882
a683b3c0
TT
38832008-08-29 Tom Tromey <tromey@redhat.com>
3884
3885 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3886 obstack.
3887
3e88cf8d
UW
38882008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3889
3890 * remote.c: Include "gdb_stat.h".
3891
a45ae3ed
UW
38922008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3893
3894 * dummy-frame.h (dummy_frame_pop): Add prototype.
3895 * dummy-frame.c: Include "observer.h".
3896 (dummy_frame_push): Do not check for stale frames.
3897 (dummy_frame_pop): New function.
3898 (cleanup_dummy_frames): New function.
3899 (_initialize_dummy_frame): Install it as inferior_created observer.
3900
3901 * frame.h (struct frame_id): Update comments.
3902 (frame_id_inner): Remove prototype.
3903 * frame.c (frame_id_inner): Make static. Add comments.
3904 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3905 false positives for targets using non-contiguous stack ranges.
3906 (get_prev_frame_1): Update frame_id_inner safety net check.
3907 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3908
3909 * stack.c (return_command): Directly pop the selected frame.
3910 * infrun.c (handle_inferior_event): Remove dead code.
3911 * i386-tdep.c (i386_push_dummy_call): Update comment.
3912
879d1e6b
UW
39132008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3914
3915 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3916 breakpoint from shared library.
3917
97ec2c2f
UW
39182008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3919
3920 * solib-svr4.c (read_program_header): New function.
3921 (scan_dyntag_auxv): New function.
3922 (elf_locate_base): Use it if scan_dyntag fails.
3923 (find_program_interpreter): New function.
3924 (enable_break): Use it instead of .interp section.
3925
f1838a98
UW
39262008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3927
3928 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3929 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3930 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3931 remote_bfd_open): New functions.
3932 (remote_hostio_send_command): Fail safely if remote connection
3933 is not set up.
3934
3935 * solist.h (solib_open): Remove prototype.
3936 (solib_bfd_open): Add prototype.
3937 * solib.c: Include "remote.h".
3938 (solib_open): Remove, replace by ...
3939 (solib_bfd_open): ... this new function. Handle remote BFDs.
3940 (solib_map_sections): Replace solib_open by solib_bfd_open.
3941 * solib-frv.c: Include "exceptions.h".
3942 (enable_break2): Replace solib_open by solib_bfd_open.
3943 * solib-svr4.c: Include "exceptions.h".
3944 (enable_break): Replace solib_open by solib_bfd_open.
3945
3946 * symfile.c: Include "remote.h".
3947 (build_id_verify): Handle remote BFDs.
3948 (separate_debug_file_exists): Use BFD to access file. Handle
3949 remote BFDs.
3950 (symfile_bfd_open): Handle remote BFDs.
3951 (reread_symbols): Handle remote BFDs.
3952
3953 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3954
1cf3db46
UW
39552008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3956
3957 * gdbarch.sh (target_gdbarch): New global variable.
3958 (deprecated_current_gdbarch_select_hack): Set it.
3959 * gdbarch.c, gdbarch.h: Regenerate.
3960
3961 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3962 of current_gdbarch.
3963 * target-descriptions.c (target_find_description): Likewise.
3964 * arm-tdep.c (arm_update_current_architecture): Likewise.
3965 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3966 arm_show_force_mode): Likewise.
3967 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3968 show_mips_abi): Likewise.
3969 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3970
3971 * target.c (target_translate_tls_address): Use target_gdbarch
3972 instead of current_gdbarch.
3973 * remote.c (struct packet_reg): Likewise.
3974 (get_remote_arch_state, packet_reg_from_regnum,
3975 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3976 remote_address_masked, remote_insert_breakpoint,
3977 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3978 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3979 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3980 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3981
3982 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3983 solib_add, info_sharedlibrary_command, solib_address,
3984 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3985 solib_global_lookup): Likewise.
3986 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3987 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3988 Likewise.
3989 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3990 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3991 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3992 Likewise.
3993 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3994 nto_truncate_ptr): Likewise.
3995 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3996
6207416c
LM
39972008-08-26 Luis Machado <luisgpm@br.ibm.com>
3998
3999 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
4000 (ppc_linux_vmx_regset_sections): New structure.
4001 (ppc_linux_fp_regset_sections): New structure.
4002 (ppc_linux_init_abi): Select core-file regset based on target
4003 features.
4004
0ff58721
UW
40052008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
4006
4007 * target.c (debug_print_register): Use regcache_raw_collect
4008 instead of regcache_cooked_read. Only handle raw registers.
4009
6c5561f9
PA
40102008-08-25 Pedro Alves <pedro@codesourcery.com>
4011
4012 * cp-name-parser.y: Include config.h before system headers.
4013
ed0c3906
UW
40142008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4015
4016 * m88k-tdep.c: Update for unwinder changes.
4017
119ac181
TT
40182008-08-24 Tom Tromey <tromey@redhat.com>
4019
4020 * s390-tdep.c (s390_address_class_type_flags): Use
4021 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
4022 (s390_address_class_type_flags_to_name): Likewise.
4023 (s390_address_class_name_to_type_flags): Likewise.
4024
803e1097
TT
40252008-08-24 Tom Tromey <tromey@redhat.com>
4026
4027 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
4028 TYPE_FLAGS.
4029 * features/rs6000/powerpc-vsx32l.c
4030 (initialize_tdesc_powerpc_vsx32l): Update.
4031 * features/rs6000/powerpc-vsx32.c
4032 (initialize_tdesc_powerpc_vsx32): Update.
4033 * features/rs6000/powerpc-vsx64.c
4034 (initialize_tdesc_powerpc_vsx64): Update.
4035 * features/rs6000/powerpc-vsx64l.c
4036 (initialize_tdesc_powerpc_vsx64l): Update.
4037 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
4038 TYPE_VECTOR, not TYPE_FLAGS.
4039
876cecd0
TT
40402008-08-24 Tom Tromey <tromey@redhat.com>
4041
4042 * xml-tdesc.c (tdesc_end_union): Update.
4043 * stabsread.c (define_symbol): Update.
4044 (read_type): Update.
4045 (read_struct_type): Update.
4046 (read_enum_type): Update.
4047 * spu-tdep.c (spu_builtin_type_vec128): Update.
4048 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
4049 (sh_push_dummy_call_nofpu): Update.
4050 * mdebugread.c (parse_symbol): Update.
4051 (parse_symbol): Update.
4052 (parse_symbol): Update.
4053 (upgrade_type): Update.
4054 * jv-lang.c (java_lookup_class): Update.
4055 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
4056 * i386-tdep.c (i386_mmx_type): Update.
4057 (i386_sse_type): Update.
4058 * gdbtypes.h (enum type_flag_value): New enum.
4059 (enum type_instance_flag_value): New enum.
4060 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
4061 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
4062 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
4063 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
4064 TYPE_FLAG_NOTTEXT): Now enum constants.
4065 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
4066 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
4067 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
4068 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
4069 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
4070 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
4071 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
4072 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
4073 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
4074 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
4075 TYPE_NOTTEXT): Update.
4076 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
4077 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
4078 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
4079 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
4080 TYPE_ADDRESS_CLASS_ALL): Update.
4081 (struct main_type) <flags>: Remove.
4082 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
4083 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
4084 flag_vector, flag_stub_supported, flag_nottext,
4085 flag_fixed_instance>: New fields.
4086 <nfields, vptr_fieldno>: Move earlier.
4087 (TYPE_FLAGS): Remove.
4088 * gdbtypes.c (make_pointer_type): Update.
4089 (address_space_name_to_int): Update.
4090 (address_space_int_to_name): Update.
4091 (make_type_with_address_space): Update.
4092 (make_cv_type): Update.
4093 (create_range_type): Update.
4094 (get_discrete_bounds): Update.
4095 (create_set_type): Update.
4096 (make_vector_type): Update.
4097 (smash_to_method_type): Update.
4098 (check_typedef): Update.
4099 (check_stub_method): Update.
4100 (init_type): Individually assign flag fields.
4101 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
4102 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
4103 (copy_type_recursive): Copy the entire main type. Don't use
4104 TYPE_FLAGS.
4105 * features/rs6000/powerpc-altivec64l.c
4106 (initialize_tdesc_powerpc_altivec64l): Update.
4107 * features/rs6000/powerpc-altivec64.c
4108 (initialize_tdesc_powerpc_altivec64): Update.
4109 * features/rs6000/powerpc-altivec32l.c
4110 (initialize_tdesc_powerpc_altivec32l): Update.
4111 * features/rs6000/powerpc-altivec32.c
4112 (initialize_tdesc_powerpc_altivec32): Update.
4113 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
4114 Update.
4115 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
4116 Update.
4117 * dwarf2read.c (read_structure_type): Update.
4118 (read_enumeration_type): Likewise.
4119 (process_enumeration_scope): Likewise.
4120 (read_tag_pointer_type): Likewise.
4121 (read_subroutine_type): Likewise.
4122 (read_subroutine_type): Likewise.
4123 (read_base_type): Likewise.
4124 * coffread.c (coff_read_enum_type): Update.
4125 * ada-valprint.c (adjust_type_signedness): Update.
4126 * ada-typeprint.c (print_record_field_types): Update.
4127 * ada-lang.c (packed_array_type): Update.
4128 (empty_record): Don't reset TYPE_FLAGS.
4129 (ada_template_to_fixed_record_type_1): Update.
4130 (ada_template_to_fixed_record_type_1): Likewise.
4131 (template_to_static_fixed_type): Likewise.
4132 (to_record_with_fixed_variant_part): Likewise.
4133 (to_fixed_record_type): Likewise.
4134 (to_fixed_array_type): Likewise.
4135 (to_static_fixed_type): Likewise.
4136
d4ce0d3f
TT
41372008-08-23 Jim Blandy <jimb@redhat.com>
4138
4139 PR macros/607:
4140 * symmisc.c (print_symbol_bcache_statistics): Include statistics
4141 for the macro bcache.
4142
2e668a5d
TT
41432008-08-23 Tom Tromey <tromey@redhat.com>
4144
4145 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
4146 (argc): Now 31 bits.
4147
75a2d5e7
TT
41482008-08-22 Tom Tromey <tromey@redhat.com>
4149
4150 * NEWS: Move macro entries back under "New commands".
4151
25db0f1b
UW
41522008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4153
4154 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
4155 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
4156 (create_overlay_event_breakpoint): Loop over all objfiles to install
4157 multiple instances of the overlay event breakpoint if present.
4158
0391f248
UW
41592008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4160
4161 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
4162 (info_spu_event_command): Command only supported on SPU architecture.
4163 (info_spu_signal_command): Likewise.
4164 (info_spu_mailbox_command): Likewise.
4165 (info_spu_dma_command): Likewise.
4166 (info_spu_proxydma_command): Likewise.
4167
24a73cce
UW
41682008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4169
4170 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
4171 if the thread has already exited.
4172
e0bb1c1c
PA
41732008-08-22 Pedro Alves <pedro@codesourcery.com>
4174
4175 * infrun.c (proceed): Move back setting previous_inferior_ptid
4176 from here ...
4177 (wait_for_inferior): ... to here.
4178 (fetch_inferior_event): ... and here.
4179
a3ecef73
UW
41802008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4181
4182 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
4183 (deprecated_current_gdbarch_select_hack): Call registers_changed
4184 instead of reinit_frame_cache.
4185 * gdbarch.c: Regenerate.
4186
45148c2e
UW
41872008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4188
4189 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
4190
6a94242b
DJ
41912008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4192
4193 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
4194
5045add0
UW
41952008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4196
4197 * findvar.c (locate_var_value): Do not call get_frame_arch
4198 with a NULL frame argument.
4199
029a67e4
UW
42002008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4201
4202 * frame.h (frame_map_regnum_to_name): Remove prototype.
4203 (frame_map_name_to_regnum): Remove prototype.
4204 * frame.c (frame_map_regnum_to_name): Remove.
4205 (frame_map_name_to_regnum): Remove.
4206 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
4207 instead of frame_map_regnum_to_name.
4208 * ax-gdb.c: Include "user-regs.h".
4209 (gen_expr): Use user_reg_map_name_to_regnum instead of
4210 frame_map_name_to_regnum.
4211 * eval.c: Include "user-regs.h".
4212 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
4213 instead of frame_map_name_to_regnum.
4214 * infcmd.c (registers_info): Likewise.
4215 * parse.c: Include "user-regs.h".
4216 (write_dollar_variable): Use user_reg_map_name_to_regnum
4217 instead of frame_map_name_to_regnum.
4218 * tracepoint.c: Include "user-regs.h".
4219 (encode_actions): Use user_reg_map_name_to_regnum
4220 instead of frame_map_name_to_regnum.
4221 * valops.c: Include "user-regs.h".
4222 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
4223 of frame_map_regnum_to_name.
4224
e84ee240
UW
42252008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4226
4227 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
4228 and manually relocate .opd contents from BFD instead of reading
4229 them from target memory.
4230
0114d602
DJ
42312008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4232
4233 * dwarf2read.c (processing_current_prefix): Delete static
4234 variable.
4235 (process_full_comp_unit): Do not set processing_current_prefix.
4236 (dwarf2_full_name): New function.
4237 (read_func_scope): Do not set processing_current_prefix. Use
4238 determine_prefix.
4239 (read_structure_type): Do not set processing_current_prefix. Remove
4240 unused inner cleanup.
4241 (process_structure_scope): Do not set processing_current_prefix.
4242 (read_enumeration_type): Use dwarf2_full_name.
4243 (determine_class_name): Return a const char *. Put the result
4244 on the objfile obstack. Use dwarf2_full_name.
4245 (read_namespace_type): New function.
4246 (read_namespace): Do not create the type here. Use
4247 determine_prefix.
4248 (read_typedef): Use dwarf2_full_name. Do not pass the name
4249 to init_type.
4250 (read_base_type): Do not pass the name to init_type. Handle
4251 TYPE_FLAG_NOSIGN.
4252 (read_unspecified_type): Do not pass the name to init_type.
4253 (new_symbol): Use dwarf2_full_name instead of
4254 processing_current_prefix.
4255 (read_type_die): Do not set processing_current_prefix. Handle
4256 DW_TAG_namespace.
4257 (determine_prefix): Handle specifications. Return the result
4258 on the objfile obstack. Handle unions correctly.
4259
df8a16a1
DJ
42602008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4261
4262 * buildsym.c (add_symbol_to_list): Do not call
4263 cp_scan_for_anonymous_namespaces here.
4264 (finish_block): Do not call cp_set_block_scope here.
4265 * cp-namespace.c (processing_has_namespace_info)
4266 (processing_current_prefix): Delete.
4267 (cp_initialize_namespace): Do not initialize
4268 processing_has_namespace_info.
4269 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
4270 not check processing_has_namespace_info.
4271 (cp_set_block_scope): Take prefix and namespace info flag as
4272 arguments. Honor namespaces regardless of a demangled name.
4273 * cp-support.h (processing_has_namespace_info)
4274 (processing_current_prefix): Delete declarations.
4275 (cp_set_block_scope): Update prototype.
4276 * dwarf2read.c (processing_has_namespace_info)
4277 (processing_current_prefix): New static variables.
4278 (read_file_scope): Initialize processing_has_namespace_info.
4279 (read_func_scope): Call cp_set_block_scope for C++.
4280 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
4281 * symtab.c (symbol_demangled_name): Accept a const argument.
4282 * symtab.h (symbol_demangled_name): Update prototype.
4283
3567439c
DJ
42842008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4285
4286 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
4287 * blockframe.c (find_pc_partial_function): Likewise.
4288 * buildsym.c (find_symbol_in_list): Likewise.
4289 * c-valprint.c (c_val_print): Likewise.
4290 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
4291 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
4292 * cp-support.c (cp_remove_params): Renamed from remove_params and
4293 made global.
4294 (overload_list_add_symbol): Update call to remove_params.
4295 * cp-support.h (cp_remove_params): Declare.
4296 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
4297 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
4298 * expprint.c (dump_subexp_body_standard): Likewise.
4299 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
4300 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
4301 for messages.
4302 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
4303 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4304 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4305 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
4306 symbols and SYMBOL_PRINT_NAME for messages.
4307 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4308 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
4309 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
4310 SYMBOL_SET_LINKAGE_NAME.
4311 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
4312 * minsyms.c (add_minsym_to_demangled_hash_table): Use
4313 SYMBOL_SEARCH_NAME.
4314 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
4315 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
4316 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
4317 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
4318 (address_info): Use SYMBOL_PRINT_NAME for messages and
4319 SYMBOL_LINKAGE_NAME for lookups.
4320 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
4321 * stabsread.c (patch_block_stabs, define_symbol)
4322 (read_type, read_enum_type, common_block_end)
4323 (cleanup_undefined_types_1, scan_file_globals): Use
4324 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
4325 and SYMBOL_PRINT_NAME.
4326 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
4327 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
4328 cp_remove_params instead of cplus_demangle.
4329 (print_block_frame_labels, print_frame_arg_vars): Use
4330 SYMBOL_LINKAGE_NAME.
4331 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
4332 SYMBOL_LINKAGE_NAME.
4333 (dump_symtab_1, print_symbol, print_partial_symbols)
4334 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
4335 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
4336 (SYMBOL_SET_LINKAGE_NAME): New.
4337 (SYMBOL_SET_NAMES): Add a comment.
4338 * tracepoint.c (set_traceframe_context, validate_actionline)
4339 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
4340 lookups and SYMBOL_PRINT_NAME for output.
4341 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
4342 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4343
aded6f54
PA
43442008-08-21 Pedro Alves <pedro@codesourcery.com>
4345
4346 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
4347 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
4348 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
4349 obj_section_addr and obj_section_endaddr.
4350 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
4351 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4352 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
4353 (find_extant_func_descr): Likewise.
4354 * solib-frv.c (frv_relocate_main_executable): Use
4355 obj_section_addr.
4356 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
4357 obj_section_addr and obj_section_endaddr.
4358
158c7665
PH
43592008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
4360
4361 * NEWS: Amplify last entry on boolean types in Ada.
4362
f2f0e013
DJ
43632008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4364
4365 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
4366 Make the dwarf2_cu * parameter output as well as input. Update it if
4367 we follow a reference to another CU.
4368 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
4369 (die_type, die_containing_type): Update calls to changed functions.
4370 Use the returned CU along with the returned DIE.
4371 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
4372
03dd20cc
DJ
43732008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4374
4375 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
4376 in the DIEs here.
4377 (process_queue): Do not read in the DIEs here.
4378 (psymtab_to_symtab_1): Update call to queue_comp_unit.
4379 (read_full_die): Do not call queue_comp_unit from here.
4380 (maybe_queue_comp_unit): New function.
4381 (follow_die_ref): Use it.
4382
b60c80d6
DJ
43832008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4384
4385 * dwarf2read.c (struct attribute): Move earlier.
4386 (struct die_info): Change attrs to a trailing array.
4387 (dwarf_alloc_die): Take the number of attributes. Allocate space
4388 for them.
4389 (read_full_die): Update call to dwarf_alloc_die. Do not manually
4390 allocate attributes.
4391
51545339
DJ
43922008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4393
4394 * dwarf2read.c (REF_HASH_SIZE): Delete.
4395 (struct dwarf2_cu): Replace die_ref_table with die_hash.
4396 (struct die_info): Remove next_ref.
4397 (store_in_ref_table): Remove offset argument. Rewrite to use
4398 htab_find_slot_with_hash.
4399 (die_hash, die_eq): New.
4400 (read_comp_unit): Allocate the die_hash.
4401 (read_die_and_children): Update call to store_die_ref.
4402 (follow_die_ref): Rewrite to use htab_find_with_hash.
4403
7475d072
DJ
44042008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4405
4406 * dwarf2read.c (free_die_list, copy_die): Delete.
4407 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
4408 on the obstack.
4409 (read_full_die): Update call to dwarf_alloc_die. Allocate
4410 attributes on the CU obstack.
4411 (free_one_comp_unit): Do not call free_die_list.
4412
1d325ec1
DJ
44132008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4414
4415 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
4416 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
4417 sibling list.
4418 (read_full_die): Do not allocate DIEs for abbrev 0.
4419 (follow_die_ref): Correct error message.
4420
b96e2927
PA
44212008-08-20 Pedro Alves <pedro@codesourcery.com>
4422
4423 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4424 there are no symbols loaded, instead of throwing a generic error.
4425 (decode_variable): Likewise.
4426
f1f6aadf
PA
44272008-08-20 Pedro Alves <pedro@codesourcery.com>
4428
4429 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4430 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4431 macros.
4432 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4433 and offset. Use size_t instead of unsigned long.
4434 (build_objfile_section_table): Use size_t instead of unsigned
4435 long.
4436 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4437 gone.
4438 (find_pc_sect_section): Use obj_section_addr and
4439 obj_section_endaddr.
4440 * symfile.c (symfile.c): Remove code that maps sections
4441 offsets in "addr" to the object's sections.
4442 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4443 * gcore.c (gcore_create_callback): Use obj_section_addr and
4444 obj_section_endaddr.
4445 * maint.c (print_objfile_section_info): Likewise.
4446 * printcmd.c (sym_info): Use obj_section_addr and
4447 obj_section_endaddr.
4448 * symtab.c (fixup_section): Likewise.
4449
3923a2b2
MK
44502008-08-20 Mark Kettenis <kettenis@gnu.org>
4451
4452 * sparc-tdep.c: Make some comments catch up with reality.
4453
b3eb342c
VP
44542008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4455
4456 * NEWS: Mention 'set target-async'
4457
7f7efbd9
VP
44582008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4459
4460 * infrun.c (resume): If the thread is placed to the deferred step
4461 queue, mark it as running.
4462
9908b566
VP
44632008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4464
4465 Make sure target supports non-stop.
4466 * infcmd.c (run_command_1, attach_command): If non-stop mode
4467 is requested, verify the target supports it.
4468 * linux-nat.c (linux_nat_supports_non_stop): New.
4469 (linux_nat_add_target): Register the above.
4470 * target.c (find_default_supports_non_stop)
4471 (target_supports_non_stop): New.
4472 (init_dummy_target): Register find_default_supports_non_stop.
4473 * target.h (struct target_ops): New field to_supports_non_stop.
4474 (target_supports_non_stop): New.
4475
c6ebd6cf
VP
44762008-08-19 Pedro Alves <pedro@codesourcery.com>
4477 Vladimir Prus <vladimir@codesourcery.com>
4478
4479 * target.c (target_async_permitted, target_async_permitted_1)
4480 (set_maintenance_target_async_permitted)
4481 (show_maintenance_target_async_permitted): New.
4482 (initialize_targets): Register 'set target-async'.
4483 * target.h (target_async_permitted): Declare.
4484 * linux-nat.c (linux_nat_async_enabled)
4485 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4486 (show_maintenance_linux_async_permitted): Remove.
4487 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4488 (get_pending_events, linux_nat_async): Use target_async_permitted.
4489 (linux_nat_set_async_mode): Remove, moving the only used bits
4490 into...
4491 (linux_nat_setup_async): This.
4492 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4493 Use linux_nat_setup_async.
4494 * remote.c (remote_async_permitted, remote_async_permitted_set)
4495 (set_maintenance_remote_async_permitted)
4496 (show_maintenance_remote_async_permitted): Remove.
4497 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4498 (remote_is_async_p): Use target_async_permitted.
4499 (_initialize_remote): Don't register 'main set remote-async'.
4500 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4501 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4502 * mi/mi-main.c (mi_cmd_list_target_features): New.
4503
073120b9
VP
45042008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4505
4506 * target.c (maybe_kill_then_attach)
4507 (maybe_kill_then_create_inferior): Remove.
4508 (update_current_target): Do not default to_attach,
4509 to_create_inferiour, to_is_async_p.
4510
690cc4eb 45112008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4512
4513 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4514 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4515 API to return LONGEST values rather than struct values.
4516 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4517 and discrete_type_high_bound.
4518 (to_fixed_range_type): Create a range type in cases where
4519 argument is base type and its limits are representable as ints.
4520 (ada_is_modular_type): Correct so that base type must be integral.
4521 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4522 keywords when they appear alone, since we are phasing out
bfb8797a 4523 direct representation of these identifiers in debugging data.
690cc4eb
PH
4524 * ada-exp.y: Define 'true' and 'false' as primaries.
4525 (type_boolean): New function.
4526 (type_int,type_long,type_long_long,type_floattype_double)
4527 (type_long_double): Remove uses of current_gdbarch for consistency
4528 with type_boolean.
4529 (write_int): Change comment to indicate that it might write boolean
4530 constant as well.
4531 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4532 type, since will no longer be represented as enumerated type in
4533 debugging data.
4534 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4535 as well.
bfb8797a
PH
4536 * NEWS: Note support boolean types.
4537
39540081
PA
45382008-08-18 Pedro Alves <pedro@codesourcery.com>
4539
4540 * bsd-uthread.c (bsd_uthread_close): New.
4541 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4542 target.
4543 (bsd_uthread_solib_loaded): Fix typo.
4544 (bsd_uthread_target): Register bsd_uthread_close.
4545
87ab71f0
PA
45462008-08-18 Pedro Alves <pedro@codesourcery.com>
4547
4548 * corelow.c (core_open): Assume there was no upper layer left
4549 behind from a previous inferior.
4550 * target.c (pop_all_targets): Rename to ...
4551 (pop_all_targets_above): ... this. Add a target stratum
4552 parameter. Use it instead of hardcoding the dummy_stratum.
4553 (pop_all_targets): New, defer to pop_all_targets_above.
4554 (target_preopen): Use pop_all_targets_above.
4555 * target.h (pop_all_targets_above): Declare.
4556
5231c1fd
PA
45572008-08-18 Pedro Alves <pedro@codesourcery.com>
4558
4559 * gdbthread.h (thread_change_ptid): Declare.
4560 * infrun.c (infrun_thread_ptid_changed): New.
4561 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4562 thread_ptid_changed observer.
4563 * regcache.c (regcache_thread_ptid_changed): New.
4564 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4565 thread_ptid_changed observer.
4566 * thread.c (thread_change_ptid): New.
4567
f98dfd4b
TT
45682008-08-18 Tom Tromey <tromey@redhat.com>
4569
4570 * symfile.c (reread_symbols): Update.
4571 * solib-sunos.c (allocate_rt_common_objfile): Update.
4572 * objfiles.c (allocate_objfile): Update.
4573 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4574 Remove.
4575
d87ecdfb
TT
45762008-08-18 Tom Tromey <tromey@redhat.com>
4577
4578 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4579 obstack.
4580
46a9b8ed
DJ
45812008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4582
4583 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4584 lr_register.
4585 (rs6000_in_function_epilogue_p): Check for bctr.
4586 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4587 number. Set gpr_mask and used_bl. Continue scanning while some
4588 expected registers are not saved. Set lr_register if LR is not
4589 stored.
4590 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4591
44feb3ce
TT
45922008-08-17 Tom Tromey <tromey@redhat.com>
4593
4594 PR gdb/1535:
4595 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4596 (ep_find_event_name_end): Remove.
4597 (catch_fork_temporary, catch_vfork_temporary,
4598 catch_fork_permanent, catch_vfork_permanent): New constants.
4599 (catch_vfork, catch_fork): Remove.
4600 (catch_fork_command_1): Add 'command' argument. Remove
4601 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4602 all cases.
4603 (catch_exec_command_1): Add 'command' argument; remove
4604 'tempflag'. Handle NULL 'arg'.
4605 (catch_load_command_1): Likewise.
4606 (catch_unload_command_1): Likewise.
4607 (catch_ada_exception_command): Likewise.
4608 (catch_assert_command): Likewise.
4609 (catch_catch_command): New function.
4610 (catch_throw_command): Likewise.
4611 (catch_command_1): Remove.
4612 (catch_command): Just call error.
4613 (tcatch_command): Likewise.
4614 (catch_cmdlist): New global.
4615 (tcatch_cmdlist): Likewise.
4616 (add_catch_command): New function.
4617 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4618 commands. Create all catch sub-commands.
4619
0d6431e2
PA
46202008-08-17 Pedro Alves <pedro@codesourcery.com>
4621
4622 * gdbthread.h: Add comments.
4623 * stack.c (get_selected_block): Return 0 on an exited thread.
4624 * top.c (execute_command): Check for is_stopped, not !is_running.
4625 * event-top.c (command_handler): Likewise.
4626
8931f526
PA
46272008-08-16 Pedro Alves <pedro@codesourcery.com>
4628
4629 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4630 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4631 (mi_cmd_exec_finish): Remove "return".
4632
aa76d38d
PA
46332008-08-16 Pedro Alves <pedro@codesourcery.com>
4634
4635 * target.h (pop_all_targets): Declare.
4636 * target.c (pop_all_targets): New.
4637 * top.c (quit_target): Pop all targets instead of just closing the
4638 current.
4639
311a4e6b
TJB
46402008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4641 Thiago Jung Bauermann <bauerman@br.ibm.com>
4642
4643 * cli-script.c (read_next_line): Add parse_commands argument.
4644 (recurse_read_control_structure): Adapt to new read_next_line
4645 signature.
4646 (read_command_lines): Add parse_commands argument.
4647 (define_command): Adapt to new read_command_lines signature.
4648 (document_command): Likewise.
4649 * breakpoint.c (commands_command): Likewise.
4650 * defs.h (read_command_lines): Adjust function prototype.
4651
24209737
PH
46522008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4653
4654 * ada-lang.c (pos_atr): Account for the possibility that the
4655 argument may be a reference.
4656
9f1d5432
PH
46572008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4658
4659 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4660 ('F' format) for @FIX names generated by the loader, retaining only
4661 the minimal symbols (and no partial symbol tables) for these names.
4662 Fixes warning messages about symbols that are found in partial
4663 symbol tables, but not full symbol tables.
4664
83c265ab
PA
46652008-08-16 Pedro Alves <pedro@codesourcery.com>
4666
4667 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4668 stopping quietly.
4669
604c2f83
LM
46702008-08-15 Luis Machado <luisgpm@br.ibm.com>
4671
4672 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4673 Include "features/rs6000/powerpc-vsx64.c".
4674 (ppc_supply_vsxregset): New function.
4675 (ppc_collect_vsxregset): New function.
4676 (IS_VSX_PSEUDOREG): New macro.
4677 (IS_EFP_PSEUDOREG): New macro.
4678 (vsx_register_p): New function.
4679 (ppc_vsx_support_p): New function.
4680 (rs6000_builtin_type_vec128): New function.
4681 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4682 correct names for VSX registers and EFPR registers.
4683 (rs6000_pseudo_register_type): Return correct types for VSX
4684 and EFPR registers.
4685 (rs6000_pseudo_register_reggroup_p): Return correct group for
4686 VSX and EFPR registers.
4687 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4688 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4689 (vsx_pseudo_register_read): New function.
4690 (vsx_pseudo_register_write): New function.
4691 (efpr_pseudo_register_read): New function.
4692 (efpr_pseudo_register_write): New function.
4693 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4694 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4695 (rs6000_gdbarch_init): Declare have_vsx.
4696 Initialize new upper half VSX registers.
4697 Initialize VSX-related and EFPR-related pseudo-registers variables.
4698 Adjust the number of pseudo registers accordingly.
4699
4700 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4701 and SIZEOF_VSRREGS.
4702 (gdb_vsxregset_t): New type.
4703 (have_ptrace_getsetvsxregs): New variable.
4704 (fetch_vsx_register): New function.
4705 (fetch_register): Handle VSX registers.
4706 (fetch_vsx_registers): New function.
4707 (fetch_ppc_registers): Handle VSX registers.
4708 (store_ppc_registers): Handle VSX registers.
4709 (store_vsx_register): New function.
4710 (store_register): Handle VSX registers.
4711 (store_vsx_registers): New function.
4712 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4713 (gdb_vsxregset_t): New type.
4714 (supply_vsxregset): New function.
4715 (fill_vsxregset): New function.
4716
4717 * ppc-tdep.h (vsx_register_p): New prototype.
4718 (vsx_support_p): New prototype.
4719 (ppc_vsr0_regnum): New variable.
4720 (ppc_vsr0_upper_regnum): Likewise.
4721 (ppc_efpr0_regnum): Likewise.
4722 (ppc_builtin_type_vec128): New type.
4723 (ppc_num_vsrs): New constant.
4724 (ppc_num_vshrs): New constant.
4725 (ppc_num_efprs): Likewise.
4726 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4727 (ppc_supply_vsxregset): New prototype.
4728 (ppc_collect_vsxregset): New prototype.
4729
4730 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4731 Include "features/rs6000/powerpc-vsx64l.c".
4732 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4733 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4734 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4735 (ppc_linux_regset_from_core_section): Handle VSX core section.
4736 (ppc_linux_core_read_description): Support VSX-enabled core files.
4737
4738 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4739 Declare tdesc_powerpc_vsx64l
4740
4741 * corelow.c (get_core_register_section): Support VSX-enabled
4742 core files.
4743
4744 * features/rs6000/power-vsx.xml: New VSX descriptions.
4745 * features/rs6000/powerpc-vsx32.xml: New file.
4746 * features/rs6000/powerpc-vsx32l.xml: New file.
4747 * features/rs6000/powerpc-vsx64.xml: New file.
4748 * features/rs6000/powerpc-vsx64l.xml: New file.
4749 * features/rs6000/powerpc-vsx32.c: New file (generated).
4750 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4751 * features/rs6000/powerpc-vsx64.c: New file (generated).
4752 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4753 * features/Makefile: Updated with new descriptions.
4754 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4755 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4756
dde7c0a9
VP
47572008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4758
4759 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4760 call linux_target twice.
4761
ebd67d87
AR
47622008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4763
4764 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4765 solib-svr4.c
4766 (LM_ADDR): Use l_addr if available; if not, use link map and set
4767 l_addr.
4768
886a217c
TT
47692008-08-14 Tom Tromey <tromey@redhat.com>
4770
4771 * macrocmd.c (macro_define_command): Check for NULL argument.
4772 (macro_undef_command): Likewise.
4773
3d488bfc
PA
47742008-08-14 Pedro Alves <pedro@codesourcery.com>
4775
4776 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4777
33e5cbd6
PA
47782008-08-13 Pedro Alves <pedro@codesourcery.com>
4779
4780 * breakpoint.c (always_inserted_auto, always_inserted_on)
4781 (always_inserted_off, always_inserted_enums): New.
4782 (always_inserted_mode): Change type to char* and point to
4783 always_inserted_auto.
4784 (show_always_inserted_mode): In auto mode, also show the current
4785 effect of the option.
4786 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4787 (_initialize_breakpoint): Make the "set breakpoints
4788 always-inserted" command an enum command. Extend help to describe
4789 the auto mode.
4790
8fbde58b
UW
47912008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4792
4793 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4794 query valid) bit. Ignore bits outside the condition field.
4795 (info_spu_proxydma_command): Ignore bits outside the field.
4796
11fa8e43
MS
47972008-08-12 Michael Snyder <msnyder@vmware.com>
4798
4799 * MAINTAINERS: Update my email address.
4800
fcb09a75
UW
48012008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4802
4803 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4804
a6f3e723
SL
48052008-08-12 Pedro Alves <pedro@codesourcery.com>
4806
4807 Add no-ack mode to the remote protocol --- optionally stop ACKing
4808 packets and responses when we have a reliable communication
4809 medium.
4810
4811 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4812
4813 * remote.c (struct remote_state): Add noack_mode field.
4814 (PACKET_QStartNoAckMode): New.
4815 (remote_start_remote): Don't any outstanding packet here.
4816 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4817 here. Activate noack mode if requested.
4818 (remote_protocol_features): Add QStartNoAckMode.
4819 (remote_open_1):
4820 (putpkt_binary): Don't send ack in noack mode.
4821 (read_frame): Don't recompute the checksum in noack mode.
4822 (getpkt_sane): Skip sending ack if in noack mode.
4823 (_initialize_remote): Add set/show remote noack mode.
4824 * NEWS: Note the new features.
4825
8ab3d180
KB
48262008-08-11 Kevin Buettner <kevinb@redhat.com>
4827
4828 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4829 New macros.
4830 (rs6000_skip_main_prologue): New function.
4831 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4832
63a61bf6
SL
48332008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4834
4835 * MAINTAINERS (Write After Approval): Add self.
4836
9d4fde75
SS
48372008-08-11 Stan Shebs <stan@codesourcery.com>
4838
4839 ARM BE8 support.
4840 * disasm.c (gdb_disassemble_info): Set endian_code.
4841 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4842 * gdbarch.h, gdbarch.c: Regenerate.
4843 * arch-utils.c (initialize_current_architecture): Set the
4844 default byte_order_for_code.
4845 (gdbarch_info_init): Ditto.
4846 (gdbarch_info_fill): Ditto.
4847 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4848 (thumb_analyze_prologue): Swap halfword if code endianness is
4849 different from general endianness.
4850 (arm_skip_prologue): Similarly.
4851 (arm_scan_prologue): Ditto.
4852 (thumb_get_next_pc): Ditto.
4853 (arm_get_next_pc): Ditto.
4854 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4855 choose correct endianness for breakpoints.
4856
6c613132
PA
48572008-08-10 Pedro Alves <pedro@codesourcery.com>
4858
4859 * bsd-kvm.c: Include "gdbthread.h".
4860 (bsd_kvm_ptid): New.
4861 (bsd_kvm_open): Add a main thread.
4862 (bsd_kvm_close): Delete it.
4863 (bsd_kvm_thread_alive): New.
4864 (bsd_kvm_pid_to_str): New.
4865 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4866 bsd_kvm_pid_to_str.
4867 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4868
6eb7ee03
PA
48692008-08-09 Pedro Alves <pedro@codesourcery.com>
4870
4871 * buildsym.c (start_subfile): Properly cast sentinel in concat
4872 call.
4873 * cp-name-parser.y: Include "config.h".
4874 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4875 concat call.
4876 * gdb_select.h: Include sys/time.h if sys/select.h is not
4877 available.
4878
444c3224
PA
48792008-08-09 Pedro Alves <pedro@codesourcery.com>
4880
4881 * go32-nat.c: Include "gdbthread.h".
4882 (go32_stop, go32_kill_inferior): Delete the main thread.
4883 (go32_create_inferior): Add it.
4884 (go32_thread_alive, go32_pid_to_str): New.
4885 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4886
9d0b3624
PA
48872008-08-09 Pedro Alves <pedro@codesourcery.com>
4888
4889 * go32-nat.c (fetch_register, store_register): Pass the regcache
4890 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4891 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4892 (struct seg_descr, struct seg_descr): pack the whole struct
4893 instead of each member individually.
4894
509238d6
AS
48952008-08-09 Andreas Schwab <schwab@suse.de>
4896
4897 * python/python.c (_initialize_python): Use unabbreviated commands
4898 in prefix name.
4899
c068b4e8
DJ
49002008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4901
4902 * Makefile.in (stamp-h): Also create .deps.
4903
21374e5f
TT
49042008-08-09 Tom Tromey <tromey@redhat.com>
4905
4906 * Makefile.in (generated_files): Add GNULIB_H.
4907
7be67755
DA
49082008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4909
4910 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4911 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4912 Revise comment.
4913 (pa64_current_sos): Remove map private warning warning.
4914 * solib-som.c: Include string.h and sys/utsname.h.
4915 (get_hpux_major_release): New function.
4916 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4917 about shared library private mapping on HP-UX 11 and later. Only force
4918 private mapping of shared libraries on HP-UX 10 and earlier.
4919 (link_map_start): Delete warning.
4920
e0c62198
L
49212008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4922 H.J. Lu <hongjiu.lu@intel.com>
4923 Mark Kettenis <kettenis@gnu.org>
4924
4925 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4926 (amd64_init_frame_cache): Initialize saved_sp_reg.
4927 (amd64_analyze_stack_align): New.
4928 (amd64_analyze_prologue): Call it.
4929 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4930 %rip to 8 when halfway aligning the stack.
4931
4932 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4933 AMD64_R14_REGNUM.
4934
4935 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4936 saved_sp_reg.
4937 (i386_alloc_frame_cache): Remove stack_align. Initialize
4938 saved_sp_reg to -1.
4939 (i386_analyze_stack_align): Rewrite.
4940 (i386_frame_cache): Use saved_sp_reg if it is valid.
4941
b9db4ced
UW
49422008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4943
4944 * target.c: Include "solib.h".
4945 (target_pre_inferior): Call no_shared_libraries.
4946 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4947 or clear_solib.
4948 (attach_command): Do not call clear_solib.
4949
3979a37f
MK
49502008-08-09 Mark Kettenis <kettenis@gnu.org>
4951
4952 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4953 the %eip register.
4954
2b26d9fa
TT
49552008-08-08 Tom Tromey <tromey@redhat.com>
4956
4957 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4958 POSTCOMPILE.
4959 (python-utils.o): Likewise.
4960
f1648876
AS
49612008-08-08 Andreas Schwab <schwab@suse.de>
4962
4963 * corefile.c (_initialize_core): Remove spurious paren from set
4964 gnutarget doc string.
4965
b7622095
LM
49662008-08-08 Luis Machado <luisgpm@br.ibm.com>
4967
4968 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4969 Define PPC_FEATURE_BOOKE.
b7622095
LM
4970 (ppc_linux_get_hwcap): New function.
4971 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4972 4-bytes alignment restrictions.
4973 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4974 positioning of the read/write flags.
4975 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4976 4-bytes alignment.
4977
2dc38344
PA
49782008-08-08 Pedro Alves <pedro@codesourcery.com>
4979
4980 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4981
4982 * win32-nat.c (win32_add_thread): Change thread argument type to
4983 ptid_t. Adjust.
4984 (win32_add_thread): Adjust.
4985 (win32_delete_thread): Change thread argument type to ptid_t.
4986 Adjust.
4987 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4988 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4989 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4990 (init_win32_ops): Put to_magic last.
4991 (win32_win32_thread_alive): Adjust.
4992
4d6c6261
PA
49932008-08-08 Pedro Alves <pedro@codesourcery.com>
4994
4995 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4996 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4997
e5ef4d75
PA
49982008-08-08 Pedro Alves <pedro@codesourcery.com>
4999
5000 * remote-m32r-sdi.c: Include "gdbthread.h".
5001 (remote_m32r_ptid): New.
5002 (m32r_close): Delete the main thread.
5003 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
5004 main thread.
5005 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
5006 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
5007
a417dc56
RW
50082008-08-07 Tom Tromey <tromey@redhat.com>
5009 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5010
5011 * aclocal.m4, configure: Rebuild.
5012 * configure.in: Call ZW_CREATE_DEPDIR,
5013 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
5014 (MAKE, GMAKE): New substs.
5015 * acinclude.m4: Include depstand.m4.
5016 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
5017 COMPILE, POSTCOMPILE, depcomp): New variables.
5018 Remove all _h variables.
5019 Remove many .o targets.
5020 ($(srcdir)/copying.c): avoid backslash-newline after comment
5021 sign (@maintainer_mode_true@).
5022 (HFILES_NO_SRCDIR): Regenerate.
5023 (generated_files): New variable.
5024 (all_gdbtk_cflags): Likewise.
5025 (.c.o): Rewrote.
5026 (init.o, version.o, copying.o): Remove.
5027 (distclean): Remove DEPDIR.
5028 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
5029 printcmd.o, procfs.o, v850ice.o): Rewrite.
5030 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
5031 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
5032 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
5033 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
5034 gdbtk-wrapper.o): Likewise.
5035 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
5036 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
5037 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
5038 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
5039 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
5040 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
5041 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
5042 tui-wingeneral.o, tui-winsource.o): Likewise.
5043 (all_object_files): New variable.
5044 ($(all_object_files)): New target.
5045 Include dependency files, when using GNU Make.
5046
12ab8a60
UW
50472008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
5048
5049 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
5050 the valid bit set. Ensure display order respects partial
5051 order defined by dependency bits.
5052
6536cc32
DA
50532008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5054
5055 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
5056 setup.
5057
f73a15e4
MK
50582008-08-06 Mark Kettenis <kettenis@gnu.org>
5059
5060 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
5061 OpenBSD 4.3.
5062
d57a3c85
TJB
50632008-08-06 Vladimir Prus <vladimir@codesourcery.com>
5064 Tom Tromey <tromey@redhat.com>
5065 Thiago Jung Bauermann <bauerman@br.ibm.com>
5066 Doug Evans <dje@google.com>
5067
5068 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
5069 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
5070 PYTHON_CFLAGS): New.
5071 (python_h, python_internal_h): New.
5072 (cli-script.o): Depend on python.h
5073 (python.o, python-utils.o): New.
5074 * cli/cli-script.c (print_command_lines): Handle python_control.
5075 (execute_control_command): Handle python_control.
5076 (execute_control_command_untraced): New function.
5077 (while_command): Call execute_control_command_untraced.
5078 (if_command): Likewise.
5079 (get_command_line): Remove static attribute.
5080 (read_next_line): Handle "python".
5081 (recurse_read_control_structure): Handle python_control.
5082 (read_command_lines): Handle python_control.
5083 Include python.h.
5084 * cli/cli-script.h (get_command_line): Add prototype.
5085 (execute_control_command_untraced): Likewise.
5086 * configure.ac: Add --with-python.
5087 * defs.h (enum command_control_type) <python_control>: New
5088 constant.
5089 * python/python-internal.h: New file.
5090 * python/python.c: New file.
5091 * python/python.h: New file.
5092 * python/python-utils.c: New file.
5093 * NEWS: Mention Python scripting support and its new commands.
5094
5141027d
UW
50952008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
5096
5097 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
5098
353cfe88
PM
50992008-08-06 Phil Muldoon <pmuldoon@redhat.com>
5100
f1648876 5101 * MAINTAINERS (Write After Approval): Add self.
353cfe88 5102
d6b74ac4
PM
51032008-08-06 Phil Muldoon <pmuldoon@redhat.com>
5104
5105 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
5106 (insert_breakpoint_locations): Likewise.
5107
ef0d312a
MS
51082008-08-05 Phil Muldoon <pmuldoon@redhat.com>
5109
5110 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
5111 breakpoint.
5112 (set_longjmp_breakpoint): Likewise.
5113
fb6d93b2
UW
51142008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5115
5116 PR build/2490
5117 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
5118 defined.
5119
e6ad058a
TT
51202008-08-05 Tom Tromey <tromey@redhat.com>
5121
5122 * bcache.c (deprecated_bcache_added): Initialize obstack.
5123 (bcache_xmalloc): Don't initialize obstack.
5124 (bcache_xfree): Conditionally free obstack.
5125 (bcache_memory_used): Update.
5126
11d31d94
TT
51272008-08-05 Tom Tromey <tromey@redhat.com>
5128
5129 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
5130 bcache_full.
5131 (append_psymbol_to_list): Accept a const pointer.
5132 (add_psymbol_to_list): Fix const correctness.
5133 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
5134 (bcache_full): Declare.
5135 * bcache.c (bcache_data, deprecated_bcache): Remove.
5136 (bcache): Use bcache_full.
5137 (bcache_full): Rename from deprecated_bcache_added. Change return
5138 type.
5139
5be973eb
SS
51402008-08-04 Stan Shebs <stan@codesourcery.com>
5141
5142 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
5143 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
5144 (enable_break): Remove test of BKPT_AT_SYMBOL.
5145
5062cc19
KS
51462008-08-02 Keith Seitz <keiths@redhat.com>
5147
5148 * acinclude.m4: Include ../config/tcl.m4 to pick up
5149 standard Tcl configury bits.
5150 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
5151 * configure.ac: Don't check if ../itcl exists when building
5152 gdbtk. It could be installed.
5153 Rewrite gdbtk configury to allow for using system-supplied
f1648876 5154 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
5155 itcl and itk.
5156 * Makefile.in: Remove everything related to itcl and itk.
5157 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
5158 configure.ac.
5159 Remove v850ice.o build rule.
5160 (ALL_TCL_CFLAGS): New convenience defintion. Change all
5161 gdbtk sources to use it.
5162 * configure: Regenerate.
f1648876 5163
6d76a53d
SS
51642008-07-31 Stan Shebs <stan@codesourcery.com>
5165
5166 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
5167
ed7c5e43
SS
51682008-07-30 Stan Shebs <stan@codesourcery.com>
5169
5170 * objfiles.c (TARGET_KEEP_SECTION): Remove.
5171 (add_to_objfile_sections): Remove use.
5172
22ad7fee
TT
51732008-07-29 Tom Tromey <tromey@redhat.com>
5174
5175 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
5176 (lookup_cmd_composition): Likewise.
5177
d5529a84
TT
51782008-07-29 Tom Tromey <tromey@redhat.com>
5179
5180 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
5181 dead code. Fix indentation.
5182
938f4ca8
SS
51832008-07-29 Stan Shebs <stan@codesourcery.com>
5184
5185 * main.c (captured_main): Remove long-unused #if 0 blocks.
5186
7f4b89d1
TT
51872008-07-28 Tom Tromey <tromey@redhat.com>
5188
5189 * annotate.h (deprecated_annotate_starting_hook): Remove.
5190 (deprecated_annotate_stopped_hook): Remove.
5191 (deprecated_annotate_exited_hook): Remove.
5192 * Makefile.in (annotate.o): Depend on observer_h.
5193 * top.c (deprecated_delete_breakpoint_hook): Remove.
5194 (deprecated_create_breakpoint_hook): Likewise.
5195 (deprecated_modify_breakpoint_hook): Likewise.
5196 * interps.c (clear_interpreter_hooks): Update for removed hooks.
5197 * breakpoint.c (mention): Don't call removed hook.
5198 (delete_breakpoint): Likewise.
5199 (disable_breakpoint): Likewise.
5200 (do_enable_breakpoint): Likewise.
5201 * annotate.c: Include observer.h.
5202 (breakpoint_changed): Change type of argument.
5203 (_initialize_annotate): Register observers.
5204 (deprecated_annotate_starting_hook): Remove.
5205 (deprecated_annotate_stopped_hook): Remove.
5206 (deprecated_annotate_exited_hook): Remove.
5207 (annotate_starting): Update for hook removal.
5208 (annotate_stopped): Likewise.
5209 (annotate_exited): Likewise.
5210 * defs.h (deprecated_delete_breakpoint_hook): Remove.
5211 (deprecated_create_breakpoint_hook): Likewise.
5212 (deprecated_modify_breakpoint_hook): Likewise.
5213
8641e682
TT
52142008-07-28 Tom Tromey <tromey@redhat.com>
5215
5216 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
5217
064ef605
DJ
52182008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5219
5220 * configure.ac: Check for the GNU/Linux ptrace signature.
5221 * configure: Regenerated.
5222
57380f4e
DJ
52232008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5224
5225 * linux-nat.c (resume_callback): Add more debugging output.
5226 (linux_nat_has_pending_sigint): New function, based on
5227 linux_nat_has_pending.
5228 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
5229 (stop_wait_callback): Remove flush_mask handling. Honor
5230 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
5231 to recursive calls.
5232 (linux_nat_has_pending, flush_callback): Remove.
5233 (linux_nat_filter_event): Check for ignore_sigint.
5234 (linux_nat_wait): Remove flush_mask support and call to
5235 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
5236 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
5237
e09490f1
DJ
52382008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5239
5240 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
5241 report events from resumed threads.
5242
e38d4e1a
DJ
52432008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5244
5245 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
5246 (mips_linux_init_abi): Set tdep->syscall_next_pc.
5247 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
5248 mips-tdep.h.
5249 (mips32_next_pc): Handle the syscall instruction.
5250 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
5251 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
5252
fa8de41e
TT
52532008-07-26 Tom Tromey <tromey@redhat.com>
5254
5255 PR gdb/1158:
5256 * valops.c (value_struct_elt): Treat function-valued field as a
5257 static method.
5258
ccb3ac8a
TT
52592008-07-26 Tom Tromey <tromey@redhat.com>
5260
5261 PR gdb/1136:
5262 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
5263 longer tokens first.
5264
d72314c6
VP
52652008-07-26 Vladimir Prus <vladimir@codesourcery.com>
5266
5267 Kill cmd_async_ok.
f1648876
AS
5268 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
5269 (get_cmd_async_ok): Remove.
5270 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
5271 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
5272 * infcmd.c (_initialize_infcmd): Likewise.
5273 * thread.c (_initialize_thread): Likewise.
d72314c6 5274
5b68030f
JM
52752008-07-25 Joseph Myers <joseph@codesourcery.com>
5276
5277 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
5278 128-bit long doubles in even-odd pairs of FPRs. Do not
5279 right-align float arguments for big-endian.
5280 (mips_n32n64_return_value): Apply return value convention for
5281 structs containing one or two floating-point values to soft-float
5282 as well as hard-float. Handle 128-bit long doubles in such
5283 structs.
5284 (mips_o32_push_dummy_call): Only skip one integer register for a
5285 float argument passed in an FPR.
5286
383f836e
TT
52872008-07-25 Tom Tromey <tromey@redhat.com>
5288
5289 * tui/tui-hooks.c: Include observer.h.
5290 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
5291 Remove.
5292 (tui_bp_created_observer, tui_bp_deleted_observer,
5293 tui_bp_modified_observer): New globals.
5294 (tui_install_hooks): Use observers, not events.
5295 (tui_remove_hooks): Likewise.
5296 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
5297 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
5298 globals.
5299 (breakpoint_notify): Check mi_can_breakpoint_notify.
5300 (breakpoint_hooks): Remove.
5301 (mi_cmd_break_insert): Attach observers. Don't use events.
5302 * tracepoint.c: Include observer.h, not gdb-events.h.
5303 (tracepoint_operation, trace_pass_command): Notify observer.
5304 * interps.c: Don't include gdb-events.h.
5305 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
5306 * gdbarch.c: Rebuild.
5307 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
5308 (deprecated_current_gdbarch_select_hack): Notify observer.
5309 * breakpoint.h: Don't include gdb-events.h.
5310 * breakpoint.c: Don't include gdb-events.h.
5311 (condition_command): Notify observer.
5312 (commands_command): Likewise.
5313 (commands_from_control_command): Likewise.
5314 (mention, delete_breakpoint, set_ignore_count): Likewise.
5315 (disable_breakpoint, do_enable_breakpoint): Likewise.
5316 * Makefile.in (gdb_events_h): Remove.
5317 (breakpoint_h): Update.
5318 (COMMON_OBS): Remove gdb-events.o.
5319 (gdb-events.o): Remove.
5320 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
5321 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
5322 * gdb-events.c: Remove.
5323 * gdb-events.h: Remove.
5324 * gdb-events.sh: Remove.
5325
60e569b9
PA
53262008-07-24 Pedro Alves <pedro@codesourcery.com>
5327
5328 * remote.c (remote_threads_extra_info): Don't query the remote
5329 server about info on the internally added main thread.
5330
a6a7f2a5
AR
53312008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
5332
5333 * nto-procfs.c (procfs_attach): Populate initial thread list.
5334 (procfs_wait): Return new pid, built from the inferior status.
5335
e63e4db2
TJB
53362008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
5337
5338 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
5339 * configure: Regenerate.
5340
14ef7606
AR
53412008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
5342
5343 * nto-procfs.c (procfs_xfer_memory): Changed signature.
5344 (procfs_resume): Workaround for dereferencing type-punned pointer
5345 warning.
f1648876 5346 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
5347 correct.
5348 * nto-tdep.h (nto_parse_redirection): Likewise.
5349
cfd8ab24
SS
53502008-07-21 Stan Shebs <stan@codesourcery.com>
5351
5352 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
5353 * gdbarch.sh: Adjust comment to refer to
5354 in_solib_dynsym_resolve_code().
5355 * gdbarch.h, gdbarch.c: Update.
5356 * solib-osf.c: Ditto.
5357 * infrun.c: Ditto.
5358 (handle_inferior_event): Use in_solib_dynsym_resolve_code
5359 unconditionally.
5360 * config/mips/nm-irix5.h: Remove undef of
5361 IN_SOLIB_DYNSYM_RESOLVE_CODE.
5362
781b42b0
TT
53632008-07-21 Tom Tromey <tromey@redhat.com>
5364
5365 * symfile.c (reread_symbols): Don't pass argument to observer.
5366 * exec.c (exec_file_attach): Don't pass argument to observer.
5367 * ada-lang.c (ada_executable_changed_observer): Remove argument.
5368 * symtab.c (symtab_observer_executable_changed): Remove argument.
5369 * observer.sh: Handle functions with no arguments.
5370
a366c65a 53712008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 5372 Chris Demetriou <cgd@google.com>
a366c65a
CD
5373
5374 * elfread.c (elf_symfile_segments): Fix the check that each loadable
5375 section fits within an ELF segment to handle ELF segments that hit
5376 the end of the address space.
5377
073d253f
CD
53782008-07-20 Chris Demetriou <cgd@google.com>
5379
5380 * MAINTAINERS (Write After Approval): Add self.
5381
d7d9f01e
TT
53822008-07-18 Tom Tromey <tromey@redhat.com>
5383
5384 PR gdb/855:
5385 * NEWS: Add entry for macro commands.
5386 * Makefile.in (macrocmd.o): Add gdb_string.h.
5387 * macroscope.h (user_macro_scope): Declare.
5388 (default_macro_scope): Update documentation.
5389 (macro_user_macros): Declare.
5390 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
5391 Use user_macro_scope.
5392 (null_macro_lookup): Remove.
5393 * macrotab.h (macro_callback_fn): Declare.
5394 (macro_for_each): Likewise.
5395 (macro_allow_redefinitions): Likewise.
5396 * macrotab.c (foreach_macro): New function
5397 (macro_for_each): Likewise.
5398 (struct macro_table) <redef_ok>: New field.
5399 (macro_allow_redefinitions): New function.
5400 (new_macro_table): Update.
5401 (macro_define_function): Likewise.
5402 (macro_define_object): Likewise.
5403 * macroscope.c (user_macro_scope): New function.
5404 (default_macro_scope): Use it.
5405 (macro_user_macros): New global.
5406 (standard_macro_lookup): Look in macro_user_macros.
5407 (_initialize_macroscope): New function.
5408 * macroexp.h (macro_is_whitespace, macro_is_digit,
5409 macro_is_identifier_nondigit): Declare.
5410 * macroexp.c (macro_is_whitespace): Rename. No longer static.
5411 (macro_is_digit): Likewise.
5412 (macro_is_identifier_nondigit): Likewise.
5413 (get_identifier): Update.
5414 (get_pp_number): Likewise.
5415 (get_token): Likewise.
5416 * macrocmd.c (skip_ws): New function.
5417 (extract_identifier): Likewise.
5418 (free_macro_definition_ptr): Likewise.
5419 (user_macros): Remove.
5420 (macro_define_command): Implement.
5421 (_initialize_macrocmd): Update.
5422 (macro_undef_command): Implement.
5423 (print_one_macro): New function.
5424 (macro_list_command): Implement.
5425
0f72fb1c
JM
54262008-07-18 Joseph Myers <joseph@codesourcery.com>
5427
5428 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5429 in BFD ELF check.
5430 * configure: Regenerate.
5431
7c6467a4
PP
54322008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5433
5434 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5435
680b56ce
AS
54362008-07-15 Andreas Schwab <schwab@suse.de>
5437
5438 * valops.c (value_cast_pointers): Follow typedefs when checking
5439 result of coercion.
5440
7f0df278
DJ
54412008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5442
5443 * block.c (block_function): Renamed to ...
5444 (block_linkage_function): ... this. All callers changed.
5445 * block.h (block_function): Renamed to ...
5446 (block_linkage_function): ... this.
5447
ba2c6aec
DJ
54482008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5449
5450 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5451
d56907c1
DJ
54522008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5453
5454 * frame.c (frame_sp_unwind): Delete.
5455 (get_frame_sp): Do not use it.
5456 * frame.h (frame_sp_unwind): Delete prototype.
5457
f92aeb88
DJ
54582008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5459
5460 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5461
ad1193e7
DJ
54622008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5463
5464 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5465 * frame.c (frame_unwind_address_in_block): Delete.
5466 (get_frame_address_in_block): Do not use it. Check the type
5467 of the next frame first.
5468 (frame_cleanup_after_sniffer): Update comment.
5469 * frame.h (frame_unwind_address_in_block): Delete prototype.
5470 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5471
ef02daa9
DJ
54722008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5473
5474 * frame.c (frame_func_unwind): Delete.
5475 (get_frame_func): Do not use it.
5476 * frame.h (frame_func_unwind): Delete prototype.
5477 * hppa-tdep.c (hppa_frame_cache): Update comment.
5478 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5479
96e32df8
SS
54802008-07-14 Stan Shebs <stan@codesourcery.com>
5481
5482 * remote-sim.c (init_gdbsim_ops): Remove
5483 TARGET_REDEFINE_DEFAULT_OPS.
5484
ab8650a3
DJ
54852008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5486
5487 * findvar.c (read_var_value): Remove unused variable.
5488
8c90c137
LM
54892008-07-15 Luis Machado <luisgpm@br.ibm.com>
5490
5491 * infrun.c (handle_inferior_event): Tag threads as stopped
5492 before inserting breakpoints.
5493
4098af0f
HZ
54942008-07-15 Hui Zhu <teawater@gmail.com>
5495
5496 * MAINTAINERS: Added myself to section Write After Approval.
5497
7093c834
PP
54982008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5499
5500 PR gdb/2477
5501 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5502
56514771
PA
55032008-07-14 Pedro Alves <pedro@codesourcery.com>
5504
5505 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5506 (i386_dicos_push_dummy_code): New.
5507 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5508 Register i386_dicos_push_dummy_code.
5509
74ed0bb4
MD
55102008-07-14 Markus Deuling <deuling@de.ibm.com>
5511
5512 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5513 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5514 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5515
5516 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5517 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5518 (mips_n32n64_fp_arg_chunk_p): Update caller.
5519
5520 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5521 (mips_n32n64_push_dummy_call): Update caller.
5522
5523 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5524 current_gdbarch.
5525 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5526 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5527
5528
5529 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5530 current_gdbarch.
5531 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5532 (mips_o64_push_dummy_call): Update caller.
5533
5534 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5535 (fp_register_arg_p, mips_dump_tdep): Update caller.
5536
5537 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5538 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5539
5540 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5541 current_gdbarch.
5542 (mips32_scan_prologue): Update caller.
5543
5544 (heuristic_proc_start): Add gdbarch as parameter. Replace
5545 current_gdbarch.
5546 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5547
5548 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5549 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5550 the current architecture. Update call to getregs_supplies.
5551 (getregs_supplies): Add gdbarch as parameter and replace
5552 current_gdbarch.
5553
5554 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5555 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5556 NBSD_MIPS_JB_ELEMENT_SIZE.
5557 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5558 replace current_gdbarch.
5559
5560 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5561 current_gdbarch.
5562 (mips_fetch_registers, mips_store_registers): Update call
5563 to mips_map_regno.
5564 (mips_load): Use get_regcache_arch to get at the current_architecture
5565 and replace current_gdbarch.
5566
0c501536
PA
55672008-07-13 Pedro Alves <pedro@codesourcery.com>
5568
5569 * thread.c (restore_selected_frame): On fail to restore, select
5570 the innermost frame, and don't crash when warning the user.
5571
db009c8a
JB
55722008-07-13 Hui Zhu <teawater@gmail.com>
5573
5574 * symtab.c (expand_line_sal): Fix a memory leak.
5575
0ffe5012
PA
55762008-07-13 Pedro Alves <pedro@codesourcery.com>
5577
5578 * utils.c (struct continuation): Define as inheriting struct
5579 cleanup.
5580 (add_continuation, do_all_continuations)
5581 (discard_all_continuations, add_intermediate_continuation)
5582 (do_all_intermediate_continuations)
5583 (discard_all_intermediate_continuations): Adjust.
5584
dbba8251
VP
55852008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5586
5587 Skip varobj in running threads.
680b56ce
AS
5588 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5589 thread is not stopped, skip the varobj.
5590 * Makefile.in: Update dependencies.
dbba8251 5591
e3d6cd5f
VP
55922008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5593
5594 Enable all commands while inferiour is running
680b56ce
AS
5595 * mi/mi-main.c (mi_cmd_execute): Don't check if
5596 inferiour is executing.
e3d6cd5f 5597
b10a37b1
VP
55982008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5599
5600 Allow all CLI command even if target is executing.
680b56ce
AS
5601 * gdb/top.c (execute_command_1): Don't check if the inferiour
5602 is running.
b10a37b1 5603
ea069267
VP
56042008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5605
5606 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5607 Fix printing of frame, when frame is wrong.
5608
cdc9523a
UW
56092008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5610
5611 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5612 backchain is unreadable.
5613
d5b25491
UW
56142008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5615
5616 * spu-linux-nat.c: Include "gdbthread.h".
5617 (spu_child_post_startup_inferior): Register main thread.
5618 (spu_child_post_attach): Likewise.
5619 * Makefile.in (spu-linux-nat.o): Update dependencies.
5620
604ead4a
PA
56212008-07-12 Pedro Alves <pedro@codesourcery.com>
5622
5623 Rewrite continuations internals on top of cleanups and plug
5624 continuation arguments leaks.
5625
5626 * defs.h (struct continuation): Make it opaque.
5627 (add_continuation, add_intermediate_continuation): Drop the int
5628 argument of the continuation hook argument. Add
5629 continuation_free_args argument.
5630 (do_all_continuations, do_all_intermediate_continuations): Drop
5631 the error_p argument.
5632
5633 * utils.c (add_continuation): Drop the int argument of the
5634 continuation hook argument. Add continuation_free_args argument.
5635 Reimplement on top of cleanups.
5636 (do_all_continuations): Drop error argument. Reimplement on top
5637 of cleanups.
5638 (discard_all_continuations): Reimplement on top of cleanups.
5639 (add_intermediate_continuation): Drop the int argument of the
5640 continuation hook argument. Add continuation_free_args argument.
5641 Reimplement on top of cleanups.
5642 (do_all_intermediate_continuations): Drop error argument.
5643 Reimplement on top of cleanups.
5644 (discard_all_intermediate_continuations): Reimplement on top of
5645 cleanups.
5646
5647 * breakpoint.c (until_break_command_continuation): Drop error
5648 argument. Add xfree as continuation argument deleter.
5649
5650 * inf-loop.c (inferior_event_handler): On error, discard all
5651 continuations. Adjust to new do_all_intermediate_continuations
5652 and do_all_continuations interfaces.
5653
5654 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5655 Pass xfree as continuation argument deleter.
5656 (finish_command_continuation): Drop error_p argument. Adjust.
5657 (finish_command_continuation_free_arg): New.
5658 (finish_command): Pass finish_command_continuation_free_arg as
5659 continuation argument deleter. Adjust to new do_all_continuations
5660 interfaces.
5661 (attach_command_continuation): Drop error_p argument.
5662 (attach_command_continuation_free_args): New.
5663 (attach_command): Pass attach_command_continuation_free_args as
5664 continuation argument deleter.
5665
5666 * interps.c (interp_set): Adjust to new do_all_continuations
5667 interfaces.
5668
5669 * event-top.c (stdin_event_handler): In error, also discard the
5670 intermediate continuations.
5671
bfec99b2
PA
56722008-07-12 Pedro Alves <pedro@codesourcery.com>
5673
5674 Replace struct continuation_args by void* and per command structs.
5675
5676 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5677
5678 * breakpoint.c (struct until_break_command_continuation_args):
5679 New.
5680 (until_break_command_continuation): Take a void* instead of a
5681 continuations_arg. Adjust.
5682 (until_break_command): Adjust to use struct
5683 until_break_command_continuation_args instead of struct
5684 continuation_arg.
5685
5686 * infcmd.c (struct step_1_continuation_args): New.
5687 (step_1_continuation): Take a void* instead of a
5688 continuations_arg. Adjust to use struct step_1_continuation_args.
5689 (step_once): Adjust to use struct step_1_continuation_args.
5690
5691 (struct finish_command_continuation_args): New.
5692 (finish_command_continuation): Take a void* instead of a
5693 continuations_arg. Adjust to use struct
5694 finish_command_continuation_args.
5695 (finish_command): Adjust to use struct
5696 finish_command_continuation_args.
5697 (struct attach_command_continuation_args): New.
5698 (attach_command_continuation): Take a void* instead of a
5699 continuations_arg. Adjust to use struct
5700 attach_command_continuation_args.
5701 (attach_command): Adjust to use struct
5702 attach_command_continuation_args.
5703
5704 * defs.h (struct continuation_arg): Delete.
5705 (struct continuation): Replace the struct continuation_arg*
5706 parameter of continuation_hook by a void*. Replace "arg_list"
5707 member by a new "args" member with void* type.
5708 (add_continuation, add_intermediate_continuation): Replace struct
5709 continuation_arg type usages by void* usages.
5710
5711 * utils.c (add_continuation, do_all_continuations)
5712 (add_intermediate_continuation)
5713 (do_all_intermediate_continuations): Replace struct
5714 continuation_arg type usages by void* usages. Pass "args" instead
5715 of "arg_list".
5716
2afb61aa
PA
57172008-07-12 Pedro Alves <pedro@codesourcery.com>
5718
5719 * infrun.c (struct thread_stepping_state): Delete sal member.
5720 (init_thread_stepping_state): Add local sal. Use it instead of
5721 tss->sal.
5722 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5723 tss->sal.
5724 (step_into_function): Add local stop_func_sal. Use it instead of
5725 tss->sal.
5726
77ebaa5a
VP
57272008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5728
5729 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5730 * infcmd.c (continue_1): New, extracted from
5731 (continue_command): ...here.
5732 (interrupt_target_1): New, extracted from
5733 (interrupt_target_command): ...here.
5734 * inferior.h (continue_1, interrupt_target_1): New.
5735 * mi/mi-main.c (mi_cmd_exec_continue)
5736 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5737
1e92afda
VP
57382008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5739
5740 Implement --thread and --frame.
5741 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5742 * thread.c (find_thread_id): Make non-static.
5743 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5744 thread and frame, if necessary.
5745 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5746 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5747
d56b7306
VP
57482008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5749
5750 * infrun.c (resume): Discard cleanups on early exit path.
5751
b1a268e5
VP
57522008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5753
680b56ce 5754 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5755 were stopped.
5756
90139f7d
VP
57572008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5758
5759 Report thread state in -thread-info output.
680b56ce 5760 * thread.c (print_thread_info): Add new field "state".
90139f7d 5761
a0d21d28
PA
57622008-07-11 Pedro Alves <pedro@codesourcery.com>
5763
5764 * infrun.c (handle_inferior_event): Also ignore a
5765 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5766
14032a66
TT
57672008-07-11 Tom Tromey <tromey@redhat.com>
5768
5769 * completer.c (complete_line_internal): New function, from
5770 complete_line. Add 'for_help' parameter.
5771 (complete_line): Use it.
5772 (command_completer): Move later. Rewrite.
5773
65fc9b77
PA
57742008-07-11 Pedro Alves <pedro@codesourcery.com>
5775
5776 * thread.c (thread_apply_command): Move making the cleanup out of
5777 the loop.
5778
4f8d22e3
PA
57792008-07-11 Pedro Alves <pedro@codesourcery.com>
5780
5781 Exited threads.
5782
5783 * thread.c (enum thread_state): New.
5784 (thread_state main_thread_running): Delete, in favor of...
5785 (thread_state main_thread_state): ... this. Update throughout.
5786 (clear_thread_inferior_resources): New, split from free_thread.
5787 (free_thread): Call clear_thread_inferior_resources.
5788 (init_thread_list): Set main thread to stopped state.
5789 (add_thread_silent): Take care of PTID reuses.
5790 (delete_thread): If deleting inferior_ptid or a thread with
5791 refcount > 0, mark it as exited, but still keep it in the list.
5792 Only notify of thread exits, if we haven't done so yet.
5793 (iterate_over_threads): Make it safe to delete threads while
5794 iterating over them.
5795 (do_captured_list_thread_ids): Don't account for exited threads.
5796 (thread_alive): Check for the THREAD_EXITED state, and don't set
5797 ptid to -1 on exited threads.
5798 (set_running): Update to account for extra possible states.
5799 (is_thread_state): New.
5800 (is_stopped, is_exited): New.
5801 (is_running): Implement in terms of is_thread_state.
5802 (any_running): Update.
5803 (print_thread_info): Update. Account for exited threads. Don't
5804 warn about missed frame restoring here, its done in the cleanup.
5805 (switch_to_thread): Don't read from a thread that has gone.
5806 (restore_current_thread): In non-stop mode, do a full context
5807 switch.
5808 (restore_selected_frame): Add a frame_level argument. Rewrite.
5809 (struct current_thread_cleanup): Add selected_frame_level and
5810 was_stopped members.
5811 (do_restore_current_thread_cleanup): Check if thread was stopped
5812 and still is, and if the target has registers, stack and memory
5813 before restoring the selected frame. Don't delete the cleanup
5814 argument here.
5815 (restore_current_thread_cleanup_dtor): New.
5816 (make_cleanup_restore_current_thread): Remove all arguments.
5817 Rewrite.
5818 (thread_apply_all_command): Update. Prune threads.
5819 (thread_apply_command): Update.
5820 (thread_command): Account for currently selected exited thread.
5821 (do_captured_thread_select): Check for a running thread. Prune
5822 threads.
5823 (_initialize_thread): Make "info threads", "thread", "thread
5824 apply", and "thread apply all" appliable without a selected thread.
5825 * gdbthread.h (struct thread_info): Replace running_ by state_.
5826 Add refcount.
5827 (is_exited, is_stopped): Declare.
5828 (make_cleanup_restore_current_thread): Remove all arguments.
5829 * infrun.c: Include "event-top.h".
5830 (fetch_inferior_event): In non-stop mode, restore selected thread
5831 and frame after handling the event and running breakpoint
5832 commands. Display GDB prompt if needed.
5833 (normal_stop): In non-stop mode, don't print thread switching
5834 notice.
5835 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5836 (get_cmd_no_selected_thread_ok): New.
5837 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5838 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5839 Declare.
5840 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5841 no-selected-thread ok.
5842 * top.c (execute_command): Check for non no-selected-thread-ok
5843 commands.
5844 * linux-nat.c (struct saved_ptids, threads_to_delete)
5845 (record_dead_thread, prune_lwps): Delete.
5846 (exit_lwp): Unconditionally delete thread.
5847 (linux_nat_resume): Remove prune_lwps call.
5848 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5849 of is_running. Adjust to make_cleanup_restore_current_thread
5850 interface change.
5851 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5852 selected thread has exited.
5853 * inf-loop.c (inferior_event_handler): Don't display the prompt
5854 here.
5855 * varobj.c (c_value_of_root): Update.
5856 * defs.h (make_cleanup_dtor): Declare.
5857 * utils.c (make_cleanup_dtor): New.
5858
5859 * Makefile.in (infrun.o): Depend on $(event_top_h).
5860
8cae4b3f
PA
58612008-07-11 Pedro Alves <pedro@codesourcery.com>
5862
5863 Add "continue -a" and "interrupt -a" options for non-stop mode.
5864
5865 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5866 (continue_command): Add "-a" option.
5867 (interrupt_target_command): Add "-a" option.
5868 (_initialize_infcmd): Add extend help of continue and interrupt
5869 command to mention the new "-a" option. Mark "continue" async ok.
5870
bf250677
DE
58712008-07-10 Doug Evans <dje@google.com>
5872
5873 Add "set print symbol-loading on|off".
5874 * NEWS: Document new option.
5875 * symfile.h (print_symbol_loading): Declare.
5876 * symfile.c (print_symbol_loading): New global.
5877 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5878 from ..." if print_symbol_loading.
5879 (_initialize_symfile): Add set/show print symbol-loading.
5880 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5881 if print_symbol_loading.
5882
4c28f408
PA
58832008-07-10 Pedro Alves <pedro@codesourcery.com>
5884
5885 Non-stop linux native.
5886
5887 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5888 here.
5889 (get_pending_status): Implement non-stop mode.
5890 (linux_nat_detach): Stop threads before detaching.
5891 (linux_nat_resume): In non-stop mode, always resume only a single
5892 PTID.
5893 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5894 add new lwp to GDB's thread table, and mark as running, executing
5895 and stopped appropriately.
5896 (linux_nat_filter_event): Don't assume there are other running
5897 threads when a thread exits.
5898 (linux_nat_wait): Mark the main thread as running and executing.
5899 In non-stop mode, don't stop all lwps.
5900 (linux_nat_kill): Stop lwps before killing them.
5901 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5902 alive.
5903 (send_sigint_callback): New.
5904 (linux_nat_stop): New.
5905 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5906
5907 * linux-nat.h (thread_db_attach_lwp): Declare.
5908
5909 * linux-thread-db.c (thread_get_info_callback): Check for new
5910 threads if we have none.
5911 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5912 stopped lwp. Check for new threads if we have none.
5913 (thread_db_attach_lwp): New.
5914 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5915 (check_event): Set proc_handle.pid to the stopped lwp.
5916 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5917 lwp available, bail out if there is none.
5918
5919 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5920 PTRACE_KILL.
5921
0aef6ba2
KB
59222008-07-10 Kevin Buettner <kevinb@redhat.com>
5923
a4fafde3
KB
5924 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5925 `current_pc' from CORE_ADDR to ULONGEST.
5926
0aef6ba2
KB
5927 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5928 gdbsim_stop().
5929
10568435
JK
59302008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 * NEWS (New commands): Mention "set disable-randomization".
5933 * configure.ac: Add check for HAVE_PERSONALITY and
5934 HAVE_DECL_ADDR_NO_RANDOMIZE.
5935 * configure, config.in: Regenerate.
5936 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5937 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5938 ADDR_NO_RANDOMIZE.
5939 (disable_randomization, show_disable_randomization)
5940 (set_disable_randomization): New.
5941 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5942 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5943 variable DISABLE_RANDOMIZATION.
5944 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5945 DISABLE_RANDOMIZATION.
5946
f9c72d52
PA
59472008-07-09 Pedro Alves <pedro@codesourcery.com>
5948
5949 Adjust all targets to new target_stop interface.
5950
5951 * gnu-nat.c (gnu_stop): Add ptid argument.
5952 * go32-nat.c (go32_stop): Add ptid argument.
5953 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5954 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5955 * monitor.c (monitor_stop): Add ptid argument.
5956 (monitor_open): Pass inferior_ptid to monitor_stop.
5957 (monitor_interrupt): Pass inferior_ptid to target_stop.
5958 (monitor_stop): Add ptid argument.
5959 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5960 (procfs_create_inferior): Add ptid argument.
5961 * procfs.c (procfs_stop): Add ptid argument.
5962 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5963 * remote-sim.c (gdbsim_stop): Add ptid argument.
5964 * sol-thread.c (sol_thread_stop): Add ptid argument.
5965 * win32-nat.c (win32_stop): Add ptid argument.
5966
94cc34af
PA
59672008-07-09 Pedro Alves <pedro@codesourcery.com>
5968
5969 Non-stop inferior control.
5970
5971 * infrun.c (resume): In non-stop mode, always resume just one
5972 thread.
5973 (proceed): Don't call prepare_to_proceed in non-stop mode.
5974 (fetch_inferior_event): In non-stop mode, switch context before
5975 handling the event.
5976 (error_is_running, ensure_not_running): New.
5977 (handle_inferior_event): In non-stop mode: Mark only the event
5978 thread as stopped. Require that the target module manages adding
5979 threads to the thread list. Assert that there isn't a
5980 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5981 (normal_stop): Only mark not-running if inferior hasn't exited.
5982 In non-stop mode, only mark the event thread.
5983
5984 * thread.c:Include "cli/cli-decode.h".
5985 (print_thread_info): Don't read from a running thread.
5986 Output "(running)" if thread is running.
5987 (switch_to_thread): Don't read stop_pc if thread is executing.
5988 (do_restore_current_thread_cleanup): Don't write to a running
5989 thread.
5990 (thread_apply_all_command): Don't read from a running thread. In
5991 non-stop mode, do a full context-switch instead of just switching
5992 threads.
5993 (thread_apply_command): In non-stop mode, do a full context-switch
5994 instead of just switching threads.
5995 (do_captured_thread_select): Likewise. Inform user if selected
5996 thread is running.
5997 (_initialize_thread): Mark "info threads" and "thread" and
5998 async_ok.
5999
6000 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
6001 unregister the target from the event loop.
6002
6003 * infcmd.c (continue_command, step_1, jump_command)
6004 (signal_command): Ensure the selected thread isn't running.
6005 (interrupt_target_command): In non-stop mode, interrupt only the
6006 selected thread.
6007
6008 * inferior.h (error_is_running, ensure_not_running): Declare.
6009
6010 * target.h (struct target_ops): Add ptid argument to the to_stop
6011 member.
6012 (target_stop): Add ptid_t argument.
6013
6014 * target.c (update_current_target): Add ptid argument to to_stop's
6015 type.
6016 (debug_to_stop): Add ptid_t argument.
6017 (debug_to_rcmd): Set to_stop_ptid.
6018
6019 * remote.c (remote_stop): Add ptid_t argument.
6020 (async_remote_interrupt): Add inferior_ptid to target_stop.
6021 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
6022
6023 * Makefile.in (thread.o): Depend on $(cli_decode_h).
6024
59f0d5d9
PA
60252008-07-09 Pedro Alves <pedro@codesourcery.com>
6026
6027 Don't rely on ecs->wait_for_more.
6028
6029 * infrun.c (proceed): Clear the stepping state, set
6030 previous_inferior_ptid and clear infwait state.
6031 (wait_for_inferior): Don't clear the stepping state, set
6032 previous_inferior_ptid, or clear the infwait state here.
6033 (fetch_inferior_event): Don't clear the stepping state, set
6034 previous_inferior_ptid, or clear the infwait state here. Don't
6035 condition on wait_for_more.
6036
0d1e5fa7
PA
60372008-07-09 Pedro Alves <pedro@codesourcery.com>
6038
6039 Refactor infrun a bit.
6040
6041 * infrun.c (currently_stepping): Take a struct
6042 thread_stepping_state instead of an execution_control_state.
6043 (struct thread_stepping_state): New, split from
6044 execution_control_state.
6045 (gtss, tss): New globals.
6046 (proceed): Clear the stepping state, set previous_inferior_ptid
6047 and clear infwait state.
6048 (init_wait_for_inferior): Clear the stepping state,
6049 previous_inferior_ptid and infwait state.
6050 (waiton_ptid, infwait_state): New, split from
6051 execution_control_state.
6052 (struct execution_control_state): Members that persist through
6053 events moved out to either struct thred_stepping_state or made
6054 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
6055 (wait_for_inferior, fetch_inferior_event): Use local
6056 execution_control_state. Update to execution_control_state split.
6057 (init_execution_control_state): Adjust.
6058 (init_thread_stepping_state): New, extracted from
6059 init_execution_control_state.
6060 (context_switch): Take a ptid instead of an
6061 execution_control_state.
6062 (context_switch_to): Adjust.
6063 (adjust_pc_after_break): Adjust.
6064 (init_infwait_state): New.
6065 (handle_inferior_event): Adjust.
6066
a474d7c2
PA
60672008-07-09 Pedro Alves <pedro@codesourcery.com>
6068 Vladimir Prus <vladimir@codesourcery.com>
6069
6070 Per-thread commands.
6071
6072 * gdbthread.h: Remove unneeded forward declarations.
6073 Include "inferior.h".
6074 (struct thread_info): Add continuations,
6075 intermediate_continuations, proceed_to_finish, step_over_calls,
6076 stop_step, step_multi and stop_signal members.
6077 (save_infrun_state): Add continuations,
6078 intermediate_continuations, proceed_to_finish, step_over_calls,
6079 stop_step, step_multi, stop_signal and stop_bpstat parameters.
6080 (load_infrun_state): Add continuations,
6081 intermediate_continuations, proceed_to_finish, step_over_calls,
6082 stop_step, step_multi, stop_signal and stop_bpstat parameters.
6083
6084 * thread.c (load_infrun_state): In non-stop mode, load
6085 continuations, intermediate_continuations, proceed_to_finish,
6086 step_over_calls, stop_step, step_multi and stop_signal.
6087 (save_infrun_state): Store continuations,
6088 intermediate_continuations, proceed_to_finish, step_over_calls,
6089 stop_step, step_multi, stop_signal and stop_bpstat.
6090 (save_infrun_state): Store continuations,
6091 intermediate_continuations, proceed_to_finish, step_over_calls,
6092 stop_step, step_multi, stop_signal and stop_bpstat.
6093 (free_thread): Clear The thread's stop_bpstat.
6094
6095 * inferior.h (context_switch_to): Declare.
6096
6097 * infrun.c (ecss): New global.
6098 (context_switch): Context switch continuations,
6099 intermediate_continuations, proceed_to_finish, step_over_calls,
6100 stop_step, step_multi, stop_signal and stop_bpstat.
6101 (wait_for_inferior): Use global ecss.
6102 (async_ecss, async_ecs): Delete.
6103 (fetch_inferior_event): Use global ecss.
6104 (context_switch_to): New.
6105
6106 * top.c (execute_command): In non-stop, only check if the current
6107 thread is running, in all-stop, check if there's any thread
6108 running.
6109
6110 * breakpoint.c (bpstat_remove_breakpoint): New.
6111 (bpstat_remove_breakpoint_callback): New.
6112 (delete_breakpoint): Clear the stop_bpstats of all threads.
6113
6114 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
6115 current thread is running, in all-stop, check if there's any
6116 thread running.
6117
6118 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
6119
ad52ddc6
PA
61202008-07-09 Pedro Alves <pedro@codesourcery.com>
6121
6122 Add non_stop global.
6123
6124 * inferior.h (non_stop): Declare.
6125 * infrun.c (non_stop, non_stop_1): New.
6126 (set_non_stop, show_non_stop): New.
6127 (_initialize_infrun): Add "set/show non-stop" command.
6128
3a3e9ee3
PA
61292008-07-09 Pedro Alves <pedro@codesourcery.com>
6130
6131 Adjust fork/vfork/exec to pass ptids around.
6132
6133 * target.h (struct target_waitstatus): Store related_pid as a ptid.
6134 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
6135 Take a ptid_t.
6136 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
6137 type to ptid.
6138 * breakpoint.c (print_it_typical, bpstat_check_location)
6139 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
6140 (create_fork_vfork_event_catchpoint): Adjust.
6141 * infrun.c (fork_event): Change parent_pid and child_pid types to
6142 ptid.
6143 (follow_exec, inferior_has_forked, inferior_has_vforked)
6144 (inferior_has_execd): Take a ptid_t and don't trim it.
6145 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
6146 * linux-nat.c (linux_child_follow_fork): Adjust.
6147 * inf-ptrace.c (inf_ptrace_wait): Adjust.
6148 * inf-ttrace.c (inf_ttrace_wait): Adjust.
6149 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
6150
8ea051c5
PA
61512008-07-09 Pedro Alves <pedro@codesourcery.com>
6152
6153 Add "executing" property to threads.
6154
6155 * inferior.h (target_executing): Delete.
6156 * gdbthread.h (struct thread_info): Add executing_ field.
6157 (set_executing, is_executing): New.
6158 * thread.c (main_thread_executing): New.
6159 (init_thread_list): Clear it and also main_thread_running.
6160 (is_running): Return false if target has no execution.
6161 (any_running, is_executing, set_executing): New.
6162
6163 * top.c: Include "gdbthread.h".
6164 (target_executing): Delete.
6165 (execute_command): Replace target_executing check by any_running.
6166 * event-top.c: Include "gdbthread.h".
6167 (display_gdb_prompt, command_handler): Replace target_executing by
6168 is_running.
6169 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
6170 here. Replace target_executing by is_running.
6171 * infrun.c (handle_inferior_event): Mark all threads as
6172 not-executing.
6173 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
6174 here.
6175 * stack.c (get_selected_block): Return null if inferior is
6176 executing.
6177 * target.c (target_resume): Mark resumed ptid as executing.
6178 * breakpoint.c (until_break_command): Replace target_executing
6179 check by is_executing.
6180 * remote.c (remote_async_resume): Don't mark inferior as executing
6181 here.
6182 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
6183 by any_running.
680b56ce 6184
8ea051c5
PA
6185 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
6186 (mi_execute_async_cli_command): Replace target_executing by
6187 is_running.
6188
6189 * frame.c (get_current_frame): Error out if the current thread is
6190 executing.
6191 (has_stack_frames): New.
6192 (get_selected_frame, deprecated_safe_get_selected_frame): Check
6193 has_stack_frames.
680b56ce 6194
8ea051c5
PA
6195 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
6196 $(gdbthread_h).
6197
4487aabf
PA
61982008-07-09 Pedro Alves <pedro@codesourcery.com>
6199
6200 * symfile.c (load_command): Reopen the exec file and reread
6201 symbols before anything else.
6202
9de2bdd7
PA
62032008-07-09 Pedro Alves <pedro@codesourcery.com>
6204
6205 * remote-sim.c: Include gdbthread.h.
6206 (remote_sim_ptid): New global.
6207 (gdbsim_create_inferior): Silently add the main task to GDB's
6208 thread list.
6209 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
6210 task from GDB's thread list.
6211 (gdbsim_resume): Adjust to use remote_sim_ptid.
6212 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
6213 (init_gdbsim_ops): Register gdbsim_thread_alive and
6214 gdbsim_pid_to_str.
6215 (_initialize_remote_sim): Initialize remote_sim_ptid.
6216 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
6217
5e0b29c1
PA
62182008-07-09 Pedro Alves <pedro@codesourcery.com>
6219
6220 * monitor (monitor_ptid): New global.
6221 (monitor_open): Silently add the main task to GDB's thread list.
6222 (monitor_close, monitor_mourn_inferior): Silently delete the main
6223 task from GDB's thread list.
6224 (monitor_thread_alive, monitor_pid_to_str): New.
6225 (init_base_monitor_ops): Register monitor_thread_alive and
6226 monitor_pid_to_str.
6227 (_initialize_remote_monitors): Initialize monitor_ptid.
6228
6229 * gdbthread.h (delete_thread_silent): Declare.
6230 * thread.c (delete_thread): Rename to ...
6231 (delete_thread_1): ... this. Add "silent" parameter. If silent,
6232 don't do exit notifications.
6233 (delete_thread, delete_thread_silent): New, as wrappers to
6234 delete_thread_1.
6235
b60e7edf
PA
62362008-07-08 Pedro Alves <pedro@codesourcery.com>
6237
6238 * breakpoint.c (update_global_location_list): Add boolean
6239 "should_insert" argument. Only insert locations if caller told it
6240 too.
6241 (update_global_location_list_nothrow): Add boolean "should_insert"
6242 argument. Pass it to update_global_location_list.
6243 (insert_breakpoints, create_longjmp_breakpoint)
6244 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
6245 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6246 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
6247 (enable_watchpoints_after_interactive_call_stop)
6248 (set_momentary_breakpoint, create_breakpoints)
6249 (break_command_really, watch_command_1)
6250 (create_ada_exception_breakpoint, update_breakpoint_locations)
6251 (do_enable_breakpoint, enable_command): Pass true to
6252 update_global_location_list.
6253 (bpstat_stop_status, disable_overlay_breakpoints)
6254 (disable_watchpoints_before_interactive_call_start)
6255 (delete_breakpoint, disable_breakpoint, disable_command): Pass
6256 false to update_global_location_list.
6257 (update_breakpoints_after_exec): Don't temporarily disable
6258 always-inserted mode.
6259
25b22b0a
PA
62602008-07-08 Pedro Alves <pedro@codesourcery.com>
6261
6262 * breakpoint.c (mark_breakpoints_out): Make public.
6263 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
6264 here. Update comment.
6265 * breakpoint.h (mark_breakpoints_out): Declare.
6266
6267 * linux-nat.c (linux_handle_extended_wait): On
6268 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
6269 * inf-ttrace.c (inf_ttrace_wait): Likewise.
6270
cce9b6bf
PA
62712008-07-08 Pedro Alves <pedro@codesourcery.com>
6272
6273 * infrun.c (follow_exec): Reset shared libraries before adding the
6274 main exec file.
6275
3c3185ac
JK
62762008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
6279
42f0bc8e
PA
62802008-07-07 Pedro Alves <pedro@codesourcery.com>
6281
6282 * i386-dicos-tdep.c: Include "inferior.h".
6283 (i386_dicos_frame_align): New.
6284 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
6285 dummy location ON_STACK.
6286 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
6287
b7292df3
JB
62882008-07-07 Joel Brobecker <brobecker@adacore.com>
6289
6290 * gstdint.h: New file.
6291
bb599c81
VP
62922008-07-05 Vladimir Prus <vladimir@codesourcery.com>
6293
6294 * mi/mi-interp.c (mi_on_resume): Don't try to report
6295 resumed thread it the thread list is empty.
6296
7f6a6314
PM
62972008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
6298
6299 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
6300 completer for set to filename_completer.
680b56ce 6301
7f6a6314
PM
6302 NEWS: Mention it.
6303
711eabed
VP
63042008-07-04 Vladimir Prus <vladimir@codesourcery.com>
6305
6306 Implement -target-attach.
680b56ce 6307 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 6308
db3b9a10
MS
63092008-06-21 Hui Zhu <teawater@gmail.com>
6310
6311 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
6312
dc177b7a
PA
63132008-07-03 Pedro Alves <pedro@codesourcery.com>
6314
6315 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
6316 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
6317
6318 * target.h (struct target_ops): Add to_attach_no_wait member.
6319 (target_attach_no_wait): New.
6320 * target.c (update_current_target): Inherit to_attach_no_wait.
6321
6322 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
6323 target_attach_no_wait runtime check.
6324
6325 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
6326 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
6327 win32_ops.
6328
caac8896
PA
63292008-07-03 Pedro Alves <pedro@codesourcery.com>
6330
6331 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
6332 on debug_displaced being set.
6333
0d254d6f
DJ
63342008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6335
6336 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
6337 directly instead of get_frame_id.
6338
f74c6cad
LM
63392008-06-30 Luis Machado <luisgpm@br.ibm.com>
6340
6341 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
6342 (deal_with_atomic_sequence): Update BC masks.
6343 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
6344 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
6345
395f2fc2
DJ
63462008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6347
6348 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
6349 register, not the previous frame's.
6350
8340a3fb
LM
63512008-06-30 Luis Machado <luisgpm@br.ibm.com>
6352
6353 * source.c (select_source_symtab): Make sure we skip namespace
6354 symtabs when showing cpp source code.
6355
cfefc99a
HPN
63562008-06-30 Hans-Peter Nilsson <hp@axis.com>
6357
6358 * MAINTAINERS (Authorized committers): Fix my email address.
6359
1b98914a
VP
63602008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6361
6362 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
6363 -target-download and -target-select via CLI, so that
6364 the quoting rules are the same as they were (unfortunately)
6365 in all prior gdb releases.
6366 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
6367 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6368 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
6369 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6370 (mi_cmd_execute): Set current_token even for commands
6371 routed via CLI.
6372
94afd7a6
UW
63732008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
6374
6375 * alphafbsd-tdep.c: Update for unwinder changes.
6376 * alpha-linux-tdep.c: Likewise.
6377 * alphanbsd-tdep.c: Likewise.
6378 * alphaobsd-tdep.c: Likewise.
6379 * avr-tdep.c: Likewise.
6380 * cris-tdep.c: Likewise.
6381 * frv-linux-tdep.c: Likewise.
6382 * frv-tdep.c: Likewise.
6383 * h8300-tdep.c: Likewise.
6384 * hppa-linux-tdep.c: Likewise.
6385 * iq2000-tdep.c: Likewise.
6386 * m32c-tdep.c: Likewise.
6387 * m32r-linux-tdep.c: Likewise.
6388 * m32r-tdep.c: Likewise.
6389 * m68hc11-tdep.c: Likewise.
6390 * mep-tdep.c: Likewise.
6391 * mn10300-tdep.c: Likewise.
6392 * mt-tdep.c: Likewise.
6393 * score-tdep.c: Likewise.
6394 * sh64-tdep.c: Likewise.
6395 * sh-tdep.c: Likewise.
6396 * sparc64fbsd-tdep.c: Likewise.
6397 * sparc64nbsd-tdep.c: Likewise.
6398 * sparc64obsd-tdep.c: Likewise.
6399 * v850-tdep.c: Likewise.
6400 * vaxobsd-tdep.c: Likewise.
6401 * vax-tdep.c: Likewise.
6402 * xstormy16-tdep.c: Likewise.
6403
e111d6c9
VP
64042008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6405
6406 * mi/mi-main.c (enum captured_mi_execute_command_actions)
6407 (captured_mi_execute_command_args): Remove.
6408 (captured_mi_execute_command): Cast the closure to mi_parse
6409 pointer, not to captured_mi_execute_command_args, and don't
6410 set the action field thereof.
6411 (mi_execute_command): Pass struct mi_parse, not
6412 captured_mi_execute_command_args to captured_mi_execute_command.
6413 (mi_execute_command): Remove (dead) code for suppressing
6414 printing prompt.
6415
84e46146
PA
64162008-06-28 Pedro Alves <pedro@codesourcery.com>
6417
6418 * linux-nat.c (enum sigchld_state): New.
6419 (linux_nat_async_events_state): Renamed from
6420 linux_nat_async_events_enabled.
6421 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6422 (sigchld_default_action): New.
6423 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6424 unconditionally.
6425 (linux_nat_create_inferior): Set events state to sigchld_default
6426 state.
6427 (linux_nat_resume): Adjust.
6428 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6429 (sigchld_handler): Adjust.
6430 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6431 (get_pending_events): Adjust.
6432 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6433 instead of a boolean.
6434 (linux_nat_async): Adjust.
6435 (_initialize_linux_nat): Capture default SIGCHLD action into
6436 sigchld_default_action.
6437
20874c92
VP
64382008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6439
680b56ce
AS
6440 * breakpoint.c (moribund_locations): New.
6441 (bpstat_stop_status): Process moribund locations.
6442 (update_global_location_list): Add removed
6443 locations to moribund_locations.
6444 (breakpoint_retire_moribund): New.
6445 * breakpoint.h (struct bp_location): New field
6446 events_till_retirement.
6447 (breakpoint_retire_moribund): Declare.
6448 * thread.c (thread_count): New.
6449 * infrun.c (handle_inferior_event): Call
6450 breakpoint_retire_moribund.
6451 * gdbthread.h (thread_count): Declare.
20874c92 6452
cd0b43b1
JM
64532008-06-27 Joseph Myers <joseph@codesourcery.com>
6454
6455 * dfp.c (decimal_convert): Call match_endianness before and after
6456 conversion.
6457
7c0f6dcc
JL
64582008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6459
6460 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6461 unsupported and we fall back to memory_insert_breakpoint, we
6462 use the unmodified requested address.
6463
01c66ae6
JB
64642008-06-27 Joel Brobecker <brobecker@adacore.com>
6465
6466 * dwarf2read.c (read_attribute_value): Issue a complaint when
6467 adjusting size attribute values of 0xffffffff as zero.
6468
7ccc1c74
JM
64692008-06-27 Joseph Myers <joseph@codesourcery.com>
6470
6471 * i386-tdep.c (i386_16_byte_align_p): New.
6472 (i386_push_dummy_call): Determine stack space required for
6473 arguments going forwards allowing for 16-byte alignment, then push
6474 arguments going forwards.
6475
c0a2216e
PA
64762008-06-27 Pedro Alves <pedro@codesourcery.com>
6477
6478 * infrun.c (start_remote): Don't clear thread list here.
6479 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6480 list here.
6481 * remote.c (record_currthread): Upgrade the main thread and its
6482 entry in the thread list if this is the first time we hear about
6483 threads.
6484 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6485 a tid member always alive.
6486 (remote_find_new_threads): Don't update the main thread here.
6487 (remote_start_remote): Clear thread list here. Always add the
6488 main thread.
6489 (extended_remote_attach_1): Add the main thread here.
6490 (extended_remote_mourn_1): Re-add the main thread here.
6491 (extended_remote_create_inferior_1): Add a main thread.
6492
6493 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6494
87b0e16e 64952008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6496
6497 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6498
6499 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6500 globals.
6501 (general_thread, continue_thread): Change type to ptid_t.
6502 (record_currthread): Take a ptid_t parameter instead of an
6503 integer.
6504 (MAGIC_NULL_PID): Delete.
6505 (set_thread): Take a ptid_t parameter and adjust.
6506 (set_general_thread, set_continue_thread): New.
6507 (remote_thread_alive, remote_newthread_step)
6508 (remote_current_thread, remote_find_new_threads)
6509 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6510 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6511 (threadalive_test, remote_pid_to_str)
6512 (remote_get_thread_local_address): Adjust.
6513 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6514 and any_thread_ptid.
6515
3ca64bd3
JK
65162008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6519 * configure: Regenerated.
6520
28e94949
JB
65212008-06-26 Joel Brobecker <brobecker@adacore.com>
6522
6523 * dwarf2read.c (read_attribute_value): Treat size attribute
6524 values of 0xffffffff as if the attribute value was zero.
6525
8a77dff3
VP
65262008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6527
6528 * linux-nat.c: Add description of overall logic.
6529
d5af19ba
DJ
65302008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6531
6532 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6533 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6534 all dependencies on $(gdb_stdint_h).
6535 (distclean): Do not delete gdb_stdint.h.
6536 * acinclude.m4: Do not use stdint.m4.
6537 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6538 uintptr_t, and gdb_stdint.h.
6539 * defs.h: Include <stdint.h>.
6540 * gdb_thread_db.h: Assume stdint.h is already included.
6541 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6542 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6543 include gdb_stdint.h.
6544 * configure, config.in: Regenerate.
6545
00fbcec4
JM
65462008-06-26 Joseph Myers <joseph@codesourcery.com>
6547
6548 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6549 decimal floating-point values in GPRs for soft-float.
6550 (do_ppc_sysv_return_value): Handle returning decimal
6551 floating-point values in GPRs for soft-float.
6552
d5086790
VP
65532008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6554
6555 * target.c (target_read_until_error): New.
680b56ce
AS
6556 * target.h (target_read_until_error): Declare.
6557 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6558 target_read_until_error.
d5086790 6559
fe9441f6
JK
65602008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6561
6562 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6563 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6564 after the DECFLOAT detection to fix a memory leak. Remove the
6565 redundant NUM initialization. Protect the DECFLOAT detection memory
6566 access before the P block. Restore the P memory content for the
6567 DECFLOAT detection.
6568
ce8f13f8
VP
65692008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6570
6571 Kill the return value for all MI command functions.
6572 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6573 (mi_cmd_argv_ftype): Change return type to void.
6574
6575 * mi/mi-main.c: Adjust all function that implement
6576 MI commands to return nothing.
6577 (struct captured_mi_execute_command_actions):
6578 Remove the rc field.
6579 (mi_cmd_execute): Return nothing.
6580 (mi_execute_async_cli_command): Return nothing.
6581 (mi_cmd_exec_interrupt): Don't print ^done here.
6582 (mi_cmd_target_select): Don't print ^connected here.
6583 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6584 Special-case -target-select and output ^connected, not ^done.
6585
6586 * mi/mi-cmd-break.c: Adjust.
6587 * mi/mi-cmd-disas.c: Adjust.
6588 * mi/mi-cmd-env.c: Adjust.
6589 * mi/mi-cmd-file.c: Adjust.
6590 * mi/mi-cmd-stack.c: Adjust.
6591 * mi/mi-cmd-target.c: Adjust.
6592 * mi/mi-cmd-var.c: Adjust.
6593 * mi/mi-interp.c: Adjust.
6594 * mi/mi-symbol-cmds.c: Adjust.
6595
a2840c35
VP
65962008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6597
6598 Emit ^running via observer.
6599 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6600 ^running here.
6601 (mi_on_resume): Print ^running if not previously output.
6602 * mi/mi-main.c (running_result_record_printed): New.
6603 (captured_mi_execute_command): Reset
6604 running_result_record_printed. Use running_result_record_printed
6605 to decide if we should skip ^done.
6606 (mi_execute_async_cli_command): Don't print ^running here.
6607 * mi/mi-main.h (current_token, running_result_record_printed):
6608 Declare.
a2840c35 6609
1f41b062
MS
66102008-06-24 Michael Snyder <msnyder@specifix.com>
6611
6612 * infrun.c (_initialize_infrun): White space and typo fix.
6613
eff8332b
CF
66142008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6615
6616 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6617 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6618 when first loading DLL with "dll" command.
6619
e50ce6de 66202008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6621
6622 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6623
e50ce6de 66242008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6625
6626 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6627
59ddf1e7
JB
66282008-06-18 Joel Brobecker <brobecker@adacore.com>
6629
680b56ce
AS
6630 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6631 the target cannot run.
59ddf1e7
JB
6632
66332008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6634
6635 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6636 we're attaching to a running process.
6637
e50ce6de 66382008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6639
6640 * win32-nat.c (handle_load_dll): Give dll name and load address
6641 if debug_events is on.
6642 (handle_unload_dll): Likewise.
6643
8f6a8e84
VP
66442008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6645
6646 Don't suppress *running when doing finish.
680b56ce
AS
6647 * infcall.c (call_function_by_hand): Set both
6648 suppress_resume_observer and suppress_stop_observer.
6649 * infcmd.c (suppress_run_stop_observers): Split into...
6650 (suppress_resume_observer, suppress_stop_observer): ...those.
6651 (finish_command_continuation): Clear suppress_stop_observer.
6652 (finish_command): Set suppress_stop_observer.
6653 * inferior.h (suppress_run_stop_observers): Split into...
6654 (suppress_resume_observer, suppress_stop_observer): ...those.
6655 * infrun.c (normal_stop): Check for suppress_stop_observer.
6656 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6657
4309257c
PM
66582008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6659 Pierre Muller <muller@ics.u-strasbg.fr>
6660
6661 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6662 * gdbarch.h, gdbarch.c: Regenerate.
6663 * i386-tdep.h (i386_skip_main_prologue): Declare.
6664 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6665 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6666 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6667 * symtab.c (find_function_start_sal): When pc points at the "main"
6668 function, call gdbarch_skip_main_prologue.
6669
a4e2ee12
DJ
66702008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6671
6672 * value.c (value_primitive_field): Fetch lazy register values.
6673
060871df
PA
66742008-06-11 Pedro Alves <pedro@codesourcery.com>
6675
6676 * NEWS: Mention support removal of undocumented S AA p PID stop
6677 reply packet.
6678
6679 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6680
336de56d
SS
66812008-06-10 Stan Shebs <stan@codesourcery.com>
6682
6683 * MAINTAINERS: Update my affiliation and address.
6684
7949220d
AS
66852008-06-10 Andreas Schwab <schwab@suse.de>
6686
6687 * top.c (print_gdb_version): Don't print final newline.
6688
e1ac3328
VP
66892008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6690
6691 Implement *running.
680b56ce
AS
6692 * Makefile.in: Update dependencies.
6693 * gdbthread.h (struct thread_info): New field
6694 running_.
6695 (set_running, is_running): New.
6696 * thread.c (set_running, is_running): New.
6697 * inferior.h (suppress_normal_stop_observer): Rename to...
6698 (suppress_run_stop_observers): ..this.
6699 * infcmd.c (suppress_normal_stop_observer): Rename to...
6700 (suppress_run_stop_observers): ..this.
6701 (finish_command_continuation, finish_command): Adjust.
6702 * infcall.c (call_function_by_hand): Adjust.
6703 * infrun.c (normal_stop): Call set_running.
6704 * target.c (target_resume): New. Call set_running.
6705 * target.h (target_resume): Convert from macro to
6706 a function.
6707
6708 * mi/mi-interp.c (mi_on_resume): New.
6709 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6710
f7f9a841
VP
67112008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6712
6713 Use observers to report stop events in MI.
680b56ce
AS
6714 * mi/mi-interp.c (mi_on_normal_stop): New.
6715 (mi_interpreter_init): Register mi_on_normal_stop.
6716 (mi_interpreter_exec_continuation): Remove.
6717 (mi_cmd_interpreter_exec): Don't register the above.
6718 * mi/mi-main.c (captured_mi_execute_command): Don't care
6719 about sync_execution.
6720 (mi_execute_async_cli_command): Don't install continuation. Don't
6721 print *stopped.
6722 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6723
f5871ec0
VP
67242008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6725
6726 Suppress normal stop observer when it's problematic.
680b56ce
AS
6727 * inferior.h (suppress_normal_stop_observer): New.
6728 * infcall.c (call_function_by_hand): Disable stop events when
6729 doing function calls.
6730 * infmcd.c (suppress_normal_stop_observer): New.
6731 (finish_command_continuation): Call normal_stop observer
6732 explicitly.
6733 (finish_command): Disable stop events inside proceed.
6734 * infrun.c (normal_stop): Don't call normal stop observer if
6735 suppressed of if multi-step is in progress.
f5871ec0 6736
3d3191a6
VP
67372008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6738
6739 Remove stale code.
680b56ce
AS
6740 * infrun.c (finish_command): Don't pass cleanup
6741 to continuation.
6742 (finish_command_continuation): Don't grab cleanup from
6743 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6744
0b080f59
VP
67452008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6746
6747 Introduce common cleanup for restoring integers.
680b56ce
AS
6748 * defs.h (make_cleanup_restore_integer): New declaration.
6749 (struct cleanup): New field free_arg.
6750 (make_my_cleanup_2): New.
6751 * utils.c (restore_integer_closure, restore_integer)
6752 (make_cleanup_restore_integer): New.
6753 (make_my_cleanup): Initialize the free_arg field and
6754 renamed to make_my_cleanup_2.
6755 (do_my_cleanups): Call free_arg.
6756 (discard_cleanups): Call free_arg.
6757 * breakpoint.c (restore_always_inserted_mode): Remove.
6758 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6759
b4f62b57
DE
67602008-06-09 Doug Evans <dje@google.com>
6761
6762 * remote.c (remote_wait): Include beginning of malformed packet
6763 in error output.
6764
37cd5d19
TT
67652008-06-09 Tom Tromey <tromey@redhat.com>
6766
6767 * completer.c (complete_line): Don't special-case
6768 expression_completer.
6769 (expression_completer): Only pass last word to
6770 location_completer.
6771 * c-exp.y (yylex): Check 'token', not 'operator'.
6772
3526781e
DJ
67732008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6774
6775 * configure.ac (build_warnings): Add -Wno-format for mingw.
6776 * configure: Regenerated.
6777
d001be7a
DJ
67782008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6779
6780 * NEWS: Make indentation consistent. Move exec tracing entry out
6781 of remote packet list.
6782
65d12d83
TT
67832008-06-06 Tom Tromey <tromey@redhat.com>
6784
6785 * value.h (evaluate_subexpression_type, extract_field_op):
6786 Declare.
6787 * printcmd.c (_initialize_printcmd): Use expression_completer for
6788 'p', 'inspect', 'call'.
6789 * parser-defs.h (parse_field_expression): Declare.
6790 * parse.c: Include exceptions.h.
6791 (in_parse_field, expout_last_struct): New globals.
6792 (mark_struct_expression): New function.
6793 (prefixify_expression): Return int.
6794 (prefixify_subexp): Return int. Use expout_last_struct.
6795 (parse_exp_1): Update.
6796 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6797 in_parse_field.
6798 (parse_field_expression): New function.
6799 * expression.h (parse_field_expression): Declare.
6800 (in_parse_field): Likewise.
6801 * eval.c (evaluate_subexpression_type): New function.
6802 (extract_field_op): Likewise.
6803 * completer.h (expression_completer): Declare.
6804 * completer.c (expression_completer): New function.
6805 (count_struct_fields, add_struct_fields): New functions.
6806 * c-exp.y (yyparse): Redefine.
6807 (COMPLETE): New token.
6808 (exp): New productions.
6809 (saw_name_at_eof, last_was_structop): New globals.
6810 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6811 (c_parse): New function.
6812 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6813 for watch, awatch, and rwatch.
6814 * Makefile.in (parse.o): Depend on exceptions_h.
6815
fed27633
PP
68162008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6817
6818 PR gdb/1147
6819 * gdb/valopts.c (find_overload_match): Handle references
6820 to pointers.
6821
aced2898
PH
68222008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6823
6824 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6825 account the bitsize of the 'from' operand.
6826
a2b87ed1
PA
68272008-06-06 Pedro Alves <pedro@codesourcery.com>
6828
6829 * annotate.h (annotate_thread_changed): Declare.
6830
3d6d0b9d
NR
68312008-06-06 Nick Roberts <nickrob@snap.net.nz>
6832
6833 * annotate.c (annotate_thread_changed): New function.
6834 * thread.c (thread_command) : Use it.
6835 * infrun.c (normal_stop): Use it.
6836
c16158bc 68372008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6838 Nathan Sidwell <nathan@codesourcery.com>
6839 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6840
6841 * acinclude.m4: Include ../config/acx.m4.
6842 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6843 * configure, config.in: Regenerate.
6844 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6845 address.
6846 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6847
75c99385
PA
68482008-06-05 Pedro Alves <pedro@codesourcery.com>
6849
6850 Replace 'target async' by 'maintenance set remote-async' and
6851 'target remote' combination.
6852
6853 * remote.c (remote_async_wait): Merge into remote_wait, and
6854 remove.
6855 (remote_async_permitted, remote_async_permitted_set): New
6856 variables.
6857 (set_maintenance_remote_async_permitted)
6858 (show_maintenance_remote_async_permitted): New functions.
6859 (remote_async_ops, extended_async_remote_ops): Delete.
6860 (remote_async_open, extended_remote_async_open): Delete.
6861 (remote_open_1): Drop async_p parameter. Update callers. Replace
6862 async_p with remote_async_permitted checks.
6863 (extended_async_remote_attach): Delete.
6864 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6865 (remote_async_terminal_inferior): Rename to...
6866 (remote_terminal_inferior): ... this, and add
6867 remote_async_termitted check.
6868 (remote_async_terminal_ours): Rename to...
6869 (remote_terminal_ours): ... this, and add remote_async_termitted
6870 check.
6871 (remote_wait, remote_async_wait): Merge and leave remote_wait
6872 only.
6873 (remote_kill, remote_async_kill): Merge and leave remote_kill
6874 only.
6875 (remote_async_mourn, extended_async_remote_mourn): Delete.
6876 (extended_remote_create_inferior_1): Drop async_p parameter.
6877 Update callers. Always use extended_remote_ops.
6878 (extended_remote_async_create_inferior): Delete.
6879 (remote_return_zero): Delete.
6880 (init_remote_ops): Register remote_can_async_p, remote_async,
6881 remote_async_mask, remote_terminal_inferior and
6882 remote_terminal_ours.
6883 (remote_can_async_p, remote_is_async_p): Check for
6884 remote_async_permitted.
6885 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6886 (set_remote_cmd): Don't add async and extended-async targets.
6887 (_initialize_remote): Add set/show remote-async maintenance
6888 commands.
6889
cf30943b
PA
68902008-06-05 Pedro Alves <pedro@codesourcery.com>
6891
6892 * remote.c (kill_kludge): Delete.
6893 (remote_wait, remote_async_wait): Don't set it.
6894 (remote_kill, remote_async_kill): Don't do anything with it.
6895
49fd4a42
PA
68962008-06-05 Pedro Alves <pedro@codesourcery.com>
6897
6898 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6899
2e618c13
AR
69002008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6901
6902 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6903 (deprecated_bcache_added): New function name. Body of function
6904 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6905 * bcache.h (deprecated_bcache_added): New function.
6906 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6907 work from add_psymbol_to_list - initialises partial symbol and stashes
6908 it in objfile's cache.
680b56ce 6909 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6910 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6911 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6912 here. If adding to global list, do not duplicate partial symbols in the
6913 partial symtab.
6914
c0b37c48
AR
69152008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6916
6917 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6918 'exception caught|thrown' message.
6919
1e3a102a
JK
69202008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6921
6922 * Makefile.in: Update dependencies.
6923 * dwarf2expr.c: New include "gdb_assert.h".
6924 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6925 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6926 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6927 Increase/decrease RECURSION_DEPTH around the function.
6928
8d385431
DJ
69292008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6930
6931 * remote.c (get_offsets): Handle a single segment.
6932 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6933 than segments.
6934
93a57060
DJ
69352008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6936
6937 * solib-svr4.c (struct lm_info): Add lm_addr.
6938 (main_lm_addr): New.
6939 (svr4_default_sos): Set lm_addr.
6940 (svr4_current_sos): Set lm_addr and main_lm_addr.
6941 (svr4_fetch_objfile_link_map): Rewrite.
6942 (svr4_clear_solib): Clear main_lm_addr.
6943
609ba780 69442008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6945 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6946
6947 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6948 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6949
c95f5026
JB
69502008-06-02 Roman Zippel <zippel@linux-m68k.org>
6951
6952 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6953
e4d8bc08
JB
69542008-06-02 Roman Zippel <zippel@linux-m68k.org>
6955
6956 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6957
40adab56
JB
69582008-06-01 Joel Brobecker <brobecker@adacore.com>
6959
6960 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6961 treat pointers in data space as function descriptors if the
6962 target address is also in the data space.
6963
bfd66dd9
JB
69642008-05-30 Joel Brobecker <brobecker@adacore.com>
6965
6966 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6967 the trad-frame register value for the SP register.
6968
7ea566be
MK
69692008-05-29 Mark Kettenis <kettenis@gnu.org>
6970
6971 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6972
fcac911a
JB
69732008-05-28 Joel Brobecker <brobecker@adacore.com>
6974
6975 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6976 that identifies function descriptors outside of the .opd section.
6977
ade92717
AR
69782008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6979
6980 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6981 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6982 'bkptno'.
6983 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6984 catchpoints.
6985 (handle_gnu_v3_exceptions): Use tempflag.
6986
f7f9ae2c
VP
69872008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6988
6989 Refactor varobj_update interface.
680b56ce
AS
6990 * varobj.c (varobj_update): Report changes as vector. Also
6991 return not just a list of varobj, but a list of special structures
6992 that tell what exactly has changed.
6993 * varobj.h (enum varobj_update_error): Rename to
6994 varobj_scope_status.
6995 (struct varobj_update_result_t): New.
6996 (varobj_update): Adjust prototype.
6997 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6998
ea56f9c2
VP
69992008-05-28 Vladimir Prus <vladimir@codesourcery.com>
7000
7001 * varobj.c (varobj_update): Fix comment typo.
7002 Fix indentation.
7003
c7efd0b9
JB
70042008-05-26 Joel Brobecker <brobecker@adacore.com>
7005
7006 Set the symtab field of symbols read from ECOFF debugging entries.
7007 * mdebugread.c (add_symbol): Add new parameter symtab.
7008 (parse_symbol): Update calls to add_symbol throughout.
7009
2a2d4dc3
AS
70102008-05-27 Andreas Schwab <schwab@suse.de>
7011
7012 * symtab.h (enum address_class): Remove LOC_REGPARM and
7013 LOC_COMPUTED_ARG.
7014 (struct symbol): Add is_argument.
7015 (SYMBOL_IS_ARGUMENT): Define.
7016
7017 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
7018 * buildsym.c (finish_block): Likewise.
7019 * stack.c (print_frame_args, print_block_frame_locals)
7020 (print_frame_arg_vars): Likewise.
7021 * symtab.c (lookup_block_symbol): Likewise.
7022 * tracepoint.c (add_local_symbols): Likewise.
7023 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7024
7025 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
7026 * dwarf2read.c (new_symbol): Likewise.
7027 * mdebugread.c (parse_symbol): Likewise.
7028 * stabsread.c (define_symbol): Likewise.
7029
7030 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
7031 and LOC_COMPUTED_ARG.
7032 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7033 * ax-gdb.c (gen_var_ref): Likewise.
7034 * eval.c (evaluate_subexp_for_address): Likewise.
7035 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7036 * m2-exp.y (yylex): Likewise.
7037 * printcmd.c (address_info): Likewise.
7038 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7039 * tracepoint.c (collect_symbol, scope_info): Likewise.
7040
17ea7499
CES
70412008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
7042
7043 * gdbarch.sh: Added new gdbarch struct
7044 core_regset_sections.
7045 * gdbarch.c: Refreshed.
7046 * gdbarch.h: Refreshed.
7047 * regset.h (core_regset_section): Declared.
7048 * linux-nat.c (linux_nat_do_thread_registers): Added
7049 support for the new gdbarch struct core_regset_sections.
7050 * utils.c (host_address_to_string): New function.
7051 * defs.h (host_address_to_string): New prototype.
7052 * i386-linux-tdep.c (i386_regset_rections): New register
7053 sections list for i386.
7054 (i386_linux_init_abi): Initialized new gdbarch struct
7055 core_regset_sections.
7056 * Makefile.in: Updated to reflect dependency changes.
7057 * ppc-linux-tdep.c (ppc_regset_sections): Register
7058 sections list for ppc.
7059 (ppc_linux_init_abi): Initialized new gdbarch struct
7060 core_regset_sections
7061
c4fc331b
AS
70622008-05-24 Andreas Schwab <schwab@suse.de>
7063
7064 * linespec.c (decode_objc): Save current language around call to
7065 get_selected_block.
7066
e936309c
JB
70672008-05-23 Joel Brobecker <brobecker@adacore.com>
7068
7069 * valprint.h (get_array_bounds): Renames get_array_low_bound.
7070 * valprint.c (get_array_bounds): Renames get_array_low_bound.
7071 Return the proper bound value if the array index type is an
7072 enumerated type. Compute the high bound if requested.
7073 (val_print_array_elements): Handle the case when the array
7074 element has a null size.
7075 * ada-valprint.c (print_optional_low_bound): Add handling
7076 for empty arrays or arrays of zero-size elements.
7077 (ada_val_print_array): New function, extracted out from
7078 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
7079 handle empty arrays and arrays of zero-size elements.
7080 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
7081 code by call to ada_val_print_array.
7082 (ada_value_print): Remove handling of null array. The handling
7083 was incomplete and is now better handled by ada_val_print_array.
7084
50ee7535
MD
70852008-05-23 Markus Deuling <deuling@de.ibm.com>
7086
7087 * annotate.c (annotate_source, annotate_frame_begin): Replace
7088 deprecated_print_address_numeric with paddress.
7089 * cli/cli-cmds.c (list_command, edit_command): Likewise.
7090 * tui/tui-stack.c (tui_make_status_line): Likewise.
7091
7092 * defs.h (deprecated_print_address_numeric): Remove.
7093 * printcmd.c (deprecated_print_address_numeric): Remove.
7094 * maint.c (maint_print_section_info): Fix comment.
7095
d44e8473
MD
70962008-05-23 Markus Deuling <deuling@de.ibm.com>
7097
7098 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
7099 print_binary_chars, print_char_chars): Add byte_order parameter and
7100 replace gdbarch_byte_order.
7101 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
7102 expressions and remove them. Remove unused TWO_TO_FOURTH.
7103 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
7104 endianness. Update call to print_hex_chars.
7105 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
7106 print_binary_chars, print_char_chars): Add byte_order parameter.
7107 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
7108 get at the endianness. Update print_*_char calls to use byte_order.
7109
10f4ecb8
UW
71102008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7111
7112 * symtab.h (struct symbol): Make "aux_value" member a void pointer
7113 instead of a union.
7114 (SYMBOL_LOCATION_BATON): Update.
7115
c3b22bd0
UW
71162008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7117
7118 * symtab.h (enum address_class): Remove LOC_BASEREG and
7119 LOC_BASEREG_ARG.
7120 (struct symbol): Remove "basereg" member of "aux_value" union.
7121 (SYMBOL_BASEREG): Remove.
7122
7123 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
7124 or LOC_BASEREG_ARG.
7125 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7126 (ada_add_block_symbols): Likewise.
7127 * ax-gdb.c (gen_var_ref): Likewise.
7128 * buildsym.c (finish_block): Likewise.
7129 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7130 * m2-exp.y (yylex): Likewise.
7131 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7132 * printcmd.c (address_info): Likewise.
7133 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
7134 (print_frame_arg_vars): Likewise.
7135 * symmisc.c (print_symbol): Likewise.
7136 * symtab.c (lookup_block_symbol): Likewise.
7137 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7138 (scope_info): Likewise.
7139
aa59ba6b
UW
71402008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7141
7142 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
7143
7144 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
7145 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7146 (ada_add_block_symbols): Likewise.
7147 * ax-gdb.c (gen_var_ref): Likewise.
7148 * buildsyms.c (finish_block): Likewise.
7149 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7150 * m2-exp.y (yylex): Likewise.
7151 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7152 * printcmd.c (address_info): Likewise.
7153 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
7154 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7155 * symtab.c (lookup_block_symbol): Likewise.
7156 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7157 (scope_info): Likewise.
7158
0bb4e8c4
UW
71592008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7160
7161 * symtab.h (enum address_class): Remove LOC_INDIRECT and
7162 LOC_HP_THREAD_LOCAL_STATIC.
7163
7164 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
7165 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
7166 (read_var_value): Likewise.
7167 * buildsym.c (finish_block): Likewise.
7168 * objfiles.c (objfile_relocate): Likewise.
7169 * printcmd.c (address_info): Likewise.
7170 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7171 * tracepoint.c (scope_info): Likewise.
7172
9f61f19b
MG
71732008-05-21 Markus Deuling <deuling@de.ibm.com>
7174 Maxim Grigoriev <maxim2405@gmail.com>
7175
7176 * xtensa-tdep.c (xtensa_read_register): Remove.
7177 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
7178 argument litbase to call0_frame_cache().
7179 (call0_track_op, call0_analyze_prologue)
7180 (call0_frame_cache): Use extra argument litbase.
7181
0e479716
JB
71822008-05-21 Joel Brobecker <brobecker@adacore.com>
7183
7184 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
7185
214be669
UW
71862008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7187
7188 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
7189
0cd9ab92
UW
71902008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7191
7192 * alpha-mdebug-tdep.c: Include "trad-frame.h".
7193 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
7194 struct trad_frame_saved_reg *.
7195 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
7196 trad_frame_alloc_saved_regs. Update accesses. Record previous
7197 value of SP as being vfp.
7198 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
7199 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
7200
f52cb1b8
MD
72012008-05-21 Markus Deuling <deuling@de.ibm.com>
7202
7203 * score-tdep.c (score_print_insn): Get the current endianess from
7204 disassemble_info instead of gdbarch_byte_order.
7205
8fa75a5d
PA
72062008-05-21 Pedro Alves <pedro@codesourcery.com>
7207
7208 * frame.c (get_prev_frame_1): Build frame id before setting
7209 this_frame->prev_p, not after.
7210
e8e48118
NR
72112008-05-21 Nick Roberts <nickrob@snap.net.nz>
7212
7213 * annotate.c (annotate_new_thread): New function for new-thread
7214 annotation.
7215 * annotate.h: (annotate_new_thread): New extern.
7216 * thread.c (add_thread_with_info): Use it.
7217 * Makefile.in (thread.o): Add dependency on annotate.h.
7218
c57918b2
JB
72192008-05-20 Joel Brobecker <brobecker@adacore.com>
7220
7221 * win32-nat.c (win32_wait): Block the control-c event while
7222 waiting for a debug event.
7223
6c9353d3
PA
72242008-05-19 Pedro Alves <pedro@codesourcery.com>
7225
7226 * symtab.h (lookup_symbol_in_language): Update comment.
7227 * symtab.c (lookup_symbol_aux_block): Update comment.
7228 * ada-lang.c (ada_lookup_symbol_list): Update comment.
7229
2570f2b7
UW
72302008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7231
7232 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
7233 (lookup_symbol): Likewise.
7234 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
7235 (lookup_symbol): Likewise.
7236 (search_symbols): Update.
7237
7238 * linespec.c (find_methods, collect_methods): Update.
7239 (add_matching_methods, add_constructors): Update.
7240 (decode_compound, decode_dollar, decode_variable): Update.
7241 (lookup_prefix_sym): Update.
7242
7243 (symbol_found): Remove SYM_SYMTAB parameter.
7244 Use SYMBOL_SYMTAB (sym) instead.
7245
7246 * gdbtypes.c (lookup_typename): Update.
7247 (lookup_struct, lookup_union, lookup_enum): Update.
7248 (lookup_template_type): Update.
7249 (check_typedef): Update.
7250 * language.c (lang_bool_type): Update.
7251 * mdebugread.c (parse_procedure): Update.
7252 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7253 * parse.c (write_dollar_variable): Update.
7254 * printcmd.c (address_info): Update.
7255 * source.c (select_source_symtab): Update.
7256 * stack.c (print_frame_args, print_frame_arg_vars): Update.
7257 * valops.c (find_function_in_inferior): Update.
7258 (value_struct_elt_for_reference): Update.
7259 * value.c (value_static_field, value_fn_field): Update.
7260
7261 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7262 * arm-tdep.c (arm_skip_prologue): Update.
7263 * mt-tdep.c (mt_skip_prologue): Update.
7264 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
7265
7266 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
7267 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
7268 (add_defn_to_vec): Likewise.
7269 (ada_add_block_symbols): Likewise.
7270 (lookup_cached_symbol, cache_symbol): Likewise.
7271 (standard_lookup): Update.
7272 (ada_lookup_symbol_list): Update.
7273
7274 * c-valprint.c (c_val_print): Update.
7275 * cp-support.c (cp_lookup_rtti_type): Update.
7276 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
7277 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
7278 * p-valprint.c (pascal_val_print): Update.
7279 * scm-lang.c (scm_lookup_name): Update.
7280
7281 * c-exp.y: Update.
7282 * f-exp.y: Update.
7283 * jv-exp.y: Update.
7284 * m2-exp.y: Update.
7285 * objc-exp.y: Update.
7286 * p-exp.y: Update.
7287
21b556f4
UW
72882008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7289
7290 * language.h (struct language_defn): Remove SYMTAB parameter from
7291 la_lookup_symbol_nonlocal callback function pointer.
7292
7293 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7294 (ada_lookup_encoded_symbol): Likewise.
7295 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7296 Always call fixup_symbol_section.
7297 (ada_lookup_symbol): Remove SYMTAB parameter.
7298 (ada_lookup_symbol_nonlocal): Likewise.
7299 * ada-exp.y (write_object_renaming): Update.
7300 (find_primitive_type): Likewise.
7301
7302 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7303 (cp_lookup_symbol_namespace): Likewise.
7304 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
7305 (lookup_symbol_file): Likewise.
7306 (lookup_possible_namespace_symbol): Likewise.
7307 (cp_lookup_symbol_nonlocal): Likewise.
7308 (cp_lookup_symbol_namespace): Likewise.
7309 (cp_lookup_nested_type): Update.
7310
7311 * scm-valprint.c (scm_inferior_print): Update.
7312 * valops.c (value_maybe_namespace_elt): Update.
7313
7314 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
7315 lookup_lib_global_symbol callback function pointer.
7316 (solib_global_lookup): Remove SYMTAB parameter.
7317 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
7318 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7319
7320 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7321 (lookup_symbol_static): Likewise.
7322 (lookup_symbol_global): Likewise.
7323 (lookup_symbol_aux_block): Likewise.
7324 (lookup_global_symbol_from_objfile): Likewise.
7325 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
7326 (lookup_symbol_aux_local): Likewise.
7327 (lookup_symbol_aux_block): Likewise.
7328 (lookup_symbol_aux_symtabs): Likewise.
7329 (lookup_symbol_aux_psymtabs): Likewise.
7330 (lookup_global_symbol_from_objfile): Likewise.
7331 (basic_lookup_symbol_nonlocal): Likewise.
7332 (lookup_symbol_static): Likewise.
7333 (lookup_symbol_global): Likewise.
7334
7335 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
7336
39237dd1
PA
73372008-05-17 Pedro Alves <pedro@codesourcery.com>
7338
7339 * remote.c (init_extended_remote_ops): Fix typo.
7340
7c0d47a5
PA
73412008-05-16 Pedro Alves <pedro@codesourcery.com>
7342
7343 * NEWS: Mention new DICOS x86 target configuration.
7344
907fc202
UW
73452008-05-16 Pedro Alves <pedro@codesourcery.com>
7346 Ulrich Weigand <uweigand@de.ibm.com>
7347
7348 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
7349 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
7350
7351 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
7352 use it instead of ginfo->value.address. Look up minimal symbol by
7353 address and name. Assume OBJFILE is non-NULL.
7354 (fixup_symbol_section): Ensure we always have an objfile to look
7355 into. Extract and pass to fixup_section the symbol's address that
7356 will match the minimal symbol's address.
7357 (fixup_psymbol_section): Likewise.
7358
7359 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
7360 overlays and the addrmap returned the wrong section.
7361
7362 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
7363 calling fixup_symbol_section.
7364
42848c96
UW
73652008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7366
7367 * minsyms.c: Include "target.h".
7368 (find_solib_trampoline_target): Handle minimal symbols pointing
7369 to function descriptors as well.
7370 * Makefile.in (minsyms.o): Update dependencies.
7371
7372 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
7373 (ppc64_standard_linkage1): ... this. Fix optional instructions.
7374 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
7375 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
7376 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
7377 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
7378 (ppc64_standard_linkage_target): Rename to ...
7379 (ppc64_standard_linkage1_target): ... this.
7380 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
7381 (ppc64_skip_trampoline_code): Support three variants of standard
7382 linkage stubs. Call find_solib_trampoline_target to handle
7383 glink stubs.
7384
74d1f063
UW
73852008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7386
7387 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
7388 ppc64_sysv_abi_adjust_breakpoint_address.
7389 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7390 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7391
8526f328
UW
73922008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7393
7394 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
7395 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
7396 of ppc_linux_skip_trampoline_code.
7397
ba2b1c56
DJ
73982008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
7399
7400 * gdbarch.sh: Delete dwarf_reg_to_regnum.
7401 * gdbarch.c, gdbarch.h: Regenerated.
7402 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
7403 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
7404 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
7405
4fdebdd0
PA
74062008-05-15 Pedro Alves <pedro@codesourcery.com>
7407
7408 * linux-nat.c (trap_ptid): Delete.
7409 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
7410 Adjust.
7411 * linux-thread-db.c (thread_db_wait): Adjust.
7412
bc882aa9
JB
74132008-05-15 Joel Brobecker <brobecker@adacore.com>
7414
7415 * linespec.c (decode_line_1): Fix a couple of comments.
7416
83b94be5
AM
74172008-05-15 Alan Modra <amodra@bigpond.net.au>
7418
7419 * dbxread.c: Formatting.
7420 (INTERNALIZE_SYMBOL): Init n_other.
7421 (set_namestring): Take pointer to nlist arg rather than struct
7422 copy. Update all callers.
7423
87669130
AS
74242008-05-15 Andreas Schwab <schwab@suse.de>
7425
7426 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7427 (dwarf2read.o): Add $(addrmap_h).
7428
00d5f93a
UW
74292008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7430
7431 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7432 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7433 to handle ppc32 PLT entries.
7434 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7435 only on ppc64.
7436
2eaf8d2a
DJ
74372008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7438
7439 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7440 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7441 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7442 (lookup_minimal_symbol_by_pc_section): Use
7443 lookup_minimal_symbol_by_pc_section_1.
7444 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7445
20c62566
JB
74462008-05-13 Joel Brobecker <brobecker@adacore.com>
7447
7448 * findcmd.c: Add #include "gdb_stdint.h".
7449 * Makefile.in (findcmd.o): Update dependencies.
7450
87a7da84
DM
74512008-05-11 David S. Miller <davem@davemloft.net>
7452
de0c3d9d
DM
7453 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7454 long double size override, Linux does use 128-bit now.
7455
e8467b5a
DM
7456 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7457 (sparc_linux_write_pc): New function.
7458 (sparc32_linux_init_abi): Register it.
7459 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7460 (sparc64_linux_write_pc): New function.
7461 (sparc64_linux_init_abi): Register it.
7462
87a7da84
DM
7463 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7464 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7465
8a4c2d24
UW
74662008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7467
7468 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7469 and info.tdep_info before calling gdbarch_init_osabi.
7470
003f3813
JB
74712008-05-09 Joel Brobecker <brobecker@adacore.com>
7472
7473 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7474 the type of the right hand side of the assignment to the type
7475 of the left hand side if the left hand side is a convenience
7476 variable.
7477
7ae0e2a2
UW
74782008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7479
7480 * NEWS: Mention gdbserver bi-arch capability.
7481
08388c79
DE
74822008-05-09 Doug Evans <dje@google.com>
7483
7484 New "find" command.
7485 * NEWS: Document find command and qSearch:memory packet.
7486 * Makefile.in (SFILES): Add findcmd.c.
7487 (COMMON_OBJS): Add findcmd.o.
7488 (findcmd.o): New rule.
7489 * findcmd.c: New file.
7490 * target.h (target_ops): New member to_search_memory.
7491 (simple_search_memory): Declare.
7492 (target_search_memory): Declare.
7493 * target.c (simple_search_memory): New fn.
7494 (target_search_memory): New fn.
7495 * remote.c (PACKET_qSearch_memory): New packet kind.
7496 (remote_search_memory): New fn.
7497 (init_remote_ops): Init to_search_memory.
7498 (init_extended_remote_ops): Ditto.
7499 (_initialize_remote): Add qSearch:memory packet config command.
7500
11c68c47
EZ
75012008-05-09 Eli Zaretskii <eliz@gnu.org>
7502
7503 * thread.c (_initialize_thread): Don't use commas and periods in
7504 first line of doc string of "set/show print thread-events".
7505
6834c9bb
JB
75062008-05-08 Joel Brobecker <brobecker@adacore.com>
7507
7508 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7509 Update for unwinder changes.
7510
86c31399
JB
75112008-05-08 Joel Brobecker <brobecker@adacore.com>
7512
7513 * frame.c (get_frame_base_address, get_frame_locals_address)
7514 (get_frame_args_address): Pass the correct frame when calling
7515 frame_base_find_by_frame.
7516
96ef3384
UW
75172008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7518
7519 * remote.c (extended_remote_attach_1): Call target_find_description.
7520
45280a52
DJ
75212008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7522
7523 * remote.c (extended_remote_create_inferior_1): Clean up
7524 before marking the target running.
7525
227e86ad
JB
75262008-05-08 Joel Brobecker <brobecker@adacore.com>
7527
7528 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7529 changes.
7530
236369e7
JB
75312008-05-07 Joel Brobecker <brobecker@adacore.com>
7532
7533 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7534 sparc64-sol2-tdep.c: Update for unwinder changes.
7535
de237128
DJ
75362008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7537
7538 * cp-support.c (mangled_name_to_comp): Initialize storage.
7539 (unqualified_name_from_comp): Likewise.
7540
4fff2411
JZ
75412008-05-07 Jie Zhang <jie.zhang@analog.com>
7542
7543 * remote.c (remote_insert_breakpoint): Call get_remote_state
7544 after gdbarch_breakpoint_from_pc is called.
7545 (remote_insert_hw_breakpoint): Likewise.
7546
d8ca156b
JB
75472008-05-06 Joel Brobecker <brobecker@adacore.com>
7548
7549 * valprint.c (val_print): Add new language parameter and use it
7550 instead of using the current_language. Update calls to val_print
7551 throughout.
7552 (common_val_print): Add new langauge parameter and pass it to
7553 val_print.
7554 * value.h (struct language_defn): Add opaque declaration.
7555 (val_print, common_val_print): Update declarations.
7556 * stack.c (print_frame_args): Update call to common_val_print
7557 using the appropriate language.
7558 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7559 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7560 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7561 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7562 #include "language.h" if necessary.
7563 Update calls to val_print and common_val_print.
7564 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7565 Update dependencies.
7566
b1e6fd19
JB
75672008-05-06 Joel Brobecker <brobecker@adacore.com>
7568
7569 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7570 pointing inside a non-executable section as function descriptors.
7571
02b19d84
PA
75722008-05-06 Pedro Alves <pedro@codesourcery.com>
7573
7574 * inf-loop.c (inferior_event_handler): Run all continuations and
7575 print any language change before running the breakpoint commands.
7576
15c1e57f
JB
75772008-05-06 Joel Brobecker <brobecker@adacore.com>
7578
7579 * frame-unwind.c (frame_unwind_got_bytes): New function.
7580 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7581 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7582 for unwinder changes.
7583
d14508fe
DE
75842008-05-05 Doug Evans <dje@google.com>
7585
7586 * NEWS: Mention new /m modifier for disassemble command.
7587 * cli/cli-cmds.c (print_disassembly): New function.
7588 (disassemble_current_function): New function
7589 (disassemble_command): Recognize /m modifier, print mixed
7590 source+assembly.
7591 (init_cli_cmds): Update disassemble help text.
7592
5142f611
MG
75932008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7594
7595 * xtensa-tdep.c: Update for unwinder changes.
7596
f36bf22c
AS
75972008-05-05 Andreas Schwab <schwab@suse.de>
7598
7599 Update m68k port for unwinder changes.
7600 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7601 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7602 (m68k_frame_unwind): Use default_frame_sniffer.
7603 (m68k_frame_sniffer): Remove.
7604 (m68k_frame_base_address): Expect this_frame.
7605 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7606 this_frame.
7607 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7608 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7609 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7610 parameter instead of pc value.
7611 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7612 Expect this_frame.
7613 (m68k_linux_sigtramp_frame_this_id)
7614 (m68k_linux_sigtramp_frame_prev_register)
7615 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7616 (m68k_linux_sigtramp_frame_unwind): Use
7617 m68k_linux_sigtramp_frame_sniffer.
7618 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7619
7620 * m68klinux-nat.c (store_register): Fix typo.
7621
b3dc826b
PA
76222008-05-05 Pedro Alves <pedro@codesourcery.com>
7623
7624 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7625 NULL dereferencing.
7626
6528a9ea
LM
76272008-05-05 Luis Machado <luisgpm@br.ibm.com>
7628
7629 * symfile.c (reread_symbols): Update objfile's entry point.
7630
5eeb2539
AR
76312008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7632 Joel Brobecker <brobecker@adacore.com>
1f906a60 7633
5eeb2539
AR
7634 * ada-lang.c: Update throughout to use symbol_matches_domain
7635 instead of matching the symbol domain explictly.
7636 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7637 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7638 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7639 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7640 symbol for the typedef. See lookup_block_symbol.
7641 * symtab.c (symbol_matches_domain): New function, takes care
7642 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7643 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7644 found psym domain matches the given domain.
7645 (lookup_block_symbol): Likewise.
7646
e2b7ddea
VP
76472008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7648
680b56ce
AS
7649 * top.c (command_line_handler_continuation): Remove.
7650 (execute_command): Do not install the above.
e2b7ddea 7651
fcfb8b02
VP
76522008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7653
7654 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7655 and catch all exceptions from it.
7656 * top.c (command_line_handler_continuation): Don't
7657 call bpstat_do_action here.
7658
f792889a
DJ
76592008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7660
7661 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7662 (struct die_info): Remove type.
7663 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7664 (read_structure_type, read_enumeration_type, read_array_type)
7665 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7666 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7667 (read_tag_string_type, read_subroutine_type, read_set_type)
7668 (read_unspecified_type): Delete prototypes. Remove check for
7669 already-loaded type. Return the new type.
7670 (set_die_type): Return the new type.
7671 (reset_die_and_siblings_types): Delete.
7672 (load_comp_unit, load_full_comp_unit): Set type_hash.
7673 (process_queue): Remove call to reset_die_and_siblings_types.
7674 (process_die): Do not read most types here. Use read_type_die
7675 for others.
7676 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7677 (quirk_gcc_member_function_pointer): Return the new type.
7678 (process_structure_scope, process_enumeration_scope): Use
7679 get_die_type and read the DIE's type.
7680 (read_full_die): Do not initialize die->type.
7681 (tag_type_to_type): Use read_type_die.
7682 (read_type_die): Check for already defined types. Return the
7683 type.
7684 (determine_prefix): Use get_die_type.
7685 (set_die_type): Return the type.
7686 (get_die_type): Take a CU argument. Check for no type_hash.
7687
e7030f15
DJ
76882008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7689
7690 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7691 locals.
7692
611c83ae
PA
76932008-05-04 Pedro Alves <pedro@codesourcery.com>
7694
7695 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7696 and bp_longjmp_resume breakpoints.
7697 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7698 meaningful.
7699 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7700 breakpoints. Create bp_longjmp breakpoints as momentary
7701 breakpoints.
7702 (enable_longjmp_breakpoint): Delete.
7703 (set_longjmp_breakpoint): New.
7704 (disable_longjmp_breakpoint): Delete.
7705 (delete_longjmp_breakpoint): New.
7706 (set_longjmp_resume_breakpoint): Delete.
7707 (set_momentary_breakpoint_at_pc): New.
7708 (breakpoint_re_set_one): Don't delete bp_longjmp and
7709 bp_longjmp_resume breakpoints.
7710 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7711 breakpoints.
7712
7713 * infrun.c (step_resume_breakpoint): Add comment.
7714 (struct execution_control_state): Delete handling_longjmp member.
7715 (init_execution_control_state). Don't clear handling_longjmp.
7716 (context_switch): Don't context switch handling_longjmp.
7717 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7718 create a bp_longjmp_resume breakpoint, and set it as current
7719 step_resume_breakpoint, then step over the longjmp breakpoint. If
7720 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7721 breakpoint, delete the longjmp-resume breakpoint, and stop
7722 stepping.
7723 (currently_stepping): Remove handling_longjmp from expression.
7724 (insert_step_resume_breakpoint_at_sal): Update comment.
7725 (insert_longjmp_resume_breakpoint): New.
7726
7727 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7728 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7729 declarations.
7730 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7731 (set_longjmp_resume_breakpoint): Delete declaration.
7732
7733 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7734 parameter.
7735 (load_infrun_state): Delete *handling_longjmp parameter.
7736 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7737 Update body.
7738 (load_infrun_state): Delete *handling_longjmp parameter. Update
7739 body.
7740
7741 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7742 (delete_longjmp_breakpoint_cleanup): New.
7743 (step_1): Call set_longjmp_breakpoint instead of
7744 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7745 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7746 (step_1_continuation): Pass thread id in the continuation args to
7747 step_once.
7748 (step_once): Add thread parameter. Pass thread id the the
7749 continuation.
7750
85cbf3d3
JK
77512008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 Set CU BASE_ADDRESS already from partial DIEs.
7754 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7755 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7756 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7757 from these variables if it was still unset.
7758
ff013f42
JK
7759 * Makefile.in: Update dependencies.
7760 * dwarf2read.c: Include "addrmap.h"
7761 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7762 (dwarf2_ranges_read): New prototype.
7763 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7764 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7765 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7766 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7767 comment for it. Add the found ranges to RANGES_PST. New variable
7768 BASEADDR, initialize it the common way.
7769 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7770 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7771 HAS_RANGES_OFFSET for the later processing.
7772 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7773 * symtab.c: Include "addrmap.h"
7774 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7775 Move the psymtab locator into ...
7776 (find_pc_sect_psymtab_closer): ... a new function.
7777
a7f1256d
UW
77782008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7779
7780 * arch-utils.c (gdbarch_update_p): Use default values for
7781 info.abfd and info.target_desc if they are NULL.
7782 (gdbarch_from_bfd): Remove assertion.
7783 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7784 using the current target description.
7785 (gdbarch_info_fill): Do not use default values for info->abfd
7786 and info->target_desc.
7787
b2de52bb
JK
77882008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7789
7790 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7791
515630c5
UW
77922008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7793
7794 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7795 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7796
7797 * regcache.c (read_pc_pid): Remove, replace by ...
7798 (regcache_read_pc): ... this function.
7799 (write_pc_pid): Remove, replace by ...
7800 (regcache_write_pc): ... this function.
7801 (read_pc, write_pc): Update.
7802
7803 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7804 write_pc_pid by regcache_read_pc and regcache_write_pc.
7805 (displaced_step_fixup): Likewise.
7806 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7807 (prepare_to_proceed): Likewise.
7808 (proceed): Likewise.
7809 (adjust_pc_after_break): Likewise.
7810 (handle_inferior_event): Likewise.
7811
7812 * linux-nat.c (cancel_breakpoint): Likewise.
7813 * linux-thread-db.c (check_event): Likewise.
7814 * aix-thread.c (aix_thread_wait): Likewise.
7815 * tracepoint.c (trace_dump_command): Likewise.
7816
ebd3bcc1
JK
78172008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7820 SYMBOL_LOCATION_BATON.
7821
c47ffbe3
VP
78222008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7823
f78bff48
VP
7824 * target.h (struct target_ops): New field to_auxv_parse.
7825 * auxv.c (default_auxv_parse): New, renamed from previous
7826 target_auxv_parse.
7827 (target_auxv_parse): Try to call target method. Fallback to
7828 default_auxv_parse if not found.
7829 * procfs.c (procfs_auxv_parse): New.
7830 (init_procfs_ops): On Solaris, in 64-bit mode, install
7831 procfs_auxv_parse.
c47ffbe3 7832
35076fa0
AN
78332008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7834
7835 * symfile.c (add_symbol_file_command): Use paddress rather than
7836 hex_string to print the address.
7837
5b197912
UW
78382008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7839
7840 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7841 return the null frame ID to terminate the backtrace.
7842
4a7622d1
UW
78432008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7844
7845 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7846 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7847 (SIG_FRAME_PC_OFFSET): Likewise.
7848 (SIG_FRAME_LR_OFFSET): Likewise.
7849 (SIG_FRAME_FP_OFFSET): Likewise.
7850 (rs6000_push_dummy_call): Likewise.
7851 (rs6000_return_value): Likewise.
7852 (rs6000_convert_from_func_ptr_addr): Likewise.
7853 (branch_dest, rs6000_software_single_step): Likewise.
7854 (deal_with_atomic_sequence): Rename to ...
7855 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7856 Do not call branch_dest; inline required parts of that function.
7857 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7858 with SYMBOL_LINKAGE_NAME.
7859 (struct reg, regsize): Delete.
7860 (read_memory_addr): Delete; inline into callers.
7861 (rs6000_skip_prologue): Move after skip_prologue.
7862 (skip_prologue): Remove prototype.
7863 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7864 initialization as if this variable were true. Do not install
7865 ppc64_sysv_abi_adjust_breakpoint_address.
7866
7867 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7868 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7869 and "breakpoint.h".
7870 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7871 (SIG_FRAME_PC_OFFSET): Likewise.
7872 (SIG_FRAME_LR_OFFSET): Likewise.
7873 (SIG_FRAME_FP_OFFSET): Likewise.
7874 (rs6000_push_dummy_call): Likewise.
7875 (rs6000_return_value): Likewise.
7876 (rs6000_convert_from_func_ptr_addr): Likewise.
7877 (branch_dest, rs6000_software_single_step): Likewise. Replace
7878 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7879 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7880 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7881 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7882 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7883
7884 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7885 (AIX_TEXT_SEGMENT_BASE): New macro.
7886 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7887 by AIX_TEXT_SEGMENT_BASE.
7888
7889 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7890 (struct gdbarch_tdep): Remove text_segment_base member.
7891 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7892 ppc64_sysv_abi_adjust_breakpoint_address.
7893
7894 * Makefile.in (rs6000-tdep.o): Update dependencies.
7895 (rs6000-aix-tdep.o): Likewise.
7896
938f5214
TJB
78972008-05-03 Luis Machado <luisgpm@br.ibm.com>
7898 Thiago Jung Bauermann <bauerman@br.ibm.com>
7899
7900 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7901 * doublest.c (convert_typed_floating): Fix typo in comment.
7902 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7903 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7904 * frame.c (frame_unwind_address_in_block): Likewise.
7905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7906 * symtab.h (struct symbol): Likewise.
7907 * tramp-frame.h (struct trad_frame_cache): Likewise.
7908 * value.c (allocate_repeat_value): Likewise.
7909
0b02b92d
UW
79102008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7911
7912 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7913 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7914
d705c43c
PA
79152008-05-03 Pedro Alves <pedro@codesourcery.com>
7916
7917 * parse.c (parse_exp_in_context): Don't override
7918 expression_context_pc if get_selected_block returned a valid
7919 block.
7920
d6350901
DJ
79212008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7922
7923 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7924 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7925 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7926 Delete.
7927 * c-typeprint.c (c_type_print_base): Delete handling of template
7928 instantiations.
7929 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7930 (METHOD_PTR_TO_VOFFSET): Delete.
7931 * defs.h (QUIT_FIXME): Delete.
7932 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7933 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7934 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7935 ninstantiations, and instantiations.
7936 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7937 (TYPE_FN_FIELD_INLINED): Delete.
7938 * srec.h (SREC_BINARY): Delete.
7939 * symtab.c (symbol_init_demangled_name): Delete.
7940 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7941 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7942 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7943 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7944 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7945 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7946 * target.h (enum thread_control_capabilities): Delete tc_switch.
7947 (target_can_switch_threads): Delete.
7948
30510692
DJ
79492008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7950
7951 * Makefile.in (objfiles.o): Update.
7952 * exec.c (exec_set_section_address): Support p->addr != 0.
7953 * objfiles.c (objfile_relocate): Update exec_ops section
7954 addresses.
7955 * symfile.c (place_section): Move exec_set_section_address call...
7956 (default_symfile_offsets): ...to here.
7957
7284e1be
UW
79582008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7959
7960 * Makefile.in (ppc_linux_tdep_h): New macro.
7961 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7962 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7963 (powerpc_e500l_c): Likewise.
7964 (ppc-linux-nat.o): Update dependencies.
7965 (ppc-linux-tdep.o): Update dependencies.
7966 (rs6000-tdep.o): Update dependencies.
7967
7968 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7969 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7970 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7971 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7972 (tdesc_powerpc_e500): Remove.
7973
7974 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7975 and "features/rs6000/powerpc-altivec64.c".
7976 (ppc_supply_reg, ppc_collect_reg): Make global.
7977 (variants): Use tdesc_powerpc_32 for "powerpc" and
7978 tdesc_powerpc_altivec64 for "powerpc64".
7979 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7980
7981 * ppc-linux-tdep.h: New file.
7982
7983 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7984 Include "features/rs6000/powerpc-32l.c".
7985 Include "features/rs6000/powerpc-altivec32l.c".
7986 Include "features/rs6000/powerpc-64l.c".
7987 Include "features/rs6000/powerpc-altivec64l.c".
7988 Include "features/rs6000/powerpc-e500l.c".
7989 (ppc_linux_supply_gregset): New function.
7990 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7991 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7992 (ppc64_linux_gregset): Likewise.
7993 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7994 (ppc_linux_trap_reg_p): New function.
7995 (ppc_linux_write_pc): New function.
7996 (ppc_linux_core_read_description): New function.
7997 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7998 ppc_linux_core_read_description. Install orig_r3 and trap
7999 registers if present in the target description.
8000 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
8001
8002 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
8003 (PT_ORIG_R3, PT_TRAP): Define if necessary.
8004 (ppc_register_u_addr): Handle orig_r3 and trap registers.
8005 (fetch_ppc_registers): Likewise.
8006 (store_ppc_registers): Likewise.
8007 (store_register): Likewise.
8008 (ppc_linux_read_description): Check whether AltiVec is supported.
8009 Check whether inferior is 32-bit or 64-bit. Return the appropriate
8010 Linux target description.
8011
8012 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
8013 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
8014 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
8015 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
8016 rs6000/powerpc-e500. Update -expedite variables accordingly.
8017
8018 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
8019 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
8020 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
8021 * features/rs6000/powerpc-e500.c: Regenerate.
8022 * features/rs6000/powerpc-32.c: Regenerate.
8023 * features/rs6000/powerpc-64.c: Regenerate.
8024
8025 * features/rs6000/power-linux.xml: New file.
8026 * features/rs6000/power64-linux.xml: New file.
8027 * features/rs6000/powerpc-32l.xml: New file.
8028 * features/rs6000/powerpc-altivec32l.xml: New file.
8029 * features/rs6000/powerpc-64l.xml: New file.
8030 * features/rs6000/powerpc-altivec64l.xml: New file.
8031 * features/rs6000/powerpc-e500l.xml: New file.
8032 * features/rs6000/powerpc-32l.c: New (generated) file.
8033 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
8034 * features/rs6000/powerpc-64l.c: New (generated) file.
8035 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
8036 * features/rs6000/powerpc-e500l.xml: New (generated) file.
8037
8038 * regformats/reg-ppc.dat: Remove.
8039 * regformats/reg-ppc64.dat: Remove.
8040 * regformats/rs6000/powerpc-32.dat: Remove.
8041 * regformats/rs6000/powerpc-64.dat: Remove.
8042 * regformats/rs6000/powerpc-e500.dat: Remove.
8043 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
8044 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
8045 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
8046 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
8047 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
8048
063bfe2e
VP
80492008-05-03 Pedro Alves <pedro@codesourcery.com>
8050
8051 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
8052 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
8053 thread_exit observer.
8054 (mi_thread_exit): New.
063bfe2e 8055
f132ba9d
TJB
80562008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8057
8058 * breakpoint.c (create_exception_catchpoint): Remove prototype
8059 for already deleted function.
8060 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
8061 * frame.h (show_stack_frame): Remove prototype.
8062 * stack.c (show_stack_frame): Remove empty, unused function.
8063 * source.c (symtab_to_fullname, print_source_lines): Small fix
8064 in comment.
8065 * value.c (show_values): Update comments to mention "show values"
8066 command instead of "info history".
8067
bccdca4a
UW
80682008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
8069
8070 * linespec.c: Include "target.h".
8071 (minsym_found): Handle minimal symbols pointing to function
8072 descriptors. Use find_function_start_pc.
8073 * minsyms.c (msymbol_objfile): New function.
8074 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
8075 to function descriptors.
8076 * symtab.c (fixup_section): Only use minimal symbol at the same
8077 address to determine section of a symbol.
8078 (find_function_start_pc): New function.
8079 (find_function_start_sal): Use it.
8080 * symtab.h (msymbol_objfile): Add prototype.
8081 (find_function_start_pc): Likewise.
8082 * value.c: Include "objfiles.h".
8083 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 8084 descriptors.
bccdca4a
UW
8085 * Makefile.in (linespec.o): Update dependencies.
8086 (value.o): Likewise.
8087
de4d072f
JB
80882008-05-02 Joel Brobecker <brobecker@adacore.com>
8089
8090 * ada-lang.c (unwrap_value): Handle the case where the "F" field
8091 inside a PAD type is a bitfield.
8092
93d4208d
UW
80932008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
8094
8095 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
8096 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
8097 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
8098 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
8099 Allow typedefs when checking for function pointer arguments.
8100 Right-align small structs passed on the stack.
8101 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
8102 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
8103 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
8104
60c5725c
DJ
81052008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8106
8107 * Makefile.in (arm-tdep.o): Update.
8108 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
8109 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
8110 (arm_pc_is_thumb): Use mapping symbols.
8111 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
8112 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
8113 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
8114 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
8115 * gdbarch.sh: Add record_special_symbol.
8116 * gdbarch.c, gdbarch.h: Regenerated.
8117 * objfiles.c (struct objfile_data): Add cleanup member.
8118 (register_objfile_data_with_cleanup): New function, from
8119 register_objfile_data.
8120 (register_objfile_data): Use it.
8121 (objfile_free_data): Call clear_objfile_data.
8122 (clear_objfile_data): Call cleanup functions.
8123 * objfiles.h (register_objfile_data_with_cleanup): Declare.
8124
574dffa2
DJ
81252008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8126
8127 * objfiles.c (init_entry_point_info): Handle shared libraries.
8128
2c404490
DJ
81292008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8130
8131 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
8132 lowest_pc.
8133
237fc4c9
PA
81342008-05-02 Jim Blandy <jimb@codesourcery.com>
8135 Pedro Alves <pedro@codesourcery.com>
8136
8137 Implement displaced stepping.
8138
8139 * gdbarch.sh (max_insn_length): New 'variable'.
8140 (displaced_step_copy, displaced_step_fixup)
8141 (displaced_step_free_closure, displaced_step_location): New
8142 functions.
8143 (struct displaced_step_closure): Add forward declaration.
8144 * gdbarch.c, gdbarch.h: Regenerated.
8145
8146 * arch-utils.c: #include "objfiles.h".
8147 (simple_displaced_step_copy_insn)
8148 (simple_displaced_step_free_closure)
8149 (displaced_step_at_entry_point): New functions.
8150 * arch-utils.h (simple_displaced_step_copy_insn)
8151 (simple_displaced_step_free_closure)
8152 (displaced_step_at_entry_point): New prototypes.
8153
8154 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
8155 (I386_MAX_MATCHED_INSN_LEN): ... this.
8156 (i386_absolute_jmp_p, i386_absolute_call_p)
8157 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
8158 (i386_displaced_step_fixup): New functions.
8159 (struct i386_insn, i386_match_insn): Update.
8160 (i386_gdbarch_init): Set gdbarch_max_insn_length.
8161 * i386-tdep.h (I386_MAX_INSN_LEN): New.
8162 (i386_displaced_step_fixup): New prototype.
8163 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
8164 Register gdbarch_displaced_step_copy,
8165 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
8166 and gdbarch_displaced_step_location functions.
8167
8168 * infrun.c (debug_displaced): New variable.
8169 (show_debug_displaced): New function.
8170 (struct displaced_step_request): New struct.
8171 (displaced_step_request_queue, displaced_step_ptid)
8172 (displaced_step_gdbarch, displaced_step_closure)
8173 (displaced_step_original, displaced_step_copy)
8174 (displaced_step_saved_copy, can_use_displaced_stepping): New
8175 variables.
8176 (show_can_use_displaced_stepping, use_displaced_stepping)
8177 (displaced_step_clear, cleanup_displaced_step_closure)
8178 (displaced_step_dump_bytes, displaced_step_prepare)
8179 (displaced_step_clear_cleanup, write_memory_ptid)
8180 (displaced_step_fixup): New functions.
8181 (resume): Call displaced_step_prepare.
8182 (proceed): Call read_pc once, and remember the value. If using
8183 displaced stepping, don't remove breakpoints.
8184 (handle_inferior_event): Call displaced_step_fixup. Add some
8185 debugging output. When we try to step over a breakpoint, but get
8186 a signal to deliver to the thread instead, ensure the step-resume
8187 breakpoint is actually inserted. If a thread hop is needed, and
8188 displaced stepping is enabled, don't remove breakpoints.
8189 (init_wait_for_inferior): Call displaced_step_clear.
8190 (_initialize_infrun): Add "set debug displaced" command. Add
8191 "maint set can-use-displaced-stepping" command. Clear
8192 displaced_step_ptid.
8193 * inferior.h (debug_displaced): Declare variable.
8194 (displaced_step_dump_bytes): Declare function.
8195
8196 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
8197 dependencies.
8198
0428b8f5
DJ
81992008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8200
8201 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
8202 (arm_force_mode_string, arm_show_fallback_mode)
8203 (arm_show_force_mode): New.
8204 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
8205 arm_frame_is_thumb.
8206 (_initialize_arm_tdep): Add "set arm fallback-mode"
8207 and "set arm force-mode".
8208 * NEWS: Document new commands.
8209
d01a8610
AS
82102008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
8211
8212 * main.h (batch_silent): Declare.
8213 * event-top.c: Include main.h.
8214 (gdb_setup_readline): Remove extern batch_silent declaration.
8215 * infrun.c (normal_stop): Don't print source location when running in
8216 --batch-silent mode.
8217 * Makefile.in (event-top.o): Add main.h dependency.
8218
5009afc5
AS
82192008-05-02 Andreas Schwab <schwab@suse.de>
8220
8221 * target.h (struct target_ops): Add
8222 to_watchpoint_addr_within_range.
8223 (target_watchpoint_addr_within_range): New function.
8224 * target.c (update_current_target): Inherit
8225 to_watchpoint_addr_within_range, defaulting to
8226 default_watchpoint_addr_within_range.
8227 (default_watchpoint_addr_within_range): New function.
8228 (debug_to_watchpoint_addr_within_range): New function.
8229 (setup_target_debug): Set to_watchpoint_addr_within_range.
8230 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
8231 New function.
8232 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
8233 * breakpoint.c (watchpoints_triggered): Use
8234 target_watchpoint_addr_within_range.
8235
a15c5c83
PA
82362008-05-01 Pedro Alves <pedro@codesourcery.com>
8237
8238 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
8239 (i[34567]86-*-dicos*, x86_64-*-dicos*):
8240 Set gdb_osabi to GDB_OSABI_DICOS.
8241
8242 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
8243 * osabi.c (gdb_osabi_name): Add "DICOS".
8244
8245 * i386-dicos-tdep.c: New file.
8246
8247 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
8248 (ALLDEPFILES): Add i386-dicos-tdep.c.
8249 (i386-dicos-tdep.o): New rule.
8250
728c8f58
PA
82512008-05-01 Pedro Alves <pedro@codesourcery.com>
8252
8253 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
8254 and register the fork's PTID as a thread.
8255
604133b5
AR
82562008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8257
8258 PR gdb/1665
8259 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
8260 assign its value to the breakpoint created.
8261 (create_breakpoints): Add breakpoint_ops argument and pass it
8262 to create_breakpoint call.
8263 (break_command_really): Add breakpoint_ops argument and pass/assign
8264 appropriately.
8265 (break_command_1): Pass NULL as ops argument.
8266 (set_breakpoint): Pass NULL as ops argument.
8267 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
8268 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
8269 catch and throw catchpoints.
5009afc5 8270
1f906a60 82712008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
8272
8273 PR gdb/2343
8274 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
8275 translate signal numeric value from the target to GDB's enum
8276 target_signal.
8277 * gdbarch.c, gdbarch.h: Regenerated.
8278 * gdbarch.sh: Added two new functions target_signal_from_host and
8279 target_signal_to_host.
680b56ce 8280 * target.h (default_target_signal_from_host,
1cded358
AR
8281 default_target_signal_to_host): New functions - declarations.
8282 * signals/signals.c (struct gdbarch): New declaration.
8283 (default_target_signal_to_host, default_target_signal_from_host): New
8284 functions.
8285
ed5e9466
DJ
82862008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8287 Pedro Alves <pedro@codesourcery.com>
8288
8289 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
8290 Johnston <jjohnstn@redhat.com>.
8291
8292 * NEWS: Mention attach to stopped process fix.
8293 * infcmd.c (detach_command, disconnect_command): Discard the thread
8294 list.
8295 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
8296 attaching. Use signal_stop_state.
8297 (signal_stop_state): Check stop_soon.
8298 * linux-nat.c (kill_lwp): Declare earlier.
8299 (pid_is_stopped, linux_nat_post_attach_wait): New.
8300 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
8301 comments.
8302 (linux_nat_attach): Use linux_nat_post_attach_wait.
8303 (detach_callback, linux_nat_detach): Improve handling for signalled
8304 processes.
8305 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
8306 from the process ID.
8307 * Makefile.in (infcmd.o): Update.
8308
b39cc962
DJ
83092008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8310
8311 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
8312 * arm-tdep.c (arm_frame_is_thumb): New.
8313 (arm_pc_is_thumb): Clarify comment.
8314 (thumb_analyze_prologue): Remove PC special case.
8315 (thumb_scan_prologue): Take a block_addr argument. Use it for
8316 find_pc_partial_function. Remove unused variables.
8317 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
8318 for find_pc_partial_function. Remove PC special case.
8319 (arm_prologue_prev_register): Add special handling for PC and CPSR.
8320 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
8321 (arm_get_next_pc): Use arm_frame_is_thumb.
8322 (arm_write_pc): Use CPSR_T instead of 0x20.
8323 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
8324 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
8325 (CPSR_T): Define.
8326 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
8327 DWARF2_FRAME_REG_FN.
8328 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
8329 DWARF2_FRAME_REG_FN.
8330 (struct dwarf2_frame_state_reg): Add FN to loc union.
8331
944f08ab
JB
83322008-05-01 Nick Roberts <nickrob@snap.net.nz>
8333
8334 * exec.c (print_section_info): Add missing '\n'.
8335
cfc01461
VP
83362008-05-01 Vladimir Prus <vladimir@codesourcery.com>
8337
8338 * thread.c (add_thread): Move observer call to ...
680b56ce 8339 (add_thread_silent): ... here.
cfc01461 8340
1af5d7ce
UW
83412008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8342
8343 * rs6000-tdep.c: Update for unwinder changes.
8344 * ppcobsd-tdep.c: Likewise.
8345
f089c433
UW
83462008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8347
8348 * s390-tdep.c: Update for unwinder changes.
8349
8d998b8f
UW
83502008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8351
8352 * spu-tdep.c: Update for unwinder changes.
8353
5366653e
DJ
83542008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8355
8356 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
8357 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
8358 sparc64-linux-tdep.c: Update for unwinder changes.
8359
b8a22b94
DJ
83602008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8361
8362 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
8363 for unwinder changes.
8364 * mips-tdep.c: Likewise.
8365 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
8366 raw one.
8367
a262aec2
DJ
83682008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8369
8370 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
8371 unwinder changes.
8372
10458914
DJ
83732008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8374
8375 Update i386 and amd64 ports for unwinder changes.
8376
8377 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
8378 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
8379 (amd64_frame_unwind): Use default_frame_sniffer.
8380 (amd64_frame_sniffer): Delete.
8381 (amd64_sigtramp_frame_cache): Expect this_frame.
8382 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
8383 (amd64_sigtramp_frame_sniffer): Update signature.
8384 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
8385 (amd64_frame_base_address): Expect this_frame.
8386 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
8387 this_frame.
8388 (amd64_init_abi): Use set_gdbarch_dummy_id and
8389 frame_unwind_append_unwinder.
8390 * i386-tdep.c (i386_frame_cache): Expect this_frame.
8391 (i386_frame_this_id, i386_frame_prev_register): Update signature.
8392 (i386_frame_unwind): Use default_frame_sniffer.
8393 (i386_frame_sniffer): Delete.
8394 (i386_sigtramp_frame_cache): Expect this_frame.
8395 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
8396 (i386_sigtramp_frame_sniffer): Update signature.
8397 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
8398 (i386_frame_base_address): Update signature.
8399 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
8400 (i386_push_dummy_call): Update comment.
8401 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
8402 Expect this_frame.
8403 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
8404 and frame_unwind_append_unwinder.
8405 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
8406 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
8407 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
8408 i386nbsd-tdep.c: Update for unwinder changes.
8409
25492ce3
DJ
84102008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8411
8412 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
8413 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
8414 this_frame.
8415 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
8416 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
8417 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
8418 signature.
8419 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
8420 this_frame.
8421 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8422 Update signature.
8423 * tramp-frame.h (struct tramp_frame): Update signature of init.
8424 * Makefile.in (trad-frame.o): Update.
8425
4a4e5149
DJ
84262008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8427
8428 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8429 (execute_stack_op): Put this_frame in the baton.
8430 (execute_cfa_program): Take this_frame.
8431 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8432 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8433 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8434 (dwarf2_frame_this_id): Adjust to work on this_frame.
8435 (dwarf2_signal_frame_this_id): Delete.
8436 (dwarf2_frame_prev_register): Update signature. Use new frame
8437 unwind methods.
8438 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8439 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8440 dwarf2_frame_sniffer.
8441 (dwarf2_append_unwinders): New.
8442 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8443 this_frame.
8444 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8445 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8446 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8447 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8448 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8449 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8450 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8451 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8452 (dwarf2_append_unwinders): Declare.
8453 (dwarf2_frame_base_sniffer): Update declaration.
8454 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8455 this_frame.
8456
669fac23
DJ
84572008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8458
8459 Convert frame unwinders to use the current frame and
8460 "struct value".
8461
8462 * frame.c (frame_debug): Make global.
8463 (get_frame_id): Pass this frame to unwinder routines.
8464 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8465 (do_frame_register_read): Do not discard the return value of
8466 frame_register_read.
8467 (frame_register_unwind): Remove debug messages. Use
8468 frame_unwind_register_value.
8469 (frame_unwind_register_value, get_frame_register_value): New
8470 functions.
8471 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8472 (get_frame_args_address, get_frame_type): Pass this frame to
8473 unwinder routines.
8474 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8475 functions.
8476 * frame.h: Update comments.
8477 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8478 (frame_prepare_for_sniffer): Declare.
8479 * frame-unwind.h: Update comments and parameter names.
8480 (default_frame_sniffer): Declare.
8481 (frame_prev_register_ftype): Return a struct value *.
8482 (struct frame_unwind): Remove prev_pc member.
8483 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8484 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8485 (frame_unwind_got_register, frame_unwind_got_memory)
8486 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8487 * frame-base.h: Update comments and parameter names.
8488 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8489 if necessary. Add debugging output.
8490 * sentinel-frame.c (sentinel_frame_prev_register)
8491 (sentinel_frame_this_id): Update for new signature.
8492 (sentinel_frame_prev_pc): Delete.
8493 (sentinel_frame_unwinder): Remove prev_pc.
8494 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8495 prev_pc.
8496 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8497 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8498 (frame_unwind_append_sniffer): Delete.
8499 (frame_unwind_append_unwinder): New function.
8500 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8501 from unwinders. Use frame_prepare_for_sniffer.
8502 (default_frame_sniffer, frame_unwind_got_optimized)
8503 (frame_unwind_got_register, frame_unwind_got_memory)
8504 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8505 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8506 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8507 signature.
8508 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8509 * gdbarch.c, gdbarch.c: Regenerated.
8510 * frame-base.c (default_frame_base_address)
8511 (default_frame_locals_address, default_frame_args_address): Update
8512 for new signature.
8513 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8514 * infcall.c (call_function_by_hand): Update comments.
8515 * Makefile.in (frame-unwind.o): Update dependencies.
8516
9214ee5f
DJ
85172008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8518
8519 * ada-lang.c (ada_value_primitive_packed_val): Only check
8520 value_lazy for memory lvals.
8521 * findvar.c (value_of_register_lazy): New function.
8522 (locate_var_value): Only check value_lazy for memory lvals.
8523 * valarith.c (value_subscripted_rvalue): Likewise.
8524 * valops.c (value_fetch_lazy): Handle both memory and register
8525 lvals.
8526 (search_struct_field, value_slice): Only check value_lazy for memory
8527 lvals.
8528 * value.c (struct value): Update comment for lazy.
8529 (value_primitive_field): Only check value_lazy for memory lvals.
8530 * value.h (value_lazy): Update comment.
8531 (value_of_register_lazy): Declare.
8532
939643d7
DJ
85332008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8534
8535 * corefile.c (reopen_exec_file): Close any open files.
8536
1de34ab7
JB
85372008-04-29 Joel Brobecker <brobecker@adacore.com>
8538
8539 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8540 show_memory_breakpoints to 1 while reading the instruction bundle.
8541
ea42b34a
JB
85422008-04-29 Joel Brobecker <brobecker@adacore.com>
8543
8544 * gdbarch.sh: Document the return_value method. Explain that
8545 the FUNCTYPE parameter might be NULL.
8546 * gdbarch.h: Regenerated.
8547 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8548 type when calling using_struct_return, as this is unnecessary
8549 on this target.
8550
a0fe373c
JB
85512008-04-28 Joel Brobecker <brobecker@adacore.com>
8552
8553 * terminal.h (create_tty_session): Fix return type.
8554
c6446539
VP
85552008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8556
8557 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8558
2f069f6f
JB
85592008-04-26 Joel Brobecker <brobecker@adacore.com>
8560
8561 * breakpoint.c (condition_command, commands_from_control_command)
8562 (break_command_really): Minor reformatting.
8563
93b5768b
PA
85642008-04-25 Pedro Alves <pedro@codesourcery.com>
8565
8566 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8567
436675d3
PA
85682008-04-25 Pedro Alves <pedro@codesourcery.com>
8569
8570 * amd64-tdep.c (amd64_get_longjmp_target): New.
8571 (amd64_init_abi): Register amd64_get_longjmp_target as
8572 gdbarch_get_longjmp_target callback.
8573 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8574
78b6a731
PA
85752008-04-25 Pedro Alves <pedro@codesourcery.com>
8576
8577 * breakpoint.h (enum bpstat_what_main_action): Delete
8578 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8579
8580 * breakpoint.c (clrs): Delete.
8581 (bpstat_what): Update table.
8582
8583 * infrun.c (handle_inferior_event): Remove
8584 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8585
9e22b03a
VP
85862008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8587
8588 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8589 Adjust all prototypes using mi_cmd_args_ftype to use
8590 mi_cmd_argv_ftype.
8591 (struct mi_cmd): Remove the args_func field.
8592 * mi/mi-cmds.c: Don't provide value for the args_func field.
8593 * mi/mi-main.c (mi_execute_async_cli_command)
8594 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8595 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8596 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8597 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8598 (mi_cmd_target_download): Adjust.
8599 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8600 (mi_cmd_execute): Do not check for args_func.
8601 (mi_execute_async_cli_command): Adjust.
8602 * mi/mi-parse.c: Don't check for args_func.
8603
721c02de 86042008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8605
680b56ce
AS
8606 * breakpoint.c (bpstat_check_location)
8607 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8608 New, extracted from bpstat_stop_status.
8609 (bpstat_stop_status): Use the above.
18a18393
VP
8610
86112008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8612
680b56ce
AS
8613 * mi/mi-main.c (last_async_command): Rename to current_token.
8614 (previous_async_command): Remove.
8615 (mi_cmd_gdb_exit): Adjust.
8616 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8617 (mi_cmd_target_select): Adjust.
8618 (mi_cmd_execute): Don't set previous_async_command. Free token
8619 here even in async mode.
8620 (mi_execute_async_cli_command): Adjust.
8621 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8622 token.
8623 (mi_load_progress): Adjust.
721c02de 8624
f13468d9
VP
86252008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8626
680b56ce
AS
8627 * infcmd.c (step_1_continuation): Always disable longjmp
8628 breakpoint if we're not going to do another step.
f13468d9 8629
f107f563
VP
86302008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8631
8632 exec_cleanup murder.
8633 * breakpoint.c (until_break_command_continuation): Add
8634 the 'error' parameter. Directly delete the breakoint as
8635 opposed to running cleanups.
8636 (until_break_command): Install continuation only
8637 after starting the target. Don't use exec cleanups,
8638 use ordinary cleanups. Discard cleanups is successfully
8639 started the target in async mode.
8640 (make_cleanup_delete_breakpoint): Remove.
8641 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8642 declaration.
8643 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8644 declarations.
8645 (struct continations): Add the 'error' parameter to the
8646 continuation_hook field.
8647 (add_continuation, do_all_continuations)
8648 (add_intermediate_continuation)
8649 (do_all_intermediate_continuations): Add the 'error' parameter.
8650 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8651 * inf-loop.c (inferior_event_handler): Instead of calling
8652 discard_all_continuations, use do_all_continuations with 1 as
8653 'error' parameter. Pass 0 as 'error' parameter in existing uses
8654 of discard_all_continuations.
8655 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8656 cleanups.
8657 (step_once): Install continuation only after resuming the target.
8658 (step_1_continuation): Disable longjmp breakpoint on error.
8659 (finish_command_continuation): Add the error parameter. Delete
8660 the finish breakpoint directly, do not use cleanups.
8661 (finish_command): Do not use exec_cleanups. Always setup
8662 continuation. For sync case, immediately run them.
8663 (attach_command_continuation): Add the error parameter.
8664 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8665 remove step_resume_breakpoint -- adjust delete it directly.
8666 * interps.c (interp_set): Adjust call to do_all_continations.
8667 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8668 do exec cleanups.
8669 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8670 cleanups.
8671 (mi_cmd_execute): Do not use exec_cleanup.
8672 (mi_execute_async_cli_command): Simplify the string concatenation
8673 logic. Do no use exec cleanup.
8674 (mi_exec_async_cli_cmd_continuation): New parameter error.
8675 Free last_async_command.
8676 * top.c (command_line_handler_continuation): New parameter error.
8677 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8678 (do_exec_cleanups): Remove.
8679 (add_continuation, do_all_continations)
8680 (add_intermediate_continuation)
8681 (do_all_intermediate_continuations): New parameter error.
8682
74960c60
VP
86832008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8684
8685 * breakpoint.h (bp_location_p): New typedef.
8686 Register a vector of bp_location_p.
8687 * breakpoint.c (always_inserted_mode)
8688 (show_always_inserted_mode): New.
8689 (unlink_locations_from_global_list): Remove.
8690 (update_global_location_list)
8691 (update_global_location_list_nothrow): New.
8692 (update_watchpoint): Don't free locations.
8693 (should_insert_location): New.
8694 (insert_bp_location): Use should_insert_location.
8695 (insert_breakpoint_locations): Copied from
8696 insert_breakpoints.
8697 (insert_breakpoint): Use insert_breakpoint_locations.
8698 (bpstat_stop_status): Call update_global_location_list
8699 when disabling breakpoint.
8700 (allocate_bp_location): Don't add to bp_location_chain.
8701 (set_raw_breakpoint)
8702 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8703 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8704 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8705 (set_longjmp_resume_breakpoint)
8706 (enable_watchpoints_after_interactive_call_stop)
8707 (disable_watchpoints_before_interactive_call_start)
8708 (create_internal_breakpoint)
8709 (create_fork_vfork_event_catchpoint)
8710 (create_exec_event_catchpoint, set_momentary_breakpoint)
8711 (create_breakpoints, break_command_1, watch_command_1)
8712 (create_exception_catchpoint)
8713 (handle_gnu_v3_exceptions)
8714 (disable_breakpoint, breakpoint_re_set_one)
8715 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8716 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8717 Call update_global_location_list.
8718 (delete_breakpoint): Don't remove locations and don't
8719 try to reinsert them. Call update_global_location_list.
8720 (update_breakpoint_locations): Likewise.
8721 (restore_always_inserted_mode): New.
8722 (update_breakpoints_after_exec): Temporary disable
8723 always inserted mode.
8724 * Makefile.in: Update dependencies.
8725
8726 * infrun.c (proceed): Remove breakpoints while stepping
8727 over breakpoint.
8728 (handle_inferior_event): Don't remove or insert
8729 breakpoints.
8730 * linux-fork.c (checkpoint_command): Remove breakpoints
8731 before fork and insert after.
8732 (linux_fork_context): Remove breakpoints before switch
8733 and insert after.
8734 * target.c (target_disconnect, target_detach): Remove
8735 breakpoints from target.
8736
680b56ce 8737
d24317b4
VP
87382008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8739
8740 * breakpoint.c (print_one_breakpoint_location): In MI
8741 mode, report the location string the breakpoint was
8742 originally created with.
8743
ee967b5f
MG
87442008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8745
8746 * Makefile.in (xtensa-tdep.o): Update dependencies.
8747 * configure.tgt (xtensa*): Update dependencies.
8748 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8749 Local variable areg renamed to arreg.
8750 (areg_number): New function.
8751 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8752 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8753 replaced by arreg_number.
8754 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8755 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8756 (xtensa_scan_prologue): New function.
8757 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8758 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8759 value based on prologue analysis. Fix the bugs preventing WS and
8760 AR4-AR7/A11 registers from getting right values for intermediate frames,
8761 whose registers have been already spilled.
8762 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8763 and arreg_number appropriately.
8764 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8765 svr4_ilp32_fetch_link_map_offsets.
8766
09d71d23
AS
87672008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8768
8769 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8770 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8771
fdc59709
PB
87722008-04-23 Paolo Bonzini <bonzini@gnu.org>
8773
680b56ce
AS
8774 * acinclude.m4: Add override.m4.
8775 * configure: Regenerate.
fdc59709 8776
0bcd0149
JK
87772008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8778
8779 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8780 initialized with a trailing space now. Use PROMPT_ARG of
8781 COMMAND_LINE_INPUT instead of printing it ourselves.
8782
88d8a8e0
JB
87832008-04-22 Joel Brobecker <brobecker@adacore.com>
8784
8785 * NEWS: Document support for 64-bit core file.
8786
c055b101
CV
87872008-04-22 Corinna Vinschen <vinschen@redhat.com>
8788
8789 * NEWS: Add information on calling convention and new SH CLI options.
8790
8791 * sh-tdep.c (sh_cc_gcc): New static string.
8792 (sh_cc_renesas): Ditto.
8793 (sh_cc_enum): New static string array.
8794 (sh_active_calling_convention): New static string pointer denoting
8795 active user chosen ABI.
8796 (sh_is_renesas_calling_convention): New function to return function
8797 specific ABI, or user choice if necessary.
8798 (sh_use_struct_convention): Rename first argument and turn around its
8799 meaning. Check for renesas ABI and return accordingly.
8800 (sh_use_struct_convention_nofpu): New function.
8801 (sh_next_flt_argreg): Get function type as third parameter. Check
8802 for renesas ABI and choose floating registers accordingly.
8803 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8804 struct return slot accordingly.
8805 (sh_push_dummy_call_nofpu): Ditto.
8806 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8807 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8808 (sh_return_value_fpu): Evaluate ABI and give to
8809 sh_use_struct_convention.
8810 (show_sh_command): New function.
8811 (set_sh_command): Ditto.
8812 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8813 CLI command.
8814
8815 * gdbarch.sh (return_value): Add func_type argument.
8816 * gdbarch.c: Regenerate.
8817 * gdbarch.h: Ditto.
8818 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8819 val_type so as not to collide with value_type function. Call
8820 using_struct_return with additional function type argument.
8821 * infcall.c (call_function_by_hand): Call using_struct_return and
8822 gdbarch_return_value with additional function type argument.
8823 * infcmd.c (print_return_value): Take addition func_type argument.
8824 Call gdbarch_return_value with additional function type argument.
8825 (finish_command_continuation): Call print_return_value with additional
8826 function type argument.
8827 (finish_command): Ditto.
8828 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8829 additional function type argument.
8830 * stack.c (return_command): Call using_struct_return and
8831 gdbarch_return_value with additional function type argument.
8832 * value.c (using_struct_return): Take additional function type argument.
8833 * value.h (using_struct_return): Accommodate declaration.
8834 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8835 * amd64-tdep.c (amd64_return_value): Ditto.
8836 * arm-tdep.c (arm_return_value): Ditto.
8837 * avr-tdep.c (avr_return_value): Ditto.
8838 * cris-tdep.c (cris_return_value): Ditto.
8839 * frv-tdep.c (frv_return_value): Ditto.
8840 * h8300-tdep.c (h8300_return_value): Ditto.
8841 (h8300h_return_value): Ditto.
8842 * hppa-tdep.c (hppa32_return_value): Ditto.
8843 (hppa64_return_value): Ditto.
8844 * i386-tdep.c (i386_return_value): Ditto.
8845 * ia64-tdep.c (ia64_return_value): Ditto.
8846 * iq2000-tdep.c (iq2000_return_value): Ditto.
8847 * m32c-tdep.c (m32c_return_value): Ditto.
8848 * m32r-tdep.c (m32r_return_value): Ditto.
8849 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8850 * m68k-tdep.c (m68k_return_value): Ditto.
8851 (m68k_svr4_return_value): Ditto.
8852 * m88k-tdep.c (m88k_return_value): Ditto.
8853 * mep-tdep.c (mep_return_value): Ditto.
8854 * mips-tdep.c (mips_eabi_return_value): Ditto.
8855 (mips_n32n64_return_value): Ditto.
8856 (mips_o32_return_value): Ditto.
8857 (mips_o64_return_value): Ditto.
8858 * mn10300-tdep.c (mn10300_return_value): Ditto.
8859 * mt-tdep.c (mt_return_value): Ditto.
8860 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8861 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8862 (ppc_sysv_abi_broken_return_value): Ditto.
8863 (ppc64_sysv_abi_return_value): Ditto.
8864 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8865 (ppc_sysv_abi_broken_return_value): Ditto.
8866 (ppc64_sysv_abi_return_value): Ditto.
8867 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8868 * rs6000-tdep.c (rs6000_return_value): Ditto.
8869 * s390-tdep.c (s390_return_value): Ditto.
8870 * score-tdep.c (score_return_value): Ditto.
8871 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8872 (sh_return_value_fpu): Ditto.
8873 * sh64-tdep.c (sh64_return_value): Ditto.
8874 * sparc-tdep.c (sparc32_return_value): Ditto.
8875 * sparc64-tdep.c (sparc64_return_value): Ditto.
8876 * spu-tdep.c (spu_return_value): Ditto.
8877 * v850-tdep.c (v850_return_value): Ditto.
8878 * vax-tdep.c (vax_return_value): Ditto.
8879 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8880 * xtensa-tdep.c (xtensa_return_value): Ditto.
8881
8882 * gdbtypes.h (struct type): Add calling_convention member.
8883 * dwarf2read.c (read_subroutine_type): Add calling convention read
8884 from DW_AT_calling_convention attribute to function type.
8885
9eec4d1e
MD
88862008-04-22 Markus Deuling <deuling@de.ibm.com>
8887
8888 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8889 multi_f77_subscript to support values from registers.
8890 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8891 * value.h (value_subscripted_rvalue): Add prototype.
8892
8893 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8894 Fix output.
8895 * f-valprint.c (f_val_print): Likewise.
8896
ef72380d
CS
88972008-04-21 Craig Silverstein <csilvers@google.com>
8898
8899 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8900 !HAVE_ZLIB_H case.
8901
ff8e85c3
PA
89022008-04-21 Pedro Alves <pedro@codesourcery.com>
8903
8904 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8905 section is not a code section.
8906
31fffb02
CS
89072008-04-19 Craig Silverstein <csilvers@google.com>
8908
8909 * NEWS: Add information on compressed debug sections.
8910
8e91f023
VP
89112008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8912
8913 * mi/mi-cmd-var.c (varobj_update_one): Print new
8914 value for variable objects that changed type.
8915
603ba1de
VP
89162008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8917
8918 * varobj.c (varobj_invalidate): Don't touch floating
8919 varobjs.
8920
7fc830e2
MK
89212008-04-19 Mark Kettenis <kettenis@gnu.org>
8922
8923 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8924 (multiple_symbols_cancel): Remove extra const.
8925 * symtab.h: Likewise.
8926
bcbf8b68
NR
89272008-04-19 Nick Roberts <nickrob@snap.net.nz>
8928
8929 * interps.c (top_level_interpreter): Rename static variable...
8930 (top_level_interpreter_ptr): ...to this.
8931 (top_level_interpreter): New function.
8932
8933 * interps.h: New extern for top_level_interpreter.
8934
8935 * linespec.c: Include interps.h and mi/mi-cmds.h.
8936 (decode_line_2): When using MI, always set all breakpoints in menu.
8937
8938 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8939
31fffb02 89402008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8941
8942 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8943 * config.in, configure: Regenerate.
8944 * dwarf2read.c: Include zlib.h if present.
8945 Modified *_SECTION macros.
8946 (section_is_p): New.
8947 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8948 (dwarf2_resize_section): New.
8949 to determine whether a given section has a given name.
8950 (zlib_decompress_section): New.
8951 (dwarf2_read_section): Read the compressed section if present
8952 in the binary.
8953 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8954
a03b3a97
TJB
89552008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8956
8957 * defs.h (exec_set_section_offsets): Remove prototype.
8958 * exec.c (exec_set_section_offsets): Remove function.
8959
9e386756
JB
89602008-04-18 Joel Brobecker <brobecker@adacore.com>
8961
8962 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8963 in the search for the matching symbol.
8964
2ec93238
MK
89652008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8966
8967 * breakpoint.c (update_watchpoint): Always reparse
8968 condition.
8969
e9bbd7c5
JB
89702008-04-17 Joel Brobecker <brobecker@adacore.com>
8971
8972 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8973 the breakpoint address only once.
8974
475bbd17
JB
89752008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8976
8977 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8978 rather than a hard-coded architecture, for xcoff executables.
8979
86991504
DE
89802008-04-17 Doug Evans <dje@google.com>
8981
4584e32e
DE
8982 * buildsym.c (watch_main_source_file_lossage): New fn.
8983 (end_symtab): Call it.
8984
86991504
DE
8985 * source.c (find_and_open_source): Add some comments clarifying
8986 handling of FULLNAME argument. Make static. Remove pointless
8987 xstrdup/xfree.
8988
0a320680
PA
89892008-04-17 Pedro Alves <pedro@codesourcery.com>
8990
8991 * inf-loop.c (inferior_event_handler): Also run the intermediate
8992 continuations in the INF_EXEC_COMPLETE case.
8993
700b53b1
TT
89942008-04-16 Tom Tromey <tromey@redhat.com>
8995
8996 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8997 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8998 * cli/cli-decode.c (set_cmd_async_ok): New function.
8999 (get_cmd_async_ok): New function.
9000 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
9001 "show" as async-ok.
9002 * top.c (execute_command): Use get_cmd_async_ok.
9003 * infcmd.c: Include cli/cli-decode.h.
9004 (_initialize_infcmd): Mark "interrupt" as async-ok.
9005 * Makefile.in (infcmd.o): Depend on cli_decode_h.
9006
dacec2a8
DJ
90072008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
9008
9009 PR gdb/2445
9010 * exec.c: Correct "arch-utils.h" include.
9011
1f906a60 90122008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
9013
9014 PR gdb/2424
9015 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
9016 to allow printing to 'see' real reason of stop. This fixes PR 2424.
9017 * breakpoint.c (bpdisp_texst): New function. The function takes over
9018 the role of bpstats static array in print_one_breakpoint_location.
9019 (print_it_typical): Print "Temporary breakpoint" instead
9020 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
9021 protocols, print disp field.
9022 (print_one_breakpoint_location): Removed bpdisps static definition.
9023 Call new bpstat_text function to get value for 'disp' field.
9024 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
9025
4d7b71aa
DJ
90262008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
9027
9028 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
9029 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
9030 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
9031 * gnulib/Makefile.in: Regenerate.
9032
aa11fd3f
DJ
90332008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
9034
9035 * Makefile.in (GNULIB_H): New. Trigger all-lib.
9036 (defs_h): Use $(GNULIB_H).
9037 (all-lib): Depend on gnulib/Makefile.
9038 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
9039 * config.in, gnulib/Makefile.in: Regenerated.
9040
e28b3332
DJ
90412008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
9042
9043 * Makefile.in (LIBGNU, INCGNU): Define.
9044 (INTERNAL_CFLAGS_BASE): Add INCGNU.
9045 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
9046 (CLEANDIRS): New.
9047 ($(LIBGNU), all-lib): New rules.
9048 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
9049 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
9050 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
9051 * gnulib: New directory, from gnulib-tool.
9052 * configure, aclocal.m4: Regenerated.
9053
e3bc4218
DJ
90542008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
9055
9056 * linux-thread-db.c (have_threads_callback): Check thread->private.
9057
fcacd99f
VP
90582008-04-13 Nick Roberts <nickrob@snap.net.nz>
9059 Vladimir Prus <vladimir@codesourcery.com>
9060
9061 Fix @-varobjs.
680b56ce
AS
9062 * varobj.c (value_of_root): Update the expression for
9063 floating varobjs.
9064 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
9065 report that.
fcacd99f 9066
de051565
MK
90672008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
9068
9069 * mi/mi-cmd-var.c: Include "mi-getopt.h".
9070 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
9071 (mi_cmd_var_set_format): Use new mi_parse_format.
9072 (mi_cmd_var_evaluate_expression): Support for -f option to specify
9073 format.
9074 * Makefile.in (mi-cmd-var.o): Update dependencies.
9075
9076 * varobj.h (varobj_get_formatted_value): Declare.
9077 * varobj.c (my_value_of_variable): Added format parameter.
9078 (cplus_value_of_variable): Likewise.
9079 (java_value_of_variable): Likewise.
9080 (c_value_of_variable): Likewise. Evaluate expression based
9081 on format parameter.
9082 (struct language_specific): Add format parameter to function member
9083 *value_of_variable.
9084 (varobj_get_formatted_value): New.
9085 (varobj_get_value): Added format parameter to method call.
680b56ce 9086
56953f80
JB
90872008-04-08 Joel Brobecker <brobecker@adacore.com>
9088
9089 * stabsread.c (cleanup_undefined_types_noname): Manually set the
9090 instance flags of the undefined type before calling replace_type.
9091
e4e33b9e
VP
90922008-04-08 Vladimir Prus <vladimir@codesourcery.com>
9093
9094 * target.h (enum strata): Remove the download_stratum.
680b56ce 9095
92b5c263
DE
90962008-04-07 Doug Evans <dje@google.com>
9097
9098 * buildsym.h (last_source_file): Add dwarf info to comment.
9099 (last_source_start_addr): Ditto.
9100
effa26a9
PA
91012008-04-07 Pedro Alves <pedro@codesourcery.com>
9102
9103 * alphanbsd-tdep.c: Include "target.h".
9104 * mn10300-tdep.c: Include "target.h".
9105 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
9106
2b2d9e11
VP
91072008-04-06 Vladimir Prus <vladimir@codesourcery.com>
9108
9109 Fix breakpoint condition that use member variables.
680b56ce
AS
9110 * valops.c (check_field): Remove.
9111 (check_field_in): Rename to check_field.
9112 (value_of_this): Use la_name_of_this.
9113 * value.h (check_field): Adjust prototype.
9114
9115 * language.h (la_value_of_this): Rename to la_name_of_this.
9116 * language.c (unknown_language_defn): Specify "this" for
9117 name_of_this.
9118 (auto_language_defn): Likewise.
9119 (local_language_defn): Likewise.
9120 * ada-lang.c (ada_language_defn): Adjust comment.
9121 * c-lang.c (c_language_defn): Adjust comment.
9122 (cplus_language_defn): Specify "this" for name_of_this.
9123 (asm_language_defn): Adjust comment.
9124 (minimal_language_defn): Adjust comment.
9125 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
9126 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
9127 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
9128 * objc-lang.c (objc_language_defn): Specify "self" for
9129 name_of_this.
9130 * p-lang.c (pascal_language_defn): Specify "this" for
9131 name_of_this.
9132 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
9133
9134 * symtab.c (lookup_symbol_aux): Lookup "this" in the
9135 proper scope, and check for field in type of "this", without
9136 trying to create a value.
2b2d9e11 9137
a13e061a
PA
91382008-04-04 Pedro Alves <pedro@codesourcery.com>
9139
9140 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
9141 (mi_error_message): Delete declaration.
9142 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
9143 returning MI_CMD_ERROR.
9144 * mi/mi-main.c (mi_error_message): Delete.
9145 (mi_cmd_exec_interrupt):
9146 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
9147 (mi_cmd_thread_info): Call error instead of returning
9148 MI_CMD_ERROR.
9149 (mi_cmd_data_list_register_values): Call error instead of
9150 returning MI_CMD_ERROR. Adapt to new get_register interface.
9151 (get_register): Change return typo to void. Call error instead of
9152 returning MI_CMD_ERROR.
9153 (mi_cmd_data_write_register_values): Call error instead of
9154 returning MI_CMD_ERROR.
9155 (mi_cmd_list_features): Return MI_CMD_DONE.
9156 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
9157 (mi_execute_command): Always print exceptions with -error.
9158
aad4b048
JB
91592008-04-04 Joel Brobecker <brobecker@adacore.com>
9160
9161 * NEWS: Mention new commands set/show multiple-symbols.
9162
717d2f5a
JB
91632008-04-03 Joel Brobecker <brobecker@adacore.com>
9164
9165 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
9166 (multiple_symbols_cancel): New constants.
9167 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
9168 (multiple_symbols_select_mode): New function.
9169 (_initialize_symtab): Add new set/show multiple-symbols commands.
9170 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
9171 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
9172 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
9173 setting.
9174 * linespec.c (decode_line_2): Likewise.
9175
f73634e5
DE
91762008-04-03 Doug Evans <dje@sebabeach.org>
9177
9178 * symtab.h (enum free_code): Delete free_contents, unused.
9179 * symmisc.c (free_symtab_block): Delete.
9180 (free_symtab, case free_code): Delete.
9181
1f906a60 91822008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
9183
9184 * valops.c (value_cast_structs): New function. Cast related
680b56ce 9185 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
9186 function comes mostly from value_cast_pointers.
9187 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
9188 to value_cast_structs. Now value_cast_pointers needs only create
9189 appropriate reference after using value_cast_structs for actual
9190 casting.
9191 (value_cast): Handle references.
9192
61ad90e1
MK
91932008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
9194
9195 * MAINTAINERS: Added myself to section Write After Approval.
9196
b7d038ae
DJ
91972008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
9198
9199 * ia64-tdep.c (examine_prologue): Correct array access.
9200
1f906a60 92012008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
9202
9203 * cp-support.c (first_component_command): Return if no arguments.
9204
df3ac606
CD
92052008-03-28 Carlos O'Donell <carlos@codesourcery.com>
9206
9207 * ser-mingw.c (ser_windows_open): Open requested name.
9208
ca933485
AR
92092008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9210
9211 * MAINTAINERS: Added myself.
9212
5f667f2d
PA
92132008-03-28 Pedro Alves <pedro@codesourcery.com>
9214
9215 * target.c (find_default_run_target): Allow a NULL `do_mesg'
9216 parameter. If it is NULL, don't call error.
9217 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
9218 `do_mesg' parameter to find_default_run_target. If no target was
9219 found, return 0.
9220
e741f4d4
DJ
92212008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
9222
9223 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
9224 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
9225 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
9226 Delete.
9227 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
9228
f66d8205 92292008-03-27 Joel Brobecker <brobecker@adacore.com>
9230
9231 GDB 6.8 released.
9232
221c031f
UW
92332008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9234
9235 * features/Makefile (%.dat): Set xmltarget to the base filename
9236 of the XML source, without subdirectory.
9237 * regformats/rs6000/powerpc-32.dat: Regenerate.
9238 * regformats/rs6000/powerpc-64.dat: Regenerate.
9239 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9240
40c58d95
MD
92412008-03-27 Markus Deuling <deuling@de.ibm.com>
9242
9243 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
9244 objfile arch.
9245
bb1ec7d2
NR
92462008-03-27 Nick Roberts <nickrob@snap.net.nz>
9247
9248 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9249 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
9250
5e2b427d
UW
92512008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
9252
9253 * objfiles.h (struct objfile): New GDBARCH member.
9254 (get_objfile_arch): Add prototype.
9255 * objfiles.c: Include "arch-utils.h".
9256 (allocate_objfile): Look up gdbarch associated with bfd.
9257 (get_objfile_arch): New function.
9258 * Makefile (objfiles.o): Update dependencies.
9259
9260 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
9261 by objfile arch.
9262 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
9263 by frame arch.
9264 (locexpr_describe_location): Replace current_gdbarch by
9265 objfile arch.
9266 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
9267 (dwarf2_add_field): Likewise.
9268 (read_tag_pointer_type): Likewise.
9269 (read_base_type): Likewise.
9270 (new_symbol): Likewise.
9271
9272 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
9273 (decode_base_type, decode_function_type): Likewise.
9274 (coff_read_struct_type, coff_read_enum_type): Likewise.
9275 (coff_symtab_read): Replace current_gdbarch by objfile arch.
9276 (decode_base_type): Likewise.
9277 (coff_read_enum_type): Likewise.
9278 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
9279 (coff_read_enum_type): Likewise.
9280
9281 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
9282 (end_psymtab): Likewise.
9283 (process_one_symbol): Likewise.
9284
9285 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
9286 (parse_procedure): Likewise.
9287 (parse_partial_symbols): Likewise.
9288
9289 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
9290
9291 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
9292 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
9293 built-in types.
9294 (read_range_type): Replace current_gdbarch by objfile arch. Replace
9295 static range_index_type by built-in type.
9296 (read_one_struct_field): Replace current_gdbarch by objfile arch.
9297 (read_enum_type): Likewise.
9298
9299 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
9300 objfile arch.
9301
5a413362
VP
93022008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9303
9304 * varobj.h (varobj_floating_p): Declare.
9305 * varobj.c (varobj_floating_p): New.
9306 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
9307 '@' as the name, update all floating varobjs.
9308
a5defcdc
VP
93092008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9310
9311 * varobj.c (struct varobj_root): Rename use_selected_frame to
9312 floating, and clarify the meaning.
9313 (varobj_create, varobj_update, new_root_variable): Adjust.
9314 (value_of_root): Don't use type_changed as in variable,
9315 adjust comment.
9316 (c_value_of_root): Adjust.
5a413362 9317
403fe197
PA
93182008-03-25 Pedro Alves <pedro@codesourcery.com>
9319
9320 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
9321 gdb's thread list.
9322 (linux_nat_wait): Add main lwp to gdb's thread list.
9323 * linux-thread-db.c (find_new_threads_callback): Also attach to
9324 already listed threads which thread_db didn't know about yet.
9325
710151dd
PA
93262008-03-25 Pedro Alves <pedro@codesourcery.com>
9327
9328 * linux-nat.c (drain_queued_events): Fix comment typo.
9329 (linux_nat_attach): In async mode, don't rely on storing a pending
9330 status. Instead place the wait status on the pipe.
9331 (linux_nat_resume): Remove unreacheable shortcut code in async
9332 mode.
9333 (stop_wait_callback): In async mode, don't store pending status.
9334 Instead, cancel breakpoints or resend the signal appropriatelly.
9335 (cancel_breakpoint): New, refactored from
9336 cancel_breakpoints_callback.
9337 (cancel_breakpoints_callback): Call cancel_breakpoint.
9338 (pipe_to_local_event_queue): Remove special token processing.
9339 (linux_nat_wait): Issue an internal error if a pending status is
9340 found in async mode.
9341
807bddf3
DJ
93422008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
9343
9344 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
9345
c5b48eac
VP
93462008-03-24 Nick Roberts <nickrob@snap.net.nz>
9347 Vladimir Prus <vladimir@codesourcery.com>
9348
680b56ce
AS
9349 * varobj.c (struct varobj_root): New component thread_id.
9350 (varobj_get_thread_id, check_scope): New functions.
9351 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
9352 proper thread if necessary.
9353
680b56ce 9354 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 9355
680b56ce 9356 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 9357
12f4afab
DJ
93582008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
9359
9360 PR gdb/544
9361 * top.c: Revert 2008-03-21 changes.
9362
6208b47d
VP
93632008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9364
9365 * thread.c (make_cleanup_restore_current_thread): Make it
9366 globally visible.
9367 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
9368 * varobj.c (varobj_update): Don't save/restore frame.
9369 (c_value_of_root): Save/restore thread and frame here,
9370 using make_cleanup_restore_current_thread.
9371 * Makefile.in: Update dependecies.
9372
44a67aa7
VP
93732008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9374
680b56ce
AS
9375 * varobj.c (struct varobj_root): Clarify
9376 comment on the frame field.
9377 (varobj_create): Don't set frame if we have no
9378 block.
44a67aa7 9379
b562a0cb
DJ
93802008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9381
9382 PR gdb/544
9383 Suggested by Jan Kratochvil:
9384 * top.c (gdb_rl_operate_and_get_next_completion): Call
9385 rl_redisplay_function.
9386 (gdb_rl_redisplay): New.
9387 (init_main): Set rl_redisplay_function.
9388
ed1bd5f5
JB
93892008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
9390
9391 * aix-thread.c (pdc_read_regs): Fix compiler warning.
9392 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
9393 (store_regs_kernel_thread): Likewise.
9394
b84876c2
PA
93952008-03-21 Pedro Alves <pedro@codesourcery.com>
9396
9397 Linux native async support.
9398
9399 * target.h (struct target_ops): Delete to_async_mask_value and add
9400 to_async_mask.
9401 (target_is_async_p, target_async): Formatting.
9402 (target_async_mask_value): Delete.
9403 (target_async_mask): Delete function declaration, and add new
9404 target macro with the same name.
9405
9406 * target.c (update_current_target): Replace to_async_mask_value by
9407 to_async_mask. Default to_async_mask to return_one.
9408 (target_async_mask): Delete.
9409 (find_default_can_async_p, find_default_is_async_p): New.
9410 (init_dummy_target): register find_default_can_async_p and
9411 find_default_is_async_p on the dummy target.
9412
9413 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
9414 (debug_linux_nat_async): New global.
9415 (show_debug_linux_nat_async): New function.
9416 (linux_nat_async_enabled, linux_nat_async_mask_value)
9417 (linux_nat_event_pipe, linux_nat_num_queued_events)
9418 (linux_nat_async_events_enabled): New globals.
9419 (struct waitpid_result): New struct.
9420 (waitpid_queue): New global.
9421 (queued_waitpid, push_waitpid, drain_queued_events): New.
9422 (my_waitpid): Call queued_waitpid.
9423 (linux_child_follow_fork): Disable async events during the call.
9424 (blocked_mask): Delete.
9425 (sync_sigchld_action, async_sigchld_action): New globals.
9426 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9427 async mode, block events during the call.
9428 (linux_nat_create_inferior): New.
9429 (linux_nat_attach): In sync mode, restore the mask states. In
9430 async mode, wake the event loop immediatelly.
9431 (detach_callback): Drain all queued events of the lwp we're
9432 detaching from.
9433 (linux_nat_detach): Block async mode, and drain events of the main
9434 process.
9435 (linux_nat_resume): If in async mode, mask async events during the
9436 call. If short circuiting, force event loop to wake up. If
9437 resuming, set target_executing, and register target events in the
9438 event loop.
9439 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9440 (linux_nat_wait): In async mode, block events during the call.
9441 Only enable/disable passing SIGINT to the inferior in sync mode.
9442 Get events from local waitpid queue. If no interesting events was
9443 found, return to events loop. Reregister target events in the
9444 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9445 (linux_nat_kill): Disable events on entry.
9446 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9447 here. Detach async mode from the event loop if there are no more
9448 forks available, otherwise leave it on.
9449 (sigchld_handler): Assure this is called only in sync mode.
9450 (linux_async_permitted, linux_async_permitted_1): New globals.
9451 (set_maintenance_linux_async_permitted)
9452 (show_maintenance_linux_async_permitted): New functions.
9453 (linux_nat_is_async_p, linux_nat_can_async_p)
9454 (linux_nat_async_mask): New.
9455 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9456 (get_pending_events, async_sigchld_handler): New.
9457 (linux_nat_async_events): New.
9458 (async_terminal_is_ours): New global.
9459 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9460 (async_client_callback, async_client_context): New.
9461 (linux_nat_async_file_handler, linux_nat_async)
9462 (linux_nat_disable_async, linux_nat_enable_async): New.
9463 (linux_nat_add_target): Register linux_nat_create_inferior,
9464 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9465 linux_nat_async_mask, linux_nat_terminal_inferior and
9466 linux_nat_terminal_ours.
9467 (_initialize_linux_nat): Remove local action variable, and update
9468 code that used it to use sync_sigchld_action. Add new
9469 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9470 set/show command in the maintenance class. Add new "linux-async"
9471 maintenance set/show command. Block SIGCHLD by default. Setup
9472 async_sichld_action, and sync_sigchld_action. Install the default
9473 async mode.
9474 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9475 the cancel signals.
9476
9477 * linux-thread-db.c (re_check_for_thread_db): New.
9478 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9479 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9480 (thread_db_async_mask): New.
9481 (init_thread_db_ops): Register thread_db_can_async_p,
9482 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9483
9484 * remote.c (remote_async_mask_value): New.
9485 (remote_return_zero): New.
9486 (init_remote_ops): Register remote_return_zero as callbacks of
9487 to_can_async_p and to_is_async_p.
9488 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9489 use remote_async_mask_value.
9490 (remote_async_mask): New.
9491 (init_remote_async_ops): Remove to_async_mask_value setting and
9492 register remote_async_mask as to_async_mask callback in
9493 remote_async_ops.
9494
9495 * Makefile.in (linux-nat.o): Update.
9496
17faa917
DJ
94972008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9498
9499 * gdbthread.h (add_thread_with_info): New.
9500 * linux-thread-db.c: Add some documentation.
9501 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9502 (struct private_thread_info): Remove th_valid and ti_valid.
9503 Replace ti with tid.
9504 (thread_get_info_callback): Do not add TID to the new ptid. Do
9505 not cache th or ti.
9506 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9507 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9508 new PTID.
9509 (attach_thread): Handle an already-existing thread. Use
9510 add_thread_with_info. Cache the th and tid.
9511 (detach_thread): Verify that private was set. Remove verbose
9512 argument and printing. Update caller.
9513 (thread_db_detach): Do not adjust inferior_ptid.
9514 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9515 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9516 (thread_db_wait): Do not use lwp_from_thread.
9517 (thread_db_pid_to_str): Use the cached TID.
9518 (thread_db_extra_thread_info): Check that private is set.
9519 (same_ptid_callback): Delete.
9520 (thread_db_get_thread_local_address): Do not use it or check
9521 is_thread. Check that private is set. Assume that the thread
9522 handle is already cached.
9523 (init_thread_db_ops): Remove to_resume and to_kill.
9524 * thread.c (add_thread_with_info): New.
9525 (add_thread): Use it.
9526 * linux-nat.c (find_thread_from_lwp): Delete.
9527 (exit_lwp): Do not use it. Check print_thread_events. Print before
9528 deleting the thread.
9529 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9530 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9531 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9532 printf_unfiltered for thread exits.
9533 * procfs.c (procfs_wait): Likewise.
9534
6214f497
DJ
95352008-03-21 Chris Demetriou <cgd@google.com>
9536
9537 * symtab.c (rbreak_command): Quote symbol name before passing
9538 it to break_command.
9539
63092375
DJ
95402008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9541
9542 * eval.c (evaluate_subexp_for_address): Clarify error message.
9543 Use value_must_coerce_to_target.
9544 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9545 * valops.c (value_assign): Call value_coerce_to_target when
9546 assigning to anything but internalvars. Leave GDB-side arrays
9547 as arrays when assigning to internalvars.
9548 (value_must_coerce_to_target, value_coerce_to_target): New.
9549 (value_coerce_array, value_addr): Call value_coerce_to_target.
9550 (value_array): Create the array in GDB's memory instead of
9551 the inferior's.
9552 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9553 Declare.
9554
b21991b0
DJ
95552008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9556
9557 * top.c (quit_confirm): Warn that we will kill the program.
9558
49a834f9
PA
95592008-03-19 Pedro Alves <pedro@codesourcery.com>
9560
9561 * inflow.c (terminal_ours_1): Guard access to
9562 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9563
ae0d2f24
UW
95642008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9565 Jim Blandy <jimb@codesourcery.com>
9566 Daniel Jacobowitz <drow@false.org>
9567
9568 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9569 (dwarf2_read_address): Update prototype.
9570
9571 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9572 (signed_address_type): Likewise.
9573 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9574 (execute_stack_op): Update calls to unsigned_address_type,
9575 signed_address_type and dwarf2_read_address. Fix implementation
9576 of DW_OP_deref_size.
9577
9578 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9579 (dwarf2_per_cu_addr_size): Likewise.
9580 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9581 (struct dwarf2_loclist_baton): Likewise.
9582
9583 * dwarf2loc.c (find_location_expression): Update calls to
9584 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9585 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9586 (locexpr_describe_location): Likewise.
9587 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9588 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9589 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9590 to dwarf2_per_cu_addr_size (per_cu).
9591 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9592 (loclist_read_variable): Likewise.
9593 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9594
9595 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9596 instead of baton->objfile.
9597 (dwarf2_per_cu_obfile): New function.
9598 (dwarf2_per_cu_addr_size): Likewise.
9599
9600 * dwarf2-frame.c (struct comp_unit): Move higher.
9601 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9602 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9603 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9604 parameter by using fde->eh_frame_p. Use read_encoded_value
9605 to implement DW_CFA_set_loc.
9606 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9607 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9608 execute_stack_op and execute_cfa_program.
9609 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9610 (size_of_encoded_value): Remove.
9611 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9612 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9613 (add_cie): Set cie->unit backlink.
9614 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9615 read_encoded_value.
9616 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9617
1c8201d1
MD
96182008-03-17 Markus Deuling <deuling@de.ibm.com>
9619
9620 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9621 gdbarch_bfd_arch_info.
9622
46bba1ef
JB
96232008-03-17 Joel Brobecker <brobecker@adacore.com>
9624
9625 * aix-thread.c (pdc_read_regs): Minor reformatting.
9626
0bcd3e20
VP
96272008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9628
9629 * thread.c (print_thread_info): Don't insist
9630 on having current thread if there are no
9631 threads at all.
9632
9356cf8d
PA
96332008-03-17 Pedro Alves <pedro@codesourcery.com>
9634
9635 * infcmd.c (attach_command_post_wait)
9636 (attach_command_continuation): New.
9637 (attach_command): Support background async execution, and async
9638 execution in synchronous mode.
9639
5c3ce3f7
DJ
96402008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9641
9642 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9643 * symmisc.c (dump_symtab_1): Likewise.
9644 * wrapper.c (gdb_value_struct_elt): Likewise.
9645
fa2c6a57
PA
96462008-03-17 Pedro Alves <pedro@codesourcery.com>
9647
9648 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9649
02f3fc28
PA
96502008-03-17 Pedro Alves <pedro@codesourcery.com>
9651
9652 * linux-nat.c (linux_nat_filter_event): New, refactored from
9653 linux_nat_wait.
9654 (linux_nat_wait): Call linux_nat_filter_event.
9655
2f77b315
UW
96562008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9657
9658 * top.c (execute_command): Fix uninitialized variable error.
9659
f01be29b
NH
96602008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9661
680b56ce
AS
9662 * Makefile.in (amd64nbsd-nat.o): New dependency.
9663 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9664 (_initialize_amd64nbsd_nat): Update target vector to use
9665 nbsd_pid_to_exec_file.
9666 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9667
6cf32704
VP
96682008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9669
9670 Remove ignoring leading exec events code.
680b56ce
AS
9671 * fork-child.c (startup_inferior): Do not set
9672 inferior_ignoring_leading_exec_events.
9673 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9674 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9675 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9676 (handle_inferior_event): Remove code for ignoring leading exec
9677 events.
9678 * target.c (update_current_target): Do not inherit, or default,
9679 to_reported_exec_events_per_exec_call.
9680 (debug_to_reported_exec_events_per_exec_call): Remove.
9681 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9682 * target.h (target_reported_exec_events_per_exec_call): Remove.
9683 (struct target): Remove the to_reported_exec_events_per_exec_call
9684 field.
6cf32704 9685
8e8901c5
VP
96862008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9687
9688 Implement -thread-info.
680b56ce 9689 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9690
680b56ce
AS
9691 * thread.c (print_thread_info): New, extracted
9692 from info_threads_command and adjusted to
9693 work for CLI and MI.
9694 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9695 * Makefile.in: Update dependencies.
9696
680b56ce
AS
9697 * mi/mi-cmds.c (mi_cmds): Specify a handler
9698 for -thread-info.
9699 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9700 * mi/mi-main.c (mi_cmd_thread_info): New.
9701 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9702
7d1e6fb8
KB
97032008-03-14 Kevin Buettner <kevinb@redhat.com>
9704
9705 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9706 to decide whether to match instruction patterns using "sw" and "sd".
9707
89113898
PA
97082008-03-14 Pedro Alves <pedro@codesourcery.com>
9709
9710 * infcmd.c (jump_command): Postpone disabling stdin until after
9711 the possible query.
9712
64a0ac84
PA
97132008-03-14 Pedro Alves <pedro@codesourcery.com>
9714
9715 * inflow.c (gdb_getpgrp): New.
9716 (gdb_has_a_terminal): Use get_getpgrp.
9717 (terminal_ours_1): If attach_flag is set, don't refetch
9718 inferior_process_group.
9719
1fddbabb
PA
97202008-03-14 Pedro Alves <pedro@codesourcery.com>
9721
9722 * features/library-list.dtd: Allow "section" elements as children
9723 of "library". Add "section" element and describe its attributes.
9724
9725 * solib-target.c (struct lm_info): Add section_bases member.
9726 (library_list_start_segment): Error out if seen a section element.
9727 (library_list_start_section): New.
9728 (library_list_end_library): New.
9729 (solib_target_free_library_list): Free section_bases.
9730 (section_attributes): New.
9731 (library_children): Make "segment" optional. Add "section" child.
9732 (library_list_children): Register library_list_end_library.
9733 (solib_target_relocate_section_addresses): Handle section bases.
9734
9735 * NEWS: Mention new qXfer:libraries:read section offsets support.
9736
712af3be
VP
97372008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9738
9739 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9740 (make_exec_error_cleanup): Remove declarations.
9741 * utils.c (exec_error_cleanup_chain): Remove.
9742 (do_exec_error_cleanups, discard_exec_error_cleanups)
9743 (make_exec_error_cleanup): Remove.
9744 * event-loop.c (start_event_loop): Adjust call to
9745 async_enable_stdin.
9746 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9747 (async_disable_stdin): Don't register async_enable_stdin via
9748 cleanup.
9749 * inf-loop.c (inferior_event_handler): Don't
9750 call do_exec_error_cleanups. Call async_enable_stdin instead.
9751 * event-loop.c (start_event_loop): Adjust call to
9752 async_enable_stdin.
9753 * tui/tui-interp.c (tui_command_loop): Adjust call to
9754 async_enable_stdin.
9755
32c1e744
VP
97562008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9757
9758 Async mode fixes.
680b56ce
AS
9759 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9760 * breakpoint.c (bpstat_do_actions): In async mode,
9761 don't jump to top expecting stop_bpstat to be already
9762 updated.
9763 * event-loop.c (start_event_loop): Call async_enable_stdin
9764 on exception.
9765 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9766 is not set.
9767 (command_handler): Do not setup continuation here.
9768 (command_line_handler_continuation): Move to...
9769 * top.c (command_line_handler_continuation): ... here.
9770 (execute_command): In async mode, register continuation.
9771 Don't check frame's language in running in async mode.
9772 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9773 * inf-loop.c (complete_execution): Inline into...
9774 (inferior_event_handler): ... here. Clear target_executing before
9775 doing any cleanups. Don't try to show prompt if the target was
9776 resumed.
9777 * infcmd.c (signal_command): Add support for async mode.
9778 (finish_command): Only add continuation if the target was
9779 successfully resumed.
9780 * remote.c (init_async_opts): Register to_get_thread_local_address
9781 handler.
9782 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9783 with sync_execution.
9784 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9785 on exception.
32c1e744 9786
c04ea773
DJ
97872008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9788
9789 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9790 * exec.c (exec_bfd_mtime): Define.
9791 (exec_close): Clear it.
9792 (exec_file_attach): Set it.
9793 * gdbcore.h (exec_bfd_mtime): Declare.
9794 * source.c (find_source_lines): Do not use bfd_get_mtime.
9795
952dc227
VP
97962008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9797
9798 * top.c (simplified_command_loop): Remove.
9799
4cf46804
VP
98002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9801
9802 Remove unused remote.c hooks.
680b56ce
AS
9803 * remote.c (deprecated_target_resume_hook)
9804 (deprecated_target_wait_loop_hook): Remove.
9805 (remote_resume): Do not call deprecated_target_resume_hook.
9806 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9807 (remote_async_wait): Likewise.
4cf46804 9808
683f2885
VP
98092008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9810
9811 Implement MI notification for new threads.
680b56ce
AS
9812 * doc/observer.texi (new_thread): Document.
9813 * observer.sh: Forward declare struct thread_info.
9814 * thread.c (add_thread): Notify observer.
9815
9816 * interps.h (interp_init_ftype): New parameter
9817 top_level.
9818 (interp_set): Likewise.
9819 (top_level_interpreter_data): Declare.
9820 * interps.c (interp_set): New parameter top_level.
9821 Pass it to interpreter's init function. Remember
9822 top level interpreter.
9823 (interpreter_exec_cmd): Adjust.
9824 (top_level_interpreter_data): New.
9825 * main.c (captured_main): Pass 1 for top_level
9826 parameter of interp_set.
683f2885 9827 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9828 parameter top_level.
9829 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9830
680b56ce
AS
9831 * mi/mi-interp.c (mi_new_thread): New.
9832 (mi_interpreter_init): If top level, register
9833 observer for new threads.
683f2885 9834
680b56ce 9835 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9836
ff9b3928
PA
98372008-03-14 Pedro Alves <pedro@codesourcery.com>
9838
9839 * top.c (execute_command): Disable break and stop
9840 commands in async mode.
9841
b18392ef
PA
98422008-03-14 Pedro Alves <pedro@codesourcery.com>
9843
9844 revert:
9845 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9846 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9847 Call target_stop in the INF_QUIT_REQ case.
9848 * Makefile.in (inf-loop.o): Update.
9849
0aca9f07
PA
98502008-03-14 Pedro Alves <pedro@codesourcery.com>
9851
9852 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9853 Call target_stop in the INF_QUIT_REQ case.
9854 * Makefile.in (inf-loop.o): Update.
9855
0b4e556c
PA
98562008-03-14 Pedro Alves <pedro@codesourcery.com>
9857
9858 * top.c (execute_command): Enable break, info and interrupt
9859 commands in async mode.
9860
8defab1a
DJ
98612008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9862 Daniel Jacobowitz <dan@codesourcery.com>
9863
9864 * breakpoint.h (breakpoint_restore_shadows): New
9865 declaration.
9866 * breakpoint.c (breakpoint_restore_shadows): New.
9867 (read_memory_nobpt): Delete.
9868 * gdbcore.h (read_memory_nobpt): Delete declaration.
9869 * target.c (memory_xfer_partial): Call
9870 breakpoint_restore_shadows.
9871 (restore_show_memory_breakpoints)
b4812cfe 9872 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9873 (show_memory_breakpoints): New.
b4812cfe 9874 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9875 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9876 Make sure we see memory breakpoints when checking if
9877 breakpoint is still there.
9878 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9879 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9880 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9881 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9882
fd532e2e
PA
98832008-03-12 Pedro Alves <pedro@codesourcery.com>
9884
9885 * thread.c (add_thread): Use printf_unfiltered to print.
9886
f749779f 98872008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9888
9889 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9890 that is true only on x86-solaris and x86_64-solaris.
9891 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9892 with proc_get_LDT_entry.
9893
98942008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9895
9896 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9897 * config.in, configure: Regenerate.
9898 * fork-child.c (fork_inferior): Call create_tty_session.
9899 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9900 (create_tty_session): New function.
9901 * terminal.h: Declare create_tty_session.
9902
4fbb74a6
AM
99032008-03-12 Alan Modra <amodra@bigpond.net.au>
9904
9905 PR 5900
9906 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9907 * mipsread.c: Include elf/internal.h.
9908 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9909 to internal range.
9910
20a6ec49
MD
99112008-03-11 Markus Deuling <deuling@de.ibm.com>
9912
9913 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9914 to get at the current architecture and at the target specific vector.
9915 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9916 remove define of I387_ST0_REGNUM.
9917
9918 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9919
9920 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9921 get at the current architecture
9922 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9923 parameter.
9924
9925 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9926 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9927
9928 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9929 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9930 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9931
9932 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9933 at the target specific vector.
9934
9935 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9936 architecture. Use gdbarch_tdep to get at the target specific vector.
9937
9938 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9939 update caller. Use gdbarch_tdep to get at the target specific vector.
9940
9941 (i386_register_to_value: Use get_frame_arch to get at the current
9942 architecture.
9943
9944 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9945 parameter.
9946
9947 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9948 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9949 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9950 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9951
9952 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9953 undef's.
9954
9955 (i387_convert_register_p, i387_register_to_value,
9956 i387_value_to_register): Update call for i386_fp_regnum_p.
9957
9958 * i387-tdep.h: Remove comment.
9959 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9960 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9961 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9962 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9963 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9964
ccd213ac
DJ
99652008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9966
9967 * Makefile.in (fork-child.o): Update.
9968 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9969 argument. Gather all gdbserver features together.
9970 * fork-child.c (exec_wrapper): New variable.
9971 (fork_inferior): Use it.
9972 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9973 (unset_exec_wrapper_command, _initialize_fork_child): New.
9974
99752008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9976
9977 * source.c (directory_command): Modify the determination of
9978 condition of terminal "from_tty".
9979
22566fbd
DJ
99802008-03-10 Matt Rice <ratmice@gmail.com>
9981
9982 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9983
9971ac47
UW
99842008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9985
9986 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9987 of the data passing to strtoulst function.
9988 (info_spu_signal_command): Likewise.
9989
835670cf
VP
99902008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9991
9992 * mi/mi-interp.c (mi_command_loop): Remove
9993 commented-out code.
680b56ce 9994
be86555c
JB
99952008-03-07 Joel Brobecker <brobecker@adacore.com>
9996
9997 * remote.c (extended_remote_attach_1): Make local variable pid an int
9998 instead of a pid_t.
9999
4d7b2d5b
JB
100002008-03-07 Joel Brobecker <brobecker@adacore.com>
10001
10002 * solib-svr4.c (svr4_same_1): New function, originally extracted
10003 from svr4_same and expanded to handle the sparc64 case.
10004 (svr4_same): Move up and reimplement using svr4_same_1.
10005 (enable_break): Use svr4_same_1 to do shared library name comparisons.
10006
61fed90e
RR
100072008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
10008
10009 * MAINTAINERS: Move self to Paper trail.
10010
b803fb0f
DJ
100112008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
10012
10013 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
10014 * event-loop.c (call_async_signal_handler): New.
10015 * event-loop.h (call_async_signal_handler)
10016 (gdb_call_async_signal_handler): Declare.
10017 (mark_async_signal_handler): Add comments.
10018 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
10019 * mingw-hdep.c (sigint_event, sigint_handler): New.
10020 (gdb_select): Use them. Wait for the readline signal handler
10021 to finish.
10022 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
10023 * posix-hdep.c (gdb_call_async_signal_handler): New function.
10024 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
10025 New.
10026 (remote_fileio_ctrl_c_signal_handler): Use
10027 gdb_call_async_signal_handler.
10028 (initialize_remote_fileio): Initialize sigint_fileio_token.
10029 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
10030 not initialize tokens here.
10031 (handle_remote_sigint_twice): Likewise. Reinstall
10032 handle_remote_sigint.
10033 (async_remote_interrupt_twice): Just call interrupt_query.
10034 (cleanup_sigint_signal_handler): Do not delete tokens.
10035 (remote_interrupt, remote_interrupt_twice): Use
10036 gdb_call_async_signal_handler.
10037 (interrupt_query): Reinstall the default signal handler.
10038 (_initialize_remote): Initialize tokens here.
10039
8f4d54ed
JB
100402008-03-04 Joel Brobecker <brobecker@adacore.com>
10041
10042 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
10043 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10044 Change the type of the lr register to code_ptr.
10045 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10046 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10047 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10048 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10049 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10050 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10051 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
10052
95ece428
JW
100532008-03-03 James E. Wilson <wilson@tuliptree.org>
10054
10055 * MAINTAINERS: Update my email address.
10056
686a5eed
KS
100572008-03-03 Keith Seitz <keiths@redhat.com>
10058
10059 From Dave Murphy <davem@devkitpro.org>:
10060 * configure.ac: Set tcl configdir to win under mingw.
10061 * configure: Regenerate.
10062
fa4727a6
DJ
100632008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
10064
10065 * breakpoint.c (fetch_watchpoint_value): New function.
10066 (update_watchpoint): Set and clear val_valid. Use
10067 fetch_watchpoint_value. Handle unreadable values on the
10068 value chain. Correct check for user-requested array watchpoints.
10069 (breakpoint_init_inferior): Clear val_valid.
10070 (watchpoint_value_print): New function.
10071 (print_it_typical): Use it. Do not free or clear old_val. Print
10072 watchpoints even if old_val == NULL.
10073 (watchpoint_check): Use fetch_watchpoint_value. Check for values
10074 becoming readable or unreadable.
10075 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
10076 (do_enable_watchpoint): Likewise.
10077 * breakpoint.h (struct breakpoint): Update comment for val. Add
10078 val_valid.
10079 * NEWS: Mention watchpoints on inaccessible memory.
10080
b4812cfe 100812008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
10082
10083 * Makefile.in (i386-nat.o): Update.
10084 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
10085 i386_use_watchpoints.
10086 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
10087 i386_use_watchpoints.
10088 * i386-nat.c (i386_stopped_data_address): Take two arguments.
10089 (i386_stopped_by_watchpoint): Update call.
10090 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
10091 * config/i386/nm-i386.h: Conditionalize definitions on
10092 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
10093 (i386_use_watchpoints): Declare.
10094 (i386_stopped_data_address): Update.
10095 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
10096 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
10097
c24d7425 100982008-02-29 Joel Brobecker <brobecker@adacore.com>
10099
10100 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
10101 * version.in: Bump version to 6.8.50.20080229-cvs.
10102
a7dfd010
MD
101032008-02-28 Markus Deuling <deuling@de.ibm.com>
10104
10105 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
10106 properly.
10107
258c00cc
TT
101082008-02-28 Tom Tromey <tromey@redhat.com>
10109
10110 * infcmd.c (notice_args_read): Print result of get_inferior_args.
10111
8edfe269
DJ
101122008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10113
10114 * infcmd.c (kill_if_already_running): Make static. Use
10115 target_require_runnable.
10116 * target.c (target_require_runnable): New.
10117 * target.h (target_require_runnable): Declare.
10118
0d6ba1b1
DJ
101192008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10120
10121 * frame.c (reinit_frame_cache): Only annotate if frames were
10122 previously valid.
10123
6fe305f7
UW
101242008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10125
10126 * regformats/reg-ppc.dat: Rename "ps" to "msr".
10127 * regformats/reg-ppc64.dat: Likewise.
10128
9b4b61c8
UW
101292008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10130
10131 * features/Makefile (%.dat): Emit xmltarget statement.
10132
10133 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
10134 Generate code to set gdbserver_xmltarget in init_registers_${name}.
10135
10136 * regformats/arm-with-iwmmxt.dat: Regenerate.
10137 * regformats/mips64-linux.dat: Regenerate.
10138 * regformats/mips-linux.dat: Regenerate.
10139 * regformats/rs6000/powerpc-32.dat: Regenerate.
10140 * regformats/rs6000/powerpc-64.dat: Regenerate.
10141 * regformats/rs6000/powerpc-e500.dat: Regenerate.
10142
10143 * regformats/reg-arm.dat: Add xmlarch statement.
10144 * regformats/reg-i386.dat: Likewise.
10145 * regformats/reg-i386-linux.dat: Likewise.
10146 * regformats/reg-x86-64-linux.dat: Likewise.
10147 * regformats/reg-spu.dat: Likewise.
10148
20b4711e
DJ
101492008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10150
10151 * remote.c (remote_wait, remote_async_wait): Stop if we receive
10152 an error.
10153
1843f87b
DJ
101542008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10155
10156 * utils.c (debug_timestamp): New.
10157 (vfprintf_unfiltered): Print timestamps if requested.
10158 (show_debug_timestamp): New.
10159 (initialize_utils): Register "set debug timestamp".
10160 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
10161
6a048695
JB
101622008-02-27 Joel Brobecker <brobecker@adacore.com>
10163
10164 * breakpoint.c (skip_prologue_sal): New function.
10165 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
10166 computed from a line number.
10167
0b998f49
JB
101682008-02-27 Joel Brobecker <brobecker@adacore.com>
10169
10170 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
10171 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10172 Set PC register type to "code_ptr".
10173 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10174 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10175 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10176 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10177 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10178 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10179 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
10180 Regenerate.
10181
d05b4ac3
UW
101822008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10183
10184 * regformats/regdat.sh: Rename init_registers function in
10185 generated file to init_registers_${name}.
10186
10187 * regformats/reg-crisv32.dat: Set "name" to crisv32.
10188 * regformats/reg-ppc64.dat: Set "name" to ppc64.
10189 * regformats/reg-s390x.dat: Set "name" to s390x.
10190
a5d9d57d
DJ
101912008-02-26 Greg Law <glaw@undo-software.com>
10192
10193 * regcache.c (registers_changed): Call reinit_frame_cache.
10194
e25c958c
DJ
101952008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
10196
10197 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
10198 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
10199 and svr4_fetch_objfile_link_map.
10200 * Makefile.in (sh-linux-tdep.o): Update.
10201
5daa78cc
TJB
102022008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10203
10204 * amd64-tdep.c (amd64_classify): Add support for decimal float
10205 types.
10206 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
10207 use the struct return convention.
10208
54e52265
VP
102092008-02-26 Nick Roberts <nickrob@snap.net.nz>
10210
10211 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
10212 to old format. Discard breakpoint address if shared library is
10213 unloaded.
10214 (breakpoint_1): Adjust formatting of table header accordingly.
10215
d8f2712d
VP
102162008-02-25 Vladimir Prus <vladimir@codesourcery.com>
10217
10218 * remote.c (remote_get_threadlist): If the response
10219 is empty, don't try to parse it.
10220
05ce04a4
VP
102212008-02-23 Vladimir Prus <vladimir@codesourcery.com>
10222
10223 Unbreak 'target async'.
680b56ce
AS
10224 * serial.c (serial_async): Set the
10225 handler function before enabling async
10226 mode.
05ce04a4 10227
b36ec657
DJ
102282008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
10229
10230 * solib-svr4.c (enable_break): Convert r_brk to a code address.
10231
df7df359
PA
102322008-02-21 Pedro Alves <pedro@codesourcery.com>
10233
10234 * remote.c (extended_remote_attach_1): Set attach_flag.
10235 (extended_remote_create_inferior_1): Clear attach_flag.
10236
7cd25cfc
DJ
102372008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10238
10239 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10240 r_brk_offset.
10241 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
10242 * solib-svr4.c (solib_svr4_r_brk): New.
10243 (open_symbol_file_object, svr4_current_sos): Always check the
10244 debug base.
10245 (svr4_fetch_objfile_link_map): Do not set debug_base.
10246 (enable_break): Use r_brk if it is set.
10247 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
10248 (svr4_lp64_fetch_link_map_offsets): Likewise.
10249 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
10250
07ea644b
MD
102512008-02-20 Markus Deuling <deuling@de.ibm.com>
10252 Mark Kettenis <kettenis@gnu.org>
10253
10254 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
10255 trad_frame_saved_reg.
680b56ce 10256 (trad-frame.h): New include.
07ea644b
MD
10257
10258 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 10259 instead of frame_obstack_zalloc.
07ea644b
MD
10260 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
10261
680b56ce 10262 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 10263
40887e1a
MD
102642008-02-20 Markus Deuling <deuling@de.ibm.com>
10265
10266 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
10267 from disassemble_info instead of gdbarch_byte_order.
10268
10269 * mips-tdep.c (gdb_print_insn_mips): Likewise.
10270 * arm-tdep.c (gdb_print_insn_arm): Likewise.
10271
ae4b2284
MD
102722008-02-20 Markus Deuling <deuling@de.ibm.com>
10273
10274 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
10275 gdbarch as parameter.
10276
10277 * gdbarch.{c,h}: Regenerate.
10278
10279 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10280 parameter.
10281 * mem-break.c (default_memory_insert_breakpoint)
10282 (default_memory_remove_breakpoint): Likewise.
10283 * target.h (default_memory_remove_breakpoint)
10284 (default_memory_insert_breakpoint): Likewise.
10285
10286 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10287 parameter. Replace current_gdbarch by gdbarch.
10288 * m32r-tdep.c (m32r_memory_insert_breakpoint)
10289 (m32r_memory_remove_breakpoint): Likewise.
10290
d9bf65d5
DJ
102912008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
10292
10293 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
10294
b93b6ca7
JB
102952008-02-19 Joel Brobecker <brobecker@adacore.com>
10296
10297 * NEWS: Add entry describing Add support improvements.
10298
4ed226fe
MD
102992008-02-18 Markus Deuling <deuling@de.ibm.com>
10300
10301 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
10302 M68K_FP0_REGNUM.
10303
caaa79ad
MD
103042008-02-18 Markus Deuling <deuling@de.ibm.com>
10305
10306 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
10307 register_offset_hack anymore.
10308
10309 * regcache.{c,h} (register_offset_hack): Remove.
10310
e38c262f
MD
103112008-02-18 Markus Deuling <deuling@de.ibm.com>
10312
10313 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
10314
10315 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
10316 current_gdbarch by gdbarch.
10317 (hppa64_hpux_find_global_pointer): Likewise.
10318 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
10319 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
10320 find_global_pointer.
10321
10322 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
10323 parameter.
10324 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
10325
10326 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
10327 of gdbarch_num_regs.
10328
10329 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 10330 replace current_gdbarch by gdbarch.
e38c262f
MD
10331 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
10332
206988c4
MD
103332008-02-18 Markus Deuling <deuling@de.ibm.com>
10334
10335 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
10336 and replace current_gdbarch by gdbarch.
10337
10338 (store_register): Update call for exec_one_dummy_insn.
10339 (fetch_register, store_register): Update call of regmap.
10340
10341 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
10342 parameter and replace current_gdbarch by gdbarch.
680b56ce 10343
206988c4
MD
10344 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
10345 the current architecture. Update call for getregs_supplies and
10346 getfpregs_supplies.
10347 (ppcnbsd_fetch_inferior_registers): Likewise.
10348
680b56ce 10349 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
10350 replace current_gdbarch by gdbarch.
10351 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
10352 get_regcache_arch to get at the current architecture. Update call for
10353 getfpregs_supplies.
10354
f642be6b
MD
103552008-02-18 Markus Deuling <deuling@de.ibm.com>
10356
10357 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 10358 variables.
f642be6b 10359
b1f2bf01
MD
103602008-02-15 Markus Deuling <deuling@de.ibm.com>
10361
10362 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
10363
ee163bf5
VP
103642008-02-14 Vladimir Prus <vladimir@codesourcery.com>
10365
10366 * NEWS: Mention pending breakpints in MI.
680b56ce 10367
f6fbcbf9
MD
103682008-02-14 Markus Deuling <deuling@de.ibm.com>
10369
10370 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
10371
36af4ef6
MD
103722008-02-13 Markus Deuling <deuling@de.ibm.com>
10373
10374 Add script to build and test GDB using enable-targets=all.
10375
10376 * gdb_buildall.sh: New file.
10377
94a0e877
MG
103782008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
10379
10380 * NEWS (New native configurations): Xtensa GNU/Linux.
10381 (New targets): Xtensa GNU/Linux.
10382 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
10383 xtensa-linux-tdep.o
10384 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
10385 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
10386 * configure.tgt (xtensa*-*-linux*): New entry.
10387 * xtensa-config.c (xtensa_tdep): New variable.
10388 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
10389 (rmap): Change format based on new macro XTREG.
10390 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
10391 * xtensa-linux-nat.c: New.
10392 * xtensa-linux-tdep.c: New.
10393 * xtensa-xtregs.c: New.
10394 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
10395 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
10396 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
10397 (xtensa_register_t): New field coprocessor.
10398 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
10399 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
10400 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
10401 Update to handle privileged registers.
10402 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
10403 (xtensa_push_dummy_call): Set windowstart register correctly.
10404 (call0_analyze_prologue): Initialize xtensa_default_isa.
10405 (xtensa_derive_tdep): New.
10406 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
10407 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
10408 Call xtensa_derive_tdep().
10409 * config/xtensa/linux.mh: New.
10410 * regformats/reg-xtensa.dat: New.
10411
b7ee1b0a 104122008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
10413
10414 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
10415 (filenames.h): New include.
10416 * Makefile.in (corelow.o): Add dependency for filenames.h.
10417
8da2a1df
DJ
104182008-02-08 Doug Evans <dje@google.com>
10419
10420 * source.c (find_and_open_source): Always rewrite absolute filenames.
10421
776592bf
DE
104222008-02-07 Doug Evans <dje@google.com>
10423
10424 * breakpoint.c: #include "hashtab.h".
10425 (ambiguous_names_p): New fn.
10426 (update_breakpoint_locations): When restoring bp enable status, don't
10427 compare function names if any functions have same name.
10428 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10429
d6565258
JB
104302008-02-07 Joel Brobecker <brobecker@adacore.com>
10431
10432 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10433 instead of just a VEC*. Update use of SV.
10434 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10435
6d53d0af
JB
104362007-02-07 Joel Brobecker <brobecker@adacore.com>
10437
10438 * NEWS: Put all new commands since gdb-6.7 together.
10439
2ba95b9b
JB
104402007-02-07 Joel Brobecker <brobecker@adacore.com>
10441
10442 * ada-lang.c: #include "vec.h".
10443 (struct string_vector, new_string_vector, string_vector_append):
10444 Delete.
10445 (char_ptr): New typedef.
10446 (DEF_VEC_P (char_ptr)): New VEC type.
10447 (symbol_completion_add): Update profile to take the new VEC type
10448 instead of the old string_vector structure. Update code accordingly.
10449 (ada_make_symbol_completion_list): Use the new VEC type instead of
10450 the old string_vector structure, and update the code accordingly.
10451 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10452
4ae0885a
PM
104532008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10454
10455 * p-exp.y: Set current_type in missing places.
10456 (leftdiv_is_integer): New static variable.
10457 Typecast right operand of BINOP_DIV to long_double if both operands
10458 are integers.
10459
06b1d59c
MR
104602008-02-06 Maciej W. Rozycki <macro@mips.com>
10461
10462 * remote-mips.c (set_breakpoint): Rename to...
10463 (mips_set_breakpoint): ... this.
10464 (clear_breakpoint): Rename to...
10465 (mips_clear_breakpoint): ... this.
10466 (common_breakpoint): Rename to...
10467 (mips_common_breakpoint): ... this.
10468 (check_lsi_error): Rename to...
10469 (mips_check_lsi_error): ... this.
10470
41d27058
JB
104712007-02-05 Joel Brobecker <brobecker@adacore.com>
10472
10473 * language.h (struct language_defn): Add new field
10474 la_make_symbol_completion_list.
10475 * symtab.c (default_make_symbol_completion_list): Renames
10476 make_symbol_completion_list.
10477 (make_symbol_completion_list): New function.
10478 * symtab.h (default_make_symbol_completion_list): Add declaration.
10479 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10480 (auto_language, local_language): Likewise.
10481 * objc-lang.c (objc_language_defn): Likewise.
10482 * scm-lang.c (scm_language_defn): Likewise.
10483 * m2-lang.c (m2_language_defn): Likewise.
10484 * f-lang.c (f_language_defn): Likewise.
10485 * jv-lang.c (java_language_defn): Likewise.
10486 * p-lang.c (pascal_language_defn): Likewise.
10487 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10488 (minimal_language_defn): Likewise.
10489 * ada-lang.c (struct string_vector): New structure.
10490 (new_string_vector, string_vector_append, ada_unqualified_name)
10491 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10492 (ada_make_symbol_completion_list): New functions.
10493 (ada_language_defn): Set la_make_symbol_completion_list.
10494 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10495 this function is static.
10496
ee3a2f01
KB
104972008-02-05 Kevin Buettner <kevinb@redhat.com>
10498
10499 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10500 to account for call site optimizations.
10501
d844e34b
JB
105022008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10503
10504 * tracepoint.c (read_actions): Handle end-of-text indicator
10505 in action list properly. (Committed by Jim Blandy)
10506
02e4669d
JB
105072008-02-05 Jim Blandy <jimb@red-bean.com>
10508
10509 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10510 pseudoregister, not an internal error.
85ecb32b 10511 Reported by: Andrzej Zaborowski
02e4669d 10512
c39c8256
VP
105132008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10514
10515 * varobj.c (c_value_of_variable): Use xstrdup.
10516
ae7d22a6
VP
105172008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10518
10519 Update stored rendition of varobj value when format changes.
10520 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10521 print_value.
10522 (c_value_of_variable): Return print_value.
ae7d22a6 10523
81fe8080
DE
105242008-02-03 Doug Evans <dje@google.com>
10525
301f0ecf
DE
10526 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10527 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10528 * valops.c (value_one): New function.
10529 * value.h (value_one): Declare.
10530
10531 Fix argument promotion for binary arithmetic ops for C.
10532 * valarith.c (unop_result_type): New fn.
10533 (binop_result_type): New fn.
10534 (value_binop): Move result type computation to binop_result_type.
10535 (value_pos, value_neg, value_complement): Move result type
10536 computation to unop_result_type.
10537
81fe8080
DE
10538 PR 2384
10539 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10540 Return basetype, fieldno if found. All callers updated.
10541 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10542 objfile.
10543 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10544 * symfile.h (fill_in_vptr_fieldno): Delete.
10545
41808ebe
DE
105462008-02-02 Doug Evans <dje@google.com>
10547
f8597ac3
DE
10548 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10549
41808ebe
DE
10550 * typeprint.c (*): Whitespace cleanup.
10551
f964a756
MK
105522008-02-02 Mark Kettenis <kettenis@gnu.org>
10553 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10554 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10555
10556 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10557 don't fit into registerson the stack the way GCC does.
10558
b06ead72
JB
105592008-02-01 Joel Brobecker <brobecker@adacore.com>
10560
10561 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10562 hash table for Ada symbols. Just store the linkage name as is,
10563 and leave the demangled_name as NULL.
10564
2cfa0c8d
JB
105652007-02-01 Joel Brobecker <brobecker@adacore.com>
10566
10567 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10568 in the global scope.
10569 (new_symbol): Likewise.
10570
98deb0da 105712008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10572
10573 * breakpoint.c (break_command_1): Return void.
10574 (break_command_really): Return void. Rethrow
10575 exceptions instead of returning.
10576 (gdb_breakpoint): Remove the error_message parameter.
10577 Return void. Rename to set_breakpoint.
10578 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10579 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10580 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10581 event hooks even if exception is thrown. Adjust to
10582 gdb_breakpoint interface changes.
10583
98deb0da 10584
ce0451ad
TJB
105852008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10586
10587 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10588 float in both first and second word in the doubleword, to support
10589 old and new ABIs.
10590
723a2275
VP
105912008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10592
10593 Properly rethrow exception. This fixes errors
10594 about non-existent functions for -break-insert.
680b56ce
AS
10595 * breakpoint.c (break_command_really): Use throw_exception
10596 for rethrowing. If rethrowing, don't print the exception.
723a2275 10597
d64a946d
TJB
105982008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10599
10600 * NEWS: Mention Decimal Floating Point support.
10601
02b156f5
JB
106022008-01-31 Joel Brobecker <brobecker@adacore.com>
10603
10604 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10605 value type to builtin_type_void_func_ptr.
10606
a16b8bcd
UW
106072008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10608
10609 * s390-tdep.c (is_float_singleton, is_float_like,
10610 alignment_of, s390_return_value): Make checks for
10611 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10612
f949c649
TJB
106132008-01-31 Luis Machado <luisgpm@br.ibm.com>
10614 Thiago Jung Bauermann <bauerman@br.ibm.com>
10615
10616 * infcmd.c (default_print_registers_info): Also print hex
10617 raw contents for TYPE_CODE_DECFLOAT registers.
10618 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10619 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10620 (rs6000_register_name): Add support for DFP pseudo-registers.
10621 (rs6000_pseudo_register_type): Likewise.
10622 rs6000_pseudo_register_reggroup_p): Likewise.
10623 (ppc_pseudo_register_read): New function.
10624 (ppc_pseudo_register_write): Likewise.
10625 (rs6000_pseudo_register_read): Likewise.
10626 (rs6000_pseudo_register_write): Likewise.
10627 (e500_pseudo_register_read): Move checks to
10628 rs6000_pseudo_register_read.
10629 (e500_pseudo_register_write): Move checks to
10630 rs6000_pseudo_register_write.
10631 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10632 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10633 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10634 num_pseudo_regs to account for DFP pseudo regs.
10635
5a9e69ba
TJB
106362008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10637
10638 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10639 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10640 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10641 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10642 e500_pseudo_register_read, e500_pseudo_register_write): Use
10643 IS_SPE_PSEUDOREG macro.
10644 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10645 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10646 Remove initialization of tdep->ppc_ev31_regnum.
10647
4e885b20
JB
106482008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10649
10650 * printcmd.c (print_formatted): Handle references as for unformatted
10651 prints.
10652
80f064a2
JB
106532008-01-30 Joel Brobecker <brobecker@adacore.com>
10654
10655 * eval.c (evaluate_subexp_standard): Add handling of user
10656 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10657
9b3442ee
PM
106582008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10659
10660 * eval.c (evaluate_subexp_standard): Support
10661 BINOP_INTDIV opcode.
10662
d118ef87
PH
106632008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10664
10665 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10666 BINOP_MAX cases.
10667 For BINOP_EXP, use length and signedness of left operand only for
10668 result, as for shifts.
10669 For integral operands to BINOP_EXP, use new integer_pow and
10670 uinteger_pow functions so as to get full range of results.
10671 (integer_pow): New function.
10672 (uinteger_pow): New function.
10673
d56d46f5
VP
106742008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10675
10676 Use vector for varobj_list_children interface.
680b56ce
AS
10677 * gdb/varobj.c (varobj_list_children): Return vector
10678 of varobjs.
10679 * gdb/varobj.h (varobj_list_children): Adjust
10680 prototype.
10681 (varobj_p): Declare. Declare vector thereof.
10682 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10683 for varobj_list_children change.
d56d46f5
VP
10684 * Makefile.in (varobj_h): Update dependencies.
10685
1300a2f4
TJB
106862008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10687
10688 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10689 TYPE_CODE_DECFLOAT arguments.
10690 (ppc64_sysv_abi_push_dummy_call) Likewise.
10691 (get_decimal_float_return_value): New function.
10692 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10693 values by calling get_decimal_float_return_value.
10694 (ppc64_sysv_abi_return_value): Likewise.
10695
95ef687d
NR
106962008-01-30 Nick Roberts <nickrob@snap.net.nz>
10697
10698 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10699 for preprocessor macro information. Formatting changes.
10700
2d717e4f
DJ
107012008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10702
10703 * remote.c (struct remote_state): Add cached_wait_status.
10704 (remote_exec_file): New variable.
10705 (PACKET_vAttach, PACKET_vRun): New constants.
10706 (extended_remote_restart): Do not query for status.
10707 (struct start_remote_args): New.
10708 (remote_start_remote): Take it as a second argument. Check
10709 whether the target is running. Issue an error for non-running
10710 non-extended targets. Cache the wait status. Set inferior_ptid
10711 here.
10712 (remote_open_1): Prompt to disconnect non-running targets. Make
10713 sure the target is marked running. Do not set inferior_ptid here.
10714 Update call to remote_start_remote. Do not call remote_check_symbols
10715 if the target is not running.
10716 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10717 argument. Handle a non-running target.
10718 (remote_detach): Use it.
10719 (extended_remote_detach): New.
10720 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10721 (extended_remote_attach_1, extended_remote_attach)
10722 (extended_async_remote_attach): New.
10723 (remote_vcont_resume): Remove unused variable.
10724 (remote_wait, remote_async_wait): Use any cached wait status.
10725 (putpkt_binary, getpkt): Clear any cached wait status.
10726 (extended_remoute_mourn_1): New.
10727 (extended_remote_mourn): Use it.
10728 (extended_async_remote_mourn, extended_remote_run): New.
10729 (extended_remote_create_inferior_1): New.
10730 (extended_remote_create_inferior): Use it.
10731 (extended_remote_async_create_inferior): Likewise.
10732 (remote_xfer_partial): Skip for non-executing targets.
10733 (init_extended_remote_ops): Set to_detach and to_attach.
10734 (init_extended_async_remote_ops): Likewise. Use
10735 extended_async_remote_mourn.
10736 (_initialize_remote): Register vAttach, vRun, and
10737 set remote exec-file.
10738 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10739
e85a822c
DJ
107402008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10741
10742 * Makefile.in (symfile.o): Update.
10743 * NEWS: Mention exec tracing support.
10744 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10745 exec events.
10746 * infcmd.c (kill_if_already_running, detach_command)
10747 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10748 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10749 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10750 targets. Apply the sysroot path to the loaded executable. Use
10751 no_shared_libraries.
10752 * linux-nat.c (linux_child_follow_fork): Print fork following
10753 messages if verbose.
10754 (kill_wait_callback): Kill again before waiting a second time.
10755 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10756 no_shared_libraries.
10757
9db13498
JB
107582008-01-29 Joel Brobecker <brobecker@adacore.com>
10759
10760 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10761
b4d5ed91
JB
107622008-01-29 Joel Brobecker <brobecker@adacore.com>
10763
10764 * nto-tdep.h: Remove #include "defs.h".
10765 * nto-tdep.c: Add #include "defs.h".
10766 * Makefile.in (nto_tdep_h): Update dependencies.
10767 (nto-tdep.o): Likewise.
10768
107313f7 107692008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10770
10771 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10772 and use it.
10773 (proceed, start_remote): Update call to wait_for_inferior.
10774 * inferior.h (wait_for_inferior): Update declaration.
10775 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10776 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10777 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10778 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10779
3f4178d6
DJ
107802008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10781
680b56ce 10782 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10783 returned value from gdb_value_ind.
10784 (c_describe_child): Likewise.
10785 (cplus_describe_child): Fixed a typo.
10786
5eeba8d4
JB
107872008-01-29 Jim Blandy <jimb@red-bean.com>
10788
10789 * MAINTAINERS: Update my info.
10790
a5606eee
VP
107912008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10792
10793 Use multiple locations for hardware watchpoints.
10794 This eliminates the need to traverse value chain, doing
10795 various checks, in three different places.
10796
680b56ce
AS
10797 * breakpoint.h (struct bp_location): New fields
10798 lengths and watchpoint_type.
10799 (struct breakpoint): Remove the val_chain field.
10800 * breakpoint.c (is_hardware_watchpoint): New.
10801 (free_valchain): Remove.
10802 (update_watchpoint): New.
10803 (insert_bp_location): For hardware watchpoint, just
10804 directly insert it.
10805 (insert_breakpoints): Call update_watchpoint_locations
10806 on all watchpoints. If we have failed to insert
10807 any location of a hardware watchpoint, remove all inserted
10808 locations.
10809 (remove_breakpoint): For hardware watchpoints, directly
10810 remove location.
10811 (watchpoints_triggered): Iterate over locations.
10812 (bpstat_stop_status): Use only first location of
10813 a resource watchpoint.
10814 (delete_breakpoint): Don't call free_valchain.
10815 (print_one_breakpoint): Don't print all
10816 locations for watchpoints.
10817 (breakpoint_re_set_one): Use update_watchpoint for
10818 watchpoints.
a5606eee 10819
0b3de036
VP
108202008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10821
10822 Don't reset watchpoint block on solib load.
10823
680b56ce
AS
10824 * breakpoint.c (insert_bp_location): For watchpoints,
10825 recompute condition.
10826 (breakpoint_re_set_one): Instead of recomputing value
10827 and condition for watchpoints, just reset value and
10828 let insert_breakpoints/insert_bp_location recompute it.
10829 Don't do anything about disabled watchpoint.
0b3de036 10830
c3940723
PM
108312008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10832
10833 * valarith.c (value_binop): Handle unsigned integer
10834 division by zero.
10835
83845630
KB
108362008-01-28 Kevin Buettner <kevinb@redhat.com>
10837
10838 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10839 instruction pattern that appears frequently in position
10840 independent code. Fix bug in code which looks for "fmov" and
10841 backtracks if no "fmov" is found.
10842
9ce5d3bb
DE
108432008-01-28 Doug Evans <dje@google.com>
10844
10845 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10846 Reformat comments to 80 columns.
10847 Move local var def closer to only use.
9ce5d3bb 10848
c78d192c
DJ
108492008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10850
10851 * fork-child.c (SHELL_FILE): Remove #ifndef.
10852 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10853
e11481da
PM
108542008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10855
10856 * i386-tdep.c (i386_skip_noop): New function.
10857 (i386_analyze_prologue): Call i386_skip_noop function.
10858
244e85c8
MS
108592008-01-24 Michael Snyder <msnyder@specifix.com>
10860
10861 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10862 * win32-nat.c (win32_xfer_partial): Ditto.
10863 * target.c (default_xfer_partial): Minor whitespace adjustment.
10864
dd6be234
PA
108652008-01-24 Pedro Alves <pedro@codesourcery.com>
10866
10867 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10868 strip bit 1 even if pc doesn't point to thumb code.
10869
9fa2223d
DJ
108702008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10871
10872 * remote.c (remote_wait): Handle SIGINT between packets.
10873 (remote_async_wait): Likewise.
10874
93815fbf
VP
108752008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10876 Chris Demetriou <cgd@google.com>
10877
680b56ce
AS
10878 * thread.c (add_thread_silent): Renamed
10879 from add_thread.
10880 (print_thread_events): New variable definition.
10881 (show_print_thread_events): New function.
10882 (_initialize_thread): Add "set print thread-events" and
10883 "show print thread-events" commands.
10884 (add_thread): Announce new thread.
10885 * gdbthread.h (add_thread_silent): Declare.
10886 (print_thread_events): New variable declaration.
10887 * inf-ttrace.c (inf_ttrace_wait): Don't
10888 inform about new thread, as add_thread is always
10889 called too, and will take care of that.
10890 * infrun.c (handle_inferior_event): Likewise.
10891 * procfs.c (procfs_wait): Likewise.
10892 * remote.c (remote_currthread): Likewise.
10893 * sol-thread.c (sol_thread_wait): Likewise.
10894 * win32-nat.c (get_win32_debug_event): Likewise.
10895 * linux-thread-db.c (attach_thread): Likewise.
10896 Remove the verbose parameter.
10897 (check_event): Make detach_thread be verbose
10898 only if print_thread_events is set.
10899 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10900 about new thread. This is called only from
10901 linux-thread-db.c:attach_thread, which will take care.
10902 Remove the verbose parameter.
10903 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10904
b4d7c9a6
NR
109052008-01-23 Nick Roberts <nickrob@snap.net.nz>
10906
10907 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10908
60c46647
VP
109092008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10910
10911 * breakpoint.c (break_command_really): New parameter
10912 ignore_count.
10913 (break_command_1): Pass 0 as
10914 ignore_count to break_command_really.
10915 (gdb_breakpoint): Pass ignore_count to
10916 break_command_really.
10917
e84605cd
KB
109182008-01-21 Kevin Buettner <kevinb@redhat.com>
10919
10920 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10921 sigcontext struct via pointer.
10922 (struct sigframe comment): Update to show new field `psc'.
10923
9d9cd7ac
VP
109242008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10925
10926 * infrun.c (handle_inferior_event): If
10927 we failed to remove breakpoints, error,
10928 don't try to increment PC by hand.
10929
af5ca30d
NH
109302008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10931
10932 Add NetBSD/hppa target and host support.
10933
10934 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10935 (hppabsd_gregset): Move to ...
10936 (hppabsd_regset_from_core_section): Rename
10937 hppaobsd_regset_from_core_section and move to ...
10938 (hppabsd_find_global_pointer): Update comment.
10939 (hppabsd_init_abi): Make global. Do not register
10940 hppabsd_regset_from_core_section.
10941 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10942 move to ...
10943 (_initialize_hppabsd_tdep): Move to ...
10944 * hppaobsd-tdep.c: ... here. New file.
10945 * hppnbsd-tdep.c: New file.
10946 * hppnbsd-nat.c: New file.
680b56ce 10947 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10948 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10949 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10950 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10951 * configure.host (hppa*-*-netbsd*): New entry.
10952 * configure.tgt (hppa*-*-netbsd*): New entry.
10953 (hppa*-*-openbsd*): Update.
10954 * NEWS (New native configuration): Mention NetBSD/hppa.
10955 (New targets): Mention NetBSD/hppa.
10956
32c9a795
MD
109572008-01-18 Markus Deuling <deuling@de.ibm.com>
10958
10959 * gdbarch.sh (function_list): Add new property bits_big_endian to
10960 gdbarch structure.
10961 * gdbarch.{c,h}: Regenerate.
10962
10963 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10964 gdbarch_bits_big_endian (comment).
10965 (unpack_field_as_long, modify_field): Likewise.
10966 * value.h: Likewise (comment).
10967 * valops.c (value_slice): Likewise.
10968 * valarith.c (value_subscript, value_bit_index): Likewise.
10969 * gdbtypes.h (field): Likewise (comment).
10970 * eval.c (evaluate_subexp_standard): Likewise.
10971 * dwarf2read.c (dwarf2_add_field): Likewise.
10972 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10973 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10974
32c9a795
MD
10975 * defs.h (BITS_BIG_ENDIAN): Remove.
10976
1e5e79d0
MD
109772008-01-18 Markus Deuling <deuling@de.ibm.com>
10978
10979 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10980 function calls.
10981 * m2-exp.y (yylex): Likewise.
10982 * objc-exp.y (yylex): Likewise.
10983
10984 * defs.h (DEPRECATED_STREQN): Remove.
10985
fabda5a7
L
109862008-01-17 H.J. Lu <hjl.tools@gmail.com>
10987
10988 * MAINTAINERS: Update my email address.
10989
92726479
JB
109902008-01-17 Jim Blandy <jimb@codesourcery.com>
10991
10992 * README: Mention gdbserver/README.
10993
ef80d18e
PM
109942008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10995
10996 * valarith.c (value_binop): Handle BINOP_INTDIV
10997 for unsigned and signed integers.
10998
1de90795
UW
109992008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
11000
11001 * s390-tdep.c (s390_gdbarch_init): Set default long double
11002 type to 128-bit IEEE quad.
11003
c70bd6f3
JB
110042008-01-17 Joel Brobecker <brobecker@adacore.com>
11005
11006 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
11007
ba759613
MK
110082008-01-16 Mark Kettenis <kettenis@gnu.org>
11009
77d49ac6
MK
11010 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
11011
ba759613
MK
11012 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
11013 * value.c: All callers changed.
11014
7ecb6532
MD
110152008-01-16 Markus Deuling <deuling@de.ibm.com>
11016
11017 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
11018 DEPRECATED_STREQ by its expression.
11019 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
11020 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
11021 (scan_xcoff_symtab): Likewise.
11022 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
11023 * f-lang.c (find_common_for_function): Likewise.
11024 * objc-exp.y (parse_number): Likewise.
11025
11026 * defs.h (DEPRECATED_STREQ): Remove.
11027
d15cf01c
MD
110282008-01-16 Markus Deuling <deuling@de.ibm.com>
11029
11030 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
11031 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
11032 get_frame_arch to get at the current_architecture. Update AM33_MODE
11033 call.
11034 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
11035 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
11036 architecture.
11037 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
11038
f8028488
MD
110392008-01-16 Markus Deuling <deuling@de.ibm.com>
11040
680b56ce 11041 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
11042 parameter.
11043 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
11044
11045 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
11046 current_gdbarch by gdbarch. Update caller.
11047
11048 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
11049 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
11050 the current architecture. Update calls of
11051 amd64_native_gregset_supplies_p.
11052 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
11053 (amd64bsd_store_inferior_registers): Likewise.
11054
e101270f
MD
110552008-01-16 Markus Deuling <deuling@de.ibm.com>
11056
11057 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
11058 Replace current_gdbarch by gdbarch. Update caller.
11059
063e58ba
MD
110602008-01-16 Markus Deuling <deuling@de.ibm.com>
11061
11062 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
11063 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
11064 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
11065 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
11066 (stabsect_build_psymtabs): Fix indentation.
11067
662fb31b
MS
110682008-01-15 Michael Snyder <msnyder@specifix.com>
11069
11070 * corelow.c (core_xfer_partial): Comment, cut/paste error.
11071
c1766e7d
PM
110722008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11073
11074 * win32-nat.c (win32_create_inferior): Restore code calling
11075 CloseHandle on ProcessInformation structure.
11076
5ed10e6e
NH
110772008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
11078
11079 * configure.ac: Check for void * as 3 argument of ptrace.
11080 * configure: regenerate.
11081
be8626e0
MD
110822008-01-11 Markus Deuling <deuling@de.ibm.com>
11083
11084 * alpha-tdep.c (alpha_heuristic_proc_start)
11085 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
11086 current_gdbarch by gdbarch.
11087
11088 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 11089 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
11090 call.
11091
11092 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
11093 get_frame_arch to get at the current architecture by frame_info. Update
11094 alpha_sigtramp_register_address call.
11095
11096 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
11097 current_gdbarch by gdbarch. Update caller.
11098 (convert_to_extended, convert_from_extended): Add endianess parameter
11099 for comparison. Update caller.
11100 (arm_extract_return_value, arm_store_return_value): Use
11101 get_regcache_arch to get at the current architecture.
11102
11103 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
11104 current_gdbarch by gdbarch. Update caller.
11105 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
11106 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
11107
11108 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 11109 gdbarch as parameter. Update caller.
be8626e0
MD
11110 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
11111 current_gdbarch by gdbarch. Update caller.
11112
680b56ce 11113 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
11114 update caller. Replace current_gdbarch by gdbarch.
11115
11116 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
11117 the current architecture. Replace current_gdbarch by gdbarch.
11118 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
11119 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
11120 expression. Add gdbarch as parameter and replace current_gdbarch with
11121 it. Update caller.
11122 (M6811_TDEP): Remove.
11123 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
11124 architecture.
680b56ce 11125 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
11126 current_gdbarch by gdbarch. Update caller.
11127
11128 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
11129 update caller.
11130 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
11131 by gdbarch.
11132
11133 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
11134 caller. Relace current_gdbarch by gdbarch.
11135 (altivec_register_p, spe_register_p): Likewise.
11136 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
11137 parameter.
11138 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
11139 altivec_register_p and spe_register_p.
11140
680b56ce 11141 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
11142 caller. Replace current_gdbarch by gdbarch.
11143 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 11144 architecture.
be8626e0
MD
11145
11146 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
11147 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
11148 current_gdbarch by gdbarch. Update caller.
11149 (sparc_frame_cache): Use get_frame_arch to get at the current
11150 architecture.
11151 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
11152 sparc_analyze_prologue.
11153
11154 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
11155 parameter.
11156
ed49a04f
MD
111572008-01-11 Markus Deuling <deuling@de.ibm.com>
11158
11159 * exec.c: #include "arch-utils.h"
11160 (print_section_info): Use gdbarch_from_bfd to get at the
11161 current architecture. Replace current_gdbarch. Fix indention. Replace
11162 deprecated_print_address_numeric by paddress.
11163 * Makefile.in (exec.o) Add dependency to arch-utils.h.
11164
680b56ce 11165 * valprint.c (val_print_string): Replace
ed49a04f
MD
11166 deprecated_print_address_numeric.
11167 * tracepoint.c (trace_mention, scope_info): Likewise.
11168 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
11169 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
11170 (maintenance_check_symtabs): Likewise.
11171 * symfile.c (list_overlays_command): Likewise.
11172 * stack.c (frame_info, print_block_frame_labels): Likewise.
11173 * printcmd.c (print_address, print_address_demangle)
11174 (address_info): Likewise.
11175 * corefile.c (memory_error): Likewise.
11176 * infcmd.c (jump_command): Likewise.
11177 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
11178 (mention, delete_breakpoint): Likewise.
11179 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
11180 * dwarf2read.c (dump_die): Likewise.
11181 * ada-valprint.c (ada_val_print_1): Likewise.
11182 * f-valprint.c (f_val_print): Likewise.
680b56ce 11183 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
11184 * m32r-com.c (m32r_load_section, m32r_load)
11185 (m32r_upload_command): Likewise.
11186
11187 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
11188
6093d2eb
MD
111892008-01-11 Markus Deuling <deuling@de.ibm.com>
11190
11191 * gdbarch.sh (skip_prologue): Add gdbarch
11192 as parameter.
11193 * gdbarch.{c,h}: Regenerate.
11194
11195 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
11196 * amd64-tdep.c (amd64_skip_prologue): Likewise.
11197 * avr-tdep.c (avr_skip_prologue): Likewise.
11198 * cris-tdep.c (cris_skip_prologue): Likewise.
11199 * frv-tdep.c (frv_skip_prologue): Likewise.
11200 * h8300-tdep.c (h8300_skip_prologue): Likewise.
11201 * hppa-tdep.c (hppa_skip_prologue): Likewise.
11202 * i386-tdep.c (i386_skip_prologue): Likewise.
11203 * ia64-tdep.c (ia64_skip_prologue): Likewise.
11204 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
11205 * m32r-tdep.c (m32r_skip_prologue): Likewise.
11206 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
11207 * m68k-tdep.c (m68k_skip_prologue): Likewise.
11208 * m88k-tdep.c (m88k_skip_prologue): Likewise.
11209 * mep-tdep.c (mep_skip_prologue): Likewise.
11210 * mips-tdep.c (mips_skip_prologue): Likewise.
11211 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
11212 * mt-tdep.c (mt_skip_prologue): Likewise.
11213 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
11214 * score-tdep.c (score_skip_prologue): Likewise.
11215 * sh64-tdep.c (sh64_skip_prologue): Likewise.
11216 * sh-tdep.c (sh_skip_prologue): Likewise.
11217 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
11218 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
11219 * spu-tdep.c (spu_skip_prologue): Likewise.
11220 * v850-tdep.c (v850_skip_prologue): Likewise.
11221 * vax-tdep.c (vax_skip_prologue): Likewise.
11222 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
11223 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
11224
11225 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
11226 current_gdbarch by gdbarch.
11227 * m32c-tdep.c (m32c_skip_prologue): Likewise.
11228 * s390-tdep.c (s390_skip_prologue): Likewise.
11229
72f5cf0e
DE
112302008-01-10 Doug Evans <dje@google.com>
11231
11232 * defs.h (struct continuation_arg): Fix typo in comment.
11233 * target.c (target_translate_tls_address): Fix comment spelling error.
11234
689e4e2d
TJB
112352008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
11236
11237 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
11238 (DOUBLEST_SCAN_FORMAT): Likewise.
11239 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
11240 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
11241 * c-exp.y (parse_number): Likewise.
11242 * jv-exp.y (parse_number): Likewise.
11243 * objc-exp.y (parse_number): Likewise.
11244 * p-exp.y (parse_number): Likewise.
11245
ab0d6e0d
JB
112462008-01-09 Joel Brobecker <brobecker@adacore.com>
11247
11248 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
11249 (check_typedef): Likewise.
11250
0aea4bf3
LM
112512008-01-09 Luis Machado <luisgpm@br.ibm.com>
11252
11253 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
11254 seen_double_big_d, treat the new H, D, and DD modifiers as length
11255 modifiers.
11256
137033e9
JB
112572008-01-08 Joel Brobecker <brobecker@adacore.com>
11258
11259 * dwarf2read.c (read_enumeration_type): Add comment.
11260
dda297ec
TJB
112612008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
11262
11263 * config.in: Regenerate.
11264
a93c0eb6
JB
112652008-01-08 Joel Brobecker <brobecker@adacore.com>
11266
11267 * ada-lang.c (ada_convert_actual): Renames convert_actual.
11268 Make non-static.
11269 (ada_convert_actuals): Delete.
11270 * ada-lang.h (ada_convert_actual): Add declaration.
11271 (ada_convert_actuals): Remove declaration.
11272 * infcall.c: #include "ada-lang.h".
11273 (value_arg_coerce): Add new parameter sp. Update function
11274 documetnation. Add handling of Ada function call parameters.
11275 * Makefile.in (infcall.o): Update dependencies.
11276
a84a8a0d
JB
112772008-01-08 Paul Hilfinger <hilfinger@adacore.com>
11278
11279 * ada-lang.c (ensure_lval): Fix value lval kind.
11280 (convert_actual): Add handling for arguments passed by reference.
11281
d7f98cce
DE
112822008-01-08 Doug Evans <dje@google.com>
11283
11284 * dbxread.c (read_dbx_symtab): Fix indentation.
11285
4ef30785
TJB
112862008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
11287
11288 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
11289 (valarith.o): Depend on dfp.h.
11290 (valops.o): Likewise.
11291 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
11292 (set_decnumber_context): New function.
11293 (decimal_check_errors): Likewise.
11294 (decimal_from_number): Likewise.
11295 (decimal_to_number): Likewise.
11296 (decimal_from_string): Use set_decnumber_context and
11297 decimal_check_errors.
11298 (decimal_from_integral): New function.
11299 (decimal_from_floating): Likewise.
11300 (decimal_to_double): Likewise.
11301 (promote_decimal): Likewise.
11302 (decimal_binop): Likewise.
11303 (decimal_is_zero): Likewise.
11304 (decimal_compare): Likewise.
11305 (decimal_convert): Likewise.
11306 * dfp.h (decimal_from_integral): New prototype.
11307 (decimal_from_floating): Likewise.
11308 (decimal_to_double): Likewise.
11309 (decimal_binop): Likewise.
11310 (decimal_is_zero): Likewise.
11311 (decimal_compare): Likewise.
11312 (decimal_convert): Likewise.
11313 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
11314 call to value_from_decfloat.
11315 * valarith.c: Include dfp.h.
11316 (value_args_as_decimal): New function.
11317 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
11318 (value_logical_not): Likewise.
11319 (value_equal): Likewise.
11320 (value_less): Likewise.
11321 (value_pos): Likewise.
11322 (value_neg): Formatting fix.
11323 * valops.c: Include dfp.h.
11324 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
11325 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
11326 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
11327 (value_from_decfloat): Remove expect_type argument.
11328 * value.h (value_from_decfloat): Update prototype.
11329
a7c02bc8
VP
113302008-01-07 Vladimir Prus <vladimir@codesourcery.com>
11331
11332 Ignore change in name of dynamic linker during
11333 execution on Solaris. This also unbreaks pending breakpoints.
11334
11335 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
11336 * solib-svr4.c (svr4_same): New.
11337 (_initialize_svr4_solib): Register svr4_same.
11338 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 11339
610dd7f9
CF
113402008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
11341
11342 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
11343 when using MS-DOS paths.
11344
7a404eba
PA
113452008-01-05 Pedro Alves <pedro@codesourcery.com>
11346
11347 * NEWS: Mention --pid and --core command line behaviour changes.
11348
a4d9b460
PA
113492008-01-05 Pedro Alves <pedro@codesourcery.com>
11350
11351 * main.c (captured_main): Remove 'count' varible and the
11352 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
11353 --pid options were issued simultaneously. If an explicit pid
11354 option was passed, don't fallback to core file. Detect extra
11355 arguments better in the presence of explicit pid or core
11356 arguments.
11357
0c281816
JB
113582008-01-05 Joel Brobecker <brobecker@adacore.com>
11359
11360 * ada-lang.c (ada_which_variant_applies): Correctly compute
11361 the value of the discriminant when the variant record is packed.
11362
babe1480
JB
113632008-01-04 Joel Brobecker <brobecker@adacore.com>
11364
11365 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
11366 that are used to differentiate homonyms.
11367
727e3d2e
JB
113682008-01-04 Jerome Guitton <guitton@adacore.com>
11369
11370 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
11371 when the type is an anonymous pointer type.
11372 (ada_check_typedef): Avoid a seg fault when the type is null.
11373 * ada-typeprint.c (print_array_type): Add support for pointer
11374 to packed arrays.
11375
bb28a9dc
JB
113762008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
11377
680b56ce 11378 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 11379
6799def4
JB
113802008-01-04 Joel Brobecker <brobecker@adacore.com>
11381
11382 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
11383 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
11384
d3353bbd
JB
113852008-01-04 Joel Brobecker <brobecker@adacore.com>
11386
11387 * ada-exp.y (chop_separator): New function.
11388 (write_selectors): Rewrite to re-use chop_separator.
11389 (ada_nget_field_index, get_symbol_field_type): New functions.
11390 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
11391 expressions.
11392
82cf6c60
TJB
113932008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
11394
11395 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
11396 of SYMBOL_VALUE when working with function symbols.
11397
b3dbf008
JB
113982008-01-03 Joel Brobecker <brobecker@adacore.com>
11399
11400 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
11401 expressions. These expressions do not need to be rewriten.
11402
02eb380e
JB
114032008-01-03 Joel Brobecker <brobecker@adacore.com>
11404
11405 * dwarf2read.c (read_enumeration_type): Flag type as stub if
11406 the given die is a declaration.
11407
abb68b3e
JB
114082008-01-03 Joel Brobecker <brobecker@adacore.com>
11409
11410 * ada-lang.c (ada_array_bound_from_type): Make non-static.
11411 Handle properly the case when the index type is an enumerated type.
11412 Do not return the subtype of the bounds type, just return the
11413 bounds type directly - this is not needed and is more consistent
11414 with what we do for arrays when no XA parallel type exists.
11415
f192137b
JB
114162008-01-03 Joel Brobecker <brobecker@adacore.com>
11417
11418 * ada-lang.c (static_unwrap_type): Add forward declaration.
11419 (template_to_static_fixed_type): Fields of dynamic types sometimes
11420 also need to be unwrapped. Take this into account.
11421 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11422 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11423 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 11424 the original type, not the base type.
f192137b 11425
1ed6ede0
JB
114262008-01-03 Jerome Guitton <guitton@adacore.com>
11427
11428 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 11429 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
11430 Update calls to ada_to_fixed_type.
11431 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11432 for the tag.
11433 (ada_to_fixed_type): Add check_tag parameter; do not look for
11434 tag if null. When looking for a tag, use a fixed record type.
11435 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11436 * ada-valprint.c (printable_val_type, ada_value_print): Update
11437 calls to ada_to_fixed_type.
11438
542a88d0
LM
114392008-01-03 Luis Machado <luisgpm@br.ibm.com>
11440
680b56ce 11441 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
11442 floatformat_to_doublest instead of floatformat_to_double and use
11443 DOUBLEST variables.
11444 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11445 instead of floatformat_from_double and use DOUBLEST variables.
11446
dc2bbab2
NH
114472008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11448
11449 * MAINTAINERS (Write After Approval): Add self.
11450
8b60591b
JB
114512008-01-03 Joel Brobecker <brobecker@adacore.com>
11452
11453 * symfile.c (set_initial_language): Make non-static.
11454 * symfile.h (set_initial_language): Add declaration.
11455 * language.c: #include "symfile.h".
11456 (set_language): Call set_initial_language if the frame language
11457 could not be determined.
11458
ceef53c1
JB
114592008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11460
11461 * eval.c (evaluate_subexp_for_address): Provide frame address to
11462 locate_var_value only if it will be needed.
11463
ef29ce1a
JK
114642008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11465
11466 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11467
0a07e705
JB
114682008-01-02 Joel Brobecker <brobecker@adacore.com>
11469
11470 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11471 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11472 This is needed to make sure that any other treatment applied
11473 to the resulting value does not fail for spurious reason,
11474 such as trying to take the address of this value.
11475
f58b38bf
JB
114762008-01-02 Joel Brobecker <brobecker@adacore.com>
11477
11478 * ada-lang.c (ada_value_equal): Dereference reference types when
11479 comparing arrays.
680b56ce 11480
9b254dd1
DJ
114812008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11482
11483 Updated copyright notices for most files.
11484
33605d39
CF
114852008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11486
11487 * win32-nat.c (psapi_module_handle): Remove static.
11488 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11489 return first module found if base_address is zero. Don't initialize
11490 psapi function pointers here. Convert to cygwin paths when
11491 appropriate.
11492 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11493 executable name. Use get_module_name when that fails or when
11494 !__CYGWIN__.
11495 (_initialize_psapi): New function. Initialize psapi stuff before it is
11496 needed or issue a warning if it is not found. Move psapi_module_handle
11497 here.
11498
29480c32
JB
114992008-01-01 Joel Brobecker <brobecker@adacore.com>
11500
11501 * ada-lang.c (ada_remove_trailing_digits): New function.
11502 (ada_remove_po_subprogram_suffix): New function.
11503 (ada_decode): Improve. Move the description of the algorithm
11504 directly inside the code, instead of in the function global
11505 description.
11506
969a1360
JB
115072008-01-01 Joel Brobecker <brobecker@adacore.com>
11508
11509 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11510 and always print the dereferenced value.
11511
b7789565
JB
115122008-01-01 Joel Brobecker <brobecker@adacore.com>
11513
11514 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11515 of the case where the first argument is a reference.
11516 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11517
73fb9985
JB
115182008-01-01 Joel Brobecker <brobecker@adacore.com>
11519
11520 Implement support for Ada interface types.
11521
11522 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11523 (ada_is_ignored_field): Ignore fields that are a dispatch table
11524 of a tagged type.
11525
636265b6
JB
115262008-01-01 Joel Brobecker <brobecker@adacore.com>
11527
11528 * top.c (print_gdb_version): Update copyright year.
11529
9d200a2e 115302008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11531
9d200a2e
JB
11532 * ChangeLog-2007: New ChangeLog rotation.
11533 * ChangeLog: Reset for 2008.
11534 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11535 ChangeLog-2007.
b7589f7d 11536
9d200a2e 11537For older changes see ChangeLog-2007.
c906108c
SS
11538\f
11539Local Variables:
11540mode: change-log
11541left-margin: 8
11542fill-column: 74
11543version-control: never
57da7796 11544coding: utf-8
c906108c 11545End: