2008-11-19 Sterling Augustine <sterling@tensilica.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca30a762
TT
12008-11-21 Tom Tromey <tromey@redhat.com>
2
3 * python/python-internal.h (PyGILState_Ensure): New define.
4 (PyGILState_Release): Likewise.
5 (PyEval_InitThreads): Likewise.
6 (PyThreadState_Swap): Likewise.
7 (PyEval_InitThreads): Likewise.
8 * python/python.c (_initialize_python): Initialize threads.
9 Release GIL.
10 (eval_python_from_control_command): Acquire GIL.
11 (python_command): Likewise.
12 * python/python-internal.h (make_cleanup_py_restore_gil):
13 Declare.
14 * python/python-utils.c (py_gil_restore): New function.
15 (make_cleanup_py_restore_gil): Likewise.
16
d2bf72c0
DE
172008-11-20 Doug Evans <dje@google.com>
18
19 * frame.c (frame_debug_got_null_frame): Remove file arg.
20 All callers updated.
21
c7e8a53c
PA
222008-11-20 Pedro Alves <pedro@codesourcery.com>
23
24 * infrun.c (resume): If following a fork, also reset regcache,
25 gdbarch and pc.
26
e2fd701e
DE
272008-11-20 Doug Evans <dje@google.com>
28
29 * printcmd.c (sym_info): Don't print the offset if it's zero.
30
607cecd2
PA
312008-11-20 Pedro Alves <pedro@codesourcery.com>
32
33 * infrun.c (resume): If following a fork, reread the current
34 thread. Avoid dereferencing a possibly dangling pointer.
35
642fd101
DE
362008-11-19 Doug Evans <dje@google.com>
37
38 * inferior.h (proceed_to_finish): Delete, unused.
39 (stop_registers): Tweak comment.
40 * infrun.c (stop_registers): Tweak comment.
41
9bc7b6c6
KB
422008-11-19 Kevin Buettner <kevinb@redhat.com>
43
44 * frv-tdep.c (frv_skip_main_prologue): New function.
45 (frv_gdbarch_init): Register frv_skip_main_prologue.
46 * solib-frv.c (fetch_loadmap): Return early when no segments are
47 found.
48 (frv_relocate_main_executable): Return early when both interpreter
49 and executable loadmap addresses are zero.
50
d0107bb6
BW
512008-11-19 Bob Wilson <bob.wilson@acm.org>
52
53 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
54 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
55 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
56 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
57 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
58 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
59 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
60 (xtensa_submask15): Adjust register numbers.
61 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
62 (xtensa_regmap_table): Add entry for scompare1.
63 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
64 and scompare1.
65
6e5abd65
PA
662008-11-19 Pedro Alves <pedro@codesourcery.com>
67
68 * remote.c (escape_buffer): New.
69 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
70 sure debug output printing a packet buffer goes through a single
71 fprintf_unfiltered call.
72 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
73 output with a newline if it wasn't going to already.
74
15c99a44
PP
752008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
76
77 * maint.c (maintenance_translate_address): Fix a buglet.
78
2c4ad781
TJB
792008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
80
81 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
82 rs6000/powerpc-isa205-altivec32l-expedite,
83 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
84 rs6000/powerpc-isa205-altivec64l-expedite,
85 powerpc-isa205-vsx64l-expedite): New variables.
86 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
87 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
88 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
89 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
90 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
91 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
92
69abc51c
TJB
932008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
94
95 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
96 offset for full 64-bit slot of FPSCR when in 32-bits.
97 (ppc_linux_read_description): Return target description with 64-bit
98 FPSCR when inferior is running on an ISA 2.05 or later processor.
99 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
100 initialize_tdec_powerpc_isa205_32l,
101 initialize_tdec_powerpc_isa205_altivec32l,
102 initialize_tdec_powerpc_isa205_vsx32l,
103 initialize_tdec_powerpc_isa205_64l,
104 initialize_tdec_powerpc_isa205_altivec64l and
105 initialize_tdec_powerpc_isa205_vsx64l.
106 * ppc-linux-tdep.h: Add external declaration for
107 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
108 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
109 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
110 * features/rs600/powerpc-fpu-isa205.xml: New file.
111 * features/rs600/powerpc-isa205-32l.xml: New file.
112 * features/rs600/powerpc-isa205-64l.xml: New file.
113 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
114 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
115 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
116 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
117 * features/rs600/powerpc-isa205-32l.c: Generate.
118 * features/rs600/powerpc-isa205-64l.c: Generate.
119 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
120 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
121 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
122 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
123
c14c28ba
PP
1242008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
125
126 * objfiles.h: New MULTI_OBJFILE_P macro.
127 * printcmd.c (sym_info): Print object name.
128 * maint.c (maintenance_translate_address): Likewise.
129
d5cbbe6e
JB
1302008-11-18 Joel Brobecker <brobecker@adacore.com>
131
132 * NEWS: Document the removal of "catch load" and "catch unload".
133
2e74121d
DE
1342008-11-17 Doug Evans <dje@google.com>
135
136 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
137 on error messages.
138
a7212384
UW
1392008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
140
141 PR gdb/2250
142 * infrun.c (clear_proceed_status_thread): New function.
143 (clear_proceed_status_callback): New function.
144 (clear_proceed_status): In all-stop mode, clear per-thread
145 proceed status of *all* threads, not only the current.
146 (handle_inferior_event): In all-stop mode, if we're stepping
147 one thread, but got some inferior event in another thread
148 that does not cause GDB to break to the user interface,
149 ensure the interrupted stepping operation continues in the
150 original thread.
151 (currently_stepping): Move thread-related tests to ...
152 (currently_stepping_thread): ... this new function.
153 (currently_stepping_callback): New function.
154
66bb093b
VP
1552008-11-17 Vladimir Prus <vladimir@codesourcery.com>
156
157 Implement =thread-selected notification.
158
159 * mi/mi-common.h (struct mi_interp): New, moved from ...
160 * mi/mi-interp.c: ...here.
161 * mi/mi-main.c (mi_execute_command): If the thread changed
162 as result of command, report that.
163
8dd4f202
VP
1642008-11-17 Vladimir Prus <vladimir@codesourcery.com>
165
166 Implement continue/interrupt of thread groups.
167
168 * mi/mi-main.c (proceed_thread_callback): New.
169 (mi_cmd_exec_continue): If --thread-group is specified, resume all
170 threads in that group.
171 (interrupt_thread_callback): New.
172 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
173 all threads in that group.
174
6418d433
VP
1752008-11-17 Vladimir Prus <vladimir@codesourcery.com>
176
177 Implement '-target-detach pid'.
178
179 * infcmd.c (detach_command): Make nonstatic.
180 * inferior.h (detach_command): Declare.
181 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
182 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
183 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
184
3d043ef6
VP
1852008-11-17 Vladimir Prus <vladimir@codesourcery.com>
186
187 Include group-id in thread-created notification.
188
189 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
190 group id in the output.
191
4a92f99b
VP
1922008-11-17 Vladimir Prus <vladimir@codesourcery.com>
193
194 Notification for attach/detach.
195
196 * inferior.c: Call the process observers.
197 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
198 (mi_interpreter_init): Register the above.
199
3ee1c036
VP
2002008-11-17 Vladimir Prus <vladimir@codesourcery.com>
201
202 Implement -list-thread-groups.
203
204 * thread.c (print_thread_info): New parameter pid, to print
205 threads of specific process.
206 * gdbthread.h (print_thread_info): New parameter pid.
207 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
208 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
209 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
210 (print_one_process, mi_cmd_list_thread_groups): New.
211
283de25f
JB
2122008-11-16 Joel Brobecker <brobecker@adacore.com>
213
214 Remove some unused macros related to the old load/unload catchpoints.
215
216 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
217 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
218 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
219
533be4dd
JB
2202008-11-16 Joel Brobecker <brobecker@adacore.com>
221
222 Remove support for catch load and catch unload commands.
223
224 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
225 (struct breakpoint): Remove fields dll_pathname and
226 triggered_dll_pathname.
227 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
228 * breakpoint.c (ep_is_catchpoint): Remove handling of
229 bp_catch_load and bp_catch_unload.
230 (print_it_typical, bpstat_check_location, bpstat_what)
231 (print_one_breakpoint_location, print_one_breakpoint_location)
232 (user_settable_breakpoint, allocate_bp_location)
233 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
234 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
235 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
236 (catch_load_command_1, catch_unload_command_1): Delete.
237 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
238 command creation.
239 * infrun.c (handle_inferior_event): Remove the handling of
240 load/unload catchpoint events.
241
59205f5a
JB
2422008-11-15 Joel Brobecker <brobecker@adacore.com>
243
244 From Jerome Guitton <guitton@adacore.com>
245 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
246 New function.
247 (dwarf_decode_lines): Detect null file numbers. Detect the end of
248 the line program sequence when no end sequence is emitted.
249
96967637
JB
2502008-11-15 Joel Brobecker <brobecker@adacore.com>
251
252 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
253 type dereferencing.
254
da8bd9a3
DJ
2552008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * NEWS: Mention sparc64-linux-gnu gdbserver support.
258
dfb64f85
DJ
2592008-11-14 Daniel Gutson <dgutson@codesourcery.com>
260
261 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
262 * regformats/reg-sparc64.dat: New file.
263
59669435
TT
2642008-11-14 Tom Tromey <tromey@redhat.com>
265
266 PR mi/2549:
267 * mi/mi-main.c (get_register): Use get_formatted_print_options.
268
06be140c
JB
2692008-11-13 Joel Brobecker <brobecker@adacore.com>
270
271 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
272
759cc328
UW
2732008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
274
275 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
276 AT_EXECFN. Re-sort AT_SECURE.
277
73e113d4
JK
2782008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
279
280 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
281
c31ad2a1
JB
2822008-11-13 Joel Brobecker <brobecker@adacore.com>
283
284 * ia64-tdep.c: Remove commented out #define.
285
84290f2f
JB
2862008-11-12 Joel Brobecker <brobecker@adacore.com>
287
288 From Joel Sherrill <joel.sherrill@oarcorp.com>
289 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
290 instead of the "gdbsim_ops" global.
291
de04a248
DE
2922008-11-11 Doug Evans <dje@google.com>
293
294 * infcall.c (call_function_by_hand): Handle inferior exit.
295
3c8b2eda
TJB
2962008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
297
298 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
299 missing struct target_ops argument.
300
f5d9a292
JS
3012008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
302
303 * MAINTAINERS: Add myself for write after approval privileges.
304
de8ee0e2
TT
3052008-11-10 Tom Tromey <tromey@redhat.com>
306
307 * gdbtypes.c (copy_type_recursive): Clear new fields.
308
b03a6ea4
TT
3092008-11-10 Tom Tromey <tromey@redhat.com>
310
311 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
312 cleanups on early return.
313
136d6dae
VP
3142008-11-09 Vladimir Prus <vladimir@codesourcery.com>
315
316 Kill pthread_ops_hack
317
318 * target.h (struct target_ops): Make to_attach, to_detach,
319 to_create_inferior and to_mourn_inferior accept a pointer
320 to struct target_ops.
321 (target_attach, target_create_inferior, target_create_inferior):
322 Convert from macros to function. Find the right target to
323 invoke a method of.
324 (find_default_attach, find_default_create_inferior): New parameter
325 ops.
326 * corefile.c (core_file_command): Pass target to to_detach.
327 * corelow.c (core_detach): Add 'ops' parameter.
328 * fork-child.c (fork_inferior): Return the pid. Allow
329 init_trace_fun to be NULL.
330 * inf-ptrace (ptrace_ops_hack): Remove.
331 (inf_ptrace_him): Remove, moving all logic into....
332 (inf_ptrace_create_inferior): ... here. Push the target
333 passed as parameter.
334 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
335 Push/pop target passed as parameter, no ptrace_ops_hack.
336 (inf_ptrace_target): Don't remember result.
337 * inferior.h (fork_inferior): Adjust prototype.
338 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
339 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
340 Pass it to linux_ops target.
341 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
342 New parameter ops. Pass it to the target beneath.
343 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
344 (extended_remote_create_inferior): New parameter ops. Pass it
345 further.
346 * target.c (debug_to_attach, debug_to_detach)
347 (debug_to_mourn_inferior): New parameter ops.
348 (target_create_inferior): New.
349 (update_current_target): Do not inherit to_attach, to_detach,
350 to_create_inferiour, to_mourn_inferior. Do not default
351 to_detach and to_mourn_inferior.
352 (target_detach): Find the right target to use.
353 (target_mourn_inferior): New.
354 (find_default_attach, find_default_create_inferior): New parameter
355 ops. Pass the found target when calling its method.
356 (init_dummy_target): Provide fallback definition of to_detach.
357 (target_attach): New.
358 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
359 (debug_to_mourn_inferiour): New parameter ops.
360 * aix-thread.c: Adjust.
361 * bsd-uthread.c: Adjust.
362 * gnu-nat.c: Adjust.
363 * go32-nat.c: Adjust.
364 * hpux-thread.c: Adjust.
365 * inf-ttrace.c: Ajust.
366 * monitor.c: Adjust.
367 * nto-procfs.c: Adjust.
368 * procfs.c: Adjust.
369 * remote-m32r-sdi.c: Adjust.
370 * remote-mips.c: Adjust.
371 * remote-sim.c: Adjust.
372 * rs6000-nat.c: Adjust.
373 * sol-thread.c: Adjust.
374 * win32-nat.c: Adjust.
375 * dec-thread.c: Adjust.
376
ed406532
VP
3772008-11-09 Vladimir Prus <vladimir@codesourcery.com>
378
379 * thread.c (print_thread_info): Eliminate now useless checks
380 for exited threads.
381
48fb2d97
PA
3822008-11-06 Pedro Alves <pedro@codesourcery.com>
383
384 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
385 to 0.
386
29c87f7f
PA
3872008-11-05 Pedro Alves <pedro@codesourcery.com>
388
389 * remote.c (notice_new_inferiors): Add a new inferior only when
390 we're going to add a new thread.
391
e0ba6746
PA
3922008-11-05 Pedro Alves <pedro@codesourcery.com>
393
394 * defs.h (add_inferior_continuation)
395 (do_all_inferior_continuations)
396 (discard_all_inferior_continuations): Declare.
397 * utils.c (add_inferior_continuation)
398 (do_all_inferior_continuations)
399 (discard_all_inferior_continuations): New.
400 * inferior.h (struct inferior) <continuations>: New field.
401 * inferior.c (free_inferior): Discard all the inferior
402 continuations.
403 * inf-loop.c (inferior_event_handler): Do all current inferior
404 continuations.
405 * infcmd.c (attach_command): Register an inferior continuation
406 instead of a thread continuation.
407 * infrun.c (handle_inferior_event): If stop_soon is
408 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
409
d3fd5342
PA
4102008-11-04 Pedro Alves <pedro@codesourcery.com>
411
412 * inf-loop.c (inferior_event_handler): On INF_ERROR and
413 INF_REG_EVENT throwing, don't call target_async or pop_target.
414 Call pop_all_targets_above.
415 * remote.c (remote_close): Call remote_terminal_ours. Don't call
416 signal or target_async.
417
1c9f699c
DJ
4182008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
419
420 * eval.c (evaluate_subexp_standard): Assert that there is at
421 least one array dimension.
422
cb0362bb
VP
4232008-11-03 Vladimir Prus <vladimir@codesourcery.com>
424
425 Make attach_command exception-safe
426 * infcmd.c (attach_command): Call async_enable_stdin
427 if exception is thrown.
428
9bc9e927
PA
4292008-11-03 Pedro Alves <pedro@codesourcery.com>
430
431 * gdbarch.sh (has_global_solist): Mention global breakpoints.
432 * gdbarch.h: Regenerate.
433
50c71eaf
PA
4342008-11-03 Pedro Alves <pedro@codesourcery.com>
435
436 * remote.c (remote_start_remote): If the solib list is global,
437 fetch libraries and insert breakpoints after connecting.
438 * infcmd.c (post_create_inferior): If the solist is shared between
439 inferiors, no need to refetch it on every new inferior.
440 (detach_command): If the shared library list is shared between
441 inferiors, then don't clear it on every inferior detach.
442 * gdbarch.sh (has_global_solist): New.
443 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
444 gdbarch_has_global_solist.
445 * target.c (target_pre_inferior): If the shared library list is
446 shared between inferiors, then don't clear it here, neither
447 invalidate the memory regions or clear the target description.
448 (target_detach): If the shared library list is shared between
449 inferiors, then don't remove breakpoints from the target here.
450 (target_disconnect): Comment.
451 * solib.c (update_solib_list): Check for null_ptid.
452 * breakpoint.c (insert_breakpoints, update_global_location_list):
453 If the shared library list is shared between inferiors, insert
454 breakpoints even if there's no execution.
455 (breakpoint_init_inferior): If the shared library list is shared
456 between inferiors, don't delete breakpoints or mark them
457 uninserted here.
458
459 * gdbarch.c, gdbarch.h: Regenerate.
460
2fdf0e42
PA
4612008-10-31 Pedro Alves <pedro@codesourcery.com>
462
463 * inferior.h (inferior_ignoring_leading_exec_events): Delete
464 declaration.
465
3990c31b
PA
4662008-10-31 Pedro Alves <pedro@codesourcery.com>
467
468 * inferior.h (write_inferior_status_register): Delete.
469 * infrun.c (write_inferior_status_register): Delete.
470
2a2546f0 4712008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
472
473 * value.c (coerce_array): Use check_typedef.
474
2a2546f0 4752008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
476
477 * cli/cli-logging.c (handle_redirections): Make a cleanup.
478 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
479 * regcache.c (regcache_print): Make a cleanup.
480 * maint.c (maintenance_print_architecture): Make a cleanup.
481 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
482
a05016c0
TT
4832008-10-30 Tom Tromey <tromey@redhat.com>
484
485 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
486 (do_close_cleanup): Don't free 'fd'.
487
2a2546f0 4882008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
489
490 * source.c (symtab_to_fullname): Test 'r >= 0'.
491 (psymtab_to_fullname): Likewise.
492 (get_filename_and_charpos): Make a cleanup.
493 (forward_search_command): Likewise.
494 (reverse_search_command): Likewise.
495 * exec.c (exec_file_attach): Close scratch_chan on failure.
496 * nto-procfs.c (procfs_open): Make a cleanup.
497 (procfs_pidlist): Likewise.
498 (do_closedir_cleanup): New function.
499
c2226152
AS
5002008-10-30 Andreas Schwab <schwab@suse.de>
501
502 * infcmd.c (construct_inferior_arguments): Handle newlines
503 specially.
504
fe798b75
JB
5052008-10-30 Joel Brobecker <brobecker@adacore.com>
506
507 * breakpoint.h (enum bptype): Delete bp_catch_exec.
508 * breakpoint.c (insert_catchpoint): Remove handling for
509 bp_catch_exec breakpoint kinds.
510 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
511 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
512 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
513 (print_one_breakpoint_location, user_settable_breakpoint)
514 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
515 (allocate_bp_location, mention, breakpoint_re_set_one)
516 (disable_command, enable_command): Likewise.
517 (create_exec_event_catchpoint): Delete.
518 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
519 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
520 New functions.
521 (catch_exec_breakpoint_ops): New static global.
522 (catch_exec_command_1): Use create_catchpoint instead of
523 create_exec_event_catchpoint to create the exec catchpoint.
524
f154cae1
TT
5252008-10-28 Tom Tromey <tromey@redhat.com>
526
527 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
528 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
529 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
530 (cli-utils.o): Remove.
531 * cli/cli-utils.c: Remove.
532 * cli/cli-utils.h: Remove.
533
79a45b7d
TT
5342008-10-28 Tom Tromey <tromey@redhat.com>
535
536 * varobj.c (value_get_print_value): Include valprint.h.
537 (value_get_print_value): Use get_formatted_print_options.
538 * value.h (struct value_print_options): Declare.
539 (value_print, val_print, common_val_print, val_print_string):
540 Update.
541 * value.c: Include valprint.h.
542 (show_values): Use get_user_print_options.
543 (show_convenience): Likewise.
544 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
545 declare.
546 (struct value_print_options): New type.
547 (vtblprint, unionprint, addressprint, objectprint, print_max,
548 inspect_it, repeat_count_threshold, output_format,
549 stop_print_at_null): Don't declare.
550 (user_print_options, get_user_print_options,
551 get_raw_print_options, get_formatted_print_options): Declare.
552 (print_array_indexes_p): Don't declare.
553 (maybe_print_array_index, val_print_array_elements): Update.
554 * valprint.c (print_max): Remove.
555 (user_print_options): New global.
556 (get_user_print_options, get_raw_print_options,
557 get_formatted_print_options): New functions.
558 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
559 prettyprint_structs, prettyprint_arrays, unionprint,
560 addressprint): Remove.
561 (val_print): Remove format, deref_ref, pretty arguments; add
562 options. Update.
563 (common_val_print): Likewise.
564 (print_array_indexes_p): Remove.
565 (maybe_print_array_index): Remove format, pretty arguments; add
566 options. Update.
567 (val_print_array_elements): Remove format, deref_ref, pretty
568 arguments; add options. Update.
569 (val_print_string): Add options argument. Update.
570 (_initialize_valprint): Use user_print_options.
571 (output_format): Remove.
572 (set_output_radix_1): Use user_print_options.
573 * typeprint.c: Include valprint.h.
574 (objectprint): Don't declare.
575 (whatis_exp): Use get_user_print_options.
576 * tui/tui-regs.c: Include valprint.h.
577 (tui_register_format): Use get_formatted_print_options.
578 * tracepoint.c: Include valprint.h.
579 (addressprint): Don't declare.
580 (trace_mention): Use get_user_print_options.
581 (tracepoints_info): Likewise.
582 * stack.c (print_frame_args): Use get_raw_print_options.
583 (print_frame_info): Use get_user_print_options.
584 (print_frame): Likewise.
585 * sh64-tdep.c: Include valprint.h
586 (sh64_do_register): Use get_formatted_print_options.
587 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
588 pretty arguments; add options.
589 (scm_scmlist_print): Likewise. Update.
590 (scm_scmval_print): Likewise.
591 (scm_val_print): Likewise.
592 (scm_value_print): Remove format, pretty arguments; add options.
593 Update.
594 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
595 Update.
596 * scm-lang.c (scm_printstr): Add options argument.
597 * python/python-value.c: Include valprint.h.
598 (valpy_str): Use get_user_print_options.
599 * printcmd.c: Include valprint.h.
600 (addressprint): Don't declare.
601 (inspect_it): Remove.
602 (print_formatted): Remove format option; add options. Update.
603 (print_scalar_formatted): Likewise.
604 (print_address_demangle): Use get_user_print_options.
605 (do_examine): Use get_formatted_print_options.
606 (print_command_1): Likewise.
607 (output_command): Use get_formatted_print_options.
608 (do_one_display): Likewise.
609 (print_variable_value): Use get_user_print_options.
610 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
611 pretty arguments; add options. Update.
612 (pascal_value_print): Remove format, pretty arguments; add
613 options. Update.
614 (vtblprint, objectprint): Don't declare.
615 (pascal_static_field_print): Remove.
616 (pascal_object_print_value_fields): Remove format, pretty
617 arguments; add options. Update.
618 (pascal_object_print_static_field): Likewise.
619 (_initialize_pascal_valprint): Use user_print_options. Update.
620 * p-lang.h (pascal_val_print, pascal_value_print,
621 pascal_printstr, pascal_object_print_value_fields): Update.
622 (vtblprint, static_field_print): Don't declare.
623 * p-lang.c (pascal_printstr): Add options argument. Update.
624 * objc-lang.c (objc_printstr): Add options argument. Update.
625 * mt-tdep.c: Include valprint.h.
626 (mt_registers_info): Use get_raw_print_options.
627 * mips-tdep.c: Include valprint.h.
628 (mips_print_fp_register): Use get_formatted_print_options.
629 (mips_print_register): Likewise.
630 * mi/mi-main.c: Include valprint.h.
631 (get_register): Use get_user_print_options.
632 (mi_cmd_data_evaluate_expression): Likewise.
633 (mi_cmd_data_read_memory): Use get_formatted_print_options.
634 * mi/mi-cmd-stack.c: Include valprint.h.
635 (list_args_or_locals): Use get_raw_print_options.
636 * m2-valprint.c (print_function_pointer_address): Add addressprint
637 argument.
638 (m2_print_long_set): Remove format, pretty arguments.
639 (m2_print_unbounded_array): Remove format, deref_ref, pretty
640 arguments; add options. Update.
641 (print_unpacked_pointer): Remove format argument; add options.
642 Now static. Update.
643 (print_variable_at_address): Remove format, deref_ref, pretty
644 arguments; add options. Update.
645 (m2_print_array_contents): Likewise.
646 (m2_val_print): Likewise.
647 * m2-lang.h (m2_val_print): Update.
648 * m2-lang.c (m2_printstr): Add options argument. Update.
649 * language.h (struct value_print_options): Declare.
650 (struct language_defn) <la_printstr>: Add options argument.
651 <la_val_print>: Remove format, deref_ref, pretty argument; add
652 options.
653 <la_value_print>: Remove format, pretty arguments; add options.
654 <la_print_array_index>: Likewise.
655 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
656 LA_PRINT_ARRAY_INDEX): Update.
657 (default_print_array_index): Update.
658 * language.c (default_print_array_index): Remove format, pretty
659 arguments; add options. Update.
660 (unk_lang_printstr): Add options argument.
661 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
662 add options.
663 (unk_lang_value_print): Remove format, pretty arguments; add
664 options.
665 * jv-valprint.c (java_value_print): Remove format, pretty
666 arguments; add options. Update.
667 (java_print_value_fields): Likewise.
668 (java_val_print): Remove format, deref_ref, pretty arguments; add
669 options. Update.
670 * jv-lang.h (java_val_print, java_value_print): Declare.
671 * infcmd.c: Include valprint.h.
672 (print_return_value): Use get_raw_print_options.
673 (default_print_registers_info): Use get_user_print_options,
674 get_formatted_print_options.
675 (registers_info): Use get_formatted_print_options.
676 * gdbtypes.h (struct value_print_options): Declare.
677 (print_scalar_formatted): Update.
678 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
679 pretty arguments; add options. Update.
680 (f77_print_array): Likewise.
681 (f_val_print): Likewise.
682 * f-lang.h (f_val_print): Update.
683 * f-lang.c (f_printstr): Add options argument. Update.
684 (c_value_print): Update declaration.
685 * expprint.c: Include valprint.h.
686 (print_subexp_standard): Use get_raw_print_options,
687 get_user_print_options.
688 * eval.c: Include valprint.h.
689 (objectprint): Don't declare.
690 (evaluate_subexp_standard): Use get_user_print_options.
691 * cp-valprint.c (vtblprint, objectprint, static_field_print):
692 Remove.
693 (cp_print_value_fields): Remove format, pretty arguments; add
694 options. Update.
695 (cp_print_value): Likewise.
696 (cp_print_static_field): Likewise.
697 (_initialize_cp_valprint): Use user_print_options. Update.
698 * c-valprint.c (print_function_pointer_address): Add addressprint
699 argument.
700 (c_val_print): Remove format, deref_ref, pretty arguments; add
701 options. Update.
702 (c_value_print): Add options argument. Update.
703 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
704 (vtblprint, static_field_print): Don't declare.
705 (cp_print_value_fields): Update.
706 * c-lang.c (c_printstr): Add options argument. Update.
707 * breakpoint.c: Include valprint.h.
708 (addressprint): Don't declare.
709 (watchpoint_value_print): Use get_user_print_options.
710 (print_one_breakpoint_location): Likewise.
711 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
712 print_exception_catchpoint): Likewise.
713 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
714 get_user_print_options.
715 * ada-valprint.c (struct ada_val_print_args): Remove format,
716 deref_ref, and pretty; add options.
717 (print_optional_low_bound): Add options argument.
718 (val_print_packed_array_elements): Remove format and pretty
719 arguments; add options. Update.
720 (printstr): Add options argument. Update.
721 (ada_printstr): Likewise.
722 (ada_val_print): Remove format, deref_ref, pretty arguments; add
723 options argument. Update.
724 (ada_val_print_stub): Update.
725 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
726 add options. Update.
727 (ada_val_print_1): Likewise.
728 (print_variant_part): Likewise.
729 (ada_value_print): Remove format, pretty arguments; add options.
730 Update.
731 (print_record): Likewise.
732 (print_field_values): Likewise.
733 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
734 Update.
735 * ada-lang.c (ada_print_array_index): Add options argument; remove
736 format and pretty arguments.
737 (print_one_exception): Use get_user_print_options.
738
7c8a8b04
TT
7392008-10-28 Tom Tromey <tromey@redhat.com>
740
741 * cli/cli-script.c (do_fclose_cleanup): Remove.
742 (script_from_file): Use make_cleanup_fclose.
743 * xml-tdesc.c (do_cleanup_fclose): Remove.
744 (fetch_xml_from_file): Use make_cleanup_fclose.
745 * tracepoint.c (tracepoint_save_command): Use
746 make_cleanup_fclose. Always free pathname.
747 * source.c (print_source_lines_base): Use make_cleanup_fclose.
748 * remote.c (fclose_cleanup): Remove.
749 (remote_file_put): Use make_cleanup_fclose.
750 (remote_file_get): Likewise.
751 * linux-nat.c (linux_nat_find_memory_regions): Use
752 make_cleanup_fclose.
753 (linux_nat_info_proc_cmd): Likewise.
754 (linux_proc_pending_signals): Likewise.
755 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
756 Free file name.
757 * cli/cli-dump.c (do_fclose_cleanup): Remove.
758 (make_cleanup_fclose): Remove.
759 * defs.h (make_cleanup_fclose): Declare.
760 * utils.c (do_fclose_cleanup): New function.
761 (make_cleanup_fclose): Likewise.
762
5a55c295
PA
7632008-10-27 Pedro Alves <pedro@codesourcery.com>
764
765 * inflow.c (kill_command): If the target claims there is still
766 execution, don't clear the thread list.
767
5256a53b
PA
7682008-10-27 Pedro Alves <pedro@codesourcery.com>
769
770 * cp-name-parser.y: Include defs.h instead of config.h.
771 (parse_escape): Rename to ...
772 (cp_parse_escape): ... this.
773 (yylex): Update.
774 (xfree) [TEST_CPNAMES]: New.
775
e8ecdb5c
PA
7762008-10-27 Pedro Alves <pedro@codesourcery.com>
777
778 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
779 2.13 and configure.in.
780
8a305172
PA
7812008-10-27 Pedro Alves <pedro@codesourcery.com>
782
783 * target.h (struct target_ops) <to_supports_multi_process>: New
784 field.
785 (target_supports_multi_process): New define.
786 * target.c (update_current_target): Inherit and de_fault
787 to_supports_multi_process.
788 * infcmd.c (attach_command): Allow attaching to multiple processes
789 if the target supports it.
790 (detach_command): If the target claims there is still execution,
791 don't clear the thread list.
792 * remote.c (remote_supports_multi_process): New.
793 (init_remote_ops): Register remote_supports_multi_process.
794
676e87b3
PA
7952008-10-27 Pedro Alves <pedro@codesourcery.com>
796
797 * Makefile.in (.y.c, .l.c): sed free to xfree.
798
f0323ca0
PA
7992008-10-27 Pedro Alves <pedro@codesourcery.com>
800
801 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
802 $(TM_CLIBS).
803 (CDEPS): Remove reference to $(TM_CDEPS).
804
3067f6e5
MS
8052008-10-26 Michael Snyder <msnyder@vmware.com>
806
807 * infrun.c (handle_inferior_event): Handle dynamic symbol
808 resolution in reverse.
809
6130d0b7
JB
8102008-10-25 Joel Brobecker <brobecker@adacore.com>
811
812 * infrun.c: Minor comment reformatting.
813
bbe2ba60
PA
8142008-10-25 Pedro Alves <pedro@codesourcery.com>
815
816 * ada-exp.y (write_object_renaming): Use malloc instead of
817 xmalloc.
818 * p-exp.y (pop_current_type): Use free instead of xfree.
819
2e979b94
PA
8202008-10-24 Pedro Alves <pedro@codesourcery.com>
821
822 * fork-child.c (startup_inferior): Only set threads not-executing
823 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
824 keep waiting, don't resume. On all other cases but
825 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
826 the event ptid.
827
74531fed
PA
8282008-10-24 Pedro Alves <pedro@codesourcery.com>
829
830 Remote non-stop mode support.
831
832 * remote.c (pending_stop_reply): New.
833 (struct remote_state) <non_stop_aware, support_vCont_t>: New
834 fields.
835 (remote_async_inferior_event_token)
836 (remote_async_get_pending_events_token): New.
837 (notice_new_inferiors): New, abstracted out from record_currthread.
838 (record_currthread): Call it.
839 (remote_threads_info): Default threads to running in non-stop
840 mode. In non-stop mode, only qfThreadInfo is supported.
841 (remote_close): Discard all pending stop_replies. Close the event
842 sources.
843 (set_stop_requested_callback): New.
844 (remote_start_remote): Implement non-stop mode startup. In
845 all-stop, don't clear the thread list here.
846 (remote_non_stop_feature): New.
847 (remote_protocol_features): Add a "QNonStop" feature.
848 (remote_open_1): Clear cached_wait_status and non_stop_aware.
849 Clear the thread list here.
850 (remote_detach_1): Discard pending stop replies of the process we
851 detached from.
852 (extended_remote_attach_1): Implement non-stop mode.
853 (remote_vcont_probe): Recognize `vCont;t'.
854 (remote_vcont_resume): Implement non-stop mode.
855 (remote_resume): Don't set waiting_for_stop_reply in non-stop
856 mode.
857 (remote_stop_ns): New.
858 (remote_stop): Rename to ...
859 (remote_stop_as): ... this. If we have a cached wait status,
860 don't bother interrupting the remote.
861 (remote_stop): Reimplement as wrapper around remote_stop_as and
862 remote_stop_ns.
863 (interrupt_query): Don't query in async mode.
864 (struct cached_reg, cahed_reg_t): New.
865 (struct stop_reply): New.
866 (stop_reply_queue): New.
867 (stop_reply_xmalloc, stop_reply_xfree)
868 (discard_pending_stop_replies, do_stop_reply_xfree)
869 (queued_stop_reply, push_stop_reply, peek_stop_reply)
870 (remote_parse_stop_reply, remote_get_pending_stop_replies)
871 (process_stop_reply): New.
872 (remote_wait_ns): New.
873 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
874 notion of current general thread is a process exit was reported.
875 (remote_wait): Call remote_wait_ns in non-stop mode.
876 (handle_notification): New.
877 (putpkt_binary): Handle notifications. Don't care for
878 waiting_for_stop_reply in non-stop mode.
879 (getpkt_sane): Rename to ...
880 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
881 argument. Handle it. Handle notifications.
882 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
883 (getpkt_or_notif_sane): New.
884 (select_new_thread_callback): Check for exited state instead of
885 comparing the ptid against minus_one_ptid.
886 (extended_remote_create_inferior_1): Query the remote about the
887 current thread.
888 (remote_supports_non_stop): New.
889 (init_remote_ops): Register it.
890 (remote_async_inferior_event_handler): New.
891 (remote_async_get_pending_events_handler): New.
892
893 * infcmd.c (proceed_thread_callback): Comment.
894 (proceed_after_attach_callback, proceed_after_attach): New.
895 (attach_command_post_wait): In background attach, resume all
896 threads, but only if they are unsignalled, and not explicitly
897 stopped. In foreground attach, in non-stop mode, make sure to
898 stop all threads of the just attached to process.
899 (attach_command): In non-stop mode: If doing a background attach,
900 stop at least one thread. If a foreground attach, stop all
901 threads.
902
50d01748
PA
9032008-10-24 Pedro Alves <pedro@codesourcery.com>
904
905 * event-loop.h: Mention async_event_handlers.
906 (async_event_handler): Forward declare.
907 (async_event_handler_func): New typedef.
908 (create_async_event_handler, delete_async_event_handler)
909 (mark_async_event_handler): Declare.
910 * event-loop.c (event_data): New.
911 (event_handler_func): Take an event_data instead of an integer.
912 (struct gdb_event): Replace the integer file descriptor by a
913 generic event_data.
914 (async_event_handler): New.
915 (async_handler_ready): Delete.
916 (async_event_handler_list): New.
917 (create_event): New.
918 (create_file_event): Use it.
919 (process_event): Adjust.
920 (gdb_do_one_event): Poll from the event sources in round-robin
921 fashion across calls. Be sure to consult all sources before
922 blocking.
923 (handle_file_event): Take an event_data instead of an integer.
924 Adjust.
925 (gdb_wait_for_event): Add `block' argument. Handle it.
926 (mark_async_signal_handler): Remove unneeded cast.
927 (invoke_async_signal_handler): Rename to ...
928 (invoke_async_signal_handlres): ... this. Return true if any was
929 handled.
930 (check_async_ready): Delete
931 (create_async_event_handler): New.
932 (mark_async_event_handler): New.
933 (struct async_event_handler_data): New.
934 (invoke_async_event_handler): New.
935 (check_async_event_handlers): New.
936 (delete_async_event_handler): New.
937 (handle_timer_event): Adjust.
938
6dd47d34
DE
9392008-10-24 Doug Evans <dje@google.com>
940
941 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
942 is NULL. Simplify obs == NULL case.
943
fff08868
HZ
9442008-10-24 Hui Zhu <teawater@gmail.com>
945 Pedro Alves <pedro@codesourcery.com>
946
947 * infrun.c (can_use_displaced_stepping): Change type to
948 const char pointer.
949 (can_use_displaced_stepping_auto): New string.
950 (can_use_displaced_stepping_on): New string.
951 (can_use_displaced_stepping_off): New string.
952 (can_use_displaced_stepping_enum): New array.
953 (show_can_use_displaced_stepping): In auto mode, also show
954 the current effect of the option.
955 (use_displaced_stepping): Return non-zero if displaced
956 stepping is auto, and can be used with GDBARCH, and in
957 non-stop mode. Return non-zero if displaced stepping is on,
958 and can be used with GDBARCH. Return zero otherwise.
959 (_initialize_infrun): Make the "set displaced-stepping"
960 command an enum command. Change its class to class_run.
961 Place it in the top level set list. Extend help to describe
962 the auto mode.
963
252fbfc8
PA
9642008-10-23 Pedro Alves <pedro@codesourcery.com>
965
966 * defs.h: Mention ptid_is_pid.
967 * inferior.h (ptid_is_pid): Declare.
968 * gdbthread.h (struct thread_info) <stop_requested>: New field.
969 (set_stop_requested): Declare.
970 * infcmd.c (interrupt_target_1): Call set_stop_requested.
971 * infrun.c (clear_proceed_status): Clear stop_requested.
972 (infrun_thread_stop_requested_callback,
973 infrun_thread_stop_requested): New.
974 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
975 thread that had an explicit stop request, pretend we got a
976 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
977 request.
978 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
979 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
980 instead of mentioning signal 0.
981 (ptid_is_pid): New.
982 * thread.c (set_stop_requested): New.
983
984 * linux-nat.c (queued_waitpid): Rename to ...
985 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
986 (queued_waitpid): New, as wrapper to queued_waitpid_1.
987 (push_waitpid): Push the SIGTRAP to the local event queue, to the
988 kernel's.
989 (send_sigint_callback): Delete.
990 (linux_nat_stop_lwp): New.
991 (linux_nat_stop): Use it.
992
3c0ed299
PP
9932008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
994
995 * python/python-value (valpy_getitem): Fix heap corruption.
996
103fd00d
AR
9972008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
998
999 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1000 (procfs_create_inferior): Fetch list of threads.
1001
3fdfcbf1
AR
10022008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1003
1004 * nto-procfs.c (procfs_files_info): Fix a typo.
1005 (procfs_create_inferior): Make attach_flag per-inferior.
1006
997339e8
PP
10072008-10-23 Tom Tromey <tromey@redhat.com>
1008
1009 * python/python-value.c (value_to_value_object): Initialize
1010 owned_by_gdb field.
1011 (valpy_new): Likewise.
1012
d6b67a5e
JK
10132008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1014 Joel Brobecker <brobecker@adacore.com>
1015
1016 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1017 initializer. Define the strings as const.
1018 (short_task_info, info_task): Translate the strings above.
1019
aadc346a
JB
10202008-10-22 Joel Brobecker <brobecker@adacore.com>
1021
1022 * NEWS: Add entry for new feature (Ada tasking support).
1023
10242008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
1025
1026 * configure.ac: On alpha-osf, error out if enable_tui is set to
1027 "yes", and set enable_tui to "no" if previously set to "auto".
1028 Check for waddstr only if TUI support was requested. Move the
1029 part of the configure script that updates various Makefile
1030 variables up, together with the check for waddstr.
1031 * configure: Regenerate.
1032
4af88198
JB
10332008-10-22 Joel brobecker <brobecker@adacore.com>
1034
1035 * gdbtypes.c (copy_type): New function.
1036 * gdbtypes.h (copy_type): Add declaration.
1037 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1038 variable, then use it.
1039
0ef643c8
JB
10402008-10-22 Joel Brobecker <brobecker@adacore.com>
1041
1042 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1043 (target_get_ada_task_ptid): New macro.
1044 * target.c (default_get_ada_task_ptid): New function.
1045 (update_current_target): Inherit field default_get_ada_task_ptid.
1046 (update_current_target): Make default_get_ada_task_ptid the default
1047 value for field to_get_ada_task_ptid.
1048 * ada-lang.h (struct task_control_block): Delete. Never used.
1049 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1050 Likewise.
1051 (struct ada_task_info): New.
1052 (ada_task_is_alive, ada_find_printable_frame)
1053 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1054 declarations.
1055 (ada_build_task_list): Update prototype.
1056 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1057 * ada-lang.c (ada_find_printable_frame): Make non-static.
1058 * ada-tasks.c: New file.
1059 * Makefile.in (SFILES): Add ada-tasks.c.
1060 (COMMON_OBS): Add ada-tasks.o.
1061 * linux-thread-db.c (thread_db_find_thread_from_tid)
1062 (thread_db_get_ada_task_ptid): New functions.
1063 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1064
c209f847
TT
10652008-10-22 Tom Tromey <tromey@redhat.com>
1066
1067 PR gdb/2506:
1068 * c-exp.y (string_exp): New production.
1069 (exp): Use it.
1070
5bc60cfb
JK
10712008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1074 removed before.
1075
7f99b190
JB
10762008-10-20 Joel Brobecker <brobecker@adacore.com>
1077
1078 * NEWS: Add entry mentioning thread-support on Tru64
1079
7a052092
JB
10802008-10-19 Joel Brobecker <brobecker@adacore.com>
1081
1082 * dec-thread.c: New file.
1083 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1084 (NAT_CLIBS): Define.
1085
40e12b06
HZ
10862008-10-19 Hui Zhu <teawater@gmail.com>
1087
1088 * infrun.c (handle_inferior_event): Set "stop_pc" when
1089 TARGET_WAITKIND_NO_HISTORY.
1090
f9176c46
PA
10912008-10-19 Pedro Alves <pedro@codesourcery.com>
1092
1093 * python/python-value.c (value_object_methods)
1094 (value_object_as_number, value_object_as_mapping): Move to bottom
1095 of file.
1096 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1097 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1098 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1099 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1100 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1101 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1102
4058b839
PA
11032008-10-18 Pedro Alves <pedro@codesourcery.com>
1104
1105 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1106 reverse.
1107
f42429a6
PA
11082008-10-17 Pedro Alves <pedro@codesourcery.com>
1109
1110 * infcmd.c (GO_USAGE): Delete.
1111 (go_command): Adjust.
1112
b2175913
MS
11132008-10-17 Michael Snyder <msnyder@vmware.com>
1114 Target interface for reverse debugging.
1115 * target.h (enum target_waitkind):
1116 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1117 (struct target_ops): New method to_can_execute_reverse.
1118 (target_can_execute_reverse): New macro.
1119 * target.c (update_current_target): Inherit to_can_execute_reverse.
1120
1121 Remote interface for reverse debugging.
1122 * remote.c (remote_can_execute_reverse): New target method.
1123 (remote_resume): Check for reverse exec direction, and send
1124 appropriate command to target.
1125 (remote_wait_as): Check target response for NO_HISTORY status.
1126 Also check for empty reply (target doesn't understand "bs" or "bc).
1127 (remote_vcont_resume): Jump out if attempting reverse execution.
1128
1129 Event handling interface for reverse debugging.
1130 * infrun.c (execution_direction): New state variable.
1131 (enum inferior_stop_reason): Add NO_HISTORY reason.
1132 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1133 Handle stepping over a function call in reverse.
1134 Handle stepping thru a line range in reverse.
1135 Handle setting a step-resume breakpoint in reverse.
1136 Handle stepping into a function in reverse.
1137 Handle stepping between line ranges in reverse.
1138 (print_stop_reason): Print reason for NO_HISTORY.
1139 (step_into_function): Rename to handle_step_into_function.
1140 (handle_step_into_function_backward): New function.
1141 (set_exec_direction_func, show_exec_direction_func): New funcs.
1142 (proceed): No need to singlestep over a breakpoint
1143 when resuming in reverse.
1144
1145 * inferior.h (enum exec_direction_kind): New enum.
1146 (execution_direction): Export new execution state variable.
1147
1148 * breakpoint.c (make_breakpoint_silent): New function.
1149 * breakpoint.h (make_breakpoint_silent): Export.
1150 * infcmd.c (finish_command): Check for reverse exec direction.
1151 (finish_backward): New function, handle finish cmd in reverse.
1152
1153 User interface for reverse execution.
1154 * Makefile.in (reverse.c): New file.
1155 * reverse.c: New file. User interface for reverse execution.
1156
153ccabd
PA
11572008-10-17 Pedro Alves <pedro@codesourcery.com>
1158
1159 * remote.c (record_currthread): Add inferior before child threads.
1160 (remote_threads_info): Check for exited threads. Mention
1161 notification order.
1162
ce78b96d
JB
11632008-10-16 Joel Brobecker <brobecker@adacore.com>
1164
1165 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1166 Delete bp_catch_fork and bp_catch_vfork.
1167 (struct breakpoint_ops): Add new methods "insert", "remove"
1168 and "breakpoint_hit".
1169 * breakpoint.c (create_fork_vfork_event_catchpoint)
1170 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1171 (insert_catchpoint): Remove handling of bp_catch_fork and
1172 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1173 catchpoints instead.
1174 (insert_bp_location, update_breakpoints_after_exec)
1175 (remove_breakpoint, bpstat_check_location, bpstat_what)
1176 (allocate_bp_location): Likewise.
1177 (print_it_typical, print_one_breakpoint_location, mention): Remove
1178 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1179 (ep_is_catchpoint, user_settable_breakpoint)
1180 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1181 (breakpoint_re_set_one, disable_command, enable_command):
1182 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1183 bp_catchpoint breakpoints.
1184 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1185 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1186 New functions.
1187 (catch_fork_breakpoint_ops): New static constant.
1188 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1189 (print_it_catch_vfork, print_one_catch_vfork)
1190 (print_mention_catch_vfork): New functions.
1191 (catch_vfork_breakpoint_ops): New static constant.
1192 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1193 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1194 to create the fork and vfork catchpoints.
1195 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1196 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1197 fields.
1198 (catch_exception_unhandled_breakpoint_ops): Likewise.
1199 (catch_assert_breakpoint_ops): Likewise.
1200
3c9c4b83
PA
12012008-10-16 Pedro Alves <pedro@codesourcery.com>
1202
1203 * remote.c (set_general_process): New.
1204 (remote_check_symbols): Use it.
1205
5c952c9b
PA
12062008-10-16 Pedro Alves <pedro@codesourcery.com>
1207
1208 * remote.c (push_remote_target): Delete.
1209 * target.h (push_remote_target): Delete declaration.
1210
ce5ce7ed
PA
12112008-10-15 Pedro Alves <pedro@codesourcery.com>
1212
1213 * remote.c (remote_close): Unregister remote_desc from the event
1214 loop. Always restore the SIGINT handler. Discard all inferiors
1215 here.
1216 (remote_detach_1, remote_disconnect): Don't unregister the file
1217 descriptor from the event loop here.
1218 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1219 of morning the current inferior.
1220 (remote_kill): Don't unregister the file descriptor from the event
1221 loop here.
1222 (remote_mourn_1): Don't discard inferiors here.
1223
1c5cfe86
PA
12242008-10-15 Pedro Alves <pedro@codesourcery.com>
1225
1226 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1227 locations list.
1228 (moribund_breakpoint_here_p): Record the moribund
1229 location in the moribund_locations vector.
1230 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1231 (displaced_step_fixup): Check if the breakpoint the thread was
1232 trying to step over has been removed since having been placed in
1233 the displaced stepping queue.
1234 (adjust_pc_after_break): In non-stop mode, check for a moribund
1235 breakpoint at the stop pc.
1236 (handle_inferior_event): Don't retire moribund breakpoints on
1237 TARGET_WAITKIND_IGNORE.
1238
12392008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1240
1241 * infrun.c (displaced_step_prepare): Switch thread temporarily
1242 while we're here.
1243 (displaced_step_fixup): Make sure target_resume sees ptid as
1244 inferior_ptid. Add debug output.
1245
63c715c6
PA
12462008-10-14 Pedro Alves <pedro@codesourcery.com>
1247
1248 Remove dead code.
1249
1250 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1251 (print_one_breakpoint_location): Adjust.
1252 (breakpoint_clear_ignore_counts): Delete.
1253 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1254 declaration.
1255 * target.c (generic_mourn_inferior): Don't clear ignore
1256 counts (never reached).
1257
c764a876
DE
12582008-10-10 Doug Evans <dje@google.com>
1259
1260 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1261 for dwarf section offsets and sizes.
1262 (dwarf2_cu): Ditto.
1263 (dwarf2_per_cu_data): Ditto.
1264 (create_all_comp_units): Change offset to unsigned int.
1265 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1266 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1267
1268 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1269 All callers updated.
1270 (read_checked_initial_length_and_offset): New function.
1271 (read_offset_1): New function.
1272 (read_offset): Call it.
1273 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1274 instead of read_initial_length. Call read_offset_1 instead of
1275 read_offset.
1276
1277 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1278 All callers updated.
1279
1280 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1281 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1282 DW_AT_HP_block_index.
1283
5fe04517
PA
12842008-10-10 Pedro Alves <pedro@codesourcery.com>
1285
1286 * remote.c (remote_start_remote): Always tell the stub if we're in
1287 extended-remote.
1288
c8e38a49
PA
12892008-10-09 Pedro Alves <pedro@codesourcery.com>
1290
1291 * remote.c (remote_wait): Rename to...
1292 (remote_wait_as): ... this. Don't loop here. If the remote
1293 didn't stop, return TARGET_WAITKIND_IGNORE.
1294 (remote_wait): New, reimplemented on top of remote_wait_as.
1295
9ca12bbf
TS
12962008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1297
d11d9deb
TS
1298 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1299 is fixed upstream.
1300
20249808
TS
1301 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1302
9ca12bbf
TS
1303 * MAINTAINERS (Write After Approval): Add myself.
1304
0b62613e
PA
13052008-10-09 Pedro Alves <pedro@codesourcery.com>
1306
1307 Make it compile without warnings.
1308
1309 * procfs.c (create_procinfo): Initialize `parent'.
1310 (dead_procinfo): Pass a constant string as format to error.
1311 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1312 (procfs_find_LDT_entry): Adjust format string to long int
1313 ptid.tid.
1314 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1315 (procfs_xfer_memory): Adjust prototype.
1316 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1317 variable as printf_filtered format.
1318 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1319 * Makefile.in: Remove special rule.
1320
c8d104ad
PA
13212008-10-09 Pedro Alves <pedro@codesourcery.com>
1322 Daniel Jacobowitz <dan@codesourcery.com>
1323
1324 * remote.c (remote_open_1): Move acknowledging any pending ack,
1325 querying supported features, activating noack mode, finding the
1326 target description, enabling extended remote, and checking remote
1327 symbols from here ...
1328 (remote_start_remote): ... to here.
1329 (remote_open_1): Don't pop the target if it is already gone.
1330 * target.c (unpush_target): Check for the dummy target.
1331
efdb2a86
PA
13322008-10-09 Pedro Alves <pedro@codesourcery.com>
1333
1334 * ser-mingw.c: Include "command.h".
1335 (pipe_windows_open): Declare locals at the beginning of the scope.
1336
e24a49d8
PA
13372008-10-08 Pedro Alves <pedro@codesourcery.com>
1338
1339 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1340 field.
1341 (remote_open_1): Clear waiting_for_stop_reply.
1342 (remote_resume): Set waiting_for_stop_reply.
1343 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1344 (putpkt_binary): If we're in async mode and waiting for a stop
1345 reply, bail out with an error.
1346 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1347
3084dd77
PA
13482008-10-08 Pedro Alves <pedro@codesourcery.com>
1349
1350 * remote.c (remote_get_thread_info): If the remote doesn't support
1351 the query, bail out.
1352
d6a843b5
JK
13532008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 Convert static_kind into loc_kind enum.
1356 * gdbtypes.h (enum field_loc_kind): New.
1357 (union field_location): New field dwarf_block.
1358 (struct field): Rename static_kind as loc_kind.
1359 (FIELD_STATIC_KIND): Rename to ...
1360 (FIELD_LOC_KIND): ... here.
1361 (TYPE_FIELD_STATIC_KIND): Rename to ...
1362 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1363 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1364 (TYPE_FIELD_STATIC): Remove.
1365 (TYPE_FIELD_BITPOS): Reformat.
1366 (SET_FIELD_BITPOS): New.
1367 (FIELD_PHYSADDR): Rename to ...
1368 (FIELD_STATIC_PHYSADDR): ... here.
1369 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1370 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1371 (FIELD_PHYSNAME): Rename to ...
1372 (FIELD_STATIC_PHYSNAME): ... here.
1373 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1374 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1375 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1376 (field_is_static): New declaration.
1377 * gdbtypes.c (field_is_static): New function.
1378 (copy_type_recursive): Update throughout.
1379 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1380 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1381 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1382
c289427b
PA
13832008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1384 Pedro Alves <pedro@codesourcery.com>
1385
1386 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1387 avoid a name collision.
1388 * gnu-nat.c: Likewise.
1389 * i386gnu-nat.c: Likewise.
1390
8c1c099f
JB
13912008-10-07 Joel Brobecker <brobecker@adacore.com>
1392
1393 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1394 of arguments that are references.
1395
8a498d38
DE
13962008-10-06 Doug Evans <dje@google.com>
1397
d97bc12b
DE
1398 * dwarf2read.c (dwarf2_die_debug): New static global.
1399 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1400 Print to specified file, indented by the specified amount.
1401 (dump_die_for_error): New fn. Point all existing callers of
1402 dump_die here.
1403 (dump_die_die_1,dump_die): New fns, replaces ...
1404 (dump_die_list): ... deleted.
1405 (read_die_and_children_1): Old contents of read_die_and_children
1406 moved here.
1407 (read_die_and_children): Rewrite.
1408 (read_die_and_siblings): Call read_die_and_children_1 instead of
1409 read_die_and_children.
1410 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1411 * gdbinit.in (pdie): New macro.
1412
45452591
DE
1413 * dwarf2read.c (offset_in_cu_p): New function.
1414 (find_partial_die,follow_die_ref): Use it.
1415
8a498d38
DE
1416 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1417 (maintenance_info_psymtabs): Ditto.
1418
360551e4 14192008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1420
1421 * infrun.c (handle_inferior_event): Fix typo in comment.
1422
c1828f25
VP
14232008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1424
1425 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1426
5ef73790
PP
14272008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1428
1429 PR gdb/2384:
1430 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1431 different lifetimes.
1432
352efb28 14332008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1434
1435 * solib-osf.c: Include "solib.h".
1436
d1a41061
PP
14372008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1438
1439 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1440 and check for out-of-memory condition.
1441 * exec.c (exec_file_command): Call it.
1442 * infrun.c (handle_command, xdb_handle_command): Likewise.
1443 * interps.c (interpreter_exec_cmd): Likewise.
1444 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1445 * procfs.c (info_proc_cmd): Likewise.
1446 * remote-mips.c (common_open): Likewise.
1447 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1448 (gdbsim_open): Likewise.
1449 * remote.c (extended_remote_run, remote_put_command)
1450 (remote_get_command, remote_delete_command): Likewise.
1451 * ser-mingw.c (pipe_windows_open): Likesise.
1452 * source.c (add_path, show_substitute_path_command)
1453 (unset_substitute_path_command, set_substitute_path_command):
1454 Likewise.
1455 * stack.c (backtrace_command): Likewise.
1456 * symfile.c (symbol_file_command, generic_load)
1457 (add_symbol_file_command): Likesise.
1458 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1459 (maintenance_print_msymbols): Likewise.
1460
d78df370
JK
14612008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1462
1463 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1464 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1465 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1466 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1467 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1468 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1469 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1470 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1471 (f77_get_upperbound): ... this function handling now only
1472 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1473 (f77_get_dynamic_lowerbound): Replace with ...
1474 (f77_get_lowerbound): ... this function handling now only
1475 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1476 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1477 Update their callers.
1478 * eval.c (evaluate_subexp_standard): Update their callers.
1479 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1480 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1481 prototypes.
1482 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1483 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1484 the lower_bound_was_default variable. Update the
1485 f77_get_dynamic_upperbound, f77_get_upperbound and
1486 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1487 * gdbtypes.c (print_bound_type): Remove the function.
1488 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1489 LOWER_BOUND_TYPE.
1490 * gdbtypes.h (enum array_bound_type): Remove.
1491 (struct main_type): Remove the fields upper_bound_type and
1492 lower_bound_type. Comment the new overload of the field artificial.
1493 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1494 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1495 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1496 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1497
40debb5a
TT
14982008-10-02 Tom Tromey <tromey@redhat.com>
1499
1500 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1501
db5f024e
DJ
15022008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1503
1504 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1505 comments.
1506 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1507 (mips_linux_init_abi): Do not override skip_trampoline_code.
1508 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1509 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1510 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1511 (mips_skip_mips16_trampoline_code): Rename from
1512 mips_skip_trampoline_code.
1513 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1514 * infrun.c (handle_inferior_event): Do not pass zero to
1515 in_solib_dynsym_resolve_code.
1516
9f9d052e
PM
15172008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1518 Pedro Alves <pedro@codesourcery.com>
1519
1520 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1521
1522
bd2e94ce
TT
15232008-10-01 Tom Tromey <tromey@redhat.com>
1524
1525 * symtab.c (search_symbols): Update.
1526 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1527
8b41ec65
TT
15282008-10-01 Tom Tromey <tromey@redhat.com>
1529
1530 * symfile.c (syms_from_objfile): Update.
1531 (reread_symbols): Update.
1532 * objfiles.h (OBJF_SYMS): Remove.
1533 (OBJF_REORDERED): Renumber.
1534 (OBJF_SHARED): Likewise.
1535 (OBJF_READNOW): Likewise.
1536 (OBJF_USERLOADED): Likewise.
1537
712f90be
TT
15382008-10-01 Tom Tromey <tromey@redhat.com>
1539
1540 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1541 (find_pc_sect_symtab): Likewise.
1542 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1543 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1544 MSYMBOL_TYPE, not SYMBOL_TYPE.
1545 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1546 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1547 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1548 MSYMBOL_TYPE.
1549 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1550
b887350f
TT
15512008-10-01 Tom Tromey <tromey@redhat.com>
1552
1553 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1554 (scan_xcoff_symtab): Update.
1555 * mdebugread.c (record_minimal_symbol): Update.
1556 (parse_partial_symbols): Update.
1557 * elfread.c (record_minimal_symbol): Update.
1558 * dbxread.c (record_minimal_symbol): Update.
1559 * coffread.c (record_minimal_symbol): Update.
1560 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1561 (sh64_elf_make_msymbol_special): Update.
1562 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1563 MSYMBOL_TARGET_FLAG_1.
1564 (mips_elf_make_msymbol_special): Likewise.
1565 (msymbol_is_special): Likewise.
1566 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1567 (install_minimal_symbols): Likewise.
1568 (prim_record_minimal_symbol): Update.
1569 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1570 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1571 (MSYMBOL_SET_RTI): Redefine.
1572 (MSYMBOL_IS_RTC): Redefine.
1573 (MSYMBOL_IS_RTI): Redefine.
1574 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1575 (MSYMBOL_IS_SPECIAL): Redefine.
1576 * symtab.h (struct minimal_symbol) <info>: Remove.
1577 <target_flag_1, target_flag_2>: New fields.
1578 (MSYMBOL_INFO): Remove.
1579 (MSYMBOL_TARGET_FLAG_1): New macro.
1580 (MSYMBOL_TARGET_FLAG_2): Likewise.
1581 (prim_record_minimal_symbol_and_info): Update.
1582
d35e5795
JB
15832008-09-30 Joel Brobecker <brobecker@adacore.com>
1584
1585 * ada-lang.c (is_digits_suffix): Delete unused function.
1586
d37209fd
JB
15872008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1588
1589 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1590 moduli >= 2**31.
1591
15922008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1593
1594 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1595 variant branch.
1596 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1597 supposed to be null. Fixes debugger segfaults.
1598 (is_unchecked_variant): New function.
1599 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1600 untouched.
1601 (ada_template_to_fixed_record_type_1): Fix comment.
1602
3d0b0fa3
JB
16032008-09-30 Joel Brobecker <brobecker@adacore.com>
1604
1605 * ada-lang.c (standard_exc): New static constant.
1606 (ada_exception_catchpoint_cond_string): Add special handling
1607 for the predefined exceptions.
1608
cdc7bb92
JB
16092008-09-30 Joel Brobecker <brobecker@adacore.com>
1610
1611 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1612 the code accordingly.
1613
6b0d7253
JB
16142008-09-30 Joel Brobecker <brobecker@adacore.com>
1615
1616 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1617 treatment of expect_type. Return the correct type when dereferencing
1618 an integer.
1619
9a044a89
TT
16202008-09-30 Tom Tromey <tromey@redhat.com>
1621
1622 PR gdb/2484:
1623 * symtab.c (struct add_macro_name_data): New struct.
1624 (add_macro_name): New function.
1625 (default_make_symbol_completion_list): Complete macro names.
1626 * scm-lang.c (scm_language_defn): Update.
1627 * p-lang.c (pascal_language_defn): Update.
1628 * objc-lang.c (objc_language_defn): Update.
1629 * macrotab.h (macro_callback_fn): Add user_data argument.
1630 (macro_for_each): Likewise.
1631 (macro_for_each_in_scope): Declare.
1632 * macrotab.c: (struct macro_for_each_data): New struct.
1633 (foreach_macro): Use it.
1634 (macro_for_each): Likewise.
1635 (foreach_macro_in_scope): New function.
1636 (macro_for_each_in_scope): Likewise.
1637 * macrocmd.c (print_one_macro): Add argument.
1638 (macro_list_command): Pass NULL to macro_for_each.
1639 * m2-lang.c (m2_language_defn): Update.
1640 * language.h (struct language_defn) <la_macro_expansion>: New
1641 field.
1642 (macro_expansion): New enum.
1643 * language.c (unknown_language_defn): Update. Fix order of
1644 initializers.
1645 (auto_language_defn): Likewise.
1646 (local_language_defn): Update.
1647 * jv-lang.c (java_language_defn): Update.
1648 * f-lang.c (f_language_defn): Update.
1649 * c-lang.c (c_language_defn): Update.
1650 (cplus_language_defn): Likewise.
1651 (asm_language_defn): Likewise.
1652 (minimal_language_defn): Likewise.
1653 * ada-lang.c (ada_language_defn): Update.
1654
b084d499
JB
16552008-09-30 Joel Brobecker <brobecker@adacore.com>
1656
1657 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1658 (get_scope_pc_bounds): Use it.
1659
2fae03e8
TT
16602008-09-27 Tom Tromey <tromey@redhat.com>
1661
1662 * NEWS: Update.
1663 * macrocmd.c (extract_identifier): Add is_parameter argument.
1664 (macro_define_command): Update.
1665 (macro_undef_command): Likewise.
1666 * macroexp.c (stringify): New function.
1667 (find_parameter): Likewise.
1668 (gather_arguments): Add nargs argument. Handle varargs.
1669 (substitute_args): Add is_varargs and va_arg_name arguments.
1670 Handle varargs, splicing, stringification. Use find_parameter.
1671 (expand): Handle varargs.
1672
5c6ce71d
TT
16732008-09-27 Tom Tromey <tromey@redhat.com>
1674
1675 * scm-lang.c (scm_language_defn): Update.
1676 * p-typeprint.c (pascal_print_typedef): New function.
1677 * p-lang.h: (pascal_print_typedef): Declare.
1678 * p-lang.c (pascal_language_defn): Update.
1679 * objc-lang.c (objc_language_defn): Update.
1680 * m2-typeprint.c (m2_print_typedef): New function.
1681 * m2-lang.h (m2_print_typedef): Declare.
1682 * m2-lang.c (m2_language_defn): Update.
1683 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1684 Remove.
1685 (struct language_defn) <la_print_typedef>: New field.
1686 (default_print_typedef): Declare.
1687 (LA_PRINT_TYPEDEF): New define.
1688 * language.c (unknown_language_defn): Update.
1689 (auto_language_defn): Update.
1690 (local_language_defn): Update.
1691 * jv-lang.c (java_language_defn): Update.
1692 * f-lang.c (f_language_defn): Update.
1693 * c-typeprint.c (c_print_typedef): New function.
1694 * c-lang.h (c_print_typedef): Declare.
1695 * c-lang.c (c_language_defn): Update.
1696 (cplus_language_defn): Update.
1697 (asm_language_defn): Update.
1698 (minimal_language_defn): Update.
1699 * ada-lang.c (ada_language_defn): Update.
1700 * typeprint.c (default_print_typedef): New function.
1701
09be204e
TT
17022008-09-27 Tom Tromey <tromey@redhat.com>
1703
1704 * jv-exp.y (insert_exp): Define using ISO syntax.
1705 (copy_exp): Likewise.
1706 (push_expression_name): Likewise.
1707 (push_fieldnames): Likewise.
1708 (java_type_from_name): Likewise.
1709 (yyerror): Likewise.
1710 (yylex): Likewise.
1711 (parse_number): Likewise.
1712
3cd9d164
JB
17132008-09-26 Joel Brobecker <brobecker@adacore.com>
1714
1715 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1716
e3168615
JB
17172008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1718
1719 * stack.c (print_frame_args): Fix typos in comments.
1720
8b8655b3
TJB
17212008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1722
1723 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1724
6fbd21a1
VP
17252008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1726
1727 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1728
45ef8ce0
AS
17292008-09-24 Andreas Schwab <schwab@suse.de>
1730
1731 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 1732 account. Avoid excessive function calls.
45ef8ce0 1733
9cbfa09e
DE
17342008-09-23 Doug Evans <dje@google.com>
1735
07128da0
DE
1736 * dcache.c (state_chars): New static global.
1737 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1738 All uses updated.
1739 (dcache_info): Print cache state as mnemonically useful letters instead
1740 of magic numbers.
1741
9cbfa09e
DE
1742 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1743
d4c0a7a0
TT
17442008-09-22 Tom Tromey <tromey@redhat.com>
1745
1746 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1747 printf_filtered.
1748
6ca15a4b
PA
17492008-09-22 Pedro Alves <pedro@codesourcery.com>
1750
1751 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1752 inline the required bits.
1753 * breakpoint.h (enum inf_context): Add inf_execd.
1754
795e548f
PA
17552008-09-22 Pedro Alves <pedro@codesourcery.com>
1756
1757 * infrun.c (handle_inferior_event): In the follow exec case,
1758 context-switch before doing anything else.
1759
54a012c9
PA
17602008-09-22 Pedro Alves <pedro@codesourcery.com>
1761
1762 * top.c (any_thread_of, kill_or_detach): New functions.
1763 (quit_target): Iterate over all inferiors, killing or detaching
1764 accordingly.
1765
181e7f93
PA
17662008-09-22 Pedro Alves <pedro@codesourcery.com>
1767
1768 Remove the attach_flag global, and make it per-inferior.
1769
1770 * inferior.h (attach_flag): Delete.
1771 (inferior_process): Declare.
1772 * solib.c (update_solib_list): Adjust.
1773 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1774 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1775 (inf_ptrace_files_info): Get it from the current inferior.
1776 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1777 (inf_ttrace_files_info): Get it from the current
1778 inferior.
1779 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1780 (clear_sigint_trap): Get it from the current process.
1781 * remote.c (extended_remote_attach_1)
1782 (extended_remote_create_inferior_1): Adjust.
1783 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1784 * procfs.c (do_detach): Adjust.
1785 (procfs_wait): Get it from the event inferior.
1786 (procfs_files_info): Get it from the current inferior.
1787 * nto-procfs.c (procfs_files_info): Likewise.
1788 (procfs_attach): Adjust. Set the attach_flag here.
1789 (do_attach): Don't set it here.
1790 (procfs_detach): Don't clear it.
1791 (procfs_mourn_inferior): Don't clear it.
1792 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1793 * target.c (attach_flag): Delete.
1794 (generic_mourn_inferior): Don't clear it.
1795 * win32-nat.c (get_win32_debug_event): Get it from the event
1796 process.
1797 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1798 in the inferior accordingly.
1799 (win32_attach): Don't set the attach_flag here. Pass 1 to
1800 do_intial_win32_stuff.
1801 (win32_files_info): Get it from the current inferior.
1802 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1803 do_intial_win32_stuff.
1804
d6b48e9c
PA
18052008-09-22 Pedro Alves <pedro@codesourcery.com>
1806
1807 Make the stop_soon global be per-inferior instead.
1808
1809 * infcmd.c (attach_command_post_wait): Adjust.
1810 (attach_command): Likewise.
1811
1812 * inferior.h (stop_soon): Delete.
1813 (struct inferior): Add stop_soon member.
1814
1815 * infrun.c (stop_soon): Delete.
1816 (clear_proceed_status, start_remote)
1817 (fetch_inferior_event, handle_inferior_event): Adjust.
1818 (signal_stop_state): Don't check stop_soon here. Check in callers
1819 instead.
1820 (save_inferior_status, restore_inferior_status): Adjust.
1821
1822 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1823 signals to common code if starting up the inferior.
1824
1825 * inferior.h (struct inferior_info): Added stop_soon member.
1826 * inferior.c (add_inferior) Clear stop_soon.
1827
1828 * mips-tdep.c (heuristic_proc_start): Adjust.
1829 * nto-procfs.c (procfs_create_inferior): Adjust.
1830 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1831 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1832 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1833 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1834
1835 * win32-nat.c (do_initial_win32_stuff): Adjust.
1836
1837 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1838
82f73884
PA
18392008-09-22 Pedro Alves <pedro@codesourcery.com>
1840
1841 Implement remote multi-process extensions.
1842
1843 * remote.c (struct remote_state): Add extended and
1844 multi_process_aware fields.
1845 (remote_multi_process_p): New.
1846 (PACKET_vKill): New.
1847 (record_currthread): Use thread_change_ptid. Notice new
1848 inferiors.
1849 (set_thread, remote_thread_alive): Use write_ptid.
1850 (write_ptid, read_ptid): New.
1851 (remote_current_thread, remote_threads_extra_info): Use them.
1852 (remote_threads_info): Likewise. Detect new inferiors.
1853 (remote_start_remote): Add inferior to inferior list.
1854 (remote_multi_process_feature): New.
1855 (remote_protocol_features): Add "multiprocess" feature.
1856 (remote_query_supported): Pass "multiprocess+" as supported
1857 features.
1858 (remote_open_1): Clear multi_process_aware. Set extended
1859 accordingly.
1860 (remote_detach_1): Detach current process. Use extended packet
1861 format for extended-remote multi-process. Detach process from the
1862 inferior list. Only mourn after printing output.
1863 (extended_remote_attach_1): Add process to the inferior list.
1864 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1865 (remote_wait): Use read_ptid. Implement the extended
1866 multi-process extension format of the 'W' and 'X' reply packets.
1867 Remove exited inferiors from inferior list.
1868 (remote_xfer_memory): Set general thread.
1869 (remote_vkill): New.
1870 (extended_remote_kill): New.
1871 (remote_mourn_1): Discard all inferiors.
1872 (select_new_thread_callback): New.
1873 (extended_remote_mourn_1): If there are more processes to debug,
1874 switch to a thread in another process, and don't pop the target.
1875 (extended_remote_create_inferior_1): Add the new process to the
1876 inferior list.
1877 (remote_stopped_by_watchpoint): Indenting.
1878 (remote_xfer_partial): Set the general thread.
1879 (remote_pid_to_str): If the remote is multi-process aware, print
1880 the process id as well as the thread id.
1881 (remote_get_thread_local_address): Use write_ptid.
1882 (init_extended_remote_ops): Register extended_remote_kill.
1883 (_initialize_remote): Register new packets. Change
1884 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1885 member to 42000.
1886
1887 * thread.c (thread_change_ptid): Also account for the inferior pid
1888 changing.
1889
1890 * inferior.h (discard_all_inferiors): Declare.
1891 * inferior.c (discard_all_inferiors): New.
1892
7f9f62ba
PA
18932008-09-22 Pedro Alves <pedro@codesourcery.com>
1894
1895 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1896 (gnu_detach): Remove it.
1897 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1898 table.
1899 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1900 to inferior table accordingly.
1901 (inf_ptrace_attach): Add new process to inferior table.
1902 (inf_ptrace_detach): Remove it.
1903 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1904 to inferior table accordingly.
1905 (inf_ttrace_attach): Add process to inferior table.
1906 (inf_ttrace_detach): Remove it.
1907 * linux-fork.c (init_fork_list): Delete any left over inferior.
1908 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1909 processes from inferior list.
1910 * monitor.c (monitor_open): Add process to inferior list.
1911 (monitor_close): Remove it.
1912 * nto-procfs.c (procfs_attach): Add process to inferior list.
1913 Find threads after pushing the target.
1914 (procfs_detach): Remove process from inferior list.
1915 (procfs_create_inferior): Add process to inferior list.
1916 * procfs.c (procfs_detach): Remove process from inferior list.
1917 (do_attach): Add process to inferior list.
1918 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1919 (gdbsim_close): Remove it.
1920 * target.c (generic_mourn_inferior): If inferior_ptid is not
1921 null_ptid, remove the corresponding inferior from inferior list.
1922 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1923 (win32_detach): Remove it.
1924 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1925 to inferior list accordingly.
1926 * fork-child.c (fork_inferior): Add process to inferior list.
1927 * corelow.c (CORELOW_PID): Define.
1928 (core_close): Remove core from inferior list.
1929 (core_open): Add it.
1930
b77209e0
PA
19312008-09-22 Pedro Alves <pedro@codesourcery.com>
1932
1933 * inferior.h: Forward declare struct ui_out.
1934 Forward declare struct private_inferior.
1935 (struct inferior): New.
1936 (init_inferior_list, add_inferior, add_inferior_silent)
1937 (delete_inferior, delete_inferior_silent, detach_inferior)
1938 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1939 (valid_inferior_id, find_inferior_pid): New functions.
1940 (inferior_callback_func): New typedef.
1941 (iterate_over_inferiors, print_inferior, have_inferiors)
1942 (current_inferior): New functions.
1943 * inferior.c: New file.
1944
1945 * Makefile.in (SFILES): Add inferior.c.
1946 (COMMON_OBS): Add inferior.o.
1947
d8c3d48d
JL
19482008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1949
1950 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1951 instead of determining symbol and line info directly.
1952 * MAINTAINERS: Update my email address.
1953
d54be744
DJ
19542008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1955
1956 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1957 at the same address as a prologue marker. Do not skip an entire
1958 function.
1959
26fae1d6
AS
19602008-09-22 Andrew Stubbs <ams@codesourcery.com>
1961
1962 * frame.c (get_frame_register_bytes): Comment improvments.
1963
1ad15515
PA
19642008-09-22 Pedro Alves <pedro@codesourcery.com>
1965
1966 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1967 all-stop mode.
1968
14fc49fb
AS
19692008-09-19 Andrew Stubbs <ams@codesourcery.com>
1970
1971 * MAINTAINERS: Update my email address.
1972
3f27f2a4
AS
19732008-09-19 Andrew Stubbs <ams@codesourcery.com>
1974
1975 * frame.c (get_frame_register_bytes): Detect bad debug info.
1976
88ed393a
JK
19772008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1978
1979 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1980 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1981 initialization ...
1982 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1983 ...
1984 (handle_inferior_event): ... here after the add_thread call together
1985 with the local adjust_pc_after_break and reinit_frame_cache calls.
1986
d832cb68
DD
19872008-09-16 David Daney <ddaney@avtrex.com>
1988
1989 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1990 all hardware bpstats.
1991
b1e40a6f
JB
19922008-09-16 Joel Brobecker <brobecker@adacore.com>
1993
1994 * gstdint.h: Delete.
1995
50a834af
MK
19962008-09-15 Mark Kettenis <kettenis@gnu.org>
1997
1998 * infcall.c (generic_push_dummy_code): Remove.
1999 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2000
9d25dd43
DE
20012008-09-15 Doug Evans <dje@google.com>
2002
2003 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2004 (struct attribute): Ditto.
2005
85c83e99
DA
20062008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2007
326e541f
DA
2008 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2009 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2010
85c83e99
DA
2011 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2012 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2013 Correct arguments and improve comments.
2014 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2015 disabled code.
2016 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2017 point DBX register, change error to warning, and improve comments.
2018
76815b17
DE
20192008-09-14 Doug Evans <dje@google.com>
2020
2021 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2022
51e753cf
DA
20232008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2024
2025 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2026
06e476f5
JB
20272008-09-13 Joel Brobecker <brobecker@adacore.com>
2028
2029 * defs.h (GCC_GENERATED_STDINT_H): Define.
2030
6c761d9c
TT
20312008-09-13 Tom Tromey <tromey@redhat.com>
2032
2033 * varobj.c (varobj_set_display_format): Use xfree.
2034 * tracepoint.c (stringify_collection_list): Use xfree.
2035 * remote-fileio.c (remote_fileio_reset): Use xfree.
2036 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2037 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2038 asprintf.
2039 * cp-support.c (mangled_name_to_comp): Use xfree.
2040
339c13b6
JB
20412008-09-13 Joel Brobecker <brobecker@adacore.com>
2042
2043 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2044 the associated complete symbol is also in the list.
2045 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2046 extracted out from ada_lookup_symbol_list.
2047 (ada_lookup_symbol_list): Use them. Remove the search through
2048 the minimal symbols.
2049
bc30ff58
JB
20502008-09-13 Joel Brobecker <brobecker@adacore.com>
2051
2052 * dwarf2read.c (add_partial_subprogram): New procedure.
2053 (scan_partial_symbols): Use it.
2054 (load_partial_dies): Read in children of subprogram and lexical
2055 blocks for Ada compilation units.
2056
bb01da77
TT
20572008-09-13 Tom Tromey <tromey@redhat.com>
2058
2059 * symfile.c (build_id_verify): Free 'found'.
2060 (find_separate_debug_file): Use xfree, not free.
2061
d00adf39
DE
20622008-09-12 Doug Evans <dje@google.com>
2063
00630ca8
DE
2064 * corefile.c (write_memory): Remove unnecessary copying.
2065
5d6fa950
DE
2066 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2067 order of _initialize_* fns.
2068
d00adf39
DE
2069 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2070 first_die_offset. All uses updated.
2071 Delete unused members cu_head_ptr, next.
2072 Move members base_known, base_address to ...
2073 (dwarf2_cu) ... here. All uses updated.
2074
3d0bb823
PA
20752008-09-12 Pedro Alves <pedro@codesourcery.com>
2076
2077 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2078 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2079
3c35e65b
UW
20802008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2081
2082 * fork-child.c (startup_inferior): Use target_wait and target_resume
2083 directly instead of calling wait_for_inferior / resume.
2084
2085 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2086 or init_wait_for_inferior.
2087 (run_command_1): Call init_wait_for_inferior.
2088
4cca3ac9
UW
20892008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2090
2091 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2092 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2093 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2094 builtin_type_unsigned_char, builtin_type_unsigned_short,
2095 builtin_type_unsigned_int, builtin_type_unsigned_long,
2096 builtin_type_float, builtin_type_double, builtin_type_long_double,
2097 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2098 builtin_type_bool, builtin_type_long_long,
2099 builtin_type_unsigned_long_long): Remove macros.
2100
2101 (builtin_type_f_character, builtin_type_f_integer,
2102 builtin_type_f_integer_s2, builtin_type_f_logical,
2103 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2104 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2105 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2106 builtin_type_f_complex_s32): Likewise.
2107
2108 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2109 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2110
2111 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2112 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2113
2114 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2115 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2116
b6da22b0
UW
21172008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2118
2119 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2120 target_gdbarch instead of builtin_type_void_data_ptr.
2121 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2122 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2123 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2124 open_symbol_file_object): Likewise.
2125 * nto-tdep.c (LM_ADDR): Likewise.
2126
ff7da468
UW
21272008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2128
2129 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2130 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2131 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2132
4e906f53
UW
21332008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2134
2135 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2136 and its associated types to perform pointer conversion.
2137 (procfs_can_use_hw_breakpoint): Likewise.
2138 (procfs_auxv_parse): Remove unused variable.
2139
ffe5a37e
UW
21402008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2141
2142 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2143 instead of builtin_type_void_data_ptr.
2144 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2145
b806fb9a
UW
21462008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2147
2148 * expprint.c (print_subexp_standard): Compare against builtin type
2149 associated with exp->gdbarch instead of builtin_type_char.
2150
2151 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2152 extract values of arbitrary logical type. Handle arbitrary
2153 complex types.
2154
2155 * printcmd.c (float_type_from_length): New function.
2156 (print_scalar_formatted, printf_command): Use it.
2157
3e3b026f
UW
21582008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2159
2160 * valops.c: Include "objfiles.h" and "symtab.h".
2161 (find_function_in_inferior): New argument OBJF_P. Use it to return
2162 objfile where function is defined. Use per-objfile arch types
2163 instead of builtin_type_ to define default return type.
2164
2165 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2166 architecture to define inferior call argument types.
2167 * gcore.c (derive_heap_segment): Likewise.
2168 * objc-lang.c (value_nsstring): Likewise.
2169 * scm-lang.c (scm_lookup_name): Likewise.
2170 * scm-valprint.c (scm_inferior_print): Likewise.
2171 * valops.c (value_allocate_space_in_inferior): Likewise.
2172
2173 * eval.c (evaluate_subexp_standard): Update calls.
2174 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2175
2176 * linux-fork.c: Include "objfiles.h".
2177 * scm-lang.c: Include "objfiles.h".
2178 * scm-valprint.c: Include "objfiles.h".
2179
f8dcfc0a
UW
21802008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2181
2182 * gdbarch.sh (name_of_malloc): Remove.
2183 * gdbarch.c, gdbarch.h: Re-generate.
2184 * valops.c (value_allocate_space_in_inferior): Do not call
2185 gdbarch_name_of_malloc.
2186
c56324e0
UW
21872008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2188
2189 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2190 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2191 (value_bit_index): Use extract_unsigned_integer
2192 instead of unpack_long to read single byte.
2193
7788af6d
UW
21942008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2195
2196 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2197 associates types instead of builtin_type_ macros.
2198 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2199 (call_function_by_hand): Use per-architecture "int" type as
2200 fall-back if find_function_addr returns NULL VALUE_TYPE.
2201 Update call to value_arg_coerce.
2202
ad4820ab
UW
22032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2204
2205 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2206 (cplus_make_method_ptr): Add TYPE parameter.
2207 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2208 on to current_cp_abi.method_ptr_size callback.
2209 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2210 current_cp_abi.make_method_ptr callback.
2211
2212 * gdbtypes.c (lookup_methodptr_type): Pass target type
2213 argument to cplus_method_ptr_size.
2214 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2215 (value_struct_elt_for_reference): Likewise.
2216
2217 * gnu-v3-abi.c (get_class_arch): New function.
2218 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2219 instead of current_gdbarch. Update all callers.
2220 (gnuv3_get_vtable): Likewise.
2221 (gnuv3_get_virtual_fn): Likewise.
2222 (gnuv3_decode_method_ptr): Likewise.
2223 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2224 Use it instead of current_gdbarch.
2225 (gnuv3_virtual_fn_field): Likewise.
2226 (gnuv3_baseclass_offset): Likewise.
2227 (gnuv3_print_method_ptr): Likewise.
2228 (gnuv3_method_ptr_to_value): Likewise.
2229 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2230 class architecture. Use architecture types instead of builtin types.
2231 (gnuv3_make_method_ptr): Likewise.
2232
2233 * cp-valprint.c (cp_print_class_member): Expect pointer type
2234 instead of class type. Use its length when extracting value.
2235 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2236
5ed92fa8
UW
22372008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2238
2239 * stack.c (return_command): Use frame architecture to determine
2240 default integer return type.
2241
2242 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2243 to determine pointer types.
2244 (f77_get_dynamic_upperbound): Likewise.
2245
2246 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2247 (resolve_msgsend): Use architecture of current frame to determine
2248 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2249 (resolve_msgsend_stret, resolve_msgsend_super,
2250 resolve_msgsend_super_stret): Likewise.
2251
0dfff4cb
UW
22522008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2253
2254 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2255 instead of builtin_type_ macros.
2256 * amd64-tdep.c (amd64_register_type): Likewise.
2257 (amd64_get_longjmp_target): Likewise.
2258 * arm-tdep.c (arm_register_type): Likewise.
2259 * avr-tdep.c (avr_register_type): Likewise.
2260 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2261 * frv-tdep.c (frv_register_type): Likewise.
2262 * h8300-tdep.c (h8300_register_type): Likewise.
2263 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2264 hppa_skip_trampoline_code): Likewise.
2265 * i386-tdep.c (i386_register_type): Likewise.
2266 (i386_unwind_pc, i386_sse_type): Likewise.
2267 * ia64-tdep.c (ia64_register_type): Likewise.
2268 * m32r-tdep.c (m32r_register_type): Likewise.
2269 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2270 * m88k-tdep.c (m88k_register_type): Likewise.
2271 * mep-tdep.c (mep_register_type): Likewise.
2272 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2273 * mn10300-tdep.c (mn10300_register_type): Likewise.
2274 * mt-tdep.c (mt_copro_register_type): Likewise.
2275 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2276 (rs6000_convert_register_p, rs6000_register_to_value,
2277 rs6000_value_to_register): Likewise.
2278 * s390-tdep.c (s390_register_type): Likewise.
2279 * sh64-tdep.c (sh64_register_type): Likewise.
2280 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2281 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2282 sh_sh4_build_float_register_type, sh_sh4_register_type,
2283 sh_default_register_type): Likewise.
2284 * sparc64-tdep.c (sparc64_register_type): Likewise.
2285 * sparc-tdep.c (sparc32_register_type): Likewise.
2286 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2287 * v850-tdep.c (v850_register_type): Likewise.
2288 * vax-tdep.c (vax_register_type): Likewise.
2289 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2290 xtensa_push_dummy_call): Likewise.
2291
2292 * std-regs.c (value_of_builtin_frame_fp_reg,
2293 value_of_builtin_frame_pc_reg): Likewise.
2294 * target-descriptions.c (tdesc_register_type): Likewise.
2295
6d84d3d8
UW
22962008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2297
2298 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2299 instead of builtin_type_int as default unspecified integral type.
2300 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2301 assign_component, to_fixed_range_type): Likewise.
2302 * ada-typeprint.c (print_range, print_range_bound,
2303 print_range_type_named): Likewise.
2304 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2305 * eval.c (evaluate_subexp_standard): Likewise.
2306 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2307 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2308 build_gdb_vtable_type): Likewise.
2309 * jv-lang.c (java_array_type): Likewise.
2310 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2311 * m2-valprint.c (m2_print_long_set): Likewise.
2312 * parse.c (follow_types): Likewise.
2313 * p-typeprint.c (pascal_type_print_base): Likewise.
2314 * valops.c (value_one, value_array, value_string,
2315 value_bitstring): Likewise.
2316 * value.c (allocate_repeat_value, value_from_string): Likewise.
2317 * varobj.c (c_describe_child): Likewise.
2318 * mt-tdep.c (mt_register_type): Likewise.
2319 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2320 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2321
180b9a0e
UW
23222008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2323
2324 * defs.h (struct gdbarch): Add forward declaration.
2325 (set_next_address): Add GDBARCH argument.
2326 * printcmd.c (set_next_address): Use it to find pointer type.
2327 * breakpoint.c (breakpoint_1): Update call.
2328 * source.c (line_info): Likewise.
2329 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2330
2331 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2332 types for internal variable values.
2333 * infrun.c (handle_inferior_event): Likewise.
2334 * source.c (forward_search_command, reverse_search_command): Likewise.
2335 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2336 set_tracepoint_num, set_traceframe_context): Likewise.
2337
b769d911
UW
23382008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2339
2340 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2341 and builtin_true_unsigned_char.
2342 (builtin_type_true_char): Remove macro, add extern declaration.
2343 (builtin_type_true_unsigned_char): Add extern declaration.
2344 * gdbtypes.c (builtin_type_true_char): New global variable.
2345 (builtin_type_true_unsigned_char): Likewise.
2346 (_initialize_gdbtypes): Initialize them.
2347 (gdbtypes_post_init): Do not initialize builtin_true_char
2348 and builtin_true_unsigned_char members of struct builtin_type.
2349
2350 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2351 use builtin_type_true_unsigned_char instead.
2352
2353 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2354 instead of builtin_type_char for internal string.
2355
fde6c819
UW
23562008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2357
2358 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2359 (builtin_type_f_void): Remove macro.
2360 * gdbtypes.c (builtin_type_void): New global variable.
2361 (_initialize_gdbtypes): Initialize it.
2362
2363 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2364 lookup_pointer_type or lookup_function_type on builtin_type_void.
2365 * printcmd.c (set_next_address): Likewise.
2366 * objc-lang.c (value_nsstring): Likewise.
2367 * mt-tdep.c (mt_copro_register_type): Likewise.
2368 * xtensa-tdep.c (xtensa_register_type): Likewise.
2369
2370 * symfile.c (syms_from_objfile): Remove special handling
2371 of builtin_type_void and builtin_type_char.
2372
d4dbb9c7
UW
23732008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2374
2375 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2376 of builtin_type_ macros when handling OP_OBJC_ operations.
2377 * objc-lang.c (print_object_command): Likewise.
2378
8ca1c40e
UW
23792008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2380
2381 * ada-valprint.c: Include "objfiles.h".
2382 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2383 a System.Address type is defined to retrieve the proper pointer type
2384 to use to print it.
2385
3cb382c9
UW
23862008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2387
2388 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2389 result type instead of builtin_type_int.
2390 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2391 (ada_value_subscript): Update call to value_pos_atr.
2392 (ada_value_ptr_subscript): Likewise.
2393 (ada_evaluate_subexp): Likewise.
2394
a53b7a21
UW
23952008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2396
2397 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2398 (cast_from_fixed_to_double): Rename to ...
2399 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2400 of builtin_type_double.
2401 (ada_value_cast): Use cast_from_fixed instead of casting result
2402 of cast_from_fixed_to_double.
2403 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2404
22fe0fbb
UW
24052008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2406
2407 * valops.c (value_ind): No longer allow dereferencing an
2408 integer type.
2409 * eval.c (evaluate_subexp_standard): Handle deferencing an
2410 integer type here.
2411 * ada-lang.c (ada_evaluate_subexp): Likewise.
2412
d8631d21
UW
24132008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2414
2415 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2416 a reference type, pass the reference type directly to unpack_pointer.
2417 * c-valprint.c (c_val_print): Likewise.
2418 * f-valprint.c (f_val_print): Likewise.
2419 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2420 * p-valprint.c (pascal_val_print): Likewise.
2421
cb18ec49
UW
24222008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2423
2424 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2425 to construct the EVAL_SKIP dummy return value.
2426 * ada-lang.c (ada_evaluate_subexp): Likewise.
2427 * jv-lang.c (evaluate_subexp_java): Likewise.
2428 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2429 * scm-lang.c (evaluate_exp): Likewise.
2430
0ab7ba45
UW
24312008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2432
2433 * value.h (coerce_enum, coerce_number): Remove prototypes.
2434 * value.c (coerce_enum, coerce_number): Remove.
2435 * valarith.c (value_x_binop): Do not call coerce_enum.
2436 (value_x_unop): Likewise.
2437 (value_logical_not): Call coerce_array instead of coerce_number.
2438
f7c79c41
UW
24392008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2440
2441 * ax-gdb.c: Include "language.h".
2442 (gen_frame_args_address): Add GDBARCH parameter; use it
2443 instead of current_gdbarch.
2444 (gen_frame_locals_address): Likewise.
2445 (gen_var_ref): Add GDBARCH parameter. Update calls to
2446 gen_frame_args_address and gen_frame_locals_address. Use
2447 pointer type from gdbarch.
2448 (gen_usual_unary): Add EXP parameter. Use integer type
2449 from exp->gdbarch.
2450 (gen_usual_arithmetic): Likewise.
2451 (gen_integral_promotions): Likewise.
2452 (gen_add, gen_sub): Remove.
2453 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2454 (gen_logical_not): Use passed-in boolean result type
2455 instead of builtin_type_int.
2456 (gen_complement): Do not call gen_usual_unary or
2457 gen_integral_promotions.
2458 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2459 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2460 Use builtin_type_int32 as internal range type.
2461 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2462 as result type. Update call to gen_expr.
2463 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2464 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2465 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2466 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2467 Use exp->gdbarch instead of current_gdbarch.
2468 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2469
f44316fa
UW
24702008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2471
2472 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2473 and unop_promote before calling value_binop et. al.
2474 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2475 and unop_promote before calling value_binop et. al.
2476
2477 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2478 (value_pos): Do not call unop_promote.
2479 (value_neg, value_complement): Likewise.
2480
4066e646
UW
24812008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2482
2483 * value.h (unop_promote, binop_promote): Add prototypes.
2484 * eval.c (unop_promote, binop_promote): New functions.
2485 * valarith.c (unop_result_type, binop_result_type): Remove.
2486 (value_binop): Call binop_promote or unop_promote.
2487 Inline remaining parts of binop_result_type. Remove special
2488 code to truncate integer values for unsigned operations.
2489 (value_pos): Call unop_promote. Inline remaining parts of
2490 unop_result_type.
2491 (value_neg, value_complement): Likewise.
2492
89eef114
UW
24932008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2494
2495 * value.h (value_add, value_sub): Remove.
2496 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2497 * valarith.c (value_add, value_sub): Remove.
2498 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2499 (find_size_for_pointer_math): Add assertion. Update comment.
2500 (value_binop): Update comment.
2501
2502 * eval.c (ptrmath_type_p): New function.
2503 (evaluate_subexp_standard): Replace value_add and value_sub
2504 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2505 Use builtin_type_uint8 instead of builtin_type_char to hold
2506 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2507 * valarith.c (value_subscript): Replace value_add by
2508 value_ptradd. Replace value_sub by value_binop.
2509 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2510 (ada_tag_name_2): Replace value_add by value_ptradd.
2511 (ada_evaluate_subexp): Replace value_add and value_sub by
2512 value_binop.
2513 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2514 by value_ptradd.
2515 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2516 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2517
98b90dd8
UW
25182008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2519
2520 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2521 the expression architecture instead of builtin_type_int as the
2522 sizeof return type.
2523
c806c55a
UW
25242008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2525
2526 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2527 a type parameter as expression element.
2528 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2529 type as expression element.
2530 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2531 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2532
fbb06eb1
UW
25332008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2534
2535 * language.h (struct language_arch_info): New members
2536 bool_type_default and bool_type_symbol.
2537 (lang_bool_type): Remove prototype.
2538 (LA_BOOL_TYPE): Remove macro.
2539 (language_bool_type): Add prototype.
2540 * language.c (lang_bool_type): Remove.
2541 (language_bool_type): New function.
2542
2543 * value.h (value_in): Change return value to int.
2544 * value.c (value_in): Return int instead of struct value *.
2545
2546 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2547 of using LA_BOOL_TYPE. Update call to value_in.
2548 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2549 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2550
2551 * language.c (unknown_language_arch_info): Set bool_type_default member
2552 of struct language_arch_info.
2553 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2554 bool_type_default members of struct language_arch_info.
2555 * c-lang.c (c_language_arch_info): Set bool_type_default member
2556 of struct language_arch_info.
2557 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2558 members of struct language_arch_info.
2559 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2560 bool_type_default members of struct language_arch_info.
2561 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2562 bool_type_default members of struct language_arch_info.
2563 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2564 bool_type_default members of struct language_arch_info.
2565 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2566 bool_type_default members of struct language_arch_info.
2567
de7b6b47
UW
25682008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2569
2570 * jv-lang.c (enum java_primitive_types): New type.
2571 (java_language_arch_info): New function.
2572 (java_language): Use it instead of c_language_arch_info.
2573
afc05acb
UW
25742008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2575
2576 * value.h (value_bitstring_subscript): New prototype.
2577 * valarith.h (value_bitstring_subscript): New function.
2578 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2579 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2580 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2581
3e79cecf
UW
25822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2583
2584 * expression.h (struct expression): New member GDBARCH.
2585 * parse.c (parse_exp_in_context): Initialize it.
2586 * parser-def.h (parse_gdbarch, parse_language): New macros.
2587
2588 * ada-exp.y (parse_type): New macro.
2589 Replace builtin_type_ macros by using parse_type.
2590 Replace current_language by parse_language.
2591 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2592 Replace builtin_type_ macros.
2593
2594 * c-exp.y (parse_type): New macro.
2595 Replace builtin_type_ macros by using parse_type.
2596 (parse_number): Replace current_gdbarch by parse_gdbarch.
2597 (yylex): Replace current_language by parse_language.
2598
2599 * f-exp.y (parse_type, parse_f_type): New macros.
2600 Replace builtin_type_ macros by using parse_{f_,}type.
2601 (parse_number): Replace current_gdbarch by parse_gdbarch.
2602 (yylex): Replace current_language by parse_language.
2603
2604 * jv-exp.y (parse_type): New macro.
2605 (parse_number): Replace builtin_type_ macros by using parse_type.
2606
2607 * m2-exp.y (parse_type, parse_m2_type): New macros.
2608 Replace builtin_type_ macros by using parse_{m2_,}type.
2609
2610 * objc-exp.y (parse_type): New macro.
2611 Replace builtin_type_ macros by using parse_type.
2612 (parse_number): Replace current_gdbarch by parse_gdbarch.
2613 (yylex): Replace current_language by parse_language.
2614
2615 * p-exp.y (parse_type): New macro.
2616 Replace builtin_type_ macros by using parse_type.
2617 (parse_number): Replace current_gdbarch by parse_gdbarch.
2618 (yylex): Replace current_language by parse_language.
2619
c841afd5
UW
26202008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2621
2622 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2623 and DATA_SYMBOL_TYPE arguments.
2624 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2625 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2626 (write_dollar_variable): Update call.
2627
2628 * ada-exp.y (write_var_or_type): Update call.
2629 * c-exp.y: Likewise.
2630 * f-exp.y: Likewise.
2631 * jv-exp.y: Likewise.
2632 * m2-exp.y: Likewise.
2633 * objc-exp.y: Likewise.
2634 * p-exp.y: Likewise.
2635
0c1f74cf
JB
26362008-09-10 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-lang.c (ada_parent_type): Add handling of the case where
2639 the _parent field is a pointer and/or has a parallel XVS type.
2640 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2641 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2642 the type of the tag instead of doing forcing an EVAL_NORMAL
2643 expression evaluation.
2644
5823c3ef
JB
26452008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2646 Joel Brobecker <brobecker@adacore.com>
2647
2648 * ada-lang.c (is_digits_suffix): New function.
2649 (is_dot_digits_suffix): Remove.
2650 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2651 before looking up in symbol table, and do not use wild matches on them.
2652 (wild_match): Reimplement for speed and to allow matching of operator
2653 symbols.
2654 (is_valid_name_for_wild_match): Return zero for names that do not
2655 follow the GNAT encoding.
2656
2657 (is_name_suffix): Fix typo in comment.
2658 (to_record_with_fixed_variant_part): Ditto.
2659
e5fa8013
PA
26602008-09-10 Pedro Alves <pedro@codesourcery.com>
2661
2662 * Makefile.in (gnu-nat.o): New rule.
2663
6d2e05aa
JB
26642008-09-10 Joel Brobecker <brobecker@adacore.com>
2665
2666 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2667 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2668
2ac8a782
JB
26692008-09-10 Joel Brobecker <brobecker@adacore.com>
2670
2671 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2672 Add special handling for pointer types.
2673
b861ac81
PA
26742008-09-10 Pedro Alves <pedro@codesourcery.com>
2675
2676 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2677 right scope level.
2678 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2679
030b4912
UW
26802008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2681
2682 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2683 of builtin_type_int.
2684 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2685 instead of builtin_type_int.
2686
d51fd4c8
PA
26872008-09-09 Pedro Alves <pedro@codesourcery.com>
2688
2689 * infrun.c (normal_stop): Run hook-stop last.
2690
11cb6f65
PA
26912008-09-09 Pedro Alves <pedro@codesourcery.com>
2692
2693 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2694 (init_gnu_ops): Don't register it.
2695
a9ab7422
PA
26962008-09-09 Pedro Alves <pedro@codesourcery.com>
2697
2698 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2699 threads.
2700
694182d2
DJ
27012008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2702
2703 * valops.c (value_cast_structs): Return NULL for failure.
2704 (value_cast): Handle NULL from value_cast_structs.
2705 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2706
dcf4fbde
PA
27072008-09-08 Pedro Alves <pedro@codesourcery.com>
2708
2709 * inferior.h (context_switch_to): Delete.
2710 * infrun.c (context_switch): Don't save and load infrun state.
2711 (context_switch_to): Delete.
2712
2713 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2714 calls by switch_to_thread calls.
2715
2716 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2717 * thread.c (main_thread_state, main_thread_executing): Delete.
2718 (inferior_thread): Delete references to them.
2719 (add_thread_silent): Fix case where we're adding a thread with the
2720 same ptid as an exited thread. Remove references to
2721 context-switching.
2722 (load_infrun_state, save_infrun_state): Delete.
2723 (thread_alive, is_thread_state, any_running, is_executing)
2724 (set_executing): Remove the special handling for targets that
2725 don't register any thread.
2726 (restore_current_thread, thread_apply_all_command)
2727 (do_captured_thread_select): Unconditionally call
2728 switch_to_thread.
2729
2730 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2731 Call switch_to_thread instead of context_switch_to.
2732
95e54da7
PA
27332008-09-08 Pedro Alves <pedro@codesourcery.com>
2734
2735 Remove global continuations in favour of a per-thread
2736 continuations.
2737
2738 * gdbthread.h (struct thread_info): Add comments around
2739 continuations and intermediate_continuations.
2740 (save_infrun_state, load_infrun_state): Delete continuations and
2741 intermediate_continuations arguments.
fedae5ff 2742 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
2743 * thread.c (clear_thread_inferior_resources): Discard all
2744 continuations of the thread we're clearing.
2745 (save_infrun_state, load_infrun_state): Delete continuations and
2746 intermediate_continuations arguments, and the code referencing
2747 them.
2748 * utils.c: Include "gdbthread.h".
2749 (cmd_continuation, intermediate_continuation): Delete.
2750 (add_continuation): Add thread_info* argument. Install the
2751 continuation on it.
2752 (restore_thread_cleanup): New.
2753 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2754 New.
2755 (do_all_continuations): Reimplement.
2756 (discard_all_continuations_thread_callback,
2757 discard_all_continuations_thread): New.
2758 (discard_all_continuations): Reimplement.
2759 (add_intermediate_continuation): Add thread_info* argument.
2760 Install the continuation on it.
2761 (do_all_intermediate_continuations_thread_callback)
2762 (do_all_intermediate_continuations_thread): New.
2763 (do_all_intermediate_continuations): Reimplement.
2764 (discard_all_intermediate_continuations_thread_callback): New.
2765 (discard_all_intermediate_continuations_thread): New.
2766 (discard_all_intermediate_continuations): Reimplement.
2767
2768 * breakpoint.c (until_break_command): Install the continuation on
2769 the current thread.
2770
2771 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2772 (struct thread_info): Forward declare.
2773 (add_continuation, add_intermediate_continuation): Add
2774 thread_info* argument.
2775 (do_all_continuations_thread, discard_all_continuations_thread)
2776 (do_all_intermediate_continuations_thread)
2777 (discard_all_intermediate_continuations_thread): Declare.
2778 * inf-loop.c (inferior_event_handler): In non-stop only run
2779 continuations on the thread that stopped. In all-stop, run
2780 continuations on all threads.
2781 * infcmd.c (step_once, finish_command): Adjust.
2782
414c69f7
PA
27832008-09-08 Pedro Alves <pedro@codesourcery.com>
2784
2785 Remove the global stop_step in favour of a per-thread
2786 stop_step.
2787
2788 * inferior.h (stop_step): Delete.
2789
2790 * gdbthread.h (struct thread_info): Add comments to stop_step.
2791 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2792 * thread.c (load_infrun_state, save_infrun_state): Remove
2793 stop_step argument, and references to it.
2794
2795 * infrun.c (clear_proceed_status): Clear stop_step.
2796 (fetch_inferior_event): Adjust.
2797 (context_switch): Don't context-switch stop_step.
2798 (handle_inferior_event): Adjust.
2799 (normal_stop): Adjust.
2800 (save_inferior_status, restore_inferior_status): Adjust.
2801
2802 * infcmd.c (stop_step): Delete.
2803 (step_1, step_1_continuation, step_once, until_next_command):
2804 Adjust.
2805
af679fd0
PA
28062008-09-08 Pedro Alves <pedro@codesourcery.com>
2807
2808 Remove the global step_multi in favour of a per-thread
2809 step_multi.
2810
2811 * inferior.h (step_multi): Delete.
2812 * gdbthread.h (struct thread_info): Add comments around
2813 step_multi.
2814 (save_infrun_state, load_infrun_state): Remove step_multi
2815 parameter.
2816 * thread.c (load_infrun_state, save_infrun_state): Remove
2817 step_multi argument, and references to it.
2818 * infcmd.c (step_multi): Delete.
2819 (step_1): Adjust.
2820 (step_1_continuation, until_next_command): Adjust.
2821 * infrun.c (fetch_inferior_event): Adjust.
2822 (context_switch): Don't context-switch step_multi.
2823 (print_stop_reason, normal_stop): Adjust.
2824
2020b7ab
PA
28252008-09-08 Pedro Alves <pedro@codesourcery.com>
2826
2827 Remove the global stop_signal in favour of a per-thread
2828 stop_signal.
2829
2830 * inferior.h (stop_signal): Delete.
2831 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2832 stop_signal argument.
2833 * thread.c (load_infrun_state, save_infrun_state): Remove
2834 stop_signal argument. Don't reference it.
2835
2836 * infcmd.c (stop_signal): Delete.
2837 (program_info): Adjust.
2838 * infrun.c (resume): Clear stop_signal.
2839 (proceed): Adjust. Pass the last stop_signal to the thread we're
2840 resuming.
2841 (context_switch): Don't context-switch stop_signal.
2842 (handle_inferior_event, keep_going): Adjust.
2843 (save_inferior_status, restore_inferior_status): Adjust.
2844
2845 * fbsd-nat.c: Include "gdbthread.h".
2846 (find_signalled_thread, find_stop_signal): New.
2847 (fbsd_make_corefile_notes): Use it.
2848 * fork-child.c (startup_inferior): Adjust.
2849
2850 * linux-nat.c (get_pending_status): Adjust.
2851 (linux_nat_do_thread_registers): Adjust.
2852 (find_signalled_thread, find_stop_signal): New.
2853 (linux_nat_do_thread_registers): Add stop_signal parameter.
2854 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2855 (linux_nat_corefile_thread_callback): Pass stop_signal.
2856 (linux_nat_do_registers): Delete.
2857 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2858 there's always a thread.
2859
2860 * procfs.c (find_signalled_thread, find_stop_signal): New.
2861 (find_stop_signal): New.
2862 (procfs_do_thread_registers): Add stop_signal parameter.
2863 (struct procfs_corefile_thread_data): Add stop_signal member.
2864 (procfs_corefile_thread_callback): Pass args->stop_signal.
2865 (procfs_make_note_section): Find the last stop_signal.
2866
2867 * solib-irix.c: Include gdbthread.h.
2868 (irix_solib_create_inferior_hook): Adjust.
2869 * solib-osf.c: Include gdbthread.h.
2870 (osf_solib_create_inferior_hook): Adjust.
2871 * solib-sunos.c: Include gdbthread.h.
2872 (sunos_solib_create_inferior_hook): Adjust.
2873 * solib-svr4.c: Include gdbthread.h.
2874 (svr4_solib_create_inferior_hook): Adjust.
2875
2876 * win32-nat.c (do_initial_win32_stuff): Adjust.
2877
32400beb
PA
28782008-09-08 Pedro Alves <pedro@codesourcery.com>
2879
2880 * gdbthread.h (struct thread_info): Add comments around
2881 proceed_to_finish.
2882 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2883 argument.
2884 * thread.c (load_infrun_state, save_infrun_state): Delete
2885 proceed_to_finish argument and references to it.
2886
2887 * infcall.c (call_function_by_hand): Adjust.
2888 * infcmd.c (finish_command): Adjust.
2889 * infrun.c (proceed_to_finish): Delete.
2890 (clear_proceed_status): Adjust.
2891 (context_switch): Don't context-switch proceed_to_finish.
2892 (normal_stop, save_inferior_status, restore_inferior_status):
2893 Adjust.
2894
347bddb7
PA
28952008-09-08 Pedro Alves <pedro@codesourcery.com>
2896
2897 * inferior.h (stop_bpstat): Delete.
2898
2899 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2900
2901 * breakpoint.c (bpstat_do_actions): Rename to ...
2902 (bpstat_do_actions_1): ... this. Make static. Change return type
2903 to int. Return true if a breakpoint proceeded.
2904 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2905 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2906 gone.
2907
2908 * gdbthread.h (struct thread_info): Add stop_bpstat.
2909 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2910 argument.
2911 * thread.c (load_infrun_state, save_infrun_state): Remove
2912 stop_bpstat argument, and the code referencing it.
2913
2914 * infcall.c: Include "gdbthread.h".
2915 (call_function_by_hand): Adjust.
2916 * exceptions.c: Include "gdbthread.h".
2917 (throw_exception): Adjust.
2918 * infcmd.c (stop_bpstat): Delete.
2919 (continue_command): In all-stop, set the ignore count on the
2920 thread that reported the stop. In non-stop, set it on the current
2921 thread.
2922 (finish_command_continuation): Adjust.
2923 (program_info): Adjust.
2924 * infrun.c (clear_proceed_status): Adjust.
2925 (context_switch): Don't context-switch stop_bpstat.
2926 (handle_inferior_event): Adjust.
2927 (normal_stop): Adjust.
2928 (save_inferior_status, restore_inferior_status): Adjust.
2929
2930 * inf-loop.c (inferior_event_handler): Remove parameter to
2931 bpstat_do_actions call.
2932 * top.c (command_loop): Remove parameter to bpstat_do_actions
2933 call. Call it unconditionally.
2934 * event-top.c (command_handler): Ditto.
2935 * python/python.c (execute_gdb_command): Ditto.
2936
078130d0
PA
29372008-09-08 Pedro Alves <pedro@codesourcery.com>
2938
2939 * inferior.h (step_over_calls): Delete.
2940
2941 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2942 step_over_calls argument.
2943 * thread.c (save_infrun_state, load_infrun_state): Remove
2944 step_over_calls argument. Adjust.
2945
2946 * infcmd.c (step_over_calls): Delete.
2947 (step_1): Adjust.
2948 * infrun.c (clear_proceed_status): Adjust.
2949 (context_switch): Don't context-switch step_over_calls.
2950 (handle_inferior_event, save_inferior_status)
2951 (restore_inferior_status): Adjust.
2952
4e1c45ea
PA
29532008-09-08 Pedro Alves <pedro@codesourcery.com>
2954
2955 Remove context switching in favour of accessing thread_info fields
2956 directly.
2957
2958 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2959 Delete.
2960 (struct thread_stepping_state): Delete.
2961 (gtss, tss): Delete.
2962 (follow_inferior_reset_breakpoints, follow_exec)
2963 (resume, clear_proceed_status): Adjust.
2964 (prev_pc): Delete.
2965 (proceed, start_remote, init_wait_for_inferior): Adjust.
2966 (struct execution_control_state): Add event_thread member.
2967 (delete_step_resume_breakpoint_callback)
2968 (delete_step_thread_step_resume_breakpoint)
2969 (delete_step_thread_step_resume_breakpoint_cleanup)
2970 (delete_step_thread_step_resume_breakpoint): New.
2971 (wait_for_inferior, init_execution_control_state): Use
2972 delete_step_thread_step_resume_breakpoint_cleanup.
2973 (wait_for_inferior): Set the event_thread.
2974 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2975 with delete_step_thread_step_resume_breakpoint.
2976 (init_thread_stepping_state): Change parameter type to
2977 thread_info. Adjust.
2978 (context_switch): Don't context switch prev_pc,
2979 stepping_over_breakpoint, step_resume_breakpoint,
2980 step_range_start, step_range_end, step_frame_id,
2981 tss->stepping_over_breakpoint,
2982 tss->stepping_through_solib_after_catch,
2983 tss->stepping_through_solib_catchpoints, tss->current_line, or
2984 tss->current_symtab.
2985 (adjust_pc_after_break, handle_inferior_event)
2986 (currently_stepping, step_into_function)
2987 (insert_step_resume_breakpoint_at_sal)
2988 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2989 (clear_stepping_state): New.
2990 (normal_stop): Adjust.
2991 (save_inferior_status, restore_inferior_status): Adjust.
2992
2993 * gdbthread.h (struct thread_info): Comments describing the
2994 members moved here. Add step_after_step_resume_breakpoint.
2995 (delete_step_resume_breakpoint): Add thread_info argument.
2996 (save_infrun_state, load_infrun_state): Remove prev_pc,
2997 trap_expected, step_resume_breakpoint, step_range_start,
2998 step_range_end, step_frame_id, another_trap,
2999 stepping_through_solib_after_catch,
3000 stepping_through_solib_catchpoints, current_line and
3001 current_symtab function arguments.
3002 (inferior_thread): Declare.
3003
3004 * thread.c (inferior_thread): New.
3005 (delete_step_resume_breakpoint): Add a thread_info parameter and
3006 rewrite.
3007 (load_infrun_state, save_infrun_state): Remove prev_pc,
3008 trap_expected, step_resume_breakpoint, step_range_start,
3009 step_range_end, step_frame_id, stepping_over_breakpoint,
3010 stepping_through_solib_after_catch,
3011 stepping_through_solib_catchpoints, current_line and
3012 current_symtab args. Remove code referencing them.
3013
3014 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3015 Delete.
3016 (step_1, step_once, until_next_command): Adjust.
3017
3018 * inferior.h (step_range_start, step_range_end, step_frame_id):
3019 Delete.
3020
3021 * linux-nat.c (linux_child_follow_fork): If following the child,
3022 move the step state to it. Adjust.
3023 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3024 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3025
757f359d
PA
30262008-09-08 Pedro Alves <pedro@codesourcery.com>
3027
3028 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3029 thread.
3030
0de3b513
PA
30312008-09-08 Pedro Alves <pedro@codesourcery.com>
3032
3033 * corelow.c (add_to_thread_list): If this is the first time we
3034 hear about thread info, update inferior_ptid.
3035 (core_open): Clear the thread list and set inferior_ptid before
3036 acknowledging a new inferior. Find threads before fetching
3037 register info. Give an upper target layer a chance to find and
3038 claim new threads. Print core generation and stop signal info
3039 after finding new threads.
3040 (get_core_register_section): Look at the lwp member of
3041 inferior_ptid for detecting if we have threads info, instead of
3042 the pid member.
3043 (core_pid_to_str): New.
3044 (init_core_ops): Register core_pid_to_str.
3045
4189d2f8
PA
30462008-09-08 Pedro Alves <pedro@codesourcery.com>
3047
3048 * spu-linux-nat.c (spu_child_post_startup_inferior)
3049 (spu_child_post_attach): Don't add the main thread here.
3050
617fd3b5
PA
30512008-09-08 Pedro Alves <pedro@codesourcery.com>
3052
3053 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3054
3055 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3056 seeing a thread id, extend the main thread's ptid. If we still
3057 have pending execs, don't be verbose about new threads.
3058 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3059 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3060 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3061 Adjust.
3062
2689673f
PA
30632008-09-08 Pedro Alves <pedro@codesourcery.com>
3064
3065 * procfs.c (to_attach): Create a procinfo for the current lwp.
3066 Add it to gdb's thread list.
3067 (procfs_fetch_registers, procfs_store_registers): Assume there's
3068 always an lwp.
3069 (procfs_wait): Don't add the main thread here.
3070 (procfs_init_inferior): Create a procinfo for the main lwp here.
3071 Change main thread's ptid with thread_change_ptid.
3072 (procfs_notice_thread): Check for exited threads.
3073 (procfs_corefile_thread_callback): Remove check for the main
3074 process.
3075 (procfs_make_note_section): Assume there is always a thread.
3076
3077 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3078 attaching. Change the main thread ptid with thread_change_ptid.
3079 (sol_thread_detach): Clear sol_thread_active.
3080 (sol_thread_wait): Check for exited threads.
3081 (sol_thread_create_inferior): Clear sol_thread_active before
3082 creating a new inferior. Change the main thread ptid with
3083 thread_change_ptid.
3084 (sol_thread_mourn_inferior): Clear sol_thread_active.
3085 (sol_find_new_threads_callback): Check for exited threads.
3086
62a93fa9
PA
30872008-09-08 Pedro Alves <pedro@codesourcery.com>
3088
3089 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3090 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3091 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3092 process, and return TARGET_WAITKIND_IGNORE.
3093
438ac09b
PA
30942008-09-08 Pedro Alves <pedro@codesourcery.com>
3095
3096 * inf-ttrace.c: Include <signal.h>
3097 (inf_ttrace_delete_dead_threads_callback): New.
3098 (inf_ttrace_resume_lwp): New.
3099 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3100 delete dying threads until they are really dead.
3101 (inf_ttrace_wait): After stopping the whole process, delete any
3102 dying thread that is really dead by now.
3103 (inf_ttrace_thread_alive): Return 1.
3104 (inf_ttrace_extra_thread_info): New.
3105 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3106
2935f27f
PA
31072008-09-08 Pedro Alves <pedro@codesourcery.com>
3108
3109 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3110 of the child fork.
3111 (inf_ttrace_attach): Add the main thread.
3112 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3113 for always a thread.
3114 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3115 using thread_change_ptid, and set its private data. Don't add the
3116 main thread here.
3117 (inf_ttrace_pid_to_str): Adjust.
3118
fb5e7258
PA
31192008-09-08 Pedro Alves <pedro@codesourcery.com>
3120
3121 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3122 thread_change_ptid. Check for exited threads.
3123 (bsd_uthread_find_new_threads): Check for exited threads.
3124
af990527
PA
31252008-09-08 Pedro Alves <pedro@codesourcery.com>
3126
3127 * inf-ptrace.c: Include "gdbthread.h".
3128 (inf_ptrace_attach): Add the main thread here.
3129 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3130 Decorate the main thread id with the lwp id.
3131
27c9d204
PA
31322008-09-08 Pedro Alves <pedro@codesourcery.com>
3133
3134 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3135 thread_change_ptid. Don't add or mark the main thread as running
3136 and executing here.
3137 * fork-child.c (fork_inferior): Add the main thread here.
3138
de9f48f0
JG
31392008-09-08 Jerome Guitton <guitton@adacore.com>
3140
3141 * rs6000-tdep.c (rs6000_fetch_instruction)
3142 (rs6000_skip_stack_check): New functions.
3143 (skip_prologue): Skip stack check sequence.
3144
52163a60
DD
31452008-09-08 David Daney <ddaney@avtrex.com>
3146
3147 * dummy-frame.h (frame.h): Include it.
3148 (struct frame_id): Remove declaration.
3149
87805e63
UW
31502008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3151
3152 * spu-tdep.c (spu_push_dummy_code): New function.
3153 (spu_gdbarch_init): Install it.
3154
0b1553bc
UW
31552008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3156
3157 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3158 instead of paddr_nz.
3159 * gdbarch.c: Regenerate.
3160
3161 * target.c (target_xfer_partial, debug_print_register): Use
3162 core_addr_to_string_nz instead of paddr_nz.
3163
2454a024
UW
31642008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3165
3166 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3167 *before* calling gdbarch_init_osabi.
3168 (rs6000_aix_init_osabi): Disable displaced stepping.
3169
b52323fa
UW
31702008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3171
3172 * target.c (update_current_target): Do not inherit to_open
3173 or to_close.
3174 (pop_target): Call target_close on target_stack instead
3175 of current_target.
3176 (pop_all_targets_above): Likewise.
3177
fead6908
UW
31782008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3179
3180 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3181 (gnuv3_print_method_ptr): Use it.
3182 (gnuv3_method_ptr_to_value): Likewise.
3183
60441ab9
UW
31842008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3185
3186 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3187 register_area callback function.
3188 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3189 Use it instead of current_gdbarch.
3190 * nto-procfs.c (procfs_store_registers): Update call.
3191
bb486190
UW
31922008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3193
3194 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3195 regcache architecture instead of current_gdbarch.
3196
9dacea90
UW
31972008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3198
3199 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3200 (check_for_saved): Use it instead of current_gdbarch.
3201 (is_arg_spill): Add gdbarch paramter. Use it instead
3202 of current_gdbarch.
3203 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3204 to is_arg_spill and check_for_saved.
3205 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3206
5db8bbe5
UW
32072008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3208
3209 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3210 instead of current_gdbarch.
3211
6ba38425
UW
32122008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3213
3214 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3215 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3216 Use it instead of current_gdbarch.
3217 (m68kbsd_supply_fpregset): Update call.
3218 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3219 (m68kbsd_collect_fpregset): Likewise.
3220
35488783
UW
32212008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3222
3223 * cris-tdep.c (cris_version, cris_mode): Remove.
3224 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3225 (cris_breakpoint_from_pc): Likewise.
3226 (cris_frame_unwind_cache): Use tdep->cris_version.
3227 (crisv32_scan_prologue): Likewise.
3228 (cris_spec_reg_applicable): Add gdbarch argument.
3229 Use tdep->cris_version.
3230 (cris_register_size, cris_special_register_name): Update calls.
3231 (cris_special_register_name): Add gdbarch argument.
3232 (cris_register_name, crisv32_register_name): Update calls.
3233
9dae60cc
UW
32342008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3235
3236 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3237 instead of current_gdbarch.
3238
3239 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3240 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3241 * sh-tdep.c (gdb_print_insn_sh): Remove.
3242 (sh_gdbarch_init): Install print_insn_sh directly.
3243
3244 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3245 from current_gdbarch.
3246 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3247 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3248 depending on mips_abi.
3249
24568a2c
UW
32502008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3251
3252 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3253 (smash_text_address): Likewise.
3254 * gdbarch.c, gdbarch.h: Regenerate.
3255
3256 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3257 * arch-utils.h (core_addr_identity): Likewise.
3258 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3259 (arm_smash_text_address): Likewise.
3260 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3261 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3262 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3263
3264 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3265 Use it instead of current_gdbarch.
3266
3267 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3268 arm_dwarf2_prev_register): Update calls.
3269 * m88k-tdep.c (m88k_unwind_pc): Update call.
3270
f7fd4728
UW
32712008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3272
3273 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3274 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3275 Call gdbarch_integer_to_address directly instead of converting
3276 to value and back. Update comment.
3277 (execute_stack_op): Update call site.
3278 * dwarf2loc.c (find_location_expression): Likewise.
3279 (locexpr_describe_location): Update
3280
3281 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3282 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3283 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3284 (dwarf2_loc_desc_needs_frame): Likewise.
3285
714835d5
UW
32862008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3287
3288 * breakpoint.h (struct bp_location): Change type of section
3289 member to "struct obj_section *".
3290 * tracepoint.h (struct tracepoint): Likewise.
3291 * symtab.h (struct general_symbol_info): Replace bfd_section
3292 member with obj_section.
3293 (struct symtab_and_line): Change type of section member to
3294 "struct obj_section *".
3295 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3296 (SYMBOL_OBJ_SECTION): ... this.
3297
3298 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3299 section as obj_section instead of bfd_section.
3300
3301 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3302 directly instead of looking of obj_section from bfd_section.
3303
3304 * objfiles.h (find_pc_sect_section): Remove.
3305 * objfiles.c (find_pc_sect_section): Remove.
3306 (find_pc_section): Inline find_pc_sect_section code.
3307
3308 * symfile.h (find_pc_overlay): Return struct obj_section *.
3309 (find_pc_mapped_section): Likewise.
3310 (section_is_overlay, section_is_mapped): Change type of section
3311 argument to struct obj_section *.
3312 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3313 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3314 (symbol_overlayed_address): Likewise.
3315 * symtab.h (symbol_overlayed_address): Likewise.
3316 * symfile.c (overlay_is_mapped): Remove.
3317 (section_is_mapped): Inline overlay_is_mapped code. Update.
3318 (overlay_invalidate_all): Update.
3319 (section_is_overlay): Change section argument to type
3320 "struct obj_section *". Use bfd_ methods.
3321 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3322 (pc_in_mapped_range): Likewise. Handle relocated sections.
3323 (sections_overlap): Likewise.
3324 (overlay_unmapped_address): Likewise.
3325 (overlay_mapped_address): Likewise.
3326 (symbol_overlayed_address): Likewise.
3327 (find_pc_overlay): Return struct obj_section *.
3328 (find_pc_mapped_section): Likewise.
3329 (list_overlays_command): Update.
3330 (map_overlay_command, unmap_overlay_command): Update.
3331 (simple_overlay_update): Update.
3332
3333 * block.h (blockvector_for_pc_sect): Change section argument
3334 to type "struct obj_section *".
3335 (block_for_pc_sect): Likewise.
3336 * block.c (blockvector_for_pc_sect): Change section argument
3337 to type "struct obj_section *".
3338 (block_for_pc_sect): Likewise.
3339 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3340 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3341 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3342 (matching_bfd_sections): Rename to ...
3343 (matching_obj_sections): ... this. Update argument types.
3344 * blockframe.c (find_pc_sect_function): Likewise.
3345 * breakpoint.c (describe_other_breakpoints): Likewise.
3346 (breakpoint_has_pc, check_duplicates_for): Likewise.
3347 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3348 (lookup_minimal_symbol_by_pc_section): Likewise.
3349 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3350 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3351 find_pc_sect_line, find_function_start_pc): Likewise.
3352 (matching_bfd_sections): Rename to ...
3353 (matching_obj_sections): ... this. Update argument types.
3354
3355 * blockframe.c (find_pc_partial_function): Update to section
3356 type changes. No longer call find_pc_sect_section.
3357 (cache_pc_function_section): Change to type "struct obj_section *".
3358 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3359 * exec.c (xfer_memory): Likewise.
3360 * findvar.c (read_var_value): Likewise.
3361 * infcmd.c (jump_command): Likewise.
3362 * linespec.c (minsym_found): Likewise.
3363 * maint.c (maintenance_translate_address): Likewise.
3364 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3365 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3366 * parse.c (write_exp_msymbol): Likewise.
3367 * printcmd.c (build_address_symbolic): Likewise.
3368 (address_info, sym_info): Likewise.
3369 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3370 * symtab.c (fixup_section): Likewise.
3371 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3372 (find_pc_line, find_function_start_sal): Likewise.
3373 * target.c (memory_xfer_partial): Likewise.
3374 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3375 * spu-tdep.c (spu_overlay_update): Likewise.
3376
623d3eb1
DE
33772008-09-04 Doug Evans <dje@google.com>
3378
3379 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3380 Change argument of pulongest from CORE_ADDR to ULONGEST.
3381 All callers updated.
3382 * utils.c (plongest): Renamed from paddr_d.
3383 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3384 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3385 `CORE_ADDR addr' arg of error message.
3386
8775bb90
MS
33872008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3388
3389 * ser-tcp.c (ser_tcp_send_break): New function.
3390 (_initialize_ser_tcp): Use ser_tcp_send_break.
3391 * ser-tcp.h (ser_tcp_send_break): New prototype.
3392
9ff3afda
UW
33932008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3394
3395 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3396 when allocating stack frame for inferior call.
3397
c4891da7
UW
33982008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3399
3400 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3401 SP or return address if we failed to find a valid frame.
3402
514f746b
AR
34032008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3404
3405 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3406 non-permanent breakpoints.
3407 (bpstat_stop_status): Change enable_state to bp_disabled only for
3408 non-permanent breakpoints.
3409 (bp_loc_is_permanent): New function.
3410 (create_breakpoint): Check if the location points to a permanent
3411 breakpoint and if it does, make breakpoint permanent.
3412 (update_breakpoint_locations): Make sure new locations of permanent
3413 breakpoints are properly initialized.
3414 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3415 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3416
a12654ce
PA
34172008-09-02 Pedro Alves <pedro@codesourcery.com>
3418
3419 * breakpoint.c (insert_breakpoints, update_global_location_list):
3420 Check breakpoints_always_inserted_mode instead of
3421 always_inserted_mode directly.
3422
8b7a6d61
AS
34232008-09-02 Andreas Schwab <schwab@suse.de>
3424
3425 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3426
d68209e4
JK
34272008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3428
3429 Stay compatible after the GCC PR fortran/29635 fix.
3430 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3431 (process_die <DW_TAG_imported_module>): Do not assert anything about
3432 these unsupported tags.
3433
ef4cb050
TT
34342008-08-29 Tom Tromey <tromey@redhat.com>
3435
3436 * maint.c (_initialize_maint_cmds): Fix typo.
3437
a683b3c0
TT
34382008-08-29 Tom Tromey <tromey@redhat.com>
3439
3440 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3441 obstack.
3442
3e88cf8d
UW
34432008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3444
3445 * remote.c: Include "gdb_stat.h".
3446
a45ae3ed
UW
34472008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3448
3449 * dummy-frame.h (dummy_frame_pop): Add prototype.
3450 * dummy-frame.c: Include "observer.h".
3451 (dummy_frame_push): Do not check for stale frames.
3452 (dummy_frame_pop): New function.
3453 (cleanup_dummy_frames): New function.
3454 (_initialize_dummy_frame): Install it as inferior_created observer.
3455
3456 * frame.h (struct frame_id): Update comments.
3457 (frame_id_inner): Remove prototype.
3458 * frame.c (frame_id_inner): Make static. Add comments.
3459 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3460 false positives for targets using non-contiguous stack ranges.
3461 (get_prev_frame_1): Update frame_id_inner safety net check.
3462 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3463
3464 * stack.c (return_command): Directly pop the selected frame.
3465 * infrun.c (handle_inferior_event): Remove dead code.
3466 * i386-tdep.c (i386_push_dummy_call): Update comment.
3467
879d1e6b
UW
34682008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3469
3470 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3471 breakpoint from shared library.
3472
97ec2c2f
UW
34732008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3474
3475 * solib-svr4.c (read_program_header): New function.
3476 (scan_dyntag_auxv): New function.
3477 (elf_locate_base): Use it if scan_dyntag fails.
3478 (find_program_interpreter): New function.
3479 (enable_break): Use it instead of .interp section.
3480
f1838a98
UW
34812008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3482
3483 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3484 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3485 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3486 remote_bfd_open): New functions.
3487 (remote_hostio_send_command): Fail safely if remote connection
3488 is not set up.
3489
3490 * solist.h (solib_open): Remove prototype.
3491 (solib_bfd_open): Add prototype.
3492 * solib.c: Include "remote.h".
3493 (solib_open): Remove, replace by ...
3494 (solib_bfd_open): ... this new function. Handle remote BFDs.
3495 (solib_map_sections): Replace solib_open by solib_bfd_open.
3496 * solib-frv.c: Include "exceptions.h".
3497 (enable_break2): Replace solib_open by solib_bfd_open.
3498 * solib-svr4.c: Include "exceptions.h".
3499 (enable_break): Replace solib_open by solib_bfd_open.
3500
3501 * symfile.c: Include "remote.h".
3502 (build_id_verify): Handle remote BFDs.
3503 (separate_debug_file_exists): Use BFD to access file. Handle
3504 remote BFDs.
3505 (symfile_bfd_open): Handle remote BFDs.
3506 (reread_symbols): Handle remote BFDs.
3507
3508 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3509
1cf3db46
UW
35102008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3511
3512 * gdbarch.sh (target_gdbarch): New global variable.
3513 (deprecated_current_gdbarch_select_hack): Set it.
3514 * gdbarch.c, gdbarch.h: Regenerate.
3515
3516 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3517 of current_gdbarch.
3518 * target-descriptions.c (target_find_description): Likewise.
3519 * arm-tdep.c (arm_update_current_architecture): Likewise.
3520 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3521 arm_show_force_mode): Likewise.
3522 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3523 show_mips_abi): Likewise.
3524 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3525
3526 * target.c (target_translate_tls_address): Use target_gdbarch
3527 instead of current_gdbarch.
3528 * remote.c (struct packet_reg): Likewise.
3529 (get_remote_arch_state, packet_reg_from_regnum,
3530 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3531 remote_address_masked, remote_insert_breakpoint,
3532 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3533 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3534 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3535 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3536
3537 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3538 solib_add, info_sharedlibrary_command, solib_address,
3539 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3540 solib_global_lookup): Likewise.
3541 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3542 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3543 Likewise.
3544 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3545 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3546 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3547 Likewise.
3548 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3549 nto_truncate_ptr): Likewise.
3550 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3551
6207416c
LM
35522008-08-26 Luis Machado <luisgpm@br.ibm.com>
3553
3554 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3555 (ppc_linux_vmx_regset_sections): New structure.
3556 (ppc_linux_fp_regset_sections): New structure.
3557 (ppc_linux_init_abi): Select core-file regset based on target
3558 features.
3559
0ff58721
UW
35602008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3561
3562 * target.c (debug_print_register): Use regcache_raw_collect
3563 instead of regcache_cooked_read. Only handle raw registers.
3564
6c5561f9
PA
35652008-08-25 Pedro Alves <pedro@codesourcery.com>
3566
3567 * cp-name-parser.y: Include config.h before system headers.
3568
ed0c3906
UW
35692008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3570
3571 * m88k-tdep.c: Update for unwinder changes.
3572
119ac181
TT
35732008-08-24 Tom Tromey <tromey@redhat.com>
3574
3575 * s390-tdep.c (s390_address_class_type_flags): Use
3576 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3577 (s390_address_class_type_flags_to_name): Likewise.
3578 (s390_address_class_name_to_type_flags): Likewise.
3579
803e1097
TT
35802008-08-24 Tom Tromey <tromey@redhat.com>
3581
3582 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3583 TYPE_FLAGS.
3584 * features/rs6000/powerpc-vsx32l.c
3585 (initialize_tdesc_powerpc_vsx32l): Update.
3586 * features/rs6000/powerpc-vsx32.c
3587 (initialize_tdesc_powerpc_vsx32): Update.
3588 * features/rs6000/powerpc-vsx64.c
3589 (initialize_tdesc_powerpc_vsx64): Update.
3590 * features/rs6000/powerpc-vsx64l.c
3591 (initialize_tdesc_powerpc_vsx64l): Update.
3592 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3593 TYPE_VECTOR, not TYPE_FLAGS.
3594
876cecd0
TT
35952008-08-24 Tom Tromey <tromey@redhat.com>
3596
3597 * xml-tdesc.c (tdesc_end_union): Update.
3598 * stabsread.c (define_symbol): Update.
3599 (read_type): Update.
3600 (read_struct_type): Update.
3601 (read_enum_type): Update.
3602 * spu-tdep.c (spu_builtin_type_vec128): Update.
3603 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3604 (sh_push_dummy_call_nofpu): Update.
3605 * mdebugread.c (parse_symbol): Update.
3606 (parse_symbol): Update.
3607 (parse_symbol): Update.
3608 (upgrade_type): Update.
3609 * jv-lang.c (java_lookup_class): Update.
3610 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3611 * i386-tdep.c (i386_mmx_type): Update.
3612 (i386_sse_type): Update.
3613 * gdbtypes.h (enum type_flag_value): New enum.
3614 (enum type_instance_flag_value): New enum.
3615 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3616 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3617 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3618 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3619 TYPE_FLAG_NOTTEXT): Now enum constants.
3620 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3621 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3622 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3623 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3624 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3625 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3626 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3627 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3628 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3629 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3630 TYPE_NOTTEXT): Update.
3631 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3632 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3633 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3634 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3635 TYPE_ADDRESS_CLASS_ALL): Update.
3636 (struct main_type) <flags>: Remove.
3637 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3638 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3639 flag_vector, flag_stub_supported, flag_nottext,
3640 flag_fixed_instance>: New fields.
3641 <nfields, vptr_fieldno>: Move earlier.
3642 (TYPE_FLAGS): Remove.
3643 * gdbtypes.c (make_pointer_type): Update.
3644 (address_space_name_to_int): Update.
3645 (address_space_int_to_name): Update.
3646 (make_type_with_address_space): Update.
3647 (make_cv_type): Update.
3648 (create_range_type): Update.
3649 (get_discrete_bounds): Update.
3650 (create_set_type): Update.
3651 (make_vector_type): Update.
3652 (smash_to_method_type): Update.
3653 (check_typedef): Update.
3654 (check_stub_method): Update.
3655 (init_type): Individually assign flag fields.
3656 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3657 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3658 (copy_type_recursive): Copy the entire main type. Don't use
3659 TYPE_FLAGS.
3660 * features/rs6000/powerpc-altivec64l.c
3661 (initialize_tdesc_powerpc_altivec64l): Update.
3662 * features/rs6000/powerpc-altivec64.c
3663 (initialize_tdesc_powerpc_altivec64): Update.
3664 * features/rs6000/powerpc-altivec32l.c
3665 (initialize_tdesc_powerpc_altivec32l): Update.
3666 * features/rs6000/powerpc-altivec32.c
3667 (initialize_tdesc_powerpc_altivec32): Update.
3668 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3669 Update.
3670 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3671 Update.
3672 * dwarf2read.c (read_structure_type): Update.
3673 (read_enumeration_type): Likewise.
3674 (process_enumeration_scope): Likewise.
3675 (read_tag_pointer_type): Likewise.
3676 (read_subroutine_type): Likewise.
3677 (read_subroutine_type): Likewise.
3678 (read_base_type): Likewise.
3679 * coffread.c (coff_read_enum_type): Update.
3680 * ada-valprint.c (adjust_type_signedness): Update.
3681 * ada-typeprint.c (print_record_field_types): Update.
3682 * ada-lang.c (packed_array_type): Update.
3683 (empty_record): Don't reset TYPE_FLAGS.
3684 (ada_template_to_fixed_record_type_1): Update.
3685 (ada_template_to_fixed_record_type_1): Likewise.
3686 (template_to_static_fixed_type): Likewise.
3687 (to_record_with_fixed_variant_part): Likewise.
3688 (to_fixed_record_type): Likewise.
3689 (to_fixed_array_type): Likewise.
3690 (to_static_fixed_type): Likewise.
3691
d4ce0d3f
TT
36922008-08-23 Jim Blandy <jimb@redhat.com>
3693
3694 PR macros/607:
3695 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3696 for the macro bcache.
3697
2e668a5d
TT
36982008-08-23 Tom Tromey <tromey@redhat.com>
3699
3700 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3701 (argc): Now 31 bits.
3702
75a2d5e7
TT
37032008-08-22 Tom Tromey <tromey@redhat.com>
3704
3705 * NEWS: Move macro entries back under "New commands".
3706
25db0f1b
UW
37072008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3708
3709 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3710 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3711 (create_overlay_event_breakpoint): Loop over all objfiles to install
3712 multiple instances of the overlay event breakpoint if present.
3713
0391f248
UW
37142008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3715
3716 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3717 (info_spu_event_command): Command only supported on SPU architecture.
3718 (info_spu_signal_command): Likewise.
3719 (info_spu_mailbox_command): Likewise.
3720 (info_spu_dma_command): Likewise.
3721 (info_spu_proxydma_command): Likewise.
3722
24a73cce
UW
37232008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3724
3725 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3726 if the thread has already exited.
3727
e0bb1c1c
PA
37282008-08-22 Pedro Alves <pedro@codesourcery.com>
3729
3730 * infrun.c (proceed): Move back setting previous_inferior_ptid
3731 from here ...
3732 (wait_for_inferior): ... to here.
3733 (fetch_inferior_event): ... and here.
3734
a3ecef73
UW
37352008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3736
3737 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3738 (deprecated_current_gdbarch_select_hack): Call registers_changed
3739 instead of reinit_frame_cache.
3740 * gdbarch.c: Regenerate.
3741
45148c2e
UW
37422008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3743
3744 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3745
6a94242b
DJ
37462008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3747
3748 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3749
5045add0
UW
37502008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3751
3752 * findvar.c (locate_var_value): Do not call get_frame_arch
3753 with a NULL frame argument.
3754
029a67e4
UW
37552008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3756
3757 * frame.h (frame_map_regnum_to_name): Remove prototype.
3758 (frame_map_name_to_regnum): Remove prototype.
3759 * frame.c (frame_map_regnum_to_name): Remove.
3760 (frame_map_name_to_regnum): Remove.
3761 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3762 instead of frame_map_regnum_to_name.
3763 * ax-gdb.c: Include "user-regs.h".
3764 (gen_expr): Use user_reg_map_name_to_regnum instead of
3765 frame_map_name_to_regnum.
3766 * eval.c: Include "user-regs.h".
3767 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3768 instead of frame_map_name_to_regnum.
3769 * infcmd.c (registers_info): Likewise.
3770 * parse.c: Include "user-regs.h".
3771 (write_dollar_variable): Use user_reg_map_name_to_regnum
3772 instead of frame_map_name_to_regnum.
3773 * tracepoint.c: Include "user-regs.h".
3774 (encode_actions): Use user_reg_map_name_to_regnum
3775 instead of frame_map_name_to_regnum.
3776 * valops.c: Include "user-regs.h".
3777 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3778 of frame_map_regnum_to_name.
3779
e84ee240
UW
37802008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3781
3782 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3783 and manually relocate .opd contents from BFD instead of reading
3784 them from target memory.
3785
0114d602
DJ
37862008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3787
3788 * dwarf2read.c (processing_current_prefix): Delete static
3789 variable.
3790 (process_full_comp_unit): Do not set processing_current_prefix.
3791 (dwarf2_full_name): New function.
3792 (read_func_scope): Do not set processing_current_prefix. Use
3793 determine_prefix.
3794 (read_structure_type): Do not set processing_current_prefix. Remove
3795 unused inner cleanup.
3796 (process_structure_scope): Do not set processing_current_prefix.
3797 (read_enumeration_type): Use dwarf2_full_name.
3798 (determine_class_name): Return a const char *. Put the result
3799 on the objfile obstack. Use dwarf2_full_name.
3800 (read_namespace_type): New function.
3801 (read_namespace): Do not create the type here. Use
3802 determine_prefix.
3803 (read_typedef): Use dwarf2_full_name. Do not pass the name
3804 to init_type.
3805 (read_base_type): Do not pass the name to init_type. Handle
3806 TYPE_FLAG_NOSIGN.
3807 (read_unspecified_type): Do not pass the name to init_type.
3808 (new_symbol): Use dwarf2_full_name instead of
3809 processing_current_prefix.
3810 (read_type_die): Do not set processing_current_prefix. Handle
3811 DW_TAG_namespace.
3812 (determine_prefix): Handle specifications. Return the result
3813 on the objfile obstack. Handle unions correctly.
3814
df8a16a1
DJ
38152008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3816
3817 * buildsym.c (add_symbol_to_list): Do not call
3818 cp_scan_for_anonymous_namespaces here.
3819 (finish_block): Do not call cp_set_block_scope here.
3820 * cp-namespace.c (processing_has_namespace_info)
3821 (processing_current_prefix): Delete.
3822 (cp_initialize_namespace): Do not initialize
3823 processing_has_namespace_info.
3824 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3825 not check processing_has_namespace_info.
3826 (cp_set_block_scope): Take prefix and namespace info flag as
3827 arguments. Honor namespaces regardless of a demangled name.
3828 * cp-support.h (processing_has_namespace_info)
3829 (processing_current_prefix): Delete declarations.
3830 (cp_set_block_scope): Update prototype.
3831 * dwarf2read.c (processing_has_namespace_info)
3832 (processing_current_prefix): New static variables.
3833 (read_file_scope): Initialize processing_has_namespace_info.
3834 (read_func_scope): Call cp_set_block_scope for C++.
3835 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3836 * symtab.c (symbol_demangled_name): Accept a const argument.
3837 * symtab.h (symbol_demangled_name): Update prototype.
3838
3567439c
DJ
38392008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3840
3841 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3842 * blockframe.c (find_pc_partial_function): Likewise.
3843 * buildsym.c (find_symbol_in_list): Likewise.
3844 * c-valprint.c (c_val_print): Likewise.
3845 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3846 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3847 * cp-support.c (cp_remove_params): Renamed from remove_params and
3848 made global.
3849 (overload_list_add_symbol): Update call to remove_params.
3850 * cp-support.h (cp_remove_params): Declare.
3851 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3852 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3853 * expprint.c (dump_subexp_body_standard): Likewise.
3854 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3855 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3856 for messages.
3857 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3858 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3859 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3860 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3861 symbols and SYMBOL_PRINT_NAME for messages.
3862 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3863 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3864 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3865 SYMBOL_SET_LINKAGE_NAME.
3866 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3867 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3868 SYMBOL_SEARCH_NAME.
3869 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3870 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3871 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3872 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3873 (address_info): Use SYMBOL_PRINT_NAME for messages and
3874 SYMBOL_LINKAGE_NAME for lookups.
3875 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3876 * stabsread.c (patch_block_stabs, define_symbol)
3877 (read_type, read_enum_type, common_block_end)
3878 (cleanup_undefined_types_1, scan_file_globals): Use
3879 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3880 and SYMBOL_PRINT_NAME.
3881 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3882 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3883 cp_remove_params instead of cplus_demangle.
3884 (print_block_frame_labels, print_frame_arg_vars): Use
3885 SYMBOL_LINKAGE_NAME.
3886 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3887 SYMBOL_LINKAGE_NAME.
3888 (dump_symtab_1, print_symbol, print_partial_symbols)
3889 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3890 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3891 (SYMBOL_SET_LINKAGE_NAME): New.
3892 (SYMBOL_SET_NAMES): Add a comment.
3893 * tracepoint.c (set_traceframe_context, validate_actionline)
3894 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3895 lookups and SYMBOL_PRINT_NAME for output.
3896 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3897 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3898
aded6f54
PA
38992008-08-21 Pedro Alves <pedro@codesourcery.com>
3900
3901 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3902 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3903 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3904 obj_section_addr and obj_section_endaddr.
3905 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3906 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3907 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3908 (find_extant_func_descr): Likewise.
3909 * solib-frv.c (frv_relocate_main_executable): Use
3910 obj_section_addr.
3911 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3912 obj_section_addr and obj_section_endaddr.
3913
158c7665
PH
39142008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3915
3916 * NEWS: Amplify last entry on boolean types in Ada.
3917
f2f0e013
DJ
39182008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3919
3920 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3921 Make the dwarf2_cu * parameter output as well as input. Update it if
3922 we follow a reference to another CU.
3923 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3924 (die_type, die_containing_type): Update calls to changed functions.
3925 Use the returned CU along with the returned DIE.
3926 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3927
03dd20cc
DJ
39282008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3929
3930 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3931 in the DIEs here.
3932 (process_queue): Do not read in the DIEs here.
3933 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3934 (read_full_die): Do not call queue_comp_unit from here.
3935 (maybe_queue_comp_unit): New function.
3936 (follow_die_ref): Use it.
3937
b60c80d6
DJ
39382008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3939
3940 * dwarf2read.c (struct attribute): Move earlier.
3941 (struct die_info): Change attrs to a trailing array.
3942 (dwarf_alloc_die): Take the number of attributes. Allocate space
3943 for them.
3944 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3945 allocate attributes.
3946
51545339
DJ
39472008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3948
3949 * dwarf2read.c (REF_HASH_SIZE): Delete.
3950 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3951 (struct die_info): Remove next_ref.
3952 (store_in_ref_table): Remove offset argument. Rewrite to use
3953 htab_find_slot_with_hash.
3954 (die_hash, die_eq): New.
3955 (read_comp_unit): Allocate the die_hash.
3956 (read_die_and_children): Update call to store_die_ref.
3957 (follow_die_ref): Rewrite to use htab_find_with_hash.
3958
7475d072
DJ
39592008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3960
3961 * dwarf2read.c (free_die_list, copy_die): Delete.
3962 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3963 on the obstack.
3964 (read_full_die): Update call to dwarf_alloc_die. Allocate
3965 attributes on the CU obstack.
3966 (free_one_comp_unit): Do not call free_die_list.
3967
1d325ec1
DJ
39682008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3969
3970 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3971 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3972 sibling list.
3973 (read_full_die): Do not allocate DIEs for abbrev 0.
3974 (follow_die_ref): Correct error message.
3975
b96e2927
PA
39762008-08-20 Pedro Alves <pedro@codesourcery.com>
3977
3978 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3979 there are no symbols loaded, instead of throwing a generic error.
3980 (decode_variable): Likewise.
3981
f1f6aadf
PA
39822008-08-20 Pedro Alves <pedro@codesourcery.com>
3983
3984 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3985 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3986 macros.
3987 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3988 and offset. Use size_t instead of unsigned long.
3989 (build_objfile_section_table): Use size_t instead of unsigned
3990 long.
3991 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3992 gone.
3993 (find_pc_sect_section): Use obj_section_addr and
3994 obj_section_endaddr.
3995 * symfile.c (symfile.c): Remove code that maps sections
3996 offsets in "addr" to the object's sections.
3997 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3998 * gcore.c (gcore_create_callback): Use obj_section_addr and
3999 obj_section_endaddr.
4000 * maint.c (print_objfile_section_info): Likewise.
4001 * printcmd.c (sym_info): Use obj_section_addr and
4002 obj_section_endaddr.
4003 * symtab.c (fixup_section): Likewise.
4004
3923a2b2
MK
40052008-08-20 Mark Kettenis <kettenis@gnu.org>
4006
4007 * sparc-tdep.c: Make some comments catch up with reality.
4008
b3eb342c
VP
40092008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4010
4011 * NEWS: Mention 'set target-async'
4012
7f7efbd9
VP
40132008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4014
4015 * infrun.c (resume): If the thread is placed to the deferred step
4016 queue, mark it as running.
4017
9908b566
VP
40182008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4019
4020 Make sure target supports non-stop.
4021 * infcmd.c (run_command_1, attach_command): If non-stop mode
4022 is requested, verify the target supports it.
4023 * linux-nat.c (linux_nat_supports_non_stop): New.
4024 (linux_nat_add_target): Register the above.
4025 * target.c (find_default_supports_non_stop)
4026 (target_supports_non_stop): New.
4027 (init_dummy_target): Register find_default_supports_non_stop.
4028 * target.h (struct target_ops): New field to_supports_non_stop.
4029 (target_supports_non_stop): New.
4030
c6ebd6cf
VP
40312008-08-19 Pedro Alves <pedro@codesourcery.com>
4032 Vladimir Prus <vladimir@codesourcery.com>
4033
4034 * target.c (target_async_permitted, target_async_permitted_1)
4035 (set_maintenance_target_async_permitted)
4036 (show_maintenance_target_async_permitted): New.
4037 (initialize_targets): Register 'set target-async'.
4038 * target.h (target_async_permitted): Declare.
4039 * linux-nat.c (linux_nat_async_enabled)
4040 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4041 (show_maintenance_linux_async_permitted): Remove.
4042 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4043 (get_pending_events, linux_nat_async): Use target_async_permitted.
4044 (linux_nat_set_async_mode): Remove, moving the only used bits
4045 into...
4046 (linux_nat_setup_async): This.
4047 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4048 Use linux_nat_setup_async.
4049 * remote.c (remote_async_permitted, remote_async_permitted_set)
4050 (set_maintenance_remote_async_permitted)
4051 (show_maintenance_remote_async_permitted): Remove.
4052 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4053 (remote_is_async_p): Use target_async_permitted.
4054 (_initialize_remote): Don't register 'main set remote-async'.
4055 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4056 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4057 * mi/mi-main.c (mi_cmd_list_target_features): New.
4058
073120b9
VP
40592008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4060
4061 * target.c (maybe_kill_then_attach)
4062 (maybe_kill_then_create_inferior): Remove.
4063 (update_current_target): Do not default to_attach,
4064 to_create_inferiour, to_is_async_p.
4065
690cc4eb 40662008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4067
4068 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4069 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4070 API to return LONGEST values rather than struct values.
4071 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4072 and discrete_type_high_bound.
4073 (to_fixed_range_type): Create a range type in cases where
4074 argument is base type and its limits are representable as ints.
4075 (ada_is_modular_type): Correct so that base type must be integral.
4076 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4077 keywords when they appear alone, since we are phasing out
bfb8797a 4078 direct representation of these identifiers in debugging data.
690cc4eb
PH
4079 * ada-exp.y: Define 'true' and 'false' as primaries.
4080 (type_boolean): New function.
4081 (type_int,type_long,type_long_long,type_floattype_double)
4082 (type_long_double): Remove uses of current_gdbarch for consistency
4083 with type_boolean.
4084 (write_int): Change comment to indicate that it might write boolean
4085 constant as well.
4086 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4087 type, since will no longer be represented as enumerated type in
4088 debugging data.
4089 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4090 as well.
bfb8797a
PH
4091 * NEWS: Note support boolean types.
4092
39540081
PA
40932008-08-18 Pedro Alves <pedro@codesourcery.com>
4094
4095 * bsd-uthread.c (bsd_uthread_close): New.
4096 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4097 target.
4098 (bsd_uthread_solib_loaded): Fix typo.
4099 (bsd_uthread_target): Register bsd_uthread_close.
4100
87ab71f0
PA
41012008-08-18 Pedro Alves <pedro@codesourcery.com>
4102
4103 * corelow.c (core_open): Assume there was no upper layer left
4104 behind from a previous inferior.
4105 * target.c (pop_all_targets): Rename to ...
4106 (pop_all_targets_above): ... this. Add a target stratum
4107 parameter. Use it instead of hardcoding the dummy_stratum.
4108 (pop_all_targets): New, defer to pop_all_targets_above.
4109 (target_preopen): Use pop_all_targets_above.
4110 * target.h (pop_all_targets_above): Declare.
4111
5231c1fd
PA
41122008-08-18 Pedro Alves <pedro@codesourcery.com>
4113
4114 * gdbthread.h (thread_change_ptid): Declare.
4115 * infrun.c (infrun_thread_ptid_changed): New.
4116 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4117 thread_ptid_changed observer.
4118 * regcache.c (regcache_thread_ptid_changed): New.
4119 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4120 thread_ptid_changed observer.
4121 * thread.c (thread_change_ptid): New.
4122
f98dfd4b
TT
41232008-08-18 Tom Tromey <tromey@redhat.com>
4124
4125 * symfile.c (reread_symbols): Update.
4126 * solib-sunos.c (allocate_rt_common_objfile): Update.
4127 * objfiles.c (allocate_objfile): Update.
4128 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4129 Remove.
4130
d87ecdfb
TT
41312008-08-18 Tom Tromey <tromey@redhat.com>
4132
4133 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4134 obstack.
4135
46a9b8ed
DJ
41362008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4137
4138 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4139 lr_register.
4140 (rs6000_in_function_epilogue_p): Check for bctr.
4141 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4142 number. Set gpr_mask and used_bl. Continue scanning while some
4143 expected registers are not saved. Set lr_register if LR is not
4144 stored.
4145 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4146
44feb3ce
TT
41472008-08-17 Tom Tromey <tromey@redhat.com>
4148
4149 PR gdb/1535:
4150 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4151 (ep_find_event_name_end): Remove.
4152 (catch_fork_temporary, catch_vfork_temporary,
4153 catch_fork_permanent, catch_vfork_permanent): New constants.
4154 (catch_vfork, catch_fork): Remove.
4155 (catch_fork_command_1): Add 'command' argument. Remove
4156 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4157 all cases.
4158 (catch_exec_command_1): Add 'command' argument; remove
4159 'tempflag'. Handle NULL 'arg'.
4160 (catch_load_command_1): Likewise.
4161 (catch_unload_command_1): Likewise.
4162 (catch_ada_exception_command): Likewise.
4163 (catch_assert_command): Likewise.
4164 (catch_catch_command): New function.
4165 (catch_throw_command): Likewise.
4166 (catch_command_1): Remove.
4167 (catch_command): Just call error.
4168 (tcatch_command): Likewise.
4169 (catch_cmdlist): New global.
4170 (tcatch_cmdlist): Likewise.
4171 (add_catch_command): New function.
4172 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4173 commands. Create all catch sub-commands.
4174
0d6431e2
PA
41752008-08-17 Pedro Alves <pedro@codesourcery.com>
4176
4177 * gdbthread.h: Add comments.
4178 * stack.c (get_selected_block): Return 0 on an exited thread.
4179 * top.c (execute_command): Check for is_stopped, not !is_running.
4180 * event-top.c (command_handler): Likewise.
4181
8931f526
PA
41822008-08-16 Pedro Alves <pedro@codesourcery.com>
4183
4184 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4185 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4186 (mi_cmd_exec_finish): Remove "return".
4187
aa76d38d
PA
41882008-08-16 Pedro Alves <pedro@codesourcery.com>
4189
4190 * target.h (pop_all_targets): Declare.
4191 * target.c (pop_all_targets): New.
4192 * top.c (quit_target): Pop all targets instead of just closing the
4193 current.
4194
311a4e6b
TJB
41952008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4196 Thiago Jung Bauermann <bauerman@br.ibm.com>
4197
4198 * cli-script.c (read_next_line): Add parse_commands argument.
4199 (recurse_read_control_structure): Adapt to new read_next_line
4200 signature.
4201 (read_command_lines): Add parse_commands argument.
4202 (define_command): Adapt to new read_command_lines signature.
4203 (document_command): Likewise.
4204 * breakpoint.c (commands_command): Likewise.
4205 * defs.h (read_command_lines): Adjust function prototype.
4206
24209737
PH
42072008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4208
4209 * ada-lang.c (pos_atr): Account for the possibility that the
4210 argument may be a reference.
4211
9f1d5432
PH
42122008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4213
4214 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4215 ('F' format) for @FIX names generated by the loader, retaining only
4216 the minimal symbols (and no partial symbol tables) for these names.
4217 Fixes warning messages about symbols that are found in partial
4218 symbol tables, but not full symbol tables.
4219
83c265ab
PA
42202008-08-16 Pedro Alves <pedro@codesourcery.com>
4221
4222 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4223 stopping quietly.
4224
604c2f83
LM
42252008-08-15 Luis Machado <luisgpm@br.ibm.com>
4226
4227 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4228 Include "features/rs6000/powerpc-vsx64.c".
4229 (ppc_supply_vsxregset): New function.
4230 (ppc_collect_vsxregset): New function.
4231 (IS_VSX_PSEUDOREG): New macro.
4232 (IS_EFP_PSEUDOREG): New macro.
4233 (vsx_register_p): New function.
4234 (ppc_vsx_support_p): New function.
4235 (rs6000_builtin_type_vec128): New function.
4236 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4237 correct names for VSX registers and EFPR registers.
4238 (rs6000_pseudo_register_type): Return correct types for VSX
4239 and EFPR registers.
4240 (rs6000_pseudo_register_reggroup_p): Return correct group for
4241 VSX and EFPR registers.
4242 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4243 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4244 (vsx_pseudo_register_read): New function.
4245 (vsx_pseudo_register_write): New function.
4246 (efpr_pseudo_register_read): New function.
4247 (efpr_pseudo_register_write): New function.
4248 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4249 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4250 (rs6000_gdbarch_init): Declare have_vsx.
4251 Initialize new upper half VSX registers.
4252 Initialize VSX-related and EFPR-related pseudo-registers variables.
4253 Adjust the number of pseudo registers accordingly.
4254
4255 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4256 and SIZEOF_VSRREGS.
4257 (gdb_vsxregset_t): New type.
4258 (have_ptrace_getsetvsxregs): New variable.
4259 (fetch_vsx_register): New function.
4260 (fetch_register): Handle VSX registers.
4261 (fetch_vsx_registers): New function.
4262 (fetch_ppc_registers): Handle VSX registers.
4263 (store_ppc_registers): Handle VSX registers.
4264 (store_vsx_register): New function.
4265 (store_register): Handle VSX registers.
4266 (store_vsx_registers): New function.
4267 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4268 (gdb_vsxregset_t): New type.
4269 (supply_vsxregset): New function.
4270 (fill_vsxregset): New function.
4271
4272 * ppc-tdep.h (vsx_register_p): New prototype.
4273 (vsx_support_p): New prototype.
4274 (ppc_vsr0_regnum): New variable.
4275 (ppc_vsr0_upper_regnum): Likewise.
4276 (ppc_efpr0_regnum): Likewise.
4277 (ppc_builtin_type_vec128): New type.
4278 (ppc_num_vsrs): New constant.
4279 (ppc_num_vshrs): New constant.
4280 (ppc_num_efprs): Likewise.
4281 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4282 (ppc_supply_vsxregset): New prototype.
4283 (ppc_collect_vsxregset): New prototype.
4284
4285 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4286 Include "features/rs6000/powerpc-vsx64l.c".
4287 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4288 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4289 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4290 (ppc_linux_regset_from_core_section): Handle VSX core section.
4291 (ppc_linux_core_read_description): Support VSX-enabled core files.
4292
4293 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4294 Declare tdesc_powerpc_vsx64l
4295
4296 * corelow.c (get_core_register_section): Support VSX-enabled
4297 core files.
4298
4299 * features/rs6000/power-vsx.xml: New VSX descriptions.
4300 * features/rs6000/powerpc-vsx32.xml: New file.
4301 * features/rs6000/powerpc-vsx32l.xml: New file.
4302 * features/rs6000/powerpc-vsx64.xml: New file.
4303 * features/rs6000/powerpc-vsx64l.xml: New file.
4304 * features/rs6000/powerpc-vsx32.c: New file (generated).
4305 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4306 * features/rs6000/powerpc-vsx64.c: New file (generated).
4307 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4308 * features/Makefile: Updated with new descriptions.
4309 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4310 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4311
dde7c0a9
VP
43122008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4313
4314 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4315 call linux_target twice.
4316
ebd67d87
AR
43172008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4318
4319 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4320 solib-svr4.c
4321 (LM_ADDR): Use l_addr if available; if not, use link map and set
4322 l_addr.
4323
886a217c
TT
43242008-08-14 Tom Tromey <tromey@redhat.com>
4325
4326 * macrocmd.c (macro_define_command): Check for NULL argument.
4327 (macro_undef_command): Likewise.
4328
3d488bfc
PA
43292008-08-14 Pedro Alves <pedro@codesourcery.com>
4330
4331 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4332
33e5cbd6
PA
43332008-08-13 Pedro Alves <pedro@codesourcery.com>
4334
4335 * breakpoint.c (always_inserted_auto, always_inserted_on)
4336 (always_inserted_off, always_inserted_enums): New.
4337 (always_inserted_mode): Change type to char* and point to
4338 always_inserted_auto.
4339 (show_always_inserted_mode): In auto mode, also show the current
4340 effect of the option.
4341 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4342 (_initialize_breakpoint): Make the "set breakpoints
4343 always-inserted" command an enum command. Extend help to describe
4344 the auto mode.
4345
8fbde58b
UW
43462008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4347
4348 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4349 query valid) bit. Ignore bits outside the condition field.
4350 (info_spu_proxydma_command): Ignore bits outside the field.
4351
11fa8e43
MS
43522008-08-12 Michael Snyder <msnyder@vmware.com>
4353
4354 * MAINTAINERS: Update my email address.
4355
fcb09a75
UW
43562008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4357
4358 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4359
a6f3e723
SL
43602008-08-12 Pedro Alves <pedro@codesourcery.com>
4361
4362 Add no-ack mode to the remote protocol --- optionally stop ACKing
4363 packets and responses when we have a reliable communication
4364 medium.
4365
4366 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4367
4368 * remote.c (struct remote_state): Add noack_mode field.
4369 (PACKET_QStartNoAckMode): New.
4370 (remote_start_remote): Don't any outstanding packet here.
4371 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4372 here. Activate noack mode if requested.
4373 (remote_protocol_features): Add QStartNoAckMode.
4374 (remote_open_1):
4375 (putpkt_binary): Don't send ack in noack mode.
4376 (read_frame): Don't recompute the checksum in noack mode.
4377 (getpkt_sane): Skip sending ack if in noack mode.
4378 (_initialize_remote): Add set/show remote noack mode.
4379 * NEWS: Note the new features.
4380
8ab3d180
KB
43812008-08-11 Kevin Buettner <kevinb@redhat.com>
4382
4383 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4384 New macros.
4385 (rs6000_skip_main_prologue): New function.
4386 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4387
63a61bf6
SL
43882008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4389
4390 * MAINTAINERS (Write After Approval): Add self.
4391
9d4fde75
SS
43922008-08-11 Stan Shebs <stan@codesourcery.com>
4393
4394 ARM BE8 support.
4395 * disasm.c (gdb_disassemble_info): Set endian_code.
4396 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4397 * gdbarch.h, gdbarch.c: Regenerate.
4398 * arch-utils.c (initialize_current_architecture): Set the
4399 default byte_order_for_code.
4400 (gdbarch_info_init): Ditto.
4401 (gdbarch_info_fill): Ditto.
4402 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4403 (thumb_analyze_prologue): Swap halfword if code endianness is
4404 different from general endianness.
4405 (arm_skip_prologue): Similarly.
4406 (arm_scan_prologue): Ditto.
4407 (thumb_get_next_pc): Ditto.
4408 (arm_get_next_pc): Ditto.
4409 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4410 choose correct endianness for breakpoints.
4411
6c613132
PA
44122008-08-10 Pedro Alves <pedro@codesourcery.com>
4413
4414 * bsd-kvm.c: Include "gdbthread.h".
4415 (bsd_kvm_ptid): New.
4416 (bsd_kvm_open): Add a main thread.
4417 (bsd_kvm_close): Delete it.
4418 (bsd_kvm_thread_alive): New.
4419 (bsd_kvm_pid_to_str): New.
4420 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4421 bsd_kvm_pid_to_str.
4422 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4423
6eb7ee03
PA
44242008-08-09 Pedro Alves <pedro@codesourcery.com>
4425
4426 * buildsym.c (start_subfile): Properly cast sentinel in concat
4427 call.
4428 * cp-name-parser.y: Include "config.h".
4429 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4430 concat call.
4431 * gdb_select.h: Include sys/time.h if sys/select.h is not
4432 available.
4433
444c3224
PA
44342008-08-09 Pedro Alves <pedro@codesourcery.com>
4435
4436 * go32-nat.c: Include "gdbthread.h".
4437 (go32_stop, go32_kill_inferior): Delete the main thread.
4438 (go32_create_inferior): Add it.
4439 (go32_thread_alive, go32_pid_to_str): New.
4440 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4441
9d0b3624
PA
44422008-08-09 Pedro Alves <pedro@codesourcery.com>
4443
4444 * go32-nat.c (fetch_register, store_register): Pass the regcache
4445 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4446 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4447 (struct seg_descr, struct seg_descr): pack the whole struct
4448 instead of each member individually.
4449
509238d6
AS
44502008-08-09 Andreas Schwab <schwab@suse.de>
4451
4452 * python/python.c (_initialize_python): Use unabbreviated commands
4453 in prefix name.
4454
c068b4e8
DJ
44552008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4456
4457 * Makefile.in (stamp-h): Also create .deps.
4458
21374e5f
TT
44592008-08-09 Tom Tromey <tromey@redhat.com>
4460
4461 * Makefile.in (generated_files): Add GNULIB_H.
4462
7be67755
DA
44632008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4464
4465 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4466 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4467 Revise comment.
4468 (pa64_current_sos): Remove map private warning warning.
4469 * solib-som.c: Include string.h and sys/utsname.h.
4470 (get_hpux_major_release): New function.
4471 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4472 about shared library private mapping on HP-UX 11 and later. Only force
4473 private mapping of shared libraries on HP-UX 10 and earlier.
4474 (link_map_start): Delete warning.
4475
e0c62198
L
44762008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4477 H.J. Lu <hongjiu.lu@intel.com>
4478 Mark Kettenis <kettenis@gnu.org>
4479
4480 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4481 (amd64_init_frame_cache): Initialize saved_sp_reg.
4482 (amd64_analyze_stack_align): New.
4483 (amd64_analyze_prologue): Call it.
4484 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4485 %rip to 8 when halfway aligning the stack.
4486
4487 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4488 AMD64_R14_REGNUM.
4489
4490 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4491 saved_sp_reg.
4492 (i386_alloc_frame_cache): Remove stack_align. Initialize
4493 saved_sp_reg to -1.
4494 (i386_analyze_stack_align): Rewrite.
4495 (i386_frame_cache): Use saved_sp_reg if it is valid.
4496
b9db4ced
UW
44972008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4498
4499 * target.c: Include "solib.h".
4500 (target_pre_inferior): Call no_shared_libraries.
4501 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4502 or clear_solib.
4503 (attach_command): Do not call clear_solib.
4504
3979a37f
MK
45052008-08-09 Mark Kettenis <kettenis@gnu.org>
4506
4507 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4508 the %eip register.
4509
2b26d9fa
TT
45102008-08-08 Tom Tromey <tromey@redhat.com>
4511
4512 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4513 POSTCOMPILE.
4514 (python-utils.o): Likewise.
4515
f1648876
AS
45162008-08-08 Andreas Schwab <schwab@suse.de>
4517
4518 * corefile.c (_initialize_core): Remove spurious paren from set
4519 gnutarget doc string.
4520
b7622095
LM
45212008-08-08 Luis Machado <luisgpm@br.ibm.com>
4522
4523 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4524 Define PPC_FEATURE_BOOKE.
b7622095
LM
4525 (ppc_linux_get_hwcap): New function.
4526 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4527 4-bytes alignment restrictions.
4528 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4529 positioning of the read/write flags.
4530 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4531 4-bytes alignment.
4532
2dc38344
PA
45332008-08-08 Pedro Alves <pedro@codesourcery.com>
4534
4535 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4536
4537 * win32-nat.c (win32_add_thread): Change thread argument type to
4538 ptid_t. Adjust.
4539 (win32_add_thread): Adjust.
4540 (win32_delete_thread): Change thread argument type to ptid_t.
4541 Adjust.
4542 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4543 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4544 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4545 (init_win32_ops): Put to_magic last.
4546 (win32_win32_thread_alive): Adjust.
4547
4d6c6261
PA
45482008-08-08 Pedro Alves <pedro@codesourcery.com>
4549
4550 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4551 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4552
e5ef4d75
PA
45532008-08-08 Pedro Alves <pedro@codesourcery.com>
4554
4555 * remote-m32r-sdi.c: Include "gdbthread.h".
4556 (remote_m32r_ptid): New.
4557 (m32r_close): Delete the main thread.
4558 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4559 main thread.
4560 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4561 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4562
a417dc56
RW
45632008-08-07 Tom Tromey <tromey@redhat.com>
4564 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4565
4566 * aclocal.m4, configure: Rebuild.
4567 * configure.in: Call ZW_CREATE_DEPDIR,
4568 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4569 (MAKE, GMAKE): New substs.
4570 * acinclude.m4: Include depstand.m4.
4571 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4572 COMPILE, POSTCOMPILE, depcomp): New variables.
4573 Remove all _h variables.
4574 Remove many .o targets.
4575 ($(srcdir)/copying.c): avoid backslash-newline after comment
4576 sign (@maintainer_mode_true@).
4577 (HFILES_NO_SRCDIR): Regenerate.
4578 (generated_files): New variable.
4579 (all_gdbtk_cflags): Likewise.
4580 (.c.o): Rewrote.
4581 (init.o, version.o, copying.o): Remove.
4582 (distclean): Remove DEPDIR.
4583 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4584 printcmd.o, procfs.o, v850ice.o): Rewrite.
4585 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4586 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4587 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4588 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4589 gdbtk-wrapper.o): Likewise.
4590 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4591 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4592 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4593 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4594 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4595 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4596 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4597 tui-wingeneral.o, tui-winsource.o): Likewise.
4598 (all_object_files): New variable.
4599 ($(all_object_files)): New target.
4600 Include dependency files, when using GNU Make.
4601
12ab8a60
UW
46022008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4603
4604 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4605 the valid bit set. Ensure display order respects partial
4606 order defined by dependency bits.
4607
6536cc32
DA
46082008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4609
4610 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4611 setup.
4612
f73a15e4
MK
46132008-08-06 Mark Kettenis <kettenis@gnu.org>
4614
4615 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4616 OpenBSD 4.3.
4617
d57a3c85
TJB
46182008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4619 Tom Tromey <tromey@redhat.com>
4620 Thiago Jung Bauermann <bauerman@br.ibm.com>
4621 Doug Evans <dje@google.com>
4622
4623 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4624 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4625 PYTHON_CFLAGS): New.
4626 (python_h, python_internal_h): New.
4627 (cli-script.o): Depend on python.h
4628 (python.o, python-utils.o): New.
4629 * cli/cli-script.c (print_command_lines): Handle python_control.
4630 (execute_control_command): Handle python_control.
4631 (execute_control_command_untraced): New function.
4632 (while_command): Call execute_control_command_untraced.
4633 (if_command): Likewise.
4634 (get_command_line): Remove static attribute.
4635 (read_next_line): Handle "python".
4636 (recurse_read_control_structure): Handle python_control.
4637 (read_command_lines): Handle python_control.
4638 Include python.h.
4639 * cli/cli-script.h (get_command_line): Add prototype.
4640 (execute_control_command_untraced): Likewise.
4641 * configure.ac: Add --with-python.
4642 * defs.h (enum command_control_type) <python_control>: New
4643 constant.
4644 * python/python-internal.h: New file.
4645 * python/python.c: New file.
4646 * python/python.h: New file.
4647 * python/python-utils.c: New file.
4648 * NEWS: Mention Python scripting support and its new commands.
4649
5141027d
UW
46502008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4651
4652 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4653
353cfe88
PM
46542008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4655
f1648876 4656 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4657
d6b74ac4
PM
46582008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4659
4660 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4661 (insert_breakpoint_locations): Likewise.
4662
ef0d312a
MS
46632008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4664
4665 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4666 breakpoint.
4667 (set_longjmp_breakpoint): Likewise.
4668
fb6d93b2
UW
46692008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4670
4671 PR build/2490
4672 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4673 defined.
4674
e6ad058a
TT
46752008-08-05 Tom Tromey <tromey@redhat.com>
4676
4677 * bcache.c (deprecated_bcache_added): Initialize obstack.
4678 (bcache_xmalloc): Don't initialize obstack.
4679 (bcache_xfree): Conditionally free obstack.
4680 (bcache_memory_used): Update.
4681
11d31d94
TT
46822008-08-05 Tom Tromey <tromey@redhat.com>
4683
4684 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4685 bcache_full.
4686 (append_psymbol_to_list): Accept a const pointer.
4687 (add_psymbol_to_list): Fix const correctness.
4688 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4689 (bcache_full): Declare.
4690 * bcache.c (bcache_data, deprecated_bcache): Remove.
4691 (bcache): Use bcache_full.
4692 (bcache_full): Rename from deprecated_bcache_added. Change return
4693 type.
4694
5be973eb
SS
46952008-08-04 Stan Shebs <stan@codesourcery.com>
4696
4697 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4698 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4699 (enable_break): Remove test of BKPT_AT_SYMBOL.
4700
5062cc19
KS
47012008-08-02 Keith Seitz <keiths@redhat.com>
4702
4703 * acinclude.m4: Include ../config/tcl.m4 to pick up
4704 standard Tcl configury bits.
4705 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4706 * configure.ac: Don't check if ../itcl exists when building
4707 gdbtk. It could be installed.
4708 Rewrite gdbtk configury to allow for using system-supplied
f1648876 4709 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
4710 itcl and itk.
4711 * Makefile.in: Remove everything related to itcl and itk.
4712 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4713 configure.ac.
4714 Remove v850ice.o build rule.
4715 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4716 gdbtk sources to use it.
4717 * configure: Regenerate.
f1648876 4718
6d76a53d
SS
47192008-07-31 Stan Shebs <stan@codesourcery.com>
4720
4721 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4722
ed7c5e43
SS
47232008-07-30 Stan Shebs <stan@codesourcery.com>
4724
4725 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4726 (add_to_objfile_sections): Remove use.
4727
22ad7fee
TT
47282008-07-29 Tom Tromey <tromey@redhat.com>
4729
4730 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4731 (lookup_cmd_composition): Likewise.
4732
d5529a84
TT
47332008-07-29 Tom Tromey <tromey@redhat.com>
4734
4735 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4736 dead code. Fix indentation.
4737
938f4ca8
SS
47382008-07-29 Stan Shebs <stan@codesourcery.com>
4739
4740 * main.c (captured_main): Remove long-unused #if 0 blocks.
4741
7f4b89d1
TT
47422008-07-28 Tom Tromey <tromey@redhat.com>
4743
4744 * annotate.h (deprecated_annotate_starting_hook): Remove.
4745 (deprecated_annotate_stopped_hook): Remove.
4746 (deprecated_annotate_exited_hook): Remove.
4747 * Makefile.in (annotate.o): Depend on observer_h.
4748 * top.c (deprecated_delete_breakpoint_hook): Remove.
4749 (deprecated_create_breakpoint_hook): Likewise.
4750 (deprecated_modify_breakpoint_hook): Likewise.
4751 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4752 * breakpoint.c (mention): Don't call removed hook.
4753 (delete_breakpoint): Likewise.
4754 (disable_breakpoint): Likewise.
4755 (do_enable_breakpoint): Likewise.
4756 * annotate.c: Include observer.h.
4757 (breakpoint_changed): Change type of argument.
4758 (_initialize_annotate): Register observers.
4759 (deprecated_annotate_starting_hook): Remove.
4760 (deprecated_annotate_stopped_hook): Remove.
4761 (deprecated_annotate_exited_hook): Remove.
4762 (annotate_starting): Update for hook removal.
4763 (annotate_stopped): Likewise.
4764 (annotate_exited): Likewise.
4765 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4766 (deprecated_create_breakpoint_hook): Likewise.
4767 (deprecated_modify_breakpoint_hook): Likewise.
4768
8641e682
TT
47692008-07-28 Tom Tromey <tromey@redhat.com>
4770
4771 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4772
064ef605
DJ
47732008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4774
4775 * configure.ac: Check for the GNU/Linux ptrace signature.
4776 * configure: Regenerated.
4777
57380f4e
DJ
47782008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4779
4780 * linux-nat.c (resume_callback): Add more debugging output.
4781 (linux_nat_has_pending_sigint): New function, based on
4782 linux_nat_has_pending.
4783 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4784 (stop_wait_callback): Remove flush_mask handling. Honor
4785 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4786 to recursive calls.
4787 (linux_nat_has_pending, flush_callback): Remove.
4788 (linux_nat_filter_event): Check for ignore_sigint.
4789 (linux_nat_wait): Remove flush_mask support and call to
4790 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4791 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4792
e09490f1
DJ
47932008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4794
4795 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4796 report events from resumed threads.
4797
e38d4e1a
DJ
47982008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4799
4800 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4801 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4802 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4803 mips-tdep.h.
4804 (mips32_next_pc): Handle the syscall instruction.
4805 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4806 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4807
fa8de41e
TT
48082008-07-26 Tom Tromey <tromey@redhat.com>
4809
4810 PR gdb/1158:
4811 * valops.c (value_struct_elt): Treat function-valued field as a
4812 static method.
4813
ccb3ac8a
TT
48142008-07-26 Tom Tromey <tromey@redhat.com>
4815
4816 PR gdb/1136:
4817 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4818 longer tokens first.
4819
d72314c6
VP
48202008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4821
4822 Kill cmd_async_ok.
f1648876
AS
4823 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4824 (get_cmd_async_ok): Remove.
4825 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4826 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4827 * infcmd.c (_initialize_infcmd): Likewise.
4828 * thread.c (_initialize_thread): Likewise.
d72314c6 4829
5b68030f
JM
48302008-07-25 Joseph Myers <joseph@codesourcery.com>
4831
4832 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4833 128-bit long doubles in even-odd pairs of FPRs. Do not
4834 right-align float arguments for big-endian.
4835 (mips_n32n64_return_value): Apply return value convention for
4836 structs containing one or two floating-point values to soft-float
4837 as well as hard-float. Handle 128-bit long doubles in such
4838 structs.
4839 (mips_o32_push_dummy_call): Only skip one integer register for a
4840 float argument passed in an FPR.
4841
383f836e
TT
48422008-07-25 Tom Tromey <tromey@redhat.com>
4843
4844 * tui/tui-hooks.c: Include observer.h.
4845 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4846 Remove.
4847 (tui_bp_created_observer, tui_bp_deleted_observer,
4848 tui_bp_modified_observer): New globals.
4849 (tui_install_hooks): Use observers, not events.
4850 (tui_remove_hooks): Likewise.
4851 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4852 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4853 globals.
4854 (breakpoint_notify): Check mi_can_breakpoint_notify.
4855 (breakpoint_hooks): Remove.
4856 (mi_cmd_break_insert): Attach observers. Don't use events.
4857 * tracepoint.c: Include observer.h, not gdb-events.h.
4858 (tracepoint_operation, trace_pass_command): Notify observer.
4859 * interps.c: Don't include gdb-events.h.
4860 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4861 * gdbarch.c: Rebuild.
4862 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4863 (deprecated_current_gdbarch_select_hack): Notify observer.
4864 * breakpoint.h: Don't include gdb-events.h.
4865 * breakpoint.c: Don't include gdb-events.h.
4866 (condition_command): Notify observer.
4867 (commands_command): Likewise.
4868 (commands_from_control_command): Likewise.
4869 (mention, delete_breakpoint, set_ignore_count): Likewise.
4870 (disable_breakpoint, do_enable_breakpoint): Likewise.
4871 * Makefile.in (gdb_events_h): Remove.
4872 (breakpoint_h): Update.
4873 (COMMON_OBS): Remove gdb-events.o.
4874 (gdb-events.o): Remove.
4875 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4876 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4877 * gdb-events.c: Remove.
4878 * gdb-events.h: Remove.
4879 * gdb-events.sh: Remove.
4880
60e569b9
PA
48812008-07-24 Pedro Alves <pedro@codesourcery.com>
4882
4883 * remote.c (remote_threads_extra_info): Don't query the remote
4884 server about info on the internally added main thread.
4885
a6a7f2a5
AR
48862008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4887
4888 * nto-procfs.c (procfs_attach): Populate initial thread list.
4889 (procfs_wait): Return new pid, built from the inferior status.
4890
e63e4db2
TJB
48912008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4892
4893 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4894 * configure: Regenerate.
4895
14ef7606
AR
48962008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4897
4898 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4899 (procfs_resume): Workaround for dereferencing type-punned pointer
4900 warning.
f1648876 4901 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
4902 correct.
4903 * nto-tdep.h (nto_parse_redirection): Likewise.
4904
cfd8ab24
SS
49052008-07-21 Stan Shebs <stan@codesourcery.com>
4906
4907 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4908 * gdbarch.sh: Adjust comment to refer to
4909 in_solib_dynsym_resolve_code().
4910 * gdbarch.h, gdbarch.c: Update.
4911 * solib-osf.c: Ditto.
4912 * infrun.c: Ditto.
4913 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4914 unconditionally.
4915 * config/mips/nm-irix5.h: Remove undef of
4916 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4917
781b42b0
TT
49182008-07-21 Tom Tromey <tromey@redhat.com>
4919
4920 * symfile.c (reread_symbols): Don't pass argument to observer.
4921 * exec.c (exec_file_attach): Don't pass argument to observer.
4922 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4923 * symtab.c (symtab_observer_executable_changed): Remove argument.
4924 * observer.sh: Handle functions with no arguments.
4925
a366c65a 49262008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 4927 Chris Demetriou <cgd@google.com>
a366c65a
CD
4928
4929 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4930 section fits within an ELF segment to handle ELF segments that hit
4931 the end of the address space.
4932
073d253f
CD
49332008-07-20 Chris Demetriou <cgd@google.com>
4934
4935 * MAINTAINERS (Write After Approval): Add self.
4936
d7d9f01e
TT
49372008-07-18 Tom Tromey <tromey@redhat.com>
4938
4939 PR gdb/855:
4940 * NEWS: Add entry for macro commands.
4941 * Makefile.in (macrocmd.o): Add gdb_string.h.
4942 * macroscope.h (user_macro_scope): Declare.
4943 (default_macro_scope): Update documentation.
4944 (macro_user_macros): Declare.
4945 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4946 Use user_macro_scope.
4947 (null_macro_lookup): Remove.
4948 * macrotab.h (macro_callback_fn): Declare.
4949 (macro_for_each): Likewise.
4950 (macro_allow_redefinitions): Likewise.
4951 * macrotab.c (foreach_macro): New function
4952 (macro_for_each): Likewise.
4953 (struct macro_table) <redef_ok>: New field.
4954 (macro_allow_redefinitions): New function.
4955 (new_macro_table): Update.
4956 (macro_define_function): Likewise.
4957 (macro_define_object): Likewise.
4958 * macroscope.c (user_macro_scope): New function.
4959 (default_macro_scope): Use it.
4960 (macro_user_macros): New global.
4961 (standard_macro_lookup): Look in macro_user_macros.
4962 (_initialize_macroscope): New function.
4963 * macroexp.h (macro_is_whitespace, macro_is_digit,
4964 macro_is_identifier_nondigit): Declare.
4965 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4966 (macro_is_digit): Likewise.
4967 (macro_is_identifier_nondigit): Likewise.
4968 (get_identifier): Update.
4969 (get_pp_number): Likewise.
4970 (get_token): Likewise.
4971 * macrocmd.c (skip_ws): New function.
4972 (extract_identifier): Likewise.
4973 (free_macro_definition_ptr): Likewise.
4974 (user_macros): Remove.
4975 (macro_define_command): Implement.
4976 (_initialize_macrocmd): Update.
4977 (macro_undef_command): Implement.
4978 (print_one_macro): New function.
4979 (macro_list_command): Implement.
4980
0f72fb1c
JM
49812008-07-18 Joseph Myers <joseph@codesourcery.com>
4982
4983 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4984 in BFD ELF check.
4985 * configure: Regenerate.
4986
7c6467a4
PP
49872008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4988
4989 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4990
680b56ce
AS
49912008-07-15 Andreas Schwab <schwab@suse.de>
4992
4993 * valops.c (value_cast_pointers): Follow typedefs when checking
4994 result of coercion.
4995
7f0df278
DJ
49962008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4997
4998 * block.c (block_function): Renamed to ...
4999 (block_linkage_function): ... this. All callers changed.
5000 * block.h (block_function): Renamed to ...
5001 (block_linkage_function): ... this.
5002
ba2c6aec
DJ
50032008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5004
5005 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5006
d56907c1
DJ
50072008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5008
5009 * frame.c (frame_sp_unwind): Delete.
5010 (get_frame_sp): Do not use it.
5011 * frame.h (frame_sp_unwind): Delete prototype.
5012
f92aeb88
DJ
50132008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5014
5015 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5016
ad1193e7
DJ
50172008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5018
5019 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5020 * frame.c (frame_unwind_address_in_block): Delete.
5021 (get_frame_address_in_block): Do not use it. Check the type
5022 of the next frame first.
5023 (frame_cleanup_after_sniffer): Update comment.
5024 * frame.h (frame_unwind_address_in_block): Delete prototype.
5025 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5026
ef02daa9
DJ
50272008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5028
5029 * frame.c (frame_func_unwind): Delete.
5030 (get_frame_func): Do not use it.
5031 * frame.h (frame_func_unwind): Delete prototype.
5032 * hppa-tdep.c (hppa_frame_cache): Update comment.
5033 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5034
96e32df8
SS
50352008-07-14 Stan Shebs <stan@codesourcery.com>
5036
5037 * remote-sim.c (init_gdbsim_ops): Remove
5038 TARGET_REDEFINE_DEFAULT_OPS.
5039
ab8650a3
DJ
50402008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5041
5042 * findvar.c (read_var_value): Remove unused variable.
5043
8c90c137
LM
50442008-07-15 Luis Machado <luisgpm@br.ibm.com>
5045
5046 * infrun.c (handle_inferior_event): Tag threads as stopped
5047 before inserting breakpoints.
5048
4098af0f
HZ
50492008-07-15 Hui Zhu <teawater@gmail.com>
5050
5051 * MAINTAINERS: Added myself to section Write After Approval.
5052
7093c834
PP
50532008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5054
5055 PR gdb/2477
5056 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5057
56514771
PA
50582008-07-14 Pedro Alves <pedro@codesourcery.com>
5059
5060 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5061 (i386_dicos_push_dummy_code): New.
5062 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5063 Register i386_dicos_push_dummy_code.
5064
74ed0bb4
MD
50652008-07-14 Markus Deuling <deuling@de.ibm.com>
5066
5067 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5068 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5069 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5070
5071 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5072 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5073 (mips_n32n64_fp_arg_chunk_p): Update caller.
5074
5075 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5076 (mips_n32n64_push_dummy_call): Update caller.
5077
5078 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5079 current_gdbarch.
5080 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5081 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5082
5083
5084 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5085 current_gdbarch.
5086 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5087 (mips_o64_push_dummy_call): Update caller.
5088
5089 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5090 (fp_register_arg_p, mips_dump_tdep): Update caller.
5091
5092 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5093 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5094
5095 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5096 current_gdbarch.
5097 (mips32_scan_prologue): Update caller.
5098
5099 (heuristic_proc_start): Add gdbarch as parameter. Replace
5100 current_gdbarch.
5101 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5102
5103 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5104 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5105 the current architecture. Update call to getregs_supplies.
5106 (getregs_supplies): Add gdbarch as parameter and replace
5107 current_gdbarch.
5108
5109 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5110 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5111 NBSD_MIPS_JB_ELEMENT_SIZE.
5112 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5113 replace current_gdbarch.
5114
5115 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5116 current_gdbarch.
5117 (mips_fetch_registers, mips_store_registers): Update call
5118 to mips_map_regno.
5119 (mips_load): Use get_regcache_arch to get at the current_architecture
5120 and replace current_gdbarch.
5121
0c501536
PA
51222008-07-13 Pedro Alves <pedro@codesourcery.com>
5123
5124 * thread.c (restore_selected_frame): On fail to restore, select
5125 the innermost frame, and don't crash when warning the user.
5126
db009c8a
JB
51272008-07-13 Hui Zhu <teawater@gmail.com>
5128
5129 * symtab.c (expand_line_sal): Fix a memory leak.
5130
0ffe5012
PA
51312008-07-13 Pedro Alves <pedro@codesourcery.com>
5132
5133 * utils.c (struct continuation): Define as inheriting struct
5134 cleanup.
5135 (add_continuation, do_all_continuations)
5136 (discard_all_continuations, add_intermediate_continuation)
5137 (do_all_intermediate_continuations)
5138 (discard_all_intermediate_continuations): Adjust.
5139
dbba8251
VP
51402008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5141
5142 Skip varobj in running threads.
680b56ce
AS
5143 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5144 thread is not stopped, skip the varobj.
5145 * Makefile.in: Update dependencies.
dbba8251 5146
e3d6cd5f
VP
51472008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5148
5149 Enable all commands while inferiour is running
680b56ce
AS
5150 * mi/mi-main.c (mi_cmd_execute): Don't check if
5151 inferiour is executing.
e3d6cd5f 5152
b10a37b1
VP
51532008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5154
5155 Allow all CLI command even if target is executing.
680b56ce
AS
5156 * gdb/top.c (execute_command_1): Don't check if the inferiour
5157 is running.
b10a37b1 5158
ea069267
VP
51592008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5160
5161 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5162 Fix printing of frame, when frame is wrong.
5163
cdc9523a
UW
51642008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5165
5166 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5167 backchain is unreadable.
5168
d5b25491
UW
51692008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5170
5171 * spu-linux-nat.c: Include "gdbthread.h".
5172 (spu_child_post_startup_inferior): Register main thread.
5173 (spu_child_post_attach): Likewise.
5174 * Makefile.in (spu-linux-nat.o): Update dependencies.
5175
604ead4a
PA
51762008-07-12 Pedro Alves <pedro@codesourcery.com>
5177
5178 Rewrite continuations internals on top of cleanups and plug
5179 continuation arguments leaks.
5180
5181 * defs.h (struct continuation): Make it opaque.
5182 (add_continuation, add_intermediate_continuation): Drop the int
5183 argument of the continuation hook argument. Add
5184 continuation_free_args argument.
5185 (do_all_continuations, do_all_intermediate_continuations): Drop
5186 the error_p argument.
5187
5188 * utils.c (add_continuation): Drop the int argument of the
5189 continuation hook argument. Add continuation_free_args argument.
5190 Reimplement on top of cleanups.
5191 (do_all_continuations): Drop error argument. Reimplement on top
5192 of cleanups.
5193 (discard_all_continuations): Reimplement on top of cleanups.
5194 (add_intermediate_continuation): Drop the int argument of the
5195 continuation hook argument. Add continuation_free_args argument.
5196 Reimplement on top of cleanups.
5197 (do_all_intermediate_continuations): Drop error argument.
5198 Reimplement on top of cleanups.
5199 (discard_all_intermediate_continuations): Reimplement on top of
5200 cleanups.
5201
5202 * breakpoint.c (until_break_command_continuation): Drop error
5203 argument. Add xfree as continuation argument deleter.
5204
5205 * inf-loop.c (inferior_event_handler): On error, discard all
5206 continuations. Adjust to new do_all_intermediate_continuations
5207 and do_all_continuations interfaces.
5208
5209 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5210 Pass xfree as continuation argument deleter.
5211 (finish_command_continuation): Drop error_p argument. Adjust.
5212 (finish_command_continuation_free_arg): New.
5213 (finish_command): Pass finish_command_continuation_free_arg as
5214 continuation argument deleter. Adjust to new do_all_continuations
5215 interfaces.
5216 (attach_command_continuation): Drop error_p argument.
5217 (attach_command_continuation_free_args): New.
5218 (attach_command): Pass attach_command_continuation_free_args as
5219 continuation argument deleter.
5220
5221 * interps.c (interp_set): Adjust to new do_all_continuations
5222 interfaces.
5223
5224 * event-top.c (stdin_event_handler): In error, also discard the
5225 intermediate continuations.
5226
bfec99b2
PA
52272008-07-12 Pedro Alves <pedro@codesourcery.com>
5228
5229 Replace struct continuation_args by void* and per command structs.
5230
5231 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5232
5233 * breakpoint.c (struct until_break_command_continuation_args):
5234 New.
5235 (until_break_command_continuation): Take a void* instead of a
5236 continuations_arg. Adjust.
5237 (until_break_command): Adjust to use struct
5238 until_break_command_continuation_args instead of struct
5239 continuation_arg.
5240
5241 * infcmd.c (struct step_1_continuation_args): New.
5242 (step_1_continuation): Take a void* instead of a
5243 continuations_arg. Adjust to use struct step_1_continuation_args.
5244 (step_once): Adjust to use struct step_1_continuation_args.
5245
5246 (struct finish_command_continuation_args): New.
5247 (finish_command_continuation): Take a void* instead of a
5248 continuations_arg. Adjust to use struct
5249 finish_command_continuation_args.
5250 (finish_command): Adjust to use struct
5251 finish_command_continuation_args.
5252 (struct attach_command_continuation_args): New.
5253 (attach_command_continuation): Take a void* instead of a
5254 continuations_arg. Adjust to use struct
5255 attach_command_continuation_args.
5256 (attach_command): Adjust to use struct
5257 attach_command_continuation_args.
5258
5259 * defs.h (struct continuation_arg): Delete.
5260 (struct continuation): Replace the struct continuation_arg*
5261 parameter of continuation_hook by a void*. Replace "arg_list"
5262 member by a new "args" member with void* type.
5263 (add_continuation, add_intermediate_continuation): Replace struct
5264 continuation_arg type usages by void* usages.
5265
5266 * utils.c (add_continuation, do_all_continuations)
5267 (add_intermediate_continuation)
5268 (do_all_intermediate_continuations): Replace struct
5269 continuation_arg type usages by void* usages. Pass "args" instead
5270 of "arg_list".
5271
2afb61aa
PA
52722008-07-12 Pedro Alves <pedro@codesourcery.com>
5273
5274 * infrun.c (struct thread_stepping_state): Delete sal member.
5275 (init_thread_stepping_state): Add local sal. Use it instead of
5276 tss->sal.
5277 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5278 tss->sal.
5279 (step_into_function): Add local stop_func_sal. Use it instead of
5280 tss->sal.
5281
77ebaa5a
VP
52822008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5283
5284 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5285 * infcmd.c (continue_1): New, extracted from
5286 (continue_command): ...here.
5287 (interrupt_target_1): New, extracted from
5288 (interrupt_target_command): ...here.
5289 * inferior.h (continue_1, interrupt_target_1): New.
5290 * mi/mi-main.c (mi_cmd_exec_continue)
5291 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5292
1e92afda
VP
52932008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5294
5295 Implement --thread and --frame.
5296 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5297 * thread.c (find_thread_id): Make non-static.
5298 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5299 thread and frame, if necessary.
5300 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5301 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5302
d56b7306
VP
53032008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5304
5305 * infrun.c (resume): Discard cleanups on early exit path.
5306
b1a268e5
VP
53072008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5308
680b56ce 5309 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5310 were stopped.
5311
90139f7d
VP
53122008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5313
5314 Report thread state in -thread-info output.
680b56ce 5315 * thread.c (print_thread_info): Add new field "state".
90139f7d 5316
a0d21d28
PA
53172008-07-11 Pedro Alves <pedro@codesourcery.com>
5318
5319 * infrun.c (handle_inferior_event): Also ignore a
5320 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5321
14032a66
TT
53222008-07-11 Tom Tromey <tromey@redhat.com>
5323
5324 * completer.c (complete_line_internal): New function, from
5325 complete_line. Add 'for_help' parameter.
5326 (complete_line): Use it.
5327 (command_completer): Move later. Rewrite.
5328
65fc9b77
PA
53292008-07-11 Pedro Alves <pedro@codesourcery.com>
5330
5331 * thread.c (thread_apply_command): Move making the cleanup out of
5332 the loop.
5333
4f8d22e3
PA
53342008-07-11 Pedro Alves <pedro@codesourcery.com>
5335
5336 Exited threads.
5337
5338 * thread.c (enum thread_state): New.
5339 (thread_state main_thread_running): Delete, in favor of...
5340 (thread_state main_thread_state): ... this. Update throughout.
5341 (clear_thread_inferior_resources): New, split from free_thread.
5342 (free_thread): Call clear_thread_inferior_resources.
5343 (init_thread_list): Set main thread to stopped state.
5344 (add_thread_silent): Take care of PTID reuses.
5345 (delete_thread): If deleting inferior_ptid or a thread with
5346 refcount > 0, mark it as exited, but still keep it in the list.
5347 Only notify of thread exits, if we haven't done so yet.
5348 (iterate_over_threads): Make it safe to delete threads while
5349 iterating over them.
5350 (do_captured_list_thread_ids): Don't account for exited threads.
5351 (thread_alive): Check for the THREAD_EXITED state, and don't set
5352 ptid to -1 on exited threads.
5353 (set_running): Update to account for extra possible states.
5354 (is_thread_state): New.
5355 (is_stopped, is_exited): New.
5356 (is_running): Implement in terms of is_thread_state.
5357 (any_running): Update.
5358 (print_thread_info): Update. Account for exited threads. Don't
5359 warn about missed frame restoring here, its done in the cleanup.
5360 (switch_to_thread): Don't read from a thread that has gone.
5361 (restore_current_thread): In non-stop mode, do a full context
5362 switch.
5363 (restore_selected_frame): Add a frame_level argument. Rewrite.
5364 (struct current_thread_cleanup): Add selected_frame_level and
5365 was_stopped members.
5366 (do_restore_current_thread_cleanup): Check if thread was stopped
5367 and still is, and if the target has registers, stack and memory
5368 before restoring the selected frame. Don't delete the cleanup
5369 argument here.
5370 (restore_current_thread_cleanup_dtor): New.
5371 (make_cleanup_restore_current_thread): Remove all arguments.
5372 Rewrite.
5373 (thread_apply_all_command): Update. Prune threads.
5374 (thread_apply_command): Update.
5375 (thread_command): Account for currently selected exited thread.
5376 (do_captured_thread_select): Check for a running thread. Prune
5377 threads.
5378 (_initialize_thread): Make "info threads", "thread", "thread
5379 apply", and "thread apply all" appliable without a selected thread.
5380 * gdbthread.h (struct thread_info): Replace running_ by state_.
5381 Add refcount.
5382 (is_exited, is_stopped): Declare.
5383 (make_cleanup_restore_current_thread): Remove all arguments.
5384 * infrun.c: Include "event-top.h".
5385 (fetch_inferior_event): In non-stop mode, restore selected thread
5386 and frame after handling the event and running breakpoint
5387 commands. Display GDB prompt if needed.
5388 (normal_stop): In non-stop mode, don't print thread switching
5389 notice.
5390 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5391 (get_cmd_no_selected_thread_ok): New.
5392 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5393 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5394 Declare.
5395 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5396 no-selected-thread ok.
5397 * top.c (execute_command): Check for non no-selected-thread-ok
5398 commands.
5399 * linux-nat.c (struct saved_ptids, threads_to_delete)
5400 (record_dead_thread, prune_lwps): Delete.
5401 (exit_lwp): Unconditionally delete thread.
5402 (linux_nat_resume): Remove prune_lwps call.
5403 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5404 of is_running. Adjust to make_cleanup_restore_current_thread
5405 interface change.
5406 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5407 selected thread has exited.
5408 * inf-loop.c (inferior_event_handler): Don't display the prompt
5409 here.
5410 * varobj.c (c_value_of_root): Update.
5411 * defs.h (make_cleanup_dtor): Declare.
5412 * utils.c (make_cleanup_dtor): New.
5413
5414 * Makefile.in (infrun.o): Depend on $(event_top_h).
5415
8cae4b3f
PA
54162008-07-11 Pedro Alves <pedro@codesourcery.com>
5417
5418 Add "continue -a" and "interrupt -a" options for non-stop mode.
5419
5420 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5421 (continue_command): Add "-a" option.
5422 (interrupt_target_command): Add "-a" option.
5423 (_initialize_infcmd): Add extend help of continue and interrupt
5424 command to mention the new "-a" option. Mark "continue" async ok.
5425
bf250677
DE
54262008-07-10 Doug Evans <dje@google.com>
5427
5428 Add "set print symbol-loading on|off".
5429 * NEWS: Document new option.
5430 * symfile.h (print_symbol_loading): Declare.
5431 * symfile.c (print_symbol_loading): New global.
5432 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5433 from ..." if print_symbol_loading.
5434 (_initialize_symfile): Add set/show print symbol-loading.
5435 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5436 if print_symbol_loading.
5437
4c28f408
PA
54382008-07-10 Pedro Alves <pedro@codesourcery.com>
5439
5440 Non-stop linux native.
5441
5442 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5443 here.
5444 (get_pending_status): Implement non-stop mode.
5445 (linux_nat_detach): Stop threads before detaching.
5446 (linux_nat_resume): In non-stop mode, always resume only a single
5447 PTID.
5448 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5449 add new lwp to GDB's thread table, and mark as running, executing
5450 and stopped appropriately.
5451 (linux_nat_filter_event): Don't assume there are other running
5452 threads when a thread exits.
5453 (linux_nat_wait): Mark the main thread as running and executing.
5454 In non-stop mode, don't stop all lwps.
5455 (linux_nat_kill): Stop lwps before killing them.
5456 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5457 alive.
5458 (send_sigint_callback): New.
5459 (linux_nat_stop): New.
5460 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5461
5462 * linux-nat.h (thread_db_attach_lwp): Declare.
5463
5464 * linux-thread-db.c (thread_get_info_callback): Check for new
5465 threads if we have none.
5466 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5467 stopped lwp. Check for new threads if we have none.
5468 (thread_db_attach_lwp): New.
5469 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5470 (check_event): Set proc_handle.pid to the stopped lwp.
5471 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5472 lwp available, bail out if there is none.
5473
5474 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5475 PTRACE_KILL.
5476
0aef6ba2
KB
54772008-07-10 Kevin Buettner <kevinb@redhat.com>
5478
a4fafde3
KB
5479 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5480 `current_pc' from CORE_ADDR to ULONGEST.
5481
0aef6ba2
KB
5482 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5483 gdbsim_stop().
5484
10568435
JK
54852008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5486
5487 * NEWS (New commands): Mention "set disable-randomization".
5488 * configure.ac: Add check for HAVE_PERSONALITY and
5489 HAVE_DECL_ADDR_NO_RANDOMIZE.
5490 * configure, config.in: Regenerate.
5491 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5492 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5493 ADDR_NO_RANDOMIZE.
5494 (disable_randomization, show_disable_randomization)
5495 (set_disable_randomization): New.
5496 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5497 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5498 variable DISABLE_RANDOMIZATION.
5499 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5500 DISABLE_RANDOMIZATION.
5501
f9c72d52
PA
55022008-07-09 Pedro Alves <pedro@codesourcery.com>
5503
5504 Adjust all targets to new target_stop interface.
5505
5506 * gnu-nat.c (gnu_stop): Add ptid argument.
5507 * go32-nat.c (go32_stop): Add ptid argument.
5508 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5509 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5510 * monitor.c (monitor_stop): Add ptid argument.
5511 (monitor_open): Pass inferior_ptid to monitor_stop.
5512 (monitor_interrupt): Pass inferior_ptid to target_stop.
5513 (monitor_stop): Add ptid argument.
5514 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5515 (procfs_create_inferior): Add ptid argument.
5516 * procfs.c (procfs_stop): Add ptid argument.
5517 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5518 * remote-sim.c (gdbsim_stop): Add ptid argument.
5519 * sol-thread.c (sol_thread_stop): Add ptid argument.
5520 * win32-nat.c (win32_stop): Add ptid argument.
5521
94cc34af
PA
55222008-07-09 Pedro Alves <pedro@codesourcery.com>
5523
5524 Non-stop inferior control.
5525
5526 * infrun.c (resume): In non-stop mode, always resume just one
5527 thread.
5528 (proceed): Don't call prepare_to_proceed in non-stop mode.
5529 (fetch_inferior_event): In non-stop mode, switch context before
5530 handling the event.
5531 (error_is_running, ensure_not_running): New.
5532 (handle_inferior_event): In non-stop mode: Mark only the event
5533 thread as stopped. Require that the target module manages adding
5534 threads to the thread list. Assert that there isn't a
5535 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5536 (normal_stop): Only mark not-running if inferior hasn't exited.
5537 In non-stop mode, only mark the event thread.
5538
5539 * thread.c:Include "cli/cli-decode.h".
5540 (print_thread_info): Don't read from a running thread.
5541 Output "(running)" if thread is running.
5542 (switch_to_thread): Don't read stop_pc if thread is executing.
5543 (do_restore_current_thread_cleanup): Don't write to a running
5544 thread.
5545 (thread_apply_all_command): Don't read from a running thread. In
5546 non-stop mode, do a full context-switch instead of just switching
5547 threads.
5548 (thread_apply_command): In non-stop mode, do a full context-switch
5549 instead of just switching threads.
5550 (do_captured_thread_select): Likewise. Inform user if selected
5551 thread is running.
5552 (_initialize_thread): Mark "info threads" and "thread" and
5553 async_ok.
5554
5555 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5556 unregister the target from the event loop.
5557
5558 * infcmd.c (continue_command, step_1, jump_command)
5559 (signal_command): Ensure the selected thread isn't running.
5560 (interrupt_target_command): In non-stop mode, interrupt only the
5561 selected thread.
5562
5563 * inferior.h (error_is_running, ensure_not_running): Declare.
5564
5565 * target.h (struct target_ops): Add ptid argument to the to_stop
5566 member.
5567 (target_stop): Add ptid_t argument.
5568
5569 * target.c (update_current_target): Add ptid argument to to_stop's
5570 type.
5571 (debug_to_stop): Add ptid_t argument.
5572 (debug_to_rcmd): Set to_stop_ptid.
5573
5574 * remote.c (remote_stop): Add ptid_t argument.
5575 (async_remote_interrupt): Add inferior_ptid to target_stop.
5576 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5577
5578 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5579
59f0d5d9
PA
55802008-07-09 Pedro Alves <pedro@codesourcery.com>
5581
5582 Don't rely on ecs->wait_for_more.
5583
5584 * infrun.c (proceed): Clear the stepping state, set
5585 previous_inferior_ptid and clear infwait state.
5586 (wait_for_inferior): Don't clear the stepping state, set
5587 previous_inferior_ptid, or clear the infwait state here.
5588 (fetch_inferior_event): Don't clear the stepping state, set
5589 previous_inferior_ptid, or clear the infwait state here. Don't
5590 condition on wait_for_more.
5591
0d1e5fa7
PA
55922008-07-09 Pedro Alves <pedro@codesourcery.com>
5593
5594 Refactor infrun a bit.
5595
5596 * infrun.c (currently_stepping): Take a struct
5597 thread_stepping_state instead of an execution_control_state.
5598 (struct thread_stepping_state): New, split from
5599 execution_control_state.
5600 (gtss, tss): New globals.
5601 (proceed): Clear the stepping state, set previous_inferior_ptid
5602 and clear infwait state.
5603 (init_wait_for_inferior): Clear the stepping state,
5604 previous_inferior_ptid and infwait state.
5605 (waiton_ptid, infwait_state): New, split from
5606 execution_control_state.
5607 (struct execution_control_state): Members that persist through
5608 events moved out to either struct thred_stepping_state or made
5609 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5610 (wait_for_inferior, fetch_inferior_event): Use local
5611 execution_control_state. Update to execution_control_state split.
5612 (init_execution_control_state): Adjust.
5613 (init_thread_stepping_state): New, extracted from
5614 init_execution_control_state.
5615 (context_switch): Take a ptid instead of an
5616 execution_control_state.
5617 (context_switch_to): Adjust.
5618 (adjust_pc_after_break): Adjust.
5619 (init_infwait_state): New.
5620 (handle_inferior_event): Adjust.
5621
a474d7c2
PA
56222008-07-09 Pedro Alves <pedro@codesourcery.com>
5623 Vladimir Prus <vladimir@codesourcery.com>
5624
5625 Per-thread commands.
5626
5627 * gdbthread.h: Remove unneeded forward declarations.
5628 Include "inferior.h".
5629 (struct thread_info): Add continuations,
5630 intermediate_continuations, proceed_to_finish, step_over_calls,
5631 stop_step, step_multi and stop_signal members.
5632 (save_infrun_state): Add continuations,
5633 intermediate_continuations, proceed_to_finish, step_over_calls,
5634 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5635 (load_infrun_state): Add continuations,
5636 intermediate_continuations, proceed_to_finish, step_over_calls,
5637 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5638
5639 * thread.c (load_infrun_state): In non-stop mode, load
5640 continuations, intermediate_continuations, proceed_to_finish,
5641 step_over_calls, stop_step, step_multi and stop_signal.
5642 (save_infrun_state): Store continuations,
5643 intermediate_continuations, proceed_to_finish, step_over_calls,
5644 stop_step, step_multi, stop_signal and stop_bpstat.
5645 (save_infrun_state): Store continuations,
5646 intermediate_continuations, proceed_to_finish, step_over_calls,
5647 stop_step, step_multi, stop_signal and stop_bpstat.
5648 (free_thread): Clear The thread's stop_bpstat.
5649
5650 * inferior.h (context_switch_to): Declare.
5651
5652 * infrun.c (ecss): New global.
5653 (context_switch): Context switch continuations,
5654 intermediate_continuations, proceed_to_finish, step_over_calls,
5655 stop_step, step_multi, stop_signal and stop_bpstat.
5656 (wait_for_inferior): Use global ecss.
5657 (async_ecss, async_ecs): Delete.
5658 (fetch_inferior_event): Use global ecss.
5659 (context_switch_to): New.
5660
5661 * top.c (execute_command): In non-stop, only check if the current
5662 thread is running, in all-stop, check if there's any thread
5663 running.
5664
5665 * breakpoint.c (bpstat_remove_breakpoint): New.
5666 (bpstat_remove_breakpoint_callback): New.
5667 (delete_breakpoint): Clear the stop_bpstats of all threads.
5668
5669 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5670 current thread is running, in all-stop, check if there's any
5671 thread running.
5672
5673 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5674
ad52ddc6
PA
56752008-07-09 Pedro Alves <pedro@codesourcery.com>
5676
5677 Add non_stop global.
5678
5679 * inferior.h (non_stop): Declare.
5680 * infrun.c (non_stop, non_stop_1): New.
5681 (set_non_stop, show_non_stop): New.
5682 (_initialize_infrun): Add "set/show non-stop" command.
5683
3a3e9ee3
PA
56842008-07-09 Pedro Alves <pedro@codesourcery.com>
5685
5686 Adjust fork/vfork/exec to pass ptids around.
5687
5688 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5689 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5690 Take a ptid_t.
5691 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5692 type to ptid.
5693 * breakpoint.c (print_it_typical, bpstat_check_location)
5694 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5695 (create_fork_vfork_event_catchpoint): Adjust.
5696 * infrun.c (fork_event): Change parent_pid and child_pid types to
5697 ptid.
5698 (follow_exec, inferior_has_forked, inferior_has_vforked)
5699 (inferior_has_execd): Take a ptid_t and don't trim it.
5700 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5701 * linux-nat.c (linux_child_follow_fork): Adjust.
5702 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5703 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5704 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5705
8ea051c5
PA
57062008-07-09 Pedro Alves <pedro@codesourcery.com>
5707
5708 Add "executing" property to threads.
5709
5710 * inferior.h (target_executing): Delete.
5711 * gdbthread.h (struct thread_info): Add executing_ field.
5712 (set_executing, is_executing): New.
5713 * thread.c (main_thread_executing): New.
5714 (init_thread_list): Clear it and also main_thread_running.
5715 (is_running): Return false if target has no execution.
5716 (any_running, is_executing, set_executing): New.
5717
5718 * top.c: Include "gdbthread.h".
5719 (target_executing): Delete.
5720 (execute_command): Replace target_executing check by any_running.
5721 * event-top.c: Include "gdbthread.h".
5722 (display_gdb_prompt, command_handler): Replace target_executing by
5723 is_running.
5724 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5725 here. Replace target_executing by is_running.
5726 * infrun.c (handle_inferior_event): Mark all threads as
5727 not-executing.
5728 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5729 here.
5730 * stack.c (get_selected_block): Return null if inferior is
5731 executing.
5732 * target.c (target_resume): Mark resumed ptid as executing.
5733 * breakpoint.c (until_break_command): Replace target_executing
5734 check by is_executing.
5735 * remote.c (remote_async_resume): Don't mark inferior as executing
5736 here.
5737 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5738 by any_running.
680b56ce 5739
8ea051c5
PA
5740 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5741 (mi_execute_async_cli_command): Replace target_executing by
5742 is_running.
5743
5744 * frame.c (get_current_frame): Error out if the current thread is
5745 executing.
5746 (has_stack_frames): New.
5747 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5748 has_stack_frames.
680b56ce 5749
8ea051c5
PA
5750 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5751 $(gdbthread_h).
5752
4487aabf
PA
57532008-07-09 Pedro Alves <pedro@codesourcery.com>
5754
5755 * symfile.c (load_command): Reopen the exec file and reread
5756 symbols before anything else.
5757
9de2bdd7
PA
57582008-07-09 Pedro Alves <pedro@codesourcery.com>
5759
5760 * remote-sim.c: Include gdbthread.h.
5761 (remote_sim_ptid): New global.
5762 (gdbsim_create_inferior): Silently add the main task to GDB's
5763 thread list.
5764 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5765 task from GDB's thread list.
5766 (gdbsim_resume): Adjust to use remote_sim_ptid.
5767 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5768 (init_gdbsim_ops): Register gdbsim_thread_alive and
5769 gdbsim_pid_to_str.
5770 (_initialize_remote_sim): Initialize remote_sim_ptid.
5771 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5772
5e0b29c1
PA
57732008-07-09 Pedro Alves <pedro@codesourcery.com>
5774
5775 * monitor (monitor_ptid): New global.
5776 (monitor_open): Silently add the main task to GDB's thread list.
5777 (monitor_close, monitor_mourn_inferior): Silently delete the main
5778 task from GDB's thread list.
5779 (monitor_thread_alive, monitor_pid_to_str): New.
5780 (init_base_monitor_ops): Register monitor_thread_alive and
5781 monitor_pid_to_str.
5782 (_initialize_remote_monitors): Initialize monitor_ptid.
5783
5784 * gdbthread.h (delete_thread_silent): Declare.
5785 * thread.c (delete_thread): Rename to ...
5786 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5787 don't do exit notifications.
5788 (delete_thread, delete_thread_silent): New, as wrappers to
5789 delete_thread_1.
5790
b60e7edf
PA
57912008-07-08 Pedro Alves <pedro@codesourcery.com>
5792
5793 * breakpoint.c (update_global_location_list): Add boolean
5794 "should_insert" argument. Only insert locations if caller told it
5795 too.
5796 (update_global_location_list_nothrow): Add boolean "should_insert"
5797 argument. Pass it to update_global_location_list.
5798 (insert_breakpoints, create_longjmp_breakpoint)
5799 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5800 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5801 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5802 (enable_watchpoints_after_interactive_call_stop)
5803 (set_momentary_breakpoint, create_breakpoints)
5804 (break_command_really, watch_command_1)
5805 (create_ada_exception_breakpoint, update_breakpoint_locations)
5806 (do_enable_breakpoint, enable_command): Pass true to
5807 update_global_location_list.
5808 (bpstat_stop_status, disable_overlay_breakpoints)
5809 (disable_watchpoints_before_interactive_call_start)
5810 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5811 false to update_global_location_list.
5812 (update_breakpoints_after_exec): Don't temporarily disable
5813 always-inserted mode.
5814
25b22b0a
PA
58152008-07-08 Pedro Alves <pedro@codesourcery.com>
5816
5817 * breakpoint.c (mark_breakpoints_out): Make public.
5818 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5819 here. Update comment.
5820 * breakpoint.h (mark_breakpoints_out): Declare.
5821
5822 * linux-nat.c (linux_handle_extended_wait): On
5823 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5824 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5825
cce9b6bf
PA
58262008-07-08 Pedro Alves <pedro@codesourcery.com>
5827
5828 * infrun.c (follow_exec): Reset shared libraries before adding the
5829 main exec file.
5830
3c3185ac
JK
58312008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5832
5833 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5834
42f0bc8e
PA
58352008-07-07 Pedro Alves <pedro@codesourcery.com>
5836
5837 * i386-dicos-tdep.c: Include "inferior.h".
5838 (i386_dicos_frame_align): New.
5839 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5840 dummy location ON_STACK.
5841 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5842
b7292df3
JB
58432008-07-07 Joel Brobecker <brobecker@adacore.com>
5844
5845 * gstdint.h: New file.
5846
bb599c81
VP
58472008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5848
5849 * mi/mi-interp.c (mi_on_resume): Don't try to report
5850 resumed thread it the thread list is empty.
5851
7f6a6314
PM
58522008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5853
5854 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5855 completer for set to filename_completer.
680b56ce 5856
7f6a6314
PM
5857 NEWS: Mention it.
5858
711eabed
VP
58592008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5860
5861 Implement -target-attach.
680b56ce 5862 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 5863
db3b9a10
MS
58642008-06-21 Hui Zhu <teawater@gmail.com>
5865
5866 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5867
dc177b7a
PA
58682008-07-03 Pedro Alves <pedro@codesourcery.com>
5869
5870 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5871 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5872
5873 * target.h (struct target_ops): Add to_attach_no_wait member.
5874 (target_attach_no_wait): New.
5875 * target.c (update_current_target): Inherit to_attach_no_wait.
5876
5877 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5878 target_attach_no_wait runtime check.
5879
5880 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5881 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5882 win32_ops.
5883
caac8896
PA
58842008-07-03 Pedro Alves <pedro@codesourcery.com>
5885
5886 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5887 on debug_displaced being set.
5888
0d254d6f
DJ
58892008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5890
5891 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5892 directly instead of get_frame_id.
5893
f74c6cad
LM
58942008-06-30 Luis Machado <luisgpm@br.ibm.com>
5895
5896 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5897 (deal_with_atomic_sequence): Update BC masks.
5898 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5899 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5900
395f2fc2
DJ
59012008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5902
5903 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5904 register, not the previous frame's.
5905
8340a3fb
LM
59062008-06-30 Luis Machado <luisgpm@br.ibm.com>
5907
5908 * source.c (select_source_symtab): Make sure we skip namespace
5909 symtabs when showing cpp source code.
5910
cfefc99a
HPN
59112008-06-30 Hans-Peter Nilsson <hp@axis.com>
5912
5913 * MAINTAINERS (Authorized committers): Fix my email address.
5914
1b98914a
VP
59152008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5916
5917 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5918 -target-download and -target-select via CLI, so that
5919 the quoting rules are the same as they were (unfortunately)
5920 in all prior gdb releases.
5921 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5922 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5923 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5924 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5925 (mi_cmd_execute): Set current_token even for commands
5926 routed via CLI.
5927
94afd7a6
UW
59282008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5929
5930 * alphafbsd-tdep.c: Update for unwinder changes.
5931 * alpha-linux-tdep.c: Likewise.
5932 * alphanbsd-tdep.c: Likewise.
5933 * alphaobsd-tdep.c: Likewise.
5934 * avr-tdep.c: Likewise.
5935 * cris-tdep.c: Likewise.
5936 * frv-linux-tdep.c: Likewise.
5937 * frv-tdep.c: Likewise.
5938 * h8300-tdep.c: Likewise.
5939 * hppa-linux-tdep.c: Likewise.
5940 * iq2000-tdep.c: Likewise.
5941 * m32c-tdep.c: Likewise.
5942 * m32r-linux-tdep.c: Likewise.
5943 * m32r-tdep.c: Likewise.
5944 * m68hc11-tdep.c: Likewise.
5945 * mep-tdep.c: Likewise.
5946 * mn10300-tdep.c: Likewise.
5947 * mt-tdep.c: Likewise.
5948 * score-tdep.c: Likewise.
5949 * sh64-tdep.c: Likewise.
5950 * sh-tdep.c: Likewise.
5951 * sparc64fbsd-tdep.c: Likewise.
5952 * sparc64nbsd-tdep.c: Likewise.
5953 * sparc64obsd-tdep.c: Likewise.
5954 * v850-tdep.c: Likewise.
5955 * vaxobsd-tdep.c: Likewise.
5956 * vax-tdep.c: Likewise.
5957 * xstormy16-tdep.c: Likewise.
5958
e111d6c9
VP
59592008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5960
5961 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5962 (captured_mi_execute_command_args): Remove.
5963 (captured_mi_execute_command): Cast the closure to mi_parse
5964 pointer, not to captured_mi_execute_command_args, and don't
5965 set the action field thereof.
5966 (mi_execute_command): Pass struct mi_parse, not
5967 captured_mi_execute_command_args to captured_mi_execute_command.
5968 (mi_execute_command): Remove (dead) code for suppressing
5969 printing prompt.
5970
84e46146
PA
59712008-06-28 Pedro Alves <pedro@codesourcery.com>
5972
5973 * linux-nat.c (enum sigchld_state): New.
5974 (linux_nat_async_events_state): Renamed from
5975 linux_nat_async_events_enabled.
5976 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5977 (sigchld_default_action): New.
5978 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5979 unconditionally.
5980 (linux_nat_create_inferior): Set events state to sigchld_default
5981 state.
5982 (linux_nat_resume): Adjust.
5983 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5984 (sigchld_handler): Adjust.
5985 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5986 (get_pending_events): Adjust.
5987 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5988 instead of a boolean.
5989 (linux_nat_async): Adjust.
5990 (_initialize_linux_nat): Capture default SIGCHLD action into
5991 sigchld_default_action.
5992
20874c92
VP
59932008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5994
680b56ce
AS
5995 * breakpoint.c (moribund_locations): New.
5996 (bpstat_stop_status): Process moribund locations.
5997 (update_global_location_list): Add removed
5998 locations to moribund_locations.
5999 (breakpoint_retire_moribund): New.
6000 * breakpoint.h (struct bp_location): New field
6001 events_till_retirement.
6002 (breakpoint_retire_moribund): Declare.
6003 * thread.c (thread_count): New.
6004 * infrun.c (handle_inferior_event): Call
6005 breakpoint_retire_moribund.
6006 * gdbthread.h (thread_count): Declare.
20874c92 6007
cd0b43b1
JM
60082008-06-27 Joseph Myers <joseph@codesourcery.com>
6009
6010 * dfp.c (decimal_convert): Call match_endianness before and after
6011 conversion.
6012
7c0f6dcc
JL
60132008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6014
6015 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6016 unsupported and we fall back to memory_insert_breakpoint, we
6017 use the unmodified requested address.
6018
01c66ae6
JB
60192008-06-27 Joel Brobecker <brobecker@adacore.com>
6020
6021 * dwarf2read.c (read_attribute_value): Issue a complaint when
6022 adjusting size attribute values of 0xffffffff as zero.
6023
7ccc1c74
JM
60242008-06-27 Joseph Myers <joseph@codesourcery.com>
6025
6026 * i386-tdep.c (i386_16_byte_align_p): New.
6027 (i386_push_dummy_call): Determine stack space required for
6028 arguments going forwards allowing for 16-byte alignment, then push
6029 arguments going forwards.
6030
c0a2216e
PA
60312008-06-27 Pedro Alves <pedro@codesourcery.com>
6032
6033 * infrun.c (start_remote): Don't clear thread list here.
6034 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6035 list here.
6036 * remote.c (record_currthread): Upgrade the main thread and its
6037 entry in the thread list if this is the first time we hear about
6038 threads.
6039 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6040 a tid member always alive.
6041 (remote_find_new_threads): Don't update the main thread here.
6042 (remote_start_remote): Clear thread list here. Always add the
6043 main thread.
6044 (extended_remote_attach_1): Add the main thread here.
6045 (extended_remote_mourn_1): Re-add the main thread here.
6046 (extended_remote_create_inferior_1): Add a main thread.
6047
6048 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6049
87b0e16e 60502008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6051
6052 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6053
6054 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6055 globals.
6056 (general_thread, continue_thread): Change type to ptid_t.
6057 (record_currthread): Take a ptid_t parameter instead of an
6058 integer.
6059 (MAGIC_NULL_PID): Delete.
6060 (set_thread): Take a ptid_t parameter and adjust.
6061 (set_general_thread, set_continue_thread): New.
6062 (remote_thread_alive, remote_newthread_step)
6063 (remote_current_thread, remote_find_new_threads)
6064 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6065 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6066 (threadalive_test, remote_pid_to_str)
6067 (remote_get_thread_local_address): Adjust.
6068 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6069 and any_thread_ptid.
6070
3ca64bd3
JK
60712008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6072
6073 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6074 * configure: Regenerated.
6075
28e94949
JB
60762008-06-26 Joel Brobecker <brobecker@adacore.com>
6077
6078 * dwarf2read.c (read_attribute_value): Treat size attribute
6079 values of 0xffffffff as if the attribute value was zero.
6080
8a77dff3
VP
60812008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6082
6083 * linux-nat.c: Add description of overall logic.
6084
d5af19ba
DJ
60852008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6086
6087 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6088 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6089 all dependencies on $(gdb_stdint_h).
6090 (distclean): Do not delete gdb_stdint.h.
6091 * acinclude.m4: Do not use stdint.m4.
6092 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6093 uintptr_t, and gdb_stdint.h.
6094 * defs.h: Include <stdint.h>.
6095 * gdb_thread_db.h: Assume stdint.h is already included.
6096 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6097 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6098 include gdb_stdint.h.
6099 * configure, config.in: Regenerate.
6100
00fbcec4
JM
61012008-06-26 Joseph Myers <joseph@codesourcery.com>
6102
6103 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6104 decimal floating-point values in GPRs for soft-float.
6105 (do_ppc_sysv_return_value): Handle returning decimal
6106 floating-point values in GPRs for soft-float.
6107
d5086790
VP
61082008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6109
6110 * target.c (target_read_until_error): New.
680b56ce
AS
6111 * target.h (target_read_until_error): Declare.
6112 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6113 target_read_until_error.
d5086790 6114
fe9441f6
JK
61152008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6116
6117 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6118 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6119 after the DECFLOAT detection to fix a memory leak. Remove the
6120 redundant NUM initialization. Protect the DECFLOAT detection memory
6121 access before the P block. Restore the P memory content for the
6122 DECFLOAT detection.
6123
ce8f13f8
VP
61242008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6125
6126 Kill the return value for all MI command functions.
6127 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6128 (mi_cmd_argv_ftype): Change return type to void.
6129
6130 * mi/mi-main.c: Adjust all function that implement
6131 MI commands to return nothing.
6132 (struct captured_mi_execute_command_actions):
6133 Remove the rc field.
6134 (mi_cmd_execute): Return nothing.
6135 (mi_execute_async_cli_command): Return nothing.
6136 (mi_cmd_exec_interrupt): Don't print ^done here.
6137 (mi_cmd_target_select): Don't print ^connected here.
6138 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6139 Special-case -target-select and output ^connected, not ^done.
6140
6141 * mi/mi-cmd-break.c: Adjust.
6142 * mi/mi-cmd-disas.c: Adjust.
6143 * mi/mi-cmd-env.c: Adjust.
6144 * mi/mi-cmd-file.c: Adjust.
6145 * mi/mi-cmd-stack.c: Adjust.
6146 * mi/mi-cmd-target.c: Adjust.
6147 * mi/mi-cmd-var.c: Adjust.
6148 * mi/mi-interp.c: Adjust.
6149 * mi/mi-symbol-cmds.c: Adjust.
6150
a2840c35
VP
61512008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6152
6153 Emit ^running via observer.
6154 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6155 ^running here.
6156 (mi_on_resume): Print ^running if not previously output.
6157 * mi/mi-main.c (running_result_record_printed): New.
6158 (captured_mi_execute_command): Reset
6159 running_result_record_printed. Use running_result_record_printed
6160 to decide if we should skip ^done.
6161 (mi_execute_async_cli_command): Don't print ^running here.
6162 * mi/mi-main.h (current_token, running_result_record_printed):
6163 Declare.
a2840c35 6164
1f41b062
MS
61652008-06-24 Michael Snyder <msnyder@specifix.com>
6166
6167 * infrun.c (_initialize_infrun): White space and typo fix.
6168
eff8332b
CF
61692008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6170
6171 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6172 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6173 when first loading DLL with "dll" command.
6174
e50ce6de 61752008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6176
6177 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6178
e50ce6de 61792008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6180
6181 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6182
59ddf1e7
JB
61832008-06-18 Joel Brobecker <brobecker@adacore.com>
6184
680b56ce
AS
6185 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6186 the target cannot run.
59ddf1e7
JB
6187
61882008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6189
6190 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6191 we're attaching to a running process.
6192
e50ce6de 61932008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6194
6195 * win32-nat.c (handle_load_dll): Give dll name and load address
6196 if debug_events is on.
6197 (handle_unload_dll): Likewise.
6198
8f6a8e84
VP
61992008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6200
6201 Don't suppress *running when doing finish.
680b56ce
AS
6202 * infcall.c (call_function_by_hand): Set both
6203 suppress_resume_observer and suppress_stop_observer.
6204 * infcmd.c (suppress_run_stop_observers): Split into...
6205 (suppress_resume_observer, suppress_stop_observer): ...those.
6206 (finish_command_continuation): Clear suppress_stop_observer.
6207 (finish_command): Set suppress_stop_observer.
6208 * inferior.h (suppress_run_stop_observers): Split into...
6209 (suppress_resume_observer, suppress_stop_observer): ...those.
6210 * infrun.c (normal_stop): Check for suppress_stop_observer.
6211 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6212
4309257c
PM
62132008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6214 Pierre Muller <muller@ics.u-strasbg.fr>
6215
6216 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6217 * gdbarch.h, gdbarch.c: Regenerate.
6218 * i386-tdep.h (i386_skip_main_prologue): Declare.
6219 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6220 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6221 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6222 * symtab.c (find_function_start_sal): When pc points at the "main"
6223 function, call gdbarch_skip_main_prologue.
6224
a4e2ee12
DJ
62252008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6226
6227 * value.c (value_primitive_field): Fetch lazy register values.
6228
060871df
PA
62292008-06-11 Pedro Alves <pedro@codesourcery.com>
6230
6231 * NEWS: Mention support removal of undocumented S AA p PID stop
6232 reply packet.
6233
6234 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6235
336de56d
SS
62362008-06-10 Stan Shebs <stan@codesourcery.com>
6237
6238 * MAINTAINERS: Update my affiliation and address.
6239
7949220d
AS
62402008-06-10 Andreas Schwab <schwab@suse.de>
6241
6242 * top.c (print_gdb_version): Don't print final newline.
6243
e1ac3328
VP
62442008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6245
6246 Implement *running.
680b56ce
AS
6247 * Makefile.in: Update dependencies.
6248 * gdbthread.h (struct thread_info): New field
6249 running_.
6250 (set_running, is_running): New.
6251 * thread.c (set_running, is_running): New.
6252 * inferior.h (suppress_normal_stop_observer): Rename to...
6253 (suppress_run_stop_observers): ..this.
6254 * infcmd.c (suppress_normal_stop_observer): Rename to...
6255 (suppress_run_stop_observers): ..this.
6256 (finish_command_continuation, finish_command): Adjust.
6257 * infcall.c (call_function_by_hand): Adjust.
6258 * infrun.c (normal_stop): Call set_running.
6259 * target.c (target_resume): New. Call set_running.
6260 * target.h (target_resume): Convert from macro to
6261 a function.
6262
6263 * mi/mi-interp.c (mi_on_resume): New.
6264 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6265
f7f9a841
VP
62662008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6267
6268 Use observers to report stop events in MI.
680b56ce
AS
6269 * mi/mi-interp.c (mi_on_normal_stop): New.
6270 (mi_interpreter_init): Register mi_on_normal_stop.
6271 (mi_interpreter_exec_continuation): Remove.
6272 (mi_cmd_interpreter_exec): Don't register the above.
6273 * mi/mi-main.c (captured_mi_execute_command): Don't care
6274 about sync_execution.
6275 (mi_execute_async_cli_command): Don't install continuation. Don't
6276 print *stopped.
6277 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6278
f5871ec0
VP
62792008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6280
6281 Suppress normal stop observer when it's problematic.
680b56ce
AS
6282 * inferior.h (suppress_normal_stop_observer): New.
6283 * infcall.c (call_function_by_hand): Disable stop events when
6284 doing function calls.
6285 * infmcd.c (suppress_normal_stop_observer): New.
6286 (finish_command_continuation): Call normal_stop observer
6287 explicitly.
6288 (finish_command): Disable stop events inside proceed.
6289 * infrun.c (normal_stop): Don't call normal stop observer if
6290 suppressed of if multi-step is in progress.
f5871ec0 6291
3d3191a6
VP
62922008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6293
6294 Remove stale code.
680b56ce
AS
6295 * infrun.c (finish_command): Don't pass cleanup
6296 to continuation.
6297 (finish_command_continuation): Don't grab cleanup from
6298 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6299
0b080f59
VP
63002008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6301
6302 Introduce common cleanup for restoring integers.
680b56ce
AS
6303 * defs.h (make_cleanup_restore_integer): New declaration.
6304 (struct cleanup): New field free_arg.
6305 (make_my_cleanup_2): New.
6306 * utils.c (restore_integer_closure, restore_integer)
6307 (make_cleanup_restore_integer): New.
6308 (make_my_cleanup): Initialize the free_arg field and
6309 renamed to make_my_cleanup_2.
6310 (do_my_cleanups): Call free_arg.
6311 (discard_cleanups): Call free_arg.
6312 * breakpoint.c (restore_always_inserted_mode): Remove.
6313 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6314
b4f62b57
DE
63152008-06-09 Doug Evans <dje@google.com>
6316
6317 * remote.c (remote_wait): Include beginning of malformed packet
6318 in error output.
6319
37cd5d19
TT
63202008-06-09 Tom Tromey <tromey@redhat.com>
6321
6322 * completer.c (complete_line): Don't special-case
6323 expression_completer.
6324 (expression_completer): Only pass last word to
6325 location_completer.
6326 * c-exp.y (yylex): Check 'token', not 'operator'.
6327
3526781e
DJ
63282008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6329
6330 * configure.ac (build_warnings): Add -Wno-format for mingw.
6331 * configure: Regenerated.
6332
d001be7a
DJ
63332008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6334
6335 * NEWS: Make indentation consistent. Move exec tracing entry out
6336 of remote packet list.
6337
65d12d83
TT
63382008-06-06 Tom Tromey <tromey@redhat.com>
6339
6340 * value.h (evaluate_subexpression_type, extract_field_op):
6341 Declare.
6342 * printcmd.c (_initialize_printcmd): Use expression_completer for
6343 'p', 'inspect', 'call'.
6344 * parser-defs.h (parse_field_expression): Declare.
6345 * parse.c: Include exceptions.h.
6346 (in_parse_field, expout_last_struct): New globals.
6347 (mark_struct_expression): New function.
6348 (prefixify_expression): Return int.
6349 (prefixify_subexp): Return int. Use expout_last_struct.
6350 (parse_exp_1): Update.
6351 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6352 in_parse_field.
6353 (parse_field_expression): New function.
6354 * expression.h (parse_field_expression): Declare.
6355 (in_parse_field): Likewise.
6356 * eval.c (evaluate_subexpression_type): New function.
6357 (extract_field_op): Likewise.
6358 * completer.h (expression_completer): Declare.
6359 * completer.c (expression_completer): New function.
6360 (count_struct_fields, add_struct_fields): New functions.
6361 * c-exp.y (yyparse): Redefine.
6362 (COMPLETE): New token.
6363 (exp): New productions.
6364 (saw_name_at_eof, last_was_structop): New globals.
6365 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6366 (c_parse): New function.
6367 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6368 for watch, awatch, and rwatch.
6369 * Makefile.in (parse.o): Depend on exceptions_h.
6370
fed27633
PP
63712008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6372
6373 PR gdb/1147
6374 * gdb/valopts.c (find_overload_match): Handle references
6375 to pointers.
6376
aced2898
PH
63772008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6378
6379 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6380 account the bitsize of the 'from' operand.
6381
a2b87ed1
PA
63822008-06-06 Pedro Alves <pedro@codesourcery.com>
6383
6384 * annotate.h (annotate_thread_changed): Declare.
6385
3d6d0b9d
NR
63862008-06-06 Nick Roberts <nickrob@snap.net.nz>
6387
6388 * annotate.c (annotate_thread_changed): New function.
6389 * thread.c (thread_command) : Use it.
6390 * infrun.c (normal_stop): Use it.
6391
c16158bc 63922008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6393 Nathan Sidwell <nathan@codesourcery.com>
6394 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6395
6396 * acinclude.m4: Include ../config/acx.m4.
6397 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6398 * configure, config.in: Regenerate.
6399 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6400 address.
6401 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6402
75c99385
PA
64032008-06-05 Pedro Alves <pedro@codesourcery.com>
6404
6405 Replace 'target async' by 'maintenance set remote-async' and
6406 'target remote' combination.
6407
6408 * remote.c (remote_async_wait): Merge into remote_wait, and
6409 remove.
6410 (remote_async_permitted, remote_async_permitted_set): New
6411 variables.
6412 (set_maintenance_remote_async_permitted)
6413 (show_maintenance_remote_async_permitted): New functions.
6414 (remote_async_ops, extended_async_remote_ops): Delete.
6415 (remote_async_open, extended_remote_async_open): Delete.
6416 (remote_open_1): Drop async_p parameter. Update callers. Replace
6417 async_p with remote_async_permitted checks.
6418 (extended_async_remote_attach): Delete.
6419 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6420 (remote_async_terminal_inferior): Rename to...
6421 (remote_terminal_inferior): ... this, and add
6422 remote_async_termitted check.
6423 (remote_async_terminal_ours): Rename to...
6424 (remote_terminal_ours): ... this, and add remote_async_termitted
6425 check.
6426 (remote_wait, remote_async_wait): Merge and leave remote_wait
6427 only.
6428 (remote_kill, remote_async_kill): Merge and leave remote_kill
6429 only.
6430 (remote_async_mourn, extended_async_remote_mourn): Delete.
6431 (extended_remote_create_inferior_1): Drop async_p parameter.
6432 Update callers. Always use extended_remote_ops.
6433 (extended_remote_async_create_inferior): Delete.
6434 (remote_return_zero): Delete.
6435 (init_remote_ops): Register remote_can_async_p, remote_async,
6436 remote_async_mask, remote_terminal_inferior and
6437 remote_terminal_ours.
6438 (remote_can_async_p, remote_is_async_p): Check for
6439 remote_async_permitted.
6440 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6441 (set_remote_cmd): Don't add async and extended-async targets.
6442 (_initialize_remote): Add set/show remote-async maintenance
6443 commands.
6444
cf30943b
PA
64452008-06-05 Pedro Alves <pedro@codesourcery.com>
6446
6447 * remote.c (kill_kludge): Delete.
6448 (remote_wait, remote_async_wait): Don't set it.
6449 (remote_kill, remote_async_kill): Don't do anything with it.
6450
49fd4a42
PA
64512008-06-05 Pedro Alves <pedro@codesourcery.com>
6452
6453 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6454
2e618c13
AR
64552008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6456
6457 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6458 (deprecated_bcache_added): New function name. Body of function
6459 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6460 * bcache.h (deprecated_bcache_added): New function.
6461 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6462 work from add_psymbol_to_list - initialises partial symbol and stashes
6463 it in objfile's cache.
680b56ce 6464 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6465 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6466 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6467 here. If adding to global list, do not duplicate partial symbols in the
6468 partial symtab.
6469
c0b37c48
AR
64702008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6471
6472 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6473 'exception caught|thrown' message.
6474
1e3a102a
JK
64752008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6476
6477 * Makefile.in: Update dependencies.
6478 * dwarf2expr.c: New include "gdb_assert.h".
6479 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6480 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6481 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6482 Increase/decrease RECURSION_DEPTH around the function.
6483
8d385431
DJ
64842008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6485
6486 * remote.c (get_offsets): Handle a single segment.
6487 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6488 than segments.
6489
93a57060
DJ
64902008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6491
6492 * solib-svr4.c (struct lm_info): Add lm_addr.
6493 (main_lm_addr): New.
6494 (svr4_default_sos): Set lm_addr.
6495 (svr4_current_sos): Set lm_addr and main_lm_addr.
6496 (svr4_fetch_objfile_link_map): Rewrite.
6497 (svr4_clear_solib): Clear main_lm_addr.
6498
609ba780 64992008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6500 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6501
6502 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6503 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6504
c95f5026
JB
65052008-06-02 Roman Zippel <zippel@linux-m68k.org>
6506
6507 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6508
e4d8bc08
JB
65092008-06-02 Roman Zippel <zippel@linux-m68k.org>
6510
6511 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6512
40adab56
JB
65132008-06-01 Joel Brobecker <brobecker@adacore.com>
6514
6515 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6516 treat pointers in data space as function descriptors if the
6517 target address is also in the data space.
6518
bfd66dd9
JB
65192008-05-30 Joel Brobecker <brobecker@adacore.com>
6520
6521 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6522 the trad-frame register value for the SP register.
6523
7ea566be
MK
65242008-05-29 Mark Kettenis <kettenis@gnu.org>
6525
6526 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6527
fcac911a
JB
65282008-05-28 Joel Brobecker <brobecker@adacore.com>
6529
6530 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6531 that identifies function descriptors outside of the .opd section.
6532
ade92717
AR
65332008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6534
6535 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6536 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6537 'bkptno'.
6538 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6539 catchpoints.
6540 (handle_gnu_v3_exceptions): Use tempflag.
6541
f7f9ae2c
VP
65422008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6543
6544 Refactor varobj_update interface.
680b56ce
AS
6545 * varobj.c (varobj_update): Report changes as vector. Also
6546 return not just a list of varobj, but a list of special structures
6547 that tell what exactly has changed.
6548 * varobj.h (enum varobj_update_error): Rename to
6549 varobj_scope_status.
6550 (struct varobj_update_result_t): New.
6551 (varobj_update): Adjust prototype.
6552 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6553
ea56f9c2
VP
65542008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6555
6556 * varobj.c (varobj_update): Fix comment typo.
6557 Fix indentation.
6558
c7efd0b9
JB
65592008-05-26 Joel Brobecker <brobecker@adacore.com>
6560
6561 Set the symtab field of symbols read from ECOFF debugging entries.
6562 * mdebugread.c (add_symbol): Add new parameter symtab.
6563 (parse_symbol): Update calls to add_symbol throughout.
6564
2a2d4dc3
AS
65652008-05-27 Andreas Schwab <schwab@suse.de>
6566
6567 * symtab.h (enum address_class): Remove LOC_REGPARM and
6568 LOC_COMPUTED_ARG.
6569 (struct symbol): Add is_argument.
6570 (SYMBOL_IS_ARGUMENT): Define.
6571
6572 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6573 * buildsym.c (finish_block): Likewise.
6574 * stack.c (print_frame_args, print_block_frame_locals)
6575 (print_frame_arg_vars): Likewise.
6576 * symtab.c (lookup_block_symbol): Likewise.
6577 * tracepoint.c (add_local_symbols): Likewise.
6578 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6579
6580 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6581 * dwarf2read.c (new_symbol): Likewise.
6582 * mdebugread.c (parse_symbol): Likewise.
6583 * stabsread.c (define_symbol): Likewise.
6584
6585 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6586 and LOC_COMPUTED_ARG.
6587 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6588 * ax-gdb.c (gen_var_ref): Likewise.
6589 * eval.c (evaluate_subexp_for_address): Likewise.
6590 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6591 * m2-exp.y (yylex): Likewise.
6592 * printcmd.c (address_info): Likewise.
6593 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6594 * tracepoint.c (collect_symbol, scope_info): Likewise.
6595
17ea7499
CES
65962008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6597
6598 * gdbarch.sh: Added new gdbarch struct
6599 core_regset_sections.
6600 * gdbarch.c: Refreshed.
6601 * gdbarch.h: Refreshed.
6602 * regset.h (core_regset_section): Declared.
6603 * linux-nat.c (linux_nat_do_thread_registers): Added
6604 support for the new gdbarch struct core_regset_sections.
6605 * utils.c (host_address_to_string): New function.
6606 * defs.h (host_address_to_string): New prototype.
6607 * i386-linux-tdep.c (i386_regset_rections): New register
6608 sections list for i386.
6609 (i386_linux_init_abi): Initialized new gdbarch struct
6610 core_regset_sections.
6611 * Makefile.in: Updated to reflect dependency changes.
6612 * ppc-linux-tdep.c (ppc_regset_sections): Register
6613 sections list for ppc.
6614 (ppc_linux_init_abi): Initialized new gdbarch struct
6615 core_regset_sections
6616
c4fc331b
AS
66172008-05-24 Andreas Schwab <schwab@suse.de>
6618
6619 * linespec.c (decode_objc): Save current language around call to
6620 get_selected_block.
6621
e936309c
JB
66222008-05-23 Joel Brobecker <brobecker@adacore.com>
6623
6624 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6625 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6626 Return the proper bound value if the array index type is an
6627 enumerated type. Compute the high bound if requested.
6628 (val_print_array_elements): Handle the case when the array
6629 element has a null size.
6630 * ada-valprint.c (print_optional_low_bound): Add handling
6631 for empty arrays or arrays of zero-size elements.
6632 (ada_val_print_array): New function, extracted out from
6633 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6634 handle empty arrays and arrays of zero-size elements.
6635 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6636 code by call to ada_val_print_array.
6637 (ada_value_print): Remove handling of null array. The handling
6638 was incomplete and is now better handled by ada_val_print_array.
6639
50ee7535
MD
66402008-05-23 Markus Deuling <deuling@de.ibm.com>
6641
6642 * annotate.c (annotate_source, annotate_frame_begin): Replace
6643 deprecated_print_address_numeric with paddress.
6644 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6645 * tui/tui-stack.c (tui_make_status_line): Likewise.
6646
6647 * defs.h (deprecated_print_address_numeric): Remove.
6648 * printcmd.c (deprecated_print_address_numeric): Remove.
6649 * maint.c (maint_print_section_info): Fix comment.
6650
d44e8473
MD
66512008-05-23 Markus Deuling <deuling@de.ibm.com>
6652
6653 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6654 print_binary_chars, print_char_chars): Add byte_order parameter and
6655 replace gdbarch_byte_order.
6656 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6657 expressions and remove them. Remove unused TWO_TO_FOURTH.
6658 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6659 endianness. Update call to print_hex_chars.
6660 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6661 print_binary_chars, print_char_chars): Add byte_order parameter.
6662 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6663 get at the endianness. Update print_*_char calls to use byte_order.
6664
10f4ecb8
UW
66652008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6668 instead of a union.
6669 (SYMBOL_LOCATION_BATON): Update.
6670
c3b22bd0
UW
66712008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6672
6673 * symtab.h (enum address_class): Remove LOC_BASEREG and
6674 LOC_BASEREG_ARG.
6675 (struct symbol): Remove "basereg" member of "aux_value" union.
6676 (SYMBOL_BASEREG): Remove.
6677
6678 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6679 or LOC_BASEREG_ARG.
6680 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6681 (ada_add_block_symbols): Likewise.
6682 * ax-gdb.c (gen_var_ref): Likewise.
6683 * buildsym.c (finish_block): Likewise.
6684 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6685 * m2-exp.y (yylex): Likewise.
6686 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6687 * printcmd.c (address_info): Likewise.
6688 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6689 (print_frame_arg_vars): Likewise.
6690 * symmisc.c (print_symbol): Likewise.
6691 * symtab.c (lookup_block_symbol): Likewise.
6692 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6693 (scope_info): Likewise.
6694
aa59ba6b
UW
66952008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6696
6697 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6698
6699 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6700 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6701 (ada_add_block_symbols): Likewise.
6702 * ax-gdb.c (gen_var_ref): Likewise.
6703 * buildsyms.c (finish_block): Likewise.
6704 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6705 * m2-exp.y (yylex): Likewise.
6706 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6707 * printcmd.c (address_info): Likewise.
6708 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6709 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6710 * symtab.c (lookup_block_symbol): Likewise.
6711 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6712 (scope_info): Likewise.
6713
0bb4e8c4
UW
67142008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6715
6716 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6717 LOC_HP_THREAD_LOCAL_STATIC.
6718
6719 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6720 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6721 (read_var_value): Likewise.
6722 * buildsym.c (finish_block): Likewise.
6723 * objfiles.c (objfile_relocate): Likewise.
6724 * printcmd.c (address_info): Likewise.
6725 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6726 * tracepoint.c (scope_info): Likewise.
6727
9f61f19b
MG
67282008-05-21 Markus Deuling <deuling@de.ibm.com>
6729 Maxim Grigoriev <maxim2405@gmail.com>
6730
6731 * xtensa-tdep.c (xtensa_read_register): Remove.
6732 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6733 argument litbase to call0_frame_cache().
6734 (call0_track_op, call0_analyze_prologue)
6735 (call0_frame_cache): Use extra argument litbase.
6736
0e479716
JB
67372008-05-21 Joel Brobecker <brobecker@adacore.com>
6738
6739 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6740
214be669
UW
67412008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6742
6743 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6744
0cd9ab92
UW
67452008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6746
6747 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6748 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6749 struct trad_frame_saved_reg *.
6750 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6751 trad_frame_alloc_saved_regs. Update accesses. Record previous
6752 value of SP as being vfp.
6753 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6754 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6755
f52cb1b8
MD
67562008-05-21 Markus Deuling <deuling@de.ibm.com>
6757
6758 * score-tdep.c (score_print_insn): Get the current endianess from
6759 disassemble_info instead of gdbarch_byte_order.
6760
8fa75a5d
PA
67612008-05-21 Pedro Alves <pedro@codesourcery.com>
6762
6763 * frame.c (get_prev_frame_1): Build frame id before setting
6764 this_frame->prev_p, not after.
6765
e8e48118
NR
67662008-05-21 Nick Roberts <nickrob@snap.net.nz>
6767
6768 * annotate.c (annotate_new_thread): New function for new-thread
6769 annotation.
6770 * annotate.h: (annotate_new_thread): New extern.
6771 * thread.c (add_thread_with_info): Use it.
6772 * Makefile.in (thread.o): Add dependency on annotate.h.
6773
c57918b2
JB
67742008-05-20 Joel Brobecker <brobecker@adacore.com>
6775
6776 * win32-nat.c (win32_wait): Block the control-c event while
6777 waiting for a debug event.
6778
6c9353d3
PA
67792008-05-19 Pedro Alves <pedro@codesourcery.com>
6780
6781 * symtab.h (lookup_symbol_in_language): Update comment.
6782 * symtab.c (lookup_symbol_aux_block): Update comment.
6783 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6784
2570f2b7
UW
67852008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6786
6787 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6788 (lookup_symbol): Likewise.
6789 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6790 (lookup_symbol): Likewise.
6791 (search_symbols): Update.
6792
6793 * linespec.c (find_methods, collect_methods): Update.
6794 (add_matching_methods, add_constructors): Update.
6795 (decode_compound, decode_dollar, decode_variable): Update.
6796 (lookup_prefix_sym): Update.
6797
6798 (symbol_found): Remove SYM_SYMTAB parameter.
6799 Use SYMBOL_SYMTAB (sym) instead.
6800
6801 * gdbtypes.c (lookup_typename): Update.
6802 (lookup_struct, lookup_union, lookup_enum): Update.
6803 (lookup_template_type): Update.
6804 (check_typedef): Update.
6805 * language.c (lang_bool_type): Update.
6806 * mdebugread.c (parse_procedure): Update.
6807 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6808 * parse.c (write_dollar_variable): Update.
6809 * printcmd.c (address_info): Update.
6810 * source.c (select_source_symtab): Update.
6811 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6812 * valops.c (find_function_in_inferior): Update.
6813 (value_struct_elt_for_reference): Update.
6814 * value.c (value_static_field, value_fn_field): Update.
6815
6816 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6817 * arm-tdep.c (arm_skip_prologue): Update.
6818 * mt-tdep.c (mt_skip_prologue): Update.
6819 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6820
6821 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6822 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6823 (add_defn_to_vec): Likewise.
6824 (ada_add_block_symbols): Likewise.
6825 (lookup_cached_symbol, cache_symbol): Likewise.
6826 (standard_lookup): Update.
6827 (ada_lookup_symbol_list): Update.
6828
6829 * c-valprint.c (c_val_print): Update.
6830 * cp-support.c (cp_lookup_rtti_type): Update.
6831 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6832 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6833 * p-valprint.c (pascal_val_print): Update.
6834 * scm-lang.c (scm_lookup_name): Update.
6835
6836 * c-exp.y: Update.
6837 * f-exp.y: Update.
6838 * jv-exp.y: Update.
6839 * m2-exp.y: Update.
6840 * objc-exp.y: Update.
6841 * p-exp.y: Update.
6842
21b556f4
UW
68432008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6844
6845 * language.h (struct language_defn): Remove SYMTAB parameter from
6846 la_lookup_symbol_nonlocal callback function pointer.
6847
6848 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6849 (ada_lookup_encoded_symbol): Likewise.
6850 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6851 Always call fixup_symbol_section.
6852 (ada_lookup_symbol): Remove SYMTAB parameter.
6853 (ada_lookup_symbol_nonlocal): Likewise.
6854 * ada-exp.y (write_object_renaming): Update.
6855 (find_primitive_type): Likewise.
6856
6857 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6858 (cp_lookup_symbol_namespace): Likewise.
6859 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6860 (lookup_symbol_file): Likewise.
6861 (lookup_possible_namespace_symbol): Likewise.
6862 (cp_lookup_symbol_nonlocal): Likewise.
6863 (cp_lookup_symbol_namespace): Likewise.
6864 (cp_lookup_nested_type): Update.
6865
6866 * scm-valprint.c (scm_inferior_print): Update.
6867 * valops.c (value_maybe_namespace_elt): Update.
6868
6869 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6870 lookup_lib_global_symbol callback function pointer.
6871 (solib_global_lookup): Remove SYMTAB parameter.
6872 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6873 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6874
6875 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6876 (lookup_symbol_static): Likewise.
6877 (lookup_symbol_global): Likewise.
6878 (lookup_symbol_aux_block): Likewise.
6879 (lookup_global_symbol_from_objfile): Likewise.
6880 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6881 (lookup_symbol_aux_local): Likewise.
6882 (lookup_symbol_aux_block): Likewise.
6883 (lookup_symbol_aux_symtabs): Likewise.
6884 (lookup_symbol_aux_psymtabs): Likewise.
6885 (lookup_global_symbol_from_objfile): Likewise.
6886 (basic_lookup_symbol_nonlocal): Likewise.
6887 (lookup_symbol_static): Likewise.
6888 (lookup_symbol_global): Likewise.
6889
6890 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6891
39237dd1
PA
68922008-05-17 Pedro Alves <pedro@codesourcery.com>
6893
6894 * remote.c (init_extended_remote_ops): Fix typo.
6895
7c0d47a5
PA
68962008-05-16 Pedro Alves <pedro@codesourcery.com>
6897
6898 * NEWS: Mention new DICOS x86 target configuration.
6899
907fc202
UW
69002008-05-16 Pedro Alves <pedro@codesourcery.com>
6901 Ulrich Weigand <uweigand@de.ibm.com>
6902
6903 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6904 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6905
6906 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6907 use it instead of ginfo->value.address. Look up minimal symbol by
6908 address and name. Assume OBJFILE is non-NULL.
6909 (fixup_symbol_section): Ensure we always have an objfile to look
6910 into. Extract and pass to fixup_section the symbol's address that
6911 will match the minimal symbol's address.
6912 (fixup_psymbol_section): Likewise.
6913
6914 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6915 overlays and the addrmap returned the wrong section.
6916
6917 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6918 calling fixup_symbol_section.
6919
42848c96
UW
69202008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6921
6922 * minsyms.c: Include "target.h".
6923 (find_solib_trampoline_target): Handle minimal symbols pointing
6924 to function descriptors as well.
6925 * Makefile.in (minsyms.o): Update dependencies.
6926
6927 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6928 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6929 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6930 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6931 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6932 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6933 (ppc64_standard_linkage_target): Rename to ...
6934 (ppc64_standard_linkage1_target): ... this.
6935 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6936 (ppc64_skip_trampoline_code): Support three variants of standard
6937 linkage stubs. Call find_solib_trampoline_target to handle
6938 glink stubs.
6939
74d1f063
UW
69402008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6941
6942 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6943 ppc64_sysv_abi_adjust_breakpoint_address.
6944 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6945 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6946
8526f328
UW
69472008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6948
6949 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6950 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6951 of ppc_linux_skip_trampoline_code.
6952
ba2b1c56
DJ
69532008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6954
6955 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6956 * gdbarch.c, gdbarch.h: Regenerated.
6957 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6958 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6959 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6960
4fdebdd0
PA
69612008-05-15 Pedro Alves <pedro@codesourcery.com>
6962
6963 * linux-nat.c (trap_ptid): Delete.
6964 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6965 Adjust.
6966 * linux-thread-db.c (thread_db_wait): Adjust.
6967
bc882aa9
JB
69682008-05-15 Joel Brobecker <brobecker@adacore.com>
6969
6970 * linespec.c (decode_line_1): Fix a couple of comments.
6971
83b94be5
AM
69722008-05-15 Alan Modra <amodra@bigpond.net.au>
6973
6974 * dbxread.c: Formatting.
6975 (INTERNALIZE_SYMBOL): Init n_other.
6976 (set_namestring): Take pointer to nlist arg rather than struct
6977 copy. Update all callers.
6978
87669130
AS
69792008-05-15 Andreas Schwab <schwab@suse.de>
6980
6981 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6982 (dwarf2read.o): Add $(addrmap_h).
6983
00d5f93a
UW
69842008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6985
6986 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6987 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6988 to handle ppc32 PLT entries.
6989 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6990 only on ppc64.
6991
2eaf8d2a
DJ
69922008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6993
6994 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6995 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6996 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6997 (lookup_minimal_symbol_by_pc_section): Use
6998 lookup_minimal_symbol_by_pc_section_1.
6999 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7000
20c62566
JB
70012008-05-13 Joel Brobecker <brobecker@adacore.com>
7002
7003 * findcmd.c: Add #include "gdb_stdint.h".
7004 * Makefile.in (findcmd.o): Update dependencies.
7005
87a7da84
DM
70062008-05-11 David S. Miller <davem@davemloft.net>
7007
de0c3d9d
DM
7008 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7009 long double size override, Linux does use 128-bit now.
7010
e8467b5a
DM
7011 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7012 (sparc_linux_write_pc): New function.
7013 (sparc32_linux_init_abi): Register it.
7014 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7015 (sparc64_linux_write_pc): New function.
7016 (sparc64_linux_init_abi): Register it.
7017
87a7da84
DM
7018 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7019 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7020
8a4c2d24
UW
70212008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7022
7023 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7024 and info.tdep_info before calling gdbarch_init_osabi.
7025
003f3813
JB
70262008-05-09 Joel Brobecker <brobecker@adacore.com>
7027
7028 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7029 the type of the right hand side of the assignment to the type
7030 of the left hand side if the left hand side is a convenience
7031 variable.
7032
7ae0e2a2
UW
70332008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7034
7035 * NEWS: Mention gdbserver bi-arch capability.
7036
08388c79
DE
70372008-05-09 Doug Evans <dje@google.com>
7038
7039 New "find" command.
7040 * NEWS: Document find command and qSearch:memory packet.
7041 * Makefile.in (SFILES): Add findcmd.c.
7042 (COMMON_OBJS): Add findcmd.o.
7043 (findcmd.o): New rule.
7044 * findcmd.c: New file.
7045 * target.h (target_ops): New member to_search_memory.
7046 (simple_search_memory): Declare.
7047 (target_search_memory): Declare.
7048 * target.c (simple_search_memory): New fn.
7049 (target_search_memory): New fn.
7050 * remote.c (PACKET_qSearch_memory): New packet kind.
7051 (remote_search_memory): New fn.
7052 (init_remote_ops): Init to_search_memory.
7053 (init_extended_remote_ops): Ditto.
7054 (_initialize_remote): Add qSearch:memory packet config command.
7055
11c68c47
EZ
70562008-05-09 Eli Zaretskii <eliz@gnu.org>
7057
7058 * thread.c (_initialize_thread): Don't use commas and periods in
7059 first line of doc string of "set/show print thread-events".
7060
6834c9bb
JB
70612008-05-08 Joel Brobecker <brobecker@adacore.com>
7062
7063 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7064 Update for unwinder changes.
7065
86c31399
JB
70662008-05-08 Joel Brobecker <brobecker@adacore.com>
7067
7068 * frame.c (get_frame_base_address, get_frame_locals_address)
7069 (get_frame_args_address): Pass the correct frame when calling
7070 frame_base_find_by_frame.
7071
96ef3384
UW
70722008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7073
7074 * remote.c (extended_remote_attach_1): Call target_find_description.
7075
45280a52
DJ
70762008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7077
7078 * remote.c (extended_remote_create_inferior_1): Clean up
7079 before marking the target running.
7080
227e86ad
JB
70812008-05-08 Joel Brobecker <brobecker@adacore.com>
7082
7083 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7084 changes.
7085
236369e7
JB
70862008-05-07 Joel Brobecker <brobecker@adacore.com>
7087
7088 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7089 sparc64-sol2-tdep.c: Update for unwinder changes.
7090
de237128
DJ
70912008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7092
7093 * cp-support.c (mangled_name_to_comp): Initialize storage.
7094 (unqualified_name_from_comp): Likewise.
7095
4fff2411
JZ
70962008-05-07 Jie Zhang <jie.zhang@analog.com>
7097
7098 * remote.c (remote_insert_breakpoint): Call get_remote_state
7099 after gdbarch_breakpoint_from_pc is called.
7100 (remote_insert_hw_breakpoint): Likewise.
7101
d8ca156b
JB
71022008-05-06 Joel Brobecker <brobecker@adacore.com>
7103
7104 * valprint.c (val_print): Add new language parameter and use it
7105 instead of using the current_language. Update calls to val_print
7106 throughout.
7107 (common_val_print): Add new langauge parameter and pass it to
7108 val_print.
7109 * value.h (struct language_defn): Add opaque declaration.
7110 (val_print, common_val_print): Update declarations.
7111 * stack.c (print_frame_args): Update call to common_val_print
7112 using the appropriate language.
7113 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7114 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7115 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7116 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7117 #include "language.h" if necessary.
7118 Update calls to val_print and common_val_print.
7119 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7120 Update dependencies.
7121
b1e6fd19
JB
71222008-05-06 Joel Brobecker <brobecker@adacore.com>
7123
7124 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7125 pointing inside a non-executable section as function descriptors.
7126
02b19d84
PA
71272008-05-06 Pedro Alves <pedro@codesourcery.com>
7128
7129 * inf-loop.c (inferior_event_handler): Run all continuations and
7130 print any language change before running the breakpoint commands.
7131
15c1e57f
JB
71322008-05-06 Joel Brobecker <brobecker@adacore.com>
7133
7134 * frame-unwind.c (frame_unwind_got_bytes): New function.
7135 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7136 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7137 for unwinder changes.
7138
d14508fe
DE
71392008-05-05 Doug Evans <dje@google.com>
7140
7141 * NEWS: Mention new /m modifier for disassemble command.
7142 * cli/cli-cmds.c (print_disassembly): New function.
7143 (disassemble_current_function): New function
7144 (disassemble_command): Recognize /m modifier, print mixed
7145 source+assembly.
7146 (init_cli_cmds): Update disassemble help text.
7147
5142f611
MG
71482008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7149
7150 * xtensa-tdep.c: Update for unwinder changes.
7151
f36bf22c
AS
71522008-05-05 Andreas Schwab <schwab@suse.de>
7153
7154 Update m68k port for unwinder changes.
7155 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7156 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7157 (m68k_frame_unwind): Use default_frame_sniffer.
7158 (m68k_frame_sniffer): Remove.
7159 (m68k_frame_base_address): Expect this_frame.
7160 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7161 this_frame.
7162 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7163 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7164 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7165 parameter instead of pc value.
7166 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7167 Expect this_frame.
7168 (m68k_linux_sigtramp_frame_this_id)
7169 (m68k_linux_sigtramp_frame_prev_register)
7170 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7171 (m68k_linux_sigtramp_frame_unwind): Use
7172 m68k_linux_sigtramp_frame_sniffer.
7173 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7174
7175 * m68klinux-nat.c (store_register): Fix typo.
7176
b3dc826b
PA
71772008-05-05 Pedro Alves <pedro@codesourcery.com>
7178
7179 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7180 NULL dereferencing.
7181
6528a9ea
LM
71822008-05-05 Luis Machado <luisgpm@br.ibm.com>
7183
7184 * symfile.c (reread_symbols): Update objfile's entry point.
7185
5eeb2539
AR
71862008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7187 Joel Brobecker <brobecker@adacore.com>
1f906a60 7188
5eeb2539
AR
7189 * ada-lang.c: Update throughout to use symbol_matches_domain
7190 instead of matching the symbol domain explictly.
7191 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7192 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7193 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7194 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7195 symbol for the typedef. See lookup_block_symbol.
7196 * symtab.c (symbol_matches_domain): New function, takes care
7197 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7198 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7199 found psym domain matches the given domain.
7200 (lookup_block_symbol): Likewise.
7201
e2b7ddea
VP
72022008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7203
680b56ce
AS
7204 * top.c (command_line_handler_continuation): Remove.
7205 (execute_command): Do not install the above.
e2b7ddea 7206
fcfb8b02
VP
72072008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7208
7209 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7210 and catch all exceptions from it.
7211 * top.c (command_line_handler_continuation): Don't
7212 call bpstat_do_action here.
7213
f792889a
DJ
72142008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7215
7216 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7217 (struct die_info): Remove type.
7218 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7219 (read_structure_type, read_enumeration_type, read_array_type)
7220 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7221 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7222 (read_tag_string_type, read_subroutine_type, read_set_type)
7223 (read_unspecified_type): Delete prototypes. Remove check for
7224 already-loaded type. Return the new type.
7225 (set_die_type): Return the new type.
7226 (reset_die_and_siblings_types): Delete.
7227 (load_comp_unit, load_full_comp_unit): Set type_hash.
7228 (process_queue): Remove call to reset_die_and_siblings_types.
7229 (process_die): Do not read most types here. Use read_type_die
7230 for others.
7231 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7232 (quirk_gcc_member_function_pointer): Return the new type.
7233 (process_structure_scope, process_enumeration_scope): Use
7234 get_die_type and read the DIE's type.
7235 (read_full_die): Do not initialize die->type.
7236 (tag_type_to_type): Use read_type_die.
7237 (read_type_die): Check for already defined types. Return the
7238 type.
7239 (determine_prefix): Use get_die_type.
7240 (set_die_type): Return the type.
7241 (get_die_type): Take a CU argument. Check for no type_hash.
7242
e7030f15
DJ
72432008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7244
7245 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7246 locals.
7247
611c83ae
PA
72482008-05-04 Pedro Alves <pedro@codesourcery.com>
7249
7250 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7251 and bp_longjmp_resume breakpoints.
7252 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7253 meaningful.
7254 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7255 breakpoints. Create bp_longjmp breakpoints as momentary
7256 breakpoints.
7257 (enable_longjmp_breakpoint): Delete.
7258 (set_longjmp_breakpoint): New.
7259 (disable_longjmp_breakpoint): Delete.
7260 (delete_longjmp_breakpoint): New.
7261 (set_longjmp_resume_breakpoint): Delete.
7262 (set_momentary_breakpoint_at_pc): New.
7263 (breakpoint_re_set_one): Don't delete bp_longjmp and
7264 bp_longjmp_resume breakpoints.
7265 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7266 breakpoints.
7267
7268 * infrun.c (step_resume_breakpoint): Add comment.
7269 (struct execution_control_state): Delete handling_longjmp member.
7270 (init_execution_control_state). Don't clear handling_longjmp.
7271 (context_switch): Don't context switch handling_longjmp.
7272 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7273 create a bp_longjmp_resume breakpoint, and set it as current
7274 step_resume_breakpoint, then step over the longjmp breakpoint. If
7275 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7276 breakpoint, delete the longjmp-resume breakpoint, and stop
7277 stepping.
7278 (currently_stepping): Remove handling_longjmp from expression.
7279 (insert_step_resume_breakpoint_at_sal): Update comment.
7280 (insert_longjmp_resume_breakpoint): New.
7281
7282 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7283 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7284 declarations.
7285 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7286 (set_longjmp_resume_breakpoint): Delete declaration.
7287
7288 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7289 parameter.
7290 (load_infrun_state): Delete *handling_longjmp parameter.
7291 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7292 Update body.
7293 (load_infrun_state): Delete *handling_longjmp parameter. Update
7294 body.
7295
7296 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7297 (delete_longjmp_breakpoint_cleanup): New.
7298 (step_1): Call set_longjmp_breakpoint instead of
7299 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7300 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7301 (step_1_continuation): Pass thread id in the continuation args to
7302 step_once.
7303 (step_once): Add thread parameter. Pass thread id the the
7304 continuation.
7305
85cbf3d3
JK
73062008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7307
7308 Set CU BASE_ADDRESS already from partial DIEs.
7309 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7310 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7311 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7312 from these variables if it was still unset.
7313
ff013f42
JK
7314 * Makefile.in: Update dependencies.
7315 * dwarf2read.c: Include "addrmap.h"
7316 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7317 (dwarf2_ranges_read): New prototype.
7318 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7319 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7320 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7321 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7322 comment for it. Add the found ranges to RANGES_PST. New variable
7323 BASEADDR, initialize it the common way.
7324 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7325 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7326 HAS_RANGES_OFFSET for the later processing.
7327 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7328 * symtab.c: Include "addrmap.h"
7329 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7330 Move the psymtab locator into ...
7331 (find_pc_sect_psymtab_closer): ... a new function.
7332
a7f1256d
UW
73332008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7334
7335 * arch-utils.c (gdbarch_update_p): Use default values for
7336 info.abfd and info.target_desc if they are NULL.
7337 (gdbarch_from_bfd): Remove assertion.
7338 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7339 using the current target description.
7340 (gdbarch_info_fill): Do not use default values for info->abfd
7341 and info->target_desc.
7342
b2de52bb
JK
73432008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7344
7345 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7346
515630c5
UW
73472008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7348
7349 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7350 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7351
7352 * regcache.c (read_pc_pid): Remove, replace by ...
7353 (regcache_read_pc): ... this function.
7354 (write_pc_pid): Remove, replace by ...
7355 (regcache_write_pc): ... this function.
7356 (read_pc, write_pc): Update.
7357
7358 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7359 write_pc_pid by regcache_read_pc and regcache_write_pc.
7360 (displaced_step_fixup): Likewise.
7361 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7362 (prepare_to_proceed): Likewise.
7363 (proceed): Likewise.
7364 (adjust_pc_after_break): Likewise.
7365 (handle_inferior_event): Likewise.
7366
7367 * linux-nat.c (cancel_breakpoint): Likewise.
7368 * linux-thread-db.c (check_event): Likewise.
7369 * aix-thread.c (aix_thread_wait): Likewise.
7370 * tracepoint.c (trace_dump_command): Likewise.
7371
ebd3bcc1
JK
73722008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7373
7374 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7375 SYMBOL_LOCATION_BATON.
7376
c47ffbe3
VP
73772008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7378
f78bff48
VP
7379 * target.h (struct target_ops): New field to_auxv_parse.
7380 * auxv.c (default_auxv_parse): New, renamed from previous
7381 target_auxv_parse.
7382 (target_auxv_parse): Try to call target method. Fallback to
7383 default_auxv_parse if not found.
7384 * procfs.c (procfs_auxv_parse): New.
7385 (init_procfs_ops): On Solaris, in 64-bit mode, install
7386 procfs_auxv_parse.
c47ffbe3 7387
35076fa0
AN
73882008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7389
7390 * symfile.c (add_symbol_file_command): Use paddress rather than
7391 hex_string to print the address.
7392
5b197912
UW
73932008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7394
7395 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7396 return the null frame ID to terminate the backtrace.
7397
4a7622d1
UW
73982008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7399
7400 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7401 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7402 (SIG_FRAME_PC_OFFSET): Likewise.
7403 (SIG_FRAME_LR_OFFSET): Likewise.
7404 (SIG_FRAME_FP_OFFSET): Likewise.
7405 (rs6000_push_dummy_call): Likewise.
7406 (rs6000_return_value): Likewise.
7407 (rs6000_convert_from_func_ptr_addr): Likewise.
7408 (branch_dest, rs6000_software_single_step): Likewise.
7409 (deal_with_atomic_sequence): Rename to ...
7410 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7411 Do not call branch_dest; inline required parts of that function.
7412 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7413 with SYMBOL_LINKAGE_NAME.
7414 (struct reg, regsize): Delete.
7415 (read_memory_addr): Delete; inline into callers.
7416 (rs6000_skip_prologue): Move after skip_prologue.
7417 (skip_prologue): Remove prototype.
7418 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7419 initialization as if this variable were true. Do not install
7420 ppc64_sysv_abi_adjust_breakpoint_address.
7421
7422 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7423 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7424 and "breakpoint.h".
7425 (rs6000_find_toc_address_hook): Move here from rs6000-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. Replace
7433 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7434 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7435 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7436 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7437 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7438
7439 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7440 (AIX_TEXT_SEGMENT_BASE): New macro.
7441 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7442 by AIX_TEXT_SEGMENT_BASE.
7443
7444 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7445 (struct gdbarch_tdep): Remove text_segment_base member.
7446 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7447 ppc64_sysv_abi_adjust_breakpoint_address.
7448
7449 * Makefile.in (rs6000-tdep.o): Update dependencies.
7450 (rs6000-aix-tdep.o): Likewise.
7451
938f5214
TJB
74522008-05-03 Luis Machado <luisgpm@br.ibm.com>
7453 Thiago Jung Bauermann <bauerman@br.ibm.com>
7454
7455 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7456 * doublest.c (convert_typed_floating): Fix typo in comment.
7457 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7458 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7459 * frame.c (frame_unwind_address_in_block): Likewise.
7460 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7461 * symtab.h (struct symbol): Likewise.
7462 * tramp-frame.h (struct trad_frame_cache): Likewise.
7463 * value.c (allocate_repeat_value): Likewise.
7464
0b02b92d
UW
74652008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7466
7467 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7468 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7469
d705c43c
PA
74702008-05-03 Pedro Alves <pedro@codesourcery.com>
7471
7472 * parse.c (parse_exp_in_context): Don't override
7473 expression_context_pc if get_selected_block returned a valid
7474 block.
7475
d6350901
DJ
74762008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7477
7478 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7479 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7480 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7481 Delete.
7482 * c-typeprint.c (c_type_print_base): Delete handling of template
7483 instantiations.
7484 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7485 (METHOD_PTR_TO_VOFFSET): Delete.
7486 * defs.h (QUIT_FIXME): Delete.
7487 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7488 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7489 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7490 ninstantiations, and instantiations.
7491 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7492 (TYPE_FN_FIELD_INLINED): Delete.
7493 * srec.h (SREC_BINARY): Delete.
7494 * symtab.c (symbol_init_demangled_name): Delete.
7495 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7496 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7497 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7498 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7499 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7500 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7501 * target.h (enum thread_control_capabilities): Delete tc_switch.
7502 (target_can_switch_threads): Delete.
7503
30510692
DJ
75042008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7505
7506 * Makefile.in (objfiles.o): Update.
7507 * exec.c (exec_set_section_address): Support p->addr != 0.
7508 * objfiles.c (objfile_relocate): Update exec_ops section
7509 addresses.
7510 * symfile.c (place_section): Move exec_set_section_address call...
7511 (default_symfile_offsets): ...to here.
7512
7284e1be
UW
75132008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7514
7515 * Makefile.in (ppc_linux_tdep_h): New macro.
7516 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7517 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7518 (powerpc_e500l_c): Likewise.
7519 (ppc-linux-nat.o): Update dependencies.
7520 (ppc-linux-tdep.o): Update dependencies.
7521 (rs6000-tdep.o): Update dependencies.
7522
7523 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7524 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7525 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7526 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7527 (tdesc_powerpc_e500): Remove.
7528
7529 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7530 and "features/rs6000/powerpc-altivec64.c".
7531 (ppc_supply_reg, ppc_collect_reg): Make global.
7532 (variants): Use tdesc_powerpc_32 for "powerpc" and
7533 tdesc_powerpc_altivec64 for "powerpc64".
7534 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7535
7536 * ppc-linux-tdep.h: New file.
7537
7538 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7539 Include "features/rs6000/powerpc-32l.c".
7540 Include "features/rs6000/powerpc-altivec32l.c".
7541 Include "features/rs6000/powerpc-64l.c".
7542 Include "features/rs6000/powerpc-altivec64l.c".
7543 Include "features/rs6000/powerpc-e500l.c".
7544 (ppc_linux_supply_gregset): New function.
7545 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7546 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7547 (ppc64_linux_gregset): Likewise.
7548 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7549 (ppc_linux_trap_reg_p): New function.
7550 (ppc_linux_write_pc): New function.
7551 (ppc_linux_core_read_description): New function.
7552 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7553 ppc_linux_core_read_description. Install orig_r3 and trap
7554 registers if present in the target description.
7555 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7556
7557 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7558 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7559 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7560 (fetch_ppc_registers): Likewise.
7561 (store_ppc_registers): Likewise.
7562 (store_register): Likewise.
7563 (ppc_linux_read_description): Check whether AltiVec is supported.
7564 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7565 Linux target description.
7566
7567 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7568 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7569 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7570 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7571 rs6000/powerpc-e500. Update -expedite variables accordingly.
7572
7573 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7574 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7575 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7576 * features/rs6000/powerpc-e500.c: Regenerate.
7577 * features/rs6000/powerpc-32.c: Regenerate.
7578 * features/rs6000/powerpc-64.c: Regenerate.
7579
7580 * features/rs6000/power-linux.xml: New file.
7581 * features/rs6000/power64-linux.xml: New file.
7582 * features/rs6000/powerpc-32l.xml: New file.
7583 * features/rs6000/powerpc-altivec32l.xml: New file.
7584 * features/rs6000/powerpc-64l.xml: New file.
7585 * features/rs6000/powerpc-altivec64l.xml: New file.
7586 * features/rs6000/powerpc-e500l.xml: New file.
7587 * features/rs6000/powerpc-32l.c: New (generated) file.
7588 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7589 * features/rs6000/powerpc-64l.c: New (generated) file.
7590 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7591 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7592
7593 * regformats/reg-ppc.dat: Remove.
7594 * regformats/reg-ppc64.dat: Remove.
7595 * regformats/rs6000/powerpc-32.dat: Remove.
7596 * regformats/rs6000/powerpc-64.dat: Remove.
7597 * regformats/rs6000/powerpc-e500.dat: Remove.
7598 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7599 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7600 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7601 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7602 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7603
063bfe2e
VP
76042008-05-03 Pedro Alves <pedro@codesourcery.com>
7605
7606 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7607 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7608 thread_exit observer.
7609 (mi_thread_exit): New.
063bfe2e 7610
f132ba9d
TJB
76112008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7612
7613 * breakpoint.c (create_exception_catchpoint): Remove prototype
7614 for already deleted function.
7615 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7616 * frame.h (show_stack_frame): Remove prototype.
7617 * stack.c (show_stack_frame): Remove empty, unused function.
7618 * source.c (symtab_to_fullname, print_source_lines): Small fix
7619 in comment.
7620 * value.c (show_values): Update comments to mention "show values"
7621 command instead of "info history".
7622
bccdca4a
UW
76232008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7624
7625 * linespec.c: Include "target.h".
7626 (minsym_found): Handle minimal symbols pointing to function
7627 descriptors. Use find_function_start_pc.
7628 * minsyms.c (msymbol_objfile): New function.
7629 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7630 to function descriptors.
7631 * symtab.c (fixup_section): Only use minimal symbol at the same
7632 address to determine section of a symbol.
7633 (find_function_start_pc): New function.
7634 (find_function_start_sal): Use it.
7635 * symtab.h (msymbol_objfile): Add prototype.
7636 (find_function_start_pc): Likewise.
7637 * value.c: Include "objfiles.h".
7638 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7639 descriptors.
bccdca4a
UW
7640 * Makefile.in (linespec.o): Update dependencies.
7641 (value.o): Likewise.
7642
de4d072f
JB
76432008-05-02 Joel Brobecker <brobecker@adacore.com>
7644
7645 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7646 inside a PAD type is a bitfield.
7647
93d4208d
UW
76482008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7649
7650 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7651 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7652 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7653 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7654 Allow typedefs when checking for function pointer arguments.
7655 Right-align small structs passed on the stack.
7656 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7657 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7658 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7659
60c5725c
DJ
76602008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7661
7662 * Makefile.in (arm-tdep.o): Update.
7663 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7664 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7665 (arm_pc_is_thumb): Use mapping symbols.
7666 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7667 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7668 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7669 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7670 * gdbarch.sh: Add record_special_symbol.
7671 * gdbarch.c, gdbarch.h: Regenerated.
7672 * objfiles.c (struct objfile_data): Add cleanup member.
7673 (register_objfile_data_with_cleanup): New function, from
7674 register_objfile_data.
7675 (register_objfile_data): Use it.
7676 (objfile_free_data): Call clear_objfile_data.
7677 (clear_objfile_data): Call cleanup functions.
7678 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7679
574dffa2
DJ
76802008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7681
7682 * objfiles.c (init_entry_point_info): Handle shared libraries.
7683
2c404490
DJ
76842008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7685
7686 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7687 lowest_pc.
7688
237fc4c9
PA
76892008-05-02 Jim Blandy <jimb@codesourcery.com>
7690 Pedro Alves <pedro@codesourcery.com>
7691
7692 Implement displaced stepping.
7693
7694 * gdbarch.sh (max_insn_length): New 'variable'.
7695 (displaced_step_copy, displaced_step_fixup)
7696 (displaced_step_free_closure, displaced_step_location): New
7697 functions.
7698 (struct displaced_step_closure): Add forward declaration.
7699 * gdbarch.c, gdbarch.h: Regenerated.
7700
7701 * arch-utils.c: #include "objfiles.h".
7702 (simple_displaced_step_copy_insn)
7703 (simple_displaced_step_free_closure)
7704 (displaced_step_at_entry_point): New functions.
7705 * arch-utils.h (simple_displaced_step_copy_insn)
7706 (simple_displaced_step_free_closure)
7707 (displaced_step_at_entry_point): New prototypes.
7708
7709 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7710 (I386_MAX_MATCHED_INSN_LEN): ... this.
7711 (i386_absolute_jmp_p, i386_absolute_call_p)
7712 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7713 (i386_displaced_step_fixup): New functions.
7714 (struct i386_insn, i386_match_insn): Update.
7715 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7716 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7717 (i386_displaced_step_fixup): New prototype.
7718 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7719 Register gdbarch_displaced_step_copy,
7720 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7721 and gdbarch_displaced_step_location functions.
7722
7723 * infrun.c (debug_displaced): New variable.
7724 (show_debug_displaced): New function.
7725 (struct displaced_step_request): New struct.
7726 (displaced_step_request_queue, displaced_step_ptid)
7727 (displaced_step_gdbarch, displaced_step_closure)
7728 (displaced_step_original, displaced_step_copy)
7729 (displaced_step_saved_copy, can_use_displaced_stepping): New
7730 variables.
7731 (show_can_use_displaced_stepping, use_displaced_stepping)
7732 (displaced_step_clear, cleanup_displaced_step_closure)
7733 (displaced_step_dump_bytes, displaced_step_prepare)
7734 (displaced_step_clear_cleanup, write_memory_ptid)
7735 (displaced_step_fixup): New functions.
7736 (resume): Call displaced_step_prepare.
7737 (proceed): Call read_pc once, and remember the value. If using
7738 displaced stepping, don't remove breakpoints.
7739 (handle_inferior_event): Call displaced_step_fixup. Add some
7740 debugging output. When we try to step over a breakpoint, but get
7741 a signal to deliver to the thread instead, ensure the step-resume
7742 breakpoint is actually inserted. If a thread hop is needed, and
7743 displaced stepping is enabled, don't remove breakpoints.
7744 (init_wait_for_inferior): Call displaced_step_clear.
7745 (_initialize_infrun): Add "set debug displaced" command. Add
7746 "maint set can-use-displaced-stepping" command. Clear
7747 displaced_step_ptid.
7748 * inferior.h (debug_displaced): Declare variable.
7749 (displaced_step_dump_bytes): Declare function.
7750
7751 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7752 dependencies.
7753
0428b8f5
DJ
77542008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7755
7756 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7757 (arm_force_mode_string, arm_show_fallback_mode)
7758 (arm_show_force_mode): New.
7759 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7760 arm_frame_is_thumb.
7761 (_initialize_arm_tdep): Add "set arm fallback-mode"
7762 and "set arm force-mode".
7763 * NEWS: Document new commands.
7764
d01a8610
AS
77652008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7766
7767 * main.h (batch_silent): Declare.
7768 * event-top.c: Include main.h.
7769 (gdb_setup_readline): Remove extern batch_silent declaration.
7770 * infrun.c (normal_stop): Don't print source location when running in
7771 --batch-silent mode.
7772 * Makefile.in (event-top.o): Add main.h dependency.
7773
5009afc5
AS
77742008-05-02 Andreas Schwab <schwab@suse.de>
7775
7776 * target.h (struct target_ops): Add
7777 to_watchpoint_addr_within_range.
7778 (target_watchpoint_addr_within_range): New function.
7779 * target.c (update_current_target): Inherit
7780 to_watchpoint_addr_within_range, defaulting to
7781 default_watchpoint_addr_within_range.
7782 (default_watchpoint_addr_within_range): New function.
7783 (debug_to_watchpoint_addr_within_range): New function.
7784 (setup_target_debug): Set to_watchpoint_addr_within_range.
7785 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7786 New function.
7787 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7788 * breakpoint.c (watchpoints_triggered): Use
7789 target_watchpoint_addr_within_range.
7790
a15c5c83
PA
77912008-05-01 Pedro Alves <pedro@codesourcery.com>
7792
7793 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7794 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7795 Set gdb_osabi to GDB_OSABI_DICOS.
7796
7797 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7798 * osabi.c (gdb_osabi_name): Add "DICOS".
7799
7800 * i386-dicos-tdep.c: New file.
7801
7802 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7803 (ALLDEPFILES): Add i386-dicos-tdep.c.
7804 (i386-dicos-tdep.o): New rule.
7805
728c8f58
PA
78062008-05-01 Pedro Alves <pedro@codesourcery.com>
7807
7808 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7809 and register the fork's PTID as a thread.
7810
604133b5
AR
78112008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7812
7813 PR gdb/1665
7814 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7815 assign its value to the breakpoint created.
7816 (create_breakpoints): Add breakpoint_ops argument and pass it
7817 to create_breakpoint call.
7818 (break_command_really): Add breakpoint_ops argument and pass/assign
7819 appropriately.
7820 (break_command_1): Pass NULL as ops argument.
7821 (set_breakpoint): Pass NULL as ops argument.
7822 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7823 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7824 catch and throw catchpoints.
5009afc5 7825
1f906a60 78262008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
7827
7828 PR gdb/2343
7829 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7830 translate signal numeric value from the target to GDB's enum
7831 target_signal.
7832 * gdbarch.c, gdbarch.h: Regenerated.
7833 * gdbarch.sh: Added two new functions target_signal_from_host and
7834 target_signal_to_host.
680b56ce 7835 * target.h (default_target_signal_from_host,
1cded358
AR
7836 default_target_signal_to_host): New functions - declarations.
7837 * signals/signals.c (struct gdbarch): New declaration.
7838 (default_target_signal_to_host, default_target_signal_from_host): New
7839 functions.
7840
ed5e9466
DJ
78412008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7842 Pedro Alves <pedro@codesourcery.com>
7843
7844 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7845 Johnston <jjohnstn@redhat.com>.
7846
7847 * NEWS: Mention attach to stopped process fix.
7848 * infcmd.c (detach_command, disconnect_command): Discard the thread
7849 list.
7850 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7851 attaching. Use signal_stop_state.
7852 (signal_stop_state): Check stop_soon.
7853 * linux-nat.c (kill_lwp): Declare earlier.
7854 (pid_is_stopped, linux_nat_post_attach_wait): New.
7855 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7856 comments.
7857 (linux_nat_attach): Use linux_nat_post_attach_wait.
7858 (detach_callback, linux_nat_detach): Improve handling for signalled
7859 processes.
7860 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7861 from the process ID.
7862 * Makefile.in (infcmd.o): Update.
7863
b39cc962
DJ
78642008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7865
7866 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7867 * arm-tdep.c (arm_frame_is_thumb): New.
7868 (arm_pc_is_thumb): Clarify comment.
7869 (thumb_analyze_prologue): Remove PC special case.
7870 (thumb_scan_prologue): Take a block_addr argument. Use it for
7871 find_pc_partial_function. Remove unused variables.
7872 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7873 for find_pc_partial_function. Remove PC special case.
7874 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7875 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7876 (arm_get_next_pc): Use arm_frame_is_thumb.
7877 (arm_write_pc): Use CPSR_T instead of 0x20.
7878 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7879 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7880 (CPSR_T): Define.
7881 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7882 DWARF2_FRAME_REG_FN.
7883 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7884 DWARF2_FRAME_REG_FN.
7885 (struct dwarf2_frame_state_reg): Add FN to loc union.
7886
944f08ab
JB
78872008-05-01 Nick Roberts <nickrob@snap.net.nz>
7888
7889 * exec.c (print_section_info): Add missing '\n'.
7890
cfc01461
VP
78912008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7892
7893 * thread.c (add_thread): Move observer call to ...
680b56ce 7894 (add_thread_silent): ... here.
cfc01461 7895
1af5d7ce
UW
78962008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7897
7898 * rs6000-tdep.c: Update for unwinder changes.
7899 * ppcobsd-tdep.c: Likewise.
7900
f089c433
UW
79012008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7902
7903 * s390-tdep.c: Update for unwinder changes.
7904
8d998b8f
UW
79052008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7906
7907 * spu-tdep.c: Update for unwinder changes.
7908
5366653e
DJ
79092008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7910
7911 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7912 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7913 sparc64-linux-tdep.c: Update for unwinder changes.
7914
b8a22b94
DJ
79152008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7916
7917 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7918 for unwinder changes.
7919 * mips-tdep.c: Likewise.
7920 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7921 raw one.
7922
a262aec2
DJ
79232008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7924
7925 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7926 unwinder changes.
7927
10458914
DJ
79282008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7929
7930 Update i386 and amd64 ports for unwinder changes.
7931
7932 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7933 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7934 (amd64_frame_unwind): Use default_frame_sniffer.
7935 (amd64_frame_sniffer): Delete.
7936 (amd64_sigtramp_frame_cache): Expect this_frame.
7937 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7938 (amd64_sigtramp_frame_sniffer): Update signature.
7939 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7940 (amd64_frame_base_address): Expect this_frame.
7941 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7942 this_frame.
7943 (amd64_init_abi): Use set_gdbarch_dummy_id and
7944 frame_unwind_append_unwinder.
7945 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7946 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7947 (i386_frame_unwind): Use default_frame_sniffer.
7948 (i386_frame_sniffer): Delete.
7949 (i386_sigtramp_frame_cache): Expect this_frame.
7950 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7951 (i386_sigtramp_frame_sniffer): Update signature.
7952 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7953 (i386_frame_base_address): Update signature.
7954 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7955 (i386_push_dummy_call): Update comment.
7956 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7957 Expect this_frame.
7958 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7959 and frame_unwind_append_unwinder.
7960 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7961 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7962 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7963 i386nbsd-tdep.c: Update for unwinder changes.
7964
25492ce3
DJ
79652008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7966
7967 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7968 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7969 this_frame.
7970 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7971 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7972 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7973 signature.
7974 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7975 this_frame.
7976 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7977 Update signature.
7978 * tramp-frame.h (struct tramp_frame): Update signature of init.
7979 * Makefile.in (trad-frame.o): Update.
7980
4a4e5149
DJ
79812008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7982
7983 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7984 (execute_stack_op): Put this_frame in the baton.
7985 (execute_cfa_program): Take this_frame.
7986 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7987 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7988 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7989 (dwarf2_frame_this_id): Adjust to work on this_frame.
7990 (dwarf2_signal_frame_this_id): Delete.
7991 (dwarf2_frame_prev_register): Update signature. Use new frame
7992 unwind methods.
7993 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7994 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7995 dwarf2_frame_sniffer.
7996 (dwarf2_append_unwinders): New.
7997 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7998 this_frame.
7999 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8000 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8001 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8002 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8003 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8004 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8005 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8006 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8007 (dwarf2_append_unwinders): Declare.
8008 (dwarf2_frame_base_sniffer): Update declaration.
8009 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8010 this_frame.
8011
669fac23
DJ
80122008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8013
8014 Convert frame unwinders to use the current frame and
8015 "struct value".
8016
8017 * frame.c (frame_debug): Make global.
8018 (get_frame_id): Pass this frame to unwinder routines.
8019 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8020 (do_frame_register_read): Do not discard the return value of
8021 frame_register_read.
8022 (frame_register_unwind): Remove debug messages. Use
8023 frame_unwind_register_value.
8024 (frame_unwind_register_value, get_frame_register_value): New
8025 functions.
8026 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8027 (get_frame_args_address, get_frame_type): Pass this frame to
8028 unwinder routines.
8029 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8030 functions.
8031 * frame.h: Update comments.
8032 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8033 (frame_prepare_for_sniffer): Declare.
8034 * frame-unwind.h: Update comments and parameter names.
8035 (default_frame_sniffer): Declare.
8036 (frame_prev_register_ftype): Return a struct value *.
8037 (struct frame_unwind): Remove prev_pc member.
8038 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8039 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8040 (frame_unwind_got_register, frame_unwind_got_memory)
8041 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8042 * frame-base.h: Update comments and parameter names.
8043 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8044 if necessary. Add debugging output.
8045 * sentinel-frame.c (sentinel_frame_prev_register)
8046 (sentinel_frame_this_id): Update for new signature.
8047 (sentinel_frame_prev_pc): Delete.
8048 (sentinel_frame_unwinder): Remove prev_pc.
8049 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8050 prev_pc.
8051 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8052 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8053 (frame_unwind_append_sniffer): Delete.
8054 (frame_unwind_append_unwinder): New function.
8055 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8056 from unwinders. Use frame_prepare_for_sniffer.
8057 (default_frame_sniffer, frame_unwind_got_optimized)
8058 (frame_unwind_got_register, frame_unwind_got_memory)
8059 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8060 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8061 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8062 signature.
8063 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8064 * gdbarch.c, gdbarch.c: Regenerated.
8065 * frame-base.c (default_frame_base_address)
8066 (default_frame_locals_address, default_frame_args_address): Update
8067 for new signature.
8068 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8069 * infcall.c (call_function_by_hand): Update comments.
8070 * Makefile.in (frame-unwind.o): Update dependencies.
8071
9214ee5f
DJ
80722008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8073
8074 * ada-lang.c (ada_value_primitive_packed_val): Only check
8075 value_lazy for memory lvals.
8076 * findvar.c (value_of_register_lazy): New function.
8077 (locate_var_value): Only check value_lazy for memory lvals.
8078 * valarith.c (value_subscripted_rvalue): Likewise.
8079 * valops.c (value_fetch_lazy): Handle both memory and register
8080 lvals.
8081 (search_struct_field, value_slice): Only check value_lazy for memory
8082 lvals.
8083 * value.c (struct value): Update comment for lazy.
8084 (value_primitive_field): Only check value_lazy for memory lvals.
8085 * value.h (value_lazy): Update comment.
8086 (value_of_register_lazy): Declare.
8087
939643d7
DJ
80882008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8089
8090 * corefile.c (reopen_exec_file): Close any open files.
8091
1de34ab7
JB
80922008-04-29 Joel Brobecker <brobecker@adacore.com>
8093
8094 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8095 show_memory_breakpoints to 1 while reading the instruction bundle.
8096
ea42b34a
JB
80972008-04-29 Joel Brobecker <brobecker@adacore.com>
8098
8099 * gdbarch.sh: Document the return_value method. Explain that
8100 the FUNCTYPE parameter might be NULL.
8101 * gdbarch.h: Regenerated.
8102 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8103 type when calling using_struct_return, as this is unnecessary
8104 on this target.
8105
a0fe373c
JB
81062008-04-28 Joel Brobecker <brobecker@adacore.com>
8107
8108 * terminal.h (create_tty_session): Fix return type.
8109
c6446539
VP
81102008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8111
8112 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8113
2f069f6f
JB
81142008-04-26 Joel Brobecker <brobecker@adacore.com>
8115
8116 * breakpoint.c (condition_command, commands_from_control_command)
8117 (break_command_really): Minor reformatting.
8118
93b5768b
PA
81192008-04-25 Pedro Alves <pedro@codesourcery.com>
8120
8121 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8122
436675d3
PA
81232008-04-25 Pedro Alves <pedro@codesourcery.com>
8124
8125 * amd64-tdep.c (amd64_get_longjmp_target): New.
8126 (amd64_init_abi): Register amd64_get_longjmp_target as
8127 gdbarch_get_longjmp_target callback.
8128 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8129
78b6a731
PA
81302008-04-25 Pedro Alves <pedro@codesourcery.com>
8131
8132 * breakpoint.h (enum bpstat_what_main_action): Delete
8133 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8134
8135 * breakpoint.c (clrs): Delete.
8136 (bpstat_what): Update table.
8137
8138 * infrun.c (handle_inferior_event): Remove
8139 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8140
9e22b03a
VP
81412008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8142
8143 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8144 Adjust all prototypes using mi_cmd_args_ftype to use
8145 mi_cmd_argv_ftype.
8146 (struct mi_cmd): Remove the args_func field.
8147 * mi/mi-cmds.c: Don't provide value for the args_func field.
8148 * mi/mi-main.c (mi_execute_async_cli_command)
8149 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8150 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8151 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8152 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8153 (mi_cmd_target_download): Adjust.
8154 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8155 (mi_cmd_execute): Do not check for args_func.
8156 (mi_execute_async_cli_command): Adjust.
8157 * mi/mi-parse.c: Don't check for args_func.
8158
721c02de 81592008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8160
680b56ce
AS
8161 * breakpoint.c (bpstat_check_location)
8162 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8163 New, extracted from bpstat_stop_status.
8164 (bpstat_stop_status): Use the above.
18a18393
VP
8165
81662008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8167
680b56ce
AS
8168 * mi/mi-main.c (last_async_command): Rename to current_token.
8169 (previous_async_command): Remove.
8170 (mi_cmd_gdb_exit): Adjust.
8171 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8172 (mi_cmd_target_select): Adjust.
8173 (mi_cmd_execute): Don't set previous_async_command. Free token
8174 here even in async mode.
8175 (mi_execute_async_cli_command): Adjust.
8176 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8177 token.
8178 (mi_load_progress): Adjust.
721c02de 8179
f13468d9
VP
81802008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8181
680b56ce
AS
8182 * infcmd.c (step_1_continuation): Always disable longjmp
8183 breakpoint if we're not going to do another step.
f13468d9 8184
f107f563
VP
81852008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8186
8187 exec_cleanup murder.
8188 * breakpoint.c (until_break_command_continuation): Add
8189 the 'error' parameter. Directly delete the breakoint as
8190 opposed to running cleanups.
8191 (until_break_command): Install continuation only
8192 after starting the target. Don't use exec cleanups,
8193 use ordinary cleanups. Discard cleanups is successfully
8194 started the target in async mode.
8195 (make_cleanup_delete_breakpoint): Remove.
8196 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8197 declaration.
8198 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8199 declarations.
8200 (struct continations): Add the 'error' parameter to the
8201 continuation_hook field.
8202 (add_continuation, do_all_continuations)
8203 (add_intermediate_continuation)
8204 (do_all_intermediate_continuations): Add the 'error' parameter.
8205 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8206 * inf-loop.c (inferior_event_handler): Instead of calling
8207 discard_all_continuations, use do_all_continuations with 1 as
8208 'error' parameter. Pass 0 as 'error' parameter in existing uses
8209 of discard_all_continuations.
8210 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8211 cleanups.
8212 (step_once): Install continuation only after resuming the target.
8213 (step_1_continuation): Disable longjmp breakpoint on error.
8214 (finish_command_continuation): Add the error parameter. Delete
8215 the finish breakpoint directly, do not use cleanups.
8216 (finish_command): Do not use exec_cleanups. Always setup
8217 continuation. For sync case, immediately run them.
8218 (attach_command_continuation): Add the error parameter.
8219 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8220 remove step_resume_breakpoint -- adjust delete it directly.
8221 * interps.c (interp_set): Adjust call to do_all_continations.
8222 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8223 do exec cleanups.
8224 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8225 cleanups.
8226 (mi_cmd_execute): Do not use exec_cleanup.
8227 (mi_execute_async_cli_command): Simplify the string concatenation
8228 logic. Do no use exec cleanup.
8229 (mi_exec_async_cli_cmd_continuation): New parameter error.
8230 Free last_async_command.
8231 * top.c (command_line_handler_continuation): New parameter error.
8232 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8233 (do_exec_cleanups): Remove.
8234 (add_continuation, do_all_continations)
8235 (add_intermediate_continuation)
8236 (do_all_intermediate_continuations): New parameter error.
8237
74960c60
VP
82382008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8239
8240 * breakpoint.h (bp_location_p): New typedef.
8241 Register a vector of bp_location_p.
8242 * breakpoint.c (always_inserted_mode)
8243 (show_always_inserted_mode): New.
8244 (unlink_locations_from_global_list): Remove.
8245 (update_global_location_list)
8246 (update_global_location_list_nothrow): New.
8247 (update_watchpoint): Don't free locations.
8248 (should_insert_location): New.
8249 (insert_bp_location): Use should_insert_location.
8250 (insert_breakpoint_locations): Copied from
8251 insert_breakpoints.
8252 (insert_breakpoint): Use insert_breakpoint_locations.
8253 (bpstat_stop_status): Call update_global_location_list
8254 when disabling breakpoint.
8255 (allocate_bp_location): Don't add to bp_location_chain.
8256 (set_raw_breakpoint)
8257 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8258 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8259 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8260 (set_longjmp_resume_breakpoint)
8261 (enable_watchpoints_after_interactive_call_stop)
8262 (disable_watchpoints_before_interactive_call_start)
8263 (create_internal_breakpoint)
8264 (create_fork_vfork_event_catchpoint)
8265 (create_exec_event_catchpoint, set_momentary_breakpoint)
8266 (create_breakpoints, break_command_1, watch_command_1)
8267 (create_exception_catchpoint)
8268 (handle_gnu_v3_exceptions)
8269 (disable_breakpoint, breakpoint_re_set_one)
8270 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8271 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8272 Call update_global_location_list.
8273 (delete_breakpoint): Don't remove locations and don't
8274 try to reinsert them. Call update_global_location_list.
8275 (update_breakpoint_locations): Likewise.
8276 (restore_always_inserted_mode): New.
8277 (update_breakpoints_after_exec): Temporary disable
8278 always inserted mode.
8279 * Makefile.in: Update dependencies.
8280
8281 * infrun.c (proceed): Remove breakpoints while stepping
8282 over breakpoint.
8283 (handle_inferior_event): Don't remove or insert
8284 breakpoints.
8285 * linux-fork.c (checkpoint_command): Remove breakpoints
8286 before fork and insert after.
8287 (linux_fork_context): Remove breakpoints before switch
8288 and insert after.
8289 * target.c (target_disconnect, target_detach): Remove
8290 breakpoints from target.
8291
680b56ce 8292
d24317b4
VP
82932008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8294
8295 * breakpoint.c (print_one_breakpoint_location): In MI
8296 mode, report the location string the breakpoint was
8297 originally created with.
8298
ee967b5f
MG
82992008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8300
8301 * Makefile.in (xtensa-tdep.o): Update dependencies.
8302 * configure.tgt (xtensa*): Update dependencies.
8303 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8304 Local variable areg renamed to arreg.
8305 (areg_number): New function.
8306 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8307 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8308 replaced by arreg_number.
8309 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8310 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8311 (xtensa_scan_prologue): New function.
8312 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8313 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8314 value based on prologue analysis. Fix the bugs preventing WS and
8315 AR4-AR7/A11 registers from getting right values for intermediate frames,
8316 whose registers have been already spilled.
8317 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8318 and arreg_number appropriately.
8319 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8320 svr4_ilp32_fetch_link_map_offsets.
8321
09d71d23
AS
83222008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8323
8324 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8325 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8326
fdc59709
PB
83272008-04-23 Paolo Bonzini <bonzini@gnu.org>
8328
680b56ce
AS
8329 * acinclude.m4: Add override.m4.
8330 * configure: Regenerate.
fdc59709 8331
0bcd0149
JK
83322008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8333
8334 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8335 initialized with a trailing space now. Use PROMPT_ARG of
8336 COMMAND_LINE_INPUT instead of printing it ourselves.
8337
88d8a8e0
JB
83382008-04-22 Joel Brobecker <brobecker@adacore.com>
8339
8340 * NEWS: Document support for 64-bit core file.
8341
c055b101
CV
83422008-04-22 Corinna Vinschen <vinschen@redhat.com>
8343
8344 * NEWS: Add information on calling convention and new SH CLI options.
8345
8346 * sh-tdep.c (sh_cc_gcc): New static string.
8347 (sh_cc_renesas): Ditto.
8348 (sh_cc_enum): New static string array.
8349 (sh_active_calling_convention): New static string pointer denoting
8350 active user chosen ABI.
8351 (sh_is_renesas_calling_convention): New function to return function
8352 specific ABI, or user choice if necessary.
8353 (sh_use_struct_convention): Rename first argument and turn around its
8354 meaning. Check for renesas ABI and return accordingly.
8355 (sh_use_struct_convention_nofpu): New function.
8356 (sh_next_flt_argreg): Get function type as third parameter. Check
8357 for renesas ABI and choose floating registers accordingly.
8358 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8359 struct return slot accordingly.
8360 (sh_push_dummy_call_nofpu): Ditto.
8361 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8362 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8363 (sh_return_value_fpu): Evaluate ABI and give to
8364 sh_use_struct_convention.
8365 (show_sh_command): New function.
8366 (set_sh_command): Ditto.
8367 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8368 CLI command.
8369
8370 * gdbarch.sh (return_value): Add func_type argument.
8371 * gdbarch.c: Regenerate.
8372 * gdbarch.h: Ditto.
8373 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8374 val_type so as not to collide with value_type function. Call
8375 using_struct_return with additional function type argument.
8376 * infcall.c (call_function_by_hand): Call using_struct_return and
8377 gdbarch_return_value with additional function type argument.
8378 * infcmd.c (print_return_value): Take addition func_type argument.
8379 Call gdbarch_return_value with additional function type argument.
8380 (finish_command_continuation): Call print_return_value with additional
8381 function type argument.
8382 (finish_command): Ditto.
8383 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8384 additional function type argument.
8385 * stack.c (return_command): Call using_struct_return and
8386 gdbarch_return_value with additional function type argument.
8387 * value.c (using_struct_return): Take additional function type argument.
8388 * value.h (using_struct_return): Accommodate declaration.
8389 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8390 * amd64-tdep.c (amd64_return_value): Ditto.
8391 * arm-tdep.c (arm_return_value): Ditto.
8392 * avr-tdep.c (avr_return_value): Ditto.
8393 * cris-tdep.c (cris_return_value): Ditto.
8394 * frv-tdep.c (frv_return_value): Ditto.
8395 * h8300-tdep.c (h8300_return_value): Ditto.
8396 (h8300h_return_value): Ditto.
8397 * hppa-tdep.c (hppa32_return_value): Ditto.
8398 (hppa64_return_value): Ditto.
8399 * i386-tdep.c (i386_return_value): Ditto.
8400 * ia64-tdep.c (ia64_return_value): Ditto.
8401 * iq2000-tdep.c (iq2000_return_value): Ditto.
8402 * m32c-tdep.c (m32c_return_value): Ditto.
8403 * m32r-tdep.c (m32r_return_value): Ditto.
8404 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8405 * m68k-tdep.c (m68k_return_value): Ditto.
8406 (m68k_svr4_return_value): Ditto.
8407 * m88k-tdep.c (m88k_return_value): Ditto.
8408 * mep-tdep.c (mep_return_value): Ditto.
8409 * mips-tdep.c (mips_eabi_return_value): Ditto.
8410 (mips_n32n64_return_value): Ditto.
8411 (mips_o32_return_value): Ditto.
8412 (mips_o64_return_value): Ditto.
8413 * mn10300-tdep.c (mn10300_return_value): Ditto.
8414 * mt-tdep.c (mt_return_value): Ditto.
8415 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8416 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8417 (ppc_sysv_abi_broken_return_value): Ditto.
8418 (ppc64_sysv_abi_return_value): Ditto.
8419 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8420 (ppc_sysv_abi_broken_return_value): Ditto.
8421 (ppc64_sysv_abi_return_value): Ditto.
8422 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8423 * rs6000-tdep.c (rs6000_return_value): Ditto.
8424 * s390-tdep.c (s390_return_value): Ditto.
8425 * score-tdep.c (score_return_value): Ditto.
8426 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8427 (sh_return_value_fpu): Ditto.
8428 * sh64-tdep.c (sh64_return_value): Ditto.
8429 * sparc-tdep.c (sparc32_return_value): Ditto.
8430 * sparc64-tdep.c (sparc64_return_value): Ditto.
8431 * spu-tdep.c (spu_return_value): Ditto.
8432 * v850-tdep.c (v850_return_value): Ditto.
8433 * vax-tdep.c (vax_return_value): Ditto.
8434 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8435 * xtensa-tdep.c (xtensa_return_value): Ditto.
8436
8437 * gdbtypes.h (struct type): Add calling_convention member.
8438 * dwarf2read.c (read_subroutine_type): Add calling convention read
8439 from DW_AT_calling_convention attribute to function type.
8440
9eec4d1e
MD
84412008-04-22 Markus Deuling <deuling@de.ibm.com>
8442
8443 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8444 multi_f77_subscript to support values from registers.
8445 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8446 * value.h (value_subscripted_rvalue): Add prototype.
8447
8448 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8449 Fix output.
8450 * f-valprint.c (f_val_print): Likewise.
8451
ef72380d
CS
84522008-04-21 Craig Silverstein <csilvers@google.com>
8453
8454 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8455 !HAVE_ZLIB_H case.
8456
ff8e85c3
PA
84572008-04-21 Pedro Alves <pedro@codesourcery.com>
8458
8459 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8460 section is not a code section.
8461
31fffb02
CS
84622008-04-19 Craig Silverstein <csilvers@google.com>
8463
8464 * NEWS: Add information on compressed debug sections.
8465
8e91f023
VP
84662008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8467
8468 * mi/mi-cmd-var.c (varobj_update_one): Print new
8469 value for variable objects that changed type.
8470
603ba1de
VP
84712008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8472
8473 * varobj.c (varobj_invalidate): Don't touch floating
8474 varobjs.
8475
7fc830e2
MK
84762008-04-19 Mark Kettenis <kettenis@gnu.org>
8477
8478 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8479 (multiple_symbols_cancel): Remove extra const.
8480 * symtab.h: Likewise.
8481
bcbf8b68
NR
84822008-04-19 Nick Roberts <nickrob@snap.net.nz>
8483
8484 * interps.c (top_level_interpreter): Rename static variable...
8485 (top_level_interpreter_ptr): ...to this.
8486 (top_level_interpreter): New function.
8487
8488 * interps.h: New extern for top_level_interpreter.
8489
8490 * linespec.c: Include interps.h and mi/mi-cmds.h.
8491 (decode_line_2): When using MI, always set all breakpoints in menu.
8492
8493 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8494
31fffb02 84952008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8496
8497 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8498 * config.in, configure: Regenerate.
8499 * dwarf2read.c: Include zlib.h if present.
8500 Modified *_SECTION macros.
8501 (section_is_p): New.
8502 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8503 (dwarf2_resize_section): New.
8504 to determine whether a given section has a given name.
8505 (zlib_decompress_section): New.
8506 (dwarf2_read_section): Read the compressed section if present
8507 in the binary.
8508 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8509
a03b3a97
TJB
85102008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8511
8512 * defs.h (exec_set_section_offsets): Remove prototype.
8513 * exec.c (exec_set_section_offsets): Remove function.
8514
9e386756
JB
85152008-04-18 Joel Brobecker <brobecker@adacore.com>
8516
8517 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8518 in the search for the matching symbol.
8519
2ec93238
MK
85202008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8521
8522 * breakpoint.c (update_watchpoint): Always reparse
8523 condition.
8524
e9bbd7c5
JB
85252008-04-17 Joel Brobecker <brobecker@adacore.com>
8526
8527 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8528 the breakpoint address only once.
8529
475bbd17
JB
85302008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8531
8532 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8533 rather than a hard-coded architecture, for xcoff executables.
8534
86991504
DE
85352008-04-17 Doug Evans <dje@google.com>
8536
4584e32e
DE
8537 * buildsym.c (watch_main_source_file_lossage): New fn.
8538 (end_symtab): Call it.
8539
86991504
DE
8540 * source.c (find_and_open_source): Add some comments clarifying
8541 handling of FULLNAME argument. Make static. Remove pointless
8542 xstrdup/xfree.
8543
0a320680
PA
85442008-04-17 Pedro Alves <pedro@codesourcery.com>
8545
8546 * inf-loop.c (inferior_event_handler): Also run the intermediate
8547 continuations in the INF_EXEC_COMPLETE case.
8548
700b53b1
TT
85492008-04-16 Tom Tromey <tromey@redhat.com>
8550
8551 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8552 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8553 * cli/cli-decode.c (set_cmd_async_ok): New function.
8554 (get_cmd_async_ok): New function.
8555 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8556 "show" as async-ok.
8557 * top.c (execute_command): Use get_cmd_async_ok.
8558 * infcmd.c: Include cli/cli-decode.h.
8559 (_initialize_infcmd): Mark "interrupt" as async-ok.
8560 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8561
dacec2a8
DJ
85622008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8563
8564 PR gdb/2445
8565 * exec.c: Correct "arch-utils.h" include.
8566
1f906a60 85672008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8568
8569 PR gdb/2424
8570 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8571 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8572 * breakpoint.c (bpdisp_texst): New function. The function takes over
8573 the role of bpstats static array in print_one_breakpoint_location.
8574 (print_it_typical): Print "Temporary breakpoint" instead
8575 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8576 protocols, print disp field.
8577 (print_one_breakpoint_location): Removed bpdisps static definition.
8578 Call new bpstat_text function to get value for 'disp' field.
8579 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8580
4d7b71aa
DJ
85812008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8582
8583 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8584 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8585 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8586 * gnulib/Makefile.in: Regenerate.
8587
aa11fd3f
DJ
85882008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8589
8590 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8591 (defs_h): Use $(GNULIB_H).
8592 (all-lib): Depend on gnulib/Makefile.
8593 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8594 * config.in, gnulib/Makefile.in: Regenerated.
8595
e28b3332
DJ
85962008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8597
8598 * Makefile.in (LIBGNU, INCGNU): Define.
8599 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8600 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8601 (CLEANDIRS): New.
8602 ($(LIBGNU), all-lib): New rules.
8603 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8604 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8605 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8606 * gnulib: New directory, from gnulib-tool.
8607 * configure, aclocal.m4: Regenerated.
8608
e3bc4218
DJ
86092008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8610
8611 * linux-thread-db.c (have_threads_callback): Check thread->private.
8612
fcacd99f
VP
86132008-04-13 Nick Roberts <nickrob@snap.net.nz>
8614 Vladimir Prus <vladimir@codesourcery.com>
8615
8616 Fix @-varobjs.
680b56ce
AS
8617 * varobj.c (value_of_root): Update the expression for
8618 floating varobjs.
8619 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8620 report that.
fcacd99f 8621
de051565
MK
86222008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8623
8624 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8625 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8626 (mi_cmd_var_set_format): Use new mi_parse_format.
8627 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8628 format.
8629 * Makefile.in (mi-cmd-var.o): Update dependencies.
8630
8631 * varobj.h (varobj_get_formatted_value): Declare.
8632 * varobj.c (my_value_of_variable): Added format parameter.
8633 (cplus_value_of_variable): Likewise.
8634 (java_value_of_variable): Likewise.
8635 (c_value_of_variable): Likewise. Evaluate expression based
8636 on format parameter.
8637 (struct language_specific): Add format parameter to function member
8638 *value_of_variable.
8639 (varobj_get_formatted_value): New.
8640 (varobj_get_value): Added format parameter to method call.
680b56ce 8641
56953f80
JB
86422008-04-08 Joel Brobecker <brobecker@adacore.com>
8643
8644 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8645 instance flags of the undefined type before calling replace_type.
8646
e4e33b9e
VP
86472008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8648
8649 * target.h (enum strata): Remove the download_stratum.
680b56ce 8650
92b5c263
DE
86512008-04-07 Doug Evans <dje@google.com>
8652
8653 * buildsym.h (last_source_file): Add dwarf info to comment.
8654 (last_source_start_addr): Ditto.
8655
effa26a9
PA
86562008-04-07 Pedro Alves <pedro@codesourcery.com>
8657
8658 * alphanbsd-tdep.c: Include "target.h".
8659 * mn10300-tdep.c: Include "target.h".
8660 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8661
2b2d9e11
VP
86622008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8663
8664 Fix breakpoint condition that use member variables.
680b56ce
AS
8665 * valops.c (check_field): Remove.
8666 (check_field_in): Rename to check_field.
8667 (value_of_this): Use la_name_of_this.
8668 * value.h (check_field): Adjust prototype.
8669
8670 * language.h (la_value_of_this): Rename to la_name_of_this.
8671 * language.c (unknown_language_defn): Specify "this" for
8672 name_of_this.
8673 (auto_language_defn): Likewise.
8674 (local_language_defn): Likewise.
8675 * ada-lang.c (ada_language_defn): Adjust comment.
8676 * c-lang.c (c_language_defn): Adjust comment.
8677 (cplus_language_defn): Specify "this" for name_of_this.
8678 (asm_language_defn): Adjust comment.
8679 (minimal_language_defn): Adjust comment.
8680 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8681 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8682 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8683 * objc-lang.c (objc_language_defn): Specify "self" for
8684 name_of_this.
8685 * p-lang.c (pascal_language_defn): Specify "this" for
8686 name_of_this.
8687 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8688
8689 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8690 proper scope, and check for field in type of "this", without
8691 trying to create a value.
2b2d9e11 8692
a13e061a
PA
86932008-04-04 Pedro Alves <pedro@codesourcery.com>
8694
8695 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8696 (mi_error_message): Delete declaration.
8697 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8698 returning MI_CMD_ERROR.
8699 * mi/mi-main.c (mi_error_message): Delete.
8700 (mi_cmd_exec_interrupt):
8701 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8702 (mi_cmd_thread_info): Call error instead of returning
8703 MI_CMD_ERROR.
8704 (mi_cmd_data_list_register_values): Call error instead of
8705 returning MI_CMD_ERROR. Adapt to new get_register interface.
8706 (get_register): Change return typo to void. Call error instead of
8707 returning MI_CMD_ERROR.
8708 (mi_cmd_data_write_register_values): Call error instead of
8709 returning MI_CMD_ERROR.
8710 (mi_cmd_list_features): Return MI_CMD_DONE.
8711 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8712 (mi_execute_command): Always print exceptions with -error.
8713
aad4b048
JB
87142008-04-04 Joel Brobecker <brobecker@adacore.com>
8715
8716 * NEWS: Mention new commands set/show multiple-symbols.
8717
717d2f5a
JB
87182008-04-03 Joel Brobecker <brobecker@adacore.com>
8719
8720 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8721 (multiple_symbols_cancel): New constants.
8722 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8723 (multiple_symbols_select_mode): New function.
8724 (_initialize_symtab): Add new set/show multiple-symbols commands.
8725 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8726 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8727 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8728 setting.
8729 * linespec.c (decode_line_2): Likewise.
8730
f73634e5
DE
87312008-04-03 Doug Evans <dje@sebabeach.org>
8732
8733 * symtab.h (enum free_code): Delete free_contents, unused.
8734 * symmisc.c (free_symtab_block): Delete.
8735 (free_symtab, case free_code): Delete.
8736
1f906a60 87372008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
8738
8739 * valops.c (value_cast_structs): New function. Cast related
680b56ce 8740 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
8741 function comes mostly from value_cast_pointers.
8742 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8743 to value_cast_structs. Now value_cast_pointers needs only create
8744 appropriate reference after using value_cast_structs for actual
8745 casting.
8746 (value_cast): Handle references.
8747
61ad90e1
MK
87482008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8749
8750 * MAINTAINERS: Added myself to section Write After Approval.
8751
b7d038ae
DJ
87522008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8753
8754 * ia64-tdep.c (examine_prologue): Correct array access.
8755
1f906a60 87562008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
8757
8758 * cp-support.c (first_component_command): Return if no arguments.
8759
df3ac606
CD
87602008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8761
8762 * ser-mingw.c (ser_windows_open): Open requested name.
8763
ca933485
AR
87642008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8765
8766 * MAINTAINERS: Added myself.
8767
5f667f2d
PA
87682008-03-28 Pedro Alves <pedro@codesourcery.com>
8769
8770 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8771 parameter. If it is NULL, don't call error.
8772 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8773 `do_mesg' parameter to find_default_run_target. If no target was
8774 found, return 0.
8775
e741f4d4
DJ
87762008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8777
8778 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8779 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8780 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8781 Delete.
8782 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8783
f66d8205 87842008-03-27 Joel Brobecker <brobecker@adacore.com>
8785
8786 GDB 6.8 released.
8787
221c031f
UW
87882008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8789
8790 * features/Makefile (%.dat): Set xmltarget to the base filename
8791 of the XML source, without subdirectory.
8792 * regformats/rs6000/powerpc-32.dat: Regenerate.
8793 * regformats/rs6000/powerpc-64.dat: Regenerate.
8794 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8795
40c58d95
MD
87962008-03-27 Markus Deuling <deuling@de.ibm.com>
8797
8798 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8799 objfile arch.
8800
bb1ec7d2
NR
88012008-03-27 Nick Roberts <nickrob@snap.net.nz>
8802
8803 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8804 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8805
5e2b427d
UW
88062008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8807
8808 * objfiles.h (struct objfile): New GDBARCH member.
8809 (get_objfile_arch): Add prototype.
8810 * objfiles.c: Include "arch-utils.h".
8811 (allocate_objfile): Look up gdbarch associated with bfd.
8812 (get_objfile_arch): New function.
8813 * Makefile (objfiles.o): Update dependencies.
8814
8815 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8816 by objfile arch.
8817 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8818 by frame arch.
8819 (locexpr_describe_location): Replace current_gdbarch by
8820 objfile arch.
8821 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8822 (dwarf2_add_field): Likewise.
8823 (read_tag_pointer_type): Likewise.
8824 (read_base_type): Likewise.
8825 (new_symbol): Likewise.
8826
8827 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8828 (decode_base_type, decode_function_type): Likewise.
8829 (coff_read_struct_type, coff_read_enum_type): Likewise.
8830 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8831 (decode_base_type): Likewise.
8832 (coff_read_enum_type): Likewise.
8833 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8834 (coff_read_enum_type): Likewise.
8835
8836 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8837 (end_psymtab): Likewise.
8838 (process_one_symbol): Likewise.
8839
8840 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8841 (parse_procedure): Likewise.
8842 (parse_partial_symbols): Likewise.
8843
8844 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8845
8846 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8847 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8848 built-in types.
8849 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8850 static range_index_type by built-in type.
8851 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8852 (read_enum_type): Likewise.
8853
8854 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8855 objfile arch.
8856
5a413362
VP
88572008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8858
8859 * varobj.h (varobj_floating_p): Declare.
8860 * varobj.c (varobj_floating_p): New.
8861 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8862 '@' as the name, update all floating varobjs.
8863
a5defcdc
VP
88642008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8865
8866 * varobj.c (struct varobj_root): Rename use_selected_frame to
8867 floating, and clarify the meaning.
8868 (varobj_create, varobj_update, new_root_variable): Adjust.
8869 (value_of_root): Don't use type_changed as in variable,
8870 adjust comment.
8871 (c_value_of_root): Adjust.
5a413362 8872
403fe197
PA
88732008-03-25 Pedro Alves <pedro@codesourcery.com>
8874
8875 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8876 gdb's thread list.
8877 (linux_nat_wait): Add main lwp to gdb's thread list.
8878 * linux-thread-db.c (find_new_threads_callback): Also attach to
8879 already listed threads which thread_db didn't know about yet.
8880
710151dd
PA
88812008-03-25 Pedro Alves <pedro@codesourcery.com>
8882
8883 * linux-nat.c (drain_queued_events): Fix comment typo.
8884 (linux_nat_attach): In async mode, don't rely on storing a pending
8885 status. Instead place the wait status on the pipe.
8886 (linux_nat_resume): Remove unreacheable shortcut code in async
8887 mode.
8888 (stop_wait_callback): In async mode, don't store pending status.
8889 Instead, cancel breakpoints or resend the signal appropriatelly.
8890 (cancel_breakpoint): New, refactored from
8891 cancel_breakpoints_callback.
8892 (cancel_breakpoints_callback): Call cancel_breakpoint.
8893 (pipe_to_local_event_queue): Remove special token processing.
8894 (linux_nat_wait): Issue an internal error if a pending status is
8895 found in async mode.
8896
807bddf3
DJ
88972008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8898
8899 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8900
c5b48eac
VP
89012008-03-24 Nick Roberts <nickrob@snap.net.nz>
8902 Vladimir Prus <vladimir@codesourcery.com>
8903
680b56ce
AS
8904 * varobj.c (struct varobj_root): New component thread_id.
8905 (varobj_get_thread_id, check_scope): New functions.
8906 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
8907 proper thread if necessary.
8908
680b56ce 8909 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 8910
680b56ce 8911 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 8912
12f4afab
DJ
89132008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8914
8915 PR gdb/544
8916 * top.c: Revert 2008-03-21 changes.
8917
6208b47d
VP
89182008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8919
8920 * thread.c (make_cleanup_restore_current_thread): Make it
8921 globally visible.
8922 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8923 * varobj.c (varobj_update): Don't save/restore frame.
8924 (c_value_of_root): Save/restore thread and frame here,
8925 using make_cleanup_restore_current_thread.
8926 * Makefile.in: Update dependecies.
8927
44a67aa7
VP
89282008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8929
680b56ce
AS
8930 * varobj.c (struct varobj_root): Clarify
8931 comment on the frame field.
8932 (varobj_create): Don't set frame if we have no
8933 block.
44a67aa7 8934
b562a0cb
DJ
89352008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8936
8937 PR gdb/544
8938 Suggested by Jan Kratochvil:
8939 * top.c (gdb_rl_operate_and_get_next_completion): Call
8940 rl_redisplay_function.
8941 (gdb_rl_redisplay): New.
8942 (init_main): Set rl_redisplay_function.
8943
ed1bd5f5
JB
89442008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8945
8946 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8947 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8948 (store_regs_kernel_thread): Likewise.
8949
b84876c2
PA
89502008-03-21 Pedro Alves <pedro@codesourcery.com>
8951
8952 Linux native async support.
8953
8954 * target.h (struct target_ops): Delete to_async_mask_value and add
8955 to_async_mask.
8956 (target_is_async_p, target_async): Formatting.
8957 (target_async_mask_value): Delete.
8958 (target_async_mask): Delete function declaration, and add new
8959 target macro with the same name.
8960
8961 * target.c (update_current_target): Replace to_async_mask_value by
8962 to_async_mask. Default to_async_mask to return_one.
8963 (target_async_mask): Delete.
8964 (find_default_can_async_p, find_default_is_async_p): New.
8965 (init_dummy_target): register find_default_can_async_p and
8966 find_default_is_async_p on the dummy target.
8967
8968 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8969 (debug_linux_nat_async): New global.
8970 (show_debug_linux_nat_async): New function.
8971 (linux_nat_async_enabled, linux_nat_async_mask_value)
8972 (linux_nat_event_pipe, linux_nat_num_queued_events)
8973 (linux_nat_async_events_enabled): New globals.
8974 (struct waitpid_result): New struct.
8975 (waitpid_queue): New global.
8976 (queued_waitpid, push_waitpid, drain_queued_events): New.
8977 (my_waitpid): Call queued_waitpid.
8978 (linux_child_follow_fork): Disable async events during the call.
8979 (blocked_mask): Delete.
8980 (sync_sigchld_action, async_sigchld_action): New globals.
8981 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8982 async mode, block events during the call.
8983 (linux_nat_create_inferior): New.
8984 (linux_nat_attach): In sync mode, restore the mask states. In
8985 async mode, wake the event loop immediatelly.
8986 (detach_callback): Drain all queued events of the lwp we're
8987 detaching from.
8988 (linux_nat_detach): Block async mode, and drain events of the main
8989 process.
8990 (linux_nat_resume): If in async mode, mask async events during the
8991 call. If short circuiting, force event loop to wake up. If
8992 resuming, set target_executing, and register target events in the
8993 event loop.
8994 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8995 (linux_nat_wait): In async mode, block events during the call.
8996 Only enable/disable passing SIGINT to the inferior in sync mode.
8997 Get events from local waitpid queue. If no interesting events was
8998 found, return to events loop. Reregister target events in the
8999 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9000 (linux_nat_kill): Disable events on entry.
9001 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9002 here. Detach async mode from the event loop if there are no more
9003 forks available, otherwise leave it on.
9004 (sigchld_handler): Assure this is called only in sync mode.
9005 (linux_async_permitted, linux_async_permitted_1): New globals.
9006 (set_maintenance_linux_async_permitted)
9007 (show_maintenance_linux_async_permitted): New functions.
9008 (linux_nat_is_async_p, linux_nat_can_async_p)
9009 (linux_nat_async_mask): New.
9010 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9011 (get_pending_events, async_sigchld_handler): New.
9012 (linux_nat_async_events): New.
9013 (async_terminal_is_ours): New global.
9014 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9015 (async_client_callback, async_client_context): New.
9016 (linux_nat_async_file_handler, linux_nat_async)
9017 (linux_nat_disable_async, linux_nat_enable_async): New.
9018 (linux_nat_add_target): Register linux_nat_create_inferior,
9019 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9020 linux_nat_async_mask, linux_nat_terminal_inferior and
9021 linux_nat_terminal_ours.
9022 (_initialize_linux_nat): Remove local action variable, and update
9023 code that used it to use sync_sigchld_action. Add new
9024 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9025 set/show command in the maintenance class. Add new "linux-async"
9026 maintenance set/show command. Block SIGCHLD by default. Setup
9027 async_sichld_action, and sync_sigchld_action. Install the default
9028 async mode.
9029 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9030 the cancel signals.
9031
9032 * linux-thread-db.c (re_check_for_thread_db): New.
9033 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9034 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9035 (thread_db_async_mask): New.
9036 (init_thread_db_ops): Register thread_db_can_async_p,
9037 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9038
9039 * remote.c (remote_async_mask_value): New.
9040 (remote_return_zero): New.
9041 (init_remote_ops): Register remote_return_zero as callbacks of
9042 to_can_async_p and to_is_async_p.
9043 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9044 use remote_async_mask_value.
9045 (remote_async_mask): New.
9046 (init_remote_async_ops): Remove to_async_mask_value setting and
9047 register remote_async_mask as to_async_mask callback in
9048 remote_async_ops.
9049
9050 * Makefile.in (linux-nat.o): Update.
9051
17faa917
DJ
90522008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9053
9054 * gdbthread.h (add_thread_with_info): New.
9055 * linux-thread-db.c: Add some documentation.
9056 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9057 (struct private_thread_info): Remove th_valid and ti_valid.
9058 Replace ti with tid.
9059 (thread_get_info_callback): Do not add TID to the new ptid. Do
9060 not cache th or ti.
9061 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9062 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9063 new PTID.
9064 (attach_thread): Handle an already-existing thread. Use
9065 add_thread_with_info. Cache the th and tid.
9066 (detach_thread): Verify that private was set. Remove verbose
9067 argument and printing. Update caller.
9068 (thread_db_detach): Do not adjust inferior_ptid.
9069 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9070 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9071 (thread_db_wait): Do not use lwp_from_thread.
9072 (thread_db_pid_to_str): Use the cached TID.
9073 (thread_db_extra_thread_info): Check that private is set.
9074 (same_ptid_callback): Delete.
9075 (thread_db_get_thread_local_address): Do not use it or check
9076 is_thread. Check that private is set. Assume that the thread
9077 handle is already cached.
9078 (init_thread_db_ops): Remove to_resume and to_kill.
9079 * thread.c (add_thread_with_info): New.
9080 (add_thread): Use it.
9081 * linux-nat.c (find_thread_from_lwp): Delete.
9082 (exit_lwp): Do not use it. Check print_thread_events. Print before
9083 deleting the thread.
9084 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9085 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9086 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9087 printf_unfiltered for thread exits.
9088 * procfs.c (procfs_wait): Likewise.
9089
6214f497
DJ
90902008-03-21 Chris Demetriou <cgd@google.com>
9091
9092 * symtab.c (rbreak_command): Quote symbol name before passing
9093 it to break_command.
9094
63092375
DJ
90952008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9096
9097 * eval.c (evaluate_subexp_for_address): Clarify error message.
9098 Use value_must_coerce_to_target.
9099 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9100 * valops.c (value_assign): Call value_coerce_to_target when
9101 assigning to anything but internalvars. Leave GDB-side arrays
9102 as arrays when assigning to internalvars.
9103 (value_must_coerce_to_target, value_coerce_to_target): New.
9104 (value_coerce_array, value_addr): Call value_coerce_to_target.
9105 (value_array): Create the array in GDB's memory instead of
9106 the inferior's.
9107 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9108 Declare.
9109
b21991b0
DJ
91102008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9111
9112 * top.c (quit_confirm): Warn that we will kill the program.
9113
49a834f9
PA
91142008-03-19 Pedro Alves <pedro@codesourcery.com>
9115
9116 * inflow.c (terminal_ours_1): Guard access to
9117 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9118
ae0d2f24
UW
91192008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9120 Jim Blandy <jimb@codesourcery.com>
9121 Daniel Jacobowitz <drow@false.org>
9122
9123 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9124 (dwarf2_read_address): Update prototype.
9125
9126 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9127 (signed_address_type): Likewise.
9128 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9129 (execute_stack_op): Update calls to unsigned_address_type,
9130 signed_address_type and dwarf2_read_address. Fix implementation
9131 of DW_OP_deref_size.
9132
9133 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9134 (dwarf2_per_cu_addr_size): Likewise.
9135 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9136 (struct dwarf2_loclist_baton): Likewise.
9137
9138 * dwarf2loc.c (find_location_expression): Update calls to
9139 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9140 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9141 (locexpr_describe_location): Likewise.
9142 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9143 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9144 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9145 to dwarf2_per_cu_addr_size (per_cu).
9146 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9147 (loclist_read_variable): Likewise.
9148 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9149
9150 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9151 instead of baton->objfile.
9152 (dwarf2_per_cu_obfile): New function.
9153 (dwarf2_per_cu_addr_size): Likewise.
9154
9155 * dwarf2-frame.c (struct comp_unit): Move higher.
9156 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9157 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9158 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9159 parameter by using fde->eh_frame_p. Use read_encoded_value
9160 to implement DW_CFA_set_loc.
9161 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9162 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9163 execute_stack_op and execute_cfa_program.
9164 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9165 (size_of_encoded_value): Remove.
9166 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9167 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9168 (add_cie): Set cie->unit backlink.
9169 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9170 read_encoded_value.
9171 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9172
1c8201d1
MD
91732008-03-17 Markus Deuling <deuling@de.ibm.com>
9174
9175 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9176 gdbarch_bfd_arch_info.
9177
46bba1ef
JB
91782008-03-17 Joel Brobecker <brobecker@adacore.com>
9179
9180 * aix-thread.c (pdc_read_regs): Minor reformatting.
9181
0bcd3e20
VP
91822008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9183
9184 * thread.c (print_thread_info): Don't insist
9185 on having current thread if there are no
9186 threads at all.
9187
9356cf8d
PA
91882008-03-17 Pedro Alves <pedro@codesourcery.com>
9189
9190 * infcmd.c (attach_command_post_wait)
9191 (attach_command_continuation): New.
9192 (attach_command): Support background async execution, and async
9193 execution in synchronous mode.
9194
5c3ce3f7
DJ
91952008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9196
9197 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9198 * symmisc.c (dump_symtab_1): Likewise.
9199 * wrapper.c (gdb_value_struct_elt): Likewise.
9200
fa2c6a57
PA
92012008-03-17 Pedro Alves <pedro@codesourcery.com>
9202
9203 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9204
02f3fc28
PA
92052008-03-17 Pedro Alves <pedro@codesourcery.com>
9206
9207 * linux-nat.c (linux_nat_filter_event): New, refactored from
9208 linux_nat_wait.
9209 (linux_nat_wait): Call linux_nat_filter_event.
9210
2f77b315
UW
92112008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9212
9213 * top.c (execute_command): Fix uninitialized variable error.
9214
f01be29b
NH
92152008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9216
680b56ce
AS
9217 * Makefile.in (amd64nbsd-nat.o): New dependency.
9218 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9219 (_initialize_amd64nbsd_nat): Update target vector to use
9220 nbsd_pid_to_exec_file.
9221 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9222
6cf32704
VP
92232008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9224
9225 Remove ignoring leading exec events code.
680b56ce
AS
9226 * fork-child.c (startup_inferior): Do not set
9227 inferior_ignoring_leading_exec_events.
9228 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9229 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9230 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9231 (handle_inferior_event): Remove code for ignoring leading exec
9232 events.
9233 * target.c (update_current_target): Do not inherit, or default,
9234 to_reported_exec_events_per_exec_call.
9235 (debug_to_reported_exec_events_per_exec_call): Remove.
9236 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9237 * target.h (target_reported_exec_events_per_exec_call): Remove.
9238 (struct target): Remove the to_reported_exec_events_per_exec_call
9239 field.
6cf32704 9240
8e8901c5
VP
92412008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9242
9243 Implement -thread-info.
680b56ce 9244 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9245
680b56ce
AS
9246 * thread.c (print_thread_info): New, extracted
9247 from info_threads_command and adjusted to
9248 work for CLI and MI.
9249 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9250 * Makefile.in: Update dependencies.
9251
680b56ce
AS
9252 * mi/mi-cmds.c (mi_cmds): Specify a handler
9253 for -thread-info.
9254 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9255 * mi/mi-main.c (mi_cmd_thread_info): New.
9256 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9257
7d1e6fb8
KB
92582008-03-14 Kevin Buettner <kevinb@redhat.com>
9259
9260 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9261 to decide whether to match instruction patterns using "sw" and "sd".
9262
89113898
PA
92632008-03-14 Pedro Alves <pedro@codesourcery.com>
9264
9265 * infcmd.c (jump_command): Postpone disabling stdin until after
9266 the possible query.
9267
64a0ac84
PA
92682008-03-14 Pedro Alves <pedro@codesourcery.com>
9269
9270 * inflow.c (gdb_getpgrp): New.
9271 (gdb_has_a_terminal): Use get_getpgrp.
9272 (terminal_ours_1): If attach_flag is set, don't refetch
9273 inferior_process_group.
9274
1fddbabb
PA
92752008-03-14 Pedro Alves <pedro@codesourcery.com>
9276
9277 * features/library-list.dtd: Allow "section" elements as children
9278 of "library". Add "section" element and describe its attributes.
9279
9280 * solib-target.c (struct lm_info): Add section_bases member.
9281 (library_list_start_segment): Error out if seen a section element.
9282 (library_list_start_section): New.
9283 (library_list_end_library): New.
9284 (solib_target_free_library_list): Free section_bases.
9285 (section_attributes): New.
9286 (library_children): Make "segment" optional. Add "section" child.
9287 (library_list_children): Register library_list_end_library.
9288 (solib_target_relocate_section_addresses): Handle section bases.
9289
9290 * NEWS: Mention new qXfer:libraries:read section offsets support.
9291
712af3be
VP
92922008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9293
9294 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9295 (make_exec_error_cleanup): Remove declarations.
9296 * utils.c (exec_error_cleanup_chain): Remove.
9297 (do_exec_error_cleanups, discard_exec_error_cleanups)
9298 (make_exec_error_cleanup): Remove.
9299 * event-loop.c (start_event_loop): Adjust call to
9300 async_enable_stdin.
9301 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9302 (async_disable_stdin): Don't register async_enable_stdin via
9303 cleanup.
9304 * inf-loop.c (inferior_event_handler): Don't
9305 call do_exec_error_cleanups. Call async_enable_stdin instead.
9306 * event-loop.c (start_event_loop): Adjust call to
9307 async_enable_stdin.
9308 * tui/tui-interp.c (tui_command_loop): Adjust call to
9309 async_enable_stdin.
9310
32c1e744
VP
93112008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9312
9313 Async mode fixes.
680b56ce
AS
9314 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9315 * breakpoint.c (bpstat_do_actions): In async mode,
9316 don't jump to top expecting stop_bpstat to be already
9317 updated.
9318 * event-loop.c (start_event_loop): Call async_enable_stdin
9319 on exception.
9320 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9321 is not set.
9322 (command_handler): Do not setup continuation here.
9323 (command_line_handler_continuation): Move to...
9324 * top.c (command_line_handler_continuation): ... here.
9325 (execute_command): In async mode, register continuation.
9326 Don't check frame's language in running in async mode.
9327 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9328 * inf-loop.c (complete_execution): Inline into...
9329 (inferior_event_handler): ... here. Clear target_executing before
9330 doing any cleanups. Don't try to show prompt if the target was
9331 resumed.
9332 * infcmd.c (signal_command): Add support for async mode.
9333 (finish_command): Only add continuation if the target was
9334 successfully resumed.
9335 * remote.c (init_async_opts): Register to_get_thread_local_address
9336 handler.
9337 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9338 with sync_execution.
9339 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9340 on exception.
32c1e744 9341
c04ea773
DJ
93422008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9343
9344 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9345 * exec.c (exec_bfd_mtime): Define.
9346 (exec_close): Clear it.
9347 (exec_file_attach): Set it.
9348 * gdbcore.h (exec_bfd_mtime): Declare.
9349 * source.c (find_source_lines): Do not use bfd_get_mtime.
9350
952dc227
VP
93512008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9352
9353 * top.c (simplified_command_loop): Remove.
9354
4cf46804
VP
93552008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9356
9357 Remove unused remote.c hooks.
680b56ce
AS
9358 * remote.c (deprecated_target_resume_hook)
9359 (deprecated_target_wait_loop_hook): Remove.
9360 (remote_resume): Do not call deprecated_target_resume_hook.
9361 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9362 (remote_async_wait): Likewise.
4cf46804 9363
683f2885
VP
93642008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9365
9366 Implement MI notification for new threads.
680b56ce
AS
9367 * doc/observer.texi (new_thread): Document.
9368 * observer.sh: Forward declare struct thread_info.
9369 * thread.c (add_thread): Notify observer.
9370
9371 * interps.h (interp_init_ftype): New parameter
9372 top_level.
9373 (interp_set): Likewise.
9374 (top_level_interpreter_data): Declare.
9375 * interps.c (interp_set): New parameter top_level.
9376 Pass it to interpreter's init function. Remember
9377 top level interpreter.
9378 (interpreter_exec_cmd): Adjust.
9379 (top_level_interpreter_data): New.
9380 * main.c (captured_main): Pass 1 for top_level
9381 parameter of interp_set.
683f2885 9382 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9383 parameter top_level.
9384 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9385
680b56ce
AS
9386 * mi/mi-interp.c (mi_new_thread): New.
9387 (mi_interpreter_init): If top level, register
9388 observer for new threads.
683f2885 9389
680b56ce 9390 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9391
ff9b3928
PA
93922008-03-14 Pedro Alves <pedro@codesourcery.com>
9393
9394 * top.c (execute_command): Disable break and stop
9395 commands in async mode.
9396
b18392ef
PA
93972008-03-14 Pedro Alves <pedro@codesourcery.com>
9398
9399 revert:
9400 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9401 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9402 Call target_stop in the INF_QUIT_REQ case.
9403 * Makefile.in (inf-loop.o): Update.
9404
0aca9f07
PA
94052008-03-14 Pedro Alves <pedro@codesourcery.com>
9406
9407 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9408 Call target_stop in the INF_QUIT_REQ case.
9409 * Makefile.in (inf-loop.o): Update.
9410
0b4e556c
PA
94112008-03-14 Pedro Alves <pedro@codesourcery.com>
9412
9413 * top.c (execute_command): Enable break, info and interrupt
9414 commands in async mode.
9415
8defab1a
DJ
94162008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9417 Daniel Jacobowitz <dan@codesourcery.com>
9418
9419 * breakpoint.h (breakpoint_restore_shadows): New
9420 declaration.
9421 * breakpoint.c (breakpoint_restore_shadows): New.
9422 (read_memory_nobpt): Delete.
9423 * gdbcore.h (read_memory_nobpt): Delete declaration.
9424 * target.c (memory_xfer_partial): Call
9425 breakpoint_restore_shadows.
9426 (restore_show_memory_breakpoints)
2da16c8c 9427 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9428 (show_memory_breakpoints): New.
2da16c8c 9429 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9430 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9431 Make sure we see memory breakpoints when checking if
9432 breakpoint is still there.
9433 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9434 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9435 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9436 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9437
fd532e2e
PA
94382008-03-12 Pedro Alves <pedro@codesourcery.com>
9439
9440 * thread.c (add_thread): Use printf_unfiltered to print.
9441
f749779f 94422008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9443
9444 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9445 that is true only on x86-solaris and x86_64-solaris.
9446 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9447 with proc_get_LDT_entry.
9448
94492008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9450
9451 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9452 * config.in, configure: Regenerate.
9453 * fork-child.c (fork_inferior): Call create_tty_session.
9454 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9455 (create_tty_session): New function.
9456 * terminal.h: Declare create_tty_session.
9457
4fbb74a6
AM
94582008-03-12 Alan Modra <amodra@bigpond.net.au>
9459
9460 PR 5900
9461 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9462 * mipsread.c: Include elf/internal.h.
9463 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9464 to internal range.
9465
20a6ec49
MD
94662008-03-11 Markus Deuling <deuling@de.ibm.com>
9467
9468 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9469 to get at the current architecture and at the target specific vector.
9470 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9471 remove define of I387_ST0_REGNUM.
9472
9473 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9474
9475 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9476 get at the current architecture
9477 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9478 parameter.
9479
9480 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9481 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9482
9483 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9484 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9485 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9486
9487 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9488 at the target specific vector.
9489
9490 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9491 architecture. Use gdbarch_tdep to get at the target specific vector.
9492
9493 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9494 update caller. Use gdbarch_tdep to get at the target specific vector.
9495
9496 (i386_register_to_value: Use get_frame_arch to get at the current
9497 architecture.
9498
9499 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9500 parameter.
9501
9502 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9503 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9504 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9505 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9506
9507 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9508 undef's.
9509
9510 (i387_convert_register_p, i387_register_to_value,
9511 i387_value_to_register): Update call for i386_fp_regnum_p.
9512
9513 * i387-tdep.h: Remove comment.
9514 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9515 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9516 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9517 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9518 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9519
ccd213ac
DJ
95202008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9521
9522 * Makefile.in (fork-child.o): Update.
9523 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9524 argument. Gather all gdbserver features together.
9525 * fork-child.c (exec_wrapper): New variable.
9526 (fork_inferior): Use it.
9527 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9528 (unset_exec_wrapper_command, _initialize_fork_child): New.
9529
95302008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9531
9532 * source.c (directory_command): Modify the determination of
9533 condition of terminal "from_tty".
9534
22566fbd
DJ
95352008-03-10 Matt Rice <ratmice@gmail.com>
9536
9537 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9538
9971ac47
UW
95392008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9540
9541 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9542 of the data passing to strtoulst function.
9543 (info_spu_signal_command): Likewise.
9544
835670cf
VP
95452008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9546
9547 * mi/mi-interp.c (mi_command_loop): Remove
9548 commented-out code.
680b56ce 9549
be86555c
JB
95502008-03-07 Joel Brobecker <brobecker@adacore.com>
9551
9552 * remote.c (extended_remote_attach_1): Make local variable pid an int
9553 instead of a pid_t.
9554
4d7b2d5b
JB
95552008-03-07 Joel Brobecker <brobecker@adacore.com>
9556
9557 * solib-svr4.c (svr4_same_1): New function, originally extracted
9558 from svr4_same and expanded to handle the sparc64 case.
9559 (svr4_same): Move up and reimplement using svr4_same_1.
9560 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9561
61fed90e
RR
95622008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9563
9564 * MAINTAINERS: Move self to Paper trail.
9565
b803fb0f
DJ
95662008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9567
9568 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9569 * event-loop.c (call_async_signal_handler): New.
9570 * event-loop.h (call_async_signal_handler)
9571 (gdb_call_async_signal_handler): Declare.
9572 (mark_async_signal_handler): Add comments.
9573 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9574 * mingw-hdep.c (sigint_event, sigint_handler): New.
9575 (gdb_select): Use them. Wait for the readline signal handler
9576 to finish.
9577 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9578 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9579 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9580 New.
9581 (remote_fileio_ctrl_c_signal_handler): Use
9582 gdb_call_async_signal_handler.
9583 (initialize_remote_fileio): Initialize sigint_fileio_token.
9584 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9585 not initialize tokens here.
9586 (handle_remote_sigint_twice): Likewise. Reinstall
9587 handle_remote_sigint.
9588 (async_remote_interrupt_twice): Just call interrupt_query.
9589 (cleanup_sigint_signal_handler): Do not delete tokens.
9590 (remote_interrupt, remote_interrupt_twice): Use
9591 gdb_call_async_signal_handler.
9592 (interrupt_query): Reinstall the default signal handler.
9593 (_initialize_remote): Initialize tokens here.
9594
8f4d54ed
JB
95952008-03-04 Joel Brobecker <brobecker@adacore.com>
9596
9597 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9598 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9599 Change the type of the lr register to code_ptr.
9600 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9601 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9602 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9603 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9604 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9605 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9606 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9607
95ece428
JW
96082008-03-03 James E. Wilson <wilson@tuliptree.org>
9609
9610 * MAINTAINERS: Update my email address.
9611
686a5eed
KS
96122008-03-03 Keith Seitz <keiths@redhat.com>
9613
9614 From Dave Murphy <davem@devkitpro.org>:
9615 * configure.ac: Set tcl configdir to win under mingw.
9616 * configure: Regenerate.
9617
fa4727a6
DJ
96182008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9619
9620 * breakpoint.c (fetch_watchpoint_value): New function.
9621 (update_watchpoint): Set and clear val_valid. Use
9622 fetch_watchpoint_value. Handle unreadable values on the
9623 value chain. Correct check for user-requested array watchpoints.
9624 (breakpoint_init_inferior): Clear val_valid.
9625 (watchpoint_value_print): New function.
9626 (print_it_typical): Use it. Do not free or clear old_val. Print
9627 watchpoints even if old_val == NULL.
9628 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9629 becoming readable or unreadable.
9630 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9631 (do_enable_watchpoint): Likewise.
9632 * breakpoint.h (struct breakpoint): Update comment for val. Add
9633 val_valid.
9634 * NEWS: Mention watchpoints on inaccessible memory.
9635
9b7d9019 96362008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9637
9638 * Makefile.in (i386-nat.o): Update.
9639 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9640 i386_use_watchpoints.
9641 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9642 i386_use_watchpoints.
9643 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9644 (i386_stopped_by_watchpoint): Update call.
9645 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9646 * config/i386/nm-i386.h: Conditionalize definitions on
9647 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9648 (i386_use_watchpoints): Declare.
9649 (i386_stopped_data_address): Update.
9650 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9651 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9652
c24d7425 96532008-02-29 Joel Brobecker <brobecker@adacore.com>
9654
9655 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9656 * version.in: Bump version to 6.8.50.20080229-cvs.
9657
a7dfd010
MD
96582008-02-28 Markus Deuling <deuling@de.ibm.com>
9659
9660 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9661 properly.
9662
258c00cc
TT
96632008-02-28 Tom Tromey <tromey@redhat.com>
9664
9665 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9666
8edfe269
DJ
96672008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9668
9669 * infcmd.c (kill_if_already_running): Make static. Use
9670 target_require_runnable.
9671 * target.c (target_require_runnable): New.
9672 * target.h (target_require_runnable): Declare.
9673
0d6ba1b1
DJ
96742008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9675
9676 * frame.c (reinit_frame_cache): Only annotate if frames were
9677 previously valid.
9678
6fe305f7
UW
96792008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9680
9681 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9682 * regformats/reg-ppc64.dat: Likewise.
9683
9b4b61c8
UW
96842008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9685
9686 * features/Makefile (%.dat): Emit xmltarget statement.
9687
9688 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9689 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9690
9691 * regformats/arm-with-iwmmxt.dat: Regenerate.
9692 * regformats/mips64-linux.dat: Regenerate.
9693 * regformats/mips-linux.dat: Regenerate.
9694 * regformats/rs6000/powerpc-32.dat: Regenerate.
9695 * regformats/rs6000/powerpc-64.dat: Regenerate.
9696 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9697
9698 * regformats/reg-arm.dat: Add xmlarch statement.
9699 * regformats/reg-i386.dat: Likewise.
9700 * regformats/reg-i386-linux.dat: Likewise.
9701 * regformats/reg-x86-64-linux.dat: Likewise.
9702 * regformats/reg-spu.dat: Likewise.
9703
20b4711e
DJ
97042008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9705
9706 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9707 an error.
9708
1843f87b
DJ
97092008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9710
9711 * utils.c (debug_timestamp): New.
9712 (vfprintf_unfiltered): Print timestamps if requested.
9713 (show_debug_timestamp): New.
9714 (initialize_utils): Register "set debug timestamp".
9715 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9716
6a048695
JB
97172008-02-27 Joel Brobecker <brobecker@adacore.com>
9718
9719 * breakpoint.c (skip_prologue_sal): New function.
9720 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9721 computed from a line number.
9722
0b998f49
JB
97232008-02-27 Joel Brobecker <brobecker@adacore.com>
9724
9725 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9726 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9727 Set PC register type to "code_ptr".
9728 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9729 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9730 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9731 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9732 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9733 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9734 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9735 Regenerate.
9736
d05b4ac3
UW
97372008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9738
9739 * regformats/regdat.sh: Rename init_registers function in
9740 generated file to init_registers_${name}.
9741
9742 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9743 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9744 * regformats/reg-s390x.dat: Set "name" to s390x.
9745
a5d9d57d
DJ
97462008-02-26 Greg Law <glaw@undo-software.com>
9747
9748 * regcache.c (registers_changed): Call reinit_frame_cache.
9749
e25c958c
DJ
97502008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9751
9752 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9753 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9754 and svr4_fetch_objfile_link_map.
9755 * Makefile.in (sh-linux-tdep.o): Update.
9756
5daa78cc
TJB
97572008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9758
9759 * amd64-tdep.c (amd64_classify): Add support for decimal float
9760 types.
9761 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9762 use the struct return convention.
9763
54e52265
VP
97642008-02-26 Nick Roberts <nickrob@snap.net.nz>
9765
9766 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9767 to old format. Discard breakpoint address if shared library is
9768 unloaded.
9769 (breakpoint_1): Adjust formatting of table header accordingly.
9770
d8f2712d
VP
97712008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9772
9773 * remote.c (remote_get_threadlist): If the response
9774 is empty, don't try to parse it.
9775
05ce04a4
VP
97762008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9777
9778 Unbreak 'target async'.
680b56ce
AS
9779 * serial.c (serial_async): Set the
9780 handler function before enabling async
9781 mode.
05ce04a4 9782
b36ec657
DJ
97832008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9784
9785 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9786
df7df359
PA
97872008-02-21 Pedro Alves <pedro@codesourcery.com>
9788
9789 * remote.c (extended_remote_attach_1): Set attach_flag.
9790 (extended_remote_create_inferior_1): Clear attach_flag.
9791
7cd25cfc
DJ
97922008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9793
9794 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9795 r_brk_offset.
9796 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9797 * solib-svr4.c (solib_svr4_r_brk): New.
9798 (open_symbol_file_object, svr4_current_sos): Always check the
9799 debug base.
9800 (svr4_fetch_objfile_link_map): Do not set debug_base.
9801 (enable_break): Use r_brk if it is set.
9802 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9803 (svr4_lp64_fetch_link_map_offsets): Likewise.
9804 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9805
07ea644b
MD
98062008-02-20 Markus Deuling <deuling@de.ibm.com>
9807 Mark Kettenis <kettenis@gnu.org>
9808
9809 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9810 trad_frame_saved_reg.
680b56ce 9811 (trad-frame.h): New include.
07ea644b
MD
9812
9813 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 9814 instead of frame_obstack_zalloc.
07ea644b
MD
9815 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9816
680b56ce 9817 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 9818
40887e1a
MD
98192008-02-20 Markus Deuling <deuling@de.ibm.com>
9820
9821 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9822 from disassemble_info instead of gdbarch_byte_order.
9823
9824 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9825 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9826
ae4b2284
MD
98272008-02-20 Markus Deuling <deuling@de.ibm.com>
9828
9829 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9830 gdbarch as parameter.
9831
9832 * gdbarch.{c,h}: Regenerate.
9833
9834 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9835 parameter.
9836 * mem-break.c (default_memory_insert_breakpoint)
9837 (default_memory_remove_breakpoint): Likewise.
9838 * target.h (default_memory_remove_breakpoint)
9839 (default_memory_insert_breakpoint): Likewise.
9840
9841 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9842 parameter. Replace current_gdbarch by gdbarch.
9843 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9844 (m32r_memory_remove_breakpoint): Likewise.
9845
d9bf65d5
DJ
98462008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9847
9848 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9849
b93b6ca7
JB
98502008-02-19 Joel Brobecker <brobecker@adacore.com>
9851
9852 * NEWS: Add entry describing Add support improvements.
9853
4ed226fe
MD
98542008-02-18 Markus Deuling <deuling@de.ibm.com>
9855
9856 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9857 M68K_FP0_REGNUM.
9858
caaa79ad
MD
98592008-02-18 Markus Deuling <deuling@de.ibm.com>
9860
9861 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9862 register_offset_hack anymore.
9863
9864 * regcache.{c,h} (register_offset_hack): Remove.
9865
e38c262f
MD
98662008-02-18 Markus Deuling <deuling@de.ibm.com>
9867
9868 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9869
9870 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9871 current_gdbarch by gdbarch.
9872 (hppa64_hpux_find_global_pointer): Likewise.
9873 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9874 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9875 find_global_pointer.
9876
9877 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9878 parameter.
9879 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9880
9881 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9882 of gdbarch_num_regs.
9883
9884 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 9885 replace current_gdbarch by gdbarch.
e38c262f
MD
9886 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9887
206988c4
MD
98882008-02-18 Markus Deuling <deuling@de.ibm.com>
9889
9890 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9891 and replace current_gdbarch by gdbarch.
9892
9893 (store_register): Update call for exec_one_dummy_insn.
9894 (fetch_register, store_register): Update call of regmap.
9895
9896 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9897 parameter and replace current_gdbarch by gdbarch.
680b56ce 9898
206988c4
MD
9899 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9900 the current architecture. Update call for getregs_supplies and
9901 getfpregs_supplies.
9902 (ppcnbsd_fetch_inferior_registers): Likewise.
9903
680b56ce 9904 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
9905 replace current_gdbarch by gdbarch.
9906 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9907 get_regcache_arch to get at the current architecture. Update call for
9908 getfpregs_supplies.
9909
f642be6b
MD
99102008-02-18 Markus Deuling <deuling@de.ibm.com>
9911
9912 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 9913 variables.
f642be6b 9914
b1f2bf01
MD
99152008-02-15 Markus Deuling <deuling@de.ibm.com>
9916
9917 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9918
ee163bf5
VP
99192008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9920
9921 * NEWS: Mention pending breakpints in MI.
680b56ce 9922
f6fbcbf9
MD
99232008-02-14 Markus Deuling <deuling@de.ibm.com>
9924
9925 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9926
36af4ef6
MD
99272008-02-13 Markus Deuling <deuling@de.ibm.com>
9928
9929 Add script to build and test GDB using enable-targets=all.
9930
9931 * gdb_buildall.sh: New file.
9932
94a0e877
MG
99332008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9934
9935 * NEWS (New native configurations): Xtensa GNU/Linux.
9936 (New targets): Xtensa GNU/Linux.
9937 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9938 xtensa-linux-tdep.o
9939 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9940 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9941 * configure.tgt (xtensa*-*-linux*): New entry.
9942 * xtensa-config.c (xtensa_tdep): New variable.
9943 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9944 (rmap): Change format based on new macro XTREG.
9945 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9946 * xtensa-linux-nat.c: New.
9947 * xtensa-linux-tdep.c: New.
9948 * xtensa-xtregs.c: New.
9949 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9950 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9951 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9952 (xtensa_register_t): New field coprocessor.
9953 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9954 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9955 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9956 Update to handle privileged registers.
9957 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9958 (xtensa_push_dummy_call): Set windowstart register correctly.
9959 (call0_analyze_prologue): Initialize xtensa_default_isa.
9960 (xtensa_derive_tdep): New.
9961 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9962 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9963 Call xtensa_derive_tdep().
9964 * config/xtensa/linux.mh: New.
9965 * regformats/reg-xtensa.dat: New.
9966
b7ee1b0a 99672008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
9968
9969 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9970 (filenames.h): New include.
9971 * Makefile.in (corelow.o): Add dependency for filenames.h.
9972
8da2a1df
DJ
99732008-02-08 Doug Evans <dje@google.com>
9974
9975 * source.c (find_and_open_source): Always rewrite absolute filenames.
9976
776592bf
DE
99772008-02-07 Doug Evans <dje@google.com>
9978
9979 * breakpoint.c: #include "hashtab.h".
9980 (ambiguous_names_p): New fn.
9981 (update_breakpoint_locations): When restoring bp enable status, don't
9982 compare function names if any functions have same name.
9983 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9984
d6565258
JB
99852008-02-07 Joel Brobecker <brobecker@adacore.com>
9986
9987 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9988 instead of just a VEC*. Update use of SV.
9989 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9990
6d53d0af
JB
99912007-02-07 Joel Brobecker <brobecker@adacore.com>
9992
9993 * NEWS: Put all new commands since gdb-6.7 together.
9994
2ba95b9b
JB
99952007-02-07 Joel Brobecker <brobecker@adacore.com>
9996
9997 * ada-lang.c: #include "vec.h".
9998 (struct string_vector, new_string_vector, string_vector_append):
9999 Delete.
10000 (char_ptr): New typedef.
10001 (DEF_VEC_P (char_ptr)): New VEC type.
10002 (symbol_completion_add): Update profile to take the new VEC type
10003 instead of the old string_vector structure. Update code accordingly.
10004 (ada_make_symbol_completion_list): Use the new VEC type instead of
10005 the old string_vector structure, and update the code accordingly.
10006 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10007
4ae0885a
PM
100082008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10009
10010 * p-exp.y: Set current_type in missing places.
10011 (leftdiv_is_integer): New static variable.
10012 Typecast right operand of BINOP_DIV to long_double if both operands
10013 are integers.
10014
06b1d59c
MR
100152008-02-06 Maciej W. Rozycki <macro@mips.com>
10016
10017 * remote-mips.c (set_breakpoint): Rename to...
10018 (mips_set_breakpoint): ... this.
10019 (clear_breakpoint): Rename to...
10020 (mips_clear_breakpoint): ... this.
10021 (common_breakpoint): Rename to...
10022 (mips_common_breakpoint): ... this.
10023 (check_lsi_error): Rename to...
10024 (mips_check_lsi_error): ... this.
10025
41d27058
JB
100262007-02-05 Joel Brobecker <brobecker@adacore.com>
10027
10028 * language.h (struct language_defn): Add new field
10029 la_make_symbol_completion_list.
10030 * symtab.c (default_make_symbol_completion_list): Renames
10031 make_symbol_completion_list.
10032 (make_symbol_completion_list): New function.
10033 * symtab.h (default_make_symbol_completion_list): Add declaration.
10034 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10035 (auto_language, local_language): Likewise.
10036 * objc-lang.c (objc_language_defn): Likewise.
10037 * scm-lang.c (scm_language_defn): Likewise.
10038 * m2-lang.c (m2_language_defn): Likewise.
10039 * f-lang.c (f_language_defn): Likewise.
10040 * jv-lang.c (java_language_defn): Likewise.
10041 * p-lang.c (pascal_language_defn): Likewise.
10042 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10043 (minimal_language_defn): Likewise.
10044 * ada-lang.c (struct string_vector): New structure.
10045 (new_string_vector, string_vector_append, ada_unqualified_name)
10046 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10047 (ada_make_symbol_completion_list): New functions.
10048 (ada_language_defn): Set la_make_symbol_completion_list.
10049 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10050 this function is static.
10051
ee3a2f01
KB
100522008-02-05 Kevin Buettner <kevinb@redhat.com>
10053
10054 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10055 to account for call site optimizations.
10056
d844e34b
JB
100572008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10058
10059 * tracepoint.c (read_actions): Handle end-of-text indicator
10060 in action list properly. (Committed by Jim Blandy)
10061
02e4669d
JB
100622008-02-05 Jim Blandy <jimb@red-bean.com>
10063
10064 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10065 pseudoregister, not an internal error.
85ecb32b 10066 Reported by: Andrzej Zaborowski
02e4669d 10067
c39c8256
VP
100682008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10069
10070 * varobj.c (c_value_of_variable): Use xstrdup.
10071
ae7d22a6
VP
100722008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10073
10074 Update stored rendition of varobj value when format changes.
10075 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10076 print_value.
10077 (c_value_of_variable): Return print_value.
ae7d22a6 10078
81fe8080
DE
100792008-02-03 Doug Evans <dje@google.com>
10080
301f0ecf
DE
10081 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10082 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10083 * valops.c (value_one): New function.
10084 * value.h (value_one): Declare.
10085
10086 Fix argument promotion for binary arithmetic ops for C.
10087 * valarith.c (unop_result_type): New fn.
10088 (binop_result_type): New fn.
10089 (value_binop): Move result type computation to binop_result_type.
10090 (value_pos, value_neg, value_complement): Move result type
10091 computation to unop_result_type.
10092
81fe8080
DE
10093 PR 2384
10094 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10095 Return basetype, fieldno if found. All callers updated.
10096 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10097 objfile.
10098 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10099 * symfile.h (fill_in_vptr_fieldno): Delete.
10100
41808ebe
DE
101012008-02-02 Doug Evans <dje@google.com>
10102
f8597ac3
DE
10103 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10104
41808ebe
DE
10105 * typeprint.c (*): Whitespace cleanup.
10106
f964a756
MK
101072008-02-02 Mark Kettenis <kettenis@gnu.org>
10108 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10109 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10110
10111 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10112 don't fit into registerson the stack the way GCC does.
10113
b06ead72
JB
101142008-02-01 Joel Brobecker <brobecker@adacore.com>
10115
10116 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10117 hash table for Ada symbols. Just store the linkage name as is,
10118 and leave the demangled_name as NULL.
10119
2cfa0c8d
JB
101202007-02-01 Joel Brobecker <brobecker@adacore.com>
10121
10122 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10123 in the global scope.
10124 (new_symbol): Likewise.
10125
98deb0da 101262008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10127
10128 * breakpoint.c (break_command_1): Return void.
10129 (break_command_really): Return void. Rethrow
10130 exceptions instead of returning.
10131 (gdb_breakpoint): Remove the error_message parameter.
10132 Return void. Rename to set_breakpoint.
10133 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10134 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10135 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10136 event hooks even if exception is thrown. Adjust to
10137 gdb_breakpoint interface changes.
10138
98deb0da 10139
ce0451ad
TJB
101402008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10141
10142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10143 float in both first and second word in the doubleword, to support
10144 old and new ABIs.
10145
723a2275
VP
101462008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10147
10148 Properly rethrow exception. This fixes errors
10149 about non-existent functions for -break-insert.
680b56ce
AS
10150 * breakpoint.c (break_command_really): Use throw_exception
10151 for rethrowing. If rethrowing, don't print the exception.
723a2275 10152
d64a946d
TJB
101532008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10154
10155 * NEWS: Mention Decimal Floating Point support.
10156
02b156f5
JB
101572008-01-31 Joel Brobecker <brobecker@adacore.com>
10158
10159 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10160 value type to builtin_type_void_func_ptr.
10161
a16b8bcd
UW
101622008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10163
10164 * s390-tdep.c (is_float_singleton, is_float_like,
10165 alignment_of, s390_return_value): Make checks for
10166 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10167
f949c649
TJB
101682008-01-31 Luis Machado <luisgpm@br.ibm.com>
10169 Thiago Jung Bauermann <bauerman@br.ibm.com>
10170
10171 * infcmd.c (default_print_registers_info): Also print hex
10172 raw contents for TYPE_CODE_DECFLOAT registers.
10173 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10174 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10175 (rs6000_register_name): Add support for DFP pseudo-registers.
10176 (rs6000_pseudo_register_type): Likewise.
10177 rs6000_pseudo_register_reggroup_p): Likewise.
10178 (ppc_pseudo_register_read): New function.
10179 (ppc_pseudo_register_write): Likewise.
10180 (rs6000_pseudo_register_read): Likewise.
10181 (rs6000_pseudo_register_write): Likewise.
10182 (e500_pseudo_register_read): Move checks to
10183 rs6000_pseudo_register_read.
10184 (e500_pseudo_register_write): Move checks to
10185 rs6000_pseudo_register_write.
10186 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10187 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10188 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10189 num_pseudo_regs to account for DFP pseudo regs.
10190
5a9e69ba
TJB
101912008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10192
10193 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10194 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10195 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10196 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10197 e500_pseudo_register_read, e500_pseudo_register_write): Use
10198 IS_SPE_PSEUDOREG macro.
10199 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10200 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10201 Remove initialization of tdep->ppc_ev31_regnum.
10202
4e885b20
JB
102032008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10204
10205 * printcmd.c (print_formatted): Handle references as for unformatted
10206 prints.
10207
80f064a2
JB
102082008-01-30 Joel Brobecker <brobecker@adacore.com>
10209
10210 * eval.c (evaluate_subexp_standard): Add handling of user
10211 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10212
9b3442ee
PM
102132008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10214
10215 * eval.c (evaluate_subexp_standard): Support
10216 BINOP_INTDIV opcode.
10217
d118ef87
PH
102182008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10219
10220 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10221 BINOP_MAX cases.
10222 For BINOP_EXP, use length and signedness of left operand only for
10223 result, as for shifts.
10224 For integral operands to BINOP_EXP, use new integer_pow and
10225 uinteger_pow functions so as to get full range of results.
10226 (integer_pow): New function.
10227 (uinteger_pow): New function.
10228
d56d46f5
VP
102292008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10230
10231 Use vector for varobj_list_children interface.
680b56ce
AS
10232 * gdb/varobj.c (varobj_list_children): Return vector
10233 of varobjs.
10234 * gdb/varobj.h (varobj_list_children): Adjust
10235 prototype.
10236 (varobj_p): Declare. Declare vector thereof.
10237 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10238 for varobj_list_children change.
d56d46f5
VP
10239 * Makefile.in (varobj_h): Update dependencies.
10240
1300a2f4
TJB
102412008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10242
10243 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10244 TYPE_CODE_DECFLOAT arguments.
10245 (ppc64_sysv_abi_push_dummy_call) Likewise.
10246 (get_decimal_float_return_value): New function.
10247 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10248 values by calling get_decimal_float_return_value.
10249 (ppc64_sysv_abi_return_value): Likewise.
10250
95ef687d
NR
102512008-01-30 Nick Roberts <nickrob@snap.net.nz>
10252
10253 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10254 for preprocessor macro information. Formatting changes.
10255
2d717e4f
DJ
102562008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10257
10258 * remote.c (struct remote_state): Add cached_wait_status.
10259 (remote_exec_file): New variable.
10260 (PACKET_vAttach, PACKET_vRun): New constants.
10261 (extended_remote_restart): Do not query for status.
10262 (struct start_remote_args): New.
10263 (remote_start_remote): Take it as a second argument. Check
10264 whether the target is running. Issue an error for non-running
10265 non-extended targets. Cache the wait status. Set inferior_ptid
10266 here.
10267 (remote_open_1): Prompt to disconnect non-running targets. Make
10268 sure the target is marked running. Do not set inferior_ptid here.
10269 Update call to remote_start_remote. Do not call remote_check_symbols
10270 if the target is not running.
10271 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10272 argument. Handle a non-running target.
10273 (remote_detach): Use it.
10274 (extended_remote_detach): New.
10275 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10276 (extended_remote_attach_1, extended_remote_attach)
10277 (extended_async_remote_attach): New.
10278 (remote_vcont_resume): Remove unused variable.
10279 (remote_wait, remote_async_wait): Use any cached wait status.
10280 (putpkt_binary, getpkt): Clear any cached wait status.
10281 (extended_remoute_mourn_1): New.
10282 (extended_remote_mourn): Use it.
10283 (extended_async_remote_mourn, extended_remote_run): New.
10284 (extended_remote_create_inferior_1): New.
10285 (extended_remote_create_inferior): Use it.
10286 (extended_remote_async_create_inferior): Likewise.
10287 (remote_xfer_partial): Skip for non-executing targets.
10288 (init_extended_remote_ops): Set to_detach and to_attach.
10289 (init_extended_async_remote_ops): Likewise. Use
10290 extended_async_remote_mourn.
10291 (_initialize_remote): Register vAttach, vRun, and
10292 set remote exec-file.
10293 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10294
e85a822c
DJ
102952008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10296
10297 * Makefile.in (symfile.o): Update.
10298 * NEWS: Mention exec tracing support.
10299 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10300 exec events.
10301 * infcmd.c (kill_if_already_running, detach_command)
10302 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10303 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10304 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10305 targets. Apply the sysroot path to the loaded executable. Use
10306 no_shared_libraries.
10307 * linux-nat.c (linux_child_follow_fork): Print fork following
10308 messages if verbose.
10309 (kill_wait_callback): Kill again before waiting a second time.
10310 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10311 no_shared_libraries.
10312
9db13498
JB
103132008-01-29 Joel Brobecker <brobecker@adacore.com>
10314
10315 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10316
b4d5ed91
JB
103172008-01-29 Joel Brobecker <brobecker@adacore.com>
10318
10319 * nto-tdep.h: Remove #include "defs.h".
10320 * nto-tdep.c: Add #include "defs.h".
10321 * Makefile.in (nto_tdep_h): Update dependencies.
10322 (nto-tdep.o): Likewise.
10323
107313f7 103242008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10325
10326 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10327 and use it.
10328 (proceed, start_remote): Update call to wait_for_inferior.
10329 * inferior.h (wait_for_inferior): Update declaration.
10330 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10331 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10332 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10333 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10334
3f4178d6
DJ
103352008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10336
680b56ce 10337 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10338 returned value from gdb_value_ind.
10339 (c_describe_child): Likewise.
10340 (cplus_describe_child): Fixed a typo.
10341
5eeba8d4
JB
103422008-01-29 Jim Blandy <jimb@red-bean.com>
10343
10344 * MAINTAINERS: Update my info.
10345
a5606eee
VP
103462008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10347
10348 Use multiple locations for hardware watchpoints.
10349 This eliminates the need to traverse value chain, doing
10350 various checks, in three different places.
10351
680b56ce
AS
10352 * breakpoint.h (struct bp_location): New fields
10353 lengths and watchpoint_type.
10354 (struct breakpoint): Remove the val_chain field.
10355 * breakpoint.c (is_hardware_watchpoint): New.
10356 (free_valchain): Remove.
10357 (update_watchpoint): New.
10358 (insert_bp_location): For hardware watchpoint, just
10359 directly insert it.
10360 (insert_breakpoints): Call update_watchpoint_locations
10361 on all watchpoints. If we have failed to insert
10362 any location of a hardware watchpoint, remove all inserted
10363 locations.
10364 (remove_breakpoint): For hardware watchpoints, directly
10365 remove location.
10366 (watchpoints_triggered): Iterate over locations.
10367 (bpstat_stop_status): Use only first location of
10368 a resource watchpoint.
10369 (delete_breakpoint): Don't call free_valchain.
10370 (print_one_breakpoint): Don't print all
10371 locations for watchpoints.
10372 (breakpoint_re_set_one): Use update_watchpoint for
10373 watchpoints.
a5606eee 10374
0b3de036
VP
103752008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10376
10377 Don't reset watchpoint block on solib load.
10378
680b56ce
AS
10379 * breakpoint.c (insert_bp_location): For watchpoints,
10380 recompute condition.
10381 (breakpoint_re_set_one): Instead of recomputing value
10382 and condition for watchpoints, just reset value and
10383 let insert_breakpoints/insert_bp_location recompute it.
10384 Don't do anything about disabled watchpoint.
0b3de036 10385
c3940723
PM
103862008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10387
10388 * valarith.c (value_binop): Handle unsigned integer
10389 division by zero.
10390
83845630
KB
103912008-01-28 Kevin Buettner <kevinb@redhat.com>
10392
10393 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10394 instruction pattern that appears frequently in position
10395 independent code. Fix bug in code which looks for "fmov" and
10396 backtracks if no "fmov" is found.
10397
9ce5d3bb
DE
103982008-01-28 Doug Evans <dje@google.com>
10399
10400 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10401 Reformat comments to 80 columns.
10402 Move local var def closer to only use.
9ce5d3bb 10403
c78d192c
DJ
104042008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10405
10406 * fork-child.c (SHELL_FILE): Remove #ifndef.
10407 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10408
e11481da
PM
104092008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10410
10411 * i386-tdep.c (i386_skip_noop): New function.
10412 (i386_analyze_prologue): Call i386_skip_noop function.
10413
244e85c8
MS
104142008-01-24 Michael Snyder <msnyder@specifix.com>
10415
10416 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10417 * win32-nat.c (win32_xfer_partial): Ditto.
10418 * target.c (default_xfer_partial): Minor whitespace adjustment.
10419
dd6be234
PA
104202008-01-24 Pedro Alves <pedro@codesourcery.com>
10421
10422 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10423 strip bit 1 even if pc doesn't point to thumb code.
10424
9fa2223d
DJ
104252008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10426
10427 * remote.c (remote_wait): Handle SIGINT between packets.
10428 (remote_async_wait): Likewise.
10429
93815fbf
VP
104302008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10431 Chris Demetriou <cgd@google.com>
10432
680b56ce
AS
10433 * thread.c (add_thread_silent): Renamed
10434 from add_thread.
10435 (print_thread_events): New variable definition.
10436 (show_print_thread_events): New function.
10437 (_initialize_thread): Add "set print thread-events" and
10438 "show print thread-events" commands.
10439 (add_thread): Announce new thread.
10440 * gdbthread.h (add_thread_silent): Declare.
10441 (print_thread_events): New variable declaration.
10442 * inf-ttrace.c (inf_ttrace_wait): Don't
10443 inform about new thread, as add_thread is always
10444 called too, and will take care of that.
10445 * infrun.c (handle_inferior_event): Likewise.
10446 * procfs.c (procfs_wait): Likewise.
10447 * remote.c (remote_currthread): Likewise.
10448 * sol-thread.c (sol_thread_wait): Likewise.
10449 * win32-nat.c (get_win32_debug_event): Likewise.
10450 * linux-thread-db.c (attach_thread): Likewise.
10451 Remove the verbose parameter.
10452 (check_event): Make detach_thread be verbose
10453 only if print_thread_events is set.
10454 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10455 about new thread. This is called only from
10456 linux-thread-db.c:attach_thread, which will take care.
10457 Remove the verbose parameter.
10458 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10459
b4d7c9a6
NR
104602008-01-23 Nick Roberts <nickrob@snap.net.nz>
10461
10462 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10463
60c46647
VP
104642008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10465
10466 * breakpoint.c (break_command_really): New parameter
10467 ignore_count.
10468 (break_command_1): Pass 0 as
10469 ignore_count to break_command_really.
10470 (gdb_breakpoint): Pass ignore_count to
10471 break_command_really.
10472
e84605cd
KB
104732008-01-21 Kevin Buettner <kevinb@redhat.com>
10474
10475 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10476 sigcontext struct via pointer.
10477 (struct sigframe comment): Update to show new field `psc'.
10478
9d9cd7ac
VP
104792008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10480
10481 * infrun.c (handle_inferior_event): If
10482 we failed to remove breakpoints, error,
10483 don't try to increment PC by hand.
10484
af5ca30d
NH
104852008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10486
10487 Add NetBSD/hppa target and host support.
10488
10489 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10490 (hppabsd_gregset): Move to ...
10491 (hppabsd_regset_from_core_section): Rename
10492 hppaobsd_regset_from_core_section and move to ...
10493 (hppabsd_find_global_pointer): Update comment.
10494 (hppabsd_init_abi): Make global. Do not register
10495 hppabsd_regset_from_core_section.
10496 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10497 move to ...
10498 (_initialize_hppabsd_tdep): Move to ...
10499 * hppaobsd-tdep.c: ... here. New file.
10500 * hppnbsd-tdep.c: New file.
10501 * hppnbsd-nat.c: New file.
680b56ce 10502 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10503 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10504 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10505 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10506 * configure.host (hppa*-*-netbsd*): New entry.
10507 * configure.tgt (hppa*-*-netbsd*): New entry.
10508 (hppa*-*-openbsd*): Update.
10509 * NEWS (New native configuration): Mention NetBSD/hppa.
10510 (New targets): Mention NetBSD/hppa.
10511
32c9a795
MD
105122008-01-18 Markus Deuling <deuling@de.ibm.com>
10513
10514 * gdbarch.sh (function_list): Add new property bits_big_endian to
10515 gdbarch structure.
10516 * gdbarch.{c,h}: Regenerate.
10517
10518 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10519 gdbarch_bits_big_endian (comment).
10520 (unpack_field_as_long, modify_field): Likewise.
10521 * value.h: Likewise (comment).
10522 * valops.c (value_slice): Likewise.
10523 * valarith.c (value_subscript, value_bit_index): Likewise.
10524 * gdbtypes.h (field): Likewise (comment).
10525 * eval.c (evaluate_subexp_standard): Likewise.
10526 * dwarf2read.c (dwarf2_add_field): Likewise.
10527 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10528 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10529
32c9a795
MD
10530 * defs.h (BITS_BIG_ENDIAN): Remove.
10531
1e5e79d0
MD
105322008-01-18 Markus Deuling <deuling@de.ibm.com>
10533
10534 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10535 function calls.
10536 * m2-exp.y (yylex): Likewise.
10537 * objc-exp.y (yylex): Likewise.
10538
10539 * defs.h (DEPRECATED_STREQN): Remove.
10540
fabda5a7
L
105412008-01-17 H.J. Lu <hjl.tools@gmail.com>
10542
10543 * MAINTAINERS: Update my email address.
10544
92726479
JB
105452008-01-17 Jim Blandy <jimb@codesourcery.com>
10546
10547 * README: Mention gdbserver/README.
10548
ef80d18e
PM
105492008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10550
10551 * valarith.c (value_binop): Handle BINOP_INTDIV
10552 for unsigned and signed integers.
10553
1de90795
UW
105542008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10555
10556 * s390-tdep.c (s390_gdbarch_init): Set default long double
10557 type to 128-bit IEEE quad.
10558
c70bd6f3
JB
105592008-01-17 Joel Brobecker <brobecker@adacore.com>
10560
10561 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10562
ba759613
MK
105632008-01-16 Mark Kettenis <kettenis@gnu.org>
10564
77d49ac6
MK
10565 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10566
ba759613
MK
10567 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10568 * value.c: All callers changed.
10569
7ecb6532
MD
105702008-01-16 Markus Deuling <deuling@de.ibm.com>
10571
10572 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10573 DEPRECATED_STREQ by its expression.
10574 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10575 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10576 (scan_xcoff_symtab): Likewise.
10577 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10578 * f-lang.c (find_common_for_function): Likewise.
10579 * objc-exp.y (parse_number): Likewise.
10580
10581 * defs.h (DEPRECATED_STREQ): Remove.
10582
d15cf01c
MD
105832008-01-16 Markus Deuling <deuling@de.ibm.com>
10584
10585 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10586 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10587 get_frame_arch to get at the current_architecture. Update AM33_MODE
10588 call.
10589 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10590 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10591 architecture.
10592 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10593
f8028488
MD
105942008-01-16 Markus Deuling <deuling@de.ibm.com>
10595
680b56ce 10596 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10597 parameter.
10598 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10599
10600 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10601 current_gdbarch by gdbarch. Update caller.
10602
10603 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10604 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10605 the current architecture. Update calls of
10606 amd64_native_gregset_supplies_p.
10607 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10608 (amd64bsd_store_inferior_registers): Likewise.
10609
e101270f
MD
106102008-01-16 Markus Deuling <deuling@de.ibm.com>
10611
10612 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10613 Replace current_gdbarch by gdbarch. Update caller.
10614
063e58ba
MD
106152008-01-16 Markus Deuling <deuling@de.ibm.com>
10616
10617 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10618 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10619 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10620 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10621 (stabsect_build_psymtabs): Fix indentation.
10622
662fb31b
MS
106232008-01-15 Michael Snyder <msnyder@specifix.com>
10624
10625 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10626
c1766e7d
PM
106272008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10628
10629 * win32-nat.c (win32_create_inferior): Restore code calling
10630 CloseHandle on ProcessInformation structure.
10631
5ed10e6e
NH
106322008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10633
10634 * configure.ac: Check for void * as 3 argument of ptrace.
10635 * configure: regenerate.
10636
be8626e0
MD
106372008-01-11 Markus Deuling <deuling@de.ibm.com>
10638
10639 * alpha-tdep.c (alpha_heuristic_proc_start)
10640 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10641 current_gdbarch by gdbarch.
10642
10643 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10644 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10645 call.
10646
10647 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10648 get_frame_arch to get at the current architecture by frame_info. Update
10649 alpha_sigtramp_register_address call.
10650
10651 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10652 current_gdbarch by gdbarch. Update caller.
10653 (convert_to_extended, convert_from_extended): Add endianess parameter
10654 for comparison. Update caller.
10655 (arm_extract_return_value, arm_store_return_value): Use
10656 get_regcache_arch to get at the current architecture.
10657
10658 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10659 current_gdbarch by gdbarch. Update caller.
10660 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10661 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10662
10663 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10664 gdbarch as parameter. Update caller.
be8626e0
MD
10665 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10666 current_gdbarch by gdbarch. Update caller.
10667
680b56ce 10668 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10669 update caller. Replace current_gdbarch by gdbarch.
10670
10671 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10672 the current architecture. Replace current_gdbarch by gdbarch.
10673 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10674 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10675 expression. Add gdbarch as parameter and replace current_gdbarch with
10676 it. Update caller.
10677 (M6811_TDEP): Remove.
10678 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10679 architecture.
680b56ce 10680 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
10681 current_gdbarch by gdbarch. Update caller.
10682
10683 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10684 update caller.
10685 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10686 by gdbarch.
10687
10688 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10689 caller. Relace current_gdbarch by gdbarch.
10690 (altivec_register_p, spe_register_p): Likewise.
10691 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10692 parameter.
10693 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10694 altivec_register_p and spe_register_p.
10695
680b56ce 10696 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
10697 caller. Replace current_gdbarch by gdbarch.
10698 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 10699 architecture.
be8626e0
MD
10700
10701 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10702 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10703 current_gdbarch by gdbarch. Update caller.
10704 (sparc_frame_cache): Use get_frame_arch to get at the current
10705 architecture.
10706 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10707 sparc_analyze_prologue.
10708
10709 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10710 parameter.
10711
ed49a04f
MD
107122008-01-11 Markus Deuling <deuling@de.ibm.com>
10713
10714 * exec.c: #include "arch-utils.h"
10715 (print_section_info): Use gdbarch_from_bfd to get at the
10716 current architecture. Replace current_gdbarch. Fix indention. Replace
10717 deprecated_print_address_numeric by paddress.
10718 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10719
680b56ce 10720 * valprint.c (val_print_string): Replace
ed49a04f
MD
10721 deprecated_print_address_numeric.
10722 * tracepoint.c (trace_mention, scope_info): Likewise.
10723 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10724 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10725 (maintenance_check_symtabs): Likewise.
10726 * symfile.c (list_overlays_command): Likewise.
10727 * stack.c (frame_info, print_block_frame_labels): Likewise.
10728 * printcmd.c (print_address, print_address_demangle)
10729 (address_info): Likewise.
10730 * corefile.c (memory_error): Likewise.
10731 * infcmd.c (jump_command): Likewise.
10732 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10733 (mention, delete_breakpoint): Likewise.
10734 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10735 * dwarf2read.c (dump_die): Likewise.
10736 * ada-valprint.c (ada_val_print_1): Likewise.
10737 * f-valprint.c (f_val_print): Likewise.
680b56ce 10738 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
10739 * m32r-com.c (m32r_load_section, m32r_load)
10740 (m32r_upload_command): Likewise.
10741
10742 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10743
6093d2eb
MD
107442008-01-11 Markus Deuling <deuling@de.ibm.com>
10745
10746 * gdbarch.sh (skip_prologue): Add gdbarch
10747 as parameter.
10748 * gdbarch.{c,h}: Regenerate.
10749
10750 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10751 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10752 * avr-tdep.c (avr_skip_prologue): Likewise.
10753 * cris-tdep.c (cris_skip_prologue): Likewise.
10754 * frv-tdep.c (frv_skip_prologue): Likewise.
10755 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10756 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10757 * i386-tdep.c (i386_skip_prologue): Likewise.
10758 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10759 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10760 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10761 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10762 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10763 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10764 * mep-tdep.c (mep_skip_prologue): Likewise.
10765 * mips-tdep.c (mips_skip_prologue): Likewise.
10766 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10767 * mt-tdep.c (mt_skip_prologue): Likewise.
10768 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10769 * score-tdep.c (score_skip_prologue): Likewise.
10770 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10771 * sh-tdep.c (sh_skip_prologue): Likewise.
10772 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10773 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10774 * spu-tdep.c (spu_skip_prologue): Likewise.
10775 * v850-tdep.c (v850_skip_prologue): Likewise.
10776 * vax-tdep.c (vax_skip_prologue): Likewise.
10777 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10778 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10779
10780 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10781 current_gdbarch by gdbarch.
10782 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10783 * s390-tdep.c (s390_skip_prologue): Likewise.
10784
72f5cf0e
DE
107852008-01-10 Doug Evans <dje@google.com>
10786
10787 * defs.h (struct continuation_arg): Fix typo in comment.
10788 * target.c (target_translate_tls_address): Fix comment spelling error.
10789
689e4e2d
TJB
107902008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10791
10792 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10793 (DOUBLEST_SCAN_FORMAT): Likewise.
10794 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10795 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10796 * c-exp.y (parse_number): Likewise.
10797 * jv-exp.y (parse_number): Likewise.
10798 * objc-exp.y (parse_number): Likewise.
10799 * p-exp.y (parse_number): Likewise.
10800
ab0d6e0d
JB
108012008-01-09 Joel Brobecker <brobecker@adacore.com>
10802
10803 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10804 (check_typedef): Likewise.
10805
0aea4bf3
LM
108062008-01-09 Luis Machado <luisgpm@br.ibm.com>
10807
10808 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10809 seen_double_big_d, treat the new H, D, and DD modifiers as length
10810 modifiers.
10811
137033e9
JB
108122008-01-08 Joel Brobecker <brobecker@adacore.com>
10813
10814 * dwarf2read.c (read_enumeration_type): Add comment.
10815
dda297ec
TJB
108162008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10817
10818 * config.in: Regenerate.
10819
a93c0eb6
JB
108202008-01-08 Joel Brobecker <brobecker@adacore.com>
10821
10822 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10823 Make non-static.
10824 (ada_convert_actuals): Delete.
10825 * ada-lang.h (ada_convert_actual): Add declaration.
10826 (ada_convert_actuals): Remove declaration.
10827 * infcall.c: #include "ada-lang.h".
10828 (value_arg_coerce): Add new parameter sp. Update function
10829 documetnation. Add handling of Ada function call parameters.
10830 * Makefile.in (infcall.o): Update dependencies.
10831
a84a8a0d
JB
108322008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10833
10834 * ada-lang.c (ensure_lval): Fix value lval kind.
10835 (convert_actual): Add handling for arguments passed by reference.
10836
d7f98cce
DE
108372008-01-08 Doug Evans <dje@google.com>
10838
10839 * dbxread.c (read_dbx_symtab): Fix indentation.
10840
4ef30785
TJB
108412008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10842
10843 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10844 (valarith.o): Depend on dfp.h.
10845 (valops.o): Likewise.
10846 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10847 (set_decnumber_context): New function.
10848 (decimal_check_errors): Likewise.
10849 (decimal_from_number): Likewise.
10850 (decimal_to_number): Likewise.
10851 (decimal_from_string): Use set_decnumber_context and
10852 decimal_check_errors.
10853 (decimal_from_integral): New function.
10854 (decimal_from_floating): Likewise.
10855 (decimal_to_double): Likewise.
10856 (promote_decimal): Likewise.
10857 (decimal_binop): Likewise.
10858 (decimal_is_zero): Likewise.
10859 (decimal_compare): Likewise.
10860 (decimal_convert): Likewise.
10861 * dfp.h (decimal_from_integral): New prototype.
10862 (decimal_from_floating): Likewise.
10863 (decimal_to_double): Likewise.
10864 (decimal_binop): Likewise.
10865 (decimal_is_zero): Likewise.
10866 (decimal_compare): Likewise.
10867 (decimal_convert): Likewise.
10868 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10869 call to value_from_decfloat.
10870 * valarith.c: Include dfp.h.
10871 (value_args_as_decimal): New function.
10872 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10873 (value_logical_not): Likewise.
10874 (value_equal): Likewise.
10875 (value_less): Likewise.
10876 (value_pos): Likewise.
10877 (value_neg): Formatting fix.
10878 * valops.c: Include dfp.h.
10879 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10880 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10881 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10882 (value_from_decfloat): Remove expect_type argument.
10883 * value.h (value_from_decfloat): Update prototype.
10884
a7c02bc8
VP
108852008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10886
10887 Ignore change in name of dynamic linker during
10888 execution on Solaris. This also unbreaks pending breakpoints.
10889
10890 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
10891 * solib-svr4.c (svr4_same): New.
10892 (_initialize_svr4_solib): Register svr4_same.
10893 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 10894
610dd7f9
CF
108952008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10896
10897 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10898 when using MS-DOS paths.
10899
7a404eba
PA
109002008-01-05 Pedro Alves <pedro@codesourcery.com>
10901
10902 * NEWS: Mention --pid and --core command line behaviour changes.
10903
a4d9b460
PA
109042008-01-05 Pedro Alves <pedro@codesourcery.com>
10905
10906 * main.c (captured_main): Remove 'count' varible and the
10907 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10908 --pid options were issued simultaneously. If an explicit pid
10909 option was passed, don't fallback to core file. Detect extra
10910 arguments better in the presence of explicit pid or core
10911 arguments.
10912
0c281816
JB
109132008-01-05 Joel Brobecker <brobecker@adacore.com>
10914
10915 * ada-lang.c (ada_which_variant_applies): Correctly compute
10916 the value of the discriminant when the variant record is packed.
10917
babe1480
JB
109182008-01-04 Joel Brobecker <brobecker@adacore.com>
10919
10920 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10921 that are used to differentiate homonyms.
10922
727e3d2e
JB
109232008-01-04 Jerome Guitton <guitton@adacore.com>
10924
10925 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10926 when the type is an anonymous pointer type.
10927 (ada_check_typedef): Avoid a seg fault when the type is null.
10928 * ada-typeprint.c (print_array_type): Add support for pointer
10929 to packed arrays.
10930
bb28a9dc
JB
109312008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10932
680b56ce 10933 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 10934
6799def4
JB
109352008-01-04 Joel Brobecker <brobecker@adacore.com>
10936
10937 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10938 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10939
d3353bbd
JB
109402008-01-04 Joel Brobecker <brobecker@adacore.com>
10941
10942 * ada-exp.y (chop_separator): New function.
10943 (write_selectors): Rewrite to re-use chop_separator.
10944 (ada_nget_field_index, get_symbol_field_type): New functions.
10945 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10946 expressions.
10947
82cf6c60
TJB
109482008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10949
10950 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10951 of SYMBOL_VALUE when working with function symbols.
10952
b3dbf008
JB
109532008-01-03 Joel Brobecker <brobecker@adacore.com>
10954
10955 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10956 expressions. These expressions do not need to be rewriten.
10957
02eb380e
JB
109582008-01-03 Joel Brobecker <brobecker@adacore.com>
10959
10960 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10961 the given die is a declaration.
10962
abb68b3e
JB
109632008-01-03 Joel Brobecker <brobecker@adacore.com>
10964
10965 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10966 Handle properly the case when the index type is an enumerated type.
10967 Do not return the subtype of the bounds type, just return the
10968 bounds type directly - this is not needed and is more consistent
10969 with what we do for arrays when no XA parallel type exists.
10970
f192137b
JB
109712008-01-03 Joel Brobecker <brobecker@adacore.com>
10972
10973 * ada-lang.c (static_unwrap_type): Add forward declaration.
10974 (template_to_static_fixed_type): Fields of dynamic types sometimes
10975 also need to be unwrapped. Take this into account.
10976 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10977 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10978 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 10979 the original type, not the base type.
f192137b 10980
1ed6ede0
JB
109812008-01-03 Jerome Guitton <guitton@adacore.com>
10982
10983 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 10984 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
10985 Update calls to ada_to_fixed_type.
10986 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10987 for the tag.
10988 (ada_to_fixed_type): Add check_tag parameter; do not look for
10989 tag if null. When looking for a tag, use a fixed record type.
10990 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10991 * ada-valprint.c (printable_val_type, ada_value_print): Update
10992 calls to ada_to_fixed_type.
10993
542a88d0
LM
109942008-01-03 Luis Machado <luisgpm@br.ibm.com>
10995
680b56ce 10996 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
10997 floatformat_to_doublest instead of floatformat_to_double and use
10998 DOUBLEST variables.
10999 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11000 instead of floatformat_from_double and use DOUBLEST variables.
11001
dc2bbab2
NH
110022008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11003
11004 * MAINTAINERS (Write After Approval): Add self.
11005
8b60591b
JB
110062008-01-03 Joel Brobecker <brobecker@adacore.com>
11007
11008 * symfile.c (set_initial_language): Make non-static.
11009 * symfile.h (set_initial_language): Add declaration.
11010 * language.c: #include "symfile.h".
11011 (set_language): Call set_initial_language if the frame language
11012 could not be determined.
11013
ceef53c1
JB
110142008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11015
11016 * eval.c (evaluate_subexp_for_address): Provide frame address to
11017 locate_var_value only if it will be needed.
11018
ef29ce1a
JK
110192008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11022
0a07e705
JB
110232008-01-02 Joel Brobecker <brobecker@adacore.com>
11024
11025 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11026 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11027 This is needed to make sure that any other treatment applied
11028 to the resulting value does not fail for spurious reason,
11029 such as trying to take the address of this value.
11030
f58b38bf
JB
110312008-01-02 Joel Brobecker <brobecker@adacore.com>
11032
11033 * ada-lang.c (ada_value_equal): Dereference reference types when
11034 comparing arrays.
680b56ce 11035
9b254dd1
DJ
110362008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11037
11038 Updated copyright notices for most files.
11039
33605d39
CF
110402008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11041
11042 * win32-nat.c (psapi_module_handle): Remove static.
11043 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11044 return first module found if base_address is zero. Don't initialize
11045 psapi function pointers here. Convert to cygwin paths when
11046 appropriate.
11047 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11048 executable name. Use get_module_name when that fails or when
11049 !__CYGWIN__.
11050 (_initialize_psapi): New function. Initialize psapi stuff before it is
11051 needed or issue a warning if it is not found. Move psapi_module_handle
11052 here.
11053
29480c32
JB
110542008-01-01 Joel Brobecker <brobecker@adacore.com>
11055
11056 * ada-lang.c (ada_remove_trailing_digits): New function.
11057 (ada_remove_po_subprogram_suffix): New function.
11058 (ada_decode): Improve. Move the description of the algorithm
11059 directly inside the code, instead of in the function global
11060 description.
11061
969a1360
JB
110622008-01-01 Joel Brobecker <brobecker@adacore.com>
11063
11064 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11065 and always print the dereferenced value.
11066
b7789565
JB
110672008-01-01 Joel Brobecker <brobecker@adacore.com>
11068
11069 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11070 of the case where the first argument is a reference.
11071 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11072
73fb9985
JB
110732008-01-01 Joel Brobecker <brobecker@adacore.com>
11074
11075 Implement support for Ada interface types.
11076
11077 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11078 (ada_is_ignored_field): Ignore fields that are a dispatch table
11079 of a tagged type.
11080
636265b6
JB
110812008-01-01 Joel Brobecker <brobecker@adacore.com>
11082
11083 * top.c (print_gdb_version): Update copyright year.
11084
9d200a2e 110852008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11086
9d200a2e
JB
11087 * ChangeLog-2007: New ChangeLog rotation.
11088 * ChangeLog: Reset for 2008.
11089 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11090 ChangeLog-2007.
b7589f7d 11091
9d200a2e 11092For older changes see ChangeLog-2007.
c906108c
SS
11093\f
11094Local Variables:
11095mode: change-log
11096left-margin: 8
11097fill-column: 74
11098version-control: never
57da7796 11099coding: utf-8
c906108c 11100End:
This page took 1.439145 seconds and 4 git commands to generate.