* breakpoint.c (update_watchpoint): Adjust and extend the description
[binutils-gdb.git] / gdb / ChangeLog
1 2008-12-22 Joel Brobecker <brobecker@adacore.com>
2
3 * breakpoint.c (update_watchpoint): Adjust and extend the description
4 of this function. Fix one error message accordingly.
5
6 2008-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 Fix hw watchpoints created before the inferior was started.
9 * breakpoint.c (update_watchpoint): Convert the bp_watchpoint and
10 bp_hardware_watchpoint types according to the current runtime state.
11
12 2008-12-18 Pedro Alves <pedro@codesourcery.com>
13
14 * linux-nat.c (linux_child_follow_fork): If following the child,
15 and not detaching the parent, also add the child fork to the fork
16 list.
17 * linux-fork.c (linux_fork_context): Remove dead error call.
18 Assert that the incoming newfp argument is not null. Do not add a
19 new fork for inferior_ptid. Assert that there is one already.
20
21 2008-12-16 Tristan Gingold <gingold@adacore.com>
22
23 * inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
24 set_sigio_trap, clear_sigio_trap definitions.
25 * inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
26 * inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
27 and clear_sigio_trap.
28 * inf-ttrace.c (inf_ttrace_wait): Ditto.
29 * linux-nat.c (linux_nat_wait): Ditto.
30 * spu-linux-nat.c (spu_child_wait): Ditto.
31 * rs6000-nat.c (rs6000_wait): Ditto.
32 * target.c: Remove target_activity_function and target_activity_fd.
33 * target.h: Remove target_activity_function and target_activity_fd
34 declarations.
35
36 2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
37
38 * dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
39 N_PSYM STABS values for 64-bit GDB.
40
41 2008-12-15 Tristan Gingold <gingold@adacore.com>
42
43 * dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.
44
45 2008-12-15 Jerome Guitton <guitton@adacore.com>
46
47 * ada-lang.c (ada_value_slice_ptr): Rename to...
48 (ada_value_slice_from_ptr): ... this. Return a lazy value instead
49 of a reference. Update comment.
50 (ada_value_struct_elt): Ditto if arg is a pointer or a reference.
51 Update comment as well.
52 (ada_evaluate_subexp): Update use of ada_value_slice_ptr.
53
54 2008-12-12 Kevin Buettner <kevinb@redhat.com>
55
56 * gnu-v3-abi.c (vtable_ptrdiff_type): New function.
57 (gnuv3_decode_method_ptr, gnuv3_print_method_ptr)
58 (gnuv3_method_ptr_to_value): Use a better approximation for
59 `ptrdiff_t' instead of `long'.
60
61 2008-12-12 Kevin Buettner <kevinb@redhat.com>
62
63 * m32c-tdep.c (m32c_gdbarch_init): Call set_gdbarch_vbit_in_delta().
64 (m32c_push_dummy_call): Dereference pointer type.
65
66 2008-12-12 Tom Tromey <tromey@redhat.com>
67
68 PR cli/2563:
69 * cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
70 (add_cmd): Update. Install hooks into new command.
71 (add_alias_cmd): Update.
72
73 2008-12-11 Tom Tromey <tromey@redhat.com>
74
75 * macroexp.c (get_pp_number): Require digit after leading ".".
76 Correctly handle suffixes.
77
78 2008-12-11 Tom Tromey <tromey@redhat.com>
79
80 * macrocmd.c (macro_define_command): Skip whitespace after
81 macro name.
82 (print_one_macro): Print space after macro name.
83
84 2008-12-12 Pedro Alves <pedro@codesourcery.com>
85
86 * infrun.c (handle_inferior_event): Correctly tag non-executing
87 threads in multi-process.
88 (normal_stop): Correctly tag stopped threads in multi-process.
89
90 2008-12-12 Pedro Alves <pedro@codesourcery.com>
91
92 * remote.c (extended_remote_mourn_1): Always call
93 generic_mourn_inferior.
94
95 2008-12-12 Pedro Alves <pedro@codesourcery.com>
96
97 * remote.c (remote_detach_1): Don't delete the inferior here.
98 (process_stop_reply): Ditto.
99 (extended_remote_kill): Ditto.
100
101 2008-12-12 Pedro Alves <pedro@codesourcery.com>
102
103 * remote.c (read_ptid): If we don't know about any inferior yet,
104 use the pid of magic_null_ptid.
105 (remote_start_remote): In the non-stop mode case, don't set
106 inferior_ptid to magic_null_ptid here.
107
108 2008-12-11 Daniel Jacobowitz <dan@codesourcery.com>
109 Pedro Alves <pedro@codesourcery.com>
110
111 * infcmd.c (step_1): Use step_once in the synchronous case too.
112 (step_1_continuation): Wrap line.
113 (step_once): Adjust comment. Only install the continuation in
114 async mode.
115
116 2008-12-11 Pedro Alves <pedro@codesourcery.com>
117
118 * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
119 TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
120 * linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
121 or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
122 returned.
123 * inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
124 minus_one_ptid if the inferior disappeared.
125 * rs6000-nat.c (rs6000_wait): Likewise.
126 * spu-linux-nat.c (spu_child_wait): Likewise.
127
128 2008-12-11 Tom Tromey <tromey@redhat.com>
129
130 PR macros/2564:
131 * c-exp.y (macro_original_text, expansion_obstack,
132 expression_macro_scope): New globals.
133 (scan_macro_expansion): New function.
134 (scanning_macro_expansion): Likewise.
135 (finished_macro_expansion): Likewise.
136 (scan_macro_cleanup): Likewise.
137 (c_parse): Find macro scope. Initialize obstack.
138 * c-lang.h (scan_macro_expansion, scanning_macro_expansion,
139 finished_macro_expansion, expression_macro_lookup_func,
140 expression_macro_lookup_baton): Remove.
141 * c-lang.c (scan_macro_expansion, scanning_macro_expansion,
142 finished_macro_expansion, expression_macro_lookup_func,
143 expression_macro_lookup_baton): Remove.
144 (macro_original_text, macro_expanded_text,
145 c_preprocess_and_parse): Remove.
146 (c_language_defn, cplus_language_defn, asm_language_defn,
147 minimal_language_defn): Use c_parse.
148
149 2008-12-10 Pedro Alves <pedro@codesourcery.com>
150
151 * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
152 instead of read_pc.
153
154 2008-12-09 Tom Tromey <tromey@redhat.com>
155
156 PR gdb/1815:
157 * cli/cli-decode.c (delete_cmd): Forward declare.
158 (delete_cmd): Now static. Change return type. Remove command
159 from alias chain. Rewrite.
160 (add_cmd): Initialize new fields. Update cmd_pointer on all
161 aliases.
162 (add_alias_cmd): Put command on alias chain.
163 * command.h (delete_cmd): Don't declare.
164 * cli/cli-decode.h (delete_cmd): Don't declare.
165 (struct cmd_list_element) <aliases, alias_chain>: New fields.
166
167 2008-12-09 Tom Tromey <tromey@redhat.com>
168
169 * config.in, configure: Rebuild.
170 * configure.ac: Check for locale.h, setlocale. Call
171 AM_LC_MESSAGES.
172 * acinclude.m4: Include lcmessage.m4.
173
174 2008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
177
178 2008-12-08 Joel Brobecker <brobecker@adacore.com>
179
180 * python/python-value.c (values_in_python): Add specific initialization
181 to NULL to work-around a MacOS linker bug.
182
183 2008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
184
185 Fix loc_type of `bp_location's created by update_watchpoint.
186 * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
187 Replace bp_type by bpt->type. Update prototype. All callers updated.
188 (add_location_to_breakpoint): Remove the bp_type parameter.
189 Replace bp_type by b->type. All callers updated.
190 (set_breakpoint_location_function): Replace bptype by b->type.
191
192 2008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 * breakpoint.c (update_global_location_list): Fix the comment.
195
196 2008-12-05 Pedro Alves <pedro@codesourcery.com>
197
198 * infcmd.c (step_1, step_once): Look up the stepping range based
199 on the current frame's PC, not on stop_pc.
200
201 2008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
202
203 Fix compilation on 32-bit host configurations.
204 * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
205
206 2008-12-05 Tristan Gingold <gingold@adacore.com>
207
208 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
209 (amd64_darwin_sstep_at_sigreturn): New function.
210 (darwin_set_sstep): The sigreturn is a special case: the trace flag
211 must be set in the mcontext structure.
212
213 2008-12-05 Pedro Alves <pedro@codesourcery.com>
214
215 * infcmd.c (step_once): Remove dead code.
216
217 2008-12-04 Doug Evans <dje@google.com>
218
219 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
220
221 2008-12-02 Doug Evans <dje@google.com>
222
223 * infrun.c (handle_inferior_event): Remove redundant resetting of
224 stepping_past_singlestep_breakpoint.
225
226 2008-12-02 Pedro Alves <pedro@codesourcery.com>
227
228 * target.h (target_get_osdata): Describe.
229 * osdata.h (make_cleanup_osdata_free): Declare.
230 * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
231 not defined.
232 (osdata_free_cleanup): New.
233 (make_cleanup_osdata_free): New.
234 (get_osdata): Fix leak.
235 (info_osdata_command): Use make_cleanup_osdata_free.
236 (info_processes_command): Delete.
237 (_initialize_osdata): Drop undocumented "info processes" alias.
238 * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
239
240 2008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
241
242 Fix resolving external references to TLS variables.
243 * findvar.c: Include `objfiles.h'.
244 (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
245 SEC_THREAD_LOCAL variables.
246 * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
247 variables.
248
249 2008-12-02 Doug Evans <dje@google.com>
250
251 * infrun.c (handle_inferior_event): Delete unused local tp.
252
253 2008-12-02 Pedro Alves <pedro@codesourcery.com>
254 Vladimir Prus <vladimir@codesourcery.com>
255
256 Implement -list-thread-groups --available
257
258 * Makefile.in (XMLFILES): Add osdata.dtd.
259 (SFILES): Add osdata.c.
260 (COMMON_OBS): Add osdata.o.
261 * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
262 (linux_nat_xfer_osdata): New function.
263 (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
264 * osdata.c: New file.
265 * osdata.h: New file.
266 * remote.c (PACKET_qXfer_osdata): New packet enum.
267 (remote_protocol_features): Add "qXfer:osdata:read".
268 (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
269 (extended_remote_can_run): New.
270 (init_extended_remote_ops): Set to_can_run to
271 extended_remote_can_run.
272 (_initialize_remote): Add packet config command for
273 "qXfer:osdata:read".
274 * xml-support.c (obstack_xml_printf): New function.
275 * xml-support.h (obstack_xml_printf): Declare.
276 * target.c (target_get_osdata): New function.
277 * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
278 (target_os_data): Declare.
279 * features/osdata.dtd: New file.
280 * mi/mi-main.c (mi_list_thread_groups): Handle the --available
281 option.
282
283 2008-12-01 Doug Evans <dje@google.com>
284
285 * infrun.c (proceed): Delete unused local stop_signal.
286
287 2008-11-27 Tristan Gingold <gingold@adacore.com>
288
289 * NEWS: Add entry for new native configuration: Darwin.
290 * configure.host: Add Darwin host.
291 * configure.tgt: Add Darwin target.
292 * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
293 * osabi.c (gdb_osabi_names): Add name for Darwin abi.
294 * i386-darwin-nat.c: New file.
295 * i386-darwin-tdep.c: New file.
296 * machoread.c: New file.
297 * darwin-nat-info.c: New file.
298 * darwin-nat.c: New file.
299 * darwin-nat.h: New file.
300 * darwin.defs: New file.
301 * config/i386/darwin.mh: New file.
302
303 2008-11-26 Tristan Gingold <gingold@adacore.com>
304
305 * MAINTAINERS: Add myself for write after approval privileges.
306
307 2008-11-26 Jerome Guitton <guitton@adacore.com>
308
309 * value.h (allocate_value_lazy): New function declaration.
310 (value_free): Remove macro, make it a function.
311 * value.c (value): Move actual content outside of the memory space
312 of the struct; add a pointer to this actual content.
313 (allocate_value_lazy, allocate_value_contents): New function.
314 (allocate_value): Reimplement using these two new functions.
315 (value_contents_raw, value_contents_all_raw): If no memory
316 has been allocated yet for the actual content, allocate it.
317 (value_contents_all): Resync with struct value's changes.
318 (value_free): New function.
319 (value_copy, value_primitive_field): Use new function
320 allocate_value_lazy to allocate lazy values.
321 (value_change_enclosing_type): Resync with struct value's changes.
322 As the value is not reallocated, remove the special handling for
323 the value chain (now obsolete).
324 * valops.c (value_at_lazy): Use new function allocate_value_lazy.
325 (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
326 to allocate lazy values.
327 (value_slice): Use allocate_value_lazy to allocate lazy values.
328
329 2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 Fix automatic restoration of breakpoints memory for ia64.
332 * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
333 (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
334 content. Remove variable instr. New variable cleanup. Disable
335 automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
336 set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
337 error if even just final target_write_memory has failed.
338 (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
339 and instr to instr_saved. New variables bundle_saved and
340 instr_breakpoint. Comment new reasons why we need to disable automatic
341 restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
342 check of the original memory content. Return error if even just final
343 target_write_memory has failed.
344 (ia64_breakpoint_from_pc): Implement the emulation of permanent
345 breakpoints compatible with current bp_loc_is_permanent.
346 (template_encoding_table): Make it `const'.
347 * breakpoint.c (bp_loc_is_permanent): Support unsupported software
348 breakpoints. New variables `cleanup' and `retval'.
349
350 2008-11-24 Tom Tromey <tromey@redhat.com>
351
352 * ada-lang.c (value_from_contents_and_address): Move...
353 * value.c: ... here.
354 * ada-lang.h (value_from_contents_and_address): Move
355 declaration...
356 * value.h: ... here.
357
358 2008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
359
360 * valprint.c (val_print_array_elements): Pass correct
361 element address to val_print.
362
363 2008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
364
365 Fix access of an already freed memory.
366 * parse.c (parse_field_expression): Call xstrdup on `*name'.
367 * completer.c (expression_completer): Free fieldname.
368
369 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
370
371 PR gdb/2474
372 * remote.c (remote_read_description_p): New function.
373 (remote_start_remote): Try to fetch the target description
374 before adding shared libraries. Try again later if the
375 target is running but stopped.
376 (remote_open_1): Mark extended targets as exited by default.
377 (remote_read_description): Check target_has_execution.
378
379 2008-11-24 Jerome Guitton <guitton@adacore.com>
380
381 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
382 the frame address in block instead of the return address to
383 locate the mdebug PDR of the frame.
384
385 2008-11-21 Joel Brobecker <brobecker@adacore.com>
386
387 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
388
389 * breakpoint.h (enum bpstat_what_main_action): Remove
390 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
391 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
392 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
393 variable table.
394 * infrun.c (wait_for_inferior): Remove handling of
395 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
396
397 2008-11-21 Tom Tromey <tromey@redhat.com>
398
399 * configure: Rebuild.
400 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
401 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
402
403 2008-11-21 Tom Tromey <tromey@redhat.com>
404
405 * python/python-internal.h (PyGILState_Ensure): New define.
406 (PyGILState_Release): Likewise.
407 (PyEval_InitThreads): Likewise.
408 (PyThreadState_Swap): Likewise.
409 (PyEval_InitThreads): Likewise.
410 * python/python.c (_initialize_python): Initialize threads.
411 Release GIL.
412 (eval_python_from_control_command): Acquire GIL.
413 (python_command): Likewise.
414 * python/python-internal.h (make_cleanup_py_restore_gil):
415 Declare.
416 * python/python-utils.c (py_gil_restore): New function.
417 (make_cleanup_py_restore_gil): Likewise.
418
419 2008-11-20 Doug Evans <dje@google.com>
420
421 * frame.c (frame_debug_got_null_frame): Remove file arg.
422 All callers updated.
423
424 2008-11-20 Pedro Alves <pedro@codesourcery.com>
425
426 * infrun.c (resume): If following a fork, also reset regcache,
427 gdbarch and pc.
428
429 2008-11-20 Doug Evans <dje@google.com>
430
431 * printcmd.c (sym_info): Don't print the offset if it's zero.
432
433 2008-11-20 Pedro Alves <pedro@codesourcery.com>
434
435 * infrun.c (resume): If following a fork, reread the current
436 thread. Avoid dereferencing a possibly dangling pointer.
437
438 2008-11-19 Doug Evans <dje@google.com>
439
440 * inferior.h (proceed_to_finish): Delete, unused.
441 (stop_registers): Tweak comment.
442 * infrun.c (stop_registers): Tweak comment.
443
444 2008-11-19 Kevin Buettner <kevinb@redhat.com>
445
446 * frv-tdep.c (frv_skip_main_prologue): New function.
447 (frv_gdbarch_init): Register frv_skip_main_prologue.
448 * solib-frv.c (fetch_loadmap): Return early when no segments are
449 found.
450 (frv_relocate_main_executable): Return early when both interpreter
451 and executable loadmap addresses are zero.
452
453 2008-11-19 Bob Wilson <bob.wilson@acm.org>
454
455 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
456 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
457 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
458 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
459 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
460 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
461 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
462 (xtensa_submask15): Adjust register numbers.
463 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
464 (xtensa_regmap_table): Add entry for scompare1.
465 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
466 and scompare1.
467
468 2008-11-19 Pedro Alves <pedro@codesourcery.com>
469
470 * remote.c (escape_buffer): New.
471 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
472 sure debug output printing a packet buffer goes through a single
473 fprintf_unfiltered call.
474 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
475 output with a newline if it wasn't going to already.
476
477 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
478
479 * maint.c (maintenance_translate_address): Fix a buglet.
480
481 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
482
483 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
484 rs6000/powerpc-isa205-altivec32l-expedite,
485 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
486 rs6000/powerpc-isa205-altivec64l-expedite,
487 powerpc-isa205-vsx64l-expedite): New variables.
488 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
489 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
490 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
491 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
492 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
493 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
494
495 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
496
497 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
498 offset for full 64-bit slot of FPSCR when in 32-bits.
499 (ppc_linux_read_description): Return target description with 64-bit
500 FPSCR when inferior is running on an ISA 2.05 or later processor.
501 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
502 initialize_tdec_powerpc_isa205_32l,
503 initialize_tdec_powerpc_isa205_altivec32l,
504 initialize_tdec_powerpc_isa205_vsx32l,
505 initialize_tdec_powerpc_isa205_64l,
506 initialize_tdec_powerpc_isa205_altivec64l and
507 initialize_tdec_powerpc_isa205_vsx64l.
508 * ppc-linux-tdep.h: Add external declaration for
509 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
510 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
511 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
512 * features/rs600/powerpc-fpu-isa205.xml: New file.
513 * features/rs600/powerpc-isa205-32l.xml: New file.
514 * features/rs600/powerpc-isa205-64l.xml: New file.
515 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
516 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
517 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
518 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
519 * features/rs600/powerpc-isa205-32l.c: Generate.
520 * features/rs600/powerpc-isa205-64l.c: Generate.
521 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
522 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
523 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
524 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
525
526 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
527
528 * objfiles.h: New MULTI_OBJFILE_P macro.
529 * printcmd.c (sym_info): Print object name.
530 * maint.c (maintenance_translate_address): Likewise.
531
532 2008-11-18 Joel Brobecker <brobecker@adacore.com>
533
534 * NEWS: Document the removal of "catch load" and "catch unload".
535
536 2008-11-17 Doug Evans <dje@google.com>
537
538 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
539 on error messages.
540
541 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
542
543 PR gdb/2250
544 * infrun.c (clear_proceed_status_thread): New function.
545 (clear_proceed_status_callback): New function.
546 (clear_proceed_status): In all-stop mode, clear per-thread
547 proceed status of *all* threads, not only the current.
548 (handle_inferior_event): In all-stop mode, if we're stepping
549 one thread, but got some inferior event in another thread
550 that does not cause GDB to break to the user interface,
551 ensure the interrupted stepping operation continues in the
552 original thread.
553 (currently_stepping): Move thread-related tests to ...
554 (currently_stepping_thread): ... this new function.
555 (currently_stepping_callback): New function.
556
557 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
558
559 Implement =thread-selected notification.
560
561 * mi/mi-common.h (struct mi_interp): New, moved from ...
562 * mi/mi-interp.c: ...here.
563 * mi/mi-main.c (mi_execute_command): If the thread changed
564 as result of command, report that.
565
566 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
567
568 Implement continue/interrupt of thread groups.
569
570 * mi/mi-main.c (proceed_thread_callback): New.
571 (mi_cmd_exec_continue): If --thread-group is specified, resume all
572 threads in that group.
573 (interrupt_thread_callback): New.
574 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
575 all threads in that group.
576
577 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
578
579 Implement '-target-detach pid'.
580
581 * infcmd.c (detach_command): Make nonstatic.
582 * inferior.h (detach_command): Declare.
583 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
584 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
585 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
586
587 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
588
589 Include group-id in thread-created notification.
590
591 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
592 group id in the output.
593
594 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
595
596 Notification for attach/detach.
597
598 * inferior.c: Call the process observers.
599 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
600 (mi_interpreter_init): Register the above.
601
602 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
603
604 Implement -list-thread-groups.
605
606 * thread.c (print_thread_info): New parameter pid, to print
607 threads of specific process.
608 * gdbthread.h (print_thread_info): New parameter pid.
609 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
610 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
611 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
612 (print_one_process, mi_cmd_list_thread_groups): New.
613
614 2008-11-16 Joel Brobecker <brobecker@adacore.com>
615
616 Remove some unused macros related to the old load/unload catchpoints.
617
618 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
619 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
620 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
621
622 2008-11-16 Joel Brobecker <brobecker@adacore.com>
623
624 Remove support for catch load and catch unload commands.
625
626 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
627 (struct breakpoint): Remove fields dll_pathname and
628 triggered_dll_pathname.
629 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
630 * breakpoint.c (ep_is_catchpoint): Remove handling of
631 bp_catch_load and bp_catch_unload.
632 (print_it_typical, bpstat_check_location, bpstat_what)
633 (print_one_breakpoint_location, print_one_breakpoint_location)
634 (user_settable_breakpoint, allocate_bp_location)
635 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
636 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
637 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
638 (catch_load_command_1, catch_unload_command_1): Delete.
639 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
640 command creation.
641 * infrun.c (handle_inferior_event): Remove the handling of
642 load/unload catchpoint events.
643
644 2008-11-15 Joel Brobecker <brobecker@adacore.com>
645
646 From Jerome Guitton <guitton@adacore.com>
647 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
648 New function.
649 (dwarf_decode_lines): Detect null file numbers. Detect the end of
650 the line program sequence when no end sequence is emitted.
651
652 2008-11-15 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
655 type dereferencing.
656
657 2008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
658
659 * NEWS: Mention sparc64-linux-gnu gdbserver support.
660
661 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
662
663 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
664 * regformats/reg-sparc64.dat: New file.
665
666 2008-11-14 Tom Tromey <tromey@redhat.com>
667
668 PR mi/2549:
669 * mi/mi-main.c (get_register): Use get_formatted_print_options.
670
671 2008-11-13 Joel Brobecker <brobecker@adacore.com>
672
673 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
674
675 2008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
676
677 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
678 AT_EXECFN. Re-sort AT_SECURE.
679
680 2008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
683
684 2008-11-13 Joel Brobecker <brobecker@adacore.com>
685
686 * ia64-tdep.c: Remove commented out #define.
687
688 2008-11-12 Joel Brobecker <brobecker@adacore.com>
689
690 From Joel Sherrill <joel.sherrill@oarcorp.com>
691 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
692 instead of the "gdbsim_ops" global.
693
694 2008-11-11 Doug Evans <dje@google.com>
695
696 * infcall.c (call_function_by_hand): Handle inferior exit.
697
698 2008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
699
700 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
701 missing struct target_ops argument.
702
703 2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
704
705 * MAINTAINERS: Add myself for write after approval privileges.
706
707 2008-11-10 Tom Tromey <tromey@redhat.com>
708
709 * gdbtypes.c (copy_type_recursive): Clear new fields.
710
711 2008-11-10 Tom Tromey <tromey@redhat.com>
712
713 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
714 cleanups on early return.
715
716 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
717
718 Kill pthread_ops_hack
719
720 * target.h (struct target_ops): Make to_attach, to_detach,
721 to_create_inferior and to_mourn_inferior accept a pointer
722 to struct target_ops.
723 (target_attach, target_create_inferior, target_create_inferior):
724 Convert from macros to function. Find the right target to
725 invoke a method of.
726 (find_default_attach, find_default_create_inferior): New parameter
727 ops.
728 * corefile.c (core_file_command): Pass target to to_detach.
729 * corelow.c (core_detach): Add 'ops' parameter.
730 * fork-child.c (fork_inferior): Return the pid. Allow
731 init_trace_fun to be NULL.
732 * inf-ptrace (ptrace_ops_hack): Remove.
733 (inf_ptrace_him): Remove, moving all logic into....
734 (inf_ptrace_create_inferior): ... here. Push the target
735 passed as parameter.
736 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
737 Push/pop target passed as parameter, no ptrace_ops_hack.
738 (inf_ptrace_target): Don't remember result.
739 * inferior.h (fork_inferior): Adjust prototype.
740 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
741 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
742 Pass it to linux_ops target.
743 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
744 New parameter ops. Pass it to the target beneath.
745 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
746 (extended_remote_create_inferior): New parameter ops. Pass it
747 further.
748 * target.c (debug_to_attach, debug_to_detach)
749 (debug_to_mourn_inferior): New parameter ops.
750 (target_create_inferior): New.
751 (update_current_target): Do not inherit to_attach, to_detach,
752 to_create_inferiour, to_mourn_inferior. Do not default
753 to_detach and to_mourn_inferior.
754 (target_detach): Find the right target to use.
755 (target_mourn_inferior): New.
756 (find_default_attach, find_default_create_inferior): New parameter
757 ops. Pass the found target when calling its method.
758 (init_dummy_target): Provide fallback definition of to_detach.
759 (target_attach): New.
760 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
761 (debug_to_mourn_inferiour): New parameter ops.
762 * aix-thread.c: Adjust.
763 * bsd-uthread.c: Adjust.
764 * gnu-nat.c: Adjust.
765 * go32-nat.c: Adjust.
766 * hpux-thread.c: Adjust.
767 * inf-ttrace.c: Ajust.
768 * monitor.c: Adjust.
769 * nto-procfs.c: Adjust.
770 * procfs.c: Adjust.
771 * remote-m32r-sdi.c: Adjust.
772 * remote-mips.c: Adjust.
773 * remote-sim.c: Adjust.
774 * rs6000-nat.c: Adjust.
775 * sol-thread.c: Adjust.
776 * win32-nat.c: Adjust.
777 * dec-thread.c: Adjust.
778
779 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
780
781 * thread.c (print_thread_info): Eliminate now useless checks
782 for exited threads.
783
784 2008-11-06 Pedro Alves <pedro@codesourcery.com>
785
786 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
787 to 0.
788
789 2008-11-05 Pedro Alves <pedro@codesourcery.com>
790
791 * remote.c (notice_new_inferiors): Add a new inferior only when
792 we're going to add a new thread.
793
794 2008-11-05 Pedro Alves <pedro@codesourcery.com>
795
796 * defs.h (add_inferior_continuation)
797 (do_all_inferior_continuations)
798 (discard_all_inferior_continuations): Declare.
799 * utils.c (add_inferior_continuation)
800 (do_all_inferior_continuations)
801 (discard_all_inferior_continuations): New.
802 * inferior.h (struct inferior) <continuations>: New field.
803 * inferior.c (free_inferior): Discard all the inferior
804 continuations.
805 * inf-loop.c (inferior_event_handler): Do all current inferior
806 continuations.
807 * infcmd.c (attach_command): Register an inferior continuation
808 instead of a thread continuation.
809 * infrun.c (handle_inferior_event): If stop_soon is
810 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
811
812 2008-11-04 Pedro Alves <pedro@codesourcery.com>
813
814 * inf-loop.c (inferior_event_handler): On INF_ERROR and
815 INF_REG_EVENT throwing, don't call target_async or pop_target.
816 Call pop_all_targets_above.
817 * remote.c (remote_close): Call remote_terminal_ours. Don't call
818 signal or target_async.
819
820 2008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
821
822 * eval.c (evaluate_subexp_standard): Assert that there is at
823 least one array dimension.
824
825 2008-11-03 Vladimir Prus <vladimir@codesourcery.com>
826
827 Make attach_command exception-safe
828 * infcmd.c (attach_command): Call async_enable_stdin
829 if exception is thrown.
830
831 2008-11-03 Pedro Alves <pedro@codesourcery.com>
832
833 * gdbarch.sh (has_global_solist): Mention global breakpoints.
834 * gdbarch.h: Regenerate.
835
836 2008-11-03 Pedro Alves <pedro@codesourcery.com>
837
838 * remote.c (remote_start_remote): If the solib list is global,
839 fetch libraries and insert breakpoints after connecting.
840 * infcmd.c (post_create_inferior): If the solist is shared between
841 inferiors, no need to refetch it on every new inferior.
842 (detach_command): If the shared library list is shared between
843 inferiors, then don't clear it on every inferior detach.
844 * gdbarch.sh (has_global_solist): New.
845 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
846 gdbarch_has_global_solist.
847 * target.c (target_pre_inferior): If the shared library list is
848 shared between inferiors, then don't clear it here, neither
849 invalidate the memory regions or clear the target description.
850 (target_detach): If the shared library list is shared between
851 inferiors, then don't remove breakpoints from the target here.
852 (target_disconnect): Comment.
853 * solib.c (update_solib_list): Check for null_ptid.
854 * breakpoint.c (insert_breakpoints, update_global_location_list):
855 If the shared library list is shared between inferiors, insert
856 breakpoints even if there's no execution.
857 (breakpoint_init_inferior): If the shared library list is shared
858 between inferiors, don't delete breakpoints or mark them
859 uninserted here.
860
861 * gdbarch.c, gdbarch.h: Regenerate.
862
863 2008-10-31 Pedro Alves <pedro@codesourcery.com>
864
865 * inferior.h (inferior_ignoring_leading_exec_events): Delete
866 declaration.
867
868 2008-10-31 Pedro Alves <pedro@codesourcery.com>
869
870 * inferior.h (write_inferior_status_register): Delete.
871 * infrun.c (write_inferior_status_register): Delete.
872
873 2008-10-30 Tom Tromey <tromey@redhat.com>
874
875 * value.c (coerce_array): Use check_typedef.
876
877 2008-10-30 Tom Tromey <tromey@redhat.com>
878
879 * cli/cli-logging.c (handle_redirections): Make a cleanup.
880 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
881 * regcache.c (regcache_print): Make a cleanup.
882 * maint.c (maintenance_print_architecture): Make a cleanup.
883 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
884
885 2008-10-30 Tom Tromey <tromey@redhat.com>
886
887 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
888 (do_close_cleanup): Don't free 'fd'.
889
890 2008-10-30 Tom Tromey <tromey@redhat.com>
891
892 * source.c (symtab_to_fullname): Test 'r >= 0'.
893 (psymtab_to_fullname): Likewise.
894 (get_filename_and_charpos): Make a cleanup.
895 (forward_search_command): Likewise.
896 (reverse_search_command): Likewise.
897 * exec.c (exec_file_attach): Close scratch_chan on failure.
898 * nto-procfs.c (procfs_open): Make a cleanup.
899 (procfs_pidlist): Likewise.
900 (do_closedir_cleanup): New function.
901
902 2008-10-30 Andreas Schwab <schwab@suse.de>
903
904 * infcmd.c (construct_inferior_arguments): Handle newlines
905 specially.
906
907 2008-10-30 Joel Brobecker <brobecker@adacore.com>
908
909 * breakpoint.h (enum bptype): Delete bp_catch_exec.
910 * breakpoint.c (insert_catchpoint): Remove handling for
911 bp_catch_exec breakpoint kinds.
912 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
913 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
914 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
915 (print_one_breakpoint_location, user_settable_breakpoint)
916 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
917 (allocate_bp_location, mention, breakpoint_re_set_one)
918 (disable_command, enable_command): Likewise.
919 (create_exec_event_catchpoint): Delete.
920 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
921 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
922 New functions.
923 (catch_exec_breakpoint_ops): New static global.
924 (catch_exec_command_1): Use create_catchpoint instead of
925 create_exec_event_catchpoint to create the exec catchpoint.
926
927 2008-10-28 Tom Tromey <tromey@redhat.com>
928
929 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
930 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
931 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
932 (cli-utils.o): Remove.
933 * cli/cli-utils.c: Remove.
934 * cli/cli-utils.h: Remove.
935
936 2008-10-28 Tom Tromey <tromey@redhat.com>
937
938 * varobj.c (value_get_print_value): Include valprint.h.
939 (value_get_print_value): Use get_formatted_print_options.
940 * value.h (struct value_print_options): Declare.
941 (value_print, val_print, common_val_print, val_print_string):
942 Update.
943 * value.c: Include valprint.h.
944 (show_values): Use get_user_print_options.
945 (show_convenience): Likewise.
946 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
947 declare.
948 (struct value_print_options): New type.
949 (vtblprint, unionprint, addressprint, objectprint, print_max,
950 inspect_it, repeat_count_threshold, output_format,
951 stop_print_at_null): Don't declare.
952 (user_print_options, get_user_print_options,
953 get_raw_print_options, get_formatted_print_options): Declare.
954 (print_array_indexes_p): Don't declare.
955 (maybe_print_array_index, val_print_array_elements): Update.
956 * valprint.c (print_max): Remove.
957 (user_print_options): New global.
958 (get_user_print_options, get_raw_print_options,
959 get_formatted_print_options): New functions.
960 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
961 prettyprint_structs, prettyprint_arrays, unionprint,
962 addressprint): Remove.
963 (val_print): Remove format, deref_ref, pretty arguments; add
964 options. Update.
965 (common_val_print): Likewise.
966 (print_array_indexes_p): Remove.
967 (maybe_print_array_index): Remove format, pretty arguments; add
968 options. Update.
969 (val_print_array_elements): Remove format, deref_ref, pretty
970 arguments; add options. Update.
971 (val_print_string): Add options argument. Update.
972 (_initialize_valprint): Use user_print_options.
973 (output_format): Remove.
974 (set_output_radix_1): Use user_print_options.
975 * typeprint.c: Include valprint.h.
976 (objectprint): Don't declare.
977 (whatis_exp): Use get_user_print_options.
978 * tui/tui-regs.c: Include valprint.h.
979 (tui_register_format): Use get_formatted_print_options.
980 * tracepoint.c: Include valprint.h.
981 (addressprint): Don't declare.
982 (trace_mention): Use get_user_print_options.
983 (tracepoints_info): Likewise.
984 * stack.c (print_frame_args): Use get_raw_print_options.
985 (print_frame_info): Use get_user_print_options.
986 (print_frame): Likewise.
987 * sh64-tdep.c: Include valprint.h
988 (sh64_do_register): Use get_formatted_print_options.
989 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
990 pretty arguments; add options.
991 (scm_scmlist_print): Likewise. Update.
992 (scm_scmval_print): Likewise.
993 (scm_val_print): Likewise.
994 (scm_value_print): Remove format, pretty arguments; add options.
995 Update.
996 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
997 Update.
998 * scm-lang.c (scm_printstr): Add options argument.
999 * python/python-value.c: Include valprint.h.
1000 (valpy_str): Use get_user_print_options.
1001 * printcmd.c: Include valprint.h.
1002 (addressprint): Don't declare.
1003 (inspect_it): Remove.
1004 (print_formatted): Remove format option; add options. Update.
1005 (print_scalar_formatted): Likewise.
1006 (print_address_demangle): Use get_user_print_options.
1007 (do_examine): Use get_formatted_print_options.
1008 (print_command_1): Likewise.
1009 (output_command): Use get_formatted_print_options.
1010 (do_one_display): Likewise.
1011 (print_variable_value): Use get_user_print_options.
1012 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
1013 pretty arguments; add options. Update.
1014 (pascal_value_print): Remove format, pretty arguments; add
1015 options. Update.
1016 (vtblprint, objectprint): Don't declare.
1017 (pascal_static_field_print): Remove.
1018 (pascal_object_print_value_fields): Remove format, pretty
1019 arguments; add options. Update.
1020 (pascal_object_print_static_field): Likewise.
1021 (_initialize_pascal_valprint): Use user_print_options. Update.
1022 * p-lang.h (pascal_val_print, pascal_value_print,
1023 pascal_printstr, pascal_object_print_value_fields): Update.
1024 (vtblprint, static_field_print): Don't declare.
1025 * p-lang.c (pascal_printstr): Add options argument. Update.
1026 * objc-lang.c (objc_printstr): Add options argument. Update.
1027 * mt-tdep.c: Include valprint.h.
1028 (mt_registers_info): Use get_raw_print_options.
1029 * mips-tdep.c: Include valprint.h.
1030 (mips_print_fp_register): Use get_formatted_print_options.
1031 (mips_print_register): Likewise.
1032 * mi/mi-main.c: Include valprint.h.
1033 (get_register): Use get_user_print_options.
1034 (mi_cmd_data_evaluate_expression): Likewise.
1035 (mi_cmd_data_read_memory): Use get_formatted_print_options.
1036 * mi/mi-cmd-stack.c: Include valprint.h.
1037 (list_args_or_locals): Use get_raw_print_options.
1038 * m2-valprint.c (print_function_pointer_address): Add addressprint
1039 argument.
1040 (m2_print_long_set): Remove format, pretty arguments.
1041 (m2_print_unbounded_array): Remove format, deref_ref, pretty
1042 arguments; add options. Update.
1043 (print_unpacked_pointer): Remove format argument; add options.
1044 Now static. Update.
1045 (print_variable_at_address): Remove format, deref_ref, pretty
1046 arguments; add options. Update.
1047 (m2_print_array_contents): Likewise.
1048 (m2_val_print): Likewise.
1049 * m2-lang.h (m2_val_print): Update.
1050 * m2-lang.c (m2_printstr): Add options argument. Update.
1051 * language.h (struct value_print_options): Declare.
1052 (struct language_defn) <la_printstr>: Add options argument.
1053 <la_val_print>: Remove format, deref_ref, pretty argument; add
1054 options.
1055 <la_value_print>: Remove format, pretty arguments; add options.
1056 <la_print_array_index>: Likewise.
1057 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
1058 LA_PRINT_ARRAY_INDEX): Update.
1059 (default_print_array_index): Update.
1060 * language.c (default_print_array_index): Remove format, pretty
1061 arguments; add options. Update.
1062 (unk_lang_printstr): Add options argument.
1063 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
1064 add options.
1065 (unk_lang_value_print): Remove format, pretty arguments; add
1066 options.
1067 * jv-valprint.c (java_value_print): Remove format, pretty
1068 arguments; add options. Update.
1069 (java_print_value_fields): Likewise.
1070 (java_val_print): Remove format, deref_ref, pretty arguments; add
1071 options. Update.
1072 * jv-lang.h (java_val_print, java_value_print): Declare.
1073 * infcmd.c: Include valprint.h.
1074 (print_return_value): Use get_raw_print_options.
1075 (default_print_registers_info): Use get_user_print_options,
1076 get_formatted_print_options.
1077 (registers_info): Use get_formatted_print_options.
1078 * gdbtypes.h (struct value_print_options): Declare.
1079 (print_scalar_formatted): Update.
1080 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
1081 pretty arguments; add options. Update.
1082 (f77_print_array): Likewise.
1083 (f_val_print): Likewise.
1084 * f-lang.h (f_val_print): Update.
1085 * f-lang.c (f_printstr): Add options argument. Update.
1086 (c_value_print): Update declaration.
1087 * expprint.c: Include valprint.h.
1088 (print_subexp_standard): Use get_raw_print_options,
1089 get_user_print_options.
1090 * eval.c: Include valprint.h.
1091 (objectprint): Don't declare.
1092 (evaluate_subexp_standard): Use get_user_print_options.
1093 * cp-valprint.c (vtblprint, objectprint, static_field_print):
1094 Remove.
1095 (cp_print_value_fields): Remove format, pretty arguments; add
1096 options. Update.
1097 (cp_print_value): Likewise.
1098 (cp_print_static_field): Likewise.
1099 (_initialize_cp_valprint): Use user_print_options. Update.
1100 * c-valprint.c (print_function_pointer_address): Add addressprint
1101 argument.
1102 (c_val_print): Remove format, deref_ref, pretty arguments; add
1103 options. Update.
1104 (c_value_print): Add options argument. Update.
1105 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
1106 (vtblprint, static_field_print): Don't declare.
1107 (cp_print_value_fields): Update.
1108 * c-lang.c (c_printstr): Add options argument. Update.
1109 * breakpoint.c: Include valprint.h.
1110 (addressprint): Don't declare.
1111 (watchpoint_value_print): Use get_user_print_options.
1112 (print_one_breakpoint_location): Likewise.
1113 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
1114 print_exception_catchpoint): Likewise.
1115 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
1116 get_user_print_options.
1117 * ada-valprint.c (struct ada_val_print_args): Remove format,
1118 deref_ref, and pretty; add options.
1119 (print_optional_low_bound): Add options argument.
1120 (val_print_packed_array_elements): Remove format and pretty
1121 arguments; add options. Update.
1122 (printstr): Add options argument. Update.
1123 (ada_printstr): Likewise.
1124 (ada_val_print): Remove format, deref_ref, pretty arguments; add
1125 options argument. Update.
1126 (ada_val_print_stub): Update.
1127 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
1128 add options. Update.
1129 (ada_val_print_1): Likewise.
1130 (print_variant_part): Likewise.
1131 (ada_value_print): Remove format, pretty arguments; add options.
1132 Update.
1133 (print_record): Likewise.
1134 (print_field_values): Likewise.
1135 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
1136 Update.
1137 * ada-lang.c (ada_print_array_index): Add options argument; remove
1138 format and pretty arguments.
1139 (print_one_exception): Use get_user_print_options.
1140
1141 2008-10-28 Tom Tromey <tromey@redhat.com>
1142
1143 * cli/cli-script.c (do_fclose_cleanup): Remove.
1144 (script_from_file): Use make_cleanup_fclose.
1145 * xml-tdesc.c (do_cleanup_fclose): Remove.
1146 (fetch_xml_from_file): Use make_cleanup_fclose.
1147 * tracepoint.c (tracepoint_save_command): Use
1148 make_cleanup_fclose. Always free pathname.
1149 * source.c (print_source_lines_base): Use make_cleanup_fclose.
1150 * remote.c (fclose_cleanup): Remove.
1151 (remote_file_put): Use make_cleanup_fclose.
1152 (remote_file_get): Likewise.
1153 * linux-nat.c (linux_nat_find_memory_regions): Use
1154 make_cleanup_fclose.
1155 (linux_nat_info_proc_cmd): Likewise.
1156 (linux_proc_pending_signals): Likewise.
1157 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
1158 Free file name.
1159 * cli/cli-dump.c (do_fclose_cleanup): Remove.
1160 (make_cleanup_fclose): Remove.
1161 * defs.h (make_cleanup_fclose): Declare.
1162 * utils.c (do_fclose_cleanup): New function.
1163 (make_cleanup_fclose): Likewise.
1164
1165 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1166
1167 * inflow.c (kill_command): If the target claims there is still
1168 execution, don't clear the thread list.
1169
1170 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1171
1172 * cp-name-parser.y: Include defs.h instead of config.h.
1173 (parse_escape): Rename to ...
1174 (cp_parse_escape): ... this.
1175 (yylex): Update.
1176 (xfree) [TEST_CPNAMES]: New.
1177
1178 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1179
1180 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
1181 2.13 and configure.in.
1182
1183 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1184
1185 * target.h (struct target_ops) <to_supports_multi_process>: New
1186 field.
1187 (target_supports_multi_process): New define.
1188 * target.c (update_current_target): Inherit and de_fault
1189 to_supports_multi_process.
1190 * infcmd.c (attach_command): Allow attaching to multiple processes
1191 if the target supports it.
1192 (detach_command): If the target claims there is still execution,
1193 don't clear the thread list.
1194 * remote.c (remote_supports_multi_process): New.
1195 (init_remote_ops): Register remote_supports_multi_process.
1196
1197 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1198
1199 * Makefile.in (.y.c, .l.c): sed free to xfree.
1200
1201 2008-10-27 Pedro Alves <pedro@codesourcery.com>
1202
1203 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
1204 $(TM_CLIBS).
1205 (CDEPS): Remove reference to $(TM_CDEPS).
1206
1207 2008-10-26 Michael Snyder <msnyder@vmware.com>
1208
1209 * infrun.c (handle_inferior_event): Handle dynamic symbol
1210 resolution in reverse.
1211
1212 2008-10-25 Joel Brobecker <brobecker@adacore.com>
1213
1214 * infrun.c: Minor comment reformatting.
1215
1216 2008-10-25 Pedro Alves <pedro@codesourcery.com>
1217
1218 * ada-exp.y (write_object_renaming): Use malloc instead of
1219 xmalloc.
1220 * p-exp.y (pop_current_type): Use free instead of xfree.
1221
1222 2008-10-24 Pedro Alves <pedro@codesourcery.com>
1223
1224 * fork-child.c (startup_inferior): Only set threads not-executing
1225 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
1226 keep waiting, don't resume. On all other cases but
1227 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
1228 the event ptid.
1229
1230 2008-10-24 Pedro Alves <pedro@codesourcery.com>
1231
1232 Remote non-stop mode support.
1233
1234 * remote.c (pending_stop_reply): New.
1235 (struct remote_state) <non_stop_aware, support_vCont_t>: New
1236 fields.
1237 (remote_async_inferior_event_token)
1238 (remote_async_get_pending_events_token): New.
1239 (notice_new_inferiors): New, abstracted out from record_currthread.
1240 (record_currthread): Call it.
1241 (remote_threads_info): Default threads to running in non-stop
1242 mode. In non-stop mode, only qfThreadInfo is supported.
1243 (remote_close): Discard all pending stop_replies. Close the event
1244 sources.
1245 (set_stop_requested_callback): New.
1246 (remote_start_remote): Implement non-stop mode startup. In
1247 all-stop, don't clear the thread list here.
1248 (remote_non_stop_feature): New.
1249 (remote_protocol_features): Add a "QNonStop" feature.
1250 (remote_open_1): Clear cached_wait_status and non_stop_aware.
1251 Clear the thread list here.
1252 (remote_detach_1): Discard pending stop replies of the process we
1253 detached from.
1254 (extended_remote_attach_1): Implement non-stop mode.
1255 (remote_vcont_probe): Recognize `vCont;t'.
1256 (remote_vcont_resume): Implement non-stop mode.
1257 (remote_resume): Don't set waiting_for_stop_reply in non-stop
1258 mode.
1259 (remote_stop_ns): New.
1260 (remote_stop): Rename to ...
1261 (remote_stop_as): ... this. If we have a cached wait status,
1262 don't bother interrupting the remote.
1263 (remote_stop): Reimplement as wrapper around remote_stop_as and
1264 remote_stop_ns.
1265 (interrupt_query): Don't query in async mode.
1266 (struct cached_reg, cahed_reg_t): New.
1267 (struct stop_reply): New.
1268 (stop_reply_queue): New.
1269 (stop_reply_xmalloc, stop_reply_xfree)
1270 (discard_pending_stop_replies, do_stop_reply_xfree)
1271 (queued_stop_reply, push_stop_reply, peek_stop_reply)
1272 (remote_parse_stop_reply, remote_get_pending_stop_replies)
1273 (process_stop_reply): New.
1274 (remote_wait_ns): New.
1275 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
1276 notion of current general thread is a process exit was reported.
1277 (remote_wait): Call remote_wait_ns in non-stop mode.
1278 (handle_notification): New.
1279 (putpkt_binary): Handle notifications. Don't care for
1280 waiting_for_stop_reply in non-stop mode.
1281 (getpkt_sane): Rename to ...
1282 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
1283 argument. Handle it. Handle notifications.
1284 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
1285 (getpkt_or_notif_sane): New.
1286 (select_new_thread_callback): Check for exited state instead of
1287 comparing the ptid against minus_one_ptid.
1288 (extended_remote_create_inferior_1): Query the remote about the
1289 current thread.
1290 (remote_supports_non_stop): New.
1291 (init_remote_ops): Register it.
1292 (remote_async_inferior_event_handler): New.
1293 (remote_async_get_pending_events_handler): New.
1294
1295 * infcmd.c (proceed_thread_callback): Comment.
1296 (proceed_after_attach_callback, proceed_after_attach): New.
1297 (attach_command_post_wait): In background attach, resume all
1298 threads, but only if they are unsignalled, and not explicitly
1299 stopped. In foreground attach, in non-stop mode, make sure to
1300 stop all threads of the just attached to process.
1301 (attach_command): In non-stop mode: If doing a background attach,
1302 stop at least one thread. If a foreground attach, stop all
1303 threads.
1304
1305 2008-10-24 Pedro Alves <pedro@codesourcery.com>
1306
1307 * event-loop.h: Mention async_event_handlers.
1308 (async_event_handler): Forward declare.
1309 (async_event_handler_func): New typedef.
1310 (create_async_event_handler, delete_async_event_handler)
1311 (mark_async_event_handler): Declare.
1312 * event-loop.c (event_data): New.
1313 (event_handler_func): Take an event_data instead of an integer.
1314 (struct gdb_event): Replace the integer file descriptor by a
1315 generic event_data.
1316 (async_event_handler): New.
1317 (async_handler_ready): Delete.
1318 (async_event_handler_list): New.
1319 (create_event): New.
1320 (create_file_event): Use it.
1321 (process_event): Adjust.
1322 (gdb_do_one_event): Poll from the event sources in round-robin
1323 fashion across calls. Be sure to consult all sources before
1324 blocking.
1325 (handle_file_event): Take an event_data instead of an integer.
1326 Adjust.
1327 (gdb_wait_for_event): Add `block' argument. Handle it.
1328 (mark_async_signal_handler): Remove unneeded cast.
1329 (invoke_async_signal_handler): Rename to ...
1330 (invoke_async_signal_handlres): ... this. Return true if any was
1331 handled.
1332 (check_async_ready): Delete
1333 (create_async_event_handler): New.
1334 (mark_async_event_handler): New.
1335 (struct async_event_handler_data): New.
1336 (invoke_async_event_handler): New.
1337 (check_async_event_handlers): New.
1338 (delete_async_event_handler): New.
1339 (handle_timer_event): Adjust.
1340
1341 2008-10-24 Doug Evans <dje@google.com>
1342
1343 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
1344 is NULL. Simplify obs == NULL case.
1345
1346 2008-10-24 Hui Zhu <teawater@gmail.com>
1347 Pedro Alves <pedro@codesourcery.com>
1348
1349 * infrun.c (can_use_displaced_stepping): Change type to
1350 const char pointer.
1351 (can_use_displaced_stepping_auto): New string.
1352 (can_use_displaced_stepping_on): New string.
1353 (can_use_displaced_stepping_off): New string.
1354 (can_use_displaced_stepping_enum): New array.
1355 (show_can_use_displaced_stepping): In auto mode, also show
1356 the current effect of the option.
1357 (use_displaced_stepping): Return non-zero if displaced
1358 stepping is auto, and can be used with GDBARCH, and in
1359 non-stop mode. Return non-zero if displaced stepping is on,
1360 and can be used with GDBARCH. Return zero otherwise.
1361 (_initialize_infrun): Make the "set displaced-stepping"
1362 command an enum command. Change its class to class_run.
1363 Place it in the top level set list. Extend help to describe
1364 the auto mode.
1365
1366 2008-10-23 Pedro Alves <pedro@codesourcery.com>
1367
1368 * defs.h: Mention ptid_is_pid.
1369 * inferior.h (ptid_is_pid): Declare.
1370 * gdbthread.h (struct thread_info) <stop_requested>: New field.
1371 (set_stop_requested): Declare.
1372 * infcmd.c (interrupt_target_1): Call set_stop_requested.
1373 * infrun.c (clear_proceed_status): Clear stop_requested.
1374 (infrun_thread_stop_requested_callback,
1375 infrun_thread_stop_requested): New.
1376 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
1377 thread that had an explicit stop request, pretend we got a
1378 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1379 request.
1380 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1381 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1382 instead of mentioning signal 0.
1383 (ptid_is_pid): New.
1384 * thread.c (set_stop_requested): New.
1385
1386 * linux-nat.c (queued_waitpid): Rename to ...
1387 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1388 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1389 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1390 kernel's.
1391 (send_sigint_callback): Delete.
1392 (linux_nat_stop_lwp): New.
1393 (linux_nat_stop): Use it.
1394
1395 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1396
1397 * python/python-value (valpy_getitem): Fix heap corruption.
1398
1399 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1400
1401 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1402 (procfs_create_inferior): Fetch list of threads.
1403
1404 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1405
1406 * nto-procfs.c (procfs_files_info): Fix a typo.
1407 (procfs_create_inferior): Make attach_flag per-inferior.
1408
1409 2008-10-23 Tom Tromey <tromey@redhat.com>
1410
1411 * python/python-value.c (value_to_value_object): Initialize
1412 owned_by_gdb field.
1413 (valpy_new): Likewise.
1414
1415 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Joel Brobecker <brobecker@adacore.com>
1417
1418 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1419 initializer. Define the strings as const.
1420 (short_task_info, info_task): Translate the strings above.
1421
1422 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1423
1424 * NEWS: Add entry for new feature (Ada tasking support).
1425
1426 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1427
1428 * configure.ac: On alpha-osf, error out if enable_tui is set to
1429 "yes", and set enable_tui to "no" if previously set to "auto".
1430 Check for waddstr only if TUI support was requested. Move the
1431 part of the configure script that updates various Makefile
1432 variables up, together with the check for waddstr.
1433 * configure: Regenerate.
1434
1435 2008-10-22 Joel brobecker <brobecker@adacore.com>
1436
1437 * gdbtypes.c (copy_type): New function.
1438 * gdbtypes.h (copy_type): Add declaration.
1439 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1440 variable, then use it.
1441
1442 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1443
1444 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1445 (target_get_ada_task_ptid): New macro.
1446 * target.c (default_get_ada_task_ptid): New function.
1447 (update_current_target): Inherit field default_get_ada_task_ptid.
1448 (update_current_target): Make default_get_ada_task_ptid the default
1449 value for field to_get_ada_task_ptid.
1450 * ada-lang.h (struct task_control_block): Delete. Never used.
1451 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1452 Likewise.
1453 (struct ada_task_info): New.
1454 (ada_task_is_alive, ada_find_printable_frame)
1455 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1456 declarations.
1457 (ada_build_task_list): Update prototype.
1458 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1459 * ada-lang.c (ada_find_printable_frame): Make non-static.
1460 * ada-tasks.c: New file.
1461 * Makefile.in (SFILES): Add ada-tasks.c.
1462 (COMMON_OBS): Add ada-tasks.o.
1463 * linux-thread-db.c (thread_db_find_thread_from_tid)
1464 (thread_db_get_ada_task_ptid): New functions.
1465 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1466
1467 2008-10-22 Tom Tromey <tromey@redhat.com>
1468
1469 PR gdb/2506:
1470 * c-exp.y (string_exp): New production.
1471 (exp): Use it.
1472
1473 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1474
1475 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1476 removed before.
1477
1478 2008-10-20 Joel Brobecker <brobecker@adacore.com>
1479
1480 * NEWS: Add entry mentioning thread-support on Tru64
1481
1482 2008-10-19 Joel Brobecker <brobecker@adacore.com>
1483
1484 * dec-thread.c: New file.
1485 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1486 (NAT_CLIBS): Define.
1487
1488 2008-10-19 Hui Zhu <teawater@gmail.com>
1489
1490 * infrun.c (handle_inferior_event): Set "stop_pc" when
1491 TARGET_WAITKIND_NO_HISTORY.
1492
1493 2008-10-19 Pedro Alves <pedro@codesourcery.com>
1494
1495 * python/python-value.c (value_object_methods)
1496 (value_object_as_number, value_object_as_mapping): Move to bottom
1497 of file.
1498 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1499 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1500 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1501 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1502 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1503 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1504
1505 2008-10-18 Pedro Alves <pedro@codesourcery.com>
1506
1507 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1508 reverse.
1509
1510 2008-10-17 Pedro Alves <pedro@codesourcery.com>
1511
1512 * infcmd.c (GO_USAGE): Delete.
1513 (go_command): Adjust.
1514
1515 2008-10-17 Michael Snyder <msnyder@vmware.com>
1516 Target interface for reverse debugging.
1517 * target.h (enum target_waitkind):
1518 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1519 (struct target_ops): New method to_can_execute_reverse.
1520 (target_can_execute_reverse): New macro.
1521 * target.c (update_current_target): Inherit to_can_execute_reverse.
1522
1523 Remote interface for reverse debugging.
1524 * remote.c (remote_can_execute_reverse): New target method.
1525 (remote_resume): Check for reverse exec direction, and send
1526 appropriate command to target.
1527 (remote_wait_as): Check target response for NO_HISTORY status.
1528 Also check for empty reply (target doesn't understand "bs" or "bc).
1529 (remote_vcont_resume): Jump out if attempting reverse execution.
1530
1531 Event handling interface for reverse debugging.
1532 * infrun.c (execution_direction): New state variable.
1533 (enum inferior_stop_reason): Add NO_HISTORY reason.
1534 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1535 Handle stepping over a function call in reverse.
1536 Handle stepping thru a line range in reverse.
1537 Handle setting a step-resume breakpoint in reverse.
1538 Handle stepping into a function in reverse.
1539 Handle stepping between line ranges in reverse.
1540 (print_stop_reason): Print reason for NO_HISTORY.
1541 (step_into_function): Rename to handle_step_into_function.
1542 (handle_step_into_function_backward): New function.
1543 (set_exec_direction_func, show_exec_direction_func): New funcs.
1544 (proceed): No need to singlestep over a breakpoint
1545 when resuming in reverse.
1546
1547 * inferior.h (enum exec_direction_kind): New enum.
1548 (execution_direction): Export new execution state variable.
1549
1550 * breakpoint.c (make_breakpoint_silent): New function.
1551 * breakpoint.h (make_breakpoint_silent): Export.
1552 * infcmd.c (finish_command): Check for reverse exec direction.
1553 (finish_backward): New function, handle finish cmd in reverse.
1554
1555 User interface for reverse execution.
1556 * Makefile.in (reverse.c): New file.
1557 * reverse.c: New file. User interface for reverse execution.
1558
1559 2008-10-17 Pedro Alves <pedro@codesourcery.com>
1560
1561 * remote.c (record_currthread): Add inferior before child threads.
1562 (remote_threads_info): Check for exited threads. Mention
1563 notification order.
1564
1565 2008-10-16 Joel Brobecker <brobecker@adacore.com>
1566
1567 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1568 Delete bp_catch_fork and bp_catch_vfork.
1569 (struct breakpoint_ops): Add new methods "insert", "remove"
1570 and "breakpoint_hit".
1571 * breakpoint.c (create_fork_vfork_event_catchpoint)
1572 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1573 (insert_catchpoint): Remove handling of bp_catch_fork and
1574 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1575 catchpoints instead.
1576 (insert_bp_location, update_breakpoints_after_exec)
1577 (remove_breakpoint, bpstat_check_location, bpstat_what)
1578 (allocate_bp_location): Likewise.
1579 (print_it_typical, print_one_breakpoint_location, mention): Remove
1580 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1581 (ep_is_catchpoint, user_settable_breakpoint)
1582 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1583 (breakpoint_re_set_one, disable_command, enable_command):
1584 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1585 bp_catchpoint breakpoints.
1586 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1587 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1588 New functions.
1589 (catch_fork_breakpoint_ops): New static constant.
1590 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1591 (print_it_catch_vfork, print_one_catch_vfork)
1592 (print_mention_catch_vfork): New functions.
1593 (catch_vfork_breakpoint_ops): New static constant.
1594 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1595 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1596 to create the fork and vfork catchpoints.
1597 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1598 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1599 fields.
1600 (catch_exception_unhandled_breakpoint_ops): Likewise.
1601 (catch_assert_breakpoint_ops): Likewise.
1602
1603 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1604
1605 * remote.c (set_general_process): New.
1606 (remote_check_symbols): Use it.
1607
1608 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1609
1610 * remote.c (push_remote_target): Delete.
1611 * target.h (push_remote_target): Delete declaration.
1612
1613 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1614
1615 * remote.c (remote_close): Unregister remote_desc from the event
1616 loop. Always restore the SIGINT handler. Discard all inferiors
1617 here.
1618 (remote_detach_1, remote_disconnect): Don't unregister the file
1619 descriptor from the event loop here.
1620 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1621 of morning the current inferior.
1622 (remote_kill): Don't unregister the file descriptor from the event
1623 loop here.
1624 (remote_mourn_1): Don't discard inferiors here.
1625
1626 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1627
1628 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1629 locations list.
1630 (moribund_breakpoint_here_p): Record the moribund
1631 location in the moribund_locations vector.
1632 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1633 (displaced_step_fixup): Check if the breakpoint the thread was
1634 trying to step over has been removed since having been placed in
1635 the displaced stepping queue.
1636 (adjust_pc_after_break): In non-stop mode, check for a moribund
1637 breakpoint at the stop pc.
1638 (handle_inferior_event): Don't retire moribund breakpoints on
1639 TARGET_WAITKIND_IGNORE.
1640
1641 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1642
1643 * infrun.c (displaced_step_prepare): Switch thread temporarily
1644 while we're here.
1645 (displaced_step_fixup): Make sure target_resume sees ptid as
1646 inferior_ptid. Add debug output.
1647
1648 2008-10-14 Pedro Alves <pedro@codesourcery.com>
1649
1650 Remove dead code.
1651
1652 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1653 (print_one_breakpoint_location): Adjust.
1654 (breakpoint_clear_ignore_counts): Delete.
1655 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1656 declaration.
1657 * target.c (generic_mourn_inferior): Don't clear ignore
1658 counts (never reached).
1659
1660 2008-10-10 Doug Evans <dje@google.com>
1661
1662 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1663 for dwarf section offsets and sizes.
1664 (dwarf2_cu): Ditto.
1665 (dwarf2_per_cu_data): Ditto.
1666 (create_all_comp_units): Change offset to unsigned int.
1667 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1668 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1669
1670 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1671 All callers updated.
1672 (read_checked_initial_length_and_offset): New function.
1673 (read_offset_1): New function.
1674 (read_offset): Call it.
1675 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1676 instead of read_initial_length. Call read_offset_1 instead of
1677 read_offset.
1678
1679 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1680 All callers updated.
1681
1682 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1683 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1684 DW_AT_HP_block_index.
1685
1686 2008-10-10 Pedro Alves <pedro@codesourcery.com>
1687
1688 * remote.c (remote_start_remote): Always tell the stub if we're in
1689 extended-remote.
1690
1691 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1692
1693 * remote.c (remote_wait): Rename to...
1694 (remote_wait_as): ... this. Don't loop here. If the remote
1695 didn't stop, return TARGET_WAITKIND_IGNORE.
1696 (remote_wait): New, reimplemented on top of remote_wait_as.
1697
1698 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1699
1700 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1701 is fixed upstream.
1702
1703 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1704
1705 * MAINTAINERS (Write After Approval): Add myself.
1706
1707 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1708
1709 Make it compile without warnings.
1710
1711 * procfs.c (create_procinfo): Initialize `parent'.
1712 (dead_procinfo): Pass a constant string as format to error.
1713 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1714 (procfs_find_LDT_entry): Adjust format string to long int
1715 ptid.tid.
1716 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1717 (procfs_xfer_memory): Adjust prototype.
1718 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1719 variable as printf_filtered format.
1720 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1721 * Makefile.in: Remove special rule.
1722
1723 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1724 Daniel Jacobowitz <dan@codesourcery.com>
1725
1726 * remote.c (remote_open_1): Move acknowledging any pending ack,
1727 querying supported features, activating noack mode, finding the
1728 target description, enabling extended remote, and checking remote
1729 symbols from here ...
1730 (remote_start_remote): ... to here.
1731 (remote_open_1): Don't pop the target if it is already gone.
1732 * target.c (unpush_target): Check for the dummy target.
1733
1734 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1735
1736 * ser-mingw.c: Include "command.h".
1737 (pipe_windows_open): Declare locals at the beginning of the scope.
1738
1739 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1740
1741 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1742 field.
1743 (remote_open_1): Clear waiting_for_stop_reply.
1744 (remote_resume): Set waiting_for_stop_reply.
1745 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1746 (putpkt_binary): If we're in async mode and waiting for a stop
1747 reply, bail out with an error.
1748 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1749
1750 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1751
1752 * remote.c (remote_get_thread_info): If the remote doesn't support
1753 the query, bail out.
1754
1755 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 Convert static_kind into loc_kind enum.
1758 * gdbtypes.h (enum field_loc_kind): New.
1759 (union field_location): New field dwarf_block.
1760 (struct field): Rename static_kind as loc_kind.
1761 (FIELD_STATIC_KIND): Rename to ...
1762 (FIELD_LOC_KIND): ... here.
1763 (TYPE_FIELD_STATIC_KIND): Rename to ...
1764 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1765 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1766 (TYPE_FIELD_STATIC): Remove.
1767 (TYPE_FIELD_BITPOS): Reformat.
1768 (SET_FIELD_BITPOS): New.
1769 (FIELD_PHYSADDR): Rename to ...
1770 (FIELD_STATIC_PHYSADDR): ... here.
1771 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1772 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1773 (FIELD_PHYSNAME): Rename to ...
1774 (FIELD_STATIC_PHYSNAME): ... here.
1775 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1776 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1777 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1778 (field_is_static): New declaration.
1779 * gdbtypes.c (field_is_static): New function.
1780 (copy_type_recursive): Update throughout.
1781 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1782 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1783 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1784
1785 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1786 Pedro Alves <pedro@codesourcery.com>
1787
1788 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1789 avoid a name collision.
1790 * gnu-nat.c: Likewise.
1791 * i386gnu-nat.c: Likewise.
1792
1793 2008-10-07 Joel Brobecker <brobecker@adacore.com>
1794
1795 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1796 of arguments that are references.
1797
1798 2008-10-06 Doug Evans <dje@google.com>
1799
1800 * dwarf2read.c (dwarf2_die_debug): New static global.
1801 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1802 Print to specified file, indented by the specified amount.
1803 (dump_die_for_error): New fn. Point all existing callers of
1804 dump_die here.
1805 (dump_die_die_1,dump_die): New fns, replaces ...
1806 (dump_die_list): ... deleted.
1807 (read_die_and_children_1): Old contents of read_die_and_children
1808 moved here.
1809 (read_die_and_children): Rewrite.
1810 (read_die_and_siblings): Call read_die_and_children_1 instead of
1811 read_die_and_children.
1812 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1813 * gdbinit.in (pdie): New macro.
1814
1815 * dwarf2read.c (offset_in_cu_p): New function.
1816 (find_partial_die,follow_die_ref): Use it.
1817
1818 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1819 (maintenance_info_psymtabs): Ditto.
1820
1821 2008-10-05 Michael Snyder <msnyder@vmware.com>
1822
1823 * infrun.c (handle_inferior_event): Fix typo in comment.
1824
1825 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1826
1827 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1828
1829 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1830
1831 PR gdb/2384:
1832 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1833 different lifetimes.
1834
1835 2008-10-03 Joel Brobecker <brobecker@adacore.com>
1836
1837 * solib-osf.c: Include "solib.h".
1838
1839 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1840
1841 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1842 and check for out-of-memory condition.
1843 * exec.c (exec_file_command): Call it.
1844 * infrun.c (handle_command, xdb_handle_command): Likewise.
1845 * interps.c (interpreter_exec_cmd): Likewise.
1846 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1847 * procfs.c (info_proc_cmd): Likewise.
1848 * remote-mips.c (common_open): Likewise.
1849 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1850 (gdbsim_open): Likewise.
1851 * remote.c (extended_remote_run, remote_put_command)
1852 (remote_get_command, remote_delete_command): Likewise.
1853 * ser-mingw.c (pipe_windows_open): Likesise.
1854 * source.c (add_path, show_substitute_path_command)
1855 (unset_substitute_path_command, set_substitute_path_command):
1856 Likewise.
1857 * stack.c (backtrace_command): Likewise.
1858 * symfile.c (symbol_file_command, generic_load)
1859 (add_symbol_file_command): Likesise.
1860 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1861 (maintenance_print_msymbols): Likewise.
1862
1863 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1866 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1867 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1868 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1869 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1870 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1871 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1872 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1873 (f77_get_upperbound): ... this function handling now only
1874 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1875 (f77_get_dynamic_lowerbound): Replace with ...
1876 (f77_get_lowerbound): ... this function handling now only
1877 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1878 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1879 Update their callers.
1880 * eval.c (evaluate_subexp_standard): Update their callers.
1881 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1882 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1883 prototypes.
1884 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1885 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1886 the lower_bound_was_default variable. Update the
1887 f77_get_dynamic_upperbound, f77_get_upperbound and
1888 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1889 * gdbtypes.c (print_bound_type): Remove the function.
1890 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1891 LOWER_BOUND_TYPE.
1892 * gdbtypes.h (enum array_bound_type): Remove.
1893 (struct main_type): Remove the fields upper_bound_type and
1894 lower_bound_type. Comment the new overload of the field artificial.
1895 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1896 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1897 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1898 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1899
1900 2008-10-02 Tom Tromey <tromey@redhat.com>
1901
1902 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1903
1904 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1905
1906 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1907 comments.
1908 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1909 (mips_linux_init_abi): Do not override skip_trampoline_code.
1910 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1911 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1912 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1913 (mips_skip_mips16_trampoline_code): Rename from
1914 mips_skip_trampoline_code.
1915 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1916 * infrun.c (handle_inferior_event): Do not pass zero to
1917 in_solib_dynsym_resolve_code.
1918
1919 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1920 Pedro Alves <pedro@codesourcery.com>
1921
1922 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1923
1924
1925 2008-10-01 Tom Tromey <tromey@redhat.com>
1926
1927 * symtab.c (search_symbols): Update.
1928 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1929
1930 2008-10-01 Tom Tromey <tromey@redhat.com>
1931
1932 * symfile.c (syms_from_objfile): Update.
1933 (reread_symbols): Update.
1934 * objfiles.h (OBJF_SYMS): Remove.
1935 (OBJF_REORDERED): Renumber.
1936 (OBJF_SHARED): Likewise.
1937 (OBJF_READNOW): Likewise.
1938 (OBJF_USERLOADED): Likewise.
1939
1940 2008-10-01 Tom Tromey <tromey@redhat.com>
1941
1942 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1943 (find_pc_sect_symtab): Likewise.
1944 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1945 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1946 MSYMBOL_TYPE, not SYMBOL_TYPE.
1947 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1948 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1949 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1950 MSYMBOL_TYPE.
1951 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1952
1953 2008-10-01 Tom Tromey <tromey@redhat.com>
1954
1955 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1956 (scan_xcoff_symtab): Update.
1957 * mdebugread.c (record_minimal_symbol): Update.
1958 (parse_partial_symbols): Update.
1959 * elfread.c (record_minimal_symbol): Update.
1960 * dbxread.c (record_minimal_symbol): Update.
1961 * coffread.c (record_minimal_symbol): Update.
1962 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1963 (sh64_elf_make_msymbol_special): Update.
1964 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1965 MSYMBOL_TARGET_FLAG_1.
1966 (mips_elf_make_msymbol_special): Likewise.
1967 (msymbol_is_special): Likewise.
1968 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1969 (install_minimal_symbols): Likewise.
1970 (prim_record_minimal_symbol): Update.
1971 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1972 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1973 (MSYMBOL_SET_RTI): Redefine.
1974 (MSYMBOL_IS_RTC): Redefine.
1975 (MSYMBOL_IS_RTI): Redefine.
1976 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1977 (MSYMBOL_IS_SPECIAL): Redefine.
1978 * symtab.h (struct minimal_symbol) <info>: Remove.
1979 <target_flag_1, target_flag_2>: New fields.
1980 (MSYMBOL_INFO): Remove.
1981 (MSYMBOL_TARGET_FLAG_1): New macro.
1982 (MSYMBOL_TARGET_FLAG_2): Likewise.
1983 (prim_record_minimal_symbol_and_info): Update.
1984
1985 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1986
1987 * ada-lang.c (is_digits_suffix): Delete unused function.
1988
1989 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1990
1991 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1992 moduli >= 2**31.
1993
1994 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1995
1996 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1997 variant branch.
1998 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1999 supposed to be null. Fixes debugger segfaults.
2000 (is_unchecked_variant): New function.
2001 (to_fixed_variant_branch_type): Modify to leave unchecked unions
2002 untouched.
2003 (ada_template_to_fixed_record_type_1): Fix comment.
2004
2005 2008-09-30 Joel Brobecker <brobecker@adacore.com>
2006
2007 * ada-lang.c (standard_exc): New static constant.
2008 (ada_exception_catchpoint_cond_string): Add special handling
2009 for the predefined exceptions.
2010
2011 2008-09-30 Joel Brobecker <brobecker@adacore.com>
2012
2013 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
2014 the code accordingly.
2015
2016 2008-09-30 Joel Brobecker <brobecker@adacore.com>
2017
2018 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
2019 treatment of expect_type. Return the correct type when dereferencing
2020 an integer.
2021
2022 2008-09-30 Tom Tromey <tromey@redhat.com>
2023
2024 PR gdb/2484:
2025 * symtab.c (struct add_macro_name_data): New struct.
2026 (add_macro_name): New function.
2027 (default_make_symbol_completion_list): Complete macro names.
2028 * scm-lang.c (scm_language_defn): Update.
2029 * p-lang.c (pascal_language_defn): Update.
2030 * objc-lang.c (objc_language_defn): Update.
2031 * macrotab.h (macro_callback_fn): Add user_data argument.
2032 (macro_for_each): Likewise.
2033 (macro_for_each_in_scope): Declare.
2034 * macrotab.c: (struct macro_for_each_data): New struct.
2035 (foreach_macro): Use it.
2036 (macro_for_each): Likewise.
2037 (foreach_macro_in_scope): New function.
2038 (macro_for_each_in_scope): Likewise.
2039 * macrocmd.c (print_one_macro): Add argument.
2040 (macro_list_command): Pass NULL to macro_for_each.
2041 * m2-lang.c (m2_language_defn): Update.
2042 * language.h (struct language_defn) <la_macro_expansion>: New
2043 field.
2044 (macro_expansion): New enum.
2045 * language.c (unknown_language_defn): Update. Fix order of
2046 initializers.
2047 (auto_language_defn): Likewise.
2048 (local_language_defn): Update.
2049 * jv-lang.c (java_language_defn): Update.
2050 * f-lang.c (f_language_defn): Update.
2051 * c-lang.c (c_language_defn): Update.
2052 (cplus_language_defn): Likewise.
2053 (asm_language_defn): Likewise.
2054 (minimal_language_defn): Likewise.
2055 * ada-lang.c (ada_language_defn): Update.
2056
2057 2008-09-30 Joel Brobecker <brobecker@adacore.com>
2058
2059 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
2060 (get_scope_pc_bounds): Use it.
2061
2062 2008-09-27 Tom Tromey <tromey@redhat.com>
2063
2064 * NEWS: Update.
2065 * macrocmd.c (extract_identifier): Add is_parameter argument.
2066 (macro_define_command): Update.
2067 (macro_undef_command): Likewise.
2068 * macroexp.c (stringify): New function.
2069 (find_parameter): Likewise.
2070 (gather_arguments): Add nargs argument. Handle varargs.
2071 (substitute_args): Add is_varargs and va_arg_name arguments.
2072 Handle varargs, splicing, stringification. Use find_parameter.
2073 (expand): Handle varargs.
2074
2075 2008-09-27 Tom Tromey <tromey@redhat.com>
2076
2077 * scm-lang.c (scm_language_defn): Update.
2078 * p-typeprint.c (pascal_print_typedef): New function.
2079 * p-lang.h: (pascal_print_typedef): Declare.
2080 * p-lang.c (pascal_language_defn): Update.
2081 * objc-lang.c (objc_language_defn): Update.
2082 * m2-typeprint.c (m2_print_typedef): New function.
2083 * m2-lang.h (m2_print_typedef): Declare.
2084 * m2-lang.c (m2_language_defn): Update.
2085 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
2086 Remove.
2087 (struct language_defn) <la_print_typedef>: New field.
2088 (default_print_typedef): Declare.
2089 (LA_PRINT_TYPEDEF): New define.
2090 * language.c (unknown_language_defn): Update.
2091 (auto_language_defn): Update.
2092 (local_language_defn): Update.
2093 * jv-lang.c (java_language_defn): Update.
2094 * f-lang.c (f_language_defn): Update.
2095 * c-typeprint.c (c_print_typedef): New function.
2096 * c-lang.h (c_print_typedef): Declare.
2097 * c-lang.c (c_language_defn): Update.
2098 (cplus_language_defn): Update.
2099 (asm_language_defn): Update.
2100 (minimal_language_defn): Update.
2101 * ada-lang.c (ada_language_defn): Update.
2102 * typeprint.c (default_print_typedef): New function.
2103
2104 2008-09-27 Tom Tromey <tromey@redhat.com>
2105
2106 * jv-exp.y (insert_exp): Define using ISO syntax.
2107 (copy_exp): Likewise.
2108 (push_expression_name): Likewise.
2109 (push_fieldnames): Likewise.
2110 (java_type_from_name): Likewise.
2111 (yyerror): Likewise.
2112 (yylex): Likewise.
2113 (parse_number): Likewise.
2114
2115 2008-09-26 Joel Brobecker <brobecker@adacore.com>
2116
2117 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
2118
2119 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
2120
2121 * stack.c (print_frame_args): Fix typos in comments.
2122
2123 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
2124
2125 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
2126
2127 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
2128
2129 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
2130
2131 2008-09-24 Andreas Schwab <schwab@suse.de>
2132
2133 * frame.c (get_frame_register_bytes): Take pseudo registers into
2134 account. Avoid excessive function calls.
2135
2136 2008-09-23 Doug Evans <dje@google.com>
2137
2138 * dcache.c (state_chars): New static global.
2139 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
2140 All uses updated.
2141 (dcache_info): Print cache state as mnemonically useful letters instead
2142 of magic numbers.
2143
2144 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
2145
2146 2008-09-22 Tom Tromey <tromey@redhat.com>
2147
2148 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
2149 printf_filtered.
2150
2151 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2152
2153 * infrun.c (follow_exec): Don't do a generic mourn. Instead
2154 inline the required bits.
2155 * breakpoint.h (enum inf_context): Add inf_execd.
2156
2157 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2158
2159 * infrun.c (handle_inferior_event): In the follow exec case,
2160 context-switch before doing anything else.
2161
2162 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2163
2164 * top.c (any_thread_of, kill_or_detach): New functions.
2165 (quit_target): Iterate over all inferiors, killing or detaching
2166 accordingly.
2167
2168 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2169
2170 Remove the attach_flag global, and make it per-inferior.
2171
2172 * inferior.h (attach_flag): Delete.
2173 (inferior_process): Declare.
2174 * solib.c (update_solib_list): Adjust.
2175 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
2176 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2177 (inf_ptrace_files_info): Get it from the current inferior.
2178 * inf-ttrace.c (inf_ttrace_attach): Adjust.
2179 (inf_ttrace_files_info): Get it from the current
2180 inferior.
2181 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
2182 (clear_sigint_trap): Get it from the current process.
2183 * remote.c (extended_remote_attach_1)
2184 (extended_remote_create_inferior_1): Adjust.
2185 * top.c (quit_confirm, quit_target): Get it from the current inferior.
2186 * procfs.c (do_detach): Adjust.
2187 (procfs_wait): Get it from the event inferior.
2188 (procfs_files_info): Get it from the current inferior.
2189 * nto-procfs.c (procfs_files_info): Likewise.
2190 (procfs_attach): Adjust. Set the attach_flag here.
2191 (do_attach): Don't set it here.
2192 (procfs_detach): Don't clear it.
2193 (procfs_mourn_inferior): Don't clear it.
2194 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2195 * target.c (attach_flag): Delete.
2196 (generic_mourn_inferior): Don't clear it.
2197 * win32-nat.c (get_win32_debug_event): Get it from the event
2198 process.
2199 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
2200 in the inferior accordingly.
2201 (win32_attach): Don't set the attach_flag here. Pass 1 to
2202 do_intial_win32_stuff.
2203 (win32_files_info): Get it from the current inferior.
2204 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
2205 do_intial_win32_stuff.
2206
2207 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2208
2209 Make the stop_soon global be per-inferior instead.
2210
2211 * infcmd.c (attach_command_post_wait): Adjust.
2212 (attach_command): Likewise.
2213
2214 * inferior.h (stop_soon): Delete.
2215 (struct inferior): Add stop_soon member.
2216
2217 * infrun.c (stop_soon): Delete.
2218 (clear_proceed_status, start_remote)
2219 (fetch_inferior_event, handle_inferior_event): Adjust.
2220 (signal_stop_state): Don't check stop_soon here. Check in callers
2221 instead.
2222 (save_inferior_status, restore_inferior_status): Adjust.
2223
2224 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
2225 signals to common code if starting up the inferior.
2226
2227 * inferior.h (struct inferior_info): Added stop_soon member.
2228 * inferior.c (add_inferior) Clear stop_soon.
2229
2230 * mips-tdep.c (heuristic_proc_start): Adjust.
2231 * nto-procfs.c (procfs_create_inferior): Adjust.
2232 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2233 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2234 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2235 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2236
2237 * win32-nat.c (do_initial_win32_stuff): Adjust.
2238
2239 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2240
2241 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2242
2243 Implement remote multi-process extensions.
2244
2245 * remote.c (struct remote_state): Add extended and
2246 multi_process_aware fields.
2247 (remote_multi_process_p): New.
2248 (PACKET_vKill): New.
2249 (record_currthread): Use thread_change_ptid. Notice new
2250 inferiors.
2251 (set_thread, remote_thread_alive): Use write_ptid.
2252 (write_ptid, read_ptid): New.
2253 (remote_current_thread, remote_threads_extra_info): Use them.
2254 (remote_threads_info): Likewise. Detect new inferiors.
2255 (remote_start_remote): Add inferior to inferior list.
2256 (remote_multi_process_feature): New.
2257 (remote_protocol_features): Add "multiprocess" feature.
2258 (remote_query_supported): Pass "multiprocess+" as supported
2259 features.
2260 (remote_open_1): Clear multi_process_aware. Set extended
2261 accordingly.
2262 (remote_detach_1): Detach current process. Use extended packet
2263 format for extended-remote multi-process. Detach process from the
2264 inferior list. Only mourn after printing output.
2265 (extended_remote_attach_1): Add process to the inferior list.
2266 (remote_vcont_resume): Use write_ptid to pass the thread ids.
2267 (remote_wait): Use read_ptid. Implement the extended
2268 multi-process extension format of the 'W' and 'X' reply packets.
2269 Remove exited inferiors from inferior list.
2270 (remote_xfer_memory): Set general thread.
2271 (remote_vkill): New.
2272 (extended_remote_kill): New.
2273 (remote_mourn_1): Discard all inferiors.
2274 (select_new_thread_callback): New.
2275 (extended_remote_mourn_1): If there are more processes to debug,
2276 switch to a thread in another process, and don't pop the target.
2277 (extended_remote_create_inferior_1): Add the new process to the
2278 inferior list.
2279 (remote_stopped_by_watchpoint): Indenting.
2280 (remote_xfer_partial): Set the general thread.
2281 (remote_pid_to_str): If the remote is multi-process aware, print
2282 the process id as well as the thread id.
2283 (remote_get_thread_local_address): Use write_ptid.
2284 (init_extended_remote_ops): Register extended_remote_kill.
2285 (_initialize_remote): Register new packets. Change
2286 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
2287 member to 42000.
2288
2289 * thread.c (thread_change_ptid): Also account for the inferior pid
2290 changing.
2291
2292 * inferior.h (discard_all_inferiors): Declare.
2293 * inferior.c (discard_all_inferiors): New.
2294
2295 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2296
2297 * gnu-nat.c (gnu_attach): Add process to inferiors table.
2298 (gnu_detach): Remove it.
2299 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
2300 table.
2301 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
2302 to inferior table accordingly.
2303 (inf_ptrace_attach): Add new process to inferior table.
2304 (inf_ptrace_detach): Remove it.
2305 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
2306 to inferior table accordingly.
2307 (inf_ttrace_attach): Add process to inferior table.
2308 (inf_ttrace_detach): Remove it.
2309 * linux-fork.c (init_fork_list): Delete any left over inferior.
2310 (linux_fork_mourn_inferior, detach_fork_command): Also delete
2311 processes from inferior list.
2312 * monitor.c (monitor_open): Add process to inferior list.
2313 (monitor_close): Remove it.
2314 * nto-procfs.c (procfs_attach): Add process to inferior list.
2315 Find threads after pushing the target.
2316 (procfs_detach): Remove process from inferior list.
2317 (procfs_create_inferior): Add process to inferior list.
2318 * procfs.c (procfs_detach): Remove process from inferior list.
2319 (do_attach): Add process to inferior list.
2320 * remote-sim.c (sim_create_inferior): Add process to inferior list.
2321 (gdbsim_close): Remove it.
2322 * target.c (generic_mourn_inferior): If inferior_ptid is not
2323 null_ptid, remove the corresponding inferior from inferior list.
2324 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
2325 (win32_detach): Remove it.
2326 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
2327 to inferior list accordingly.
2328 * fork-child.c (fork_inferior): Add process to inferior list.
2329 * corelow.c (CORELOW_PID): Define.
2330 (core_close): Remove core from inferior list.
2331 (core_open): Add it.
2332
2333 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2334
2335 * inferior.h: Forward declare struct ui_out.
2336 Forward declare struct private_inferior.
2337 (struct inferior): New.
2338 (init_inferior_list, add_inferior, add_inferior_silent)
2339 (delete_inferior, delete_inferior_silent, detach_inferior)
2340 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2341 (valid_inferior_id, find_inferior_pid): New functions.
2342 (inferior_callback_func): New typedef.
2343 (iterate_over_inferiors, print_inferior, have_inferiors)
2344 (current_inferior): New functions.
2345 * inferior.c: New file.
2346
2347 * Makefile.in (SFILES): Add inferior.c.
2348 (COMMON_OBS): Add inferior.o.
2349
2350 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
2351
2352 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
2353 instead of determining symbol and line info directly.
2354 * MAINTAINERS: Update my email address.
2355
2356 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2357
2358 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
2359 at the same address as a prologue marker. Do not skip an entire
2360 function.
2361
2362 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
2363
2364 * frame.c (get_frame_register_bytes): Comment improvments.
2365
2366 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2367
2368 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
2369 all-stop mode.
2370
2371 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
2372
2373 * MAINTAINERS: Update my email address.
2374
2375 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
2376
2377 * frame.c (get_frame_register_bytes): Detect bad debug info.
2378
2379 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2382 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2383 initialization ...
2384 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2385 ...
2386 (handle_inferior_event): ... here after the add_thread call together
2387 with the local adjust_pc_after_break and reinit_frame_cache calls.
2388
2389 2008-09-16 David Daney <ddaney@avtrex.com>
2390
2391 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2392 all hardware bpstats.
2393
2394 2008-09-16 Joel Brobecker <brobecker@adacore.com>
2395
2396 * gstdint.h: Delete.
2397
2398 2008-09-15 Mark Kettenis <kettenis@gnu.org>
2399
2400 * infcall.c (generic_push_dummy_code): Remove.
2401 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2402
2403 2008-09-15 Doug Evans <dje@google.com>
2404
2405 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2406 (struct attribute): Ditto.
2407
2408 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2409
2410 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2411 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2412
2413 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2414 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2415 Correct arguments and improve comments.
2416 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2417 disabled code.
2418 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2419 point DBX register, change error to warning, and improve comments.
2420
2421 2008-09-14 Doug Evans <dje@google.com>
2422
2423 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2424
2425 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2426
2427 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2428
2429 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2430
2431 * defs.h (GCC_GENERATED_STDINT_H): Define.
2432
2433 2008-09-13 Tom Tromey <tromey@redhat.com>
2434
2435 * varobj.c (varobj_set_display_format): Use xfree.
2436 * tracepoint.c (stringify_collection_list): Use xfree.
2437 * remote-fileio.c (remote_fileio_reset): Use xfree.
2438 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2439 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2440 asprintf.
2441 * cp-support.c (mangled_name_to_comp): Use xfree.
2442
2443 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2444
2445 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2446 the associated complete symbol is also in the list.
2447 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2448 extracted out from ada_lookup_symbol_list.
2449 (ada_lookup_symbol_list): Use them. Remove the search through
2450 the minimal symbols.
2451
2452 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2453
2454 * dwarf2read.c (add_partial_subprogram): New procedure.
2455 (scan_partial_symbols): Use it.
2456 (load_partial_dies): Read in children of subprogram and lexical
2457 blocks for Ada compilation units.
2458
2459 2008-09-13 Tom Tromey <tromey@redhat.com>
2460
2461 * symfile.c (build_id_verify): Free 'found'.
2462 (find_separate_debug_file): Use xfree, not free.
2463
2464 2008-09-12 Doug Evans <dje@google.com>
2465
2466 * corefile.c (write_memory): Remove unnecessary copying.
2467
2468 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2469 order of _initialize_* fns.
2470
2471 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2472 first_die_offset. All uses updated.
2473 Delete unused members cu_head_ptr, next.
2474 Move members base_known, base_address to ...
2475 (dwarf2_cu) ... here. All uses updated.
2476
2477 2008-09-12 Pedro Alves <pedro@codesourcery.com>
2478
2479 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2480 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2481
2482 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2483
2484 * fork-child.c (startup_inferior): Use target_wait and target_resume
2485 directly instead of calling wait_for_inferior / resume.
2486
2487 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2488 or init_wait_for_inferior.
2489 (run_command_1): Call init_wait_for_inferior.
2490
2491 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2492
2493 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2494 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2495 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2496 builtin_type_unsigned_char, builtin_type_unsigned_short,
2497 builtin_type_unsigned_int, builtin_type_unsigned_long,
2498 builtin_type_float, builtin_type_double, builtin_type_long_double,
2499 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2500 builtin_type_bool, builtin_type_long_long,
2501 builtin_type_unsigned_long_long): Remove macros.
2502
2503 (builtin_type_f_character, builtin_type_f_integer,
2504 builtin_type_f_integer_s2, builtin_type_f_logical,
2505 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2506 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2507 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2508 builtin_type_f_complex_s32): Likewise.
2509
2510 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2511 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2512
2513 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2514 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2515
2516 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2517 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2518
2519 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2520
2521 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2522 target_gdbarch instead of builtin_type_void_data_ptr.
2523 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2524 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2525 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2526 open_symbol_file_object): Likewise.
2527 * nto-tdep.c (LM_ADDR): Likewise.
2528
2529 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2530
2531 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2532 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2533 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2534
2535 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2536
2537 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2538 and its associated types to perform pointer conversion.
2539 (procfs_can_use_hw_breakpoint): Likewise.
2540 (procfs_auxv_parse): Remove unused variable.
2541
2542 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2543
2544 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2545 instead of builtin_type_void_data_ptr.
2546 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2547
2548 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2549
2550 * expprint.c (print_subexp_standard): Compare against builtin type
2551 associated with exp->gdbarch instead of builtin_type_char.
2552
2553 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2554 extract values of arbitrary logical type. Handle arbitrary
2555 complex types.
2556
2557 * printcmd.c (float_type_from_length): New function.
2558 (print_scalar_formatted, printf_command): Use it.
2559
2560 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2561
2562 * valops.c: Include "objfiles.h" and "symtab.h".
2563 (find_function_in_inferior): New argument OBJF_P. Use it to return
2564 objfile where function is defined. Use per-objfile arch types
2565 instead of builtin_type_ to define default return type.
2566
2567 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2568 architecture to define inferior call argument types.
2569 * gcore.c (derive_heap_segment): Likewise.
2570 * objc-lang.c (value_nsstring): Likewise.
2571 * scm-lang.c (scm_lookup_name): Likewise.
2572 * scm-valprint.c (scm_inferior_print): Likewise.
2573 * valops.c (value_allocate_space_in_inferior): Likewise.
2574
2575 * eval.c (evaluate_subexp_standard): Update calls.
2576 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2577
2578 * linux-fork.c: Include "objfiles.h".
2579 * scm-lang.c: Include "objfiles.h".
2580 * scm-valprint.c: Include "objfiles.h".
2581
2582 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2583
2584 * gdbarch.sh (name_of_malloc): Remove.
2585 * gdbarch.c, gdbarch.h: Re-generate.
2586 * valops.c (value_allocate_space_in_inferior): Do not call
2587 gdbarch_name_of_malloc.
2588
2589 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2590
2591 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2592 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2593 (value_bit_index): Use extract_unsigned_integer
2594 instead of unpack_long to read single byte.
2595
2596 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2597
2598 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2599 associates types instead of builtin_type_ macros.
2600 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2601 (call_function_by_hand): Use per-architecture "int" type as
2602 fall-back if find_function_addr returns NULL VALUE_TYPE.
2603 Update call to value_arg_coerce.
2604
2605 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2606
2607 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2608 (cplus_make_method_ptr): Add TYPE parameter.
2609 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2610 on to current_cp_abi.method_ptr_size callback.
2611 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2612 current_cp_abi.make_method_ptr callback.
2613
2614 * gdbtypes.c (lookup_methodptr_type): Pass target type
2615 argument to cplus_method_ptr_size.
2616 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2617 (value_struct_elt_for_reference): Likewise.
2618
2619 * gnu-v3-abi.c (get_class_arch): New function.
2620 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2621 instead of current_gdbarch. Update all callers.
2622 (gnuv3_get_vtable): Likewise.
2623 (gnuv3_get_virtual_fn): Likewise.
2624 (gnuv3_decode_method_ptr): Likewise.
2625 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2626 Use it instead of current_gdbarch.
2627 (gnuv3_virtual_fn_field): Likewise.
2628 (gnuv3_baseclass_offset): Likewise.
2629 (gnuv3_print_method_ptr): Likewise.
2630 (gnuv3_method_ptr_to_value): Likewise.
2631 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2632 class architecture. Use architecture types instead of builtin types.
2633 (gnuv3_make_method_ptr): Likewise.
2634
2635 * cp-valprint.c (cp_print_class_member): Expect pointer type
2636 instead of class type. Use its length when extracting value.
2637 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2638
2639 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2640
2641 * stack.c (return_command): Use frame architecture to determine
2642 default integer return type.
2643
2644 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2645 to determine pointer types.
2646 (f77_get_dynamic_upperbound): Likewise.
2647
2648 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2649 (resolve_msgsend): Use architecture of current frame to determine
2650 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2651 (resolve_msgsend_stret, resolve_msgsend_super,
2652 resolve_msgsend_super_stret): Likewise.
2653
2654 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2655
2656 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2657 instead of builtin_type_ macros.
2658 * amd64-tdep.c (amd64_register_type): Likewise.
2659 (amd64_get_longjmp_target): Likewise.
2660 * arm-tdep.c (arm_register_type): Likewise.
2661 * avr-tdep.c (avr_register_type): Likewise.
2662 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2663 * frv-tdep.c (frv_register_type): Likewise.
2664 * h8300-tdep.c (h8300_register_type): Likewise.
2665 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2666 hppa_skip_trampoline_code): Likewise.
2667 * i386-tdep.c (i386_register_type): Likewise.
2668 (i386_unwind_pc, i386_sse_type): Likewise.
2669 * ia64-tdep.c (ia64_register_type): Likewise.
2670 * m32r-tdep.c (m32r_register_type): Likewise.
2671 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2672 * m88k-tdep.c (m88k_register_type): Likewise.
2673 * mep-tdep.c (mep_register_type): Likewise.
2674 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2675 * mn10300-tdep.c (mn10300_register_type): Likewise.
2676 * mt-tdep.c (mt_copro_register_type): Likewise.
2677 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2678 (rs6000_convert_register_p, rs6000_register_to_value,
2679 rs6000_value_to_register): Likewise.
2680 * s390-tdep.c (s390_register_type): Likewise.
2681 * sh64-tdep.c (sh64_register_type): Likewise.
2682 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2683 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2684 sh_sh4_build_float_register_type, sh_sh4_register_type,
2685 sh_default_register_type): Likewise.
2686 * sparc64-tdep.c (sparc64_register_type): Likewise.
2687 * sparc-tdep.c (sparc32_register_type): Likewise.
2688 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2689 * v850-tdep.c (v850_register_type): Likewise.
2690 * vax-tdep.c (vax_register_type): Likewise.
2691 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2692 xtensa_push_dummy_call): Likewise.
2693
2694 * std-regs.c (value_of_builtin_frame_fp_reg,
2695 value_of_builtin_frame_pc_reg): Likewise.
2696 * target-descriptions.c (tdesc_register_type): Likewise.
2697
2698 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2699
2700 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2701 instead of builtin_type_int as default unspecified integral type.
2702 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2703 assign_component, to_fixed_range_type): Likewise.
2704 * ada-typeprint.c (print_range, print_range_bound,
2705 print_range_type_named): Likewise.
2706 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2707 * eval.c (evaluate_subexp_standard): Likewise.
2708 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2709 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2710 build_gdb_vtable_type): Likewise.
2711 * jv-lang.c (java_array_type): Likewise.
2712 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2713 * m2-valprint.c (m2_print_long_set): Likewise.
2714 * parse.c (follow_types): Likewise.
2715 * p-typeprint.c (pascal_type_print_base): Likewise.
2716 * valops.c (value_one, value_array, value_string,
2717 value_bitstring): Likewise.
2718 * value.c (allocate_repeat_value, value_from_string): Likewise.
2719 * varobj.c (c_describe_child): Likewise.
2720 * mt-tdep.c (mt_register_type): Likewise.
2721 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2722 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2723
2724 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2725
2726 * defs.h (struct gdbarch): Add forward declaration.
2727 (set_next_address): Add GDBARCH argument.
2728 * printcmd.c (set_next_address): Use it to find pointer type.
2729 * breakpoint.c (breakpoint_1): Update call.
2730 * source.c (line_info): Likewise.
2731 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2732
2733 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2734 types for internal variable values.
2735 * infrun.c (handle_inferior_event): Likewise.
2736 * source.c (forward_search_command, reverse_search_command): Likewise.
2737 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2738 set_tracepoint_num, set_traceframe_context): Likewise.
2739
2740 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2741
2742 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2743 and builtin_true_unsigned_char.
2744 (builtin_type_true_char): Remove macro, add extern declaration.
2745 (builtin_type_true_unsigned_char): Add extern declaration.
2746 * gdbtypes.c (builtin_type_true_char): New global variable.
2747 (builtin_type_true_unsigned_char): Likewise.
2748 (_initialize_gdbtypes): Initialize them.
2749 (gdbtypes_post_init): Do not initialize builtin_true_char
2750 and builtin_true_unsigned_char members of struct builtin_type.
2751
2752 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2753 use builtin_type_true_unsigned_char instead.
2754
2755 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2756 instead of builtin_type_char for internal string.
2757
2758 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2759
2760 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2761 (builtin_type_f_void): Remove macro.
2762 * gdbtypes.c (builtin_type_void): New global variable.
2763 (_initialize_gdbtypes): Initialize it.
2764
2765 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2766 lookup_pointer_type or lookup_function_type on builtin_type_void.
2767 * printcmd.c (set_next_address): Likewise.
2768 * objc-lang.c (value_nsstring): Likewise.
2769 * mt-tdep.c (mt_copro_register_type): Likewise.
2770 * xtensa-tdep.c (xtensa_register_type): Likewise.
2771
2772 * symfile.c (syms_from_objfile): Remove special handling
2773 of builtin_type_void and builtin_type_char.
2774
2775 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2776
2777 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2778 of builtin_type_ macros when handling OP_OBJC_ operations.
2779 * objc-lang.c (print_object_command): Likewise.
2780
2781 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2782
2783 * ada-valprint.c: Include "objfiles.h".
2784 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2785 a System.Address type is defined to retrieve the proper pointer type
2786 to use to print it.
2787
2788 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2789
2790 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2791 result type instead of builtin_type_int.
2792 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2793 (ada_value_subscript): Update call to value_pos_atr.
2794 (ada_value_ptr_subscript): Likewise.
2795 (ada_evaluate_subexp): Likewise.
2796
2797 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2798
2799 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2800 (cast_from_fixed_to_double): Rename to ...
2801 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2802 of builtin_type_double.
2803 (ada_value_cast): Use cast_from_fixed instead of casting result
2804 of cast_from_fixed_to_double.
2805 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2806
2807 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2808
2809 * valops.c (value_ind): No longer allow dereferencing an
2810 integer type.
2811 * eval.c (evaluate_subexp_standard): Handle deferencing an
2812 integer type here.
2813 * ada-lang.c (ada_evaluate_subexp): Likewise.
2814
2815 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2816
2817 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2818 a reference type, pass the reference type directly to unpack_pointer.
2819 * c-valprint.c (c_val_print): Likewise.
2820 * f-valprint.c (f_val_print): Likewise.
2821 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2822 * p-valprint.c (pascal_val_print): Likewise.
2823
2824 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2825
2826 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2827 to construct the EVAL_SKIP dummy return value.
2828 * ada-lang.c (ada_evaluate_subexp): Likewise.
2829 * jv-lang.c (evaluate_subexp_java): Likewise.
2830 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2831 * scm-lang.c (evaluate_exp): Likewise.
2832
2833 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2834
2835 * value.h (coerce_enum, coerce_number): Remove prototypes.
2836 * value.c (coerce_enum, coerce_number): Remove.
2837 * valarith.c (value_x_binop): Do not call coerce_enum.
2838 (value_x_unop): Likewise.
2839 (value_logical_not): Call coerce_array instead of coerce_number.
2840
2841 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2842
2843 * ax-gdb.c: Include "language.h".
2844 (gen_frame_args_address): Add GDBARCH parameter; use it
2845 instead of current_gdbarch.
2846 (gen_frame_locals_address): Likewise.
2847 (gen_var_ref): Add GDBARCH parameter. Update calls to
2848 gen_frame_args_address and gen_frame_locals_address. Use
2849 pointer type from gdbarch.
2850 (gen_usual_unary): Add EXP parameter. Use integer type
2851 from exp->gdbarch.
2852 (gen_usual_arithmetic): Likewise.
2853 (gen_integral_promotions): Likewise.
2854 (gen_add, gen_sub): Remove.
2855 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2856 (gen_logical_not): Use passed-in boolean result type
2857 instead of builtin_type_int.
2858 (gen_complement): Do not call gen_usual_unary or
2859 gen_integral_promotions.
2860 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2861 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2862 Use builtin_type_int32 as internal range type.
2863 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2864 as result type. Update call to gen_expr.
2865 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2866 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2867 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2868 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2869 Use exp->gdbarch instead of current_gdbarch.
2870 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2871
2872 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2873
2874 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2875 and unop_promote before calling value_binop et. al.
2876 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2877 and unop_promote before calling value_binop et. al.
2878
2879 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2880 (value_pos): Do not call unop_promote.
2881 (value_neg, value_complement): Likewise.
2882
2883 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2884
2885 * value.h (unop_promote, binop_promote): Add prototypes.
2886 * eval.c (unop_promote, binop_promote): New functions.
2887 * valarith.c (unop_result_type, binop_result_type): Remove.
2888 (value_binop): Call binop_promote or unop_promote.
2889 Inline remaining parts of binop_result_type. Remove special
2890 code to truncate integer values for unsigned operations.
2891 (value_pos): Call unop_promote. Inline remaining parts of
2892 unop_result_type.
2893 (value_neg, value_complement): Likewise.
2894
2895 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2896
2897 * value.h (value_add, value_sub): Remove.
2898 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2899 * valarith.c (value_add, value_sub): Remove.
2900 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2901 (find_size_for_pointer_math): Add assertion. Update comment.
2902 (value_binop): Update comment.
2903
2904 * eval.c (ptrmath_type_p): New function.
2905 (evaluate_subexp_standard): Replace value_add and value_sub
2906 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2907 Use builtin_type_uint8 instead of builtin_type_char to hold
2908 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2909 * valarith.c (value_subscript): Replace value_add by
2910 value_ptradd. Replace value_sub by value_binop.
2911 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2912 (ada_tag_name_2): Replace value_add by value_ptradd.
2913 (ada_evaluate_subexp): Replace value_add and value_sub by
2914 value_binop.
2915 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2916 by value_ptradd.
2917 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2918 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2919
2920 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2921
2922 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2923 the expression architecture instead of builtin_type_int as the
2924 sizeof return type.
2925
2926 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2927
2928 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2929 a type parameter as expression element.
2930 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2931 type as expression element.
2932 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2933 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2934
2935 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2936
2937 * language.h (struct language_arch_info): New members
2938 bool_type_default and bool_type_symbol.
2939 (lang_bool_type): Remove prototype.
2940 (LA_BOOL_TYPE): Remove macro.
2941 (language_bool_type): Add prototype.
2942 * language.c (lang_bool_type): Remove.
2943 (language_bool_type): New function.
2944
2945 * value.h (value_in): Change return value to int.
2946 * value.c (value_in): Return int instead of struct value *.
2947
2948 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2949 of using LA_BOOL_TYPE. Update call to value_in.
2950 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2951 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2952
2953 * language.c (unknown_language_arch_info): Set bool_type_default member
2954 of struct language_arch_info.
2955 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2956 bool_type_default members of struct language_arch_info.
2957 * c-lang.c (c_language_arch_info): Set bool_type_default member
2958 of struct language_arch_info.
2959 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2960 members of struct language_arch_info.
2961 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2962 bool_type_default members of struct language_arch_info.
2963 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2964 bool_type_default members of struct language_arch_info.
2965 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2966 bool_type_default members of struct language_arch_info.
2967 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2968 bool_type_default members of struct language_arch_info.
2969
2970 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2971
2972 * jv-lang.c (enum java_primitive_types): New type.
2973 (java_language_arch_info): New function.
2974 (java_language): Use it instead of c_language_arch_info.
2975
2976 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2977
2978 * value.h (value_bitstring_subscript): New prototype.
2979 * valarith.h (value_bitstring_subscript): New function.
2980 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2981 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2982 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2983
2984 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2985
2986 * expression.h (struct expression): New member GDBARCH.
2987 * parse.c (parse_exp_in_context): Initialize it.
2988 * parser-def.h (parse_gdbarch, parse_language): New macros.
2989
2990 * ada-exp.y (parse_type): New macro.
2991 Replace builtin_type_ macros by using parse_type.
2992 Replace current_language by parse_language.
2993 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2994 Replace builtin_type_ macros.
2995
2996 * c-exp.y (parse_type): New macro.
2997 Replace builtin_type_ macros by using parse_type.
2998 (parse_number): Replace current_gdbarch by parse_gdbarch.
2999 (yylex): Replace current_language by parse_language.
3000
3001 * f-exp.y (parse_type, parse_f_type): New macros.
3002 Replace builtin_type_ macros by using parse_{f_,}type.
3003 (parse_number): Replace current_gdbarch by parse_gdbarch.
3004 (yylex): Replace current_language by parse_language.
3005
3006 * jv-exp.y (parse_type): New macro.
3007 (parse_number): Replace builtin_type_ macros by using parse_type.
3008
3009 * m2-exp.y (parse_type, parse_m2_type): New macros.
3010 Replace builtin_type_ macros by using parse_{m2_,}type.
3011
3012 * objc-exp.y (parse_type): New macro.
3013 Replace builtin_type_ macros by using parse_type.
3014 (parse_number): Replace current_gdbarch by parse_gdbarch.
3015 (yylex): Replace current_language by parse_language.
3016
3017 * p-exp.y (parse_type): New macro.
3018 Replace builtin_type_ macros by using parse_type.
3019 (parse_number): Replace current_gdbarch by parse_gdbarch.
3020 (yylex): Replace current_language by parse_language.
3021
3022 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
3025 and DATA_SYMBOL_TYPE arguments.
3026 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
3027 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
3028 (write_dollar_variable): Update call.
3029
3030 * ada-exp.y (write_var_or_type): Update call.
3031 * c-exp.y: Likewise.
3032 * f-exp.y: Likewise.
3033 * jv-exp.y: Likewise.
3034 * m2-exp.y: Likewise.
3035 * objc-exp.y: Likewise.
3036 * p-exp.y: Likewise.
3037
3038 2008-09-10 Joel Brobecker <brobecker@adacore.com>
3039
3040 * ada-lang.c (ada_parent_type): Add handling of the case where
3041 the _parent field is a pointer and/or has a parallel XVS type.
3042 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
3043 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
3044 the type of the tag instead of doing forcing an EVAL_NORMAL
3045 expression evaluation.
3046
3047 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
3048 Joel Brobecker <brobecker@adacore.com>
3049
3050 * ada-lang.c (is_digits_suffix): New function.
3051 (is_dot_digits_suffix): Remove.
3052 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
3053 before looking up in symbol table, and do not use wild matches on them.
3054 (wild_match): Reimplement for speed and to allow matching of operator
3055 symbols.
3056 (is_valid_name_for_wild_match): Return zero for names that do not
3057 follow the GNAT encoding.
3058
3059 (is_name_suffix): Fix typo in comment.
3060 (to_record_with_fixed_variant_part): Ditto.
3061
3062 2008-09-10 Pedro Alves <pedro@codesourcery.com>
3063
3064 * Makefile.in (gnu-nat.o): New rule.
3065
3066 2008-09-10 Joel Brobecker <brobecker@adacore.com>
3067
3068 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
3069 archecture-neutral builtin_type_int32 instead of builtin_type_int.
3070
3071 2008-09-10 Joel Brobecker <brobecker@adacore.com>
3072
3073 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
3074 Add special handling for pointer types.
3075
3076 2008-09-10 Pedro Alves <pedro@codesourcery.com>
3077
3078 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
3079 right scope level.
3080 (inf_ttrace_resume, inf_ttrace_wait): Typos.
3081
3082 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3083
3084 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
3085 of builtin_type_int.
3086 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
3087 instead of builtin_type_int.
3088
3089 2008-09-09 Pedro Alves <pedro@codesourcery.com>
3090
3091 * infrun.c (normal_stop): Run hook-stop last.
3092
3093 2008-09-09 Pedro Alves <pedro@codesourcery.com>
3094
3095 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
3096 (init_gnu_ops): Don't register it.
3097
3098 2008-09-09 Pedro Alves <pedro@codesourcery.com>
3099
3100 * gnu-nat.c (gnu_attach): Push target before fetching the list of
3101 threads.
3102
3103 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
3104
3105 * valops.c (value_cast_structs): Return NULL for failure.
3106 (value_cast): Handle NULL from value_cast_structs.
3107 (value_fetch_lazy): Call check_typedef. Remove unused variable.
3108
3109 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3110
3111 * inferior.h (context_switch_to): Delete.
3112 * infrun.c (context_switch): Don't save and load infrun state.
3113 (context_switch_to): Delete.
3114
3115 * infcmd.c (proceed_thread_callback): Replace context_switch_to
3116 calls by switch_to_thread calls.
3117
3118 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
3119 * thread.c (main_thread_state, main_thread_executing): Delete.
3120 (inferior_thread): Delete references to them.
3121 (add_thread_silent): Fix case where we're adding a thread with the
3122 same ptid as an exited thread. Remove references to
3123 context-switching.
3124 (load_infrun_state, save_infrun_state): Delete.
3125 (thread_alive, is_thread_state, any_running, is_executing)
3126 (set_executing): Remove the special handling for targets that
3127 don't register any thread.
3128 (restore_current_thread, thread_apply_all_command)
3129 (do_captured_thread_select): Unconditionally call
3130 switch_to_thread.
3131
3132 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
3133 Call switch_to_thread instead of context_switch_to.
3134
3135 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3136
3137 Remove global continuations in favour of a per-thread
3138 continuations.
3139
3140 * gdbthread.h (struct thread_info): Add comments around
3141 continuations and intermediate_continuations.
3142 (save_infrun_state, load_infrun_state): Delete continuations and
3143 intermediate_continuations arguments.
3144 * infrun.c (context_switch): Don't context-switch the continuations.
3145 * thread.c (clear_thread_inferior_resources): Discard all
3146 continuations of the thread we're clearing.
3147 (save_infrun_state, load_infrun_state): Delete continuations and
3148 intermediate_continuations arguments, and the code referencing
3149 them.
3150 * utils.c: Include "gdbthread.h".
3151 (cmd_continuation, intermediate_continuation): Delete.
3152 (add_continuation): Add thread_info* argument. Install the
3153 continuation on it.
3154 (restore_thread_cleanup): New.
3155 (do_all_continuations_ptid, do_all_continuations_thread_callback):
3156 New.
3157 (do_all_continuations): Reimplement.
3158 (discard_all_continuations_thread_callback,
3159 discard_all_continuations_thread): New.
3160 (discard_all_continuations): Reimplement.
3161 (add_intermediate_continuation): Add thread_info* argument.
3162 Install the continuation on it.
3163 (do_all_intermediate_continuations_thread_callback)
3164 (do_all_intermediate_continuations_thread): New.
3165 (do_all_intermediate_continuations): Reimplement.
3166 (discard_all_intermediate_continuations_thread_callback): New.
3167 (discard_all_intermediate_continuations_thread): New.
3168 (discard_all_intermediate_continuations): Reimplement.
3169
3170 * breakpoint.c (until_break_command): Install the continuation on
3171 the current thread.
3172
3173 * defs.h (cmd_continuation, intermediate_continuation): Delete.
3174 (struct thread_info): Forward declare.
3175 (add_continuation, add_intermediate_continuation): Add
3176 thread_info* argument.
3177 (do_all_continuations_thread, discard_all_continuations_thread)
3178 (do_all_intermediate_continuations_thread)
3179 (discard_all_intermediate_continuations_thread): Declare.
3180 * inf-loop.c (inferior_event_handler): In non-stop only run
3181 continuations on the thread that stopped. In all-stop, run
3182 continuations on all threads.
3183 * infcmd.c (step_once, finish_command): Adjust.
3184
3185 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3186
3187 Remove the global stop_step in favour of a per-thread
3188 stop_step.
3189
3190 * inferior.h (stop_step): Delete.
3191
3192 * gdbthread.h (struct thread_info): Add comments to stop_step.
3193 (save_infrun_state, load_infrun_state): Remove stop_step argument.
3194 * thread.c (load_infrun_state, save_infrun_state): Remove
3195 stop_step argument, and references to it.
3196
3197 * infrun.c (clear_proceed_status): Clear stop_step.
3198 (fetch_inferior_event): Adjust.
3199 (context_switch): Don't context-switch stop_step.
3200 (handle_inferior_event): Adjust.
3201 (normal_stop): Adjust.
3202 (save_inferior_status, restore_inferior_status): Adjust.
3203
3204 * infcmd.c (stop_step): Delete.
3205 (step_1, step_1_continuation, step_once, until_next_command):
3206 Adjust.
3207
3208 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3209
3210 Remove the global step_multi in favour of a per-thread
3211 step_multi.
3212
3213 * inferior.h (step_multi): Delete.
3214 * gdbthread.h (struct thread_info): Add comments around
3215 step_multi.
3216 (save_infrun_state, load_infrun_state): Remove step_multi
3217 parameter.
3218 * thread.c (load_infrun_state, save_infrun_state): Remove
3219 step_multi argument, and references to it.
3220 * infcmd.c (step_multi): Delete.
3221 (step_1): Adjust.
3222 (step_1_continuation, until_next_command): Adjust.
3223 * infrun.c (fetch_inferior_event): Adjust.
3224 (context_switch): Don't context-switch step_multi.
3225 (print_stop_reason, normal_stop): Adjust.
3226
3227 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3228
3229 Remove the global stop_signal in favour of a per-thread
3230 stop_signal.
3231
3232 * inferior.h (stop_signal): Delete.
3233 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3234 stop_signal argument.
3235 * thread.c (load_infrun_state, save_infrun_state): Remove
3236 stop_signal argument. Don't reference it.
3237
3238 * infcmd.c (stop_signal): Delete.
3239 (program_info): Adjust.
3240 * infrun.c (resume): Clear stop_signal.
3241 (proceed): Adjust. Pass the last stop_signal to the thread we're
3242 resuming.
3243 (context_switch): Don't context-switch stop_signal.
3244 (handle_inferior_event, keep_going): Adjust.
3245 (save_inferior_status, restore_inferior_status): Adjust.
3246
3247 * fbsd-nat.c: Include "gdbthread.h".
3248 (find_signalled_thread, find_stop_signal): New.
3249 (fbsd_make_corefile_notes): Use it.
3250 * fork-child.c (startup_inferior): Adjust.
3251
3252 * linux-nat.c (get_pending_status): Adjust.
3253 (linux_nat_do_thread_registers): Adjust.
3254 (find_signalled_thread, find_stop_signal): New.
3255 (linux_nat_do_thread_registers): Add stop_signal parameter.
3256 (struct linux_nat_corefile_thread_data): Add stop_signal member.
3257 (linux_nat_corefile_thread_callback): Pass stop_signal.
3258 (linux_nat_do_registers): Delete.
3259 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
3260 there's always a thread.
3261
3262 * procfs.c (find_signalled_thread, find_stop_signal): New.
3263 (find_stop_signal): New.
3264 (procfs_do_thread_registers): Add stop_signal parameter.
3265 (struct procfs_corefile_thread_data): Add stop_signal member.
3266 (procfs_corefile_thread_callback): Pass args->stop_signal.
3267 (procfs_make_note_section): Find the last stop_signal.
3268
3269 * solib-irix.c: Include gdbthread.h.
3270 (irix_solib_create_inferior_hook): Adjust.
3271 * solib-osf.c: Include gdbthread.h.
3272 (osf_solib_create_inferior_hook): Adjust.
3273 * solib-sunos.c: Include gdbthread.h.
3274 (sunos_solib_create_inferior_hook): Adjust.
3275 * solib-svr4.c: Include gdbthread.h.
3276 (svr4_solib_create_inferior_hook): Adjust.
3277
3278 * win32-nat.c (do_initial_win32_stuff): Adjust.
3279
3280 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3281
3282 * gdbthread.h (struct thread_info): Add comments around
3283 proceed_to_finish.
3284 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
3285 argument.
3286 * thread.c (load_infrun_state, save_infrun_state): Delete
3287 proceed_to_finish argument and references to it.
3288
3289 * infcall.c (call_function_by_hand): Adjust.
3290 * infcmd.c (finish_command): Adjust.
3291 * infrun.c (proceed_to_finish): Delete.
3292 (clear_proceed_status): Adjust.
3293 (context_switch): Don't context-switch proceed_to_finish.
3294 (normal_stop, save_inferior_status, restore_inferior_status):
3295 Adjust.
3296
3297 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3298
3299 * inferior.h (stop_bpstat): Delete.
3300
3301 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
3302
3303 * breakpoint.c (bpstat_do_actions): Rename to ...
3304 (bpstat_do_actions_1): ... this. Make static. Change return type
3305 to int. Return true if a breakpoint proceeded.
3306 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
3307 (delete_breakpoint): Don't reference the global stop_bpstat; it's
3308 gone.
3309
3310 * gdbthread.h (struct thread_info): Add stop_bpstat.
3311 (save_infrun_state, load_infrun_state): Remove stop_bpstat
3312 argument.
3313 * thread.c (load_infrun_state, save_infrun_state): Remove
3314 stop_bpstat argument, and the code referencing it.
3315
3316 * infcall.c: Include "gdbthread.h".
3317 (call_function_by_hand): Adjust.
3318 * exceptions.c: Include "gdbthread.h".
3319 (throw_exception): Adjust.
3320 * infcmd.c (stop_bpstat): Delete.
3321 (continue_command): In all-stop, set the ignore count on the
3322 thread that reported the stop. In non-stop, set it on the current
3323 thread.
3324 (finish_command_continuation): Adjust.
3325 (program_info): Adjust.
3326 * infrun.c (clear_proceed_status): Adjust.
3327 (context_switch): Don't context-switch stop_bpstat.
3328 (handle_inferior_event): Adjust.
3329 (normal_stop): Adjust.
3330 (save_inferior_status, restore_inferior_status): Adjust.
3331
3332 * inf-loop.c (inferior_event_handler): Remove parameter to
3333 bpstat_do_actions call.
3334 * top.c (command_loop): Remove parameter to bpstat_do_actions
3335 call. Call it unconditionally.
3336 * event-top.c (command_handler): Ditto.
3337 * python/python.c (execute_gdb_command): Ditto.
3338
3339 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3340
3341 * inferior.h (step_over_calls): Delete.
3342
3343 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3344 step_over_calls argument.
3345 * thread.c (save_infrun_state, load_infrun_state): Remove
3346 step_over_calls argument. Adjust.
3347
3348 * infcmd.c (step_over_calls): Delete.
3349 (step_1): Adjust.
3350 * infrun.c (clear_proceed_status): Adjust.
3351 (context_switch): Don't context-switch step_over_calls.
3352 (handle_inferior_event, save_inferior_status)
3353 (restore_inferior_status): Adjust.
3354
3355 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3356
3357 Remove context switching in favour of accessing thread_info fields
3358 directly.
3359
3360 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
3361 Delete.
3362 (struct thread_stepping_state): Delete.
3363 (gtss, tss): Delete.
3364 (follow_inferior_reset_breakpoints, follow_exec)
3365 (resume, clear_proceed_status): Adjust.
3366 (prev_pc): Delete.
3367 (proceed, start_remote, init_wait_for_inferior): Adjust.
3368 (struct execution_control_state): Add event_thread member.
3369 (delete_step_resume_breakpoint_callback)
3370 (delete_step_thread_step_resume_breakpoint)
3371 (delete_step_thread_step_resume_breakpoint_cleanup)
3372 (delete_step_thread_step_resume_breakpoint): New.
3373 (wait_for_inferior, init_execution_control_state): Use
3374 delete_step_thread_step_resume_breakpoint_cleanup.
3375 (wait_for_inferior): Set the event_thread.
3376 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
3377 with delete_step_thread_step_resume_breakpoint.
3378 (init_thread_stepping_state): Change parameter type to
3379 thread_info. Adjust.
3380 (context_switch): Don't context switch prev_pc,
3381 stepping_over_breakpoint, step_resume_breakpoint,
3382 step_range_start, step_range_end, step_frame_id,
3383 tss->stepping_over_breakpoint,
3384 tss->stepping_through_solib_after_catch,
3385 tss->stepping_through_solib_catchpoints, tss->current_line, or
3386 tss->current_symtab.
3387 (adjust_pc_after_break, handle_inferior_event)
3388 (currently_stepping, step_into_function)
3389 (insert_step_resume_breakpoint_at_sal)
3390 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3391 (clear_stepping_state): New.
3392 (normal_stop): Adjust.
3393 (save_inferior_status, restore_inferior_status): Adjust.
3394
3395 * gdbthread.h (struct thread_info): Comments describing the
3396 members moved here. Add step_after_step_resume_breakpoint.
3397 (delete_step_resume_breakpoint): Add thread_info argument.
3398 (save_infrun_state, load_infrun_state): Remove prev_pc,
3399 trap_expected, step_resume_breakpoint, step_range_start,
3400 step_range_end, step_frame_id, another_trap,
3401 stepping_through_solib_after_catch,
3402 stepping_through_solib_catchpoints, current_line and
3403 current_symtab function arguments.
3404 (inferior_thread): Declare.
3405
3406 * thread.c (inferior_thread): New.
3407 (delete_step_resume_breakpoint): Add a thread_info parameter and
3408 rewrite.
3409 (load_infrun_state, save_infrun_state): Remove prev_pc,
3410 trap_expected, step_resume_breakpoint, step_range_start,
3411 step_range_end, step_frame_id, stepping_over_breakpoint,
3412 stepping_through_solib_after_catch,
3413 stepping_through_solib_catchpoints, current_line and
3414 current_symtab args. Remove code referencing them.
3415
3416 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3417 Delete.
3418 (step_1, step_once, until_next_command): Adjust.
3419
3420 * inferior.h (step_range_start, step_range_end, step_frame_id):
3421 Delete.
3422
3423 * linux-nat.c (linux_child_follow_fork): If following the child,
3424 move the step state to it. Adjust.
3425 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3426 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3427
3428 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3429
3430 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3431 thread.
3432
3433 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3434
3435 * corelow.c (add_to_thread_list): If this is the first time we
3436 hear about thread info, update inferior_ptid.
3437 (core_open): Clear the thread list and set inferior_ptid before
3438 acknowledging a new inferior. Find threads before fetching
3439 register info. Give an upper target layer a chance to find and
3440 claim new threads. Print core generation and stop signal info
3441 after finding new threads.
3442 (get_core_register_section): Look at the lwp member of
3443 inferior_ptid for detecting if we have threads info, instead of
3444 the pid member.
3445 (core_pid_to_str): New.
3446 (init_core_ops): Register core_pid_to_str.
3447
3448 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3449
3450 * spu-linux-nat.c (spu_child_post_startup_inferior)
3451 (spu_child_post_attach): Don't add the main thread here.
3452
3453 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3454
3455 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3456
3457 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3458 seeing a thread id, extend the main thread's ptid. If we still
3459 have pending execs, don't be verbose about new threads.
3460 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3461 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3462 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3463 Adjust.
3464
3465 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3466
3467 * procfs.c (to_attach): Create a procinfo for the current lwp.
3468 Add it to gdb's thread list.
3469 (procfs_fetch_registers, procfs_store_registers): Assume there's
3470 always an lwp.
3471 (procfs_wait): Don't add the main thread here.
3472 (procfs_init_inferior): Create a procinfo for the main lwp here.
3473 Change main thread's ptid with thread_change_ptid.
3474 (procfs_notice_thread): Check for exited threads.
3475 (procfs_corefile_thread_callback): Remove check for the main
3476 process.
3477 (procfs_make_note_section): Assume there is always a thread.
3478
3479 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3480 attaching. Change the main thread ptid with thread_change_ptid.
3481 (sol_thread_detach): Clear sol_thread_active.
3482 (sol_thread_wait): Check for exited threads.
3483 (sol_thread_create_inferior): Clear sol_thread_active before
3484 creating a new inferior. Change the main thread ptid with
3485 thread_change_ptid.
3486 (sol_thread_mourn_inferior): Clear sol_thread_active.
3487 (sol_find_new_threads_callback): Check for exited threads.
3488
3489 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3490
3491 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3492 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3493 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3494 process, and return TARGET_WAITKIND_IGNORE.
3495
3496 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3497
3498 * inf-ttrace.c: Include <signal.h>
3499 (inf_ttrace_delete_dead_threads_callback): New.
3500 (inf_ttrace_resume_lwp): New.
3501 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3502 delete dying threads until they are really dead.
3503 (inf_ttrace_wait): After stopping the whole process, delete any
3504 dying thread that is really dead by now.
3505 (inf_ttrace_thread_alive): Return 1.
3506 (inf_ttrace_extra_thread_info): New.
3507 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3508
3509 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3510
3511 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3512 of the child fork.
3513 (inf_ttrace_attach): Add the main thread.
3514 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3515 for always a thread.
3516 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3517 using thread_change_ptid, and set its private data. Don't add the
3518 main thread here.
3519 (inf_ttrace_pid_to_str): Adjust.
3520
3521 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3522
3523 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3524 thread_change_ptid. Check for exited threads.
3525 (bsd_uthread_find_new_threads): Check for exited threads.
3526
3527 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3528
3529 * inf-ptrace.c: Include "gdbthread.h".
3530 (inf_ptrace_attach): Add the main thread here.
3531 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3532 Decorate the main thread id with the lwp id.
3533
3534 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3535
3536 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3537 thread_change_ptid. Don't add or mark the main thread as running
3538 and executing here.
3539 * fork-child.c (fork_inferior): Add the main thread here.
3540
3541 2008-09-08 Jerome Guitton <guitton@adacore.com>
3542
3543 * rs6000-tdep.c (rs6000_fetch_instruction)
3544 (rs6000_skip_stack_check): New functions.
3545 (skip_prologue): Skip stack check sequence.
3546
3547 2008-09-08 David Daney <ddaney@avtrex.com>
3548
3549 * dummy-frame.h (frame.h): Include it.
3550 (struct frame_id): Remove declaration.
3551
3552 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3553
3554 * spu-tdep.c (spu_push_dummy_code): New function.
3555 (spu_gdbarch_init): Install it.
3556
3557 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3558
3559 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3560 instead of paddr_nz.
3561 * gdbarch.c: Regenerate.
3562
3563 * target.c (target_xfer_partial, debug_print_register): Use
3564 core_addr_to_string_nz instead of paddr_nz.
3565
3566 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3567
3568 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3569 *before* calling gdbarch_init_osabi.
3570 (rs6000_aix_init_osabi): Disable displaced stepping.
3571
3572 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3573
3574 * target.c (update_current_target): Do not inherit to_open
3575 or to_close.
3576 (pop_target): Call target_close on target_stack instead
3577 of current_target.
3578 (pop_all_targets_above): Likewise.
3579
3580 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3581
3582 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3583 (gnuv3_print_method_ptr): Use it.
3584 (gnuv3_method_ptr_to_value): Likewise.
3585
3586 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3587
3588 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3589 register_area callback function.
3590 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3591 Use it instead of current_gdbarch.
3592 * nto-procfs.c (procfs_store_registers): Update call.
3593
3594 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3595
3596 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3597 regcache architecture instead of current_gdbarch.
3598
3599 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3600
3601 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3602 (check_for_saved): Use it instead of current_gdbarch.
3603 (is_arg_spill): Add gdbarch paramter. Use it instead
3604 of current_gdbarch.
3605 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3606 to is_arg_spill and check_for_saved.
3607 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3608
3609 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3610
3611 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3612 instead of current_gdbarch.
3613
3614 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3615
3616 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3617 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3618 Use it instead of current_gdbarch.
3619 (m68kbsd_supply_fpregset): Update call.
3620 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3621 (m68kbsd_collect_fpregset): Likewise.
3622
3623 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3624
3625 * cris-tdep.c (cris_version, cris_mode): Remove.
3626 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3627 (cris_breakpoint_from_pc): Likewise.
3628 (cris_frame_unwind_cache): Use tdep->cris_version.
3629 (crisv32_scan_prologue): Likewise.
3630 (cris_spec_reg_applicable): Add gdbarch argument.
3631 Use tdep->cris_version.
3632 (cris_register_size, cris_special_register_name): Update calls.
3633 (cris_special_register_name): Add gdbarch argument.
3634 (cris_register_name, crisv32_register_name): Update calls.
3635
3636 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3637
3638 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3639 instead of current_gdbarch.
3640
3641 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3642 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3643 * sh-tdep.c (gdb_print_insn_sh): Remove.
3644 (sh_gdbarch_init): Install print_insn_sh directly.
3645
3646 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3647 from current_gdbarch.
3648 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3649 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3650 depending on mips_abi.
3651
3652 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3653
3654 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3655 (smash_text_address): Likewise.
3656 * gdbarch.c, gdbarch.h: Regenerate.
3657
3658 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3659 * arch-utils.h (core_addr_identity): Likewise.
3660 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3661 (arm_smash_text_address): Likewise.
3662 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3663 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3664 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3665
3666 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3667 Use it instead of current_gdbarch.
3668
3669 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3670 arm_dwarf2_prev_register): Update calls.
3671 * m88k-tdep.c (m88k_unwind_pc): Update call.
3672
3673 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3674
3675 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3676 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3677 Call gdbarch_integer_to_address directly instead of converting
3678 to value and back. Update comment.
3679 (execute_stack_op): Update call site.
3680 * dwarf2loc.c (find_location_expression): Likewise.
3681 (locexpr_describe_location): Update
3682
3683 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3684 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3685 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3686 (dwarf2_loc_desc_needs_frame): Likewise.
3687
3688 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3689
3690 * breakpoint.h (struct bp_location): Change type of section
3691 member to "struct obj_section *".
3692 * tracepoint.h (struct tracepoint): Likewise.
3693 * symtab.h (struct general_symbol_info): Replace bfd_section
3694 member with obj_section.
3695 (struct symtab_and_line): Change type of section member to
3696 "struct obj_section *".
3697 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3698 (SYMBOL_OBJ_SECTION): ... this.
3699
3700 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3701 section as obj_section instead of bfd_section.
3702
3703 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3704 directly instead of looking of obj_section from bfd_section.
3705
3706 * objfiles.h (find_pc_sect_section): Remove.
3707 * objfiles.c (find_pc_sect_section): Remove.
3708 (find_pc_section): Inline find_pc_sect_section code.
3709
3710 * symfile.h (find_pc_overlay): Return struct obj_section *.
3711 (find_pc_mapped_section): Likewise.
3712 (section_is_overlay, section_is_mapped): Change type of section
3713 argument to struct obj_section *.
3714 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3715 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3716 (symbol_overlayed_address): Likewise.
3717 * symtab.h (symbol_overlayed_address): Likewise.
3718 * symfile.c (overlay_is_mapped): Remove.
3719 (section_is_mapped): Inline overlay_is_mapped code. Update.
3720 (overlay_invalidate_all): Update.
3721 (section_is_overlay): Change section argument to type
3722 "struct obj_section *". Use bfd_ methods.
3723 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3724 (pc_in_mapped_range): Likewise. Handle relocated sections.
3725 (sections_overlap): Likewise.
3726 (overlay_unmapped_address): Likewise.
3727 (overlay_mapped_address): Likewise.
3728 (symbol_overlayed_address): Likewise.
3729 (find_pc_overlay): Return struct obj_section *.
3730 (find_pc_mapped_section): Likewise.
3731 (list_overlays_command): Update.
3732 (map_overlay_command, unmap_overlay_command): Update.
3733 (simple_overlay_update): Update.
3734
3735 * block.h (blockvector_for_pc_sect): Change section argument
3736 to type "struct obj_section *".
3737 (block_for_pc_sect): Likewise.
3738 * block.c (blockvector_for_pc_sect): Change section argument
3739 to type "struct obj_section *".
3740 (block_for_pc_sect): Likewise.
3741 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3742 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3743 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3744 (matching_bfd_sections): Rename to ...
3745 (matching_obj_sections): ... this. Update argument types.
3746 * blockframe.c (find_pc_sect_function): Likewise.
3747 * breakpoint.c (describe_other_breakpoints): Likewise.
3748 (breakpoint_has_pc, check_duplicates_for): Likewise.
3749 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3750 (lookup_minimal_symbol_by_pc_section): Likewise.
3751 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3752 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3753 find_pc_sect_line, find_function_start_pc): Likewise.
3754 (matching_bfd_sections): Rename to ...
3755 (matching_obj_sections): ... this. Update argument types.
3756
3757 * blockframe.c (find_pc_partial_function): Update to section
3758 type changes. No longer call find_pc_sect_section.
3759 (cache_pc_function_section): Change to type "struct obj_section *".
3760 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3761 * exec.c (xfer_memory): Likewise.
3762 * findvar.c (read_var_value): Likewise.
3763 * infcmd.c (jump_command): Likewise.
3764 * linespec.c (minsym_found): Likewise.
3765 * maint.c (maintenance_translate_address): Likewise.
3766 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3767 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3768 * parse.c (write_exp_msymbol): Likewise.
3769 * printcmd.c (build_address_symbolic): Likewise.
3770 (address_info, sym_info): Likewise.
3771 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3772 * symtab.c (fixup_section): Likewise.
3773 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3774 (find_pc_line, find_function_start_sal): Likewise.
3775 * target.c (memory_xfer_partial): Likewise.
3776 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3777 * spu-tdep.c (spu_overlay_update): Likewise.
3778
3779 2008-09-04 Doug Evans <dje@google.com>
3780
3781 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3782 Change argument of pulongest from CORE_ADDR to ULONGEST.
3783 All callers updated.
3784 * utils.c (plongest): Renamed from paddr_d.
3785 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3786 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3787 `CORE_ADDR addr' arg of error message.
3788
3789 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3790
3791 * ser-tcp.c (ser_tcp_send_break): New function.
3792 (_initialize_ser_tcp): Use ser_tcp_send_break.
3793 * ser-tcp.h (ser_tcp_send_break): New prototype.
3794
3795 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3796
3797 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3798 when allocating stack frame for inferior call.
3799
3800 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3801
3802 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3803 SP or return address if we failed to find a valid frame.
3804
3805 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3806
3807 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3808 non-permanent breakpoints.
3809 (bpstat_stop_status): Change enable_state to bp_disabled only for
3810 non-permanent breakpoints.
3811 (bp_loc_is_permanent): New function.
3812 (create_breakpoint): Check if the location points to a permanent
3813 breakpoint and if it does, make breakpoint permanent.
3814 (update_breakpoint_locations): Make sure new locations of permanent
3815 breakpoints are properly initialized.
3816 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3817 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3818
3819 2008-09-02 Pedro Alves <pedro@codesourcery.com>
3820
3821 * breakpoint.c (insert_breakpoints, update_global_location_list):
3822 Check breakpoints_always_inserted_mode instead of
3823 always_inserted_mode directly.
3824
3825 2008-09-02 Andreas Schwab <schwab@suse.de>
3826
3827 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3828
3829 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3830
3831 Stay compatible after the GCC PR fortran/29635 fix.
3832 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3833 (process_die <DW_TAG_imported_module>): Do not assert anything about
3834 these unsupported tags.
3835
3836 2008-08-29 Tom Tromey <tromey@redhat.com>
3837
3838 * maint.c (_initialize_maint_cmds): Fix typo.
3839
3840 2008-08-29 Tom Tromey <tromey@redhat.com>
3841
3842 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3843 obstack.
3844
3845 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3846
3847 * remote.c: Include "gdb_stat.h".
3848
3849 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3850
3851 * dummy-frame.h (dummy_frame_pop): Add prototype.
3852 * dummy-frame.c: Include "observer.h".
3853 (dummy_frame_push): Do not check for stale frames.
3854 (dummy_frame_pop): New function.
3855 (cleanup_dummy_frames): New function.
3856 (_initialize_dummy_frame): Install it as inferior_created observer.
3857
3858 * frame.h (struct frame_id): Update comments.
3859 (frame_id_inner): Remove prototype.
3860 * frame.c (frame_id_inner): Make static. Add comments.
3861 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3862 false positives for targets using non-contiguous stack ranges.
3863 (get_prev_frame_1): Update frame_id_inner safety net check.
3864 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3865
3866 * stack.c (return_command): Directly pop the selected frame.
3867 * infrun.c (handle_inferior_event): Remove dead code.
3868 * i386-tdep.c (i386_push_dummy_call): Update comment.
3869
3870 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3871
3872 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3873 breakpoint from shared library.
3874
3875 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3876
3877 * solib-svr4.c (read_program_header): New function.
3878 (scan_dyntag_auxv): New function.
3879 (elf_locate_base): Use it if scan_dyntag fails.
3880 (find_program_interpreter): New function.
3881 (enable_break): Use it instead of .interp section.
3882
3883 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3884
3885 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3886 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3887 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3888 remote_bfd_open): New functions.
3889 (remote_hostio_send_command): Fail safely if remote connection
3890 is not set up.
3891
3892 * solist.h (solib_open): Remove prototype.
3893 (solib_bfd_open): Add prototype.
3894 * solib.c: Include "remote.h".
3895 (solib_open): Remove, replace by ...
3896 (solib_bfd_open): ... this new function. Handle remote BFDs.
3897 (solib_map_sections): Replace solib_open by solib_bfd_open.
3898 * solib-frv.c: Include "exceptions.h".
3899 (enable_break2): Replace solib_open by solib_bfd_open.
3900 * solib-svr4.c: Include "exceptions.h".
3901 (enable_break): Replace solib_open by solib_bfd_open.
3902
3903 * symfile.c: Include "remote.h".
3904 (build_id_verify): Handle remote BFDs.
3905 (separate_debug_file_exists): Use BFD to access file. Handle
3906 remote BFDs.
3907 (symfile_bfd_open): Handle remote BFDs.
3908 (reread_symbols): Handle remote BFDs.
3909
3910 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3911
3912 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3913
3914 * gdbarch.sh (target_gdbarch): New global variable.
3915 (deprecated_current_gdbarch_select_hack): Set it.
3916 * gdbarch.c, gdbarch.h: Regenerate.
3917
3918 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3919 of current_gdbarch.
3920 * target-descriptions.c (target_find_description): Likewise.
3921 * arm-tdep.c (arm_update_current_architecture): Likewise.
3922 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3923 arm_show_force_mode): Likewise.
3924 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3925 show_mips_abi): Likewise.
3926 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3927
3928 * target.c (target_translate_tls_address): Use target_gdbarch
3929 instead of current_gdbarch.
3930 * remote.c (struct packet_reg): Likewise.
3931 (get_remote_arch_state, packet_reg_from_regnum,
3932 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3933 remote_address_masked, remote_insert_breakpoint,
3934 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3935 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3936 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3937 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3938
3939 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3940 solib_add, info_sharedlibrary_command, solib_address,
3941 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3942 solib_global_lookup): Likewise.
3943 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3944 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3945 Likewise.
3946 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3947 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3948 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3949 Likewise.
3950 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3951 nto_truncate_ptr): Likewise.
3952 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3953
3954 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
3955
3956 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3957 (ppc_linux_vmx_regset_sections): New structure.
3958 (ppc_linux_fp_regset_sections): New structure.
3959 (ppc_linux_init_abi): Select core-file regset based on target
3960 features.
3961
3962 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3963
3964 * target.c (debug_print_register): Use regcache_raw_collect
3965 instead of regcache_cooked_read. Only handle raw registers.
3966
3967 2008-08-25 Pedro Alves <pedro@codesourcery.com>
3968
3969 * cp-name-parser.y: Include config.h before system headers.
3970
3971 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3972
3973 * m88k-tdep.c: Update for unwinder changes.
3974
3975 2008-08-24 Tom Tromey <tromey@redhat.com>
3976
3977 * s390-tdep.c (s390_address_class_type_flags): Use
3978 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3979 (s390_address_class_type_flags_to_name): Likewise.
3980 (s390_address_class_name_to_type_flags): Likewise.
3981
3982 2008-08-24 Tom Tromey <tromey@redhat.com>
3983
3984 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3985 TYPE_FLAGS.
3986 * features/rs6000/powerpc-vsx32l.c
3987 (initialize_tdesc_powerpc_vsx32l): Update.
3988 * features/rs6000/powerpc-vsx32.c
3989 (initialize_tdesc_powerpc_vsx32): Update.
3990 * features/rs6000/powerpc-vsx64.c
3991 (initialize_tdesc_powerpc_vsx64): Update.
3992 * features/rs6000/powerpc-vsx64l.c
3993 (initialize_tdesc_powerpc_vsx64l): Update.
3994 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3995 TYPE_VECTOR, not TYPE_FLAGS.
3996
3997 2008-08-24 Tom Tromey <tromey@redhat.com>
3998
3999 * xml-tdesc.c (tdesc_end_union): Update.
4000 * stabsread.c (define_symbol): Update.
4001 (read_type): Update.
4002 (read_struct_type): Update.
4003 (read_enum_type): Update.
4004 * spu-tdep.c (spu_builtin_type_vec128): Update.
4005 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
4006 (sh_push_dummy_call_nofpu): Update.
4007 * mdebugread.c (parse_symbol): Update.
4008 (parse_symbol): Update.
4009 (parse_symbol): Update.
4010 (upgrade_type): Update.
4011 * jv-lang.c (java_lookup_class): Update.
4012 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
4013 * i386-tdep.c (i386_mmx_type): Update.
4014 (i386_sse_type): Update.
4015 * gdbtypes.h (enum type_flag_value): New enum.
4016 (enum type_instance_flag_value): New enum.
4017 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
4018 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
4019 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
4020 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
4021 TYPE_FLAG_NOTTEXT): Now enum constants.
4022 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
4023 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
4024 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
4025 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
4026 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
4027 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
4028 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
4029 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
4030 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
4031 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
4032 TYPE_NOTTEXT): Update.
4033 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
4034 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
4035 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
4036 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
4037 TYPE_ADDRESS_CLASS_ALL): Update.
4038 (struct main_type) <flags>: Remove.
4039 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
4040 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
4041 flag_vector, flag_stub_supported, flag_nottext,
4042 flag_fixed_instance>: New fields.
4043 <nfields, vptr_fieldno>: Move earlier.
4044 (TYPE_FLAGS): Remove.
4045 * gdbtypes.c (make_pointer_type): Update.
4046 (address_space_name_to_int): Update.
4047 (address_space_int_to_name): Update.
4048 (make_type_with_address_space): Update.
4049 (make_cv_type): Update.
4050 (create_range_type): Update.
4051 (get_discrete_bounds): Update.
4052 (create_set_type): Update.
4053 (make_vector_type): Update.
4054 (smash_to_method_type): Update.
4055 (check_typedef): Update.
4056 (check_stub_method): Update.
4057 (init_type): Individually assign flag fields.
4058 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
4059 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
4060 (copy_type_recursive): Copy the entire main type. Don't use
4061 TYPE_FLAGS.
4062 * features/rs6000/powerpc-altivec64l.c
4063 (initialize_tdesc_powerpc_altivec64l): Update.
4064 * features/rs6000/powerpc-altivec64.c
4065 (initialize_tdesc_powerpc_altivec64): Update.
4066 * features/rs6000/powerpc-altivec32l.c
4067 (initialize_tdesc_powerpc_altivec32l): Update.
4068 * features/rs6000/powerpc-altivec32.c
4069 (initialize_tdesc_powerpc_altivec32): Update.
4070 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
4071 Update.
4072 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
4073 Update.
4074 * dwarf2read.c (read_structure_type): Update.
4075 (read_enumeration_type): Likewise.
4076 (process_enumeration_scope): Likewise.
4077 (read_tag_pointer_type): Likewise.
4078 (read_subroutine_type): Likewise.
4079 (read_subroutine_type): Likewise.
4080 (read_base_type): Likewise.
4081 * coffread.c (coff_read_enum_type): Update.
4082 * ada-valprint.c (adjust_type_signedness): Update.
4083 * ada-typeprint.c (print_record_field_types): Update.
4084 * ada-lang.c (packed_array_type): Update.
4085 (empty_record): Don't reset TYPE_FLAGS.
4086 (ada_template_to_fixed_record_type_1): Update.
4087 (ada_template_to_fixed_record_type_1): Likewise.
4088 (template_to_static_fixed_type): Likewise.
4089 (to_record_with_fixed_variant_part): Likewise.
4090 (to_fixed_record_type): Likewise.
4091 (to_fixed_array_type): Likewise.
4092 (to_static_fixed_type): Likewise.
4093
4094 2008-08-23 Jim Blandy <jimb@redhat.com>
4095
4096 PR macros/607:
4097 * symmisc.c (print_symbol_bcache_statistics): Include statistics
4098 for the macro bcache.
4099
4100 2008-08-23 Tom Tromey <tromey@redhat.com>
4101
4102 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
4103 (argc): Now 31 bits.
4104
4105 2008-08-22 Tom Tromey <tromey@redhat.com>
4106
4107 * NEWS: Move macro entries back under "New commands".
4108
4109 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4110
4111 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
4112 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
4113 (create_overlay_event_breakpoint): Loop over all objfiles to install
4114 multiple instances of the overlay event breakpoint if present.
4115
4116 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4117
4118 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
4119 (info_spu_event_command): Command only supported on SPU architecture.
4120 (info_spu_signal_command): Likewise.
4121 (info_spu_mailbox_command): Likewise.
4122 (info_spu_dma_command): Likewise.
4123 (info_spu_proxydma_command): Likewise.
4124
4125 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4126
4127 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
4128 if the thread has already exited.
4129
4130 2008-08-22 Pedro Alves <pedro@codesourcery.com>
4131
4132 * infrun.c (proceed): Move back setting previous_inferior_ptid
4133 from here ...
4134 (wait_for_inferior): ... to here.
4135 (fetch_inferior_event): ... and here.
4136
4137 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4138
4139 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
4140 (deprecated_current_gdbarch_select_hack): Call registers_changed
4141 instead of reinit_frame_cache.
4142 * gdbarch.c: Regenerate.
4143
4144 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4145
4146 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
4147
4148 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4149
4150 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
4151
4152 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4153
4154 * findvar.c (locate_var_value): Do not call get_frame_arch
4155 with a NULL frame argument.
4156
4157 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4158
4159 * frame.h (frame_map_regnum_to_name): Remove prototype.
4160 (frame_map_name_to_regnum): Remove prototype.
4161 * frame.c (frame_map_regnum_to_name): Remove.
4162 (frame_map_name_to_regnum): Remove.
4163 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
4164 instead of frame_map_regnum_to_name.
4165 * ax-gdb.c: Include "user-regs.h".
4166 (gen_expr): Use user_reg_map_name_to_regnum instead of
4167 frame_map_name_to_regnum.
4168 * eval.c: Include "user-regs.h".
4169 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
4170 instead of frame_map_name_to_regnum.
4171 * infcmd.c (registers_info): Likewise.
4172 * parse.c: Include "user-regs.h".
4173 (write_dollar_variable): Use user_reg_map_name_to_regnum
4174 instead of frame_map_name_to_regnum.
4175 * tracepoint.c: Include "user-regs.h".
4176 (encode_actions): Use user_reg_map_name_to_regnum
4177 instead of frame_map_name_to_regnum.
4178 * valops.c: Include "user-regs.h".
4179 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
4180 of frame_map_regnum_to_name.
4181
4182 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4183
4184 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
4185 and manually relocate .opd contents from BFD instead of reading
4186 them from target memory.
4187
4188 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4189
4190 * dwarf2read.c (processing_current_prefix): Delete static
4191 variable.
4192 (process_full_comp_unit): Do not set processing_current_prefix.
4193 (dwarf2_full_name): New function.
4194 (read_func_scope): Do not set processing_current_prefix. Use
4195 determine_prefix.
4196 (read_structure_type): Do not set processing_current_prefix. Remove
4197 unused inner cleanup.
4198 (process_structure_scope): Do not set processing_current_prefix.
4199 (read_enumeration_type): Use dwarf2_full_name.
4200 (determine_class_name): Return a const char *. Put the result
4201 on the objfile obstack. Use dwarf2_full_name.
4202 (read_namespace_type): New function.
4203 (read_namespace): Do not create the type here. Use
4204 determine_prefix.
4205 (read_typedef): Use dwarf2_full_name. Do not pass the name
4206 to init_type.
4207 (read_base_type): Do not pass the name to init_type. Handle
4208 TYPE_FLAG_NOSIGN.
4209 (read_unspecified_type): Do not pass the name to init_type.
4210 (new_symbol): Use dwarf2_full_name instead of
4211 processing_current_prefix.
4212 (read_type_die): Do not set processing_current_prefix. Handle
4213 DW_TAG_namespace.
4214 (determine_prefix): Handle specifications. Return the result
4215 on the objfile obstack. Handle unions correctly.
4216
4217 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4218
4219 * buildsym.c (add_symbol_to_list): Do not call
4220 cp_scan_for_anonymous_namespaces here.
4221 (finish_block): Do not call cp_set_block_scope here.
4222 * cp-namespace.c (processing_has_namespace_info)
4223 (processing_current_prefix): Delete.
4224 (cp_initialize_namespace): Do not initialize
4225 processing_has_namespace_info.
4226 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
4227 not check processing_has_namespace_info.
4228 (cp_set_block_scope): Take prefix and namespace info flag as
4229 arguments. Honor namespaces regardless of a demangled name.
4230 * cp-support.h (processing_has_namespace_info)
4231 (processing_current_prefix): Delete declarations.
4232 (cp_set_block_scope): Update prototype.
4233 * dwarf2read.c (processing_has_namespace_info)
4234 (processing_current_prefix): New static variables.
4235 (read_file_scope): Initialize processing_has_namespace_info.
4236 (read_func_scope): Call cp_set_block_scope for C++.
4237 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
4238 * symtab.c (symbol_demangled_name): Accept a const argument.
4239 * symtab.h (symbol_demangled_name): Update prototype.
4240
4241 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4242
4243 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
4244 * blockframe.c (find_pc_partial_function): Likewise.
4245 * buildsym.c (find_symbol_in_list): Likewise.
4246 * c-valprint.c (c_val_print): Likewise.
4247 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
4248 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
4249 * cp-support.c (cp_remove_params): Renamed from remove_params and
4250 made global.
4251 (overload_list_add_symbol): Update call to remove_params.
4252 * cp-support.h (cp_remove_params): Declare.
4253 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
4254 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
4255 * expprint.c (dump_subexp_body_standard): Likewise.
4256 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
4257 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
4258 for messages.
4259 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
4260 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4261 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4262 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
4263 symbols and SYMBOL_PRINT_NAME for messages.
4264 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4265 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
4266 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
4267 SYMBOL_SET_LINKAGE_NAME.
4268 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
4269 * minsyms.c (add_minsym_to_demangled_hash_table): Use
4270 SYMBOL_SEARCH_NAME.
4271 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
4272 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
4273 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
4274 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
4275 (address_info): Use SYMBOL_PRINT_NAME for messages and
4276 SYMBOL_LINKAGE_NAME for lookups.
4277 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
4278 * stabsread.c (patch_block_stabs, define_symbol)
4279 (read_type, read_enum_type, common_block_end)
4280 (cleanup_undefined_types_1, scan_file_globals): Use
4281 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
4282 and SYMBOL_PRINT_NAME.
4283 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
4284 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
4285 cp_remove_params instead of cplus_demangle.
4286 (print_block_frame_labels, print_frame_arg_vars): Use
4287 SYMBOL_LINKAGE_NAME.
4288 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
4289 SYMBOL_LINKAGE_NAME.
4290 (dump_symtab_1, print_symbol, print_partial_symbols)
4291 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
4292 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
4293 (SYMBOL_SET_LINKAGE_NAME): New.
4294 (SYMBOL_SET_NAMES): Add a comment.
4295 * tracepoint.c (set_traceframe_context, validate_actionline)
4296 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
4297 lookups and SYMBOL_PRINT_NAME for output.
4298 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
4299 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4300
4301 2008-08-21 Pedro Alves <pedro@codesourcery.com>
4302
4303 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
4304 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
4305 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
4306 obj_section_addr and obj_section_endaddr.
4307 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
4308 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4309 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
4310 (find_extant_func_descr): Likewise.
4311 * solib-frv.c (frv_relocate_main_executable): Use
4312 obj_section_addr.
4313 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
4314 obj_section_addr and obj_section_endaddr.
4315
4316 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
4317
4318 * NEWS: Amplify last entry on boolean types in Ada.
4319
4320 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4321
4322 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
4323 Make the dwarf2_cu * parameter output as well as input. Update it if
4324 we follow a reference to another CU.
4325 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
4326 (die_type, die_containing_type): Update calls to changed functions.
4327 Use the returned CU along with the returned DIE.
4328 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
4329
4330 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4331
4332 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
4333 in the DIEs here.
4334 (process_queue): Do not read in the DIEs here.
4335 (psymtab_to_symtab_1): Update call to queue_comp_unit.
4336 (read_full_die): Do not call queue_comp_unit from here.
4337 (maybe_queue_comp_unit): New function.
4338 (follow_die_ref): Use it.
4339
4340 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4341
4342 * dwarf2read.c (struct attribute): Move earlier.
4343 (struct die_info): Change attrs to a trailing array.
4344 (dwarf_alloc_die): Take the number of attributes. Allocate space
4345 for them.
4346 (read_full_die): Update call to dwarf_alloc_die. Do not manually
4347 allocate attributes.
4348
4349 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4350
4351 * dwarf2read.c (REF_HASH_SIZE): Delete.
4352 (struct dwarf2_cu): Replace die_ref_table with die_hash.
4353 (struct die_info): Remove next_ref.
4354 (store_in_ref_table): Remove offset argument. Rewrite to use
4355 htab_find_slot_with_hash.
4356 (die_hash, die_eq): New.
4357 (read_comp_unit): Allocate the die_hash.
4358 (read_die_and_children): Update call to store_die_ref.
4359 (follow_die_ref): Rewrite to use htab_find_with_hash.
4360
4361 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4362
4363 * dwarf2read.c (free_die_list, copy_die): Delete.
4364 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
4365 on the obstack.
4366 (read_full_die): Update call to dwarf_alloc_die. Allocate
4367 attributes on the CU obstack.
4368 (free_one_comp_unit): Do not call free_die_list.
4369
4370 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4371
4372 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
4373 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
4374 sibling list.
4375 (read_full_die): Do not allocate DIEs for abbrev 0.
4376 (follow_die_ref): Correct error message.
4377
4378 2008-08-20 Pedro Alves <pedro@codesourcery.com>
4379
4380 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4381 there are no symbols loaded, instead of throwing a generic error.
4382 (decode_variable): Likewise.
4383
4384 2008-08-20 Pedro Alves <pedro@codesourcery.com>
4385
4386 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4387 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4388 macros.
4389 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4390 and offset. Use size_t instead of unsigned long.
4391 (build_objfile_section_table): Use size_t instead of unsigned
4392 long.
4393 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4394 gone.
4395 (find_pc_sect_section): Use obj_section_addr and
4396 obj_section_endaddr.
4397 * symfile.c (symfile.c): Remove code that maps sections
4398 offsets in "addr" to the object's sections.
4399 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4400 * gcore.c (gcore_create_callback): Use obj_section_addr and
4401 obj_section_endaddr.
4402 * maint.c (print_objfile_section_info): Likewise.
4403 * printcmd.c (sym_info): Use obj_section_addr and
4404 obj_section_endaddr.
4405 * symtab.c (fixup_section): Likewise.
4406
4407 2008-08-20 Mark Kettenis <kettenis@gnu.org>
4408
4409 * sparc-tdep.c: Make some comments catch up with reality.
4410
4411 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4412
4413 * NEWS: Mention 'set target-async'
4414
4415 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4416
4417 * infrun.c (resume): If the thread is placed to the deferred step
4418 queue, mark it as running.
4419
4420 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4421
4422 Make sure target supports non-stop.
4423 * infcmd.c (run_command_1, attach_command): If non-stop mode
4424 is requested, verify the target supports it.
4425 * linux-nat.c (linux_nat_supports_non_stop): New.
4426 (linux_nat_add_target): Register the above.
4427 * target.c (find_default_supports_non_stop)
4428 (target_supports_non_stop): New.
4429 (init_dummy_target): Register find_default_supports_non_stop.
4430 * target.h (struct target_ops): New field to_supports_non_stop.
4431 (target_supports_non_stop): New.
4432
4433 2008-08-19 Pedro Alves <pedro@codesourcery.com>
4434 Vladimir Prus <vladimir@codesourcery.com>
4435
4436 * target.c (target_async_permitted, target_async_permitted_1)
4437 (set_maintenance_target_async_permitted)
4438 (show_maintenance_target_async_permitted): New.
4439 (initialize_targets): Register 'set target-async'.
4440 * target.h (target_async_permitted): Declare.
4441 * linux-nat.c (linux_nat_async_enabled)
4442 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4443 (show_maintenance_linux_async_permitted): Remove.
4444 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4445 (get_pending_events, linux_nat_async): Use target_async_permitted.
4446 (linux_nat_set_async_mode): Remove, moving the only used bits
4447 into...
4448 (linux_nat_setup_async): This.
4449 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4450 Use linux_nat_setup_async.
4451 * remote.c (remote_async_permitted, remote_async_permitted_set)
4452 (set_maintenance_remote_async_permitted)
4453 (show_maintenance_remote_async_permitted): Remove.
4454 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4455 (remote_is_async_p): Use target_async_permitted.
4456 (_initialize_remote): Don't register 'main set remote-async'.
4457 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4458 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4459 * mi/mi-main.c (mi_cmd_list_target_features): New.
4460
4461 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4462
4463 * target.c (maybe_kill_then_attach)
4464 (maybe_kill_then_create_inferior): Remove.
4465 (update_current_target): Do not default to_attach,
4466 to_create_inferiour, to_is_async_p.
4467
4468 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
4469
4470 Changes for supporting boolean types in debugging data.
4471 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4472 API to return LONGEST values rather than struct values.
4473 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4474 and discrete_type_high_bound.
4475 (to_fixed_range_type): Create a range type in cases where
4476 argument is base type and its limits are representable as ints.
4477 (ada_is_modular_type): Correct so that base type must be integral.
4478 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4479 keywords when they appear alone, since we are phasing out
4480 direct representation of these identifiers in debugging data.
4481 * ada-exp.y: Define 'true' and 'false' as primaries.
4482 (type_boolean): New function.
4483 (type_int,type_long,type_long_long,type_floattype_double)
4484 (type_long_double): Remove uses of current_gdbarch for consistency
4485 with type_boolean.
4486 (write_int): Change comment to indicate that it might write boolean
4487 constant as well.
4488 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4489 type, since will no longer be represented as enumerated type in
4490 debugging data.
4491 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4492 as well.
4493 * NEWS: Note support boolean types.
4494
4495 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4496
4497 * bsd-uthread.c (bsd_uthread_close): New.
4498 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4499 target.
4500 (bsd_uthread_solib_loaded): Fix typo.
4501 (bsd_uthread_target): Register bsd_uthread_close.
4502
4503 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4504
4505 * corelow.c (core_open): Assume there was no upper layer left
4506 behind from a previous inferior.
4507 * target.c (pop_all_targets): Rename to ...
4508 (pop_all_targets_above): ... this. Add a target stratum
4509 parameter. Use it instead of hardcoding the dummy_stratum.
4510 (pop_all_targets): New, defer to pop_all_targets_above.
4511 (target_preopen): Use pop_all_targets_above.
4512 * target.h (pop_all_targets_above): Declare.
4513
4514 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4515
4516 * gdbthread.h (thread_change_ptid): Declare.
4517 * infrun.c (infrun_thread_ptid_changed): New.
4518 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4519 thread_ptid_changed observer.
4520 * regcache.c (regcache_thread_ptid_changed): New.
4521 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4522 thread_ptid_changed observer.
4523 * thread.c (thread_change_ptid): New.
4524
4525 2008-08-18 Tom Tromey <tromey@redhat.com>
4526
4527 * symfile.c (reread_symbols): Update.
4528 * solib-sunos.c (allocate_rt_common_objfile): Update.
4529 * objfiles.c (allocate_objfile): Update.
4530 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4531 Remove.
4532
4533 2008-08-18 Tom Tromey <tromey@redhat.com>
4534
4535 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4536 obstack.
4537
4538 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4539
4540 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4541 lr_register.
4542 (rs6000_in_function_epilogue_p): Check for bctr.
4543 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4544 number. Set gpr_mask and used_bl. Continue scanning while some
4545 expected registers are not saved. Set lr_register if LR is not
4546 stored.
4547 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4548
4549 2008-08-17 Tom Tromey <tromey@redhat.com>
4550
4551 PR gdb/1535:
4552 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4553 (ep_find_event_name_end): Remove.
4554 (catch_fork_temporary, catch_vfork_temporary,
4555 catch_fork_permanent, catch_vfork_permanent): New constants.
4556 (catch_vfork, catch_fork): Remove.
4557 (catch_fork_command_1): Add 'command' argument. Remove
4558 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4559 all cases.
4560 (catch_exec_command_1): Add 'command' argument; remove
4561 'tempflag'. Handle NULL 'arg'.
4562 (catch_load_command_1): Likewise.
4563 (catch_unload_command_1): Likewise.
4564 (catch_ada_exception_command): Likewise.
4565 (catch_assert_command): Likewise.
4566 (catch_catch_command): New function.
4567 (catch_throw_command): Likewise.
4568 (catch_command_1): Remove.
4569 (catch_command): Just call error.
4570 (tcatch_command): Likewise.
4571 (catch_cmdlist): New global.
4572 (tcatch_cmdlist): Likewise.
4573 (add_catch_command): New function.
4574 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4575 commands. Create all catch sub-commands.
4576
4577 2008-08-17 Pedro Alves <pedro@codesourcery.com>
4578
4579 * gdbthread.h: Add comments.
4580 * stack.c (get_selected_block): Return 0 on an exited thread.
4581 * top.c (execute_command): Check for is_stopped, not !is_running.
4582 * event-top.c (command_handler): Likewise.
4583
4584 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4585
4586 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4587 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4588 (mi_cmd_exec_finish): Remove "return".
4589
4590 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4591
4592 * target.h (pop_all_targets): Declare.
4593 * target.c (pop_all_targets): New.
4594 * top.c (quit_target): Pop all targets instead of just closing the
4595 current.
4596
4597 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4598 Thiago Jung Bauermann <bauerman@br.ibm.com>
4599
4600 * cli-script.c (read_next_line): Add parse_commands argument.
4601 (recurse_read_control_structure): Adapt to new read_next_line
4602 signature.
4603 (read_command_lines): Add parse_commands argument.
4604 (define_command): Adapt to new read_command_lines signature.
4605 (document_command): Likewise.
4606 * breakpoint.c (commands_command): Likewise.
4607 * defs.h (read_command_lines): Adjust function prototype.
4608
4609 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4610
4611 * ada-lang.c (pos_atr): Account for the possibility that the
4612 argument may be a reference.
4613
4614 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4615
4616 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4617 ('F' format) for @FIX names generated by the loader, retaining only
4618 the minimal symbols (and no partial symbol tables) for these names.
4619 Fixes warning messages about symbols that are found in partial
4620 symbol tables, but not full symbol tables.
4621
4622 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4623
4624 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4625 stopping quietly.
4626
4627 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
4628
4629 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4630 Include "features/rs6000/powerpc-vsx64.c".
4631 (ppc_supply_vsxregset): New function.
4632 (ppc_collect_vsxregset): New function.
4633 (IS_VSX_PSEUDOREG): New macro.
4634 (IS_EFP_PSEUDOREG): New macro.
4635 (vsx_register_p): New function.
4636 (ppc_vsx_support_p): New function.
4637 (rs6000_builtin_type_vec128): New function.
4638 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4639 correct names for VSX registers and EFPR registers.
4640 (rs6000_pseudo_register_type): Return correct types for VSX
4641 and EFPR registers.
4642 (rs6000_pseudo_register_reggroup_p): Return correct group for
4643 VSX and EFPR registers.
4644 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4645 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4646 (vsx_pseudo_register_read): New function.
4647 (vsx_pseudo_register_write): New function.
4648 (efpr_pseudo_register_read): New function.
4649 (efpr_pseudo_register_write): New function.
4650 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4651 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4652 (rs6000_gdbarch_init): Declare have_vsx.
4653 Initialize new upper half VSX registers.
4654 Initialize VSX-related and EFPR-related pseudo-registers variables.
4655 Adjust the number of pseudo registers accordingly.
4656
4657 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4658 and SIZEOF_VSRREGS.
4659 (gdb_vsxregset_t): New type.
4660 (have_ptrace_getsetvsxregs): New variable.
4661 (fetch_vsx_register): New function.
4662 (fetch_register): Handle VSX registers.
4663 (fetch_vsx_registers): New function.
4664 (fetch_ppc_registers): Handle VSX registers.
4665 (store_ppc_registers): Handle VSX registers.
4666 (store_vsx_register): New function.
4667 (store_register): Handle VSX registers.
4668 (store_vsx_registers): New function.
4669 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4670 (gdb_vsxregset_t): New type.
4671 (supply_vsxregset): New function.
4672 (fill_vsxregset): New function.
4673
4674 * ppc-tdep.h (vsx_register_p): New prototype.
4675 (vsx_support_p): New prototype.
4676 (ppc_vsr0_regnum): New variable.
4677 (ppc_vsr0_upper_regnum): Likewise.
4678 (ppc_efpr0_regnum): Likewise.
4679 (ppc_builtin_type_vec128): New type.
4680 (ppc_num_vsrs): New constant.
4681 (ppc_num_vshrs): New constant.
4682 (ppc_num_efprs): Likewise.
4683 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4684 (ppc_supply_vsxregset): New prototype.
4685 (ppc_collect_vsxregset): New prototype.
4686
4687 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4688 Include "features/rs6000/powerpc-vsx64l.c".
4689 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4690 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4691 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4692 (ppc_linux_regset_from_core_section): Handle VSX core section.
4693 (ppc_linux_core_read_description): Support VSX-enabled core files.
4694
4695 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4696 Declare tdesc_powerpc_vsx64l
4697
4698 * corelow.c (get_core_register_section): Support VSX-enabled
4699 core files.
4700
4701 * features/rs6000/power-vsx.xml: New VSX descriptions.
4702 * features/rs6000/powerpc-vsx32.xml: New file.
4703 * features/rs6000/powerpc-vsx32l.xml: New file.
4704 * features/rs6000/powerpc-vsx64.xml: New file.
4705 * features/rs6000/powerpc-vsx64l.xml: New file.
4706 * features/rs6000/powerpc-vsx32.c: New file (generated).
4707 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4708 * features/rs6000/powerpc-vsx64.c: New file (generated).
4709 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4710 * features/Makefile: Updated with new descriptions.
4711 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4712 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4713
4714 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4715
4716 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4717 call linux_target twice.
4718
4719 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4720
4721 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4722 solib-svr4.c
4723 (LM_ADDR): Use l_addr if available; if not, use link map and set
4724 l_addr.
4725
4726 2008-08-14 Tom Tromey <tromey@redhat.com>
4727
4728 * macrocmd.c (macro_define_command): Check for NULL argument.
4729 (macro_undef_command): Likewise.
4730
4731 2008-08-14 Pedro Alves <pedro@codesourcery.com>
4732
4733 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4734
4735 2008-08-13 Pedro Alves <pedro@codesourcery.com>
4736
4737 * breakpoint.c (always_inserted_auto, always_inserted_on)
4738 (always_inserted_off, always_inserted_enums): New.
4739 (always_inserted_mode): Change type to char* and point to
4740 always_inserted_auto.
4741 (show_always_inserted_mode): In auto mode, also show the current
4742 effect of the option.
4743 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4744 (_initialize_breakpoint): Make the "set breakpoints
4745 always-inserted" command an enum command. Extend help to describe
4746 the auto mode.
4747
4748 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4749
4750 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4751 query valid) bit. Ignore bits outside the condition field.
4752 (info_spu_proxydma_command): Ignore bits outside the field.
4753
4754 2008-08-12 Michael Snyder <msnyder@vmware.com>
4755
4756 * MAINTAINERS: Update my email address.
4757
4758 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4759
4760 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4761
4762 2008-08-12 Pedro Alves <pedro@codesourcery.com>
4763
4764 Add no-ack mode to the remote protocol --- optionally stop ACKing
4765 packets and responses when we have a reliable communication
4766 medium.
4767
4768 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4769
4770 * remote.c (struct remote_state): Add noack_mode field.
4771 (PACKET_QStartNoAckMode): New.
4772 (remote_start_remote): Don't any outstanding packet here.
4773 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4774 here. Activate noack mode if requested.
4775 (remote_protocol_features): Add QStartNoAckMode.
4776 (remote_open_1):
4777 (putpkt_binary): Don't send ack in noack mode.
4778 (read_frame): Don't recompute the checksum in noack mode.
4779 (getpkt_sane): Skip sending ack if in noack mode.
4780 (_initialize_remote): Add set/show remote noack mode.
4781 * NEWS: Note the new features.
4782
4783 2008-08-11 Kevin Buettner <kevinb@redhat.com>
4784
4785 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4786 New macros.
4787 (rs6000_skip_main_prologue): New function.
4788 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4789
4790 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4791
4792 * MAINTAINERS (Write After Approval): Add self.
4793
4794 2008-08-11 Stan Shebs <stan@codesourcery.com>
4795
4796 ARM BE8 support.
4797 * disasm.c (gdb_disassemble_info): Set endian_code.
4798 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4799 * gdbarch.h, gdbarch.c: Regenerate.
4800 * arch-utils.c (initialize_current_architecture): Set the
4801 default byte_order_for_code.
4802 (gdbarch_info_init): Ditto.
4803 (gdbarch_info_fill): Ditto.
4804 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4805 (thumb_analyze_prologue): Swap halfword if code endianness is
4806 different from general endianness.
4807 (arm_skip_prologue): Similarly.
4808 (arm_scan_prologue): Ditto.
4809 (thumb_get_next_pc): Ditto.
4810 (arm_get_next_pc): Ditto.
4811 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4812 choose correct endianness for breakpoints.
4813
4814 2008-08-10 Pedro Alves <pedro@codesourcery.com>
4815
4816 * bsd-kvm.c: Include "gdbthread.h".
4817 (bsd_kvm_ptid): New.
4818 (bsd_kvm_open): Add a main thread.
4819 (bsd_kvm_close): Delete it.
4820 (bsd_kvm_thread_alive): New.
4821 (bsd_kvm_pid_to_str): New.
4822 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4823 bsd_kvm_pid_to_str.
4824 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4825
4826 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4827
4828 * buildsym.c (start_subfile): Properly cast sentinel in concat
4829 call.
4830 * cp-name-parser.y: Include "config.h".
4831 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4832 concat call.
4833 * gdb_select.h: Include sys/time.h if sys/select.h is not
4834 available.
4835
4836 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4837
4838 * go32-nat.c: Include "gdbthread.h".
4839 (go32_stop, go32_kill_inferior): Delete the main thread.
4840 (go32_create_inferior): Add it.
4841 (go32_thread_alive, go32_pid_to_str): New.
4842 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4843
4844 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4845
4846 * go32-nat.c (fetch_register, store_register): Pass the regcache
4847 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4848 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4849 (struct seg_descr, struct seg_descr): pack the whole struct
4850 instead of each member individually.
4851
4852 2008-08-09 Andreas Schwab <schwab@suse.de>
4853
4854 * python/python.c (_initialize_python): Use unabbreviated commands
4855 in prefix name.
4856
4857 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4858
4859 * Makefile.in (stamp-h): Also create .deps.
4860
4861 2008-08-09 Tom Tromey <tromey@redhat.com>
4862
4863 * Makefile.in (generated_files): Add GNULIB_H.
4864
4865 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4866
4867 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4868 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4869 Revise comment.
4870 (pa64_current_sos): Remove map private warning warning.
4871 * solib-som.c: Include string.h and sys/utsname.h.
4872 (get_hpux_major_release): New function.
4873 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4874 about shared library private mapping on HP-UX 11 and later. Only force
4875 private mapping of shared libraries on HP-UX 10 and earlier.
4876 (link_map_start): Delete warning.
4877
4878 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4879 H.J. Lu <hongjiu.lu@intel.com>
4880 Mark Kettenis <kettenis@gnu.org>
4881
4882 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4883 (amd64_init_frame_cache): Initialize saved_sp_reg.
4884 (amd64_analyze_stack_align): New.
4885 (amd64_analyze_prologue): Call it.
4886 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4887 %rip to 8 when halfway aligning the stack.
4888
4889 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4890 AMD64_R14_REGNUM.
4891
4892 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4893 saved_sp_reg.
4894 (i386_alloc_frame_cache): Remove stack_align. Initialize
4895 saved_sp_reg to -1.
4896 (i386_analyze_stack_align): Rewrite.
4897 (i386_frame_cache): Use saved_sp_reg if it is valid.
4898
4899 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4900
4901 * target.c: Include "solib.h".
4902 (target_pre_inferior): Call no_shared_libraries.
4903 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4904 or clear_solib.
4905 (attach_command): Do not call clear_solib.
4906
4907 2008-08-09 Mark Kettenis <kettenis@gnu.org>
4908
4909 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4910 the %eip register.
4911
4912 2008-08-08 Tom Tromey <tromey@redhat.com>
4913
4914 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4915 POSTCOMPILE.
4916 (python-utils.o): Likewise.
4917
4918 2008-08-08 Andreas Schwab <schwab@suse.de>
4919
4920 * corefile.c (_initialize_core): Remove spurious paren from set
4921 gnutarget doc string.
4922
4923 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
4924
4925 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
4926 Define PPC_FEATURE_BOOKE.
4927 (ppc_linux_get_hwcap): New function.
4928 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4929 4-bytes alignment restrictions.
4930 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4931 positioning of the read/write flags.
4932 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4933 4-bytes alignment.
4934
4935 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4936
4937 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4938
4939 * win32-nat.c (win32_add_thread): Change thread argument type to
4940 ptid_t. Adjust.
4941 (win32_add_thread): Adjust.
4942 (win32_delete_thread): Change thread argument type to ptid_t.
4943 Adjust.
4944 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4945 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4946 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4947 (init_win32_ops): Put to_magic last.
4948 (win32_win32_thread_alive): Adjust.
4949
4950 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4951
4952 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4953 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4954
4955 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4956
4957 * remote-m32r-sdi.c: Include "gdbthread.h".
4958 (remote_m32r_ptid): New.
4959 (m32r_close): Delete the main thread.
4960 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4961 main thread.
4962 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4963 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4964
4965 2008-08-07 Tom Tromey <tromey@redhat.com>
4966 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4967
4968 * aclocal.m4, configure: Rebuild.
4969 * configure.in: Call ZW_CREATE_DEPDIR,
4970 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4971 (MAKE, GMAKE): New substs.
4972 * acinclude.m4: Include depstand.m4.
4973 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4974 COMPILE, POSTCOMPILE, depcomp): New variables.
4975 Remove all _h variables.
4976 Remove many .o targets.
4977 ($(srcdir)/copying.c): avoid backslash-newline after comment
4978 sign (@maintainer_mode_true@).
4979 (HFILES_NO_SRCDIR): Regenerate.
4980 (generated_files): New variable.
4981 (all_gdbtk_cflags): Likewise.
4982 (.c.o): Rewrote.
4983 (init.o, version.o, copying.o): Remove.
4984 (distclean): Remove DEPDIR.
4985 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4986 printcmd.o, procfs.o, v850ice.o): Rewrite.
4987 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4988 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4989 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4990 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4991 gdbtk-wrapper.o): Likewise.
4992 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4993 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4994 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4995 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4996 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4997 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4998 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4999 tui-wingeneral.o, tui-winsource.o): Likewise.
5000 (all_object_files): New variable.
5001 ($(all_object_files)): New target.
5002 Include dependency files, when using GNU Make.
5003
5004 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
5005
5006 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
5007 the valid bit set. Ensure display order respects partial
5008 order defined by dependency bits.
5009
5010 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5011
5012 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
5013 setup.
5014
5015 2008-08-06 Mark Kettenis <kettenis@gnu.org>
5016
5017 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
5018 OpenBSD 4.3.
5019
5020 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
5021 Tom Tromey <tromey@redhat.com>
5022 Thiago Jung Bauermann <bauerman@br.ibm.com>
5023 Doug Evans <dje@google.com>
5024
5025 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
5026 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
5027 PYTHON_CFLAGS): New.
5028 (python_h, python_internal_h): New.
5029 (cli-script.o): Depend on python.h
5030 (python.o, python-utils.o): New.
5031 * cli/cli-script.c (print_command_lines): Handle python_control.
5032 (execute_control_command): Handle python_control.
5033 (execute_control_command_untraced): New function.
5034 (while_command): Call execute_control_command_untraced.
5035 (if_command): Likewise.
5036 (get_command_line): Remove static attribute.
5037 (read_next_line): Handle "python".
5038 (recurse_read_control_structure): Handle python_control.
5039 (read_command_lines): Handle python_control.
5040 Include python.h.
5041 * cli/cli-script.h (get_command_line): Add prototype.
5042 (execute_control_command_untraced): Likewise.
5043 * configure.ac: Add --with-python.
5044 * defs.h (enum command_control_type) <python_control>: New
5045 constant.
5046 * python/python-internal.h: New file.
5047 * python/python.c: New file.
5048 * python/python.h: New file.
5049 * python/python-utils.c: New file.
5050 * NEWS: Mention Python scripting support and its new commands.
5051
5052 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
5053
5054 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
5055
5056 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
5057
5058 * MAINTAINERS (Write After Approval): Add self.
5059
5060 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
5061
5062 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
5063 (insert_breakpoint_locations): Likewise.
5064
5065 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
5066
5067 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
5068 breakpoint.
5069 (set_longjmp_breakpoint): Likewise.
5070
5071 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5072
5073 PR build/2490
5074 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
5075 defined.
5076
5077 2008-08-05 Tom Tromey <tromey@redhat.com>
5078
5079 * bcache.c (deprecated_bcache_added): Initialize obstack.
5080 (bcache_xmalloc): Don't initialize obstack.
5081 (bcache_xfree): Conditionally free obstack.
5082 (bcache_memory_used): Update.
5083
5084 2008-08-05 Tom Tromey <tromey@redhat.com>
5085
5086 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
5087 bcache_full.
5088 (append_psymbol_to_list): Accept a const pointer.
5089 (add_psymbol_to_list): Fix const correctness.
5090 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
5091 (bcache_full): Declare.
5092 * bcache.c (bcache_data, deprecated_bcache): Remove.
5093 (bcache): Use bcache_full.
5094 (bcache_full): Rename from deprecated_bcache_added. Change return
5095 type.
5096
5097 2008-08-04 Stan Shebs <stan@codesourcery.com>
5098
5099 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
5100 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
5101 (enable_break): Remove test of BKPT_AT_SYMBOL.
5102
5103 2008-08-02 Keith Seitz <keiths@redhat.com>
5104
5105 * acinclude.m4: Include ../config/tcl.m4 to pick up
5106 standard Tcl configury bits.
5107 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
5108 * configure.ac: Don't check if ../itcl exists when building
5109 gdbtk. It could be installed.
5110 Rewrite gdbtk configury to allow for using system-supplied
5111 Tcl and Tk. Gdbtk no longer requires build-time access to
5112 itcl and itk.
5113 * Makefile.in: Remove everything related to itcl and itk.
5114 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
5115 configure.ac.
5116 Remove v850ice.o build rule.
5117 (ALL_TCL_CFLAGS): New convenience defintion. Change all
5118 gdbtk sources to use it.
5119 * configure: Regenerate.
5120
5121 2008-07-31 Stan Shebs <stan@codesourcery.com>
5122
5123 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
5124
5125 2008-07-30 Stan Shebs <stan@codesourcery.com>
5126
5127 * objfiles.c (TARGET_KEEP_SECTION): Remove.
5128 (add_to_objfile_sections): Remove use.
5129
5130 2008-07-29 Tom Tromey <tromey@redhat.com>
5131
5132 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
5133 (lookup_cmd_composition): Likewise.
5134
5135 2008-07-29 Tom Tromey <tromey@redhat.com>
5136
5137 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
5138 dead code. Fix indentation.
5139
5140 2008-07-29 Stan Shebs <stan@codesourcery.com>
5141
5142 * main.c (captured_main): Remove long-unused #if 0 blocks.
5143
5144 2008-07-28 Tom Tromey <tromey@redhat.com>
5145
5146 * annotate.h (deprecated_annotate_starting_hook): Remove.
5147 (deprecated_annotate_stopped_hook): Remove.
5148 (deprecated_annotate_exited_hook): Remove.
5149 * Makefile.in (annotate.o): Depend on observer_h.
5150 * top.c (deprecated_delete_breakpoint_hook): Remove.
5151 (deprecated_create_breakpoint_hook): Likewise.
5152 (deprecated_modify_breakpoint_hook): Likewise.
5153 * interps.c (clear_interpreter_hooks): Update for removed hooks.
5154 * breakpoint.c (mention): Don't call removed hook.
5155 (delete_breakpoint): Likewise.
5156 (disable_breakpoint): Likewise.
5157 (do_enable_breakpoint): Likewise.
5158 * annotate.c: Include observer.h.
5159 (breakpoint_changed): Change type of argument.
5160 (_initialize_annotate): Register observers.
5161 (deprecated_annotate_starting_hook): Remove.
5162 (deprecated_annotate_stopped_hook): Remove.
5163 (deprecated_annotate_exited_hook): Remove.
5164 (annotate_starting): Update for hook removal.
5165 (annotate_stopped): Likewise.
5166 (annotate_exited): Likewise.
5167 * defs.h (deprecated_delete_breakpoint_hook): Remove.
5168 (deprecated_create_breakpoint_hook): Likewise.
5169 (deprecated_modify_breakpoint_hook): Likewise.
5170
5171 2008-07-28 Tom Tromey <tromey@redhat.com>
5172
5173 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
5174
5175 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5176
5177 * configure.ac: Check for the GNU/Linux ptrace signature.
5178 * configure: Regenerated.
5179
5180 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5181
5182 * linux-nat.c (resume_callback): Add more debugging output.
5183 (linux_nat_has_pending_sigint): New function, based on
5184 linux_nat_has_pending.
5185 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
5186 (stop_wait_callback): Remove flush_mask handling. Honor
5187 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
5188 to recursive calls.
5189 (linux_nat_has_pending, flush_callback): Remove.
5190 (linux_nat_filter_event): Check for ignore_sigint.
5191 (linux_nat_wait): Remove flush_mask support and call to
5192 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
5193 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
5194
5195 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5196
5197 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
5198 report events from resumed threads.
5199
5200 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5201
5202 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
5203 (mips_linux_init_abi): Set tdep->syscall_next_pc.
5204 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
5205 mips-tdep.h.
5206 (mips32_next_pc): Handle the syscall instruction.
5207 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
5208 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
5209
5210 2008-07-26 Tom Tromey <tromey@redhat.com>
5211
5212 PR gdb/1158:
5213 * valops.c (value_struct_elt): Treat function-valued field as a
5214 static method.
5215
5216 2008-07-26 Tom Tromey <tromey@redhat.com>
5217
5218 PR gdb/1136:
5219 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
5220 longer tokens first.
5221
5222 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
5223
5224 Kill cmd_async_ok.
5225 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
5226 (get_cmd_async_ok): Remove.
5227 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
5228 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
5229 * infcmd.c (_initialize_infcmd): Likewise.
5230 * thread.c (_initialize_thread): Likewise.
5231
5232 2008-07-25 Joseph Myers <joseph@codesourcery.com>
5233
5234 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
5235 128-bit long doubles in even-odd pairs of FPRs. Do not
5236 right-align float arguments for big-endian.
5237 (mips_n32n64_return_value): Apply return value convention for
5238 structs containing one or two floating-point values to soft-float
5239 as well as hard-float. Handle 128-bit long doubles in such
5240 structs.
5241 (mips_o32_push_dummy_call): Only skip one integer register for a
5242 float argument passed in an FPR.
5243
5244 2008-07-25 Tom Tromey <tromey@redhat.com>
5245
5246 * tui/tui-hooks.c: Include observer.h.
5247 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
5248 Remove.
5249 (tui_bp_created_observer, tui_bp_deleted_observer,
5250 tui_bp_modified_observer): New globals.
5251 (tui_install_hooks): Use observers, not events.
5252 (tui_remove_hooks): Likewise.
5253 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
5254 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
5255 globals.
5256 (breakpoint_notify): Check mi_can_breakpoint_notify.
5257 (breakpoint_hooks): Remove.
5258 (mi_cmd_break_insert): Attach observers. Don't use events.
5259 * tracepoint.c: Include observer.h, not gdb-events.h.
5260 (tracepoint_operation, trace_pass_command): Notify observer.
5261 * interps.c: Don't include gdb-events.h.
5262 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
5263 * gdbarch.c: Rebuild.
5264 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
5265 (deprecated_current_gdbarch_select_hack): Notify observer.
5266 * breakpoint.h: Don't include gdb-events.h.
5267 * breakpoint.c: Don't include gdb-events.h.
5268 (condition_command): Notify observer.
5269 (commands_command): Likewise.
5270 (commands_from_control_command): Likewise.
5271 (mention, delete_breakpoint, set_ignore_count): Likewise.
5272 (disable_breakpoint, do_enable_breakpoint): Likewise.
5273 * Makefile.in (gdb_events_h): Remove.
5274 (breakpoint_h): Update.
5275 (COMMON_OBS): Remove gdb-events.o.
5276 (gdb-events.o): Remove.
5277 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
5278 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
5279 * gdb-events.c: Remove.
5280 * gdb-events.h: Remove.
5281 * gdb-events.sh: Remove.
5282
5283 2008-07-24 Pedro Alves <pedro@codesourcery.com>
5284
5285 * remote.c (remote_threads_extra_info): Don't query the remote
5286 server about info on the internally added main thread.
5287
5288 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
5289
5290 * nto-procfs.c (procfs_attach): Populate initial thread list.
5291 (procfs_wait): Return new pid, built from the inferior status.
5292
5293 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
5294
5295 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
5296 * configure: Regenerate.
5297
5298 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
5299
5300 * nto-procfs.c (procfs_xfer_memory): Changed signature.
5301 (procfs_resume): Workaround for dereferencing type-punned pointer
5302 warning.
5303 * nto-tdep.c (nto_parse_redirection): Change signature to be const
5304 correct.
5305 * nto-tdep.h (nto_parse_redirection): Likewise.
5306
5307 2008-07-21 Stan Shebs <stan@codesourcery.com>
5308
5309 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
5310 * gdbarch.sh: Adjust comment to refer to
5311 in_solib_dynsym_resolve_code().
5312 * gdbarch.h, gdbarch.c: Update.
5313 * solib-osf.c: Ditto.
5314 * infrun.c: Ditto.
5315 (handle_inferior_event): Use in_solib_dynsym_resolve_code
5316 unconditionally.
5317 * config/mips/nm-irix5.h: Remove undef of
5318 IN_SOLIB_DYNSYM_RESOLVE_CODE.
5319
5320 2008-07-21 Tom Tromey <tromey@redhat.com>
5321
5322 * symfile.c (reread_symbols): Don't pass argument to observer.
5323 * exec.c (exec_file_attach): Don't pass argument to observer.
5324 * ada-lang.c (ada_executable_changed_observer): Remove argument.
5325 * symtab.c (symtab_observer_executable_changed): Remove argument.
5326 * observer.sh: Handle functions with no arguments.
5327
5328 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
5329 Chris Demetriou <cgd@google.com>
5330
5331 * elfread.c (elf_symfile_segments): Fix the check that each loadable
5332 section fits within an ELF segment to handle ELF segments that hit
5333 the end of the address space.
5334
5335 2008-07-20 Chris Demetriou <cgd@google.com>
5336
5337 * MAINTAINERS (Write After Approval): Add self.
5338
5339 2008-07-18 Tom Tromey <tromey@redhat.com>
5340
5341 PR gdb/855:
5342 * NEWS: Add entry for macro commands.
5343 * Makefile.in (macrocmd.o): Add gdb_string.h.
5344 * macroscope.h (user_macro_scope): Declare.
5345 (default_macro_scope): Update documentation.
5346 (macro_user_macros): Declare.
5347 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
5348 Use user_macro_scope.
5349 (null_macro_lookup): Remove.
5350 * macrotab.h (macro_callback_fn): Declare.
5351 (macro_for_each): Likewise.
5352 (macro_allow_redefinitions): Likewise.
5353 * macrotab.c (foreach_macro): New function
5354 (macro_for_each): Likewise.
5355 (struct macro_table) <redef_ok>: New field.
5356 (macro_allow_redefinitions): New function.
5357 (new_macro_table): Update.
5358 (macro_define_function): Likewise.
5359 (macro_define_object): Likewise.
5360 * macroscope.c (user_macro_scope): New function.
5361 (default_macro_scope): Use it.
5362 (macro_user_macros): New global.
5363 (standard_macro_lookup): Look in macro_user_macros.
5364 (_initialize_macroscope): New function.
5365 * macroexp.h (macro_is_whitespace, macro_is_digit,
5366 macro_is_identifier_nondigit): Declare.
5367 * macroexp.c (macro_is_whitespace): Rename. No longer static.
5368 (macro_is_digit): Likewise.
5369 (macro_is_identifier_nondigit): Likewise.
5370 (get_identifier): Update.
5371 (get_pp_number): Likewise.
5372 (get_token): Likewise.
5373 * macrocmd.c (skip_ws): New function.
5374 (extract_identifier): Likewise.
5375 (free_macro_definition_ptr): Likewise.
5376 (user_macros): Remove.
5377 (macro_define_command): Implement.
5378 (_initialize_macrocmd): Update.
5379 (macro_undef_command): Implement.
5380 (print_one_macro): New function.
5381 (macro_list_command): Implement.
5382
5383 2008-07-18 Joseph Myers <joseph@codesourcery.com>
5384
5385 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5386 in BFD ELF check.
5387 * configure: Regenerate.
5388
5389 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5390
5391 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5392
5393 2008-07-15 Andreas Schwab <schwab@suse.de>
5394
5395 * valops.c (value_cast_pointers): Follow typedefs when checking
5396 result of coercion.
5397
5398 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5399
5400 * block.c (block_function): Renamed to ...
5401 (block_linkage_function): ... this. All callers changed.
5402 * block.h (block_function): Renamed to ...
5403 (block_linkage_function): ... this.
5404
5405 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5406
5407 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5408
5409 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5410
5411 * frame.c (frame_sp_unwind): Delete.
5412 (get_frame_sp): Do not use it.
5413 * frame.h (frame_sp_unwind): Delete prototype.
5414
5415 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5416
5417 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5418
5419 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5420
5421 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5422 * frame.c (frame_unwind_address_in_block): Delete.
5423 (get_frame_address_in_block): Do not use it. Check the type
5424 of the next frame first.
5425 (frame_cleanup_after_sniffer): Update comment.
5426 * frame.h (frame_unwind_address_in_block): Delete prototype.
5427 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5428
5429 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5430
5431 * frame.c (frame_func_unwind): Delete.
5432 (get_frame_func): Do not use it.
5433 * frame.h (frame_func_unwind): Delete prototype.
5434 * hppa-tdep.c (hppa_frame_cache): Update comment.
5435 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5436
5437 2008-07-14 Stan Shebs <stan@codesourcery.com>
5438
5439 * remote-sim.c (init_gdbsim_ops): Remove
5440 TARGET_REDEFINE_DEFAULT_OPS.
5441
5442 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5443
5444 * findvar.c (read_var_value): Remove unused variable.
5445
5446 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
5447
5448 * infrun.c (handle_inferior_event): Tag threads as stopped
5449 before inserting breakpoints.
5450
5451 2008-07-15 Hui Zhu <teawater@gmail.com>
5452
5453 * MAINTAINERS: Added myself to section Write After Approval.
5454
5455 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5456
5457 PR gdb/2477
5458 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
5459
5460 2008-07-14 Pedro Alves <pedro@codesourcery.com>
5461
5462 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5463 (i386_dicos_push_dummy_code): New.
5464 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5465 Register i386_dicos_push_dummy_code.
5466
5467 2008-07-14 Markus Deuling <deuling@de.ibm.com>
5468
5469 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5470 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5471 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5472
5473 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5474 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5475 (mips_n32n64_fp_arg_chunk_p): Update caller.
5476
5477 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5478 (mips_n32n64_push_dummy_call): Update caller.
5479
5480 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5481 current_gdbarch.
5482 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5483 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5484
5485
5486 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5487 current_gdbarch.
5488 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5489 (mips_o64_push_dummy_call): Update caller.
5490
5491 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5492 (fp_register_arg_p, mips_dump_tdep): Update caller.
5493
5494 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5495 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5496
5497 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5498 current_gdbarch.
5499 (mips32_scan_prologue): Update caller.
5500
5501 (heuristic_proc_start): Add gdbarch as parameter. Replace
5502 current_gdbarch.
5503 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5504
5505 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5506 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5507 the current architecture. Update call to getregs_supplies.
5508 (getregs_supplies): Add gdbarch as parameter and replace
5509 current_gdbarch.
5510
5511 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5512 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5513 NBSD_MIPS_JB_ELEMENT_SIZE.
5514 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5515 replace current_gdbarch.
5516
5517 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5518 current_gdbarch.
5519 (mips_fetch_registers, mips_store_registers): Update call
5520 to mips_map_regno.
5521 (mips_load): Use get_regcache_arch to get at the current_architecture
5522 and replace current_gdbarch.
5523
5524 2008-07-13 Pedro Alves <pedro@codesourcery.com>
5525
5526 * thread.c (restore_selected_frame): On fail to restore, select
5527 the innermost frame, and don't crash when warning the user.
5528
5529 2008-07-13 Hui Zhu <teawater@gmail.com>
5530
5531 * symtab.c (expand_line_sal): Fix a memory leak.
5532
5533 2008-07-13 Pedro Alves <pedro@codesourcery.com>
5534
5535 * utils.c (struct continuation): Define as inheriting struct
5536 cleanup.
5537 (add_continuation, do_all_continuations)
5538 (discard_all_continuations, add_intermediate_continuation)
5539 (do_all_intermediate_continuations)
5540 (discard_all_intermediate_continuations): Adjust.
5541
5542 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5543
5544 Skip varobj in running threads.
5545 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5546 thread is not stopped, skip the varobj.
5547 * Makefile.in: Update dependencies.
5548
5549 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5550
5551 Enable all commands while inferiour is running
5552 * mi/mi-main.c (mi_cmd_execute): Don't check if
5553 inferiour is executing.
5554
5555 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5556
5557 Allow all CLI command even if target is executing.
5558 * gdb/top.c (execute_command_1): Don't check if the inferiour
5559 is running.
5560
5561 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5562
5563 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5564 Fix printing of frame, when frame is wrong.
5565
5566 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5567
5568 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5569 backchain is unreadable.
5570
5571 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5572
5573 * spu-linux-nat.c: Include "gdbthread.h".
5574 (spu_child_post_startup_inferior): Register main thread.
5575 (spu_child_post_attach): Likewise.
5576 * Makefile.in (spu-linux-nat.o): Update dependencies.
5577
5578 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5579
5580 Rewrite continuations internals on top of cleanups and plug
5581 continuation arguments leaks.
5582
5583 * defs.h (struct continuation): Make it opaque.
5584 (add_continuation, add_intermediate_continuation): Drop the int
5585 argument of the continuation hook argument. Add
5586 continuation_free_args argument.
5587 (do_all_continuations, do_all_intermediate_continuations): Drop
5588 the error_p argument.
5589
5590 * utils.c (add_continuation): Drop the int argument of the
5591 continuation hook argument. Add continuation_free_args argument.
5592 Reimplement on top of cleanups.
5593 (do_all_continuations): Drop error argument. Reimplement on top
5594 of cleanups.
5595 (discard_all_continuations): Reimplement on top of cleanups.
5596 (add_intermediate_continuation): Drop the int argument of the
5597 continuation hook argument. Add continuation_free_args argument.
5598 Reimplement on top of cleanups.
5599 (do_all_intermediate_continuations): Drop error argument.
5600 Reimplement on top of cleanups.
5601 (discard_all_intermediate_continuations): Reimplement on top of
5602 cleanups.
5603
5604 * breakpoint.c (until_break_command_continuation): Drop error
5605 argument. Add xfree as continuation argument deleter.
5606
5607 * inf-loop.c (inferior_event_handler): On error, discard all
5608 continuations. Adjust to new do_all_intermediate_continuations
5609 and do_all_continuations interfaces.
5610
5611 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5612 Pass xfree as continuation argument deleter.
5613 (finish_command_continuation): Drop error_p argument. Adjust.
5614 (finish_command_continuation_free_arg): New.
5615 (finish_command): Pass finish_command_continuation_free_arg as
5616 continuation argument deleter. Adjust to new do_all_continuations
5617 interfaces.
5618 (attach_command_continuation): Drop error_p argument.
5619 (attach_command_continuation_free_args): New.
5620 (attach_command): Pass attach_command_continuation_free_args as
5621 continuation argument deleter.
5622
5623 * interps.c (interp_set): Adjust to new do_all_continuations
5624 interfaces.
5625
5626 * event-top.c (stdin_event_handler): In error, also discard the
5627 intermediate continuations.
5628
5629 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5630
5631 Replace struct continuation_args by void* and per command structs.
5632
5633 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5634
5635 * breakpoint.c (struct until_break_command_continuation_args):
5636 New.
5637 (until_break_command_continuation): Take a void* instead of a
5638 continuations_arg. Adjust.
5639 (until_break_command): Adjust to use struct
5640 until_break_command_continuation_args instead of struct
5641 continuation_arg.
5642
5643 * infcmd.c (struct step_1_continuation_args): New.
5644 (step_1_continuation): Take a void* instead of a
5645 continuations_arg. Adjust to use struct step_1_continuation_args.
5646 (step_once): Adjust to use struct step_1_continuation_args.
5647
5648 (struct finish_command_continuation_args): New.
5649 (finish_command_continuation): Take a void* instead of a
5650 continuations_arg. Adjust to use struct
5651 finish_command_continuation_args.
5652 (finish_command): Adjust to use struct
5653 finish_command_continuation_args.
5654 (struct attach_command_continuation_args): New.
5655 (attach_command_continuation): Take a void* instead of a
5656 continuations_arg. Adjust to use struct
5657 attach_command_continuation_args.
5658 (attach_command): Adjust to use struct
5659 attach_command_continuation_args.
5660
5661 * defs.h (struct continuation_arg): Delete.
5662 (struct continuation): Replace the struct continuation_arg*
5663 parameter of continuation_hook by a void*. Replace "arg_list"
5664 member by a new "args" member with void* type.
5665 (add_continuation, add_intermediate_continuation): Replace struct
5666 continuation_arg type usages by void* usages.
5667
5668 * utils.c (add_continuation, do_all_continuations)
5669 (add_intermediate_continuation)
5670 (do_all_intermediate_continuations): Replace struct
5671 continuation_arg type usages by void* usages. Pass "args" instead
5672 of "arg_list".
5673
5674 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5675
5676 * infrun.c (struct thread_stepping_state): Delete sal member.
5677 (init_thread_stepping_state): Add local sal. Use it instead of
5678 tss->sal.
5679 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5680 tss->sal.
5681 (step_into_function): Add local stop_func_sal. Use it instead of
5682 tss->sal.
5683
5684 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5685
5686 Implement -exec-continue/-exec-interrupt --all.
5687 * infcmd.c (continue_1): New, extracted from
5688 (continue_command): ...here.
5689 (interrupt_target_1): New, extracted from
5690 (interrupt_target_command): ...here.
5691 * inferior.h (continue_1, interrupt_target_1): New.
5692 * mi/mi-main.c (mi_cmd_exec_continue)
5693 (mi_cmd_exec_interrupt): Handle --all.
5694
5695 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5696
5697 Implement --thread and --frame.
5698 * gdbthread.h (find_thread_id): Declare.
5699 * thread.c (find_thread_id): Make non-static.
5700 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5701 thread and frame, if necessary.
5702 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5703 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
5704
5705 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5706
5707 * infrun.c (resume): Discard cleanups on early exit path.
5708
5709 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5710
5711 * infrun.c (normal_stop): For MI, report which threads
5712 were stopped.
5713
5714 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5715
5716 Report thread state in -thread-info output.
5717 * thread.c (print_thread_info): Add new field "state".
5718
5719 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5720
5721 * infrun.c (handle_inferior_event): Also ignore a
5722 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5723
5724 2008-07-11 Tom Tromey <tromey@redhat.com>
5725
5726 * completer.c (complete_line_internal): New function, from
5727 complete_line. Add 'for_help' parameter.
5728 (complete_line): Use it.
5729 (command_completer): Move later. Rewrite.
5730
5731 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5732
5733 * thread.c (thread_apply_command): Move making the cleanup out of
5734 the loop.
5735
5736 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5737
5738 Exited threads.
5739
5740 * thread.c (enum thread_state): New.
5741 (thread_state main_thread_running): Delete, in favor of...
5742 (thread_state main_thread_state): ... this. Update throughout.
5743 (clear_thread_inferior_resources): New, split from free_thread.
5744 (free_thread): Call clear_thread_inferior_resources.
5745 (init_thread_list): Set main thread to stopped state.
5746 (add_thread_silent): Take care of PTID reuses.
5747 (delete_thread): If deleting inferior_ptid or a thread with
5748 refcount > 0, mark it as exited, but still keep it in the list.
5749 Only notify of thread exits, if we haven't done so yet.
5750 (iterate_over_threads): Make it safe to delete threads while
5751 iterating over them.
5752 (do_captured_list_thread_ids): Don't account for exited threads.
5753 (thread_alive): Check for the THREAD_EXITED state, and don't set
5754 ptid to -1 on exited threads.
5755 (set_running): Update to account for extra possible states.
5756 (is_thread_state): New.
5757 (is_stopped, is_exited): New.
5758 (is_running): Implement in terms of is_thread_state.
5759 (any_running): Update.
5760 (print_thread_info): Update. Account for exited threads. Don't
5761 warn about missed frame restoring here, its done in the cleanup.
5762 (switch_to_thread): Don't read from a thread that has gone.
5763 (restore_current_thread): In non-stop mode, do a full context
5764 switch.
5765 (restore_selected_frame): Add a frame_level argument. Rewrite.
5766 (struct current_thread_cleanup): Add selected_frame_level and
5767 was_stopped members.
5768 (do_restore_current_thread_cleanup): Check if thread was stopped
5769 and still is, and if the target has registers, stack and memory
5770 before restoring the selected frame. Don't delete the cleanup
5771 argument here.
5772 (restore_current_thread_cleanup_dtor): New.
5773 (make_cleanup_restore_current_thread): Remove all arguments.
5774 Rewrite.
5775 (thread_apply_all_command): Update. Prune threads.
5776 (thread_apply_command): Update.
5777 (thread_command): Account for currently selected exited thread.
5778 (do_captured_thread_select): Check for a running thread. Prune
5779 threads.
5780 (_initialize_thread): Make "info threads", "thread", "thread
5781 apply", and "thread apply all" appliable without a selected thread.
5782 * gdbthread.h (struct thread_info): Replace running_ by state_.
5783 Add refcount.
5784 (is_exited, is_stopped): Declare.
5785 (make_cleanup_restore_current_thread): Remove all arguments.
5786 * infrun.c: Include "event-top.h".
5787 (fetch_inferior_event): In non-stop mode, restore selected thread
5788 and frame after handling the event and running breakpoint
5789 commands. Display GDB prompt if needed.
5790 (normal_stop): In non-stop mode, don't print thread switching
5791 notice.
5792 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5793 (get_cmd_no_selected_thread_ok): New.
5794 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5795 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5796 Declare.
5797 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5798 no-selected-thread ok.
5799 * top.c (execute_command): Check for non no-selected-thread-ok
5800 commands.
5801 * linux-nat.c (struct saved_ptids, threads_to_delete)
5802 (record_dead_thread, prune_lwps): Delete.
5803 (exit_lwp): Unconditionally delete thread.
5804 (linux_nat_resume): Remove prune_lwps call.
5805 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5806 of is_running. Adjust to make_cleanup_restore_current_thread
5807 interface change.
5808 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5809 selected thread has exited.
5810 * inf-loop.c (inferior_event_handler): Don't display the prompt
5811 here.
5812 * varobj.c (c_value_of_root): Update.
5813 * defs.h (make_cleanup_dtor): Declare.
5814 * utils.c (make_cleanup_dtor): New.
5815
5816 * Makefile.in (infrun.o): Depend on $(event_top_h).
5817
5818 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5819
5820 Add "continue -a" and "interrupt -a" options for non-stop mode.
5821
5822 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5823 (continue_command): Add "-a" option.
5824 (interrupt_target_command): Add "-a" option.
5825 (_initialize_infcmd): Add extend help of continue and interrupt
5826 command to mention the new "-a" option. Mark "continue" async ok.
5827
5828 2008-07-10 Doug Evans <dje@google.com>
5829
5830 Add "set print symbol-loading on|off".
5831 * NEWS: Document new option.
5832 * symfile.h (print_symbol_loading): Declare.
5833 * symfile.c (print_symbol_loading): New global.
5834 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5835 from ..." if print_symbol_loading.
5836 (_initialize_symfile): Add set/show print symbol-loading.
5837 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5838 if print_symbol_loading.
5839
5840 2008-07-10 Pedro Alves <pedro@codesourcery.com>
5841
5842 Non-stop linux native.
5843
5844 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5845 here.
5846 (get_pending_status): Implement non-stop mode.
5847 (linux_nat_detach): Stop threads before detaching.
5848 (linux_nat_resume): In non-stop mode, always resume only a single
5849 PTID.
5850 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5851 add new lwp to GDB's thread table, and mark as running, executing
5852 and stopped appropriately.
5853 (linux_nat_filter_event): Don't assume there are other running
5854 threads when a thread exits.
5855 (linux_nat_wait): Mark the main thread as running and executing.
5856 In non-stop mode, don't stop all lwps.
5857 (linux_nat_kill): Stop lwps before killing them.
5858 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5859 alive.
5860 (send_sigint_callback): New.
5861 (linux_nat_stop): New.
5862 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5863
5864 * linux-nat.h (thread_db_attach_lwp): Declare.
5865
5866 * linux-thread-db.c (thread_get_info_callback): Check for new
5867 threads if we have none.
5868 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5869 stopped lwp. Check for new threads if we have none.
5870 (thread_db_attach_lwp): New.
5871 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5872 (check_event): Set proc_handle.pid to the stopped lwp.
5873 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5874 lwp available, bail out if there is none.
5875
5876 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5877 PTRACE_KILL.
5878
5879 2008-07-10 Kevin Buettner <kevinb@redhat.com>
5880
5881 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5882 `current_pc' from CORE_ADDR to ULONGEST.
5883
5884 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5885 gdbsim_stop().
5886
5887 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5888
5889 * NEWS (New commands): Mention "set disable-randomization".
5890 * configure.ac: Add check for HAVE_PERSONALITY and
5891 HAVE_DECL_ADDR_NO_RANDOMIZE.
5892 * configure, config.in: Regenerate.
5893 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5894 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5895 ADDR_NO_RANDOMIZE.
5896 (disable_randomization, show_disable_randomization)
5897 (set_disable_randomization): New.
5898 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5899 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5900 variable DISABLE_RANDOMIZATION.
5901 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5902 DISABLE_RANDOMIZATION.
5903
5904 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5905
5906 Adjust all targets to new target_stop interface.
5907
5908 * gnu-nat.c (gnu_stop): Add ptid argument.
5909 * go32-nat.c (go32_stop): Add ptid argument.
5910 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5911 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5912 * monitor.c (monitor_stop): Add ptid argument.
5913 (monitor_open): Pass inferior_ptid to monitor_stop.
5914 (monitor_interrupt): Pass inferior_ptid to target_stop.
5915 (monitor_stop): Add ptid argument.
5916 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5917 (procfs_create_inferior): Add ptid argument.
5918 * procfs.c (procfs_stop): Add ptid argument.
5919 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5920 * remote-sim.c (gdbsim_stop): Add ptid argument.
5921 * sol-thread.c (sol_thread_stop): Add ptid argument.
5922 * win32-nat.c (win32_stop): Add ptid argument.
5923
5924 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5925
5926 Non-stop inferior control.
5927
5928 * infrun.c (resume): In non-stop mode, always resume just one
5929 thread.
5930 (proceed): Don't call prepare_to_proceed in non-stop mode.
5931 (fetch_inferior_event): In non-stop mode, switch context before
5932 handling the event.
5933 (error_is_running, ensure_not_running): New.
5934 (handle_inferior_event): In non-stop mode: Mark only the event
5935 thread as stopped. Require that the target module manages adding
5936 threads to the thread list. Assert that there isn't a
5937 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5938 (normal_stop): Only mark not-running if inferior hasn't exited.
5939 In non-stop mode, only mark the event thread.
5940
5941 * thread.c:Include "cli/cli-decode.h".
5942 (print_thread_info): Don't read from a running thread.
5943 Output "(running)" if thread is running.
5944 (switch_to_thread): Don't read stop_pc if thread is executing.
5945 (do_restore_current_thread_cleanup): Don't write to a running
5946 thread.
5947 (thread_apply_all_command): Don't read from a running thread. In
5948 non-stop mode, do a full context-switch instead of just switching
5949 threads.
5950 (thread_apply_command): In non-stop mode, do a full context-switch
5951 instead of just switching threads.
5952 (do_captured_thread_select): Likewise. Inform user if selected
5953 thread is running.
5954 (_initialize_thread): Mark "info threads" and "thread" and
5955 async_ok.
5956
5957 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5958 unregister the target from the event loop.
5959
5960 * infcmd.c (continue_command, step_1, jump_command)
5961 (signal_command): Ensure the selected thread isn't running.
5962 (interrupt_target_command): In non-stop mode, interrupt only the
5963 selected thread.
5964
5965 * inferior.h (error_is_running, ensure_not_running): Declare.
5966
5967 * target.h (struct target_ops): Add ptid argument to the to_stop
5968 member.
5969 (target_stop): Add ptid_t argument.
5970
5971 * target.c (update_current_target): Add ptid argument to to_stop's
5972 type.
5973 (debug_to_stop): Add ptid_t argument.
5974 (debug_to_rcmd): Set to_stop_ptid.
5975
5976 * remote.c (remote_stop): Add ptid_t argument.
5977 (async_remote_interrupt): Add inferior_ptid to target_stop.
5978 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5979
5980 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5981
5982 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5983
5984 Don't rely on ecs->wait_for_more.
5985
5986 * infrun.c (proceed): Clear the stepping state, set
5987 previous_inferior_ptid and clear infwait state.
5988 (wait_for_inferior): Don't clear the stepping state, set
5989 previous_inferior_ptid, or clear the infwait state here.
5990 (fetch_inferior_event): Don't clear the stepping state, set
5991 previous_inferior_ptid, or clear the infwait state here. Don't
5992 condition on wait_for_more.
5993
5994 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5995
5996 Refactor infrun a bit.
5997
5998 * infrun.c (currently_stepping): Take a struct
5999 thread_stepping_state instead of an execution_control_state.
6000 (struct thread_stepping_state): New, split from
6001 execution_control_state.
6002 (gtss, tss): New globals.
6003 (proceed): Clear the stepping state, set previous_inferior_ptid
6004 and clear infwait state.
6005 (init_wait_for_inferior): Clear the stepping state,
6006 previous_inferior_ptid and infwait state.
6007 (waiton_ptid, infwait_state): New, split from
6008 execution_control_state.
6009 (struct execution_control_state): Members that persist through
6010 events moved out to either struct thred_stepping_state or made
6011 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
6012 (wait_for_inferior, fetch_inferior_event): Use local
6013 execution_control_state. Update to execution_control_state split.
6014 (init_execution_control_state): Adjust.
6015 (init_thread_stepping_state): New, extracted from
6016 init_execution_control_state.
6017 (context_switch): Take a ptid instead of an
6018 execution_control_state.
6019 (context_switch_to): Adjust.
6020 (adjust_pc_after_break): Adjust.
6021 (init_infwait_state): New.
6022 (handle_inferior_event): Adjust.
6023
6024 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6025 Vladimir Prus <vladimir@codesourcery.com>
6026
6027 Per-thread commands.
6028
6029 * gdbthread.h: Remove unneeded forward declarations.
6030 Include "inferior.h".
6031 (struct thread_info): Add continuations,
6032 intermediate_continuations, proceed_to_finish, step_over_calls,
6033 stop_step, step_multi and stop_signal members.
6034 (save_infrun_state): Add continuations,
6035 intermediate_continuations, proceed_to_finish, step_over_calls,
6036 stop_step, step_multi, stop_signal and stop_bpstat parameters.
6037 (load_infrun_state): Add continuations,
6038 intermediate_continuations, proceed_to_finish, step_over_calls,
6039 stop_step, step_multi, stop_signal and stop_bpstat parameters.
6040
6041 * thread.c (load_infrun_state): In non-stop mode, load
6042 continuations, intermediate_continuations, proceed_to_finish,
6043 step_over_calls, stop_step, step_multi and stop_signal.
6044 (save_infrun_state): Store continuations,
6045 intermediate_continuations, proceed_to_finish, step_over_calls,
6046 stop_step, step_multi, stop_signal and stop_bpstat.
6047 (save_infrun_state): Store continuations,
6048 intermediate_continuations, proceed_to_finish, step_over_calls,
6049 stop_step, step_multi, stop_signal and stop_bpstat.
6050 (free_thread): Clear The thread's stop_bpstat.
6051
6052 * inferior.h (context_switch_to): Declare.
6053
6054 * infrun.c (ecss): New global.
6055 (context_switch): Context switch continuations,
6056 intermediate_continuations, proceed_to_finish, step_over_calls,
6057 stop_step, step_multi, stop_signal and stop_bpstat.
6058 (wait_for_inferior): Use global ecss.
6059 (async_ecss, async_ecs): Delete.
6060 (fetch_inferior_event): Use global ecss.
6061 (context_switch_to): New.
6062
6063 * top.c (execute_command): In non-stop, only check if the current
6064 thread is running, in all-stop, check if there's any thread
6065 running.
6066
6067 * breakpoint.c (bpstat_remove_breakpoint): New.
6068 (bpstat_remove_breakpoint_callback): New.
6069 (delete_breakpoint): Clear the stop_bpstats of all threads.
6070
6071 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
6072 current thread is running, in all-stop, check if there's any
6073 thread running.
6074
6075 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
6076
6077 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6078
6079 Add non_stop global.
6080
6081 * inferior.h (non_stop): Declare.
6082 * infrun.c (non_stop, non_stop_1): New.
6083 (set_non_stop, show_non_stop): New.
6084 (_initialize_infrun): Add "set/show non-stop" command.
6085
6086 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6087
6088 Adjust fork/vfork/exec to pass ptids around.
6089
6090 * target.h (struct target_waitstatus): Store related_pid as a ptid.
6091 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
6092 Take a ptid_t.
6093 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
6094 type to ptid.
6095 * breakpoint.c (print_it_typical, bpstat_check_location)
6096 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
6097 (create_fork_vfork_event_catchpoint): Adjust.
6098 * infrun.c (fork_event): Change parent_pid and child_pid types to
6099 ptid.
6100 (follow_exec, inferior_has_forked, inferior_has_vforked)
6101 (inferior_has_execd): Take a ptid_t and don't trim it.
6102 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
6103 * linux-nat.c (linux_child_follow_fork): Adjust.
6104 * inf-ptrace.c (inf_ptrace_wait): Adjust.
6105 * inf-ttrace.c (inf_ttrace_wait): Adjust.
6106 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
6107
6108 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6109
6110 Add "executing" property to threads.
6111
6112 * inferior.h (target_executing): Delete.
6113 * gdbthread.h (struct thread_info): Add executing_ field.
6114 (set_executing, is_executing): New.
6115 * thread.c (main_thread_executing): New.
6116 (init_thread_list): Clear it and also main_thread_running.
6117 (is_running): Return false if target has no execution.
6118 (any_running, is_executing, set_executing): New.
6119
6120 * top.c: Include "gdbthread.h".
6121 (target_executing): Delete.
6122 (execute_command): Replace target_executing check by any_running.
6123 * event-top.c: Include "gdbthread.h".
6124 (display_gdb_prompt, command_handler): Replace target_executing by
6125 is_running.
6126 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
6127 here. Replace target_executing by is_running.
6128 * infrun.c (handle_inferior_event): Mark all threads as
6129 not-executing.
6130 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
6131 here.
6132 * stack.c (get_selected_block): Return null if inferior is
6133 executing.
6134 * target.c (target_resume): Mark resumed ptid as executing.
6135 * breakpoint.c (until_break_command): Replace target_executing
6136 check by is_executing.
6137 * remote.c (remote_async_resume): Don't mark inferior as executing
6138 here.
6139 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
6140 by any_running.
6141
6142 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
6143 (mi_execute_async_cli_command): Replace target_executing by
6144 is_running.
6145
6146 * frame.c (get_current_frame): Error out if the current thread is
6147 executing.
6148 (has_stack_frames): New.
6149 (get_selected_frame, deprecated_safe_get_selected_frame): Check
6150 has_stack_frames.
6151
6152 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
6153 $(gdbthread_h).
6154
6155 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6156
6157 * symfile.c (load_command): Reopen the exec file and reread
6158 symbols before anything else.
6159
6160 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6161
6162 * remote-sim.c: Include gdbthread.h.
6163 (remote_sim_ptid): New global.
6164 (gdbsim_create_inferior): Silently add the main task to GDB's
6165 thread list.
6166 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
6167 task from GDB's thread list.
6168 (gdbsim_resume): Adjust to use remote_sim_ptid.
6169 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
6170 (init_gdbsim_ops): Register gdbsim_thread_alive and
6171 gdbsim_pid_to_str.
6172 (_initialize_remote_sim): Initialize remote_sim_ptid.
6173 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
6174
6175 2008-07-09 Pedro Alves <pedro@codesourcery.com>
6176
6177 * monitor (monitor_ptid): New global.
6178 (monitor_open): Silently add the main task to GDB's thread list.
6179 (monitor_close, monitor_mourn_inferior): Silently delete the main
6180 task from GDB's thread list.
6181 (monitor_thread_alive, monitor_pid_to_str): New.
6182 (init_base_monitor_ops): Register monitor_thread_alive and
6183 monitor_pid_to_str.
6184 (_initialize_remote_monitors): Initialize monitor_ptid.
6185
6186 * gdbthread.h (delete_thread_silent): Declare.
6187 * thread.c (delete_thread): Rename to ...
6188 (delete_thread_1): ... this. Add "silent" parameter. If silent,
6189 don't do exit notifications.
6190 (delete_thread, delete_thread_silent): New, as wrappers to
6191 delete_thread_1.
6192
6193 2008-07-08 Pedro Alves <pedro@codesourcery.com>
6194
6195 * breakpoint.c (update_global_location_list): Add boolean
6196 "should_insert" argument. Only insert locations if caller told it
6197 too.
6198 (update_global_location_list_nothrow): Add boolean "should_insert"
6199 argument. Pass it to update_global_location_list.
6200 (insert_breakpoints, create_longjmp_breakpoint)
6201 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
6202 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6203 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
6204 (enable_watchpoints_after_interactive_call_stop)
6205 (set_momentary_breakpoint, create_breakpoints)
6206 (break_command_really, watch_command_1)
6207 (create_ada_exception_breakpoint, update_breakpoint_locations)
6208 (do_enable_breakpoint, enable_command): Pass true to
6209 update_global_location_list.
6210 (bpstat_stop_status, disable_overlay_breakpoints)
6211 (disable_watchpoints_before_interactive_call_start)
6212 (delete_breakpoint, disable_breakpoint, disable_command): Pass
6213 false to update_global_location_list.
6214 (update_breakpoints_after_exec): Don't temporarily disable
6215 always-inserted mode.
6216
6217 2008-07-08 Pedro Alves <pedro@codesourcery.com>
6218
6219 * breakpoint.c (mark_breakpoints_out): Make public.
6220 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
6221 here. Update comment.
6222 * breakpoint.h (mark_breakpoints_out): Declare.
6223
6224 * linux-nat.c (linux_handle_extended_wait): On
6225 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
6226 * inf-ttrace.c (inf_ttrace_wait): Likewise.
6227
6228 2008-07-08 Pedro Alves <pedro@codesourcery.com>
6229
6230 * infrun.c (follow_exec): Reset shared libraries before adding the
6231 main exec file.
6232
6233 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6234
6235 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
6236
6237 2008-07-07 Pedro Alves <pedro@codesourcery.com>
6238
6239 * i386-dicos-tdep.c: Include "inferior.h".
6240 (i386_dicos_frame_align): New.
6241 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
6242 dummy location ON_STACK.
6243 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
6244
6245 2008-07-07 Joel Brobecker <brobecker@adacore.com>
6246
6247 * gstdint.h: New file.
6248
6249 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
6250
6251 * mi/mi-interp.c (mi_on_resume): Don't try to report
6252 resumed thread it the thread list is empty.
6253
6254 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
6255
6256 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
6257 completer for set to filename_completer.
6258
6259 NEWS: Mention it.
6260
6261 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
6262
6263 Implement -target-attach.
6264 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
6265
6266 2008-06-21 Hui Zhu <teawater@gmail.com>
6267
6268 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
6269
6270 2008-07-03 Pedro Alves <pedro@codesourcery.com>
6271
6272 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
6273 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
6274
6275 * target.h (struct target_ops): Add to_attach_no_wait member.
6276 (target_attach_no_wait): New.
6277 * target.c (update_current_target): Inherit to_attach_no_wait.
6278
6279 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
6280 target_attach_no_wait runtime check.
6281
6282 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
6283 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
6284 win32_ops.
6285
6286 2008-07-03 Pedro Alves <pedro@codesourcery.com>
6287
6288 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
6289 on debug_displaced being set.
6290
6291 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6292
6293 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
6294 directly instead of get_frame_id.
6295
6296 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
6297
6298 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
6299 (deal_with_atomic_sequence): Update BC masks.
6300 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
6301 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
6302
6303 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6304
6305 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
6306 register, not the previous frame's.
6307
6308 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
6309
6310 * source.c (select_source_symtab): Make sure we skip namespace
6311 symtabs when showing cpp source code.
6312
6313 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
6314
6315 * MAINTAINERS (Authorized committers): Fix my email address.
6316
6317 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6318
6319 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
6320 -target-download and -target-select via CLI, so that
6321 the quoting rules are the same as they were (unfortunately)
6322 in all prior gdb releases.
6323 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
6324 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6325 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
6326 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6327 (mi_cmd_execute): Set current_token even for commands
6328 routed via CLI.
6329
6330 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
6331
6332 * alphafbsd-tdep.c: Update for unwinder changes.
6333 * alpha-linux-tdep.c: Likewise.
6334 * alphanbsd-tdep.c: Likewise.
6335 * alphaobsd-tdep.c: Likewise.
6336 * avr-tdep.c: Likewise.
6337 * cris-tdep.c: Likewise.
6338 * frv-linux-tdep.c: Likewise.
6339 * frv-tdep.c: Likewise.
6340 * h8300-tdep.c: Likewise.
6341 * hppa-linux-tdep.c: Likewise.
6342 * iq2000-tdep.c: Likewise.
6343 * m32c-tdep.c: Likewise.
6344 * m32r-linux-tdep.c: Likewise.
6345 * m32r-tdep.c: Likewise.
6346 * m68hc11-tdep.c: Likewise.
6347 * mep-tdep.c: Likewise.
6348 * mn10300-tdep.c: Likewise.
6349 * mt-tdep.c: Likewise.
6350 * score-tdep.c: Likewise.
6351 * sh64-tdep.c: Likewise.
6352 * sh-tdep.c: Likewise.
6353 * sparc64fbsd-tdep.c: Likewise.
6354 * sparc64nbsd-tdep.c: Likewise.
6355 * sparc64obsd-tdep.c: Likewise.
6356 * v850-tdep.c: Likewise.
6357 * vaxobsd-tdep.c: Likewise.
6358 * vax-tdep.c: Likewise.
6359 * xstormy16-tdep.c: Likewise.
6360
6361 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6362
6363 * mi/mi-main.c (enum captured_mi_execute_command_actions)
6364 (captured_mi_execute_command_args): Remove.
6365 (captured_mi_execute_command): Cast the closure to mi_parse
6366 pointer, not to captured_mi_execute_command_args, and don't
6367 set the action field thereof.
6368 (mi_execute_command): Pass struct mi_parse, not
6369 captured_mi_execute_command_args to captured_mi_execute_command.
6370 (mi_execute_command): Remove (dead) code for suppressing
6371 printing prompt.
6372
6373 2008-06-28 Pedro Alves <pedro@codesourcery.com>
6374
6375 * linux-nat.c (enum sigchld_state): New.
6376 (linux_nat_async_events_state): Renamed from
6377 linux_nat_async_events_enabled.
6378 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6379 (sigchld_default_action): New.
6380 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6381 unconditionally.
6382 (linux_nat_create_inferior): Set events state to sigchld_default
6383 state.
6384 (linux_nat_resume): Adjust.
6385 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6386 (sigchld_handler): Adjust.
6387 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6388 (get_pending_events): Adjust.
6389 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6390 instead of a boolean.
6391 (linux_nat_async): Adjust.
6392 (_initialize_linux_nat): Capture default SIGCHLD action into
6393 sigchld_default_action.
6394
6395 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6396
6397 * breakpoint.c (moribund_locations): New.
6398 (bpstat_stop_status): Process moribund locations.
6399 (update_global_location_list): Add removed
6400 locations to moribund_locations.
6401 (breakpoint_retire_moribund): New.
6402 * breakpoint.h (struct bp_location): New field
6403 events_till_retirement.
6404 (breakpoint_retire_moribund): Declare.
6405 * thread.c (thread_count): New.
6406 * infrun.c (handle_inferior_event): Call
6407 breakpoint_retire_moribund.
6408 * gdbthread.h (thread_count): Declare.
6409
6410 2008-06-27 Joseph Myers <joseph@codesourcery.com>
6411
6412 * dfp.c (decimal_convert): Call match_endianness before and after
6413 conversion.
6414
6415 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6416
6417 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6418 unsupported and we fall back to memory_insert_breakpoint, we
6419 use the unmodified requested address.
6420
6421 2008-06-27 Joel Brobecker <brobecker@adacore.com>
6422
6423 * dwarf2read.c (read_attribute_value): Issue a complaint when
6424 adjusting size attribute values of 0xffffffff as zero.
6425
6426 2008-06-27 Joseph Myers <joseph@codesourcery.com>
6427
6428 * i386-tdep.c (i386_16_byte_align_p): New.
6429 (i386_push_dummy_call): Determine stack space required for
6430 arguments going forwards allowing for 16-byte alignment, then push
6431 arguments going forwards.
6432
6433 2008-06-27 Pedro Alves <pedro@codesourcery.com>
6434
6435 * infrun.c (start_remote): Don't clear thread list here.
6436 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6437 list here.
6438 * remote.c (record_currthread): Upgrade the main thread and its
6439 entry in the thread list if this is the first time we hear about
6440 threads.
6441 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6442 a tid member always alive.
6443 (remote_find_new_threads): Don't update the main thread here.
6444 (remote_start_remote): Clear thread list here. Always add the
6445 main thread.
6446 (extended_remote_attach_1): Add the main thread here.
6447 (extended_remote_mourn_1): Re-add the main thread here.
6448 (extended_remote_create_inferior_1): Add a main thread.
6449
6450 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6451
6452 2008-06-27 Pedro Alves <pedro@codesourcery.com>
6453
6454 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6455
6456 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6457 globals.
6458 (general_thread, continue_thread): Change type to ptid_t.
6459 (record_currthread): Take a ptid_t parameter instead of an
6460 integer.
6461 (MAGIC_NULL_PID): Delete.
6462 (set_thread): Take a ptid_t parameter and adjust.
6463 (set_general_thread, set_continue_thread): New.
6464 (remote_thread_alive, remote_newthread_step)
6465 (remote_current_thread, remote_find_new_threads)
6466 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6467 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6468 (threadalive_test, remote_pid_to_str)
6469 (remote_get_thread_local_address): Adjust.
6470 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6471 and any_thread_ptid.
6472
6473 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6476 * configure: Regenerated.
6477
6478 2008-06-26 Joel Brobecker <brobecker@adacore.com>
6479
6480 * dwarf2read.c (read_attribute_value): Treat size attribute
6481 values of 0xffffffff as if the attribute value was zero.
6482
6483 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6484
6485 * linux-nat.c: Add description of overall logic.
6486
6487 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6488
6489 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6490 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6491 all dependencies on $(gdb_stdint_h).
6492 (distclean): Do not delete gdb_stdint.h.
6493 * acinclude.m4: Do not use stdint.m4.
6494 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6495 uintptr_t, and gdb_stdint.h.
6496 * defs.h: Include <stdint.h>.
6497 * gdb_thread_db.h: Assume stdint.h is already included.
6498 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6499 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6500 include gdb_stdint.h.
6501 * configure, config.in: Regenerate.
6502
6503 2008-06-26 Joseph Myers <joseph@codesourcery.com>
6504
6505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6506 decimal floating-point values in GPRs for soft-float.
6507 (do_ppc_sysv_return_value): Handle returning decimal
6508 floating-point values in GPRs for soft-float.
6509
6510 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6511
6512 * target.c (target_read_until_error): New.
6513 * target.h (target_read_until_error): Declare.
6514 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6515 target_read_until_error.
6516
6517 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6518
6519 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6520 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6521 after the DECFLOAT detection to fix a memory leak. Remove the
6522 redundant NUM initialization. Protect the DECFLOAT detection memory
6523 access before the P block. Restore the P memory content for the
6524 DECFLOAT detection.
6525
6526 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6527
6528 Kill the return value for all MI command functions.
6529 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6530 (mi_cmd_argv_ftype): Change return type to void.
6531
6532 * mi/mi-main.c: Adjust all function that implement
6533 MI commands to return nothing.
6534 (struct captured_mi_execute_command_actions):
6535 Remove the rc field.
6536 (mi_cmd_execute): Return nothing.
6537 (mi_execute_async_cli_command): Return nothing.
6538 (mi_cmd_exec_interrupt): Don't print ^done here.
6539 (mi_cmd_target_select): Don't print ^connected here.
6540 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6541 Special-case -target-select and output ^connected, not ^done.
6542
6543 * mi/mi-cmd-break.c: Adjust.
6544 * mi/mi-cmd-disas.c: Adjust.
6545 * mi/mi-cmd-env.c: Adjust.
6546 * mi/mi-cmd-file.c: Adjust.
6547 * mi/mi-cmd-stack.c: Adjust.
6548 * mi/mi-cmd-target.c: Adjust.
6549 * mi/mi-cmd-var.c: Adjust.
6550 * mi/mi-interp.c: Adjust.
6551 * mi/mi-symbol-cmds.c: Adjust.
6552
6553 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6554
6555 Emit ^running via observer.
6556 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
6557 ^running here.
6558 (mi_on_resume): Print ^running if not previously output.
6559 * mi/mi-main.c (running_result_record_printed): New.
6560 (captured_mi_execute_command): Reset
6561 running_result_record_printed. Use running_result_record_printed
6562 to decide if we should skip ^done.
6563 (mi_execute_async_cli_command): Don't print ^running here.
6564 * mi/mi-main.h (current_token, running_result_record_printed):
6565 Declare.
6566
6567 2008-06-24 Michael Snyder <msnyder@specifix.com>
6568
6569 * infrun.c (_initialize_infrun): White space and typo fix.
6570
6571 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6572
6573 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6574 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6575 when first loading DLL with "dll" command.
6576
6577 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6578
6579 * gnu-nat.c (proc_string): Use capital T for "Thread".
6580
6581 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6582
6583 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
6584
6585 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6586
6587 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6588 the target cannot run.
6589
6590 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6591
6592 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6593 we're attaching to a running process.
6594
6595 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
6596
6597 * win32-nat.c (handle_load_dll): Give dll name and load address
6598 if debug_events is on.
6599 (handle_unload_dll): Likewise.
6600
6601 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6602
6603 Don't suppress *running when doing finish.
6604 * infcall.c (call_function_by_hand): Set both
6605 suppress_resume_observer and suppress_stop_observer.
6606 * infcmd.c (suppress_run_stop_observers): Split into...
6607 (suppress_resume_observer, suppress_stop_observer): ...those.
6608 (finish_command_continuation): Clear suppress_stop_observer.
6609 (finish_command): Set suppress_stop_observer.
6610 * inferior.h (suppress_run_stop_observers): Split into...
6611 (suppress_resume_observer, suppress_stop_observer): ...those.
6612 * infrun.c (normal_stop): Check for suppress_stop_observer.
6613 * thread.c (set_running): Check for suppress_resume_observer.
6614
6615 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6616 Pierre Muller <muller@ics.u-strasbg.fr>
6617
6618 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6619 * gdbarch.h, gdbarch.c: Regenerate.
6620 * i386-tdep.h (i386_skip_main_prologue): Declare.
6621 * i386-tdep.c (i386_skip_main_prologue): New.
6622 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
6623 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6624 * symtab.c (find_function_start_sal): When pc points at the "main"
6625 function, call gdbarch_skip_main_prologue.
6626
6627 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6628
6629 * value.c (value_primitive_field): Fetch lazy register values.
6630
6631 2008-06-11 Pedro Alves <pedro@codesourcery.com>
6632
6633 * NEWS: Mention support removal of undocumented S AA p PID stop
6634 reply packet.
6635
6636 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6637
6638 2008-06-10 Stan Shebs <stan@codesourcery.com>
6639
6640 * MAINTAINERS: Update my affiliation and address.
6641
6642 2008-06-10 Andreas Schwab <schwab@suse.de>
6643
6644 * top.c (print_gdb_version): Don't print final newline.
6645
6646 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6647
6648 Implement *running.
6649 * Makefile.in: Update dependencies.
6650 * gdbthread.h (struct thread_info): New field
6651 running_.
6652 (set_running, is_running): New.
6653 * thread.c (set_running, is_running): New.
6654 * inferior.h (suppress_normal_stop_observer): Rename to...
6655 (suppress_run_stop_observers): ..this.
6656 * infcmd.c (suppress_normal_stop_observer): Rename to...
6657 (suppress_run_stop_observers): ..this.
6658 (finish_command_continuation, finish_command): Adjust.
6659 * infcall.c (call_function_by_hand): Adjust.
6660 * infrun.c (normal_stop): Call set_running.
6661 * target.c (target_resume): New. Call set_running.
6662 * target.h (target_resume): Convert from macro to
6663 a function.
6664
6665 * mi/mi-interp.c (mi_on_resume): New.
6666 (mi_interpreter_init): Register mi_on_resume.
6667
6668 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6669
6670 Use observers to report stop events in MI.
6671 * mi/mi-interp.c (mi_on_normal_stop): New.
6672 (mi_interpreter_init): Register mi_on_normal_stop.
6673 (mi_interpreter_exec_continuation): Remove.
6674 (mi_cmd_interpreter_exec): Don't register the above.
6675 * mi/mi-main.c (captured_mi_execute_command): Don't care
6676 about sync_execution.
6677 (mi_execute_async_cli_command): Don't install continuation. Don't
6678 print *stopped.
6679 (mi_exec_async_cli_cmd_continuation): Remove.
6680
6681 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6682
6683 Suppress normal stop observer when it's problematic.
6684 * inferior.h (suppress_normal_stop_observer): New.
6685 * infcall.c (call_function_by_hand): Disable stop events when
6686 doing function calls.
6687 * infmcd.c (suppress_normal_stop_observer): New.
6688 (finish_command_continuation): Call normal_stop observer
6689 explicitly.
6690 (finish_command): Disable stop events inside proceed.
6691 * infrun.c (normal_stop): Don't call normal stop observer if
6692 suppressed of if multi-step is in progress.
6693
6694 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6695
6696 Remove stale code.
6697 * infrun.c (finish_command): Don't pass cleanup
6698 to continuation.
6699 (finish_command_continuation): Don't grab cleanup from
6700 the passed data, as we don't use, and cannot, use it anyway.
6701
6702 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6703
6704 Introduce common cleanup for restoring integers.
6705 * defs.h (make_cleanup_restore_integer): New declaration.
6706 (struct cleanup): New field free_arg.
6707 (make_my_cleanup_2): New.
6708 * utils.c (restore_integer_closure, restore_integer)
6709 (make_cleanup_restore_integer): New.
6710 (make_my_cleanup): Initialize the free_arg field and
6711 renamed to make_my_cleanup_2.
6712 (do_my_cleanups): Call free_arg.
6713 (discard_cleanups): Call free_arg.
6714 * breakpoint.c (restore_always_inserted_mode): Remove.
6715 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
6716
6717 2008-06-09 Doug Evans <dje@google.com>
6718
6719 * remote.c (remote_wait): Include beginning of malformed packet
6720 in error output.
6721
6722 2008-06-09 Tom Tromey <tromey@redhat.com>
6723
6724 * completer.c (complete_line): Don't special-case
6725 expression_completer.
6726 (expression_completer): Only pass last word to
6727 location_completer.
6728 * c-exp.y (yylex): Check 'token', not 'operator'.
6729
6730 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6731
6732 * configure.ac (build_warnings): Add -Wno-format for mingw.
6733 * configure: Regenerated.
6734
6735 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6736
6737 * NEWS: Make indentation consistent. Move exec tracing entry out
6738 of remote packet list.
6739
6740 2008-06-06 Tom Tromey <tromey@redhat.com>
6741
6742 * value.h (evaluate_subexpression_type, extract_field_op):
6743 Declare.
6744 * printcmd.c (_initialize_printcmd): Use expression_completer for
6745 'p', 'inspect', 'call'.
6746 * parser-defs.h (parse_field_expression): Declare.
6747 * parse.c: Include exceptions.h.
6748 (in_parse_field, expout_last_struct): New globals.
6749 (mark_struct_expression): New function.
6750 (prefixify_expression): Return int.
6751 (prefixify_subexp): Return int. Use expout_last_struct.
6752 (parse_exp_1): Update.
6753 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6754 in_parse_field.
6755 (parse_field_expression): New function.
6756 * expression.h (parse_field_expression): Declare.
6757 (in_parse_field): Likewise.
6758 * eval.c (evaluate_subexpression_type): New function.
6759 (extract_field_op): Likewise.
6760 * completer.h (expression_completer): Declare.
6761 * completer.c (expression_completer): New function.
6762 (count_struct_fields, add_struct_fields): New functions.
6763 * c-exp.y (yyparse): Redefine.
6764 (COMPLETE): New token.
6765 (exp): New productions.
6766 (saw_name_at_eof, last_was_structop): New globals.
6767 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6768 (c_parse): New function.
6769 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6770 for watch, awatch, and rwatch.
6771 * Makefile.in (parse.o): Depend on exceptions_h.
6772
6773 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6774
6775 PR gdb/1147
6776 * gdb/valopts.c (find_overload_match): Handle references
6777 to pointers.
6778
6779 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6780
6781 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6782 account the bitsize of the 'from' operand.
6783
6784 2008-06-06 Pedro Alves <pedro@codesourcery.com>
6785
6786 * annotate.h (annotate_thread_changed): Declare.
6787
6788 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
6789
6790 * annotate.c (annotate_thread_changed): New function.
6791 * thread.c (thread_command) : Use it.
6792 * infrun.c (normal_stop): Use it.
6793
6794 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
6795 Nathan Sidwell <nathan@codesourcery.com>
6796 Joseph Myers <joseph@codesourcery.com>
6797
6798 * acinclude.m4: Include ../config/acx.m4.
6799 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6800 * configure, config.in: Regenerate.
6801 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6802 address.
6803 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6804
6805 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6806
6807 Replace 'target async' by 'maintenance set remote-async' and
6808 'target remote' combination.
6809
6810 * remote.c (remote_async_wait): Merge into remote_wait, and
6811 remove.
6812 (remote_async_permitted, remote_async_permitted_set): New
6813 variables.
6814 (set_maintenance_remote_async_permitted)
6815 (show_maintenance_remote_async_permitted): New functions.
6816 (remote_async_ops, extended_async_remote_ops): Delete.
6817 (remote_async_open, extended_remote_async_open): Delete.
6818 (remote_open_1): Drop async_p parameter. Update callers. Replace
6819 async_p with remote_async_permitted checks.
6820 (extended_async_remote_attach): Delete.
6821 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6822 (remote_async_terminal_inferior): Rename to...
6823 (remote_terminal_inferior): ... this, and add
6824 remote_async_termitted check.
6825 (remote_async_terminal_ours): Rename to...
6826 (remote_terminal_ours): ... this, and add remote_async_termitted
6827 check.
6828 (remote_wait, remote_async_wait): Merge and leave remote_wait
6829 only.
6830 (remote_kill, remote_async_kill): Merge and leave remote_kill
6831 only.
6832 (remote_async_mourn, extended_async_remote_mourn): Delete.
6833 (extended_remote_create_inferior_1): Drop async_p parameter.
6834 Update callers. Always use extended_remote_ops.
6835 (extended_remote_async_create_inferior): Delete.
6836 (remote_return_zero): Delete.
6837 (init_remote_ops): Register remote_can_async_p, remote_async,
6838 remote_async_mask, remote_terminal_inferior and
6839 remote_terminal_ours.
6840 (remote_can_async_p, remote_is_async_p): Check for
6841 remote_async_permitted.
6842 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6843 (set_remote_cmd): Don't add async and extended-async targets.
6844 (_initialize_remote): Add set/show remote-async maintenance
6845 commands.
6846
6847 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6848
6849 * remote.c (kill_kludge): Delete.
6850 (remote_wait, remote_async_wait): Don't set it.
6851 (remote_kill, remote_async_kill): Don't do anything with it.
6852
6853 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6854
6855 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6856
6857 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6858
6859 * bcache.c (bcache_data): Call deprecated_bcache_added function.
6860 (deprecated_bcache_added): New function name. Body of function
6861 bcache_data is used here with the addition of 'added' argument.
6862 * bcache.h (deprecated_bcache_added): New function.
6863 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6864 work from add_psymbol_to_list - initialises partial symbol and stashes
6865 it in objfile's cache.
6866 (append_psymbol_to_list): New helper function, takes other part of
6867 work from add_psymbol_to_list - adds partial symbol to the given list.
6868 (add_psymbol_to_list): Call helper functions instead of doing work
6869 here. If adding to global list, do not duplicate partial symbols in the
6870 partial symtab.
6871
6872 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6873
6874 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6875 'exception caught|thrown' message.
6876
6877 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6878
6879 * Makefile.in: Update dependencies.
6880 * dwarf2expr.c: New include "gdb_assert.h".
6881 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6882 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6883 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6884 Increase/decrease RECURSION_DEPTH around the function.
6885
6886 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6887
6888 * remote.c (get_offsets): Handle a single segment.
6889 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6890 than segments.
6891
6892 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6893
6894 * solib-svr4.c (struct lm_info): Add lm_addr.
6895 (main_lm_addr): New.
6896 (svr4_default_sos): Set lm_addr.
6897 (svr4_current_sos): Set lm_addr and main_lm_addr.
6898 (svr4_fetch_objfile_link_map): Rewrite.
6899 (svr4_clear_solib): Clear main_lm_addr.
6900
6901 2008-06-03 Michael Snyder <msnyder@redhat.com>
6902 Joseph Myers <joseph@codesourcery.com>
6903
6904 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6905 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6906
6907 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6908
6909 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6910
6911 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6912
6913 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6914
6915 2008-06-01 Joel Brobecker <brobecker@adacore.com>
6916
6917 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6918 treat pointers in data space as function descriptors if the
6919 target address is also in the data space.
6920
6921 2008-05-30 Joel Brobecker <brobecker@adacore.com>
6922
6923 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6924 the trad-frame register value for the SP register.
6925
6926 2008-05-29 Mark Kettenis <kettenis@gnu.org>
6927
6928 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6929
6930 2008-05-28 Joel Brobecker <brobecker@adacore.com>
6931
6932 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6933 that identifies function descriptors outside of the .opd section.
6934
6935 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6936
6937 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
6938 temporary catchpoints. In MI add missing fields 'reason', 'disp',
6939 'bkptno'.
6940 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6941 catchpoints.
6942 (handle_gnu_v3_exceptions): Use tempflag.
6943
6944 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6945
6946 Refactor varobj_update interface.
6947 * varobj.c (varobj_update): Report changes as vector. Also
6948 return not just a list of varobj, but a list of special structures
6949 that tell what exactly has changed.
6950 * varobj.h (enum varobj_update_error): Rename to
6951 varobj_scope_status.
6952 (struct varobj_update_result_t): New.
6953 (varobj_update): Adjust prototype.
6954 * mi/mi-cmd-var.c: Adjust for changes.
6955
6956 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6957
6958 * varobj.c (varobj_update): Fix comment typo.
6959 Fix indentation.
6960
6961 2008-05-26 Joel Brobecker <brobecker@adacore.com>
6962
6963 Set the symtab field of symbols read from ECOFF debugging entries.
6964 * mdebugread.c (add_symbol): Add new parameter symtab.
6965 (parse_symbol): Update calls to add_symbol throughout.
6966
6967 2008-05-27 Andreas Schwab <schwab@suse.de>
6968
6969 * symtab.h (enum address_class): Remove LOC_REGPARM and
6970 LOC_COMPUTED_ARG.
6971 (struct symbol): Add is_argument.
6972 (SYMBOL_IS_ARGUMENT): Define.
6973
6974 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6975 * buildsym.c (finish_block): Likewise.
6976 * stack.c (print_frame_args, print_block_frame_locals)
6977 (print_frame_arg_vars): Likewise.
6978 * symtab.c (lookup_block_symbol): Likewise.
6979 * tracepoint.c (add_local_symbols): Likewise.
6980 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6981
6982 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6983 * dwarf2read.c (new_symbol): Likewise.
6984 * mdebugread.c (parse_symbol): Likewise.
6985 * stabsread.c (define_symbol): Likewise.
6986
6987 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6988 and LOC_COMPUTED_ARG.
6989 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6990 * ax-gdb.c (gen_var_ref): Likewise.
6991 * eval.c (evaluate_subexp_for_address): Likewise.
6992 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6993 * m2-exp.y (yylex): Likewise.
6994 * printcmd.c (address_info): Likewise.
6995 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6996 * tracepoint.c (collect_symbol, scope_info): Likewise.
6997
6998 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6999
7000 * gdbarch.sh: Added new gdbarch struct
7001 core_regset_sections.
7002 * gdbarch.c: Refreshed.
7003 * gdbarch.h: Refreshed.
7004 * regset.h (core_regset_section): Declared.
7005 * linux-nat.c (linux_nat_do_thread_registers): Added
7006 support for the new gdbarch struct core_regset_sections.
7007 * utils.c (host_address_to_string): New function.
7008 * defs.h (host_address_to_string): New prototype.
7009 * i386-linux-tdep.c (i386_regset_rections): New register
7010 sections list for i386.
7011 (i386_linux_init_abi): Initialized new gdbarch struct
7012 core_regset_sections.
7013 * Makefile.in: Updated to reflect dependency changes.
7014 * ppc-linux-tdep.c (ppc_regset_sections): Register
7015 sections list for ppc.
7016 (ppc_linux_init_abi): Initialized new gdbarch struct
7017 core_regset_sections
7018
7019 2008-05-24 Andreas Schwab <schwab@suse.de>
7020
7021 * linespec.c (decode_objc): Save current language around call to
7022 get_selected_block.
7023
7024 2008-05-23 Joel Brobecker <brobecker@adacore.com>
7025
7026 * valprint.h (get_array_bounds): Renames get_array_low_bound.
7027 * valprint.c (get_array_bounds): Renames get_array_low_bound.
7028 Return the proper bound value if the array index type is an
7029 enumerated type. Compute the high bound if requested.
7030 (val_print_array_elements): Handle the case when the array
7031 element has a null size.
7032 * ada-valprint.c (print_optional_low_bound): Add handling
7033 for empty arrays or arrays of zero-size elements.
7034 (ada_val_print_array): New function, extracted out from
7035 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
7036 handle empty arrays and arrays of zero-size elements.
7037 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
7038 code by call to ada_val_print_array.
7039 (ada_value_print): Remove handling of null array. The handling
7040 was incomplete and is now better handled by ada_val_print_array.
7041
7042 2008-05-23 Markus Deuling <deuling@de.ibm.com>
7043
7044 * annotate.c (annotate_source, annotate_frame_begin): Replace
7045 deprecated_print_address_numeric with paddress.
7046 * cli/cli-cmds.c (list_command, edit_command): Likewise.
7047 * tui/tui-stack.c (tui_make_status_line): Likewise.
7048
7049 * defs.h (deprecated_print_address_numeric): Remove.
7050 * printcmd.c (deprecated_print_address_numeric): Remove.
7051 * maint.c (maint_print_section_info): Fix comment.
7052
7053 2008-05-23 Markus Deuling <deuling@de.ibm.com>
7054
7055 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
7056 print_binary_chars, print_char_chars): Add byte_order parameter and
7057 replace gdbarch_byte_order.
7058 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
7059 expressions and remove them. Remove unused TWO_TO_FOURTH.
7060 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
7061 endianness. Update call to print_hex_chars.
7062 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
7063 print_binary_chars, print_char_chars): Add byte_order parameter.
7064 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
7065 get at the endianness. Update print_*_char calls to use byte_order.
7066
7067 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7068
7069 * symtab.h (struct symbol): Make "aux_value" member a void pointer
7070 instead of a union.
7071 (SYMBOL_LOCATION_BATON): Update.
7072
7073 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7074
7075 * symtab.h (enum address_class): Remove LOC_BASEREG and
7076 LOC_BASEREG_ARG.
7077 (struct symbol): Remove "basereg" member of "aux_value" union.
7078 (SYMBOL_BASEREG): Remove.
7079
7080 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
7081 or LOC_BASEREG_ARG.
7082 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7083 (ada_add_block_symbols): Likewise.
7084 * ax-gdb.c (gen_var_ref): Likewise.
7085 * buildsym.c (finish_block): Likewise.
7086 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7087 * m2-exp.y (yylex): Likewise.
7088 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7089 * printcmd.c (address_info): Likewise.
7090 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
7091 (print_frame_arg_vars): Likewise.
7092 * symmisc.c (print_symbol): Likewise.
7093 * symtab.c (lookup_block_symbol): Likewise.
7094 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7095 (scope_info): Likewise.
7096
7097 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7098
7099 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
7100
7101 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
7102 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7103 (ada_add_block_symbols): Likewise.
7104 * ax-gdb.c (gen_var_ref): Likewise.
7105 * buildsyms.c (finish_block): Likewise.
7106 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7107 * m2-exp.y (yylex): Likewise.
7108 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7109 * printcmd.c (address_info): Likewise.
7110 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
7111 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7112 * symtab.c (lookup_block_symbol): Likewise.
7113 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7114 (scope_info): Likewise.
7115
7116 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7117
7118 * symtab.h (enum address_class): Remove LOC_INDIRECT and
7119 LOC_HP_THREAD_LOCAL_STATIC.
7120
7121 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
7122 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
7123 (read_var_value): Likewise.
7124 * buildsym.c (finish_block): Likewise.
7125 * objfiles.c (objfile_relocate): Likewise.
7126 * printcmd.c (address_info): Likewise.
7127 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7128 * tracepoint.c (scope_info): Likewise.
7129
7130 2008-05-21 Markus Deuling <deuling@de.ibm.com>
7131 Maxim Grigoriev <maxim2405@gmail.com>
7132
7133 * xtensa-tdep.c (xtensa_read_register): Remove.
7134 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
7135 argument litbase to call0_frame_cache().
7136 (call0_track_op, call0_analyze_prologue)
7137 (call0_frame_cache): Use extra argument litbase.
7138
7139 2008-05-21 Joel Brobecker <brobecker@adacore.com>
7140
7141 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
7142
7143 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7144
7145 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
7146
7147 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7148
7149 * alpha-mdebug-tdep.c: Include "trad-frame.h".
7150 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
7151 struct trad_frame_saved_reg *.
7152 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
7153 trad_frame_alloc_saved_regs. Update accesses. Record previous
7154 value of SP as being vfp.
7155 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
7156 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
7157
7158 2008-05-21 Markus Deuling <deuling@de.ibm.com>
7159
7160 * score-tdep.c (score_print_insn): Get the current endianess from
7161 disassemble_info instead of gdbarch_byte_order.
7162
7163 2008-05-21 Pedro Alves <pedro@codesourcery.com>
7164
7165 * frame.c (get_prev_frame_1): Build frame id before setting
7166 this_frame->prev_p, not after.
7167
7168 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
7169
7170 * annotate.c (annotate_new_thread): New function for new-thread
7171 annotation.
7172 * annotate.h: (annotate_new_thread): New extern.
7173 * thread.c (add_thread_with_info): Use it.
7174 * Makefile.in (thread.o): Add dependency on annotate.h.
7175
7176 2008-05-20 Joel Brobecker <brobecker@adacore.com>
7177
7178 * win32-nat.c (win32_wait): Block the control-c event while
7179 waiting for a debug event.
7180
7181 2008-05-19 Pedro Alves <pedro@codesourcery.com>
7182
7183 * symtab.h (lookup_symbol_in_language): Update comment.
7184 * symtab.c (lookup_symbol_aux_block): Update comment.
7185 * ada-lang.c (ada_lookup_symbol_list): Update comment.
7186
7187 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7188
7189 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
7190 (lookup_symbol): Likewise.
7191 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
7192 (lookup_symbol): Likewise.
7193 (search_symbols): Update.
7194
7195 * linespec.c (find_methods, collect_methods): Update.
7196 (add_matching_methods, add_constructors): Update.
7197 (decode_compound, decode_dollar, decode_variable): Update.
7198 (lookup_prefix_sym): Update.
7199
7200 (symbol_found): Remove SYM_SYMTAB parameter.
7201 Use SYMBOL_SYMTAB (sym) instead.
7202
7203 * gdbtypes.c (lookup_typename): Update.
7204 (lookup_struct, lookup_union, lookup_enum): Update.
7205 (lookup_template_type): Update.
7206 (check_typedef): Update.
7207 * language.c (lang_bool_type): Update.
7208 * mdebugread.c (parse_procedure): Update.
7209 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7210 * parse.c (write_dollar_variable): Update.
7211 * printcmd.c (address_info): Update.
7212 * source.c (select_source_symtab): Update.
7213 * stack.c (print_frame_args, print_frame_arg_vars): Update.
7214 * valops.c (find_function_in_inferior): Update.
7215 (value_struct_elt_for_reference): Update.
7216 * value.c (value_static_field, value_fn_field): Update.
7217
7218 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7219 * arm-tdep.c (arm_skip_prologue): Update.
7220 * mt-tdep.c (mt_skip_prologue): Update.
7221 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
7222
7223 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
7224 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
7225 (add_defn_to_vec): Likewise.
7226 (ada_add_block_symbols): Likewise.
7227 (lookup_cached_symbol, cache_symbol): Likewise.
7228 (standard_lookup): Update.
7229 (ada_lookup_symbol_list): Update.
7230
7231 * c-valprint.c (c_val_print): Update.
7232 * cp-support.c (cp_lookup_rtti_type): Update.
7233 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
7234 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
7235 * p-valprint.c (pascal_val_print): Update.
7236 * scm-lang.c (scm_lookup_name): Update.
7237
7238 * c-exp.y: Update.
7239 * f-exp.y: Update.
7240 * jv-exp.y: Update.
7241 * m2-exp.y: Update.
7242 * objc-exp.y: Update.
7243 * p-exp.y: Update.
7244
7245 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7246
7247 * language.h (struct language_defn): Remove SYMTAB parameter from
7248 la_lookup_symbol_nonlocal callback function pointer.
7249
7250 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7251 (ada_lookup_encoded_symbol): Likewise.
7252 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7253 Always call fixup_symbol_section.
7254 (ada_lookup_symbol): Remove SYMTAB parameter.
7255 (ada_lookup_symbol_nonlocal): Likewise.
7256 * ada-exp.y (write_object_renaming): Update.
7257 (find_primitive_type): Likewise.
7258
7259 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7260 (cp_lookup_symbol_namespace): Likewise.
7261 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
7262 (lookup_symbol_file): Likewise.
7263 (lookup_possible_namespace_symbol): Likewise.
7264 (cp_lookup_symbol_nonlocal): Likewise.
7265 (cp_lookup_symbol_namespace): Likewise.
7266 (cp_lookup_nested_type): Update.
7267
7268 * scm-valprint.c (scm_inferior_print): Update.
7269 * valops.c (value_maybe_namespace_elt): Update.
7270
7271 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
7272 lookup_lib_global_symbol callback function pointer.
7273 (solib_global_lookup): Remove SYMTAB parameter.
7274 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
7275 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7276
7277 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7278 (lookup_symbol_static): Likewise.
7279 (lookup_symbol_global): Likewise.
7280 (lookup_symbol_aux_block): Likewise.
7281 (lookup_global_symbol_from_objfile): Likewise.
7282 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
7283 (lookup_symbol_aux_local): Likewise.
7284 (lookup_symbol_aux_block): Likewise.
7285 (lookup_symbol_aux_symtabs): Likewise.
7286 (lookup_symbol_aux_psymtabs): Likewise.
7287 (lookup_global_symbol_from_objfile): Likewise.
7288 (basic_lookup_symbol_nonlocal): Likewise.
7289 (lookup_symbol_static): Likewise.
7290 (lookup_symbol_global): Likewise.
7291
7292 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
7293
7294 2008-05-17 Pedro Alves <pedro@codesourcery.com>
7295
7296 * remote.c (init_extended_remote_ops): Fix typo.
7297
7298 2008-05-16 Pedro Alves <pedro@codesourcery.com>
7299
7300 * NEWS: Mention new DICOS x86 target configuration.
7301
7302 2008-05-16 Pedro Alves <pedro@codesourcery.com>
7303 Ulrich Weigand <uweigand@de.ibm.com>
7304
7305 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
7306 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
7307
7308 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
7309 use it instead of ginfo->value.address. Look up minimal symbol by
7310 address and name. Assume OBJFILE is non-NULL.
7311 (fixup_symbol_section): Ensure we always have an objfile to look
7312 into. Extract and pass to fixup_section the symbol's address that
7313 will match the minimal symbol's address.
7314 (fixup_psymbol_section): Likewise.
7315
7316 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
7317 overlays and the addrmap returned the wrong section.
7318
7319 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
7320 calling fixup_symbol_section.
7321
7322 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7323
7324 * minsyms.c: Include "target.h".
7325 (find_solib_trampoline_target): Handle minimal symbols pointing
7326 to function descriptors as well.
7327 * Makefile.in (minsyms.o): Update dependencies.
7328
7329 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
7330 (ppc64_standard_linkage1): ... this. Fix optional instructions.
7331 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
7332 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
7333 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
7334 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
7335 (ppc64_standard_linkage_target): Rename to ...
7336 (ppc64_standard_linkage1_target): ... this.
7337 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
7338 (ppc64_skip_trampoline_code): Support three variants of standard
7339 linkage stubs. Call find_solib_trampoline_target to handle
7340 glink stubs.
7341
7342 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7343
7344 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
7345 ppc64_sysv_abi_adjust_breakpoint_address.
7346 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7347 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7348
7349 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7350
7351 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
7352 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
7353 of ppc_linux_skip_trampoline_code.
7354
7355 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
7356
7357 * gdbarch.sh: Delete dwarf_reg_to_regnum.
7358 * gdbarch.c, gdbarch.h: Regenerated.
7359 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
7360 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
7361 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
7362
7363 2008-05-15 Pedro Alves <pedro@codesourcery.com>
7364
7365 * linux-nat.c (trap_ptid): Delete.
7366 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
7367 Adjust.
7368 * linux-thread-db.c (thread_db_wait): Adjust.
7369
7370 2008-05-15 Joel Brobecker <brobecker@adacore.com>
7371
7372 * linespec.c (decode_line_1): Fix a couple of comments.
7373
7374 2008-05-15 Alan Modra <amodra@bigpond.net.au>
7375
7376 * dbxread.c: Formatting.
7377 (INTERNALIZE_SYMBOL): Init n_other.
7378 (set_namestring): Take pointer to nlist arg rather than struct
7379 copy. Update all callers.
7380
7381 2008-05-15 Andreas Schwab <schwab@suse.de>
7382
7383 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7384 (dwarf2read.o): Add $(addrmap_h).
7385
7386 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7387
7388 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7389 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7390 to handle ppc32 PLT entries.
7391 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7392 only on ppc64.
7393
7394 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7395
7396 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7397 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7398 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7399 (lookup_minimal_symbol_by_pc_section): Use
7400 lookup_minimal_symbol_by_pc_section_1.
7401 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7402
7403 2008-05-13 Joel Brobecker <brobecker@adacore.com>
7404
7405 * findcmd.c: Add #include "gdb_stdint.h".
7406 * Makefile.in (findcmd.o): Update dependencies.
7407
7408 2008-05-11 David S. Miller <davem@davemloft.net>
7409
7410 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7411 long double size override, Linux does use 128-bit now.
7412
7413 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7414 (sparc_linux_write_pc): New function.
7415 (sparc32_linux_init_abi): Register it.
7416 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7417 (sparc64_linux_write_pc): New function.
7418 (sparc64_linux_init_abi): Register it.
7419
7420 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7421 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7422
7423 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7424
7425 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7426 and info.tdep_info before calling gdbarch_init_osabi.
7427
7428 2008-05-09 Joel Brobecker <brobecker@adacore.com>
7429
7430 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7431 the type of the right hand side of the assignment to the type
7432 of the left hand side if the left hand side is a convenience
7433 variable.
7434
7435 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7436
7437 * NEWS: Mention gdbserver bi-arch capability.
7438
7439 2008-05-09 Doug Evans <dje@google.com>
7440
7441 New "find" command.
7442 * NEWS: Document find command and qSearch:memory packet.
7443 * Makefile.in (SFILES): Add findcmd.c.
7444 (COMMON_OBJS): Add findcmd.o.
7445 (findcmd.o): New rule.
7446 * findcmd.c: New file.
7447 * target.h (target_ops): New member to_search_memory.
7448 (simple_search_memory): Declare.
7449 (target_search_memory): Declare.
7450 * target.c (simple_search_memory): New fn.
7451 (target_search_memory): New fn.
7452 * remote.c (PACKET_qSearch_memory): New packet kind.
7453 (remote_search_memory): New fn.
7454 (init_remote_ops): Init to_search_memory.
7455 (init_extended_remote_ops): Ditto.
7456 (_initialize_remote): Add qSearch:memory packet config command.
7457
7458 2008-05-09 Eli Zaretskii <eliz@gnu.org>
7459
7460 * thread.c (_initialize_thread): Don't use commas and periods in
7461 first line of doc string of "set/show print thread-events".
7462
7463 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7464
7465 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7466 Update for unwinder changes.
7467
7468 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7469
7470 * frame.c (get_frame_base_address, get_frame_locals_address)
7471 (get_frame_args_address): Pass the correct frame when calling
7472 frame_base_find_by_frame.
7473
7474 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7475
7476 * remote.c (extended_remote_attach_1): Call target_find_description.
7477
7478 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7479
7480 * remote.c (extended_remote_create_inferior_1): Clean up
7481 before marking the target running.
7482
7483 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7484
7485 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7486 changes.
7487
7488 2008-05-07 Joel Brobecker <brobecker@adacore.com>
7489
7490 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7491 sparc64-sol2-tdep.c: Update for unwinder changes.
7492
7493 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7494
7495 * cp-support.c (mangled_name_to_comp): Initialize storage.
7496 (unqualified_name_from_comp): Likewise.
7497
7498 2008-05-07 Jie Zhang <jie.zhang@analog.com>
7499
7500 * remote.c (remote_insert_breakpoint): Call get_remote_state
7501 after gdbarch_breakpoint_from_pc is called.
7502 (remote_insert_hw_breakpoint): Likewise.
7503
7504 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7505
7506 * valprint.c (val_print): Add new language parameter and use it
7507 instead of using the current_language. Update calls to val_print
7508 throughout.
7509 (common_val_print): Add new langauge parameter and pass it to
7510 val_print.
7511 * value.h (struct language_defn): Add opaque declaration.
7512 (val_print, common_val_print): Update declarations.
7513 * stack.c (print_frame_args): Update call to common_val_print
7514 using the appropriate language.
7515 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7516 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7517 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7518 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7519 #include "language.h" if necessary.
7520 Update calls to val_print and common_val_print.
7521 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7522 Update dependencies.
7523
7524 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7525
7526 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7527 pointing inside a non-executable section as function descriptors.
7528
7529 2008-05-06 Pedro Alves <pedro@codesourcery.com>
7530
7531 * inf-loop.c (inferior_event_handler): Run all continuations and
7532 print any language change before running the breakpoint commands.
7533
7534 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7535
7536 * frame-unwind.c (frame_unwind_got_bytes): New function.
7537 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7538 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7539 for unwinder changes.
7540
7541 2008-05-05 Doug Evans <dje@google.com>
7542
7543 * NEWS: Mention new /m modifier for disassemble command.
7544 * cli/cli-cmds.c (print_disassembly): New function.
7545 (disassemble_current_function): New function
7546 (disassemble_command): Recognize /m modifier, print mixed
7547 source+assembly.
7548 (init_cli_cmds): Update disassemble help text.
7549
7550 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7551
7552 * xtensa-tdep.c: Update for unwinder changes.
7553
7554 2008-05-05 Andreas Schwab <schwab@suse.de>
7555
7556 Update m68k port for unwinder changes.
7557 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7558 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7559 (m68k_frame_unwind): Use default_frame_sniffer.
7560 (m68k_frame_sniffer): Remove.
7561 (m68k_frame_base_address): Expect this_frame.
7562 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7563 this_frame.
7564 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7565 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7566 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7567 parameter instead of pc value.
7568 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7569 Expect this_frame.
7570 (m68k_linux_sigtramp_frame_this_id)
7571 (m68k_linux_sigtramp_frame_prev_register)
7572 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7573 (m68k_linux_sigtramp_frame_unwind): Use
7574 m68k_linux_sigtramp_frame_sniffer.
7575 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7576
7577 * m68klinux-nat.c (store_register): Fix typo.
7578
7579 2008-05-05 Pedro Alves <pedro@codesourcery.com>
7580
7581 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7582 NULL dereferencing.
7583
7584 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
7585
7586 * symfile.c (reread_symbols): Update objfile's entry point.
7587
7588 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7589 Joel Brobecker <brobecker@adacore.com>
7590
7591 * ada-lang.c: Update throughout to use symbol_matches_domain
7592 instead of matching the symbol domain explictly.
7593 * dwarf2read.c (add_partial_symbol): Do not add new psym for
7594 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
7595 class as typedefs. See lookup_partial_symbol function.
7596 (new_symbol): Similar to add_partial_symbol, do not create
7597 symbol for the typedef. See lookup_block_symbol.
7598 * symtab.c (symbol_matches_domain): New function, takes care
7599 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7600 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7601 found psym domain matches the given domain.
7602 (lookup_block_symbol): Likewise.
7603
7604 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7605
7606 * top.c (command_line_handler_continuation): Remove.
7607 (execute_command): Do not install the above.
7608
7609 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7610
7611 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7612 and catch all exceptions from it.
7613 * top.c (command_line_handler_continuation): Don't
7614 call bpstat_do_action here.
7615
7616 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7617
7618 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7619 (struct die_info): Remove type.
7620 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7621 (read_structure_type, read_enumeration_type, read_array_type)
7622 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7623 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7624 (read_tag_string_type, read_subroutine_type, read_set_type)
7625 (read_unspecified_type): Delete prototypes. Remove check for
7626 already-loaded type. Return the new type.
7627 (set_die_type): Return the new type.
7628 (reset_die_and_siblings_types): Delete.
7629 (load_comp_unit, load_full_comp_unit): Set type_hash.
7630 (process_queue): Remove call to reset_die_and_siblings_types.
7631 (process_die): Do not read most types here. Use read_type_die
7632 for others.
7633 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7634 (quirk_gcc_member_function_pointer): Return the new type.
7635 (process_structure_scope, process_enumeration_scope): Use
7636 get_die_type and read the DIE's type.
7637 (read_full_die): Do not initialize die->type.
7638 (tag_type_to_type): Use read_type_die.
7639 (read_type_die): Check for already defined types. Return the
7640 type.
7641 (determine_prefix): Use get_die_type.
7642 (set_die_type): Return the type.
7643 (get_die_type): Take a CU argument. Check for no type_hash.
7644
7645 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7646
7647 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7648 locals.
7649
7650 2008-05-04 Pedro Alves <pedro@codesourcery.com>
7651
7652 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7653 and bp_longjmp_resume breakpoints.
7654 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7655 meaningful.
7656 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7657 breakpoints. Create bp_longjmp breakpoints as momentary
7658 breakpoints.
7659 (enable_longjmp_breakpoint): Delete.
7660 (set_longjmp_breakpoint): New.
7661 (disable_longjmp_breakpoint): Delete.
7662 (delete_longjmp_breakpoint): New.
7663 (set_longjmp_resume_breakpoint): Delete.
7664 (set_momentary_breakpoint_at_pc): New.
7665 (breakpoint_re_set_one): Don't delete bp_longjmp and
7666 bp_longjmp_resume breakpoints.
7667 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7668 breakpoints.
7669
7670 * infrun.c (step_resume_breakpoint): Add comment.
7671 (struct execution_control_state): Delete handling_longjmp member.
7672 (init_execution_control_state). Don't clear handling_longjmp.
7673 (context_switch): Don't context switch handling_longjmp.
7674 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7675 create a bp_longjmp_resume breakpoint, and set it as current
7676 step_resume_breakpoint, then step over the longjmp breakpoint. If
7677 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7678 breakpoint, delete the longjmp-resume breakpoint, and stop
7679 stepping.
7680 (currently_stepping): Remove handling_longjmp from expression.
7681 (insert_step_resume_breakpoint_at_sal): Update comment.
7682 (insert_longjmp_resume_breakpoint): New.
7683
7684 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7685 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7686 declarations.
7687 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7688 (set_longjmp_resume_breakpoint): Delete declaration.
7689
7690 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7691 parameter.
7692 (load_infrun_state): Delete *handling_longjmp parameter.
7693 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7694 Update body.
7695 (load_infrun_state): Delete *handling_longjmp parameter. Update
7696 body.
7697
7698 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7699 (delete_longjmp_breakpoint_cleanup): New.
7700 (step_1): Call set_longjmp_breakpoint instead of
7701 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7702 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7703 (step_1_continuation): Pass thread id in the continuation args to
7704 step_once.
7705 (step_once): Add thread parameter. Pass thread id the the
7706 continuation.
7707
7708 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7709
7710 Set CU BASE_ADDRESS already from partial DIEs.
7711 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7712 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7713 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7714 from these variables if it was still unset.
7715
7716 * Makefile.in: Update dependencies.
7717 * dwarf2read.c: Include "addrmap.h"
7718 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7719 (dwarf2_ranges_read): New prototype.
7720 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7721 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7722 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7723 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7724 comment for it. Add the found ranges to RANGES_PST. New variable
7725 BASEADDR, initialize it the common way.
7726 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7727 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7728 HAS_RANGES_OFFSET for the later processing.
7729 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7730 * symtab.c: Include "addrmap.h"
7731 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7732 Move the psymtab locator into ...
7733 (find_pc_sect_psymtab_closer): ... a new function.
7734
7735 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7736
7737 * arch-utils.c (gdbarch_update_p): Use default values for
7738 info.abfd and info.target_desc if they are NULL.
7739 (gdbarch_from_bfd): Remove assertion.
7740 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7741 using the current target description.
7742 (gdbarch_info_fill): Do not use default values for info->abfd
7743 and info->target_desc.
7744
7745 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7748
7749 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7750
7751 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7752 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7753
7754 * regcache.c (read_pc_pid): Remove, replace by ...
7755 (regcache_read_pc): ... this function.
7756 (write_pc_pid): Remove, replace by ...
7757 (regcache_write_pc): ... this function.
7758 (read_pc, write_pc): Update.
7759
7760 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7761 write_pc_pid by regcache_read_pc and regcache_write_pc.
7762 (displaced_step_fixup): Likewise.
7763 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7764 (prepare_to_proceed): Likewise.
7765 (proceed): Likewise.
7766 (adjust_pc_after_break): Likewise.
7767 (handle_inferior_event): Likewise.
7768
7769 * linux-nat.c (cancel_breakpoint): Likewise.
7770 * linux-thread-db.c (check_event): Likewise.
7771 * aix-thread.c (aix_thread_wait): Likewise.
7772 * tracepoint.c (trace_dump_command): Likewise.
7773
7774 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7775
7776 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7777 SYMBOL_LOCATION_BATON.
7778
7779 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7780
7781 * target.h (struct target_ops): New field to_auxv_parse.
7782 * auxv.c (default_auxv_parse): New, renamed from previous
7783 target_auxv_parse.
7784 (target_auxv_parse): Try to call target method. Fallback to
7785 default_auxv_parse if not found.
7786 * procfs.c (procfs_auxv_parse): New.
7787 (init_procfs_ops): On Solaris, in 64-bit mode, install
7788 procfs_auxv_parse.
7789
7790 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7791
7792 * symfile.c (add_symbol_file_command): Use paddress rather than
7793 hex_string to print the address.
7794
7795 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7796
7797 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7798 return the null frame ID to terminate the backtrace.
7799
7800 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7801
7802 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7803 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7804 (SIG_FRAME_PC_OFFSET): Likewise.
7805 (SIG_FRAME_LR_OFFSET): Likewise.
7806 (SIG_FRAME_FP_OFFSET): Likewise.
7807 (rs6000_push_dummy_call): Likewise.
7808 (rs6000_return_value): Likewise.
7809 (rs6000_convert_from_func_ptr_addr): Likewise.
7810 (branch_dest, rs6000_software_single_step): Likewise.
7811 (deal_with_atomic_sequence): Rename to ...
7812 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7813 Do not call branch_dest; inline required parts of that function.
7814 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7815 with SYMBOL_LINKAGE_NAME.
7816 (struct reg, regsize): Delete.
7817 (read_memory_addr): Delete; inline into callers.
7818 (rs6000_skip_prologue): Move after skip_prologue.
7819 (skip_prologue): Remove prototype.
7820 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7821 initialization as if this variable were true. Do not install
7822 ppc64_sysv_abi_adjust_breakpoint_address.
7823
7824 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7825 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7826 and "breakpoint.h".
7827 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7828 (SIG_FRAME_PC_OFFSET): Likewise.
7829 (SIG_FRAME_LR_OFFSET): Likewise.
7830 (SIG_FRAME_FP_OFFSET): Likewise.
7831 (rs6000_push_dummy_call): Likewise.
7832 (rs6000_return_value): Likewise.
7833 (rs6000_convert_from_func_ptr_addr): Likewise.
7834 (branch_dest, rs6000_software_single_step): Likewise. Replace
7835 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7836 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7837 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7838 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7839 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7840
7841 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7842 (AIX_TEXT_SEGMENT_BASE): New macro.
7843 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7844 by AIX_TEXT_SEGMENT_BASE.
7845
7846 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7847 (struct gdbarch_tdep): Remove text_segment_base member.
7848 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7849 ppc64_sysv_abi_adjust_breakpoint_address.
7850
7851 * Makefile.in (rs6000-tdep.o): Update dependencies.
7852 (rs6000-aix-tdep.o): Likewise.
7853
7854 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
7855 Thiago Jung Bauermann <bauerman@br.ibm.com>
7856
7857 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7858 * doublest.c (convert_typed_floating): Fix typo in comment.
7859 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7860 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7861 * frame.c (frame_unwind_address_in_block): Likewise.
7862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7863 * symtab.h (struct symbol): Likewise.
7864 * tramp-frame.h (struct trad_frame_cache): Likewise.
7865 * value.c (allocate_repeat_value): Likewise.
7866
7867 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7868
7869 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7870 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7871
7872 2008-05-03 Pedro Alves <pedro@codesourcery.com>
7873
7874 * parse.c (parse_exp_in_context): Don't override
7875 expression_context_pc if get_selected_block returned a valid
7876 block.
7877
7878 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7879
7880 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7881 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7882 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7883 Delete.
7884 * c-typeprint.c (c_type_print_base): Delete handling of template
7885 instantiations.
7886 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7887 (METHOD_PTR_TO_VOFFSET): Delete.
7888 * defs.h (QUIT_FIXME): Delete.
7889 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7890 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7891 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7892 ninstantiations, and instantiations.
7893 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7894 (TYPE_FN_FIELD_INLINED): Delete.
7895 * srec.h (SREC_BINARY): Delete.
7896 * symtab.c (symbol_init_demangled_name): Delete.
7897 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7898 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7899 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7900 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7901 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7902 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7903 * target.h (enum thread_control_capabilities): Delete tc_switch.
7904 (target_can_switch_threads): Delete.
7905
7906 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7907
7908 * Makefile.in (objfiles.o): Update.
7909 * exec.c (exec_set_section_address): Support p->addr != 0.
7910 * objfiles.c (objfile_relocate): Update exec_ops section
7911 addresses.
7912 * symfile.c (place_section): Move exec_set_section_address call...
7913 (default_symfile_offsets): ...to here.
7914
7915 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7916
7917 * Makefile.in (ppc_linux_tdep_h): New macro.
7918 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7919 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7920 (powerpc_e500l_c): Likewise.
7921 (ppc-linux-nat.o): Update dependencies.
7922 (ppc-linux-tdep.o): Update dependencies.
7923 (rs6000-tdep.o): Update dependencies.
7924
7925 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7926 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7927 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7928 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7929 (tdesc_powerpc_e500): Remove.
7930
7931 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7932 and "features/rs6000/powerpc-altivec64.c".
7933 (ppc_supply_reg, ppc_collect_reg): Make global.
7934 (variants): Use tdesc_powerpc_32 for "powerpc" and
7935 tdesc_powerpc_altivec64 for "powerpc64".
7936 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7937
7938 * ppc-linux-tdep.h: New file.
7939
7940 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7941 Include "features/rs6000/powerpc-32l.c".
7942 Include "features/rs6000/powerpc-altivec32l.c".
7943 Include "features/rs6000/powerpc-64l.c".
7944 Include "features/rs6000/powerpc-altivec64l.c".
7945 Include "features/rs6000/powerpc-e500l.c".
7946 (ppc_linux_supply_gregset): New function.
7947 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7948 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7949 (ppc64_linux_gregset): Likewise.
7950 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7951 (ppc_linux_trap_reg_p): New function.
7952 (ppc_linux_write_pc): New function.
7953 (ppc_linux_core_read_description): New function.
7954 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7955 ppc_linux_core_read_description. Install orig_r3 and trap
7956 registers if present in the target description.
7957 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7958
7959 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7960 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7961 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7962 (fetch_ppc_registers): Likewise.
7963 (store_ppc_registers): Likewise.
7964 (store_register): Likewise.
7965 (ppc_linux_read_description): Check whether AltiVec is supported.
7966 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7967 Linux target description.
7968
7969 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7970 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7971 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7972 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7973 rs6000/powerpc-e500. Update -expedite variables accordingly.
7974
7975 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7976 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7977 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7978 * features/rs6000/powerpc-e500.c: Regenerate.
7979 * features/rs6000/powerpc-32.c: Regenerate.
7980 * features/rs6000/powerpc-64.c: Regenerate.
7981
7982 * features/rs6000/power-linux.xml: New file.
7983 * features/rs6000/power64-linux.xml: New file.
7984 * features/rs6000/powerpc-32l.xml: New file.
7985 * features/rs6000/powerpc-altivec32l.xml: New file.
7986 * features/rs6000/powerpc-64l.xml: New file.
7987 * features/rs6000/powerpc-altivec64l.xml: New file.
7988 * features/rs6000/powerpc-e500l.xml: New file.
7989 * features/rs6000/powerpc-32l.c: New (generated) file.
7990 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7991 * features/rs6000/powerpc-64l.c: New (generated) file.
7992 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7993 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7994
7995 * regformats/reg-ppc.dat: Remove.
7996 * regformats/reg-ppc64.dat: Remove.
7997 * regformats/rs6000/powerpc-32.dat: Remove.
7998 * regformats/rs6000/powerpc-64.dat: Remove.
7999 * regformats/rs6000/powerpc-e500.dat: Remove.
8000 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
8001 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
8002 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
8003 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
8004 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
8005
8006 2008-05-03 Pedro Alves <pedro@codesourcery.com>
8007
8008 * thread.c (delete_thread): Call observer_notify_thread_exit.
8009 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
8010 thread_exit observer.
8011 (mi_thread_exit): New.
8012
8013 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8014
8015 * breakpoint.c (create_exception_catchpoint): Remove prototype
8016 for already deleted function.
8017 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
8018 * frame.h (show_stack_frame): Remove prototype.
8019 * stack.c (show_stack_frame): Remove empty, unused function.
8020 * source.c (symtab_to_fullname, print_source_lines): Small fix
8021 in comment.
8022 * value.c (show_values): Update comments to mention "show values"
8023 command instead of "info history".
8024
8025 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
8026
8027 * linespec.c: Include "target.h".
8028 (minsym_found): Handle minimal symbols pointing to function
8029 descriptors. Use find_function_start_pc.
8030 * minsyms.c (msymbol_objfile): New function.
8031 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
8032 to function descriptors.
8033 * symtab.c (fixup_section): Only use minimal symbol at the same
8034 address to determine section of a symbol.
8035 (find_function_start_pc): New function.
8036 (find_function_start_sal): Use it.
8037 * symtab.h (msymbol_objfile): Add prototype.
8038 (find_function_start_pc): Likewise.
8039 * value.c: Include "objfiles.h".
8040 (value_fn_field): Handle minimal symbols pointing to function
8041 descriptors.
8042 * Makefile.in (linespec.o): Update dependencies.
8043 (value.o): Likewise.
8044
8045 2008-05-02 Joel Brobecker <brobecker@adacore.com>
8046
8047 * ada-lang.c (unwrap_value): Handle the case where the "F" field
8048 inside a PAD type is a bitfield.
8049
8050 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
8051
8052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
8053 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
8054 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
8055 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
8056 Allow typedefs when checking for function pointer arguments.
8057 Right-align small structs passed on the stack.
8058 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
8059 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
8060 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
8061
8062 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8063
8064 * Makefile.in (arm-tdep.o): Update.
8065 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
8066 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
8067 (arm_pc_is_thumb): Use mapping symbols.
8068 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
8069 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
8070 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
8071 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
8072 * gdbarch.sh: Add record_special_symbol.
8073 * gdbarch.c, gdbarch.h: Regenerated.
8074 * objfiles.c (struct objfile_data): Add cleanup member.
8075 (register_objfile_data_with_cleanup): New function, from
8076 register_objfile_data.
8077 (register_objfile_data): Use it.
8078 (objfile_free_data): Call clear_objfile_data.
8079 (clear_objfile_data): Call cleanup functions.
8080 * objfiles.h (register_objfile_data_with_cleanup): Declare.
8081
8082 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8083
8084 * objfiles.c (init_entry_point_info): Handle shared libraries.
8085
8086 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8087
8088 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
8089 lowest_pc.
8090
8091 2008-05-02 Jim Blandy <jimb@codesourcery.com>
8092 Pedro Alves <pedro@codesourcery.com>
8093
8094 Implement displaced stepping.
8095
8096 * gdbarch.sh (max_insn_length): New 'variable'.
8097 (displaced_step_copy, displaced_step_fixup)
8098 (displaced_step_free_closure, displaced_step_location): New
8099 functions.
8100 (struct displaced_step_closure): Add forward declaration.
8101 * gdbarch.c, gdbarch.h: Regenerated.
8102
8103 * arch-utils.c: #include "objfiles.h".
8104 (simple_displaced_step_copy_insn)
8105 (simple_displaced_step_free_closure)
8106 (displaced_step_at_entry_point): New functions.
8107 * arch-utils.h (simple_displaced_step_copy_insn)
8108 (simple_displaced_step_free_closure)
8109 (displaced_step_at_entry_point): New prototypes.
8110
8111 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
8112 (I386_MAX_MATCHED_INSN_LEN): ... this.
8113 (i386_absolute_jmp_p, i386_absolute_call_p)
8114 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
8115 (i386_displaced_step_fixup): New functions.
8116 (struct i386_insn, i386_match_insn): Update.
8117 (i386_gdbarch_init): Set gdbarch_max_insn_length.
8118 * i386-tdep.h (I386_MAX_INSN_LEN): New.
8119 (i386_displaced_step_fixup): New prototype.
8120 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
8121 Register gdbarch_displaced_step_copy,
8122 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
8123 and gdbarch_displaced_step_location functions.
8124
8125 * infrun.c (debug_displaced): New variable.
8126 (show_debug_displaced): New function.
8127 (struct displaced_step_request): New struct.
8128 (displaced_step_request_queue, displaced_step_ptid)
8129 (displaced_step_gdbarch, displaced_step_closure)
8130 (displaced_step_original, displaced_step_copy)
8131 (displaced_step_saved_copy, can_use_displaced_stepping): New
8132 variables.
8133 (show_can_use_displaced_stepping, use_displaced_stepping)
8134 (displaced_step_clear, cleanup_displaced_step_closure)
8135 (displaced_step_dump_bytes, displaced_step_prepare)
8136 (displaced_step_clear_cleanup, write_memory_ptid)
8137 (displaced_step_fixup): New functions.
8138 (resume): Call displaced_step_prepare.
8139 (proceed): Call read_pc once, and remember the value. If using
8140 displaced stepping, don't remove breakpoints.
8141 (handle_inferior_event): Call displaced_step_fixup. Add some
8142 debugging output. When we try to step over a breakpoint, but get
8143 a signal to deliver to the thread instead, ensure the step-resume
8144 breakpoint is actually inserted. If a thread hop is needed, and
8145 displaced stepping is enabled, don't remove breakpoints.
8146 (init_wait_for_inferior): Call displaced_step_clear.
8147 (_initialize_infrun): Add "set debug displaced" command. Add
8148 "maint set can-use-displaced-stepping" command. Clear
8149 displaced_step_ptid.
8150 * inferior.h (debug_displaced): Declare variable.
8151 (displaced_step_dump_bytes): Declare function.
8152
8153 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
8154 dependencies.
8155
8156 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8157
8158 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
8159 (arm_force_mode_string, arm_show_fallback_mode)
8160 (arm_show_force_mode): New.
8161 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
8162 arm_frame_is_thumb.
8163 (_initialize_arm_tdep): Add "set arm fallback-mode"
8164 and "set arm force-mode".
8165 * NEWS: Document new commands.
8166
8167 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
8168
8169 * main.h (batch_silent): Declare.
8170 * event-top.c: Include main.h.
8171 (gdb_setup_readline): Remove extern batch_silent declaration.
8172 * infrun.c (normal_stop): Don't print source location when running in
8173 --batch-silent mode.
8174 * Makefile.in (event-top.o): Add main.h dependency.
8175
8176 2008-05-02 Andreas Schwab <schwab@suse.de>
8177
8178 * target.h (struct target_ops): Add
8179 to_watchpoint_addr_within_range.
8180 (target_watchpoint_addr_within_range): New function.
8181 * target.c (update_current_target): Inherit
8182 to_watchpoint_addr_within_range, defaulting to
8183 default_watchpoint_addr_within_range.
8184 (default_watchpoint_addr_within_range): New function.
8185 (debug_to_watchpoint_addr_within_range): New function.
8186 (setup_target_debug): Set to_watchpoint_addr_within_range.
8187 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
8188 New function.
8189 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
8190 * breakpoint.c (watchpoints_triggered): Use
8191 target_watchpoint_addr_within_range.
8192
8193 2008-05-01 Pedro Alves <pedro@codesourcery.com>
8194
8195 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
8196 (i[34567]86-*-dicos*, x86_64-*-dicos*):
8197 Set gdb_osabi to GDB_OSABI_DICOS.
8198
8199 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
8200 * osabi.c (gdb_osabi_name): Add "DICOS".
8201
8202 * i386-dicos-tdep.c: New file.
8203
8204 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
8205 (ALLDEPFILES): Add i386-dicos-tdep.c.
8206 (i386-dicos-tdep.o): New rule.
8207
8208 2008-05-01 Pedro Alves <pedro@codesourcery.com>
8209
8210 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
8211 and register the fork's PTID as a thread.
8212
8213 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8214
8215 PR gdb/1665
8216 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
8217 assign its value to the breakpoint created.
8218 (create_breakpoints): Add breakpoint_ops argument and pass it
8219 to create_breakpoint call.
8220 (break_command_really): Add breakpoint_ops argument and pass/assign
8221 appropriately.
8222 (break_command_1): Pass NULL as ops argument.
8223 (set_breakpoint): Pass NULL as ops argument.
8224 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
8225 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
8226 catch and throw catchpoints.
8227
8228 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8229
8230 PR gdb/2343
8231 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
8232 translate signal numeric value from the target to GDB's enum
8233 target_signal.
8234 * gdbarch.c, gdbarch.h: Regenerated.
8235 * gdbarch.sh: Added two new functions target_signal_from_host and
8236 target_signal_to_host.
8237 * target.h (default_target_signal_from_host,
8238 default_target_signal_to_host): New functions - declarations.
8239 * signals/signals.c (struct gdbarch): New declaration.
8240 (default_target_signal_to_host, default_target_signal_from_host): New
8241 functions.
8242
8243 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8244 Pedro Alves <pedro@codesourcery.com>
8245
8246 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
8247 Johnston <jjohnstn@redhat.com>.
8248
8249 * NEWS: Mention attach to stopped process fix.
8250 * infcmd.c (detach_command, disconnect_command): Discard the thread
8251 list.
8252 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
8253 attaching. Use signal_stop_state.
8254 (signal_stop_state): Check stop_soon.
8255 * linux-nat.c (kill_lwp): Declare earlier.
8256 (pid_is_stopped, linux_nat_post_attach_wait): New.
8257 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
8258 comments.
8259 (linux_nat_attach): Use linux_nat_post_attach_wait.
8260 (detach_callback, linux_nat_detach): Improve handling for signalled
8261 processes.
8262 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
8263 from the process ID.
8264 * Makefile.in (infcmd.o): Update.
8265
8266 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8267
8268 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
8269 * arm-tdep.c (arm_frame_is_thumb): New.
8270 (arm_pc_is_thumb): Clarify comment.
8271 (thumb_analyze_prologue): Remove PC special case.
8272 (thumb_scan_prologue): Take a block_addr argument. Use it for
8273 find_pc_partial_function. Remove unused variables.
8274 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
8275 for find_pc_partial_function. Remove PC special case.
8276 (arm_prologue_prev_register): Add special handling for PC and CPSR.
8277 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
8278 (arm_get_next_pc): Use arm_frame_is_thumb.
8279 (arm_write_pc): Use CPSR_T instead of 0x20.
8280 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
8281 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
8282 (CPSR_T): Define.
8283 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
8284 DWARF2_FRAME_REG_FN.
8285 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
8286 DWARF2_FRAME_REG_FN.
8287 (struct dwarf2_frame_state_reg): Add FN to loc union.
8288
8289 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
8290
8291 * exec.c (print_section_info): Add missing '\n'.
8292
8293 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
8294
8295 * thread.c (add_thread): Move observer call to ...
8296 (add_thread_silent): ... here.
8297
8298 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8299
8300 * rs6000-tdep.c: Update for unwinder changes.
8301 * ppcobsd-tdep.c: Likewise.
8302
8303 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8304
8305 * s390-tdep.c: Update for unwinder changes.
8306
8307 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8308
8309 * spu-tdep.c: Update for unwinder changes.
8310
8311 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8312
8313 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
8314 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
8315 sparc64-linux-tdep.c: Update for unwinder changes.
8316
8317 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8318
8319 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
8320 for unwinder changes.
8321 * mips-tdep.c: Likewise.
8322 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
8323 raw one.
8324
8325 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8326
8327 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
8328 unwinder changes.
8329
8330 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8331
8332 Update i386 and amd64 ports for unwinder changes.
8333
8334 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
8335 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
8336 (amd64_frame_unwind): Use default_frame_sniffer.
8337 (amd64_frame_sniffer): Delete.
8338 (amd64_sigtramp_frame_cache): Expect this_frame.
8339 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
8340 (amd64_sigtramp_frame_sniffer): Update signature.
8341 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
8342 (amd64_frame_base_address): Expect this_frame.
8343 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
8344 this_frame.
8345 (amd64_init_abi): Use set_gdbarch_dummy_id and
8346 frame_unwind_append_unwinder.
8347 * i386-tdep.c (i386_frame_cache): Expect this_frame.
8348 (i386_frame_this_id, i386_frame_prev_register): Update signature.
8349 (i386_frame_unwind): Use default_frame_sniffer.
8350 (i386_frame_sniffer): Delete.
8351 (i386_sigtramp_frame_cache): Expect this_frame.
8352 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
8353 (i386_sigtramp_frame_sniffer): Update signature.
8354 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
8355 (i386_frame_base_address): Update signature.
8356 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
8357 (i386_push_dummy_call): Update comment.
8358 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
8359 Expect this_frame.
8360 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
8361 and frame_unwind_append_unwinder.
8362 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
8363 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
8364 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
8365 i386nbsd-tdep.c: Update for unwinder changes.
8366
8367 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8368
8369 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
8370 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
8371 this_frame.
8372 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
8373 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
8374 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
8375 signature.
8376 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
8377 this_frame.
8378 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8379 Update signature.
8380 * tramp-frame.h (struct tramp_frame): Update signature of init.
8381 * Makefile.in (trad-frame.o): Update.
8382
8383 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8384
8385 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8386 (execute_stack_op): Put this_frame in the baton.
8387 (execute_cfa_program): Take this_frame.
8388 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8389 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8390 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8391 (dwarf2_frame_this_id): Adjust to work on this_frame.
8392 (dwarf2_signal_frame_this_id): Delete.
8393 (dwarf2_frame_prev_register): Update signature. Use new frame
8394 unwind methods.
8395 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8396 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8397 dwarf2_frame_sniffer.
8398 (dwarf2_append_unwinders): New.
8399 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8400 this_frame.
8401 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8402 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8403 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8404 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8405 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8406 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8407 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8408 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8409 (dwarf2_append_unwinders): Declare.
8410 (dwarf2_frame_base_sniffer): Update declaration.
8411 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8412 this_frame.
8413
8414 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8415
8416 Convert frame unwinders to use the current frame and
8417 "struct value".
8418
8419 * frame.c (frame_debug): Make global.
8420 (get_frame_id): Pass this frame to unwinder routines.
8421 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8422 (do_frame_register_read): Do not discard the return value of
8423 frame_register_read.
8424 (frame_register_unwind): Remove debug messages. Use
8425 frame_unwind_register_value.
8426 (frame_unwind_register_value, get_frame_register_value): New
8427 functions.
8428 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8429 (get_frame_args_address, get_frame_type): Pass this frame to
8430 unwinder routines.
8431 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8432 functions.
8433 * frame.h: Update comments.
8434 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8435 (frame_prepare_for_sniffer): Declare.
8436 * frame-unwind.h: Update comments and parameter names.
8437 (default_frame_sniffer): Declare.
8438 (frame_prev_register_ftype): Return a struct value *.
8439 (struct frame_unwind): Remove prev_pc member.
8440 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8441 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8442 (frame_unwind_got_register, frame_unwind_got_memory)
8443 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8444 * frame-base.h: Update comments and parameter names.
8445 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8446 if necessary. Add debugging output.
8447 * sentinel-frame.c (sentinel_frame_prev_register)
8448 (sentinel_frame_this_id): Update for new signature.
8449 (sentinel_frame_prev_pc): Delete.
8450 (sentinel_frame_unwinder): Remove prev_pc.
8451 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8452 prev_pc.
8453 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8454 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8455 (frame_unwind_append_sniffer): Delete.
8456 (frame_unwind_append_unwinder): New function.
8457 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8458 from unwinders. Use frame_prepare_for_sniffer.
8459 (default_frame_sniffer, frame_unwind_got_optimized)
8460 (frame_unwind_got_register, frame_unwind_got_memory)
8461 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8462 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8463 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8464 signature.
8465 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8466 * gdbarch.c, gdbarch.c: Regenerated.
8467 * frame-base.c (default_frame_base_address)
8468 (default_frame_locals_address, default_frame_args_address): Update
8469 for new signature.
8470 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8471 * infcall.c (call_function_by_hand): Update comments.
8472 * Makefile.in (frame-unwind.o): Update dependencies.
8473
8474 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8475
8476 * ada-lang.c (ada_value_primitive_packed_val): Only check
8477 value_lazy for memory lvals.
8478 * findvar.c (value_of_register_lazy): New function.
8479 (locate_var_value): Only check value_lazy for memory lvals.
8480 * valarith.c (value_subscripted_rvalue): Likewise.
8481 * valops.c (value_fetch_lazy): Handle both memory and register
8482 lvals.
8483 (search_struct_field, value_slice): Only check value_lazy for memory
8484 lvals.
8485 * value.c (struct value): Update comment for lazy.
8486 (value_primitive_field): Only check value_lazy for memory lvals.
8487 * value.h (value_lazy): Update comment.
8488 (value_of_register_lazy): Declare.
8489
8490 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8491
8492 * corefile.c (reopen_exec_file): Close any open files.
8493
8494 2008-04-29 Joel Brobecker <brobecker@adacore.com>
8495
8496 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8497 show_memory_breakpoints to 1 while reading the instruction bundle.
8498
8499 2008-04-29 Joel Brobecker <brobecker@adacore.com>
8500
8501 * gdbarch.sh: Document the return_value method. Explain that
8502 the FUNCTYPE parameter might be NULL.
8503 * gdbarch.h: Regenerated.
8504 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8505 type when calling using_struct_return, as this is unnecessary
8506 on this target.
8507
8508 2008-04-28 Joel Brobecker <brobecker@adacore.com>
8509
8510 * terminal.h (create_tty_session): Fix return type.
8511
8512 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8513
8514 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8515
8516 2008-04-26 Joel Brobecker <brobecker@adacore.com>
8517
8518 * breakpoint.c (condition_command, commands_from_control_command)
8519 (break_command_really): Minor reformatting.
8520
8521 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8522
8523 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8524
8525 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8526
8527 * amd64-tdep.c (amd64_get_longjmp_target): New.
8528 (amd64_init_abi): Register amd64_get_longjmp_target as
8529 gdbarch_get_longjmp_target callback.
8530 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8531
8532 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8533
8534 * breakpoint.h (enum bpstat_what_main_action): Delete
8535 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8536
8537 * breakpoint.c (clrs): Delete.
8538 (bpstat_what): Update table.
8539
8540 * infrun.c (handle_inferior_event): Remove
8541 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8542
8543 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8544
8545 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8546 Adjust all prototypes using mi_cmd_args_ftype to use
8547 mi_cmd_argv_ftype.
8548 (struct mi_cmd): Remove the args_func field.
8549 * mi/mi-cmds.c: Don't provide value for the args_func field.
8550 * mi/mi-main.c (mi_execute_async_cli_command)
8551 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8552 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8553 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8554 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8555 (mi_cmd_target_download): Adjust.
8556 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8557 (mi_cmd_execute): Do not check for args_func.
8558 (mi_execute_async_cli_command): Adjust.
8559 * mi/mi-parse.c: Don't check for args_func.
8560
8561 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8562
8563 * breakpoint.c (bpstat_check_location)
8564 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8565 New, extracted from bpstat_stop_status.
8566 (bpstat_stop_status): Use the above.
8567
8568 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8569
8570 * mi/mi-main.c (last_async_command): Rename to current_token.
8571 (previous_async_command): Remove.
8572 (mi_cmd_gdb_exit): Adjust.
8573 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8574 (mi_cmd_target_select): Adjust.
8575 (mi_cmd_execute): Don't set previous_async_command. Free token
8576 here even in async mode.
8577 (mi_execute_async_cli_command): Adjust.
8578 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8579 token.
8580 (mi_load_progress): Adjust.
8581
8582 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8583
8584 * infcmd.c (step_1_continuation): Always disable longjmp
8585 breakpoint if we're not going to do another step.
8586
8587 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8588
8589 exec_cleanup murder.
8590 * breakpoint.c (until_break_command_continuation): Add
8591 the 'error' parameter. Directly delete the breakoint as
8592 opposed to running cleanups.
8593 (until_break_command): Install continuation only
8594 after starting the target. Don't use exec cleanups,
8595 use ordinary cleanups. Discard cleanups is successfully
8596 started the target in async mode.
8597 (make_cleanup_delete_breakpoint): Remove.
8598 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8599 declaration.
8600 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8601 declarations.
8602 (struct continations): Add the 'error' parameter to the
8603 continuation_hook field.
8604 (add_continuation, do_all_continuations)
8605 (add_intermediate_continuation)
8606 (do_all_intermediate_continuations): Add the 'error' parameter.
8607 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8608 * inf-loop.c (inferior_event_handler): Instead of calling
8609 discard_all_continuations, use do_all_continuations with 1 as
8610 'error' parameter. Pass 0 as 'error' parameter in existing uses
8611 of discard_all_continuations.
8612 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8613 cleanups.
8614 (step_once): Install continuation only after resuming the target.
8615 (step_1_continuation): Disable longjmp breakpoint on error.
8616 (finish_command_continuation): Add the error parameter. Delete
8617 the finish breakpoint directly, do not use cleanups.
8618 (finish_command): Do not use exec_cleanups. Always setup
8619 continuation. For sync case, immediately run them.
8620 (attach_command_continuation): Add the error parameter.
8621 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8622 remove step_resume_breakpoint -- adjust delete it directly.
8623 * interps.c (interp_set): Adjust call to do_all_continations.
8624 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8625 do exec cleanups.
8626 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8627 cleanups.
8628 (mi_cmd_execute): Do not use exec_cleanup.
8629 (mi_execute_async_cli_command): Simplify the string concatenation
8630 logic. Do no use exec cleanup.
8631 (mi_exec_async_cli_cmd_continuation): New parameter error.
8632 Free last_async_command.
8633 * top.c (command_line_handler_continuation): New parameter error.
8634 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8635 (do_exec_cleanups): Remove.
8636 (add_continuation, do_all_continations)
8637 (add_intermediate_continuation)
8638 (do_all_intermediate_continuations): New parameter error.
8639
8640 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8641
8642 * breakpoint.h (bp_location_p): New typedef.
8643 Register a vector of bp_location_p.
8644 * breakpoint.c (always_inserted_mode)
8645 (show_always_inserted_mode): New.
8646 (unlink_locations_from_global_list): Remove.
8647 (update_global_location_list)
8648 (update_global_location_list_nothrow): New.
8649 (update_watchpoint): Don't free locations.
8650 (should_insert_location): New.
8651 (insert_bp_location): Use should_insert_location.
8652 (insert_breakpoint_locations): Copied from
8653 insert_breakpoints.
8654 (insert_breakpoint): Use insert_breakpoint_locations.
8655 (bpstat_stop_status): Call update_global_location_list
8656 when disabling breakpoint.
8657 (allocate_bp_location): Don't add to bp_location_chain.
8658 (set_raw_breakpoint)
8659 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8660 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8661 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8662 (set_longjmp_resume_breakpoint)
8663 (enable_watchpoints_after_interactive_call_stop)
8664 (disable_watchpoints_before_interactive_call_start)
8665 (create_internal_breakpoint)
8666 (create_fork_vfork_event_catchpoint)
8667 (create_exec_event_catchpoint, set_momentary_breakpoint)
8668 (create_breakpoints, break_command_1, watch_command_1)
8669 (create_exception_catchpoint)
8670 (handle_gnu_v3_exceptions)
8671 (disable_breakpoint, breakpoint_re_set_one)
8672 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8673 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8674 Call update_global_location_list.
8675 (delete_breakpoint): Don't remove locations and don't
8676 try to reinsert them. Call update_global_location_list.
8677 (update_breakpoint_locations): Likewise.
8678 (restore_always_inserted_mode): New.
8679 (update_breakpoints_after_exec): Temporary disable
8680 always inserted mode.
8681 * Makefile.in: Update dependencies.
8682
8683 * infrun.c (proceed): Remove breakpoints while stepping
8684 over breakpoint.
8685 (handle_inferior_event): Don't remove or insert
8686 breakpoints.
8687 * linux-fork.c (checkpoint_command): Remove breakpoints
8688 before fork and insert after.
8689 (linux_fork_context): Remove breakpoints before switch
8690 and insert after.
8691 * target.c (target_disconnect, target_detach): Remove
8692 breakpoints from target.
8693
8694
8695 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8696
8697 * breakpoint.c (print_one_breakpoint_location): In MI
8698 mode, report the location string the breakpoint was
8699 originally created with.
8700
8701 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8702
8703 * Makefile.in (xtensa-tdep.o): Update dependencies.
8704 * configure.tgt (xtensa*): Update dependencies.
8705 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8706 Local variable areg renamed to arreg.
8707 (areg_number): New function.
8708 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8709 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8710 replaced by arreg_number.
8711 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8712 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8713 (xtensa_scan_prologue): New function.
8714 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8715 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8716 value based on prologue analysis. Fix the bugs preventing WS and
8717 AR4-AR7/A11 registers from getting right values for intermediate frames,
8718 whose registers have been already spilled.
8719 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8720 and arreg_number appropriately.
8721 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8722 svr4_ilp32_fetch_link_map_offsets.
8723
8724 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8725
8726 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8727 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8728
8729 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8730
8731 * acinclude.m4: Add override.m4.
8732 * configure: Regenerate.
8733
8734 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8737 initialized with a trailing space now. Use PROMPT_ARG of
8738 COMMAND_LINE_INPUT instead of printing it ourselves.
8739
8740 2008-04-22 Joel Brobecker <brobecker@adacore.com>
8741
8742 * NEWS: Document support for 64-bit core file.
8743
8744 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
8745
8746 * NEWS: Add information on calling convention and new SH CLI options.
8747
8748 * sh-tdep.c (sh_cc_gcc): New static string.
8749 (sh_cc_renesas): Ditto.
8750 (sh_cc_enum): New static string array.
8751 (sh_active_calling_convention): New static string pointer denoting
8752 active user chosen ABI.
8753 (sh_is_renesas_calling_convention): New function to return function
8754 specific ABI, or user choice if necessary.
8755 (sh_use_struct_convention): Rename first argument and turn around its
8756 meaning. Check for renesas ABI and return accordingly.
8757 (sh_use_struct_convention_nofpu): New function.
8758 (sh_next_flt_argreg): Get function type as third parameter. Check
8759 for renesas ABI and choose floating registers accordingly.
8760 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8761 struct return slot accordingly.
8762 (sh_push_dummy_call_nofpu): Ditto.
8763 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8764 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8765 (sh_return_value_fpu): Evaluate ABI and give to
8766 sh_use_struct_convention.
8767 (show_sh_command): New function.
8768 (set_sh_command): Ditto.
8769 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8770 CLI command.
8771
8772 * gdbarch.sh (return_value): Add func_type argument.
8773 * gdbarch.c: Regenerate.
8774 * gdbarch.h: Ditto.
8775 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8776 val_type so as not to collide with value_type function. Call
8777 using_struct_return with additional function type argument.
8778 * infcall.c (call_function_by_hand): Call using_struct_return and
8779 gdbarch_return_value with additional function type argument.
8780 * infcmd.c (print_return_value): Take addition func_type argument.
8781 Call gdbarch_return_value with additional function type argument.
8782 (finish_command_continuation): Call print_return_value with additional
8783 function type argument.
8784 (finish_command): Ditto.
8785 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8786 additional function type argument.
8787 * stack.c (return_command): Call using_struct_return and
8788 gdbarch_return_value with additional function type argument.
8789 * value.c (using_struct_return): Take additional function type argument.
8790 * value.h (using_struct_return): Accommodate declaration.
8791 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8792 * amd64-tdep.c (amd64_return_value): Ditto.
8793 * arm-tdep.c (arm_return_value): Ditto.
8794 * avr-tdep.c (avr_return_value): Ditto.
8795 * cris-tdep.c (cris_return_value): Ditto.
8796 * frv-tdep.c (frv_return_value): Ditto.
8797 * h8300-tdep.c (h8300_return_value): Ditto.
8798 (h8300h_return_value): Ditto.
8799 * hppa-tdep.c (hppa32_return_value): Ditto.
8800 (hppa64_return_value): Ditto.
8801 * i386-tdep.c (i386_return_value): Ditto.
8802 * ia64-tdep.c (ia64_return_value): Ditto.
8803 * iq2000-tdep.c (iq2000_return_value): Ditto.
8804 * m32c-tdep.c (m32c_return_value): Ditto.
8805 * m32r-tdep.c (m32r_return_value): Ditto.
8806 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8807 * m68k-tdep.c (m68k_return_value): Ditto.
8808 (m68k_svr4_return_value): Ditto.
8809 * m88k-tdep.c (m88k_return_value): Ditto.
8810 * mep-tdep.c (mep_return_value): Ditto.
8811 * mips-tdep.c (mips_eabi_return_value): Ditto.
8812 (mips_n32n64_return_value): Ditto.
8813 (mips_o32_return_value): Ditto.
8814 (mips_o64_return_value): Ditto.
8815 * mn10300-tdep.c (mn10300_return_value): Ditto.
8816 * mt-tdep.c (mt_return_value): Ditto.
8817 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8818 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8819 (ppc_sysv_abi_broken_return_value): Ditto.
8820 (ppc64_sysv_abi_return_value): Ditto.
8821 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8822 (ppc_sysv_abi_broken_return_value): Ditto.
8823 (ppc64_sysv_abi_return_value): Ditto.
8824 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8825 * rs6000-tdep.c (rs6000_return_value): Ditto.
8826 * s390-tdep.c (s390_return_value): Ditto.
8827 * score-tdep.c (score_return_value): Ditto.
8828 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8829 (sh_return_value_fpu): Ditto.
8830 * sh64-tdep.c (sh64_return_value): Ditto.
8831 * sparc-tdep.c (sparc32_return_value): Ditto.
8832 * sparc64-tdep.c (sparc64_return_value): Ditto.
8833 * spu-tdep.c (spu_return_value): Ditto.
8834 * v850-tdep.c (v850_return_value): Ditto.
8835 * vax-tdep.c (vax_return_value): Ditto.
8836 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8837 * xtensa-tdep.c (xtensa_return_value): Ditto.
8838
8839 * gdbtypes.h (struct type): Add calling_convention member.
8840 * dwarf2read.c (read_subroutine_type): Add calling convention read
8841 from DW_AT_calling_convention attribute to function type.
8842
8843 2008-04-22 Markus Deuling <deuling@de.ibm.com>
8844
8845 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8846 multi_f77_subscript to support values from registers.
8847 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8848 * value.h (value_subscripted_rvalue): Add prototype.
8849
8850 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8851 Fix output.
8852 * f-valprint.c (f_val_print): Likewise.
8853
8854 2008-04-21 Craig Silverstein <csilvers@google.com>
8855
8856 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8857 !HAVE_ZLIB_H case.
8858
8859 2008-04-21 Pedro Alves <pedro@codesourcery.com>
8860
8861 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8862 section is not a code section.
8863
8864 2008-04-19 Craig Silverstein <csilvers@google.com>
8865
8866 * NEWS: Add information on compressed debug sections.
8867
8868 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8869
8870 * mi/mi-cmd-var.c (varobj_update_one): Print new
8871 value for variable objects that changed type.
8872
8873 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8874
8875 * varobj.c (varobj_invalidate): Don't touch floating
8876 varobjs.
8877
8878 2008-04-19 Mark Kettenis <kettenis@gnu.org>
8879
8880 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8881 (multiple_symbols_cancel): Remove extra const.
8882 * symtab.h: Likewise.
8883
8884 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
8885
8886 * interps.c (top_level_interpreter): Rename static variable...
8887 (top_level_interpreter_ptr): ...to this.
8888 (top_level_interpreter): New function.
8889
8890 * interps.h: New extern for top_level_interpreter.
8891
8892 * linespec.c: Include interps.h and mi/mi-cmds.h.
8893 (decode_line_2): When using MI, always set all breakpoints in menu.
8894
8895 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8896
8897 2008-04-18 Craig Silverstein <csilvers@google.com>
8898
8899 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8900 * config.in, configure: Regenerate.
8901 * dwarf2read.c: Include zlib.h if present.
8902 Modified *_SECTION macros.
8903 (section_is_p): New.
8904 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8905 (dwarf2_resize_section): New.
8906 to determine whether a given section has a given name.
8907 (zlib_decompress_section): New.
8908 (dwarf2_read_section): Read the compressed section if present
8909 in the binary.
8910 * MAINTAINERS: Added myself to section Write After Approval.
8911
8912 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8913
8914 * defs.h (exec_set_section_offsets): Remove prototype.
8915 * exec.c (exec_set_section_offsets): Remove function.
8916
8917 2008-04-18 Joel Brobecker <brobecker@adacore.com>
8918
8919 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8920 in the search for the matching symbol.
8921
8922 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8923
8924 * breakpoint.c (update_watchpoint): Always reparse
8925 condition.
8926
8927 2008-04-17 Joel Brobecker <brobecker@adacore.com>
8928
8929 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8930 the breakpoint address only once.
8931
8932 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8933
8934 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8935 rather than a hard-coded architecture, for xcoff executables.
8936
8937 2008-04-17 Doug Evans <dje@google.com>
8938
8939 * buildsym.c (watch_main_source_file_lossage): New fn.
8940 (end_symtab): Call it.
8941
8942 * source.c (find_and_open_source): Add some comments clarifying
8943 handling of FULLNAME argument. Make static. Remove pointless
8944 xstrdup/xfree.
8945
8946 2008-04-17 Pedro Alves <pedro@codesourcery.com>
8947
8948 * inf-loop.c (inferior_event_handler): Also run the intermediate
8949 continuations in the INF_EXEC_COMPLETE case.
8950
8951 2008-04-16 Tom Tromey <tromey@redhat.com>
8952
8953 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8954 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8955 * cli/cli-decode.c (set_cmd_async_ok): New function.
8956 (get_cmd_async_ok): New function.
8957 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8958 "show" as async-ok.
8959 * top.c (execute_command): Use get_cmd_async_ok.
8960 * infcmd.c: Include cli/cli-decode.h.
8961 (_initialize_infcmd): Mark "interrupt" as async-ok.
8962 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8963
8964 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8965
8966 PR gdb/2445
8967 * exec.c: Correct "arch-utils.h" include.
8968
8969 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
8970
8971 PR gdb/2424
8972 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8973 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8974 * breakpoint.c (bpdisp_texst): New function. The function takes over
8975 the role of bpstats static array in print_one_breakpoint_location.
8976 (print_it_typical): Print "Temporary breakpoint" instead
8977 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8978 protocols, print disp field.
8979 (print_one_breakpoint_location): Removed bpdisps static definition.
8980 Call new bpstat_text function to get value for 'disp' field.
8981 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8982
8983 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8984
8985 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8986 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8987 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8988 * gnulib/Makefile.in: Regenerate.
8989
8990 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8991
8992 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8993 (defs_h): Use $(GNULIB_H).
8994 (all-lib): Depend on gnulib/Makefile.
8995 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8996 * config.in, gnulib/Makefile.in: Regenerated.
8997
8998 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8999
9000 * Makefile.in (LIBGNU, INCGNU): Define.
9001 (INTERNAL_CFLAGS_BASE): Add INCGNU.
9002 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
9003 (CLEANDIRS): New.
9004 ($(LIBGNU), all-lib): New rules.
9005 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
9006 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
9007 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
9008 * gnulib: New directory, from gnulib-tool.
9009 * configure, aclocal.m4: Regenerated.
9010
9011 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
9012
9013 * linux-thread-db.c (have_threads_callback): Check thread->private.
9014
9015 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
9016 Vladimir Prus <vladimir@codesourcery.com>
9017
9018 Fix @-varobjs.
9019 * varobj.c (value_of_root): Update the expression for
9020 floating varobjs.
9021 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
9022 report that.
9023
9024 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
9025
9026 * mi/mi-cmd-var.c: Include "mi-getopt.h".
9027 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
9028 (mi_cmd_var_set_format): Use new mi_parse_format.
9029 (mi_cmd_var_evaluate_expression): Support for -f option to specify
9030 format.
9031 * Makefile.in (mi-cmd-var.o): Update dependencies.
9032
9033 * varobj.h (varobj_get_formatted_value): Declare.
9034 * varobj.c (my_value_of_variable): Added format parameter.
9035 (cplus_value_of_variable): Likewise.
9036 (java_value_of_variable): Likewise.
9037 (c_value_of_variable): Likewise. Evaluate expression based
9038 on format parameter.
9039 (struct language_specific): Add format parameter to function member
9040 *value_of_variable.
9041 (varobj_get_formatted_value): New.
9042 (varobj_get_value): Added format parameter to method call.
9043
9044 2008-04-08 Joel Brobecker <brobecker@adacore.com>
9045
9046 * stabsread.c (cleanup_undefined_types_noname): Manually set the
9047 instance flags of the undefined type before calling replace_type.
9048
9049 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
9050
9051 * target.h (enum strata): Remove the download_stratum.
9052
9053 2008-04-07 Doug Evans <dje@google.com>
9054
9055 * buildsym.h (last_source_file): Add dwarf info to comment.
9056 (last_source_start_addr): Ditto.
9057
9058 2008-04-07 Pedro Alves <pedro@codesourcery.com>
9059
9060 * alphanbsd-tdep.c: Include "target.h".
9061 * mn10300-tdep.c: Include "target.h".
9062 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
9063
9064 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
9065
9066 Fix breakpoint condition that use member variables.
9067 * valops.c (check_field): Remove.
9068 (check_field_in): Rename to check_field.
9069 (value_of_this): Use la_name_of_this.
9070 * value.h (check_field): Adjust prototype.
9071
9072 * language.h (la_value_of_this): Rename to la_name_of_this.
9073 * language.c (unknown_language_defn): Specify "this" for
9074 name_of_this.
9075 (auto_language_defn): Likewise.
9076 (local_language_defn): Likewise.
9077 * ada-lang.c (ada_language_defn): Adjust comment.
9078 * c-lang.c (c_language_defn): Adjust comment.
9079 (cplus_language_defn): Specify "this" for name_of_this.
9080 (asm_language_defn): Adjust comment.
9081 (minimal_language_defn): Adjust comment.
9082 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
9083 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
9084 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
9085 * objc-lang.c (objc_language_defn): Specify "self" for
9086 name_of_this.
9087 * p-lang.c (pascal_language_defn): Specify "this" for
9088 name_of_this.
9089 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
9090
9091 * symtab.c (lookup_symbol_aux): Lookup "this" in the
9092 proper scope, and check for field in type of "this", without
9093 trying to create a value.
9094
9095 2008-04-04 Pedro Alves <pedro@codesourcery.com>
9096
9097 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
9098 (mi_error_message): Delete declaration.
9099 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
9100 returning MI_CMD_ERROR.
9101 * mi/mi-main.c (mi_error_message): Delete.
9102 (mi_cmd_exec_interrupt):
9103 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
9104 (mi_cmd_thread_info): Call error instead of returning
9105 MI_CMD_ERROR.
9106 (mi_cmd_data_list_register_values): Call error instead of
9107 returning MI_CMD_ERROR. Adapt to new get_register interface.
9108 (get_register): Change return typo to void. Call error instead of
9109 returning MI_CMD_ERROR.
9110 (mi_cmd_data_write_register_values): Call error instead of
9111 returning MI_CMD_ERROR.
9112 (mi_cmd_list_features): Return MI_CMD_DONE.
9113 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
9114 (mi_execute_command): Always print exceptions with -error.
9115
9116 2008-04-04 Joel Brobecker <brobecker@adacore.com>
9117
9118 * NEWS: Mention new commands set/show multiple-symbols.
9119
9120 2008-04-03 Joel Brobecker <brobecker@adacore.com>
9121
9122 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
9123 (multiple_symbols_cancel): New constants.
9124 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
9125 (multiple_symbols_select_mode): New function.
9126 (_initialize_symtab): Add new set/show multiple-symbols commands.
9127 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
9128 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
9129 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
9130 setting.
9131 * linespec.c (decode_line_2): Likewise.
9132
9133 2008-04-03 Doug Evans <dje@sebabeach.org>
9134
9135 * symtab.h (enum free_code): Delete free_contents, unused.
9136 * symmisc.c (free_symtab_block): Delete.
9137 (free_symtab, case free_code): Delete.
9138
9139 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9140
9141 * valops.c (value_cast_structs): New function. Cast related
9142 STRUCT types up/down and return cast value. The body of this
9143 function comes mostly from value_cast_pointers.
9144 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
9145 to value_cast_structs. Now value_cast_pointers needs only create
9146 appropriate reference after using value_cast_structs for actual
9147 casting.
9148 (value_cast): Handle references.
9149
9150 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
9151
9152 * MAINTAINERS: Added myself to section Write After Approval.
9153
9154 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
9155
9156 * ia64-tdep.c (examine_prologue): Correct array access.
9157
9158 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9159
9160 * cp-support.c (first_component_command): Return if no arguments.
9161
9162 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
9163
9164 * ser-mingw.c (ser_windows_open): Open requested name.
9165
9166 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9167
9168 * MAINTAINERS: Added myself.
9169
9170 2008-03-28 Pedro Alves <pedro@codesourcery.com>
9171
9172 * target.c (find_default_run_target): Allow a NULL `do_mesg'
9173 parameter. If it is NULL, don't call error.
9174 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
9175 `do_mesg' parameter to find_default_run_target. If no target was
9176 found, return 0.
9177
9178 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
9179
9180 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
9181 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
9182 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
9183 Delete.
9184 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
9185
9186 2008-03-27 Joel Brobecker <brobecker@adacore.com>
9187
9188 GDB 6.8 released.
9189
9190 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9191
9192 * features/Makefile (%.dat): Set xmltarget to the base filename
9193 of the XML source, without subdirectory.
9194 * regformats/rs6000/powerpc-32.dat: Regenerate.
9195 * regformats/rs6000/powerpc-64.dat: Regenerate.
9196 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9197
9198 2008-03-27 Markus Deuling <deuling@de.ibm.com>
9199
9200 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
9201 objfile arch.
9202
9203 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
9204
9205 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9206 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
9207
9208 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
9209
9210 * objfiles.h (struct objfile): New GDBARCH member.
9211 (get_objfile_arch): Add prototype.
9212 * objfiles.c: Include "arch-utils.h".
9213 (allocate_objfile): Look up gdbarch associated with bfd.
9214 (get_objfile_arch): New function.
9215 * Makefile (objfiles.o): Update dependencies.
9216
9217 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
9218 by objfile arch.
9219 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
9220 by frame arch.
9221 (locexpr_describe_location): Replace current_gdbarch by
9222 objfile arch.
9223 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
9224 (dwarf2_add_field): Likewise.
9225 (read_tag_pointer_type): Likewise.
9226 (read_base_type): Likewise.
9227 (new_symbol): Likewise.
9228
9229 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
9230 (decode_base_type, decode_function_type): Likewise.
9231 (coff_read_struct_type, coff_read_enum_type): Likewise.
9232 (coff_symtab_read): Replace current_gdbarch by objfile arch.
9233 (decode_base_type): Likewise.
9234 (coff_read_enum_type): Likewise.
9235 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
9236 (coff_read_enum_type): Likewise.
9237
9238 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
9239 (end_psymtab): Likewise.
9240 (process_one_symbol): Likewise.
9241
9242 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
9243 (parse_procedure): Likewise.
9244 (parse_partial_symbols): Likewise.
9245
9246 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
9247
9248 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
9249 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
9250 built-in types.
9251 (read_range_type): Replace current_gdbarch by objfile arch. Replace
9252 static range_index_type by built-in type.
9253 (read_one_struct_field): Replace current_gdbarch by objfile arch.
9254 (read_enum_type): Likewise.
9255
9256 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
9257 objfile arch.
9258
9259 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9260
9261 * varobj.h (varobj_floating_p): Declare.
9262 * varobj.c (varobj_floating_p): New.
9263 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
9264 '@' as the name, update all floating varobjs.
9265
9266 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9267
9268 * varobj.c (struct varobj_root): Rename use_selected_frame to
9269 floating, and clarify the meaning.
9270 (varobj_create, varobj_update, new_root_variable): Adjust.
9271 (value_of_root): Don't use type_changed as in variable,
9272 adjust comment.
9273 (c_value_of_root): Adjust.
9274
9275 2008-03-25 Pedro Alves <pedro@codesourcery.com>
9276
9277 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
9278 gdb's thread list.
9279 (linux_nat_wait): Add main lwp to gdb's thread list.
9280 * linux-thread-db.c (find_new_threads_callback): Also attach to
9281 already listed threads which thread_db didn't know about yet.
9282
9283 2008-03-25 Pedro Alves <pedro@codesourcery.com>
9284
9285 * linux-nat.c (drain_queued_events): Fix comment typo.
9286 (linux_nat_attach): In async mode, don't rely on storing a pending
9287 status. Instead place the wait status on the pipe.
9288 (linux_nat_resume): Remove unreacheable shortcut code in async
9289 mode.
9290 (stop_wait_callback): In async mode, don't store pending status.
9291 Instead, cancel breakpoints or resend the signal appropriatelly.
9292 (cancel_breakpoint): New, refactored from
9293 cancel_breakpoints_callback.
9294 (cancel_breakpoints_callback): Call cancel_breakpoint.
9295 (pipe_to_local_event_queue): Remove special token processing.
9296 (linux_nat_wait): Issue an internal error if a pending status is
9297 found in async mode.
9298
9299 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
9300
9301 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
9302
9303 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
9304 Vladimir Prus <vladimir@codesourcery.com>
9305
9306 * varobj.c (struct varobj_root): New component thread_id.
9307 (varobj_get_thread_id, check_scope): New functions.
9308 (c_value_of_root): Use check_scope. Switch to the
9309 proper thread if necessary.
9310
9311 * varobj.h (varobj_get_thread_id): New extern.
9312
9313 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
9314
9315 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
9316
9317 PR gdb/544
9318 * top.c: Revert 2008-03-21 changes.
9319
9320 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9321
9322 * thread.c (make_cleanup_restore_current_thread): Make it
9323 globally visible.
9324 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
9325 * varobj.c (varobj_update): Don't save/restore frame.
9326 (c_value_of_root): Save/restore thread and frame here,
9327 using make_cleanup_restore_current_thread.
9328 * Makefile.in: Update dependecies.
9329
9330 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9331
9332 * varobj.c (struct varobj_root): Clarify
9333 comment on the frame field.
9334 (varobj_create): Don't set frame if we have no
9335 block.
9336
9337 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9338
9339 PR gdb/544
9340 Suggested by Jan Kratochvil:
9341 * top.c (gdb_rl_operate_and_get_next_completion): Call
9342 rl_redisplay_function.
9343 (gdb_rl_redisplay): New.
9344 (init_main): Set rl_redisplay_function.
9345
9346 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
9347
9348 * aix-thread.c (pdc_read_regs): Fix compiler warning.
9349 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
9350 (store_regs_kernel_thread): Likewise.
9351
9352 2008-03-21 Pedro Alves <pedro@codesourcery.com>
9353
9354 Linux native async support.
9355
9356 * target.h (struct target_ops): Delete to_async_mask_value and add
9357 to_async_mask.
9358 (target_is_async_p, target_async): Formatting.
9359 (target_async_mask_value): Delete.
9360 (target_async_mask): Delete function declaration, and add new
9361 target macro with the same name.
9362
9363 * target.c (update_current_target): Replace to_async_mask_value by
9364 to_async_mask. Default to_async_mask to return_one.
9365 (target_async_mask): Delete.
9366 (find_default_can_async_p, find_default_is_async_p): New.
9367 (init_dummy_target): register find_default_can_async_p and
9368 find_default_is_async_p on the dummy target.
9369
9370 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
9371 (debug_linux_nat_async): New global.
9372 (show_debug_linux_nat_async): New function.
9373 (linux_nat_async_enabled, linux_nat_async_mask_value)
9374 (linux_nat_event_pipe, linux_nat_num_queued_events)
9375 (linux_nat_async_events_enabled): New globals.
9376 (struct waitpid_result): New struct.
9377 (waitpid_queue): New global.
9378 (queued_waitpid, push_waitpid, drain_queued_events): New.
9379 (my_waitpid): Call queued_waitpid.
9380 (linux_child_follow_fork): Disable async events during the call.
9381 (blocked_mask): Delete.
9382 (sync_sigchld_action, async_sigchld_action): New globals.
9383 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9384 async mode, block events during the call.
9385 (linux_nat_create_inferior): New.
9386 (linux_nat_attach): In sync mode, restore the mask states. In
9387 async mode, wake the event loop immediatelly.
9388 (detach_callback): Drain all queued events of the lwp we're
9389 detaching from.
9390 (linux_nat_detach): Block async mode, and drain events of the main
9391 process.
9392 (linux_nat_resume): If in async mode, mask async events during the
9393 call. If short circuiting, force event loop to wake up. If
9394 resuming, set target_executing, and register target events in the
9395 event loop.
9396 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9397 (linux_nat_wait): In async mode, block events during the call.
9398 Only enable/disable passing SIGINT to the inferior in sync mode.
9399 Get events from local waitpid queue. If no interesting events was
9400 found, return to events loop. Reregister target events in the
9401 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9402 (linux_nat_kill): Disable events on entry.
9403 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9404 here. Detach async mode from the event loop if there are no more
9405 forks available, otherwise leave it on.
9406 (sigchld_handler): Assure this is called only in sync mode.
9407 (linux_async_permitted, linux_async_permitted_1): New globals.
9408 (set_maintenance_linux_async_permitted)
9409 (show_maintenance_linux_async_permitted): New functions.
9410 (linux_nat_is_async_p, linux_nat_can_async_p)
9411 (linux_nat_async_mask): New.
9412 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9413 (get_pending_events, async_sigchld_handler): New.
9414 (linux_nat_async_events): New.
9415 (async_terminal_is_ours): New global.
9416 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9417 (async_client_callback, async_client_context): New.
9418 (linux_nat_async_file_handler, linux_nat_async)
9419 (linux_nat_disable_async, linux_nat_enable_async): New.
9420 (linux_nat_add_target): Register linux_nat_create_inferior,
9421 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9422 linux_nat_async_mask, linux_nat_terminal_inferior and
9423 linux_nat_terminal_ours.
9424 (_initialize_linux_nat): Remove local action variable, and update
9425 code that used it to use sync_sigchld_action. Add new
9426 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9427 set/show command in the maintenance class. Add new "linux-async"
9428 maintenance set/show command. Block SIGCHLD by default. Setup
9429 async_sichld_action, and sync_sigchld_action. Install the default
9430 async mode.
9431 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9432 the cancel signals.
9433
9434 * linux-thread-db.c (re_check_for_thread_db): New.
9435 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9436 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9437 (thread_db_async_mask): New.
9438 (init_thread_db_ops): Register thread_db_can_async_p,
9439 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9440
9441 * remote.c (remote_async_mask_value): New.
9442 (remote_return_zero): New.
9443 (init_remote_ops): Register remote_return_zero as callbacks of
9444 to_can_async_p and to_is_async_p.
9445 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9446 use remote_async_mask_value.
9447 (remote_async_mask): New.
9448 (init_remote_async_ops): Remove to_async_mask_value setting and
9449 register remote_async_mask as to_async_mask callback in
9450 remote_async_ops.
9451
9452 * Makefile.in (linux-nat.o): Update.
9453
9454 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9455
9456 * gdbthread.h (add_thread_with_info): New.
9457 * linux-thread-db.c: Add some documentation.
9458 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9459 (struct private_thread_info): Remove th_valid and ti_valid.
9460 Replace ti with tid.
9461 (thread_get_info_callback): Do not add TID to the new ptid. Do
9462 not cache th or ti.
9463 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9464 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9465 new PTID.
9466 (attach_thread): Handle an already-existing thread. Use
9467 add_thread_with_info. Cache the th and tid.
9468 (detach_thread): Verify that private was set. Remove verbose
9469 argument and printing. Update caller.
9470 (thread_db_detach): Do not adjust inferior_ptid.
9471 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9472 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9473 (thread_db_wait): Do not use lwp_from_thread.
9474 (thread_db_pid_to_str): Use the cached TID.
9475 (thread_db_extra_thread_info): Check that private is set.
9476 (same_ptid_callback): Delete.
9477 (thread_db_get_thread_local_address): Do not use it or check
9478 is_thread. Check that private is set. Assume that the thread
9479 handle is already cached.
9480 (init_thread_db_ops): Remove to_resume and to_kill.
9481 * thread.c (add_thread_with_info): New.
9482 (add_thread): Use it.
9483 * linux-nat.c (find_thread_from_lwp): Delete.
9484 (exit_lwp): Do not use it. Check print_thread_events. Print before
9485 deleting the thread.
9486 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9487 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9488 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9489 printf_unfiltered for thread exits.
9490 * procfs.c (procfs_wait): Likewise.
9491
9492 2008-03-21 Chris Demetriou <cgd@google.com>
9493
9494 * symtab.c (rbreak_command): Quote symbol name before passing
9495 it to break_command.
9496
9497 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9498
9499 * eval.c (evaluate_subexp_for_address): Clarify error message.
9500 Use value_must_coerce_to_target.
9501 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9502 * valops.c (value_assign): Call value_coerce_to_target when
9503 assigning to anything but internalvars. Leave GDB-side arrays
9504 as arrays when assigning to internalvars.
9505 (value_must_coerce_to_target, value_coerce_to_target): New.
9506 (value_coerce_array, value_addr): Call value_coerce_to_target.
9507 (value_array): Create the array in GDB's memory instead of
9508 the inferior's.
9509 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9510 Declare.
9511
9512 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9513
9514 * top.c (quit_confirm): Warn that we will kill the program.
9515
9516 2008-03-19 Pedro Alves <pedro@codesourcery.com>
9517
9518 * inflow.c (terminal_ours_1): Guard access to
9519 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9520
9521 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9522 Jim Blandy <jimb@codesourcery.com>
9523 Daniel Jacobowitz <drow@false.org>
9524
9525 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9526 (dwarf2_read_address): Update prototype.
9527
9528 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9529 (signed_address_type): Likewise.
9530 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9531 (execute_stack_op): Update calls to unsigned_address_type,
9532 signed_address_type and dwarf2_read_address. Fix implementation
9533 of DW_OP_deref_size.
9534
9535 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9536 (dwarf2_per_cu_addr_size): Likewise.
9537 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9538 (struct dwarf2_loclist_baton): Likewise.
9539
9540 * dwarf2loc.c (find_location_expression): Update calls to
9541 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9542 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9543 (locexpr_describe_location): Likewise.
9544 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9545 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9546 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9547 to dwarf2_per_cu_addr_size (per_cu).
9548 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9549 (loclist_read_variable): Likewise.
9550 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9551
9552 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9553 instead of baton->objfile.
9554 (dwarf2_per_cu_obfile): New function.
9555 (dwarf2_per_cu_addr_size): Likewise.
9556
9557 * dwarf2-frame.c (struct comp_unit): Move higher.
9558 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9559 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9560 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9561 parameter by using fde->eh_frame_p. Use read_encoded_value
9562 to implement DW_CFA_set_loc.
9563 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9564 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9565 execute_stack_op and execute_cfa_program.
9566 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9567 (size_of_encoded_value): Remove.
9568 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9569 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9570 (add_cie): Set cie->unit backlink.
9571 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9572 read_encoded_value.
9573 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9574
9575 2008-03-17 Markus Deuling <deuling@de.ibm.com>
9576
9577 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9578 gdbarch_bfd_arch_info.
9579
9580 2008-03-17 Joel Brobecker <brobecker@adacore.com>
9581
9582 * aix-thread.c (pdc_read_regs): Minor reformatting.
9583
9584 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9585
9586 * thread.c (print_thread_info): Don't insist
9587 on having current thread if there are no
9588 threads at all.
9589
9590 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9591
9592 * infcmd.c (attach_command_post_wait)
9593 (attach_command_continuation): New.
9594 (attach_command): Support background async execution, and async
9595 execution in synchronous mode.
9596
9597 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9598
9599 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9600 * symmisc.c (dump_symtab_1): Likewise.
9601 * wrapper.c (gdb_value_struct_elt): Likewise.
9602
9603 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9604
9605 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9606
9607 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9608
9609 * linux-nat.c (linux_nat_filter_event): New, refactored from
9610 linux_nat_wait.
9611 (linux_nat_wait): Call linux_nat_filter_event.
9612
9613 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9614
9615 * top.c (execute_command): Fix uninitialized variable error.
9616
9617 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9618
9619 * Makefile.in (amd64nbsd-nat.o): New dependency.
9620 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9621 (_initialize_amd64nbsd_nat): Update target vector to use
9622 nbsd_pid_to_exec_file.
9623 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
9624
9625 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9626
9627 Remove ignoring leading exec events code.
9628 * fork-child.c (startup_inferior): Do not set
9629 inferior_ignoring_leading_exec_events.
9630 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9631 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9632 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9633 (handle_inferior_event): Remove code for ignoring leading exec
9634 events.
9635 * target.c (update_current_target): Do not inherit, or default,
9636 to_reported_exec_events_per_exec_call.
9637 (debug_to_reported_exec_events_per_exec_call): Remove.
9638 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9639 * target.h (target_reported_exec_events_per_exec_call): Remove.
9640 (struct target): Remove the to_reported_exec_events_per_exec_call
9641 field.
9642
9643 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9644
9645 Implement -thread-info.
9646 * gdbthread.h (print_thread_info): Declare.
9647
9648 * thread.c (print_thread_info): New, extracted
9649 from info_threads_command and adjusted to
9650 work for CLI and MI.
9651 (info_threads_command): Use print_thread_info.
9652 * Makefile.in: Update dependencies.
9653
9654 * mi/mi-cmds.c (mi_cmds): Specify a handler
9655 for -thread-info.
9656 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9657 * mi/mi-main.c (mi_cmd_thread_info): New.
9658 (mi_cmd_list_features): Include 'thread-info'.
9659
9660 2008-03-14 Kevin Buettner <kevinb@redhat.com>
9661
9662 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9663 to decide whether to match instruction patterns using "sw" and "sd".
9664
9665 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9666
9667 * infcmd.c (jump_command): Postpone disabling stdin until after
9668 the possible query.
9669
9670 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9671
9672 * inflow.c (gdb_getpgrp): New.
9673 (gdb_has_a_terminal): Use get_getpgrp.
9674 (terminal_ours_1): If attach_flag is set, don't refetch
9675 inferior_process_group.
9676
9677 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9678
9679 * features/library-list.dtd: Allow "section" elements as children
9680 of "library". Add "section" element and describe its attributes.
9681
9682 * solib-target.c (struct lm_info): Add section_bases member.
9683 (library_list_start_segment): Error out if seen a section element.
9684 (library_list_start_section): New.
9685 (library_list_end_library): New.
9686 (solib_target_free_library_list): Free section_bases.
9687 (section_attributes): New.
9688 (library_children): Make "segment" optional. Add "section" child.
9689 (library_list_children): Register library_list_end_library.
9690 (solib_target_relocate_section_addresses): Handle section bases.
9691
9692 * NEWS: Mention new qXfer:libraries:read section offsets support.
9693
9694 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9695
9696 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9697 (make_exec_error_cleanup): Remove declarations.
9698 * utils.c (exec_error_cleanup_chain): Remove.
9699 (do_exec_error_cleanups, discard_exec_error_cleanups)
9700 (make_exec_error_cleanup): Remove.
9701 * event-loop.c (start_event_loop): Adjust call to
9702 async_enable_stdin.
9703 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9704 (async_disable_stdin): Don't register async_enable_stdin via
9705 cleanup.
9706 * inf-loop.c (inferior_event_handler): Don't
9707 call do_exec_error_cleanups. Call async_enable_stdin instead.
9708 * event-loop.c (start_event_loop): Adjust call to
9709 async_enable_stdin.
9710 * tui/tui-interp.c (tui_command_loop): Adjust call to
9711 async_enable_stdin.
9712
9713 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9714
9715 Async mode fixes.
9716 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9717 * breakpoint.c (bpstat_do_actions): In async mode,
9718 don't jump to top expecting stop_bpstat to be already
9719 updated.
9720 * event-loop.c (start_event_loop): Call async_enable_stdin
9721 on exception.
9722 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9723 is not set.
9724 (command_handler): Do not setup continuation here.
9725 (command_line_handler_continuation): Move to...
9726 * top.c (command_line_handler_continuation): ... here.
9727 (execute_command): In async mode, register continuation.
9728 Don't check frame's language in running in async mode.
9729 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9730 * inf-loop.c (complete_execution): Inline into...
9731 (inferior_event_handler): ... here. Clear target_executing before
9732 doing any cleanups. Don't try to show prompt if the target was
9733 resumed.
9734 * infcmd.c (signal_command): Add support for async mode.
9735 (finish_command): Only add continuation if the target was
9736 successfully resumed.
9737 * remote.c (init_async_opts): Register to_get_thread_local_address
9738 handler.
9739 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9740 with sync_execution.
9741 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9742 on exception.
9743
9744 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9745
9746 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9747 * exec.c (exec_bfd_mtime): Define.
9748 (exec_close): Clear it.
9749 (exec_file_attach): Set it.
9750 * gdbcore.h (exec_bfd_mtime): Declare.
9751 * source.c (find_source_lines): Do not use bfd_get_mtime.
9752
9753 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9754
9755 * top.c (simplified_command_loop): Remove.
9756
9757 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9758
9759 Remove unused remote.c hooks.
9760 * remote.c (deprecated_target_resume_hook)
9761 (deprecated_target_wait_loop_hook): Remove.
9762 (remote_resume): Do not call deprecated_target_resume_hook.
9763 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9764 (remote_async_wait): Likewise.
9765
9766 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9767
9768 Implement MI notification for new threads.
9769 * doc/observer.texi (new_thread): Document.
9770 * observer.sh: Forward declare struct thread_info.
9771 * thread.c (add_thread): Notify observer.
9772
9773 * interps.h (interp_init_ftype): New parameter
9774 top_level.
9775 (interp_set): Likewise.
9776 (top_level_interpreter_data): Declare.
9777 * interps.c (interp_set): New parameter top_level.
9778 Pass it to interpreter's init function. Remember
9779 top level interpreter.
9780 (interpreter_exec_cmd): Adjust.
9781 (top_level_interpreter_data): New.
9782 * main.c (captured_main): Pass 1 for top_level
9783 parameter of interp_set.
9784 * cli/cli-interp.c (cli_interpreter_init): New
9785 parameter top_level.
9786 * tui/tui-interp.c (tui_init): New parameter top_level.
9787
9788 * mi/mi-interp.c (mi_new_thread): New.
9789 (mi_interpreter_init): If top level, register
9790 observer for new threads.
9791
9792 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
9793
9794 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9795
9796 * top.c (execute_command): Disable break and stop
9797 commands in async mode.
9798
9799 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9800
9801 revert:
9802 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9803 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9804 Call target_stop in the INF_QUIT_REQ case.
9805 * Makefile.in (inf-loop.o): Update.
9806
9807 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9808
9809 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9810 Call target_stop in the INF_QUIT_REQ case.
9811 * Makefile.in (inf-loop.o): Update.
9812
9813 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9814
9815 * top.c (execute_command): Enable break, info and interrupt
9816 commands in async mode.
9817
9818 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9819 Daniel Jacobowitz <dan@codesourcery.com>
9820
9821 * breakpoint.h (breakpoint_restore_shadows): New
9822 declaration.
9823 * breakpoint.c (breakpoint_restore_shadows): New.
9824 (read_memory_nobpt): Delete.
9825 * gdbcore.h (read_memory_nobpt): Delete declaration.
9826 * target.c (memory_xfer_partial): Call
9827 breakpoint_restore_shadows.
9828 (restore_show_memory_breakpoints)
9829 (make_show_memory_breakpoints_cleanup): New.
9830 (show_memory_breakpoints): New.
9831 * target.h (make_show_memory_breakpoints_cleanup): Declare.
9832 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9833 Make sure we see memory breakpoints when checking if
9834 breakpoint is still there.
9835 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9836 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9837 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9838 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9839
9840 2008-03-12 Pedro Alves <pedro@codesourcery.com>
9841
9842 * thread.c (add_thread): Use printf_unfiltered to print.
9843
9844 2008-03-12 Joel Brobecker <brobecker@gnat.com>
9845
9846 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9847 that is true only on x86-solaris and x86_64-solaris.
9848 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9849 with proc_get_LDT_entry.
9850
9851 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9852
9853 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9854 * config.in, configure: Regenerate.
9855 * fork-child.c (fork_inferior): Call create_tty_session.
9856 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9857 (create_tty_session): New function.
9858 * terminal.h: Declare create_tty_session.
9859
9860 2008-03-12 Alan Modra <amodra@bigpond.net.au>
9861
9862 PR 5900
9863 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9864 * mipsread.c: Include elf/internal.h.
9865 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9866 to internal range.
9867
9868 2008-03-11 Markus Deuling <deuling@de.ibm.com>
9869
9870 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9871 to get at the current architecture and at the target specific vector.
9872 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9873 remove define of I387_ST0_REGNUM.
9874
9875 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9876
9877 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9878 get at the current architecture
9879 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9880 parameter.
9881
9882 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9883 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9884
9885 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9886 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9887 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9888
9889 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9890 at the target specific vector.
9891
9892 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9893 architecture. Use gdbarch_tdep to get at the target specific vector.
9894
9895 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9896 update caller. Use gdbarch_tdep to get at the target specific vector.
9897
9898 (i386_register_to_value: Use get_frame_arch to get at the current
9899 architecture.
9900
9901 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9902 parameter.
9903
9904 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9905 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9906 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9907 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9908
9909 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9910 undef's.
9911
9912 (i387_convert_register_p, i387_register_to_value,
9913 i387_value_to_register): Update call for i386_fp_regnum_p.
9914
9915 * i387-tdep.h: Remove comment.
9916 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9917 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9918 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9919 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9920 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9921
9922 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9923
9924 * Makefile.in (fork-child.o): Update.
9925 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9926 argument. Gather all gdbserver features together.
9927 * fork-child.c (exec_wrapper): New variable.
9928 (fork_inferior): Use it.
9929 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9930 (unset_exec_wrapper_command, _initialize_fork_child): New.
9931
9932 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9933
9934 * source.c (directory_command): Modify the determination of
9935 condition of terminal "from_tty".
9936
9937 2008-03-10 Matt Rice <ratmice@gmail.com>
9938
9939 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9940
9941 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9942
9943 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9944 of the data passing to strtoulst function.
9945 (info_spu_signal_command): Likewise.
9946
9947 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9948
9949 * mi/mi-interp.c (mi_command_loop): Remove
9950 commented-out code.
9951
9952 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9953
9954 * remote.c (extended_remote_attach_1): Make local variable pid an int
9955 instead of a pid_t.
9956
9957 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9958
9959 * solib-svr4.c (svr4_same_1): New function, originally extracted
9960 from svr4_same and expanded to handle the sparc64 case.
9961 (svr4_same): Move up and reimplement using svr4_same_1.
9962 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9963
9964 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9965
9966 * MAINTAINERS: Move self to Paper trail.
9967
9968 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9969
9970 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9971 * event-loop.c (call_async_signal_handler): New.
9972 * event-loop.h (call_async_signal_handler)
9973 (gdb_call_async_signal_handler): Declare.
9974 (mark_async_signal_handler): Add comments.
9975 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9976 * mingw-hdep.c (sigint_event, sigint_handler): New.
9977 (gdb_select): Use them. Wait for the readline signal handler
9978 to finish.
9979 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9980 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9981 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9982 New.
9983 (remote_fileio_ctrl_c_signal_handler): Use
9984 gdb_call_async_signal_handler.
9985 (initialize_remote_fileio): Initialize sigint_fileio_token.
9986 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9987 not initialize tokens here.
9988 (handle_remote_sigint_twice): Likewise. Reinstall
9989 handle_remote_sigint.
9990 (async_remote_interrupt_twice): Just call interrupt_query.
9991 (cleanup_sigint_signal_handler): Do not delete tokens.
9992 (remote_interrupt, remote_interrupt_twice): Use
9993 gdb_call_async_signal_handler.
9994 (interrupt_query): Reinstall the default signal handler.
9995 (_initialize_remote): Initialize tokens here.
9996
9997 2008-03-04 Joel Brobecker <brobecker@adacore.com>
9998
9999 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
10000 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10001 Change the type of the lr register to code_ptr.
10002 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10003 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10004 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10005 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10006 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10007 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10008 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
10009
10010 2008-03-03 James E. Wilson <wilson@tuliptree.org>
10011
10012 * MAINTAINERS: Update my email address.
10013
10014 2008-03-03 Keith Seitz <keiths@redhat.com>
10015
10016 From Dave Murphy <davem@devkitpro.org>:
10017 * configure.ac: Set tcl configdir to win under mingw.
10018 * configure: Regenerate.
10019
10020 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
10021
10022 * breakpoint.c (fetch_watchpoint_value): New function.
10023 (update_watchpoint): Set and clear val_valid. Use
10024 fetch_watchpoint_value. Handle unreadable values on the
10025 value chain. Correct check for user-requested array watchpoints.
10026 (breakpoint_init_inferior): Clear val_valid.
10027 (watchpoint_value_print): New function.
10028 (print_it_typical): Use it. Do not free or clear old_val. Print
10029 watchpoints even if old_val == NULL.
10030 (watchpoint_check): Use fetch_watchpoint_value. Check for values
10031 becoming readable or unreadable.
10032 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
10033 (do_enable_watchpoint): Likewise.
10034 * breakpoint.h (struct breakpoint): Update comment for val. Add
10035 val_valid.
10036 * NEWS: Mention watchpoints on inaccessible memory.
10037
10038 2008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
10039
10040 * Makefile.in (i386-nat.o): Update.
10041 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
10042 i386_use_watchpoints.
10043 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
10044 i386_use_watchpoints.
10045 * i386-nat.c (i386_stopped_data_address): Take two arguments.
10046 (i386_stopped_by_watchpoint): Update call.
10047 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
10048 * config/i386/nm-i386.h: Conditionalize definitions on
10049 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
10050 (i386_use_watchpoints): Declare.
10051 (i386_stopped_data_address): Update.
10052 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
10053 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
10054
10055 2008-02-29 Joel Brobecker <brobecker@adacore.com>
10056
10057 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
10058 * version.in: Bump version to 6.8.50.20080229-cvs.
10059
10060 2008-02-28 Markus Deuling <deuling@de.ibm.com>
10061
10062 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
10063 properly.
10064
10065 2008-02-28 Tom Tromey <tromey@redhat.com>
10066
10067 * infcmd.c (notice_args_read): Print result of get_inferior_args.
10068
10069 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10070
10071 * infcmd.c (kill_if_already_running): Make static. Use
10072 target_require_runnable.
10073 * target.c (target_require_runnable): New.
10074 * target.h (target_require_runnable): Declare.
10075
10076 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10077
10078 * frame.c (reinit_frame_cache): Only annotate if frames were
10079 previously valid.
10080
10081 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10082
10083 * regformats/reg-ppc.dat: Rename "ps" to "msr".
10084 * regformats/reg-ppc64.dat: Likewise.
10085
10086 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10087
10088 * features/Makefile (%.dat): Emit xmltarget statement.
10089
10090 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
10091 Generate code to set gdbserver_xmltarget in init_registers_${name}.
10092
10093 * regformats/arm-with-iwmmxt.dat: Regenerate.
10094 * regformats/mips64-linux.dat: Regenerate.
10095 * regformats/mips-linux.dat: Regenerate.
10096 * regformats/rs6000/powerpc-32.dat: Regenerate.
10097 * regformats/rs6000/powerpc-64.dat: Regenerate.
10098 * regformats/rs6000/powerpc-e500.dat: Regenerate.
10099
10100 * regformats/reg-arm.dat: Add xmlarch statement.
10101 * regformats/reg-i386.dat: Likewise.
10102 * regformats/reg-i386-linux.dat: Likewise.
10103 * regformats/reg-x86-64-linux.dat: Likewise.
10104 * regformats/reg-spu.dat: Likewise.
10105
10106 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10107
10108 * remote.c (remote_wait, remote_async_wait): Stop if we receive
10109 an error.
10110
10111 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10112
10113 * utils.c (debug_timestamp): New.
10114 (vfprintf_unfiltered): Print timestamps if requested.
10115 (show_debug_timestamp): New.
10116 (initialize_utils): Register "set debug timestamp".
10117 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
10118
10119 2008-02-27 Joel Brobecker <brobecker@adacore.com>
10120
10121 * breakpoint.c (skip_prologue_sal): New function.
10122 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
10123 computed from a line number.
10124
10125 2008-02-27 Joel Brobecker <brobecker@adacore.com>
10126
10127 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
10128 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10129 Set PC register type to "code_ptr".
10130 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10131 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10132 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10133 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10134 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10135 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10136 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
10137 Regenerate.
10138
10139 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10140
10141 * regformats/regdat.sh: Rename init_registers function in
10142 generated file to init_registers_${name}.
10143
10144 * regformats/reg-crisv32.dat: Set "name" to crisv32.
10145 * regformats/reg-ppc64.dat: Set "name" to ppc64.
10146 * regformats/reg-s390x.dat: Set "name" to s390x.
10147
10148 2008-02-26 Greg Law <glaw@undo-software.com>
10149
10150 * regcache.c (registers_changed): Call reinit_frame_cache.
10151
10152 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
10153
10154 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
10155 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
10156 and svr4_fetch_objfile_link_map.
10157 * Makefile.in (sh-linux-tdep.o): Update.
10158
10159 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10160
10161 * amd64-tdep.c (amd64_classify): Add support for decimal float
10162 types.
10163 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
10164 use the struct return convention.
10165
10166 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
10167
10168 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
10169 to old format. Discard breakpoint address if shared library is
10170 unloaded.
10171 (breakpoint_1): Adjust formatting of table header accordingly.
10172
10173 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
10174
10175 * remote.c (remote_get_threadlist): If the response
10176 is empty, don't try to parse it.
10177
10178 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
10179
10180 Unbreak 'target async'.
10181 * serial.c (serial_async): Set the
10182 handler function before enabling async
10183 mode.
10184
10185 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
10186
10187 * solib-svr4.c (enable_break): Convert r_brk to a code address.
10188
10189 2008-02-21 Pedro Alves <pedro@codesourcery.com>
10190
10191 * remote.c (extended_remote_attach_1): Set attach_flag.
10192 (extended_remote_create_inferior_1): Clear attach_flag.
10193
10194 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10195
10196 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10197 r_brk_offset.
10198 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
10199 * solib-svr4.c (solib_svr4_r_brk): New.
10200 (open_symbol_file_object, svr4_current_sos): Always check the
10201 debug base.
10202 (svr4_fetch_objfile_link_map): Do not set debug_base.
10203 (enable_break): Use r_brk if it is set.
10204 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
10205 (svr4_lp64_fetch_link_map_offsets): Likewise.
10206 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
10207
10208 2008-02-20 Markus Deuling <deuling@de.ibm.com>
10209 Mark Kettenis <kettenis@gnu.org>
10210
10211 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
10212 trad_frame_saved_reg.
10213 (trad-frame.h): New include.
10214
10215 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
10216 instead of frame_obstack_zalloc.
10217 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
10218
10219 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
10220
10221 2008-02-20 Markus Deuling <deuling@de.ibm.com>
10222
10223 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
10224 from disassemble_info instead of gdbarch_byte_order.
10225
10226 * mips-tdep.c (gdb_print_insn_mips): Likewise.
10227 * arm-tdep.c (gdb_print_insn_arm): Likewise.
10228
10229 2008-02-20 Markus Deuling <deuling@de.ibm.com>
10230
10231 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
10232 gdbarch as parameter.
10233
10234 * gdbarch.{c,h}: Regenerate.
10235
10236 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10237 parameter.
10238 * mem-break.c (default_memory_insert_breakpoint)
10239 (default_memory_remove_breakpoint): Likewise.
10240 * target.h (default_memory_remove_breakpoint)
10241 (default_memory_insert_breakpoint): Likewise.
10242
10243 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10244 parameter. Replace current_gdbarch by gdbarch.
10245 * m32r-tdep.c (m32r_memory_insert_breakpoint)
10246 (m32r_memory_remove_breakpoint): Likewise.
10247
10248 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
10249
10250 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
10251
10252 2008-02-19 Joel Brobecker <brobecker@adacore.com>
10253
10254 * NEWS: Add entry describing Add support improvements.
10255
10256 2008-02-18 Markus Deuling <deuling@de.ibm.com>
10257
10258 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
10259 M68K_FP0_REGNUM.
10260
10261 2008-02-18 Markus Deuling <deuling@de.ibm.com>
10262
10263 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
10264 register_offset_hack anymore.
10265
10266 * regcache.{c,h} (register_offset_hack): Remove.
10267
10268 2008-02-18 Markus Deuling <deuling@de.ibm.com>
10269
10270 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
10271
10272 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
10273 current_gdbarch by gdbarch.
10274 (hppa64_hpux_find_global_pointer): Likewise.
10275 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
10276 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
10277 find_global_pointer.
10278
10279 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
10280 parameter.
10281 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
10282
10283 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
10284 of gdbarch_num_regs.
10285
10286 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
10287 replace current_gdbarch by gdbarch.
10288 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
10289
10290 2008-02-18 Markus Deuling <deuling@de.ibm.com>
10291
10292 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
10293 and replace current_gdbarch by gdbarch.
10294
10295 (store_register): Update call for exec_one_dummy_insn.
10296 (fetch_register, store_register): Update call of regmap.
10297
10298 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
10299 parameter and replace current_gdbarch by gdbarch.
10300
10301 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
10302 the current architecture. Update call for getregs_supplies and
10303 getfpregs_supplies.
10304 (ppcnbsd_fetch_inferior_registers): Likewise.
10305
10306 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
10307 replace current_gdbarch by gdbarch.
10308 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
10309 get_regcache_arch to get at the current architecture. Update call for
10310 getfpregs_supplies.
10311
10312 2008-02-18 Markus Deuling <deuling@de.ibm.com>
10313
10314 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
10315 variables.
10316
10317 2008-02-15 Markus Deuling <deuling@de.ibm.com>
10318
10319 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
10320
10321 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
10322
10323 * NEWS: Mention pending breakpints in MI.
10324
10325 2008-02-14 Markus Deuling <deuling@de.ibm.com>
10326
10327 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
10328
10329 2008-02-13 Markus Deuling <deuling@de.ibm.com>
10330
10331 Add script to build and test GDB using enable-targets=all.
10332
10333 * gdb_buildall.sh: New file.
10334
10335 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
10336
10337 * NEWS (New native configurations): Xtensa GNU/Linux.
10338 (New targets): Xtensa GNU/Linux.
10339 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
10340 xtensa-linux-tdep.o
10341 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
10342 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
10343 * configure.tgt (xtensa*-*-linux*): New entry.
10344 * xtensa-config.c (xtensa_tdep): New variable.
10345 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
10346 (rmap): Change format based on new macro XTREG.
10347 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
10348 * xtensa-linux-nat.c: New.
10349 * xtensa-linux-tdep.c: New.
10350 * xtensa-xtregs.c: New.
10351 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
10352 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
10353 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
10354 (xtensa_register_t): New field coprocessor.
10355 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
10356 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
10357 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
10358 Update to handle privileged registers.
10359 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
10360 (xtensa_push_dummy_call): Set windowstart register correctly.
10361 (call0_analyze_prologue): Initialize xtensa_default_isa.
10362 (xtensa_derive_tdep): New.
10363 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
10364 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
10365 Call xtensa_derive_tdep().
10366 * config/xtensa/linux.mh: New.
10367 * regformats/reg-xtensa.dat: New.
10368
10369 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
10370
10371 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
10372 (filenames.h): New include.
10373 * Makefile.in (corelow.o): Add dependency for filenames.h.
10374
10375 2008-02-08 Doug Evans <dje@google.com>
10376
10377 * source.c (find_and_open_source): Always rewrite absolute filenames.
10378
10379 2008-02-07 Doug Evans <dje@google.com>
10380
10381 * breakpoint.c: #include "hashtab.h".
10382 (ambiguous_names_p): New fn.
10383 (update_breakpoint_locations): When restoring bp enable status, don't
10384 compare function names if any functions have same name.
10385 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10386
10387 2008-02-07 Joel Brobecker <brobecker@adacore.com>
10388
10389 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10390 instead of just a VEC*. Update use of SV.
10391 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10392
10393 2007-02-07 Joel Brobecker <brobecker@adacore.com>
10394
10395 * NEWS: Put all new commands since gdb-6.7 together.
10396
10397 2007-02-07 Joel Brobecker <brobecker@adacore.com>
10398
10399 * ada-lang.c: #include "vec.h".
10400 (struct string_vector, new_string_vector, string_vector_append):
10401 Delete.
10402 (char_ptr): New typedef.
10403 (DEF_VEC_P (char_ptr)): New VEC type.
10404 (symbol_completion_add): Update profile to take the new VEC type
10405 instead of the old string_vector structure. Update code accordingly.
10406 (ada_make_symbol_completion_list): Use the new VEC type instead of
10407 the old string_vector structure, and update the code accordingly.
10408 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10409
10410 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10411
10412 * p-exp.y: Set current_type in missing places.
10413 (leftdiv_is_integer): New static variable.
10414 Typecast right operand of BINOP_DIV to long_double if both operands
10415 are integers.
10416
10417 2008-02-06 Maciej W. Rozycki <macro@mips.com>
10418
10419 * remote-mips.c (set_breakpoint): Rename to...
10420 (mips_set_breakpoint): ... this.
10421 (clear_breakpoint): Rename to...
10422 (mips_clear_breakpoint): ... this.
10423 (common_breakpoint): Rename to...
10424 (mips_common_breakpoint): ... this.
10425 (check_lsi_error): Rename to...
10426 (mips_check_lsi_error): ... this.
10427
10428 2007-02-05 Joel Brobecker <brobecker@adacore.com>
10429
10430 * language.h (struct language_defn): Add new field
10431 la_make_symbol_completion_list.
10432 * symtab.c (default_make_symbol_completion_list): Renames
10433 make_symbol_completion_list.
10434 (make_symbol_completion_list): New function.
10435 * symtab.h (default_make_symbol_completion_list): Add declaration.
10436 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10437 (auto_language, local_language): Likewise.
10438 * objc-lang.c (objc_language_defn): Likewise.
10439 * scm-lang.c (scm_language_defn): Likewise.
10440 * m2-lang.c (m2_language_defn): Likewise.
10441 * f-lang.c (f_language_defn): Likewise.
10442 * jv-lang.c (java_language_defn): Likewise.
10443 * p-lang.c (pascal_language_defn): Likewise.
10444 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10445 (minimal_language_defn): Likewise.
10446 * ada-lang.c (struct string_vector): New structure.
10447 (new_string_vector, string_vector_append, ada_unqualified_name)
10448 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10449 (ada_make_symbol_completion_list): New functions.
10450 (ada_language_defn): Set la_make_symbol_completion_list.
10451 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10452 this function is static.
10453
10454 2008-02-05 Kevin Buettner <kevinb@redhat.com>
10455
10456 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10457 to account for call site optimizations.
10458
10459 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10460
10461 * tracepoint.c (read_actions): Handle end-of-text indicator
10462 in action list properly. (Committed by Jim Blandy)
10463
10464 2008-02-05 Jim Blandy <jimb@red-bean.com>
10465
10466 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10467 pseudoregister, not an internal error.
10468 Reported by: Andrzej Zaborowski
10469
10470 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10471
10472 * varobj.c (c_value_of_variable): Use xstrdup.
10473
10474 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10475
10476 Update stored rendition of varobj value when format changes.
10477 * varobj.c (varobj_set_display_format): Recomputed
10478 print_value.
10479 (c_value_of_variable): Return print_value.
10480
10481 2008-02-03 Doug Evans <dje@google.com>
10482
10483 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10484 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10485 * valops.c (value_one): New function.
10486 * value.h (value_one): Declare.
10487
10488 Fix argument promotion for binary arithmetic ops for C.
10489 * valarith.c (unop_result_type): New fn.
10490 (binop_result_type): New fn.
10491 (value_binop): Move result type computation to binop_result_type.
10492 (value_pos, value_neg, value_complement): Move result type
10493 computation to unop_result_type.
10494
10495 PR 2384
10496 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10497 Return basetype, fieldno if found. All callers updated.
10498 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10499 objfile.
10500 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10501 * symfile.h (fill_in_vptr_fieldno): Delete.
10502
10503 2008-02-02 Doug Evans <dje@google.com>
10504
10505 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10506
10507 * typeprint.c (*): Whitespace cleanup.
10508
10509 2008-02-02 Mark Kettenis <kettenis@gnu.org>
10510 Luis Machado <luisgpm@br.ibm.com>
10511 Thiago Jung Bauermann <bauerman@br.ibm.com>
10512
10513 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10514 don't fit into registerson the stack the way GCC does.
10515
10516 2008-02-01 Joel Brobecker <brobecker@adacore.com>
10517
10518 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10519 hash table for Ada symbols. Just store the linkage name as is,
10520 and leave the demangled_name as NULL.
10521
10522 2007-02-01 Joel Brobecker <brobecker@adacore.com>
10523
10524 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10525 in the global scope.
10526 (new_symbol): Likewise.
10527
10528 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10529
10530 * breakpoint.c (break_command_1): Return void.
10531 (break_command_really): Return void. Rethrow
10532 exceptions instead of returning.
10533 (gdb_breakpoint): Remove the error_message parameter.
10534 Return void. Rename to set_breakpoint.
10535 * gdb.h (gdb_breakpoint): Rename and move to...
10536 * breakpoint.h (set_breakpoint): ...here.
10537 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10538 event hooks even if exception is thrown. Adjust to
10539 gdb_breakpoint interface changes.
10540
10541
10542 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10543
10544 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10545 float in both first and second word in the doubleword, to support
10546 old and new ABIs.
10547
10548 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10549
10550 Properly rethrow exception. This fixes errors
10551 about non-existent functions for -break-insert.
10552 * breakpoint.c (break_command_really): Use throw_exception
10553 for rethrowing. If rethrowing, don't print the exception.
10554
10555 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10556
10557 * NEWS: Mention Decimal Floating Point support.
10558
10559 2008-01-31 Joel Brobecker <brobecker@adacore.com>
10560
10561 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10562 value type to builtin_type_void_func_ptr.
10563
10564 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10565
10566 * s390-tdep.c (is_float_singleton, is_float_like,
10567 alignment_of, s390_return_value): Make checks for
10568 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10569
10570 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
10571 Thiago Jung Bauermann <bauerman@br.ibm.com>
10572
10573 * infcmd.c (default_print_registers_info): Also print hex
10574 raw contents for TYPE_CODE_DECFLOAT registers.
10575 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10576 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10577 (rs6000_register_name): Add support for DFP pseudo-registers.
10578 (rs6000_pseudo_register_type): Likewise.
10579 rs6000_pseudo_register_reggroup_p): Likewise.
10580 (ppc_pseudo_register_read): New function.
10581 (ppc_pseudo_register_write): Likewise.
10582 (rs6000_pseudo_register_read): Likewise.
10583 (rs6000_pseudo_register_write): Likewise.
10584 (e500_pseudo_register_read): Move checks to
10585 rs6000_pseudo_register_read.
10586 (e500_pseudo_register_write): Move checks to
10587 rs6000_pseudo_register_write.
10588 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10589 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10590 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10591 num_pseudo_regs to account for DFP pseudo regs.
10592
10593 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10594
10595 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10596 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10597 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10598 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10599 e500_pseudo_register_read, e500_pseudo_register_write): Use
10600 IS_SPE_PSEUDOREG macro.
10601 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10602 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10603 Remove initialization of tdep->ppc_ev31_regnum.
10604
10605 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10606
10607 * printcmd.c (print_formatted): Handle references as for unformatted
10608 prints.
10609
10610 2008-01-30 Joel Brobecker <brobecker@adacore.com>
10611
10612 * eval.c (evaluate_subexp_standard): Add handling of user
10613 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10614
10615 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10616
10617 * eval.c (evaluate_subexp_standard): Support
10618 BINOP_INTDIV opcode.
10619
10620 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10621
10622 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10623 BINOP_MAX cases.
10624 For BINOP_EXP, use length and signedness of left operand only for
10625 result, as for shifts.
10626 For integral operands to BINOP_EXP, use new integer_pow and
10627 uinteger_pow functions so as to get full range of results.
10628 (integer_pow): New function.
10629 (uinteger_pow): New function.
10630
10631 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10632
10633 Use vector for varobj_list_children interface.
10634 * gdb/varobj.c (varobj_list_children): Return vector
10635 of varobjs.
10636 * gdb/varobj.h (varobj_list_children): Adjust
10637 prototype.
10638 (varobj_p): Declare. Declare vector thereof.
10639 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10640 for varobj_list_children change.
10641 * Makefile.in (varobj_h): Update dependencies.
10642
10643 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10644
10645 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10646 TYPE_CODE_DECFLOAT arguments.
10647 (ppc64_sysv_abi_push_dummy_call) Likewise.
10648 (get_decimal_float_return_value): New function.
10649 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10650 values by calling get_decimal_float_return_value.
10651 (ppc64_sysv_abi_return_value): Likewise.
10652
10653 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
10654
10655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10656 for preprocessor macro information. Formatting changes.
10657
10658 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10659
10660 * remote.c (struct remote_state): Add cached_wait_status.
10661 (remote_exec_file): New variable.
10662 (PACKET_vAttach, PACKET_vRun): New constants.
10663 (extended_remote_restart): Do not query for status.
10664 (struct start_remote_args): New.
10665 (remote_start_remote): Take it as a second argument. Check
10666 whether the target is running. Issue an error for non-running
10667 non-extended targets. Cache the wait status. Set inferior_ptid
10668 here.
10669 (remote_open_1): Prompt to disconnect non-running targets. Make
10670 sure the target is marked running. Do not set inferior_ptid here.
10671 Update call to remote_start_remote. Do not call remote_check_symbols
10672 if the target is not running.
10673 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10674 argument. Handle a non-running target.
10675 (remote_detach): Use it.
10676 (extended_remote_detach): New.
10677 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10678 (extended_remote_attach_1, extended_remote_attach)
10679 (extended_async_remote_attach): New.
10680 (remote_vcont_resume): Remove unused variable.
10681 (remote_wait, remote_async_wait): Use any cached wait status.
10682 (putpkt_binary, getpkt): Clear any cached wait status.
10683 (extended_remoute_mourn_1): New.
10684 (extended_remote_mourn): Use it.
10685 (extended_async_remote_mourn, extended_remote_run): New.
10686 (extended_remote_create_inferior_1): New.
10687 (extended_remote_create_inferior): Use it.
10688 (extended_remote_async_create_inferior): Likewise.
10689 (remote_xfer_partial): Skip for non-executing targets.
10690 (init_extended_remote_ops): Set to_detach and to_attach.
10691 (init_extended_async_remote_ops): Likewise. Use
10692 extended_async_remote_mourn.
10693 (_initialize_remote): Register vAttach, vRun, and
10694 set remote exec-file.
10695 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10696
10697 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10698
10699 * Makefile.in (symfile.o): Update.
10700 * NEWS: Mention exec tracing support.
10701 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10702 exec events.
10703 * infcmd.c (kill_if_already_running, detach_command)
10704 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10705 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10706 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10707 targets. Apply the sysroot path to the loaded executable. Use
10708 no_shared_libraries.
10709 * linux-nat.c (linux_child_follow_fork): Print fork following
10710 messages if verbose.
10711 (kill_wait_callback): Kill again before waiting a second time.
10712 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10713 no_shared_libraries.
10714
10715 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10716
10717 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10718
10719 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10720
10721 * nto-tdep.h: Remove #include "defs.h".
10722 * nto-tdep.c: Add #include "defs.h".
10723 * Makefile.in (nto_tdep_h): Update dependencies.
10724 (nto-tdep.o): Likewise.
10725
10726 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10727
10728 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10729 and use it.
10730 (proceed, start_remote): Update call to wait_for_inferior.
10731 * inferior.h (wait_for_inferior): Update declaration.
10732 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10733 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10734 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10735 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10736
10737 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10738
10739 * varobj (adjust_value_for_child_access): Added checking for
10740 returned value from gdb_value_ind.
10741 (c_describe_child): Likewise.
10742 (cplus_describe_child): Fixed a typo.
10743
10744 2008-01-29 Jim Blandy <jimb@red-bean.com>
10745
10746 * MAINTAINERS: Update my info.
10747
10748 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10749
10750 Use multiple locations for hardware watchpoints.
10751 This eliminates the need to traverse value chain, doing
10752 various checks, in three different places.
10753
10754 * breakpoint.h (struct bp_location): New fields
10755 lengths and watchpoint_type.
10756 (struct breakpoint): Remove the val_chain field.
10757 * breakpoint.c (is_hardware_watchpoint): New.
10758 (free_valchain): Remove.
10759 (update_watchpoint): New.
10760 (insert_bp_location): For hardware watchpoint, just
10761 directly insert it.
10762 (insert_breakpoints): Call update_watchpoint_locations
10763 on all watchpoints. If we have failed to insert
10764 any location of a hardware watchpoint, remove all inserted
10765 locations.
10766 (remove_breakpoint): For hardware watchpoints, directly
10767 remove location.
10768 (watchpoints_triggered): Iterate over locations.
10769 (bpstat_stop_status): Use only first location of
10770 a resource watchpoint.
10771 (delete_breakpoint): Don't call free_valchain.
10772 (print_one_breakpoint): Don't print all
10773 locations for watchpoints.
10774 (breakpoint_re_set_one): Use update_watchpoint for
10775 watchpoints.
10776
10777 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10778
10779 Don't reset watchpoint block on solib load.
10780
10781 * breakpoint.c (insert_bp_location): For watchpoints,
10782 recompute condition.
10783 (breakpoint_re_set_one): Instead of recomputing value
10784 and condition for watchpoints, just reset value and
10785 let insert_breakpoints/insert_bp_location recompute it.
10786 Don't do anything about disabled watchpoint.
10787
10788 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10789
10790 * valarith.c (value_binop): Handle unsigned integer
10791 division by zero.
10792
10793 2008-01-28 Kevin Buettner <kevinb@redhat.com>
10794
10795 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10796 instruction pattern that appears frequently in position
10797 independent code. Fix bug in code which looks for "fmov" and
10798 backtracks if no "fmov" is found.
10799
10800 2008-01-28 Doug Evans <dje@google.com>
10801
10802 * dbxread.c (read_dbx_symtab): Fix indentation.
10803 Reformat comments to 80 columns.
10804 Move local var def closer to only use.
10805
10806 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10807
10808 * fork-child.c (SHELL_FILE): Remove #ifndef.
10809 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10810
10811 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10812
10813 * i386-tdep.c (i386_skip_noop): New function.
10814 (i386_analyze_prologue): Call i386_skip_noop function.
10815
10816 2008-01-24 Michael Snyder <msnyder@specifix.com>
10817
10818 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10819 * win32-nat.c (win32_xfer_partial): Ditto.
10820 * target.c (default_xfer_partial): Minor whitespace adjustment.
10821
10822 2008-01-24 Pedro Alves <pedro@codesourcery.com>
10823
10824 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10825 strip bit 1 even if pc doesn't point to thumb code.
10826
10827 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10828
10829 * remote.c (remote_wait): Handle SIGINT between packets.
10830 (remote_async_wait): Likewise.
10831
10832 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10833 Chris Demetriou <cgd@google.com>
10834
10835 * thread.c (add_thread_silent): Renamed
10836 from add_thread.
10837 (print_thread_events): New variable definition.
10838 (show_print_thread_events): New function.
10839 (_initialize_thread): Add "set print thread-events" and
10840 "show print thread-events" commands.
10841 (add_thread): Announce new thread.
10842 * gdbthread.h (add_thread_silent): Declare.
10843 (print_thread_events): New variable declaration.
10844 * inf-ttrace.c (inf_ttrace_wait): Don't
10845 inform about new thread, as add_thread is always
10846 called too, and will take care of that.
10847 * infrun.c (handle_inferior_event): Likewise.
10848 * procfs.c (procfs_wait): Likewise.
10849 * remote.c (remote_currthread): Likewise.
10850 * sol-thread.c (sol_thread_wait): Likewise.
10851 * win32-nat.c (get_win32_debug_event): Likewise.
10852 * linux-thread-db.c (attach_thread): Likewise.
10853 Remove the verbose parameter.
10854 (check_event): Make detach_thread be verbose
10855 only if print_thread_events is set.
10856 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10857 about new thread. This is called only from
10858 linux-thread-db.c:attach_thread, which will take care.
10859 Remove the verbose parameter.
10860 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
10861
10862 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
10863
10864 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10865
10866 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10867
10868 * breakpoint.c (break_command_really): New parameter
10869 ignore_count.
10870 (break_command_1): Pass 0 as
10871 ignore_count to break_command_really.
10872 (gdb_breakpoint): Pass ignore_count to
10873 break_command_really.
10874
10875 2008-01-21 Kevin Buettner <kevinb@redhat.com>
10876
10877 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10878 sigcontext struct via pointer.
10879 (struct sigframe comment): Update to show new field `psc'.
10880
10881 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10882
10883 * infrun.c (handle_inferior_event): If
10884 we failed to remove breakpoints, error,
10885 don't try to increment PC by hand.
10886
10887 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10888
10889 Add NetBSD/hppa target and host support.
10890
10891 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10892 (hppabsd_gregset): Move to ...
10893 (hppabsd_regset_from_core_section): Rename
10894 hppaobsd_regset_from_core_section and move to ...
10895 (hppabsd_find_global_pointer): Update comment.
10896 (hppabsd_init_abi): Make global. Do not register
10897 hppabsd_regset_from_core_section.
10898 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10899 move to ...
10900 (_initialize_hppabsd_tdep): Move to ...
10901 * hppaobsd-tdep.c: ... here. New file.
10902 * hppnbsd-tdep.c: New file.
10903 * hppnbsd-nat.c: New file.
10904 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
10905 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
10906 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10907 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
10908 * configure.host (hppa*-*-netbsd*): New entry.
10909 * configure.tgt (hppa*-*-netbsd*): New entry.
10910 (hppa*-*-openbsd*): Update.
10911 * NEWS (New native configuration): Mention NetBSD/hppa.
10912 (New targets): Mention NetBSD/hppa.
10913
10914 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10915
10916 * gdbarch.sh (function_list): Add new property bits_big_endian to
10917 gdbarch structure.
10918 * gdbarch.{c,h}: Regenerate.
10919
10920 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10921 gdbarch_bits_big_endian (comment).
10922 (unpack_field_as_long, modify_field): Likewise.
10923 * value.h: Likewise (comment).
10924 * valops.c (value_slice): Likewise.
10925 * valarith.c (value_subscript, value_bit_index): Likewise.
10926 * gdbtypes.h (field): Likewise (comment).
10927 * eval.c (evaluate_subexp_standard): Likewise.
10928 * dwarf2read.c (dwarf2_add_field): Likewise.
10929 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10930 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
10931
10932 * defs.h (BITS_BIG_ENDIAN): Remove.
10933
10934 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10935
10936 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10937 function calls.
10938 * m2-exp.y (yylex): Likewise.
10939 * objc-exp.y (yylex): Likewise.
10940
10941 * defs.h (DEPRECATED_STREQN): Remove.
10942
10943 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
10944
10945 * MAINTAINERS: Update my email address.
10946
10947 2008-01-17 Jim Blandy <jimb@codesourcery.com>
10948
10949 * README: Mention gdbserver/README.
10950
10951 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10952
10953 * valarith.c (value_binop): Handle BINOP_INTDIV
10954 for unsigned and signed integers.
10955
10956 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10957
10958 * s390-tdep.c (s390_gdbarch_init): Set default long double
10959 type to 128-bit IEEE quad.
10960
10961 2008-01-17 Joel Brobecker <brobecker@adacore.com>
10962
10963 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10964
10965 2008-01-16 Mark Kettenis <kettenis@gnu.org>
10966
10967 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10968
10969 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10970 * value.c: All callers changed.
10971
10972 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10973
10974 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10975 DEPRECATED_STREQ by its expression.
10976 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10977 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10978 (scan_xcoff_symtab): Likewise.
10979 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10980 * f-lang.c (find_common_for_function): Likewise.
10981 * objc-exp.y (parse_number): Likewise.
10982
10983 * defs.h (DEPRECATED_STREQ): Remove.
10984
10985 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10986
10987 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10988 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10989 get_frame_arch to get at the current_architecture. Update AM33_MODE
10990 call.
10991 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10992 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10993 architecture.
10994 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10995
10996 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10997
10998 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
10999 parameter.
11000 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
11001
11002 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
11003 current_gdbarch by gdbarch. Update caller.
11004
11005 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
11006 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
11007 the current architecture. Update calls of
11008 amd64_native_gregset_supplies_p.
11009 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
11010 (amd64bsd_store_inferior_registers): Likewise.
11011
11012 2008-01-16 Markus Deuling <deuling@de.ibm.com>
11013
11014 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
11015 Replace current_gdbarch by gdbarch. Update caller.
11016
11017 2008-01-16 Markus Deuling <deuling@de.ibm.com>
11018
11019 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
11020 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
11021 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
11022 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
11023 (stabsect_build_psymtabs): Fix indentation.
11024
11025 2008-01-15 Michael Snyder <msnyder@specifix.com>
11026
11027 * corelow.c (core_xfer_partial): Comment, cut/paste error.
11028
11029 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11030
11031 * win32-nat.c (win32_create_inferior): Restore code calling
11032 CloseHandle on ProcessInformation structure.
11033
11034 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
11035
11036 * configure.ac: Check for void * as 3 argument of ptrace.
11037 * configure: regenerate.
11038
11039 2008-01-11 Markus Deuling <deuling@de.ibm.com>
11040
11041 * alpha-tdep.c (alpha_heuristic_proc_start)
11042 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
11043 current_gdbarch by gdbarch.
11044
11045 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
11046 current architecture by frame_info. Update alpha_heuristic_proc_start
11047 call.
11048
11049 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
11050 get_frame_arch to get at the current architecture by frame_info. Update
11051 alpha_sigtramp_register_address call.
11052
11053 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
11054 current_gdbarch by gdbarch. Update caller.
11055 (convert_to_extended, convert_from_extended): Add endianess parameter
11056 for comparison. Update caller.
11057 (arm_extract_return_value, arm_store_return_value): Use
11058 get_regcache_arch to get at the current architecture.
11059
11060 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
11061 current_gdbarch by gdbarch. Update caller.
11062 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
11063 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
11064
11065 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
11066 gdbarch as parameter. Update caller.
11067 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
11068 current_gdbarch by gdbarch. Update caller.
11069
11070 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
11071 update caller. Replace current_gdbarch by gdbarch.
11072
11073 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
11074 the current architecture. Replace current_gdbarch by gdbarch.
11075 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
11076 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
11077 expression. Add gdbarch as parameter and replace current_gdbarch with
11078 it. Update caller.
11079 (M6811_TDEP): Remove.
11080 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
11081 architecture.
11082 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
11083 current_gdbarch by gdbarch. Update caller.
11084
11085 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
11086 update caller.
11087 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
11088 by gdbarch.
11089
11090 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
11091 caller. Relace current_gdbarch by gdbarch.
11092 (altivec_register_p, spe_register_p): Likewise.
11093 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
11094 parameter.
11095 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
11096 altivec_register_p and spe_register_p.
11097
11098 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
11099 caller. Replace current_gdbarch by gdbarch.
11100 (score_analyze_prologue): use get_frame_arch to get at the current
11101 architecture.
11102
11103 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
11104 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
11105 current_gdbarch by gdbarch. Update caller.
11106 (sparc_frame_cache): Use get_frame_arch to get at the current
11107 architecture.
11108 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
11109 sparc_analyze_prologue.
11110
11111 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
11112 parameter.
11113
11114 2008-01-11 Markus Deuling <deuling@de.ibm.com>
11115
11116 * exec.c: #include "arch-utils.h"
11117 (print_section_info): Use gdbarch_from_bfd to get at the
11118 current architecture. Replace current_gdbarch. Fix indention. Replace
11119 deprecated_print_address_numeric by paddress.
11120 * Makefile.in (exec.o) Add dependency to arch-utils.h.
11121
11122 * valprint.c (val_print_string): Replace
11123 deprecated_print_address_numeric.
11124 * tracepoint.c (trace_mention, scope_info): Likewise.
11125 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
11126 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
11127 (maintenance_check_symtabs): Likewise.
11128 * symfile.c (list_overlays_command): Likewise.
11129 * stack.c (frame_info, print_block_frame_labels): Likewise.
11130 * printcmd.c (print_address, print_address_demangle)
11131 (address_info): Likewise.
11132 * corefile.c (memory_error): Likewise.
11133 * infcmd.c (jump_command): Likewise.
11134 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
11135 (mention, delete_breakpoint): Likewise.
11136 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
11137 * dwarf2read.c (dump_die): Likewise.
11138 * ada-valprint.c (ada_val_print_1): Likewise.
11139 * f-valprint.c (f_val_print): Likewise.
11140 * linux-fork.c (info_forks_command): Likewise.
11141 * m32r-com.c (m32r_load_section, m32r_load)
11142 (m32r_upload_command): Likewise.
11143
11144 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
11145
11146 2008-01-11 Markus Deuling <deuling@de.ibm.com>
11147
11148 * gdbarch.sh (skip_prologue): Add gdbarch
11149 as parameter.
11150 * gdbarch.{c,h}: Regenerate.
11151
11152 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
11153 * amd64-tdep.c (amd64_skip_prologue): Likewise.
11154 * avr-tdep.c (avr_skip_prologue): Likewise.
11155 * cris-tdep.c (cris_skip_prologue): Likewise.
11156 * frv-tdep.c (frv_skip_prologue): Likewise.
11157 * h8300-tdep.c (h8300_skip_prologue): Likewise.
11158 * hppa-tdep.c (hppa_skip_prologue): Likewise.
11159 * i386-tdep.c (i386_skip_prologue): Likewise.
11160 * ia64-tdep.c (ia64_skip_prologue): Likewise.
11161 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
11162 * m32r-tdep.c (m32r_skip_prologue): Likewise.
11163 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
11164 * m68k-tdep.c (m68k_skip_prologue): Likewise.
11165 * m88k-tdep.c (m88k_skip_prologue): Likewise.
11166 * mep-tdep.c (mep_skip_prologue): Likewise.
11167 * mips-tdep.c (mips_skip_prologue): Likewise.
11168 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
11169 * mt-tdep.c (mt_skip_prologue): Likewise.
11170 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
11171 * score-tdep.c (score_skip_prologue): Likewise.
11172 * sh64-tdep.c (sh64_skip_prologue): Likewise.
11173 * sh-tdep.c (sh_skip_prologue): Likewise.
11174 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
11175 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
11176 * spu-tdep.c (spu_skip_prologue): Likewise.
11177 * v850-tdep.c (v850_skip_prologue): Likewise.
11178 * vax-tdep.c (vax_skip_prologue): Likewise.
11179 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
11180 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
11181
11182 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
11183 current_gdbarch by gdbarch.
11184 * m32c-tdep.c (m32c_skip_prologue): Likewise.
11185 * s390-tdep.c (s390_skip_prologue): Likewise.
11186
11187 2008-01-10 Doug Evans <dje@google.com>
11188
11189 * defs.h (struct continuation_arg): Fix typo in comment.
11190 * target.c (target_translate_tls_address): Fix comment spelling error.
11191
11192 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
11193
11194 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
11195 (DOUBLEST_SCAN_FORMAT): Likewise.
11196 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
11197 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
11198 * c-exp.y (parse_number): Likewise.
11199 * jv-exp.y (parse_number): Likewise.
11200 * objc-exp.y (parse_number): Likewise.
11201 * p-exp.y (parse_number): Likewise.
11202
11203 2008-01-09 Joel Brobecker <brobecker@adacore.com>
11204
11205 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
11206 (check_typedef): Likewise.
11207
11208 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
11209
11210 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
11211 seen_double_big_d, treat the new H, D, and DD modifiers as length
11212 modifiers.
11213
11214 2008-01-08 Joel Brobecker <brobecker@adacore.com>
11215
11216 * dwarf2read.c (read_enumeration_type): Add comment.
11217
11218 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
11219
11220 * config.in: Regenerate.
11221
11222 2008-01-08 Joel Brobecker <brobecker@adacore.com>
11223
11224 * ada-lang.c (ada_convert_actual): Renames convert_actual.
11225 Make non-static.
11226 (ada_convert_actuals): Delete.
11227 * ada-lang.h (ada_convert_actual): Add declaration.
11228 (ada_convert_actuals): Remove declaration.
11229 * infcall.c: #include "ada-lang.h".
11230 (value_arg_coerce): Add new parameter sp. Update function
11231 documetnation. Add handling of Ada function call parameters.
11232 * Makefile.in (infcall.o): Update dependencies.
11233
11234 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
11235
11236 * ada-lang.c (ensure_lval): Fix value lval kind.
11237 (convert_actual): Add handling for arguments passed by reference.
11238
11239 2008-01-08 Doug Evans <dje@google.com>
11240
11241 * dbxread.c (read_dbx_symtab): Fix indentation.
11242
11243 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
11244
11245 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
11246 (valarith.o): Depend on dfp.h.
11247 (valops.o): Likewise.
11248 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
11249 (set_decnumber_context): New function.
11250 (decimal_check_errors): Likewise.
11251 (decimal_from_number): Likewise.
11252 (decimal_to_number): Likewise.
11253 (decimal_from_string): Use set_decnumber_context and
11254 decimal_check_errors.
11255 (decimal_from_integral): New function.
11256 (decimal_from_floating): Likewise.
11257 (decimal_to_double): Likewise.
11258 (promote_decimal): Likewise.
11259 (decimal_binop): Likewise.
11260 (decimal_is_zero): Likewise.
11261 (decimal_compare): Likewise.
11262 (decimal_convert): Likewise.
11263 * dfp.h (decimal_from_integral): New prototype.
11264 (decimal_from_floating): Likewise.
11265 (decimal_to_double): Likewise.
11266 (decimal_binop): Likewise.
11267 (decimal_is_zero): Likewise.
11268 (decimal_compare): Likewise.
11269 (decimal_convert): Likewise.
11270 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
11271 call to value_from_decfloat.
11272 * valarith.c: Include dfp.h.
11273 (value_args_as_decimal): New function.
11274 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
11275 (value_logical_not): Likewise.
11276 (value_equal): Likewise.
11277 (value_less): Likewise.
11278 (value_pos): Likewise.
11279 (value_neg): Formatting fix.
11280 * valops.c: Include dfp.h.
11281 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
11282 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
11283 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
11284 (value_from_decfloat): Remove expect_type argument.
11285 * value.h (value_from_decfloat): Update prototype.
11286
11287 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
11288
11289 Ignore change in name of dynamic linker during
11290 execution on Solaris. This also unbreaks pending breakpoints.
11291
11292 * solist.h (struct target_so_ops): New field same.
11293 * solib-svr4.c (svr4_same): New.
11294 (_initialize_svr4_solib): Register svr4_same.
11295 * solib.c (update_solib_list): Use ops->same, if available.
11296
11297 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
11298
11299 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
11300 when using MS-DOS paths.
11301
11302 2008-01-05 Pedro Alves <pedro@codesourcery.com>
11303
11304 * NEWS: Mention --pid and --core command line behaviour changes.
11305
11306 2008-01-05 Pedro Alves <pedro@codesourcery.com>
11307
11308 * main.c (captured_main): Remove 'count' varible and the
11309 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
11310 --pid options were issued simultaneously. If an explicit pid
11311 option was passed, don't fallback to core file. Detect extra
11312 arguments better in the presence of explicit pid or core
11313 arguments.
11314
11315 2008-01-05 Joel Brobecker <brobecker@adacore.com>
11316
11317 * ada-lang.c (ada_which_variant_applies): Correctly compute
11318 the value of the discriminant when the variant record is packed.
11319
11320 2008-01-04 Joel Brobecker <brobecker@adacore.com>
11321
11322 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
11323 that are used to differentiate homonyms.
11324
11325 2008-01-04 Jerome Guitton <guitton@adacore.com>
11326
11327 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
11328 when the type is an anonymous pointer type.
11329 (ada_check_typedef): Avoid a seg fault when the type is null.
11330 * ada-typeprint.c (print_array_type): Add support for pointer
11331 to packed arrays.
11332
11333 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
11334
11335 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
11336
11337 2008-01-04 Joel Brobecker <brobecker@adacore.com>
11338
11339 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
11340 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
11341
11342 2008-01-04 Joel Brobecker <brobecker@adacore.com>
11343
11344 * ada-exp.y (chop_separator): New function.
11345 (write_selectors): Rewrite to re-use chop_separator.
11346 (ada_nget_field_index, get_symbol_field_type): New functions.
11347 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
11348 expressions.
11349
11350 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
11351
11352 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
11353 of SYMBOL_VALUE when working with function symbols.
11354
11355 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11356
11357 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
11358 expressions. These expressions do not need to be rewriten.
11359
11360 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11361
11362 * dwarf2read.c (read_enumeration_type): Flag type as stub if
11363 the given die is a declaration.
11364
11365 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11366
11367 * ada-lang.c (ada_array_bound_from_type): Make non-static.
11368 Handle properly the case when the index type is an enumerated type.
11369 Do not return the subtype of the bounds type, just return the
11370 bounds type directly - this is not needed and is more consistent
11371 with what we do for arrays when no XA parallel type exists.
11372
11373 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11374
11375 * ada-lang.c (static_unwrap_type): Add forward declaration.
11376 (template_to_static_fixed_type): Fields of dynamic types sometimes
11377 also need to be unwrapped. Take this into account.
11378 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11379 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11380 * ada-typeprint.c (ada_print_type): Get the typename from
11381 the original type, not the base type.
11382
11383 2008-01-03 Jerome Guitton <guitton@adacore.com>
11384
11385 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
11386 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
11387 Update calls to ada_to_fixed_type.
11388 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11389 for the tag.
11390 (ada_to_fixed_type): Add check_tag parameter; do not look for
11391 tag if null. When looking for a tag, use a fixed record type.
11392 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11393 * ada-valprint.c (printable_val_type, ada_value_print): Update
11394 calls to ada_to_fixed_type.
11395
11396 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
11397
11398 * doublest.c (convert_floatformat_to_doublest): Call
11399 floatformat_to_doublest instead of floatformat_to_double and use
11400 DOUBLEST variables.
11401 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11402 instead of floatformat_from_double and use DOUBLEST variables.
11403
11404 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11405
11406 * MAINTAINERS (Write After Approval): Add self.
11407
11408 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11409
11410 * symfile.c (set_initial_language): Make non-static.
11411 * symfile.h (set_initial_language): Add declaration.
11412 * language.c: #include "symfile.h".
11413 (set_language): Call set_initial_language if the frame language
11414 could not be determined.
11415
11416 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11417
11418 * eval.c (evaluate_subexp_for_address): Provide frame address to
11419 locate_var_value only if it will be needed.
11420
11421 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11422
11423 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11424
11425 2008-01-02 Joel Brobecker <brobecker@adacore.com>
11426
11427 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11428 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11429 This is needed to make sure that any other treatment applied
11430 to the resulting value does not fail for spurious reason,
11431 such as trying to take the address of this value.
11432
11433 2008-01-02 Joel Brobecker <brobecker@adacore.com>
11434
11435 * ada-lang.c (ada_value_equal): Dereference reference types when
11436 comparing arrays.
11437
11438 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11439
11440 Updated copyright notices for most files.
11441
11442 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11443
11444 * win32-nat.c (psapi_module_handle): Remove static.
11445 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11446 return first module found if base_address is zero. Don't initialize
11447 psapi function pointers here. Convert to cygwin paths when
11448 appropriate.
11449 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11450 executable name. Use get_module_name when that fails or when
11451 !__CYGWIN__.
11452 (_initialize_psapi): New function. Initialize psapi stuff before it is
11453 needed or issue a warning if it is not found. Move psapi_module_handle
11454 here.
11455
11456 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11457
11458 * ada-lang.c (ada_remove_trailing_digits): New function.
11459 (ada_remove_po_subprogram_suffix): New function.
11460 (ada_decode): Improve. Move the description of the algorithm
11461 directly inside the code, instead of in the function global
11462 description.
11463
11464 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11465
11466 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11467 and always print the dereferenced value.
11468
11469 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11470
11471 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11472 of the case where the first argument is a reference.
11473 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11474
11475 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11476
11477 Implement support for Ada interface types.
11478
11479 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11480 (ada_is_ignored_field): Ignore fields that are a dispatch table
11481 of a tagged type.
11482
11483 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11484
11485 * top.c (print_gdb_version): Update copyright year.
11486
11487 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11488
11489 * ChangeLog-2007: New ChangeLog rotation.
11490 * ChangeLog: Reset for 2008.
11491 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11492 ChangeLog-2007.
11493
11494 For older changes see ChangeLog-2007.
11495 \f
11496 Local Variables:
11497 mode: change-log
11498 left-margin: 8
11499 fill-column: 74
11500 version-control: never
11501 coding: utf-8
11502 End: