* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-11-24 Jerome Guitton <guitton@adacore.com>
2
3 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
4 the frame address in block instead of the return address to
5 locate the mdebug PDR of the frame.
6
7 2008-11-21 Joel Brobecker <brobecker@adacore.com>
8
9 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
10
11 * breakpoint.h (enum bpstat_what_main_action): Remove
12 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
13 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
14 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
15 variable table.
16 * infrun.c (wait_for_inferior): Remove handling of
17 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
18
19 2008-11-21 Tom Tromey <tromey@redhat.com>
20
21 * configure: Rebuild.
22 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
23 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
24
25 2008-11-21 Tom Tromey <tromey@redhat.com>
26
27 * python/python-internal.h (PyGILState_Ensure): New define.
28 (PyGILState_Release): Likewise.
29 (PyEval_InitThreads): Likewise.
30 (PyThreadState_Swap): Likewise.
31 (PyEval_InitThreads): Likewise.
32 * python/python.c (_initialize_python): Initialize threads.
33 Release GIL.
34 (eval_python_from_control_command): Acquire GIL.
35 (python_command): Likewise.
36 * python/python-internal.h (make_cleanup_py_restore_gil):
37 Declare.
38 * python/python-utils.c (py_gil_restore): New function.
39 (make_cleanup_py_restore_gil): Likewise.
40
41 2008-11-20 Doug Evans <dje@google.com>
42
43 * frame.c (frame_debug_got_null_frame): Remove file arg.
44 All callers updated.
45
46 2008-11-20 Pedro Alves <pedro@codesourcery.com>
47
48 * infrun.c (resume): If following a fork, also reset regcache,
49 gdbarch and pc.
50
51 2008-11-20 Doug Evans <dje@google.com>
52
53 * printcmd.c (sym_info): Don't print the offset if it's zero.
54
55 2008-11-20 Pedro Alves <pedro@codesourcery.com>
56
57 * infrun.c (resume): If following a fork, reread the current
58 thread. Avoid dereferencing a possibly dangling pointer.
59
60 2008-11-19 Doug Evans <dje@google.com>
61
62 * inferior.h (proceed_to_finish): Delete, unused.
63 (stop_registers): Tweak comment.
64 * infrun.c (stop_registers): Tweak comment.
65
66 2008-11-19 Kevin Buettner <kevinb@redhat.com>
67
68 * frv-tdep.c (frv_skip_main_prologue): New function.
69 (frv_gdbarch_init): Register frv_skip_main_prologue.
70 * solib-frv.c (fetch_loadmap): Return early when no segments are
71 found.
72 (frv_relocate_main_executable): Return early when both interpreter
73 and executable loadmap addresses are zero.
74
75 2008-11-19 Bob Wilson <bob.wilson@acm.org>
76
77 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
78 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
79 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
80 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
81 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
82 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
83 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
84 (xtensa_submask15): Adjust register numbers.
85 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
86 (xtensa_regmap_table): Add entry for scompare1.
87 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
88 and scompare1.
89
90 2008-11-19 Pedro Alves <pedro@codesourcery.com>
91
92 * remote.c (escape_buffer): New.
93 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
94 sure debug output printing a packet buffer goes through a single
95 fprintf_unfiltered call.
96 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
97 output with a newline if it wasn't going to already.
98
99 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
100
101 * maint.c (maintenance_translate_address): Fix a buglet.
102
103 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
104
105 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
106 rs6000/powerpc-isa205-altivec32l-expedite,
107 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
108 rs6000/powerpc-isa205-altivec64l-expedite,
109 powerpc-isa205-vsx64l-expedite): New variables.
110 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
111 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
112 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
113 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
114 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
115 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
116
117 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
118
119 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
120 offset for full 64-bit slot of FPSCR when in 32-bits.
121 (ppc_linux_read_description): Return target description with 64-bit
122 FPSCR when inferior is running on an ISA 2.05 or later processor.
123 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
124 initialize_tdec_powerpc_isa205_32l,
125 initialize_tdec_powerpc_isa205_altivec32l,
126 initialize_tdec_powerpc_isa205_vsx32l,
127 initialize_tdec_powerpc_isa205_64l,
128 initialize_tdec_powerpc_isa205_altivec64l and
129 initialize_tdec_powerpc_isa205_vsx64l.
130 * ppc-linux-tdep.h: Add external declaration for
131 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
132 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
133 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
134 * features/rs600/powerpc-fpu-isa205.xml: New file.
135 * features/rs600/powerpc-isa205-32l.xml: New file.
136 * features/rs600/powerpc-isa205-64l.xml: New file.
137 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
138 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
139 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
140 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
141 * features/rs600/powerpc-isa205-32l.c: Generate.
142 * features/rs600/powerpc-isa205-64l.c: Generate.
143 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
144 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
145 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
146 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
147
148 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
149
150 * objfiles.h: New MULTI_OBJFILE_P macro.
151 * printcmd.c (sym_info): Print object name.
152 * maint.c (maintenance_translate_address): Likewise.
153
154 2008-11-18 Joel Brobecker <brobecker@adacore.com>
155
156 * NEWS: Document the removal of "catch load" and "catch unload".
157
158 2008-11-17 Doug Evans <dje@google.com>
159
160 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
161 on error messages.
162
163 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
164
165 PR gdb/2250
166 * infrun.c (clear_proceed_status_thread): New function.
167 (clear_proceed_status_callback): New function.
168 (clear_proceed_status): In all-stop mode, clear per-thread
169 proceed status of *all* threads, not only the current.
170 (handle_inferior_event): In all-stop mode, if we're stepping
171 one thread, but got some inferior event in another thread
172 that does not cause GDB to break to the user interface,
173 ensure the interrupted stepping operation continues in the
174 original thread.
175 (currently_stepping): Move thread-related tests to ...
176 (currently_stepping_thread): ... this new function.
177 (currently_stepping_callback): New function.
178
179 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
180
181 Implement =thread-selected notification.
182
183 * mi/mi-common.h (struct mi_interp): New, moved from ...
184 * mi/mi-interp.c: ...here.
185 * mi/mi-main.c (mi_execute_command): If the thread changed
186 as result of command, report that.
187
188 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
189
190 Implement continue/interrupt of thread groups.
191
192 * mi/mi-main.c (proceed_thread_callback): New.
193 (mi_cmd_exec_continue): If --thread-group is specified, resume all
194 threads in that group.
195 (interrupt_thread_callback): New.
196 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
197 all threads in that group.
198
199 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
200
201 Implement '-target-detach pid'.
202
203 * infcmd.c (detach_command): Make nonstatic.
204 * inferior.h (detach_command): Declare.
205 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
206 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
207 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
208
209 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
210
211 Include group-id in thread-created notification.
212
213 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
214 group id in the output.
215
216 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
217
218 Notification for attach/detach.
219
220 * inferior.c: Call the process observers.
221 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
222 (mi_interpreter_init): Register the above.
223
224 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
225
226 Implement -list-thread-groups.
227
228 * thread.c (print_thread_info): New parameter pid, to print
229 threads of specific process.
230 * gdbthread.h (print_thread_info): New parameter pid.
231 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
232 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
233 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
234 (print_one_process, mi_cmd_list_thread_groups): New.
235
236 2008-11-16 Joel Brobecker <brobecker@adacore.com>
237
238 Remove some unused macros related to the old load/unload catchpoints.
239
240 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
241 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
242 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
243
244 2008-11-16 Joel Brobecker <brobecker@adacore.com>
245
246 Remove support for catch load and catch unload commands.
247
248 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
249 (struct breakpoint): Remove fields dll_pathname and
250 triggered_dll_pathname.
251 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
252 * breakpoint.c (ep_is_catchpoint): Remove handling of
253 bp_catch_load and bp_catch_unload.
254 (print_it_typical, bpstat_check_location, bpstat_what)
255 (print_one_breakpoint_location, print_one_breakpoint_location)
256 (user_settable_breakpoint, allocate_bp_location)
257 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
258 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
259 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
260 (catch_load_command_1, catch_unload_command_1): Delete.
261 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
262 command creation.
263 * infrun.c (handle_inferior_event): Remove the handling of
264 load/unload catchpoint events.
265
266 2008-11-15 Joel Brobecker <brobecker@adacore.com>
267
268 From Jerome Guitton <guitton@adacore.com>
269 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
270 New function.
271 (dwarf_decode_lines): Detect null file numbers. Detect the end of
272 the line program sequence when no end sequence is emitted.
273
274 2008-11-15 Joel Brobecker <brobecker@adacore.com>
275
276 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
277 type dereferencing.
278
279 2008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
280
281 * NEWS: Mention sparc64-linux-gnu gdbserver support.
282
283 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
284
285 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
286 * regformats/reg-sparc64.dat: New file.
287
288 2008-11-14 Tom Tromey <tromey@redhat.com>
289
290 PR mi/2549:
291 * mi/mi-main.c (get_register): Use get_formatted_print_options.
292
293 2008-11-13 Joel Brobecker <brobecker@adacore.com>
294
295 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
296
297 2008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
298
299 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
300 AT_EXECFN. Re-sort AT_SECURE.
301
302 2008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
305
306 2008-11-13 Joel Brobecker <brobecker@adacore.com>
307
308 * ia64-tdep.c: Remove commented out #define.
309
310 2008-11-12 Joel Brobecker <brobecker@adacore.com>
311
312 From Joel Sherrill <joel.sherrill@oarcorp.com>
313 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
314 instead of the "gdbsim_ops" global.
315
316 2008-11-11 Doug Evans <dje@google.com>
317
318 * infcall.c (call_function_by_hand): Handle inferior exit.
319
320 2008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
321
322 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
323 missing struct target_ops argument.
324
325 2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
326
327 * MAINTAINERS: Add myself for write after approval privileges.
328
329 2008-11-10 Tom Tromey <tromey@redhat.com>
330
331 * gdbtypes.c (copy_type_recursive): Clear new fields.
332
333 2008-11-10 Tom Tromey <tromey@redhat.com>
334
335 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
336 cleanups on early return.
337
338 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
339
340 Kill pthread_ops_hack
341
342 * target.h (struct target_ops): Make to_attach, to_detach,
343 to_create_inferior and to_mourn_inferior accept a pointer
344 to struct target_ops.
345 (target_attach, target_create_inferior, target_create_inferior):
346 Convert from macros to function. Find the right target to
347 invoke a method of.
348 (find_default_attach, find_default_create_inferior): New parameter
349 ops.
350 * corefile.c (core_file_command): Pass target to to_detach.
351 * corelow.c (core_detach): Add 'ops' parameter.
352 * fork-child.c (fork_inferior): Return the pid. Allow
353 init_trace_fun to be NULL.
354 * inf-ptrace (ptrace_ops_hack): Remove.
355 (inf_ptrace_him): Remove, moving all logic into....
356 (inf_ptrace_create_inferior): ... here. Push the target
357 passed as parameter.
358 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
359 Push/pop target passed as parameter, no ptrace_ops_hack.
360 (inf_ptrace_target): Don't remember result.
361 * inferior.h (fork_inferior): Adjust prototype.
362 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
363 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
364 Pass it to linux_ops target.
365 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
366 New parameter ops. Pass it to the target beneath.
367 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
368 (extended_remote_create_inferior): New parameter ops. Pass it
369 further.
370 * target.c (debug_to_attach, debug_to_detach)
371 (debug_to_mourn_inferior): New parameter ops.
372 (target_create_inferior): New.
373 (update_current_target): Do not inherit to_attach, to_detach,
374 to_create_inferiour, to_mourn_inferior. Do not default
375 to_detach and to_mourn_inferior.
376 (target_detach): Find the right target to use.
377 (target_mourn_inferior): New.
378 (find_default_attach, find_default_create_inferior): New parameter
379 ops. Pass the found target when calling its method.
380 (init_dummy_target): Provide fallback definition of to_detach.
381 (target_attach): New.
382 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
383 (debug_to_mourn_inferiour): New parameter ops.
384 * aix-thread.c: Adjust.
385 * bsd-uthread.c: Adjust.
386 * gnu-nat.c: Adjust.
387 * go32-nat.c: Adjust.
388 * hpux-thread.c: Adjust.
389 * inf-ttrace.c: Ajust.
390 * monitor.c: Adjust.
391 * nto-procfs.c: Adjust.
392 * procfs.c: Adjust.
393 * remote-m32r-sdi.c: Adjust.
394 * remote-mips.c: Adjust.
395 * remote-sim.c: Adjust.
396 * rs6000-nat.c: Adjust.
397 * sol-thread.c: Adjust.
398 * win32-nat.c: Adjust.
399 * dec-thread.c: Adjust.
400
401 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
402
403 * thread.c (print_thread_info): Eliminate now useless checks
404 for exited threads.
405
406 2008-11-06 Pedro Alves <pedro@codesourcery.com>
407
408 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
409 to 0.
410
411 2008-11-05 Pedro Alves <pedro@codesourcery.com>
412
413 * remote.c (notice_new_inferiors): Add a new inferior only when
414 we're going to add a new thread.
415
416 2008-11-05 Pedro Alves <pedro@codesourcery.com>
417
418 * defs.h (add_inferior_continuation)
419 (do_all_inferior_continuations)
420 (discard_all_inferior_continuations): Declare.
421 * utils.c (add_inferior_continuation)
422 (do_all_inferior_continuations)
423 (discard_all_inferior_continuations): New.
424 * inferior.h (struct inferior) <continuations>: New field.
425 * inferior.c (free_inferior): Discard all the inferior
426 continuations.
427 * inf-loop.c (inferior_event_handler): Do all current inferior
428 continuations.
429 * infcmd.c (attach_command): Register an inferior continuation
430 instead of a thread continuation.
431 * infrun.c (handle_inferior_event): If stop_soon is
432 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
433
434 2008-11-04 Pedro Alves <pedro@codesourcery.com>
435
436 * inf-loop.c (inferior_event_handler): On INF_ERROR and
437 INF_REG_EVENT throwing, don't call target_async or pop_target.
438 Call pop_all_targets_above.
439 * remote.c (remote_close): Call remote_terminal_ours. Don't call
440 signal or target_async.
441
442 2008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * eval.c (evaluate_subexp_standard): Assert that there is at
445 least one array dimension.
446
447 2008-11-03 Vladimir Prus <vladimir@codesourcery.com>
448
449 Make attach_command exception-safe
450 * infcmd.c (attach_command): Call async_enable_stdin
451 if exception is thrown.
452
453 2008-11-03 Pedro Alves <pedro@codesourcery.com>
454
455 * gdbarch.sh (has_global_solist): Mention global breakpoints.
456 * gdbarch.h: Regenerate.
457
458 2008-11-03 Pedro Alves <pedro@codesourcery.com>
459
460 * remote.c (remote_start_remote): If the solib list is global,
461 fetch libraries and insert breakpoints after connecting.
462 * infcmd.c (post_create_inferior): If the solist is shared between
463 inferiors, no need to refetch it on every new inferior.
464 (detach_command): If the shared library list is shared between
465 inferiors, then don't clear it on every inferior detach.
466 * gdbarch.sh (has_global_solist): New.
467 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
468 gdbarch_has_global_solist.
469 * target.c (target_pre_inferior): If the shared library list is
470 shared between inferiors, then don't clear it here, neither
471 invalidate the memory regions or clear the target description.
472 (target_detach): If the shared library list is shared between
473 inferiors, then don't remove breakpoints from the target here.
474 (target_disconnect): Comment.
475 * solib.c (update_solib_list): Check for null_ptid.
476 * breakpoint.c (insert_breakpoints, update_global_location_list):
477 If the shared library list is shared between inferiors, insert
478 breakpoints even if there's no execution.
479 (breakpoint_init_inferior): If the shared library list is shared
480 between inferiors, don't delete breakpoints or mark them
481 uninserted here.
482
483 * gdbarch.c, gdbarch.h: Regenerate.
484
485 2008-10-31 Pedro Alves <pedro@codesourcery.com>
486
487 * inferior.h (inferior_ignoring_leading_exec_events): Delete
488 declaration.
489
490 2008-10-31 Pedro Alves <pedro@codesourcery.com>
491
492 * inferior.h (write_inferior_status_register): Delete.
493 * infrun.c (write_inferior_status_register): Delete.
494
495 2008-10-30 Tom Tromey <tromey@redhat.com>
496
497 * value.c (coerce_array): Use check_typedef.
498
499 2008-10-30 Tom Tromey <tromey@redhat.com>
500
501 * cli/cli-logging.c (handle_redirections): Make a cleanup.
502 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
503 * regcache.c (regcache_print): Make a cleanup.
504 * maint.c (maintenance_print_architecture): Make a cleanup.
505 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
506
507 2008-10-30 Tom Tromey <tromey@redhat.com>
508
509 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
510 (do_close_cleanup): Don't free 'fd'.
511
512 2008-10-30 Tom Tromey <tromey@redhat.com>
513
514 * source.c (symtab_to_fullname): Test 'r >= 0'.
515 (psymtab_to_fullname): Likewise.
516 (get_filename_and_charpos): Make a cleanup.
517 (forward_search_command): Likewise.
518 (reverse_search_command): Likewise.
519 * exec.c (exec_file_attach): Close scratch_chan on failure.
520 * nto-procfs.c (procfs_open): Make a cleanup.
521 (procfs_pidlist): Likewise.
522 (do_closedir_cleanup): New function.
523
524 2008-10-30 Andreas Schwab <schwab@suse.de>
525
526 * infcmd.c (construct_inferior_arguments): Handle newlines
527 specially.
528
529 2008-10-30 Joel Brobecker <brobecker@adacore.com>
530
531 * breakpoint.h (enum bptype): Delete bp_catch_exec.
532 * breakpoint.c (insert_catchpoint): Remove handling for
533 bp_catch_exec breakpoint kinds.
534 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
535 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
536 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
537 (print_one_breakpoint_location, user_settable_breakpoint)
538 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
539 (allocate_bp_location, mention, breakpoint_re_set_one)
540 (disable_command, enable_command): Likewise.
541 (create_exec_event_catchpoint): Delete.
542 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
543 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
544 New functions.
545 (catch_exec_breakpoint_ops): New static global.
546 (catch_exec_command_1): Use create_catchpoint instead of
547 create_exec_event_catchpoint to create the exec catchpoint.
548
549 2008-10-28 Tom Tromey <tromey@redhat.com>
550
551 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
552 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
553 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
554 (cli-utils.o): Remove.
555 * cli/cli-utils.c: Remove.
556 * cli/cli-utils.h: Remove.
557
558 2008-10-28 Tom Tromey <tromey@redhat.com>
559
560 * varobj.c (value_get_print_value): Include valprint.h.
561 (value_get_print_value): Use get_formatted_print_options.
562 * value.h (struct value_print_options): Declare.
563 (value_print, val_print, common_val_print, val_print_string):
564 Update.
565 * value.c: Include valprint.h.
566 (show_values): Use get_user_print_options.
567 (show_convenience): Likewise.
568 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
569 declare.
570 (struct value_print_options): New type.
571 (vtblprint, unionprint, addressprint, objectprint, print_max,
572 inspect_it, repeat_count_threshold, output_format,
573 stop_print_at_null): Don't declare.
574 (user_print_options, get_user_print_options,
575 get_raw_print_options, get_formatted_print_options): Declare.
576 (print_array_indexes_p): Don't declare.
577 (maybe_print_array_index, val_print_array_elements): Update.
578 * valprint.c (print_max): Remove.
579 (user_print_options): New global.
580 (get_user_print_options, get_raw_print_options,
581 get_formatted_print_options): New functions.
582 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
583 prettyprint_structs, prettyprint_arrays, unionprint,
584 addressprint): Remove.
585 (val_print): Remove format, deref_ref, pretty arguments; add
586 options. Update.
587 (common_val_print): Likewise.
588 (print_array_indexes_p): Remove.
589 (maybe_print_array_index): Remove format, pretty arguments; add
590 options. Update.
591 (val_print_array_elements): Remove format, deref_ref, pretty
592 arguments; add options. Update.
593 (val_print_string): Add options argument. Update.
594 (_initialize_valprint): Use user_print_options.
595 (output_format): Remove.
596 (set_output_radix_1): Use user_print_options.
597 * typeprint.c: Include valprint.h.
598 (objectprint): Don't declare.
599 (whatis_exp): Use get_user_print_options.
600 * tui/tui-regs.c: Include valprint.h.
601 (tui_register_format): Use get_formatted_print_options.
602 * tracepoint.c: Include valprint.h.
603 (addressprint): Don't declare.
604 (trace_mention): Use get_user_print_options.
605 (tracepoints_info): Likewise.
606 * stack.c (print_frame_args): Use get_raw_print_options.
607 (print_frame_info): Use get_user_print_options.
608 (print_frame): Likewise.
609 * sh64-tdep.c: Include valprint.h
610 (sh64_do_register): Use get_formatted_print_options.
611 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
612 pretty arguments; add options.
613 (scm_scmlist_print): Likewise. Update.
614 (scm_scmval_print): Likewise.
615 (scm_val_print): Likewise.
616 (scm_value_print): Remove format, pretty arguments; add options.
617 Update.
618 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
619 Update.
620 * scm-lang.c (scm_printstr): Add options argument.
621 * python/python-value.c: Include valprint.h.
622 (valpy_str): Use get_user_print_options.
623 * printcmd.c: Include valprint.h.
624 (addressprint): Don't declare.
625 (inspect_it): Remove.
626 (print_formatted): Remove format option; add options. Update.
627 (print_scalar_formatted): Likewise.
628 (print_address_demangle): Use get_user_print_options.
629 (do_examine): Use get_formatted_print_options.
630 (print_command_1): Likewise.
631 (output_command): Use get_formatted_print_options.
632 (do_one_display): Likewise.
633 (print_variable_value): Use get_user_print_options.
634 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
635 pretty arguments; add options. Update.
636 (pascal_value_print): Remove format, pretty arguments; add
637 options. Update.
638 (vtblprint, objectprint): Don't declare.
639 (pascal_static_field_print): Remove.
640 (pascal_object_print_value_fields): Remove format, pretty
641 arguments; add options. Update.
642 (pascal_object_print_static_field): Likewise.
643 (_initialize_pascal_valprint): Use user_print_options. Update.
644 * p-lang.h (pascal_val_print, pascal_value_print,
645 pascal_printstr, pascal_object_print_value_fields): Update.
646 (vtblprint, static_field_print): Don't declare.
647 * p-lang.c (pascal_printstr): Add options argument. Update.
648 * objc-lang.c (objc_printstr): Add options argument. Update.
649 * mt-tdep.c: Include valprint.h.
650 (mt_registers_info): Use get_raw_print_options.
651 * mips-tdep.c: Include valprint.h.
652 (mips_print_fp_register): Use get_formatted_print_options.
653 (mips_print_register): Likewise.
654 * mi/mi-main.c: Include valprint.h.
655 (get_register): Use get_user_print_options.
656 (mi_cmd_data_evaluate_expression): Likewise.
657 (mi_cmd_data_read_memory): Use get_formatted_print_options.
658 * mi/mi-cmd-stack.c: Include valprint.h.
659 (list_args_or_locals): Use get_raw_print_options.
660 * m2-valprint.c (print_function_pointer_address): Add addressprint
661 argument.
662 (m2_print_long_set): Remove format, pretty arguments.
663 (m2_print_unbounded_array): Remove format, deref_ref, pretty
664 arguments; add options. Update.
665 (print_unpacked_pointer): Remove format argument; add options.
666 Now static. Update.
667 (print_variable_at_address): Remove format, deref_ref, pretty
668 arguments; add options. Update.
669 (m2_print_array_contents): Likewise.
670 (m2_val_print): Likewise.
671 * m2-lang.h (m2_val_print): Update.
672 * m2-lang.c (m2_printstr): Add options argument. Update.
673 * language.h (struct value_print_options): Declare.
674 (struct language_defn) <la_printstr>: Add options argument.
675 <la_val_print>: Remove format, deref_ref, pretty argument; add
676 options.
677 <la_value_print>: Remove format, pretty arguments; add options.
678 <la_print_array_index>: Likewise.
679 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
680 LA_PRINT_ARRAY_INDEX): Update.
681 (default_print_array_index): Update.
682 * language.c (default_print_array_index): Remove format, pretty
683 arguments; add options. Update.
684 (unk_lang_printstr): Add options argument.
685 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
686 add options.
687 (unk_lang_value_print): Remove format, pretty arguments; add
688 options.
689 * jv-valprint.c (java_value_print): Remove format, pretty
690 arguments; add options. Update.
691 (java_print_value_fields): Likewise.
692 (java_val_print): Remove format, deref_ref, pretty arguments; add
693 options. Update.
694 * jv-lang.h (java_val_print, java_value_print): Declare.
695 * infcmd.c: Include valprint.h.
696 (print_return_value): Use get_raw_print_options.
697 (default_print_registers_info): Use get_user_print_options,
698 get_formatted_print_options.
699 (registers_info): Use get_formatted_print_options.
700 * gdbtypes.h (struct value_print_options): Declare.
701 (print_scalar_formatted): Update.
702 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
703 pretty arguments; add options. Update.
704 (f77_print_array): Likewise.
705 (f_val_print): Likewise.
706 * f-lang.h (f_val_print): Update.
707 * f-lang.c (f_printstr): Add options argument. Update.
708 (c_value_print): Update declaration.
709 * expprint.c: Include valprint.h.
710 (print_subexp_standard): Use get_raw_print_options,
711 get_user_print_options.
712 * eval.c: Include valprint.h.
713 (objectprint): Don't declare.
714 (evaluate_subexp_standard): Use get_user_print_options.
715 * cp-valprint.c (vtblprint, objectprint, static_field_print):
716 Remove.
717 (cp_print_value_fields): Remove format, pretty arguments; add
718 options. Update.
719 (cp_print_value): Likewise.
720 (cp_print_static_field): Likewise.
721 (_initialize_cp_valprint): Use user_print_options. Update.
722 * c-valprint.c (print_function_pointer_address): Add addressprint
723 argument.
724 (c_val_print): Remove format, deref_ref, pretty arguments; add
725 options. Update.
726 (c_value_print): Add options argument. Update.
727 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
728 (vtblprint, static_field_print): Don't declare.
729 (cp_print_value_fields): Update.
730 * c-lang.c (c_printstr): Add options argument. Update.
731 * breakpoint.c: Include valprint.h.
732 (addressprint): Don't declare.
733 (watchpoint_value_print): Use get_user_print_options.
734 (print_one_breakpoint_location): Likewise.
735 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
736 print_exception_catchpoint): Likewise.
737 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
738 get_user_print_options.
739 * ada-valprint.c (struct ada_val_print_args): Remove format,
740 deref_ref, and pretty; add options.
741 (print_optional_low_bound): Add options argument.
742 (val_print_packed_array_elements): Remove format and pretty
743 arguments; add options. Update.
744 (printstr): Add options argument. Update.
745 (ada_printstr): Likewise.
746 (ada_val_print): Remove format, deref_ref, pretty arguments; add
747 options argument. Update.
748 (ada_val_print_stub): Update.
749 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
750 add options. Update.
751 (ada_val_print_1): Likewise.
752 (print_variant_part): Likewise.
753 (ada_value_print): Remove format, pretty arguments; add options.
754 Update.
755 (print_record): Likewise.
756 (print_field_values): Likewise.
757 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
758 Update.
759 * ada-lang.c (ada_print_array_index): Add options argument; remove
760 format and pretty arguments.
761 (print_one_exception): Use get_user_print_options.
762
763 2008-10-28 Tom Tromey <tromey@redhat.com>
764
765 * cli/cli-script.c (do_fclose_cleanup): Remove.
766 (script_from_file): Use make_cleanup_fclose.
767 * xml-tdesc.c (do_cleanup_fclose): Remove.
768 (fetch_xml_from_file): Use make_cleanup_fclose.
769 * tracepoint.c (tracepoint_save_command): Use
770 make_cleanup_fclose. Always free pathname.
771 * source.c (print_source_lines_base): Use make_cleanup_fclose.
772 * remote.c (fclose_cleanup): Remove.
773 (remote_file_put): Use make_cleanup_fclose.
774 (remote_file_get): Likewise.
775 * linux-nat.c (linux_nat_find_memory_regions): Use
776 make_cleanup_fclose.
777 (linux_nat_info_proc_cmd): Likewise.
778 (linux_proc_pending_signals): Likewise.
779 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
780 Free file name.
781 * cli/cli-dump.c (do_fclose_cleanup): Remove.
782 (make_cleanup_fclose): Remove.
783 * defs.h (make_cleanup_fclose): Declare.
784 * utils.c (do_fclose_cleanup): New function.
785 (make_cleanup_fclose): Likewise.
786
787 2008-10-27 Pedro Alves <pedro@codesourcery.com>
788
789 * inflow.c (kill_command): If the target claims there is still
790 execution, don't clear the thread list.
791
792 2008-10-27 Pedro Alves <pedro@codesourcery.com>
793
794 * cp-name-parser.y: Include defs.h instead of config.h.
795 (parse_escape): Rename to ...
796 (cp_parse_escape): ... this.
797 (yylex): Update.
798 (xfree) [TEST_CPNAMES]: New.
799
800 2008-10-27 Pedro Alves <pedro@codesourcery.com>
801
802 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
803 2.13 and configure.in.
804
805 2008-10-27 Pedro Alves <pedro@codesourcery.com>
806
807 * target.h (struct target_ops) <to_supports_multi_process>: New
808 field.
809 (target_supports_multi_process): New define.
810 * target.c (update_current_target): Inherit and de_fault
811 to_supports_multi_process.
812 * infcmd.c (attach_command): Allow attaching to multiple processes
813 if the target supports it.
814 (detach_command): If the target claims there is still execution,
815 don't clear the thread list.
816 * remote.c (remote_supports_multi_process): New.
817 (init_remote_ops): Register remote_supports_multi_process.
818
819 2008-10-27 Pedro Alves <pedro@codesourcery.com>
820
821 * Makefile.in (.y.c, .l.c): sed free to xfree.
822
823 2008-10-27 Pedro Alves <pedro@codesourcery.com>
824
825 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
826 $(TM_CLIBS).
827 (CDEPS): Remove reference to $(TM_CDEPS).
828
829 2008-10-26 Michael Snyder <msnyder@vmware.com>
830
831 * infrun.c (handle_inferior_event): Handle dynamic symbol
832 resolution in reverse.
833
834 2008-10-25 Joel Brobecker <brobecker@adacore.com>
835
836 * infrun.c: Minor comment reformatting.
837
838 2008-10-25 Pedro Alves <pedro@codesourcery.com>
839
840 * ada-exp.y (write_object_renaming): Use malloc instead of
841 xmalloc.
842 * p-exp.y (pop_current_type): Use free instead of xfree.
843
844 2008-10-24 Pedro Alves <pedro@codesourcery.com>
845
846 * fork-child.c (startup_inferior): Only set threads not-executing
847 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
848 keep waiting, don't resume. On all other cases but
849 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
850 the event ptid.
851
852 2008-10-24 Pedro Alves <pedro@codesourcery.com>
853
854 Remote non-stop mode support.
855
856 * remote.c (pending_stop_reply): New.
857 (struct remote_state) <non_stop_aware, support_vCont_t>: New
858 fields.
859 (remote_async_inferior_event_token)
860 (remote_async_get_pending_events_token): New.
861 (notice_new_inferiors): New, abstracted out from record_currthread.
862 (record_currthread): Call it.
863 (remote_threads_info): Default threads to running in non-stop
864 mode. In non-stop mode, only qfThreadInfo is supported.
865 (remote_close): Discard all pending stop_replies. Close the event
866 sources.
867 (set_stop_requested_callback): New.
868 (remote_start_remote): Implement non-stop mode startup. In
869 all-stop, don't clear the thread list here.
870 (remote_non_stop_feature): New.
871 (remote_protocol_features): Add a "QNonStop" feature.
872 (remote_open_1): Clear cached_wait_status and non_stop_aware.
873 Clear the thread list here.
874 (remote_detach_1): Discard pending stop replies of the process we
875 detached from.
876 (extended_remote_attach_1): Implement non-stop mode.
877 (remote_vcont_probe): Recognize `vCont;t'.
878 (remote_vcont_resume): Implement non-stop mode.
879 (remote_resume): Don't set waiting_for_stop_reply in non-stop
880 mode.
881 (remote_stop_ns): New.
882 (remote_stop): Rename to ...
883 (remote_stop_as): ... this. If we have a cached wait status,
884 don't bother interrupting the remote.
885 (remote_stop): Reimplement as wrapper around remote_stop_as and
886 remote_stop_ns.
887 (interrupt_query): Don't query in async mode.
888 (struct cached_reg, cahed_reg_t): New.
889 (struct stop_reply): New.
890 (stop_reply_queue): New.
891 (stop_reply_xmalloc, stop_reply_xfree)
892 (discard_pending_stop_replies, do_stop_reply_xfree)
893 (queued_stop_reply, push_stop_reply, peek_stop_reply)
894 (remote_parse_stop_reply, remote_get_pending_stop_replies)
895 (process_stop_reply): New.
896 (remote_wait_ns): New.
897 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
898 notion of current general thread is a process exit was reported.
899 (remote_wait): Call remote_wait_ns in non-stop mode.
900 (handle_notification): New.
901 (putpkt_binary): Handle notifications. Don't care for
902 waiting_for_stop_reply in non-stop mode.
903 (getpkt_sane): Rename to ...
904 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
905 argument. Handle it. Handle notifications.
906 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
907 (getpkt_or_notif_sane): New.
908 (select_new_thread_callback): Check for exited state instead of
909 comparing the ptid against minus_one_ptid.
910 (extended_remote_create_inferior_1): Query the remote about the
911 current thread.
912 (remote_supports_non_stop): New.
913 (init_remote_ops): Register it.
914 (remote_async_inferior_event_handler): New.
915 (remote_async_get_pending_events_handler): New.
916
917 * infcmd.c (proceed_thread_callback): Comment.
918 (proceed_after_attach_callback, proceed_after_attach): New.
919 (attach_command_post_wait): In background attach, resume all
920 threads, but only if they are unsignalled, and not explicitly
921 stopped. In foreground attach, in non-stop mode, make sure to
922 stop all threads of the just attached to process.
923 (attach_command): In non-stop mode: If doing a background attach,
924 stop at least one thread. If a foreground attach, stop all
925 threads.
926
927 2008-10-24 Pedro Alves <pedro@codesourcery.com>
928
929 * event-loop.h: Mention async_event_handlers.
930 (async_event_handler): Forward declare.
931 (async_event_handler_func): New typedef.
932 (create_async_event_handler, delete_async_event_handler)
933 (mark_async_event_handler): Declare.
934 * event-loop.c (event_data): New.
935 (event_handler_func): Take an event_data instead of an integer.
936 (struct gdb_event): Replace the integer file descriptor by a
937 generic event_data.
938 (async_event_handler): New.
939 (async_handler_ready): Delete.
940 (async_event_handler_list): New.
941 (create_event): New.
942 (create_file_event): Use it.
943 (process_event): Adjust.
944 (gdb_do_one_event): Poll from the event sources in round-robin
945 fashion across calls. Be sure to consult all sources before
946 blocking.
947 (handle_file_event): Take an event_data instead of an integer.
948 Adjust.
949 (gdb_wait_for_event): Add `block' argument. Handle it.
950 (mark_async_signal_handler): Remove unneeded cast.
951 (invoke_async_signal_handler): Rename to ...
952 (invoke_async_signal_handlres): ... this. Return true if any was
953 handled.
954 (check_async_ready): Delete
955 (create_async_event_handler): New.
956 (mark_async_event_handler): New.
957 (struct async_event_handler_data): New.
958 (invoke_async_event_handler): New.
959 (check_async_event_handlers): New.
960 (delete_async_event_handler): New.
961 (handle_timer_event): Adjust.
962
963 2008-10-24 Doug Evans <dje@google.com>
964
965 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
966 is NULL. Simplify obs == NULL case.
967
968 2008-10-24 Hui Zhu <teawater@gmail.com>
969 Pedro Alves <pedro@codesourcery.com>
970
971 * infrun.c (can_use_displaced_stepping): Change type to
972 const char pointer.
973 (can_use_displaced_stepping_auto): New string.
974 (can_use_displaced_stepping_on): New string.
975 (can_use_displaced_stepping_off): New string.
976 (can_use_displaced_stepping_enum): New array.
977 (show_can_use_displaced_stepping): In auto mode, also show
978 the current effect of the option.
979 (use_displaced_stepping): Return non-zero if displaced
980 stepping is auto, and can be used with GDBARCH, and in
981 non-stop mode. Return non-zero if displaced stepping is on,
982 and can be used with GDBARCH. Return zero otherwise.
983 (_initialize_infrun): Make the "set displaced-stepping"
984 command an enum command. Change its class to class_run.
985 Place it in the top level set list. Extend help to describe
986 the auto mode.
987
988 2008-10-23 Pedro Alves <pedro@codesourcery.com>
989
990 * defs.h: Mention ptid_is_pid.
991 * inferior.h (ptid_is_pid): Declare.
992 * gdbthread.h (struct thread_info) <stop_requested>: New field.
993 (set_stop_requested): Declare.
994 * infcmd.c (interrupt_target_1): Call set_stop_requested.
995 * infrun.c (clear_proceed_status): Clear stop_requested.
996 (infrun_thread_stop_requested_callback,
997 infrun_thread_stop_requested): New.
998 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
999 thread that had an explicit stop request, pretend we got a
1000 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1001 request.
1002 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1003 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1004 instead of mentioning signal 0.
1005 (ptid_is_pid): New.
1006 * thread.c (set_stop_requested): New.
1007
1008 * linux-nat.c (queued_waitpid): Rename to ...
1009 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1010 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1011 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1012 kernel's.
1013 (send_sigint_callback): Delete.
1014 (linux_nat_stop_lwp): New.
1015 (linux_nat_stop): Use it.
1016
1017 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1018
1019 * python/python-value (valpy_getitem): Fix heap corruption.
1020
1021 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1022
1023 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1024 (procfs_create_inferior): Fetch list of threads.
1025
1026 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1027
1028 * nto-procfs.c (procfs_files_info): Fix a typo.
1029 (procfs_create_inferior): Make attach_flag per-inferior.
1030
1031 2008-10-23 Tom Tromey <tromey@redhat.com>
1032
1033 * python/python-value.c (value_to_value_object): Initialize
1034 owned_by_gdb field.
1035 (valpy_new): Likewise.
1036
1037 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 Joel Brobecker <brobecker@adacore.com>
1039
1040 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1041 initializer. Define the strings as const.
1042 (short_task_info, info_task): Translate the strings above.
1043
1044 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1045
1046 * NEWS: Add entry for new feature (Ada tasking support).
1047
1048 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1049
1050 * configure.ac: On alpha-osf, error out if enable_tui is set to
1051 "yes", and set enable_tui to "no" if previously set to "auto".
1052 Check for waddstr only if TUI support was requested. Move the
1053 part of the configure script that updates various Makefile
1054 variables up, together with the check for waddstr.
1055 * configure: Regenerate.
1056
1057 2008-10-22 Joel brobecker <brobecker@adacore.com>
1058
1059 * gdbtypes.c (copy_type): New function.
1060 * gdbtypes.h (copy_type): Add declaration.
1061 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1062 variable, then use it.
1063
1064 2008-10-22 Joel Brobecker <brobecker@adacore.com>
1065
1066 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1067 (target_get_ada_task_ptid): New macro.
1068 * target.c (default_get_ada_task_ptid): New function.
1069 (update_current_target): Inherit field default_get_ada_task_ptid.
1070 (update_current_target): Make default_get_ada_task_ptid the default
1071 value for field to_get_ada_task_ptid.
1072 * ada-lang.h (struct task_control_block): Delete. Never used.
1073 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1074 Likewise.
1075 (struct ada_task_info): New.
1076 (ada_task_is_alive, ada_find_printable_frame)
1077 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1078 declarations.
1079 (ada_build_task_list): Update prototype.
1080 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1081 * ada-lang.c (ada_find_printable_frame): Make non-static.
1082 * ada-tasks.c: New file.
1083 * Makefile.in (SFILES): Add ada-tasks.c.
1084 (COMMON_OBS): Add ada-tasks.o.
1085 * linux-thread-db.c (thread_db_find_thread_from_tid)
1086 (thread_db_get_ada_task_ptid): New functions.
1087 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1088
1089 2008-10-22 Tom Tromey <tromey@redhat.com>
1090
1091 PR gdb/2506:
1092 * c-exp.y (string_exp): New production.
1093 (exp): Use it.
1094
1095 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1096
1097 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1098 removed before.
1099
1100 2008-10-20 Joel Brobecker <brobecker@adacore.com>
1101
1102 * NEWS: Add entry mentioning thread-support on Tru64
1103
1104 2008-10-19 Joel Brobecker <brobecker@adacore.com>
1105
1106 * dec-thread.c: New file.
1107 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1108 (NAT_CLIBS): Define.
1109
1110 2008-10-19 Hui Zhu <teawater@gmail.com>
1111
1112 * infrun.c (handle_inferior_event): Set "stop_pc" when
1113 TARGET_WAITKIND_NO_HISTORY.
1114
1115 2008-10-19 Pedro Alves <pedro@codesourcery.com>
1116
1117 * python/python-value.c (value_object_methods)
1118 (value_object_as_number, value_object_as_mapping): Move to bottom
1119 of file.
1120 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1121 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1122 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1123 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1124 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1125 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1126
1127 2008-10-18 Pedro Alves <pedro@codesourcery.com>
1128
1129 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1130 reverse.
1131
1132 2008-10-17 Pedro Alves <pedro@codesourcery.com>
1133
1134 * infcmd.c (GO_USAGE): Delete.
1135 (go_command): Adjust.
1136
1137 2008-10-17 Michael Snyder <msnyder@vmware.com>
1138 Target interface for reverse debugging.
1139 * target.h (enum target_waitkind):
1140 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1141 (struct target_ops): New method to_can_execute_reverse.
1142 (target_can_execute_reverse): New macro.
1143 * target.c (update_current_target): Inherit to_can_execute_reverse.
1144
1145 Remote interface for reverse debugging.
1146 * remote.c (remote_can_execute_reverse): New target method.
1147 (remote_resume): Check for reverse exec direction, and send
1148 appropriate command to target.
1149 (remote_wait_as): Check target response for NO_HISTORY status.
1150 Also check for empty reply (target doesn't understand "bs" or "bc).
1151 (remote_vcont_resume): Jump out if attempting reverse execution.
1152
1153 Event handling interface for reverse debugging.
1154 * infrun.c (execution_direction): New state variable.
1155 (enum inferior_stop_reason): Add NO_HISTORY reason.
1156 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1157 Handle stepping over a function call in reverse.
1158 Handle stepping thru a line range in reverse.
1159 Handle setting a step-resume breakpoint in reverse.
1160 Handle stepping into a function in reverse.
1161 Handle stepping between line ranges in reverse.
1162 (print_stop_reason): Print reason for NO_HISTORY.
1163 (step_into_function): Rename to handle_step_into_function.
1164 (handle_step_into_function_backward): New function.
1165 (set_exec_direction_func, show_exec_direction_func): New funcs.
1166 (proceed): No need to singlestep over a breakpoint
1167 when resuming in reverse.
1168
1169 * inferior.h (enum exec_direction_kind): New enum.
1170 (execution_direction): Export new execution state variable.
1171
1172 * breakpoint.c (make_breakpoint_silent): New function.
1173 * breakpoint.h (make_breakpoint_silent): Export.
1174 * infcmd.c (finish_command): Check for reverse exec direction.
1175 (finish_backward): New function, handle finish cmd in reverse.
1176
1177 User interface for reverse execution.
1178 * Makefile.in (reverse.c): New file.
1179 * reverse.c: New file. User interface for reverse execution.
1180
1181 2008-10-17 Pedro Alves <pedro@codesourcery.com>
1182
1183 * remote.c (record_currthread): Add inferior before child threads.
1184 (remote_threads_info): Check for exited threads. Mention
1185 notification order.
1186
1187 2008-10-16 Joel Brobecker <brobecker@adacore.com>
1188
1189 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1190 Delete bp_catch_fork and bp_catch_vfork.
1191 (struct breakpoint_ops): Add new methods "insert", "remove"
1192 and "breakpoint_hit".
1193 * breakpoint.c (create_fork_vfork_event_catchpoint)
1194 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1195 (insert_catchpoint): Remove handling of bp_catch_fork and
1196 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1197 catchpoints instead.
1198 (insert_bp_location, update_breakpoints_after_exec)
1199 (remove_breakpoint, bpstat_check_location, bpstat_what)
1200 (allocate_bp_location): Likewise.
1201 (print_it_typical, print_one_breakpoint_location, mention): Remove
1202 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1203 (ep_is_catchpoint, user_settable_breakpoint)
1204 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1205 (breakpoint_re_set_one, disable_command, enable_command):
1206 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1207 bp_catchpoint breakpoints.
1208 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1209 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1210 New functions.
1211 (catch_fork_breakpoint_ops): New static constant.
1212 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1213 (print_it_catch_vfork, print_one_catch_vfork)
1214 (print_mention_catch_vfork): New functions.
1215 (catch_vfork_breakpoint_ops): New static constant.
1216 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1217 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1218 to create the fork and vfork catchpoints.
1219 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1220 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1221 fields.
1222 (catch_exception_unhandled_breakpoint_ops): Likewise.
1223 (catch_assert_breakpoint_ops): Likewise.
1224
1225 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1226
1227 * remote.c (set_general_process): New.
1228 (remote_check_symbols): Use it.
1229
1230 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1231
1232 * remote.c (push_remote_target): Delete.
1233 * target.h (push_remote_target): Delete declaration.
1234
1235 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1236
1237 * remote.c (remote_close): Unregister remote_desc from the event
1238 loop. Always restore the SIGINT handler. Discard all inferiors
1239 here.
1240 (remote_detach_1, remote_disconnect): Don't unregister the file
1241 descriptor from the event loop here.
1242 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1243 of morning the current inferior.
1244 (remote_kill): Don't unregister the file descriptor from the event
1245 loop here.
1246 (remote_mourn_1): Don't discard inferiors here.
1247
1248 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1249
1250 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1251 locations list.
1252 (moribund_breakpoint_here_p): Record the moribund
1253 location in the moribund_locations vector.
1254 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1255 (displaced_step_fixup): Check if the breakpoint the thread was
1256 trying to step over has been removed since having been placed in
1257 the displaced stepping queue.
1258 (adjust_pc_after_break): In non-stop mode, check for a moribund
1259 breakpoint at the stop pc.
1260 (handle_inferior_event): Don't retire moribund breakpoints on
1261 TARGET_WAITKIND_IGNORE.
1262
1263 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1264
1265 * infrun.c (displaced_step_prepare): Switch thread temporarily
1266 while we're here.
1267 (displaced_step_fixup): Make sure target_resume sees ptid as
1268 inferior_ptid. Add debug output.
1269
1270 2008-10-14 Pedro Alves <pedro@codesourcery.com>
1271
1272 Remove dead code.
1273
1274 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1275 (print_one_breakpoint_location): Adjust.
1276 (breakpoint_clear_ignore_counts): Delete.
1277 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1278 declaration.
1279 * target.c (generic_mourn_inferior): Don't clear ignore
1280 counts (never reached).
1281
1282 2008-10-10 Doug Evans <dje@google.com>
1283
1284 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1285 for dwarf section offsets and sizes.
1286 (dwarf2_cu): Ditto.
1287 (dwarf2_per_cu_data): Ditto.
1288 (create_all_comp_units): Change offset to unsigned int.
1289 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1290 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1291
1292 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1293 All callers updated.
1294 (read_checked_initial_length_and_offset): New function.
1295 (read_offset_1): New function.
1296 (read_offset): Call it.
1297 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1298 instead of read_initial_length. Call read_offset_1 instead of
1299 read_offset.
1300
1301 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1302 All callers updated.
1303
1304 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1305 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1306 DW_AT_HP_block_index.
1307
1308 2008-10-10 Pedro Alves <pedro@codesourcery.com>
1309
1310 * remote.c (remote_start_remote): Always tell the stub if we're in
1311 extended-remote.
1312
1313 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1314
1315 * remote.c (remote_wait): Rename to...
1316 (remote_wait_as): ... this. Don't loop here. If the remote
1317 didn't stop, return TARGET_WAITKIND_IGNORE.
1318 (remote_wait): New, reimplemented on top of remote_wait_as.
1319
1320 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1321
1322 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1323 is fixed upstream.
1324
1325 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1326
1327 * MAINTAINERS (Write After Approval): Add myself.
1328
1329 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1330
1331 Make it compile without warnings.
1332
1333 * procfs.c (create_procinfo): Initialize `parent'.
1334 (dead_procinfo): Pass a constant string as format to error.
1335 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1336 (procfs_find_LDT_entry): Adjust format string to long int
1337 ptid.tid.
1338 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1339 (procfs_xfer_memory): Adjust prototype.
1340 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1341 variable as printf_filtered format.
1342 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1343 * Makefile.in: Remove special rule.
1344
1345 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1346 Daniel Jacobowitz <dan@codesourcery.com>
1347
1348 * remote.c (remote_open_1): Move acknowledging any pending ack,
1349 querying supported features, activating noack mode, finding the
1350 target description, enabling extended remote, and checking remote
1351 symbols from here ...
1352 (remote_start_remote): ... to here.
1353 (remote_open_1): Don't pop the target if it is already gone.
1354 * target.c (unpush_target): Check for the dummy target.
1355
1356 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1357
1358 * ser-mingw.c: Include "command.h".
1359 (pipe_windows_open): Declare locals at the beginning of the scope.
1360
1361 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1362
1363 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1364 field.
1365 (remote_open_1): Clear waiting_for_stop_reply.
1366 (remote_resume): Set waiting_for_stop_reply.
1367 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1368 (putpkt_binary): If we're in async mode and waiting for a stop
1369 reply, bail out with an error.
1370 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1371
1372 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1373
1374 * remote.c (remote_get_thread_info): If the remote doesn't support
1375 the query, bail out.
1376
1377 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1378
1379 Convert static_kind into loc_kind enum.
1380 * gdbtypes.h (enum field_loc_kind): New.
1381 (union field_location): New field dwarf_block.
1382 (struct field): Rename static_kind as loc_kind.
1383 (FIELD_STATIC_KIND): Rename to ...
1384 (FIELD_LOC_KIND): ... here.
1385 (TYPE_FIELD_STATIC_KIND): Rename to ...
1386 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1387 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1388 (TYPE_FIELD_STATIC): Remove.
1389 (TYPE_FIELD_BITPOS): Reformat.
1390 (SET_FIELD_BITPOS): New.
1391 (FIELD_PHYSADDR): Rename to ...
1392 (FIELD_STATIC_PHYSADDR): ... here.
1393 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1394 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1395 (FIELD_PHYSNAME): Rename to ...
1396 (FIELD_STATIC_PHYSNAME): ... here.
1397 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1398 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1399 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1400 (field_is_static): New declaration.
1401 * gdbtypes.c (field_is_static): New function.
1402 (copy_type_recursive): Update throughout.
1403 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1404 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1405 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1406
1407 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1408 Pedro Alves <pedro@codesourcery.com>
1409
1410 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1411 avoid a name collision.
1412 * gnu-nat.c: Likewise.
1413 * i386gnu-nat.c: Likewise.
1414
1415 2008-10-07 Joel Brobecker <brobecker@adacore.com>
1416
1417 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1418 of arguments that are references.
1419
1420 2008-10-06 Doug Evans <dje@google.com>
1421
1422 * dwarf2read.c (dwarf2_die_debug): New static global.
1423 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1424 Print to specified file, indented by the specified amount.
1425 (dump_die_for_error): New fn. Point all existing callers of
1426 dump_die here.
1427 (dump_die_die_1,dump_die): New fns, replaces ...
1428 (dump_die_list): ... deleted.
1429 (read_die_and_children_1): Old contents of read_die_and_children
1430 moved here.
1431 (read_die_and_children): Rewrite.
1432 (read_die_and_siblings): Call read_die_and_children_1 instead of
1433 read_die_and_children.
1434 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1435 * gdbinit.in (pdie): New macro.
1436
1437 * dwarf2read.c (offset_in_cu_p): New function.
1438 (find_partial_die,follow_die_ref): Use it.
1439
1440 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1441 (maintenance_info_psymtabs): Ditto.
1442
1443 2008-10-05 Michael Snyder <msnyder@vmware.com>
1444
1445 * infrun.c (handle_inferior_event): Fix typo in comment.
1446
1447 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1448
1449 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1450
1451 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1452
1453 PR gdb/2384:
1454 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1455 different lifetimes.
1456
1457 2008-10-03 Joel Brobecker <brobecker@adacore.com>
1458
1459 * solib-osf.c: Include "solib.h".
1460
1461 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1462
1463 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1464 and check for out-of-memory condition.
1465 * exec.c (exec_file_command): Call it.
1466 * infrun.c (handle_command, xdb_handle_command): Likewise.
1467 * interps.c (interpreter_exec_cmd): Likewise.
1468 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1469 * procfs.c (info_proc_cmd): Likewise.
1470 * remote-mips.c (common_open): Likewise.
1471 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1472 (gdbsim_open): Likewise.
1473 * remote.c (extended_remote_run, remote_put_command)
1474 (remote_get_command, remote_delete_command): Likewise.
1475 * ser-mingw.c (pipe_windows_open): Likesise.
1476 * source.c (add_path, show_substitute_path_command)
1477 (unset_substitute_path_command, set_substitute_path_command):
1478 Likewise.
1479 * stack.c (backtrace_command): Likewise.
1480 * symfile.c (symbol_file_command, generic_load)
1481 (add_symbol_file_command): Likesise.
1482 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1483 (maintenance_print_msymbols): Likewise.
1484
1485 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1488 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1489 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1490 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1491 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1492 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1493 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1494 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1495 (f77_get_upperbound): ... this function handling now only
1496 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1497 (f77_get_dynamic_lowerbound): Replace with ...
1498 (f77_get_lowerbound): ... this function handling now only
1499 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1500 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1501 Update their callers.
1502 * eval.c (evaluate_subexp_standard): Update their callers.
1503 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1504 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1505 prototypes.
1506 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1507 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1508 the lower_bound_was_default variable. Update the
1509 f77_get_dynamic_upperbound, f77_get_upperbound and
1510 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1511 * gdbtypes.c (print_bound_type): Remove the function.
1512 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1513 LOWER_BOUND_TYPE.
1514 * gdbtypes.h (enum array_bound_type): Remove.
1515 (struct main_type): Remove the fields upper_bound_type and
1516 lower_bound_type. Comment the new overload of the field artificial.
1517 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1518 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1519 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1520 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1521
1522 2008-10-02 Tom Tromey <tromey@redhat.com>
1523
1524 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1525
1526 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1527
1528 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1529 comments.
1530 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1531 (mips_linux_init_abi): Do not override skip_trampoline_code.
1532 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1533 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1534 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1535 (mips_skip_mips16_trampoline_code): Rename from
1536 mips_skip_trampoline_code.
1537 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1538 * infrun.c (handle_inferior_event): Do not pass zero to
1539 in_solib_dynsym_resolve_code.
1540
1541 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1542 Pedro Alves <pedro@codesourcery.com>
1543
1544 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1545
1546
1547 2008-10-01 Tom Tromey <tromey@redhat.com>
1548
1549 * symtab.c (search_symbols): Update.
1550 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1551
1552 2008-10-01 Tom Tromey <tromey@redhat.com>
1553
1554 * symfile.c (syms_from_objfile): Update.
1555 (reread_symbols): Update.
1556 * objfiles.h (OBJF_SYMS): Remove.
1557 (OBJF_REORDERED): Renumber.
1558 (OBJF_SHARED): Likewise.
1559 (OBJF_READNOW): Likewise.
1560 (OBJF_USERLOADED): Likewise.
1561
1562 2008-10-01 Tom Tromey <tromey@redhat.com>
1563
1564 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1565 (find_pc_sect_symtab): Likewise.
1566 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1567 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1568 MSYMBOL_TYPE, not SYMBOL_TYPE.
1569 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1570 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1571 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1572 MSYMBOL_TYPE.
1573 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1574
1575 2008-10-01 Tom Tromey <tromey@redhat.com>
1576
1577 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1578 (scan_xcoff_symtab): Update.
1579 * mdebugread.c (record_minimal_symbol): Update.
1580 (parse_partial_symbols): Update.
1581 * elfread.c (record_minimal_symbol): Update.
1582 * dbxread.c (record_minimal_symbol): Update.
1583 * coffread.c (record_minimal_symbol): Update.
1584 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1585 (sh64_elf_make_msymbol_special): Update.
1586 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1587 MSYMBOL_TARGET_FLAG_1.
1588 (mips_elf_make_msymbol_special): Likewise.
1589 (msymbol_is_special): Likewise.
1590 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1591 (install_minimal_symbols): Likewise.
1592 (prim_record_minimal_symbol): Update.
1593 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1594 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1595 (MSYMBOL_SET_RTI): Redefine.
1596 (MSYMBOL_IS_RTC): Redefine.
1597 (MSYMBOL_IS_RTI): Redefine.
1598 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1599 (MSYMBOL_IS_SPECIAL): Redefine.
1600 * symtab.h (struct minimal_symbol) <info>: Remove.
1601 <target_flag_1, target_flag_2>: New fields.
1602 (MSYMBOL_INFO): Remove.
1603 (MSYMBOL_TARGET_FLAG_1): New macro.
1604 (MSYMBOL_TARGET_FLAG_2): Likewise.
1605 (prim_record_minimal_symbol_and_info): Update.
1606
1607 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1608
1609 * ada-lang.c (is_digits_suffix): Delete unused function.
1610
1611 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1612
1613 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1614 moduli >= 2**31.
1615
1616 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1617
1618 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1619 variant branch.
1620 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1621 supposed to be null. Fixes debugger segfaults.
1622 (is_unchecked_variant): New function.
1623 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1624 untouched.
1625 (ada_template_to_fixed_record_type_1): Fix comment.
1626
1627 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1628
1629 * ada-lang.c (standard_exc): New static constant.
1630 (ada_exception_catchpoint_cond_string): Add special handling
1631 for the predefined exceptions.
1632
1633 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1634
1635 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1636 the code accordingly.
1637
1638 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1639
1640 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1641 treatment of expect_type. Return the correct type when dereferencing
1642 an integer.
1643
1644 2008-09-30 Tom Tromey <tromey@redhat.com>
1645
1646 PR gdb/2484:
1647 * symtab.c (struct add_macro_name_data): New struct.
1648 (add_macro_name): New function.
1649 (default_make_symbol_completion_list): Complete macro names.
1650 * scm-lang.c (scm_language_defn): Update.
1651 * p-lang.c (pascal_language_defn): Update.
1652 * objc-lang.c (objc_language_defn): Update.
1653 * macrotab.h (macro_callback_fn): Add user_data argument.
1654 (macro_for_each): Likewise.
1655 (macro_for_each_in_scope): Declare.
1656 * macrotab.c: (struct macro_for_each_data): New struct.
1657 (foreach_macro): Use it.
1658 (macro_for_each): Likewise.
1659 (foreach_macro_in_scope): New function.
1660 (macro_for_each_in_scope): Likewise.
1661 * macrocmd.c (print_one_macro): Add argument.
1662 (macro_list_command): Pass NULL to macro_for_each.
1663 * m2-lang.c (m2_language_defn): Update.
1664 * language.h (struct language_defn) <la_macro_expansion>: New
1665 field.
1666 (macro_expansion): New enum.
1667 * language.c (unknown_language_defn): Update. Fix order of
1668 initializers.
1669 (auto_language_defn): Likewise.
1670 (local_language_defn): Update.
1671 * jv-lang.c (java_language_defn): Update.
1672 * f-lang.c (f_language_defn): Update.
1673 * c-lang.c (c_language_defn): Update.
1674 (cplus_language_defn): Likewise.
1675 (asm_language_defn): Likewise.
1676 (minimal_language_defn): Likewise.
1677 * ada-lang.c (ada_language_defn): Update.
1678
1679 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1680
1681 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1682 (get_scope_pc_bounds): Use it.
1683
1684 2008-09-27 Tom Tromey <tromey@redhat.com>
1685
1686 * NEWS: Update.
1687 * macrocmd.c (extract_identifier): Add is_parameter argument.
1688 (macro_define_command): Update.
1689 (macro_undef_command): Likewise.
1690 * macroexp.c (stringify): New function.
1691 (find_parameter): Likewise.
1692 (gather_arguments): Add nargs argument. Handle varargs.
1693 (substitute_args): Add is_varargs and va_arg_name arguments.
1694 Handle varargs, splicing, stringification. Use find_parameter.
1695 (expand): Handle varargs.
1696
1697 2008-09-27 Tom Tromey <tromey@redhat.com>
1698
1699 * scm-lang.c (scm_language_defn): Update.
1700 * p-typeprint.c (pascal_print_typedef): New function.
1701 * p-lang.h: (pascal_print_typedef): Declare.
1702 * p-lang.c (pascal_language_defn): Update.
1703 * objc-lang.c (objc_language_defn): Update.
1704 * m2-typeprint.c (m2_print_typedef): New function.
1705 * m2-lang.h (m2_print_typedef): Declare.
1706 * m2-lang.c (m2_language_defn): Update.
1707 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1708 Remove.
1709 (struct language_defn) <la_print_typedef>: New field.
1710 (default_print_typedef): Declare.
1711 (LA_PRINT_TYPEDEF): New define.
1712 * language.c (unknown_language_defn): Update.
1713 (auto_language_defn): Update.
1714 (local_language_defn): Update.
1715 * jv-lang.c (java_language_defn): Update.
1716 * f-lang.c (f_language_defn): Update.
1717 * c-typeprint.c (c_print_typedef): New function.
1718 * c-lang.h (c_print_typedef): Declare.
1719 * c-lang.c (c_language_defn): Update.
1720 (cplus_language_defn): Update.
1721 (asm_language_defn): Update.
1722 (minimal_language_defn): Update.
1723 * ada-lang.c (ada_language_defn): Update.
1724 * typeprint.c (default_print_typedef): New function.
1725
1726 2008-09-27 Tom Tromey <tromey@redhat.com>
1727
1728 * jv-exp.y (insert_exp): Define using ISO syntax.
1729 (copy_exp): Likewise.
1730 (push_expression_name): Likewise.
1731 (push_fieldnames): Likewise.
1732 (java_type_from_name): Likewise.
1733 (yyerror): Likewise.
1734 (yylex): Likewise.
1735 (parse_number): Likewise.
1736
1737 2008-09-26 Joel Brobecker <brobecker@adacore.com>
1738
1739 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1740
1741 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1742
1743 * stack.c (print_frame_args): Fix typos in comments.
1744
1745 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1746
1747 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1748
1749 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1750
1751 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1752
1753 2008-09-24 Andreas Schwab <schwab@suse.de>
1754
1755 * frame.c (get_frame_register_bytes): Take pseudo registers into
1756 account. Avoid excessive function calls.
1757
1758 2008-09-23 Doug Evans <dje@google.com>
1759
1760 * dcache.c (state_chars): New static global.
1761 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1762 All uses updated.
1763 (dcache_info): Print cache state as mnemonically useful letters instead
1764 of magic numbers.
1765
1766 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1767
1768 2008-09-22 Tom Tromey <tromey@redhat.com>
1769
1770 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1771 printf_filtered.
1772
1773 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1774
1775 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1776 inline the required bits.
1777 * breakpoint.h (enum inf_context): Add inf_execd.
1778
1779 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1780
1781 * infrun.c (handle_inferior_event): In the follow exec case,
1782 context-switch before doing anything else.
1783
1784 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1785
1786 * top.c (any_thread_of, kill_or_detach): New functions.
1787 (quit_target): Iterate over all inferiors, killing or detaching
1788 accordingly.
1789
1790 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1791
1792 Remove the attach_flag global, and make it per-inferior.
1793
1794 * inferior.h (attach_flag): Delete.
1795 (inferior_process): Declare.
1796 * solib.c (update_solib_list): Adjust.
1797 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1798 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1799 (inf_ptrace_files_info): Get it from the current inferior.
1800 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1801 (inf_ttrace_files_info): Get it from the current
1802 inferior.
1803 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1804 (clear_sigint_trap): Get it from the current process.
1805 * remote.c (extended_remote_attach_1)
1806 (extended_remote_create_inferior_1): Adjust.
1807 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1808 * procfs.c (do_detach): Adjust.
1809 (procfs_wait): Get it from the event inferior.
1810 (procfs_files_info): Get it from the current inferior.
1811 * nto-procfs.c (procfs_files_info): Likewise.
1812 (procfs_attach): Adjust. Set the attach_flag here.
1813 (do_attach): Don't set it here.
1814 (procfs_detach): Don't clear it.
1815 (procfs_mourn_inferior): Don't clear it.
1816 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1817 * target.c (attach_flag): Delete.
1818 (generic_mourn_inferior): Don't clear it.
1819 * win32-nat.c (get_win32_debug_event): Get it from the event
1820 process.
1821 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1822 in the inferior accordingly.
1823 (win32_attach): Don't set the attach_flag here. Pass 1 to
1824 do_intial_win32_stuff.
1825 (win32_files_info): Get it from the current inferior.
1826 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1827 do_intial_win32_stuff.
1828
1829 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1830
1831 Make the stop_soon global be per-inferior instead.
1832
1833 * infcmd.c (attach_command_post_wait): Adjust.
1834 (attach_command): Likewise.
1835
1836 * inferior.h (stop_soon): Delete.
1837 (struct inferior): Add stop_soon member.
1838
1839 * infrun.c (stop_soon): Delete.
1840 (clear_proceed_status, start_remote)
1841 (fetch_inferior_event, handle_inferior_event): Adjust.
1842 (signal_stop_state): Don't check stop_soon here. Check in callers
1843 instead.
1844 (save_inferior_status, restore_inferior_status): Adjust.
1845
1846 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1847 signals to common code if starting up the inferior.
1848
1849 * inferior.h (struct inferior_info): Added stop_soon member.
1850 * inferior.c (add_inferior) Clear stop_soon.
1851
1852 * mips-tdep.c (heuristic_proc_start): Adjust.
1853 * nto-procfs.c (procfs_create_inferior): Adjust.
1854 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1855 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1856 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1857 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1858
1859 * win32-nat.c (do_initial_win32_stuff): Adjust.
1860
1861 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1862
1863 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1864
1865 Implement remote multi-process extensions.
1866
1867 * remote.c (struct remote_state): Add extended and
1868 multi_process_aware fields.
1869 (remote_multi_process_p): New.
1870 (PACKET_vKill): New.
1871 (record_currthread): Use thread_change_ptid. Notice new
1872 inferiors.
1873 (set_thread, remote_thread_alive): Use write_ptid.
1874 (write_ptid, read_ptid): New.
1875 (remote_current_thread, remote_threads_extra_info): Use them.
1876 (remote_threads_info): Likewise. Detect new inferiors.
1877 (remote_start_remote): Add inferior to inferior list.
1878 (remote_multi_process_feature): New.
1879 (remote_protocol_features): Add "multiprocess" feature.
1880 (remote_query_supported): Pass "multiprocess+" as supported
1881 features.
1882 (remote_open_1): Clear multi_process_aware. Set extended
1883 accordingly.
1884 (remote_detach_1): Detach current process. Use extended packet
1885 format for extended-remote multi-process. Detach process from the
1886 inferior list. Only mourn after printing output.
1887 (extended_remote_attach_1): Add process to the inferior list.
1888 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1889 (remote_wait): Use read_ptid. Implement the extended
1890 multi-process extension format of the 'W' and 'X' reply packets.
1891 Remove exited inferiors from inferior list.
1892 (remote_xfer_memory): Set general thread.
1893 (remote_vkill): New.
1894 (extended_remote_kill): New.
1895 (remote_mourn_1): Discard all inferiors.
1896 (select_new_thread_callback): New.
1897 (extended_remote_mourn_1): If there are more processes to debug,
1898 switch to a thread in another process, and don't pop the target.
1899 (extended_remote_create_inferior_1): Add the new process to the
1900 inferior list.
1901 (remote_stopped_by_watchpoint): Indenting.
1902 (remote_xfer_partial): Set the general thread.
1903 (remote_pid_to_str): If the remote is multi-process aware, print
1904 the process id as well as the thread id.
1905 (remote_get_thread_local_address): Use write_ptid.
1906 (init_extended_remote_ops): Register extended_remote_kill.
1907 (_initialize_remote): Register new packets. Change
1908 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1909 member to 42000.
1910
1911 * thread.c (thread_change_ptid): Also account for the inferior pid
1912 changing.
1913
1914 * inferior.h (discard_all_inferiors): Declare.
1915 * inferior.c (discard_all_inferiors): New.
1916
1917 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1918
1919 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1920 (gnu_detach): Remove it.
1921 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1922 table.
1923 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1924 to inferior table accordingly.
1925 (inf_ptrace_attach): Add new process to inferior table.
1926 (inf_ptrace_detach): Remove it.
1927 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1928 to inferior table accordingly.
1929 (inf_ttrace_attach): Add process to inferior table.
1930 (inf_ttrace_detach): Remove it.
1931 * linux-fork.c (init_fork_list): Delete any left over inferior.
1932 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1933 processes from inferior list.
1934 * monitor.c (monitor_open): Add process to inferior list.
1935 (monitor_close): Remove it.
1936 * nto-procfs.c (procfs_attach): Add process to inferior list.
1937 Find threads after pushing the target.
1938 (procfs_detach): Remove process from inferior list.
1939 (procfs_create_inferior): Add process to inferior list.
1940 * procfs.c (procfs_detach): Remove process from inferior list.
1941 (do_attach): Add process to inferior list.
1942 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1943 (gdbsim_close): Remove it.
1944 * target.c (generic_mourn_inferior): If inferior_ptid is not
1945 null_ptid, remove the corresponding inferior from inferior list.
1946 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1947 (win32_detach): Remove it.
1948 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1949 to inferior list accordingly.
1950 * fork-child.c (fork_inferior): Add process to inferior list.
1951 * corelow.c (CORELOW_PID): Define.
1952 (core_close): Remove core from inferior list.
1953 (core_open): Add it.
1954
1955 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1956
1957 * inferior.h: Forward declare struct ui_out.
1958 Forward declare struct private_inferior.
1959 (struct inferior): New.
1960 (init_inferior_list, add_inferior, add_inferior_silent)
1961 (delete_inferior, delete_inferior_silent, detach_inferior)
1962 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1963 (valid_inferior_id, find_inferior_pid): New functions.
1964 (inferior_callback_func): New typedef.
1965 (iterate_over_inferiors, print_inferior, have_inferiors)
1966 (current_inferior): New functions.
1967 * inferior.c: New file.
1968
1969 * Makefile.in (SFILES): Add inferior.c.
1970 (COMMON_OBS): Add inferior.o.
1971
1972 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1973
1974 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1975 instead of determining symbol and line info directly.
1976 * MAINTAINERS: Update my email address.
1977
1978 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1979
1980 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1981 at the same address as a prologue marker. Do not skip an entire
1982 function.
1983
1984 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
1985
1986 * frame.c (get_frame_register_bytes): Comment improvments.
1987
1988 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1989
1990 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1991 all-stop mode.
1992
1993 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1994
1995 * MAINTAINERS: Update my email address.
1996
1997 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1998
1999 * frame.c (get_frame_register_bytes): Detect bad debug info.
2000
2001 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2002
2003 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2004 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2005 initialization ...
2006 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2007 ...
2008 (handle_inferior_event): ... here after the add_thread call together
2009 with the local adjust_pc_after_break and reinit_frame_cache calls.
2010
2011 2008-09-16 David Daney <ddaney@avtrex.com>
2012
2013 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2014 all hardware bpstats.
2015
2016 2008-09-16 Joel Brobecker <brobecker@adacore.com>
2017
2018 * gstdint.h: Delete.
2019
2020 2008-09-15 Mark Kettenis <kettenis@gnu.org>
2021
2022 * infcall.c (generic_push_dummy_code): Remove.
2023 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2024
2025 2008-09-15 Doug Evans <dje@google.com>
2026
2027 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2028 (struct attribute): Ditto.
2029
2030 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2031
2032 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2033 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2034
2035 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2036 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2037 Correct arguments and improve comments.
2038 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2039 disabled code.
2040 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2041 point DBX register, change error to warning, and improve comments.
2042
2043 2008-09-14 Doug Evans <dje@google.com>
2044
2045 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2046
2047 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2048
2049 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2050
2051 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2052
2053 * defs.h (GCC_GENERATED_STDINT_H): Define.
2054
2055 2008-09-13 Tom Tromey <tromey@redhat.com>
2056
2057 * varobj.c (varobj_set_display_format): Use xfree.
2058 * tracepoint.c (stringify_collection_list): Use xfree.
2059 * remote-fileio.c (remote_fileio_reset): Use xfree.
2060 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2061 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2062 asprintf.
2063 * cp-support.c (mangled_name_to_comp): Use xfree.
2064
2065 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2066
2067 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2068 the associated complete symbol is also in the list.
2069 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2070 extracted out from ada_lookup_symbol_list.
2071 (ada_lookup_symbol_list): Use them. Remove the search through
2072 the minimal symbols.
2073
2074 2008-09-13 Joel Brobecker <brobecker@adacore.com>
2075
2076 * dwarf2read.c (add_partial_subprogram): New procedure.
2077 (scan_partial_symbols): Use it.
2078 (load_partial_dies): Read in children of subprogram and lexical
2079 blocks for Ada compilation units.
2080
2081 2008-09-13 Tom Tromey <tromey@redhat.com>
2082
2083 * symfile.c (build_id_verify): Free 'found'.
2084 (find_separate_debug_file): Use xfree, not free.
2085
2086 2008-09-12 Doug Evans <dje@google.com>
2087
2088 * corefile.c (write_memory): Remove unnecessary copying.
2089
2090 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2091 order of _initialize_* fns.
2092
2093 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2094 first_die_offset. All uses updated.
2095 Delete unused members cu_head_ptr, next.
2096 Move members base_known, base_address to ...
2097 (dwarf2_cu) ... here. All uses updated.
2098
2099 2008-09-12 Pedro Alves <pedro@codesourcery.com>
2100
2101 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2102 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2103
2104 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2105
2106 * fork-child.c (startup_inferior): Use target_wait and target_resume
2107 directly instead of calling wait_for_inferior / resume.
2108
2109 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2110 or init_wait_for_inferior.
2111 (run_command_1): Call init_wait_for_inferior.
2112
2113 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2114
2115 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2116 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2117 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2118 builtin_type_unsigned_char, builtin_type_unsigned_short,
2119 builtin_type_unsigned_int, builtin_type_unsigned_long,
2120 builtin_type_float, builtin_type_double, builtin_type_long_double,
2121 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2122 builtin_type_bool, builtin_type_long_long,
2123 builtin_type_unsigned_long_long): Remove macros.
2124
2125 (builtin_type_f_character, builtin_type_f_integer,
2126 builtin_type_f_integer_s2, builtin_type_f_logical,
2127 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2128 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2129 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2130 builtin_type_f_complex_s32): Likewise.
2131
2132 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2133 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2134
2135 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2136 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2137
2138 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2139 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2140
2141 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2142
2143 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2144 target_gdbarch instead of builtin_type_void_data_ptr.
2145 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2146 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2147 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2148 open_symbol_file_object): Likewise.
2149 * nto-tdep.c (LM_ADDR): Likewise.
2150
2151 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2152
2153 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2154 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2155 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2156
2157 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2158
2159 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2160 and its associated types to perform pointer conversion.
2161 (procfs_can_use_hw_breakpoint): Likewise.
2162 (procfs_auxv_parse): Remove unused variable.
2163
2164 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2165
2166 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2167 instead of builtin_type_void_data_ptr.
2168 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2169
2170 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2171
2172 * expprint.c (print_subexp_standard): Compare against builtin type
2173 associated with exp->gdbarch instead of builtin_type_char.
2174
2175 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2176 extract values of arbitrary logical type. Handle arbitrary
2177 complex types.
2178
2179 * printcmd.c (float_type_from_length): New function.
2180 (print_scalar_formatted, printf_command): Use it.
2181
2182 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * valops.c: Include "objfiles.h" and "symtab.h".
2185 (find_function_in_inferior): New argument OBJF_P. Use it to return
2186 objfile where function is defined. Use per-objfile arch types
2187 instead of builtin_type_ to define default return type.
2188
2189 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2190 architecture to define inferior call argument types.
2191 * gcore.c (derive_heap_segment): Likewise.
2192 * objc-lang.c (value_nsstring): Likewise.
2193 * scm-lang.c (scm_lookup_name): Likewise.
2194 * scm-valprint.c (scm_inferior_print): Likewise.
2195 * valops.c (value_allocate_space_in_inferior): Likewise.
2196
2197 * eval.c (evaluate_subexp_standard): Update calls.
2198 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2199
2200 * linux-fork.c: Include "objfiles.h".
2201 * scm-lang.c: Include "objfiles.h".
2202 * scm-valprint.c: Include "objfiles.h".
2203
2204 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2205
2206 * gdbarch.sh (name_of_malloc): Remove.
2207 * gdbarch.c, gdbarch.h: Re-generate.
2208 * valops.c (value_allocate_space_in_inferior): Do not call
2209 gdbarch_name_of_malloc.
2210
2211 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2212
2213 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2214 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2215 (value_bit_index): Use extract_unsigned_integer
2216 instead of unpack_long to read single byte.
2217
2218 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2219
2220 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2221 associates types instead of builtin_type_ macros.
2222 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2223 (call_function_by_hand): Use per-architecture "int" type as
2224 fall-back if find_function_addr returns NULL VALUE_TYPE.
2225 Update call to value_arg_coerce.
2226
2227 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2228
2229 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2230 (cplus_make_method_ptr): Add TYPE parameter.
2231 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2232 on to current_cp_abi.method_ptr_size callback.
2233 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2234 current_cp_abi.make_method_ptr callback.
2235
2236 * gdbtypes.c (lookup_methodptr_type): Pass target type
2237 argument to cplus_method_ptr_size.
2238 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2239 (value_struct_elt_for_reference): Likewise.
2240
2241 * gnu-v3-abi.c (get_class_arch): New function.
2242 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2243 instead of current_gdbarch. Update all callers.
2244 (gnuv3_get_vtable): Likewise.
2245 (gnuv3_get_virtual_fn): Likewise.
2246 (gnuv3_decode_method_ptr): Likewise.
2247 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2248 Use it instead of current_gdbarch.
2249 (gnuv3_virtual_fn_field): Likewise.
2250 (gnuv3_baseclass_offset): Likewise.
2251 (gnuv3_print_method_ptr): Likewise.
2252 (gnuv3_method_ptr_to_value): Likewise.
2253 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2254 class architecture. Use architecture types instead of builtin types.
2255 (gnuv3_make_method_ptr): Likewise.
2256
2257 * cp-valprint.c (cp_print_class_member): Expect pointer type
2258 instead of class type. Use its length when extracting value.
2259 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2260
2261 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2262
2263 * stack.c (return_command): Use frame architecture to determine
2264 default integer return type.
2265
2266 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2267 to determine pointer types.
2268 (f77_get_dynamic_upperbound): Likewise.
2269
2270 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2271 (resolve_msgsend): Use architecture of current frame to determine
2272 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2273 (resolve_msgsend_stret, resolve_msgsend_super,
2274 resolve_msgsend_super_stret): Likewise.
2275
2276 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2277
2278 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2279 instead of builtin_type_ macros.
2280 * amd64-tdep.c (amd64_register_type): Likewise.
2281 (amd64_get_longjmp_target): Likewise.
2282 * arm-tdep.c (arm_register_type): Likewise.
2283 * avr-tdep.c (avr_register_type): Likewise.
2284 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2285 * frv-tdep.c (frv_register_type): Likewise.
2286 * h8300-tdep.c (h8300_register_type): Likewise.
2287 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2288 hppa_skip_trampoline_code): Likewise.
2289 * i386-tdep.c (i386_register_type): Likewise.
2290 (i386_unwind_pc, i386_sse_type): Likewise.
2291 * ia64-tdep.c (ia64_register_type): Likewise.
2292 * m32r-tdep.c (m32r_register_type): Likewise.
2293 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2294 * m88k-tdep.c (m88k_register_type): Likewise.
2295 * mep-tdep.c (mep_register_type): Likewise.
2296 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2297 * mn10300-tdep.c (mn10300_register_type): Likewise.
2298 * mt-tdep.c (mt_copro_register_type): Likewise.
2299 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2300 (rs6000_convert_register_p, rs6000_register_to_value,
2301 rs6000_value_to_register): Likewise.
2302 * s390-tdep.c (s390_register_type): Likewise.
2303 * sh64-tdep.c (sh64_register_type): Likewise.
2304 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2305 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2306 sh_sh4_build_float_register_type, sh_sh4_register_type,
2307 sh_default_register_type): Likewise.
2308 * sparc64-tdep.c (sparc64_register_type): Likewise.
2309 * sparc-tdep.c (sparc32_register_type): Likewise.
2310 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2311 * v850-tdep.c (v850_register_type): Likewise.
2312 * vax-tdep.c (vax_register_type): Likewise.
2313 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2314 xtensa_push_dummy_call): Likewise.
2315
2316 * std-regs.c (value_of_builtin_frame_fp_reg,
2317 value_of_builtin_frame_pc_reg): Likewise.
2318 * target-descriptions.c (tdesc_register_type): Likewise.
2319
2320 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2321
2322 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2323 instead of builtin_type_int as default unspecified integral type.
2324 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2325 assign_component, to_fixed_range_type): Likewise.
2326 * ada-typeprint.c (print_range, print_range_bound,
2327 print_range_type_named): Likewise.
2328 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2329 * eval.c (evaluate_subexp_standard): Likewise.
2330 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2331 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2332 build_gdb_vtable_type): Likewise.
2333 * jv-lang.c (java_array_type): Likewise.
2334 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2335 * m2-valprint.c (m2_print_long_set): Likewise.
2336 * parse.c (follow_types): Likewise.
2337 * p-typeprint.c (pascal_type_print_base): Likewise.
2338 * valops.c (value_one, value_array, value_string,
2339 value_bitstring): Likewise.
2340 * value.c (allocate_repeat_value, value_from_string): Likewise.
2341 * varobj.c (c_describe_child): Likewise.
2342 * mt-tdep.c (mt_register_type): Likewise.
2343 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2344 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2345
2346 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2347
2348 * defs.h (struct gdbarch): Add forward declaration.
2349 (set_next_address): Add GDBARCH argument.
2350 * printcmd.c (set_next_address): Use it to find pointer type.
2351 * breakpoint.c (breakpoint_1): Update call.
2352 * source.c (line_info): Likewise.
2353 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2354
2355 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2356 types for internal variable values.
2357 * infrun.c (handle_inferior_event): Likewise.
2358 * source.c (forward_search_command, reverse_search_command): Likewise.
2359 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2360 set_tracepoint_num, set_traceframe_context): Likewise.
2361
2362 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2363
2364 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2365 and builtin_true_unsigned_char.
2366 (builtin_type_true_char): Remove macro, add extern declaration.
2367 (builtin_type_true_unsigned_char): Add extern declaration.
2368 * gdbtypes.c (builtin_type_true_char): New global variable.
2369 (builtin_type_true_unsigned_char): Likewise.
2370 (_initialize_gdbtypes): Initialize them.
2371 (gdbtypes_post_init): Do not initialize builtin_true_char
2372 and builtin_true_unsigned_char members of struct builtin_type.
2373
2374 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2375 use builtin_type_true_unsigned_char instead.
2376
2377 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2378 instead of builtin_type_char for internal string.
2379
2380 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2381
2382 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2383 (builtin_type_f_void): Remove macro.
2384 * gdbtypes.c (builtin_type_void): New global variable.
2385 (_initialize_gdbtypes): Initialize it.
2386
2387 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2388 lookup_pointer_type or lookup_function_type on builtin_type_void.
2389 * printcmd.c (set_next_address): Likewise.
2390 * objc-lang.c (value_nsstring): Likewise.
2391 * mt-tdep.c (mt_copro_register_type): Likewise.
2392 * xtensa-tdep.c (xtensa_register_type): Likewise.
2393
2394 * symfile.c (syms_from_objfile): Remove special handling
2395 of builtin_type_void and builtin_type_char.
2396
2397 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2398
2399 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2400 of builtin_type_ macros when handling OP_OBJC_ operations.
2401 * objc-lang.c (print_object_command): Likewise.
2402
2403 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2404
2405 * ada-valprint.c: Include "objfiles.h".
2406 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2407 a System.Address type is defined to retrieve the proper pointer type
2408 to use to print it.
2409
2410 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2411
2412 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2413 result type instead of builtin_type_int.
2414 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2415 (ada_value_subscript): Update call to value_pos_atr.
2416 (ada_value_ptr_subscript): Likewise.
2417 (ada_evaluate_subexp): Likewise.
2418
2419 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2420
2421 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2422 (cast_from_fixed_to_double): Rename to ...
2423 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2424 of builtin_type_double.
2425 (ada_value_cast): Use cast_from_fixed instead of casting result
2426 of cast_from_fixed_to_double.
2427 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2428
2429 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2430
2431 * valops.c (value_ind): No longer allow dereferencing an
2432 integer type.
2433 * eval.c (evaluate_subexp_standard): Handle deferencing an
2434 integer type here.
2435 * ada-lang.c (ada_evaluate_subexp): Likewise.
2436
2437 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2438
2439 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2440 a reference type, pass the reference type directly to unpack_pointer.
2441 * c-valprint.c (c_val_print): Likewise.
2442 * f-valprint.c (f_val_print): Likewise.
2443 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2444 * p-valprint.c (pascal_val_print): Likewise.
2445
2446 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2447
2448 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2449 to construct the EVAL_SKIP dummy return value.
2450 * ada-lang.c (ada_evaluate_subexp): Likewise.
2451 * jv-lang.c (evaluate_subexp_java): Likewise.
2452 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2453 * scm-lang.c (evaluate_exp): Likewise.
2454
2455 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2456
2457 * value.h (coerce_enum, coerce_number): Remove prototypes.
2458 * value.c (coerce_enum, coerce_number): Remove.
2459 * valarith.c (value_x_binop): Do not call coerce_enum.
2460 (value_x_unop): Likewise.
2461 (value_logical_not): Call coerce_array instead of coerce_number.
2462
2463 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2464
2465 * ax-gdb.c: Include "language.h".
2466 (gen_frame_args_address): Add GDBARCH parameter; use it
2467 instead of current_gdbarch.
2468 (gen_frame_locals_address): Likewise.
2469 (gen_var_ref): Add GDBARCH parameter. Update calls to
2470 gen_frame_args_address and gen_frame_locals_address. Use
2471 pointer type from gdbarch.
2472 (gen_usual_unary): Add EXP parameter. Use integer type
2473 from exp->gdbarch.
2474 (gen_usual_arithmetic): Likewise.
2475 (gen_integral_promotions): Likewise.
2476 (gen_add, gen_sub): Remove.
2477 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2478 (gen_logical_not): Use passed-in boolean result type
2479 instead of builtin_type_int.
2480 (gen_complement): Do not call gen_usual_unary or
2481 gen_integral_promotions.
2482 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2483 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2484 Use builtin_type_int32 as internal range type.
2485 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2486 as result type. Update call to gen_expr.
2487 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2488 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2489 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2490 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2491 Use exp->gdbarch instead of current_gdbarch.
2492 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2493
2494 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2495
2496 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2497 and unop_promote before calling value_binop et. al.
2498 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2499 and unop_promote before calling value_binop et. al.
2500
2501 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2502 (value_pos): Do not call unop_promote.
2503 (value_neg, value_complement): Likewise.
2504
2505 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * value.h (unop_promote, binop_promote): Add prototypes.
2508 * eval.c (unop_promote, binop_promote): New functions.
2509 * valarith.c (unop_result_type, binop_result_type): Remove.
2510 (value_binop): Call binop_promote or unop_promote.
2511 Inline remaining parts of binop_result_type. Remove special
2512 code to truncate integer values for unsigned operations.
2513 (value_pos): Call unop_promote. Inline remaining parts of
2514 unop_result_type.
2515 (value_neg, value_complement): Likewise.
2516
2517 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2518
2519 * value.h (value_add, value_sub): Remove.
2520 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2521 * valarith.c (value_add, value_sub): Remove.
2522 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2523 (find_size_for_pointer_math): Add assertion. Update comment.
2524 (value_binop): Update comment.
2525
2526 * eval.c (ptrmath_type_p): New function.
2527 (evaluate_subexp_standard): Replace value_add and value_sub
2528 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2529 Use builtin_type_uint8 instead of builtin_type_char to hold
2530 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2531 * valarith.c (value_subscript): Replace value_add by
2532 value_ptradd. Replace value_sub by value_binop.
2533 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2534 (ada_tag_name_2): Replace value_add by value_ptradd.
2535 (ada_evaluate_subexp): Replace value_add and value_sub by
2536 value_binop.
2537 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2538 by value_ptradd.
2539 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2540 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2541
2542 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2543
2544 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2545 the expression architecture instead of builtin_type_int as the
2546 sizeof return type.
2547
2548 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2549
2550 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2551 a type parameter as expression element.
2552 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2553 type as expression element.
2554 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2555 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2556
2557 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2558
2559 * language.h (struct language_arch_info): New members
2560 bool_type_default and bool_type_symbol.
2561 (lang_bool_type): Remove prototype.
2562 (LA_BOOL_TYPE): Remove macro.
2563 (language_bool_type): Add prototype.
2564 * language.c (lang_bool_type): Remove.
2565 (language_bool_type): New function.
2566
2567 * value.h (value_in): Change return value to int.
2568 * value.c (value_in): Return int instead of struct value *.
2569
2570 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2571 of using LA_BOOL_TYPE. Update call to value_in.
2572 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2573 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2574
2575 * language.c (unknown_language_arch_info): Set bool_type_default member
2576 of struct language_arch_info.
2577 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2578 bool_type_default members of struct language_arch_info.
2579 * c-lang.c (c_language_arch_info): Set bool_type_default member
2580 of struct language_arch_info.
2581 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2582 members of struct language_arch_info.
2583 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2584 bool_type_default members of struct language_arch_info.
2585 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2586 bool_type_default members of struct language_arch_info.
2587 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2588 bool_type_default members of struct language_arch_info.
2589 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2590 bool_type_default members of struct language_arch_info.
2591
2592 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2593
2594 * jv-lang.c (enum java_primitive_types): New type.
2595 (java_language_arch_info): New function.
2596 (java_language): Use it instead of c_language_arch_info.
2597
2598 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2599
2600 * value.h (value_bitstring_subscript): New prototype.
2601 * valarith.h (value_bitstring_subscript): New function.
2602 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2603 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2604 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2605
2606 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2607
2608 * expression.h (struct expression): New member GDBARCH.
2609 * parse.c (parse_exp_in_context): Initialize it.
2610 * parser-def.h (parse_gdbarch, parse_language): New macros.
2611
2612 * ada-exp.y (parse_type): New macro.
2613 Replace builtin_type_ macros by using parse_type.
2614 Replace current_language by parse_language.
2615 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2616 Replace builtin_type_ macros.
2617
2618 * c-exp.y (parse_type): New macro.
2619 Replace builtin_type_ macros by using parse_type.
2620 (parse_number): Replace current_gdbarch by parse_gdbarch.
2621 (yylex): Replace current_language by parse_language.
2622
2623 * f-exp.y (parse_type, parse_f_type): New macros.
2624 Replace builtin_type_ macros by using parse_{f_,}type.
2625 (parse_number): Replace current_gdbarch by parse_gdbarch.
2626 (yylex): Replace current_language by parse_language.
2627
2628 * jv-exp.y (parse_type): New macro.
2629 (parse_number): Replace builtin_type_ macros by using parse_type.
2630
2631 * m2-exp.y (parse_type, parse_m2_type): New macros.
2632 Replace builtin_type_ macros by using parse_{m2_,}type.
2633
2634 * objc-exp.y (parse_type): New macro.
2635 Replace builtin_type_ macros by using parse_type.
2636 (parse_number): Replace current_gdbarch by parse_gdbarch.
2637 (yylex): Replace current_language by parse_language.
2638
2639 * p-exp.y (parse_type): New macro.
2640 Replace builtin_type_ macros by using parse_type.
2641 (parse_number): Replace current_gdbarch by parse_gdbarch.
2642 (yylex): Replace current_language by parse_language.
2643
2644 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2645
2646 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2647 and DATA_SYMBOL_TYPE arguments.
2648 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2649 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2650 (write_dollar_variable): Update call.
2651
2652 * ada-exp.y (write_var_or_type): Update call.
2653 * c-exp.y: Likewise.
2654 * f-exp.y: Likewise.
2655 * jv-exp.y: Likewise.
2656 * m2-exp.y: Likewise.
2657 * objc-exp.y: Likewise.
2658 * p-exp.y: Likewise.
2659
2660 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2661
2662 * ada-lang.c (ada_parent_type): Add handling of the case where
2663 the _parent field is a pointer and/or has a parallel XVS type.
2664 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2665 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2666 the type of the tag instead of doing forcing an EVAL_NORMAL
2667 expression evaluation.
2668
2669 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2670 Joel Brobecker <brobecker@adacore.com>
2671
2672 * ada-lang.c (is_digits_suffix): New function.
2673 (is_dot_digits_suffix): Remove.
2674 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2675 before looking up in symbol table, and do not use wild matches on them.
2676 (wild_match): Reimplement for speed and to allow matching of operator
2677 symbols.
2678 (is_valid_name_for_wild_match): Return zero for names that do not
2679 follow the GNAT encoding.
2680
2681 (is_name_suffix): Fix typo in comment.
2682 (to_record_with_fixed_variant_part): Ditto.
2683
2684 2008-09-10 Pedro Alves <pedro@codesourcery.com>
2685
2686 * Makefile.in (gnu-nat.o): New rule.
2687
2688 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2689
2690 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2691 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2692
2693 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2694
2695 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2696 Add special handling for pointer types.
2697
2698 2008-09-10 Pedro Alves <pedro@codesourcery.com>
2699
2700 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2701 right scope level.
2702 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2703
2704 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2705
2706 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2707 of builtin_type_int.
2708 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2709 instead of builtin_type_int.
2710
2711 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2712
2713 * infrun.c (normal_stop): Run hook-stop last.
2714
2715 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2716
2717 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2718 (init_gnu_ops): Don't register it.
2719
2720 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2721
2722 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2723 threads.
2724
2725 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2726
2727 * valops.c (value_cast_structs): Return NULL for failure.
2728 (value_cast): Handle NULL from value_cast_structs.
2729 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2730
2731 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2732
2733 * inferior.h (context_switch_to): Delete.
2734 * infrun.c (context_switch): Don't save and load infrun state.
2735 (context_switch_to): Delete.
2736
2737 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2738 calls by switch_to_thread calls.
2739
2740 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2741 * thread.c (main_thread_state, main_thread_executing): Delete.
2742 (inferior_thread): Delete references to them.
2743 (add_thread_silent): Fix case where we're adding a thread with the
2744 same ptid as an exited thread. Remove references to
2745 context-switching.
2746 (load_infrun_state, save_infrun_state): Delete.
2747 (thread_alive, is_thread_state, any_running, is_executing)
2748 (set_executing): Remove the special handling for targets that
2749 don't register any thread.
2750 (restore_current_thread, thread_apply_all_command)
2751 (do_captured_thread_select): Unconditionally call
2752 switch_to_thread.
2753
2754 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2755 Call switch_to_thread instead of context_switch_to.
2756
2757 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2758
2759 Remove global continuations in favour of a per-thread
2760 continuations.
2761
2762 * gdbthread.h (struct thread_info): Add comments around
2763 continuations and intermediate_continuations.
2764 (save_infrun_state, load_infrun_state): Delete continuations and
2765 intermediate_continuations arguments.
2766 * infrun.c (context_switch): Don't context-switch the continuations.
2767 * thread.c (clear_thread_inferior_resources): Discard all
2768 continuations of the thread we're clearing.
2769 (save_infrun_state, load_infrun_state): Delete continuations and
2770 intermediate_continuations arguments, and the code referencing
2771 them.
2772 * utils.c: Include "gdbthread.h".
2773 (cmd_continuation, intermediate_continuation): Delete.
2774 (add_continuation): Add thread_info* argument. Install the
2775 continuation on it.
2776 (restore_thread_cleanup): New.
2777 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2778 New.
2779 (do_all_continuations): Reimplement.
2780 (discard_all_continuations_thread_callback,
2781 discard_all_continuations_thread): New.
2782 (discard_all_continuations): Reimplement.
2783 (add_intermediate_continuation): Add thread_info* argument.
2784 Install the continuation on it.
2785 (do_all_intermediate_continuations_thread_callback)
2786 (do_all_intermediate_continuations_thread): New.
2787 (do_all_intermediate_continuations): Reimplement.
2788 (discard_all_intermediate_continuations_thread_callback): New.
2789 (discard_all_intermediate_continuations_thread): New.
2790 (discard_all_intermediate_continuations): Reimplement.
2791
2792 * breakpoint.c (until_break_command): Install the continuation on
2793 the current thread.
2794
2795 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2796 (struct thread_info): Forward declare.
2797 (add_continuation, add_intermediate_continuation): Add
2798 thread_info* argument.
2799 (do_all_continuations_thread, discard_all_continuations_thread)
2800 (do_all_intermediate_continuations_thread)
2801 (discard_all_intermediate_continuations_thread): Declare.
2802 * inf-loop.c (inferior_event_handler): In non-stop only run
2803 continuations on the thread that stopped. In all-stop, run
2804 continuations on all threads.
2805 * infcmd.c (step_once, finish_command): Adjust.
2806
2807 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2808
2809 Remove the global stop_step in favour of a per-thread
2810 stop_step.
2811
2812 * inferior.h (stop_step): Delete.
2813
2814 * gdbthread.h (struct thread_info): Add comments to stop_step.
2815 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2816 * thread.c (load_infrun_state, save_infrun_state): Remove
2817 stop_step argument, and references to it.
2818
2819 * infrun.c (clear_proceed_status): Clear stop_step.
2820 (fetch_inferior_event): Adjust.
2821 (context_switch): Don't context-switch stop_step.
2822 (handle_inferior_event): Adjust.
2823 (normal_stop): Adjust.
2824 (save_inferior_status, restore_inferior_status): Adjust.
2825
2826 * infcmd.c (stop_step): Delete.
2827 (step_1, step_1_continuation, step_once, until_next_command):
2828 Adjust.
2829
2830 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2831
2832 Remove the global step_multi in favour of a per-thread
2833 step_multi.
2834
2835 * inferior.h (step_multi): Delete.
2836 * gdbthread.h (struct thread_info): Add comments around
2837 step_multi.
2838 (save_infrun_state, load_infrun_state): Remove step_multi
2839 parameter.
2840 * thread.c (load_infrun_state, save_infrun_state): Remove
2841 step_multi argument, and references to it.
2842 * infcmd.c (step_multi): Delete.
2843 (step_1): Adjust.
2844 (step_1_continuation, until_next_command): Adjust.
2845 * infrun.c (fetch_inferior_event): Adjust.
2846 (context_switch): Don't context-switch step_multi.
2847 (print_stop_reason, normal_stop): Adjust.
2848
2849 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2850
2851 Remove the global stop_signal in favour of a per-thread
2852 stop_signal.
2853
2854 * inferior.h (stop_signal): Delete.
2855 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2856 stop_signal argument.
2857 * thread.c (load_infrun_state, save_infrun_state): Remove
2858 stop_signal argument. Don't reference it.
2859
2860 * infcmd.c (stop_signal): Delete.
2861 (program_info): Adjust.
2862 * infrun.c (resume): Clear stop_signal.
2863 (proceed): Adjust. Pass the last stop_signal to the thread we're
2864 resuming.
2865 (context_switch): Don't context-switch stop_signal.
2866 (handle_inferior_event, keep_going): Adjust.
2867 (save_inferior_status, restore_inferior_status): Adjust.
2868
2869 * fbsd-nat.c: Include "gdbthread.h".
2870 (find_signalled_thread, find_stop_signal): New.
2871 (fbsd_make_corefile_notes): Use it.
2872 * fork-child.c (startup_inferior): Adjust.
2873
2874 * linux-nat.c (get_pending_status): Adjust.
2875 (linux_nat_do_thread_registers): Adjust.
2876 (find_signalled_thread, find_stop_signal): New.
2877 (linux_nat_do_thread_registers): Add stop_signal parameter.
2878 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2879 (linux_nat_corefile_thread_callback): Pass stop_signal.
2880 (linux_nat_do_registers): Delete.
2881 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2882 there's always a thread.
2883
2884 * procfs.c (find_signalled_thread, find_stop_signal): New.
2885 (find_stop_signal): New.
2886 (procfs_do_thread_registers): Add stop_signal parameter.
2887 (struct procfs_corefile_thread_data): Add stop_signal member.
2888 (procfs_corefile_thread_callback): Pass args->stop_signal.
2889 (procfs_make_note_section): Find the last stop_signal.
2890
2891 * solib-irix.c: Include gdbthread.h.
2892 (irix_solib_create_inferior_hook): Adjust.
2893 * solib-osf.c: Include gdbthread.h.
2894 (osf_solib_create_inferior_hook): Adjust.
2895 * solib-sunos.c: Include gdbthread.h.
2896 (sunos_solib_create_inferior_hook): Adjust.
2897 * solib-svr4.c: Include gdbthread.h.
2898 (svr4_solib_create_inferior_hook): Adjust.
2899
2900 * win32-nat.c (do_initial_win32_stuff): Adjust.
2901
2902 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2903
2904 * gdbthread.h (struct thread_info): Add comments around
2905 proceed_to_finish.
2906 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2907 argument.
2908 * thread.c (load_infrun_state, save_infrun_state): Delete
2909 proceed_to_finish argument and references to it.
2910
2911 * infcall.c (call_function_by_hand): Adjust.
2912 * infcmd.c (finish_command): Adjust.
2913 * infrun.c (proceed_to_finish): Delete.
2914 (clear_proceed_status): Adjust.
2915 (context_switch): Don't context-switch proceed_to_finish.
2916 (normal_stop, save_inferior_status, restore_inferior_status):
2917 Adjust.
2918
2919 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2920
2921 * inferior.h (stop_bpstat): Delete.
2922
2923 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2924
2925 * breakpoint.c (bpstat_do_actions): Rename to ...
2926 (bpstat_do_actions_1): ... this. Make static. Change return type
2927 to int. Return true if a breakpoint proceeded.
2928 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2929 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2930 gone.
2931
2932 * gdbthread.h (struct thread_info): Add stop_bpstat.
2933 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2934 argument.
2935 * thread.c (load_infrun_state, save_infrun_state): Remove
2936 stop_bpstat argument, and the code referencing it.
2937
2938 * infcall.c: Include "gdbthread.h".
2939 (call_function_by_hand): Adjust.
2940 * exceptions.c: Include "gdbthread.h".
2941 (throw_exception): Adjust.
2942 * infcmd.c (stop_bpstat): Delete.
2943 (continue_command): In all-stop, set the ignore count on the
2944 thread that reported the stop. In non-stop, set it on the current
2945 thread.
2946 (finish_command_continuation): Adjust.
2947 (program_info): Adjust.
2948 * infrun.c (clear_proceed_status): Adjust.
2949 (context_switch): Don't context-switch stop_bpstat.
2950 (handle_inferior_event): Adjust.
2951 (normal_stop): Adjust.
2952 (save_inferior_status, restore_inferior_status): Adjust.
2953
2954 * inf-loop.c (inferior_event_handler): Remove parameter to
2955 bpstat_do_actions call.
2956 * top.c (command_loop): Remove parameter to bpstat_do_actions
2957 call. Call it unconditionally.
2958 * event-top.c (command_handler): Ditto.
2959 * python/python.c (execute_gdb_command): Ditto.
2960
2961 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2962
2963 * inferior.h (step_over_calls): Delete.
2964
2965 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2966 step_over_calls argument.
2967 * thread.c (save_infrun_state, load_infrun_state): Remove
2968 step_over_calls argument. Adjust.
2969
2970 * infcmd.c (step_over_calls): Delete.
2971 (step_1): Adjust.
2972 * infrun.c (clear_proceed_status): Adjust.
2973 (context_switch): Don't context-switch step_over_calls.
2974 (handle_inferior_event, save_inferior_status)
2975 (restore_inferior_status): Adjust.
2976
2977 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2978
2979 Remove context switching in favour of accessing thread_info fields
2980 directly.
2981
2982 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2983 Delete.
2984 (struct thread_stepping_state): Delete.
2985 (gtss, tss): Delete.
2986 (follow_inferior_reset_breakpoints, follow_exec)
2987 (resume, clear_proceed_status): Adjust.
2988 (prev_pc): Delete.
2989 (proceed, start_remote, init_wait_for_inferior): Adjust.
2990 (struct execution_control_state): Add event_thread member.
2991 (delete_step_resume_breakpoint_callback)
2992 (delete_step_thread_step_resume_breakpoint)
2993 (delete_step_thread_step_resume_breakpoint_cleanup)
2994 (delete_step_thread_step_resume_breakpoint): New.
2995 (wait_for_inferior, init_execution_control_state): Use
2996 delete_step_thread_step_resume_breakpoint_cleanup.
2997 (wait_for_inferior): Set the event_thread.
2998 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2999 with delete_step_thread_step_resume_breakpoint.
3000 (init_thread_stepping_state): Change parameter type to
3001 thread_info. Adjust.
3002 (context_switch): Don't context switch prev_pc,
3003 stepping_over_breakpoint, step_resume_breakpoint,
3004 step_range_start, step_range_end, step_frame_id,
3005 tss->stepping_over_breakpoint,
3006 tss->stepping_through_solib_after_catch,
3007 tss->stepping_through_solib_catchpoints, tss->current_line, or
3008 tss->current_symtab.
3009 (adjust_pc_after_break, handle_inferior_event)
3010 (currently_stepping, step_into_function)
3011 (insert_step_resume_breakpoint_at_sal)
3012 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3013 (clear_stepping_state): New.
3014 (normal_stop): Adjust.
3015 (save_inferior_status, restore_inferior_status): Adjust.
3016
3017 * gdbthread.h (struct thread_info): Comments describing the
3018 members moved here. Add step_after_step_resume_breakpoint.
3019 (delete_step_resume_breakpoint): Add thread_info argument.
3020 (save_infrun_state, load_infrun_state): Remove prev_pc,
3021 trap_expected, step_resume_breakpoint, step_range_start,
3022 step_range_end, step_frame_id, another_trap,
3023 stepping_through_solib_after_catch,
3024 stepping_through_solib_catchpoints, current_line and
3025 current_symtab function arguments.
3026 (inferior_thread): Declare.
3027
3028 * thread.c (inferior_thread): New.
3029 (delete_step_resume_breakpoint): Add a thread_info parameter and
3030 rewrite.
3031 (load_infrun_state, save_infrun_state): Remove prev_pc,
3032 trap_expected, step_resume_breakpoint, step_range_start,
3033 step_range_end, step_frame_id, stepping_over_breakpoint,
3034 stepping_through_solib_after_catch,
3035 stepping_through_solib_catchpoints, current_line and
3036 current_symtab args. Remove code referencing them.
3037
3038 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3039 Delete.
3040 (step_1, step_once, until_next_command): Adjust.
3041
3042 * inferior.h (step_range_start, step_range_end, step_frame_id):
3043 Delete.
3044
3045 * linux-nat.c (linux_child_follow_fork): If following the child,
3046 move the step state to it. Adjust.
3047 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3048 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3049
3050 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3051
3052 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3053 thread.
3054
3055 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3056
3057 * corelow.c (add_to_thread_list): If this is the first time we
3058 hear about thread info, update inferior_ptid.
3059 (core_open): Clear the thread list and set inferior_ptid before
3060 acknowledging a new inferior. Find threads before fetching
3061 register info. Give an upper target layer a chance to find and
3062 claim new threads. Print core generation and stop signal info
3063 after finding new threads.
3064 (get_core_register_section): Look at the lwp member of
3065 inferior_ptid for detecting if we have threads info, instead of
3066 the pid member.
3067 (core_pid_to_str): New.
3068 (init_core_ops): Register core_pid_to_str.
3069
3070 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3071
3072 * spu-linux-nat.c (spu_child_post_startup_inferior)
3073 (spu_child_post_attach): Don't add the main thread here.
3074
3075 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3076
3077 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3078
3079 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3080 seeing a thread id, extend the main thread's ptid. If we still
3081 have pending execs, don't be verbose about new threads.
3082 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3083 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3084 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3085 Adjust.
3086
3087 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3088
3089 * procfs.c (to_attach): Create a procinfo for the current lwp.
3090 Add it to gdb's thread list.
3091 (procfs_fetch_registers, procfs_store_registers): Assume there's
3092 always an lwp.
3093 (procfs_wait): Don't add the main thread here.
3094 (procfs_init_inferior): Create a procinfo for the main lwp here.
3095 Change main thread's ptid with thread_change_ptid.
3096 (procfs_notice_thread): Check for exited threads.
3097 (procfs_corefile_thread_callback): Remove check for the main
3098 process.
3099 (procfs_make_note_section): Assume there is always a thread.
3100
3101 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3102 attaching. Change the main thread ptid with thread_change_ptid.
3103 (sol_thread_detach): Clear sol_thread_active.
3104 (sol_thread_wait): Check for exited threads.
3105 (sol_thread_create_inferior): Clear sol_thread_active before
3106 creating a new inferior. Change the main thread ptid with
3107 thread_change_ptid.
3108 (sol_thread_mourn_inferior): Clear sol_thread_active.
3109 (sol_find_new_threads_callback): Check for exited threads.
3110
3111 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3112
3113 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3114 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3115 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3116 process, and return TARGET_WAITKIND_IGNORE.
3117
3118 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3119
3120 * inf-ttrace.c: Include <signal.h>
3121 (inf_ttrace_delete_dead_threads_callback): New.
3122 (inf_ttrace_resume_lwp): New.
3123 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3124 delete dying threads until they are really dead.
3125 (inf_ttrace_wait): After stopping the whole process, delete any
3126 dying thread that is really dead by now.
3127 (inf_ttrace_thread_alive): Return 1.
3128 (inf_ttrace_extra_thread_info): New.
3129 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3130
3131 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3132
3133 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3134 of the child fork.
3135 (inf_ttrace_attach): Add the main thread.
3136 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3137 for always a thread.
3138 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3139 using thread_change_ptid, and set its private data. Don't add the
3140 main thread here.
3141 (inf_ttrace_pid_to_str): Adjust.
3142
3143 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3144
3145 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3146 thread_change_ptid. Check for exited threads.
3147 (bsd_uthread_find_new_threads): Check for exited threads.
3148
3149 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3150
3151 * inf-ptrace.c: Include "gdbthread.h".
3152 (inf_ptrace_attach): Add the main thread here.
3153 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3154 Decorate the main thread id with the lwp id.
3155
3156 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3157
3158 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3159 thread_change_ptid. Don't add or mark the main thread as running
3160 and executing here.
3161 * fork-child.c (fork_inferior): Add the main thread here.
3162
3163 2008-09-08 Jerome Guitton <guitton@adacore.com>
3164
3165 * rs6000-tdep.c (rs6000_fetch_instruction)
3166 (rs6000_skip_stack_check): New functions.
3167 (skip_prologue): Skip stack check sequence.
3168
3169 2008-09-08 David Daney <ddaney@avtrex.com>
3170
3171 * dummy-frame.h (frame.h): Include it.
3172 (struct frame_id): Remove declaration.
3173
3174 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3175
3176 * spu-tdep.c (spu_push_dummy_code): New function.
3177 (spu_gdbarch_init): Install it.
3178
3179 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3180
3181 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3182 instead of paddr_nz.
3183 * gdbarch.c: Regenerate.
3184
3185 * target.c (target_xfer_partial, debug_print_register): Use
3186 core_addr_to_string_nz instead of paddr_nz.
3187
3188 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3189
3190 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3191 *before* calling gdbarch_init_osabi.
3192 (rs6000_aix_init_osabi): Disable displaced stepping.
3193
3194 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3195
3196 * target.c (update_current_target): Do not inherit to_open
3197 or to_close.
3198 (pop_target): Call target_close on target_stack instead
3199 of current_target.
3200 (pop_all_targets_above): Likewise.
3201
3202 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3203
3204 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3205 (gnuv3_print_method_ptr): Use it.
3206 (gnuv3_method_ptr_to_value): Likewise.
3207
3208 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3209
3210 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3211 register_area callback function.
3212 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3213 Use it instead of current_gdbarch.
3214 * nto-procfs.c (procfs_store_registers): Update call.
3215
3216 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3217
3218 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3219 regcache architecture instead of current_gdbarch.
3220
3221 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3222
3223 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3224 (check_for_saved): Use it instead of current_gdbarch.
3225 (is_arg_spill): Add gdbarch paramter. Use it instead
3226 of current_gdbarch.
3227 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3228 to is_arg_spill and check_for_saved.
3229 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3230
3231 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3232
3233 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3234 instead of current_gdbarch.
3235
3236 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3237
3238 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3239 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3240 Use it instead of current_gdbarch.
3241 (m68kbsd_supply_fpregset): Update call.
3242 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3243 (m68kbsd_collect_fpregset): Likewise.
3244
3245 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3246
3247 * cris-tdep.c (cris_version, cris_mode): Remove.
3248 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3249 (cris_breakpoint_from_pc): Likewise.
3250 (cris_frame_unwind_cache): Use tdep->cris_version.
3251 (crisv32_scan_prologue): Likewise.
3252 (cris_spec_reg_applicable): Add gdbarch argument.
3253 Use tdep->cris_version.
3254 (cris_register_size, cris_special_register_name): Update calls.
3255 (cris_special_register_name): Add gdbarch argument.
3256 (cris_register_name, crisv32_register_name): Update calls.
3257
3258 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3259
3260 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3261 instead of current_gdbarch.
3262
3263 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3264 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3265 * sh-tdep.c (gdb_print_insn_sh): Remove.
3266 (sh_gdbarch_init): Install print_insn_sh directly.
3267
3268 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3269 from current_gdbarch.
3270 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3271 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3272 depending on mips_abi.
3273
3274 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3275
3276 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3277 (smash_text_address): Likewise.
3278 * gdbarch.c, gdbarch.h: Regenerate.
3279
3280 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3281 * arch-utils.h (core_addr_identity): Likewise.
3282 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3283 (arm_smash_text_address): Likewise.
3284 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3285 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3286 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3287
3288 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3289 Use it instead of current_gdbarch.
3290
3291 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3292 arm_dwarf2_prev_register): Update calls.
3293 * m88k-tdep.c (m88k_unwind_pc): Update call.
3294
3295 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3296
3297 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3298 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3299 Call gdbarch_integer_to_address directly instead of converting
3300 to value and back. Update comment.
3301 (execute_stack_op): Update call site.
3302 * dwarf2loc.c (find_location_expression): Likewise.
3303 (locexpr_describe_location): Update
3304
3305 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3306 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3307 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3308 (dwarf2_loc_desc_needs_frame): Likewise.
3309
3310 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3311
3312 * breakpoint.h (struct bp_location): Change type of section
3313 member to "struct obj_section *".
3314 * tracepoint.h (struct tracepoint): Likewise.
3315 * symtab.h (struct general_symbol_info): Replace bfd_section
3316 member with obj_section.
3317 (struct symtab_and_line): Change type of section member to
3318 "struct obj_section *".
3319 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3320 (SYMBOL_OBJ_SECTION): ... this.
3321
3322 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3323 section as obj_section instead of bfd_section.
3324
3325 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3326 directly instead of looking of obj_section from bfd_section.
3327
3328 * objfiles.h (find_pc_sect_section): Remove.
3329 * objfiles.c (find_pc_sect_section): Remove.
3330 (find_pc_section): Inline find_pc_sect_section code.
3331
3332 * symfile.h (find_pc_overlay): Return struct obj_section *.
3333 (find_pc_mapped_section): Likewise.
3334 (section_is_overlay, section_is_mapped): Change type of section
3335 argument to struct obj_section *.
3336 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3337 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3338 (symbol_overlayed_address): Likewise.
3339 * symtab.h (symbol_overlayed_address): Likewise.
3340 * symfile.c (overlay_is_mapped): Remove.
3341 (section_is_mapped): Inline overlay_is_mapped code. Update.
3342 (overlay_invalidate_all): Update.
3343 (section_is_overlay): Change section argument to type
3344 "struct obj_section *". Use bfd_ methods.
3345 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3346 (pc_in_mapped_range): Likewise. Handle relocated sections.
3347 (sections_overlap): Likewise.
3348 (overlay_unmapped_address): Likewise.
3349 (overlay_mapped_address): Likewise.
3350 (symbol_overlayed_address): Likewise.
3351 (find_pc_overlay): Return struct obj_section *.
3352 (find_pc_mapped_section): Likewise.
3353 (list_overlays_command): Update.
3354 (map_overlay_command, unmap_overlay_command): Update.
3355 (simple_overlay_update): Update.
3356
3357 * block.h (blockvector_for_pc_sect): Change section argument
3358 to type "struct obj_section *".
3359 (block_for_pc_sect): Likewise.
3360 * block.c (blockvector_for_pc_sect): Change section argument
3361 to type "struct obj_section *".
3362 (block_for_pc_sect): Likewise.
3363 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3364 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3365 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3366 (matching_bfd_sections): Rename to ...
3367 (matching_obj_sections): ... this. Update argument types.
3368 * blockframe.c (find_pc_sect_function): Likewise.
3369 * breakpoint.c (describe_other_breakpoints): Likewise.
3370 (breakpoint_has_pc, check_duplicates_for): Likewise.
3371 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3372 (lookup_minimal_symbol_by_pc_section): Likewise.
3373 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3374 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3375 find_pc_sect_line, find_function_start_pc): Likewise.
3376 (matching_bfd_sections): Rename to ...
3377 (matching_obj_sections): ... this. Update argument types.
3378
3379 * blockframe.c (find_pc_partial_function): Update to section
3380 type changes. No longer call find_pc_sect_section.
3381 (cache_pc_function_section): Change to type "struct obj_section *".
3382 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3383 * exec.c (xfer_memory): Likewise.
3384 * findvar.c (read_var_value): Likewise.
3385 * infcmd.c (jump_command): Likewise.
3386 * linespec.c (minsym_found): Likewise.
3387 * maint.c (maintenance_translate_address): Likewise.
3388 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3389 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3390 * parse.c (write_exp_msymbol): Likewise.
3391 * printcmd.c (build_address_symbolic): Likewise.
3392 (address_info, sym_info): Likewise.
3393 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3394 * symtab.c (fixup_section): Likewise.
3395 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3396 (find_pc_line, find_function_start_sal): Likewise.
3397 * target.c (memory_xfer_partial): Likewise.
3398 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3399 * spu-tdep.c (spu_overlay_update): Likewise.
3400
3401 2008-09-04 Doug Evans <dje@google.com>
3402
3403 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3404 Change argument of pulongest from CORE_ADDR to ULONGEST.
3405 All callers updated.
3406 * utils.c (plongest): Renamed from paddr_d.
3407 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3408 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3409 `CORE_ADDR addr' arg of error message.
3410
3411 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3412
3413 * ser-tcp.c (ser_tcp_send_break): New function.
3414 (_initialize_ser_tcp): Use ser_tcp_send_break.
3415 * ser-tcp.h (ser_tcp_send_break): New prototype.
3416
3417 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3418
3419 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3420 when allocating stack frame for inferior call.
3421
3422 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3423
3424 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3425 SP or return address if we failed to find a valid frame.
3426
3427 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3428
3429 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3430 non-permanent breakpoints.
3431 (bpstat_stop_status): Change enable_state to bp_disabled only for
3432 non-permanent breakpoints.
3433 (bp_loc_is_permanent): New function.
3434 (create_breakpoint): Check if the location points to a permanent
3435 breakpoint and if it does, make breakpoint permanent.
3436 (update_breakpoint_locations): Make sure new locations of permanent
3437 breakpoints are properly initialized.
3438 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3439 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3440
3441 2008-09-02 Pedro Alves <pedro@codesourcery.com>
3442
3443 * breakpoint.c (insert_breakpoints, update_global_location_list):
3444 Check breakpoints_always_inserted_mode instead of
3445 always_inserted_mode directly.
3446
3447 2008-09-02 Andreas Schwab <schwab@suse.de>
3448
3449 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3450
3451 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3452
3453 Stay compatible after the GCC PR fortran/29635 fix.
3454 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3455 (process_die <DW_TAG_imported_module>): Do not assert anything about
3456 these unsupported tags.
3457
3458 2008-08-29 Tom Tromey <tromey@redhat.com>
3459
3460 * maint.c (_initialize_maint_cmds): Fix typo.
3461
3462 2008-08-29 Tom Tromey <tromey@redhat.com>
3463
3464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3465 obstack.
3466
3467 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3468
3469 * remote.c: Include "gdb_stat.h".
3470
3471 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3472
3473 * dummy-frame.h (dummy_frame_pop): Add prototype.
3474 * dummy-frame.c: Include "observer.h".
3475 (dummy_frame_push): Do not check for stale frames.
3476 (dummy_frame_pop): New function.
3477 (cleanup_dummy_frames): New function.
3478 (_initialize_dummy_frame): Install it as inferior_created observer.
3479
3480 * frame.h (struct frame_id): Update comments.
3481 (frame_id_inner): Remove prototype.
3482 * frame.c (frame_id_inner): Make static. Add comments.
3483 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3484 false positives for targets using non-contiguous stack ranges.
3485 (get_prev_frame_1): Update frame_id_inner safety net check.
3486 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3487
3488 * stack.c (return_command): Directly pop the selected frame.
3489 * infrun.c (handle_inferior_event): Remove dead code.
3490 * i386-tdep.c (i386_push_dummy_call): Update comment.
3491
3492 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3493
3494 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3495 breakpoint from shared library.
3496
3497 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3498
3499 * solib-svr4.c (read_program_header): New function.
3500 (scan_dyntag_auxv): New function.
3501 (elf_locate_base): Use it if scan_dyntag fails.
3502 (find_program_interpreter): New function.
3503 (enable_break): Use it instead of .interp section.
3504
3505 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3506
3507 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3508 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3509 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3510 remote_bfd_open): New functions.
3511 (remote_hostio_send_command): Fail safely if remote connection
3512 is not set up.
3513
3514 * solist.h (solib_open): Remove prototype.
3515 (solib_bfd_open): Add prototype.
3516 * solib.c: Include "remote.h".
3517 (solib_open): Remove, replace by ...
3518 (solib_bfd_open): ... this new function. Handle remote BFDs.
3519 (solib_map_sections): Replace solib_open by solib_bfd_open.
3520 * solib-frv.c: Include "exceptions.h".
3521 (enable_break2): Replace solib_open by solib_bfd_open.
3522 * solib-svr4.c: Include "exceptions.h".
3523 (enable_break): Replace solib_open by solib_bfd_open.
3524
3525 * symfile.c: Include "remote.h".
3526 (build_id_verify): Handle remote BFDs.
3527 (separate_debug_file_exists): Use BFD to access file. Handle
3528 remote BFDs.
3529 (symfile_bfd_open): Handle remote BFDs.
3530 (reread_symbols): Handle remote BFDs.
3531
3532 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3533
3534 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3535
3536 * gdbarch.sh (target_gdbarch): New global variable.
3537 (deprecated_current_gdbarch_select_hack): Set it.
3538 * gdbarch.c, gdbarch.h: Regenerate.
3539
3540 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3541 of current_gdbarch.
3542 * target-descriptions.c (target_find_description): Likewise.
3543 * arm-tdep.c (arm_update_current_architecture): Likewise.
3544 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3545 arm_show_force_mode): Likewise.
3546 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3547 show_mips_abi): Likewise.
3548 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3549
3550 * target.c (target_translate_tls_address): Use target_gdbarch
3551 instead of current_gdbarch.
3552 * remote.c (struct packet_reg): Likewise.
3553 (get_remote_arch_state, packet_reg_from_regnum,
3554 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3555 remote_address_masked, remote_insert_breakpoint,
3556 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3557 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3558 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3559 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3560
3561 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3562 solib_add, info_sharedlibrary_command, solib_address,
3563 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3564 solib_global_lookup): Likewise.
3565 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3566 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3567 Likewise.
3568 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3569 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3570 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3571 Likewise.
3572 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3573 nto_truncate_ptr): Likewise.
3574 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3575
3576 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
3577
3578 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3579 (ppc_linux_vmx_regset_sections): New structure.
3580 (ppc_linux_fp_regset_sections): New structure.
3581 (ppc_linux_init_abi): Select core-file regset based on target
3582 features.
3583
3584 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3585
3586 * target.c (debug_print_register): Use regcache_raw_collect
3587 instead of regcache_cooked_read. Only handle raw registers.
3588
3589 2008-08-25 Pedro Alves <pedro@codesourcery.com>
3590
3591 * cp-name-parser.y: Include config.h before system headers.
3592
3593 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3594
3595 * m88k-tdep.c: Update for unwinder changes.
3596
3597 2008-08-24 Tom Tromey <tromey@redhat.com>
3598
3599 * s390-tdep.c (s390_address_class_type_flags): Use
3600 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3601 (s390_address_class_type_flags_to_name): Likewise.
3602 (s390_address_class_name_to_type_flags): Likewise.
3603
3604 2008-08-24 Tom Tromey <tromey@redhat.com>
3605
3606 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3607 TYPE_FLAGS.
3608 * features/rs6000/powerpc-vsx32l.c
3609 (initialize_tdesc_powerpc_vsx32l): Update.
3610 * features/rs6000/powerpc-vsx32.c
3611 (initialize_tdesc_powerpc_vsx32): Update.
3612 * features/rs6000/powerpc-vsx64.c
3613 (initialize_tdesc_powerpc_vsx64): Update.
3614 * features/rs6000/powerpc-vsx64l.c
3615 (initialize_tdesc_powerpc_vsx64l): Update.
3616 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3617 TYPE_VECTOR, not TYPE_FLAGS.
3618
3619 2008-08-24 Tom Tromey <tromey@redhat.com>
3620
3621 * xml-tdesc.c (tdesc_end_union): Update.
3622 * stabsread.c (define_symbol): Update.
3623 (read_type): Update.
3624 (read_struct_type): Update.
3625 (read_enum_type): Update.
3626 * spu-tdep.c (spu_builtin_type_vec128): Update.
3627 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3628 (sh_push_dummy_call_nofpu): Update.
3629 * mdebugread.c (parse_symbol): Update.
3630 (parse_symbol): Update.
3631 (parse_symbol): Update.
3632 (upgrade_type): Update.
3633 * jv-lang.c (java_lookup_class): Update.
3634 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3635 * i386-tdep.c (i386_mmx_type): Update.
3636 (i386_sse_type): Update.
3637 * gdbtypes.h (enum type_flag_value): New enum.
3638 (enum type_instance_flag_value): New enum.
3639 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3640 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3641 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3642 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3643 TYPE_FLAG_NOTTEXT): Now enum constants.
3644 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3645 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3646 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3647 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3648 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3649 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3650 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3651 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3652 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3653 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3654 TYPE_NOTTEXT): Update.
3655 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3656 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3657 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3658 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3659 TYPE_ADDRESS_CLASS_ALL): Update.
3660 (struct main_type) <flags>: Remove.
3661 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3662 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3663 flag_vector, flag_stub_supported, flag_nottext,
3664 flag_fixed_instance>: New fields.
3665 <nfields, vptr_fieldno>: Move earlier.
3666 (TYPE_FLAGS): Remove.
3667 * gdbtypes.c (make_pointer_type): Update.
3668 (address_space_name_to_int): Update.
3669 (address_space_int_to_name): Update.
3670 (make_type_with_address_space): Update.
3671 (make_cv_type): Update.
3672 (create_range_type): Update.
3673 (get_discrete_bounds): Update.
3674 (create_set_type): Update.
3675 (make_vector_type): Update.
3676 (smash_to_method_type): Update.
3677 (check_typedef): Update.
3678 (check_stub_method): Update.
3679 (init_type): Individually assign flag fields.
3680 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3681 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3682 (copy_type_recursive): Copy the entire main type. Don't use
3683 TYPE_FLAGS.
3684 * features/rs6000/powerpc-altivec64l.c
3685 (initialize_tdesc_powerpc_altivec64l): Update.
3686 * features/rs6000/powerpc-altivec64.c
3687 (initialize_tdesc_powerpc_altivec64): Update.
3688 * features/rs6000/powerpc-altivec32l.c
3689 (initialize_tdesc_powerpc_altivec32l): Update.
3690 * features/rs6000/powerpc-altivec32.c
3691 (initialize_tdesc_powerpc_altivec32): Update.
3692 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3693 Update.
3694 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3695 Update.
3696 * dwarf2read.c (read_structure_type): Update.
3697 (read_enumeration_type): Likewise.
3698 (process_enumeration_scope): Likewise.
3699 (read_tag_pointer_type): Likewise.
3700 (read_subroutine_type): Likewise.
3701 (read_subroutine_type): Likewise.
3702 (read_base_type): Likewise.
3703 * coffread.c (coff_read_enum_type): Update.
3704 * ada-valprint.c (adjust_type_signedness): Update.
3705 * ada-typeprint.c (print_record_field_types): Update.
3706 * ada-lang.c (packed_array_type): Update.
3707 (empty_record): Don't reset TYPE_FLAGS.
3708 (ada_template_to_fixed_record_type_1): Update.
3709 (ada_template_to_fixed_record_type_1): Likewise.
3710 (template_to_static_fixed_type): Likewise.
3711 (to_record_with_fixed_variant_part): Likewise.
3712 (to_fixed_record_type): Likewise.
3713 (to_fixed_array_type): Likewise.
3714 (to_static_fixed_type): Likewise.
3715
3716 2008-08-23 Jim Blandy <jimb@redhat.com>
3717
3718 PR macros/607:
3719 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3720 for the macro bcache.
3721
3722 2008-08-23 Tom Tromey <tromey@redhat.com>
3723
3724 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3725 (argc): Now 31 bits.
3726
3727 2008-08-22 Tom Tromey <tromey@redhat.com>
3728
3729 * NEWS: Move macro entries back under "New commands".
3730
3731 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3732
3733 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3734 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3735 (create_overlay_event_breakpoint): Loop over all objfiles to install
3736 multiple instances of the overlay event breakpoint if present.
3737
3738 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3739
3740 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3741 (info_spu_event_command): Command only supported on SPU architecture.
3742 (info_spu_signal_command): Likewise.
3743 (info_spu_mailbox_command): Likewise.
3744 (info_spu_dma_command): Likewise.
3745 (info_spu_proxydma_command): Likewise.
3746
3747 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3748
3749 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3750 if the thread has already exited.
3751
3752 2008-08-22 Pedro Alves <pedro@codesourcery.com>
3753
3754 * infrun.c (proceed): Move back setting previous_inferior_ptid
3755 from here ...
3756 (wait_for_inferior): ... to here.
3757 (fetch_inferior_event): ... and here.
3758
3759 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3760
3761 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3762 (deprecated_current_gdbarch_select_hack): Call registers_changed
3763 instead of reinit_frame_cache.
3764 * gdbarch.c: Regenerate.
3765
3766 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3767
3768 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3769
3770 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3771
3772 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3773
3774 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3775
3776 * findvar.c (locate_var_value): Do not call get_frame_arch
3777 with a NULL frame argument.
3778
3779 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3780
3781 * frame.h (frame_map_regnum_to_name): Remove prototype.
3782 (frame_map_name_to_regnum): Remove prototype.
3783 * frame.c (frame_map_regnum_to_name): Remove.
3784 (frame_map_name_to_regnum): Remove.
3785 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3786 instead of frame_map_regnum_to_name.
3787 * ax-gdb.c: Include "user-regs.h".
3788 (gen_expr): Use user_reg_map_name_to_regnum instead of
3789 frame_map_name_to_regnum.
3790 * eval.c: Include "user-regs.h".
3791 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3792 instead of frame_map_name_to_regnum.
3793 * infcmd.c (registers_info): Likewise.
3794 * parse.c: Include "user-regs.h".
3795 (write_dollar_variable): Use user_reg_map_name_to_regnum
3796 instead of frame_map_name_to_regnum.
3797 * tracepoint.c: Include "user-regs.h".
3798 (encode_actions): Use user_reg_map_name_to_regnum
3799 instead of frame_map_name_to_regnum.
3800 * valops.c: Include "user-regs.h".
3801 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3802 of frame_map_regnum_to_name.
3803
3804 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3807 and manually relocate .opd contents from BFD instead of reading
3808 them from target memory.
3809
3810 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3811
3812 * dwarf2read.c (processing_current_prefix): Delete static
3813 variable.
3814 (process_full_comp_unit): Do not set processing_current_prefix.
3815 (dwarf2_full_name): New function.
3816 (read_func_scope): Do not set processing_current_prefix. Use
3817 determine_prefix.
3818 (read_structure_type): Do not set processing_current_prefix. Remove
3819 unused inner cleanup.
3820 (process_structure_scope): Do not set processing_current_prefix.
3821 (read_enumeration_type): Use dwarf2_full_name.
3822 (determine_class_name): Return a const char *. Put the result
3823 on the objfile obstack. Use dwarf2_full_name.
3824 (read_namespace_type): New function.
3825 (read_namespace): Do not create the type here. Use
3826 determine_prefix.
3827 (read_typedef): Use dwarf2_full_name. Do not pass the name
3828 to init_type.
3829 (read_base_type): Do not pass the name to init_type. Handle
3830 TYPE_FLAG_NOSIGN.
3831 (read_unspecified_type): Do not pass the name to init_type.
3832 (new_symbol): Use dwarf2_full_name instead of
3833 processing_current_prefix.
3834 (read_type_die): Do not set processing_current_prefix. Handle
3835 DW_TAG_namespace.
3836 (determine_prefix): Handle specifications. Return the result
3837 on the objfile obstack. Handle unions correctly.
3838
3839 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3840
3841 * buildsym.c (add_symbol_to_list): Do not call
3842 cp_scan_for_anonymous_namespaces here.
3843 (finish_block): Do not call cp_set_block_scope here.
3844 * cp-namespace.c (processing_has_namespace_info)
3845 (processing_current_prefix): Delete.
3846 (cp_initialize_namespace): Do not initialize
3847 processing_has_namespace_info.
3848 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3849 not check processing_has_namespace_info.
3850 (cp_set_block_scope): Take prefix and namespace info flag as
3851 arguments. Honor namespaces regardless of a demangled name.
3852 * cp-support.h (processing_has_namespace_info)
3853 (processing_current_prefix): Delete declarations.
3854 (cp_set_block_scope): Update prototype.
3855 * dwarf2read.c (processing_has_namespace_info)
3856 (processing_current_prefix): New static variables.
3857 (read_file_scope): Initialize processing_has_namespace_info.
3858 (read_func_scope): Call cp_set_block_scope for C++.
3859 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3860 * symtab.c (symbol_demangled_name): Accept a const argument.
3861 * symtab.h (symbol_demangled_name): Update prototype.
3862
3863 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3864
3865 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3866 * blockframe.c (find_pc_partial_function): Likewise.
3867 * buildsym.c (find_symbol_in_list): Likewise.
3868 * c-valprint.c (c_val_print): Likewise.
3869 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3870 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3871 * cp-support.c (cp_remove_params): Renamed from remove_params and
3872 made global.
3873 (overload_list_add_symbol): Update call to remove_params.
3874 * cp-support.h (cp_remove_params): Declare.
3875 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3876 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3877 * expprint.c (dump_subexp_body_standard): Likewise.
3878 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3879 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3880 for messages.
3881 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3882 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3883 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3884 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3885 symbols and SYMBOL_PRINT_NAME for messages.
3886 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3887 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3888 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3889 SYMBOL_SET_LINKAGE_NAME.
3890 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3891 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3892 SYMBOL_SEARCH_NAME.
3893 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3894 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3895 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3896 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3897 (address_info): Use SYMBOL_PRINT_NAME for messages and
3898 SYMBOL_LINKAGE_NAME for lookups.
3899 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3900 * stabsread.c (patch_block_stabs, define_symbol)
3901 (read_type, read_enum_type, common_block_end)
3902 (cleanup_undefined_types_1, scan_file_globals): Use
3903 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3904 and SYMBOL_PRINT_NAME.
3905 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3906 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3907 cp_remove_params instead of cplus_demangle.
3908 (print_block_frame_labels, print_frame_arg_vars): Use
3909 SYMBOL_LINKAGE_NAME.
3910 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3911 SYMBOL_LINKAGE_NAME.
3912 (dump_symtab_1, print_symbol, print_partial_symbols)
3913 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3914 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3915 (SYMBOL_SET_LINKAGE_NAME): New.
3916 (SYMBOL_SET_NAMES): Add a comment.
3917 * tracepoint.c (set_traceframe_context, validate_actionline)
3918 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3919 lookups and SYMBOL_PRINT_NAME for output.
3920 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3921 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3922
3923 2008-08-21 Pedro Alves <pedro@codesourcery.com>
3924
3925 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3926 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3927 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3928 obj_section_addr and obj_section_endaddr.
3929 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3930 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3931 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3932 (find_extant_func_descr): Likewise.
3933 * solib-frv.c (frv_relocate_main_executable): Use
3934 obj_section_addr.
3935 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3936 obj_section_addr and obj_section_endaddr.
3937
3938 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3939
3940 * NEWS: Amplify last entry on boolean types in Ada.
3941
3942 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3943
3944 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3945 Make the dwarf2_cu * parameter output as well as input. Update it if
3946 we follow a reference to another CU.
3947 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3948 (die_type, die_containing_type): Update calls to changed functions.
3949 Use the returned CU along with the returned DIE.
3950 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3951
3952 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3953
3954 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3955 in the DIEs here.
3956 (process_queue): Do not read in the DIEs here.
3957 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3958 (read_full_die): Do not call queue_comp_unit from here.
3959 (maybe_queue_comp_unit): New function.
3960 (follow_die_ref): Use it.
3961
3962 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3963
3964 * dwarf2read.c (struct attribute): Move earlier.
3965 (struct die_info): Change attrs to a trailing array.
3966 (dwarf_alloc_die): Take the number of attributes. Allocate space
3967 for them.
3968 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3969 allocate attributes.
3970
3971 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3972
3973 * dwarf2read.c (REF_HASH_SIZE): Delete.
3974 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3975 (struct die_info): Remove next_ref.
3976 (store_in_ref_table): Remove offset argument. Rewrite to use
3977 htab_find_slot_with_hash.
3978 (die_hash, die_eq): New.
3979 (read_comp_unit): Allocate the die_hash.
3980 (read_die_and_children): Update call to store_die_ref.
3981 (follow_die_ref): Rewrite to use htab_find_with_hash.
3982
3983 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3984
3985 * dwarf2read.c (free_die_list, copy_die): Delete.
3986 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3987 on the obstack.
3988 (read_full_die): Update call to dwarf_alloc_die. Allocate
3989 attributes on the CU obstack.
3990 (free_one_comp_unit): Do not call free_die_list.
3991
3992 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3993
3994 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3995 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3996 sibling list.
3997 (read_full_die): Do not allocate DIEs for abbrev 0.
3998 (follow_die_ref): Correct error message.
3999
4000 2008-08-20 Pedro Alves <pedro@codesourcery.com>
4001
4002 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4003 there are no symbols loaded, instead of throwing a generic error.
4004 (decode_variable): Likewise.
4005
4006 2008-08-20 Pedro Alves <pedro@codesourcery.com>
4007
4008 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4009 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4010 macros.
4011 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4012 and offset. Use size_t instead of unsigned long.
4013 (build_objfile_section_table): Use size_t instead of unsigned
4014 long.
4015 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4016 gone.
4017 (find_pc_sect_section): Use obj_section_addr and
4018 obj_section_endaddr.
4019 * symfile.c (symfile.c): Remove code that maps sections
4020 offsets in "addr" to the object's sections.
4021 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4022 * gcore.c (gcore_create_callback): Use obj_section_addr and
4023 obj_section_endaddr.
4024 * maint.c (print_objfile_section_info): Likewise.
4025 * printcmd.c (sym_info): Use obj_section_addr and
4026 obj_section_endaddr.
4027 * symtab.c (fixup_section): Likewise.
4028
4029 2008-08-20 Mark Kettenis <kettenis@gnu.org>
4030
4031 * sparc-tdep.c: Make some comments catch up with reality.
4032
4033 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4034
4035 * NEWS: Mention 'set target-async'
4036
4037 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4038
4039 * infrun.c (resume): If the thread is placed to the deferred step
4040 queue, mark it as running.
4041
4042 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4043
4044 Make sure target supports non-stop.
4045 * infcmd.c (run_command_1, attach_command): If non-stop mode
4046 is requested, verify the target supports it.
4047 * linux-nat.c (linux_nat_supports_non_stop): New.
4048 (linux_nat_add_target): Register the above.
4049 * target.c (find_default_supports_non_stop)
4050 (target_supports_non_stop): New.
4051 (init_dummy_target): Register find_default_supports_non_stop.
4052 * target.h (struct target_ops): New field to_supports_non_stop.
4053 (target_supports_non_stop): New.
4054
4055 2008-08-19 Pedro Alves <pedro@codesourcery.com>
4056 Vladimir Prus <vladimir@codesourcery.com>
4057
4058 * target.c (target_async_permitted, target_async_permitted_1)
4059 (set_maintenance_target_async_permitted)
4060 (show_maintenance_target_async_permitted): New.
4061 (initialize_targets): Register 'set target-async'.
4062 * target.h (target_async_permitted): Declare.
4063 * linux-nat.c (linux_nat_async_enabled)
4064 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4065 (show_maintenance_linux_async_permitted): Remove.
4066 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4067 (get_pending_events, linux_nat_async): Use target_async_permitted.
4068 (linux_nat_set_async_mode): Remove, moving the only used bits
4069 into...
4070 (linux_nat_setup_async): This.
4071 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4072 Use linux_nat_setup_async.
4073 * remote.c (remote_async_permitted, remote_async_permitted_set)
4074 (set_maintenance_remote_async_permitted)
4075 (show_maintenance_remote_async_permitted): Remove.
4076 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4077 (remote_is_async_p): Use target_async_permitted.
4078 (_initialize_remote): Don't register 'main set remote-async'.
4079 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4080 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4081 * mi/mi-main.c (mi_cmd_list_target_features): New.
4082
4083 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4084
4085 * target.c (maybe_kill_then_attach)
4086 (maybe_kill_then_create_inferior): Remove.
4087 (update_current_target): Do not default to_attach,
4088 to_create_inferiour, to_is_async_p.
4089
4090 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
4091
4092 Changes for supporting boolean types in debugging data.
4093 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4094 API to return LONGEST values rather than struct values.
4095 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4096 and discrete_type_high_bound.
4097 (to_fixed_range_type): Create a range type in cases where
4098 argument is base type and its limits are representable as ints.
4099 (ada_is_modular_type): Correct so that base type must be integral.
4100 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4101 keywords when they appear alone, since we are phasing out
4102 direct representation of these identifiers in debugging data.
4103 * ada-exp.y: Define 'true' and 'false' as primaries.
4104 (type_boolean): New function.
4105 (type_int,type_long,type_long_long,type_floattype_double)
4106 (type_long_double): Remove uses of current_gdbarch for consistency
4107 with type_boolean.
4108 (write_int): Change comment to indicate that it might write boolean
4109 constant as well.
4110 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4111 type, since will no longer be represented as enumerated type in
4112 debugging data.
4113 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4114 as well.
4115 * NEWS: Note support boolean types.
4116
4117 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4118
4119 * bsd-uthread.c (bsd_uthread_close): New.
4120 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4121 target.
4122 (bsd_uthread_solib_loaded): Fix typo.
4123 (bsd_uthread_target): Register bsd_uthread_close.
4124
4125 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4126
4127 * corelow.c (core_open): Assume there was no upper layer left
4128 behind from a previous inferior.
4129 * target.c (pop_all_targets): Rename to ...
4130 (pop_all_targets_above): ... this. Add a target stratum
4131 parameter. Use it instead of hardcoding the dummy_stratum.
4132 (pop_all_targets): New, defer to pop_all_targets_above.
4133 (target_preopen): Use pop_all_targets_above.
4134 * target.h (pop_all_targets_above): Declare.
4135
4136 2008-08-18 Pedro Alves <pedro@codesourcery.com>
4137
4138 * gdbthread.h (thread_change_ptid): Declare.
4139 * infrun.c (infrun_thread_ptid_changed): New.
4140 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4141 thread_ptid_changed observer.
4142 * regcache.c (regcache_thread_ptid_changed): New.
4143 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4144 thread_ptid_changed observer.
4145 * thread.c (thread_change_ptid): New.
4146
4147 2008-08-18 Tom Tromey <tromey@redhat.com>
4148
4149 * symfile.c (reread_symbols): Update.
4150 * solib-sunos.c (allocate_rt_common_objfile): Update.
4151 * objfiles.c (allocate_objfile): Update.
4152 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4153 Remove.
4154
4155 2008-08-18 Tom Tromey <tromey@redhat.com>
4156
4157 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4158 obstack.
4159
4160 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4161
4162 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4163 lr_register.
4164 (rs6000_in_function_epilogue_p): Check for bctr.
4165 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4166 number. Set gpr_mask and used_bl. Continue scanning while some
4167 expected registers are not saved. Set lr_register if LR is not
4168 stored.
4169 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4170
4171 2008-08-17 Tom Tromey <tromey@redhat.com>
4172
4173 PR gdb/1535:
4174 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4175 (ep_find_event_name_end): Remove.
4176 (catch_fork_temporary, catch_vfork_temporary,
4177 catch_fork_permanent, catch_vfork_permanent): New constants.
4178 (catch_vfork, catch_fork): Remove.
4179 (catch_fork_command_1): Add 'command' argument. Remove
4180 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4181 all cases.
4182 (catch_exec_command_1): Add 'command' argument; remove
4183 'tempflag'. Handle NULL 'arg'.
4184 (catch_load_command_1): Likewise.
4185 (catch_unload_command_1): Likewise.
4186 (catch_ada_exception_command): Likewise.
4187 (catch_assert_command): Likewise.
4188 (catch_catch_command): New function.
4189 (catch_throw_command): Likewise.
4190 (catch_command_1): Remove.
4191 (catch_command): Just call error.
4192 (tcatch_command): Likewise.
4193 (catch_cmdlist): New global.
4194 (tcatch_cmdlist): Likewise.
4195 (add_catch_command): New function.
4196 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4197 commands. Create all catch sub-commands.
4198
4199 2008-08-17 Pedro Alves <pedro@codesourcery.com>
4200
4201 * gdbthread.h: Add comments.
4202 * stack.c (get_selected_block): Return 0 on an exited thread.
4203 * top.c (execute_command): Check for is_stopped, not !is_running.
4204 * event-top.c (command_handler): Likewise.
4205
4206 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4207
4208 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4209 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4210 (mi_cmd_exec_finish): Remove "return".
4211
4212 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4213
4214 * target.h (pop_all_targets): Declare.
4215 * target.c (pop_all_targets): New.
4216 * top.c (quit_target): Pop all targets instead of just closing the
4217 current.
4218
4219 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4220 Thiago Jung Bauermann <bauerman@br.ibm.com>
4221
4222 * cli-script.c (read_next_line): Add parse_commands argument.
4223 (recurse_read_control_structure): Adapt to new read_next_line
4224 signature.
4225 (read_command_lines): Add parse_commands argument.
4226 (define_command): Adapt to new read_command_lines signature.
4227 (document_command): Likewise.
4228 * breakpoint.c (commands_command): Likewise.
4229 * defs.h (read_command_lines): Adjust function prototype.
4230
4231 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4232
4233 * ada-lang.c (pos_atr): Account for the possibility that the
4234 argument may be a reference.
4235
4236 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4237
4238 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4239 ('F' format) for @FIX names generated by the loader, retaining only
4240 the minimal symbols (and no partial symbol tables) for these names.
4241 Fixes warning messages about symbols that are found in partial
4242 symbol tables, but not full symbol tables.
4243
4244 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4245
4246 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4247 stopping quietly.
4248
4249 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
4250
4251 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4252 Include "features/rs6000/powerpc-vsx64.c".
4253 (ppc_supply_vsxregset): New function.
4254 (ppc_collect_vsxregset): New function.
4255 (IS_VSX_PSEUDOREG): New macro.
4256 (IS_EFP_PSEUDOREG): New macro.
4257 (vsx_register_p): New function.
4258 (ppc_vsx_support_p): New function.
4259 (rs6000_builtin_type_vec128): New function.
4260 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4261 correct names for VSX registers and EFPR registers.
4262 (rs6000_pseudo_register_type): Return correct types for VSX
4263 and EFPR registers.
4264 (rs6000_pseudo_register_reggroup_p): Return correct group for
4265 VSX and EFPR registers.
4266 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4267 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4268 (vsx_pseudo_register_read): New function.
4269 (vsx_pseudo_register_write): New function.
4270 (efpr_pseudo_register_read): New function.
4271 (efpr_pseudo_register_write): New function.
4272 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4273 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4274 (rs6000_gdbarch_init): Declare have_vsx.
4275 Initialize new upper half VSX registers.
4276 Initialize VSX-related and EFPR-related pseudo-registers variables.
4277 Adjust the number of pseudo registers accordingly.
4278
4279 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4280 and SIZEOF_VSRREGS.
4281 (gdb_vsxregset_t): New type.
4282 (have_ptrace_getsetvsxregs): New variable.
4283 (fetch_vsx_register): New function.
4284 (fetch_register): Handle VSX registers.
4285 (fetch_vsx_registers): New function.
4286 (fetch_ppc_registers): Handle VSX registers.
4287 (store_ppc_registers): Handle VSX registers.
4288 (store_vsx_register): New function.
4289 (store_register): Handle VSX registers.
4290 (store_vsx_registers): New function.
4291 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4292 (gdb_vsxregset_t): New type.
4293 (supply_vsxregset): New function.
4294 (fill_vsxregset): New function.
4295
4296 * ppc-tdep.h (vsx_register_p): New prototype.
4297 (vsx_support_p): New prototype.
4298 (ppc_vsr0_regnum): New variable.
4299 (ppc_vsr0_upper_regnum): Likewise.
4300 (ppc_efpr0_regnum): Likewise.
4301 (ppc_builtin_type_vec128): New type.
4302 (ppc_num_vsrs): New constant.
4303 (ppc_num_vshrs): New constant.
4304 (ppc_num_efprs): Likewise.
4305 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4306 (ppc_supply_vsxregset): New prototype.
4307 (ppc_collect_vsxregset): New prototype.
4308
4309 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4310 Include "features/rs6000/powerpc-vsx64l.c".
4311 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4312 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4313 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4314 (ppc_linux_regset_from_core_section): Handle VSX core section.
4315 (ppc_linux_core_read_description): Support VSX-enabled core files.
4316
4317 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4318 Declare tdesc_powerpc_vsx64l
4319
4320 * corelow.c (get_core_register_section): Support VSX-enabled
4321 core files.
4322
4323 * features/rs6000/power-vsx.xml: New VSX descriptions.
4324 * features/rs6000/powerpc-vsx32.xml: New file.
4325 * features/rs6000/powerpc-vsx32l.xml: New file.
4326 * features/rs6000/powerpc-vsx64.xml: New file.
4327 * features/rs6000/powerpc-vsx64l.xml: New file.
4328 * features/rs6000/powerpc-vsx32.c: New file (generated).
4329 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4330 * features/rs6000/powerpc-vsx64.c: New file (generated).
4331 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4332 * features/Makefile: Updated with new descriptions.
4333 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4334 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4335
4336 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4337
4338 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4339 call linux_target twice.
4340
4341 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4342
4343 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4344 solib-svr4.c
4345 (LM_ADDR): Use l_addr if available; if not, use link map and set
4346 l_addr.
4347
4348 2008-08-14 Tom Tromey <tromey@redhat.com>
4349
4350 * macrocmd.c (macro_define_command): Check for NULL argument.
4351 (macro_undef_command): Likewise.
4352
4353 2008-08-14 Pedro Alves <pedro@codesourcery.com>
4354
4355 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4356
4357 2008-08-13 Pedro Alves <pedro@codesourcery.com>
4358
4359 * breakpoint.c (always_inserted_auto, always_inserted_on)
4360 (always_inserted_off, always_inserted_enums): New.
4361 (always_inserted_mode): Change type to char* and point to
4362 always_inserted_auto.
4363 (show_always_inserted_mode): In auto mode, also show the current
4364 effect of the option.
4365 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4366 (_initialize_breakpoint): Make the "set breakpoints
4367 always-inserted" command an enum command. Extend help to describe
4368 the auto mode.
4369
4370 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4371
4372 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4373 query valid) bit. Ignore bits outside the condition field.
4374 (info_spu_proxydma_command): Ignore bits outside the field.
4375
4376 2008-08-12 Michael Snyder <msnyder@vmware.com>
4377
4378 * MAINTAINERS: Update my email address.
4379
4380 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4381
4382 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4383
4384 2008-08-12 Pedro Alves <pedro@codesourcery.com>
4385
4386 Add no-ack mode to the remote protocol --- optionally stop ACKing
4387 packets and responses when we have a reliable communication
4388 medium.
4389
4390 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4391
4392 * remote.c (struct remote_state): Add noack_mode field.
4393 (PACKET_QStartNoAckMode): New.
4394 (remote_start_remote): Don't any outstanding packet here.
4395 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4396 here. Activate noack mode if requested.
4397 (remote_protocol_features): Add QStartNoAckMode.
4398 (remote_open_1):
4399 (putpkt_binary): Don't send ack in noack mode.
4400 (read_frame): Don't recompute the checksum in noack mode.
4401 (getpkt_sane): Skip sending ack if in noack mode.
4402 (_initialize_remote): Add set/show remote noack mode.
4403 * NEWS: Note the new features.
4404
4405 2008-08-11 Kevin Buettner <kevinb@redhat.com>
4406
4407 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4408 New macros.
4409 (rs6000_skip_main_prologue): New function.
4410 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4411
4412 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4413
4414 * MAINTAINERS (Write After Approval): Add self.
4415
4416 2008-08-11 Stan Shebs <stan@codesourcery.com>
4417
4418 ARM BE8 support.
4419 * disasm.c (gdb_disassemble_info): Set endian_code.
4420 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4421 * gdbarch.h, gdbarch.c: Regenerate.
4422 * arch-utils.c (initialize_current_architecture): Set the
4423 default byte_order_for_code.
4424 (gdbarch_info_init): Ditto.
4425 (gdbarch_info_fill): Ditto.
4426 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4427 (thumb_analyze_prologue): Swap halfword if code endianness is
4428 different from general endianness.
4429 (arm_skip_prologue): Similarly.
4430 (arm_scan_prologue): Ditto.
4431 (thumb_get_next_pc): Ditto.
4432 (arm_get_next_pc): Ditto.
4433 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4434 choose correct endianness for breakpoints.
4435
4436 2008-08-10 Pedro Alves <pedro@codesourcery.com>
4437
4438 * bsd-kvm.c: Include "gdbthread.h".
4439 (bsd_kvm_ptid): New.
4440 (bsd_kvm_open): Add a main thread.
4441 (bsd_kvm_close): Delete it.
4442 (bsd_kvm_thread_alive): New.
4443 (bsd_kvm_pid_to_str): New.
4444 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4445 bsd_kvm_pid_to_str.
4446 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4447
4448 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4449
4450 * buildsym.c (start_subfile): Properly cast sentinel in concat
4451 call.
4452 * cp-name-parser.y: Include "config.h".
4453 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4454 concat call.
4455 * gdb_select.h: Include sys/time.h if sys/select.h is not
4456 available.
4457
4458 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4459
4460 * go32-nat.c: Include "gdbthread.h".
4461 (go32_stop, go32_kill_inferior): Delete the main thread.
4462 (go32_create_inferior): Add it.
4463 (go32_thread_alive, go32_pid_to_str): New.
4464 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4465
4466 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4467
4468 * go32-nat.c (fetch_register, store_register): Pass the regcache
4469 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4470 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4471 (struct seg_descr, struct seg_descr): pack the whole struct
4472 instead of each member individually.
4473
4474 2008-08-09 Andreas Schwab <schwab@suse.de>
4475
4476 * python/python.c (_initialize_python): Use unabbreviated commands
4477 in prefix name.
4478
4479 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4480
4481 * Makefile.in (stamp-h): Also create .deps.
4482
4483 2008-08-09 Tom Tromey <tromey@redhat.com>
4484
4485 * Makefile.in (generated_files): Add GNULIB_H.
4486
4487 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4488
4489 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4490 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4491 Revise comment.
4492 (pa64_current_sos): Remove map private warning warning.
4493 * solib-som.c: Include string.h and sys/utsname.h.
4494 (get_hpux_major_release): New function.
4495 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4496 about shared library private mapping on HP-UX 11 and later. Only force
4497 private mapping of shared libraries on HP-UX 10 and earlier.
4498 (link_map_start): Delete warning.
4499
4500 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4501 H.J. Lu <hongjiu.lu@intel.com>
4502 Mark Kettenis <kettenis@gnu.org>
4503
4504 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4505 (amd64_init_frame_cache): Initialize saved_sp_reg.
4506 (amd64_analyze_stack_align): New.
4507 (amd64_analyze_prologue): Call it.
4508 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4509 %rip to 8 when halfway aligning the stack.
4510
4511 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4512 AMD64_R14_REGNUM.
4513
4514 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4515 saved_sp_reg.
4516 (i386_alloc_frame_cache): Remove stack_align. Initialize
4517 saved_sp_reg to -1.
4518 (i386_analyze_stack_align): Rewrite.
4519 (i386_frame_cache): Use saved_sp_reg if it is valid.
4520
4521 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4522
4523 * target.c: Include "solib.h".
4524 (target_pre_inferior): Call no_shared_libraries.
4525 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4526 or clear_solib.
4527 (attach_command): Do not call clear_solib.
4528
4529 2008-08-09 Mark Kettenis <kettenis@gnu.org>
4530
4531 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4532 the %eip register.
4533
4534 2008-08-08 Tom Tromey <tromey@redhat.com>
4535
4536 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4537 POSTCOMPILE.
4538 (python-utils.o): Likewise.
4539
4540 2008-08-08 Andreas Schwab <schwab@suse.de>
4541
4542 * corefile.c (_initialize_core): Remove spurious paren from set
4543 gnutarget doc string.
4544
4545 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
4546
4547 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
4548 Define PPC_FEATURE_BOOKE.
4549 (ppc_linux_get_hwcap): New function.
4550 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4551 4-bytes alignment restrictions.
4552 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4553 positioning of the read/write flags.
4554 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4555 4-bytes alignment.
4556
4557 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4558
4559 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4560
4561 * win32-nat.c (win32_add_thread): Change thread argument type to
4562 ptid_t. Adjust.
4563 (win32_add_thread): Adjust.
4564 (win32_delete_thread): Change thread argument type to ptid_t.
4565 Adjust.
4566 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4567 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4568 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4569 (init_win32_ops): Put to_magic last.
4570 (win32_win32_thread_alive): Adjust.
4571
4572 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4573
4574 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4575 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4576
4577 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4578
4579 * remote-m32r-sdi.c: Include "gdbthread.h".
4580 (remote_m32r_ptid): New.
4581 (m32r_close): Delete the main thread.
4582 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4583 main thread.
4584 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4585 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4586
4587 2008-08-07 Tom Tromey <tromey@redhat.com>
4588 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4589
4590 * aclocal.m4, configure: Rebuild.
4591 * configure.in: Call ZW_CREATE_DEPDIR,
4592 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4593 (MAKE, GMAKE): New substs.
4594 * acinclude.m4: Include depstand.m4.
4595 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4596 COMPILE, POSTCOMPILE, depcomp): New variables.
4597 Remove all _h variables.
4598 Remove many .o targets.
4599 ($(srcdir)/copying.c): avoid backslash-newline after comment
4600 sign (@maintainer_mode_true@).
4601 (HFILES_NO_SRCDIR): Regenerate.
4602 (generated_files): New variable.
4603 (all_gdbtk_cflags): Likewise.
4604 (.c.o): Rewrote.
4605 (init.o, version.o, copying.o): Remove.
4606 (distclean): Remove DEPDIR.
4607 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4608 printcmd.o, procfs.o, v850ice.o): Rewrite.
4609 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4610 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4611 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4612 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4613 gdbtk-wrapper.o): Likewise.
4614 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4615 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4616 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4617 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4618 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4619 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4620 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4621 tui-wingeneral.o, tui-winsource.o): Likewise.
4622 (all_object_files): New variable.
4623 ($(all_object_files)): New target.
4624 Include dependency files, when using GNU Make.
4625
4626 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4627
4628 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4629 the valid bit set. Ensure display order respects partial
4630 order defined by dependency bits.
4631
4632 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4633
4634 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4635 setup.
4636
4637 2008-08-06 Mark Kettenis <kettenis@gnu.org>
4638
4639 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4640 OpenBSD 4.3.
4641
4642 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4643 Tom Tromey <tromey@redhat.com>
4644 Thiago Jung Bauermann <bauerman@br.ibm.com>
4645 Doug Evans <dje@google.com>
4646
4647 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4648 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4649 PYTHON_CFLAGS): New.
4650 (python_h, python_internal_h): New.
4651 (cli-script.o): Depend on python.h
4652 (python.o, python-utils.o): New.
4653 * cli/cli-script.c (print_command_lines): Handle python_control.
4654 (execute_control_command): Handle python_control.
4655 (execute_control_command_untraced): New function.
4656 (while_command): Call execute_control_command_untraced.
4657 (if_command): Likewise.
4658 (get_command_line): Remove static attribute.
4659 (read_next_line): Handle "python".
4660 (recurse_read_control_structure): Handle python_control.
4661 (read_command_lines): Handle python_control.
4662 Include python.h.
4663 * cli/cli-script.h (get_command_line): Add prototype.
4664 (execute_control_command_untraced): Likewise.
4665 * configure.ac: Add --with-python.
4666 * defs.h (enum command_control_type) <python_control>: New
4667 constant.
4668 * python/python-internal.h: New file.
4669 * python/python.c: New file.
4670 * python/python.h: New file.
4671 * python/python-utils.c: New file.
4672 * NEWS: Mention Python scripting support and its new commands.
4673
4674 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4675
4676 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4677
4678 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4679
4680 * MAINTAINERS (Write After Approval): Add self.
4681
4682 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4683
4684 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4685 (insert_breakpoint_locations): Likewise.
4686
4687 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4688
4689 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4690 breakpoint.
4691 (set_longjmp_breakpoint): Likewise.
4692
4693 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4694
4695 PR build/2490
4696 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4697 defined.
4698
4699 2008-08-05 Tom Tromey <tromey@redhat.com>
4700
4701 * bcache.c (deprecated_bcache_added): Initialize obstack.
4702 (bcache_xmalloc): Don't initialize obstack.
4703 (bcache_xfree): Conditionally free obstack.
4704 (bcache_memory_used): Update.
4705
4706 2008-08-05 Tom Tromey <tromey@redhat.com>
4707
4708 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4709 bcache_full.
4710 (append_psymbol_to_list): Accept a const pointer.
4711 (add_psymbol_to_list): Fix const correctness.
4712 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4713 (bcache_full): Declare.
4714 * bcache.c (bcache_data, deprecated_bcache): Remove.
4715 (bcache): Use bcache_full.
4716 (bcache_full): Rename from deprecated_bcache_added. Change return
4717 type.
4718
4719 2008-08-04 Stan Shebs <stan@codesourcery.com>
4720
4721 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4722 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4723 (enable_break): Remove test of BKPT_AT_SYMBOL.
4724
4725 2008-08-02 Keith Seitz <keiths@redhat.com>
4726
4727 * acinclude.m4: Include ../config/tcl.m4 to pick up
4728 standard Tcl configury bits.
4729 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4730 * configure.ac: Don't check if ../itcl exists when building
4731 gdbtk. It could be installed.
4732 Rewrite gdbtk configury to allow for using system-supplied
4733 Tcl and Tk. Gdbtk no longer requires build-time access to
4734 itcl and itk.
4735 * Makefile.in: Remove everything related to itcl and itk.
4736 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4737 configure.ac.
4738 Remove v850ice.o build rule.
4739 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4740 gdbtk sources to use it.
4741 * configure: Regenerate.
4742
4743 2008-07-31 Stan Shebs <stan@codesourcery.com>
4744
4745 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4746
4747 2008-07-30 Stan Shebs <stan@codesourcery.com>
4748
4749 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4750 (add_to_objfile_sections): Remove use.
4751
4752 2008-07-29 Tom Tromey <tromey@redhat.com>
4753
4754 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4755 (lookup_cmd_composition): Likewise.
4756
4757 2008-07-29 Tom Tromey <tromey@redhat.com>
4758
4759 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4760 dead code. Fix indentation.
4761
4762 2008-07-29 Stan Shebs <stan@codesourcery.com>
4763
4764 * main.c (captured_main): Remove long-unused #if 0 blocks.
4765
4766 2008-07-28 Tom Tromey <tromey@redhat.com>
4767
4768 * annotate.h (deprecated_annotate_starting_hook): Remove.
4769 (deprecated_annotate_stopped_hook): Remove.
4770 (deprecated_annotate_exited_hook): Remove.
4771 * Makefile.in (annotate.o): Depend on observer_h.
4772 * top.c (deprecated_delete_breakpoint_hook): Remove.
4773 (deprecated_create_breakpoint_hook): Likewise.
4774 (deprecated_modify_breakpoint_hook): Likewise.
4775 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4776 * breakpoint.c (mention): Don't call removed hook.
4777 (delete_breakpoint): Likewise.
4778 (disable_breakpoint): Likewise.
4779 (do_enable_breakpoint): Likewise.
4780 * annotate.c: Include observer.h.
4781 (breakpoint_changed): Change type of argument.
4782 (_initialize_annotate): Register observers.
4783 (deprecated_annotate_starting_hook): Remove.
4784 (deprecated_annotate_stopped_hook): Remove.
4785 (deprecated_annotate_exited_hook): Remove.
4786 (annotate_starting): Update for hook removal.
4787 (annotate_stopped): Likewise.
4788 (annotate_exited): Likewise.
4789 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4790 (deprecated_create_breakpoint_hook): Likewise.
4791 (deprecated_modify_breakpoint_hook): Likewise.
4792
4793 2008-07-28 Tom Tromey <tromey@redhat.com>
4794
4795 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4796
4797 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4798
4799 * configure.ac: Check for the GNU/Linux ptrace signature.
4800 * configure: Regenerated.
4801
4802 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4803
4804 * linux-nat.c (resume_callback): Add more debugging output.
4805 (linux_nat_has_pending_sigint): New function, based on
4806 linux_nat_has_pending.
4807 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4808 (stop_wait_callback): Remove flush_mask handling. Honor
4809 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4810 to recursive calls.
4811 (linux_nat_has_pending, flush_callback): Remove.
4812 (linux_nat_filter_event): Check for ignore_sigint.
4813 (linux_nat_wait): Remove flush_mask support and call to
4814 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4815 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4816
4817 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4818
4819 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4820 report events from resumed threads.
4821
4822 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4823
4824 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4825 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4826 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4827 mips-tdep.h.
4828 (mips32_next_pc): Handle the syscall instruction.
4829 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4830 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4831
4832 2008-07-26 Tom Tromey <tromey@redhat.com>
4833
4834 PR gdb/1158:
4835 * valops.c (value_struct_elt): Treat function-valued field as a
4836 static method.
4837
4838 2008-07-26 Tom Tromey <tromey@redhat.com>
4839
4840 PR gdb/1136:
4841 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4842 longer tokens first.
4843
4844 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4845
4846 Kill cmd_async_ok.
4847 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4848 (get_cmd_async_ok): Remove.
4849 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4850 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4851 * infcmd.c (_initialize_infcmd): Likewise.
4852 * thread.c (_initialize_thread): Likewise.
4853
4854 2008-07-25 Joseph Myers <joseph@codesourcery.com>
4855
4856 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4857 128-bit long doubles in even-odd pairs of FPRs. Do not
4858 right-align float arguments for big-endian.
4859 (mips_n32n64_return_value): Apply return value convention for
4860 structs containing one or two floating-point values to soft-float
4861 as well as hard-float. Handle 128-bit long doubles in such
4862 structs.
4863 (mips_o32_push_dummy_call): Only skip one integer register for a
4864 float argument passed in an FPR.
4865
4866 2008-07-25 Tom Tromey <tromey@redhat.com>
4867
4868 * tui/tui-hooks.c: Include observer.h.
4869 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4870 Remove.
4871 (tui_bp_created_observer, tui_bp_deleted_observer,
4872 tui_bp_modified_observer): New globals.
4873 (tui_install_hooks): Use observers, not events.
4874 (tui_remove_hooks): Likewise.
4875 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4876 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4877 globals.
4878 (breakpoint_notify): Check mi_can_breakpoint_notify.
4879 (breakpoint_hooks): Remove.
4880 (mi_cmd_break_insert): Attach observers. Don't use events.
4881 * tracepoint.c: Include observer.h, not gdb-events.h.
4882 (tracepoint_operation, trace_pass_command): Notify observer.
4883 * interps.c: Don't include gdb-events.h.
4884 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4885 * gdbarch.c: Rebuild.
4886 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4887 (deprecated_current_gdbarch_select_hack): Notify observer.
4888 * breakpoint.h: Don't include gdb-events.h.
4889 * breakpoint.c: Don't include gdb-events.h.
4890 (condition_command): Notify observer.
4891 (commands_command): Likewise.
4892 (commands_from_control_command): Likewise.
4893 (mention, delete_breakpoint, set_ignore_count): Likewise.
4894 (disable_breakpoint, do_enable_breakpoint): Likewise.
4895 * Makefile.in (gdb_events_h): Remove.
4896 (breakpoint_h): Update.
4897 (COMMON_OBS): Remove gdb-events.o.
4898 (gdb-events.o): Remove.
4899 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4900 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4901 * gdb-events.c: Remove.
4902 * gdb-events.h: Remove.
4903 * gdb-events.sh: Remove.
4904
4905 2008-07-24 Pedro Alves <pedro@codesourcery.com>
4906
4907 * remote.c (remote_threads_extra_info): Don't query the remote
4908 server about info on the internally added main thread.
4909
4910 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4911
4912 * nto-procfs.c (procfs_attach): Populate initial thread list.
4913 (procfs_wait): Return new pid, built from the inferior status.
4914
4915 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4916
4917 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4918 * configure: Regenerate.
4919
4920 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4921
4922 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4923 (procfs_resume): Workaround for dereferencing type-punned pointer
4924 warning.
4925 * nto-tdep.c (nto_parse_redirection): Change signature to be const
4926 correct.
4927 * nto-tdep.h (nto_parse_redirection): Likewise.
4928
4929 2008-07-21 Stan Shebs <stan@codesourcery.com>
4930
4931 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4932 * gdbarch.sh: Adjust comment to refer to
4933 in_solib_dynsym_resolve_code().
4934 * gdbarch.h, gdbarch.c: Update.
4935 * solib-osf.c: Ditto.
4936 * infrun.c: Ditto.
4937 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4938 unconditionally.
4939 * config/mips/nm-irix5.h: Remove undef of
4940 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4941
4942 2008-07-21 Tom Tromey <tromey@redhat.com>
4943
4944 * symfile.c (reread_symbols): Don't pass argument to observer.
4945 * exec.c (exec_file_attach): Don't pass argument to observer.
4946 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4947 * symtab.c (symtab_observer_executable_changed): Remove argument.
4948 * observer.sh: Handle functions with no arguments.
4949
4950 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
4951 Chris Demetriou <cgd@google.com>
4952
4953 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4954 section fits within an ELF segment to handle ELF segments that hit
4955 the end of the address space.
4956
4957 2008-07-20 Chris Demetriou <cgd@google.com>
4958
4959 * MAINTAINERS (Write After Approval): Add self.
4960
4961 2008-07-18 Tom Tromey <tromey@redhat.com>
4962
4963 PR gdb/855:
4964 * NEWS: Add entry for macro commands.
4965 * Makefile.in (macrocmd.o): Add gdb_string.h.
4966 * macroscope.h (user_macro_scope): Declare.
4967 (default_macro_scope): Update documentation.
4968 (macro_user_macros): Declare.
4969 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4970 Use user_macro_scope.
4971 (null_macro_lookup): Remove.
4972 * macrotab.h (macro_callback_fn): Declare.
4973 (macro_for_each): Likewise.
4974 (macro_allow_redefinitions): Likewise.
4975 * macrotab.c (foreach_macro): New function
4976 (macro_for_each): Likewise.
4977 (struct macro_table) <redef_ok>: New field.
4978 (macro_allow_redefinitions): New function.
4979 (new_macro_table): Update.
4980 (macro_define_function): Likewise.
4981 (macro_define_object): Likewise.
4982 * macroscope.c (user_macro_scope): New function.
4983 (default_macro_scope): Use it.
4984 (macro_user_macros): New global.
4985 (standard_macro_lookup): Look in macro_user_macros.
4986 (_initialize_macroscope): New function.
4987 * macroexp.h (macro_is_whitespace, macro_is_digit,
4988 macro_is_identifier_nondigit): Declare.
4989 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4990 (macro_is_digit): Likewise.
4991 (macro_is_identifier_nondigit): Likewise.
4992 (get_identifier): Update.
4993 (get_pp_number): Likewise.
4994 (get_token): Likewise.
4995 * macrocmd.c (skip_ws): New function.
4996 (extract_identifier): Likewise.
4997 (free_macro_definition_ptr): Likewise.
4998 (user_macros): Remove.
4999 (macro_define_command): Implement.
5000 (_initialize_macrocmd): Update.
5001 (macro_undef_command): Implement.
5002 (print_one_macro): New function.
5003 (macro_list_command): Implement.
5004
5005 2008-07-18 Joseph Myers <joseph@codesourcery.com>
5006
5007 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5008 in BFD ELF check.
5009 * configure: Regenerate.
5010
5011 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5012
5013 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5014
5015 2008-07-15 Andreas Schwab <schwab@suse.de>
5016
5017 * valops.c (value_cast_pointers): Follow typedefs when checking
5018 result of coercion.
5019
5020 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5021
5022 * block.c (block_function): Renamed to ...
5023 (block_linkage_function): ... this. All callers changed.
5024 * block.h (block_function): Renamed to ...
5025 (block_linkage_function): ... this.
5026
5027 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5028
5029 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5030
5031 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5032
5033 * frame.c (frame_sp_unwind): Delete.
5034 (get_frame_sp): Do not use it.
5035 * frame.h (frame_sp_unwind): Delete prototype.
5036
5037 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5038
5039 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5040
5041 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5042
5043 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5044 * frame.c (frame_unwind_address_in_block): Delete.
5045 (get_frame_address_in_block): Do not use it. Check the type
5046 of the next frame first.
5047 (frame_cleanup_after_sniffer): Update comment.
5048 * frame.h (frame_unwind_address_in_block): Delete prototype.
5049 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5050
5051 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5052
5053 * frame.c (frame_func_unwind): Delete.
5054 (get_frame_func): Do not use it.
5055 * frame.h (frame_func_unwind): Delete prototype.
5056 * hppa-tdep.c (hppa_frame_cache): Update comment.
5057 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5058
5059 2008-07-14 Stan Shebs <stan@codesourcery.com>
5060
5061 * remote-sim.c (init_gdbsim_ops): Remove
5062 TARGET_REDEFINE_DEFAULT_OPS.
5063
5064 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5065
5066 * findvar.c (read_var_value): Remove unused variable.
5067
5068 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
5069
5070 * infrun.c (handle_inferior_event): Tag threads as stopped
5071 before inserting breakpoints.
5072
5073 2008-07-15 Hui Zhu <teawater@gmail.com>
5074
5075 * MAINTAINERS: Added myself to section Write After Approval.
5076
5077 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5078
5079 PR gdb/2477
5080 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
5081
5082 2008-07-14 Pedro Alves <pedro@codesourcery.com>
5083
5084 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5085 (i386_dicos_push_dummy_code): New.
5086 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5087 Register i386_dicos_push_dummy_code.
5088
5089 2008-07-14 Markus Deuling <deuling@de.ibm.com>
5090
5091 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5092 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5093 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5094
5095 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5096 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5097 (mips_n32n64_fp_arg_chunk_p): Update caller.
5098
5099 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5100 (mips_n32n64_push_dummy_call): Update caller.
5101
5102 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5103 current_gdbarch.
5104 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5105 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5106
5107
5108 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5109 current_gdbarch.
5110 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5111 (mips_o64_push_dummy_call): Update caller.
5112
5113 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5114 (fp_register_arg_p, mips_dump_tdep): Update caller.
5115
5116 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5117 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5118
5119 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5120 current_gdbarch.
5121 (mips32_scan_prologue): Update caller.
5122
5123 (heuristic_proc_start): Add gdbarch as parameter. Replace
5124 current_gdbarch.
5125 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5126
5127 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5128 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5129 the current architecture. Update call to getregs_supplies.
5130 (getregs_supplies): Add gdbarch as parameter and replace
5131 current_gdbarch.
5132
5133 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5134 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5135 NBSD_MIPS_JB_ELEMENT_SIZE.
5136 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5137 replace current_gdbarch.
5138
5139 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5140 current_gdbarch.
5141 (mips_fetch_registers, mips_store_registers): Update call
5142 to mips_map_regno.
5143 (mips_load): Use get_regcache_arch to get at the current_architecture
5144 and replace current_gdbarch.
5145
5146 2008-07-13 Pedro Alves <pedro@codesourcery.com>
5147
5148 * thread.c (restore_selected_frame): On fail to restore, select
5149 the innermost frame, and don't crash when warning the user.
5150
5151 2008-07-13 Hui Zhu <teawater@gmail.com>
5152
5153 * symtab.c (expand_line_sal): Fix a memory leak.
5154
5155 2008-07-13 Pedro Alves <pedro@codesourcery.com>
5156
5157 * utils.c (struct continuation): Define as inheriting struct
5158 cleanup.
5159 (add_continuation, do_all_continuations)
5160 (discard_all_continuations, add_intermediate_continuation)
5161 (do_all_intermediate_continuations)
5162 (discard_all_intermediate_continuations): Adjust.
5163
5164 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5165
5166 Skip varobj in running threads.
5167 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5168 thread is not stopped, skip the varobj.
5169 * Makefile.in: Update dependencies.
5170
5171 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5172
5173 Enable all commands while inferiour is running
5174 * mi/mi-main.c (mi_cmd_execute): Don't check if
5175 inferiour is executing.
5176
5177 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5178
5179 Allow all CLI command even if target is executing.
5180 * gdb/top.c (execute_command_1): Don't check if the inferiour
5181 is running.
5182
5183 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5184
5185 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5186 Fix printing of frame, when frame is wrong.
5187
5188 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5189
5190 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5191 backchain is unreadable.
5192
5193 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5194
5195 * spu-linux-nat.c: Include "gdbthread.h".
5196 (spu_child_post_startup_inferior): Register main thread.
5197 (spu_child_post_attach): Likewise.
5198 * Makefile.in (spu-linux-nat.o): Update dependencies.
5199
5200 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5201
5202 Rewrite continuations internals on top of cleanups and plug
5203 continuation arguments leaks.
5204
5205 * defs.h (struct continuation): Make it opaque.
5206 (add_continuation, add_intermediate_continuation): Drop the int
5207 argument of the continuation hook argument. Add
5208 continuation_free_args argument.
5209 (do_all_continuations, do_all_intermediate_continuations): Drop
5210 the error_p argument.
5211
5212 * utils.c (add_continuation): Drop the int argument of the
5213 continuation hook argument. Add continuation_free_args argument.
5214 Reimplement on top of cleanups.
5215 (do_all_continuations): Drop error argument. Reimplement on top
5216 of cleanups.
5217 (discard_all_continuations): Reimplement on top of cleanups.
5218 (add_intermediate_continuation): Drop the int argument of the
5219 continuation hook argument. Add continuation_free_args argument.
5220 Reimplement on top of cleanups.
5221 (do_all_intermediate_continuations): Drop error argument.
5222 Reimplement on top of cleanups.
5223 (discard_all_intermediate_continuations): Reimplement on top of
5224 cleanups.
5225
5226 * breakpoint.c (until_break_command_continuation): Drop error
5227 argument. Add xfree as continuation argument deleter.
5228
5229 * inf-loop.c (inferior_event_handler): On error, discard all
5230 continuations. Adjust to new do_all_intermediate_continuations
5231 and do_all_continuations interfaces.
5232
5233 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5234 Pass xfree as continuation argument deleter.
5235 (finish_command_continuation): Drop error_p argument. Adjust.
5236 (finish_command_continuation_free_arg): New.
5237 (finish_command): Pass finish_command_continuation_free_arg as
5238 continuation argument deleter. Adjust to new do_all_continuations
5239 interfaces.
5240 (attach_command_continuation): Drop error_p argument.
5241 (attach_command_continuation_free_args): New.
5242 (attach_command): Pass attach_command_continuation_free_args as
5243 continuation argument deleter.
5244
5245 * interps.c (interp_set): Adjust to new do_all_continuations
5246 interfaces.
5247
5248 * event-top.c (stdin_event_handler): In error, also discard the
5249 intermediate continuations.
5250
5251 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5252
5253 Replace struct continuation_args by void* and per command structs.
5254
5255 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5256
5257 * breakpoint.c (struct until_break_command_continuation_args):
5258 New.
5259 (until_break_command_continuation): Take a void* instead of a
5260 continuations_arg. Adjust.
5261 (until_break_command): Adjust to use struct
5262 until_break_command_continuation_args instead of struct
5263 continuation_arg.
5264
5265 * infcmd.c (struct step_1_continuation_args): New.
5266 (step_1_continuation): Take a void* instead of a
5267 continuations_arg. Adjust to use struct step_1_continuation_args.
5268 (step_once): Adjust to use struct step_1_continuation_args.
5269
5270 (struct finish_command_continuation_args): New.
5271 (finish_command_continuation): Take a void* instead of a
5272 continuations_arg. Adjust to use struct
5273 finish_command_continuation_args.
5274 (finish_command): Adjust to use struct
5275 finish_command_continuation_args.
5276 (struct attach_command_continuation_args): New.
5277 (attach_command_continuation): Take a void* instead of a
5278 continuations_arg. Adjust to use struct
5279 attach_command_continuation_args.
5280 (attach_command): Adjust to use struct
5281 attach_command_continuation_args.
5282
5283 * defs.h (struct continuation_arg): Delete.
5284 (struct continuation): Replace the struct continuation_arg*
5285 parameter of continuation_hook by a void*. Replace "arg_list"
5286 member by a new "args" member with void* type.
5287 (add_continuation, add_intermediate_continuation): Replace struct
5288 continuation_arg type usages by void* usages.
5289
5290 * utils.c (add_continuation, do_all_continuations)
5291 (add_intermediate_continuation)
5292 (do_all_intermediate_continuations): Replace struct
5293 continuation_arg type usages by void* usages. Pass "args" instead
5294 of "arg_list".
5295
5296 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5297
5298 * infrun.c (struct thread_stepping_state): Delete sal member.
5299 (init_thread_stepping_state): Add local sal. Use it instead of
5300 tss->sal.
5301 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5302 tss->sal.
5303 (step_into_function): Add local stop_func_sal. Use it instead of
5304 tss->sal.
5305
5306 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5307
5308 Implement -exec-continue/-exec-interrupt --all.
5309 * infcmd.c (continue_1): New, extracted from
5310 (continue_command): ...here.
5311 (interrupt_target_1): New, extracted from
5312 (interrupt_target_command): ...here.
5313 * inferior.h (continue_1, interrupt_target_1): New.
5314 * mi/mi-main.c (mi_cmd_exec_continue)
5315 (mi_cmd_exec_interrupt): Handle --all.
5316
5317 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5318
5319 Implement --thread and --frame.
5320 * gdbthread.h (find_thread_id): Declare.
5321 * thread.c (find_thread_id): Make non-static.
5322 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5323 thread and frame, if necessary.
5324 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5325 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
5326
5327 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5328
5329 * infrun.c (resume): Discard cleanups on early exit path.
5330
5331 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5332
5333 * infrun.c (normal_stop): For MI, report which threads
5334 were stopped.
5335
5336 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5337
5338 Report thread state in -thread-info output.
5339 * thread.c (print_thread_info): Add new field "state".
5340
5341 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5342
5343 * infrun.c (handle_inferior_event): Also ignore a
5344 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5345
5346 2008-07-11 Tom Tromey <tromey@redhat.com>
5347
5348 * completer.c (complete_line_internal): New function, from
5349 complete_line. Add 'for_help' parameter.
5350 (complete_line): Use it.
5351 (command_completer): Move later. Rewrite.
5352
5353 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5354
5355 * thread.c (thread_apply_command): Move making the cleanup out of
5356 the loop.
5357
5358 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5359
5360 Exited threads.
5361
5362 * thread.c (enum thread_state): New.
5363 (thread_state main_thread_running): Delete, in favor of...
5364 (thread_state main_thread_state): ... this. Update throughout.
5365 (clear_thread_inferior_resources): New, split from free_thread.
5366 (free_thread): Call clear_thread_inferior_resources.
5367 (init_thread_list): Set main thread to stopped state.
5368 (add_thread_silent): Take care of PTID reuses.
5369 (delete_thread): If deleting inferior_ptid or a thread with
5370 refcount > 0, mark it as exited, but still keep it in the list.
5371 Only notify of thread exits, if we haven't done so yet.
5372 (iterate_over_threads): Make it safe to delete threads while
5373 iterating over them.
5374 (do_captured_list_thread_ids): Don't account for exited threads.
5375 (thread_alive): Check for the THREAD_EXITED state, and don't set
5376 ptid to -1 on exited threads.
5377 (set_running): Update to account for extra possible states.
5378 (is_thread_state): New.
5379 (is_stopped, is_exited): New.
5380 (is_running): Implement in terms of is_thread_state.
5381 (any_running): Update.
5382 (print_thread_info): Update. Account for exited threads. Don't
5383 warn about missed frame restoring here, its done in the cleanup.
5384 (switch_to_thread): Don't read from a thread that has gone.
5385 (restore_current_thread): In non-stop mode, do a full context
5386 switch.
5387 (restore_selected_frame): Add a frame_level argument. Rewrite.
5388 (struct current_thread_cleanup): Add selected_frame_level and
5389 was_stopped members.
5390 (do_restore_current_thread_cleanup): Check if thread was stopped
5391 and still is, and if the target has registers, stack and memory
5392 before restoring the selected frame. Don't delete the cleanup
5393 argument here.
5394 (restore_current_thread_cleanup_dtor): New.
5395 (make_cleanup_restore_current_thread): Remove all arguments.
5396 Rewrite.
5397 (thread_apply_all_command): Update. Prune threads.
5398 (thread_apply_command): Update.
5399 (thread_command): Account for currently selected exited thread.
5400 (do_captured_thread_select): Check for a running thread. Prune
5401 threads.
5402 (_initialize_thread): Make "info threads", "thread", "thread
5403 apply", and "thread apply all" appliable without a selected thread.
5404 * gdbthread.h (struct thread_info): Replace running_ by state_.
5405 Add refcount.
5406 (is_exited, is_stopped): Declare.
5407 (make_cleanup_restore_current_thread): Remove all arguments.
5408 * infrun.c: Include "event-top.h".
5409 (fetch_inferior_event): In non-stop mode, restore selected thread
5410 and frame after handling the event and running breakpoint
5411 commands. Display GDB prompt if needed.
5412 (normal_stop): In non-stop mode, don't print thread switching
5413 notice.
5414 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5415 (get_cmd_no_selected_thread_ok): New.
5416 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5417 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5418 Declare.
5419 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5420 no-selected-thread ok.
5421 * top.c (execute_command): Check for non no-selected-thread-ok
5422 commands.
5423 * linux-nat.c (struct saved_ptids, threads_to_delete)
5424 (record_dead_thread, prune_lwps): Delete.
5425 (exit_lwp): Unconditionally delete thread.
5426 (linux_nat_resume): Remove prune_lwps call.
5427 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5428 of is_running. Adjust to make_cleanup_restore_current_thread
5429 interface change.
5430 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5431 selected thread has exited.
5432 * inf-loop.c (inferior_event_handler): Don't display the prompt
5433 here.
5434 * varobj.c (c_value_of_root): Update.
5435 * defs.h (make_cleanup_dtor): Declare.
5436 * utils.c (make_cleanup_dtor): New.
5437
5438 * Makefile.in (infrun.o): Depend on $(event_top_h).
5439
5440 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5441
5442 Add "continue -a" and "interrupt -a" options for non-stop mode.
5443
5444 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5445 (continue_command): Add "-a" option.
5446 (interrupt_target_command): Add "-a" option.
5447 (_initialize_infcmd): Add extend help of continue and interrupt
5448 command to mention the new "-a" option. Mark "continue" async ok.
5449
5450 2008-07-10 Doug Evans <dje@google.com>
5451
5452 Add "set print symbol-loading on|off".
5453 * NEWS: Document new option.
5454 * symfile.h (print_symbol_loading): Declare.
5455 * symfile.c (print_symbol_loading): New global.
5456 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5457 from ..." if print_symbol_loading.
5458 (_initialize_symfile): Add set/show print symbol-loading.
5459 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5460 if print_symbol_loading.
5461
5462 2008-07-10 Pedro Alves <pedro@codesourcery.com>
5463
5464 Non-stop linux native.
5465
5466 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5467 here.
5468 (get_pending_status): Implement non-stop mode.
5469 (linux_nat_detach): Stop threads before detaching.
5470 (linux_nat_resume): In non-stop mode, always resume only a single
5471 PTID.
5472 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5473 add new lwp to GDB's thread table, and mark as running, executing
5474 and stopped appropriately.
5475 (linux_nat_filter_event): Don't assume there are other running
5476 threads when a thread exits.
5477 (linux_nat_wait): Mark the main thread as running and executing.
5478 In non-stop mode, don't stop all lwps.
5479 (linux_nat_kill): Stop lwps before killing them.
5480 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5481 alive.
5482 (send_sigint_callback): New.
5483 (linux_nat_stop): New.
5484 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5485
5486 * linux-nat.h (thread_db_attach_lwp): Declare.
5487
5488 * linux-thread-db.c (thread_get_info_callback): Check for new
5489 threads if we have none.
5490 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5491 stopped lwp. Check for new threads if we have none.
5492 (thread_db_attach_lwp): New.
5493 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5494 (check_event): Set proc_handle.pid to the stopped lwp.
5495 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5496 lwp available, bail out if there is none.
5497
5498 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5499 PTRACE_KILL.
5500
5501 2008-07-10 Kevin Buettner <kevinb@redhat.com>
5502
5503 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5504 `current_pc' from CORE_ADDR to ULONGEST.
5505
5506 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5507 gdbsim_stop().
5508
5509 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 * NEWS (New commands): Mention "set disable-randomization".
5512 * configure.ac: Add check for HAVE_PERSONALITY and
5513 HAVE_DECL_ADDR_NO_RANDOMIZE.
5514 * configure, config.in: Regenerate.
5515 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5516 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5517 ADDR_NO_RANDOMIZE.
5518 (disable_randomization, show_disable_randomization)
5519 (set_disable_randomization): New.
5520 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5521 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5522 variable DISABLE_RANDOMIZATION.
5523 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5524 DISABLE_RANDOMIZATION.
5525
5526 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5527
5528 Adjust all targets to new target_stop interface.
5529
5530 * gnu-nat.c (gnu_stop): Add ptid argument.
5531 * go32-nat.c (go32_stop): Add ptid argument.
5532 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5533 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5534 * monitor.c (monitor_stop): Add ptid argument.
5535 (monitor_open): Pass inferior_ptid to monitor_stop.
5536 (monitor_interrupt): Pass inferior_ptid to target_stop.
5537 (monitor_stop): Add ptid argument.
5538 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5539 (procfs_create_inferior): Add ptid argument.
5540 * procfs.c (procfs_stop): Add ptid argument.
5541 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5542 * remote-sim.c (gdbsim_stop): Add ptid argument.
5543 * sol-thread.c (sol_thread_stop): Add ptid argument.
5544 * win32-nat.c (win32_stop): Add ptid argument.
5545
5546 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5547
5548 Non-stop inferior control.
5549
5550 * infrun.c (resume): In non-stop mode, always resume just one
5551 thread.
5552 (proceed): Don't call prepare_to_proceed in non-stop mode.
5553 (fetch_inferior_event): In non-stop mode, switch context before
5554 handling the event.
5555 (error_is_running, ensure_not_running): New.
5556 (handle_inferior_event): In non-stop mode: Mark only the event
5557 thread as stopped. Require that the target module manages adding
5558 threads to the thread list. Assert that there isn't a
5559 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5560 (normal_stop): Only mark not-running if inferior hasn't exited.
5561 In non-stop mode, only mark the event thread.
5562
5563 * thread.c:Include "cli/cli-decode.h".
5564 (print_thread_info): Don't read from a running thread.
5565 Output "(running)" if thread is running.
5566 (switch_to_thread): Don't read stop_pc if thread is executing.
5567 (do_restore_current_thread_cleanup): Don't write to a running
5568 thread.
5569 (thread_apply_all_command): Don't read from a running thread. In
5570 non-stop mode, do a full context-switch instead of just switching
5571 threads.
5572 (thread_apply_command): In non-stop mode, do a full context-switch
5573 instead of just switching threads.
5574 (do_captured_thread_select): Likewise. Inform user if selected
5575 thread is running.
5576 (_initialize_thread): Mark "info threads" and "thread" and
5577 async_ok.
5578
5579 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5580 unregister the target from the event loop.
5581
5582 * infcmd.c (continue_command, step_1, jump_command)
5583 (signal_command): Ensure the selected thread isn't running.
5584 (interrupt_target_command): In non-stop mode, interrupt only the
5585 selected thread.
5586
5587 * inferior.h (error_is_running, ensure_not_running): Declare.
5588
5589 * target.h (struct target_ops): Add ptid argument to the to_stop
5590 member.
5591 (target_stop): Add ptid_t argument.
5592
5593 * target.c (update_current_target): Add ptid argument to to_stop's
5594 type.
5595 (debug_to_stop): Add ptid_t argument.
5596 (debug_to_rcmd): Set to_stop_ptid.
5597
5598 * remote.c (remote_stop): Add ptid_t argument.
5599 (async_remote_interrupt): Add inferior_ptid to target_stop.
5600 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5601
5602 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5603
5604 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5605
5606 Don't rely on ecs->wait_for_more.
5607
5608 * infrun.c (proceed): Clear the stepping state, set
5609 previous_inferior_ptid and clear infwait state.
5610 (wait_for_inferior): Don't clear the stepping state, set
5611 previous_inferior_ptid, or clear the infwait state here.
5612 (fetch_inferior_event): Don't clear the stepping state, set
5613 previous_inferior_ptid, or clear the infwait state here. Don't
5614 condition on wait_for_more.
5615
5616 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5617
5618 Refactor infrun a bit.
5619
5620 * infrun.c (currently_stepping): Take a struct
5621 thread_stepping_state instead of an execution_control_state.
5622 (struct thread_stepping_state): New, split from
5623 execution_control_state.
5624 (gtss, tss): New globals.
5625 (proceed): Clear the stepping state, set previous_inferior_ptid
5626 and clear infwait state.
5627 (init_wait_for_inferior): Clear the stepping state,
5628 previous_inferior_ptid and infwait state.
5629 (waiton_ptid, infwait_state): New, split from
5630 execution_control_state.
5631 (struct execution_control_state): Members that persist through
5632 events moved out to either struct thred_stepping_state or made
5633 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5634 (wait_for_inferior, fetch_inferior_event): Use local
5635 execution_control_state. Update to execution_control_state split.
5636 (init_execution_control_state): Adjust.
5637 (init_thread_stepping_state): New, extracted from
5638 init_execution_control_state.
5639 (context_switch): Take a ptid instead of an
5640 execution_control_state.
5641 (context_switch_to): Adjust.
5642 (adjust_pc_after_break): Adjust.
5643 (init_infwait_state): New.
5644 (handle_inferior_event): Adjust.
5645
5646 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5647 Vladimir Prus <vladimir@codesourcery.com>
5648
5649 Per-thread commands.
5650
5651 * gdbthread.h: Remove unneeded forward declarations.
5652 Include "inferior.h".
5653 (struct thread_info): Add continuations,
5654 intermediate_continuations, proceed_to_finish, step_over_calls,
5655 stop_step, step_multi and stop_signal members.
5656 (save_infrun_state): Add continuations,
5657 intermediate_continuations, proceed_to_finish, step_over_calls,
5658 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5659 (load_infrun_state): Add continuations,
5660 intermediate_continuations, proceed_to_finish, step_over_calls,
5661 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5662
5663 * thread.c (load_infrun_state): In non-stop mode, load
5664 continuations, intermediate_continuations, proceed_to_finish,
5665 step_over_calls, stop_step, step_multi and stop_signal.
5666 (save_infrun_state): Store continuations,
5667 intermediate_continuations, proceed_to_finish, step_over_calls,
5668 stop_step, step_multi, stop_signal and stop_bpstat.
5669 (save_infrun_state): Store continuations,
5670 intermediate_continuations, proceed_to_finish, step_over_calls,
5671 stop_step, step_multi, stop_signal and stop_bpstat.
5672 (free_thread): Clear The thread's stop_bpstat.
5673
5674 * inferior.h (context_switch_to): Declare.
5675
5676 * infrun.c (ecss): New global.
5677 (context_switch): Context switch continuations,
5678 intermediate_continuations, proceed_to_finish, step_over_calls,
5679 stop_step, step_multi, stop_signal and stop_bpstat.
5680 (wait_for_inferior): Use global ecss.
5681 (async_ecss, async_ecs): Delete.
5682 (fetch_inferior_event): Use global ecss.
5683 (context_switch_to): New.
5684
5685 * top.c (execute_command): In non-stop, only check if the current
5686 thread is running, in all-stop, check if there's any thread
5687 running.
5688
5689 * breakpoint.c (bpstat_remove_breakpoint): New.
5690 (bpstat_remove_breakpoint_callback): New.
5691 (delete_breakpoint): Clear the stop_bpstats of all threads.
5692
5693 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5694 current thread is running, in all-stop, check if there's any
5695 thread running.
5696
5697 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5698
5699 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5700
5701 Add non_stop global.
5702
5703 * inferior.h (non_stop): Declare.
5704 * infrun.c (non_stop, non_stop_1): New.
5705 (set_non_stop, show_non_stop): New.
5706 (_initialize_infrun): Add "set/show non-stop" command.
5707
5708 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5709
5710 Adjust fork/vfork/exec to pass ptids around.
5711
5712 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5713 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5714 Take a ptid_t.
5715 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5716 type to ptid.
5717 * breakpoint.c (print_it_typical, bpstat_check_location)
5718 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5719 (create_fork_vfork_event_catchpoint): Adjust.
5720 * infrun.c (fork_event): Change parent_pid and child_pid types to
5721 ptid.
5722 (follow_exec, inferior_has_forked, inferior_has_vforked)
5723 (inferior_has_execd): Take a ptid_t and don't trim it.
5724 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5725 * linux-nat.c (linux_child_follow_fork): Adjust.
5726 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5727 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5728 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5729
5730 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5731
5732 Add "executing" property to threads.
5733
5734 * inferior.h (target_executing): Delete.
5735 * gdbthread.h (struct thread_info): Add executing_ field.
5736 (set_executing, is_executing): New.
5737 * thread.c (main_thread_executing): New.
5738 (init_thread_list): Clear it and also main_thread_running.
5739 (is_running): Return false if target has no execution.
5740 (any_running, is_executing, set_executing): New.
5741
5742 * top.c: Include "gdbthread.h".
5743 (target_executing): Delete.
5744 (execute_command): Replace target_executing check by any_running.
5745 * event-top.c: Include "gdbthread.h".
5746 (display_gdb_prompt, command_handler): Replace target_executing by
5747 is_running.
5748 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5749 here. Replace target_executing by is_running.
5750 * infrun.c (handle_inferior_event): Mark all threads as
5751 not-executing.
5752 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5753 here.
5754 * stack.c (get_selected_block): Return null if inferior is
5755 executing.
5756 * target.c (target_resume): Mark resumed ptid as executing.
5757 * breakpoint.c (until_break_command): Replace target_executing
5758 check by is_executing.
5759 * remote.c (remote_async_resume): Don't mark inferior as executing
5760 here.
5761 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5762 by any_running.
5763
5764 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5765 (mi_execute_async_cli_command): Replace target_executing by
5766 is_running.
5767
5768 * frame.c (get_current_frame): Error out if the current thread is
5769 executing.
5770 (has_stack_frames): New.
5771 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5772 has_stack_frames.
5773
5774 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5775 $(gdbthread_h).
5776
5777 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5778
5779 * symfile.c (load_command): Reopen the exec file and reread
5780 symbols before anything else.
5781
5782 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5783
5784 * remote-sim.c: Include gdbthread.h.
5785 (remote_sim_ptid): New global.
5786 (gdbsim_create_inferior): Silently add the main task to GDB's
5787 thread list.
5788 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5789 task from GDB's thread list.
5790 (gdbsim_resume): Adjust to use remote_sim_ptid.
5791 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5792 (init_gdbsim_ops): Register gdbsim_thread_alive and
5793 gdbsim_pid_to_str.
5794 (_initialize_remote_sim): Initialize remote_sim_ptid.
5795 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5796
5797 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5798
5799 * monitor (monitor_ptid): New global.
5800 (monitor_open): Silently add the main task to GDB's thread list.
5801 (monitor_close, monitor_mourn_inferior): Silently delete the main
5802 task from GDB's thread list.
5803 (monitor_thread_alive, monitor_pid_to_str): New.
5804 (init_base_monitor_ops): Register monitor_thread_alive and
5805 monitor_pid_to_str.
5806 (_initialize_remote_monitors): Initialize monitor_ptid.
5807
5808 * gdbthread.h (delete_thread_silent): Declare.
5809 * thread.c (delete_thread): Rename to ...
5810 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5811 don't do exit notifications.
5812 (delete_thread, delete_thread_silent): New, as wrappers to
5813 delete_thread_1.
5814
5815 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5816
5817 * breakpoint.c (update_global_location_list): Add boolean
5818 "should_insert" argument. Only insert locations if caller told it
5819 too.
5820 (update_global_location_list_nothrow): Add boolean "should_insert"
5821 argument. Pass it to update_global_location_list.
5822 (insert_breakpoints, create_longjmp_breakpoint)
5823 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5824 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5825 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5826 (enable_watchpoints_after_interactive_call_stop)
5827 (set_momentary_breakpoint, create_breakpoints)
5828 (break_command_really, watch_command_1)
5829 (create_ada_exception_breakpoint, update_breakpoint_locations)
5830 (do_enable_breakpoint, enable_command): Pass true to
5831 update_global_location_list.
5832 (bpstat_stop_status, disable_overlay_breakpoints)
5833 (disable_watchpoints_before_interactive_call_start)
5834 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5835 false to update_global_location_list.
5836 (update_breakpoints_after_exec): Don't temporarily disable
5837 always-inserted mode.
5838
5839 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5840
5841 * breakpoint.c (mark_breakpoints_out): Make public.
5842 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5843 here. Update comment.
5844 * breakpoint.h (mark_breakpoints_out): Declare.
5845
5846 * linux-nat.c (linux_handle_extended_wait): On
5847 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5848 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5849
5850 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5851
5852 * infrun.c (follow_exec): Reset shared libraries before adding the
5853 main exec file.
5854
5855 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5856
5857 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5858
5859 2008-07-07 Pedro Alves <pedro@codesourcery.com>
5860
5861 * i386-dicos-tdep.c: Include "inferior.h".
5862 (i386_dicos_frame_align): New.
5863 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5864 dummy location ON_STACK.
5865 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5866
5867 2008-07-07 Joel Brobecker <brobecker@adacore.com>
5868
5869 * gstdint.h: New file.
5870
5871 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5872
5873 * mi/mi-interp.c (mi_on_resume): Don't try to report
5874 resumed thread it the thread list is empty.
5875
5876 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5877
5878 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5879 completer for set to filename_completer.
5880
5881 NEWS: Mention it.
5882
5883 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5884
5885 Implement -target-attach.
5886 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
5887
5888 2008-06-21 Hui Zhu <teawater@gmail.com>
5889
5890 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5891
5892 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5893
5894 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5895 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5896
5897 * target.h (struct target_ops): Add to_attach_no_wait member.
5898 (target_attach_no_wait): New.
5899 * target.c (update_current_target): Inherit to_attach_no_wait.
5900
5901 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5902 target_attach_no_wait runtime check.
5903
5904 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5905 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5906 win32_ops.
5907
5908 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5909
5910 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5911 on debug_displaced being set.
5912
5913 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5914
5915 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5916 directly instead of get_frame_id.
5917
5918 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5919
5920 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5921 (deal_with_atomic_sequence): Update BC masks.
5922 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5923 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5924
5925 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5926
5927 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5928 register, not the previous frame's.
5929
5930 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5931
5932 * source.c (select_source_symtab): Make sure we skip namespace
5933 symtabs when showing cpp source code.
5934
5935 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
5936
5937 * MAINTAINERS (Authorized committers): Fix my email address.
5938
5939 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5940
5941 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5942 -target-download and -target-select via CLI, so that
5943 the quoting rules are the same as they were (unfortunately)
5944 in all prior gdb releases.
5945 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5946 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5947 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5948 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5949 (mi_cmd_execute): Set current_token even for commands
5950 routed via CLI.
5951
5952 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5953
5954 * alphafbsd-tdep.c: Update for unwinder changes.
5955 * alpha-linux-tdep.c: Likewise.
5956 * alphanbsd-tdep.c: Likewise.
5957 * alphaobsd-tdep.c: Likewise.
5958 * avr-tdep.c: Likewise.
5959 * cris-tdep.c: Likewise.
5960 * frv-linux-tdep.c: Likewise.
5961 * frv-tdep.c: Likewise.
5962 * h8300-tdep.c: Likewise.
5963 * hppa-linux-tdep.c: Likewise.
5964 * iq2000-tdep.c: Likewise.
5965 * m32c-tdep.c: Likewise.
5966 * m32r-linux-tdep.c: Likewise.
5967 * m32r-tdep.c: Likewise.
5968 * m68hc11-tdep.c: Likewise.
5969 * mep-tdep.c: Likewise.
5970 * mn10300-tdep.c: Likewise.
5971 * mt-tdep.c: Likewise.
5972 * score-tdep.c: Likewise.
5973 * sh64-tdep.c: Likewise.
5974 * sh-tdep.c: Likewise.
5975 * sparc64fbsd-tdep.c: Likewise.
5976 * sparc64nbsd-tdep.c: Likewise.
5977 * sparc64obsd-tdep.c: Likewise.
5978 * v850-tdep.c: Likewise.
5979 * vaxobsd-tdep.c: Likewise.
5980 * vax-tdep.c: Likewise.
5981 * xstormy16-tdep.c: Likewise.
5982
5983 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5984
5985 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5986 (captured_mi_execute_command_args): Remove.
5987 (captured_mi_execute_command): Cast the closure to mi_parse
5988 pointer, not to captured_mi_execute_command_args, and don't
5989 set the action field thereof.
5990 (mi_execute_command): Pass struct mi_parse, not
5991 captured_mi_execute_command_args to captured_mi_execute_command.
5992 (mi_execute_command): Remove (dead) code for suppressing
5993 printing prompt.
5994
5995 2008-06-28 Pedro Alves <pedro@codesourcery.com>
5996
5997 * linux-nat.c (enum sigchld_state): New.
5998 (linux_nat_async_events_state): Renamed from
5999 linux_nat_async_events_enabled.
6000 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6001 (sigchld_default_action): New.
6002 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6003 unconditionally.
6004 (linux_nat_create_inferior): Set events state to sigchld_default
6005 state.
6006 (linux_nat_resume): Adjust.
6007 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6008 (sigchld_handler): Adjust.
6009 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6010 (get_pending_events): Adjust.
6011 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6012 instead of a boolean.
6013 (linux_nat_async): Adjust.
6014 (_initialize_linux_nat): Capture default SIGCHLD action into
6015 sigchld_default_action.
6016
6017 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6018
6019 * breakpoint.c (moribund_locations): New.
6020 (bpstat_stop_status): Process moribund locations.
6021 (update_global_location_list): Add removed
6022 locations to moribund_locations.
6023 (breakpoint_retire_moribund): New.
6024 * breakpoint.h (struct bp_location): New field
6025 events_till_retirement.
6026 (breakpoint_retire_moribund): Declare.
6027 * thread.c (thread_count): New.
6028 * infrun.c (handle_inferior_event): Call
6029 breakpoint_retire_moribund.
6030 * gdbthread.h (thread_count): Declare.
6031
6032 2008-06-27 Joseph Myers <joseph@codesourcery.com>
6033
6034 * dfp.c (decimal_convert): Call match_endianness before and after
6035 conversion.
6036
6037 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6038
6039 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6040 unsupported and we fall back to memory_insert_breakpoint, we
6041 use the unmodified requested address.
6042
6043 2008-06-27 Joel Brobecker <brobecker@adacore.com>
6044
6045 * dwarf2read.c (read_attribute_value): Issue a complaint when
6046 adjusting size attribute values of 0xffffffff as zero.
6047
6048 2008-06-27 Joseph Myers <joseph@codesourcery.com>
6049
6050 * i386-tdep.c (i386_16_byte_align_p): New.
6051 (i386_push_dummy_call): Determine stack space required for
6052 arguments going forwards allowing for 16-byte alignment, then push
6053 arguments going forwards.
6054
6055 2008-06-27 Pedro Alves <pedro@codesourcery.com>
6056
6057 * infrun.c (start_remote): Don't clear thread list here.
6058 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6059 list here.
6060 * remote.c (record_currthread): Upgrade the main thread and its
6061 entry in the thread list if this is the first time we hear about
6062 threads.
6063 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6064 a tid member always alive.
6065 (remote_find_new_threads): Don't update the main thread here.
6066 (remote_start_remote): Clear thread list here. Always add the
6067 main thread.
6068 (extended_remote_attach_1): Add the main thread here.
6069 (extended_remote_mourn_1): Re-add the main thread here.
6070 (extended_remote_create_inferior_1): Add a main thread.
6071
6072 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6073
6074 2008-06-27 Pedro Alves <pedro@codesourcery.com>
6075
6076 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6077
6078 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6079 globals.
6080 (general_thread, continue_thread): Change type to ptid_t.
6081 (record_currthread): Take a ptid_t parameter instead of an
6082 integer.
6083 (MAGIC_NULL_PID): Delete.
6084 (set_thread): Take a ptid_t parameter and adjust.
6085 (set_general_thread, set_continue_thread): New.
6086 (remote_thread_alive, remote_newthread_step)
6087 (remote_current_thread, remote_find_new_threads)
6088 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6089 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6090 (threadalive_test, remote_pid_to_str)
6091 (remote_get_thread_local_address): Adjust.
6092 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6093 and any_thread_ptid.
6094
6095 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6096
6097 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6098 * configure: Regenerated.
6099
6100 2008-06-26 Joel Brobecker <brobecker@adacore.com>
6101
6102 * dwarf2read.c (read_attribute_value): Treat size attribute
6103 values of 0xffffffff as if the attribute value was zero.
6104
6105 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6106
6107 * linux-nat.c: Add description of overall logic.
6108
6109 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6110
6111 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6112 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6113 all dependencies on $(gdb_stdint_h).
6114 (distclean): Do not delete gdb_stdint.h.
6115 * acinclude.m4: Do not use stdint.m4.
6116 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6117 uintptr_t, and gdb_stdint.h.
6118 * defs.h: Include <stdint.h>.
6119 * gdb_thread_db.h: Assume stdint.h is already included.
6120 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6121 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6122 include gdb_stdint.h.
6123 * configure, config.in: Regenerate.
6124
6125 2008-06-26 Joseph Myers <joseph@codesourcery.com>
6126
6127 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6128 decimal floating-point values in GPRs for soft-float.
6129 (do_ppc_sysv_return_value): Handle returning decimal
6130 floating-point values in GPRs for soft-float.
6131
6132 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6133
6134 * target.c (target_read_until_error): New.
6135 * target.h (target_read_until_error): Declare.
6136 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6137 target_read_until_error.
6138
6139 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6140
6141 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6142 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6143 after the DECFLOAT detection to fix a memory leak. Remove the
6144 redundant NUM initialization. Protect the DECFLOAT detection memory
6145 access before the P block. Restore the P memory content for the
6146 DECFLOAT detection.
6147
6148 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6149
6150 Kill the return value for all MI command functions.
6151 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6152 (mi_cmd_argv_ftype): Change return type to void.
6153
6154 * mi/mi-main.c: Adjust all function that implement
6155 MI commands to return nothing.
6156 (struct captured_mi_execute_command_actions):
6157 Remove the rc field.
6158 (mi_cmd_execute): Return nothing.
6159 (mi_execute_async_cli_command): Return nothing.
6160 (mi_cmd_exec_interrupt): Don't print ^done here.
6161 (mi_cmd_target_select): Don't print ^connected here.
6162 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6163 Special-case -target-select and output ^connected, not ^done.
6164
6165 * mi/mi-cmd-break.c: Adjust.
6166 * mi/mi-cmd-disas.c: Adjust.
6167 * mi/mi-cmd-env.c: Adjust.
6168 * mi/mi-cmd-file.c: Adjust.
6169 * mi/mi-cmd-stack.c: Adjust.
6170 * mi/mi-cmd-target.c: Adjust.
6171 * mi/mi-cmd-var.c: Adjust.
6172 * mi/mi-interp.c: Adjust.
6173 * mi/mi-symbol-cmds.c: Adjust.
6174
6175 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6176
6177 Emit ^running via observer.
6178 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
6179 ^running here.
6180 (mi_on_resume): Print ^running if not previously output.
6181 * mi/mi-main.c (running_result_record_printed): New.
6182 (captured_mi_execute_command): Reset
6183 running_result_record_printed. Use running_result_record_printed
6184 to decide if we should skip ^done.
6185 (mi_execute_async_cli_command): Don't print ^running here.
6186 * mi/mi-main.h (current_token, running_result_record_printed):
6187 Declare.
6188
6189 2008-06-24 Michael Snyder <msnyder@specifix.com>
6190
6191 * infrun.c (_initialize_infrun): White space and typo fix.
6192
6193 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6194
6195 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6196 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6197 when first loading DLL with "dll" command.
6198
6199 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6200
6201 * gnu-nat.c (proc_string): Use capital T for "Thread".
6202
6203 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6204
6205 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
6206
6207 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6208
6209 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6210 the target cannot run.
6211
6212 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6213
6214 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6215 we're attaching to a running process.
6216
6217 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
6218
6219 * win32-nat.c (handle_load_dll): Give dll name and load address
6220 if debug_events is on.
6221 (handle_unload_dll): Likewise.
6222
6223 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6224
6225 Don't suppress *running when doing finish.
6226 * infcall.c (call_function_by_hand): Set both
6227 suppress_resume_observer and suppress_stop_observer.
6228 * infcmd.c (suppress_run_stop_observers): Split into...
6229 (suppress_resume_observer, suppress_stop_observer): ...those.
6230 (finish_command_continuation): Clear suppress_stop_observer.
6231 (finish_command): Set suppress_stop_observer.
6232 * inferior.h (suppress_run_stop_observers): Split into...
6233 (suppress_resume_observer, suppress_stop_observer): ...those.
6234 * infrun.c (normal_stop): Check for suppress_stop_observer.
6235 * thread.c (set_running): Check for suppress_resume_observer.
6236
6237 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6238 Pierre Muller <muller@ics.u-strasbg.fr>
6239
6240 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6241 * gdbarch.h, gdbarch.c: Regenerate.
6242 * i386-tdep.h (i386_skip_main_prologue): Declare.
6243 * i386-tdep.c (i386_skip_main_prologue): New.
6244 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
6245 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6246 * symtab.c (find_function_start_sal): When pc points at the "main"
6247 function, call gdbarch_skip_main_prologue.
6248
6249 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6250
6251 * value.c (value_primitive_field): Fetch lazy register values.
6252
6253 2008-06-11 Pedro Alves <pedro@codesourcery.com>
6254
6255 * NEWS: Mention support removal of undocumented S AA p PID stop
6256 reply packet.
6257
6258 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6259
6260 2008-06-10 Stan Shebs <stan@codesourcery.com>
6261
6262 * MAINTAINERS: Update my affiliation and address.
6263
6264 2008-06-10 Andreas Schwab <schwab@suse.de>
6265
6266 * top.c (print_gdb_version): Don't print final newline.
6267
6268 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6269
6270 Implement *running.
6271 * Makefile.in: Update dependencies.
6272 * gdbthread.h (struct thread_info): New field
6273 running_.
6274 (set_running, is_running): New.
6275 * thread.c (set_running, is_running): New.
6276 * inferior.h (suppress_normal_stop_observer): Rename to...
6277 (suppress_run_stop_observers): ..this.
6278 * infcmd.c (suppress_normal_stop_observer): Rename to...
6279 (suppress_run_stop_observers): ..this.
6280 (finish_command_continuation, finish_command): Adjust.
6281 * infcall.c (call_function_by_hand): Adjust.
6282 * infrun.c (normal_stop): Call set_running.
6283 * target.c (target_resume): New. Call set_running.
6284 * target.h (target_resume): Convert from macro to
6285 a function.
6286
6287 * mi/mi-interp.c (mi_on_resume): New.
6288 (mi_interpreter_init): Register mi_on_resume.
6289
6290 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6291
6292 Use observers to report stop events in MI.
6293 * mi/mi-interp.c (mi_on_normal_stop): New.
6294 (mi_interpreter_init): Register mi_on_normal_stop.
6295 (mi_interpreter_exec_continuation): Remove.
6296 (mi_cmd_interpreter_exec): Don't register the above.
6297 * mi/mi-main.c (captured_mi_execute_command): Don't care
6298 about sync_execution.
6299 (mi_execute_async_cli_command): Don't install continuation. Don't
6300 print *stopped.
6301 (mi_exec_async_cli_cmd_continuation): Remove.
6302
6303 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6304
6305 Suppress normal stop observer when it's problematic.
6306 * inferior.h (suppress_normal_stop_observer): New.
6307 * infcall.c (call_function_by_hand): Disable stop events when
6308 doing function calls.
6309 * infmcd.c (suppress_normal_stop_observer): New.
6310 (finish_command_continuation): Call normal_stop observer
6311 explicitly.
6312 (finish_command): Disable stop events inside proceed.
6313 * infrun.c (normal_stop): Don't call normal stop observer if
6314 suppressed of if multi-step is in progress.
6315
6316 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6317
6318 Remove stale code.
6319 * infrun.c (finish_command): Don't pass cleanup
6320 to continuation.
6321 (finish_command_continuation): Don't grab cleanup from
6322 the passed data, as we don't use, and cannot, use it anyway.
6323
6324 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6325
6326 Introduce common cleanup for restoring integers.
6327 * defs.h (make_cleanup_restore_integer): New declaration.
6328 (struct cleanup): New field free_arg.
6329 (make_my_cleanup_2): New.
6330 * utils.c (restore_integer_closure, restore_integer)
6331 (make_cleanup_restore_integer): New.
6332 (make_my_cleanup): Initialize the free_arg field and
6333 renamed to make_my_cleanup_2.
6334 (do_my_cleanups): Call free_arg.
6335 (discard_cleanups): Call free_arg.
6336 * breakpoint.c (restore_always_inserted_mode): Remove.
6337 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
6338
6339 2008-06-09 Doug Evans <dje@google.com>
6340
6341 * remote.c (remote_wait): Include beginning of malformed packet
6342 in error output.
6343
6344 2008-06-09 Tom Tromey <tromey@redhat.com>
6345
6346 * completer.c (complete_line): Don't special-case
6347 expression_completer.
6348 (expression_completer): Only pass last word to
6349 location_completer.
6350 * c-exp.y (yylex): Check 'token', not 'operator'.
6351
6352 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6353
6354 * configure.ac (build_warnings): Add -Wno-format for mingw.
6355 * configure: Regenerated.
6356
6357 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6358
6359 * NEWS: Make indentation consistent. Move exec tracing entry out
6360 of remote packet list.
6361
6362 2008-06-06 Tom Tromey <tromey@redhat.com>
6363
6364 * value.h (evaluate_subexpression_type, extract_field_op):
6365 Declare.
6366 * printcmd.c (_initialize_printcmd): Use expression_completer for
6367 'p', 'inspect', 'call'.
6368 * parser-defs.h (parse_field_expression): Declare.
6369 * parse.c: Include exceptions.h.
6370 (in_parse_field, expout_last_struct): New globals.
6371 (mark_struct_expression): New function.
6372 (prefixify_expression): Return int.
6373 (prefixify_subexp): Return int. Use expout_last_struct.
6374 (parse_exp_1): Update.
6375 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6376 in_parse_field.
6377 (parse_field_expression): New function.
6378 * expression.h (parse_field_expression): Declare.
6379 (in_parse_field): Likewise.
6380 * eval.c (evaluate_subexpression_type): New function.
6381 (extract_field_op): Likewise.
6382 * completer.h (expression_completer): Declare.
6383 * completer.c (expression_completer): New function.
6384 (count_struct_fields, add_struct_fields): New functions.
6385 * c-exp.y (yyparse): Redefine.
6386 (COMPLETE): New token.
6387 (exp): New productions.
6388 (saw_name_at_eof, last_was_structop): New globals.
6389 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6390 (c_parse): New function.
6391 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6392 for watch, awatch, and rwatch.
6393 * Makefile.in (parse.o): Depend on exceptions_h.
6394
6395 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6396
6397 PR gdb/1147
6398 * gdb/valopts.c (find_overload_match): Handle references
6399 to pointers.
6400
6401 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6402
6403 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6404 account the bitsize of the 'from' operand.
6405
6406 2008-06-06 Pedro Alves <pedro@codesourcery.com>
6407
6408 * annotate.h (annotate_thread_changed): Declare.
6409
6410 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
6411
6412 * annotate.c (annotate_thread_changed): New function.
6413 * thread.c (thread_command) : Use it.
6414 * infrun.c (normal_stop): Use it.
6415
6416 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
6417 Nathan Sidwell <nathan@codesourcery.com>
6418 Joseph Myers <joseph@codesourcery.com>
6419
6420 * acinclude.m4: Include ../config/acx.m4.
6421 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6422 * configure, config.in: Regenerate.
6423 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6424 address.
6425 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6426
6427 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6428
6429 Replace 'target async' by 'maintenance set remote-async' and
6430 'target remote' combination.
6431
6432 * remote.c (remote_async_wait): Merge into remote_wait, and
6433 remove.
6434 (remote_async_permitted, remote_async_permitted_set): New
6435 variables.
6436 (set_maintenance_remote_async_permitted)
6437 (show_maintenance_remote_async_permitted): New functions.
6438 (remote_async_ops, extended_async_remote_ops): Delete.
6439 (remote_async_open, extended_remote_async_open): Delete.
6440 (remote_open_1): Drop async_p parameter. Update callers. Replace
6441 async_p with remote_async_permitted checks.
6442 (extended_async_remote_attach): Delete.
6443 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6444 (remote_async_terminal_inferior): Rename to...
6445 (remote_terminal_inferior): ... this, and add
6446 remote_async_termitted check.
6447 (remote_async_terminal_ours): Rename to...
6448 (remote_terminal_ours): ... this, and add remote_async_termitted
6449 check.
6450 (remote_wait, remote_async_wait): Merge and leave remote_wait
6451 only.
6452 (remote_kill, remote_async_kill): Merge and leave remote_kill
6453 only.
6454 (remote_async_mourn, extended_async_remote_mourn): Delete.
6455 (extended_remote_create_inferior_1): Drop async_p parameter.
6456 Update callers. Always use extended_remote_ops.
6457 (extended_remote_async_create_inferior): Delete.
6458 (remote_return_zero): Delete.
6459 (init_remote_ops): Register remote_can_async_p, remote_async,
6460 remote_async_mask, remote_terminal_inferior and
6461 remote_terminal_ours.
6462 (remote_can_async_p, remote_is_async_p): Check for
6463 remote_async_permitted.
6464 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6465 (set_remote_cmd): Don't add async and extended-async targets.
6466 (_initialize_remote): Add set/show remote-async maintenance
6467 commands.
6468
6469 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6470
6471 * remote.c (kill_kludge): Delete.
6472 (remote_wait, remote_async_wait): Don't set it.
6473 (remote_kill, remote_async_kill): Don't do anything with it.
6474
6475 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6476
6477 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6478
6479 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6480
6481 * bcache.c (bcache_data): Call deprecated_bcache_added function.
6482 (deprecated_bcache_added): New function name. Body of function
6483 bcache_data is used here with the addition of 'added' argument.
6484 * bcache.h (deprecated_bcache_added): New function.
6485 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6486 work from add_psymbol_to_list - initialises partial symbol and stashes
6487 it in objfile's cache.
6488 (append_psymbol_to_list): New helper function, takes other part of
6489 work from add_psymbol_to_list - adds partial symbol to the given list.
6490 (add_psymbol_to_list): Call helper functions instead of doing work
6491 here. If adding to global list, do not duplicate partial symbols in the
6492 partial symtab.
6493
6494 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6495
6496 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6497 'exception caught|thrown' message.
6498
6499 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6500
6501 * Makefile.in: Update dependencies.
6502 * dwarf2expr.c: New include "gdb_assert.h".
6503 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6504 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6505 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6506 Increase/decrease RECURSION_DEPTH around the function.
6507
6508 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6509
6510 * remote.c (get_offsets): Handle a single segment.
6511 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6512 than segments.
6513
6514 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6515
6516 * solib-svr4.c (struct lm_info): Add lm_addr.
6517 (main_lm_addr): New.
6518 (svr4_default_sos): Set lm_addr.
6519 (svr4_current_sos): Set lm_addr and main_lm_addr.
6520 (svr4_fetch_objfile_link_map): Rewrite.
6521 (svr4_clear_solib): Clear main_lm_addr.
6522
6523 2008-06-03 Michael Snyder <msnyder@redhat.com>
6524 Joseph Myers <joseph@codesourcery.com>
6525
6526 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6527 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6528
6529 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6530
6531 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6532
6533 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6534
6535 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6536
6537 2008-06-01 Joel Brobecker <brobecker@adacore.com>
6538
6539 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6540 treat pointers in data space as function descriptors if the
6541 target address is also in the data space.
6542
6543 2008-05-30 Joel Brobecker <brobecker@adacore.com>
6544
6545 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6546 the trad-frame register value for the SP register.
6547
6548 2008-05-29 Mark Kettenis <kettenis@gnu.org>
6549
6550 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6551
6552 2008-05-28 Joel Brobecker <brobecker@adacore.com>
6553
6554 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6555 that identifies function descriptors outside of the .opd section.
6556
6557 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6558
6559 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
6560 temporary catchpoints. In MI add missing fields 'reason', 'disp',
6561 'bkptno'.
6562 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6563 catchpoints.
6564 (handle_gnu_v3_exceptions): Use tempflag.
6565
6566 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6567
6568 Refactor varobj_update interface.
6569 * varobj.c (varobj_update): Report changes as vector. Also
6570 return not just a list of varobj, but a list of special structures
6571 that tell what exactly has changed.
6572 * varobj.h (enum varobj_update_error): Rename to
6573 varobj_scope_status.
6574 (struct varobj_update_result_t): New.
6575 (varobj_update): Adjust prototype.
6576 * mi/mi-cmd-var.c: Adjust for changes.
6577
6578 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6579
6580 * varobj.c (varobj_update): Fix comment typo.
6581 Fix indentation.
6582
6583 2008-05-26 Joel Brobecker <brobecker@adacore.com>
6584
6585 Set the symtab field of symbols read from ECOFF debugging entries.
6586 * mdebugread.c (add_symbol): Add new parameter symtab.
6587 (parse_symbol): Update calls to add_symbol throughout.
6588
6589 2008-05-27 Andreas Schwab <schwab@suse.de>
6590
6591 * symtab.h (enum address_class): Remove LOC_REGPARM and
6592 LOC_COMPUTED_ARG.
6593 (struct symbol): Add is_argument.
6594 (SYMBOL_IS_ARGUMENT): Define.
6595
6596 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6597 * buildsym.c (finish_block): Likewise.
6598 * stack.c (print_frame_args, print_block_frame_locals)
6599 (print_frame_arg_vars): Likewise.
6600 * symtab.c (lookup_block_symbol): Likewise.
6601 * tracepoint.c (add_local_symbols): Likewise.
6602 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6603
6604 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6605 * dwarf2read.c (new_symbol): Likewise.
6606 * mdebugread.c (parse_symbol): Likewise.
6607 * stabsread.c (define_symbol): Likewise.
6608
6609 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6610 and LOC_COMPUTED_ARG.
6611 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6612 * ax-gdb.c (gen_var_ref): Likewise.
6613 * eval.c (evaluate_subexp_for_address): Likewise.
6614 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6615 * m2-exp.y (yylex): Likewise.
6616 * printcmd.c (address_info): Likewise.
6617 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6618 * tracepoint.c (collect_symbol, scope_info): Likewise.
6619
6620 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6621
6622 * gdbarch.sh: Added new gdbarch struct
6623 core_regset_sections.
6624 * gdbarch.c: Refreshed.
6625 * gdbarch.h: Refreshed.
6626 * regset.h (core_regset_section): Declared.
6627 * linux-nat.c (linux_nat_do_thread_registers): Added
6628 support for the new gdbarch struct core_regset_sections.
6629 * utils.c (host_address_to_string): New function.
6630 * defs.h (host_address_to_string): New prototype.
6631 * i386-linux-tdep.c (i386_regset_rections): New register
6632 sections list for i386.
6633 (i386_linux_init_abi): Initialized new gdbarch struct
6634 core_regset_sections.
6635 * Makefile.in: Updated to reflect dependency changes.
6636 * ppc-linux-tdep.c (ppc_regset_sections): Register
6637 sections list for ppc.
6638 (ppc_linux_init_abi): Initialized new gdbarch struct
6639 core_regset_sections
6640
6641 2008-05-24 Andreas Schwab <schwab@suse.de>
6642
6643 * linespec.c (decode_objc): Save current language around call to
6644 get_selected_block.
6645
6646 2008-05-23 Joel Brobecker <brobecker@adacore.com>
6647
6648 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6649 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6650 Return the proper bound value if the array index type is an
6651 enumerated type. Compute the high bound if requested.
6652 (val_print_array_elements): Handle the case when the array
6653 element has a null size.
6654 * ada-valprint.c (print_optional_low_bound): Add handling
6655 for empty arrays or arrays of zero-size elements.
6656 (ada_val_print_array): New function, extracted out from
6657 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6658 handle empty arrays and arrays of zero-size elements.
6659 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6660 code by call to ada_val_print_array.
6661 (ada_value_print): Remove handling of null array. The handling
6662 was incomplete and is now better handled by ada_val_print_array.
6663
6664 2008-05-23 Markus Deuling <deuling@de.ibm.com>
6665
6666 * annotate.c (annotate_source, annotate_frame_begin): Replace
6667 deprecated_print_address_numeric with paddress.
6668 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6669 * tui/tui-stack.c (tui_make_status_line): Likewise.
6670
6671 * defs.h (deprecated_print_address_numeric): Remove.
6672 * printcmd.c (deprecated_print_address_numeric): Remove.
6673 * maint.c (maint_print_section_info): Fix comment.
6674
6675 2008-05-23 Markus Deuling <deuling@de.ibm.com>
6676
6677 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6678 print_binary_chars, print_char_chars): Add byte_order parameter and
6679 replace gdbarch_byte_order.
6680 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6681 expressions and remove them. Remove unused TWO_TO_FOURTH.
6682 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6683 endianness. Update call to print_hex_chars.
6684 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6685 print_binary_chars, print_char_chars): Add byte_order parameter.
6686 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6687 get at the endianness. Update print_*_char calls to use byte_order.
6688
6689 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6690
6691 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6692 instead of a union.
6693 (SYMBOL_LOCATION_BATON): Update.
6694
6695 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6696
6697 * symtab.h (enum address_class): Remove LOC_BASEREG and
6698 LOC_BASEREG_ARG.
6699 (struct symbol): Remove "basereg" member of "aux_value" union.
6700 (SYMBOL_BASEREG): Remove.
6701
6702 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6703 or LOC_BASEREG_ARG.
6704 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6705 (ada_add_block_symbols): Likewise.
6706 * ax-gdb.c (gen_var_ref): Likewise.
6707 * buildsym.c (finish_block): Likewise.
6708 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6709 * m2-exp.y (yylex): Likewise.
6710 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6711 * printcmd.c (address_info): Likewise.
6712 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6713 (print_frame_arg_vars): Likewise.
6714 * symmisc.c (print_symbol): Likewise.
6715 * symtab.c (lookup_block_symbol): Likewise.
6716 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6717 (scope_info): Likewise.
6718
6719 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6720
6721 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6722
6723 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6724 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6725 (ada_add_block_symbols): Likewise.
6726 * ax-gdb.c (gen_var_ref): Likewise.
6727 * buildsyms.c (finish_block): Likewise.
6728 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6729 * m2-exp.y (yylex): Likewise.
6730 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6731 * printcmd.c (address_info): Likewise.
6732 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6733 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6734 * symtab.c (lookup_block_symbol): Likewise.
6735 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6736 (scope_info): Likewise.
6737
6738 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6739
6740 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6741 LOC_HP_THREAD_LOCAL_STATIC.
6742
6743 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6744 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6745 (read_var_value): Likewise.
6746 * buildsym.c (finish_block): Likewise.
6747 * objfiles.c (objfile_relocate): Likewise.
6748 * printcmd.c (address_info): Likewise.
6749 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6750 * tracepoint.c (scope_info): Likewise.
6751
6752 2008-05-21 Markus Deuling <deuling@de.ibm.com>
6753 Maxim Grigoriev <maxim2405@gmail.com>
6754
6755 * xtensa-tdep.c (xtensa_read_register): Remove.
6756 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6757 argument litbase to call0_frame_cache().
6758 (call0_track_op, call0_analyze_prologue)
6759 (call0_frame_cache): Use extra argument litbase.
6760
6761 2008-05-21 Joel Brobecker <brobecker@adacore.com>
6762
6763 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6764
6765 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6766
6767 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6768
6769 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6770
6771 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6772 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6773 struct trad_frame_saved_reg *.
6774 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6775 trad_frame_alloc_saved_regs. Update accesses. Record previous
6776 value of SP as being vfp.
6777 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6778 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6779
6780 2008-05-21 Markus Deuling <deuling@de.ibm.com>
6781
6782 * score-tdep.c (score_print_insn): Get the current endianess from
6783 disassemble_info instead of gdbarch_byte_order.
6784
6785 2008-05-21 Pedro Alves <pedro@codesourcery.com>
6786
6787 * frame.c (get_prev_frame_1): Build frame id before setting
6788 this_frame->prev_p, not after.
6789
6790 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
6791
6792 * annotate.c (annotate_new_thread): New function for new-thread
6793 annotation.
6794 * annotate.h: (annotate_new_thread): New extern.
6795 * thread.c (add_thread_with_info): Use it.
6796 * Makefile.in (thread.o): Add dependency on annotate.h.
6797
6798 2008-05-20 Joel Brobecker <brobecker@adacore.com>
6799
6800 * win32-nat.c (win32_wait): Block the control-c event while
6801 waiting for a debug event.
6802
6803 2008-05-19 Pedro Alves <pedro@codesourcery.com>
6804
6805 * symtab.h (lookup_symbol_in_language): Update comment.
6806 * symtab.c (lookup_symbol_aux_block): Update comment.
6807 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6808
6809 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6810
6811 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6812 (lookup_symbol): Likewise.
6813 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6814 (lookup_symbol): Likewise.
6815 (search_symbols): Update.
6816
6817 * linespec.c (find_methods, collect_methods): Update.
6818 (add_matching_methods, add_constructors): Update.
6819 (decode_compound, decode_dollar, decode_variable): Update.
6820 (lookup_prefix_sym): Update.
6821
6822 (symbol_found): Remove SYM_SYMTAB parameter.
6823 Use SYMBOL_SYMTAB (sym) instead.
6824
6825 * gdbtypes.c (lookup_typename): Update.
6826 (lookup_struct, lookup_union, lookup_enum): Update.
6827 (lookup_template_type): Update.
6828 (check_typedef): Update.
6829 * language.c (lang_bool_type): Update.
6830 * mdebugread.c (parse_procedure): Update.
6831 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6832 * parse.c (write_dollar_variable): Update.
6833 * printcmd.c (address_info): Update.
6834 * source.c (select_source_symtab): Update.
6835 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6836 * valops.c (find_function_in_inferior): Update.
6837 (value_struct_elt_for_reference): Update.
6838 * value.c (value_static_field, value_fn_field): Update.
6839
6840 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6841 * arm-tdep.c (arm_skip_prologue): Update.
6842 * mt-tdep.c (mt_skip_prologue): Update.
6843 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6844
6845 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6846 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6847 (add_defn_to_vec): Likewise.
6848 (ada_add_block_symbols): Likewise.
6849 (lookup_cached_symbol, cache_symbol): Likewise.
6850 (standard_lookup): Update.
6851 (ada_lookup_symbol_list): Update.
6852
6853 * c-valprint.c (c_val_print): Update.
6854 * cp-support.c (cp_lookup_rtti_type): Update.
6855 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6856 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6857 * p-valprint.c (pascal_val_print): Update.
6858 * scm-lang.c (scm_lookup_name): Update.
6859
6860 * c-exp.y: Update.
6861 * f-exp.y: Update.
6862 * jv-exp.y: Update.
6863 * m2-exp.y: Update.
6864 * objc-exp.y: Update.
6865 * p-exp.y: Update.
6866
6867 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6868
6869 * language.h (struct language_defn): Remove SYMTAB parameter from
6870 la_lookup_symbol_nonlocal callback function pointer.
6871
6872 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6873 (ada_lookup_encoded_symbol): Likewise.
6874 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6875 Always call fixup_symbol_section.
6876 (ada_lookup_symbol): Remove SYMTAB parameter.
6877 (ada_lookup_symbol_nonlocal): Likewise.
6878 * ada-exp.y (write_object_renaming): Update.
6879 (find_primitive_type): Likewise.
6880
6881 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6882 (cp_lookup_symbol_namespace): Likewise.
6883 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6884 (lookup_symbol_file): Likewise.
6885 (lookup_possible_namespace_symbol): Likewise.
6886 (cp_lookup_symbol_nonlocal): Likewise.
6887 (cp_lookup_symbol_namespace): Likewise.
6888 (cp_lookup_nested_type): Update.
6889
6890 * scm-valprint.c (scm_inferior_print): Update.
6891 * valops.c (value_maybe_namespace_elt): Update.
6892
6893 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6894 lookup_lib_global_symbol callback function pointer.
6895 (solib_global_lookup): Remove SYMTAB parameter.
6896 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6897 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6898
6899 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6900 (lookup_symbol_static): Likewise.
6901 (lookup_symbol_global): Likewise.
6902 (lookup_symbol_aux_block): Likewise.
6903 (lookup_global_symbol_from_objfile): Likewise.
6904 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6905 (lookup_symbol_aux_local): Likewise.
6906 (lookup_symbol_aux_block): Likewise.
6907 (lookup_symbol_aux_symtabs): Likewise.
6908 (lookup_symbol_aux_psymtabs): Likewise.
6909 (lookup_global_symbol_from_objfile): Likewise.
6910 (basic_lookup_symbol_nonlocal): Likewise.
6911 (lookup_symbol_static): Likewise.
6912 (lookup_symbol_global): Likewise.
6913
6914 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6915
6916 2008-05-17 Pedro Alves <pedro@codesourcery.com>
6917
6918 * remote.c (init_extended_remote_ops): Fix typo.
6919
6920 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6921
6922 * NEWS: Mention new DICOS x86 target configuration.
6923
6924 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6925 Ulrich Weigand <uweigand@de.ibm.com>
6926
6927 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6928 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6929
6930 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6931 use it instead of ginfo->value.address. Look up minimal symbol by
6932 address and name. Assume OBJFILE is non-NULL.
6933 (fixup_symbol_section): Ensure we always have an objfile to look
6934 into. Extract and pass to fixup_section the symbol's address that
6935 will match the minimal symbol's address.
6936 (fixup_psymbol_section): Likewise.
6937
6938 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6939 overlays and the addrmap returned the wrong section.
6940
6941 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6942 calling fixup_symbol_section.
6943
6944 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6945
6946 * minsyms.c: Include "target.h".
6947 (find_solib_trampoline_target): Handle minimal symbols pointing
6948 to function descriptors as well.
6949 * Makefile.in (minsyms.o): Update dependencies.
6950
6951 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6952 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6953 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6954 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6955 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6956 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6957 (ppc64_standard_linkage_target): Rename to ...
6958 (ppc64_standard_linkage1_target): ... this.
6959 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6960 (ppc64_skip_trampoline_code): Support three variants of standard
6961 linkage stubs. Call find_solib_trampoline_target to handle
6962 glink stubs.
6963
6964 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6965
6966 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6967 ppc64_sysv_abi_adjust_breakpoint_address.
6968 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6969 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6970
6971 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6972
6973 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6974 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6975 of ppc_linux_skip_trampoline_code.
6976
6977 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6978
6979 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6980 * gdbarch.c, gdbarch.h: Regenerated.
6981 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6982 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6983 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6984
6985 2008-05-15 Pedro Alves <pedro@codesourcery.com>
6986
6987 * linux-nat.c (trap_ptid): Delete.
6988 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6989 Adjust.
6990 * linux-thread-db.c (thread_db_wait): Adjust.
6991
6992 2008-05-15 Joel Brobecker <brobecker@adacore.com>
6993
6994 * linespec.c (decode_line_1): Fix a couple of comments.
6995
6996 2008-05-15 Alan Modra <amodra@bigpond.net.au>
6997
6998 * dbxread.c: Formatting.
6999 (INTERNALIZE_SYMBOL): Init n_other.
7000 (set_namestring): Take pointer to nlist arg rather than struct
7001 copy. Update all callers.
7002
7003 2008-05-15 Andreas Schwab <schwab@suse.de>
7004
7005 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7006 (dwarf2read.o): Add $(addrmap_h).
7007
7008 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7009
7010 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7011 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7012 to handle ppc32 PLT entries.
7013 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7014 only on ppc64.
7015
7016 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7017
7018 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7019 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7020 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7021 (lookup_minimal_symbol_by_pc_section): Use
7022 lookup_minimal_symbol_by_pc_section_1.
7023 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7024
7025 2008-05-13 Joel Brobecker <brobecker@adacore.com>
7026
7027 * findcmd.c: Add #include "gdb_stdint.h".
7028 * Makefile.in (findcmd.o): Update dependencies.
7029
7030 2008-05-11 David S. Miller <davem@davemloft.net>
7031
7032 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7033 long double size override, Linux does use 128-bit now.
7034
7035 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7036 (sparc_linux_write_pc): New function.
7037 (sparc32_linux_init_abi): Register it.
7038 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7039 (sparc64_linux_write_pc): New function.
7040 (sparc64_linux_init_abi): Register it.
7041
7042 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7043 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7044
7045 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7046
7047 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7048 and info.tdep_info before calling gdbarch_init_osabi.
7049
7050 2008-05-09 Joel Brobecker <brobecker@adacore.com>
7051
7052 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7053 the type of the right hand side of the assignment to the type
7054 of the left hand side if the left hand side is a convenience
7055 variable.
7056
7057 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7058
7059 * NEWS: Mention gdbserver bi-arch capability.
7060
7061 2008-05-09 Doug Evans <dje@google.com>
7062
7063 New "find" command.
7064 * NEWS: Document find command and qSearch:memory packet.
7065 * Makefile.in (SFILES): Add findcmd.c.
7066 (COMMON_OBJS): Add findcmd.o.
7067 (findcmd.o): New rule.
7068 * findcmd.c: New file.
7069 * target.h (target_ops): New member to_search_memory.
7070 (simple_search_memory): Declare.
7071 (target_search_memory): Declare.
7072 * target.c (simple_search_memory): New fn.
7073 (target_search_memory): New fn.
7074 * remote.c (PACKET_qSearch_memory): New packet kind.
7075 (remote_search_memory): New fn.
7076 (init_remote_ops): Init to_search_memory.
7077 (init_extended_remote_ops): Ditto.
7078 (_initialize_remote): Add qSearch:memory packet config command.
7079
7080 2008-05-09 Eli Zaretskii <eliz@gnu.org>
7081
7082 * thread.c (_initialize_thread): Don't use commas and periods in
7083 first line of doc string of "set/show print thread-events".
7084
7085 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7086
7087 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7088 Update for unwinder changes.
7089
7090 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7091
7092 * frame.c (get_frame_base_address, get_frame_locals_address)
7093 (get_frame_args_address): Pass the correct frame when calling
7094 frame_base_find_by_frame.
7095
7096 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7097
7098 * remote.c (extended_remote_attach_1): Call target_find_description.
7099
7100 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7101
7102 * remote.c (extended_remote_create_inferior_1): Clean up
7103 before marking the target running.
7104
7105 2008-05-08 Joel Brobecker <brobecker@adacore.com>
7106
7107 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7108 changes.
7109
7110 2008-05-07 Joel Brobecker <brobecker@adacore.com>
7111
7112 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7113 sparc64-sol2-tdep.c: Update for unwinder changes.
7114
7115 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7116
7117 * cp-support.c (mangled_name_to_comp): Initialize storage.
7118 (unqualified_name_from_comp): Likewise.
7119
7120 2008-05-07 Jie Zhang <jie.zhang@analog.com>
7121
7122 * remote.c (remote_insert_breakpoint): Call get_remote_state
7123 after gdbarch_breakpoint_from_pc is called.
7124 (remote_insert_hw_breakpoint): Likewise.
7125
7126 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7127
7128 * valprint.c (val_print): Add new language parameter and use it
7129 instead of using the current_language. Update calls to val_print
7130 throughout.
7131 (common_val_print): Add new langauge parameter and pass it to
7132 val_print.
7133 * value.h (struct language_defn): Add opaque declaration.
7134 (val_print, common_val_print): Update declarations.
7135 * stack.c (print_frame_args): Update call to common_val_print
7136 using the appropriate language.
7137 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7138 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7139 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7140 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7141 #include "language.h" if necessary.
7142 Update calls to val_print and common_val_print.
7143 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7144 Update dependencies.
7145
7146 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7147
7148 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7149 pointing inside a non-executable section as function descriptors.
7150
7151 2008-05-06 Pedro Alves <pedro@codesourcery.com>
7152
7153 * inf-loop.c (inferior_event_handler): Run all continuations and
7154 print any language change before running the breakpoint commands.
7155
7156 2008-05-06 Joel Brobecker <brobecker@adacore.com>
7157
7158 * frame-unwind.c (frame_unwind_got_bytes): New function.
7159 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7160 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7161 for unwinder changes.
7162
7163 2008-05-05 Doug Evans <dje@google.com>
7164
7165 * NEWS: Mention new /m modifier for disassemble command.
7166 * cli/cli-cmds.c (print_disassembly): New function.
7167 (disassemble_current_function): New function
7168 (disassemble_command): Recognize /m modifier, print mixed
7169 source+assembly.
7170 (init_cli_cmds): Update disassemble help text.
7171
7172 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7173
7174 * xtensa-tdep.c: Update for unwinder changes.
7175
7176 2008-05-05 Andreas Schwab <schwab@suse.de>
7177
7178 Update m68k port for unwinder changes.
7179 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7180 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7181 (m68k_frame_unwind): Use default_frame_sniffer.
7182 (m68k_frame_sniffer): Remove.
7183 (m68k_frame_base_address): Expect this_frame.
7184 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7185 this_frame.
7186 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7187 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7188 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7189 parameter instead of pc value.
7190 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7191 Expect this_frame.
7192 (m68k_linux_sigtramp_frame_this_id)
7193 (m68k_linux_sigtramp_frame_prev_register)
7194 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7195 (m68k_linux_sigtramp_frame_unwind): Use
7196 m68k_linux_sigtramp_frame_sniffer.
7197 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7198
7199 * m68klinux-nat.c (store_register): Fix typo.
7200
7201 2008-05-05 Pedro Alves <pedro@codesourcery.com>
7202
7203 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7204 NULL dereferencing.
7205
7206 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
7207
7208 * symfile.c (reread_symbols): Update objfile's entry point.
7209
7210 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7211 Joel Brobecker <brobecker@adacore.com>
7212
7213 * ada-lang.c: Update throughout to use symbol_matches_domain
7214 instead of matching the symbol domain explictly.
7215 * dwarf2read.c (add_partial_symbol): Do not add new psym for
7216 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
7217 class as typedefs. See lookup_partial_symbol function.
7218 (new_symbol): Similar to add_partial_symbol, do not create
7219 symbol for the typedef. See lookup_block_symbol.
7220 * symtab.c (symbol_matches_domain): New function, takes care
7221 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7222 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7223 found psym domain matches the given domain.
7224 (lookup_block_symbol): Likewise.
7225
7226 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7227
7228 * top.c (command_line_handler_continuation): Remove.
7229 (execute_command): Do not install the above.
7230
7231 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7232
7233 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7234 and catch all exceptions from it.
7235 * top.c (command_line_handler_continuation): Don't
7236 call bpstat_do_action here.
7237
7238 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7239
7240 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7241 (struct die_info): Remove type.
7242 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7243 (read_structure_type, read_enumeration_type, read_array_type)
7244 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7245 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7246 (read_tag_string_type, read_subroutine_type, read_set_type)
7247 (read_unspecified_type): Delete prototypes. Remove check for
7248 already-loaded type. Return the new type.
7249 (set_die_type): Return the new type.
7250 (reset_die_and_siblings_types): Delete.
7251 (load_comp_unit, load_full_comp_unit): Set type_hash.
7252 (process_queue): Remove call to reset_die_and_siblings_types.
7253 (process_die): Do not read most types here. Use read_type_die
7254 for others.
7255 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7256 (quirk_gcc_member_function_pointer): Return the new type.
7257 (process_structure_scope, process_enumeration_scope): Use
7258 get_die_type and read the DIE's type.
7259 (read_full_die): Do not initialize die->type.
7260 (tag_type_to_type): Use read_type_die.
7261 (read_type_die): Check for already defined types. Return the
7262 type.
7263 (determine_prefix): Use get_die_type.
7264 (set_die_type): Return the type.
7265 (get_die_type): Take a CU argument. Check for no type_hash.
7266
7267 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7268
7269 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7270 locals.
7271
7272 2008-05-04 Pedro Alves <pedro@codesourcery.com>
7273
7274 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7275 and bp_longjmp_resume breakpoints.
7276 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7277 meaningful.
7278 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7279 breakpoints. Create bp_longjmp breakpoints as momentary
7280 breakpoints.
7281 (enable_longjmp_breakpoint): Delete.
7282 (set_longjmp_breakpoint): New.
7283 (disable_longjmp_breakpoint): Delete.
7284 (delete_longjmp_breakpoint): New.
7285 (set_longjmp_resume_breakpoint): Delete.
7286 (set_momentary_breakpoint_at_pc): New.
7287 (breakpoint_re_set_one): Don't delete bp_longjmp and
7288 bp_longjmp_resume breakpoints.
7289 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7290 breakpoints.
7291
7292 * infrun.c (step_resume_breakpoint): Add comment.
7293 (struct execution_control_state): Delete handling_longjmp member.
7294 (init_execution_control_state). Don't clear handling_longjmp.
7295 (context_switch): Don't context switch handling_longjmp.
7296 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7297 create a bp_longjmp_resume breakpoint, and set it as current
7298 step_resume_breakpoint, then step over the longjmp breakpoint. If
7299 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7300 breakpoint, delete the longjmp-resume breakpoint, and stop
7301 stepping.
7302 (currently_stepping): Remove handling_longjmp from expression.
7303 (insert_step_resume_breakpoint_at_sal): Update comment.
7304 (insert_longjmp_resume_breakpoint): New.
7305
7306 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7307 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7308 declarations.
7309 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7310 (set_longjmp_resume_breakpoint): Delete declaration.
7311
7312 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7313 parameter.
7314 (load_infrun_state): Delete *handling_longjmp parameter.
7315 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7316 Update body.
7317 (load_infrun_state): Delete *handling_longjmp parameter. Update
7318 body.
7319
7320 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7321 (delete_longjmp_breakpoint_cleanup): New.
7322 (step_1): Call set_longjmp_breakpoint instead of
7323 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7324 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7325 (step_1_continuation): Pass thread id in the continuation args to
7326 step_once.
7327 (step_once): Add thread parameter. Pass thread id the the
7328 continuation.
7329
7330 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7331
7332 Set CU BASE_ADDRESS already from partial DIEs.
7333 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7334 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7335 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7336 from these variables if it was still unset.
7337
7338 * Makefile.in: Update dependencies.
7339 * dwarf2read.c: Include "addrmap.h"
7340 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7341 (dwarf2_ranges_read): New prototype.
7342 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7343 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7344 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7345 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7346 comment for it. Add the found ranges to RANGES_PST. New variable
7347 BASEADDR, initialize it the common way.
7348 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7349 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7350 HAS_RANGES_OFFSET for the later processing.
7351 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7352 * symtab.c: Include "addrmap.h"
7353 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7354 Move the psymtab locator into ...
7355 (find_pc_sect_psymtab_closer): ... a new function.
7356
7357 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7358
7359 * arch-utils.c (gdbarch_update_p): Use default values for
7360 info.abfd and info.target_desc if they are NULL.
7361 (gdbarch_from_bfd): Remove assertion.
7362 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7363 using the current target description.
7364 (gdbarch_info_fill): Do not use default values for info->abfd
7365 and info->target_desc.
7366
7367 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7368
7369 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7370
7371 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7372
7373 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7374 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7375
7376 * regcache.c (read_pc_pid): Remove, replace by ...
7377 (regcache_read_pc): ... this function.
7378 (write_pc_pid): Remove, replace by ...
7379 (regcache_write_pc): ... this function.
7380 (read_pc, write_pc): Update.
7381
7382 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7383 write_pc_pid by regcache_read_pc and regcache_write_pc.
7384 (displaced_step_fixup): Likewise.
7385 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7386 (prepare_to_proceed): Likewise.
7387 (proceed): Likewise.
7388 (adjust_pc_after_break): Likewise.
7389 (handle_inferior_event): Likewise.
7390
7391 * linux-nat.c (cancel_breakpoint): Likewise.
7392 * linux-thread-db.c (check_event): Likewise.
7393 * aix-thread.c (aix_thread_wait): Likewise.
7394 * tracepoint.c (trace_dump_command): Likewise.
7395
7396 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7397
7398 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7399 SYMBOL_LOCATION_BATON.
7400
7401 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7402
7403 * target.h (struct target_ops): New field to_auxv_parse.
7404 * auxv.c (default_auxv_parse): New, renamed from previous
7405 target_auxv_parse.
7406 (target_auxv_parse): Try to call target method. Fallback to
7407 default_auxv_parse if not found.
7408 * procfs.c (procfs_auxv_parse): New.
7409 (init_procfs_ops): On Solaris, in 64-bit mode, install
7410 procfs_auxv_parse.
7411
7412 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7413
7414 * symfile.c (add_symbol_file_command): Use paddress rather than
7415 hex_string to print the address.
7416
7417 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7418
7419 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7420 return the null frame ID to terminate the backtrace.
7421
7422 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7423
7424 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7425 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7426 (SIG_FRAME_PC_OFFSET): Likewise.
7427 (SIG_FRAME_LR_OFFSET): Likewise.
7428 (SIG_FRAME_FP_OFFSET): Likewise.
7429 (rs6000_push_dummy_call): Likewise.
7430 (rs6000_return_value): Likewise.
7431 (rs6000_convert_from_func_ptr_addr): Likewise.
7432 (branch_dest, rs6000_software_single_step): Likewise.
7433 (deal_with_atomic_sequence): Rename to ...
7434 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7435 Do not call branch_dest; inline required parts of that function.
7436 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7437 with SYMBOL_LINKAGE_NAME.
7438 (struct reg, regsize): Delete.
7439 (read_memory_addr): Delete; inline into callers.
7440 (rs6000_skip_prologue): Move after skip_prologue.
7441 (skip_prologue): Remove prototype.
7442 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7443 initialization as if this variable were true. Do not install
7444 ppc64_sysv_abi_adjust_breakpoint_address.
7445
7446 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7447 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7448 and "breakpoint.h".
7449 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7450 (SIG_FRAME_PC_OFFSET): Likewise.
7451 (SIG_FRAME_LR_OFFSET): Likewise.
7452 (SIG_FRAME_FP_OFFSET): Likewise.
7453 (rs6000_push_dummy_call): Likewise.
7454 (rs6000_return_value): Likewise.
7455 (rs6000_convert_from_func_ptr_addr): Likewise.
7456 (branch_dest, rs6000_software_single_step): Likewise. Replace
7457 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7458 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7459 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7460 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7461 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7462
7463 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7464 (AIX_TEXT_SEGMENT_BASE): New macro.
7465 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7466 by AIX_TEXT_SEGMENT_BASE.
7467
7468 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7469 (struct gdbarch_tdep): Remove text_segment_base member.
7470 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7471 ppc64_sysv_abi_adjust_breakpoint_address.
7472
7473 * Makefile.in (rs6000-tdep.o): Update dependencies.
7474 (rs6000-aix-tdep.o): Likewise.
7475
7476 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
7477 Thiago Jung Bauermann <bauerman@br.ibm.com>
7478
7479 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7480 * doublest.c (convert_typed_floating): Fix typo in comment.
7481 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7482 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7483 * frame.c (frame_unwind_address_in_block): Likewise.
7484 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7485 * symtab.h (struct symbol): Likewise.
7486 * tramp-frame.h (struct trad_frame_cache): Likewise.
7487 * value.c (allocate_repeat_value): Likewise.
7488
7489 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7490
7491 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7492 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7493
7494 2008-05-03 Pedro Alves <pedro@codesourcery.com>
7495
7496 * parse.c (parse_exp_in_context): Don't override
7497 expression_context_pc if get_selected_block returned a valid
7498 block.
7499
7500 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7501
7502 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7503 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7504 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7505 Delete.
7506 * c-typeprint.c (c_type_print_base): Delete handling of template
7507 instantiations.
7508 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7509 (METHOD_PTR_TO_VOFFSET): Delete.
7510 * defs.h (QUIT_FIXME): Delete.
7511 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7512 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7513 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7514 ninstantiations, and instantiations.
7515 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7516 (TYPE_FN_FIELD_INLINED): Delete.
7517 * srec.h (SREC_BINARY): Delete.
7518 * symtab.c (symbol_init_demangled_name): Delete.
7519 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7520 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7521 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7522 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7523 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7524 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7525 * target.h (enum thread_control_capabilities): Delete tc_switch.
7526 (target_can_switch_threads): Delete.
7527
7528 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7529
7530 * Makefile.in (objfiles.o): Update.
7531 * exec.c (exec_set_section_address): Support p->addr != 0.
7532 * objfiles.c (objfile_relocate): Update exec_ops section
7533 addresses.
7534 * symfile.c (place_section): Move exec_set_section_address call...
7535 (default_symfile_offsets): ...to here.
7536
7537 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7538
7539 * Makefile.in (ppc_linux_tdep_h): New macro.
7540 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7541 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7542 (powerpc_e500l_c): Likewise.
7543 (ppc-linux-nat.o): Update dependencies.
7544 (ppc-linux-tdep.o): Update dependencies.
7545 (rs6000-tdep.o): Update dependencies.
7546
7547 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7548 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7549 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7550 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7551 (tdesc_powerpc_e500): Remove.
7552
7553 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7554 and "features/rs6000/powerpc-altivec64.c".
7555 (ppc_supply_reg, ppc_collect_reg): Make global.
7556 (variants): Use tdesc_powerpc_32 for "powerpc" and
7557 tdesc_powerpc_altivec64 for "powerpc64".
7558 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7559
7560 * ppc-linux-tdep.h: New file.
7561
7562 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7563 Include "features/rs6000/powerpc-32l.c".
7564 Include "features/rs6000/powerpc-altivec32l.c".
7565 Include "features/rs6000/powerpc-64l.c".
7566 Include "features/rs6000/powerpc-altivec64l.c".
7567 Include "features/rs6000/powerpc-e500l.c".
7568 (ppc_linux_supply_gregset): New function.
7569 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7570 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7571 (ppc64_linux_gregset): Likewise.
7572 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7573 (ppc_linux_trap_reg_p): New function.
7574 (ppc_linux_write_pc): New function.
7575 (ppc_linux_core_read_description): New function.
7576 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7577 ppc_linux_core_read_description. Install orig_r3 and trap
7578 registers if present in the target description.
7579 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7580
7581 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7582 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7583 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7584 (fetch_ppc_registers): Likewise.
7585 (store_ppc_registers): Likewise.
7586 (store_register): Likewise.
7587 (ppc_linux_read_description): Check whether AltiVec is supported.
7588 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7589 Linux target description.
7590
7591 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7592 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7593 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7594 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7595 rs6000/powerpc-e500. Update -expedite variables accordingly.
7596
7597 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7598 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7599 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7600 * features/rs6000/powerpc-e500.c: Regenerate.
7601 * features/rs6000/powerpc-32.c: Regenerate.
7602 * features/rs6000/powerpc-64.c: Regenerate.
7603
7604 * features/rs6000/power-linux.xml: New file.
7605 * features/rs6000/power64-linux.xml: New file.
7606 * features/rs6000/powerpc-32l.xml: New file.
7607 * features/rs6000/powerpc-altivec32l.xml: New file.
7608 * features/rs6000/powerpc-64l.xml: New file.
7609 * features/rs6000/powerpc-altivec64l.xml: New file.
7610 * features/rs6000/powerpc-e500l.xml: New file.
7611 * features/rs6000/powerpc-32l.c: New (generated) file.
7612 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7613 * features/rs6000/powerpc-64l.c: New (generated) file.
7614 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7615 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7616
7617 * regformats/reg-ppc.dat: Remove.
7618 * regformats/reg-ppc64.dat: Remove.
7619 * regformats/rs6000/powerpc-32.dat: Remove.
7620 * regformats/rs6000/powerpc-64.dat: Remove.
7621 * regformats/rs6000/powerpc-e500.dat: Remove.
7622 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7623 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7624 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7625 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7626 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7627
7628 2008-05-03 Pedro Alves <pedro@codesourcery.com>
7629
7630 * thread.c (delete_thread): Call observer_notify_thread_exit.
7631 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7632 thread_exit observer.
7633 (mi_thread_exit): New.
7634
7635 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7636
7637 * breakpoint.c (create_exception_catchpoint): Remove prototype
7638 for already deleted function.
7639 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7640 * frame.h (show_stack_frame): Remove prototype.
7641 * stack.c (show_stack_frame): Remove empty, unused function.
7642 * source.c (symtab_to_fullname, print_source_lines): Small fix
7643 in comment.
7644 * value.c (show_values): Update comments to mention "show values"
7645 command instead of "info history".
7646
7647 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7648
7649 * linespec.c: Include "target.h".
7650 (minsym_found): Handle minimal symbols pointing to function
7651 descriptors. Use find_function_start_pc.
7652 * minsyms.c (msymbol_objfile): New function.
7653 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7654 to function descriptors.
7655 * symtab.c (fixup_section): Only use minimal symbol at the same
7656 address to determine section of a symbol.
7657 (find_function_start_pc): New function.
7658 (find_function_start_sal): Use it.
7659 * symtab.h (msymbol_objfile): Add prototype.
7660 (find_function_start_pc): Likewise.
7661 * value.c: Include "objfiles.h".
7662 (value_fn_field): Handle minimal symbols pointing to function
7663 descriptors.
7664 * Makefile.in (linespec.o): Update dependencies.
7665 (value.o): Likewise.
7666
7667 2008-05-02 Joel Brobecker <brobecker@adacore.com>
7668
7669 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7670 inside a PAD type is a bitfield.
7671
7672 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7673
7674 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7675 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7676 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7677 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7678 Allow typedefs when checking for function pointer arguments.
7679 Right-align small structs passed on the stack.
7680 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7681 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7682 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7683
7684 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7685
7686 * Makefile.in (arm-tdep.o): Update.
7687 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7688 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7689 (arm_pc_is_thumb): Use mapping symbols.
7690 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7691 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7692 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7693 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7694 * gdbarch.sh: Add record_special_symbol.
7695 * gdbarch.c, gdbarch.h: Regenerated.
7696 * objfiles.c (struct objfile_data): Add cleanup member.
7697 (register_objfile_data_with_cleanup): New function, from
7698 register_objfile_data.
7699 (register_objfile_data): Use it.
7700 (objfile_free_data): Call clear_objfile_data.
7701 (clear_objfile_data): Call cleanup functions.
7702 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7703
7704 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7705
7706 * objfiles.c (init_entry_point_info): Handle shared libraries.
7707
7708 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7709
7710 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7711 lowest_pc.
7712
7713 2008-05-02 Jim Blandy <jimb@codesourcery.com>
7714 Pedro Alves <pedro@codesourcery.com>
7715
7716 Implement displaced stepping.
7717
7718 * gdbarch.sh (max_insn_length): New 'variable'.
7719 (displaced_step_copy, displaced_step_fixup)
7720 (displaced_step_free_closure, displaced_step_location): New
7721 functions.
7722 (struct displaced_step_closure): Add forward declaration.
7723 * gdbarch.c, gdbarch.h: Regenerated.
7724
7725 * arch-utils.c: #include "objfiles.h".
7726 (simple_displaced_step_copy_insn)
7727 (simple_displaced_step_free_closure)
7728 (displaced_step_at_entry_point): New functions.
7729 * arch-utils.h (simple_displaced_step_copy_insn)
7730 (simple_displaced_step_free_closure)
7731 (displaced_step_at_entry_point): New prototypes.
7732
7733 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7734 (I386_MAX_MATCHED_INSN_LEN): ... this.
7735 (i386_absolute_jmp_p, i386_absolute_call_p)
7736 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7737 (i386_displaced_step_fixup): New functions.
7738 (struct i386_insn, i386_match_insn): Update.
7739 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7740 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7741 (i386_displaced_step_fixup): New prototype.
7742 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7743 Register gdbarch_displaced_step_copy,
7744 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7745 and gdbarch_displaced_step_location functions.
7746
7747 * infrun.c (debug_displaced): New variable.
7748 (show_debug_displaced): New function.
7749 (struct displaced_step_request): New struct.
7750 (displaced_step_request_queue, displaced_step_ptid)
7751 (displaced_step_gdbarch, displaced_step_closure)
7752 (displaced_step_original, displaced_step_copy)
7753 (displaced_step_saved_copy, can_use_displaced_stepping): New
7754 variables.
7755 (show_can_use_displaced_stepping, use_displaced_stepping)
7756 (displaced_step_clear, cleanup_displaced_step_closure)
7757 (displaced_step_dump_bytes, displaced_step_prepare)
7758 (displaced_step_clear_cleanup, write_memory_ptid)
7759 (displaced_step_fixup): New functions.
7760 (resume): Call displaced_step_prepare.
7761 (proceed): Call read_pc once, and remember the value. If using
7762 displaced stepping, don't remove breakpoints.
7763 (handle_inferior_event): Call displaced_step_fixup. Add some
7764 debugging output. When we try to step over a breakpoint, but get
7765 a signal to deliver to the thread instead, ensure the step-resume
7766 breakpoint is actually inserted. If a thread hop is needed, and
7767 displaced stepping is enabled, don't remove breakpoints.
7768 (init_wait_for_inferior): Call displaced_step_clear.
7769 (_initialize_infrun): Add "set debug displaced" command. Add
7770 "maint set can-use-displaced-stepping" command. Clear
7771 displaced_step_ptid.
7772 * inferior.h (debug_displaced): Declare variable.
7773 (displaced_step_dump_bytes): Declare function.
7774
7775 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7776 dependencies.
7777
7778 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7779
7780 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7781 (arm_force_mode_string, arm_show_fallback_mode)
7782 (arm_show_force_mode): New.
7783 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7784 arm_frame_is_thumb.
7785 (_initialize_arm_tdep): Add "set arm fallback-mode"
7786 and "set arm force-mode".
7787 * NEWS: Document new commands.
7788
7789 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7790
7791 * main.h (batch_silent): Declare.
7792 * event-top.c: Include main.h.
7793 (gdb_setup_readline): Remove extern batch_silent declaration.
7794 * infrun.c (normal_stop): Don't print source location when running in
7795 --batch-silent mode.
7796 * Makefile.in (event-top.o): Add main.h dependency.
7797
7798 2008-05-02 Andreas Schwab <schwab@suse.de>
7799
7800 * target.h (struct target_ops): Add
7801 to_watchpoint_addr_within_range.
7802 (target_watchpoint_addr_within_range): New function.
7803 * target.c (update_current_target): Inherit
7804 to_watchpoint_addr_within_range, defaulting to
7805 default_watchpoint_addr_within_range.
7806 (default_watchpoint_addr_within_range): New function.
7807 (debug_to_watchpoint_addr_within_range): New function.
7808 (setup_target_debug): Set to_watchpoint_addr_within_range.
7809 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7810 New function.
7811 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7812 * breakpoint.c (watchpoints_triggered): Use
7813 target_watchpoint_addr_within_range.
7814
7815 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7816
7817 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7818 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7819 Set gdb_osabi to GDB_OSABI_DICOS.
7820
7821 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7822 * osabi.c (gdb_osabi_name): Add "DICOS".
7823
7824 * i386-dicos-tdep.c: New file.
7825
7826 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7827 (ALLDEPFILES): Add i386-dicos-tdep.c.
7828 (i386-dicos-tdep.o): New rule.
7829
7830 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7831
7832 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7833 and register the fork's PTID as a thread.
7834
7835 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7836
7837 PR gdb/1665
7838 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7839 assign its value to the breakpoint created.
7840 (create_breakpoints): Add breakpoint_ops argument and pass it
7841 to create_breakpoint call.
7842 (break_command_really): Add breakpoint_ops argument and pass/assign
7843 appropriately.
7844 (break_command_1): Pass NULL as ops argument.
7845 (set_breakpoint): Pass NULL as ops argument.
7846 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7847 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7848 catch and throw catchpoints.
7849
7850 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7851
7852 PR gdb/2343
7853 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7854 translate signal numeric value from the target to GDB's enum
7855 target_signal.
7856 * gdbarch.c, gdbarch.h: Regenerated.
7857 * gdbarch.sh: Added two new functions target_signal_from_host and
7858 target_signal_to_host.
7859 * target.h (default_target_signal_from_host,
7860 default_target_signal_to_host): New functions - declarations.
7861 * signals/signals.c (struct gdbarch): New declaration.
7862 (default_target_signal_to_host, default_target_signal_from_host): New
7863 functions.
7864
7865 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7866 Pedro Alves <pedro@codesourcery.com>
7867
7868 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7869 Johnston <jjohnstn@redhat.com>.
7870
7871 * NEWS: Mention attach to stopped process fix.
7872 * infcmd.c (detach_command, disconnect_command): Discard the thread
7873 list.
7874 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7875 attaching. Use signal_stop_state.
7876 (signal_stop_state): Check stop_soon.
7877 * linux-nat.c (kill_lwp): Declare earlier.
7878 (pid_is_stopped, linux_nat_post_attach_wait): New.
7879 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7880 comments.
7881 (linux_nat_attach): Use linux_nat_post_attach_wait.
7882 (detach_callback, linux_nat_detach): Improve handling for signalled
7883 processes.
7884 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7885 from the process ID.
7886 * Makefile.in (infcmd.o): Update.
7887
7888 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7889
7890 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7891 * arm-tdep.c (arm_frame_is_thumb): New.
7892 (arm_pc_is_thumb): Clarify comment.
7893 (thumb_analyze_prologue): Remove PC special case.
7894 (thumb_scan_prologue): Take a block_addr argument. Use it for
7895 find_pc_partial_function. Remove unused variables.
7896 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7897 for find_pc_partial_function. Remove PC special case.
7898 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7899 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7900 (arm_get_next_pc): Use arm_frame_is_thumb.
7901 (arm_write_pc): Use CPSR_T instead of 0x20.
7902 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7903 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7904 (CPSR_T): Define.
7905 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7906 DWARF2_FRAME_REG_FN.
7907 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7908 DWARF2_FRAME_REG_FN.
7909 (struct dwarf2_frame_state_reg): Add FN to loc union.
7910
7911 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
7912
7913 * exec.c (print_section_info): Add missing '\n'.
7914
7915 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7916
7917 * thread.c (add_thread): Move observer call to ...
7918 (add_thread_silent): ... here.
7919
7920 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7921
7922 * rs6000-tdep.c: Update for unwinder changes.
7923 * ppcobsd-tdep.c: Likewise.
7924
7925 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7926
7927 * s390-tdep.c: Update for unwinder changes.
7928
7929 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7930
7931 * spu-tdep.c: Update for unwinder changes.
7932
7933 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7934
7935 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7936 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7937 sparc64-linux-tdep.c: Update for unwinder changes.
7938
7939 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7940
7941 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7942 for unwinder changes.
7943 * mips-tdep.c: Likewise.
7944 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7945 raw one.
7946
7947 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7948
7949 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7950 unwinder changes.
7951
7952 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7953
7954 Update i386 and amd64 ports for unwinder changes.
7955
7956 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7957 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7958 (amd64_frame_unwind): Use default_frame_sniffer.
7959 (amd64_frame_sniffer): Delete.
7960 (amd64_sigtramp_frame_cache): Expect this_frame.
7961 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7962 (amd64_sigtramp_frame_sniffer): Update signature.
7963 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7964 (amd64_frame_base_address): Expect this_frame.
7965 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7966 this_frame.
7967 (amd64_init_abi): Use set_gdbarch_dummy_id and
7968 frame_unwind_append_unwinder.
7969 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7970 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7971 (i386_frame_unwind): Use default_frame_sniffer.
7972 (i386_frame_sniffer): Delete.
7973 (i386_sigtramp_frame_cache): Expect this_frame.
7974 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7975 (i386_sigtramp_frame_sniffer): Update signature.
7976 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7977 (i386_frame_base_address): Update signature.
7978 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7979 (i386_push_dummy_call): Update comment.
7980 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7981 Expect this_frame.
7982 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7983 and frame_unwind_append_unwinder.
7984 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7985 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7986 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7987 i386nbsd-tdep.c: Update for unwinder changes.
7988
7989 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7990
7991 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7992 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7993 this_frame.
7994 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7995 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7996 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7997 signature.
7998 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7999 this_frame.
8000 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8001 Update signature.
8002 * tramp-frame.h (struct tramp_frame): Update signature of init.
8003 * Makefile.in (trad-frame.o): Update.
8004
8005 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8006
8007 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8008 (execute_stack_op): Put this_frame in the baton.
8009 (execute_cfa_program): Take this_frame.
8010 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8011 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8012 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8013 (dwarf2_frame_this_id): Adjust to work on this_frame.
8014 (dwarf2_signal_frame_this_id): Delete.
8015 (dwarf2_frame_prev_register): Update signature. Use new frame
8016 unwind methods.
8017 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8018 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8019 dwarf2_frame_sniffer.
8020 (dwarf2_append_unwinders): New.
8021 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8022 this_frame.
8023 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8024 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8025 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8026 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8027 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8028 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8029 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8030 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8031 (dwarf2_append_unwinders): Declare.
8032 (dwarf2_frame_base_sniffer): Update declaration.
8033 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8034 this_frame.
8035
8036 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8037
8038 Convert frame unwinders to use the current frame and
8039 "struct value".
8040
8041 * frame.c (frame_debug): Make global.
8042 (get_frame_id): Pass this frame to unwinder routines.
8043 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8044 (do_frame_register_read): Do not discard the return value of
8045 frame_register_read.
8046 (frame_register_unwind): Remove debug messages. Use
8047 frame_unwind_register_value.
8048 (frame_unwind_register_value, get_frame_register_value): New
8049 functions.
8050 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8051 (get_frame_args_address, get_frame_type): Pass this frame to
8052 unwinder routines.
8053 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8054 functions.
8055 * frame.h: Update comments.
8056 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8057 (frame_prepare_for_sniffer): Declare.
8058 * frame-unwind.h: Update comments and parameter names.
8059 (default_frame_sniffer): Declare.
8060 (frame_prev_register_ftype): Return a struct value *.
8061 (struct frame_unwind): Remove prev_pc member.
8062 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8063 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8064 (frame_unwind_got_register, frame_unwind_got_memory)
8065 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8066 * frame-base.h: Update comments and parameter names.
8067 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8068 if necessary. Add debugging output.
8069 * sentinel-frame.c (sentinel_frame_prev_register)
8070 (sentinel_frame_this_id): Update for new signature.
8071 (sentinel_frame_prev_pc): Delete.
8072 (sentinel_frame_unwinder): Remove prev_pc.
8073 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8074 prev_pc.
8075 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8076 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8077 (frame_unwind_append_sniffer): Delete.
8078 (frame_unwind_append_unwinder): New function.
8079 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8080 from unwinders. Use frame_prepare_for_sniffer.
8081 (default_frame_sniffer, frame_unwind_got_optimized)
8082 (frame_unwind_got_register, frame_unwind_got_memory)
8083 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8084 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8085 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8086 signature.
8087 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8088 * gdbarch.c, gdbarch.c: Regenerated.
8089 * frame-base.c (default_frame_base_address)
8090 (default_frame_locals_address, default_frame_args_address): Update
8091 for new signature.
8092 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8093 * infcall.c (call_function_by_hand): Update comments.
8094 * Makefile.in (frame-unwind.o): Update dependencies.
8095
8096 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8097
8098 * ada-lang.c (ada_value_primitive_packed_val): Only check
8099 value_lazy for memory lvals.
8100 * findvar.c (value_of_register_lazy): New function.
8101 (locate_var_value): Only check value_lazy for memory lvals.
8102 * valarith.c (value_subscripted_rvalue): Likewise.
8103 * valops.c (value_fetch_lazy): Handle both memory and register
8104 lvals.
8105 (search_struct_field, value_slice): Only check value_lazy for memory
8106 lvals.
8107 * value.c (struct value): Update comment for lazy.
8108 (value_primitive_field): Only check value_lazy for memory lvals.
8109 * value.h (value_lazy): Update comment.
8110 (value_of_register_lazy): Declare.
8111
8112 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8113
8114 * corefile.c (reopen_exec_file): Close any open files.
8115
8116 2008-04-29 Joel Brobecker <brobecker@adacore.com>
8117
8118 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8119 show_memory_breakpoints to 1 while reading the instruction bundle.
8120
8121 2008-04-29 Joel Brobecker <brobecker@adacore.com>
8122
8123 * gdbarch.sh: Document the return_value method. Explain that
8124 the FUNCTYPE parameter might be NULL.
8125 * gdbarch.h: Regenerated.
8126 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8127 type when calling using_struct_return, as this is unnecessary
8128 on this target.
8129
8130 2008-04-28 Joel Brobecker <brobecker@adacore.com>
8131
8132 * terminal.h (create_tty_session): Fix return type.
8133
8134 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8135
8136 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8137
8138 2008-04-26 Joel Brobecker <brobecker@adacore.com>
8139
8140 * breakpoint.c (condition_command, commands_from_control_command)
8141 (break_command_really): Minor reformatting.
8142
8143 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8144
8145 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8146
8147 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8148
8149 * amd64-tdep.c (amd64_get_longjmp_target): New.
8150 (amd64_init_abi): Register amd64_get_longjmp_target as
8151 gdbarch_get_longjmp_target callback.
8152 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8153
8154 2008-04-25 Pedro Alves <pedro@codesourcery.com>
8155
8156 * breakpoint.h (enum bpstat_what_main_action): Delete
8157 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8158
8159 * breakpoint.c (clrs): Delete.
8160 (bpstat_what): Update table.
8161
8162 * infrun.c (handle_inferior_event): Remove
8163 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8164
8165 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8166
8167 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8168 Adjust all prototypes using mi_cmd_args_ftype to use
8169 mi_cmd_argv_ftype.
8170 (struct mi_cmd): Remove the args_func field.
8171 * mi/mi-cmds.c: Don't provide value for the args_func field.
8172 * mi/mi-main.c (mi_execute_async_cli_command)
8173 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8174 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8175 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8176 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8177 (mi_cmd_target_download): Adjust.
8178 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8179 (mi_cmd_execute): Do not check for args_func.
8180 (mi_execute_async_cli_command): Adjust.
8181 * mi/mi-parse.c: Don't check for args_func.
8182
8183 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8184
8185 * breakpoint.c (bpstat_check_location)
8186 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8187 New, extracted from bpstat_stop_status.
8188 (bpstat_stop_status): Use the above.
8189
8190 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8191
8192 * mi/mi-main.c (last_async_command): Rename to current_token.
8193 (previous_async_command): Remove.
8194 (mi_cmd_gdb_exit): Adjust.
8195 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8196 (mi_cmd_target_select): Adjust.
8197 (mi_cmd_execute): Don't set previous_async_command. Free token
8198 here even in async mode.
8199 (mi_execute_async_cli_command): Adjust.
8200 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8201 token.
8202 (mi_load_progress): Adjust.
8203
8204 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8205
8206 * infcmd.c (step_1_continuation): Always disable longjmp
8207 breakpoint if we're not going to do another step.
8208
8209 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8210
8211 exec_cleanup murder.
8212 * breakpoint.c (until_break_command_continuation): Add
8213 the 'error' parameter. Directly delete the breakoint as
8214 opposed to running cleanups.
8215 (until_break_command): Install continuation only
8216 after starting the target. Don't use exec cleanups,
8217 use ordinary cleanups. Discard cleanups is successfully
8218 started the target in async mode.
8219 (make_cleanup_delete_breakpoint): Remove.
8220 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8221 declaration.
8222 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8223 declarations.
8224 (struct continations): Add the 'error' parameter to the
8225 continuation_hook field.
8226 (add_continuation, do_all_continuations)
8227 (add_intermediate_continuation)
8228 (do_all_intermediate_continuations): Add the 'error' parameter.
8229 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8230 * inf-loop.c (inferior_event_handler): Instead of calling
8231 discard_all_continuations, use do_all_continuations with 1 as
8232 'error' parameter. Pass 0 as 'error' parameter in existing uses
8233 of discard_all_continuations.
8234 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8235 cleanups.
8236 (step_once): Install continuation only after resuming the target.
8237 (step_1_continuation): Disable longjmp breakpoint on error.
8238 (finish_command_continuation): Add the error parameter. Delete
8239 the finish breakpoint directly, do not use cleanups.
8240 (finish_command): Do not use exec_cleanups. Always setup
8241 continuation. For sync case, immediately run them.
8242 (attach_command_continuation): Add the error parameter.
8243 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8244 remove step_resume_breakpoint -- adjust delete it directly.
8245 * interps.c (interp_set): Adjust call to do_all_continations.
8246 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8247 do exec cleanups.
8248 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8249 cleanups.
8250 (mi_cmd_execute): Do not use exec_cleanup.
8251 (mi_execute_async_cli_command): Simplify the string concatenation
8252 logic. Do no use exec cleanup.
8253 (mi_exec_async_cli_cmd_continuation): New parameter error.
8254 Free last_async_command.
8255 * top.c (command_line_handler_continuation): New parameter error.
8256 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8257 (do_exec_cleanups): Remove.
8258 (add_continuation, do_all_continations)
8259 (add_intermediate_continuation)
8260 (do_all_intermediate_continuations): New parameter error.
8261
8262 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8263
8264 * breakpoint.h (bp_location_p): New typedef.
8265 Register a vector of bp_location_p.
8266 * breakpoint.c (always_inserted_mode)
8267 (show_always_inserted_mode): New.
8268 (unlink_locations_from_global_list): Remove.
8269 (update_global_location_list)
8270 (update_global_location_list_nothrow): New.
8271 (update_watchpoint): Don't free locations.
8272 (should_insert_location): New.
8273 (insert_bp_location): Use should_insert_location.
8274 (insert_breakpoint_locations): Copied from
8275 insert_breakpoints.
8276 (insert_breakpoint): Use insert_breakpoint_locations.
8277 (bpstat_stop_status): Call update_global_location_list
8278 when disabling breakpoint.
8279 (allocate_bp_location): Don't add to bp_location_chain.
8280 (set_raw_breakpoint)
8281 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8282 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8283 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8284 (set_longjmp_resume_breakpoint)
8285 (enable_watchpoints_after_interactive_call_stop)
8286 (disable_watchpoints_before_interactive_call_start)
8287 (create_internal_breakpoint)
8288 (create_fork_vfork_event_catchpoint)
8289 (create_exec_event_catchpoint, set_momentary_breakpoint)
8290 (create_breakpoints, break_command_1, watch_command_1)
8291 (create_exception_catchpoint)
8292 (handle_gnu_v3_exceptions)
8293 (disable_breakpoint, breakpoint_re_set_one)
8294 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8295 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8296 Call update_global_location_list.
8297 (delete_breakpoint): Don't remove locations and don't
8298 try to reinsert them. Call update_global_location_list.
8299 (update_breakpoint_locations): Likewise.
8300 (restore_always_inserted_mode): New.
8301 (update_breakpoints_after_exec): Temporary disable
8302 always inserted mode.
8303 * Makefile.in: Update dependencies.
8304
8305 * infrun.c (proceed): Remove breakpoints while stepping
8306 over breakpoint.
8307 (handle_inferior_event): Don't remove or insert
8308 breakpoints.
8309 * linux-fork.c (checkpoint_command): Remove breakpoints
8310 before fork and insert after.
8311 (linux_fork_context): Remove breakpoints before switch
8312 and insert after.
8313 * target.c (target_disconnect, target_detach): Remove
8314 breakpoints from target.
8315
8316
8317 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8318
8319 * breakpoint.c (print_one_breakpoint_location): In MI
8320 mode, report the location string the breakpoint was
8321 originally created with.
8322
8323 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8324
8325 * Makefile.in (xtensa-tdep.o): Update dependencies.
8326 * configure.tgt (xtensa*): Update dependencies.
8327 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8328 Local variable areg renamed to arreg.
8329 (areg_number): New function.
8330 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8331 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8332 replaced by arreg_number.
8333 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8334 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8335 (xtensa_scan_prologue): New function.
8336 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8337 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8338 value based on prologue analysis. Fix the bugs preventing WS and
8339 AR4-AR7/A11 registers from getting right values for intermediate frames,
8340 whose registers have been already spilled.
8341 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8342 and arreg_number appropriately.
8343 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8344 svr4_ilp32_fetch_link_map_offsets.
8345
8346 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8347
8348 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8349 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8350
8351 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8352
8353 * acinclude.m4: Add override.m4.
8354 * configure: Regenerate.
8355
8356 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8359 initialized with a trailing space now. Use PROMPT_ARG of
8360 COMMAND_LINE_INPUT instead of printing it ourselves.
8361
8362 2008-04-22 Joel Brobecker <brobecker@adacore.com>
8363
8364 * NEWS: Document support for 64-bit core file.
8365
8366 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
8367
8368 * NEWS: Add information on calling convention and new SH CLI options.
8369
8370 * sh-tdep.c (sh_cc_gcc): New static string.
8371 (sh_cc_renesas): Ditto.
8372 (sh_cc_enum): New static string array.
8373 (sh_active_calling_convention): New static string pointer denoting
8374 active user chosen ABI.
8375 (sh_is_renesas_calling_convention): New function to return function
8376 specific ABI, or user choice if necessary.
8377 (sh_use_struct_convention): Rename first argument and turn around its
8378 meaning. Check for renesas ABI and return accordingly.
8379 (sh_use_struct_convention_nofpu): New function.
8380 (sh_next_flt_argreg): Get function type as third parameter. Check
8381 for renesas ABI and choose floating registers accordingly.
8382 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8383 struct return slot accordingly.
8384 (sh_push_dummy_call_nofpu): Ditto.
8385 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8386 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8387 (sh_return_value_fpu): Evaluate ABI and give to
8388 sh_use_struct_convention.
8389 (show_sh_command): New function.
8390 (set_sh_command): Ditto.
8391 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8392 CLI command.
8393
8394 * gdbarch.sh (return_value): Add func_type argument.
8395 * gdbarch.c: Regenerate.
8396 * gdbarch.h: Ditto.
8397 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8398 val_type so as not to collide with value_type function. Call
8399 using_struct_return with additional function type argument.
8400 * infcall.c (call_function_by_hand): Call using_struct_return and
8401 gdbarch_return_value with additional function type argument.
8402 * infcmd.c (print_return_value): Take addition func_type argument.
8403 Call gdbarch_return_value with additional function type argument.
8404 (finish_command_continuation): Call print_return_value with additional
8405 function type argument.
8406 (finish_command): Ditto.
8407 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8408 additional function type argument.
8409 * stack.c (return_command): Call using_struct_return and
8410 gdbarch_return_value with additional function type argument.
8411 * value.c (using_struct_return): Take additional function type argument.
8412 * value.h (using_struct_return): Accommodate declaration.
8413 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8414 * amd64-tdep.c (amd64_return_value): Ditto.
8415 * arm-tdep.c (arm_return_value): Ditto.
8416 * avr-tdep.c (avr_return_value): Ditto.
8417 * cris-tdep.c (cris_return_value): Ditto.
8418 * frv-tdep.c (frv_return_value): Ditto.
8419 * h8300-tdep.c (h8300_return_value): Ditto.
8420 (h8300h_return_value): Ditto.
8421 * hppa-tdep.c (hppa32_return_value): Ditto.
8422 (hppa64_return_value): Ditto.
8423 * i386-tdep.c (i386_return_value): Ditto.
8424 * ia64-tdep.c (ia64_return_value): Ditto.
8425 * iq2000-tdep.c (iq2000_return_value): Ditto.
8426 * m32c-tdep.c (m32c_return_value): Ditto.
8427 * m32r-tdep.c (m32r_return_value): Ditto.
8428 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8429 * m68k-tdep.c (m68k_return_value): Ditto.
8430 (m68k_svr4_return_value): Ditto.
8431 * m88k-tdep.c (m88k_return_value): Ditto.
8432 * mep-tdep.c (mep_return_value): Ditto.
8433 * mips-tdep.c (mips_eabi_return_value): Ditto.
8434 (mips_n32n64_return_value): Ditto.
8435 (mips_o32_return_value): Ditto.
8436 (mips_o64_return_value): Ditto.
8437 * mn10300-tdep.c (mn10300_return_value): Ditto.
8438 * mt-tdep.c (mt_return_value): Ditto.
8439 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8440 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8441 (ppc_sysv_abi_broken_return_value): Ditto.
8442 (ppc64_sysv_abi_return_value): Ditto.
8443 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8444 (ppc_sysv_abi_broken_return_value): Ditto.
8445 (ppc64_sysv_abi_return_value): Ditto.
8446 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8447 * rs6000-tdep.c (rs6000_return_value): Ditto.
8448 * s390-tdep.c (s390_return_value): Ditto.
8449 * score-tdep.c (score_return_value): Ditto.
8450 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8451 (sh_return_value_fpu): Ditto.
8452 * sh64-tdep.c (sh64_return_value): Ditto.
8453 * sparc-tdep.c (sparc32_return_value): Ditto.
8454 * sparc64-tdep.c (sparc64_return_value): Ditto.
8455 * spu-tdep.c (spu_return_value): Ditto.
8456 * v850-tdep.c (v850_return_value): Ditto.
8457 * vax-tdep.c (vax_return_value): Ditto.
8458 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8459 * xtensa-tdep.c (xtensa_return_value): Ditto.
8460
8461 * gdbtypes.h (struct type): Add calling_convention member.
8462 * dwarf2read.c (read_subroutine_type): Add calling convention read
8463 from DW_AT_calling_convention attribute to function type.
8464
8465 2008-04-22 Markus Deuling <deuling@de.ibm.com>
8466
8467 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8468 multi_f77_subscript to support values from registers.
8469 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8470 * value.h (value_subscripted_rvalue): Add prototype.
8471
8472 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8473 Fix output.
8474 * f-valprint.c (f_val_print): Likewise.
8475
8476 2008-04-21 Craig Silverstein <csilvers@google.com>
8477
8478 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8479 !HAVE_ZLIB_H case.
8480
8481 2008-04-21 Pedro Alves <pedro@codesourcery.com>
8482
8483 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8484 section is not a code section.
8485
8486 2008-04-19 Craig Silverstein <csilvers@google.com>
8487
8488 * NEWS: Add information on compressed debug sections.
8489
8490 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8491
8492 * mi/mi-cmd-var.c (varobj_update_one): Print new
8493 value for variable objects that changed type.
8494
8495 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8496
8497 * varobj.c (varobj_invalidate): Don't touch floating
8498 varobjs.
8499
8500 2008-04-19 Mark Kettenis <kettenis@gnu.org>
8501
8502 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8503 (multiple_symbols_cancel): Remove extra const.
8504 * symtab.h: Likewise.
8505
8506 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
8507
8508 * interps.c (top_level_interpreter): Rename static variable...
8509 (top_level_interpreter_ptr): ...to this.
8510 (top_level_interpreter): New function.
8511
8512 * interps.h: New extern for top_level_interpreter.
8513
8514 * linespec.c: Include interps.h and mi/mi-cmds.h.
8515 (decode_line_2): When using MI, always set all breakpoints in menu.
8516
8517 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8518
8519 2008-04-18 Craig Silverstein <csilvers@google.com>
8520
8521 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8522 * config.in, configure: Regenerate.
8523 * dwarf2read.c: Include zlib.h if present.
8524 Modified *_SECTION macros.
8525 (section_is_p): New.
8526 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8527 (dwarf2_resize_section): New.
8528 to determine whether a given section has a given name.
8529 (zlib_decompress_section): New.
8530 (dwarf2_read_section): Read the compressed section if present
8531 in the binary.
8532 * MAINTAINERS: Added myself to section Write After Approval.
8533
8534 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8535
8536 * defs.h (exec_set_section_offsets): Remove prototype.
8537 * exec.c (exec_set_section_offsets): Remove function.
8538
8539 2008-04-18 Joel Brobecker <brobecker@adacore.com>
8540
8541 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8542 in the search for the matching symbol.
8543
8544 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8545
8546 * breakpoint.c (update_watchpoint): Always reparse
8547 condition.
8548
8549 2008-04-17 Joel Brobecker <brobecker@adacore.com>
8550
8551 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8552 the breakpoint address only once.
8553
8554 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8555
8556 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8557 rather than a hard-coded architecture, for xcoff executables.
8558
8559 2008-04-17 Doug Evans <dje@google.com>
8560
8561 * buildsym.c (watch_main_source_file_lossage): New fn.
8562 (end_symtab): Call it.
8563
8564 * source.c (find_and_open_source): Add some comments clarifying
8565 handling of FULLNAME argument. Make static. Remove pointless
8566 xstrdup/xfree.
8567
8568 2008-04-17 Pedro Alves <pedro@codesourcery.com>
8569
8570 * inf-loop.c (inferior_event_handler): Also run the intermediate
8571 continuations in the INF_EXEC_COMPLETE case.
8572
8573 2008-04-16 Tom Tromey <tromey@redhat.com>
8574
8575 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8576 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8577 * cli/cli-decode.c (set_cmd_async_ok): New function.
8578 (get_cmd_async_ok): New function.
8579 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8580 "show" as async-ok.
8581 * top.c (execute_command): Use get_cmd_async_ok.
8582 * infcmd.c: Include cli/cli-decode.h.
8583 (_initialize_infcmd): Mark "interrupt" as async-ok.
8584 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8585
8586 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8587
8588 PR gdb/2445
8589 * exec.c: Correct "arch-utils.h" include.
8590
8591 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
8592
8593 PR gdb/2424
8594 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8595 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8596 * breakpoint.c (bpdisp_texst): New function. The function takes over
8597 the role of bpstats static array in print_one_breakpoint_location.
8598 (print_it_typical): Print "Temporary breakpoint" instead
8599 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8600 protocols, print disp field.
8601 (print_one_breakpoint_location): Removed bpdisps static definition.
8602 Call new bpstat_text function to get value for 'disp' field.
8603 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8604
8605 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8606
8607 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8608 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8609 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8610 * gnulib/Makefile.in: Regenerate.
8611
8612 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8613
8614 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8615 (defs_h): Use $(GNULIB_H).
8616 (all-lib): Depend on gnulib/Makefile.
8617 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8618 * config.in, gnulib/Makefile.in: Regenerated.
8619
8620 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8621
8622 * Makefile.in (LIBGNU, INCGNU): Define.
8623 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8624 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8625 (CLEANDIRS): New.
8626 ($(LIBGNU), all-lib): New rules.
8627 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8628 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8629 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8630 * gnulib: New directory, from gnulib-tool.
8631 * configure, aclocal.m4: Regenerated.
8632
8633 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8634
8635 * linux-thread-db.c (have_threads_callback): Check thread->private.
8636
8637 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
8638 Vladimir Prus <vladimir@codesourcery.com>
8639
8640 Fix @-varobjs.
8641 * varobj.c (value_of_root): Update the expression for
8642 floating varobjs.
8643 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8644 report that.
8645
8646 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8647
8648 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8649 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8650 (mi_cmd_var_set_format): Use new mi_parse_format.
8651 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8652 format.
8653 * Makefile.in (mi-cmd-var.o): Update dependencies.
8654
8655 * varobj.h (varobj_get_formatted_value): Declare.
8656 * varobj.c (my_value_of_variable): Added format parameter.
8657 (cplus_value_of_variable): Likewise.
8658 (java_value_of_variable): Likewise.
8659 (c_value_of_variable): Likewise. Evaluate expression based
8660 on format parameter.
8661 (struct language_specific): Add format parameter to function member
8662 *value_of_variable.
8663 (varobj_get_formatted_value): New.
8664 (varobj_get_value): Added format parameter to method call.
8665
8666 2008-04-08 Joel Brobecker <brobecker@adacore.com>
8667
8668 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8669 instance flags of the undefined type before calling replace_type.
8670
8671 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8672
8673 * target.h (enum strata): Remove the download_stratum.
8674
8675 2008-04-07 Doug Evans <dje@google.com>
8676
8677 * buildsym.h (last_source_file): Add dwarf info to comment.
8678 (last_source_start_addr): Ditto.
8679
8680 2008-04-07 Pedro Alves <pedro@codesourcery.com>
8681
8682 * alphanbsd-tdep.c: Include "target.h".
8683 * mn10300-tdep.c: Include "target.h".
8684 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8685
8686 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8687
8688 Fix breakpoint condition that use member variables.
8689 * valops.c (check_field): Remove.
8690 (check_field_in): Rename to check_field.
8691 (value_of_this): Use la_name_of_this.
8692 * value.h (check_field): Adjust prototype.
8693
8694 * language.h (la_value_of_this): Rename to la_name_of_this.
8695 * language.c (unknown_language_defn): Specify "this" for
8696 name_of_this.
8697 (auto_language_defn): Likewise.
8698 (local_language_defn): Likewise.
8699 * ada-lang.c (ada_language_defn): Adjust comment.
8700 * c-lang.c (c_language_defn): Adjust comment.
8701 (cplus_language_defn): Specify "this" for name_of_this.
8702 (asm_language_defn): Adjust comment.
8703 (minimal_language_defn): Adjust comment.
8704 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8705 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8706 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8707 * objc-lang.c (objc_language_defn): Specify "self" for
8708 name_of_this.
8709 * p-lang.c (pascal_language_defn): Specify "this" for
8710 name_of_this.
8711 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8712
8713 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8714 proper scope, and check for field in type of "this", without
8715 trying to create a value.
8716
8717 2008-04-04 Pedro Alves <pedro@codesourcery.com>
8718
8719 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8720 (mi_error_message): Delete declaration.
8721 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8722 returning MI_CMD_ERROR.
8723 * mi/mi-main.c (mi_error_message): Delete.
8724 (mi_cmd_exec_interrupt):
8725 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8726 (mi_cmd_thread_info): Call error instead of returning
8727 MI_CMD_ERROR.
8728 (mi_cmd_data_list_register_values): Call error instead of
8729 returning MI_CMD_ERROR. Adapt to new get_register interface.
8730 (get_register): Change return typo to void. Call error instead of
8731 returning MI_CMD_ERROR.
8732 (mi_cmd_data_write_register_values): Call error instead of
8733 returning MI_CMD_ERROR.
8734 (mi_cmd_list_features): Return MI_CMD_DONE.
8735 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8736 (mi_execute_command): Always print exceptions with -error.
8737
8738 2008-04-04 Joel Brobecker <brobecker@adacore.com>
8739
8740 * NEWS: Mention new commands set/show multiple-symbols.
8741
8742 2008-04-03 Joel Brobecker <brobecker@adacore.com>
8743
8744 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8745 (multiple_symbols_cancel): New constants.
8746 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8747 (multiple_symbols_select_mode): New function.
8748 (_initialize_symtab): Add new set/show multiple-symbols commands.
8749 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8750 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8751 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8752 setting.
8753 * linespec.c (decode_line_2): Likewise.
8754
8755 2008-04-03 Doug Evans <dje@sebabeach.org>
8756
8757 * symtab.h (enum free_code): Delete free_contents, unused.
8758 * symmisc.c (free_symtab_block): Delete.
8759 (free_symtab, case free_code): Delete.
8760
8761 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8762
8763 * valops.c (value_cast_structs): New function. Cast related
8764 STRUCT types up/down and return cast value. The body of this
8765 function comes mostly from value_cast_pointers.
8766 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8767 to value_cast_structs. Now value_cast_pointers needs only create
8768 appropriate reference after using value_cast_structs for actual
8769 casting.
8770 (value_cast): Handle references.
8771
8772 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8773
8774 * MAINTAINERS: Added myself to section Write After Approval.
8775
8776 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8777
8778 * ia64-tdep.c (examine_prologue): Correct array access.
8779
8780 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8781
8782 * cp-support.c (first_component_command): Return if no arguments.
8783
8784 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8785
8786 * ser-mingw.c (ser_windows_open): Open requested name.
8787
8788 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8789
8790 * MAINTAINERS: Added myself.
8791
8792 2008-03-28 Pedro Alves <pedro@codesourcery.com>
8793
8794 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8795 parameter. If it is NULL, don't call error.
8796 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8797 `do_mesg' parameter to find_default_run_target. If no target was
8798 found, return 0.
8799
8800 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8801
8802 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8803 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8804 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8805 Delete.
8806 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8807
8808 2008-03-27 Joel Brobecker <brobecker@adacore.com>
8809
8810 GDB 6.8 released.
8811
8812 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8813
8814 * features/Makefile (%.dat): Set xmltarget to the base filename
8815 of the XML source, without subdirectory.
8816 * regformats/rs6000/powerpc-32.dat: Regenerate.
8817 * regformats/rs6000/powerpc-64.dat: Regenerate.
8818 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8819
8820 2008-03-27 Markus Deuling <deuling@de.ibm.com>
8821
8822 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8823 objfile arch.
8824
8825 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
8826
8827 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8828 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8829
8830 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8831
8832 * objfiles.h (struct objfile): New GDBARCH member.
8833 (get_objfile_arch): Add prototype.
8834 * objfiles.c: Include "arch-utils.h".
8835 (allocate_objfile): Look up gdbarch associated with bfd.
8836 (get_objfile_arch): New function.
8837 * Makefile (objfiles.o): Update dependencies.
8838
8839 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8840 by objfile arch.
8841 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8842 by frame arch.
8843 (locexpr_describe_location): Replace current_gdbarch by
8844 objfile arch.
8845 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8846 (dwarf2_add_field): Likewise.
8847 (read_tag_pointer_type): Likewise.
8848 (read_base_type): Likewise.
8849 (new_symbol): Likewise.
8850
8851 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8852 (decode_base_type, decode_function_type): Likewise.
8853 (coff_read_struct_type, coff_read_enum_type): Likewise.
8854 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8855 (decode_base_type): Likewise.
8856 (coff_read_enum_type): Likewise.
8857 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8858 (coff_read_enum_type): Likewise.
8859
8860 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8861 (end_psymtab): Likewise.
8862 (process_one_symbol): Likewise.
8863
8864 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8865 (parse_procedure): Likewise.
8866 (parse_partial_symbols): Likewise.
8867
8868 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8869
8870 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8871 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8872 built-in types.
8873 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8874 static range_index_type by built-in type.
8875 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8876 (read_enum_type): Likewise.
8877
8878 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8879 objfile arch.
8880
8881 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8882
8883 * varobj.h (varobj_floating_p): Declare.
8884 * varobj.c (varobj_floating_p): New.
8885 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8886 '@' as the name, update all floating varobjs.
8887
8888 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8889
8890 * varobj.c (struct varobj_root): Rename use_selected_frame to
8891 floating, and clarify the meaning.
8892 (varobj_create, varobj_update, new_root_variable): Adjust.
8893 (value_of_root): Don't use type_changed as in variable,
8894 adjust comment.
8895 (c_value_of_root): Adjust.
8896
8897 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8898
8899 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8900 gdb's thread list.
8901 (linux_nat_wait): Add main lwp to gdb's thread list.
8902 * linux-thread-db.c (find_new_threads_callback): Also attach to
8903 already listed threads which thread_db didn't know about yet.
8904
8905 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8906
8907 * linux-nat.c (drain_queued_events): Fix comment typo.
8908 (linux_nat_attach): In async mode, don't rely on storing a pending
8909 status. Instead place the wait status on the pipe.
8910 (linux_nat_resume): Remove unreacheable shortcut code in async
8911 mode.
8912 (stop_wait_callback): In async mode, don't store pending status.
8913 Instead, cancel breakpoints or resend the signal appropriatelly.
8914 (cancel_breakpoint): New, refactored from
8915 cancel_breakpoints_callback.
8916 (cancel_breakpoints_callback): Call cancel_breakpoint.
8917 (pipe_to_local_event_queue): Remove special token processing.
8918 (linux_nat_wait): Issue an internal error if a pending status is
8919 found in async mode.
8920
8921 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8922
8923 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8924
8925 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
8926 Vladimir Prus <vladimir@codesourcery.com>
8927
8928 * varobj.c (struct varobj_root): New component thread_id.
8929 (varobj_get_thread_id, check_scope): New functions.
8930 (c_value_of_root): Use check_scope. Switch to the
8931 proper thread if necessary.
8932
8933 * varobj.h (varobj_get_thread_id): New extern.
8934
8935 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
8936
8937 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8938
8939 PR gdb/544
8940 * top.c: Revert 2008-03-21 changes.
8941
8942 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8943
8944 * thread.c (make_cleanup_restore_current_thread): Make it
8945 globally visible.
8946 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8947 * varobj.c (varobj_update): Don't save/restore frame.
8948 (c_value_of_root): Save/restore thread and frame here,
8949 using make_cleanup_restore_current_thread.
8950 * Makefile.in: Update dependecies.
8951
8952 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8953
8954 * varobj.c (struct varobj_root): Clarify
8955 comment on the frame field.
8956 (varobj_create): Don't set frame if we have no
8957 block.
8958
8959 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8960
8961 PR gdb/544
8962 Suggested by Jan Kratochvil:
8963 * top.c (gdb_rl_operate_and_get_next_completion): Call
8964 rl_redisplay_function.
8965 (gdb_rl_redisplay): New.
8966 (init_main): Set rl_redisplay_function.
8967
8968 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8969
8970 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8971 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8972 (store_regs_kernel_thread): Likewise.
8973
8974 2008-03-21 Pedro Alves <pedro@codesourcery.com>
8975
8976 Linux native async support.
8977
8978 * target.h (struct target_ops): Delete to_async_mask_value and add
8979 to_async_mask.
8980 (target_is_async_p, target_async): Formatting.
8981 (target_async_mask_value): Delete.
8982 (target_async_mask): Delete function declaration, and add new
8983 target macro with the same name.
8984
8985 * target.c (update_current_target): Replace to_async_mask_value by
8986 to_async_mask. Default to_async_mask to return_one.
8987 (target_async_mask): Delete.
8988 (find_default_can_async_p, find_default_is_async_p): New.
8989 (init_dummy_target): register find_default_can_async_p and
8990 find_default_is_async_p on the dummy target.
8991
8992 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8993 (debug_linux_nat_async): New global.
8994 (show_debug_linux_nat_async): New function.
8995 (linux_nat_async_enabled, linux_nat_async_mask_value)
8996 (linux_nat_event_pipe, linux_nat_num_queued_events)
8997 (linux_nat_async_events_enabled): New globals.
8998 (struct waitpid_result): New struct.
8999 (waitpid_queue): New global.
9000 (queued_waitpid, push_waitpid, drain_queued_events): New.
9001 (my_waitpid): Call queued_waitpid.
9002 (linux_child_follow_fork): Disable async events during the call.
9003 (blocked_mask): Delete.
9004 (sync_sigchld_action, async_sigchld_action): New globals.
9005 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9006 async mode, block events during the call.
9007 (linux_nat_create_inferior): New.
9008 (linux_nat_attach): In sync mode, restore the mask states. In
9009 async mode, wake the event loop immediatelly.
9010 (detach_callback): Drain all queued events of the lwp we're
9011 detaching from.
9012 (linux_nat_detach): Block async mode, and drain events of the main
9013 process.
9014 (linux_nat_resume): If in async mode, mask async events during the
9015 call. If short circuiting, force event loop to wake up. If
9016 resuming, set target_executing, and register target events in the
9017 event loop.
9018 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9019 (linux_nat_wait): In async mode, block events during the call.
9020 Only enable/disable passing SIGINT to the inferior in sync mode.
9021 Get events from local waitpid queue. If no interesting events was
9022 found, return to events loop. Reregister target events in the
9023 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9024 (linux_nat_kill): Disable events on entry.
9025 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9026 here. Detach async mode from the event loop if there are no more
9027 forks available, otherwise leave it on.
9028 (sigchld_handler): Assure this is called only in sync mode.
9029 (linux_async_permitted, linux_async_permitted_1): New globals.
9030 (set_maintenance_linux_async_permitted)
9031 (show_maintenance_linux_async_permitted): New functions.
9032 (linux_nat_is_async_p, linux_nat_can_async_p)
9033 (linux_nat_async_mask): New.
9034 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9035 (get_pending_events, async_sigchld_handler): New.
9036 (linux_nat_async_events): New.
9037 (async_terminal_is_ours): New global.
9038 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9039 (async_client_callback, async_client_context): New.
9040 (linux_nat_async_file_handler, linux_nat_async)
9041 (linux_nat_disable_async, linux_nat_enable_async): New.
9042 (linux_nat_add_target): Register linux_nat_create_inferior,
9043 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9044 linux_nat_async_mask, linux_nat_terminal_inferior and
9045 linux_nat_terminal_ours.
9046 (_initialize_linux_nat): Remove local action variable, and update
9047 code that used it to use sync_sigchld_action. Add new
9048 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9049 set/show command in the maintenance class. Add new "linux-async"
9050 maintenance set/show command. Block SIGCHLD by default. Setup
9051 async_sichld_action, and sync_sigchld_action. Install the default
9052 async mode.
9053 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9054 the cancel signals.
9055
9056 * linux-thread-db.c (re_check_for_thread_db): New.
9057 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9058 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9059 (thread_db_async_mask): New.
9060 (init_thread_db_ops): Register thread_db_can_async_p,
9061 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9062
9063 * remote.c (remote_async_mask_value): New.
9064 (remote_return_zero): New.
9065 (init_remote_ops): Register remote_return_zero as callbacks of
9066 to_can_async_p and to_is_async_p.
9067 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9068 use remote_async_mask_value.
9069 (remote_async_mask): New.
9070 (init_remote_async_ops): Remove to_async_mask_value setting and
9071 register remote_async_mask as to_async_mask callback in
9072 remote_async_ops.
9073
9074 * Makefile.in (linux-nat.o): Update.
9075
9076 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9077
9078 * gdbthread.h (add_thread_with_info): New.
9079 * linux-thread-db.c: Add some documentation.
9080 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9081 (struct private_thread_info): Remove th_valid and ti_valid.
9082 Replace ti with tid.
9083 (thread_get_info_callback): Do not add TID to the new ptid. Do
9084 not cache th or ti.
9085 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9086 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9087 new PTID.
9088 (attach_thread): Handle an already-existing thread. Use
9089 add_thread_with_info. Cache the th and tid.
9090 (detach_thread): Verify that private was set. Remove verbose
9091 argument and printing. Update caller.
9092 (thread_db_detach): Do not adjust inferior_ptid.
9093 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9094 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9095 (thread_db_wait): Do not use lwp_from_thread.
9096 (thread_db_pid_to_str): Use the cached TID.
9097 (thread_db_extra_thread_info): Check that private is set.
9098 (same_ptid_callback): Delete.
9099 (thread_db_get_thread_local_address): Do not use it or check
9100 is_thread. Check that private is set. Assume that the thread
9101 handle is already cached.
9102 (init_thread_db_ops): Remove to_resume and to_kill.
9103 * thread.c (add_thread_with_info): New.
9104 (add_thread): Use it.
9105 * linux-nat.c (find_thread_from_lwp): Delete.
9106 (exit_lwp): Do not use it. Check print_thread_events. Print before
9107 deleting the thread.
9108 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9109 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9110 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9111 printf_unfiltered for thread exits.
9112 * procfs.c (procfs_wait): Likewise.
9113
9114 2008-03-21 Chris Demetriou <cgd@google.com>
9115
9116 * symtab.c (rbreak_command): Quote symbol name before passing
9117 it to break_command.
9118
9119 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9120
9121 * eval.c (evaluate_subexp_for_address): Clarify error message.
9122 Use value_must_coerce_to_target.
9123 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9124 * valops.c (value_assign): Call value_coerce_to_target when
9125 assigning to anything but internalvars. Leave GDB-side arrays
9126 as arrays when assigning to internalvars.
9127 (value_must_coerce_to_target, value_coerce_to_target): New.
9128 (value_coerce_array, value_addr): Call value_coerce_to_target.
9129 (value_array): Create the array in GDB's memory instead of
9130 the inferior's.
9131 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9132 Declare.
9133
9134 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9135
9136 * top.c (quit_confirm): Warn that we will kill the program.
9137
9138 2008-03-19 Pedro Alves <pedro@codesourcery.com>
9139
9140 * inflow.c (terminal_ours_1): Guard access to
9141 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9142
9143 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9144 Jim Blandy <jimb@codesourcery.com>
9145 Daniel Jacobowitz <drow@false.org>
9146
9147 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9148 (dwarf2_read_address): Update prototype.
9149
9150 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9151 (signed_address_type): Likewise.
9152 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9153 (execute_stack_op): Update calls to unsigned_address_type,
9154 signed_address_type and dwarf2_read_address. Fix implementation
9155 of DW_OP_deref_size.
9156
9157 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9158 (dwarf2_per_cu_addr_size): Likewise.
9159 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9160 (struct dwarf2_loclist_baton): Likewise.
9161
9162 * dwarf2loc.c (find_location_expression): Update calls to
9163 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9164 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9165 (locexpr_describe_location): Likewise.
9166 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9167 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9168 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9169 to dwarf2_per_cu_addr_size (per_cu).
9170 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9171 (loclist_read_variable): Likewise.
9172 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9173
9174 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9175 instead of baton->objfile.
9176 (dwarf2_per_cu_obfile): New function.
9177 (dwarf2_per_cu_addr_size): Likewise.
9178
9179 * dwarf2-frame.c (struct comp_unit): Move higher.
9180 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9181 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9182 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9183 parameter by using fde->eh_frame_p. Use read_encoded_value
9184 to implement DW_CFA_set_loc.
9185 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9186 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9187 execute_stack_op and execute_cfa_program.
9188 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9189 (size_of_encoded_value): Remove.
9190 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9191 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9192 (add_cie): Set cie->unit backlink.
9193 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9194 read_encoded_value.
9195 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9196
9197 2008-03-17 Markus Deuling <deuling@de.ibm.com>
9198
9199 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9200 gdbarch_bfd_arch_info.
9201
9202 2008-03-17 Joel Brobecker <brobecker@adacore.com>
9203
9204 * aix-thread.c (pdc_read_regs): Minor reformatting.
9205
9206 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9207
9208 * thread.c (print_thread_info): Don't insist
9209 on having current thread if there are no
9210 threads at all.
9211
9212 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9213
9214 * infcmd.c (attach_command_post_wait)
9215 (attach_command_continuation): New.
9216 (attach_command): Support background async execution, and async
9217 execution in synchronous mode.
9218
9219 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9220
9221 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9222 * symmisc.c (dump_symtab_1): Likewise.
9223 * wrapper.c (gdb_value_struct_elt): Likewise.
9224
9225 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9226
9227 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9228
9229 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9230
9231 * linux-nat.c (linux_nat_filter_event): New, refactored from
9232 linux_nat_wait.
9233 (linux_nat_wait): Call linux_nat_filter_event.
9234
9235 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9236
9237 * top.c (execute_command): Fix uninitialized variable error.
9238
9239 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9240
9241 * Makefile.in (amd64nbsd-nat.o): New dependency.
9242 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9243 (_initialize_amd64nbsd_nat): Update target vector to use
9244 nbsd_pid_to_exec_file.
9245 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
9246
9247 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9248
9249 Remove ignoring leading exec events code.
9250 * fork-child.c (startup_inferior): Do not set
9251 inferior_ignoring_leading_exec_events.
9252 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9253 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9254 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9255 (handle_inferior_event): Remove code for ignoring leading exec
9256 events.
9257 * target.c (update_current_target): Do not inherit, or default,
9258 to_reported_exec_events_per_exec_call.
9259 (debug_to_reported_exec_events_per_exec_call): Remove.
9260 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9261 * target.h (target_reported_exec_events_per_exec_call): Remove.
9262 (struct target): Remove the to_reported_exec_events_per_exec_call
9263 field.
9264
9265 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9266
9267 Implement -thread-info.
9268 * gdbthread.h (print_thread_info): Declare.
9269
9270 * thread.c (print_thread_info): New, extracted
9271 from info_threads_command and adjusted to
9272 work for CLI and MI.
9273 (info_threads_command): Use print_thread_info.
9274 * Makefile.in: Update dependencies.
9275
9276 * mi/mi-cmds.c (mi_cmds): Specify a handler
9277 for -thread-info.
9278 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9279 * mi/mi-main.c (mi_cmd_thread_info): New.
9280 (mi_cmd_list_features): Include 'thread-info'.
9281
9282 2008-03-14 Kevin Buettner <kevinb@redhat.com>
9283
9284 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9285 to decide whether to match instruction patterns using "sw" and "sd".
9286
9287 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9288
9289 * infcmd.c (jump_command): Postpone disabling stdin until after
9290 the possible query.
9291
9292 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9293
9294 * inflow.c (gdb_getpgrp): New.
9295 (gdb_has_a_terminal): Use get_getpgrp.
9296 (terminal_ours_1): If attach_flag is set, don't refetch
9297 inferior_process_group.
9298
9299 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9300
9301 * features/library-list.dtd: Allow "section" elements as children
9302 of "library". Add "section" element and describe its attributes.
9303
9304 * solib-target.c (struct lm_info): Add section_bases member.
9305 (library_list_start_segment): Error out if seen a section element.
9306 (library_list_start_section): New.
9307 (library_list_end_library): New.
9308 (solib_target_free_library_list): Free section_bases.
9309 (section_attributes): New.
9310 (library_children): Make "segment" optional. Add "section" child.
9311 (library_list_children): Register library_list_end_library.
9312 (solib_target_relocate_section_addresses): Handle section bases.
9313
9314 * NEWS: Mention new qXfer:libraries:read section offsets support.
9315
9316 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9317
9318 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9319 (make_exec_error_cleanup): Remove declarations.
9320 * utils.c (exec_error_cleanup_chain): Remove.
9321 (do_exec_error_cleanups, discard_exec_error_cleanups)
9322 (make_exec_error_cleanup): Remove.
9323 * event-loop.c (start_event_loop): Adjust call to
9324 async_enable_stdin.
9325 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9326 (async_disable_stdin): Don't register async_enable_stdin via
9327 cleanup.
9328 * inf-loop.c (inferior_event_handler): Don't
9329 call do_exec_error_cleanups. Call async_enable_stdin instead.
9330 * event-loop.c (start_event_loop): Adjust call to
9331 async_enable_stdin.
9332 * tui/tui-interp.c (tui_command_loop): Adjust call to
9333 async_enable_stdin.
9334
9335 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9336
9337 Async mode fixes.
9338 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9339 * breakpoint.c (bpstat_do_actions): In async mode,
9340 don't jump to top expecting stop_bpstat to be already
9341 updated.
9342 * event-loop.c (start_event_loop): Call async_enable_stdin
9343 on exception.
9344 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9345 is not set.
9346 (command_handler): Do not setup continuation here.
9347 (command_line_handler_continuation): Move to...
9348 * top.c (command_line_handler_continuation): ... here.
9349 (execute_command): In async mode, register continuation.
9350 Don't check frame's language in running in async mode.
9351 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9352 * inf-loop.c (complete_execution): Inline into...
9353 (inferior_event_handler): ... here. Clear target_executing before
9354 doing any cleanups. Don't try to show prompt if the target was
9355 resumed.
9356 * infcmd.c (signal_command): Add support for async mode.
9357 (finish_command): Only add continuation if the target was
9358 successfully resumed.
9359 * remote.c (init_async_opts): Register to_get_thread_local_address
9360 handler.
9361 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9362 with sync_execution.
9363 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9364 on exception.
9365
9366 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9367
9368 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9369 * exec.c (exec_bfd_mtime): Define.
9370 (exec_close): Clear it.
9371 (exec_file_attach): Set it.
9372 * gdbcore.h (exec_bfd_mtime): Declare.
9373 * source.c (find_source_lines): Do not use bfd_get_mtime.
9374
9375 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9376
9377 * top.c (simplified_command_loop): Remove.
9378
9379 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9380
9381 Remove unused remote.c hooks.
9382 * remote.c (deprecated_target_resume_hook)
9383 (deprecated_target_wait_loop_hook): Remove.
9384 (remote_resume): Do not call deprecated_target_resume_hook.
9385 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9386 (remote_async_wait): Likewise.
9387
9388 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9389
9390 Implement MI notification for new threads.
9391 * doc/observer.texi (new_thread): Document.
9392 * observer.sh: Forward declare struct thread_info.
9393 * thread.c (add_thread): Notify observer.
9394
9395 * interps.h (interp_init_ftype): New parameter
9396 top_level.
9397 (interp_set): Likewise.
9398 (top_level_interpreter_data): Declare.
9399 * interps.c (interp_set): New parameter top_level.
9400 Pass it to interpreter's init function. Remember
9401 top level interpreter.
9402 (interpreter_exec_cmd): Adjust.
9403 (top_level_interpreter_data): New.
9404 * main.c (captured_main): Pass 1 for top_level
9405 parameter of interp_set.
9406 * cli/cli-interp.c (cli_interpreter_init): New
9407 parameter top_level.
9408 * tui/tui-interp.c (tui_init): New parameter top_level.
9409
9410 * mi/mi-interp.c (mi_new_thread): New.
9411 (mi_interpreter_init): If top level, register
9412 observer for new threads.
9413
9414 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
9415
9416 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9417
9418 * top.c (execute_command): Disable break and stop
9419 commands in async mode.
9420
9421 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9422
9423 revert:
9424 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9425 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9426 Call target_stop in the INF_QUIT_REQ case.
9427 * Makefile.in (inf-loop.o): Update.
9428
9429 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9430
9431 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9432 Call target_stop in the INF_QUIT_REQ case.
9433 * Makefile.in (inf-loop.o): Update.
9434
9435 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9436
9437 * top.c (execute_command): Enable break, info and interrupt
9438 commands in async mode.
9439
9440 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9441 Daniel Jacobowitz <dan@codesourcery.com>
9442
9443 * breakpoint.h (breakpoint_restore_shadows): New
9444 declaration.
9445 * breakpoint.c (breakpoint_restore_shadows): New.
9446 (read_memory_nobpt): Delete.
9447 * gdbcore.h (read_memory_nobpt): Delete declaration.
9448 * target.c (memory_xfer_partial): Call
9449 breakpoint_restore_shadows.
9450 (restore_show_memory_breakpoints)
9451 (make_show_memory_breakpoints_cleanup): New.
9452 (show_memory_breakpoints): New.
9453 * target.h (make_show_memory_breakpoints_cleanup): Declare.
9454 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9455 Make sure we see memory breakpoints when checking if
9456 breakpoint is still there.
9457 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9458 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9459 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9460 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9461
9462 2008-03-12 Pedro Alves <pedro@codesourcery.com>
9463
9464 * thread.c (add_thread): Use printf_unfiltered to print.
9465
9466 2008-03-12 Joel Brobecker <brobecker@gnat.com>
9467
9468 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9469 that is true only on x86-solaris and x86_64-solaris.
9470 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9471 with proc_get_LDT_entry.
9472
9473 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9474
9475 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9476 * config.in, configure: Regenerate.
9477 * fork-child.c (fork_inferior): Call create_tty_session.
9478 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9479 (create_tty_session): New function.
9480 * terminal.h: Declare create_tty_session.
9481
9482 2008-03-12 Alan Modra <amodra@bigpond.net.au>
9483
9484 PR 5900
9485 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9486 * mipsread.c: Include elf/internal.h.
9487 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9488 to internal range.
9489
9490 2008-03-11 Markus Deuling <deuling@de.ibm.com>
9491
9492 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9493 to get at the current architecture and at the target specific vector.
9494 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9495 remove define of I387_ST0_REGNUM.
9496
9497 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9498
9499 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9500 get at the current architecture
9501 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9502 parameter.
9503
9504 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9505 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9506
9507 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9508 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9509 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9510
9511 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9512 at the target specific vector.
9513
9514 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9515 architecture. Use gdbarch_tdep to get at the target specific vector.
9516
9517 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9518 update caller. Use gdbarch_tdep to get at the target specific vector.
9519
9520 (i386_register_to_value: Use get_frame_arch to get at the current
9521 architecture.
9522
9523 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9524 parameter.
9525
9526 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9527 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9528 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9529 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9530
9531 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9532 undef's.
9533
9534 (i387_convert_register_p, i387_register_to_value,
9535 i387_value_to_register): Update call for i386_fp_regnum_p.
9536
9537 * i387-tdep.h: Remove comment.
9538 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9539 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9540 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9541 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9542 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9543
9544 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9545
9546 * Makefile.in (fork-child.o): Update.
9547 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9548 argument. Gather all gdbserver features together.
9549 * fork-child.c (exec_wrapper): New variable.
9550 (fork_inferior): Use it.
9551 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9552 (unset_exec_wrapper_command, _initialize_fork_child): New.
9553
9554 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9555
9556 * source.c (directory_command): Modify the determination of
9557 condition of terminal "from_tty".
9558
9559 2008-03-10 Matt Rice <ratmice@gmail.com>
9560
9561 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9562
9563 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9564
9565 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9566 of the data passing to strtoulst function.
9567 (info_spu_signal_command): Likewise.
9568
9569 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9570
9571 * mi/mi-interp.c (mi_command_loop): Remove
9572 commented-out code.
9573
9574 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9575
9576 * remote.c (extended_remote_attach_1): Make local variable pid an int
9577 instead of a pid_t.
9578
9579 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9580
9581 * solib-svr4.c (svr4_same_1): New function, originally extracted
9582 from svr4_same and expanded to handle the sparc64 case.
9583 (svr4_same): Move up and reimplement using svr4_same_1.
9584 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9585
9586 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9587
9588 * MAINTAINERS: Move self to Paper trail.
9589
9590 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9591
9592 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9593 * event-loop.c (call_async_signal_handler): New.
9594 * event-loop.h (call_async_signal_handler)
9595 (gdb_call_async_signal_handler): Declare.
9596 (mark_async_signal_handler): Add comments.
9597 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9598 * mingw-hdep.c (sigint_event, sigint_handler): New.
9599 (gdb_select): Use them. Wait for the readline signal handler
9600 to finish.
9601 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9602 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9603 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9604 New.
9605 (remote_fileio_ctrl_c_signal_handler): Use
9606 gdb_call_async_signal_handler.
9607 (initialize_remote_fileio): Initialize sigint_fileio_token.
9608 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9609 not initialize tokens here.
9610 (handle_remote_sigint_twice): Likewise. Reinstall
9611 handle_remote_sigint.
9612 (async_remote_interrupt_twice): Just call interrupt_query.
9613 (cleanup_sigint_signal_handler): Do not delete tokens.
9614 (remote_interrupt, remote_interrupt_twice): Use
9615 gdb_call_async_signal_handler.
9616 (interrupt_query): Reinstall the default signal handler.
9617 (_initialize_remote): Initialize tokens here.
9618
9619 2008-03-04 Joel Brobecker <brobecker@adacore.com>
9620
9621 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9622 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9623 Change the type of the lr register to code_ptr.
9624 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9625 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9626 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9627 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9628 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9629 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9630 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9631
9632 2008-03-03 James E. Wilson <wilson@tuliptree.org>
9633
9634 * MAINTAINERS: Update my email address.
9635
9636 2008-03-03 Keith Seitz <keiths@redhat.com>
9637
9638 From Dave Murphy <davem@devkitpro.org>:
9639 * configure.ac: Set tcl configdir to win under mingw.
9640 * configure: Regenerate.
9641
9642 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9643
9644 * breakpoint.c (fetch_watchpoint_value): New function.
9645 (update_watchpoint): Set and clear val_valid. Use
9646 fetch_watchpoint_value. Handle unreadable values on the
9647 value chain. Correct check for user-requested array watchpoints.
9648 (breakpoint_init_inferior): Clear val_valid.
9649 (watchpoint_value_print): New function.
9650 (print_it_typical): Use it. Do not free or clear old_val. Print
9651 watchpoints even if old_val == NULL.
9652 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9653 becoming readable or unreadable.
9654 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9655 (do_enable_watchpoint): Likewise.
9656 * breakpoint.h (struct breakpoint): Update comment for val. Add
9657 val_valid.
9658 * NEWS: Mention watchpoints on inaccessible memory.
9659
9660 2008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
9661
9662 * Makefile.in (i386-nat.o): Update.
9663 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9664 i386_use_watchpoints.
9665 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9666 i386_use_watchpoints.
9667 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9668 (i386_stopped_by_watchpoint): Update call.
9669 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9670 * config/i386/nm-i386.h: Conditionalize definitions on
9671 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9672 (i386_use_watchpoints): Declare.
9673 (i386_stopped_data_address): Update.
9674 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9675 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9676
9677 2008-02-29 Joel Brobecker <brobecker@adacore.com>
9678
9679 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9680 * version.in: Bump version to 6.8.50.20080229-cvs.
9681
9682 2008-02-28 Markus Deuling <deuling@de.ibm.com>
9683
9684 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9685 properly.
9686
9687 2008-02-28 Tom Tromey <tromey@redhat.com>
9688
9689 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9690
9691 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9692
9693 * infcmd.c (kill_if_already_running): Make static. Use
9694 target_require_runnable.
9695 * target.c (target_require_runnable): New.
9696 * target.h (target_require_runnable): Declare.
9697
9698 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9699
9700 * frame.c (reinit_frame_cache): Only annotate if frames were
9701 previously valid.
9702
9703 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9704
9705 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9706 * regformats/reg-ppc64.dat: Likewise.
9707
9708 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9709
9710 * features/Makefile (%.dat): Emit xmltarget statement.
9711
9712 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9713 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9714
9715 * regformats/arm-with-iwmmxt.dat: Regenerate.
9716 * regformats/mips64-linux.dat: Regenerate.
9717 * regformats/mips-linux.dat: Regenerate.
9718 * regformats/rs6000/powerpc-32.dat: Regenerate.
9719 * regformats/rs6000/powerpc-64.dat: Regenerate.
9720 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9721
9722 * regformats/reg-arm.dat: Add xmlarch statement.
9723 * regformats/reg-i386.dat: Likewise.
9724 * regformats/reg-i386-linux.dat: Likewise.
9725 * regformats/reg-x86-64-linux.dat: Likewise.
9726 * regformats/reg-spu.dat: Likewise.
9727
9728 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9729
9730 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9731 an error.
9732
9733 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9734
9735 * utils.c (debug_timestamp): New.
9736 (vfprintf_unfiltered): Print timestamps if requested.
9737 (show_debug_timestamp): New.
9738 (initialize_utils): Register "set debug timestamp".
9739 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9740
9741 2008-02-27 Joel Brobecker <brobecker@adacore.com>
9742
9743 * breakpoint.c (skip_prologue_sal): New function.
9744 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9745 computed from a line number.
9746
9747 2008-02-27 Joel Brobecker <brobecker@adacore.com>
9748
9749 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9750 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9751 Set PC register type to "code_ptr".
9752 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9753 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9754 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9755 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9756 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9757 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9758 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9759 Regenerate.
9760
9761 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9762
9763 * regformats/regdat.sh: Rename init_registers function in
9764 generated file to init_registers_${name}.
9765
9766 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9767 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9768 * regformats/reg-s390x.dat: Set "name" to s390x.
9769
9770 2008-02-26 Greg Law <glaw@undo-software.com>
9771
9772 * regcache.c (registers_changed): Call reinit_frame_cache.
9773
9774 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9775
9776 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9777 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9778 and svr4_fetch_objfile_link_map.
9779 * Makefile.in (sh-linux-tdep.o): Update.
9780
9781 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9782
9783 * amd64-tdep.c (amd64_classify): Add support for decimal float
9784 types.
9785 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9786 use the struct return convention.
9787
9788 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
9789
9790 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9791 to old format. Discard breakpoint address if shared library is
9792 unloaded.
9793 (breakpoint_1): Adjust formatting of table header accordingly.
9794
9795 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9796
9797 * remote.c (remote_get_threadlist): If the response
9798 is empty, don't try to parse it.
9799
9800 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9801
9802 Unbreak 'target async'.
9803 * serial.c (serial_async): Set the
9804 handler function before enabling async
9805 mode.
9806
9807 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9808
9809 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9810
9811 2008-02-21 Pedro Alves <pedro@codesourcery.com>
9812
9813 * remote.c (extended_remote_attach_1): Set attach_flag.
9814 (extended_remote_create_inferior_1): Clear attach_flag.
9815
9816 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9817
9818 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9819 r_brk_offset.
9820 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9821 * solib-svr4.c (solib_svr4_r_brk): New.
9822 (open_symbol_file_object, svr4_current_sos): Always check the
9823 debug base.
9824 (svr4_fetch_objfile_link_map): Do not set debug_base.
9825 (enable_break): Use r_brk if it is set.
9826 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9827 (svr4_lp64_fetch_link_map_offsets): Likewise.
9828 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9829
9830 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9831 Mark Kettenis <kettenis@gnu.org>
9832
9833 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9834 trad_frame_saved_reg.
9835 (trad-frame.h): New include.
9836
9837 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
9838 instead of frame_obstack_zalloc.
9839 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9840
9841 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
9842
9843 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9844
9845 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9846 from disassemble_info instead of gdbarch_byte_order.
9847
9848 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9849 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9850
9851 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9852
9853 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9854 gdbarch as parameter.
9855
9856 * gdbarch.{c,h}: Regenerate.
9857
9858 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9859 parameter.
9860 * mem-break.c (default_memory_insert_breakpoint)
9861 (default_memory_remove_breakpoint): Likewise.
9862 * target.h (default_memory_remove_breakpoint)
9863 (default_memory_insert_breakpoint): Likewise.
9864
9865 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9866 parameter. Replace current_gdbarch by gdbarch.
9867 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9868 (m32r_memory_remove_breakpoint): Likewise.
9869
9870 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9871
9872 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9873
9874 2008-02-19 Joel Brobecker <brobecker@adacore.com>
9875
9876 * NEWS: Add entry describing Add support improvements.
9877
9878 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9879
9880 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9881 M68K_FP0_REGNUM.
9882
9883 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9884
9885 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9886 register_offset_hack anymore.
9887
9888 * regcache.{c,h} (register_offset_hack): Remove.
9889
9890 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9891
9892 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9893
9894 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9895 current_gdbarch by gdbarch.
9896 (hppa64_hpux_find_global_pointer): Likewise.
9897 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9898 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9899 find_global_pointer.
9900
9901 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9902 parameter.
9903 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9904
9905 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9906 of gdbarch_num_regs.
9907
9908 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
9909 replace current_gdbarch by gdbarch.
9910 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9911
9912 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9913
9914 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9915 and replace current_gdbarch by gdbarch.
9916
9917 (store_register): Update call for exec_one_dummy_insn.
9918 (fetch_register, store_register): Update call of regmap.
9919
9920 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9921 parameter and replace current_gdbarch by gdbarch.
9922
9923 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9924 the current architecture. Update call for getregs_supplies and
9925 getfpregs_supplies.
9926 (ppcnbsd_fetch_inferior_registers): Likewise.
9927
9928 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
9929 replace current_gdbarch by gdbarch.
9930 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9931 get_regcache_arch to get at the current architecture. Update call for
9932 getfpregs_supplies.
9933
9934 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9935
9936 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
9937 variables.
9938
9939 2008-02-15 Markus Deuling <deuling@de.ibm.com>
9940
9941 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9942
9943 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9944
9945 * NEWS: Mention pending breakpints in MI.
9946
9947 2008-02-14 Markus Deuling <deuling@de.ibm.com>
9948
9949 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9950
9951 2008-02-13 Markus Deuling <deuling@de.ibm.com>
9952
9953 Add script to build and test GDB using enable-targets=all.
9954
9955 * gdb_buildall.sh: New file.
9956
9957 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9958
9959 * NEWS (New native configurations): Xtensa GNU/Linux.
9960 (New targets): Xtensa GNU/Linux.
9961 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9962 xtensa-linux-tdep.o
9963 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9964 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9965 * configure.tgt (xtensa*-*-linux*): New entry.
9966 * xtensa-config.c (xtensa_tdep): New variable.
9967 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9968 (rmap): Change format based on new macro XTREG.
9969 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9970 * xtensa-linux-nat.c: New.
9971 * xtensa-linux-tdep.c: New.
9972 * xtensa-xtregs.c: New.
9973 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9974 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9975 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9976 (xtensa_register_t): New field coprocessor.
9977 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9978 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9979 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9980 Update to handle privileged registers.
9981 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9982 (xtensa_push_dummy_call): Set windowstart register correctly.
9983 (call0_analyze_prologue): Initialize xtensa_default_isa.
9984 (xtensa_derive_tdep): New.
9985 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9986 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9987 Call xtensa_derive_tdep().
9988 * config/xtensa/linux.mh: New.
9989 * regformats/reg-xtensa.dat: New.
9990
9991 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
9992
9993 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9994 (filenames.h): New include.
9995 * Makefile.in (corelow.o): Add dependency for filenames.h.
9996
9997 2008-02-08 Doug Evans <dje@google.com>
9998
9999 * source.c (find_and_open_source): Always rewrite absolute filenames.
10000
10001 2008-02-07 Doug Evans <dje@google.com>
10002
10003 * breakpoint.c: #include "hashtab.h".
10004 (ambiguous_names_p): New fn.
10005 (update_breakpoint_locations): When restoring bp enable status, don't
10006 compare function names if any functions have same name.
10007 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10008
10009 2008-02-07 Joel Brobecker <brobecker@adacore.com>
10010
10011 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10012 instead of just a VEC*. Update use of SV.
10013 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10014
10015 2007-02-07 Joel Brobecker <brobecker@adacore.com>
10016
10017 * NEWS: Put all new commands since gdb-6.7 together.
10018
10019 2007-02-07 Joel Brobecker <brobecker@adacore.com>
10020
10021 * ada-lang.c: #include "vec.h".
10022 (struct string_vector, new_string_vector, string_vector_append):
10023 Delete.
10024 (char_ptr): New typedef.
10025 (DEF_VEC_P (char_ptr)): New VEC type.
10026 (symbol_completion_add): Update profile to take the new VEC type
10027 instead of the old string_vector structure. Update code accordingly.
10028 (ada_make_symbol_completion_list): Use the new VEC type instead of
10029 the old string_vector structure, and update the code accordingly.
10030 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10031
10032 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10033
10034 * p-exp.y: Set current_type in missing places.
10035 (leftdiv_is_integer): New static variable.
10036 Typecast right operand of BINOP_DIV to long_double if both operands
10037 are integers.
10038
10039 2008-02-06 Maciej W. Rozycki <macro@mips.com>
10040
10041 * remote-mips.c (set_breakpoint): Rename to...
10042 (mips_set_breakpoint): ... this.
10043 (clear_breakpoint): Rename to...
10044 (mips_clear_breakpoint): ... this.
10045 (common_breakpoint): Rename to...
10046 (mips_common_breakpoint): ... this.
10047 (check_lsi_error): Rename to...
10048 (mips_check_lsi_error): ... this.
10049
10050 2007-02-05 Joel Brobecker <brobecker@adacore.com>
10051
10052 * language.h (struct language_defn): Add new field
10053 la_make_symbol_completion_list.
10054 * symtab.c (default_make_symbol_completion_list): Renames
10055 make_symbol_completion_list.
10056 (make_symbol_completion_list): New function.
10057 * symtab.h (default_make_symbol_completion_list): Add declaration.
10058 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10059 (auto_language, local_language): Likewise.
10060 * objc-lang.c (objc_language_defn): Likewise.
10061 * scm-lang.c (scm_language_defn): Likewise.
10062 * m2-lang.c (m2_language_defn): Likewise.
10063 * f-lang.c (f_language_defn): Likewise.
10064 * jv-lang.c (java_language_defn): Likewise.
10065 * p-lang.c (pascal_language_defn): Likewise.
10066 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10067 (minimal_language_defn): Likewise.
10068 * ada-lang.c (struct string_vector): New structure.
10069 (new_string_vector, string_vector_append, ada_unqualified_name)
10070 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10071 (ada_make_symbol_completion_list): New functions.
10072 (ada_language_defn): Set la_make_symbol_completion_list.
10073 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10074 this function is static.
10075
10076 2008-02-05 Kevin Buettner <kevinb@redhat.com>
10077
10078 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10079 to account for call site optimizations.
10080
10081 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10082
10083 * tracepoint.c (read_actions): Handle end-of-text indicator
10084 in action list properly. (Committed by Jim Blandy)
10085
10086 2008-02-05 Jim Blandy <jimb@red-bean.com>
10087
10088 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10089 pseudoregister, not an internal error.
10090 Reported by: Andrzej Zaborowski
10091
10092 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10093
10094 * varobj.c (c_value_of_variable): Use xstrdup.
10095
10096 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10097
10098 Update stored rendition of varobj value when format changes.
10099 * varobj.c (varobj_set_display_format): Recomputed
10100 print_value.
10101 (c_value_of_variable): Return print_value.
10102
10103 2008-02-03 Doug Evans <dje@google.com>
10104
10105 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10106 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10107 * valops.c (value_one): New function.
10108 * value.h (value_one): Declare.
10109
10110 Fix argument promotion for binary arithmetic ops for C.
10111 * valarith.c (unop_result_type): New fn.
10112 (binop_result_type): New fn.
10113 (value_binop): Move result type computation to binop_result_type.
10114 (value_pos, value_neg, value_complement): Move result type
10115 computation to unop_result_type.
10116
10117 PR 2384
10118 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10119 Return basetype, fieldno if found. All callers updated.
10120 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10121 objfile.
10122 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10123 * symfile.h (fill_in_vptr_fieldno): Delete.
10124
10125 2008-02-02 Doug Evans <dje@google.com>
10126
10127 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10128
10129 * typeprint.c (*): Whitespace cleanup.
10130
10131 2008-02-02 Mark Kettenis <kettenis@gnu.org>
10132 Luis Machado <luisgpm@br.ibm.com>
10133 Thiago Jung Bauermann <bauerman@br.ibm.com>
10134
10135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10136 don't fit into registerson the stack the way GCC does.
10137
10138 2008-02-01 Joel Brobecker <brobecker@adacore.com>
10139
10140 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10141 hash table for Ada symbols. Just store the linkage name as is,
10142 and leave the demangled_name as NULL.
10143
10144 2007-02-01 Joel Brobecker <brobecker@adacore.com>
10145
10146 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10147 in the global scope.
10148 (new_symbol): Likewise.
10149
10150 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10151
10152 * breakpoint.c (break_command_1): Return void.
10153 (break_command_really): Return void. Rethrow
10154 exceptions instead of returning.
10155 (gdb_breakpoint): Remove the error_message parameter.
10156 Return void. Rename to set_breakpoint.
10157 * gdb.h (gdb_breakpoint): Rename and move to...
10158 * breakpoint.h (set_breakpoint): ...here.
10159 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10160 event hooks even if exception is thrown. Adjust to
10161 gdb_breakpoint interface changes.
10162
10163
10164 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10165
10166 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10167 float in both first and second word in the doubleword, to support
10168 old and new ABIs.
10169
10170 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10171
10172 Properly rethrow exception. This fixes errors
10173 about non-existent functions for -break-insert.
10174 * breakpoint.c (break_command_really): Use throw_exception
10175 for rethrowing. If rethrowing, don't print the exception.
10176
10177 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10178
10179 * NEWS: Mention Decimal Floating Point support.
10180
10181 2008-01-31 Joel Brobecker <brobecker@adacore.com>
10182
10183 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10184 value type to builtin_type_void_func_ptr.
10185
10186 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10187
10188 * s390-tdep.c (is_float_singleton, is_float_like,
10189 alignment_of, s390_return_value): Make checks for
10190 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10191
10192 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
10193 Thiago Jung Bauermann <bauerman@br.ibm.com>
10194
10195 * infcmd.c (default_print_registers_info): Also print hex
10196 raw contents for TYPE_CODE_DECFLOAT registers.
10197 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10198 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10199 (rs6000_register_name): Add support for DFP pseudo-registers.
10200 (rs6000_pseudo_register_type): Likewise.
10201 rs6000_pseudo_register_reggroup_p): Likewise.
10202 (ppc_pseudo_register_read): New function.
10203 (ppc_pseudo_register_write): Likewise.
10204 (rs6000_pseudo_register_read): Likewise.
10205 (rs6000_pseudo_register_write): Likewise.
10206 (e500_pseudo_register_read): Move checks to
10207 rs6000_pseudo_register_read.
10208 (e500_pseudo_register_write): Move checks to
10209 rs6000_pseudo_register_write.
10210 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10211 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10212 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10213 num_pseudo_regs to account for DFP pseudo regs.
10214
10215 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10216
10217 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10218 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10219 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10220 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10221 e500_pseudo_register_read, e500_pseudo_register_write): Use
10222 IS_SPE_PSEUDOREG macro.
10223 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10224 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10225 Remove initialization of tdep->ppc_ev31_regnum.
10226
10227 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10228
10229 * printcmd.c (print_formatted): Handle references as for unformatted
10230 prints.
10231
10232 2008-01-30 Joel Brobecker <brobecker@adacore.com>
10233
10234 * eval.c (evaluate_subexp_standard): Add handling of user
10235 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10236
10237 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10238
10239 * eval.c (evaluate_subexp_standard): Support
10240 BINOP_INTDIV opcode.
10241
10242 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10243
10244 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10245 BINOP_MAX cases.
10246 For BINOP_EXP, use length and signedness of left operand only for
10247 result, as for shifts.
10248 For integral operands to BINOP_EXP, use new integer_pow and
10249 uinteger_pow functions so as to get full range of results.
10250 (integer_pow): New function.
10251 (uinteger_pow): New function.
10252
10253 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10254
10255 Use vector for varobj_list_children interface.
10256 * gdb/varobj.c (varobj_list_children): Return vector
10257 of varobjs.
10258 * gdb/varobj.h (varobj_list_children): Adjust
10259 prototype.
10260 (varobj_p): Declare. Declare vector thereof.
10261 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10262 for varobj_list_children change.
10263 * Makefile.in (varobj_h): Update dependencies.
10264
10265 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10266
10267 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10268 TYPE_CODE_DECFLOAT arguments.
10269 (ppc64_sysv_abi_push_dummy_call) Likewise.
10270 (get_decimal_float_return_value): New function.
10271 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10272 values by calling get_decimal_float_return_value.
10273 (ppc64_sysv_abi_return_value): Likewise.
10274
10275 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
10276
10277 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10278 for preprocessor macro information. Formatting changes.
10279
10280 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10281
10282 * remote.c (struct remote_state): Add cached_wait_status.
10283 (remote_exec_file): New variable.
10284 (PACKET_vAttach, PACKET_vRun): New constants.
10285 (extended_remote_restart): Do not query for status.
10286 (struct start_remote_args): New.
10287 (remote_start_remote): Take it as a second argument. Check
10288 whether the target is running. Issue an error for non-running
10289 non-extended targets. Cache the wait status. Set inferior_ptid
10290 here.
10291 (remote_open_1): Prompt to disconnect non-running targets. Make
10292 sure the target is marked running. Do not set inferior_ptid here.
10293 Update call to remote_start_remote. Do not call remote_check_symbols
10294 if the target is not running.
10295 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10296 argument. Handle a non-running target.
10297 (remote_detach): Use it.
10298 (extended_remote_detach): New.
10299 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10300 (extended_remote_attach_1, extended_remote_attach)
10301 (extended_async_remote_attach): New.
10302 (remote_vcont_resume): Remove unused variable.
10303 (remote_wait, remote_async_wait): Use any cached wait status.
10304 (putpkt_binary, getpkt): Clear any cached wait status.
10305 (extended_remoute_mourn_1): New.
10306 (extended_remote_mourn): Use it.
10307 (extended_async_remote_mourn, extended_remote_run): New.
10308 (extended_remote_create_inferior_1): New.
10309 (extended_remote_create_inferior): Use it.
10310 (extended_remote_async_create_inferior): Likewise.
10311 (remote_xfer_partial): Skip for non-executing targets.
10312 (init_extended_remote_ops): Set to_detach and to_attach.
10313 (init_extended_async_remote_ops): Likewise. Use
10314 extended_async_remote_mourn.
10315 (_initialize_remote): Register vAttach, vRun, and
10316 set remote exec-file.
10317 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10318
10319 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10320
10321 * Makefile.in (symfile.o): Update.
10322 * NEWS: Mention exec tracing support.
10323 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10324 exec events.
10325 * infcmd.c (kill_if_already_running, detach_command)
10326 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10327 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10328 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10329 targets. Apply the sysroot path to the loaded executable. Use
10330 no_shared_libraries.
10331 * linux-nat.c (linux_child_follow_fork): Print fork following
10332 messages if verbose.
10333 (kill_wait_callback): Kill again before waiting a second time.
10334 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10335 no_shared_libraries.
10336
10337 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10338
10339 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10340
10341 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10342
10343 * nto-tdep.h: Remove #include "defs.h".
10344 * nto-tdep.c: Add #include "defs.h".
10345 * Makefile.in (nto_tdep_h): Update dependencies.
10346 (nto-tdep.o): Likewise.
10347
10348 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10349
10350 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10351 and use it.
10352 (proceed, start_remote): Update call to wait_for_inferior.
10353 * inferior.h (wait_for_inferior): Update declaration.
10354 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10355 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10356 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10357 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10358
10359 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10360
10361 * varobj (adjust_value_for_child_access): Added checking for
10362 returned value from gdb_value_ind.
10363 (c_describe_child): Likewise.
10364 (cplus_describe_child): Fixed a typo.
10365
10366 2008-01-29 Jim Blandy <jimb@red-bean.com>
10367
10368 * MAINTAINERS: Update my info.
10369
10370 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10371
10372 Use multiple locations for hardware watchpoints.
10373 This eliminates the need to traverse value chain, doing
10374 various checks, in three different places.
10375
10376 * breakpoint.h (struct bp_location): New fields
10377 lengths and watchpoint_type.
10378 (struct breakpoint): Remove the val_chain field.
10379 * breakpoint.c (is_hardware_watchpoint): New.
10380 (free_valchain): Remove.
10381 (update_watchpoint): New.
10382 (insert_bp_location): For hardware watchpoint, just
10383 directly insert it.
10384 (insert_breakpoints): Call update_watchpoint_locations
10385 on all watchpoints. If we have failed to insert
10386 any location of a hardware watchpoint, remove all inserted
10387 locations.
10388 (remove_breakpoint): For hardware watchpoints, directly
10389 remove location.
10390 (watchpoints_triggered): Iterate over locations.
10391 (bpstat_stop_status): Use only first location of
10392 a resource watchpoint.
10393 (delete_breakpoint): Don't call free_valchain.
10394 (print_one_breakpoint): Don't print all
10395 locations for watchpoints.
10396 (breakpoint_re_set_one): Use update_watchpoint for
10397 watchpoints.
10398
10399 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10400
10401 Don't reset watchpoint block on solib load.
10402
10403 * breakpoint.c (insert_bp_location): For watchpoints,
10404 recompute condition.
10405 (breakpoint_re_set_one): Instead of recomputing value
10406 and condition for watchpoints, just reset value and
10407 let insert_breakpoints/insert_bp_location recompute it.
10408 Don't do anything about disabled watchpoint.
10409
10410 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10411
10412 * valarith.c (value_binop): Handle unsigned integer
10413 division by zero.
10414
10415 2008-01-28 Kevin Buettner <kevinb@redhat.com>
10416
10417 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10418 instruction pattern that appears frequently in position
10419 independent code. Fix bug in code which looks for "fmov" and
10420 backtracks if no "fmov" is found.
10421
10422 2008-01-28 Doug Evans <dje@google.com>
10423
10424 * dbxread.c (read_dbx_symtab): Fix indentation.
10425 Reformat comments to 80 columns.
10426 Move local var def closer to only use.
10427
10428 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10429
10430 * fork-child.c (SHELL_FILE): Remove #ifndef.
10431 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10432
10433 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10434
10435 * i386-tdep.c (i386_skip_noop): New function.
10436 (i386_analyze_prologue): Call i386_skip_noop function.
10437
10438 2008-01-24 Michael Snyder <msnyder@specifix.com>
10439
10440 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10441 * win32-nat.c (win32_xfer_partial): Ditto.
10442 * target.c (default_xfer_partial): Minor whitespace adjustment.
10443
10444 2008-01-24 Pedro Alves <pedro@codesourcery.com>
10445
10446 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10447 strip bit 1 even if pc doesn't point to thumb code.
10448
10449 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10450
10451 * remote.c (remote_wait): Handle SIGINT between packets.
10452 (remote_async_wait): Likewise.
10453
10454 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10455 Chris Demetriou <cgd@google.com>
10456
10457 * thread.c (add_thread_silent): Renamed
10458 from add_thread.
10459 (print_thread_events): New variable definition.
10460 (show_print_thread_events): New function.
10461 (_initialize_thread): Add "set print thread-events" and
10462 "show print thread-events" commands.
10463 (add_thread): Announce new thread.
10464 * gdbthread.h (add_thread_silent): Declare.
10465 (print_thread_events): New variable declaration.
10466 * inf-ttrace.c (inf_ttrace_wait): Don't
10467 inform about new thread, as add_thread is always
10468 called too, and will take care of that.
10469 * infrun.c (handle_inferior_event): Likewise.
10470 * procfs.c (procfs_wait): Likewise.
10471 * remote.c (remote_currthread): Likewise.
10472 * sol-thread.c (sol_thread_wait): Likewise.
10473 * win32-nat.c (get_win32_debug_event): Likewise.
10474 * linux-thread-db.c (attach_thread): Likewise.
10475 Remove the verbose parameter.
10476 (check_event): Make detach_thread be verbose
10477 only if print_thread_events is set.
10478 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10479 about new thread. This is called only from
10480 linux-thread-db.c:attach_thread, which will take care.
10481 Remove the verbose parameter.
10482 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
10483
10484 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
10485
10486 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10487
10488 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10489
10490 * breakpoint.c (break_command_really): New parameter
10491 ignore_count.
10492 (break_command_1): Pass 0 as
10493 ignore_count to break_command_really.
10494 (gdb_breakpoint): Pass ignore_count to
10495 break_command_really.
10496
10497 2008-01-21 Kevin Buettner <kevinb@redhat.com>
10498
10499 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10500 sigcontext struct via pointer.
10501 (struct sigframe comment): Update to show new field `psc'.
10502
10503 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10504
10505 * infrun.c (handle_inferior_event): If
10506 we failed to remove breakpoints, error,
10507 don't try to increment PC by hand.
10508
10509 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10510
10511 Add NetBSD/hppa target and host support.
10512
10513 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10514 (hppabsd_gregset): Move to ...
10515 (hppabsd_regset_from_core_section): Rename
10516 hppaobsd_regset_from_core_section and move to ...
10517 (hppabsd_find_global_pointer): Update comment.
10518 (hppabsd_init_abi): Make global. Do not register
10519 hppabsd_regset_from_core_section.
10520 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10521 move to ...
10522 (_initialize_hppabsd_tdep): Move to ...
10523 * hppaobsd-tdep.c: ... here. New file.
10524 * hppnbsd-tdep.c: New file.
10525 * hppnbsd-nat.c: New file.
10526 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
10527 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
10528 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10529 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
10530 * configure.host (hppa*-*-netbsd*): New entry.
10531 * configure.tgt (hppa*-*-netbsd*): New entry.
10532 (hppa*-*-openbsd*): Update.
10533 * NEWS (New native configuration): Mention NetBSD/hppa.
10534 (New targets): Mention NetBSD/hppa.
10535
10536 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10537
10538 * gdbarch.sh (function_list): Add new property bits_big_endian to
10539 gdbarch structure.
10540 * gdbarch.{c,h}: Regenerate.
10541
10542 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10543 gdbarch_bits_big_endian (comment).
10544 (unpack_field_as_long, modify_field): Likewise.
10545 * value.h: Likewise (comment).
10546 * valops.c (value_slice): Likewise.
10547 * valarith.c (value_subscript, value_bit_index): Likewise.
10548 * gdbtypes.h (field): Likewise (comment).
10549 * eval.c (evaluate_subexp_standard): Likewise.
10550 * dwarf2read.c (dwarf2_add_field): Likewise.
10551 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10552 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
10553
10554 * defs.h (BITS_BIG_ENDIAN): Remove.
10555
10556 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10557
10558 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10559 function calls.
10560 * m2-exp.y (yylex): Likewise.
10561 * objc-exp.y (yylex): Likewise.
10562
10563 * defs.h (DEPRECATED_STREQN): Remove.
10564
10565 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
10566
10567 * MAINTAINERS: Update my email address.
10568
10569 2008-01-17 Jim Blandy <jimb@codesourcery.com>
10570
10571 * README: Mention gdbserver/README.
10572
10573 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10574
10575 * valarith.c (value_binop): Handle BINOP_INTDIV
10576 for unsigned and signed integers.
10577
10578 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10579
10580 * s390-tdep.c (s390_gdbarch_init): Set default long double
10581 type to 128-bit IEEE quad.
10582
10583 2008-01-17 Joel Brobecker <brobecker@adacore.com>
10584
10585 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10586
10587 2008-01-16 Mark Kettenis <kettenis@gnu.org>
10588
10589 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10590
10591 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10592 * value.c: All callers changed.
10593
10594 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10595
10596 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10597 DEPRECATED_STREQ by its expression.
10598 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10599 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10600 (scan_xcoff_symtab): Likewise.
10601 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10602 * f-lang.c (find_common_for_function): Likewise.
10603 * objc-exp.y (parse_number): Likewise.
10604
10605 * defs.h (DEPRECATED_STREQ): Remove.
10606
10607 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10608
10609 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10610 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10611 get_frame_arch to get at the current_architecture. Update AM33_MODE
10612 call.
10613 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10614 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10615 architecture.
10616 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10617
10618 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10619
10620 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
10621 parameter.
10622 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10623
10624 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10625 current_gdbarch by gdbarch. Update caller.
10626
10627 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10628 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10629 the current architecture. Update calls of
10630 amd64_native_gregset_supplies_p.
10631 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10632 (amd64bsd_store_inferior_registers): Likewise.
10633
10634 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10635
10636 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10637 Replace current_gdbarch by gdbarch. Update caller.
10638
10639 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10640
10641 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10642 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10643 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10644 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10645 (stabsect_build_psymtabs): Fix indentation.
10646
10647 2008-01-15 Michael Snyder <msnyder@specifix.com>
10648
10649 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10650
10651 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10652
10653 * win32-nat.c (win32_create_inferior): Restore code calling
10654 CloseHandle on ProcessInformation structure.
10655
10656 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10657
10658 * configure.ac: Check for void * as 3 argument of ptrace.
10659 * configure: regenerate.
10660
10661 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10662
10663 * alpha-tdep.c (alpha_heuristic_proc_start)
10664 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10665 current_gdbarch by gdbarch.
10666
10667 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
10668 current architecture by frame_info. Update alpha_heuristic_proc_start
10669 call.
10670
10671 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10672 get_frame_arch to get at the current architecture by frame_info. Update
10673 alpha_sigtramp_register_address call.
10674
10675 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10676 current_gdbarch by gdbarch. Update caller.
10677 (convert_to_extended, convert_from_extended): Add endianess parameter
10678 for comparison. Update caller.
10679 (arm_extract_return_value, arm_store_return_value): Use
10680 get_regcache_arch to get at the current architecture.
10681
10682 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10683 current_gdbarch by gdbarch. Update caller.
10684 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10685 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10686
10687 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
10688 gdbarch as parameter. Update caller.
10689 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10690 current_gdbarch by gdbarch. Update caller.
10691
10692 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
10693 update caller. Replace current_gdbarch by gdbarch.
10694
10695 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10696 the current architecture. Replace current_gdbarch by gdbarch.
10697 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10698 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10699 expression. Add gdbarch as parameter and replace current_gdbarch with
10700 it. Update caller.
10701 (M6811_TDEP): Remove.
10702 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10703 architecture.
10704 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
10705 current_gdbarch by gdbarch. Update caller.
10706
10707 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10708 update caller.
10709 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10710 by gdbarch.
10711
10712 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10713 caller. Relace current_gdbarch by gdbarch.
10714 (altivec_register_p, spe_register_p): Likewise.
10715 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10716 parameter.
10717 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10718 altivec_register_p and spe_register_p.
10719
10720 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
10721 caller. Replace current_gdbarch by gdbarch.
10722 (score_analyze_prologue): use get_frame_arch to get at the current
10723 architecture.
10724
10725 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10726 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10727 current_gdbarch by gdbarch. Update caller.
10728 (sparc_frame_cache): Use get_frame_arch to get at the current
10729 architecture.
10730 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10731 sparc_analyze_prologue.
10732
10733 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10734 parameter.
10735
10736 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10737
10738 * exec.c: #include "arch-utils.h"
10739 (print_section_info): Use gdbarch_from_bfd to get at the
10740 current architecture. Replace current_gdbarch. Fix indention. Replace
10741 deprecated_print_address_numeric by paddress.
10742 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10743
10744 * valprint.c (val_print_string): Replace
10745 deprecated_print_address_numeric.
10746 * tracepoint.c (trace_mention, scope_info): Likewise.
10747 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10748 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10749 (maintenance_check_symtabs): Likewise.
10750 * symfile.c (list_overlays_command): Likewise.
10751 * stack.c (frame_info, print_block_frame_labels): Likewise.
10752 * printcmd.c (print_address, print_address_demangle)
10753 (address_info): Likewise.
10754 * corefile.c (memory_error): Likewise.
10755 * infcmd.c (jump_command): Likewise.
10756 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10757 (mention, delete_breakpoint): Likewise.
10758 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10759 * dwarf2read.c (dump_die): Likewise.
10760 * ada-valprint.c (ada_val_print_1): Likewise.
10761 * f-valprint.c (f_val_print): Likewise.
10762 * linux-fork.c (info_forks_command): Likewise.
10763 * m32r-com.c (m32r_load_section, m32r_load)
10764 (m32r_upload_command): Likewise.
10765
10766 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10767
10768 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10769
10770 * gdbarch.sh (skip_prologue): Add gdbarch
10771 as parameter.
10772 * gdbarch.{c,h}: Regenerate.
10773
10774 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10775 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10776 * avr-tdep.c (avr_skip_prologue): Likewise.
10777 * cris-tdep.c (cris_skip_prologue): Likewise.
10778 * frv-tdep.c (frv_skip_prologue): Likewise.
10779 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10780 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10781 * i386-tdep.c (i386_skip_prologue): Likewise.
10782 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10783 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10784 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10785 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10786 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10787 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10788 * mep-tdep.c (mep_skip_prologue): Likewise.
10789 * mips-tdep.c (mips_skip_prologue): Likewise.
10790 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10791 * mt-tdep.c (mt_skip_prologue): Likewise.
10792 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10793 * score-tdep.c (score_skip_prologue): Likewise.
10794 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10795 * sh-tdep.c (sh_skip_prologue): Likewise.
10796 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10797 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10798 * spu-tdep.c (spu_skip_prologue): Likewise.
10799 * v850-tdep.c (v850_skip_prologue): Likewise.
10800 * vax-tdep.c (vax_skip_prologue): Likewise.
10801 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10802 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10803
10804 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10805 current_gdbarch by gdbarch.
10806 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10807 * s390-tdep.c (s390_skip_prologue): Likewise.
10808
10809 2008-01-10 Doug Evans <dje@google.com>
10810
10811 * defs.h (struct continuation_arg): Fix typo in comment.
10812 * target.c (target_translate_tls_address): Fix comment spelling error.
10813
10814 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10815
10816 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10817 (DOUBLEST_SCAN_FORMAT): Likewise.
10818 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10819 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10820 * c-exp.y (parse_number): Likewise.
10821 * jv-exp.y (parse_number): Likewise.
10822 * objc-exp.y (parse_number): Likewise.
10823 * p-exp.y (parse_number): Likewise.
10824
10825 2008-01-09 Joel Brobecker <brobecker@adacore.com>
10826
10827 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10828 (check_typedef): Likewise.
10829
10830 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
10831
10832 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10833 seen_double_big_d, treat the new H, D, and DD modifiers as length
10834 modifiers.
10835
10836 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10837
10838 * dwarf2read.c (read_enumeration_type): Add comment.
10839
10840 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10841
10842 * config.in: Regenerate.
10843
10844 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10845
10846 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10847 Make non-static.
10848 (ada_convert_actuals): Delete.
10849 * ada-lang.h (ada_convert_actual): Add declaration.
10850 (ada_convert_actuals): Remove declaration.
10851 * infcall.c: #include "ada-lang.h".
10852 (value_arg_coerce): Add new parameter sp. Update function
10853 documetnation. Add handling of Ada function call parameters.
10854 * Makefile.in (infcall.o): Update dependencies.
10855
10856 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10857
10858 * ada-lang.c (ensure_lval): Fix value lval kind.
10859 (convert_actual): Add handling for arguments passed by reference.
10860
10861 2008-01-08 Doug Evans <dje@google.com>
10862
10863 * dbxread.c (read_dbx_symtab): Fix indentation.
10864
10865 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10866
10867 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10868 (valarith.o): Depend on dfp.h.
10869 (valops.o): Likewise.
10870 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10871 (set_decnumber_context): New function.
10872 (decimal_check_errors): Likewise.
10873 (decimal_from_number): Likewise.
10874 (decimal_to_number): Likewise.
10875 (decimal_from_string): Use set_decnumber_context and
10876 decimal_check_errors.
10877 (decimal_from_integral): New function.
10878 (decimal_from_floating): Likewise.
10879 (decimal_to_double): Likewise.
10880 (promote_decimal): Likewise.
10881 (decimal_binop): Likewise.
10882 (decimal_is_zero): Likewise.
10883 (decimal_compare): Likewise.
10884 (decimal_convert): Likewise.
10885 * dfp.h (decimal_from_integral): New prototype.
10886 (decimal_from_floating): Likewise.
10887 (decimal_to_double): Likewise.
10888 (decimal_binop): Likewise.
10889 (decimal_is_zero): Likewise.
10890 (decimal_compare): Likewise.
10891 (decimal_convert): Likewise.
10892 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10893 call to value_from_decfloat.
10894 * valarith.c: Include dfp.h.
10895 (value_args_as_decimal): New function.
10896 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10897 (value_logical_not): Likewise.
10898 (value_equal): Likewise.
10899 (value_less): Likewise.
10900 (value_pos): Likewise.
10901 (value_neg): Formatting fix.
10902 * valops.c: Include dfp.h.
10903 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10904 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10905 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10906 (value_from_decfloat): Remove expect_type argument.
10907 * value.h (value_from_decfloat): Update prototype.
10908
10909 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10910
10911 Ignore change in name of dynamic linker during
10912 execution on Solaris. This also unbreaks pending breakpoints.
10913
10914 * solist.h (struct target_so_ops): New field same.
10915 * solib-svr4.c (svr4_same): New.
10916 (_initialize_svr4_solib): Register svr4_same.
10917 * solib.c (update_solib_list): Use ops->same, if available.
10918
10919 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10920
10921 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10922 when using MS-DOS paths.
10923
10924 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10925
10926 * NEWS: Mention --pid and --core command line behaviour changes.
10927
10928 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10929
10930 * main.c (captured_main): Remove 'count' varible and the
10931 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10932 --pid options were issued simultaneously. If an explicit pid
10933 option was passed, don't fallback to core file. Detect extra
10934 arguments better in the presence of explicit pid or core
10935 arguments.
10936
10937 2008-01-05 Joel Brobecker <brobecker@adacore.com>
10938
10939 * ada-lang.c (ada_which_variant_applies): Correctly compute
10940 the value of the discriminant when the variant record is packed.
10941
10942 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10943
10944 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10945 that are used to differentiate homonyms.
10946
10947 2008-01-04 Jerome Guitton <guitton@adacore.com>
10948
10949 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10950 when the type is an anonymous pointer type.
10951 (ada_check_typedef): Avoid a seg fault when the type is null.
10952 * ada-typeprint.c (print_array_type): Add support for pointer
10953 to packed arrays.
10954
10955 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10956
10957 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
10958
10959 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10960
10961 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10962 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10963
10964 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10965
10966 * ada-exp.y (chop_separator): New function.
10967 (write_selectors): Rewrite to re-use chop_separator.
10968 (ada_nget_field_index, get_symbol_field_type): New functions.
10969 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10970 expressions.
10971
10972 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10973
10974 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10975 of SYMBOL_VALUE when working with function symbols.
10976
10977 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10978
10979 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10980 expressions. These expressions do not need to be rewriten.
10981
10982 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10983
10984 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10985 the given die is a declaration.
10986
10987 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10988
10989 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10990 Handle properly the case when the index type is an enumerated type.
10991 Do not return the subtype of the bounds type, just return the
10992 bounds type directly - this is not needed and is more consistent
10993 with what we do for arrays when no XA parallel type exists.
10994
10995 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10996
10997 * ada-lang.c (static_unwrap_type): Add forward declaration.
10998 (template_to_static_fixed_type): Fields of dynamic types sometimes
10999 also need to be unwrapped. Take this into account.
11000 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11001 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11002 * ada-typeprint.c (ada_print_type): Get the typename from
11003 the original type, not the base type.
11004
11005 2008-01-03 Jerome Guitton <guitton@adacore.com>
11006
11007 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
11008 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
11009 Update calls to ada_to_fixed_type.
11010 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11011 for the tag.
11012 (ada_to_fixed_type): Add check_tag parameter; do not look for
11013 tag if null. When looking for a tag, use a fixed record type.
11014 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11015 * ada-valprint.c (printable_val_type, ada_value_print): Update
11016 calls to ada_to_fixed_type.
11017
11018 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
11019
11020 * doublest.c (convert_floatformat_to_doublest): Call
11021 floatformat_to_doublest instead of floatformat_to_double and use
11022 DOUBLEST variables.
11023 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11024 instead of floatformat_from_double and use DOUBLEST variables.
11025
11026 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11027
11028 * MAINTAINERS (Write After Approval): Add self.
11029
11030 2008-01-03 Joel Brobecker <brobecker@adacore.com>
11031
11032 * symfile.c (set_initial_language): Make non-static.
11033 * symfile.h (set_initial_language): Add declaration.
11034 * language.c: #include "symfile.h".
11035 (set_language): Call set_initial_language if the frame language
11036 could not be determined.
11037
11038 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11039
11040 * eval.c (evaluate_subexp_for_address): Provide frame address to
11041 locate_var_value only if it will be needed.
11042
11043 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11044
11045 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11046
11047 2008-01-02 Joel Brobecker <brobecker@adacore.com>
11048
11049 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11050 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11051 This is needed to make sure that any other treatment applied
11052 to the resulting value does not fail for spurious reason,
11053 such as trying to take the address of this value.
11054
11055 2008-01-02 Joel Brobecker <brobecker@adacore.com>
11056
11057 * ada-lang.c (ada_value_equal): Dereference reference types when
11058 comparing arrays.
11059
11060 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11061
11062 Updated copyright notices for most files.
11063
11064 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11065
11066 * win32-nat.c (psapi_module_handle): Remove static.
11067 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11068 return first module found if base_address is zero. Don't initialize
11069 psapi function pointers here. Convert to cygwin paths when
11070 appropriate.
11071 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11072 executable name. Use get_module_name when that fails or when
11073 !__CYGWIN__.
11074 (_initialize_psapi): New function. Initialize psapi stuff before it is
11075 needed or issue a warning if it is not found. Move psapi_module_handle
11076 here.
11077
11078 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11079
11080 * ada-lang.c (ada_remove_trailing_digits): New function.
11081 (ada_remove_po_subprogram_suffix): New function.
11082 (ada_decode): Improve. Move the description of the algorithm
11083 directly inside the code, instead of in the function global
11084 description.
11085
11086 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11087
11088 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11089 and always print the dereferenced value.
11090
11091 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11092
11093 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11094 of the case where the first argument is a reference.
11095 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11096
11097 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11098
11099 Implement support for Ada interface types.
11100
11101 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11102 (ada_is_ignored_field): Ignore fields that are a dispatch table
11103 of a tagged type.
11104
11105 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11106
11107 * top.c (print_gdb_version): Update copyright year.
11108
11109 2008-01-01 Joel Brobecker <brobecker@adacore.com>
11110
11111 * ChangeLog-2007: New ChangeLog rotation.
11112 * ChangeLog: Reset for 2008.
11113 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11114 ChangeLog-2007.
11115
11116 For older changes see ChangeLog-2007.
11117 \f
11118 Local Variables:
11119 mode: change-log
11120 left-margin: 8
11121 fill-column: 74
11122 version-control: never
11123 coding: utf-8
11124 End:
This page took 0.403357 seconds and 5 git commands to generate.