gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b05dcbb7
TT
12008-12-09 Tom Tromey <tromey@redhat.com>
2
3 PR gdb/1815:
4 * cli/cli-decode.c (delete_cmd): Forward declare.
5 (delete_cmd): Now static. Change return type. Remove command
6 from alias chain. Rewrite.
7 (add_cmd): Initialize new fields. Update cmd_pointer on all
8 aliases.
9 (add_alias_cmd): Put command on alias chain.
10 * command.h (delete_cmd): Don't declare.
11 * cli/cli-decode.h (delete_cmd): Don't declare.
12 (struct cmd_list_element) <aliases, alias_chain>: New fields.
13
a8111142
TT
142008-12-09 Tom Tromey <tromey@redhat.com>
15
16 * config.in, configure: Rebuild.
17 * configure.ac: Check for locale.h, setlocale. Call
18 AM_LC_MESSAGES.
19 * acinclude.m4: Include lcmessage.m4.
20
4100683b
JK
212008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
22
23 * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
24
4be15b7a
JB
252008-12-08 Joel Brobecker <brobecker@adacore.com>
26
27 * python/python-value.c (values_in_python): Add specific initialization
28 to NULL to work-around a MacOS linker bug.
29
39d61571
JK
302008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
31
32 Fix loc_type of `bp_location's created by update_watchpoint.
33 * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
34 Replace bp_type by bpt->type. Update prototype. All callers updated.
35 (add_location_to_breakpoint): Remove the bp_type parameter.
36 Replace bp_type by b->type. All callers updated.
37 (set_breakpoint_location_function): Replace bptype by b->type.
38
4cd9bd08
JK
392008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 * breakpoint.c (update_global_location_list): Fix the comment.
42
1641cfcc
PA
432008-12-05 Pedro Alves <pedro@codesourcery.com>
44
45 * infcmd.c (step_1, step_once): Look up the stepping range based
46 on the current frame's PC, not on stop_pc.
47
116e0965
JK
482008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 Fix compilation on 32-bit host configurations.
51 * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
52
acdb24a9
TG
532008-12-05 Tristan Gingold <gingold@adacore.com>
54
55 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
56 (amd64_darwin_sstep_at_sigreturn): New function.
57 (darwin_set_sstep): The sigreturn is a special case: the trace flag
58 must be set in the mcontext structure.
59
e71c9293
PA
602008-12-05 Pedro Alves <pedro@codesourcery.com>
61
62 * infcmd.c (step_once): Remove dead code.
63
3b676233
DE
642008-12-04 Doug Evans <dje@google.com>
65
66 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
67
a020da56
DE
682008-12-02 Doug Evans <dje@google.com>
69
70 * infrun.c (handle_inferior_event): Remove redundant resetting of
71 stepping_past_singlestep_breakpoint.
72
e0665bc8
PA
732008-12-02 Pedro Alves <pedro@codesourcery.com>
74
75 * target.h (target_get_osdata): Describe.
76 * osdata.h (make_cleanup_osdata_free): Declare.
77 * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
78 not defined.
79 (osdata_free_cleanup): New.
80 (make_cleanup_osdata_free): New.
81 (get_osdata): Fix leak.
82 (info_osdata_command): Use make_cleanup_osdata_free.
83 (info_processes_command): Delete.
84 (_initialize_osdata): Drop undocumented "info processes" alias.
85 * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
86
e0740f77
JK
872008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 Fix resolving external references to TLS variables.
90 * findvar.c: Include `objfiles.h'.
91 (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
92 SEC_THREAD_LOCAL variables.
93 * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
94 variables.
95
c29235ac
DE
962008-12-02 Doug Evans <dje@google.com>
97
98 * infrun.c (handle_inferior_event): Delete unused local tp.
99
07e059b5
VP
1002008-12-02 Pedro Alves <pedro@codesourcery.com>
101 Vladimir Prus <vladimir@codesourcery.com>
102
103 Implement -list-thread-groups --available
104
105 * Makefile.in (XMLFILES): Add osdata.dtd.
106 (SFILES): Add osdata.c.
107 (COMMON_OBS): Add osdata.o.
108 * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
109 (linux_nat_xfer_osdata): New function.
110 (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
111 * osdata.c: New file.
112 * osdata.h: New file.
113 * remote.c (PACKET_qXfer_osdata): New packet enum.
114 (remote_protocol_features): Add "qXfer:osdata:read".
115 (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
116 (extended_remote_can_run): New.
117 (init_extended_remote_ops): Set to_can_run to
118 extended_remote_can_run.
119 (_initialize_remote): Add packet config command for
120 "qXfer:osdata:read".
121 * xml-support.c (obstack_xml_printf): New function.
122 * xml-support.h (obstack_xml_printf): Declare.
123 * target.c (target_get_osdata): New function.
124 * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
125 (target_os_data): Declare.
126 * features/osdata.dtd: New file.
127 * mi/mi-main.c (mi_list_thread_groups): Handle the --available
128 option.
129
f3c85de6
DE
1302008-12-01 Doug Evans <dje@google.com>
131
132 * infrun.c (proceed): Delete unused local stop_signal.
133
a80b95ba
TG
1342008-11-27 Tristan Gingold <gingold@adacore.com>
135
136 * NEWS: Add entry for new native configuration: Darwin.
137 * configure.host: Add Darwin host.
138 * configure.tgt: Add Darwin target.
139 * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
140 * osabi.c (gdb_osabi_names): Add name for Darwin abi.
141 * i386-darwin-nat.c: New file.
142 * i386-darwin-tdep.c: New file.
143 * machoread.c: New file.
144 * darwin-nat-info.c: New file.
145 * darwin-nat.c: New file.
146 * darwin-nat.h: New file.
147 * darwin.defs: New file.
148 * config/i386/darwin.mh: New file.
149
5a85c521
TG
1502008-11-26 Tristan Gingold <gingold@adacore.com>
151
152 * MAINTAINERS: Add myself for write after approval privileges.
153
3e3d7139
JG
1542008-11-26 Jerome Guitton <guitton@adacore.com>
155
156 * value.h (allocate_value_lazy): New function declaration.
157 (value_free): Remove macro, make it a function.
158 * value.c (value): Move actual content outside of the memory space
159 of the struct; add a pointer to this actual content.
160 (allocate_value_lazy, allocate_value_contents): New function.
161 (allocate_value): Reimplement using these two new functions.
162 (value_contents_raw, value_contents_all_raw): If no memory
163 has been allocated yet for the actual content, allocate it.
164 (value_contents_all): Resync with struct value's changes.
165 (value_free): New function.
166 (value_copy, value_primitive_field): Use new function
167 allocate_value_lazy to allocate lazy values.
168 (value_change_enclosing_type): Resync with struct value's changes.
169 As the value is not reallocated, remove the special handling for
170 the value chain (now obsolete).
171 * valops.c (value_at_lazy): Use new function allocate_value_lazy.
172 (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
173 to allocate lazy values.
174 (value_slice): Use allocate_value_lazy to allocate lazy values.
175
939c61fa
JK
1762008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 Fix automatic restoration of breakpoints memory for ia64.
179 * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
180 (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
5f019e58 181 content. Remove variable instr. New variable cleanup. Disable
939c61fa
JK
182 automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
183 set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
184 error if even just final target_write_memory has failed.
185 (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
186 and instr to instr_saved. New variables bundle_saved and
187 instr_breakpoint. Comment new reasons why we need to disable automatic
188 restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
189 check of the original memory content. Return error if even just final
190 target_write_memory has failed.
191 (ia64_breakpoint_from_pc): Implement the emulation of permanent
192 breakpoints compatible with current bp_loc_is_permanent.
193 (template_encoding_table): Make it `const'.
194 * breakpoint.c (bp_loc_is_permanent): Support unsupported software
195 breakpoints. New variables `cleanup' and `retval'.
939c61fa 196
8acb6b92
TT
1972008-11-24 Tom Tromey <tromey@redhat.com>
198
199 * ada-lang.c (value_from_contents_and_address): Move...
200 * value.c: ... here.
201 * ada-lang.h (value_from_contents_and_address): Move
202 declaration...
203 * value.h: ... here.
204
f9e31323
TT
2052008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
206
207 * valprint.c (val_print_array_elements): Pass correct
208 element address to val_print.
209
a0b7aece
JK
2102008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
211
212 Fix access of an already freed memory.
213 * parse.c (parse_field_expression): Call xstrdup on `*name'.
214 * completer.c (expression_completer): Free fieldname.
215
d962ef82
DJ
2162008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
217
218 PR gdb/2474
219 * remote.c (remote_read_description_p): New function.
220 (remote_start_remote): Try to fetch the target description
221 before adding shared libraries. Try again later if the
222 target is running but stopped.
223 (remote_open_1): Mark extended targets as exited by default.
224 (remote_read_description): Check target_has_execution.
225
88828b32
JG
2262008-11-24 Jerome Guitton <guitton@adacore.com>
227
228 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
229 the frame address in block instead of the return address to
230 locate the mdebug PDR of the frame.
231
d81191fc
JB
2322008-11-21 Joel Brobecker <brobecker@adacore.com>
233
234 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
235
236 * breakpoint.h (enum bpstat_what_main_action): Remove
237 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
238 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
239 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
240 variable table.
241 * infrun.c (wait_for_inferior): Remove handling of
242 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
243
a9322a30
TT
2442008-11-21 Tom Tromey <tromey@redhat.com>
245
246 * configure: Rebuild.
247 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
248 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
249
ca30a762
TT
2502008-11-21 Tom Tromey <tromey@redhat.com>
251
252 * python/python-internal.h (PyGILState_Ensure): New define.
253 (PyGILState_Release): Likewise.
254 (PyEval_InitThreads): Likewise.
255 (PyThreadState_Swap): Likewise.
256 (PyEval_InitThreads): Likewise.
257 * python/python.c (_initialize_python): Initialize threads.
258 Release GIL.
259 (eval_python_from_control_command): Acquire GIL.
260 (python_command): Likewise.
261 * python/python-internal.h (make_cleanup_py_restore_gil):
262 Declare.
263 * python/python-utils.c (py_gil_restore): New function.
264 (make_cleanup_py_restore_gil): Likewise.
265
d2bf72c0
DE
2662008-11-20 Doug Evans <dje@google.com>
267
268 * frame.c (frame_debug_got_null_frame): Remove file arg.
269 All callers updated.
270
c7e8a53c
PA
2712008-11-20 Pedro Alves <pedro@codesourcery.com>
272
273 * infrun.c (resume): If following a fork, also reset regcache,
274 gdbarch and pc.
275
e2fd701e
DE
2762008-11-20 Doug Evans <dje@google.com>
277
278 * printcmd.c (sym_info): Don't print the offset if it's zero.
279
607cecd2
PA
2802008-11-20 Pedro Alves <pedro@codesourcery.com>
281
282 * infrun.c (resume): If following a fork, reread the current
283 thread. Avoid dereferencing a possibly dangling pointer.
284
642fd101
DE
2852008-11-19 Doug Evans <dje@google.com>
286
287 * inferior.h (proceed_to_finish): Delete, unused.
288 (stop_registers): Tweak comment.
289 * infrun.c (stop_registers): Tweak comment.
290
9bc7b6c6
KB
2912008-11-19 Kevin Buettner <kevinb@redhat.com>
292
293 * frv-tdep.c (frv_skip_main_prologue): New function.
294 (frv_gdbarch_init): Register frv_skip_main_prologue.
295 * solib-frv.c (fetch_loadmap): Return early when no segments are
296 found.
297 (frv_relocate_main_executable): Return early when both interpreter
298 and executable loadmap addresses are zero.
299
d0107bb6
BW
3002008-11-19 Bob Wilson <bob.wilson@acm.org>
301
302 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
303 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
304 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
305 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
306 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
307 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
308 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
309 (xtensa_submask15): Adjust register numbers.
310 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
311 (xtensa_regmap_table): Add entry for scompare1.
312 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
313 and scompare1.
314
6e5abd65
PA
3152008-11-19 Pedro Alves <pedro@codesourcery.com>
316
317 * remote.c (escape_buffer): New.
318 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
319 sure debug output printing a packet buffer goes through a single
320 fprintf_unfiltered call.
321 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
322 output with a newline if it wasn't going to already.
323
15c99a44
PP
3242008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
325
326 * maint.c (maintenance_translate_address): Fix a buglet.
327
2c4ad781
TJB
3282008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
329
330 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
331 rs6000/powerpc-isa205-altivec32l-expedite,
332 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
333 rs6000/powerpc-isa205-altivec64l-expedite,
334 powerpc-isa205-vsx64l-expedite): New variables.
335 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
336 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
337 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
338 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
339 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
340 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
341
69abc51c
TJB
3422008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
343
344 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
345 offset for full 64-bit slot of FPSCR when in 32-bits.
346 (ppc_linux_read_description): Return target description with 64-bit
347 FPSCR when inferior is running on an ISA 2.05 or later processor.
348 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
349 initialize_tdec_powerpc_isa205_32l,
350 initialize_tdec_powerpc_isa205_altivec32l,
351 initialize_tdec_powerpc_isa205_vsx32l,
352 initialize_tdec_powerpc_isa205_64l,
353 initialize_tdec_powerpc_isa205_altivec64l and
354 initialize_tdec_powerpc_isa205_vsx64l.
355 * ppc-linux-tdep.h: Add external declaration for
356 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
357 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
358 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
359 * features/rs600/powerpc-fpu-isa205.xml: New file.
360 * features/rs600/powerpc-isa205-32l.xml: New file.
361 * features/rs600/powerpc-isa205-64l.xml: New file.
362 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
363 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
364 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
365 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
366 * features/rs600/powerpc-isa205-32l.c: Generate.
367 * features/rs600/powerpc-isa205-64l.c: Generate.
368 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
369 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
370 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
371 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
372
c14c28ba
PP
3732008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
374
375 * objfiles.h: New MULTI_OBJFILE_P macro.
376 * printcmd.c (sym_info): Print object name.
377 * maint.c (maintenance_translate_address): Likewise.
378
d5cbbe6e
JB
3792008-11-18 Joel Brobecker <brobecker@adacore.com>
380
381 * NEWS: Document the removal of "catch load" and "catch unload".
382
2e74121d
DE
3832008-11-17 Doug Evans <dje@google.com>
384
385 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
386 on error messages.
387
a7212384
UW
3882008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
389
390 PR gdb/2250
391 * infrun.c (clear_proceed_status_thread): New function.
392 (clear_proceed_status_callback): New function.
393 (clear_proceed_status): In all-stop mode, clear per-thread
394 proceed status of *all* threads, not only the current.
395 (handle_inferior_event): In all-stop mode, if we're stepping
396 one thread, but got some inferior event in another thread
397 that does not cause GDB to break to the user interface,
398 ensure the interrupted stepping operation continues in the
399 original thread.
400 (currently_stepping): Move thread-related tests to ...
401 (currently_stepping_thread): ... this new function.
402 (currently_stepping_callback): New function.
403
66bb093b
VP
4042008-11-17 Vladimir Prus <vladimir@codesourcery.com>
405
406 Implement =thread-selected notification.
407
408 * mi/mi-common.h (struct mi_interp): New, moved from ...
409 * mi/mi-interp.c: ...here.
410 * mi/mi-main.c (mi_execute_command): If the thread changed
411 as result of command, report that.
412
8dd4f202
VP
4132008-11-17 Vladimir Prus <vladimir@codesourcery.com>
414
415 Implement continue/interrupt of thread groups.
416
417 * mi/mi-main.c (proceed_thread_callback): New.
418 (mi_cmd_exec_continue): If --thread-group is specified, resume all
419 threads in that group.
420 (interrupt_thread_callback): New.
421 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
422 all threads in that group.
423
6418d433
VP
4242008-11-17 Vladimir Prus <vladimir@codesourcery.com>
425
426 Implement '-target-detach pid'.
427
428 * infcmd.c (detach_command): Make nonstatic.
429 * inferior.h (detach_command): Declare.
430 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
431 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
432 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
433
3d043ef6
VP
4342008-11-17 Vladimir Prus <vladimir@codesourcery.com>
435
436 Include group-id in thread-created notification.
437
438 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
439 group id in the output.
440
4a92f99b
VP
4412008-11-17 Vladimir Prus <vladimir@codesourcery.com>
442
443 Notification for attach/detach.
444
445 * inferior.c: Call the process observers.
446 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
447 (mi_interpreter_init): Register the above.
448
3ee1c036
VP
4492008-11-17 Vladimir Prus <vladimir@codesourcery.com>
450
451 Implement -list-thread-groups.
452
453 * thread.c (print_thread_info): New parameter pid, to print
454 threads of specific process.
455 * gdbthread.h (print_thread_info): New parameter pid.
456 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
457 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
458 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
459 (print_one_process, mi_cmd_list_thread_groups): New.
460
283de25f
JB
4612008-11-16 Joel Brobecker <brobecker@adacore.com>
462
463 Remove some unused macros related to the old load/unload catchpoints.
464
465 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
466 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
467 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
468
533be4dd
JB
4692008-11-16 Joel Brobecker <brobecker@adacore.com>
470
471 Remove support for catch load and catch unload commands.
472
473 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
474 (struct breakpoint): Remove fields dll_pathname and
475 triggered_dll_pathname.
476 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
477 * breakpoint.c (ep_is_catchpoint): Remove handling of
478 bp_catch_load and bp_catch_unload.
479 (print_it_typical, bpstat_check_location, bpstat_what)
480 (print_one_breakpoint_location, print_one_breakpoint_location)
481 (user_settable_breakpoint, allocate_bp_location)
482 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
483 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
484 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
485 (catch_load_command_1, catch_unload_command_1): Delete.
486 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
487 command creation.
488 * infrun.c (handle_inferior_event): Remove the handling of
489 load/unload catchpoint events.
490
59205f5a
JB
4912008-11-15 Joel Brobecker <brobecker@adacore.com>
492
493 From Jerome Guitton <guitton@adacore.com>
494 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
495 New function.
496 (dwarf_decode_lines): Detect null file numbers. Detect the end of
497 the line program sequence when no end sequence is emitted.
498
96967637
JB
4992008-11-15 Joel Brobecker <brobecker@adacore.com>
500
501 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
502 type dereferencing.
503
da8bd9a3
DJ
5042008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * NEWS: Mention sparc64-linux-gnu gdbserver support.
507
dfb64f85
DJ
5082008-11-14 Daniel Gutson <dgutson@codesourcery.com>
509
510 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
511 * regformats/reg-sparc64.dat: New file.
512
59669435
TT
5132008-11-14 Tom Tromey <tromey@redhat.com>
514
515 PR mi/2549:
516 * mi/mi-main.c (get_register): Use get_formatted_print_options.
517
06be140c
JB
5182008-11-13 Joel Brobecker <brobecker@adacore.com>
519
520 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
521
759cc328
UW
5222008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
523
524 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
525 AT_EXECFN. Re-sort AT_SECURE.
526
73e113d4
JK
5272008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
528
529 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
530
c31ad2a1
JB
5312008-11-13 Joel Brobecker <brobecker@adacore.com>
532
533 * ia64-tdep.c: Remove commented out #define.
534
84290f2f
JB
5352008-11-12 Joel Brobecker <brobecker@adacore.com>
536
537 From Joel Sherrill <joel.sherrill@oarcorp.com>
538 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
539 instead of the "gdbsim_ops" global.
540
de04a248
DE
5412008-11-11 Doug Evans <dje@google.com>
542
543 * infcall.c (call_function_by_hand): Handle inferior exit.
544
3c8b2eda
TJB
5452008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
546
547 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
548 missing struct target_ops argument.
549
f5d9a292
JS
5502008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
551
552 * MAINTAINERS: Add myself for write after approval privileges.
553
de8ee0e2
TT
5542008-11-10 Tom Tromey <tromey@redhat.com>
555
556 * gdbtypes.c (copy_type_recursive): Clear new fields.
557
b03a6ea4
TT
5582008-11-10 Tom Tromey <tromey@redhat.com>
559
560 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
561 cleanups on early return.
562
136d6dae
VP
5632008-11-09 Vladimir Prus <vladimir@codesourcery.com>
564
565 Kill pthread_ops_hack
566
567 * target.h (struct target_ops): Make to_attach, to_detach,
568 to_create_inferior and to_mourn_inferior accept a pointer
569 to struct target_ops.
570 (target_attach, target_create_inferior, target_create_inferior):
571 Convert from macros to function. Find the right target to
572 invoke a method of.
573 (find_default_attach, find_default_create_inferior): New parameter
574 ops.
575 * corefile.c (core_file_command): Pass target to to_detach.
576 * corelow.c (core_detach): Add 'ops' parameter.
577 * fork-child.c (fork_inferior): Return the pid. Allow
578 init_trace_fun to be NULL.
579 * inf-ptrace (ptrace_ops_hack): Remove.
580 (inf_ptrace_him): Remove, moving all logic into....
581 (inf_ptrace_create_inferior): ... here. Push the target
582 passed as parameter.
583 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
584 Push/pop target passed as parameter, no ptrace_ops_hack.
585 (inf_ptrace_target): Don't remember result.
586 * inferior.h (fork_inferior): Adjust prototype.
587 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
588 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
589 Pass it to linux_ops target.
590 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
591 New parameter ops. Pass it to the target beneath.
592 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
593 (extended_remote_create_inferior): New parameter ops. Pass it
594 further.
595 * target.c (debug_to_attach, debug_to_detach)
596 (debug_to_mourn_inferior): New parameter ops.
597 (target_create_inferior): New.
598 (update_current_target): Do not inherit to_attach, to_detach,
599 to_create_inferiour, to_mourn_inferior. Do not default
600 to_detach and to_mourn_inferior.
601 (target_detach): Find the right target to use.
602 (target_mourn_inferior): New.
603 (find_default_attach, find_default_create_inferior): New parameter
604 ops. Pass the found target when calling its method.
605 (init_dummy_target): Provide fallback definition of to_detach.
606 (target_attach): New.
607 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
608 (debug_to_mourn_inferiour): New parameter ops.
609 * aix-thread.c: Adjust.
610 * bsd-uthread.c: Adjust.
611 * gnu-nat.c: Adjust.
612 * go32-nat.c: Adjust.
613 * hpux-thread.c: Adjust.
614 * inf-ttrace.c: Ajust.
615 * monitor.c: Adjust.
616 * nto-procfs.c: Adjust.
617 * procfs.c: Adjust.
618 * remote-m32r-sdi.c: Adjust.
619 * remote-mips.c: Adjust.
620 * remote-sim.c: Adjust.
621 * rs6000-nat.c: Adjust.
622 * sol-thread.c: Adjust.
623 * win32-nat.c: Adjust.
624 * dec-thread.c: Adjust.
625
ed406532
VP
6262008-11-09 Vladimir Prus <vladimir@codesourcery.com>
627
628 * thread.c (print_thread_info): Eliminate now useless checks
629 for exited threads.
630
48fb2d97
PA
6312008-11-06 Pedro Alves <pedro@codesourcery.com>
632
633 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
634 to 0.
635
29c87f7f
PA
6362008-11-05 Pedro Alves <pedro@codesourcery.com>
637
638 * remote.c (notice_new_inferiors): Add a new inferior only when
639 we're going to add a new thread.
640
e0ba6746
PA
6412008-11-05 Pedro Alves <pedro@codesourcery.com>
642
643 * defs.h (add_inferior_continuation)
644 (do_all_inferior_continuations)
645 (discard_all_inferior_continuations): Declare.
646 * utils.c (add_inferior_continuation)
647 (do_all_inferior_continuations)
648 (discard_all_inferior_continuations): New.
649 * inferior.h (struct inferior) <continuations>: New field.
650 * inferior.c (free_inferior): Discard all the inferior
651 continuations.
652 * inf-loop.c (inferior_event_handler): Do all current inferior
653 continuations.
654 * infcmd.c (attach_command): Register an inferior continuation
655 instead of a thread continuation.
656 * infrun.c (handle_inferior_event): If stop_soon is
657 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
658
d3fd5342
PA
6592008-11-04 Pedro Alves <pedro@codesourcery.com>
660
661 * inf-loop.c (inferior_event_handler): On INF_ERROR and
662 INF_REG_EVENT throwing, don't call target_async or pop_target.
663 Call pop_all_targets_above.
664 * remote.c (remote_close): Call remote_terminal_ours. Don't call
665 signal or target_async.
666
1c9f699c
DJ
6672008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
668
669 * eval.c (evaluate_subexp_standard): Assert that there is at
670 least one array dimension.
671
cb0362bb
VP
6722008-11-03 Vladimir Prus <vladimir@codesourcery.com>
673
674 Make attach_command exception-safe
675 * infcmd.c (attach_command): Call async_enable_stdin
676 if exception is thrown.
677
9bc9e927
PA
6782008-11-03 Pedro Alves <pedro@codesourcery.com>
679
680 * gdbarch.sh (has_global_solist): Mention global breakpoints.
681 * gdbarch.h: Regenerate.
682
50c71eaf
PA
6832008-11-03 Pedro Alves <pedro@codesourcery.com>
684
685 * remote.c (remote_start_remote): If the solib list is global,
686 fetch libraries and insert breakpoints after connecting.
687 * infcmd.c (post_create_inferior): If the solist is shared between
688 inferiors, no need to refetch it on every new inferior.
689 (detach_command): If the shared library list is shared between
690 inferiors, then don't clear it on every inferior detach.
691 * gdbarch.sh (has_global_solist): New.
692 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
693 gdbarch_has_global_solist.
694 * target.c (target_pre_inferior): If the shared library list is
695 shared between inferiors, then don't clear it here, neither
696 invalidate the memory regions or clear the target description.
697 (target_detach): If the shared library list is shared between
698 inferiors, then don't remove breakpoints from the target here.
699 (target_disconnect): Comment.
700 * solib.c (update_solib_list): Check for null_ptid.
701 * breakpoint.c (insert_breakpoints, update_global_location_list):
702 If the shared library list is shared between inferiors, insert
703 breakpoints even if there's no execution.
704 (breakpoint_init_inferior): If the shared library list is shared
705 between inferiors, don't delete breakpoints or mark them
706 uninserted here.
707
708 * gdbarch.c, gdbarch.h: Regenerate.
709
2fdf0e42
PA
7102008-10-31 Pedro Alves <pedro@codesourcery.com>
711
712 * inferior.h (inferior_ignoring_leading_exec_events): Delete
713 declaration.
714
3990c31b
PA
7152008-10-31 Pedro Alves <pedro@codesourcery.com>
716
717 * inferior.h (write_inferior_status_register): Delete.
718 * infrun.c (write_inferior_status_register): Delete.
719
2a2546f0 7202008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
721
722 * value.c (coerce_array): Use check_typedef.
723
2a2546f0 7242008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
725
726 * cli/cli-logging.c (handle_redirections): Make a cleanup.
727 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
728 * regcache.c (regcache_print): Make a cleanup.
729 * maint.c (maintenance_print_architecture): Make a cleanup.
730 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
731
a05016c0
TT
7322008-10-30 Tom Tromey <tromey@redhat.com>
733
734 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
735 (do_close_cleanup): Don't free 'fd'.
736
2a2546f0 7372008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
738
739 * source.c (symtab_to_fullname): Test 'r >= 0'.
740 (psymtab_to_fullname): Likewise.
741 (get_filename_and_charpos): Make a cleanup.
742 (forward_search_command): Likewise.
743 (reverse_search_command): Likewise.
744 * exec.c (exec_file_attach): Close scratch_chan on failure.
745 * nto-procfs.c (procfs_open): Make a cleanup.
746 (procfs_pidlist): Likewise.
747 (do_closedir_cleanup): New function.
748
c2226152
AS
7492008-10-30 Andreas Schwab <schwab@suse.de>
750
751 * infcmd.c (construct_inferior_arguments): Handle newlines
752 specially.
753
fe798b75
JB
7542008-10-30 Joel Brobecker <brobecker@adacore.com>
755
756 * breakpoint.h (enum bptype): Delete bp_catch_exec.
757 * breakpoint.c (insert_catchpoint): Remove handling for
758 bp_catch_exec breakpoint kinds.
759 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
760 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
761 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
762 (print_one_breakpoint_location, user_settable_breakpoint)
763 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
764 (allocate_bp_location, mention, breakpoint_re_set_one)
765 (disable_command, enable_command): Likewise.
766 (create_exec_event_catchpoint): Delete.
767 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
768 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
769 New functions.
770 (catch_exec_breakpoint_ops): New static global.
771 (catch_exec_command_1): Use create_catchpoint instead of
772 create_exec_event_catchpoint to create the exec catchpoint.
773
f154cae1
TT
7742008-10-28 Tom Tromey <tromey@redhat.com>
775
776 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
777 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
778 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
779 (cli-utils.o): Remove.
780 * cli/cli-utils.c: Remove.
781 * cli/cli-utils.h: Remove.
782
79a45b7d
TT
7832008-10-28 Tom Tromey <tromey@redhat.com>
784
785 * varobj.c (value_get_print_value): Include valprint.h.
786 (value_get_print_value): Use get_formatted_print_options.
787 * value.h (struct value_print_options): Declare.
788 (value_print, val_print, common_val_print, val_print_string):
789 Update.
790 * value.c: Include valprint.h.
791 (show_values): Use get_user_print_options.
792 (show_convenience): Likewise.
793 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
794 declare.
795 (struct value_print_options): New type.
796 (vtblprint, unionprint, addressprint, objectprint, print_max,
797 inspect_it, repeat_count_threshold, output_format,
798 stop_print_at_null): Don't declare.
799 (user_print_options, get_user_print_options,
800 get_raw_print_options, get_formatted_print_options): Declare.
801 (print_array_indexes_p): Don't declare.
802 (maybe_print_array_index, val_print_array_elements): Update.
803 * valprint.c (print_max): Remove.
804 (user_print_options): New global.
805 (get_user_print_options, get_raw_print_options,
806 get_formatted_print_options): New functions.
807 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
808 prettyprint_structs, prettyprint_arrays, unionprint,
809 addressprint): Remove.
810 (val_print): Remove format, deref_ref, pretty arguments; add
811 options. Update.
812 (common_val_print): Likewise.
813 (print_array_indexes_p): Remove.
814 (maybe_print_array_index): Remove format, pretty arguments; add
815 options. Update.
816 (val_print_array_elements): Remove format, deref_ref, pretty
817 arguments; add options. Update.
818 (val_print_string): Add options argument. Update.
819 (_initialize_valprint): Use user_print_options.
820 (output_format): Remove.
821 (set_output_radix_1): Use user_print_options.
822 * typeprint.c: Include valprint.h.
823 (objectprint): Don't declare.
824 (whatis_exp): Use get_user_print_options.
825 * tui/tui-regs.c: Include valprint.h.
826 (tui_register_format): Use get_formatted_print_options.
827 * tracepoint.c: Include valprint.h.
828 (addressprint): Don't declare.
829 (trace_mention): Use get_user_print_options.
830 (tracepoints_info): Likewise.
831 * stack.c (print_frame_args): Use get_raw_print_options.
832 (print_frame_info): Use get_user_print_options.
833 (print_frame): Likewise.
834 * sh64-tdep.c: Include valprint.h
835 (sh64_do_register): Use get_formatted_print_options.
836 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
837 pretty arguments; add options.
838 (scm_scmlist_print): Likewise. Update.
839 (scm_scmval_print): Likewise.
840 (scm_val_print): Likewise.
841 (scm_value_print): Remove format, pretty arguments; add options.
842 Update.
843 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
844 Update.
845 * scm-lang.c (scm_printstr): Add options argument.
846 * python/python-value.c: Include valprint.h.
847 (valpy_str): Use get_user_print_options.
848 * printcmd.c: Include valprint.h.
849 (addressprint): Don't declare.
850 (inspect_it): Remove.
851 (print_formatted): Remove format option; add options. Update.
852 (print_scalar_formatted): Likewise.
853 (print_address_demangle): Use get_user_print_options.
854 (do_examine): Use get_formatted_print_options.
855 (print_command_1): Likewise.
856 (output_command): Use get_formatted_print_options.
857 (do_one_display): Likewise.
858 (print_variable_value): Use get_user_print_options.
859 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
860 pretty arguments; add options. Update.
861 (pascal_value_print): Remove format, pretty arguments; add
862 options. Update.
863 (vtblprint, objectprint): Don't declare.
864 (pascal_static_field_print): Remove.
865 (pascal_object_print_value_fields): Remove format, pretty
866 arguments; add options. Update.
867 (pascal_object_print_static_field): Likewise.
868 (_initialize_pascal_valprint): Use user_print_options. Update.
869 * p-lang.h (pascal_val_print, pascal_value_print,
870 pascal_printstr, pascal_object_print_value_fields): Update.
871 (vtblprint, static_field_print): Don't declare.
872 * p-lang.c (pascal_printstr): Add options argument. Update.
873 * objc-lang.c (objc_printstr): Add options argument. Update.
874 * mt-tdep.c: Include valprint.h.
875 (mt_registers_info): Use get_raw_print_options.
876 * mips-tdep.c: Include valprint.h.
877 (mips_print_fp_register): Use get_formatted_print_options.
878 (mips_print_register): Likewise.
879 * mi/mi-main.c: Include valprint.h.
880 (get_register): Use get_user_print_options.
881 (mi_cmd_data_evaluate_expression): Likewise.
882 (mi_cmd_data_read_memory): Use get_formatted_print_options.
883 * mi/mi-cmd-stack.c: Include valprint.h.
884 (list_args_or_locals): Use get_raw_print_options.
885 * m2-valprint.c (print_function_pointer_address): Add addressprint
886 argument.
887 (m2_print_long_set): Remove format, pretty arguments.
888 (m2_print_unbounded_array): Remove format, deref_ref, pretty
889 arguments; add options. Update.
890 (print_unpacked_pointer): Remove format argument; add options.
891 Now static. Update.
892 (print_variable_at_address): Remove format, deref_ref, pretty
893 arguments; add options. Update.
894 (m2_print_array_contents): Likewise.
895 (m2_val_print): Likewise.
896 * m2-lang.h (m2_val_print): Update.
897 * m2-lang.c (m2_printstr): Add options argument. Update.
898 * language.h (struct value_print_options): Declare.
899 (struct language_defn) <la_printstr>: Add options argument.
900 <la_val_print>: Remove format, deref_ref, pretty argument; add
901 options.
902 <la_value_print>: Remove format, pretty arguments; add options.
903 <la_print_array_index>: Likewise.
904 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
905 LA_PRINT_ARRAY_INDEX): Update.
906 (default_print_array_index): Update.
907 * language.c (default_print_array_index): Remove format, pretty
908 arguments; add options. Update.
909 (unk_lang_printstr): Add options argument.
910 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
911 add options.
912 (unk_lang_value_print): Remove format, pretty arguments; add
913 options.
914 * jv-valprint.c (java_value_print): Remove format, pretty
915 arguments; add options. Update.
916 (java_print_value_fields): Likewise.
917 (java_val_print): Remove format, deref_ref, pretty arguments; add
918 options. Update.
919 * jv-lang.h (java_val_print, java_value_print): Declare.
920 * infcmd.c: Include valprint.h.
921 (print_return_value): Use get_raw_print_options.
922 (default_print_registers_info): Use get_user_print_options,
923 get_formatted_print_options.
924 (registers_info): Use get_formatted_print_options.
925 * gdbtypes.h (struct value_print_options): Declare.
926 (print_scalar_formatted): Update.
927 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
928 pretty arguments; add options. Update.
929 (f77_print_array): Likewise.
930 (f_val_print): Likewise.
931 * f-lang.h (f_val_print): Update.
932 * f-lang.c (f_printstr): Add options argument. Update.
933 (c_value_print): Update declaration.
934 * expprint.c: Include valprint.h.
935 (print_subexp_standard): Use get_raw_print_options,
936 get_user_print_options.
937 * eval.c: Include valprint.h.
938 (objectprint): Don't declare.
939 (evaluate_subexp_standard): Use get_user_print_options.
940 * cp-valprint.c (vtblprint, objectprint, static_field_print):
941 Remove.
942 (cp_print_value_fields): Remove format, pretty arguments; add
943 options. Update.
944 (cp_print_value): Likewise.
945 (cp_print_static_field): Likewise.
946 (_initialize_cp_valprint): Use user_print_options. Update.
947 * c-valprint.c (print_function_pointer_address): Add addressprint
948 argument.
949 (c_val_print): Remove format, deref_ref, pretty arguments; add
950 options. Update.
951 (c_value_print): Add options argument. Update.
952 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
953 (vtblprint, static_field_print): Don't declare.
954 (cp_print_value_fields): Update.
955 * c-lang.c (c_printstr): Add options argument. Update.
956 * breakpoint.c: Include valprint.h.
957 (addressprint): Don't declare.
958 (watchpoint_value_print): Use get_user_print_options.
959 (print_one_breakpoint_location): Likewise.
960 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
961 print_exception_catchpoint): Likewise.
962 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
963 get_user_print_options.
964 * ada-valprint.c (struct ada_val_print_args): Remove format,
965 deref_ref, and pretty; add options.
966 (print_optional_low_bound): Add options argument.
967 (val_print_packed_array_elements): Remove format and pretty
968 arguments; add options. Update.
969 (printstr): Add options argument. Update.
970 (ada_printstr): Likewise.
971 (ada_val_print): Remove format, deref_ref, pretty arguments; add
972 options argument. Update.
973 (ada_val_print_stub): Update.
974 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
975 add options. Update.
976 (ada_val_print_1): Likewise.
977 (print_variant_part): Likewise.
978 (ada_value_print): Remove format, pretty arguments; add options.
979 Update.
980 (print_record): Likewise.
981 (print_field_values): Likewise.
982 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
983 Update.
984 * ada-lang.c (ada_print_array_index): Add options argument; remove
985 format and pretty arguments.
986 (print_one_exception): Use get_user_print_options.
987
7c8a8b04
TT
9882008-10-28 Tom Tromey <tromey@redhat.com>
989
990 * cli/cli-script.c (do_fclose_cleanup): Remove.
991 (script_from_file): Use make_cleanup_fclose.
992 * xml-tdesc.c (do_cleanup_fclose): Remove.
993 (fetch_xml_from_file): Use make_cleanup_fclose.
994 * tracepoint.c (tracepoint_save_command): Use
995 make_cleanup_fclose. Always free pathname.
996 * source.c (print_source_lines_base): Use make_cleanup_fclose.
997 * remote.c (fclose_cleanup): Remove.
998 (remote_file_put): Use make_cleanup_fclose.
999 (remote_file_get): Likewise.
1000 * linux-nat.c (linux_nat_find_memory_regions): Use
1001 make_cleanup_fclose.
1002 (linux_nat_info_proc_cmd): Likewise.
1003 (linux_proc_pending_signals): Likewise.
1004 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
1005 Free file name.
1006 * cli/cli-dump.c (do_fclose_cleanup): Remove.
1007 (make_cleanup_fclose): Remove.
1008 * defs.h (make_cleanup_fclose): Declare.
1009 * utils.c (do_fclose_cleanup): New function.
1010 (make_cleanup_fclose): Likewise.
1011
5a55c295
PA
10122008-10-27 Pedro Alves <pedro@codesourcery.com>
1013
1014 * inflow.c (kill_command): If the target claims there is still
1015 execution, don't clear the thread list.
1016
5256a53b
PA
10172008-10-27 Pedro Alves <pedro@codesourcery.com>
1018
1019 * cp-name-parser.y: Include defs.h instead of config.h.
1020 (parse_escape): Rename to ...
1021 (cp_parse_escape): ... this.
1022 (yylex): Update.
1023 (xfree) [TEST_CPNAMES]: New.
1024
e8ecdb5c
PA
10252008-10-27 Pedro Alves <pedro@codesourcery.com>
1026
1027 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
1028 2.13 and configure.in.
1029
8a305172
PA
10302008-10-27 Pedro Alves <pedro@codesourcery.com>
1031
1032 * target.h (struct target_ops) <to_supports_multi_process>: New
1033 field.
1034 (target_supports_multi_process): New define.
1035 * target.c (update_current_target): Inherit and de_fault
1036 to_supports_multi_process.
1037 * infcmd.c (attach_command): Allow attaching to multiple processes
1038 if the target supports it.
1039 (detach_command): If the target claims there is still execution,
1040 don't clear the thread list.
1041 * remote.c (remote_supports_multi_process): New.
1042 (init_remote_ops): Register remote_supports_multi_process.
1043
676e87b3
PA
10442008-10-27 Pedro Alves <pedro@codesourcery.com>
1045
1046 * Makefile.in (.y.c, .l.c): sed free to xfree.
1047
f0323ca0
PA
10482008-10-27 Pedro Alves <pedro@codesourcery.com>
1049
1050 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
1051 $(TM_CLIBS).
1052 (CDEPS): Remove reference to $(TM_CDEPS).
1053
3067f6e5
MS
10542008-10-26 Michael Snyder <msnyder@vmware.com>
1055
1056 * infrun.c (handle_inferior_event): Handle dynamic symbol
1057 resolution in reverse.
1058
6130d0b7
JB
10592008-10-25 Joel Brobecker <brobecker@adacore.com>
1060
1061 * infrun.c: Minor comment reformatting.
1062
bbe2ba60
PA
10632008-10-25 Pedro Alves <pedro@codesourcery.com>
1064
1065 * ada-exp.y (write_object_renaming): Use malloc instead of
1066 xmalloc.
1067 * p-exp.y (pop_current_type): Use free instead of xfree.
1068
2e979b94
PA
10692008-10-24 Pedro Alves <pedro@codesourcery.com>
1070
1071 * fork-child.c (startup_inferior): Only set threads not-executing
1072 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
1073 keep waiting, don't resume. On all other cases but
1074 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
1075 the event ptid.
1076
74531fed
PA
10772008-10-24 Pedro Alves <pedro@codesourcery.com>
1078
1079 Remote non-stop mode support.
1080
1081 * remote.c (pending_stop_reply): New.
1082 (struct remote_state) <non_stop_aware, support_vCont_t>: New
1083 fields.
1084 (remote_async_inferior_event_token)
1085 (remote_async_get_pending_events_token): New.
1086 (notice_new_inferiors): New, abstracted out from record_currthread.
1087 (record_currthread): Call it.
1088 (remote_threads_info): Default threads to running in non-stop
1089 mode. In non-stop mode, only qfThreadInfo is supported.
1090 (remote_close): Discard all pending stop_replies. Close the event
1091 sources.
1092 (set_stop_requested_callback): New.
1093 (remote_start_remote): Implement non-stop mode startup. In
1094 all-stop, don't clear the thread list here.
1095 (remote_non_stop_feature): New.
1096 (remote_protocol_features): Add a "QNonStop" feature.
1097 (remote_open_1): Clear cached_wait_status and non_stop_aware.
1098 Clear the thread list here.
1099 (remote_detach_1): Discard pending stop replies of the process we
1100 detached from.
1101 (extended_remote_attach_1): Implement non-stop mode.
1102 (remote_vcont_probe): Recognize `vCont;t'.
1103 (remote_vcont_resume): Implement non-stop mode.
1104 (remote_resume): Don't set waiting_for_stop_reply in non-stop
1105 mode.
1106 (remote_stop_ns): New.
1107 (remote_stop): Rename to ...
1108 (remote_stop_as): ... this. If we have a cached wait status,
1109 don't bother interrupting the remote.
1110 (remote_stop): Reimplement as wrapper around remote_stop_as and
1111 remote_stop_ns.
1112 (interrupt_query): Don't query in async mode.
1113 (struct cached_reg, cahed_reg_t): New.
1114 (struct stop_reply): New.
1115 (stop_reply_queue): New.
1116 (stop_reply_xmalloc, stop_reply_xfree)
1117 (discard_pending_stop_replies, do_stop_reply_xfree)
1118 (queued_stop_reply, push_stop_reply, peek_stop_reply)
1119 (remote_parse_stop_reply, remote_get_pending_stop_replies)
1120 (process_stop_reply): New.
1121 (remote_wait_ns): New.
1122 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
1123 notion of current general thread is a process exit was reported.
1124 (remote_wait): Call remote_wait_ns in non-stop mode.
1125 (handle_notification): New.
1126 (putpkt_binary): Handle notifications. Don't care for
1127 waiting_for_stop_reply in non-stop mode.
1128 (getpkt_sane): Rename to ...
1129 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
1130 argument. Handle it. Handle notifications.
1131 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
1132 (getpkt_or_notif_sane): New.
1133 (select_new_thread_callback): Check for exited state instead of
1134 comparing the ptid against minus_one_ptid.
1135 (extended_remote_create_inferior_1): Query the remote about the
1136 current thread.
1137 (remote_supports_non_stop): New.
1138 (init_remote_ops): Register it.
1139 (remote_async_inferior_event_handler): New.
1140 (remote_async_get_pending_events_handler): New.
1141
1142 * infcmd.c (proceed_thread_callback): Comment.
1143 (proceed_after_attach_callback, proceed_after_attach): New.
1144 (attach_command_post_wait): In background attach, resume all
1145 threads, but only if they are unsignalled, and not explicitly
1146 stopped. In foreground attach, in non-stop mode, make sure to
1147 stop all threads of the just attached to process.
1148 (attach_command): In non-stop mode: If doing a background attach,
1149 stop at least one thread. If a foreground attach, stop all
1150 threads.
1151
50d01748
PA
11522008-10-24 Pedro Alves <pedro@codesourcery.com>
1153
1154 * event-loop.h: Mention async_event_handlers.
1155 (async_event_handler): Forward declare.
1156 (async_event_handler_func): New typedef.
1157 (create_async_event_handler, delete_async_event_handler)
1158 (mark_async_event_handler): Declare.
1159 * event-loop.c (event_data): New.
1160 (event_handler_func): Take an event_data instead of an integer.
1161 (struct gdb_event): Replace the integer file descriptor by a
1162 generic event_data.
1163 (async_event_handler): New.
1164 (async_handler_ready): Delete.
1165 (async_event_handler_list): New.
1166 (create_event): New.
1167 (create_file_event): Use it.
1168 (process_event): Adjust.
1169 (gdb_do_one_event): Poll from the event sources in round-robin
1170 fashion across calls. Be sure to consult all sources before
1171 blocking.
1172 (handle_file_event): Take an event_data instead of an integer.
1173 Adjust.
1174 (gdb_wait_for_event): Add `block' argument. Handle it.
1175 (mark_async_signal_handler): Remove unneeded cast.
1176 (invoke_async_signal_handler): Rename to ...
1177 (invoke_async_signal_handlres): ... this. Return true if any was
1178 handled.
1179 (check_async_ready): Delete
1180 (create_async_event_handler): New.
1181 (mark_async_event_handler): New.
1182 (struct async_event_handler_data): New.
1183 (invoke_async_event_handler): New.
1184 (check_async_event_handlers): New.
1185 (delete_async_event_handler): New.
1186 (handle_timer_event): Adjust.
1187
6dd47d34
DE
11882008-10-24 Doug Evans <dje@google.com>
1189
1190 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
1191 is NULL. Simplify obs == NULL case.
1192
fff08868
HZ
11932008-10-24 Hui Zhu <teawater@gmail.com>
1194 Pedro Alves <pedro@codesourcery.com>
1195
1196 * infrun.c (can_use_displaced_stepping): Change type to
1197 const char pointer.
1198 (can_use_displaced_stepping_auto): New string.
1199 (can_use_displaced_stepping_on): New string.
1200 (can_use_displaced_stepping_off): New string.
1201 (can_use_displaced_stepping_enum): New array.
1202 (show_can_use_displaced_stepping): In auto mode, also show
1203 the current effect of the option.
1204 (use_displaced_stepping): Return non-zero if displaced
1205 stepping is auto, and can be used with GDBARCH, and in
1206 non-stop mode. Return non-zero if displaced stepping is on,
1207 and can be used with GDBARCH. Return zero otherwise.
1208 (_initialize_infrun): Make the "set displaced-stepping"
1209 command an enum command. Change its class to class_run.
1210 Place it in the top level set list. Extend help to describe
1211 the auto mode.
1212
252fbfc8
PA
12132008-10-23 Pedro Alves <pedro@codesourcery.com>
1214
1215 * defs.h: Mention ptid_is_pid.
1216 * inferior.h (ptid_is_pid): Declare.
1217 * gdbthread.h (struct thread_info) <stop_requested>: New field.
1218 (set_stop_requested): Declare.
1219 * infcmd.c (interrupt_target_1): Call set_stop_requested.
1220 * infrun.c (clear_proceed_status): Clear stop_requested.
1221 (infrun_thread_stop_requested_callback,
1222 infrun_thread_stop_requested): New.
1223 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
1224 thread that had an explicit stop request, pretend we got a
1225 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1226 request.
1227 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1228 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1229 instead of mentioning signal 0.
1230 (ptid_is_pid): New.
1231 * thread.c (set_stop_requested): New.
1232
1233 * linux-nat.c (queued_waitpid): Rename to ...
1234 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1235 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1236 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1237 kernel's.
1238 (send_sigint_callback): Delete.
1239 (linux_nat_stop_lwp): New.
1240 (linux_nat_stop): Use it.
1241
3c0ed299
PP
12422008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1243
1244 * python/python-value (valpy_getitem): Fix heap corruption.
1245
103fd00d
AR
12462008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1247
1248 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1249 (procfs_create_inferior): Fetch list of threads.
1250
3fdfcbf1
AR
12512008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1252
1253 * nto-procfs.c (procfs_files_info): Fix a typo.
1254 (procfs_create_inferior): Make attach_flag per-inferior.
1255
997339e8
PP
12562008-10-23 Tom Tromey <tromey@redhat.com>
1257
1258 * python/python-value.c (value_to_value_object): Initialize
1259 owned_by_gdb field.
1260 (valpy_new): Likewise.
1261
d6b67a5e
JK
12622008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1263 Joel Brobecker <brobecker@adacore.com>
1264
1265 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1266 initializer. Define the strings as const.
1267 (short_task_info, info_task): Translate the strings above.
1268
aadc346a
JB
12692008-10-22 Joel Brobecker <brobecker@adacore.com>
1270
1271 * NEWS: Add entry for new feature (Ada tasking support).
1272
12732008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
1274
1275 * configure.ac: On alpha-osf, error out if enable_tui is set to
1276 "yes", and set enable_tui to "no" if previously set to "auto".
1277 Check for waddstr only if TUI support was requested. Move the
1278 part of the configure script that updates various Makefile
1279 variables up, together with the check for waddstr.
1280 * configure: Regenerate.
1281
4af88198
JB
12822008-10-22 Joel brobecker <brobecker@adacore.com>
1283
1284 * gdbtypes.c (copy_type): New function.
1285 * gdbtypes.h (copy_type): Add declaration.
1286 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1287 variable, then use it.
1288
0ef643c8
JB
12892008-10-22 Joel Brobecker <brobecker@adacore.com>
1290
1291 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1292 (target_get_ada_task_ptid): New macro.
1293 * target.c (default_get_ada_task_ptid): New function.
1294 (update_current_target): Inherit field default_get_ada_task_ptid.
1295 (update_current_target): Make default_get_ada_task_ptid the default
1296 value for field to_get_ada_task_ptid.
1297 * ada-lang.h (struct task_control_block): Delete. Never used.
1298 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1299 Likewise.
1300 (struct ada_task_info): New.
1301 (ada_task_is_alive, ada_find_printable_frame)
1302 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1303 declarations.
1304 (ada_build_task_list): Update prototype.
1305 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1306 * ada-lang.c (ada_find_printable_frame): Make non-static.
1307 * ada-tasks.c: New file.
1308 * Makefile.in (SFILES): Add ada-tasks.c.
1309 (COMMON_OBS): Add ada-tasks.o.
1310 * linux-thread-db.c (thread_db_find_thread_from_tid)
1311 (thread_db_get_ada_task_ptid): New functions.
1312 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1313
c209f847
TT
13142008-10-22 Tom Tromey <tromey@redhat.com>
1315
1316 PR gdb/2506:
1317 * c-exp.y (string_exp): New production.
1318 (exp): Use it.
1319
5bc60cfb
JK
13202008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1321
1322 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1323 removed before.
1324
7f99b190
JB
13252008-10-20 Joel Brobecker <brobecker@adacore.com>
1326
1327 * NEWS: Add entry mentioning thread-support on Tru64
1328
7a052092
JB
13292008-10-19 Joel Brobecker <brobecker@adacore.com>
1330
1331 * dec-thread.c: New file.
1332 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1333 (NAT_CLIBS): Define.
1334
40e12b06
HZ
13352008-10-19 Hui Zhu <teawater@gmail.com>
1336
1337 * infrun.c (handle_inferior_event): Set "stop_pc" when
1338 TARGET_WAITKIND_NO_HISTORY.
1339
f9176c46
PA
13402008-10-19 Pedro Alves <pedro@codesourcery.com>
1341
1342 * python/python-value.c (value_object_methods)
1343 (value_object_as_number, value_object_as_mapping): Move to bottom
1344 of file.
1345 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1346 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1347 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1348 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1349 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1350 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1351
4058b839
PA
13522008-10-18 Pedro Alves <pedro@codesourcery.com>
1353
1354 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1355 reverse.
1356
f42429a6
PA
13572008-10-17 Pedro Alves <pedro@codesourcery.com>
1358
1359 * infcmd.c (GO_USAGE): Delete.
1360 (go_command): Adjust.
1361
b2175913
MS
13622008-10-17 Michael Snyder <msnyder@vmware.com>
1363 Target interface for reverse debugging.
1364 * target.h (enum target_waitkind):
1365 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1366 (struct target_ops): New method to_can_execute_reverse.
1367 (target_can_execute_reverse): New macro.
1368 * target.c (update_current_target): Inherit to_can_execute_reverse.
1369
1370 Remote interface for reverse debugging.
1371 * remote.c (remote_can_execute_reverse): New target method.
1372 (remote_resume): Check for reverse exec direction, and send
1373 appropriate command to target.
1374 (remote_wait_as): Check target response for NO_HISTORY status.
1375 Also check for empty reply (target doesn't understand "bs" or "bc).
1376 (remote_vcont_resume): Jump out if attempting reverse execution.
1377
1378 Event handling interface for reverse debugging.
1379 * infrun.c (execution_direction): New state variable.
1380 (enum inferior_stop_reason): Add NO_HISTORY reason.
1381 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1382 Handle stepping over a function call in reverse.
1383 Handle stepping thru a line range in reverse.
1384 Handle setting a step-resume breakpoint in reverse.
1385 Handle stepping into a function in reverse.
1386 Handle stepping between line ranges in reverse.
1387 (print_stop_reason): Print reason for NO_HISTORY.
1388 (step_into_function): Rename to handle_step_into_function.
1389 (handle_step_into_function_backward): New function.
1390 (set_exec_direction_func, show_exec_direction_func): New funcs.
1391 (proceed): No need to singlestep over a breakpoint
1392 when resuming in reverse.
1393
1394 * inferior.h (enum exec_direction_kind): New enum.
1395 (execution_direction): Export new execution state variable.
1396
1397 * breakpoint.c (make_breakpoint_silent): New function.
1398 * breakpoint.h (make_breakpoint_silent): Export.
1399 * infcmd.c (finish_command): Check for reverse exec direction.
1400 (finish_backward): New function, handle finish cmd in reverse.
1401
1402 User interface for reverse execution.
1403 * Makefile.in (reverse.c): New file.
1404 * reverse.c: New file. User interface for reverse execution.
1405
153ccabd
PA
14062008-10-17 Pedro Alves <pedro@codesourcery.com>
1407
1408 * remote.c (record_currthread): Add inferior before child threads.
1409 (remote_threads_info): Check for exited threads. Mention
1410 notification order.
1411
ce78b96d
JB
14122008-10-16 Joel Brobecker <brobecker@adacore.com>
1413
1414 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1415 Delete bp_catch_fork and bp_catch_vfork.
1416 (struct breakpoint_ops): Add new methods "insert", "remove"
1417 and "breakpoint_hit".
1418 * breakpoint.c (create_fork_vfork_event_catchpoint)
1419 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1420 (insert_catchpoint): Remove handling of bp_catch_fork and
1421 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1422 catchpoints instead.
1423 (insert_bp_location, update_breakpoints_after_exec)
1424 (remove_breakpoint, bpstat_check_location, bpstat_what)
1425 (allocate_bp_location): Likewise.
1426 (print_it_typical, print_one_breakpoint_location, mention): Remove
1427 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1428 (ep_is_catchpoint, user_settable_breakpoint)
1429 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1430 (breakpoint_re_set_one, disable_command, enable_command):
1431 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1432 bp_catchpoint breakpoints.
1433 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1434 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1435 New functions.
1436 (catch_fork_breakpoint_ops): New static constant.
1437 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1438 (print_it_catch_vfork, print_one_catch_vfork)
1439 (print_mention_catch_vfork): New functions.
1440 (catch_vfork_breakpoint_ops): New static constant.
1441 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1442 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1443 to create the fork and vfork catchpoints.
1444 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1445 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1446 fields.
1447 (catch_exception_unhandled_breakpoint_ops): Likewise.
1448 (catch_assert_breakpoint_ops): Likewise.
1449
3c9c4b83
PA
14502008-10-16 Pedro Alves <pedro@codesourcery.com>
1451
1452 * remote.c (set_general_process): New.
1453 (remote_check_symbols): Use it.
1454
5c952c9b
PA
14552008-10-16 Pedro Alves <pedro@codesourcery.com>
1456
1457 * remote.c (push_remote_target): Delete.
1458 * target.h (push_remote_target): Delete declaration.
1459
ce5ce7ed
PA
14602008-10-15 Pedro Alves <pedro@codesourcery.com>
1461
1462 * remote.c (remote_close): Unregister remote_desc from the event
1463 loop. Always restore the SIGINT handler. Discard all inferiors
1464 here.
1465 (remote_detach_1, remote_disconnect): Don't unregister the file
1466 descriptor from the event loop here.
1467 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1468 of morning the current inferior.
1469 (remote_kill): Don't unregister the file descriptor from the event
1470 loop here.
1471 (remote_mourn_1): Don't discard inferiors here.
1472
1c5cfe86
PA
14732008-10-15 Pedro Alves <pedro@codesourcery.com>
1474
1475 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1476 locations list.
1477 (moribund_breakpoint_here_p): Record the moribund
1478 location in the moribund_locations vector.
1479 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1480 (displaced_step_fixup): Check if the breakpoint the thread was
1481 trying to step over has been removed since having been placed in
1482 the displaced stepping queue.
1483 (adjust_pc_after_break): In non-stop mode, check for a moribund
1484 breakpoint at the stop pc.
1485 (handle_inferior_event): Don't retire moribund breakpoints on
1486 TARGET_WAITKIND_IGNORE.
1487
14882008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1489
1490 * infrun.c (displaced_step_prepare): Switch thread temporarily
1491 while we're here.
1492 (displaced_step_fixup): Make sure target_resume sees ptid as
1493 inferior_ptid. Add debug output.
1494
63c715c6
PA
14952008-10-14 Pedro Alves <pedro@codesourcery.com>
1496
1497 Remove dead code.
1498
1499 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1500 (print_one_breakpoint_location): Adjust.
1501 (breakpoint_clear_ignore_counts): Delete.
1502 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1503 declaration.
1504 * target.c (generic_mourn_inferior): Don't clear ignore
1505 counts (never reached).
1506
c764a876
DE
15072008-10-10 Doug Evans <dje@google.com>
1508
1509 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1510 for dwarf section offsets and sizes.
1511 (dwarf2_cu): Ditto.
1512 (dwarf2_per_cu_data): Ditto.
1513 (create_all_comp_units): Change offset to unsigned int.
1514 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1515 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1516
1517 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1518 All callers updated.
1519 (read_checked_initial_length_and_offset): New function.
1520 (read_offset_1): New function.
1521 (read_offset): Call it.
1522 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1523 instead of read_initial_length. Call read_offset_1 instead of
1524 read_offset.
1525
1526 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1527 All callers updated.
1528
1529 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1530 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1531 DW_AT_HP_block_index.
1532
5fe04517
PA
15332008-10-10 Pedro Alves <pedro@codesourcery.com>
1534
1535 * remote.c (remote_start_remote): Always tell the stub if we're in
1536 extended-remote.
1537
c8e38a49
PA
15382008-10-09 Pedro Alves <pedro@codesourcery.com>
1539
1540 * remote.c (remote_wait): Rename to...
1541 (remote_wait_as): ... this. Don't loop here. If the remote
1542 didn't stop, return TARGET_WAITKIND_IGNORE.
1543 (remote_wait): New, reimplemented on top of remote_wait_as.
1544
9ca12bbf
TS
15452008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1546
d11d9deb
TS
1547 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1548 is fixed upstream.
1549
20249808
TS
1550 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1551
9ca12bbf
TS
1552 * MAINTAINERS (Write After Approval): Add myself.
1553
0b62613e
PA
15542008-10-09 Pedro Alves <pedro@codesourcery.com>
1555
1556 Make it compile without warnings.
1557
1558 * procfs.c (create_procinfo): Initialize `parent'.
1559 (dead_procinfo): Pass a constant string as format to error.
1560 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1561 (procfs_find_LDT_entry): Adjust format string to long int
1562 ptid.tid.
1563 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1564 (procfs_xfer_memory): Adjust prototype.
1565 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1566 variable as printf_filtered format.
1567 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1568 * Makefile.in: Remove special rule.
1569
c8d104ad
PA
15702008-10-09 Pedro Alves <pedro@codesourcery.com>
1571 Daniel Jacobowitz <dan@codesourcery.com>
1572
1573 * remote.c (remote_open_1): Move acknowledging any pending ack,
1574 querying supported features, activating noack mode, finding the
1575 target description, enabling extended remote, and checking remote
1576 symbols from here ...
1577 (remote_start_remote): ... to here.
1578 (remote_open_1): Don't pop the target if it is already gone.
1579 * target.c (unpush_target): Check for the dummy target.
1580
efdb2a86
PA
15812008-10-09 Pedro Alves <pedro@codesourcery.com>
1582
1583 * ser-mingw.c: Include "command.h".
1584 (pipe_windows_open): Declare locals at the beginning of the scope.
1585
e24a49d8
PA
15862008-10-08 Pedro Alves <pedro@codesourcery.com>
1587
1588 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1589 field.
1590 (remote_open_1): Clear waiting_for_stop_reply.
1591 (remote_resume): Set waiting_for_stop_reply.
1592 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1593 (putpkt_binary): If we're in async mode and waiting for a stop
1594 reply, bail out with an error.
1595 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1596
3084dd77
PA
15972008-10-08 Pedro Alves <pedro@codesourcery.com>
1598
1599 * remote.c (remote_get_thread_info): If the remote doesn't support
1600 the query, bail out.
1601
d6a843b5
JK
16022008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1603
1604 Convert static_kind into loc_kind enum.
1605 * gdbtypes.h (enum field_loc_kind): New.
1606 (union field_location): New field dwarf_block.
1607 (struct field): Rename static_kind as loc_kind.
1608 (FIELD_STATIC_KIND): Rename to ...
1609 (FIELD_LOC_KIND): ... here.
1610 (TYPE_FIELD_STATIC_KIND): Rename to ...
1611 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1612 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1613 (TYPE_FIELD_STATIC): Remove.
1614 (TYPE_FIELD_BITPOS): Reformat.
1615 (SET_FIELD_BITPOS): New.
1616 (FIELD_PHYSADDR): Rename to ...
1617 (FIELD_STATIC_PHYSADDR): ... here.
1618 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1619 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1620 (FIELD_PHYSNAME): Rename to ...
1621 (FIELD_STATIC_PHYSNAME): ... here.
1622 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1623 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1624 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1625 (field_is_static): New declaration.
1626 * gdbtypes.c (field_is_static): New function.
1627 (copy_type_recursive): Update throughout.
1628 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1629 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1630 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1631
c289427b
PA
16322008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1633 Pedro Alves <pedro@codesourcery.com>
1634
1635 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1636 avoid a name collision.
1637 * gnu-nat.c: Likewise.
1638 * i386gnu-nat.c: Likewise.
1639
8c1c099f
JB
16402008-10-07 Joel Brobecker <brobecker@adacore.com>
1641
1642 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1643 of arguments that are references.
1644
8a498d38
DE
16452008-10-06 Doug Evans <dje@google.com>
1646
d97bc12b
DE
1647 * dwarf2read.c (dwarf2_die_debug): New static global.
1648 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1649 Print to specified file, indented by the specified amount.
1650 (dump_die_for_error): New fn. Point all existing callers of
1651 dump_die here.
1652 (dump_die_die_1,dump_die): New fns, replaces ...
1653 (dump_die_list): ... deleted.
1654 (read_die_and_children_1): Old contents of read_die_and_children
1655 moved here.
1656 (read_die_and_children): Rewrite.
1657 (read_die_and_siblings): Call read_die_and_children_1 instead of
1658 read_die_and_children.
1659 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1660 * gdbinit.in (pdie): New macro.
1661
45452591
DE
1662 * dwarf2read.c (offset_in_cu_p): New function.
1663 (find_partial_die,follow_die_ref): Use it.
1664
8a498d38
DE
1665 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1666 (maintenance_info_psymtabs): Ditto.
1667
360551e4 16682008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1669
1670 * infrun.c (handle_inferior_event): Fix typo in comment.
1671
c1828f25
VP
16722008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1673
1674 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1675
5ef73790
PP
16762008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1677
1678 PR gdb/2384:
1679 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1680 different lifetimes.
1681
352efb28 16822008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1683
1684 * solib-osf.c: Include "solib.h".
1685
d1a41061
PP
16862008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1687
1688 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1689 and check for out-of-memory condition.
1690 * exec.c (exec_file_command): Call it.
1691 * infrun.c (handle_command, xdb_handle_command): Likewise.
1692 * interps.c (interpreter_exec_cmd): Likewise.
1693 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1694 * procfs.c (info_proc_cmd): Likewise.
1695 * remote-mips.c (common_open): Likewise.
1696 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1697 (gdbsim_open): Likewise.
1698 * remote.c (extended_remote_run, remote_put_command)
1699 (remote_get_command, remote_delete_command): Likewise.
1700 * ser-mingw.c (pipe_windows_open): Likesise.
1701 * source.c (add_path, show_substitute_path_command)
1702 (unset_substitute_path_command, set_substitute_path_command):
1703 Likewise.
1704 * stack.c (backtrace_command): Likewise.
1705 * symfile.c (symbol_file_command, generic_load)
1706 (add_symbol_file_command): Likesise.
1707 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1708 (maintenance_print_msymbols): Likewise.
1709
d78df370
JK
17102008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1713 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1714 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1715 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1716 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1717 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1718 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1719 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1720 (f77_get_upperbound): ... this function handling now only
1721 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1722 (f77_get_dynamic_lowerbound): Replace with ...
1723 (f77_get_lowerbound): ... this function handling now only
1724 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1725 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1726 Update their callers.
1727 * eval.c (evaluate_subexp_standard): Update their callers.
1728 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1729 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1730 prototypes.
1731 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1732 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1733 the lower_bound_was_default variable. Update the
1734 f77_get_dynamic_upperbound, f77_get_upperbound and
1735 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1736 * gdbtypes.c (print_bound_type): Remove the function.
1737 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1738 LOWER_BOUND_TYPE.
1739 * gdbtypes.h (enum array_bound_type): Remove.
1740 (struct main_type): Remove the fields upper_bound_type and
1741 lower_bound_type. Comment the new overload of the field artificial.
1742 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1743 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1744 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1745 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1746
40debb5a
TT
17472008-10-02 Tom Tromey <tromey@redhat.com>
1748
1749 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1750
db5f024e
DJ
17512008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1752
1753 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1754 comments.
1755 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1756 (mips_linux_init_abi): Do not override skip_trampoline_code.
1757 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1758 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1759 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1760 (mips_skip_mips16_trampoline_code): Rename from
1761 mips_skip_trampoline_code.
1762 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1763 * infrun.c (handle_inferior_event): Do not pass zero to
1764 in_solib_dynsym_resolve_code.
1765
9f9d052e
PM
17662008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1767 Pedro Alves <pedro@codesourcery.com>
1768
1769 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1770
1771
bd2e94ce
TT
17722008-10-01 Tom Tromey <tromey@redhat.com>
1773
1774 * symtab.c (search_symbols): Update.
1775 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1776
8b41ec65
TT
17772008-10-01 Tom Tromey <tromey@redhat.com>
1778
1779 * symfile.c (syms_from_objfile): Update.
1780 (reread_symbols): Update.
1781 * objfiles.h (OBJF_SYMS): Remove.
1782 (OBJF_REORDERED): Renumber.
1783 (OBJF_SHARED): Likewise.
1784 (OBJF_READNOW): Likewise.
1785 (OBJF_USERLOADED): Likewise.
1786
712f90be
TT
17872008-10-01 Tom Tromey <tromey@redhat.com>
1788
1789 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1790 (find_pc_sect_symtab): Likewise.
1791 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1792 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1793 MSYMBOL_TYPE, not SYMBOL_TYPE.
1794 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1795 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1796 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1797 MSYMBOL_TYPE.
1798 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1799
b887350f
TT
18002008-10-01 Tom Tromey <tromey@redhat.com>
1801
1802 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1803 (scan_xcoff_symtab): Update.
1804 * mdebugread.c (record_minimal_symbol): Update.
1805 (parse_partial_symbols): Update.
1806 * elfread.c (record_minimal_symbol): Update.
1807 * dbxread.c (record_minimal_symbol): Update.
1808 * coffread.c (record_minimal_symbol): Update.
1809 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1810 (sh64_elf_make_msymbol_special): Update.
1811 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1812 MSYMBOL_TARGET_FLAG_1.
1813 (mips_elf_make_msymbol_special): Likewise.
1814 (msymbol_is_special): Likewise.
1815 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1816 (install_minimal_symbols): Likewise.
1817 (prim_record_minimal_symbol): Update.
1818 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1819 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1820 (MSYMBOL_SET_RTI): Redefine.
1821 (MSYMBOL_IS_RTC): Redefine.
1822 (MSYMBOL_IS_RTI): Redefine.
1823 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1824 (MSYMBOL_IS_SPECIAL): Redefine.
1825 * symtab.h (struct minimal_symbol) <info>: Remove.
1826 <target_flag_1, target_flag_2>: New fields.
1827 (MSYMBOL_INFO): Remove.
1828 (MSYMBOL_TARGET_FLAG_1): New macro.
1829 (MSYMBOL_TARGET_FLAG_2): Likewise.
1830 (prim_record_minimal_symbol_and_info): Update.
1831
d35e5795
JB
18322008-09-30 Joel Brobecker <brobecker@adacore.com>
1833
1834 * ada-lang.c (is_digits_suffix): Delete unused function.
1835
d37209fd
JB
18362008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1837
1838 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1839 moduli >= 2**31.
1840
18412008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1842
1843 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1844 variant branch.
1845 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1846 supposed to be null. Fixes debugger segfaults.
1847 (is_unchecked_variant): New function.
1848 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1849 untouched.
1850 (ada_template_to_fixed_record_type_1): Fix comment.
1851
3d0b0fa3
JB
18522008-09-30 Joel Brobecker <brobecker@adacore.com>
1853
1854 * ada-lang.c (standard_exc): New static constant.
1855 (ada_exception_catchpoint_cond_string): Add special handling
1856 for the predefined exceptions.
1857
cdc7bb92
JB
18582008-09-30 Joel Brobecker <brobecker@adacore.com>
1859
1860 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1861 the code accordingly.
1862
6b0d7253
JB
18632008-09-30 Joel Brobecker <brobecker@adacore.com>
1864
1865 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1866 treatment of expect_type. Return the correct type when dereferencing
1867 an integer.
1868
9a044a89
TT
18692008-09-30 Tom Tromey <tromey@redhat.com>
1870
1871 PR gdb/2484:
1872 * symtab.c (struct add_macro_name_data): New struct.
1873 (add_macro_name): New function.
1874 (default_make_symbol_completion_list): Complete macro names.
1875 * scm-lang.c (scm_language_defn): Update.
1876 * p-lang.c (pascal_language_defn): Update.
1877 * objc-lang.c (objc_language_defn): Update.
1878 * macrotab.h (macro_callback_fn): Add user_data argument.
1879 (macro_for_each): Likewise.
1880 (macro_for_each_in_scope): Declare.
1881 * macrotab.c: (struct macro_for_each_data): New struct.
1882 (foreach_macro): Use it.
1883 (macro_for_each): Likewise.
1884 (foreach_macro_in_scope): New function.
1885 (macro_for_each_in_scope): Likewise.
1886 * macrocmd.c (print_one_macro): Add argument.
1887 (macro_list_command): Pass NULL to macro_for_each.
1888 * m2-lang.c (m2_language_defn): Update.
1889 * language.h (struct language_defn) <la_macro_expansion>: New
1890 field.
1891 (macro_expansion): New enum.
1892 * language.c (unknown_language_defn): Update. Fix order of
1893 initializers.
1894 (auto_language_defn): Likewise.
1895 (local_language_defn): Update.
1896 * jv-lang.c (java_language_defn): Update.
1897 * f-lang.c (f_language_defn): Update.
1898 * c-lang.c (c_language_defn): Update.
1899 (cplus_language_defn): Likewise.
1900 (asm_language_defn): Likewise.
1901 (minimal_language_defn): Likewise.
1902 * ada-lang.c (ada_language_defn): Update.
1903
b084d499
JB
19042008-09-30 Joel Brobecker <brobecker@adacore.com>
1905
1906 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1907 (get_scope_pc_bounds): Use it.
1908
2fae03e8
TT
19092008-09-27 Tom Tromey <tromey@redhat.com>
1910
1911 * NEWS: Update.
1912 * macrocmd.c (extract_identifier): Add is_parameter argument.
1913 (macro_define_command): Update.
1914 (macro_undef_command): Likewise.
1915 * macroexp.c (stringify): New function.
1916 (find_parameter): Likewise.
1917 (gather_arguments): Add nargs argument. Handle varargs.
1918 (substitute_args): Add is_varargs and va_arg_name arguments.
1919 Handle varargs, splicing, stringification. Use find_parameter.
1920 (expand): Handle varargs.
1921
5c6ce71d
TT
19222008-09-27 Tom Tromey <tromey@redhat.com>
1923
1924 * scm-lang.c (scm_language_defn): Update.
1925 * p-typeprint.c (pascal_print_typedef): New function.
1926 * p-lang.h: (pascal_print_typedef): Declare.
1927 * p-lang.c (pascal_language_defn): Update.
1928 * objc-lang.c (objc_language_defn): Update.
1929 * m2-typeprint.c (m2_print_typedef): New function.
1930 * m2-lang.h (m2_print_typedef): Declare.
1931 * m2-lang.c (m2_language_defn): Update.
1932 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1933 Remove.
1934 (struct language_defn) <la_print_typedef>: New field.
1935 (default_print_typedef): Declare.
1936 (LA_PRINT_TYPEDEF): New define.
1937 * language.c (unknown_language_defn): Update.
1938 (auto_language_defn): Update.
1939 (local_language_defn): Update.
1940 * jv-lang.c (java_language_defn): Update.
1941 * f-lang.c (f_language_defn): Update.
1942 * c-typeprint.c (c_print_typedef): New function.
1943 * c-lang.h (c_print_typedef): Declare.
1944 * c-lang.c (c_language_defn): Update.
1945 (cplus_language_defn): Update.
1946 (asm_language_defn): Update.
1947 (minimal_language_defn): Update.
1948 * ada-lang.c (ada_language_defn): Update.
1949 * typeprint.c (default_print_typedef): New function.
1950
09be204e
TT
19512008-09-27 Tom Tromey <tromey@redhat.com>
1952
1953 * jv-exp.y (insert_exp): Define using ISO syntax.
1954 (copy_exp): Likewise.
1955 (push_expression_name): Likewise.
1956 (push_fieldnames): Likewise.
1957 (java_type_from_name): Likewise.
1958 (yyerror): Likewise.
1959 (yylex): Likewise.
1960 (parse_number): Likewise.
1961
3cd9d164
JB
19622008-09-26 Joel Brobecker <brobecker@adacore.com>
1963
1964 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1965
e3168615
JB
19662008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1967
1968 * stack.c (print_frame_args): Fix typos in comments.
1969
8b8655b3
TJB
19702008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1971
1972 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1973
6fbd21a1
VP
19742008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1975
1976 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1977
45ef8ce0
AS
19782008-09-24 Andreas Schwab <schwab@suse.de>
1979
1980 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 1981 account. Avoid excessive function calls.
45ef8ce0 1982
9cbfa09e
DE
19832008-09-23 Doug Evans <dje@google.com>
1984
07128da0
DE
1985 * dcache.c (state_chars): New static global.
1986 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1987 All uses updated.
1988 (dcache_info): Print cache state as mnemonically useful letters instead
1989 of magic numbers.
1990
9cbfa09e
DE
1991 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1992
d4c0a7a0
TT
19932008-09-22 Tom Tromey <tromey@redhat.com>
1994
1995 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1996 printf_filtered.
1997
6ca15a4b
PA
19982008-09-22 Pedro Alves <pedro@codesourcery.com>
1999
2000 * infrun.c (follow_exec): Don't do a generic mourn. Instead
2001 inline the required bits.
2002 * breakpoint.h (enum inf_context): Add inf_execd.
2003
795e548f
PA
20042008-09-22 Pedro Alves <pedro@codesourcery.com>
2005
2006 * infrun.c (handle_inferior_event): In the follow exec case,
2007 context-switch before doing anything else.
2008
54a012c9
PA
20092008-09-22 Pedro Alves <pedro@codesourcery.com>
2010
2011 * top.c (any_thread_of, kill_or_detach): New functions.
2012 (quit_target): Iterate over all inferiors, killing or detaching
2013 accordingly.
2014
181e7f93
PA
20152008-09-22 Pedro Alves <pedro@codesourcery.com>
2016
2017 Remove the attach_flag global, and make it per-inferior.
2018
2019 * inferior.h (attach_flag): Delete.
2020 (inferior_process): Declare.
2021 * solib.c (update_solib_list): Adjust.
2022 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
2023 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2024 (inf_ptrace_files_info): Get it from the current inferior.
2025 * inf-ttrace.c (inf_ttrace_attach): Adjust.
2026 (inf_ttrace_files_info): Get it from the current
2027 inferior.
2028 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
2029 (clear_sigint_trap): Get it from the current process.
2030 * remote.c (extended_remote_attach_1)
2031 (extended_remote_create_inferior_1): Adjust.
2032 * top.c (quit_confirm, quit_target): Get it from the current inferior.
2033 * procfs.c (do_detach): Adjust.
2034 (procfs_wait): Get it from the event inferior.
2035 (procfs_files_info): Get it from the current inferior.
2036 * nto-procfs.c (procfs_files_info): Likewise.
2037 (procfs_attach): Adjust. Set the attach_flag here.
2038 (do_attach): Don't set it here.
2039 (procfs_detach): Don't clear it.
2040 (procfs_mourn_inferior): Don't clear it.
2041 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2042 * target.c (attach_flag): Delete.
2043 (generic_mourn_inferior): Don't clear it.
2044 * win32-nat.c (get_win32_debug_event): Get it from the event
2045 process.
2046 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
2047 in the inferior accordingly.
2048 (win32_attach): Don't set the attach_flag here. Pass 1 to
2049 do_intial_win32_stuff.
2050 (win32_files_info): Get it from the current inferior.
2051 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
2052 do_intial_win32_stuff.
2053
d6b48e9c
PA
20542008-09-22 Pedro Alves <pedro@codesourcery.com>
2055
2056 Make the stop_soon global be per-inferior instead.
2057
2058 * infcmd.c (attach_command_post_wait): Adjust.
2059 (attach_command): Likewise.
2060
2061 * inferior.h (stop_soon): Delete.
2062 (struct inferior): Add stop_soon member.
2063
2064 * infrun.c (stop_soon): Delete.
2065 (clear_proceed_status, start_remote)
2066 (fetch_inferior_event, handle_inferior_event): Adjust.
2067 (signal_stop_state): Don't check stop_soon here. Check in callers
2068 instead.
2069 (save_inferior_status, restore_inferior_status): Adjust.
2070
2071 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
2072 signals to common code if starting up the inferior.
2073
2074 * inferior.h (struct inferior_info): Added stop_soon member.
2075 * inferior.c (add_inferior) Clear stop_soon.
2076
2077 * mips-tdep.c (heuristic_proc_start): Adjust.
2078 * nto-procfs.c (procfs_create_inferior): Adjust.
2079 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2080 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2081 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2082 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2083
2084 * win32-nat.c (do_initial_win32_stuff): Adjust.
2085
2086 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2087
82f73884
PA
20882008-09-22 Pedro Alves <pedro@codesourcery.com>
2089
2090 Implement remote multi-process extensions.
2091
2092 * remote.c (struct remote_state): Add extended and
2093 multi_process_aware fields.
2094 (remote_multi_process_p): New.
2095 (PACKET_vKill): New.
2096 (record_currthread): Use thread_change_ptid. Notice new
2097 inferiors.
2098 (set_thread, remote_thread_alive): Use write_ptid.
2099 (write_ptid, read_ptid): New.
2100 (remote_current_thread, remote_threads_extra_info): Use them.
2101 (remote_threads_info): Likewise. Detect new inferiors.
2102 (remote_start_remote): Add inferior to inferior list.
2103 (remote_multi_process_feature): New.
2104 (remote_protocol_features): Add "multiprocess" feature.
2105 (remote_query_supported): Pass "multiprocess+" as supported
2106 features.
2107 (remote_open_1): Clear multi_process_aware. Set extended
2108 accordingly.
2109 (remote_detach_1): Detach current process. Use extended packet
2110 format for extended-remote multi-process. Detach process from the
2111 inferior list. Only mourn after printing output.
2112 (extended_remote_attach_1): Add process to the inferior list.
2113 (remote_vcont_resume): Use write_ptid to pass the thread ids.
2114 (remote_wait): Use read_ptid. Implement the extended
2115 multi-process extension format of the 'W' and 'X' reply packets.
2116 Remove exited inferiors from inferior list.
2117 (remote_xfer_memory): Set general thread.
2118 (remote_vkill): New.
2119 (extended_remote_kill): New.
2120 (remote_mourn_1): Discard all inferiors.
2121 (select_new_thread_callback): New.
2122 (extended_remote_mourn_1): If there are more processes to debug,
2123 switch to a thread in another process, and don't pop the target.
2124 (extended_remote_create_inferior_1): Add the new process to the
2125 inferior list.
2126 (remote_stopped_by_watchpoint): Indenting.
2127 (remote_xfer_partial): Set the general thread.
2128 (remote_pid_to_str): If the remote is multi-process aware, print
2129 the process id as well as the thread id.
2130 (remote_get_thread_local_address): Use write_ptid.
2131 (init_extended_remote_ops): Register extended_remote_kill.
2132 (_initialize_remote): Register new packets. Change
2133 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
2134 member to 42000.
2135
2136 * thread.c (thread_change_ptid): Also account for the inferior pid
2137 changing.
2138
2139 * inferior.h (discard_all_inferiors): Declare.
2140 * inferior.c (discard_all_inferiors): New.
2141
7f9f62ba
PA
21422008-09-22 Pedro Alves <pedro@codesourcery.com>
2143
2144 * gnu-nat.c (gnu_attach): Add process to inferiors table.
2145 (gnu_detach): Remove it.
2146 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
2147 table.
2148 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
2149 to inferior table accordingly.
2150 (inf_ptrace_attach): Add new process to inferior table.
2151 (inf_ptrace_detach): Remove it.
2152 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
2153 to inferior table accordingly.
2154 (inf_ttrace_attach): Add process to inferior table.
2155 (inf_ttrace_detach): Remove it.
2156 * linux-fork.c (init_fork_list): Delete any left over inferior.
2157 (linux_fork_mourn_inferior, detach_fork_command): Also delete
2158 processes from inferior list.
2159 * monitor.c (monitor_open): Add process to inferior list.
2160 (monitor_close): Remove it.
2161 * nto-procfs.c (procfs_attach): Add process to inferior list.
2162 Find threads after pushing the target.
2163 (procfs_detach): Remove process from inferior list.
2164 (procfs_create_inferior): Add process to inferior list.
2165 * procfs.c (procfs_detach): Remove process from inferior list.
2166 (do_attach): Add process to inferior list.
2167 * remote-sim.c (sim_create_inferior): Add process to inferior list.
2168 (gdbsim_close): Remove it.
2169 * target.c (generic_mourn_inferior): If inferior_ptid is not
2170 null_ptid, remove the corresponding inferior from inferior list.
2171 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
2172 (win32_detach): Remove it.
2173 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
2174 to inferior list accordingly.
2175 * fork-child.c (fork_inferior): Add process to inferior list.
2176 * corelow.c (CORELOW_PID): Define.
2177 (core_close): Remove core from inferior list.
2178 (core_open): Add it.
2179
b77209e0
PA
21802008-09-22 Pedro Alves <pedro@codesourcery.com>
2181
2182 * inferior.h: Forward declare struct ui_out.
2183 Forward declare struct private_inferior.
2184 (struct inferior): New.
2185 (init_inferior_list, add_inferior, add_inferior_silent)
2186 (delete_inferior, delete_inferior_silent, detach_inferior)
2187 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2188 (valid_inferior_id, find_inferior_pid): New functions.
2189 (inferior_callback_func): New typedef.
2190 (iterate_over_inferiors, print_inferior, have_inferiors)
2191 (current_inferior): New functions.
2192 * inferior.c: New file.
2193
2194 * Makefile.in (SFILES): Add inferior.c.
2195 (COMMON_OBS): Add inferior.o.
2196
d8c3d48d
JL
21972008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
2198
2199 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
2200 instead of determining symbol and line info directly.
2201 * MAINTAINERS: Update my email address.
2202
d54be744
DJ
22032008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2204
2205 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
2206 at the same address as a prologue marker. Do not skip an entire
2207 function.
2208
26fae1d6
AS
22092008-09-22 Andrew Stubbs <ams@codesourcery.com>
2210
2211 * frame.c (get_frame_register_bytes): Comment improvments.
2212
1ad15515
PA
22132008-09-22 Pedro Alves <pedro@codesourcery.com>
2214
2215 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
2216 all-stop mode.
2217
14fc49fb
AS
22182008-09-19 Andrew Stubbs <ams@codesourcery.com>
2219
2220 * MAINTAINERS: Update my email address.
2221
3f27f2a4
AS
22222008-09-19 Andrew Stubbs <ams@codesourcery.com>
2223
2224 * frame.c (get_frame_register_bytes): Detect bad debug info.
2225
88ed393a
JK
22262008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2229 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2230 initialization ...
2231 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2232 ...
2233 (handle_inferior_event): ... here after the add_thread call together
2234 with the local adjust_pc_after_break and reinit_frame_cache calls.
2235
d832cb68
DD
22362008-09-16 David Daney <ddaney@avtrex.com>
2237
2238 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2239 all hardware bpstats.
2240
b1e40a6f
JB
22412008-09-16 Joel Brobecker <brobecker@adacore.com>
2242
2243 * gstdint.h: Delete.
2244
50a834af
MK
22452008-09-15 Mark Kettenis <kettenis@gnu.org>
2246
2247 * infcall.c (generic_push_dummy_code): Remove.
2248 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2249
9d25dd43
DE
22502008-09-15 Doug Evans <dje@google.com>
2251
2252 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2253 (struct attribute): Ditto.
2254
85c83e99
DA
22552008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2256
326e541f
DA
2257 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2258 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2259
85c83e99
DA
2260 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2261 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2262 Correct arguments and improve comments.
2263 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2264 disabled code.
2265 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2266 point DBX register, change error to warning, and improve comments.
2267
76815b17
DE
22682008-09-14 Doug Evans <dje@google.com>
2269
2270 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2271
51e753cf
DA
22722008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2273
2274 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2275
06e476f5
JB
22762008-09-13 Joel Brobecker <brobecker@adacore.com>
2277
2278 * defs.h (GCC_GENERATED_STDINT_H): Define.
2279
6c761d9c
TT
22802008-09-13 Tom Tromey <tromey@redhat.com>
2281
2282 * varobj.c (varobj_set_display_format): Use xfree.
2283 * tracepoint.c (stringify_collection_list): Use xfree.
2284 * remote-fileio.c (remote_fileio_reset): Use xfree.
2285 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2286 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2287 asprintf.
2288 * cp-support.c (mangled_name_to_comp): Use xfree.
2289
339c13b6
JB
22902008-09-13 Joel Brobecker <brobecker@adacore.com>
2291
2292 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2293 the associated complete symbol is also in the list.
2294 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2295 extracted out from ada_lookup_symbol_list.
2296 (ada_lookup_symbol_list): Use them. Remove the search through
2297 the minimal symbols.
2298
bc30ff58
JB
22992008-09-13 Joel Brobecker <brobecker@adacore.com>
2300
2301 * dwarf2read.c (add_partial_subprogram): New procedure.
2302 (scan_partial_symbols): Use it.
2303 (load_partial_dies): Read in children of subprogram and lexical
2304 blocks for Ada compilation units.
2305
bb01da77
TT
23062008-09-13 Tom Tromey <tromey@redhat.com>
2307
2308 * symfile.c (build_id_verify): Free 'found'.
2309 (find_separate_debug_file): Use xfree, not free.
2310
d00adf39
DE
23112008-09-12 Doug Evans <dje@google.com>
2312
00630ca8
DE
2313 * corefile.c (write_memory): Remove unnecessary copying.
2314
5d6fa950
DE
2315 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2316 order of _initialize_* fns.
2317
d00adf39
DE
2318 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2319 first_die_offset. All uses updated.
2320 Delete unused members cu_head_ptr, next.
2321 Move members base_known, base_address to ...
2322 (dwarf2_cu) ... here. All uses updated.
2323
3d0bb823
PA
23242008-09-12 Pedro Alves <pedro@codesourcery.com>
2325
2326 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2327 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2328
3c35e65b
UW
23292008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2330
2331 * fork-child.c (startup_inferior): Use target_wait and target_resume
2332 directly instead of calling wait_for_inferior / resume.
2333
2334 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2335 or init_wait_for_inferior.
2336 (run_command_1): Call init_wait_for_inferior.
2337
4cca3ac9
UW
23382008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2339
2340 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2341 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2342 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2343 builtin_type_unsigned_char, builtin_type_unsigned_short,
2344 builtin_type_unsigned_int, builtin_type_unsigned_long,
2345 builtin_type_float, builtin_type_double, builtin_type_long_double,
2346 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2347 builtin_type_bool, builtin_type_long_long,
2348 builtin_type_unsigned_long_long): Remove macros.
2349
2350 (builtin_type_f_character, builtin_type_f_integer,
2351 builtin_type_f_integer_s2, builtin_type_f_logical,
2352 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2353 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2354 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2355 builtin_type_f_complex_s32): Likewise.
2356
2357 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2358 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2359
2360 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2361 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2362
2363 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2364 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2365
b6da22b0
UW
23662008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2367
2368 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2369 target_gdbarch instead of builtin_type_void_data_ptr.
2370 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2371 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2372 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2373 open_symbol_file_object): Likewise.
2374 * nto-tdep.c (LM_ADDR): Likewise.
2375
ff7da468
UW
23762008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2379 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2380 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2381
4e906f53
UW
23822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2383
2384 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2385 and its associated types to perform pointer conversion.
2386 (procfs_can_use_hw_breakpoint): Likewise.
2387 (procfs_auxv_parse): Remove unused variable.
2388
ffe5a37e
UW
23892008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2390
2391 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2392 instead of builtin_type_void_data_ptr.
2393 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2394
b806fb9a
UW
23952008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2396
2397 * expprint.c (print_subexp_standard): Compare against builtin type
2398 associated with exp->gdbarch instead of builtin_type_char.
2399
2400 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2401 extract values of arbitrary logical type. Handle arbitrary
2402 complex types.
2403
2404 * printcmd.c (float_type_from_length): New function.
2405 (print_scalar_formatted, printf_command): Use it.
2406
3e3b026f
UW
24072008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2408
2409 * valops.c: Include "objfiles.h" and "symtab.h".
2410 (find_function_in_inferior): New argument OBJF_P. Use it to return
2411 objfile where function is defined. Use per-objfile arch types
2412 instead of builtin_type_ to define default return type.
2413
2414 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2415 architecture to define inferior call argument types.
2416 * gcore.c (derive_heap_segment): Likewise.
2417 * objc-lang.c (value_nsstring): Likewise.
2418 * scm-lang.c (scm_lookup_name): Likewise.
2419 * scm-valprint.c (scm_inferior_print): Likewise.
2420 * valops.c (value_allocate_space_in_inferior): Likewise.
2421
2422 * eval.c (evaluate_subexp_standard): Update calls.
2423 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2424
2425 * linux-fork.c: Include "objfiles.h".
2426 * scm-lang.c: Include "objfiles.h".
2427 * scm-valprint.c: Include "objfiles.h".
2428
f8dcfc0a
UW
24292008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2430
2431 * gdbarch.sh (name_of_malloc): Remove.
2432 * gdbarch.c, gdbarch.h: Re-generate.
2433 * valops.c (value_allocate_space_in_inferior): Do not call
2434 gdbarch_name_of_malloc.
2435
c56324e0
UW
24362008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2437
2438 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2439 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2440 (value_bit_index): Use extract_unsigned_integer
2441 instead of unpack_long to read single byte.
2442
7788af6d
UW
24432008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2444
2445 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2446 associates types instead of builtin_type_ macros.
2447 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2448 (call_function_by_hand): Use per-architecture "int" type as
2449 fall-back if find_function_addr returns NULL VALUE_TYPE.
2450 Update call to value_arg_coerce.
2451
ad4820ab
UW
24522008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2453
2454 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2455 (cplus_make_method_ptr): Add TYPE parameter.
2456 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2457 on to current_cp_abi.method_ptr_size callback.
2458 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2459 current_cp_abi.make_method_ptr callback.
2460
2461 * gdbtypes.c (lookup_methodptr_type): Pass target type
2462 argument to cplus_method_ptr_size.
2463 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2464 (value_struct_elt_for_reference): Likewise.
2465
2466 * gnu-v3-abi.c (get_class_arch): New function.
2467 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2468 instead of current_gdbarch. Update all callers.
2469 (gnuv3_get_vtable): Likewise.
2470 (gnuv3_get_virtual_fn): Likewise.
2471 (gnuv3_decode_method_ptr): Likewise.
2472 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2473 Use it instead of current_gdbarch.
2474 (gnuv3_virtual_fn_field): Likewise.
2475 (gnuv3_baseclass_offset): Likewise.
2476 (gnuv3_print_method_ptr): Likewise.
2477 (gnuv3_method_ptr_to_value): Likewise.
2478 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2479 class architecture. Use architecture types instead of builtin types.
2480 (gnuv3_make_method_ptr): Likewise.
2481
2482 * cp-valprint.c (cp_print_class_member): Expect pointer type
2483 instead of class type. Use its length when extracting value.
2484 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2485
5ed92fa8
UW
24862008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2487
2488 * stack.c (return_command): Use frame architecture to determine
2489 default integer return type.
2490
2491 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2492 to determine pointer types.
2493 (f77_get_dynamic_upperbound): Likewise.
2494
2495 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2496 (resolve_msgsend): Use architecture of current frame to determine
2497 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2498 (resolve_msgsend_stret, resolve_msgsend_super,
2499 resolve_msgsend_super_stret): Likewise.
2500
0dfff4cb
UW
25012008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2504 instead of builtin_type_ macros.
2505 * amd64-tdep.c (amd64_register_type): Likewise.
2506 (amd64_get_longjmp_target): Likewise.
2507 * arm-tdep.c (arm_register_type): Likewise.
2508 * avr-tdep.c (avr_register_type): Likewise.
2509 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2510 * frv-tdep.c (frv_register_type): Likewise.
2511 * h8300-tdep.c (h8300_register_type): Likewise.
2512 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2513 hppa_skip_trampoline_code): Likewise.
2514 * i386-tdep.c (i386_register_type): Likewise.
2515 (i386_unwind_pc, i386_sse_type): Likewise.
2516 * ia64-tdep.c (ia64_register_type): Likewise.
2517 * m32r-tdep.c (m32r_register_type): Likewise.
2518 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2519 * m88k-tdep.c (m88k_register_type): Likewise.
2520 * mep-tdep.c (mep_register_type): Likewise.
2521 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2522 * mn10300-tdep.c (mn10300_register_type): Likewise.
2523 * mt-tdep.c (mt_copro_register_type): Likewise.
2524 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2525 (rs6000_convert_register_p, rs6000_register_to_value,
2526 rs6000_value_to_register): Likewise.
2527 * s390-tdep.c (s390_register_type): Likewise.
2528 * sh64-tdep.c (sh64_register_type): Likewise.
2529 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2530 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2531 sh_sh4_build_float_register_type, sh_sh4_register_type,
2532 sh_default_register_type): Likewise.
2533 * sparc64-tdep.c (sparc64_register_type): Likewise.
2534 * sparc-tdep.c (sparc32_register_type): Likewise.
2535 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2536 * v850-tdep.c (v850_register_type): Likewise.
2537 * vax-tdep.c (vax_register_type): Likewise.
2538 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2539 xtensa_push_dummy_call): Likewise.
2540
2541 * std-regs.c (value_of_builtin_frame_fp_reg,
2542 value_of_builtin_frame_pc_reg): Likewise.
2543 * target-descriptions.c (tdesc_register_type): Likewise.
2544
6d84d3d8
UW
25452008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2546
2547 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2548 instead of builtin_type_int as default unspecified integral type.
2549 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2550 assign_component, to_fixed_range_type): Likewise.
2551 * ada-typeprint.c (print_range, print_range_bound,
2552 print_range_type_named): Likewise.
2553 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2554 * eval.c (evaluate_subexp_standard): Likewise.
2555 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2556 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2557 build_gdb_vtable_type): Likewise.
2558 * jv-lang.c (java_array_type): Likewise.
2559 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2560 * m2-valprint.c (m2_print_long_set): Likewise.
2561 * parse.c (follow_types): Likewise.
2562 * p-typeprint.c (pascal_type_print_base): Likewise.
2563 * valops.c (value_one, value_array, value_string,
2564 value_bitstring): Likewise.
2565 * value.c (allocate_repeat_value, value_from_string): Likewise.
2566 * varobj.c (c_describe_child): Likewise.
2567 * mt-tdep.c (mt_register_type): Likewise.
2568 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2569 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2570
180b9a0e
UW
25712008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2572
2573 * defs.h (struct gdbarch): Add forward declaration.
2574 (set_next_address): Add GDBARCH argument.
2575 * printcmd.c (set_next_address): Use it to find pointer type.
2576 * breakpoint.c (breakpoint_1): Update call.
2577 * source.c (line_info): Likewise.
2578 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2579
2580 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2581 types for internal variable values.
2582 * infrun.c (handle_inferior_event): Likewise.
2583 * source.c (forward_search_command, reverse_search_command): Likewise.
2584 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2585 set_tracepoint_num, set_traceframe_context): Likewise.
2586
b769d911
UW
25872008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2588
2589 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2590 and builtin_true_unsigned_char.
2591 (builtin_type_true_char): Remove macro, add extern declaration.
2592 (builtin_type_true_unsigned_char): Add extern declaration.
2593 * gdbtypes.c (builtin_type_true_char): New global variable.
2594 (builtin_type_true_unsigned_char): Likewise.
2595 (_initialize_gdbtypes): Initialize them.
2596 (gdbtypes_post_init): Do not initialize builtin_true_char
2597 and builtin_true_unsigned_char members of struct builtin_type.
2598
2599 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2600 use builtin_type_true_unsigned_char instead.
2601
2602 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2603 instead of builtin_type_char for internal string.
2604
fde6c819
UW
26052008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2606
2607 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2608 (builtin_type_f_void): Remove macro.
2609 * gdbtypes.c (builtin_type_void): New global variable.
2610 (_initialize_gdbtypes): Initialize it.
2611
2612 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2613 lookup_pointer_type or lookup_function_type on builtin_type_void.
2614 * printcmd.c (set_next_address): Likewise.
2615 * objc-lang.c (value_nsstring): Likewise.
2616 * mt-tdep.c (mt_copro_register_type): Likewise.
2617 * xtensa-tdep.c (xtensa_register_type): Likewise.
2618
2619 * symfile.c (syms_from_objfile): Remove special handling
2620 of builtin_type_void and builtin_type_char.
2621
d4dbb9c7
UW
26222008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2623
2624 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2625 of builtin_type_ macros when handling OP_OBJC_ operations.
2626 * objc-lang.c (print_object_command): Likewise.
2627
8ca1c40e
UW
26282008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2629
2630 * ada-valprint.c: Include "objfiles.h".
2631 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2632 a System.Address type is defined to retrieve the proper pointer type
2633 to use to print it.
2634
3cb382c9
UW
26352008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2636
2637 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2638 result type instead of builtin_type_int.
2639 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2640 (ada_value_subscript): Update call to value_pos_atr.
2641 (ada_value_ptr_subscript): Likewise.
2642 (ada_evaluate_subexp): Likewise.
2643
a53b7a21
UW
26442008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2645
2646 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2647 (cast_from_fixed_to_double): Rename to ...
2648 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2649 of builtin_type_double.
2650 (ada_value_cast): Use cast_from_fixed instead of casting result
2651 of cast_from_fixed_to_double.
2652 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2653
22fe0fbb
UW
26542008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2655
2656 * valops.c (value_ind): No longer allow dereferencing an
2657 integer type.
2658 * eval.c (evaluate_subexp_standard): Handle deferencing an
2659 integer type here.
2660 * ada-lang.c (ada_evaluate_subexp): Likewise.
2661
d8631d21
UW
26622008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2663
2664 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2665 a reference type, pass the reference type directly to unpack_pointer.
2666 * c-valprint.c (c_val_print): Likewise.
2667 * f-valprint.c (f_val_print): Likewise.
2668 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2669 * p-valprint.c (pascal_val_print): Likewise.
2670
cb18ec49
UW
26712008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2672
2673 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2674 to construct the EVAL_SKIP dummy return value.
2675 * ada-lang.c (ada_evaluate_subexp): Likewise.
2676 * jv-lang.c (evaluate_subexp_java): Likewise.
2677 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2678 * scm-lang.c (evaluate_exp): Likewise.
2679
0ab7ba45
UW
26802008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2681
2682 * value.h (coerce_enum, coerce_number): Remove prototypes.
2683 * value.c (coerce_enum, coerce_number): Remove.
2684 * valarith.c (value_x_binop): Do not call coerce_enum.
2685 (value_x_unop): Likewise.
2686 (value_logical_not): Call coerce_array instead of coerce_number.
2687
f7c79c41
UW
26882008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2689
2690 * ax-gdb.c: Include "language.h".
2691 (gen_frame_args_address): Add GDBARCH parameter; use it
2692 instead of current_gdbarch.
2693 (gen_frame_locals_address): Likewise.
2694 (gen_var_ref): Add GDBARCH parameter. Update calls to
2695 gen_frame_args_address and gen_frame_locals_address. Use
2696 pointer type from gdbarch.
2697 (gen_usual_unary): Add EXP parameter. Use integer type
2698 from exp->gdbarch.
2699 (gen_usual_arithmetic): Likewise.
2700 (gen_integral_promotions): Likewise.
2701 (gen_add, gen_sub): Remove.
2702 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2703 (gen_logical_not): Use passed-in boolean result type
2704 instead of builtin_type_int.
2705 (gen_complement): Do not call gen_usual_unary or
2706 gen_integral_promotions.
2707 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2708 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2709 Use builtin_type_int32 as internal range type.
2710 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2711 as result type. Update call to gen_expr.
2712 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2713 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2714 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2715 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2716 Use exp->gdbarch instead of current_gdbarch.
2717 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2718
f44316fa
UW
27192008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2720
2721 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2722 and unop_promote before calling value_binop et. al.
2723 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2724 and unop_promote before calling value_binop et. al.
2725
2726 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2727 (value_pos): Do not call unop_promote.
2728 (value_neg, value_complement): Likewise.
2729
4066e646
UW
27302008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2731
2732 * value.h (unop_promote, binop_promote): Add prototypes.
2733 * eval.c (unop_promote, binop_promote): New functions.
2734 * valarith.c (unop_result_type, binop_result_type): Remove.
2735 (value_binop): Call binop_promote or unop_promote.
2736 Inline remaining parts of binop_result_type. Remove special
2737 code to truncate integer values for unsigned operations.
2738 (value_pos): Call unop_promote. Inline remaining parts of
2739 unop_result_type.
2740 (value_neg, value_complement): Likewise.
2741
89eef114
UW
27422008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2743
2744 * value.h (value_add, value_sub): Remove.
2745 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2746 * valarith.c (value_add, value_sub): Remove.
2747 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2748 (find_size_for_pointer_math): Add assertion. Update comment.
2749 (value_binop): Update comment.
2750
2751 * eval.c (ptrmath_type_p): New function.
2752 (evaluate_subexp_standard): Replace value_add and value_sub
2753 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2754 Use builtin_type_uint8 instead of builtin_type_char to hold
2755 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2756 * valarith.c (value_subscript): Replace value_add by
2757 value_ptradd. Replace value_sub by value_binop.
2758 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2759 (ada_tag_name_2): Replace value_add by value_ptradd.
2760 (ada_evaluate_subexp): Replace value_add and value_sub by
2761 value_binop.
2762 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2763 by value_ptradd.
2764 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2765 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2766
98b90dd8
UW
27672008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2768
2769 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2770 the expression architecture instead of builtin_type_int as the
2771 sizeof return type.
2772
c806c55a
UW
27732008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2774
2775 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2776 a type parameter as expression element.
2777 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2778 type as expression element.
2779 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2780 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2781
fbb06eb1
UW
27822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2783
2784 * language.h (struct language_arch_info): New members
2785 bool_type_default and bool_type_symbol.
2786 (lang_bool_type): Remove prototype.
2787 (LA_BOOL_TYPE): Remove macro.
2788 (language_bool_type): Add prototype.
2789 * language.c (lang_bool_type): Remove.
2790 (language_bool_type): New function.
2791
2792 * value.h (value_in): Change return value to int.
2793 * value.c (value_in): Return int instead of struct value *.
2794
2795 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2796 of using LA_BOOL_TYPE. Update call to value_in.
2797 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2798 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2799
2800 * language.c (unknown_language_arch_info): Set bool_type_default member
2801 of struct language_arch_info.
2802 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2803 bool_type_default members of struct language_arch_info.
2804 * c-lang.c (c_language_arch_info): Set bool_type_default member
2805 of struct language_arch_info.
2806 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2807 members of struct language_arch_info.
2808 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2809 bool_type_default members of struct language_arch_info.
2810 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2811 bool_type_default members of struct language_arch_info.
2812 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2813 bool_type_default members of struct language_arch_info.
2814 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2815 bool_type_default members of struct language_arch_info.
2816
de7b6b47
UW
28172008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2818
2819 * jv-lang.c (enum java_primitive_types): New type.
2820 (java_language_arch_info): New function.
2821 (java_language): Use it instead of c_language_arch_info.
2822
afc05acb
UW
28232008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2824
2825 * value.h (value_bitstring_subscript): New prototype.
2826 * valarith.h (value_bitstring_subscript): New function.
2827 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2828 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2829 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2830
3e79cecf
UW
28312008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2832
2833 * expression.h (struct expression): New member GDBARCH.
2834 * parse.c (parse_exp_in_context): Initialize it.
2835 * parser-def.h (parse_gdbarch, parse_language): New macros.
2836
2837 * ada-exp.y (parse_type): New macro.
2838 Replace builtin_type_ macros by using parse_type.
2839 Replace current_language by parse_language.
2840 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2841 Replace builtin_type_ macros.
2842
2843 * c-exp.y (parse_type): New macro.
2844 Replace builtin_type_ macros by using parse_type.
2845 (parse_number): Replace current_gdbarch by parse_gdbarch.
2846 (yylex): Replace current_language by parse_language.
2847
2848 * f-exp.y (parse_type, parse_f_type): New macros.
2849 Replace builtin_type_ macros by using parse_{f_,}type.
2850 (parse_number): Replace current_gdbarch by parse_gdbarch.
2851 (yylex): Replace current_language by parse_language.
2852
2853 * jv-exp.y (parse_type): New macro.
2854 (parse_number): Replace builtin_type_ macros by using parse_type.
2855
2856 * m2-exp.y (parse_type, parse_m2_type): New macros.
2857 Replace builtin_type_ macros by using parse_{m2_,}type.
2858
2859 * objc-exp.y (parse_type): New macro.
2860 Replace builtin_type_ macros by using parse_type.
2861 (parse_number): Replace current_gdbarch by parse_gdbarch.
2862 (yylex): Replace current_language by parse_language.
2863
2864 * p-exp.y (parse_type): New macro.
2865 Replace builtin_type_ macros by using parse_type.
2866 (parse_number): Replace current_gdbarch by parse_gdbarch.
2867 (yylex): Replace current_language by parse_language.
2868
c841afd5
UW
28692008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2870
2871 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2872 and DATA_SYMBOL_TYPE arguments.
2873 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2874 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2875 (write_dollar_variable): Update call.
2876
2877 * ada-exp.y (write_var_or_type): Update call.
2878 * c-exp.y: Likewise.
2879 * f-exp.y: Likewise.
2880 * jv-exp.y: Likewise.
2881 * m2-exp.y: Likewise.
2882 * objc-exp.y: Likewise.
2883 * p-exp.y: Likewise.
2884
0c1f74cf
JB
28852008-09-10 Joel Brobecker <brobecker@adacore.com>
2886
2887 * ada-lang.c (ada_parent_type): Add handling of the case where
2888 the _parent field is a pointer and/or has a parallel XVS type.
2889 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2890 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2891 the type of the tag instead of doing forcing an EVAL_NORMAL
2892 expression evaluation.
2893
5823c3ef
JB
28942008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2895 Joel Brobecker <brobecker@adacore.com>
2896
2897 * ada-lang.c (is_digits_suffix): New function.
2898 (is_dot_digits_suffix): Remove.
2899 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2900 before looking up in symbol table, and do not use wild matches on them.
2901 (wild_match): Reimplement for speed and to allow matching of operator
2902 symbols.
2903 (is_valid_name_for_wild_match): Return zero for names that do not
2904 follow the GNAT encoding.
2905
2906 (is_name_suffix): Fix typo in comment.
2907 (to_record_with_fixed_variant_part): Ditto.
2908
e5fa8013
PA
29092008-09-10 Pedro Alves <pedro@codesourcery.com>
2910
2911 * Makefile.in (gnu-nat.o): New rule.
2912
6d2e05aa
JB
29132008-09-10 Joel Brobecker <brobecker@adacore.com>
2914
2915 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2916 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2917
2ac8a782
JB
29182008-09-10 Joel Brobecker <brobecker@adacore.com>
2919
2920 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2921 Add special handling for pointer types.
2922
b861ac81
PA
29232008-09-10 Pedro Alves <pedro@codesourcery.com>
2924
2925 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2926 right scope level.
2927 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2928
030b4912
UW
29292008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2930
2931 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2932 of builtin_type_int.
2933 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2934 instead of builtin_type_int.
2935
d51fd4c8
PA
29362008-09-09 Pedro Alves <pedro@codesourcery.com>
2937
2938 * infrun.c (normal_stop): Run hook-stop last.
2939
11cb6f65
PA
29402008-09-09 Pedro Alves <pedro@codesourcery.com>
2941
2942 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2943 (init_gnu_ops): Don't register it.
2944
a9ab7422
PA
29452008-09-09 Pedro Alves <pedro@codesourcery.com>
2946
2947 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2948 threads.
2949
694182d2
DJ
29502008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2951
2952 * valops.c (value_cast_structs): Return NULL for failure.
2953 (value_cast): Handle NULL from value_cast_structs.
2954 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2955
dcf4fbde
PA
29562008-09-08 Pedro Alves <pedro@codesourcery.com>
2957
2958 * inferior.h (context_switch_to): Delete.
2959 * infrun.c (context_switch): Don't save and load infrun state.
2960 (context_switch_to): Delete.
2961
2962 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2963 calls by switch_to_thread calls.
2964
2965 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2966 * thread.c (main_thread_state, main_thread_executing): Delete.
2967 (inferior_thread): Delete references to them.
2968 (add_thread_silent): Fix case where we're adding a thread with the
2969 same ptid as an exited thread. Remove references to
2970 context-switching.
2971 (load_infrun_state, save_infrun_state): Delete.
2972 (thread_alive, is_thread_state, any_running, is_executing)
2973 (set_executing): Remove the special handling for targets that
2974 don't register any thread.
2975 (restore_current_thread, thread_apply_all_command)
2976 (do_captured_thread_select): Unconditionally call
2977 switch_to_thread.
2978
2979 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2980 Call switch_to_thread instead of context_switch_to.
2981
95e54da7
PA
29822008-09-08 Pedro Alves <pedro@codesourcery.com>
2983
2984 Remove global continuations in favour of a per-thread
2985 continuations.
2986
2987 * gdbthread.h (struct thread_info): Add comments around
2988 continuations and intermediate_continuations.
2989 (save_infrun_state, load_infrun_state): Delete continuations and
2990 intermediate_continuations arguments.
fedae5ff 2991 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
2992 * thread.c (clear_thread_inferior_resources): Discard all
2993 continuations of the thread we're clearing.
2994 (save_infrun_state, load_infrun_state): Delete continuations and
2995 intermediate_continuations arguments, and the code referencing
2996 them.
2997 * utils.c: Include "gdbthread.h".
2998 (cmd_continuation, intermediate_continuation): Delete.
2999 (add_continuation): Add thread_info* argument. Install the
3000 continuation on it.
3001 (restore_thread_cleanup): New.
3002 (do_all_continuations_ptid, do_all_continuations_thread_callback):
3003 New.
3004 (do_all_continuations): Reimplement.
3005 (discard_all_continuations_thread_callback,
3006 discard_all_continuations_thread): New.
3007 (discard_all_continuations): Reimplement.
3008 (add_intermediate_continuation): Add thread_info* argument.
3009 Install the continuation on it.
3010 (do_all_intermediate_continuations_thread_callback)
3011 (do_all_intermediate_continuations_thread): New.
3012 (do_all_intermediate_continuations): Reimplement.
3013 (discard_all_intermediate_continuations_thread_callback): New.
3014 (discard_all_intermediate_continuations_thread): New.
3015 (discard_all_intermediate_continuations): Reimplement.
3016
3017 * breakpoint.c (until_break_command): Install the continuation on
3018 the current thread.
3019
3020 * defs.h (cmd_continuation, intermediate_continuation): Delete.
3021 (struct thread_info): Forward declare.
3022 (add_continuation, add_intermediate_continuation): Add
3023 thread_info* argument.
3024 (do_all_continuations_thread, discard_all_continuations_thread)
3025 (do_all_intermediate_continuations_thread)
3026 (discard_all_intermediate_continuations_thread): Declare.
3027 * inf-loop.c (inferior_event_handler): In non-stop only run
3028 continuations on the thread that stopped. In all-stop, run
3029 continuations on all threads.
3030 * infcmd.c (step_once, finish_command): Adjust.
3031
414c69f7
PA
30322008-09-08 Pedro Alves <pedro@codesourcery.com>
3033
3034 Remove the global stop_step in favour of a per-thread
3035 stop_step.
3036
3037 * inferior.h (stop_step): Delete.
3038
3039 * gdbthread.h (struct thread_info): Add comments to stop_step.
3040 (save_infrun_state, load_infrun_state): Remove stop_step argument.
3041 * thread.c (load_infrun_state, save_infrun_state): Remove
3042 stop_step argument, and references to it.
3043
3044 * infrun.c (clear_proceed_status): Clear stop_step.
3045 (fetch_inferior_event): Adjust.
3046 (context_switch): Don't context-switch stop_step.
3047 (handle_inferior_event): Adjust.
3048 (normal_stop): Adjust.
3049 (save_inferior_status, restore_inferior_status): Adjust.
3050
3051 * infcmd.c (stop_step): Delete.
3052 (step_1, step_1_continuation, step_once, until_next_command):
3053 Adjust.
3054
af679fd0
PA
30552008-09-08 Pedro Alves <pedro@codesourcery.com>
3056
3057 Remove the global step_multi in favour of a per-thread
3058 step_multi.
3059
3060 * inferior.h (step_multi): Delete.
3061 * gdbthread.h (struct thread_info): Add comments around
3062 step_multi.
3063 (save_infrun_state, load_infrun_state): Remove step_multi
3064 parameter.
3065 * thread.c (load_infrun_state, save_infrun_state): Remove
3066 step_multi argument, and references to it.
3067 * infcmd.c (step_multi): Delete.
3068 (step_1): Adjust.
3069 (step_1_continuation, until_next_command): Adjust.
3070 * infrun.c (fetch_inferior_event): Adjust.
3071 (context_switch): Don't context-switch step_multi.
3072 (print_stop_reason, normal_stop): Adjust.
3073
2020b7ab
PA
30742008-09-08 Pedro Alves <pedro@codesourcery.com>
3075
3076 Remove the global stop_signal in favour of a per-thread
3077 stop_signal.
3078
3079 * inferior.h (stop_signal): Delete.
3080 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3081 stop_signal argument.
3082 * thread.c (load_infrun_state, save_infrun_state): Remove
3083 stop_signal argument. Don't reference it.
3084
3085 * infcmd.c (stop_signal): Delete.
3086 (program_info): Adjust.
3087 * infrun.c (resume): Clear stop_signal.
3088 (proceed): Adjust. Pass the last stop_signal to the thread we're
3089 resuming.
3090 (context_switch): Don't context-switch stop_signal.
3091 (handle_inferior_event, keep_going): Adjust.
3092 (save_inferior_status, restore_inferior_status): Adjust.
3093
3094 * fbsd-nat.c: Include "gdbthread.h".
3095 (find_signalled_thread, find_stop_signal): New.
3096 (fbsd_make_corefile_notes): Use it.
3097 * fork-child.c (startup_inferior): Adjust.
3098
3099 * linux-nat.c (get_pending_status): Adjust.
3100 (linux_nat_do_thread_registers): Adjust.
3101 (find_signalled_thread, find_stop_signal): New.
3102 (linux_nat_do_thread_registers): Add stop_signal parameter.
3103 (struct linux_nat_corefile_thread_data): Add stop_signal member.
3104 (linux_nat_corefile_thread_callback): Pass stop_signal.
3105 (linux_nat_do_registers): Delete.
3106 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
3107 there's always a thread.
3108
3109 * procfs.c (find_signalled_thread, find_stop_signal): New.
3110 (find_stop_signal): New.
3111 (procfs_do_thread_registers): Add stop_signal parameter.
3112 (struct procfs_corefile_thread_data): Add stop_signal member.
3113 (procfs_corefile_thread_callback): Pass args->stop_signal.
3114 (procfs_make_note_section): Find the last stop_signal.
3115
3116 * solib-irix.c: Include gdbthread.h.
3117 (irix_solib_create_inferior_hook): Adjust.
3118 * solib-osf.c: Include gdbthread.h.
3119 (osf_solib_create_inferior_hook): Adjust.
3120 * solib-sunos.c: Include gdbthread.h.
3121 (sunos_solib_create_inferior_hook): Adjust.
3122 * solib-svr4.c: Include gdbthread.h.
3123 (svr4_solib_create_inferior_hook): Adjust.
3124
3125 * win32-nat.c (do_initial_win32_stuff): Adjust.
3126
32400beb
PA
31272008-09-08 Pedro Alves <pedro@codesourcery.com>
3128
3129 * gdbthread.h (struct thread_info): Add comments around
3130 proceed_to_finish.
3131 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
3132 argument.
3133 * thread.c (load_infrun_state, save_infrun_state): Delete
3134 proceed_to_finish argument and references to it.
3135
3136 * infcall.c (call_function_by_hand): Adjust.
3137 * infcmd.c (finish_command): Adjust.
3138 * infrun.c (proceed_to_finish): Delete.
3139 (clear_proceed_status): Adjust.
3140 (context_switch): Don't context-switch proceed_to_finish.
3141 (normal_stop, save_inferior_status, restore_inferior_status):
3142 Adjust.
3143
347bddb7
PA
31442008-09-08 Pedro Alves <pedro@codesourcery.com>
3145
3146 * inferior.h (stop_bpstat): Delete.
3147
3148 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
3149
3150 * breakpoint.c (bpstat_do_actions): Rename to ...
3151 (bpstat_do_actions_1): ... this. Make static. Change return type
3152 to int. Return true if a breakpoint proceeded.
3153 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
3154 (delete_breakpoint): Don't reference the global stop_bpstat; it's
3155 gone.
3156
3157 * gdbthread.h (struct thread_info): Add stop_bpstat.
3158 (save_infrun_state, load_infrun_state): Remove stop_bpstat
3159 argument.
3160 * thread.c (load_infrun_state, save_infrun_state): Remove
3161 stop_bpstat argument, and the code referencing it.
3162
3163 * infcall.c: Include "gdbthread.h".
3164 (call_function_by_hand): Adjust.
3165 * exceptions.c: Include "gdbthread.h".
3166 (throw_exception): Adjust.
3167 * infcmd.c (stop_bpstat): Delete.
3168 (continue_command): In all-stop, set the ignore count on the
3169 thread that reported the stop. In non-stop, set it on the current
3170 thread.
3171 (finish_command_continuation): Adjust.
3172 (program_info): Adjust.
3173 * infrun.c (clear_proceed_status): Adjust.
3174 (context_switch): Don't context-switch stop_bpstat.
3175 (handle_inferior_event): Adjust.
3176 (normal_stop): Adjust.
3177 (save_inferior_status, restore_inferior_status): Adjust.
3178
3179 * inf-loop.c (inferior_event_handler): Remove parameter to
3180 bpstat_do_actions call.
3181 * top.c (command_loop): Remove parameter to bpstat_do_actions
3182 call. Call it unconditionally.
3183 * event-top.c (command_handler): Ditto.
3184 * python/python.c (execute_gdb_command): Ditto.
3185
078130d0
PA
31862008-09-08 Pedro Alves <pedro@codesourcery.com>
3187
3188 * inferior.h (step_over_calls): Delete.
3189
3190 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3191 step_over_calls argument.
3192 * thread.c (save_infrun_state, load_infrun_state): Remove
3193 step_over_calls argument. Adjust.
3194
3195 * infcmd.c (step_over_calls): Delete.
3196 (step_1): Adjust.
3197 * infrun.c (clear_proceed_status): Adjust.
3198 (context_switch): Don't context-switch step_over_calls.
3199 (handle_inferior_event, save_inferior_status)
3200 (restore_inferior_status): Adjust.
3201
4e1c45ea
PA
32022008-09-08 Pedro Alves <pedro@codesourcery.com>
3203
3204 Remove context switching in favour of accessing thread_info fields
3205 directly.
3206
3207 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
3208 Delete.
3209 (struct thread_stepping_state): Delete.
3210 (gtss, tss): Delete.
3211 (follow_inferior_reset_breakpoints, follow_exec)
3212 (resume, clear_proceed_status): Adjust.
3213 (prev_pc): Delete.
3214 (proceed, start_remote, init_wait_for_inferior): Adjust.
3215 (struct execution_control_state): Add event_thread member.
3216 (delete_step_resume_breakpoint_callback)
3217 (delete_step_thread_step_resume_breakpoint)
3218 (delete_step_thread_step_resume_breakpoint_cleanup)
3219 (delete_step_thread_step_resume_breakpoint): New.
3220 (wait_for_inferior, init_execution_control_state): Use
3221 delete_step_thread_step_resume_breakpoint_cleanup.
3222 (wait_for_inferior): Set the event_thread.
3223 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
3224 with delete_step_thread_step_resume_breakpoint.
3225 (init_thread_stepping_state): Change parameter type to
3226 thread_info. Adjust.
3227 (context_switch): Don't context switch prev_pc,
3228 stepping_over_breakpoint, step_resume_breakpoint,
3229 step_range_start, step_range_end, step_frame_id,
3230 tss->stepping_over_breakpoint,
3231 tss->stepping_through_solib_after_catch,
3232 tss->stepping_through_solib_catchpoints, tss->current_line, or
3233 tss->current_symtab.
3234 (adjust_pc_after_break, handle_inferior_event)
3235 (currently_stepping, step_into_function)
3236 (insert_step_resume_breakpoint_at_sal)
3237 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3238 (clear_stepping_state): New.
3239 (normal_stop): Adjust.
3240 (save_inferior_status, restore_inferior_status): Adjust.
3241
3242 * gdbthread.h (struct thread_info): Comments describing the
3243 members moved here. Add step_after_step_resume_breakpoint.
3244 (delete_step_resume_breakpoint): Add thread_info argument.
3245 (save_infrun_state, load_infrun_state): Remove prev_pc,
3246 trap_expected, step_resume_breakpoint, step_range_start,
3247 step_range_end, step_frame_id, another_trap,
3248 stepping_through_solib_after_catch,
3249 stepping_through_solib_catchpoints, current_line and
3250 current_symtab function arguments.
3251 (inferior_thread): Declare.
3252
3253 * thread.c (inferior_thread): New.
3254 (delete_step_resume_breakpoint): Add a thread_info parameter and
3255 rewrite.
3256 (load_infrun_state, save_infrun_state): Remove prev_pc,
3257 trap_expected, step_resume_breakpoint, step_range_start,
3258 step_range_end, step_frame_id, stepping_over_breakpoint,
3259 stepping_through_solib_after_catch,
3260 stepping_through_solib_catchpoints, current_line and
3261 current_symtab args. Remove code referencing them.
3262
3263 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3264 Delete.
3265 (step_1, step_once, until_next_command): Adjust.
3266
3267 * inferior.h (step_range_start, step_range_end, step_frame_id):
3268 Delete.
3269
3270 * linux-nat.c (linux_child_follow_fork): If following the child,
3271 move the step state to it. Adjust.
3272 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3273 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3274
757f359d
PA
32752008-09-08 Pedro Alves <pedro@codesourcery.com>
3276
3277 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3278 thread.
3279
0de3b513
PA
32802008-09-08 Pedro Alves <pedro@codesourcery.com>
3281
3282 * corelow.c (add_to_thread_list): If this is the first time we
3283 hear about thread info, update inferior_ptid.
3284 (core_open): Clear the thread list and set inferior_ptid before
3285 acknowledging a new inferior. Find threads before fetching
3286 register info. Give an upper target layer a chance to find and
3287 claim new threads. Print core generation and stop signal info
3288 after finding new threads.
3289 (get_core_register_section): Look at the lwp member of
3290 inferior_ptid for detecting if we have threads info, instead of
3291 the pid member.
3292 (core_pid_to_str): New.
3293 (init_core_ops): Register core_pid_to_str.
3294
4189d2f8
PA
32952008-09-08 Pedro Alves <pedro@codesourcery.com>
3296
3297 * spu-linux-nat.c (spu_child_post_startup_inferior)
3298 (spu_child_post_attach): Don't add the main thread here.
3299
617fd3b5
PA
33002008-09-08 Pedro Alves <pedro@codesourcery.com>
3301
3302 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3303
3304 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3305 seeing a thread id, extend the main thread's ptid. If we still
3306 have pending execs, don't be verbose about new threads.
3307 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3308 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3309 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3310 Adjust.
3311
2689673f
PA
33122008-09-08 Pedro Alves <pedro@codesourcery.com>
3313
3314 * procfs.c (to_attach): Create a procinfo for the current lwp.
3315 Add it to gdb's thread list.
3316 (procfs_fetch_registers, procfs_store_registers): Assume there's
3317 always an lwp.
3318 (procfs_wait): Don't add the main thread here.
3319 (procfs_init_inferior): Create a procinfo for the main lwp here.
3320 Change main thread's ptid with thread_change_ptid.
3321 (procfs_notice_thread): Check for exited threads.
3322 (procfs_corefile_thread_callback): Remove check for the main
3323 process.
3324 (procfs_make_note_section): Assume there is always a thread.
3325
3326 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3327 attaching. Change the main thread ptid with thread_change_ptid.
3328 (sol_thread_detach): Clear sol_thread_active.
3329 (sol_thread_wait): Check for exited threads.
3330 (sol_thread_create_inferior): Clear sol_thread_active before
3331 creating a new inferior. Change the main thread ptid with
3332 thread_change_ptid.
3333 (sol_thread_mourn_inferior): Clear sol_thread_active.
3334 (sol_find_new_threads_callback): Check for exited threads.
3335
62a93fa9
PA
33362008-09-08 Pedro Alves <pedro@codesourcery.com>
3337
3338 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3339 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3340 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3341 process, and return TARGET_WAITKIND_IGNORE.
3342
438ac09b
PA
33432008-09-08 Pedro Alves <pedro@codesourcery.com>
3344
3345 * inf-ttrace.c: Include <signal.h>
3346 (inf_ttrace_delete_dead_threads_callback): New.
3347 (inf_ttrace_resume_lwp): New.
3348 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3349 delete dying threads until they are really dead.
3350 (inf_ttrace_wait): After stopping the whole process, delete any
3351 dying thread that is really dead by now.
3352 (inf_ttrace_thread_alive): Return 1.
3353 (inf_ttrace_extra_thread_info): New.
3354 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3355
2935f27f
PA
33562008-09-08 Pedro Alves <pedro@codesourcery.com>
3357
3358 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3359 of the child fork.
3360 (inf_ttrace_attach): Add the main thread.
3361 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3362 for always a thread.
3363 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3364 using thread_change_ptid, and set its private data. Don't add the
3365 main thread here.
3366 (inf_ttrace_pid_to_str): Adjust.
3367
fb5e7258
PA
33682008-09-08 Pedro Alves <pedro@codesourcery.com>
3369
3370 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3371 thread_change_ptid. Check for exited threads.
3372 (bsd_uthread_find_new_threads): Check for exited threads.
3373
af990527
PA
33742008-09-08 Pedro Alves <pedro@codesourcery.com>
3375
3376 * inf-ptrace.c: Include "gdbthread.h".
3377 (inf_ptrace_attach): Add the main thread here.
3378 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3379 Decorate the main thread id with the lwp id.
3380
27c9d204
PA
33812008-09-08 Pedro Alves <pedro@codesourcery.com>
3382
3383 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3384 thread_change_ptid. Don't add or mark the main thread as running
3385 and executing here.
3386 * fork-child.c (fork_inferior): Add the main thread here.
3387
de9f48f0
JG
33882008-09-08 Jerome Guitton <guitton@adacore.com>
3389
3390 * rs6000-tdep.c (rs6000_fetch_instruction)
3391 (rs6000_skip_stack_check): New functions.
3392 (skip_prologue): Skip stack check sequence.
3393
52163a60
DD
33942008-09-08 David Daney <ddaney@avtrex.com>
3395
3396 * dummy-frame.h (frame.h): Include it.
3397 (struct frame_id): Remove declaration.
3398
87805e63
UW
33992008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3400
3401 * spu-tdep.c (spu_push_dummy_code): New function.
3402 (spu_gdbarch_init): Install it.
3403
0b1553bc
UW
34042008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3405
3406 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3407 instead of paddr_nz.
3408 * gdbarch.c: Regenerate.
3409
3410 * target.c (target_xfer_partial, debug_print_register): Use
3411 core_addr_to_string_nz instead of paddr_nz.
3412
2454a024
UW
34132008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3414
3415 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3416 *before* calling gdbarch_init_osabi.
3417 (rs6000_aix_init_osabi): Disable displaced stepping.
3418
b52323fa
UW
34192008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3420
3421 * target.c (update_current_target): Do not inherit to_open
3422 or to_close.
3423 (pop_target): Call target_close on target_stack instead
3424 of current_target.
3425 (pop_all_targets_above): Likewise.
3426
fead6908
UW
34272008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3428
3429 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3430 (gnuv3_print_method_ptr): Use it.
3431 (gnuv3_method_ptr_to_value): Likewise.
3432
60441ab9
UW
34332008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3434
3435 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3436 register_area callback function.
3437 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3438 Use it instead of current_gdbarch.
3439 * nto-procfs.c (procfs_store_registers): Update call.
3440
bb486190
UW
34412008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3442
3443 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3444 regcache architecture instead of current_gdbarch.
3445
9dacea90
UW
34462008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3447
3448 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3449 (check_for_saved): Use it instead of current_gdbarch.
3450 (is_arg_spill): Add gdbarch paramter. Use it instead
3451 of current_gdbarch.
3452 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3453 to is_arg_spill and check_for_saved.
3454 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3455
5db8bbe5
UW
34562008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3457
3458 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3459 instead of current_gdbarch.
3460
6ba38425
UW
34612008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3462
3463 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3464 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3465 Use it instead of current_gdbarch.
3466 (m68kbsd_supply_fpregset): Update call.
3467 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3468 (m68kbsd_collect_fpregset): Likewise.
3469
35488783
UW
34702008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3471
3472 * cris-tdep.c (cris_version, cris_mode): Remove.
3473 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3474 (cris_breakpoint_from_pc): Likewise.
3475 (cris_frame_unwind_cache): Use tdep->cris_version.
3476 (crisv32_scan_prologue): Likewise.
3477 (cris_spec_reg_applicable): Add gdbarch argument.
3478 Use tdep->cris_version.
3479 (cris_register_size, cris_special_register_name): Update calls.
3480 (cris_special_register_name): Add gdbarch argument.
3481 (cris_register_name, crisv32_register_name): Update calls.
3482
9dae60cc
UW
34832008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3484
3485 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3486 instead of current_gdbarch.
3487
3488 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3489 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3490 * sh-tdep.c (gdb_print_insn_sh): Remove.
3491 (sh_gdbarch_init): Install print_insn_sh directly.
3492
3493 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3494 from current_gdbarch.
3495 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3496 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3497 depending on mips_abi.
3498
24568a2c
UW
34992008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3500
3501 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3502 (smash_text_address): Likewise.
3503 * gdbarch.c, gdbarch.h: Regenerate.
3504
3505 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3506 * arch-utils.h (core_addr_identity): Likewise.
3507 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3508 (arm_smash_text_address): Likewise.
3509 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3510 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3511 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3512
3513 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3514 Use it instead of current_gdbarch.
3515
3516 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3517 arm_dwarf2_prev_register): Update calls.
3518 * m88k-tdep.c (m88k_unwind_pc): Update call.
3519
f7fd4728
UW
35202008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3521
3522 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3523 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3524 Call gdbarch_integer_to_address directly instead of converting
3525 to value and back. Update comment.
3526 (execute_stack_op): Update call site.
3527 * dwarf2loc.c (find_location_expression): Likewise.
3528 (locexpr_describe_location): Update
3529
3530 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3531 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3532 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3533 (dwarf2_loc_desc_needs_frame): Likewise.
3534
714835d5
UW
35352008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3536
3537 * breakpoint.h (struct bp_location): Change type of section
3538 member to "struct obj_section *".
3539 * tracepoint.h (struct tracepoint): Likewise.
3540 * symtab.h (struct general_symbol_info): Replace bfd_section
3541 member with obj_section.
3542 (struct symtab_and_line): Change type of section member to
3543 "struct obj_section *".
3544 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3545 (SYMBOL_OBJ_SECTION): ... this.
3546
3547 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3548 section as obj_section instead of bfd_section.
3549
3550 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3551 directly instead of looking of obj_section from bfd_section.
3552
3553 * objfiles.h (find_pc_sect_section): Remove.
3554 * objfiles.c (find_pc_sect_section): Remove.
3555 (find_pc_section): Inline find_pc_sect_section code.
3556
3557 * symfile.h (find_pc_overlay): Return struct obj_section *.
3558 (find_pc_mapped_section): Likewise.
3559 (section_is_overlay, section_is_mapped): Change type of section
3560 argument to struct obj_section *.
3561 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3562 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3563 (symbol_overlayed_address): Likewise.
3564 * symtab.h (symbol_overlayed_address): Likewise.
3565 * symfile.c (overlay_is_mapped): Remove.
3566 (section_is_mapped): Inline overlay_is_mapped code. Update.
3567 (overlay_invalidate_all): Update.
3568 (section_is_overlay): Change section argument to type
3569 "struct obj_section *". Use bfd_ methods.
3570 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3571 (pc_in_mapped_range): Likewise. Handle relocated sections.
3572 (sections_overlap): Likewise.
3573 (overlay_unmapped_address): Likewise.
3574 (overlay_mapped_address): Likewise.
3575 (symbol_overlayed_address): Likewise.
3576 (find_pc_overlay): Return struct obj_section *.
3577 (find_pc_mapped_section): Likewise.
3578 (list_overlays_command): Update.
3579 (map_overlay_command, unmap_overlay_command): Update.
3580 (simple_overlay_update): Update.
3581
3582 * block.h (blockvector_for_pc_sect): Change section argument
3583 to type "struct obj_section *".
3584 (block_for_pc_sect): Likewise.
3585 * block.c (blockvector_for_pc_sect): Change section argument
3586 to type "struct obj_section *".
3587 (block_for_pc_sect): Likewise.
3588 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3589 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3590 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3591 (matching_bfd_sections): Rename to ...
3592 (matching_obj_sections): ... this. Update argument types.
3593 * blockframe.c (find_pc_sect_function): Likewise.
3594 * breakpoint.c (describe_other_breakpoints): Likewise.
3595 (breakpoint_has_pc, check_duplicates_for): Likewise.
3596 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3597 (lookup_minimal_symbol_by_pc_section): Likewise.
3598 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3599 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3600 find_pc_sect_line, find_function_start_pc): Likewise.
3601 (matching_bfd_sections): Rename to ...
3602 (matching_obj_sections): ... this. Update argument types.
3603
3604 * blockframe.c (find_pc_partial_function): Update to section
3605 type changes. No longer call find_pc_sect_section.
3606 (cache_pc_function_section): Change to type "struct obj_section *".
3607 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3608 * exec.c (xfer_memory): Likewise.
3609 * findvar.c (read_var_value): Likewise.
3610 * infcmd.c (jump_command): Likewise.
3611 * linespec.c (minsym_found): Likewise.
3612 * maint.c (maintenance_translate_address): Likewise.
3613 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3614 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3615 * parse.c (write_exp_msymbol): Likewise.
3616 * printcmd.c (build_address_symbolic): Likewise.
3617 (address_info, sym_info): Likewise.
3618 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3619 * symtab.c (fixup_section): Likewise.
3620 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3621 (find_pc_line, find_function_start_sal): Likewise.
3622 * target.c (memory_xfer_partial): Likewise.
3623 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3624 * spu-tdep.c (spu_overlay_update): Likewise.
3625
623d3eb1
DE
36262008-09-04 Doug Evans <dje@google.com>
3627
3628 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3629 Change argument of pulongest from CORE_ADDR to ULONGEST.
3630 All callers updated.
3631 * utils.c (plongest): Renamed from paddr_d.
3632 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3633 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3634 `CORE_ADDR addr' arg of error message.
3635
8775bb90
MS
36362008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3637
3638 * ser-tcp.c (ser_tcp_send_break): New function.
3639 (_initialize_ser_tcp): Use ser_tcp_send_break.
3640 * ser-tcp.h (ser_tcp_send_break): New prototype.
3641
9ff3afda
UW
36422008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3643
3644 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3645 when allocating stack frame for inferior call.
3646
c4891da7
UW
36472008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3648
3649 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3650 SP or return address if we failed to find a valid frame.
3651
514f746b
AR
36522008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3653
3654 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3655 non-permanent breakpoints.
3656 (bpstat_stop_status): Change enable_state to bp_disabled only for
3657 non-permanent breakpoints.
3658 (bp_loc_is_permanent): New function.
3659 (create_breakpoint): Check if the location points to a permanent
3660 breakpoint and if it does, make breakpoint permanent.
3661 (update_breakpoint_locations): Make sure new locations of permanent
3662 breakpoints are properly initialized.
3663 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3664 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3665
a12654ce
PA
36662008-09-02 Pedro Alves <pedro@codesourcery.com>
3667
3668 * breakpoint.c (insert_breakpoints, update_global_location_list):
3669 Check breakpoints_always_inserted_mode instead of
3670 always_inserted_mode directly.
3671
8b7a6d61
AS
36722008-09-02 Andreas Schwab <schwab@suse.de>
3673
3674 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3675
d68209e4
JK
36762008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 Stay compatible after the GCC PR fortran/29635 fix.
3679 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3680 (process_die <DW_TAG_imported_module>): Do not assert anything about
3681 these unsupported tags.
3682
ef4cb050
TT
36832008-08-29 Tom Tromey <tromey@redhat.com>
3684
3685 * maint.c (_initialize_maint_cmds): Fix typo.
3686
a683b3c0
TT
36872008-08-29 Tom Tromey <tromey@redhat.com>
3688
3689 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3690 obstack.
3691
3e88cf8d
UW
36922008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3693
3694 * remote.c: Include "gdb_stat.h".
3695
a45ae3ed
UW
36962008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3697
3698 * dummy-frame.h (dummy_frame_pop): Add prototype.
3699 * dummy-frame.c: Include "observer.h".
3700 (dummy_frame_push): Do not check for stale frames.
3701 (dummy_frame_pop): New function.
3702 (cleanup_dummy_frames): New function.
3703 (_initialize_dummy_frame): Install it as inferior_created observer.
3704
3705 * frame.h (struct frame_id): Update comments.
3706 (frame_id_inner): Remove prototype.
3707 * frame.c (frame_id_inner): Make static. Add comments.
3708 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3709 false positives for targets using non-contiguous stack ranges.
3710 (get_prev_frame_1): Update frame_id_inner safety net check.
3711 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3712
3713 * stack.c (return_command): Directly pop the selected frame.
3714 * infrun.c (handle_inferior_event): Remove dead code.
3715 * i386-tdep.c (i386_push_dummy_call): Update comment.
3716
879d1e6b
UW
37172008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3718
3719 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3720 breakpoint from shared library.
3721
97ec2c2f
UW
37222008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3723
3724 * solib-svr4.c (read_program_header): New function.
3725 (scan_dyntag_auxv): New function.
3726 (elf_locate_base): Use it if scan_dyntag fails.
3727 (find_program_interpreter): New function.
3728 (enable_break): Use it instead of .interp section.
3729
f1838a98
UW
37302008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3731
3732 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3733 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3734 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3735 remote_bfd_open): New functions.
3736 (remote_hostio_send_command): Fail safely if remote connection
3737 is not set up.
3738
3739 * solist.h (solib_open): Remove prototype.
3740 (solib_bfd_open): Add prototype.
3741 * solib.c: Include "remote.h".
3742 (solib_open): Remove, replace by ...
3743 (solib_bfd_open): ... this new function. Handle remote BFDs.
3744 (solib_map_sections): Replace solib_open by solib_bfd_open.
3745 * solib-frv.c: Include "exceptions.h".
3746 (enable_break2): Replace solib_open by solib_bfd_open.
3747 * solib-svr4.c: Include "exceptions.h".
3748 (enable_break): Replace solib_open by solib_bfd_open.
3749
3750 * symfile.c: Include "remote.h".
3751 (build_id_verify): Handle remote BFDs.
3752 (separate_debug_file_exists): Use BFD to access file. Handle
3753 remote BFDs.
3754 (symfile_bfd_open): Handle remote BFDs.
3755 (reread_symbols): Handle remote BFDs.
3756
3757 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3758
1cf3db46
UW
37592008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3760
3761 * gdbarch.sh (target_gdbarch): New global variable.
3762 (deprecated_current_gdbarch_select_hack): Set it.
3763 * gdbarch.c, gdbarch.h: Regenerate.
3764
3765 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3766 of current_gdbarch.
3767 * target-descriptions.c (target_find_description): Likewise.
3768 * arm-tdep.c (arm_update_current_architecture): Likewise.
3769 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3770 arm_show_force_mode): Likewise.
3771 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3772 show_mips_abi): Likewise.
3773 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3774
3775 * target.c (target_translate_tls_address): Use target_gdbarch
3776 instead of current_gdbarch.
3777 * remote.c (struct packet_reg): Likewise.
3778 (get_remote_arch_state, packet_reg_from_regnum,
3779 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3780 remote_address_masked, remote_insert_breakpoint,
3781 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3782 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3783 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3784 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3785
3786 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3787 solib_add, info_sharedlibrary_command, solib_address,
3788 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3789 solib_global_lookup): Likewise.
3790 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3791 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3792 Likewise.
3793 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3794 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3795 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3796 Likewise.
3797 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3798 nto_truncate_ptr): Likewise.
3799 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3800
6207416c
LM
38012008-08-26 Luis Machado <luisgpm@br.ibm.com>
3802
3803 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3804 (ppc_linux_vmx_regset_sections): New structure.
3805 (ppc_linux_fp_regset_sections): New structure.
3806 (ppc_linux_init_abi): Select core-file regset based on target
3807 features.
3808
0ff58721
UW
38092008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3810
3811 * target.c (debug_print_register): Use regcache_raw_collect
3812 instead of regcache_cooked_read. Only handle raw registers.
3813
6c5561f9
PA
38142008-08-25 Pedro Alves <pedro@codesourcery.com>
3815
3816 * cp-name-parser.y: Include config.h before system headers.
3817
ed0c3906
UW
38182008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3819
3820 * m88k-tdep.c: Update for unwinder changes.
3821
119ac181
TT
38222008-08-24 Tom Tromey <tromey@redhat.com>
3823
3824 * s390-tdep.c (s390_address_class_type_flags): Use
3825 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3826 (s390_address_class_type_flags_to_name): Likewise.
3827 (s390_address_class_name_to_type_flags): Likewise.
3828
803e1097
TT
38292008-08-24 Tom Tromey <tromey@redhat.com>
3830
3831 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3832 TYPE_FLAGS.
3833 * features/rs6000/powerpc-vsx32l.c
3834 (initialize_tdesc_powerpc_vsx32l): Update.
3835 * features/rs6000/powerpc-vsx32.c
3836 (initialize_tdesc_powerpc_vsx32): Update.
3837 * features/rs6000/powerpc-vsx64.c
3838 (initialize_tdesc_powerpc_vsx64): Update.
3839 * features/rs6000/powerpc-vsx64l.c
3840 (initialize_tdesc_powerpc_vsx64l): Update.
3841 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3842 TYPE_VECTOR, not TYPE_FLAGS.
3843
876cecd0
TT
38442008-08-24 Tom Tromey <tromey@redhat.com>
3845
3846 * xml-tdesc.c (tdesc_end_union): Update.
3847 * stabsread.c (define_symbol): Update.
3848 (read_type): Update.
3849 (read_struct_type): Update.
3850 (read_enum_type): Update.
3851 * spu-tdep.c (spu_builtin_type_vec128): Update.
3852 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3853 (sh_push_dummy_call_nofpu): Update.
3854 * mdebugread.c (parse_symbol): Update.
3855 (parse_symbol): Update.
3856 (parse_symbol): Update.
3857 (upgrade_type): Update.
3858 * jv-lang.c (java_lookup_class): Update.
3859 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3860 * i386-tdep.c (i386_mmx_type): Update.
3861 (i386_sse_type): Update.
3862 * gdbtypes.h (enum type_flag_value): New enum.
3863 (enum type_instance_flag_value): New enum.
3864 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3865 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3866 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3867 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3868 TYPE_FLAG_NOTTEXT): Now enum constants.
3869 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3870 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3871 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3872 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3873 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3874 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3875 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3876 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3877 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3878 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3879 TYPE_NOTTEXT): Update.
3880 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3881 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3882 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3883 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3884 TYPE_ADDRESS_CLASS_ALL): Update.
3885 (struct main_type) <flags>: Remove.
3886 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3887 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3888 flag_vector, flag_stub_supported, flag_nottext,
3889 flag_fixed_instance>: New fields.
3890 <nfields, vptr_fieldno>: Move earlier.
3891 (TYPE_FLAGS): Remove.
3892 * gdbtypes.c (make_pointer_type): Update.
3893 (address_space_name_to_int): Update.
3894 (address_space_int_to_name): Update.
3895 (make_type_with_address_space): Update.
3896 (make_cv_type): Update.
3897 (create_range_type): Update.
3898 (get_discrete_bounds): Update.
3899 (create_set_type): Update.
3900 (make_vector_type): Update.
3901 (smash_to_method_type): Update.
3902 (check_typedef): Update.
3903 (check_stub_method): Update.
3904 (init_type): Individually assign flag fields.
3905 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3906 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3907 (copy_type_recursive): Copy the entire main type. Don't use
3908 TYPE_FLAGS.
3909 * features/rs6000/powerpc-altivec64l.c
3910 (initialize_tdesc_powerpc_altivec64l): Update.
3911 * features/rs6000/powerpc-altivec64.c
3912 (initialize_tdesc_powerpc_altivec64): Update.
3913 * features/rs6000/powerpc-altivec32l.c
3914 (initialize_tdesc_powerpc_altivec32l): Update.
3915 * features/rs6000/powerpc-altivec32.c
3916 (initialize_tdesc_powerpc_altivec32): Update.
3917 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3918 Update.
3919 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3920 Update.
3921 * dwarf2read.c (read_structure_type): Update.
3922 (read_enumeration_type): Likewise.
3923 (process_enumeration_scope): Likewise.
3924 (read_tag_pointer_type): Likewise.
3925 (read_subroutine_type): Likewise.
3926 (read_subroutine_type): Likewise.
3927 (read_base_type): Likewise.
3928 * coffread.c (coff_read_enum_type): Update.
3929 * ada-valprint.c (adjust_type_signedness): Update.
3930 * ada-typeprint.c (print_record_field_types): Update.
3931 * ada-lang.c (packed_array_type): Update.
3932 (empty_record): Don't reset TYPE_FLAGS.
3933 (ada_template_to_fixed_record_type_1): Update.
3934 (ada_template_to_fixed_record_type_1): Likewise.
3935 (template_to_static_fixed_type): Likewise.
3936 (to_record_with_fixed_variant_part): Likewise.
3937 (to_fixed_record_type): Likewise.
3938 (to_fixed_array_type): Likewise.
3939 (to_static_fixed_type): Likewise.
3940
d4ce0d3f
TT
39412008-08-23 Jim Blandy <jimb@redhat.com>
3942
3943 PR macros/607:
3944 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3945 for the macro bcache.
3946
2e668a5d
TT
39472008-08-23 Tom Tromey <tromey@redhat.com>
3948
3949 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3950 (argc): Now 31 bits.
3951
75a2d5e7
TT
39522008-08-22 Tom Tromey <tromey@redhat.com>
3953
3954 * NEWS: Move macro entries back under "New commands".
3955
25db0f1b
UW
39562008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3957
3958 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3959 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3960 (create_overlay_event_breakpoint): Loop over all objfiles to install
3961 multiple instances of the overlay event breakpoint if present.
3962
0391f248
UW
39632008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3964
3965 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3966 (info_spu_event_command): Command only supported on SPU architecture.
3967 (info_spu_signal_command): Likewise.
3968 (info_spu_mailbox_command): Likewise.
3969 (info_spu_dma_command): Likewise.
3970 (info_spu_proxydma_command): Likewise.
3971
24a73cce
UW
39722008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3973
3974 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3975 if the thread has already exited.
3976
e0bb1c1c
PA
39772008-08-22 Pedro Alves <pedro@codesourcery.com>
3978
3979 * infrun.c (proceed): Move back setting previous_inferior_ptid
3980 from here ...
3981 (wait_for_inferior): ... to here.
3982 (fetch_inferior_event): ... and here.
3983
a3ecef73
UW
39842008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3985
3986 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3987 (deprecated_current_gdbarch_select_hack): Call registers_changed
3988 instead of reinit_frame_cache.
3989 * gdbarch.c: Regenerate.
3990
45148c2e
UW
39912008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3992
3993 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3994
6a94242b
DJ
39952008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3996
3997 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3998
5045add0
UW
39992008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4000
4001 * findvar.c (locate_var_value): Do not call get_frame_arch
4002 with a NULL frame argument.
4003
029a67e4
UW
40042008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4005
4006 * frame.h (frame_map_regnum_to_name): Remove prototype.
4007 (frame_map_name_to_regnum): Remove prototype.
4008 * frame.c (frame_map_regnum_to_name): Remove.
4009 (frame_map_name_to_regnum): Remove.
4010 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
4011 instead of frame_map_regnum_to_name.
4012 * ax-gdb.c: Include "user-regs.h".
4013 (gen_expr): Use user_reg_map_name_to_regnum instead of
4014 frame_map_name_to_regnum.
4015 * eval.c: Include "user-regs.h".
4016 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
4017 instead of frame_map_name_to_regnum.
4018 * infcmd.c (registers_info): Likewise.
4019 * parse.c: Include "user-regs.h".
4020 (write_dollar_variable): Use user_reg_map_name_to_regnum
4021 instead of frame_map_name_to_regnum.
4022 * tracepoint.c: Include "user-regs.h".
4023 (encode_actions): Use user_reg_map_name_to_regnum
4024 instead of frame_map_name_to_regnum.
4025 * valops.c: Include "user-regs.h".
4026 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
4027 of frame_map_regnum_to_name.
4028
e84ee240
UW
40292008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4030
4031 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
4032 and manually relocate .opd contents from BFD instead of reading
4033 them from target memory.
4034
0114d602
DJ
40352008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4036
4037 * dwarf2read.c (processing_current_prefix): Delete static
4038 variable.
4039 (process_full_comp_unit): Do not set processing_current_prefix.
4040 (dwarf2_full_name): New function.
4041 (read_func_scope): Do not set processing_current_prefix. Use
4042 determine_prefix.
4043 (read_structure_type): Do not set processing_current_prefix. Remove
4044 unused inner cleanup.
4045 (process_structure_scope): Do not set processing_current_prefix.
4046 (read_enumeration_type): Use dwarf2_full_name.
4047 (determine_class_name): Return a const char *. Put the result
4048 on the objfile obstack. Use dwarf2_full_name.
4049 (read_namespace_type): New function.
4050 (read_namespace): Do not create the type here. Use
4051 determine_prefix.
4052 (read_typedef): Use dwarf2_full_name. Do not pass the name
4053 to init_type.
4054 (read_base_type): Do not pass the name to init_type. Handle
4055 TYPE_FLAG_NOSIGN.
4056 (read_unspecified_type): Do not pass the name to init_type.
4057 (new_symbol): Use dwarf2_full_name instead of
4058 processing_current_prefix.
4059 (read_type_die): Do not set processing_current_prefix. Handle
4060 DW_TAG_namespace.
4061 (determine_prefix): Handle specifications. Return the result
4062 on the objfile obstack. Handle unions correctly.
4063
df8a16a1
DJ
40642008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4065
4066 * buildsym.c (add_symbol_to_list): Do not call
4067 cp_scan_for_anonymous_namespaces here.
4068 (finish_block): Do not call cp_set_block_scope here.
4069 * cp-namespace.c (processing_has_namespace_info)
4070 (processing_current_prefix): Delete.
4071 (cp_initialize_namespace): Do not initialize
4072 processing_has_namespace_info.
4073 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
4074 not check processing_has_namespace_info.
4075 (cp_set_block_scope): Take prefix and namespace info flag as
4076 arguments. Honor namespaces regardless of a demangled name.
4077 * cp-support.h (processing_has_namespace_info)
4078 (processing_current_prefix): Delete declarations.
4079 (cp_set_block_scope): Update prototype.
4080 * dwarf2read.c (processing_has_namespace_info)
4081 (processing_current_prefix): New static variables.
4082 (read_file_scope): Initialize processing_has_namespace_info.
4083 (read_func_scope): Call cp_set_block_scope for C++.
4084 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
4085 * symtab.c (symbol_demangled_name): Accept a const argument.
4086 * symtab.h (symbol_demangled_name): Update prototype.
4087
3567439c
DJ
40882008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4089
4090 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
4091 * blockframe.c (find_pc_partial_function): Likewise.
4092 * buildsym.c (find_symbol_in_list): Likewise.
4093 * c-valprint.c (c_val_print): Likewise.
4094 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
4095 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
4096 * cp-support.c (cp_remove_params): Renamed from remove_params and
4097 made global.
4098 (overload_list_add_symbol): Update call to remove_params.
4099 * cp-support.h (cp_remove_params): Declare.
4100 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
4101 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
4102 * expprint.c (dump_subexp_body_standard): Likewise.
4103 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
4104 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
4105 for messages.
4106 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
4107 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4108 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4109 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
4110 symbols and SYMBOL_PRINT_NAME for messages.
4111 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4112 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
4113 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
4114 SYMBOL_SET_LINKAGE_NAME.
4115 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
4116 * minsyms.c (add_minsym_to_demangled_hash_table): Use
4117 SYMBOL_SEARCH_NAME.
4118 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
4119 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
4120 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
4121 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
4122 (address_info): Use SYMBOL_PRINT_NAME for messages and
4123 SYMBOL_LINKAGE_NAME for lookups.
4124 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
4125 * stabsread.c (patch_block_stabs, define_symbol)
4126 (read_type, read_enum_type, common_block_end)
4127 (cleanup_undefined_types_1, scan_file_globals): Use
4128 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
4129 and SYMBOL_PRINT_NAME.
4130 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
4131 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
4132 cp_remove_params instead of cplus_demangle.
4133 (print_block_frame_labels, print_frame_arg_vars): Use
4134 SYMBOL_LINKAGE_NAME.
4135 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
4136 SYMBOL_LINKAGE_NAME.
4137 (dump_symtab_1, print_symbol, print_partial_symbols)
4138 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
4139 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
4140 (SYMBOL_SET_LINKAGE_NAME): New.
4141 (SYMBOL_SET_NAMES): Add a comment.
4142 * tracepoint.c (set_traceframe_context, validate_actionline)
4143 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
4144 lookups and SYMBOL_PRINT_NAME for output.
4145 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
4146 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4147
aded6f54
PA
41482008-08-21 Pedro Alves <pedro@codesourcery.com>
4149
4150 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
4151 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
4152 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
4153 obj_section_addr and obj_section_endaddr.
4154 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
4155 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4156 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
4157 (find_extant_func_descr): Likewise.
4158 * solib-frv.c (frv_relocate_main_executable): Use
4159 obj_section_addr.
4160 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
4161 obj_section_addr and obj_section_endaddr.
4162
158c7665
PH
41632008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
4164
4165 * NEWS: Amplify last entry on boolean types in Ada.
4166
f2f0e013
DJ
41672008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4168
4169 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
4170 Make the dwarf2_cu * parameter output as well as input. Update it if
4171 we follow a reference to another CU.
4172 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
4173 (die_type, die_containing_type): Update calls to changed functions.
4174 Use the returned CU along with the returned DIE.
4175 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
4176
03dd20cc
DJ
41772008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4178
4179 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
4180 in the DIEs here.
4181 (process_queue): Do not read in the DIEs here.
4182 (psymtab_to_symtab_1): Update call to queue_comp_unit.
4183 (read_full_die): Do not call queue_comp_unit from here.
4184 (maybe_queue_comp_unit): New function.
4185 (follow_die_ref): Use it.
4186
b60c80d6
DJ
41872008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4188
4189 * dwarf2read.c (struct attribute): Move earlier.
4190 (struct die_info): Change attrs to a trailing array.
4191 (dwarf_alloc_die): Take the number of attributes. Allocate space
4192 for them.
4193 (read_full_die): Update call to dwarf_alloc_die. Do not manually
4194 allocate attributes.
4195
51545339
DJ
41962008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4197
4198 * dwarf2read.c (REF_HASH_SIZE): Delete.
4199 (struct dwarf2_cu): Replace die_ref_table with die_hash.
4200 (struct die_info): Remove next_ref.
4201 (store_in_ref_table): Remove offset argument. Rewrite to use
4202 htab_find_slot_with_hash.
4203 (die_hash, die_eq): New.
4204 (read_comp_unit): Allocate the die_hash.
4205 (read_die_and_children): Update call to store_die_ref.
4206 (follow_die_ref): Rewrite to use htab_find_with_hash.
4207
7475d072
DJ
42082008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4209
4210 * dwarf2read.c (free_die_list, copy_die): Delete.
4211 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
4212 on the obstack.
4213 (read_full_die): Update call to dwarf_alloc_die. Allocate
4214 attributes on the CU obstack.
4215 (free_one_comp_unit): Do not call free_die_list.
4216
1d325ec1
DJ
42172008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4218
4219 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
4220 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
4221 sibling list.
4222 (read_full_die): Do not allocate DIEs for abbrev 0.
4223 (follow_die_ref): Correct error message.
4224
b96e2927
PA
42252008-08-20 Pedro Alves <pedro@codesourcery.com>
4226
4227 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4228 there are no symbols loaded, instead of throwing a generic error.
4229 (decode_variable): Likewise.
4230
f1f6aadf
PA
42312008-08-20 Pedro Alves <pedro@codesourcery.com>
4232
4233 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4234 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4235 macros.
4236 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4237 and offset. Use size_t instead of unsigned long.
4238 (build_objfile_section_table): Use size_t instead of unsigned
4239 long.
4240 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4241 gone.
4242 (find_pc_sect_section): Use obj_section_addr and
4243 obj_section_endaddr.
4244 * symfile.c (symfile.c): Remove code that maps sections
4245 offsets in "addr" to the object's sections.
4246 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4247 * gcore.c (gcore_create_callback): Use obj_section_addr and
4248 obj_section_endaddr.
4249 * maint.c (print_objfile_section_info): Likewise.
4250 * printcmd.c (sym_info): Use obj_section_addr and
4251 obj_section_endaddr.
4252 * symtab.c (fixup_section): Likewise.
4253
3923a2b2
MK
42542008-08-20 Mark Kettenis <kettenis@gnu.org>
4255
4256 * sparc-tdep.c: Make some comments catch up with reality.
4257
b3eb342c
VP
42582008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4259
4260 * NEWS: Mention 'set target-async'
4261
7f7efbd9
VP
42622008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4263
4264 * infrun.c (resume): If the thread is placed to the deferred step
4265 queue, mark it as running.
4266
9908b566
VP
42672008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4268
4269 Make sure target supports non-stop.
4270 * infcmd.c (run_command_1, attach_command): If non-stop mode
4271 is requested, verify the target supports it.
4272 * linux-nat.c (linux_nat_supports_non_stop): New.
4273 (linux_nat_add_target): Register the above.
4274 * target.c (find_default_supports_non_stop)
4275 (target_supports_non_stop): New.
4276 (init_dummy_target): Register find_default_supports_non_stop.
4277 * target.h (struct target_ops): New field to_supports_non_stop.
4278 (target_supports_non_stop): New.
4279
c6ebd6cf
VP
42802008-08-19 Pedro Alves <pedro@codesourcery.com>
4281 Vladimir Prus <vladimir@codesourcery.com>
4282
4283 * target.c (target_async_permitted, target_async_permitted_1)
4284 (set_maintenance_target_async_permitted)
4285 (show_maintenance_target_async_permitted): New.
4286 (initialize_targets): Register 'set target-async'.
4287 * target.h (target_async_permitted): Declare.
4288 * linux-nat.c (linux_nat_async_enabled)
4289 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4290 (show_maintenance_linux_async_permitted): Remove.
4291 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4292 (get_pending_events, linux_nat_async): Use target_async_permitted.
4293 (linux_nat_set_async_mode): Remove, moving the only used bits
4294 into...
4295 (linux_nat_setup_async): This.
4296 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4297 Use linux_nat_setup_async.
4298 * remote.c (remote_async_permitted, remote_async_permitted_set)
4299 (set_maintenance_remote_async_permitted)
4300 (show_maintenance_remote_async_permitted): Remove.
4301 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4302 (remote_is_async_p): Use target_async_permitted.
4303 (_initialize_remote): Don't register 'main set remote-async'.
4304 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4305 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4306 * mi/mi-main.c (mi_cmd_list_target_features): New.
4307
073120b9
VP
43082008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4309
4310 * target.c (maybe_kill_then_attach)
4311 (maybe_kill_then_create_inferior): Remove.
4312 (update_current_target): Do not default to_attach,
4313 to_create_inferiour, to_is_async_p.
4314
690cc4eb 43152008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4316
4317 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4318 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4319 API to return LONGEST values rather than struct values.
4320 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4321 and discrete_type_high_bound.
4322 (to_fixed_range_type): Create a range type in cases where
4323 argument is base type and its limits are representable as ints.
4324 (ada_is_modular_type): Correct so that base type must be integral.
4325 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4326 keywords when they appear alone, since we are phasing out
bfb8797a 4327 direct representation of these identifiers in debugging data.
690cc4eb
PH
4328 * ada-exp.y: Define 'true' and 'false' as primaries.
4329 (type_boolean): New function.
4330 (type_int,type_long,type_long_long,type_floattype_double)
4331 (type_long_double): Remove uses of current_gdbarch for consistency
4332 with type_boolean.
4333 (write_int): Change comment to indicate that it might write boolean
4334 constant as well.
4335 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4336 type, since will no longer be represented as enumerated type in
4337 debugging data.
4338 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4339 as well.
bfb8797a
PH
4340 * NEWS: Note support boolean types.
4341
39540081
PA
43422008-08-18 Pedro Alves <pedro@codesourcery.com>
4343
4344 * bsd-uthread.c (bsd_uthread_close): New.
4345 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4346 target.
4347 (bsd_uthread_solib_loaded): Fix typo.
4348 (bsd_uthread_target): Register bsd_uthread_close.
4349
87ab71f0
PA
43502008-08-18 Pedro Alves <pedro@codesourcery.com>
4351
4352 * corelow.c (core_open): Assume there was no upper layer left
4353 behind from a previous inferior.
4354 * target.c (pop_all_targets): Rename to ...
4355 (pop_all_targets_above): ... this. Add a target stratum
4356 parameter. Use it instead of hardcoding the dummy_stratum.
4357 (pop_all_targets): New, defer to pop_all_targets_above.
4358 (target_preopen): Use pop_all_targets_above.
4359 * target.h (pop_all_targets_above): Declare.
4360
5231c1fd
PA
43612008-08-18 Pedro Alves <pedro@codesourcery.com>
4362
4363 * gdbthread.h (thread_change_ptid): Declare.
4364 * infrun.c (infrun_thread_ptid_changed): New.
4365 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4366 thread_ptid_changed observer.
4367 * regcache.c (regcache_thread_ptid_changed): New.
4368 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4369 thread_ptid_changed observer.
4370 * thread.c (thread_change_ptid): New.
4371
f98dfd4b
TT
43722008-08-18 Tom Tromey <tromey@redhat.com>
4373
4374 * symfile.c (reread_symbols): Update.
4375 * solib-sunos.c (allocate_rt_common_objfile): Update.
4376 * objfiles.c (allocate_objfile): Update.
4377 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4378 Remove.
4379
d87ecdfb
TT
43802008-08-18 Tom Tromey <tromey@redhat.com>
4381
4382 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4383 obstack.
4384
46a9b8ed
DJ
43852008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4386
4387 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4388 lr_register.
4389 (rs6000_in_function_epilogue_p): Check for bctr.
4390 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4391 number. Set gpr_mask and used_bl. Continue scanning while some
4392 expected registers are not saved. Set lr_register if LR is not
4393 stored.
4394 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4395
44feb3ce
TT
43962008-08-17 Tom Tromey <tromey@redhat.com>
4397
4398 PR gdb/1535:
4399 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4400 (ep_find_event_name_end): Remove.
4401 (catch_fork_temporary, catch_vfork_temporary,
4402 catch_fork_permanent, catch_vfork_permanent): New constants.
4403 (catch_vfork, catch_fork): Remove.
4404 (catch_fork_command_1): Add 'command' argument. Remove
4405 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4406 all cases.
4407 (catch_exec_command_1): Add 'command' argument; remove
4408 'tempflag'. Handle NULL 'arg'.
4409 (catch_load_command_1): Likewise.
4410 (catch_unload_command_1): Likewise.
4411 (catch_ada_exception_command): Likewise.
4412 (catch_assert_command): Likewise.
4413 (catch_catch_command): New function.
4414 (catch_throw_command): Likewise.
4415 (catch_command_1): Remove.
4416 (catch_command): Just call error.
4417 (tcatch_command): Likewise.
4418 (catch_cmdlist): New global.
4419 (tcatch_cmdlist): Likewise.
4420 (add_catch_command): New function.
4421 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4422 commands. Create all catch sub-commands.
4423
0d6431e2
PA
44242008-08-17 Pedro Alves <pedro@codesourcery.com>
4425
4426 * gdbthread.h: Add comments.
4427 * stack.c (get_selected_block): Return 0 on an exited thread.
4428 * top.c (execute_command): Check for is_stopped, not !is_running.
4429 * event-top.c (command_handler): Likewise.
4430
8931f526
PA
44312008-08-16 Pedro Alves <pedro@codesourcery.com>
4432
4433 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4434 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4435 (mi_cmd_exec_finish): Remove "return".
4436
aa76d38d
PA
44372008-08-16 Pedro Alves <pedro@codesourcery.com>
4438
4439 * target.h (pop_all_targets): Declare.
4440 * target.c (pop_all_targets): New.
4441 * top.c (quit_target): Pop all targets instead of just closing the
4442 current.
4443
311a4e6b
TJB
44442008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4445 Thiago Jung Bauermann <bauerman@br.ibm.com>
4446
4447 * cli-script.c (read_next_line): Add parse_commands argument.
4448 (recurse_read_control_structure): Adapt to new read_next_line
4449 signature.
4450 (read_command_lines): Add parse_commands argument.
4451 (define_command): Adapt to new read_command_lines signature.
4452 (document_command): Likewise.
4453 * breakpoint.c (commands_command): Likewise.
4454 * defs.h (read_command_lines): Adjust function prototype.
4455
24209737
PH
44562008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4457
4458 * ada-lang.c (pos_atr): Account for the possibility that the
4459 argument may be a reference.
4460
9f1d5432
PH
44612008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4462
4463 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4464 ('F' format) for @FIX names generated by the loader, retaining only
4465 the minimal symbols (and no partial symbol tables) for these names.
4466 Fixes warning messages about symbols that are found in partial
4467 symbol tables, but not full symbol tables.
4468
83c265ab
PA
44692008-08-16 Pedro Alves <pedro@codesourcery.com>
4470
4471 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4472 stopping quietly.
4473
604c2f83
LM
44742008-08-15 Luis Machado <luisgpm@br.ibm.com>
4475
4476 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4477 Include "features/rs6000/powerpc-vsx64.c".
4478 (ppc_supply_vsxregset): New function.
4479 (ppc_collect_vsxregset): New function.
4480 (IS_VSX_PSEUDOREG): New macro.
4481 (IS_EFP_PSEUDOREG): New macro.
4482 (vsx_register_p): New function.
4483 (ppc_vsx_support_p): New function.
4484 (rs6000_builtin_type_vec128): New function.
4485 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4486 correct names for VSX registers and EFPR registers.
4487 (rs6000_pseudo_register_type): Return correct types for VSX
4488 and EFPR registers.
4489 (rs6000_pseudo_register_reggroup_p): Return correct group for
4490 VSX and EFPR registers.
4491 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4492 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4493 (vsx_pseudo_register_read): New function.
4494 (vsx_pseudo_register_write): New function.
4495 (efpr_pseudo_register_read): New function.
4496 (efpr_pseudo_register_write): New function.
4497 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4498 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4499 (rs6000_gdbarch_init): Declare have_vsx.
4500 Initialize new upper half VSX registers.
4501 Initialize VSX-related and EFPR-related pseudo-registers variables.
4502 Adjust the number of pseudo registers accordingly.
4503
4504 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4505 and SIZEOF_VSRREGS.
4506 (gdb_vsxregset_t): New type.
4507 (have_ptrace_getsetvsxregs): New variable.
4508 (fetch_vsx_register): New function.
4509 (fetch_register): Handle VSX registers.
4510 (fetch_vsx_registers): New function.
4511 (fetch_ppc_registers): Handle VSX registers.
4512 (store_ppc_registers): Handle VSX registers.
4513 (store_vsx_register): New function.
4514 (store_register): Handle VSX registers.
4515 (store_vsx_registers): New function.
4516 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4517 (gdb_vsxregset_t): New type.
4518 (supply_vsxregset): New function.
4519 (fill_vsxregset): New function.
4520
4521 * ppc-tdep.h (vsx_register_p): New prototype.
4522 (vsx_support_p): New prototype.
4523 (ppc_vsr0_regnum): New variable.
4524 (ppc_vsr0_upper_regnum): Likewise.
4525 (ppc_efpr0_regnum): Likewise.
4526 (ppc_builtin_type_vec128): New type.
4527 (ppc_num_vsrs): New constant.
4528 (ppc_num_vshrs): New constant.
4529 (ppc_num_efprs): Likewise.
4530 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4531 (ppc_supply_vsxregset): New prototype.
4532 (ppc_collect_vsxregset): New prototype.
4533
4534 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4535 Include "features/rs6000/powerpc-vsx64l.c".
4536 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4537 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4538 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4539 (ppc_linux_regset_from_core_section): Handle VSX core section.
4540 (ppc_linux_core_read_description): Support VSX-enabled core files.
4541
4542 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4543 Declare tdesc_powerpc_vsx64l
4544
4545 * corelow.c (get_core_register_section): Support VSX-enabled
4546 core files.
4547
4548 * features/rs6000/power-vsx.xml: New VSX descriptions.
4549 * features/rs6000/powerpc-vsx32.xml: New file.
4550 * features/rs6000/powerpc-vsx32l.xml: New file.
4551 * features/rs6000/powerpc-vsx64.xml: New file.
4552 * features/rs6000/powerpc-vsx64l.xml: New file.
4553 * features/rs6000/powerpc-vsx32.c: New file (generated).
4554 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4555 * features/rs6000/powerpc-vsx64.c: New file (generated).
4556 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4557 * features/Makefile: Updated with new descriptions.
4558 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4559 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4560
dde7c0a9
VP
45612008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4562
4563 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4564 call linux_target twice.
4565
ebd67d87
AR
45662008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4567
4568 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4569 solib-svr4.c
4570 (LM_ADDR): Use l_addr if available; if not, use link map and set
4571 l_addr.
4572
886a217c
TT
45732008-08-14 Tom Tromey <tromey@redhat.com>
4574
4575 * macrocmd.c (macro_define_command): Check for NULL argument.
4576 (macro_undef_command): Likewise.
4577
3d488bfc
PA
45782008-08-14 Pedro Alves <pedro@codesourcery.com>
4579
4580 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4581
33e5cbd6
PA
45822008-08-13 Pedro Alves <pedro@codesourcery.com>
4583
4584 * breakpoint.c (always_inserted_auto, always_inserted_on)
4585 (always_inserted_off, always_inserted_enums): New.
4586 (always_inserted_mode): Change type to char* and point to
4587 always_inserted_auto.
4588 (show_always_inserted_mode): In auto mode, also show the current
4589 effect of the option.
4590 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4591 (_initialize_breakpoint): Make the "set breakpoints
4592 always-inserted" command an enum command. Extend help to describe
4593 the auto mode.
4594
8fbde58b
UW
45952008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4596
4597 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4598 query valid) bit. Ignore bits outside the condition field.
4599 (info_spu_proxydma_command): Ignore bits outside the field.
4600
11fa8e43
MS
46012008-08-12 Michael Snyder <msnyder@vmware.com>
4602
4603 * MAINTAINERS: Update my email address.
4604
fcb09a75
UW
46052008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4606
4607 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4608
a6f3e723
SL
46092008-08-12 Pedro Alves <pedro@codesourcery.com>
4610
4611 Add no-ack mode to the remote protocol --- optionally stop ACKing
4612 packets and responses when we have a reliable communication
4613 medium.
4614
4615 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4616
4617 * remote.c (struct remote_state): Add noack_mode field.
4618 (PACKET_QStartNoAckMode): New.
4619 (remote_start_remote): Don't any outstanding packet here.
4620 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4621 here. Activate noack mode if requested.
4622 (remote_protocol_features): Add QStartNoAckMode.
4623 (remote_open_1):
4624 (putpkt_binary): Don't send ack in noack mode.
4625 (read_frame): Don't recompute the checksum in noack mode.
4626 (getpkt_sane): Skip sending ack if in noack mode.
4627 (_initialize_remote): Add set/show remote noack mode.
4628 * NEWS: Note the new features.
4629
8ab3d180
KB
46302008-08-11 Kevin Buettner <kevinb@redhat.com>
4631
4632 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4633 New macros.
4634 (rs6000_skip_main_prologue): New function.
4635 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4636
63a61bf6
SL
46372008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4638
4639 * MAINTAINERS (Write After Approval): Add self.
4640
9d4fde75
SS
46412008-08-11 Stan Shebs <stan@codesourcery.com>
4642
4643 ARM BE8 support.
4644 * disasm.c (gdb_disassemble_info): Set endian_code.
4645 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4646 * gdbarch.h, gdbarch.c: Regenerate.
4647 * arch-utils.c (initialize_current_architecture): Set the
4648 default byte_order_for_code.
4649 (gdbarch_info_init): Ditto.
4650 (gdbarch_info_fill): Ditto.
4651 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4652 (thumb_analyze_prologue): Swap halfword if code endianness is
4653 different from general endianness.
4654 (arm_skip_prologue): Similarly.
4655 (arm_scan_prologue): Ditto.
4656 (thumb_get_next_pc): Ditto.
4657 (arm_get_next_pc): Ditto.
4658 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4659 choose correct endianness for breakpoints.
4660
6c613132
PA
46612008-08-10 Pedro Alves <pedro@codesourcery.com>
4662
4663 * bsd-kvm.c: Include "gdbthread.h".
4664 (bsd_kvm_ptid): New.
4665 (bsd_kvm_open): Add a main thread.
4666 (bsd_kvm_close): Delete it.
4667 (bsd_kvm_thread_alive): New.
4668 (bsd_kvm_pid_to_str): New.
4669 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4670 bsd_kvm_pid_to_str.
4671 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4672
6eb7ee03
PA
46732008-08-09 Pedro Alves <pedro@codesourcery.com>
4674
4675 * buildsym.c (start_subfile): Properly cast sentinel in concat
4676 call.
4677 * cp-name-parser.y: Include "config.h".
4678 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4679 concat call.
4680 * gdb_select.h: Include sys/time.h if sys/select.h is not
4681 available.
4682
444c3224
PA
46832008-08-09 Pedro Alves <pedro@codesourcery.com>
4684
4685 * go32-nat.c: Include "gdbthread.h".
4686 (go32_stop, go32_kill_inferior): Delete the main thread.
4687 (go32_create_inferior): Add it.
4688 (go32_thread_alive, go32_pid_to_str): New.
4689 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4690
9d0b3624
PA
46912008-08-09 Pedro Alves <pedro@codesourcery.com>
4692
4693 * go32-nat.c (fetch_register, store_register): Pass the regcache
4694 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4695 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4696 (struct seg_descr, struct seg_descr): pack the whole struct
4697 instead of each member individually.
4698
509238d6
AS
46992008-08-09 Andreas Schwab <schwab@suse.de>
4700
4701 * python/python.c (_initialize_python): Use unabbreviated commands
4702 in prefix name.
4703
c068b4e8
DJ
47042008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4705
4706 * Makefile.in (stamp-h): Also create .deps.
4707
21374e5f
TT
47082008-08-09 Tom Tromey <tromey@redhat.com>
4709
4710 * Makefile.in (generated_files): Add GNULIB_H.
4711
7be67755
DA
47122008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4713
4714 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4715 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4716 Revise comment.
4717 (pa64_current_sos): Remove map private warning warning.
4718 * solib-som.c: Include string.h and sys/utsname.h.
4719 (get_hpux_major_release): New function.
4720 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4721 about shared library private mapping on HP-UX 11 and later. Only force
4722 private mapping of shared libraries on HP-UX 10 and earlier.
4723 (link_map_start): Delete warning.
4724
e0c62198
L
47252008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4726 H.J. Lu <hongjiu.lu@intel.com>
4727 Mark Kettenis <kettenis@gnu.org>
4728
4729 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4730 (amd64_init_frame_cache): Initialize saved_sp_reg.
4731 (amd64_analyze_stack_align): New.
4732 (amd64_analyze_prologue): Call it.
4733 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4734 %rip to 8 when halfway aligning the stack.
4735
4736 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4737 AMD64_R14_REGNUM.
4738
4739 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4740 saved_sp_reg.
4741 (i386_alloc_frame_cache): Remove stack_align. Initialize
4742 saved_sp_reg to -1.
4743 (i386_analyze_stack_align): Rewrite.
4744 (i386_frame_cache): Use saved_sp_reg if it is valid.
4745
b9db4ced
UW
47462008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4747
4748 * target.c: Include "solib.h".
4749 (target_pre_inferior): Call no_shared_libraries.
4750 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4751 or clear_solib.
4752 (attach_command): Do not call clear_solib.
4753
3979a37f
MK
47542008-08-09 Mark Kettenis <kettenis@gnu.org>
4755
4756 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4757 the %eip register.
4758
2b26d9fa
TT
47592008-08-08 Tom Tromey <tromey@redhat.com>
4760
4761 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4762 POSTCOMPILE.
4763 (python-utils.o): Likewise.
4764
f1648876
AS
47652008-08-08 Andreas Schwab <schwab@suse.de>
4766
4767 * corefile.c (_initialize_core): Remove spurious paren from set
4768 gnutarget doc string.
4769
b7622095
LM
47702008-08-08 Luis Machado <luisgpm@br.ibm.com>
4771
4772 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4773 Define PPC_FEATURE_BOOKE.
b7622095
LM
4774 (ppc_linux_get_hwcap): New function.
4775 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4776 4-bytes alignment restrictions.
4777 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4778 positioning of the read/write flags.
4779 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4780 4-bytes alignment.
4781
2dc38344
PA
47822008-08-08 Pedro Alves <pedro@codesourcery.com>
4783
4784 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4785
4786 * win32-nat.c (win32_add_thread): Change thread argument type to
4787 ptid_t. Adjust.
4788 (win32_add_thread): Adjust.
4789 (win32_delete_thread): Change thread argument type to ptid_t.
4790 Adjust.
4791 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4792 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4793 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4794 (init_win32_ops): Put to_magic last.
4795 (win32_win32_thread_alive): Adjust.
4796
4d6c6261
PA
47972008-08-08 Pedro Alves <pedro@codesourcery.com>
4798
4799 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4800 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4801
e5ef4d75
PA
48022008-08-08 Pedro Alves <pedro@codesourcery.com>
4803
4804 * remote-m32r-sdi.c: Include "gdbthread.h".
4805 (remote_m32r_ptid): New.
4806 (m32r_close): Delete the main thread.
4807 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4808 main thread.
4809 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4810 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4811
a417dc56
RW
48122008-08-07 Tom Tromey <tromey@redhat.com>
4813 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4814
4815 * aclocal.m4, configure: Rebuild.
4816 * configure.in: Call ZW_CREATE_DEPDIR,
4817 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4818 (MAKE, GMAKE): New substs.
4819 * acinclude.m4: Include depstand.m4.
4820 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4821 COMPILE, POSTCOMPILE, depcomp): New variables.
4822 Remove all _h variables.
4823 Remove many .o targets.
4824 ($(srcdir)/copying.c): avoid backslash-newline after comment
4825 sign (@maintainer_mode_true@).
4826 (HFILES_NO_SRCDIR): Regenerate.
4827 (generated_files): New variable.
4828 (all_gdbtk_cflags): Likewise.
4829 (.c.o): Rewrote.
4830 (init.o, version.o, copying.o): Remove.
4831 (distclean): Remove DEPDIR.
4832 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4833 printcmd.o, procfs.o, v850ice.o): Rewrite.
4834 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4835 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4836 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4837 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4838 gdbtk-wrapper.o): Likewise.
4839 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4840 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4841 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4842 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4843 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4844 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4845 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4846 tui-wingeneral.o, tui-winsource.o): Likewise.
4847 (all_object_files): New variable.
4848 ($(all_object_files)): New target.
4849 Include dependency files, when using GNU Make.
4850
12ab8a60
UW
48512008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4852
4853 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4854 the valid bit set. Ensure display order respects partial
4855 order defined by dependency bits.
4856
6536cc32
DA
48572008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4858
4859 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4860 setup.
4861
f73a15e4
MK
48622008-08-06 Mark Kettenis <kettenis@gnu.org>
4863
4864 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4865 OpenBSD 4.3.
4866
d57a3c85
TJB
48672008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4868 Tom Tromey <tromey@redhat.com>
4869 Thiago Jung Bauermann <bauerman@br.ibm.com>
4870 Doug Evans <dje@google.com>
4871
4872 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4873 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4874 PYTHON_CFLAGS): New.
4875 (python_h, python_internal_h): New.
4876 (cli-script.o): Depend on python.h
4877 (python.o, python-utils.o): New.
4878 * cli/cli-script.c (print_command_lines): Handle python_control.
4879 (execute_control_command): Handle python_control.
4880 (execute_control_command_untraced): New function.
4881 (while_command): Call execute_control_command_untraced.
4882 (if_command): Likewise.
4883 (get_command_line): Remove static attribute.
4884 (read_next_line): Handle "python".
4885 (recurse_read_control_structure): Handle python_control.
4886 (read_command_lines): Handle python_control.
4887 Include python.h.
4888 * cli/cli-script.h (get_command_line): Add prototype.
4889 (execute_control_command_untraced): Likewise.
4890 * configure.ac: Add --with-python.
4891 * defs.h (enum command_control_type) <python_control>: New
4892 constant.
4893 * python/python-internal.h: New file.
4894 * python/python.c: New file.
4895 * python/python.h: New file.
4896 * python/python-utils.c: New file.
4897 * NEWS: Mention Python scripting support and its new commands.
4898
5141027d
UW
48992008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4900
4901 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4902
353cfe88
PM
49032008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4904
f1648876 4905 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4906
d6b74ac4
PM
49072008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4908
4909 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4910 (insert_breakpoint_locations): Likewise.
4911
ef0d312a
MS
49122008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4913
4914 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4915 breakpoint.
4916 (set_longjmp_breakpoint): Likewise.
4917
fb6d93b2
UW
49182008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4919
4920 PR build/2490
4921 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4922 defined.
4923
e6ad058a
TT
49242008-08-05 Tom Tromey <tromey@redhat.com>
4925
4926 * bcache.c (deprecated_bcache_added): Initialize obstack.
4927 (bcache_xmalloc): Don't initialize obstack.
4928 (bcache_xfree): Conditionally free obstack.
4929 (bcache_memory_used): Update.
4930
11d31d94
TT
49312008-08-05 Tom Tromey <tromey@redhat.com>
4932
4933 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4934 bcache_full.
4935 (append_psymbol_to_list): Accept a const pointer.
4936 (add_psymbol_to_list): Fix const correctness.
4937 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4938 (bcache_full): Declare.
4939 * bcache.c (bcache_data, deprecated_bcache): Remove.
4940 (bcache): Use bcache_full.
4941 (bcache_full): Rename from deprecated_bcache_added. Change return
4942 type.
4943
5be973eb
SS
49442008-08-04 Stan Shebs <stan@codesourcery.com>
4945
4946 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4947 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4948 (enable_break): Remove test of BKPT_AT_SYMBOL.
4949
5062cc19
KS
49502008-08-02 Keith Seitz <keiths@redhat.com>
4951
4952 * acinclude.m4: Include ../config/tcl.m4 to pick up
4953 standard Tcl configury bits.
4954 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4955 * configure.ac: Don't check if ../itcl exists when building
4956 gdbtk. It could be installed.
4957 Rewrite gdbtk configury to allow for using system-supplied
f1648876 4958 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
4959 itcl and itk.
4960 * Makefile.in: Remove everything related to itcl and itk.
4961 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4962 configure.ac.
4963 Remove v850ice.o build rule.
4964 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4965 gdbtk sources to use it.
4966 * configure: Regenerate.
f1648876 4967
6d76a53d
SS
49682008-07-31 Stan Shebs <stan@codesourcery.com>
4969
4970 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4971
ed7c5e43
SS
49722008-07-30 Stan Shebs <stan@codesourcery.com>
4973
4974 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4975 (add_to_objfile_sections): Remove use.
4976
22ad7fee
TT
49772008-07-29 Tom Tromey <tromey@redhat.com>
4978
4979 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4980 (lookup_cmd_composition): Likewise.
4981
d5529a84
TT
49822008-07-29 Tom Tromey <tromey@redhat.com>
4983
4984 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4985 dead code. Fix indentation.
4986
938f4ca8
SS
49872008-07-29 Stan Shebs <stan@codesourcery.com>
4988
4989 * main.c (captured_main): Remove long-unused #if 0 blocks.
4990
7f4b89d1
TT
49912008-07-28 Tom Tromey <tromey@redhat.com>
4992
4993 * annotate.h (deprecated_annotate_starting_hook): Remove.
4994 (deprecated_annotate_stopped_hook): Remove.
4995 (deprecated_annotate_exited_hook): Remove.
4996 * Makefile.in (annotate.o): Depend on observer_h.
4997 * top.c (deprecated_delete_breakpoint_hook): Remove.
4998 (deprecated_create_breakpoint_hook): Likewise.
4999 (deprecated_modify_breakpoint_hook): Likewise.
5000 * interps.c (clear_interpreter_hooks): Update for removed hooks.
5001 * breakpoint.c (mention): Don't call removed hook.
5002 (delete_breakpoint): Likewise.
5003 (disable_breakpoint): Likewise.
5004 (do_enable_breakpoint): Likewise.
5005 * annotate.c: Include observer.h.
5006 (breakpoint_changed): Change type of argument.
5007 (_initialize_annotate): Register observers.
5008 (deprecated_annotate_starting_hook): Remove.
5009 (deprecated_annotate_stopped_hook): Remove.
5010 (deprecated_annotate_exited_hook): Remove.
5011 (annotate_starting): Update for hook removal.
5012 (annotate_stopped): Likewise.
5013 (annotate_exited): Likewise.
5014 * defs.h (deprecated_delete_breakpoint_hook): Remove.
5015 (deprecated_create_breakpoint_hook): Likewise.
5016 (deprecated_modify_breakpoint_hook): Likewise.
5017
8641e682
TT
50182008-07-28 Tom Tromey <tromey@redhat.com>
5019
5020 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
5021
064ef605
DJ
50222008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5023
5024 * configure.ac: Check for the GNU/Linux ptrace signature.
5025 * configure: Regenerated.
5026
57380f4e
DJ
50272008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5028
5029 * linux-nat.c (resume_callback): Add more debugging output.
5030 (linux_nat_has_pending_sigint): New function, based on
5031 linux_nat_has_pending.
5032 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
5033 (stop_wait_callback): Remove flush_mask handling. Honor
5034 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
5035 to recursive calls.
5036 (linux_nat_has_pending, flush_callback): Remove.
5037 (linux_nat_filter_event): Check for ignore_sigint.
5038 (linux_nat_wait): Remove flush_mask support and call to
5039 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
5040 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
5041
e09490f1
DJ
50422008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5043
5044 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
5045 report events from resumed threads.
5046
e38d4e1a
DJ
50472008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5048
5049 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
5050 (mips_linux_init_abi): Set tdep->syscall_next_pc.
5051 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
5052 mips-tdep.h.
5053 (mips32_next_pc): Handle the syscall instruction.
5054 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
5055 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
5056
fa8de41e
TT
50572008-07-26 Tom Tromey <tromey@redhat.com>
5058
5059 PR gdb/1158:
5060 * valops.c (value_struct_elt): Treat function-valued field as a
5061 static method.
5062
ccb3ac8a
TT
50632008-07-26 Tom Tromey <tromey@redhat.com>
5064
5065 PR gdb/1136:
5066 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
5067 longer tokens first.
5068
d72314c6
VP
50692008-07-26 Vladimir Prus <vladimir@codesourcery.com>
5070
5071 Kill cmd_async_ok.
f1648876
AS
5072 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
5073 (get_cmd_async_ok): Remove.
5074 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
5075 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
5076 * infcmd.c (_initialize_infcmd): Likewise.
5077 * thread.c (_initialize_thread): Likewise.
d72314c6 5078
5b68030f
JM
50792008-07-25 Joseph Myers <joseph@codesourcery.com>
5080
5081 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
5082 128-bit long doubles in even-odd pairs of FPRs. Do not
5083 right-align float arguments for big-endian.
5084 (mips_n32n64_return_value): Apply return value convention for
5085 structs containing one or two floating-point values to soft-float
5086 as well as hard-float. Handle 128-bit long doubles in such
5087 structs.
5088 (mips_o32_push_dummy_call): Only skip one integer register for a
5089 float argument passed in an FPR.
5090
383f836e
TT
50912008-07-25 Tom Tromey <tromey@redhat.com>
5092
5093 * tui/tui-hooks.c: Include observer.h.
5094 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
5095 Remove.
5096 (tui_bp_created_observer, tui_bp_deleted_observer,
5097 tui_bp_modified_observer): New globals.
5098 (tui_install_hooks): Use observers, not events.
5099 (tui_remove_hooks): Likewise.
5100 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
5101 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
5102 globals.
5103 (breakpoint_notify): Check mi_can_breakpoint_notify.
5104 (breakpoint_hooks): Remove.
5105 (mi_cmd_break_insert): Attach observers. Don't use events.
5106 * tracepoint.c: Include observer.h, not gdb-events.h.
5107 (tracepoint_operation, trace_pass_command): Notify observer.
5108 * interps.c: Don't include gdb-events.h.
5109 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
5110 * gdbarch.c: Rebuild.
5111 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
5112 (deprecated_current_gdbarch_select_hack): Notify observer.
5113 * breakpoint.h: Don't include gdb-events.h.
5114 * breakpoint.c: Don't include gdb-events.h.
5115 (condition_command): Notify observer.
5116 (commands_command): Likewise.
5117 (commands_from_control_command): Likewise.
5118 (mention, delete_breakpoint, set_ignore_count): Likewise.
5119 (disable_breakpoint, do_enable_breakpoint): Likewise.
5120 * Makefile.in (gdb_events_h): Remove.
5121 (breakpoint_h): Update.
5122 (COMMON_OBS): Remove gdb-events.o.
5123 (gdb-events.o): Remove.
5124 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
5125 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
5126 * gdb-events.c: Remove.
5127 * gdb-events.h: Remove.
5128 * gdb-events.sh: Remove.
5129
60e569b9
PA
51302008-07-24 Pedro Alves <pedro@codesourcery.com>
5131
5132 * remote.c (remote_threads_extra_info): Don't query the remote
5133 server about info on the internally added main thread.
5134
a6a7f2a5
AR
51352008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
5136
5137 * nto-procfs.c (procfs_attach): Populate initial thread list.
5138 (procfs_wait): Return new pid, built from the inferior status.
5139
e63e4db2
TJB
51402008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
5141
5142 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
5143 * configure: Regenerate.
5144
14ef7606
AR
51452008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
5146
5147 * nto-procfs.c (procfs_xfer_memory): Changed signature.
5148 (procfs_resume): Workaround for dereferencing type-punned pointer
5149 warning.
f1648876 5150 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
5151 correct.
5152 * nto-tdep.h (nto_parse_redirection): Likewise.
5153
cfd8ab24
SS
51542008-07-21 Stan Shebs <stan@codesourcery.com>
5155
5156 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
5157 * gdbarch.sh: Adjust comment to refer to
5158 in_solib_dynsym_resolve_code().
5159 * gdbarch.h, gdbarch.c: Update.
5160 * solib-osf.c: Ditto.
5161 * infrun.c: Ditto.
5162 (handle_inferior_event): Use in_solib_dynsym_resolve_code
5163 unconditionally.
5164 * config/mips/nm-irix5.h: Remove undef of
5165 IN_SOLIB_DYNSYM_RESOLVE_CODE.
5166
781b42b0
TT
51672008-07-21 Tom Tromey <tromey@redhat.com>
5168
5169 * symfile.c (reread_symbols): Don't pass argument to observer.
5170 * exec.c (exec_file_attach): Don't pass argument to observer.
5171 * ada-lang.c (ada_executable_changed_observer): Remove argument.
5172 * symtab.c (symtab_observer_executable_changed): Remove argument.
5173 * observer.sh: Handle functions with no arguments.
5174
a366c65a 51752008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 5176 Chris Demetriou <cgd@google.com>
a366c65a
CD
5177
5178 * elfread.c (elf_symfile_segments): Fix the check that each loadable
5179 section fits within an ELF segment to handle ELF segments that hit
5180 the end of the address space.
5181
073d253f
CD
51822008-07-20 Chris Demetriou <cgd@google.com>
5183
5184 * MAINTAINERS (Write After Approval): Add self.
5185
d7d9f01e
TT
51862008-07-18 Tom Tromey <tromey@redhat.com>
5187
5188 PR gdb/855:
5189 * NEWS: Add entry for macro commands.
5190 * Makefile.in (macrocmd.o): Add gdb_string.h.
5191 * macroscope.h (user_macro_scope): Declare.
5192 (default_macro_scope): Update documentation.
5193 (macro_user_macros): Declare.
5194 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
5195 Use user_macro_scope.
5196 (null_macro_lookup): Remove.
5197 * macrotab.h (macro_callback_fn): Declare.
5198 (macro_for_each): Likewise.
5199 (macro_allow_redefinitions): Likewise.
5200 * macrotab.c (foreach_macro): New function
5201 (macro_for_each): Likewise.
5202 (struct macro_table) <redef_ok>: New field.
5203 (macro_allow_redefinitions): New function.
5204 (new_macro_table): Update.
5205 (macro_define_function): Likewise.
5206 (macro_define_object): Likewise.
5207 * macroscope.c (user_macro_scope): New function.
5208 (default_macro_scope): Use it.
5209 (macro_user_macros): New global.
5210 (standard_macro_lookup): Look in macro_user_macros.
5211 (_initialize_macroscope): New function.
5212 * macroexp.h (macro_is_whitespace, macro_is_digit,
5213 macro_is_identifier_nondigit): Declare.
5214 * macroexp.c (macro_is_whitespace): Rename. No longer static.
5215 (macro_is_digit): Likewise.
5216 (macro_is_identifier_nondigit): Likewise.
5217 (get_identifier): Update.
5218 (get_pp_number): Likewise.
5219 (get_token): Likewise.
5220 * macrocmd.c (skip_ws): New function.
5221 (extract_identifier): Likewise.
5222 (free_macro_definition_ptr): Likewise.
5223 (user_macros): Remove.
5224 (macro_define_command): Implement.
5225 (_initialize_macrocmd): Update.
5226 (macro_undef_command): Implement.
5227 (print_one_macro): New function.
5228 (macro_list_command): Implement.
5229
0f72fb1c
JM
52302008-07-18 Joseph Myers <joseph@codesourcery.com>
5231
5232 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5233 in BFD ELF check.
5234 * configure: Regenerate.
5235
7c6467a4
PP
52362008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5237
5238 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5239
680b56ce
AS
52402008-07-15 Andreas Schwab <schwab@suse.de>
5241
5242 * valops.c (value_cast_pointers): Follow typedefs when checking
5243 result of coercion.
5244
7f0df278
DJ
52452008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5246
5247 * block.c (block_function): Renamed to ...
5248 (block_linkage_function): ... this. All callers changed.
5249 * block.h (block_function): Renamed to ...
5250 (block_linkage_function): ... this.
5251
ba2c6aec
DJ
52522008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5253
5254 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5255
d56907c1
DJ
52562008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5257
5258 * frame.c (frame_sp_unwind): Delete.
5259 (get_frame_sp): Do not use it.
5260 * frame.h (frame_sp_unwind): Delete prototype.
5261
f92aeb88
DJ
52622008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5263
5264 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5265
ad1193e7
DJ
52662008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5267
5268 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5269 * frame.c (frame_unwind_address_in_block): Delete.
5270 (get_frame_address_in_block): Do not use it. Check the type
5271 of the next frame first.
5272 (frame_cleanup_after_sniffer): Update comment.
5273 * frame.h (frame_unwind_address_in_block): Delete prototype.
5274 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5275
ef02daa9
DJ
52762008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5277
5278 * frame.c (frame_func_unwind): Delete.
5279 (get_frame_func): Do not use it.
5280 * frame.h (frame_func_unwind): Delete prototype.
5281 * hppa-tdep.c (hppa_frame_cache): Update comment.
5282 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5283
96e32df8
SS
52842008-07-14 Stan Shebs <stan@codesourcery.com>
5285
5286 * remote-sim.c (init_gdbsim_ops): Remove
5287 TARGET_REDEFINE_DEFAULT_OPS.
5288
ab8650a3
DJ
52892008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5290
5291 * findvar.c (read_var_value): Remove unused variable.
5292
8c90c137
LM
52932008-07-15 Luis Machado <luisgpm@br.ibm.com>
5294
5295 * infrun.c (handle_inferior_event): Tag threads as stopped
5296 before inserting breakpoints.
5297
4098af0f
HZ
52982008-07-15 Hui Zhu <teawater@gmail.com>
5299
5300 * MAINTAINERS: Added myself to section Write After Approval.
5301
7093c834
PP
53022008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5303
5304 PR gdb/2477
5305 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5306
56514771
PA
53072008-07-14 Pedro Alves <pedro@codesourcery.com>
5308
5309 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5310 (i386_dicos_push_dummy_code): New.
5311 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5312 Register i386_dicos_push_dummy_code.
5313
74ed0bb4
MD
53142008-07-14 Markus Deuling <deuling@de.ibm.com>
5315
5316 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5317 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5318 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5319
5320 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5321 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5322 (mips_n32n64_fp_arg_chunk_p): Update caller.
5323
5324 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5325 (mips_n32n64_push_dummy_call): Update caller.
5326
5327 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5328 current_gdbarch.
5329 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5330 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5331
5332
5333 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5334 current_gdbarch.
5335 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5336 (mips_o64_push_dummy_call): Update caller.
5337
5338 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5339 (fp_register_arg_p, mips_dump_tdep): Update caller.
5340
5341 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5342 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5343
5344 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5345 current_gdbarch.
5346 (mips32_scan_prologue): Update caller.
5347
5348 (heuristic_proc_start): Add gdbarch as parameter. Replace
5349 current_gdbarch.
5350 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5351
5352 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5353 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5354 the current architecture. Update call to getregs_supplies.
5355 (getregs_supplies): Add gdbarch as parameter and replace
5356 current_gdbarch.
5357
5358 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5359 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5360 NBSD_MIPS_JB_ELEMENT_SIZE.
5361 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5362 replace current_gdbarch.
5363
5364 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5365 current_gdbarch.
5366 (mips_fetch_registers, mips_store_registers): Update call
5367 to mips_map_regno.
5368 (mips_load): Use get_regcache_arch to get at the current_architecture
5369 and replace current_gdbarch.
5370
0c501536
PA
53712008-07-13 Pedro Alves <pedro@codesourcery.com>
5372
5373 * thread.c (restore_selected_frame): On fail to restore, select
5374 the innermost frame, and don't crash when warning the user.
5375
db009c8a
JB
53762008-07-13 Hui Zhu <teawater@gmail.com>
5377
5378 * symtab.c (expand_line_sal): Fix a memory leak.
5379
0ffe5012
PA
53802008-07-13 Pedro Alves <pedro@codesourcery.com>
5381
5382 * utils.c (struct continuation): Define as inheriting struct
5383 cleanup.
5384 (add_continuation, do_all_continuations)
5385 (discard_all_continuations, add_intermediate_continuation)
5386 (do_all_intermediate_continuations)
5387 (discard_all_intermediate_continuations): Adjust.
5388
dbba8251
VP
53892008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5390
5391 Skip varobj in running threads.
680b56ce
AS
5392 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5393 thread is not stopped, skip the varobj.
5394 * Makefile.in: Update dependencies.
dbba8251 5395
e3d6cd5f
VP
53962008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5397
5398 Enable all commands while inferiour is running
680b56ce
AS
5399 * mi/mi-main.c (mi_cmd_execute): Don't check if
5400 inferiour is executing.
e3d6cd5f 5401
b10a37b1
VP
54022008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5403
5404 Allow all CLI command even if target is executing.
680b56ce
AS
5405 * gdb/top.c (execute_command_1): Don't check if the inferiour
5406 is running.
b10a37b1 5407
ea069267
VP
54082008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5409
5410 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5411 Fix printing of frame, when frame is wrong.
5412
cdc9523a
UW
54132008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5414
5415 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5416 backchain is unreadable.
5417
d5b25491
UW
54182008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5419
5420 * spu-linux-nat.c: Include "gdbthread.h".
5421 (spu_child_post_startup_inferior): Register main thread.
5422 (spu_child_post_attach): Likewise.
5423 * Makefile.in (spu-linux-nat.o): Update dependencies.
5424
604ead4a
PA
54252008-07-12 Pedro Alves <pedro@codesourcery.com>
5426
5427 Rewrite continuations internals on top of cleanups and plug
5428 continuation arguments leaks.
5429
5430 * defs.h (struct continuation): Make it opaque.
5431 (add_continuation, add_intermediate_continuation): Drop the int
5432 argument of the continuation hook argument. Add
5433 continuation_free_args argument.
5434 (do_all_continuations, do_all_intermediate_continuations): Drop
5435 the error_p argument.
5436
5437 * utils.c (add_continuation): Drop the int argument of the
5438 continuation hook argument. Add continuation_free_args argument.
5439 Reimplement on top of cleanups.
5440 (do_all_continuations): Drop error argument. Reimplement on top
5441 of cleanups.
5442 (discard_all_continuations): Reimplement on top of cleanups.
5443 (add_intermediate_continuation): Drop the int argument of the
5444 continuation hook argument. Add continuation_free_args argument.
5445 Reimplement on top of cleanups.
5446 (do_all_intermediate_continuations): Drop error argument.
5447 Reimplement on top of cleanups.
5448 (discard_all_intermediate_continuations): Reimplement on top of
5449 cleanups.
5450
5451 * breakpoint.c (until_break_command_continuation): Drop error
5452 argument. Add xfree as continuation argument deleter.
5453
5454 * inf-loop.c (inferior_event_handler): On error, discard all
5455 continuations. Adjust to new do_all_intermediate_continuations
5456 and do_all_continuations interfaces.
5457
5458 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5459 Pass xfree as continuation argument deleter.
5460 (finish_command_continuation): Drop error_p argument. Adjust.
5461 (finish_command_continuation_free_arg): New.
5462 (finish_command): Pass finish_command_continuation_free_arg as
5463 continuation argument deleter. Adjust to new do_all_continuations
5464 interfaces.
5465 (attach_command_continuation): Drop error_p argument.
5466 (attach_command_continuation_free_args): New.
5467 (attach_command): Pass attach_command_continuation_free_args as
5468 continuation argument deleter.
5469
5470 * interps.c (interp_set): Adjust to new do_all_continuations
5471 interfaces.
5472
5473 * event-top.c (stdin_event_handler): In error, also discard the
5474 intermediate continuations.
5475
bfec99b2
PA
54762008-07-12 Pedro Alves <pedro@codesourcery.com>
5477
5478 Replace struct continuation_args by void* and per command structs.
5479
5480 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5481
5482 * breakpoint.c (struct until_break_command_continuation_args):
5483 New.
5484 (until_break_command_continuation): Take a void* instead of a
5485 continuations_arg. Adjust.
5486 (until_break_command): Adjust to use struct
5487 until_break_command_continuation_args instead of struct
5488 continuation_arg.
5489
5490 * infcmd.c (struct step_1_continuation_args): New.
5491 (step_1_continuation): Take a void* instead of a
5492 continuations_arg. Adjust to use struct step_1_continuation_args.
5493 (step_once): Adjust to use struct step_1_continuation_args.
5494
5495 (struct finish_command_continuation_args): New.
5496 (finish_command_continuation): Take a void* instead of a
5497 continuations_arg. Adjust to use struct
5498 finish_command_continuation_args.
5499 (finish_command): Adjust to use struct
5500 finish_command_continuation_args.
5501 (struct attach_command_continuation_args): New.
5502 (attach_command_continuation): Take a void* instead of a
5503 continuations_arg. Adjust to use struct
5504 attach_command_continuation_args.
5505 (attach_command): Adjust to use struct
5506 attach_command_continuation_args.
5507
5508 * defs.h (struct continuation_arg): Delete.
5509 (struct continuation): Replace the struct continuation_arg*
5510 parameter of continuation_hook by a void*. Replace "arg_list"
5511 member by a new "args" member with void* type.
5512 (add_continuation, add_intermediate_continuation): Replace struct
5513 continuation_arg type usages by void* usages.
5514
5515 * utils.c (add_continuation, do_all_continuations)
5516 (add_intermediate_continuation)
5517 (do_all_intermediate_continuations): Replace struct
5518 continuation_arg type usages by void* usages. Pass "args" instead
5519 of "arg_list".
5520
2afb61aa
PA
55212008-07-12 Pedro Alves <pedro@codesourcery.com>
5522
5523 * infrun.c (struct thread_stepping_state): Delete sal member.
5524 (init_thread_stepping_state): Add local sal. Use it instead of
5525 tss->sal.
5526 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5527 tss->sal.
5528 (step_into_function): Add local stop_func_sal. Use it instead of
5529 tss->sal.
5530
77ebaa5a
VP
55312008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5532
5533 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5534 * infcmd.c (continue_1): New, extracted from
5535 (continue_command): ...here.
5536 (interrupt_target_1): New, extracted from
5537 (interrupt_target_command): ...here.
5538 * inferior.h (continue_1, interrupt_target_1): New.
5539 * mi/mi-main.c (mi_cmd_exec_continue)
5540 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5541
1e92afda
VP
55422008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5543
5544 Implement --thread and --frame.
5545 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5546 * thread.c (find_thread_id): Make non-static.
5547 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5548 thread and frame, if necessary.
5549 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5550 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5551
d56b7306
VP
55522008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5553
5554 * infrun.c (resume): Discard cleanups on early exit path.
5555
b1a268e5
VP
55562008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5557
680b56ce 5558 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5559 were stopped.
5560
90139f7d
VP
55612008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5562
5563 Report thread state in -thread-info output.
680b56ce 5564 * thread.c (print_thread_info): Add new field "state".
90139f7d 5565
a0d21d28
PA
55662008-07-11 Pedro Alves <pedro@codesourcery.com>
5567
5568 * infrun.c (handle_inferior_event): Also ignore a
5569 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5570
14032a66
TT
55712008-07-11 Tom Tromey <tromey@redhat.com>
5572
5573 * completer.c (complete_line_internal): New function, from
5574 complete_line. Add 'for_help' parameter.
5575 (complete_line): Use it.
5576 (command_completer): Move later. Rewrite.
5577
65fc9b77
PA
55782008-07-11 Pedro Alves <pedro@codesourcery.com>
5579
5580 * thread.c (thread_apply_command): Move making the cleanup out of
5581 the loop.
5582
4f8d22e3
PA
55832008-07-11 Pedro Alves <pedro@codesourcery.com>
5584
5585 Exited threads.
5586
5587 * thread.c (enum thread_state): New.
5588 (thread_state main_thread_running): Delete, in favor of...
5589 (thread_state main_thread_state): ... this. Update throughout.
5590 (clear_thread_inferior_resources): New, split from free_thread.
5591 (free_thread): Call clear_thread_inferior_resources.
5592 (init_thread_list): Set main thread to stopped state.
5593 (add_thread_silent): Take care of PTID reuses.
5594 (delete_thread): If deleting inferior_ptid or a thread with
5595 refcount > 0, mark it as exited, but still keep it in the list.
5596 Only notify of thread exits, if we haven't done so yet.
5597 (iterate_over_threads): Make it safe to delete threads while
5598 iterating over them.
5599 (do_captured_list_thread_ids): Don't account for exited threads.
5600 (thread_alive): Check for the THREAD_EXITED state, and don't set
5601 ptid to -1 on exited threads.
5602 (set_running): Update to account for extra possible states.
5603 (is_thread_state): New.
5604 (is_stopped, is_exited): New.
5605 (is_running): Implement in terms of is_thread_state.
5606 (any_running): Update.
5607 (print_thread_info): Update. Account for exited threads. Don't
5608 warn about missed frame restoring here, its done in the cleanup.
5609 (switch_to_thread): Don't read from a thread that has gone.
5610 (restore_current_thread): In non-stop mode, do a full context
5611 switch.
5612 (restore_selected_frame): Add a frame_level argument. Rewrite.
5613 (struct current_thread_cleanup): Add selected_frame_level and
5614 was_stopped members.
5615 (do_restore_current_thread_cleanup): Check if thread was stopped
5616 and still is, and if the target has registers, stack and memory
5617 before restoring the selected frame. Don't delete the cleanup
5618 argument here.
5619 (restore_current_thread_cleanup_dtor): New.
5620 (make_cleanup_restore_current_thread): Remove all arguments.
5621 Rewrite.
5622 (thread_apply_all_command): Update. Prune threads.
5623 (thread_apply_command): Update.
5624 (thread_command): Account for currently selected exited thread.
5625 (do_captured_thread_select): Check for a running thread. Prune
5626 threads.
5627 (_initialize_thread): Make "info threads", "thread", "thread
5628 apply", and "thread apply all" appliable without a selected thread.
5629 * gdbthread.h (struct thread_info): Replace running_ by state_.
5630 Add refcount.
5631 (is_exited, is_stopped): Declare.
5632 (make_cleanup_restore_current_thread): Remove all arguments.
5633 * infrun.c: Include "event-top.h".
5634 (fetch_inferior_event): In non-stop mode, restore selected thread
5635 and frame after handling the event and running breakpoint
5636 commands. Display GDB prompt if needed.
5637 (normal_stop): In non-stop mode, don't print thread switching
5638 notice.
5639 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5640 (get_cmd_no_selected_thread_ok): New.
5641 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5642 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5643 Declare.
5644 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5645 no-selected-thread ok.
5646 * top.c (execute_command): Check for non no-selected-thread-ok
5647 commands.
5648 * linux-nat.c (struct saved_ptids, threads_to_delete)
5649 (record_dead_thread, prune_lwps): Delete.
5650 (exit_lwp): Unconditionally delete thread.
5651 (linux_nat_resume): Remove prune_lwps call.
5652 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5653 of is_running. Adjust to make_cleanup_restore_current_thread
5654 interface change.
5655 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5656 selected thread has exited.
5657 * inf-loop.c (inferior_event_handler): Don't display the prompt
5658 here.
5659 * varobj.c (c_value_of_root): Update.
5660 * defs.h (make_cleanup_dtor): Declare.
5661 * utils.c (make_cleanup_dtor): New.
5662
5663 * Makefile.in (infrun.o): Depend on $(event_top_h).
5664
8cae4b3f
PA
56652008-07-11 Pedro Alves <pedro@codesourcery.com>
5666
5667 Add "continue -a" and "interrupt -a" options for non-stop mode.
5668
5669 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5670 (continue_command): Add "-a" option.
5671 (interrupt_target_command): Add "-a" option.
5672 (_initialize_infcmd): Add extend help of continue and interrupt
5673 command to mention the new "-a" option. Mark "continue" async ok.
5674
bf250677
DE
56752008-07-10 Doug Evans <dje@google.com>
5676
5677 Add "set print symbol-loading on|off".
5678 * NEWS: Document new option.
5679 * symfile.h (print_symbol_loading): Declare.
5680 * symfile.c (print_symbol_loading): New global.
5681 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5682 from ..." if print_symbol_loading.
5683 (_initialize_symfile): Add set/show print symbol-loading.
5684 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5685 if print_symbol_loading.
5686
4c28f408
PA
56872008-07-10 Pedro Alves <pedro@codesourcery.com>
5688
5689 Non-stop linux native.
5690
5691 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5692 here.
5693 (get_pending_status): Implement non-stop mode.
5694 (linux_nat_detach): Stop threads before detaching.
5695 (linux_nat_resume): In non-stop mode, always resume only a single
5696 PTID.
5697 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5698 add new lwp to GDB's thread table, and mark as running, executing
5699 and stopped appropriately.
5700 (linux_nat_filter_event): Don't assume there are other running
5701 threads when a thread exits.
5702 (linux_nat_wait): Mark the main thread as running and executing.
5703 In non-stop mode, don't stop all lwps.
5704 (linux_nat_kill): Stop lwps before killing them.
5705 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5706 alive.
5707 (send_sigint_callback): New.
5708 (linux_nat_stop): New.
5709 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5710
5711 * linux-nat.h (thread_db_attach_lwp): Declare.
5712
5713 * linux-thread-db.c (thread_get_info_callback): Check for new
5714 threads if we have none.
5715 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5716 stopped lwp. Check for new threads if we have none.
5717 (thread_db_attach_lwp): New.
5718 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5719 (check_event): Set proc_handle.pid to the stopped lwp.
5720 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5721 lwp available, bail out if there is none.
5722
5723 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5724 PTRACE_KILL.
5725
0aef6ba2
KB
57262008-07-10 Kevin Buettner <kevinb@redhat.com>
5727
a4fafde3
KB
5728 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5729 `current_pc' from CORE_ADDR to ULONGEST.
5730
0aef6ba2
KB
5731 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5732 gdbsim_stop().
5733
10568435
JK
57342008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 * NEWS (New commands): Mention "set disable-randomization".
5737 * configure.ac: Add check for HAVE_PERSONALITY and
5738 HAVE_DECL_ADDR_NO_RANDOMIZE.
5739 * configure, config.in: Regenerate.
5740 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5741 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5742 ADDR_NO_RANDOMIZE.
5743 (disable_randomization, show_disable_randomization)
5744 (set_disable_randomization): New.
5745 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5746 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5747 variable DISABLE_RANDOMIZATION.
5748 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5749 DISABLE_RANDOMIZATION.
5750
f9c72d52
PA
57512008-07-09 Pedro Alves <pedro@codesourcery.com>
5752
5753 Adjust all targets to new target_stop interface.
5754
5755 * gnu-nat.c (gnu_stop): Add ptid argument.
5756 * go32-nat.c (go32_stop): Add ptid argument.
5757 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5758 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5759 * monitor.c (monitor_stop): Add ptid argument.
5760 (monitor_open): Pass inferior_ptid to monitor_stop.
5761 (monitor_interrupt): Pass inferior_ptid to target_stop.
5762 (monitor_stop): Add ptid argument.
5763 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5764 (procfs_create_inferior): Add ptid argument.
5765 * procfs.c (procfs_stop): Add ptid argument.
5766 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5767 * remote-sim.c (gdbsim_stop): Add ptid argument.
5768 * sol-thread.c (sol_thread_stop): Add ptid argument.
5769 * win32-nat.c (win32_stop): Add ptid argument.
5770
94cc34af
PA
57712008-07-09 Pedro Alves <pedro@codesourcery.com>
5772
5773 Non-stop inferior control.
5774
5775 * infrun.c (resume): In non-stop mode, always resume just one
5776 thread.
5777 (proceed): Don't call prepare_to_proceed in non-stop mode.
5778 (fetch_inferior_event): In non-stop mode, switch context before
5779 handling the event.
5780 (error_is_running, ensure_not_running): New.
5781 (handle_inferior_event): In non-stop mode: Mark only the event
5782 thread as stopped. Require that the target module manages adding
5783 threads to the thread list. Assert that there isn't a
5784 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5785 (normal_stop): Only mark not-running if inferior hasn't exited.
5786 In non-stop mode, only mark the event thread.
5787
5788 * thread.c:Include "cli/cli-decode.h".
5789 (print_thread_info): Don't read from a running thread.
5790 Output "(running)" if thread is running.
5791 (switch_to_thread): Don't read stop_pc if thread is executing.
5792 (do_restore_current_thread_cleanup): Don't write to a running
5793 thread.
5794 (thread_apply_all_command): Don't read from a running thread. In
5795 non-stop mode, do a full context-switch instead of just switching
5796 threads.
5797 (thread_apply_command): In non-stop mode, do a full context-switch
5798 instead of just switching threads.
5799 (do_captured_thread_select): Likewise. Inform user if selected
5800 thread is running.
5801 (_initialize_thread): Mark "info threads" and "thread" and
5802 async_ok.
5803
5804 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5805 unregister the target from the event loop.
5806
5807 * infcmd.c (continue_command, step_1, jump_command)
5808 (signal_command): Ensure the selected thread isn't running.
5809 (interrupt_target_command): In non-stop mode, interrupt only the
5810 selected thread.
5811
5812 * inferior.h (error_is_running, ensure_not_running): Declare.
5813
5814 * target.h (struct target_ops): Add ptid argument to the to_stop
5815 member.
5816 (target_stop): Add ptid_t argument.
5817
5818 * target.c (update_current_target): Add ptid argument to to_stop's
5819 type.
5820 (debug_to_stop): Add ptid_t argument.
5821 (debug_to_rcmd): Set to_stop_ptid.
5822
5823 * remote.c (remote_stop): Add ptid_t argument.
5824 (async_remote_interrupt): Add inferior_ptid to target_stop.
5825 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5826
5827 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5828
59f0d5d9
PA
58292008-07-09 Pedro Alves <pedro@codesourcery.com>
5830
5831 Don't rely on ecs->wait_for_more.
5832
5833 * infrun.c (proceed): Clear the stepping state, set
5834 previous_inferior_ptid and clear infwait state.
5835 (wait_for_inferior): Don't clear the stepping state, set
5836 previous_inferior_ptid, or clear the infwait state here.
5837 (fetch_inferior_event): Don't clear the stepping state, set
5838 previous_inferior_ptid, or clear the infwait state here. Don't
5839 condition on wait_for_more.
5840
0d1e5fa7
PA
58412008-07-09 Pedro Alves <pedro@codesourcery.com>
5842
5843 Refactor infrun a bit.
5844
5845 * infrun.c (currently_stepping): Take a struct
5846 thread_stepping_state instead of an execution_control_state.
5847 (struct thread_stepping_state): New, split from
5848 execution_control_state.
5849 (gtss, tss): New globals.
5850 (proceed): Clear the stepping state, set previous_inferior_ptid
5851 and clear infwait state.
5852 (init_wait_for_inferior): Clear the stepping state,
5853 previous_inferior_ptid and infwait state.
5854 (waiton_ptid, infwait_state): New, split from
5855 execution_control_state.
5856 (struct execution_control_state): Members that persist through
5857 events moved out to either struct thred_stepping_state or made
5858 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5859 (wait_for_inferior, fetch_inferior_event): Use local
5860 execution_control_state. Update to execution_control_state split.
5861 (init_execution_control_state): Adjust.
5862 (init_thread_stepping_state): New, extracted from
5863 init_execution_control_state.
5864 (context_switch): Take a ptid instead of an
5865 execution_control_state.
5866 (context_switch_to): Adjust.
5867 (adjust_pc_after_break): Adjust.
5868 (init_infwait_state): New.
5869 (handle_inferior_event): Adjust.
5870
a474d7c2
PA
58712008-07-09 Pedro Alves <pedro@codesourcery.com>
5872 Vladimir Prus <vladimir@codesourcery.com>
5873
5874 Per-thread commands.
5875
5876 * gdbthread.h: Remove unneeded forward declarations.
5877 Include "inferior.h".
5878 (struct thread_info): Add continuations,
5879 intermediate_continuations, proceed_to_finish, step_over_calls,
5880 stop_step, step_multi and stop_signal members.
5881 (save_infrun_state): Add continuations,
5882 intermediate_continuations, proceed_to_finish, step_over_calls,
5883 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5884 (load_infrun_state): Add continuations,
5885 intermediate_continuations, proceed_to_finish, step_over_calls,
5886 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5887
5888 * thread.c (load_infrun_state): In non-stop mode, load
5889 continuations, intermediate_continuations, proceed_to_finish,
5890 step_over_calls, stop_step, step_multi and stop_signal.
5891 (save_infrun_state): Store continuations,
5892 intermediate_continuations, proceed_to_finish, step_over_calls,
5893 stop_step, step_multi, stop_signal and stop_bpstat.
5894 (save_infrun_state): Store continuations,
5895 intermediate_continuations, proceed_to_finish, step_over_calls,
5896 stop_step, step_multi, stop_signal and stop_bpstat.
5897 (free_thread): Clear The thread's stop_bpstat.
5898
5899 * inferior.h (context_switch_to): Declare.
5900
5901 * infrun.c (ecss): New global.
5902 (context_switch): Context switch continuations,
5903 intermediate_continuations, proceed_to_finish, step_over_calls,
5904 stop_step, step_multi, stop_signal and stop_bpstat.
5905 (wait_for_inferior): Use global ecss.
5906 (async_ecss, async_ecs): Delete.
5907 (fetch_inferior_event): Use global ecss.
5908 (context_switch_to): New.
5909
5910 * top.c (execute_command): In non-stop, only check if the current
5911 thread is running, in all-stop, check if there's any thread
5912 running.
5913
5914 * breakpoint.c (bpstat_remove_breakpoint): New.
5915 (bpstat_remove_breakpoint_callback): New.
5916 (delete_breakpoint): Clear the stop_bpstats of all threads.
5917
5918 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5919 current thread is running, in all-stop, check if there's any
5920 thread running.
5921
5922 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5923
ad52ddc6
PA
59242008-07-09 Pedro Alves <pedro@codesourcery.com>
5925
5926 Add non_stop global.
5927
5928 * inferior.h (non_stop): Declare.
5929 * infrun.c (non_stop, non_stop_1): New.
5930 (set_non_stop, show_non_stop): New.
5931 (_initialize_infrun): Add "set/show non-stop" command.
5932
3a3e9ee3
PA
59332008-07-09 Pedro Alves <pedro@codesourcery.com>
5934
5935 Adjust fork/vfork/exec to pass ptids around.
5936
5937 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5938 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5939 Take a ptid_t.
5940 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5941 type to ptid.
5942 * breakpoint.c (print_it_typical, bpstat_check_location)
5943 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5944 (create_fork_vfork_event_catchpoint): Adjust.
5945 * infrun.c (fork_event): Change parent_pid and child_pid types to
5946 ptid.
5947 (follow_exec, inferior_has_forked, inferior_has_vforked)
5948 (inferior_has_execd): Take a ptid_t and don't trim it.
5949 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5950 * linux-nat.c (linux_child_follow_fork): Adjust.
5951 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5952 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5953 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5954
8ea051c5
PA
59552008-07-09 Pedro Alves <pedro@codesourcery.com>
5956
5957 Add "executing" property to threads.
5958
5959 * inferior.h (target_executing): Delete.
5960 * gdbthread.h (struct thread_info): Add executing_ field.
5961 (set_executing, is_executing): New.
5962 * thread.c (main_thread_executing): New.
5963 (init_thread_list): Clear it and also main_thread_running.
5964 (is_running): Return false if target has no execution.
5965 (any_running, is_executing, set_executing): New.
5966
5967 * top.c: Include "gdbthread.h".
5968 (target_executing): Delete.
5969 (execute_command): Replace target_executing check by any_running.
5970 * event-top.c: Include "gdbthread.h".
5971 (display_gdb_prompt, command_handler): Replace target_executing by
5972 is_running.
5973 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5974 here. Replace target_executing by is_running.
5975 * infrun.c (handle_inferior_event): Mark all threads as
5976 not-executing.
5977 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5978 here.
5979 * stack.c (get_selected_block): Return null if inferior is
5980 executing.
5981 * target.c (target_resume): Mark resumed ptid as executing.
5982 * breakpoint.c (until_break_command): Replace target_executing
5983 check by is_executing.
5984 * remote.c (remote_async_resume): Don't mark inferior as executing
5985 here.
5986 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5987 by any_running.
680b56ce 5988
8ea051c5
PA
5989 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5990 (mi_execute_async_cli_command): Replace target_executing by
5991 is_running.
5992
5993 * frame.c (get_current_frame): Error out if the current thread is
5994 executing.
5995 (has_stack_frames): New.
5996 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5997 has_stack_frames.
680b56ce 5998
8ea051c5
PA
5999 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
6000 $(gdbthread_h).
6001
4487aabf
PA
60022008-07-09 Pedro Alves <pedro@codesourcery.com>
6003
6004 * symfile.c (load_command): Reopen the exec file and reread
6005 symbols before anything else.
6006
9de2bdd7
PA
60072008-07-09 Pedro Alves <pedro@codesourcery.com>
6008
6009 * remote-sim.c: Include gdbthread.h.
6010 (remote_sim_ptid): New global.
6011 (gdbsim_create_inferior): Silently add the main task to GDB's
6012 thread list.
6013 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
6014 task from GDB's thread list.
6015 (gdbsim_resume): Adjust to use remote_sim_ptid.
6016 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
6017 (init_gdbsim_ops): Register gdbsim_thread_alive and
6018 gdbsim_pid_to_str.
6019 (_initialize_remote_sim): Initialize remote_sim_ptid.
6020 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
6021
5e0b29c1
PA
60222008-07-09 Pedro Alves <pedro@codesourcery.com>
6023
6024 * monitor (monitor_ptid): New global.
6025 (monitor_open): Silently add the main task to GDB's thread list.
6026 (monitor_close, monitor_mourn_inferior): Silently delete the main
6027 task from GDB's thread list.
6028 (monitor_thread_alive, monitor_pid_to_str): New.
6029 (init_base_monitor_ops): Register monitor_thread_alive and
6030 monitor_pid_to_str.
6031 (_initialize_remote_monitors): Initialize monitor_ptid.
6032
6033 * gdbthread.h (delete_thread_silent): Declare.
6034 * thread.c (delete_thread): Rename to ...
6035 (delete_thread_1): ... this. Add "silent" parameter. If silent,
6036 don't do exit notifications.
6037 (delete_thread, delete_thread_silent): New, as wrappers to
6038 delete_thread_1.
6039
b60e7edf
PA
60402008-07-08 Pedro Alves <pedro@codesourcery.com>
6041
6042 * breakpoint.c (update_global_location_list): Add boolean
6043 "should_insert" argument. Only insert locations if caller told it
6044 too.
6045 (update_global_location_list_nothrow): Add boolean "should_insert"
6046 argument. Pass it to update_global_location_list.
6047 (insert_breakpoints, create_longjmp_breakpoint)
6048 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
6049 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6050 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
6051 (enable_watchpoints_after_interactive_call_stop)
6052 (set_momentary_breakpoint, create_breakpoints)
6053 (break_command_really, watch_command_1)
6054 (create_ada_exception_breakpoint, update_breakpoint_locations)
6055 (do_enable_breakpoint, enable_command): Pass true to
6056 update_global_location_list.
6057 (bpstat_stop_status, disable_overlay_breakpoints)
6058 (disable_watchpoints_before_interactive_call_start)
6059 (delete_breakpoint, disable_breakpoint, disable_command): Pass
6060 false to update_global_location_list.
6061 (update_breakpoints_after_exec): Don't temporarily disable
6062 always-inserted mode.
6063
25b22b0a
PA
60642008-07-08 Pedro Alves <pedro@codesourcery.com>
6065
6066 * breakpoint.c (mark_breakpoints_out): Make public.
6067 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
6068 here. Update comment.
6069 * breakpoint.h (mark_breakpoints_out): Declare.
6070
6071 * linux-nat.c (linux_handle_extended_wait): On
6072 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
6073 * inf-ttrace.c (inf_ttrace_wait): Likewise.
6074
cce9b6bf
PA
60752008-07-08 Pedro Alves <pedro@codesourcery.com>
6076
6077 * infrun.c (follow_exec): Reset shared libraries before adding the
6078 main exec file.
6079
3c3185ac
JK
60802008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6081
6082 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
6083
42f0bc8e
PA
60842008-07-07 Pedro Alves <pedro@codesourcery.com>
6085
6086 * i386-dicos-tdep.c: Include "inferior.h".
6087 (i386_dicos_frame_align): New.
6088 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
6089 dummy location ON_STACK.
6090 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
6091
b7292df3
JB
60922008-07-07 Joel Brobecker <brobecker@adacore.com>
6093
6094 * gstdint.h: New file.
6095
bb599c81
VP
60962008-07-05 Vladimir Prus <vladimir@codesourcery.com>
6097
6098 * mi/mi-interp.c (mi_on_resume): Don't try to report
6099 resumed thread it the thread list is empty.
6100
7f6a6314
PM
61012008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
6102
6103 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
6104 completer for set to filename_completer.
680b56ce 6105
7f6a6314
PM
6106 NEWS: Mention it.
6107
711eabed
VP
61082008-07-04 Vladimir Prus <vladimir@codesourcery.com>
6109
6110 Implement -target-attach.
680b56ce 6111 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 6112
db3b9a10
MS
61132008-06-21 Hui Zhu <teawater@gmail.com>
6114
6115 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
6116
dc177b7a
PA
61172008-07-03 Pedro Alves <pedro@codesourcery.com>
6118
6119 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
6120 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
6121
6122 * target.h (struct target_ops): Add to_attach_no_wait member.
6123 (target_attach_no_wait): New.
6124 * target.c (update_current_target): Inherit to_attach_no_wait.
6125
6126 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
6127 target_attach_no_wait runtime check.
6128
6129 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
6130 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
6131 win32_ops.
6132
caac8896
PA
61332008-07-03 Pedro Alves <pedro@codesourcery.com>
6134
6135 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
6136 on debug_displaced being set.
6137
0d254d6f
DJ
61382008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6139
6140 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
6141 directly instead of get_frame_id.
6142
f74c6cad
LM
61432008-06-30 Luis Machado <luisgpm@br.ibm.com>
6144
6145 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
6146 (deal_with_atomic_sequence): Update BC masks.
6147 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
6148 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
6149
395f2fc2
DJ
61502008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6151
6152 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
6153 register, not the previous frame's.
6154
8340a3fb
LM
61552008-06-30 Luis Machado <luisgpm@br.ibm.com>
6156
6157 * source.c (select_source_symtab): Make sure we skip namespace
6158 symtabs when showing cpp source code.
6159
cfefc99a
HPN
61602008-06-30 Hans-Peter Nilsson <hp@axis.com>
6161
6162 * MAINTAINERS (Authorized committers): Fix my email address.
6163
1b98914a
VP
61642008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6165
6166 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
6167 -target-download and -target-select via CLI, so that
6168 the quoting rules are the same as they were (unfortunately)
6169 in all prior gdb releases.
6170 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
6171 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6172 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
6173 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6174 (mi_cmd_execute): Set current_token even for commands
6175 routed via CLI.
6176
94afd7a6
UW
61772008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
6178
6179 * alphafbsd-tdep.c: Update for unwinder changes.
6180 * alpha-linux-tdep.c: Likewise.
6181 * alphanbsd-tdep.c: Likewise.
6182 * alphaobsd-tdep.c: Likewise.
6183 * avr-tdep.c: Likewise.
6184 * cris-tdep.c: Likewise.
6185 * frv-linux-tdep.c: Likewise.
6186 * frv-tdep.c: Likewise.
6187 * h8300-tdep.c: Likewise.
6188 * hppa-linux-tdep.c: Likewise.
6189 * iq2000-tdep.c: Likewise.
6190 * m32c-tdep.c: Likewise.
6191 * m32r-linux-tdep.c: Likewise.
6192 * m32r-tdep.c: Likewise.
6193 * m68hc11-tdep.c: Likewise.
6194 * mep-tdep.c: Likewise.
6195 * mn10300-tdep.c: Likewise.
6196 * mt-tdep.c: Likewise.
6197 * score-tdep.c: Likewise.
6198 * sh64-tdep.c: Likewise.
6199 * sh-tdep.c: Likewise.
6200 * sparc64fbsd-tdep.c: Likewise.
6201 * sparc64nbsd-tdep.c: Likewise.
6202 * sparc64obsd-tdep.c: Likewise.
6203 * v850-tdep.c: Likewise.
6204 * vaxobsd-tdep.c: Likewise.
6205 * vax-tdep.c: Likewise.
6206 * xstormy16-tdep.c: Likewise.
6207
e111d6c9
VP
62082008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6209
6210 * mi/mi-main.c (enum captured_mi_execute_command_actions)
6211 (captured_mi_execute_command_args): Remove.
6212 (captured_mi_execute_command): Cast the closure to mi_parse
6213 pointer, not to captured_mi_execute_command_args, and don't
6214 set the action field thereof.
6215 (mi_execute_command): Pass struct mi_parse, not
6216 captured_mi_execute_command_args to captured_mi_execute_command.
6217 (mi_execute_command): Remove (dead) code for suppressing
6218 printing prompt.
6219
84e46146
PA
62202008-06-28 Pedro Alves <pedro@codesourcery.com>
6221
6222 * linux-nat.c (enum sigchld_state): New.
6223 (linux_nat_async_events_state): Renamed from
6224 linux_nat_async_events_enabled.
6225 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6226 (sigchld_default_action): New.
6227 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6228 unconditionally.
6229 (linux_nat_create_inferior): Set events state to sigchld_default
6230 state.
6231 (linux_nat_resume): Adjust.
6232 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6233 (sigchld_handler): Adjust.
6234 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6235 (get_pending_events): Adjust.
6236 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6237 instead of a boolean.
6238 (linux_nat_async): Adjust.
6239 (_initialize_linux_nat): Capture default SIGCHLD action into
6240 sigchld_default_action.
6241
20874c92
VP
62422008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6243
680b56ce
AS
6244 * breakpoint.c (moribund_locations): New.
6245 (bpstat_stop_status): Process moribund locations.
6246 (update_global_location_list): Add removed
6247 locations to moribund_locations.
6248 (breakpoint_retire_moribund): New.
6249 * breakpoint.h (struct bp_location): New field
6250 events_till_retirement.
6251 (breakpoint_retire_moribund): Declare.
6252 * thread.c (thread_count): New.
6253 * infrun.c (handle_inferior_event): Call
6254 breakpoint_retire_moribund.
6255 * gdbthread.h (thread_count): Declare.
20874c92 6256
cd0b43b1
JM
62572008-06-27 Joseph Myers <joseph@codesourcery.com>
6258
6259 * dfp.c (decimal_convert): Call match_endianness before and after
6260 conversion.
6261
7c0f6dcc
JL
62622008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6263
6264 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6265 unsupported and we fall back to memory_insert_breakpoint, we
6266 use the unmodified requested address.
6267
01c66ae6
JB
62682008-06-27 Joel Brobecker <brobecker@adacore.com>
6269
6270 * dwarf2read.c (read_attribute_value): Issue a complaint when
6271 adjusting size attribute values of 0xffffffff as zero.
6272
7ccc1c74
JM
62732008-06-27 Joseph Myers <joseph@codesourcery.com>
6274
6275 * i386-tdep.c (i386_16_byte_align_p): New.
6276 (i386_push_dummy_call): Determine stack space required for
6277 arguments going forwards allowing for 16-byte alignment, then push
6278 arguments going forwards.
6279
c0a2216e
PA
62802008-06-27 Pedro Alves <pedro@codesourcery.com>
6281
6282 * infrun.c (start_remote): Don't clear thread list here.
6283 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6284 list here.
6285 * remote.c (record_currthread): Upgrade the main thread and its
6286 entry in the thread list if this is the first time we hear about
6287 threads.
6288 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6289 a tid member always alive.
6290 (remote_find_new_threads): Don't update the main thread here.
6291 (remote_start_remote): Clear thread list here. Always add the
6292 main thread.
6293 (extended_remote_attach_1): Add the main thread here.
6294 (extended_remote_mourn_1): Re-add the main thread here.
6295 (extended_remote_create_inferior_1): Add a main thread.
6296
6297 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6298
87b0e16e 62992008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6300
6301 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6302
6303 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6304 globals.
6305 (general_thread, continue_thread): Change type to ptid_t.
6306 (record_currthread): Take a ptid_t parameter instead of an
6307 integer.
6308 (MAGIC_NULL_PID): Delete.
6309 (set_thread): Take a ptid_t parameter and adjust.
6310 (set_general_thread, set_continue_thread): New.
6311 (remote_thread_alive, remote_newthread_step)
6312 (remote_current_thread, remote_find_new_threads)
6313 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6314 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6315 (threadalive_test, remote_pid_to_str)
6316 (remote_get_thread_local_address): Adjust.
6317 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6318 and any_thread_ptid.
6319
3ca64bd3
JK
63202008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6321
6322 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6323 * configure: Regenerated.
6324
28e94949
JB
63252008-06-26 Joel Brobecker <brobecker@adacore.com>
6326
6327 * dwarf2read.c (read_attribute_value): Treat size attribute
6328 values of 0xffffffff as if the attribute value was zero.
6329
8a77dff3
VP
63302008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6331
6332 * linux-nat.c: Add description of overall logic.
6333
d5af19ba
DJ
63342008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6335
6336 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6337 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6338 all dependencies on $(gdb_stdint_h).
6339 (distclean): Do not delete gdb_stdint.h.
6340 * acinclude.m4: Do not use stdint.m4.
6341 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6342 uintptr_t, and gdb_stdint.h.
6343 * defs.h: Include <stdint.h>.
6344 * gdb_thread_db.h: Assume stdint.h is already included.
6345 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6346 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6347 include gdb_stdint.h.
6348 * configure, config.in: Regenerate.
6349
00fbcec4
JM
63502008-06-26 Joseph Myers <joseph@codesourcery.com>
6351
6352 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6353 decimal floating-point values in GPRs for soft-float.
6354 (do_ppc_sysv_return_value): Handle returning decimal
6355 floating-point values in GPRs for soft-float.
6356
d5086790
VP
63572008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6358
6359 * target.c (target_read_until_error): New.
680b56ce
AS
6360 * target.h (target_read_until_error): Declare.
6361 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6362 target_read_until_error.
d5086790 6363
fe9441f6
JK
63642008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6365
6366 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6367 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6368 after the DECFLOAT detection to fix a memory leak. Remove the
6369 redundant NUM initialization. Protect the DECFLOAT detection memory
6370 access before the P block. Restore the P memory content for the
6371 DECFLOAT detection.
6372
ce8f13f8
VP
63732008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6374
6375 Kill the return value for all MI command functions.
6376 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6377 (mi_cmd_argv_ftype): Change return type to void.
6378
6379 * mi/mi-main.c: Adjust all function that implement
6380 MI commands to return nothing.
6381 (struct captured_mi_execute_command_actions):
6382 Remove the rc field.
6383 (mi_cmd_execute): Return nothing.
6384 (mi_execute_async_cli_command): Return nothing.
6385 (mi_cmd_exec_interrupt): Don't print ^done here.
6386 (mi_cmd_target_select): Don't print ^connected here.
6387 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6388 Special-case -target-select and output ^connected, not ^done.
6389
6390 * mi/mi-cmd-break.c: Adjust.
6391 * mi/mi-cmd-disas.c: Adjust.
6392 * mi/mi-cmd-env.c: Adjust.
6393 * mi/mi-cmd-file.c: Adjust.
6394 * mi/mi-cmd-stack.c: Adjust.
6395 * mi/mi-cmd-target.c: Adjust.
6396 * mi/mi-cmd-var.c: Adjust.
6397 * mi/mi-interp.c: Adjust.
6398 * mi/mi-symbol-cmds.c: Adjust.
6399
a2840c35
VP
64002008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6401
6402 Emit ^running via observer.
6403 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6404 ^running here.
6405 (mi_on_resume): Print ^running if not previously output.
6406 * mi/mi-main.c (running_result_record_printed): New.
6407 (captured_mi_execute_command): Reset
6408 running_result_record_printed. Use running_result_record_printed
6409 to decide if we should skip ^done.
6410 (mi_execute_async_cli_command): Don't print ^running here.
6411 * mi/mi-main.h (current_token, running_result_record_printed):
6412 Declare.
a2840c35 6413
1f41b062
MS
64142008-06-24 Michael Snyder <msnyder@specifix.com>
6415
6416 * infrun.c (_initialize_infrun): White space and typo fix.
6417
eff8332b
CF
64182008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6419
6420 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6421 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6422 when first loading DLL with "dll" command.
6423
e50ce6de 64242008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6425
6426 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6427
e50ce6de 64282008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6429
6430 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6431
59ddf1e7
JB
64322008-06-18 Joel Brobecker <brobecker@adacore.com>
6433
680b56ce
AS
6434 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6435 the target cannot run.
59ddf1e7
JB
6436
64372008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6438
6439 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6440 we're attaching to a running process.
6441
e50ce6de 64422008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6443
6444 * win32-nat.c (handle_load_dll): Give dll name and load address
6445 if debug_events is on.
6446 (handle_unload_dll): Likewise.
6447
8f6a8e84
VP
64482008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6449
6450 Don't suppress *running when doing finish.
680b56ce
AS
6451 * infcall.c (call_function_by_hand): Set both
6452 suppress_resume_observer and suppress_stop_observer.
6453 * infcmd.c (suppress_run_stop_observers): Split into...
6454 (suppress_resume_observer, suppress_stop_observer): ...those.
6455 (finish_command_continuation): Clear suppress_stop_observer.
6456 (finish_command): Set suppress_stop_observer.
6457 * inferior.h (suppress_run_stop_observers): Split into...
6458 (suppress_resume_observer, suppress_stop_observer): ...those.
6459 * infrun.c (normal_stop): Check for suppress_stop_observer.
6460 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6461
4309257c
PM
64622008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6463 Pierre Muller <muller@ics.u-strasbg.fr>
6464
6465 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6466 * gdbarch.h, gdbarch.c: Regenerate.
6467 * i386-tdep.h (i386_skip_main_prologue): Declare.
6468 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6469 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6470 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6471 * symtab.c (find_function_start_sal): When pc points at the "main"
6472 function, call gdbarch_skip_main_prologue.
6473
a4e2ee12
DJ
64742008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6475
6476 * value.c (value_primitive_field): Fetch lazy register values.
6477
060871df
PA
64782008-06-11 Pedro Alves <pedro@codesourcery.com>
6479
6480 * NEWS: Mention support removal of undocumented S AA p PID stop
6481 reply packet.
6482
6483 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6484
336de56d
SS
64852008-06-10 Stan Shebs <stan@codesourcery.com>
6486
6487 * MAINTAINERS: Update my affiliation and address.
6488
7949220d
AS
64892008-06-10 Andreas Schwab <schwab@suse.de>
6490
6491 * top.c (print_gdb_version): Don't print final newline.
6492
e1ac3328
VP
64932008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6494
6495 Implement *running.
680b56ce
AS
6496 * Makefile.in: Update dependencies.
6497 * gdbthread.h (struct thread_info): New field
6498 running_.
6499 (set_running, is_running): New.
6500 * thread.c (set_running, is_running): New.
6501 * inferior.h (suppress_normal_stop_observer): Rename to...
6502 (suppress_run_stop_observers): ..this.
6503 * infcmd.c (suppress_normal_stop_observer): Rename to...
6504 (suppress_run_stop_observers): ..this.
6505 (finish_command_continuation, finish_command): Adjust.
6506 * infcall.c (call_function_by_hand): Adjust.
6507 * infrun.c (normal_stop): Call set_running.
6508 * target.c (target_resume): New. Call set_running.
6509 * target.h (target_resume): Convert from macro to
6510 a function.
6511
6512 * mi/mi-interp.c (mi_on_resume): New.
6513 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6514
f7f9a841
VP
65152008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6516
6517 Use observers to report stop events in MI.
680b56ce
AS
6518 * mi/mi-interp.c (mi_on_normal_stop): New.
6519 (mi_interpreter_init): Register mi_on_normal_stop.
6520 (mi_interpreter_exec_continuation): Remove.
6521 (mi_cmd_interpreter_exec): Don't register the above.
6522 * mi/mi-main.c (captured_mi_execute_command): Don't care
6523 about sync_execution.
6524 (mi_execute_async_cli_command): Don't install continuation. Don't
6525 print *stopped.
6526 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6527
f5871ec0
VP
65282008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6529
6530 Suppress normal stop observer when it's problematic.
680b56ce
AS
6531 * inferior.h (suppress_normal_stop_observer): New.
6532 * infcall.c (call_function_by_hand): Disable stop events when
6533 doing function calls.
6534 * infmcd.c (suppress_normal_stop_observer): New.
6535 (finish_command_continuation): Call normal_stop observer
6536 explicitly.
6537 (finish_command): Disable stop events inside proceed.
6538 * infrun.c (normal_stop): Don't call normal stop observer if
6539 suppressed of if multi-step is in progress.
f5871ec0 6540
3d3191a6
VP
65412008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6542
6543 Remove stale code.
680b56ce
AS
6544 * infrun.c (finish_command): Don't pass cleanup
6545 to continuation.
6546 (finish_command_continuation): Don't grab cleanup from
6547 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6548
0b080f59
VP
65492008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6550
6551 Introduce common cleanup for restoring integers.
680b56ce
AS
6552 * defs.h (make_cleanup_restore_integer): New declaration.
6553 (struct cleanup): New field free_arg.
6554 (make_my_cleanup_2): New.
6555 * utils.c (restore_integer_closure, restore_integer)
6556 (make_cleanup_restore_integer): New.
6557 (make_my_cleanup): Initialize the free_arg field and
6558 renamed to make_my_cleanup_2.
6559 (do_my_cleanups): Call free_arg.
6560 (discard_cleanups): Call free_arg.
6561 * breakpoint.c (restore_always_inserted_mode): Remove.
6562 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6563
b4f62b57
DE
65642008-06-09 Doug Evans <dje@google.com>
6565
6566 * remote.c (remote_wait): Include beginning of malformed packet
6567 in error output.
6568
37cd5d19
TT
65692008-06-09 Tom Tromey <tromey@redhat.com>
6570
6571 * completer.c (complete_line): Don't special-case
6572 expression_completer.
6573 (expression_completer): Only pass last word to
6574 location_completer.
6575 * c-exp.y (yylex): Check 'token', not 'operator'.
6576
3526781e
DJ
65772008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6578
6579 * configure.ac (build_warnings): Add -Wno-format for mingw.
6580 * configure: Regenerated.
6581
d001be7a
DJ
65822008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6583
6584 * NEWS: Make indentation consistent. Move exec tracing entry out
6585 of remote packet list.
6586
65d12d83
TT
65872008-06-06 Tom Tromey <tromey@redhat.com>
6588
6589 * value.h (evaluate_subexpression_type, extract_field_op):
6590 Declare.
6591 * printcmd.c (_initialize_printcmd): Use expression_completer for
6592 'p', 'inspect', 'call'.
6593 * parser-defs.h (parse_field_expression): Declare.
6594 * parse.c: Include exceptions.h.
6595 (in_parse_field, expout_last_struct): New globals.
6596 (mark_struct_expression): New function.
6597 (prefixify_expression): Return int.
6598 (prefixify_subexp): Return int. Use expout_last_struct.
6599 (parse_exp_1): Update.
6600 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6601 in_parse_field.
6602 (parse_field_expression): New function.
6603 * expression.h (parse_field_expression): Declare.
6604 (in_parse_field): Likewise.
6605 * eval.c (evaluate_subexpression_type): New function.
6606 (extract_field_op): Likewise.
6607 * completer.h (expression_completer): Declare.
6608 * completer.c (expression_completer): New function.
6609 (count_struct_fields, add_struct_fields): New functions.
6610 * c-exp.y (yyparse): Redefine.
6611 (COMPLETE): New token.
6612 (exp): New productions.
6613 (saw_name_at_eof, last_was_structop): New globals.
6614 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6615 (c_parse): New function.
6616 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6617 for watch, awatch, and rwatch.
6618 * Makefile.in (parse.o): Depend on exceptions_h.
6619
fed27633
PP
66202008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6621
6622 PR gdb/1147
6623 * gdb/valopts.c (find_overload_match): Handle references
6624 to pointers.
6625
aced2898
PH
66262008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6627
6628 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6629 account the bitsize of the 'from' operand.
6630
a2b87ed1
PA
66312008-06-06 Pedro Alves <pedro@codesourcery.com>
6632
6633 * annotate.h (annotate_thread_changed): Declare.
6634
3d6d0b9d
NR
66352008-06-06 Nick Roberts <nickrob@snap.net.nz>
6636
6637 * annotate.c (annotate_thread_changed): New function.
6638 * thread.c (thread_command) : Use it.
6639 * infrun.c (normal_stop): Use it.
6640
c16158bc 66412008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6642 Nathan Sidwell <nathan@codesourcery.com>
6643 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6644
6645 * acinclude.m4: Include ../config/acx.m4.
6646 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6647 * configure, config.in: Regenerate.
6648 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6649 address.
6650 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6651
75c99385
PA
66522008-06-05 Pedro Alves <pedro@codesourcery.com>
6653
6654 Replace 'target async' by 'maintenance set remote-async' and
6655 'target remote' combination.
6656
6657 * remote.c (remote_async_wait): Merge into remote_wait, and
6658 remove.
6659 (remote_async_permitted, remote_async_permitted_set): New
6660 variables.
6661 (set_maintenance_remote_async_permitted)
6662 (show_maintenance_remote_async_permitted): New functions.
6663 (remote_async_ops, extended_async_remote_ops): Delete.
6664 (remote_async_open, extended_remote_async_open): Delete.
6665 (remote_open_1): Drop async_p parameter. Update callers. Replace
6666 async_p with remote_async_permitted checks.
6667 (extended_async_remote_attach): Delete.
6668 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6669 (remote_async_terminal_inferior): Rename to...
6670 (remote_terminal_inferior): ... this, and add
6671 remote_async_termitted check.
6672 (remote_async_terminal_ours): Rename to...
6673 (remote_terminal_ours): ... this, and add remote_async_termitted
6674 check.
6675 (remote_wait, remote_async_wait): Merge and leave remote_wait
6676 only.
6677 (remote_kill, remote_async_kill): Merge and leave remote_kill
6678 only.
6679 (remote_async_mourn, extended_async_remote_mourn): Delete.
6680 (extended_remote_create_inferior_1): Drop async_p parameter.
6681 Update callers. Always use extended_remote_ops.
6682 (extended_remote_async_create_inferior): Delete.
6683 (remote_return_zero): Delete.
6684 (init_remote_ops): Register remote_can_async_p, remote_async,
6685 remote_async_mask, remote_terminal_inferior and
6686 remote_terminal_ours.
6687 (remote_can_async_p, remote_is_async_p): Check for
6688 remote_async_permitted.
6689 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6690 (set_remote_cmd): Don't add async and extended-async targets.
6691 (_initialize_remote): Add set/show remote-async maintenance
6692 commands.
6693
cf30943b
PA
66942008-06-05 Pedro Alves <pedro@codesourcery.com>
6695
6696 * remote.c (kill_kludge): Delete.
6697 (remote_wait, remote_async_wait): Don't set it.
6698 (remote_kill, remote_async_kill): Don't do anything with it.
6699
49fd4a42
PA
67002008-06-05 Pedro Alves <pedro@codesourcery.com>
6701
6702 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6703
2e618c13
AR
67042008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6705
6706 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6707 (deprecated_bcache_added): New function name. Body of function
6708 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6709 * bcache.h (deprecated_bcache_added): New function.
6710 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6711 work from add_psymbol_to_list - initialises partial symbol and stashes
6712 it in objfile's cache.
680b56ce 6713 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6714 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6715 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6716 here. If adding to global list, do not duplicate partial symbols in the
6717 partial symtab.
6718
c0b37c48
AR
67192008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6720
6721 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6722 'exception caught|thrown' message.
6723
1e3a102a
JK
67242008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 * Makefile.in: Update dependencies.
6727 * dwarf2expr.c: New include "gdb_assert.h".
6728 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6729 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6730 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6731 Increase/decrease RECURSION_DEPTH around the function.
6732
8d385431
DJ
67332008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6734
6735 * remote.c (get_offsets): Handle a single segment.
6736 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6737 than segments.
6738
93a57060
DJ
67392008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6740
6741 * solib-svr4.c (struct lm_info): Add lm_addr.
6742 (main_lm_addr): New.
6743 (svr4_default_sos): Set lm_addr.
6744 (svr4_current_sos): Set lm_addr and main_lm_addr.
6745 (svr4_fetch_objfile_link_map): Rewrite.
6746 (svr4_clear_solib): Clear main_lm_addr.
6747
609ba780 67482008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6749 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6750
6751 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6752 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6753
c95f5026
JB
67542008-06-02 Roman Zippel <zippel@linux-m68k.org>
6755
6756 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6757
e4d8bc08
JB
67582008-06-02 Roman Zippel <zippel@linux-m68k.org>
6759
6760 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6761
40adab56
JB
67622008-06-01 Joel Brobecker <brobecker@adacore.com>
6763
6764 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6765 treat pointers in data space as function descriptors if the
6766 target address is also in the data space.
6767
bfd66dd9
JB
67682008-05-30 Joel Brobecker <brobecker@adacore.com>
6769
6770 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6771 the trad-frame register value for the SP register.
6772
7ea566be
MK
67732008-05-29 Mark Kettenis <kettenis@gnu.org>
6774
6775 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6776
fcac911a
JB
67772008-05-28 Joel Brobecker <brobecker@adacore.com>
6778
6779 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6780 that identifies function descriptors outside of the .opd section.
6781
ade92717
AR
67822008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6783
6784 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6785 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6786 'bkptno'.
6787 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6788 catchpoints.
6789 (handle_gnu_v3_exceptions): Use tempflag.
6790
f7f9ae2c
VP
67912008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6792
6793 Refactor varobj_update interface.
680b56ce
AS
6794 * varobj.c (varobj_update): Report changes as vector. Also
6795 return not just a list of varobj, but a list of special structures
6796 that tell what exactly has changed.
6797 * varobj.h (enum varobj_update_error): Rename to
6798 varobj_scope_status.
6799 (struct varobj_update_result_t): New.
6800 (varobj_update): Adjust prototype.
6801 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6802
ea56f9c2
VP
68032008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6804
6805 * varobj.c (varobj_update): Fix comment typo.
6806 Fix indentation.
6807
c7efd0b9
JB
68082008-05-26 Joel Brobecker <brobecker@adacore.com>
6809
6810 Set the symtab field of symbols read from ECOFF debugging entries.
6811 * mdebugread.c (add_symbol): Add new parameter symtab.
6812 (parse_symbol): Update calls to add_symbol throughout.
6813
2a2d4dc3
AS
68142008-05-27 Andreas Schwab <schwab@suse.de>
6815
6816 * symtab.h (enum address_class): Remove LOC_REGPARM and
6817 LOC_COMPUTED_ARG.
6818 (struct symbol): Add is_argument.
6819 (SYMBOL_IS_ARGUMENT): Define.
6820
6821 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6822 * buildsym.c (finish_block): Likewise.
6823 * stack.c (print_frame_args, print_block_frame_locals)
6824 (print_frame_arg_vars): Likewise.
6825 * symtab.c (lookup_block_symbol): Likewise.
6826 * tracepoint.c (add_local_symbols): Likewise.
6827 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6828
6829 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6830 * dwarf2read.c (new_symbol): Likewise.
6831 * mdebugread.c (parse_symbol): Likewise.
6832 * stabsread.c (define_symbol): Likewise.
6833
6834 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6835 and LOC_COMPUTED_ARG.
6836 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6837 * ax-gdb.c (gen_var_ref): Likewise.
6838 * eval.c (evaluate_subexp_for_address): Likewise.
6839 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6840 * m2-exp.y (yylex): Likewise.
6841 * printcmd.c (address_info): Likewise.
6842 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6843 * tracepoint.c (collect_symbol, scope_info): Likewise.
6844
17ea7499
CES
68452008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6846
6847 * gdbarch.sh: Added new gdbarch struct
6848 core_regset_sections.
6849 * gdbarch.c: Refreshed.
6850 * gdbarch.h: Refreshed.
6851 * regset.h (core_regset_section): Declared.
6852 * linux-nat.c (linux_nat_do_thread_registers): Added
6853 support for the new gdbarch struct core_regset_sections.
6854 * utils.c (host_address_to_string): New function.
6855 * defs.h (host_address_to_string): New prototype.
6856 * i386-linux-tdep.c (i386_regset_rections): New register
6857 sections list for i386.
6858 (i386_linux_init_abi): Initialized new gdbarch struct
6859 core_regset_sections.
6860 * Makefile.in: Updated to reflect dependency changes.
6861 * ppc-linux-tdep.c (ppc_regset_sections): Register
6862 sections list for ppc.
6863 (ppc_linux_init_abi): Initialized new gdbarch struct
6864 core_regset_sections
6865
c4fc331b
AS
68662008-05-24 Andreas Schwab <schwab@suse.de>
6867
6868 * linespec.c (decode_objc): Save current language around call to
6869 get_selected_block.
6870
e936309c
JB
68712008-05-23 Joel Brobecker <brobecker@adacore.com>
6872
6873 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6874 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6875 Return the proper bound value if the array index type is an
6876 enumerated type. Compute the high bound if requested.
6877 (val_print_array_elements): Handle the case when the array
6878 element has a null size.
6879 * ada-valprint.c (print_optional_low_bound): Add handling
6880 for empty arrays or arrays of zero-size elements.
6881 (ada_val_print_array): New function, extracted out from
6882 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6883 handle empty arrays and arrays of zero-size elements.
6884 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6885 code by call to ada_val_print_array.
6886 (ada_value_print): Remove handling of null array. The handling
6887 was incomplete and is now better handled by ada_val_print_array.
6888
50ee7535
MD
68892008-05-23 Markus Deuling <deuling@de.ibm.com>
6890
6891 * annotate.c (annotate_source, annotate_frame_begin): Replace
6892 deprecated_print_address_numeric with paddress.
6893 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6894 * tui/tui-stack.c (tui_make_status_line): Likewise.
6895
6896 * defs.h (deprecated_print_address_numeric): Remove.
6897 * printcmd.c (deprecated_print_address_numeric): Remove.
6898 * maint.c (maint_print_section_info): Fix comment.
6899
d44e8473
MD
69002008-05-23 Markus Deuling <deuling@de.ibm.com>
6901
6902 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6903 print_binary_chars, print_char_chars): Add byte_order parameter and
6904 replace gdbarch_byte_order.
6905 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6906 expressions and remove them. Remove unused TWO_TO_FOURTH.
6907 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6908 endianness. Update call to print_hex_chars.
6909 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6910 print_binary_chars, print_char_chars): Add byte_order parameter.
6911 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6912 get at the endianness. Update print_*_char calls to use byte_order.
6913
10f4ecb8
UW
69142008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6915
6916 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6917 instead of a union.
6918 (SYMBOL_LOCATION_BATON): Update.
6919
c3b22bd0
UW
69202008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6921
6922 * symtab.h (enum address_class): Remove LOC_BASEREG and
6923 LOC_BASEREG_ARG.
6924 (struct symbol): Remove "basereg" member of "aux_value" union.
6925 (SYMBOL_BASEREG): Remove.
6926
6927 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6928 or LOC_BASEREG_ARG.
6929 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6930 (ada_add_block_symbols): Likewise.
6931 * ax-gdb.c (gen_var_ref): Likewise.
6932 * buildsym.c (finish_block): Likewise.
6933 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6934 * m2-exp.y (yylex): Likewise.
6935 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6936 * printcmd.c (address_info): Likewise.
6937 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6938 (print_frame_arg_vars): Likewise.
6939 * symmisc.c (print_symbol): Likewise.
6940 * symtab.c (lookup_block_symbol): Likewise.
6941 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6942 (scope_info): Likewise.
6943
aa59ba6b
UW
69442008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6945
6946 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6947
6948 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6949 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6950 (ada_add_block_symbols): Likewise.
6951 * ax-gdb.c (gen_var_ref): Likewise.
6952 * buildsyms.c (finish_block): Likewise.
6953 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6954 * m2-exp.y (yylex): Likewise.
6955 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6956 * printcmd.c (address_info): Likewise.
6957 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6958 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6959 * symtab.c (lookup_block_symbol): Likewise.
6960 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6961 (scope_info): Likewise.
6962
0bb4e8c4
UW
69632008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6964
6965 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6966 LOC_HP_THREAD_LOCAL_STATIC.
6967
6968 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6969 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6970 (read_var_value): Likewise.
6971 * buildsym.c (finish_block): Likewise.
6972 * objfiles.c (objfile_relocate): Likewise.
6973 * printcmd.c (address_info): Likewise.
6974 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6975 * tracepoint.c (scope_info): Likewise.
6976
9f61f19b
MG
69772008-05-21 Markus Deuling <deuling@de.ibm.com>
6978 Maxim Grigoriev <maxim2405@gmail.com>
6979
6980 * xtensa-tdep.c (xtensa_read_register): Remove.
6981 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6982 argument litbase to call0_frame_cache().
6983 (call0_track_op, call0_analyze_prologue)
6984 (call0_frame_cache): Use extra argument litbase.
6985
0e479716
JB
69862008-05-21 Joel Brobecker <brobecker@adacore.com>
6987
6988 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6989
214be669
UW
69902008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6991
6992 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6993
0cd9ab92
UW
69942008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6995
6996 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6997 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6998 struct trad_frame_saved_reg *.
6999 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
7000 trad_frame_alloc_saved_regs. Update accesses. Record previous
7001 value of SP as being vfp.
7002 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
7003 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
7004
f52cb1b8
MD
70052008-05-21 Markus Deuling <deuling@de.ibm.com>
7006
7007 * score-tdep.c (score_print_insn): Get the current endianess from
7008 disassemble_info instead of gdbarch_byte_order.
7009
8fa75a5d
PA
70102008-05-21 Pedro Alves <pedro@codesourcery.com>
7011
7012 * frame.c (get_prev_frame_1): Build frame id before setting
7013 this_frame->prev_p, not after.
7014
e8e48118
NR
70152008-05-21 Nick Roberts <nickrob@snap.net.nz>
7016
7017 * annotate.c (annotate_new_thread): New function for new-thread
7018 annotation.
7019 * annotate.h: (annotate_new_thread): New extern.
7020 * thread.c (add_thread_with_info): Use it.
7021 * Makefile.in (thread.o): Add dependency on annotate.h.
7022
c57918b2
JB
70232008-05-20 Joel Brobecker <brobecker@adacore.com>
7024
7025 * win32-nat.c (win32_wait): Block the control-c event while
7026 waiting for a debug event.
7027
6c9353d3
PA
70282008-05-19 Pedro Alves <pedro@codesourcery.com>
7029
7030 * symtab.h (lookup_symbol_in_language): Update comment.
7031 * symtab.c (lookup_symbol_aux_block): Update comment.
7032 * ada-lang.c (ada_lookup_symbol_list): Update comment.
7033
2570f2b7
UW
70342008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7035
7036 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
7037 (lookup_symbol): Likewise.
7038 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
7039 (lookup_symbol): Likewise.
7040 (search_symbols): Update.
7041
7042 * linespec.c (find_methods, collect_methods): Update.
7043 (add_matching_methods, add_constructors): Update.
7044 (decode_compound, decode_dollar, decode_variable): Update.
7045 (lookup_prefix_sym): Update.
7046
7047 (symbol_found): Remove SYM_SYMTAB parameter.
7048 Use SYMBOL_SYMTAB (sym) instead.
7049
7050 * gdbtypes.c (lookup_typename): Update.
7051 (lookup_struct, lookup_union, lookup_enum): Update.
7052 (lookup_template_type): Update.
7053 (check_typedef): Update.
7054 * language.c (lang_bool_type): Update.
7055 * mdebugread.c (parse_procedure): Update.
7056 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7057 * parse.c (write_dollar_variable): Update.
7058 * printcmd.c (address_info): Update.
7059 * source.c (select_source_symtab): Update.
7060 * stack.c (print_frame_args, print_frame_arg_vars): Update.
7061 * valops.c (find_function_in_inferior): Update.
7062 (value_struct_elt_for_reference): Update.
7063 * value.c (value_static_field, value_fn_field): Update.
7064
7065 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7066 * arm-tdep.c (arm_skip_prologue): Update.
7067 * mt-tdep.c (mt_skip_prologue): Update.
7068 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
7069
7070 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
7071 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
7072 (add_defn_to_vec): Likewise.
7073 (ada_add_block_symbols): Likewise.
7074 (lookup_cached_symbol, cache_symbol): Likewise.
7075 (standard_lookup): Update.
7076 (ada_lookup_symbol_list): Update.
7077
7078 * c-valprint.c (c_val_print): Update.
7079 * cp-support.c (cp_lookup_rtti_type): Update.
7080 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
7081 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
7082 * p-valprint.c (pascal_val_print): Update.
7083 * scm-lang.c (scm_lookup_name): Update.
7084
7085 * c-exp.y: Update.
7086 * f-exp.y: Update.
7087 * jv-exp.y: Update.
7088 * m2-exp.y: Update.
7089 * objc-exp.y: Update.
7090 * p-exp.y: Update.
7091
21b556f4
UW
70922008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7093
7094 * language.h (struct language_defn): Remove SYMTAB parameter from
7095 la_lookup_symbol_nonlocal callback function pointer.
7096
7097 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7098 (ada_lookup_encoded_symbol): Likewise.
7099 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7100 Always call fixup_symbol_section.
7101 (ada_lookup_symbol): Remove SYMTAB parameter.
7102 (ada_lookup_symbol_nonlocal): Likewise.
7103 * ada-exp.y (write_object_renaming): Update.
7104 (find_primitive_type): Likewise.
7105
7106 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7107 (cp_lookup_symbol_namespace): Likewise.
7108 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
7109 (lookup_symbol_file): Likewise.
7110 (lookup_possible_namespace_symbol): Likewise.
7111 (cp_lookup_symbol_nonlocal): Likewise.
7112 (cp_lookup_symbol_namespace): Likewise.
7113 (cp_lookup_nested_type): Update.
7114
7115 * scm-valprint.c (scm_inferior_print): Update.
7116 * valops.c (value_maybe_namespace_elt): Update.
7117
7118 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
7119 lookup_lib_global_symbol callback function pointer.
7120 (solib_global_lookup): Remove SYMTAB parameter.
7121 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
7122 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7123
7124 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7125 (lookup_symbol_static): Likewise.
7126 (lookup_symbol_global): Likewise.
7127 (lookup_symbol_aux_block): Likewise.
7128 (lookup_global_symbol_from_objfile): Likewise.
7129 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
7130 (lookup_symbol_aux_local): Likewise.
7131 (lookup_symbol_aux_block): Likewise.
7132 (lookup_symbol_aux_symtabs): Likewise.
7133 (lookup_symbol_aux_psymtabs): Likewise.
7134 (lookup_global_symbol_from_objfile): Likewise.
7135 (basic_lookup_symbol_nonlocal): Likewise.
7136 (lookup_symbol_static): Likewise.
7137 (lookup_symbol_global): Likewise.
7138
7139 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
7140
39237dd1
PA
71412008-05-17 Pedro Alves <pedro@codesourcery.com>
7142
7143 * remote.c (init_extended_remote_ops): Fix typo.
7144
7c0d47a5
PA
71452008-05-16 Pedro Alves <pedro@codesourcery.com>
7146
7147 * NEWS: Mention new DICOS x86 target configuration.
7148
907fc202
UW
71492008-05-16 Pedro Alves <pedro@codesourcery.com>
7150 Ulrich Weigand <uweigand@de.ibm.com>
7151
7152 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
7153 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
7154
7155 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
7156 use it instead of ginfo->value.address. Look up minimal symbol by
7157 address and name. Assume OBJFILE is non-NULL.
7158 (fixup_symbol_section): Ensure we always have an objfile to look
7159 into. Extract and pass to fixup_section the symbol's address that
7160 will match the minimal symbol's address.
7161 (fixup_psymbol_section): Likewise.
7162
7163 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
7164 overlays and the addrmap returned the wrong section.
7165
7166 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
7167 calling fixup_symbol_section.
7168
42848c96
UW
71692008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7170
7171 * minsyms.c: Include "target.h".
7172 (find_solib_trampoline_target): Handle minimal symbols pointing
7173 to function descriptors as well.
7174 * Makefile.in (minsyms.o): Update dependencies.
7175
7176 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
7177 (ppc64_standard_linkage1): ... this. Fix optional instructions.
7178 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
7179 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
7180 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
7181 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
7182 (ppc64_standard_linkage_target): Rename to ...
7183 (ppc64_standard_linkage1_target): ... this.
7184 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
7185 (ppc64_skip_trampoline_code): Support three variants of standard
7186 linkage stubs. Call find_solib_trampoline_target to handle
7187 glink stubs.
7188
74d1f063
UW
71892008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7190
7191 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
7192 ppc64_sysv_abi_adjust_breakpoint_address.
7193 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7194 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7195
8526f328
UW
71962008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7197
7198 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
7199 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
7200 of ppc_linux_skip_trampoline_code.
7201
ba2b1c56
DJ
72022008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
7203
7204 * gdbarch.sh: Delete dwarf_reg_to_regnum.
7205 * gdbarch.c, gdbarch.h: Regenerated.
7206 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
7207 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
7208 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
7209
4fdebdd0
PA
72102008-05-15 Pedro Alves <pedro@codesourcery.com>
7211
7212 * linux-nat.c (trap_ptid): Delete.
7213 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
7214 Adjust.
7215 * linux-thread-db.c (thread_db_wait): Adjust.
7216
bc882aa9
JB
72172008-05-15 Joel Brobecker <brobecker@adacore.com>
7218
7219 * linespec.c (decode_line_1): Fix a couple of comments.
7220
83b94be5
AM
72212008-05-15 Alan Modra <amodra@bigpond.net.au>
7222
7223 * dbxread.c: Formatting.
7224 (INTERNALIZE_SYMBOL): Init n_other.
7225 (set_namestring): Take pointer to nlist arg rather than struct
7226 copy. Update all callers.
7227
87669130
AS
72282008-05-15 Andreas Schwab <schwab@suse.de>
7229
7230 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7231 (dwarf2read.o): Add $(addrmap_h).
7232
00d5f93a
UW
72332008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7234
7235 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7236 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7237 to handle ppc32 PLT entries.
7238 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7239 only on ppc64.
7240
2eaf8d2a
DJ
72412008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7242
7243 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7244 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7245 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7246 (lookup_minimal_symbol_by_pc_section): Use
7247 lookup_minimal_symbol_by_pc_section_1.
7248 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7249
20c62566
JB
72502008-05-13 Joel Brobecker <brobecker@adacore.com>
7251
7252 * findcmd.c: Add #include "gdb_stdint.h".
7253 * Makefile.in (findcmd.o): Update dependencies.
7254
87a7da84
DM
72552008-05-11 David S. Miller <davem@davemloft.net>
7256
de0c3d9d
DM
7257 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7258 long double size override, Linux does use 128-bit now.
7259
e8467b5a
DM
7260 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7261 (sparc_linux_write_pc): New function.
7262 (sparc32_linux_init_abi): Register it.
7263 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7264 (sparc64_linux_write_pc): New function.
7265 (sparc64_linux_init_abi): Register it.
7266
87a7da84
DM
7267 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7268 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7269
8a4c2d24
UW
72702008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7271
7272 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7273 and info.tdep_info before calling gdbarch_init_osabi.
7274
003f3813
JB
72752008-05-09 Joel Brobecker <brobecker@adacore.com>
7276
7277 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7278 the type of the right hand side of the assignment to the type
7279 of the left hand side if the left hand side is a convenience
7280 variable.
7281
7ae0e2a2
UW
72822008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7283
7284 * NEWS: Mention gdbserver bi-arch capability.
7285
08388c79
DE
72862008-05-09 Doug Evans <dje@google.com>
7287
7288 New "find" command.
7289 * NEWS: Document find command and qSearch:memory packet.
7290 * Makefile.in (SFILES): Add findcmd.c.
7291 (COMMON_OBJS): Add findcmd.o.
7292 (findcmd.o): New rule.
7293 * findcmd.c: New file.
7294 * target.h (target_ops): New member to_search_memory.
7295 (simple_search_memory): Declare.
7296 (target_search_memory): Declare.
7297 * target.c (simple_search_memory): New fn.
7298 (target_search_memory): New fn.
7299 * remote.c (PACKET_qSearch_memory): New packet kind.
7300 (remote_search_memory): New fn.
7301 (init_remote_ops): Init to_search_memory.
7302 (init_extended_remote_ops): Ditto.
7303 (_initialize_remote): Add qSearch:memory packet config command.
7304
11c68c47
EZ
73052008-05-09 Eli Zaretskii <eliz@gnu.org>
7306
7307 * thread.c (_initialize_thread): Don't use commas and periods in
7308 first line of doc string of "set/show print thread-events".
7309
6834c9bb
JB
73102008-05-08 Joel Brobecker <brobecker@adacore.com>
7311
7312 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7313 Update for unwinder changes.
7314
86c31399
JB
73152008-05-08 Joel Brobecker <brobecker@adacore.com>
7316
7317 * frame.c (get_frame_base_address, get_frame_locals_address)
7318 (get_frame_args_address): Pass the correct frame when calling
7319 frame_base_find_by_frame.
7320
96ef3384
UW
73212008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7322
7323 * remote.c (extended_remote_attach_1): Call target_find_description.
7324
45280a52
DJ
73252008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7326
7327 * remote.c (extended_remote_create_inferior_1): Clean up
7328 before marking the target running.
7329
227e86ad
JB
73302008-05-08 Joel Brobecker <brobecker@adacore.com>
7331
7332 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7333 changes.
7334
236369e7
JB
73352008-05-07 Joel Brobecker <brobecker@adacore.com>
7336
7337 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7338 sparc64-sol2-tdep.c: Update for unwinder changes.
7339
de237128
DJ
73402008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7341
7342 * cp-support.c (mangled_name_to_comp): Initialize storage.
7343 (unqualified_name_from_comp): Likewise.
7344
4fff2411
JZ
73452008-05-07 Jie Zhang <jie.zhang@analog.com>
7346
7347 * remote.c (remote_insert_breakpoint): Call get_remote_state
7348 after gdbarch_breakpoint_from_pc is called.
7349 (remote_insert_hw_breakpoint): Likewise.
7350
d8ca156b
JB
73512008-05-06 Joel Brobecker <brobecker@adacore.com>
7352
7353 * valprint.c (val_print): Add new language parameter and use it
7354 instead of using the current_language. Update calls to val_print
7355 throughout.
7356 (common_val_print): Add new langauge parameter and pass it to
7357 val_print.
7358 * value.h (struct language_defn): Add opaque declaration.
7359 (val_print, common_val_print): Update declarations.
7360 * stack.c (print_frame_args): Update call to common_val_print
7361 using the appropriate language.
7362 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7363 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7364 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7365 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7366 #include "language.h" if necessary.
7367 Update calls to val_print and common_val_print.
7368 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7369 Update dependencies.
7370
b1e6fd19
JB
73712008-05-06 Joel Brobecker <brobecker@adacore.com>
7372
7373 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7374 pointing inside a non-executable section as function descriptors.
7375
02b19d84
PA
73762008-05-06 Pedro Alves <pedro@codesourcery.com>
7377
7378 * inf-loop.c (inferior_event_handler): Run all continuations and
7379 print any language change before running the breakpoint commands.
7380
15c1e57f
JB
73812008-05-06 Joel Brobecker <brobecker@adacore.com>
7382
7383 * frame-unwind.c (frame_unwind_got_bytes): New function.
7384 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7385 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7386 for unwinder changes.
7387
d14508fe
DE
73882008-05-05 Doug Evans <dje@google.com>
7389
7390 * NEWS: Mention new /m modifier for disassemble command.
7391 * cli/cli-cmds.c (print_disassembly): New function.
7392 (disassemble_current_function): New function
7393 (disassemble_command): Recognize /m modifier, print mixed
7394 source+assembly.
7395 (init_cli_cmds): Update disassemble help text.
7396
5142f611
MG
73972008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7398
7399 * xtensa-tdep.c: Update for unwinder changes.
7400
f36bf22c
AS
74012008-05-05 Andreas Schwab <schwab@suse.de>
7402
7403 Update m68k port for unwinder changes.
7404 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7405 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7406 (m68k_frame_unwind): Use default_frame_sniffer.
7407 (m68k_frame_sniffer): Remove.
7408 (m68k_frame_base_address): Expect this_frame.
7409 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7410 this_frame.
7411 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7412 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7413 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7414 parameter instead of pc value.
7415 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7416 Expect this_frame.
7417 (m68k_linux_sigtramp_frame_this_id)
7418 (m68k_linux_sigtramp_frame_prev_register)
7419 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7420 (m68k_linux_sigtramp_frame_unwind): Use
7421 m68k_linux_sigtramp_frame_sniffer.
7422 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7423
7424 * m68klinux-nat.c (store_register): Fix typo.
7425
b3dc826b
PA
74262008-05-05 Pedro Alves <pedro@codesourcery.com>
7427
7428 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7429 NULL dereferencing.
7430
6528a9ea
LM
74312008-05-05 Luis Machado <luisgpm@br.ibm.com>
7432
7433 * symfile.c (reread_symbols): Update objfile's entry point.
7434
5eeb2539
AR
74352008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7436 Joel Brobecker <brobecker@adacore.com>
1f906a60 7437
5eeb2539
AR
7438 * ada-lang.c: Update throughout to use symbol_matches_domain
7439 instead of matching the symbol domain explictly.
7440 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7441 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7442 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7443 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7444 symbol for the typedef. See lookup_block_symbol.
7445 * symtab.c (symbol_matches_domain): New function, takes care
7446 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7447 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7448 found psym domain matches the given domain.
7449 (lookup_block_symbol): Likewise.
7450
e2b7ddea
VP
74512008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7452
680b56ce
AS
7453 * top.c (command_line_handler_continuation): Remove.
7454 (execute_command): Do not install the above.
e2b7ddea 7455
fcfb8b02
VP
74562008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7457
7458 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7459 and catch all exceptions from it.
7460 * top.c (command_line_handler_continuation): Don't
7461 call bpstat_do_action here.
7462
f792889a
DJ
74632008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7464
7465 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7466 (struct die_info): Remove type.
7467 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7468 (read_structure_type, read_enumeration_type, read_array_type)
7469 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7470 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7471 (read_tag_string_type, read_subroutine_type, read_set_type)
7472 (read_unspecified_type): Delete prototypes. Remove check for
7473 already-loaded type. Return the new type.
7474 (set_die_type): Return the new type.
7475 (reset_die_and_siblings_types): Delete.
7476 (load_comp_unit, load_full_comp_unit): Set type_hash.
7477 (process_queue): Remove call to reset_die_and_siblings_types.
7478 (process_die): Do not read most types here. Use read_type_die
7479 for others.
7480 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7481 (quirk_gcc_member_function_pointer): Return the new type.
7482 (process_structure_scope, process_enumeration_scope): Use
7483 get_die_type and read the DIE's type.
7484 (read_full_die): Do not initialize die->type.
7485 (tag_type_to_type): Use read_type_die.
7486 (read_type_die): Check for already defined types. Return the
7487 type.
7488 (determine_prefix): Use get_die_type.
7489 (set_die_type): Return the type.
7490 (get_die_type): Take a CU argument. Check for no type_hash.
7491
e7030f15
DJ
74922008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7493
7494 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7495 locals.
7496
611c83ae
PA
74972008-05-04 Pedro Alves <pedro@codesourcery.com>
7498
7499 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7500 and bp_longjmp_resume breakpoints.
7501 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7502 meaningful.
7503 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7504 breakpoints. Create bp_longjmp breakpoints as momentary
7505 breakpoints.
7506 (enable_longjmp_breakpoint): Delete.
7507 (set_longjmp_breakpoint): New.
7508 (disable_longjmp_breakpoint): Delete.
7509 (delete_longjmp_breakpoint): New.
7510 (set_longjmp_resume_breakpoint): Delete.
7511 (set_momentary_breakpoint_at_pc): New.
7512 (breakpoint_re_set_one): Don't delete bp_longjmp and
7513 bp_longjmp_resume breakpoints.
7514 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7515 breakpoints.
7516
7517 * infrun.c (step_resume_breakpoint): Add comment.
7518 (struct execution_control_state): Delete handling_longjmp member.
7519 (init_execution_control_state). Don't clear handling_longjmp.
7520 (context_switch): Don't context switch handling_longjmp.
7521 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7522 create a bp_longjmp_resume breakpoint, and set it as current
7523 step_resume_breakpoint, then step over the longjmp breakpoint. If
7524 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7525 breakpoint, delete the longjmp-resume breakpoint, and stop
7526 stepping.
7527 (currently_stepping): Remove handling_longjmp from expression.
7528 (insert_step_resume_breakpoint_at_sal): Update comment.
7529 (insert_longjmp_resume_breakpoint): New.
7530
7531 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7532 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7533 declarations.
7534 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7535 (set_longjmp_resume_breakpoint): Delete declaration.
7536
7537 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7538 parameter.
7539 (load_infrun_state): Delete *handling_longjmp parameter.
7540 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7541 Update body.
7542 (load_infrun_state): Delete *handling_longjmp parameter. Update
7543 body.
7544
7545 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7546 (delete_longjmp_breakpoint_cleanup): New.
7547 (step_1): Call set_longjmp_breakpoint instead of
7548 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7549 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7550 (step_1_continuation): Pass thread id in the continuation args to
7551 step_once.
7552 (step_once): Add thread parameter. Pass thread id the the
7553 continuation.
7554
85cbf3d3
JK
75552008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 Set CU BASE_ADDRESS already from partial DIEs.
7558 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7559 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7560 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7561 from these variables if it was still unset.
7562
ff013f42
JK
7563 * Makefile.in: Update dependencies.
7564 * dwarf2read.c: Include "addrmap.h"
7565 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7566 (dwarf2_ranges_read): New prototype.
7567 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7568 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7569 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7570 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7571 comment for it. Add the found ranges to RANGES_PST. New variable
7572 BASEADDR, initialize it the common way.
7573 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7574 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7575 HAS_RANGES_OFFSET for the later processing.
7576 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7577 * symtab.c: Include "addrmap.h"
7578 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7579 Move the psymtab locator into ...
7580 (find_pc_sect_psymtab_closer): ... a new function.
7581
a7f1256d
UW
75822008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7583
7584 * arch-utils.c (gdbarch_update_p): Use default values for
7585 info.abfd and info.target_desc if they are NULL.
7586 (gdbarch_from_bfd): Remove assertion.
7587 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7588 using the current target description.
7589 (gdbarch_info_fill): Do not use default values for info->abfd
7590 and info->target_desc.
7591
b2de52bb
JK
75922008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7595
515630c5
UW
75962008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7597
7598 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7599 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7600
7601 * regcache.c (read_pc_pid): Remove, replace by ...
7602 (regcache_read_pc): ... this function.
7603 (write_pc_pid): Remove, replace by ...
7604 (regcache_write_pc): ... this function.
7605 (read_pc, write_pc): Update.
7606
7607 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7608 write_pc_pid by regcache_read_pc and regcache_write_pc.
7609 (displaced_step_fixup): Likewise.
7610 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7611 (prepare_to_proceed): Likewise.
7612 (proceed): Likewise.
7613 (adjust_pc_after_break): Likewise.
7614 (handle_inferior_event): Likewise.
7615
7616 * linux-nat.c (cancel_breakpoint): Likewise.
7617 * linux-thread-db.c (check_event): Likewise.
7618 * aix-thread.c (aix_thread_wait): Likewise.
7619 * tracepoint.c (trace_dump_command): Likewise.
7620
ebd3bcc1
JK
76212008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7624 SYMBOL_LOCATION_BATON.
7625
c47ffbe3
VP
76262008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7627
f78bff48
VP
7628 * target.h (struct target_ops): New field to_auxv_parse.
7629 * auxv.c (default_auxv_parse): New, renamed from previous
7630 target_auxv_parse.
7631 (target_auxv_parse): Try to call target method. Fallback to
7632 default_auxv_parse if not found.
7633 * procfs.c (procfs_auxv_parse): New.
7634 (init_procfs_ops): On Solaris, in 64-bit mode, install
7635 procfs_auxv_parse.
c47ffbe3 7636
35076fa0
AN
76372008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7638
7639 * symfile.c (add_symbol_file_command): Use paddress rather than
7640 hex_string to print the address.
7641
5b197912
UW
76422008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7643
7644 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7645 return the null frame ID to terminate the backtrace.
7646
4a7622d1
UW
76472008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7648
7649 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7650 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7651 (SIG_FRAME_PC_OFFSET): Likewise.
7652 (SIG_FRAME_LR_OFFSET): Likewise.
7653 (SIG_FRAME_FP_OFFSET): Likewise.
7654 (rs6000_push_dummy_call): Likewise.
7655 (rs6000_return_value): Likewise.
7656 (rs6000_convert_from_func_ptr_addr): Likewise.
7657 (branch_dest, rs6000_software_single_step): Likewise.
7658 (deal_with_atomic_sequence): Rename to ...
7659 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7660 Do not call branch_dest; inline required parts of that function.
7661 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7662 with SYMBOL_LINKAGE_NAME.
7663 (struct reg, regsize): Delete.
7664 (read_memory_addr): Delete; inline into callers.
7665 (rs6000_skip_prologue): Move after skip_prologue.
7666 (skip_prologue): Remove prototype.
7667 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7668 initialization as if this variable were true. Do not install
7669 ppc64_sysv_abi_adjust_breakpoint_address.
7670
7671 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7672 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7673 and "breakpoint.h".
7674 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7675 (SIG_FRAME_PC_OFFSET): Likewise.
7676 (SIG_FRAME_LR_OFFSET): Likewise.
7677 (SIG_FRAME_FP_OFFSET): Likewise.
7678 (rs6000_push_dummy_call): Likewise.
7679 (rs6000_return_value): Likewise.
7680 (rs6000_convert_from_func_ptr_addr): Likewise.
7681 (branch_dest, rs6000_software_single_step): Likewise. Replace
7682 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7683 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7684 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7685 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7686 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7687
7688 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7689 (AIX_TEXT_SEGMENT_BASE): New macro.
7690 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7691 by AIX_TEXT_SEGMENT_BASE.
7692
7693 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7694 (struct gdbarch_tdep): Remove text_segment_base member.
7695 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7696 ppc64_sysv_abi_adjust_breakpoint_address.
7697
7698 * Makefile.in (rs6000-tdep.o): Update dependencies.
7699 (rs6000-aix-tdep.o): Likewise.
7700
938f5214
TJB
77012008-05-03 Luis Machado <luisgpm@br.ibm.com>
7702 Thiago Jung Bauermann <bauerman@br.ibm.com>
7703
7704 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7705 * doublest.c (convert_typed_floating): Fix typo in comment.
7706 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7707 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7708 * frame.c (frame_unwind_address_in_block): Likewise.
7709 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7710 * symtab.h (struct symbol): Likewise.
7711 * tramp-frame.h (struct trad_frame_cache): Likewise.
7712 * value.c (allocate_repeat_value): Likewise.
7713
0b02b92d
UW
77142008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7715
7716 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7717 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7718
d705c43c
PA
77192008-05-03 Pedro Alves <pedro@codesourcery.com>
7720
7721 * parse.c (parse_exp_in_context): Don't override
7722 expression_context_pc if get_selected_block returned a valid
7723 block.
7724
d6350901
DJ
77252008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7726
7727 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7728 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7729 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7730 Delete.
7731 * c-typeprint.c (c_type_print_base): Delete handling of template
7732 instantiations.
7733 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7734 (METHOD_PTR_TO_VOFFSET): Delete.
7735 * defs.h (QUIT_FIXME): Delete.
7736 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7737 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7738 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7739 ninstantiations, and instantiations.
7740 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7741 (TYPE_FN_FIELD_INLINED): Delete.
7742 * srec.h (SREC_BINARY): Delete.
7743 * symtab.c (symbol_init_demangled_name): Delete.
7744 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7745 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7746 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7747 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7748 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7749 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7750 * target.h (enum thread_control_capabilities): Delete tc_switch.
7751 (target_can_switch_threads): Delete.
7752
30510692
DJ
77532008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7754
7755 * Makefile.in (objfiles.o): Update.
7756 * exec.c (exec_set_section_address): Support p->addr != 0.
7757 * objfiles.c (objfile_relocate): Update exec_ops section
7758 addresses.
7759 * symfile.c (place_section): Move exec_set_section_address call...
7760 (default_symfile_offsets): ...to here.
7761
7284e1be
UW
77622008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7763
7764 * Makefile.in (ppc_linux_tdep_h): New macro.
7765 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7766 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7767 (powerpc_e500l_c): Likewise.
7768 (ppc-linux-nat.o): Update dependencies.
7769 (ppc-linux-tdep.o): Update dependencies.
7770 (rs6000-tdep.o): Update dependencies.
7771
7772 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7773 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7774 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7775 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7776 (tdesc_powerpc_e500): Remove.
7777
7778 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7779 and "features/rs6000/powerpc-altivec64.c".
7780 (ppc_supply_reg, ppc_collect_reg): Make global.
7781 (variants): Use tdesc_powerpc_32 for "powerpc" and
7782 tdesc_powerpc_altivec64 for "powerpc64".
7783 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7784
7785 * ppc-linux-tdep.h: New file.
7786
7787 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7788 Include "features/rs6000/powerpc-32l.c".
7789 Include "features/rs6000/powerpc-altivec32l.c".
7790 Include "features/rs6000/powerpc-64l.c".
7791 Include "features/rs6000/powerpc-altivec64l.c".
7792 Include "features/rs6000/powerpc-e500l.c".
7793 (ppc_linux_supply_gregset): New function.
7794 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7795 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7796 (ppc64_linux_gregset): Likewise.
7797 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7798 (ppc_linux_trap_reg_p): New function.
7799 (ppc_linux_write_pc): New function.
7800 (ppc_linux_core_read_description): New function.
7801 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7802 ppc_linux_core_read_description. Install orig_r3 and trap
7803 registers if present in the target description.
7804 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7805
7806 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7807 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7808 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7809 (fetch_ppc_registers): Likewise.
7810 (store_ppc_registers): Likewise.
7811 (store_register): Likewise.
7812 (ppc_linux_read_description): Check whether AltiVec is supported.
7813 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7814 Linux target description.
7815
7816 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7817 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7818 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7819 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7820 rs6000/powerpc-e500. Update -expedite variables accordingly.
7821
7822 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7823 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7824 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7825 * features/rs6000/powerpc-e500.c: Regenerate.
7826 * features/rs6000/powerpc-32.c: Regenerate.
7827 * features/rs6000/powerpc-64.c: Regenerate.
7828
7829 * features/rs6000/power-linux.xml: New file.
7830 * features/rs6000/power64-linux.xml: New file.
7831 * features/rs6000/powerpc-32l.xml: New file.
7832 * features/rs6000/powerpc-altivec32l.xml: New file.
7833 * features/rs6000/powerpc-64l.xml: New file.
7834 * features/rs6000/powerpc-altivec64l.xml: New file.
7835 * features/rs6000/powerpc-e500l.xml: New file.
7836 * features/rs6000/powerpc-32l.c: New (generated) file.
7837 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7838 * features/rs6000/powerpc-64l.c: New (generated) file.
7839 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7840 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7841
7842 * regformats/reg-ppc.dat: Remove.
7843 * regformats/reg-ppc64.dat: Remove.
7844 * regformats/rs6000/powerpc-32.dat: Remove.
7845 * regformats/rs6000/powerpc-64.dat: Remove.
7846 * regformats/rs6000/powerpc-e500.dat: Remove.
7847 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7848 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7849 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7850 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7851 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7852
063bfe2e
VP
78532008-05-03 Pedro Alves <pedro@codesourcery.com>
7854
7855 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7856 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7857 thread_exit observer.
7858 (mi_thread_exit): New.
063bfe2e 7859
f132ba9d
TJB
78602008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7861
7862 * breakpoint.c (create_exception_catchpoint): Remove prototype
7863 for already deleted function.
7864 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7865 * frame.h (show_stack_frame): Remove prototype.
7866 * stack.c (show_stack_frame): Remove empty, unused function.
7867 * source.c (symtab_to_fullname, print_source_lines): Small fix
7868 in comment.
7869 * value.c (show_values): Update comments to mention "show values"
7870 command instead of "info history".
7871
bccdca4a
UW
78722008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7873
7874 * linespec.c: Include "target.h".
7875 (minsym_found): Handle minimal symbols pointing to function
7876 descriptors. Use find_function_start_pc.
7877 * minsyms.c (msymbol_objfile): New function.
7878 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7879 to function descriptors.
7880 * symtab.c (fixup_section): Only use minimal symbol at the same
7881 address to determine section of a symbol.
7882 (find_function_start_pc): New function.
7883 (find_function_start_sal): Use it.
7884 * symtab.h (msymbol_objfile): Add prototype.
7885 (find_function_start_pc): Likewise.
7886 * value.c: Include "objfiles.h".
7887 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7888 descriptors.
bccdca4a
UW
7889 * Makefile.in (linespec.o): Update dependencies.
7890 (value.o): Likewise.
7891
de4d072f
JB
78922008-05-02 Joel Brobecker <brobecker@adacore.com>
7893
7894 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7895 inside a PAD type is a bitfield.
7896
93d4208d
UW
78972008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7898
7899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7900 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7901 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7902 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7903 Allow typedefs when checking for function pointer arguments.
7904 Right-align small structs passed on the stack.
7905 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7906 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7907 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7908
60c5725c
DJ
79092008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7910
7911 * Makefile.in (arm-tdep.o): Update.
7912 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7913 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7914 (arm_pc_is_thumb): Use mapping symbols.
7915 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7916 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7917 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7918 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7919 * gdbarch.sh: Add record_special_symbol.
7920 * gdbarch.c, gdbarch.h: Regenerated.
7921 * objfiles.c (struct objfile_data): Add cleanup member.
7922 (register_objfile_data_with_cleanup): New function, from
7923 register_objfile_data.
7924 (register_objfile_data): Use it.
7925 (objfile_free_data): Call clear_objfile_data.
7926 (clear_objfile_data): Call cleanup functions.
7927 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7928
574dffa2
DJ
79292008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7930
7931 * objfiles.c (init_entry_point_info): Handle shared libraries.
7932
2c404490
DJ
79332008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7934
7935 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7936 lowest_pc.
7937
237fc4c9
PA
79382008-05-02 Jim Blandy <jimb@codesourcery.com>
7939 Pedro Alves <pedro@codesourcery.com>
7940
7941 Implement displaced stepping.
7942
7943 * gdbarch.sh (max_insn_length): New 'variable'.
7944 (displaced_step_copy, displaced_step_fixup)
7945 (displaced_step_free_closure, displaced_step_location): New
7946 functions.
7947 (struct displaced_step_closure): Add forward declaration.
7948 * gdbarch.c, gdbarch.h: Regenerated.
7949
7950 * arch-utils.c: #include "objfiles.h".
7951 (simple_displaced_step_copy_insn)
7952 (simple_displaced_step_free_closure)
7953 (displaced_step_at_entry_point): New functions.
7954 * arch-utils.h (simple_displaced_step_copy_insn)
7955 (simple_displaced_step_free_closure)
7956 (displaced_step_at_entry_point): New prototypes.
7957
7958 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7959 (I386_MAX_MATCHED_INSN_LEN): ... this.
7960 (i386_absolute_jmp_p, i386_absolute_call_p)
7961 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7962 (i386_displaced_step_fixup): New functions.
7963 (struct i386_insn, i386_match_insn): Update.
7964 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7965 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7966 (i386_displaced_step_fixup): New prototype.
7967 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7968 Register gdbarch_displaced_step_copy,
7969 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7970 and gdbarch_displaced_step_location functions.
7971
7972 * infrun.c (debug_displaced): New variable.
7973 (show_debug_displaced): New function.
7974 (struct displaced_step_request): New struct.
7975 (displaced_step_request_queue, displaced_step_ptid)
7976 (displaced_step_gdbarch, displaced_step_closure)
7977 (displaced_step_original, displaced_step_copy)
7978 (displaced_step_saved_copy, can_use_displaced_stepping): New
7979 variables.
7980 (show_can_use_displaced_stepping, use_displaced_stepping)
7981 (displaced_step_clear, cleanup_displaced_step_closure)
7982 (displaced_step_dump_bytes, displaced_step_prepare)
7983 (displaced_step_clear_cleanup, write_memory_ptid)
7984 (displaced_step_fixup): New functions.
7985 (resume): Call displaced_step_prepare.
7986 (proceed): Call read_pc once, and remember the value. If using
7987 displaced stepping, don't remove breakpoints.
7988 (handle_inferior_event): Call displaced_step_fixup. Add some
7989 debugging output. When we try to step over a breakpoint, but get
7990 a signal to deliver to the thread instead, ensure the step-resume
7991 breakpoint is actually inserted. If a thread hop is needed, and
7992 displaced stepping is enabled, don't remove breakpoints.
7993 (init_wait_for_inferior): Call displaced_step_clear.
7994 (_initialize_infrun): Add "set debug displaced" command. Add
7995 "maint set can-use-displaced-stepping" command. Clear
7996 displaced_step_ptid.
7997 * inferior.h (debug_displaced): Declare variable.
7998 (displaced_step_dump_bytes): Declare function.
7999
8000 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
8001 dependencies.
8002
0428b8f5
DJ
80032008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8004
8005 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
8006 (arm_force_mode_string, arm_show_fallback_mode)
8007 (arm_show_force_mode): New.
8008 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
8009 arm_frame_is_thumb.
8010 (_initialize_arm_tdep): Add "set arm fallback-mode"
8011 and "set arm force-mode".
8012 * NEWS: Document new commands.
8013
d01a8610
AS
80142008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
8015
8016 * main.h (batch_silent): Declare.
8017 * event-top.c: Include main.h.
8018 (gdb_setup_readline): Remove extern batch_silent declaration.
8019 * infrun.c (normal_stop): Don't print source location when running in
8020 --batch-silent mode.
8021 * Makefile.in (event-top.o): Add main.h dependency.
8022
5009afc5
AS
80232008-05-02 Andreas Schwab <schwab@suse.de>
8024
8025 * target.h (struct target_ops): Add
8026 to_watchpoint_addr_within_range.
8027 (target_watchpoint_addr_within_range): New function.
8028 * target.c (update_current_target): Inherit
8029 to_watchpoint_addr_within_range, defaulting to
8030 default_watchpoint_addr_within_range.
8031 (default_watchpoint_addr_within_range): New function.
8032 (debug_to_watchpoint_addr_within_range): New function.
8033 (setup_target_debug): Set to_watchpoint_addr_within_range.
8034 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
8035 New function.
8036 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
8037 * breakpoint.c (watchpoints_triggered): Use
8038 target_watchpoint_addr_within_range.
8039
a15c5c83
PA
80402008-05-01 Pedro Alves <pedro@codesourcery.com>
8041
8042 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
8043 (i[34567]86-*-dicos*, x86_64-*-dicos*):
8044 Set gdb_osabi to GDB_OSABI_DICOS.
8045
8046 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
8047 * osabi.c (gdb_osabi_name): Add "DICOS".
8048
8049 * i386-dicos-tdep.c: New file.
8050
8051 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
8052 (ALLDEPFILES): Add i386-dicos-tdep.c.
8053 (i386-dicos-tdep.o): New rule.
8054
728c8f58
PA
80552008-05-01 Pedro Alves <pedro@codesourcery.com>
8056
8057 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
8058 and register the fork's PTID as a thread.
8059
604133b5
AR
80602008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8061
8062 PR gdb/1665
8063 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
8064 assign its value to the breakpoint created.
8065 (create_breakpoints): Add breakpoint_ops argument and pass it
8066 to create_breakpoint call.
8067 (break_command_really): Add breakpoint_ops argument and pass/assign
8068 appropriately.
8069 (break_command_1): Pass NULL as ops argument.
8070 (set_breakpoint): Pass NULL as ops argument.
8071 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
8072 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
8073 catch and throw catchpoints.
5009afc5 8074
1f906a60 80752008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
8076
8077 PR gdb/2343
8078 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
8079 translate signal numeric value from the target to GDB's enum
8080 target_signal.
8081 * gdbarch.c, gdbarch.h: Regenerated.
8082 * gdbarch.sh: Added two new functions target_signal_from_host and
8083 target_signal_to_host.
680b56ce 8084 * target.h (default_target_signal_from_host,
1cded358
AR
8085 default_target_signal_to_host): New functions - declarations.
8086 * signals/signals.c (struct gdbarch): New declaration.
8087 (default_target_signal_to_host, default_target_signal_from_host): New
8088 functions.
8089
ed5e9466
DJ
80902008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8091 Pedro Alves <pedro@codesourcery.com>
8092
8093 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
8094 Johnston <jjohnstn@redhat.com>.
8095
8096 * NEWS: Mention attach to stopped process fix.
8097 * infcmd.c (detach_command, disconnect_command): Discard the thread
8098 list.
8099 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
8100 attaching. Use signal_stop_state.
8101 (signal_stop_state): Check stop_soon.
8102 * linux-nat.c (kill_lwp): Declare earlier.
8103 (pid_is_stopped, linux_nat_post_attach_wait): New.
8104 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
8105 comments.
8106 (linux_nat_attach): Use linux_nat_post_attach_wait.
8107 (detach_callback, linux_nat_detach): Improve handling for signalled
8108 processes.
8109 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
8110 from the process ID.
8111 * Makefile.in (infcmd.o): Update.
8112
b39cc962
DJ
81132008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8114
8115 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
8116 * arm-tdep.c (arm_frame_is_thumb): New.
8117 (arm_pc_is_thumb): Clarify comment.
8118 (thumb_analyze_prologue): Remove PC special case.
8119 (thumb_scan_prologue): Take a block_addr argument. Use it for
8120 find_pc_partial_function. Remove unused variables.
8121 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
8122 for find_pc_partial_function. Remove PC special case.
8123 (arm_prologue_prev_register): Add special handling for PC and CPSR.
8124 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
8125 (arm_get_next_pc): Use arm_frame_is_thumb.
8126 (arm_write_pc): Use CPSR_T instead of 0x20.
8127 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
8128 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
8129 (CPSR_T): Define.
8130 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
8131 DWARF2_FRAME_REG_FN.
8132 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
8133 DWARF2_FRAME_REG_FN.
8134 (struct dwarf2_frame_state_reg): Add FN to loc union.
8135
944f08ab
JB
81362008-05-01 Nick Roberts <nickrob@snap.net.nz>
8137
8138 * exec.c (print_section_info): Add missing '\n'.
8139
cfc01461
VP
81402008-05-01 Vladimir Prus <vladimir@codesourcery.com>
8141
8142 * thread.c (add_thread): Move observer call to ...
680b56ce 8143 (add_thread_silent): ... here.
cfc01461 8144
1af5d7ce
UW
81452008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8146
8147 * rs6000-tdep.c: Update for unwinder changes.
8148 * ppcobsd-tdep.c: Likewise.
8149
f089c433
UW
81502008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8151
8152 * s390-tdep.c: Update for unwinder changes.
8153
8d998b8f
UW
81542008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8155
8156 * spu-tdep.c: Update for unwinder changes.
8157
5366653e
DJ
81582008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8159
8160 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
8161 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
8162 sparc64-linux-tdep.c: Update for unwinder changes.
8163
b8a22b94
DJ
81642008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8165
8166 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
8167 for unwinder changes.
8168 * mips-tdep.c: Likewise.
8169 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
8170 raw one.
8171
a262aec2
DJ
81722008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8173
8174 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
8175 unwinder changes.
8176
10458914
DJ
81772008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8178
8179 Update i386 and amd64 ports for unwinder changes.
8180
8181 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
8182 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
8183 (amd64_frame_unwind): Use default_frame_sniffer.
8184 (amd64_frame_sniffer): Delete.
8185 (amd64_sigtramp_frame_cache): Expect this_frame.
8186 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
8187 (amd64_sigtramp_frame_sniffer): Update signature.
8188 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
8189 (amd64_frame_base_address): Expect this_frame.
8190 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
8191 this_frame.
8192 (amd64_init_abi): Use set_gdbarch_dummy_id and
8193 frame_unwind_append_unwinder.
8194 * i386-tdep.c (i386_frame_cache): Expect this_frame.
8195 (i386_frame_this_id, i386_frame_prev_register): Update signature.
8196 (i386_frame_unwind): Use default_frame_sniffer.
8197 (i386_frame_sniffer): Delete.
8198 (i386_sigtramp_frame_cache): Expect this_frame.
8199 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
8200 (i386_sigtramp_frame_sniffer): Update signature.
8201 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
8202 (i386_frame_base_address): Update signature.
8203 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
8204 (i386_push_dummy_call): Update comment.
8205 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
8206 Expect this_frame.
8207 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
8208 and frame_unwind_append_unwinder.
8209 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
8210 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
8211 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
8212 i386nbsd-tdep.c: Update for unwinder changes.
8213
25492ce3
DJ
82142008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8215
8216 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
8217 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
8218 this_frame.
8219 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
8220 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
8221 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
8222 signature.
8223 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
8224 this_frame.
8225 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8226 Update signature.
8227 * tramp-frame.h (struct tramp_frame): Update signature of init.
8228 * Makefile.in (trad-frame.o): Update.
8229
4a4e5149
DJ
82302008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8231
8232 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8233 (execute_stack_op): Put this_frame in the baton.
8234 (execute_cfa_program): Take this_frame.
8235 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8236 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8237 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8238 (dwarf2_frame_this_id): Adjust to work on this_frame.
8239 (dwarf2_signal_frame_this_id): Delete.
8240 (dwarf2_frame_prev_register): Update signature. Use new frame
8241 unwind methods.
8242 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8243 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8244 dwarf2_frame_sniffer.
8245 (dwarf2_append_unwinders): New.
8246 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8247 this_frame.
8248 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8249 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8250 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8251 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8252 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8253 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8254 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8255 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8256 (dwarf2_append_unwinders): Declare.
8257 (dwarf2_frame_base_sniffer): Update declaration.
8258 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8259 this_frame.
8260
669fac23
DJ
82612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8262
8263 Convert frame unwinders to use the current frame and
8264 "struct value".
8265
8266 * frame.c (frame_debug): Make global.
8267 (get_frame_id): Pass this frame to unwinder routines.
8268 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8269 (do_frame_register_read): Do not discard the return value of
8270 frame_register_read.
8271 (frame_register_unwind): Remove debug messages. Use
8272 frame_unwind_register_value.
8273 (frame_unwind_register_value, get_frame_register_value): New
8274 functions.
8275 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8276 (get_frame_args_address, get_frame_type): Pass this frame to
8277 unwinder routines.
8278 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8279 functions.
8280 * frame.h: Update comments.
8281 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8282 (frame_prepare_for_sniffer): Declare.
8283 * frame-unwind.h: Update comments and parameter names.
8284 (default_frame_sniffer): Declare.
8285 (frame_prev_register_ftype): Return a struct value *.
8286 (struct frame_unwind): Remove prev_pc member.
8287 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8288 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8289 (frame_unwind_got_register, frame_unwind_got_memory)
8290 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8291 * frame-base.h: Update comments and parameter names.
8292 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8293 if necessary. Add debugging output.
8294 * sentinel-frame.c (sentinel_frame_prev_register)
8295 (sentinel_frame_this_id): Update for new signature.
8296 (sentinel_frame_prev_pc): Delete.
8297 (sentinel_frame_unwinder): Remove prev_pc.
8298 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8299 prev_pc.
8300 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8301 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8302 (frame_unwind_append_sniffer): Delete.
8303 (frame_unwind_append_unwinder): New function.
8304 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8305 from unwinders. Use frame_prepare_for_sniffer.
8306 (default_frame_sniffer, frame_unwind_got_optimized)
8307 (frame_unwind_got_register, frame_unwind_got_memory)
8308 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8309 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8310 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8311 signature.
8312 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8313 * gdbarch.c, gdbarch.c: Regenerated.
8314 * frame-base.c (default_frame_base_address)
8315 (default_frame_locals_address, default_frame_args_address): Update
8316 for new signature.
8317 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8318 * infcall.c (call_function_by_hand): Update comments.
8319 * Makefile.in (frame-unwind.o): Update dependencies.
8320
9214ee5f
DJ
83212008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8322
8323 * ada-lang.c (ada_value_primitive_packed_val): Only check
8324 value_lazy for memory lvals.
8325 * findvar.c (value_of_register_lazy): New function.
8326 (locate_var_value): Only check value_lazy for memory lvals.
8327 * valarith.c (value_subscripted_rvalue): Likewise.
8328 * valops.c (value_fetch_lazy): Handle both memory and register
8329 lvals.
8330 (search_struct_field, value_slice): Only check value_lazy for memory
8331 lvals.
8332 * value.c (struct value): Update comment for lazy.
8333 (value_primitive_field): Only check value_lazy for memory lvals.
8334 * value.h (value_lazy): Update comment.
8335 (value_of_register_lazy): Declare.
8336
939643d7
DJ
83372008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8338
8339 * corefile.c (reopen_exec_file): Close any open files.
8340
1de34ab7
JB
83412008-04-29 Joel Brobecker <brobecker@adacore.com>
8342
8343 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8344 show_memory_breakpoints to 1 while reading the instruction bundle.
8345
ea42b34a
JB
83462008-04-29 Joel Brobecker <brobecker@adacore.com>
8347
8348 * gdbarch.sh: Document the return_value method. Explain that
8349 the FUNCTYPE parameter might be NULL.
8350 * gdbarch.h: Regenerated.
8351 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8352 type when calling using_struct_return, as this is unnecessary
8353 on this target.
8354
a0fe373c
JB
83552008-04-28 Joel Brobecker <brobecker@adacore.com>
8356
8357 * terminal.h (create_tty_session): Fix return type.
8358
c6446539
VP
83592008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8360
8361 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8362
2f069f6f
JB
83632008-04-26 Joel Brobecker <brobecker@adacore.com>
8364
8365 * breakpoint.c (condition_command, commands_from_control_command)
8366 (break_command_really): Minor reformatting.
8367
93b5768b
PA
83682008-04-25 Pedro Alves <pedro@codesourcery.com>
8369
8370 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8371
436675d3
PA
83722008-04-25 Pedro Alves <pedro@codesourcery.com>
8373
8374 * amd64-tdep.c (amd64_get_longjmp_target): New.
8375 (amd64_init_abi): Register amd64_get_longjmp_target as
8376 gdbarch_get_longjmp_target callback.
8377 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8378
78b6a731
PA
83792008-04-25 Pedro Alves <pedro@codesourcery.com>
8380
8381 * breakpoint.h (enum bpstat_what_main_action): Delete
8382 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8383
8384 * breakpoint.c (clrs): Delete.
8385 (bpstat_what): Update table.
8386
8387 * infrun.c (handle_inferior_event): Remove
8388 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8389
9e22b03a
VP
83902008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8391
8392 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8393 Adjust all prototypes using mi_cmd_args_ftype to use
8394 mi_cmd_argv_ftype.
8395 (struct mi_cmd): Remove the args_func field.
8396 * mi/mi-cmds.c: Don't provide value for the args_func field.
8397 * mi/mi-main.c (mi_execute_async_cli_command)
8398 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8399 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8400 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8401 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8402 (mi_cmd_target_download): Adjust.
8403 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8404 (mi_cmd_execute): Do not check for args_func.
8405 (mi_execute_async_cli_command): Adjust.
8406 * mi/mi-parse.c: Don't check for args_func.
8407
721c02de 84082008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8409
680b56ce
AS
8410 * breakpoint.c (bpstat_check_location)
8411 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8412 New, extracted from bpstat_stop_status.
8413 (bpstat_stop_status): Use the above.
18a18393
VP
8414
84152008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8416
680b56ce
AS
8417 * mi/mi-main.c (last_async_command): Rename to current_token.
8418 (previous_async_command): Remove.
8419 (mi_cmd_gdb_exit): Adjust.
8420 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8421 (mi_cmd_target_select): Adjust.
8422 (mi_cmd_execute): Don't set previous_async_command. Free token
8423 here even in async mode.
8424 (mi_execute_async_cli_command): Adjust.
8425 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8426 token.
8427 (mi_load_progress): Adjust.
721c02de 8428
f13468d9
VP
84292008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8430
680b56ce
AS
8431 * infcmd.c (step_1_continuation): Always disable longjmp
8432 breakpoint if we're not going to do another step.
f13468d9 8433
f107f563
VP
84342008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8435
8436 exec_cleanup murder.
8437 * breakpoint.c (until_break_command_continuation): Add
8438 the 'error' parameter. Directly delete the breakoint as
8439 opposed to running cleanups.
8440 (until_break_command): Install continuation only
8441 after starting the target. Don't use exec cleanups,
8442 use ordinary cleanups. Discard cleanups is successfully
8443 started the target in async mode.
8444 (make_cleanup_delete_breakpoint): Remove.
8445 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8446 declaration.
8447 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8448 declarations.
8449 (struct continations): Add the 'error' parameter to the
8450 continuation_hook field.
8451 (add_continuation, do_all_continuations)
8452 (add_intermediate_continuation)
8453 (do_all_intermediate_continuations): Add the 'error' parameter.
8454 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8455 * inf-loop.c (inferior_event_handler): Instead of calling
8456 discard_all_continuations, use do_all_continuations with 1 as
8457 'error' parameter. Pass 0 as 'error' parameter in existing uses
8458 of discard_all_continuations.
8459 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8460 cleanups.
8461 (step_once): Install continuation only after resuming the target.
8462 (step_1_continuation): Disable longjmp breakpoint on error.
8463 (finish_command_continuation): Add the error parameter. Delete
8464 the finish breakpoint directly, do not use cleanups.
8465 (finish_command): Do not use exec_cleanups. Always setup
8466 continuation. For sync case, immediately run them.
8467 (attach_command_continuation): Add the error parameter.
8468 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8469 remove step_resume_breakpoint -- adjust delete it directly.
8470 * interps.c (interp_set): Adjust call to do_all_continations.
8471 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8472 do exec cleanups.
8473 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8474 cleanups.
8475 (mi_cmd_execute): Do not use exec_cleanup.
8476 (mi_execute_async_cli_command): Simplify the string concatenation
8477 logic. Do no use exec cleanup.
8478 (mi_exec_async_cli_cmd_continuation): New parameter error.
8479 Free last_async_command.
8480 * top.c (command_line_handler_continuation): New parameter error.
8481 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8482 (do_exec_cleanups): Remove.
8483 (add_continuation, do_all_continations)
8484 (add_intermediate_continuation)
8485 (do_all_intermediate_continuations): New parameter error.
8486
74960c60
VP
84872008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8488
8489 * breakpoint.h (bp_location_p): New typedef.
8490 Register a vector of bp_location_p.
8491 * breakpoint.c (always_inserted_mode)
8492 (show_always_inserted_mode): New.
8493 (unlink_locations_from_global_list): Remove.
8494 (update_global_location_list)
8495 (update_global_location_list_nothrow): New.
8496 (update_watchpoint): Don't free locations.
8497 (should_insert_location): New.
8498 (insert_bp_location): Use should_insert_location.
8499 (insert_breakpoint_locations): Copied from
8500 insert_breakpoints.
8501 (insert_breakpoint): Use insert_breakpoint_locations.
8502 (bpstat_stop_status): Call update_global_location_list
8503 when disabling breakpoint.
8504 (allocate_bp_location): Don't add to bp_location_chain.
8505 (set_raw_breakpoint)
8506 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8507 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8508 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8509 (set_longjmp_resume_breakpoint)
8510 (enable_watchpoints_after_interactive_call_stop)
8511 (disable_watchpoints_before_interactive_call_start)
8512 (create_internal_breakpoint)
8513 (create_fork_vfork_event_catchpoint)
8514 (create_exec_event_catchpoint, set_momentary_breakpoint)
8515 (create_breakpoints, break_command_1, watch_command_1)
8516 (create_exception_catchpoint)
8517 (handle_gnu_v3_exceptions)
8518 (disable_breakpoint, breakpoint_re_set_one)
8519 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8520 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8521 Call update_global_location_list.
8522 (delete_breakpoint): Don't remove locations and don't
8523 try to reinsert them. Call update_global_location_list.
8524 (update_breakpoint_locations): Likewise.
8525 (restore_always_inserted_mode): New.
8526 (update_breakpoints_after_exec): Temporary disable
8527 always inserted mode.
8528 * Makefile.in: Update dependencies.
8529
8530 * infrun.c (proceed): Remove breakpoints while stepping
8531 over breakpoint.
8532 (handle_inferior_event): Don't remove or insert
8533 breakpoints.
8534 * linux-fork.c (checkpoint_command): Remove breakpoints
8535 before fork and insert after.
8536 (linux_fork_context): Remove breakpoints before switch
8537 and insert after.
8538 * target.c (target_disconnect, target_detach): Remove
8539 breakpoints from target.
8540
680b56ce 8541
d24317b4
VP
85422008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8543
8544 * breakpoint.c (print_one_breakpoint_location): In MI
8545 mode, report the location string the breakpoint was
8546 originally created with.
8547
ee967b5f
MG
85482008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8549
8550 * Makefile.in (xtensa-tdep.o): Update dependencies.
8551 * configure.tgt (xtensa*): Update dependencies.
8552 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8553 Local variable areg renamed to arreg.
8554 (areg_number): New function.
8555 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8556 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8557 replaced by arreg_number.
8558 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8559 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8560 (xtensa_scan_prologue): New function.
8561 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8562 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8563 value based on prologue analysis. Fix the bugs preventing WS and
8564 AR4-AR7/A11 registers from getting right values for intermediate frames,
8565 whose registers have been already spilled.
8566 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8567 and arreg_number appropriately.
8568 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8569 svr4_ilp32_fetch_link_map_offsets.
8570
09d71d23
AS
85712008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8572
8573 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8574 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8575
fdc59709
PB
85762008-04-23 Paolo Bonzini <bonzini@gnu.org>
8577
680b56ce
AS
8578 * acinclude.m4: Add override.m4.
8579 * configure: Regenerate.
fdc59709 8580
0bcd0149
JK
85812008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8582
8583 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8584 initialized with a trailing space now. Use PROMPT_ARG of
8585 COMMAND_LINE_INPUT instead of printing it ourselves.
8586
88d8a8e0
JB
85872008-04-22 Joel Brobecker <brobecker@adacore.com>
8588
8589 * NEWS: Document support for 64-bit core file.
8590
c055b101
CV
85912008-04-22 Corinna Vinschen <vinschen@redhat.com>
8592
8593 * NEWS: Add information on calling convention and new SH CLI options.
8594
8595 * sh-tdep.c (sh_cc_gcc): New static string.
8596 (sh_cc_renesas): Ditto.
8597 (sh_cc_enum): New static string array.
8598 (sh_active_calling_convention): New static string pointer denoting
8599 active user chosen ABI.
8600 (sh_is_renesas_calling_convention): New function to return function
8601 specific ABI, or user choice if necessary.
8602 (sh_use_struct_convention): Rename first argument and turn around its
8603 meaning. Check for renesas ABI and return accordingly.
8604 (sh_use_struct_convention_nofpu): New function.
8605 (sh_next_flt_argreg): Get function type as third parameter. Check
8606 for renesas ABI and choose floating registers accordingly.
8607 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8608 struct return slot accordingly.
8609 (sh_push_dummy_call_nofpu): Ditto.
8610 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8611 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8612 (sh_return_value_fpu): Evaluate ABI and give to
8613 sh_use_struct_convention.
8614 (show_sh_command): New function.
8615 (set_sh_command): Ditto.
8616 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8617 CLI command.
8618
8619 * gdbarch.sh (return_value): Add func_type argument.
8620 * gdbarch.c: Regenerate.
8621 * gdbarch.h: Ditto.
8622 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8623 val_type so as not to collide with value_type function. Call
8624 using_struct_return with additional function type argument.
8625 * infcall.c (call_function_by_hand): Call using_struct_return and
8626 gdbarch_return_value with additional function type argument.
8627 * infcmd.c (print_return_value): Take addition func_type argument.
8628 Call gdbarch_return_value with additional function type argument.
8629 (finish_command_continuation): Call print_return_value with additional
8630 function type argument.
8631 (finish_command): Ditto.
8632 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8633 additional function type argument.
8634 * stack.c (return_command): Call using_struct_return and
8635 gdbarch_return_value with additional function type argument.
8636 * value.c (using_struct_return): Take additional function type argument.
8637 * value.h (using_struct_return): Accommodate declaration.
8638 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8639 * amd64-tdep.c (amd64_return_value): Ditto.
8640 * arm-tdep.c (arm_return_value): Ditto.
8641 * avr-tdep.c (avr_return_value): Ditto.
8642 * cris-tdep.c (cris_return_value): Ditto.
8643 * frv-tdep.c (frv_return_value): Ditto.
8644 * h8300-tdep.c (h8300_return_value): Ditto.
8645 (h8300h_return_value): Ditto.
8646 * hppa-tdep.c (hppa32_return_value): Ditto.
8647 (hppa64_return_value): Ditto.
8648 * i386-tdep.c (i386_return_value): Ditto.
8649 * ia64-tdep.c (ia64_return_value): Ditto.
8650 * iq2000-tdep.c (iq2000_return_value): Ditto.
8651 * m32c-tdep.c (m32c_return_value): Ditto.
8652 * m32r-tdep.c (m32r_return_value): Ditto.
8653 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8654 * m68k-tdep.c (m68k_return_value): Ditto.
8655 (m68k_svr4_return_value): Ditto.
8656 * m88k-tdep.c (m88k_return_value): Ditto.
8657 * mep-tdep.c (mep_return_value): Ditto.
8658 * mips-tdep.c (mips_eabi_return_value): Ditto.
8659 (mips_n32n64_return_value): Ditto.
8660 (mips_o32_return_value): Ditto.
8661 (mips_o64_return_value): Ditto.
8662 * mn10300-tdep.c (mn10300_return_value): Ditto.
8663 * mt-tdep.c (mt_return_value): Ditto.
8664 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8665 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8666 (ppc_sysv_abi_broken_return_value): Ditto.
8667 (ppc64_sysv_abi_return_value): Ditto.
8668 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8669 (ppc_sysv_abi_broken_return_value): Ditto.
8670 (ppc64_sysv_abi_return_value): Ditto.
8671 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8672 * rs6000-tdep.c (rs6000_return_value): Ditto.
8673 * s390-tdep.c (s390_return_value): Ditto.
8674 * score-tdep.c (score_return_value): Ditto.
8675 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8676 (sh_return_value_fpu): Ditto.
8677 * sh64-tdep.c (sh64_return_value): Ditto.
8678 * sparc-tdep.c (sparc32_return_value): Ditto.
8679 * sparc64-tdep.c (sparc64_return_value): Ditto.
8680 * spu-tdep.c (spu_return_value): Ditto.
8681 * v850-tdep.c (v850_return_value): Ditto.
8682 * vax-tdep.c (vax_return_value): Ditto.
8683 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8684 * xtensa-tdep.c (xtensa_return_value): Ditto.
8685
8686 * gdbtypes.h (struct type): Add calling_convention member.
8687 * dwarf2read.c (read_subroutine_type): Add calling convention read
8688 from DW_AT_calling_convention attribute to function type.
8689
9eec4d1e
MD
86902008-04-22 Markus Deuling <deuling@de.ibm.com>
8691
8692 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8693 multi_f77_subscript to support values from registers.
8694 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8695 * value.h (value_subscripted_rvalue): Add prototype.
8696
8697 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8698 Fix output.
8699 * f-valprint.c (f_val_print): Likewise.
8700
ef72380d
CS
87012008-04-21 Craig Silverstein <csilvers@google.com>
8702
8703 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8704 !HAVE_ZLIB_H case.
8705
ff8e85c3
PA
87062008-04-21 Pedro Alves <pedro@codesourcery.com>
8707
8708 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8709 section is not a code section.
8710
31fffb02
CS
87112008-04-19 Craig Silverstein <csilvers@google.com>
8712
8713 * NEWS: Add information on compressed debug sections.
8714
8e91f023
VP
87152008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8716
8717 * mi/mi-cmd-var.c (varobj_update_one): Print new
8718 value for variable objects that changed type.
8719
603ba1de
VP
87202008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8721
8722 * varobj.c (varobj_invalidate): Don't touch floating
8723 varobjs.
8724
7fc830e2
MK
87252008-04-19 Mark Kettenis <kettenis@gnu.org>
8726
8727 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8728 (multiple_symbols_cancel): Remove extra const.
8729 * symtab.h: Likewise.
8730
bcbf8b68
NR
87312008-04-19 Nick Roberts <nickrob@snap.net.nz>
8732
8733 * interps.c (top_level_interpreter): Rename static variable...
8734 (top_level_interpreter_ptr): ...to this.
8735 (top_level_interpreter): New function.
8736
8737 * interps.h: New extern for top_level_interpreter.
8738
8739 * linespec.c: Include interps.h and mi/mi-cmds.h.
8740 (decode_line_2): When using MI, always set all breakpoints in menu.
8741
8742 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8743
31fffb02 87442008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8745
8746 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8747 * config.in, configure: Regenerate.
8748 * dwarf2read.c: Include zlib.h if present.
8749 Modified *_SECTION macros.
8750 (section_is_p): New.
8751 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8752 (dwarf2_resize_section): New.
8753 to determine whether a given section has a given name.
8754 (zlib_decompress_section): New.
8755 (dwarf2_read_section): Read the compressed section if present
8756 in the binary.
8757 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8758
a03b3a97
TJB
87592008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8760
8761 * defs.h (exec_set_section_offsets): Remove prototype.
8762 * exec.c (exec_set_section_offsets): Remove function.
8763
9e386756
JB
87642008-04-18 Joel Brobecker <brobecker@adacore.com>
8765
8766 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8767 in the search for the matching symbol.
8768
2ec93238
MK
87692008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8770
8771 * breakpoint.c (update_watchpoint): Always reparse
8772 condition.
8773
e9bbd7c5
JB
87742008-04-17 Joel Brobecker <brobecker@adacore.com>
8775
8776 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8777 the breakpoint address only once.
8778
475bbd17
JB
87792008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8780
8781 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8782 rather than a hard-coded architecture, for xcoff executables.
8783
86991504
DE
87842008-04-17 Doug Evans <dje@google.com>
8785
4584e32e
DE
8786 * buildsym.c (watch_main_source_file_lossage): New fn.
8787 (end_symtab): Call it.
8788
86991504
DE
8789 * source.c (find_and_open_source): Add some comments clarifying
8790 handling of FULLNAME argument. Make static. Remove pointless
8791 xstrdup/xfree.
8792
0a320680
PA
87932008-04-17 Pedro Alves <pedro@codesourcery.com>
8794
8795 * inf-loop.c (inferior_event_handler): Also run the intermediate
8796 continuations in the INF_EXEC_COMPLETE case.
8797
700b53b1
TT
87982008-04-16 Tom Tromey <tromey@redhat.com>
8799
8800 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8801 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8802 * cli/cli-decode.c (set_cmd_async_ok): New function.
8803 (get_cmd_async_ok): New function.
8804 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8805 "show" as async-ok.
8806 * top.c (execute_command): Use get_cmd_async_ok.
8807 * infcmd.c: Include cli/cli-decode.h.
8808 (_initialize_infcmd): Mark "interrupt" as async-ok.
8809 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8810
dacec2a8
DJ
88112008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8812
8813 PR gdb/2445
8814 * exec.c: Correct "arch-utils.h" include.
8815
1f906a60 88162008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8817
8818 PR gdb/2424
8819 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8820 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8821 * breakpoint.c (bpdisp_texst): New function. The function takes over
8822 the role of bpstats static array in print_one_breakpoint_location.
8823 (print_it_typical): Print "Temporary breakpoint" instead
8824 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8825 protocols, print disp field.
8826 (print_one_breakpoint_location): Removed bpdisps static definition.
8827 Call new bpstat_text function to get value for 'disp' field.
8828 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8829
4d7b71aa
DJ
88302008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8831
8832 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8833 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8834 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8835 * gnulib/Makefile.in: Regenerate.
8836
aa11fd3f
DJ
88372008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8838
8839 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8840 (defs_h): Use $(GNULIB_H).
8841 (all-lib): Depend on gnulib/Makefile.
8842 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8843 * config.in, gnulib/Makefile.in: Regenerated.
8844
e28b3332
DJ
88452008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8846
8847 * Makefile.in (LIBGNU, INCGNU): Define.
8848 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8849 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8850 (CLEANDIRS): New.
8851 ($(LIBGNU), all-lib): New rules.
8852 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8853 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8854 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8855 * gnulib: New directory, from gnulib-tool.
8856 * configure, aclocal.m4: Regenerated.
8857
e3bc4218
DJ
88582008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8859
8860 * linux-thread-db.c (have_threads_callback): Check thread->private.
8861
fcacd99f
VP
88622008-04-13 Nick Roberts <nickrob@snap.net.nz>
8863 Vladimir Prus <vladimir@codesourcery.com>
8864
8865 Fix @-varobjs.
680b56ce
AS
8866 * varobj.c (value_of_root): Update the expression for
8867 floating varobjs.
8868 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8869 report that.
fcacd99f 8870
de051565
MK
88712008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8872
8873 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8874 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8875 (mi_cmd_var_set_format): Use new mi_parse_format.
8876 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8877 format.
8878 * Makefile.in (mi-cmd-var.o): Update dependencies.
8879
8880 * varobj.h (varobj_get_formatted_value): Declare.
8881 * varobj.c (my_value_of_variable): Added format parameter.
8882 (cplus_value_of_variable): Likewise.
8883 (java_value_of_variable): Likewise.
8884 (c_value_of_variable): Likewise. Evaluate expression based
8885 on format parameter.
8886 (struct language_specific): Add format parameter to function member
8887 *value_of_variable.
8888 (varobj_get_formatted_value): New.
8889 (varobj_get_value): Added format parameter to method call.
680b56ce 8890
56953f80
JB
88912008-04-08 Joel Brobecker <brobecker@adacore.com>
8892
8893 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8894 instance flags of the undefined type before calling replace_type.
8895
e4e33b9e
VP
88962008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8897
8898 * target.h (enum strata): Remove the download_stratum.
680b56ce 8899
92b5c263
DE
89002008-04-07 Doug Evans <dje@google.com>
8901
8902 * buildsym.h (last_source_file): Add dwarf info to comment.
8903 (last_source_start_addr): Ditto.
8904
effa26a9
PA
89052008-04-07 Pedro Alves <pedro@codesourcery.com>
8906
8907 * alphanbsd-tdep.c: Include "target.h".
8908 * mn10300-tdep.c: Include "target.h".
8909 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8910
2b2d9e11
VP
89112008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8912
8913 Fix breakpoint condition that use member variables.
680b56ce
AS
8914 * valops.c (check_field): Remove.
8915 (check_field_in): Rename to check_field.
8916 (value_of_this): Use la_name_of_this.
8917 * value.h (check_field): Adjust prototype.
8918
8919 * language.h (la_value_of_this): Rename to la_name_of_this.
8920 * language.c (unknown_language_defn): Specify "this" for
8921 name_of_this.
8922 (auto_language_defn): Likewise.
8923 (local_language_defn): Likewise.
8924 * ada-lang.c (ada_language_defn): Adjust comment.
8925 * c-lang.c (c_language_defn): Adjust comment.
8926 (cplus_language_defn): Specify "this" for name_of_this.
8927 (asm_language_defn): Adjust comment.
8928 (minimal_language_defn): Adjust comment.
8929 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8930 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8931 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8932 * objc-lang.c (objc_language_defn): Specify "self" for
8933 name_of_this.
8934 * p-lang.c (pascal_language_defn): Specify "this" for
8935 name_of_this.
8936 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8937
8938 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8939 proper scope, and check for field in type of "this", without
8940 trying to create a value.
2b2d9e11 8941
a13e061a
PA
89422008-04-04 Pedro Alves <pedro@codesourcery.com>
8943
8944 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8945 (mi_error_message): Delete declaration.
8946 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8947 returning MI_CMD_ERROR.
8948 * mi/mi-main.c (mi_error_message): Delete.
8949 (mi_cmd_exec_interrupt):
8950 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8951 (mi_cmd_thread_info): Call error instead of returning
8952 MI_CMD_ERROR.
8953 (mi_cmd_data_list_register_values): Call error instead of
8954 returning MI_CMD_ERROR. Adapt to new get_register interface.
8955 (get_register): Change return typo to void. Call error instead of
8956 returning MI_CMD_ERROR.
8957 (mi_cmd_data_write_register_values): Call error instead of
8958 returning MI_CMD_ERROR.
8959 (mi_cmd_list_features): Return MI_CMD_DONE.
8960 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8961 (mi_execute_command): Always print exceptions with -error.
8962
aad4b048
JB
89632008-04-04 Joel Brobecker <brobecker@adacore.com>
8964
8965 * NEWS: Mention new commands set/show multiple-symbols.
8966
717d2f5a
JB
89672008-04-03 Joel Brobecker <brobecker@adacore.com>
8968
8969 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8970 (multiple_symbols_cancel): New constants.
8971 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8972 (multiple_symbols_select_mode): New function.
8973 (_initialize_symtab): Add new set/show multiple-symbols commands.
8974 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8975 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8976 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8977 setting.
8978 * linespec.c (decode_line_2): Likewise.
8979
f73634e5
DE
89802008-04-03 Doug Evans <dje@sebabeach.org>
8981
8982 * symtab.h (enum free_code): Delete free_contents, unused.
8983 * symmisc.c (free_symtab_block): Delete.
8984 (free_symtab, case free_code): Delete.
8985
1f906a60 89862008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
8987
8988 * valops.c (value_cast_structs): New function. Cast related
680b56ce 8989 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
8990 function comes mostly from value_cast_pointers.
8991 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8992 to value_cast_structs. Now value_cast_pointers needs only create
8993 appropriate reference after using value_cast_structs for actual
8994 casting.
8995 (value_cast): Handle references.
8996
61ad90e1
MK
89972008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8998
8999 * MAINTAINERS: Added myself to section Write After Approval.
9000
b7d038ae
DJ
90012008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
9002
9003 * ia64-tdep.c (examine_prologue): Correct array access.
9004
1f906a60 90052008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
9006
9007 * cp-support.c (first_component_command): Return if no arguments.
9008
df3ac606
CD
90092008-03-28 Carlos O'Donell <carlos@codesourcery.com>
9010
9011 * ser-mingw.c (ser_windows_open): Open requested name.
9012
ca933485
AR
90132008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9014
9015 * MAINTAINERS: Added myself.
9016
5f667f2d
PA
90172008-03-28 Pedro Alves <pedro@codesourcery.com>
9018
9019 * target.c (find_default_run_target): Allow a NULL `do_mesg'
9020 parameter. If it is NULL, don't call error.
9021 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
9022 `do_mesg' parameter to find_default_run_target. If no target was
9023 found, return 0.
9024
e741f4d4
DJ
90252008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
9026
9027 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
9028 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
9029 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
9030 Delete.
9031 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
9032
f66d8205 90332008-03-27 Joel Brobecker <brobecker@adacore.com>
9034
9035 GDB 6.8 released.
9036
221c031f
UW
90372008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9038
9039 * features/Makefile (%.dat): Set xmltarget to the base filename
9040 of the XML source, without subdirectory.
9041 * regformats/rs6000/powerpc-32.dat: Regenerate.
9042 * regformats/rs6000/powerpc-64.dat: Regenerate.
9043 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9044
40c58d95
MD
90452008-03-27 Markus Deuling <deuling@de.ibm.com>
9046
9047 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
9048 objfile arch.
9049
bb1ec7d2
NR
90502008-03-27 Nick Roberts <nickrob@snap.net.nz>
9051
9052 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9053 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
9054
5e2b427d
UW
90552008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
9056
9057 * objfiles.h (struct objfile): New GDBARCH member.
9058 (get_objfile_arch): Add prototype.
9059 * objfiles.c: Include "arch-utils.h".
9060 (allocate_objfile): Look up gdbarch associated with bfd.
9061 (get_objfile_arch): New function.
9062 * Makefile (objfiles.o): Update dependencies.
9063
9064 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
9065 by objfile arch.
9066 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
9067 by frame arch.
9068 (locexpr_describe_location): Replace current_gdbarch by
9069 objfile arch.
9070 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
9071 (dwarf2_add_field): Likewise.
9072 (read_tag_pointer_type): Likewise.
9073 (read_base_type): Likewise.
9074 (new_symbol): Likewise.
9075
9076 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
9077 (decode_base_type, decode_function_type): Likewise.
9078 (coff_read_struct_type, coff_read_enum_type): Likewise.
9079 (coff_symtab_read): Replace current_gdbarch by objfile arch.
9080 (decode_base_type): Likewise.
9081 (coff_read_enum_type): Likewise.
9082 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
9083 (coff_read_enum_type): Likewise.
9084
9085 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
9086 (end_psymtab): Likewise.
9087 (process_one_symbol): Likewise.
9088
9089 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
9090 (parse_procedure): Likewise.
9091 (parse_partial_symbols): Likewise.
9092
9093 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
9094
9095 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
9096 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
9097 built-in types.
9098 (read_range_type): Replace current_gdbarch by objfile arch. Replace
9099 static range_index_type by built-in type.
9100 (read_one_struct_field): Replace current_gdbarch by objfile arch.
9101 (read_enum_type): Likewise.
9102
9103 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
9104 objfile arch.
9105
5a413362
VP
91062008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9107
9108 * varobj.h (varobj_floating_p): Declare.
9109 * varobj.c (varobj_floating_p): New.
9110 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
9111 '@' as the name, update all floating varobjs.
9112
a5defcdc
VP
91132008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9114
9115 * varobj.c (struct varobj_root): Rename use_selected_frame to
9116 floating, and clarify the meaning.
9117 (varobj_create, varobj_update, new_root_variable): Adjust.
9118 (value_of_root): Don't use type_changed as in variable,
9119 adjust comment.
9120 (c_value_of_root): Adjust.
5a413362 9121
403fe197
PA
91222008-03-25 Pedro Alves <pedro@codesourcery.com>
9123
9124 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
9125 gdb's thread list.
9126 (linux_nat_wait): Add main lwp to gdb's thread list.
9127 * linux-thread-db.c (find_new_threads_callback): Also attach to
9128 already listed threads which thread_db didn't know about yet.
9129
710151dd
PA
91302008-03-25 Pedro Alves <pedro@codesourcery.com>
9131
9132 * linux-nat.c (drain_queued_events): Fix comment typo.
9133 (linux_nat_attach): In async mode, don't rely on storing a pending
9134 status. Instead place the wait status on the pipe.
9135 (linux_nat_resume): Remove unreacheable shortcut code in async
9136 mode.
9137 (stop_wait_callback): In async mode, don't store pending status.
9138 Instead, cancel breakpoints or resend the signal appropriatelly.
9139 (cancel_breakpoint): New, refactored from
9140 cancel_breakpoints_callback.
9141 (cancel_breakpoints_callback): Call cancel_breakpoint.
9142 (pipe_to_local_event_queue): Remove special token processing.
9143 (linux_nat_wait): Issue an internal error if a pending status is
9144 found in async mode.
9145
807bddf3
DJ
91462008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
9147
9148 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
9149
c5b48eac
VP
91502008-03-24 Nick Roberts <nickrob@snap.net.nz>
9151 Vladimir Prus <vladimir@codesourcery.com>
9152
680b56ce
AS
9153 * varobj.c (struct varobj_root): New component thread_id.
9154 (varobj_get_thread_id, check_scope): New functions.
9155 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
9156 proper thread if necessary.
9157
680b56ce 9158 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 9159
680b56ce 9160 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 9161
12f4afab
DJ
91622008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
9163
9164 PR gdb/544
9165 * top.c: Revert 2008-03-21 changes.
9166
6208b47d
VP
91672008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9168
9169 * thread.c (make_cleanup_restore_current_thread): Make it
9170 globally visible.
9171 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
9172 * varobj.c (varobj_update): Don't save/restore frame.
9173 (c_value_of_root): Save/restore thread and frame here,
9174 using make_cleanup_restore_current_thread.
9175 * Makefile.in: Update dependecies.
9176
44a67aa7
VP
91772008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9178
680b56ce
AS
9179 * varobj.c (struct varobj_root): Clarify
9180 comment on the frame field.
9181 (varobj_create): Don't set frame if we have no
9182 block.
44a67aa7 9183
b562a0cb
DJ
91842008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9185
9186 PR gdb/544
9187 Suggested by Jan Kratochvil:
9188 * top.c (gdb_rl_operate_and_get_next_completion): Call
9189 rl_redisplay_function.
9190 (gdb_rl_redisplay): New.
9191 (init_main): Set rl_redisplay_function.
9192
ed1bd5f5
JB
91932008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
9194
9195 * aix-thread.c (pdc_read_regs): Fix compiler warning.
9196 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
9197 (store_regs_kernel_thread): Likewise.
9198
b84876c2
PA
91992008-03-21 Pedro Alves <pedro@codesourcery.com>
9200
9201 Linux native async support.
9202
9203 * target.h (struct target_ops): Delete to_async_mask_value and add
9204 to_async_mask.
9205 (target_is_async_p, target_async): Formatting.
9206 (target_async_mask_value): Delete.
9207 (target_async_mask): Delete function declaration, and add new
9208 target macro with the same name.
9209
9210 * target.c (update_current_target): Replace to_async_mask_value by
9211 to_async_mask. Default to_async_mask to return_one.
9212 (target_async_mask): Delete.
9213 (find_default_can_async_p, find_default_is_async_p): New.
9214 (init_dummy_target): register find_default_can_async_p and
9215 find_default_is_async_p on the dummy target.
9216
9217 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
9218 (debug_linux_nat_async): New global.
9219 (show_debug_linux_nat_async): New function.
9220 (linux_nat_async_enabled, linux_nat_async_mask_value)
9221 (linux_nat_event_pipe, linux_nat_num_queued_events)
9222 (linux_nat_async_events_enabled): New globals.
9223 (struct waitpid_result): New struct.
9224 (waitpid_queue): New global.
9225 (queued_waitpid, push_waitpid, drain_queued_events): New.
9226 (my_waitpid): Call queued_waitpid.
9227 (linux_child_follow_fork): Disable async events during the call.
9228 (blocked_mask): Delete.
9229 (sync_sigchld_action, async_sigchld_action): New globals.
9230 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9231 async mode, block events during the call.
9232 (linux_nat_create_inferior): New.
9233 (linux_nat_attach): In sync mode, restore the mask states. In
9234 async mode, wake the event loop immediatelly.
9235 (detach_callback): Drain all queued events of the lwp we're
9236 detaching from.
9237 (linux_nat_detach): Block async mode, and drain events of the main
9238 process.
9239 (linux_nat_resume): If in async mode, mask async events during the
9240 call. If short circuiting, force event loop to wake up. If
9241 resuming, set target_executing, and register target events in the
9242 event loop.
9243 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9244 (linux_nat_wait): In async mode, block events during the call.
9245 Only enable/disable passing SIGINT to the inferior in sync mode.
9246 Get events from local waitpid queue. If no interesting events was
9247 found, return to events loop. Reregister target events in the
9248 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9249 (linux_nat_kill): Disable events on entry.
9250 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9251 here. Detach async mode from the event loop if there are no more
9252 forks available, otherwise leave it on.
9253 (sigchld_handler): Assure this is called only in sync mode.
9254 (linux_async_permitted, linux_async_permitted_1): New globals.
9255 (set_maintenance_linux_async_permitted)
9256 (show_maintenance_linux_async_permitted): New functions.
9257 (linux_nat_is_async_p, linux_nat_can_async_p)
9258 (linux_nat_async_mask): New.
9259 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9260 (get_pending_events, async_sigchld_handler): New.
9261 (linux_nat_async_events): New.
9262 (async_terminal_is_ours): New global.
9263 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9264 (async_client_callback, async_client_context): New.
9265 (linux_nat_async_file_handler, linux_nat_async)
9266 (linux_nat_disable_async, linux_nat_enable_async): New.
9267 (linux_nat_add_target): Register linux_nat_create_inferior,
9268 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9269 linux_nat_async_mask, linux_nat_terminal_inferior and
9270 linux_nat_terminal_ours.
9271 (_initialize_linux_nat): Remove local action variable, and update
9272 code that used it to use sync_sigchld_action. Add new
9273 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9274 set/show command in the maintenance class. Add new "linux-async"
9275 maintenance set/show command. Block SIGCHLD by default. Setup
9276 async_sichld_action, and sync_sigchld_action. Install the default
9277 async mode.
9278 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9279 the cancel signals.
9280
9281 * linux-thread-db.c (re_check_for_thread_db): New.
9282 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9283 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9284 (thread_db_async_mask): New.
9285 (init_thread_db_ops): Register thread_db_can_async_p,
9286 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9287
9288 * remote.c (remote_async_mask_value): New.
9289 (remote_return_zero): New.
9290 (init_remote_ops): Register remote_return_zero as callbacks of
9291 to_can_async_p and to_is_async_p.
9292 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9293 use remote_async_mask_value.
9294 (remote_async_mask): New.
9295 (init_remote_async_ops): Remove to_async_mask_value setting and
9296 register remote_async_mask as to_async_mask callback in
9297 remote_async_ops.
9298
9299 * Makefile.in (linux-nat.o): Update.
9300
17faa917
DJ
93012008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9302
9303 * gdbthread.h (add_thread_with_info): New.
9304 * linux-thread-db.c: Add some documentation.
9305 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9306 (struct private_thread_info): Remove th_valid and ti_valid.
9307 Replace ti with tid.
9308 (thread_get_info_callback): Do not add TID to the new ptid. Do
9309 not cache th or ti.
9310 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9311 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9312 new PTID.
9313 (attach_thread): Handle an already-existing thread. Use
9314 add_thread_with_info. Cache the th and tid.
9315 (detach_thread): Verify that private was set. Remove verbose
9316 argument and printing. Update caller.
9317 (thread_db_detach): Do not adjust inferior_ptid.
9318 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9319 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9320 (thread_db_wait): Do not use lwp_from_thread.
9321 (thread_db_pid_to_str): Use the cached TID.
9322 (thread_db_extra_thread_info): Check that private is set.
9323 (same_ptid_callback): Delete.
9324 (thread_db_get_thread_local_address): Do not use it or check
9325 is_thread. Check that private is set. Assume that the thread
9326 handle is already cached.
9327 (init_thread_db_ops): Remove to_resume and to_kill.
9328 * thread.c (add_thread_with_info): New.
9329 (add_thread): Use it.
9330 * linux-nat.c (find_thread_from_lwp): Delete.
9331 (exit_lwp): Do not use it. Check print_thread_events. Print before
9332 deleting the thread.
9333 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9334 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9335 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9336 printf_unfiltered for thread exits.
9337 * procfs.c (procfs_wait): Likewise.
9338
6214f497
DJ
93392008-03-21 Chris Demetriou <cgd@google.com>
9340
9341 * symtab.c (rbreak_command): Quote symbol name before passing
9342 it to break_command.
9343
63092375
DJ
93442008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9345
9346 * eval.c (evaluate_subexp_for_address): Clarify error message.
9347 Use value_must_coerce_to_target.
9348 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9349 * valops.c (value_assign): Call value_coerce_to_target when
9350 assigning to anything but internalvars. Leave GDB-side arrays
9351 as arrays when assigning to internalvars.
9352 (value_must_coerce_to_target, value_coerce_to_target): New.
9353 (value_coerce_array, value_addr): Call value_coerce_to_target.
9354 (value_array): Create the array in GDB's memory instead of
9355 the inferior's.
9356 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9357 Declare.
9358
b21991b0
DJ
93592008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9360
9361 * top.c (quit_confirm): Warn that we will kill the program.
9362
49a834f9
PA
93632008-03-19 Pedro Alves <pedro@codesourcery.com>
9364
9365 * inflow.c (terminal_ours_1): Guard access to
9366 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9367
ae0d2f24
UW
93682008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9369 Jim Blandy <jimb@codesourcery.com>
9370 Daniel Jacobowitz <drow@false.org>
9371
9372 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9373 (dwarf2_read_address): Update prototype.
9374
9375 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9376 (signed_address_type): Likewise.
9377 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9378 (execute_stack_op): Update calls to unsigned_address_type,
9379 signed_address_type and dwarf2_read_address. Fix implementation
9380 of DW_OP_deref_size.
9381
9382 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9383 (dwarf2_per_cu_addr_size): Likewise.
9384 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9385 (struct dwarf2_loclist_baton): Likewise.
9386
9387 * dwarf2loc.c (find_location_expression): Update calls to
9388 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9389 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9390 (locexpr_describe_location): Likewise.
9391 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9392 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9393 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9394 to dwarf2_per_cu_addr_size (per_cu).
9395 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9396 (loclist_read_variable): Likewise.
9397 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9398
9399 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9400 instead of baton->objfile.
9401 (dwarf2_per_cu_obfile): New function.
9402 (dwarf2_per_cu_addr_size): Likewise.
9403
9404 * dwarf2-frame.c (struct comp_unit): Move higher.
9405 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9406 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9407 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9408 parameter by using fde->eh_frame_p. Use read_encoded_value
9409 to implement DW_CFA_set_loc.
9410 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9411 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9412 execute_stack_op and execute_cfa_program.
9413 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9414 (size_of_encoded_value): Remove.
9415 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9416 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9417 (add_cie): Set cie->unit backlink.
9418 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9419 read_encoded_value.
9420 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9421
1c8201d1
MD
94222008-03-17 Markus Deuling <deuling@de.ibm.com>
9423
9424 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9425 gdbarch_bfd_arch_info.
9426
46bba1ef
JB
94272008-03-17 Joel Brobecker <brobecker@adacore.com>
9428
9429 * aix-thread.c (pdc_read_regs): Minor reformatting.
9430
0bcd3e20
VP
94312008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9432
9433 * thread.c (print_thread_info): Don't insist
9434 on having current thread if there are no
9435 threads at all.
9436
9356cf8d
PA
94372008-03-17 Pedro Alves <pedro@codesourcery.com>
9438
9439 * infcmd.c (attach_command_post_wait)
9440 (attach_command_continuation): New.
9441 (attach_command): Support background async execution, and async
9442 execution in synchronous mode.
9443
5c3ce3f7
DJ
94442008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9445
9446 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9447 * symmisc.c (dump_symtab_1): Likewise.
9448 * wrapper.c (gdb_value_struct_elt): Likewise.
9449
fa2c6a57
PA
94502008-03-17 Pedro Alves <pedro@codesourcery.com>
9451
9452 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9453
02f3fc28
PA
94542008-03-17 Pedro Alves <pedro@codesourcery.com>
9455
9456 * linux-nat.c (linux_nat_filter_event): New, refactored from
9457 linux_nat_wait.
9458 (linux_nat_wait): Call linux_nat_filter_event.
9459
2f77b315
UW
94602008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9461
9462 * top.c (execute_command): Fix uninitialized variable error.
9463
f01be29b
NH
94642008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9465
680b56ce
AS
9466 * Makefile.in (amd64nbsd-nat.o): New dependency.
9467 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9468 (_initialize_amd64nbsd_nat): Update target vector to use
9469 nbsd_pid_to_exec_file.
9470 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9471
6cf32704
VP
94722008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9473
9474 Remove ignoring leading exec events code.
680b56ce
AS
9475 * fork-child.c (startup_inferior): Do not set
9476 inferior_ignoring_leading_exec_events.
9477 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9478 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9479 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9480 (handle_inferior_event): Remove code for ignoring leading exec
9481 events.
9482 * target.c (update_current_target): Do not inherit, or default,
9483 to_reported_exec_events_per_exec_call.
9484 (debug_to_reported_exec_events_per_exec_call): Remove.
9485 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9486 * target.h (target_reported_exec_events_per_exec_call): Remove.
9487 (struct target): Remove the to_reported_exec_events_per_exec_call
9488 field.
6cf32704 9489
8e8901c5
VP
94902008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9491
9492 Implement -thread-info.
680b56ce 9493 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9494
680b56ce
AS
9495 * thread.c (print_thread_info): New, extracted
9496 from info_threads_command and adjusted to
9497 work for CLI and MI.
9498 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9499 * Makefile.in: Update dependencies.
9500
680b56ce
AS
9501 * mi/mi-cmds.c (mi_cmds): Specify a handler
9502 for -thread-info.
9503 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9504 * mi/mi-main.c (mi_cmd_thread_info): New.
9505 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9506
7d1e6fb8
KB
95072008-03-14 Kevin Buettner <kevinb@redhat.com>
9508
9509 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9510 to decide whether to match instruction patterns using "sw" and "sd".
9511
89113898
PA
95122008-03-14 Pedro Alves <pedro@codesourcery.com>
9513
9514 * infcmd.c (jump_command): Postpone disabling stdin until after
9515 the possible query.
9516
64a0ac84
PA
95172008-03-14 Pedro Alves <pedro@codesourcery.com>
9518
9519 * inflow.c (gdb_getpgrp): New.
9520 (gdb_has_a_terminal): Use get_getpgrp.
9521 (terminal_ours_1): If attach_flag is set, don't refetch
9522 inferior_process_group.
9523
1fddbabb
PA
95242008-03-14 Pedro Alves <pedro@codesourcery.com>
9525
9526 * features/library-list.dtd: Allow "section" elements as children
9527 of "library". Add "section" element and describe its attributes.
9528
9529 * solib-target.c (struct lm_info): Add section_bases member.
9530 (library_list_start_segment): Error out if seen a section element.
9531 (library_list_start_section): New.
9532 (library_list_end_library): New.
9533 (solib_target_free_library_list): Free section_bases.
9534 (section_attributes): New.
9535 (library_children): Make "segment" optional. Add "section" child.
9536 (library_list_children): Register library_list_end_library.
9537 (solib_target_relocate_section_addresses): Handle section bases.
9538
9539 * NEWS: Mention new qXfer:libraries:read section offsets support.
9540
712af3be
VP
95412008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9542
9543 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9544 (make_exec_error_cleanup): Remove declarations.
9545 * utils.c (exec_error_cleanup_chain): Remove.
9546 (do_exec_error_cleanups, discard_exec_error_cleanups)
9547 (make_exec_error_cleanup): Remove.
9548 * event-loop.c (start_event_loop): Adjust call to
9549 async_enable_stdin.
9550 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9551 (async_disable_stdin): Don't register async_enable_stdin via
9552 cleanup.
9553 * inf-loop.c (inferior_event_handler): Don't
9554 call do_exec_error_cleanups. Call async_enable_stdin instead.
9555 * event-loop.c (start_event_loop): Adjust call to
9556 async_enable_stdin.
9557 * tui/tui-interp.c (tui_command_loop): Adjust call to
9558 async_enable_stdin.
9559
32c1e744
VP
95602008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9561
9562 Async mode fixes.
680b56ce
AS
9563 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9564 * breakpoint.c (bpstat_do_actions): In async mode,
9565 don't jump to top expecting stop_bpstat to be already
9566 updated.
9567 * event-loop.c (start_event_loop): Call async_enable_stdin
9568 on exception.
9569 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9570 is not set.
9571 (command_handler): Do not setup continuation here.
9572 (command_line_handler_continuation): Move to...
9573 * top.c (command_line_handler_continuation): ... here.
9574 (execute_command): In async mode, register continuation.
9575 Don't check frame's language in running in async mode.
9576 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9577 * inf-loop.c (complete_execution): Inline into...
9578 (inferior_event_handler): ... here. Clear target_executing before
9579 doing any cleanups. Don't try to show prompt if the target was
9580 resumed.
9581 * infcmd.c (signal_command): Add support for async mode.
9582 (finish_command): Only add continuation if the target was
9583 successfully resumed.
9584 * remote.c (init_async_opts): Register to_get_thread_local_address
9585 handler.
9586 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9587 with sync_execution.
9588 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9589 on exception.
32c1e744 9590
c04ea773
DJ
95912008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9592
9593 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9594 * exec.c (exec_bfd_mtime): Define.
9595 (exec_close): Clear it.
9596 (exec_file_attach): Set it.
9597 * gdbcore.h (exec_bfd_mtime): Declare.
9598 * source.c (find_source_lines): Do not use bfd_get_mtime.
9599
952dc227
VP
96002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9601
9602 * top.c (simplified_command_loop): Remove.
9603
4cf46804
VP
96042008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9605
9606 Remove unused remote.c hooks.
680b56ce
AS
9607 * remote.c (deprecated_target_resume_hook)
9608 (deprecated_target_wait_loop_hook): Remove.
9609 (remote_resume): Do not call deprecated_target_resume_hook.
9610 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9611 (remote_async_wait): Likewise.
4cf46804 9612
683f2885
VP
96132008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9614
9615 Implement MI notification for new threads.
680b56ce
AS
9616 * doc/observer.texi (new_thread): Document.
9617 * observer.sh: Forward declare struct thread_info.
9618 * thread.c (add_thread): Notify observer.
9619
9620 * interps.h (interp_init_ftype): New parameter
9621 top_level.
9622 (interp_set): Likewise.
9623 (top_level_interpreter_data): Declare.
9624 * interps.c (interp_set): New parameter top_level.
9625 Pass it to interpreter's init function. Remember
9626 top level interpreter.
9627 (interpreter_exec_cmd): Adjust.
9628 (top_level_interpreter_data): New.
9629 * main.c (captured_main): Pass 1 for top_level
9630 parameter of interp_set.
683f2885 9631 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9632 parameter top_level.
9633 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9634
680b56ce
AS
9635 * mi/mi-interp.c (mi_new_thread): New.
9636 (mi_interpreter_init): If top level, register
9637 observer for new threads.
683f2885 9638
680b56ce 9639 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9640
ff9b3928
PA
96412008-03-14 Pedro Alves <pedro@codesourcery.com>
9642
9643 * top.c (execute_command): Disable break and stop
9644 commands in async mode.
9645
b18392ef
PA
96462008-03-14 Pedro Alves <pedro@codesourcery.com>
9647
9648 revert:
9649 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9650 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9651 Call target_stop in the INF_QUIT_REQ case.
9652 * Makefile.in (inf-loop.o): Update.
9653
0aca9f07
PA
96542008-03-14 Pedro Alves <pedro@codesourcery.com>
9655
9656 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9657 Call target_stop in the INF_QUIT_REQ case.
9658 * Makefile.in (inf-loop.o): Update.
9659
0b4e556c
PA
96602008-03-14 Pedro Alves <pedro@codesourcery.com>
9661
9662 * top.c (execute_command): Enable break, info and interrupt
9663 commands in async mode.
9664
8defab1a
DJ
96652008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9666 Daniel Jacobowitz <dan@codesourcery.com>
9667
9668 * breakpoint.h (breakpoint_restore_shadows): New
9669 declaration.
9670 * breakpoint.c (breakpoint_restore_shadows): New.
9671 (read_memory_nobpt): Delete.
9672 * gdbcore.h (read_memory_nobpt): Delete declaration.
9673 * target.c (memory_xfer_partial): Call
9674 breakpoint_restore_shadows.
9675 (restore_show_memory_breakpoints)
2da16c8c 9676 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9677 (show_memory_breakpoints): New.
2da16c8c 9678 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9679 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9680 Make sure we see memory breakpoints when checking if
9681 breakpoint is still there.
9682 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9683 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9684 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9685 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9686
fd532e2e
PA
96872008-03-12 Pedro Alves <pedro@codesourcery.com>
9688
9689 * thread.c (add_thread): Use printf_unfiltered to print.
9690
f749779f 96912008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9692
9693 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9694 that is true only on x86-solaris and x86_64-solaris.
9695 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9696 with proc_get_LDT_entry.
9697
96982008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9699
9700 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9701 * config.in, configure: Regenerate.
9702 * fork-child.c (fork_inferior): Call create_tty_session.
9703 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9704 (create_tty_session): New function.
9705 * terminal.h: Declare create_tty_session.
9706
4fbb74a6
AM
97072008-03-12 Alan Modra <amodra@bigpond.net.au>
9708
9709 PR 5900
9710 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9711 * mipsread.c: Include elf/internal.h.
9712 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9713 to internal range.
9714
20a6ec49
MD
97152008-03-11 Markus Deuling <deuling@de.ibm.com>
9716
9717 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9718 to get at the current architecture and at the target specific vector.
9719 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9720 remove define of I387_ST0_REGNUM.
9721
9722 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9723
9724 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9725 get at the current architecture
9726 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9727 parameter.
9728
9729 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9730 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9731
9732 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9733 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9734 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9735
9736 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9737 at the target specific vector.
9738
9739 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9740 architecture. Use gdbarch_tdep to get at the target specific vector.
9741
9742 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9743 update caller. Use gdbarch_tdep to get at the target specific vector.
9744
9745 (i386_register_to_value: Use get_frame_arch to get at the current
9746 architecture.
9747
9748 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9749 parameter.
9750
9751 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9752 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9753 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9754 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9755
9756 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9757 undef's.
9758
9759 (i387_convert_register_p, i387_register_to_value,
9760 i387_value_to_register): Update call for i386_fp_regnum_p.
9761
9762 * i387-tdep.h: Remove comment.
9763 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9764 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9765 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9766 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9767 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9768
ccd213ac
DJ
97692008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9770
9771 * Makefile.in (fork-child.o): Update.
9772 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9773 argument. Gather all gdbserver features together.
9774 * fork-child.c (exec_wrapper): New variable.
9775 (fork_inferior): Use it.
9776 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9777 (unset_exec_wrapper_command, _initialize_fork_child): New.
9778
97792008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9780
9781 * source.c (directory_command): Modify the determination of
9782 condition of terminal "from_tty".
9783
22566fbd
DJ
97842008-03-10 Matt Rice <ratmice@gmail.com>
9785
9786 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9787
9971ac47
UW
97882008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9789
9790 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9791 of the data passing to strtoulst function.
9792 (info_spu_signal_command): Likewise.
9793
835670cf
VP
97942008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9795
9796 * mi/mi-interp.c (mi_command_loop): Remove
9797 commented-out code.
680b56ce 9798
be86555c
JB
97992008-03-07 Joel Brobecker <brobecker@adacore.com>
9800
9801 * remote.c (extended_remote_attach_1): Make local variable pid an int
9802 instead of a pid_t.
9803
4d7b2d5b
JB
98042008-03-07 Joel Brobecker <brobecker@adacore.com>
9805
9806 * solib-svr4.c (svr4_same_1): New function, originally extracted
9807 from svr4_same and expanded to handle the sparc64 case.
9808 (svr4_same): Move up and reimplement using svr4_same_1.
9809 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9810
61fed90e
RR
98112008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9812
9813 * MAINTAINERS: Move self to Paper trail.
9814
b803fb0f
DJ
98152008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9816
9817 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9818 * event-loop.c (call_async_signal_handler): New.
9819 * event-loop.h (call_async_signal_handler)
9820 (gdb_call_async_signal_handler): Declare.
9821 (mark_async_signal_handler): Add comments.
9822 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9823 * mingw-hdep.c (sigint_event, sigint_handler): New.
9824 (gdb_select): Use them. Wait for the readline signal handler
9825 to finish.
9826 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9827 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9828 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9829 New.
9830 (remote_fileio_ctrl_c_signal_handler): Use
9831 gdb_call_async_signal_handler.
9832 (initialize_remote_fileio): Initialize sigint_fileio_token.
9833 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9834 not initialize tokens here.
9835 (handle_remote_sigint_twice): Likewise. Reinstall
9836 handle_remote_sigint.
9837 (async_remote_interrupt_twice): Just call interrupt_query.
9838 (cleanup_sigint_signal_handler): Do not delete tokens.
9839 (remote_interrupt, remote_interrupt_twice): Use
9840 gdb_call_async_signal_handler.
9841 (interrupt_query): Reinstall the default signal handler.
9842 (_initialize_remote): Initialize tokens here.
9843
8f4d54ed
JB
98442008-03-04 Joel Brobecker <brobecker@adacore.com>
9845
9846 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9847 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9848 Change the type of the lr register to code_ptr.
9849 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9850 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9851 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9852 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9853 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9854 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9855 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9856
95ece428
JW
98572008-03-03 James E. Wilson <wilson@tuliptree.org>
9858
9859 * MAINTAINERS: Update my email address.
9860
686a5eed
KS
98612008-03-03 Keith Seitz <keiths@redhat.com>
9862
9863 From Dave Murphy <davem@devkitpro.org>:
9864 * configure.ac: Set tcl configdir to win under mingw.
9865 * configure: Regenerate.
9866
fa4727a6
DJ
98672008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9868
9869 * breakpoint.c (fetch_watchpoint_value): New function.
9870 (update_watchpoint): Set and clear val_valid. Use
9871 fetch_watchpoint_value. Handle unreadable values on the
9872 value chain. Correct check for user-requested array watchpoints.
9873 (breakpoint_init_inferior): Clear val_valid.
9874 (watchpoint_value_print): New function.
9875 (print_it_typical): Use it. Do not free or clear old_val. Print
9876 watchpoints even if old_val == NULL.
9877 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9878 becoming readable or unreadable.
9879 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9880 (do_enable_watchpoint): Likewise.
9881 * breakpoint.h (struct breakpoint): Update comment for val. Add
9882 val_valid.
9883 * NEWS: Mention watchpoints on inaccessible memory.
9884
9b7d9019 98852008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9886
9887 * Makefile.in (i386-nat.o): Update.
9888 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9889 i386_use_watchpoints.
9890 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9891 i386_use_watchpoints.
9892 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9893 (i386_stopped_by_watchpoint): Update call.
9894 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9895 * config/i386/nm-i386.h: Conditionalize definitions on
9896 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9897 (i386_use_watchpoints): Declare.
9898 (i386_stopped_data_address): Update.
9899 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9900 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9901
c24d7425 99022008-02-29 Joel Brobecker <brobecker@adacore.com>
9903
9904 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9905 * version.in: Bump version to 6.8.50.20080229-cvs.
9906
a7dfd010
MD
99072008-02-28 Markus Deuling <deuling@de.ibm.com>
9908
9909 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9910 properly.
9911
258c00cc
TT
99122008-02-28 Tom Tromey <tromey@redhat.com>
9913
9914 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9915
8edfe269
DJ
99162008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9917
9918 * infcmd.c (kill_if_already_running): Make static. Use
9919 target_require_runnable.
9920 * target.c (target_require_runnable): New.
9921 * target.h (target_require_runnable): Declare.
9922
0d6ba1b1
DJ
99232008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9924
9925 * frame.c (reinit_frame_cache): Only annotate if frames were
9926 previously valid.
9927
6fe305f7
UW
99282008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9929
9930 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9931 * regformats/reg-ppc64.dat: Likewise.
9932
9b4b61c8
UW
99332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9934
9935 * features/Makefile (%.dat): Emit xmltarget statement.
9936
9937 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9938 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9939
9940 * regformats/arm-with-iwmmxt.dat: Regenerate.
9941 * regformats/mips64-linux.dat: Regenerate.
9942 * regformats/mips-linux.dat: Regenerate.
9943 * regformats/rs6000/powerpc-32.dat: Regenerate.
9944 * regformats/rs6000/powerpc-64.dat: Regenerate.
9945 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9946
9947 * regformats/reg-arm.dat: Add xmlarch statement.
9948 * regformats/reg-i386.dat: Likewise.
9949 * regformats/reg-i386-linux.dat: Likewise.
9950 * regformats/reg-x86-64-linux.dat: Likewise.
9951 * regformats/reg-spu.dat: Likewise.
9952
20b4711e
DJ
99532008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9954
9955 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9956 an error.
9957
1843f87b
DJ
99582008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9959
9960 * utils.c (debug_timestamp): New.
9961 (vfprintf_unfiltered): Print timestamps if requested.
9962 (show_debug_timestamp): New.
9963 (initialize_utils): Register "set debug timestamp".
9964 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9965
6a048695
JB
99662008-02-27 Joel Brobecker <brobecker@adacore.com>
9967
9968 * breakpoint.c (skip_prologue_sal): New function.
9969 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9970 computed from a line number.
9971
0b998f49
JB
99722008-02-27 Joel Brobecker <brobecker@adacore.com>
9973
9974 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9975 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9976 Set PC register type to "code_ptr".
9977 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9978 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9979 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9980 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9981 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9982 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9983 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9984 Regenerate.
9985
d05b4ac3
UW
99862008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9987
9988 * regformats/regdat.sh: Rename init_registers function in
9989 generated file to init_registers_${name}.
9990
9991 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9992 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9993 * regformats/reg-s390x.dat: Set "name" to s390x.
9994
a5d9d57d
DJ
99952008-02-26 Greg Law <glaw@undo-software.com>
9996
9997 * regcache.c (registers_changed): Call reinit_frame_cache.
9998
e25c958c
DJ
99992008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
10000
10001 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
10002 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
10003 and svr4_fetch_objfile_link_map.
10004 * Makefile.in (sh-linux-tdep.o): Update.
10005
5daa78cc
TJB
100062008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10007
10008 * amd64-tdep.c (amd64_classify): Add support for decimal float
10009 types.
10010 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
10011 use the struct return convention.
10012
54e52265
VP
100132008-02-26 Nick Roberts <nickrob@snap.net.nz>
10014
10015 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
10016 to old format. Discard breakpoint address if shared library is
10017 unloaded.
10018 (breakpoint_1): Adjust formatting of table header accordingly.
10019
d8f2712d
VP
100202008-02-25 Vladimir Prus <vladimir@codesourcery.com>
10021
10022 * remote.c (remote_get_threadlist): If the response
10023 is empty, don't try to parse it.
10024
05ce04a4
VP
100252008-02-23 Vladimir Prus <vladimir@codesourcery.com>
10026
10027 Unbreak 'target async'.
680b56ce
AS
10028 * serial.c (serial_async): Set the
10029 handler function before enabling async
10030 mode.
05ce04a4 10031
b36ec657
DJ
100322008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
10033
10034 * solib-svr4.c (enable_break): Convert r_brk to a code address.
10035
df7df359
PA
100362008-02-21 Pedro Alves <pedro@codesourcery.com>
10037
10038 * remote.c (extended_remote_attach_1): Set attach_flag.
10039 (extended_remote_create_inferior_1): Clear attach_flag.
10040
7cd25cfc
DJ
100412008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10042
10043 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10044 r_brk_offset.
10045 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
10046 * solib-svr4.c (solib_svr4_r_brk): New.
10047 (open_symbol_file_object, svr4_current_sos): Always check the
10048 debug base.
10049 (svr4_fetch_objfile_link_map): Do not set debug_base.
10050 (enable_break): Use r_brk if it is set.
10051 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
10052 (svr4_lp64_fetch_link_map_offsets): Likewise.
10053 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
10054
07ea644b
MD
100552008-02-20 Markus Deuling <deuling@de.ibm.com>
10056 Mark Kettenis <kettenis@gnu.org>
10057
10058 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
10059 trad_frame_saved_reg.
680b56ce 10060 (trad-frame.h): New include.
07ea644b
MD
10061
10062 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 10063 instead of frame_obstack_zalloc.
07ea644b
MD
10064 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
10065
680b56ce 10066 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 10067
40887e1a
MD
100682008-02-20 Markus Deuling <deuling@de.ibm.com>
10069
10070 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
10071 from disassemble_info instead of gdbarch_byte_order.
10072
10073 * mips-tdep.c (gdb_print_insn_mips): Likewise.
10074 * arm-tdep.c (gdb_print_insn_arm): Likewise.
10075
ae4b2284
MD
100762008-02-20 Markus Deuling <deuling@de.ibm.com>
10077
10078 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
10079 gdbarch as parameter.
10080
10081 * gdbarch.{c,h}: Regenerate.
10082
10083 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10084 parameter.
10085 * mem-break.c (default_memory_insert_breakpoint)
10086 (default_memory_remove_breakpoint): Likewise.
10087 * target.h (default_memory_remove_breakpoint)
10088 (default_memory_insert_breakpoint): Likewise.
10089
10090 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10091 parameter. Replace current_gdbarch by gdbarch.
10092 * m32r-tdep.c (m32r_memory_insert_breakpoint)
10093 (m32r_memory_remove_breakpoint): Likewise.
10094
d9bf65d5
DJ
100952008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
10096
10097 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
10098
b93b6ca7
JB
100992008-02-19 Joel Brobecker <brobecker@adacore.com>
10100
10101 * NEWS: Add entry describing Add support improvements.
10102
4ed226fe
MD
101032008-02-18 Markus Deuling <deuling@de.ibm.com>
10104
10105 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
10106 M68K_FP0_REGNUM.
10107
caaa79ad
MD
101082008-02-18 Markus Deuling <deuling@de.ibm.com>
10109
10110 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
10111 register_offset_hack anymore.
10112
10113 * regcache.{c,h} (register_offset_hack): Remove.
10114
e38c262f
MD
101152008-02-18 Markus Deuling <deuling@de.ibm.com>
10116
10117 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
10118
10119 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
10120 current_gdbarch by gdbarch.
10121 (hppa64_hpux_find_global_pointer): Likewise.
10122 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
10123 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
10124 find_global_pointer.
10125
10126 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
10127 parameter.
10128 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
10129
10130 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
10131 of gdbarch_num_regs.
10132
10133 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 10134 replace current_gdbarch by gdbarch.
e38c262f
MD
10135 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
10136
206988c4
MD
101372008-02-18 Markus Deuling <deuling@de.ibm.com>
10138
10139 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
10140 and replace current_gdbarch by gdbarch.
10141
10142 (store_register): Update call for exec_one_dummy_insn.
10143 (fetch_register, store_register): Update call of regmap.
10144
10145 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
10146 parameter and replace current_gdbarch by gdbarch.
680b56ce 10147
206988c4
MD
10148 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
10149 the current architecture. Update call for getregs_supplies and
10150 getfpregs_supplies.
10151 (ppcnbsd_fetch_inferior_registers): Likewise.
10152
680b56ce 10153 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
10154 replace current_gdbarch by gdbarch.
10155 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
10156 get_regcache_arch to get at the current architecture. Update call for
10157 getfpregs_supplies.
10158
f642be6b
MD
101592008-02-18 Markus Deuling <deuling@de.ibm.com>
10160
10161 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 10162 variables.
f642be6b 10163
b1f2bf01
MD
101642008-02-15 Markus Deuling <deuling@de.ibm.com>
10165
10166 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
10167
ee163bf5
VP
101682008-02-14 Vladimir Prus <vladimir@codesourcery.com>
10169
10170 * NEWS: Mention pending breakpints in MI.
680b56ce 10171
f6fbcbf9
MD
101722008-02-14 Markus Deuling <deuling@de.ibm.com>
10173
10174 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
10175
36af4ef6
MD
101762008-02-13 Markus Deuling <deuling@de.ibm.com>
10177
10178 Add script to build and test GDB using enable-targets=all.
10179
10180 * gdb_buildall.sh: New file.
10181
94a0e877
MG
101822008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
10183
10184 * NEWS (New native configurations): Xtensa GNU/Linux.
10185 (New targets): Xtensa GNU/Linux.
10186 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
10187 xtensa-linux-tdep.o
10188 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
10189 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
10190 * configure.tgt (xtensa*-*-linux*): New entry.
10191 * xtensa-config.c (xtensa_tdep): New variable.
10192 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
10193 (rmap): Change format based on new macro XTREG.
10194 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
10195 * xtensa-linux-nat.c: New.
10196 * xtensa-linux-tdep.c: New.
10197 * xtensa-xtregs.c: New.
10198 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
10199 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
10200 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
10201 (xtensa_register_t): New field coprocessor.
10202 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
10203 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
10204 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
10205 Update to handle privileged registers.
10206 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
10207 (xtensa_push_dummy_call): Set windowstart register correctly.
10208 (call0_analyze_prologue): Initialize xtensa_default_isa.
10209 (xtensa_derive_tdep): New.
10210 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
10211 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
10212 Call xtensa_derive_tdep().
10213 * config/xtensa/linux.mh: New.
10214 * regformats/reg-xtensa.dat: New.
10215
b7ee1b0a 102162008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
10217
10218 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
10219 (filenames.h): New include.
10220 * Makefile.in (corelow.o): Add dependency for filenames.h.
10221
8da2a1df
DJ
102222008-02-08 Doug Evans <dje@google.com>
10223
10224 * source.c (find_and_open_source): Always rewrite absolute filenames.
10225
776592bf
DE
102262008-02-07 Doug Evans <dje@google.com>
10227
10228 * breakpoint.c: #include "hashtab.h".
10229 (ambiguous_names_p): New fn.
10230 (update_breakpoint_locations): When restoring bp enable status, don't
10231 compare function names if any functions have same name.
10232 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10233
d6565258
JB
102342008-02-07 Joel Brobecker <brobecker@adacore.com>
10235
10236 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10237 instead of just a VEC*. Update use of SV.
10238 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10239
6d53d0af
JB
102402007-02-07 Joel Brobecker <brobecker@adacore.com>
10241
10242 * NEWS: Put all new commands since gdb-6.7 together.
10243
2ba95b9b
JB
102442007-02-07 Joel Brobecker <brobecker@adacore.com>
10245
10246 * ada-lang.c: #include "vec.h".
10247 (struct string_vector, new_string_vector, string_vector_append):
10248 Delete.
10249 (char_ptr): New typedef.
10250 (DEF_VEC_P (char_ptr)): New VEC type.
10251 (symbol_completion_add): Update profile to take the new VEC type
10252 instead of the old string_vector structure. Update code accordingly.
10253 (ada_make_symbol_completion_list): Use the new VEC type instead of
10254 the old string_vector structure, and update the code accordingly.
10255 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10256
4ae0885a
PM
102572008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10258
10259 * p-exp.y: Set current_type in missing places.
10260 (leftdiv_is_integer): New static variable.
10261 Typecast right operand of BINOP_DIV to long_double if both operands
10262 are integers.
10263
06b1d59c
MR
102642008-02-06 Maciej W. Rozycki <macro@mips.com>
10265
10266 * remote-mips.c (set_breakpoint): Rename to...
10267 (mips_set_breakpoint): ... this.
10268 (clear_breakpoint): Rename to...
10269 (mips_clear_breakpoint): ... this.
10270 (common_breakpoint): Rename to...
10271 (mips_common_breakpoint): ... this.
10272 (check_lsi_error): Rename to...
10273 (mips_check_lsi_error): ... this.
10274
41d27058
JB
102752007-02-05 Joel Brobecker <brobecker@adacore.com>
10276
10277 * language.h (struct language_defn): Add new field
10278 la_make_symbol_completion_list.
10279 * symtab.c (default_make_symbol_completion_list): Renames
10280 make_symbol_completion_list.
10281 (make_symbol_completion_list): New function.
10282 * symtab.h (default_make_symbol_completion_list): Add declaration.
10283 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10284 (auto_language, local_language): Likewise.
10285 * objc-lang.c (objc_language_defn): Likewise.
10286 * scm-lang.c (scm_language_defn): Likewise.
10287 * m2-lang.c (m2_language_defn): Likewise.
10288 * f-lang.c (f_language_defn): Likewise.
10289 * jv-lang.c (java_language_defn): Likewise.
10290 * p-lang.c (pascal_language_defn): Likewise.
10291 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10292 (minimal_language_defn): Likewise.
10293 * ada-lang.c (struct string_vector): New structure.
10294 (new_string_vector, string_vector_append, ada_unqualified_name)
10295 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10296 (ada_make_symbol_completion_list): New functions.
10297 (ada_language_defn): Set la_make_symbol_completion_list.
10298 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10299 this function is static.
10300
ee3a2f01
KB
103012008-02-05 Kevin Buettner <kevinb@redhat.com>
10302
10303 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10304 to account for call site optimizations.
10305
d844e34b
JB
103062008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10307
10308 * tracepoint.c (read_actions): Handle end-of-text indicator
10309 in action list properly. (Committed by Jim Blandy)
10310
02e4669d
JB
103112008-02-05 Jim Blandy <jimb@red-bean.com>
10312
10313 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10314 pseudoregister, not an internal error.
85ecb32b 10315 Reported by: Andrzej Zaborowski
02e4669d 10316
c39c8256
VP
103172008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10318
10319 * varobj.c (c_value_of_variable): Use xstrdup.
10320
ae7d22a6
VP
103212008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10322
10323 Update stored rendition of varobj value when format changes.
10324 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10325 print_value.
10326 (c_value_of_variable): Return print_value.
ae7d22a6 10327
81fe8080
DE
103282008-02-03 Doug Evans <dje@google.com>
10329
301f0ecf
DE
10330 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10331 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10332 * valops.c (value_one): New function.
10333 * value.h (value_one): Declare.
10334
10335 Fix argument promotion for binary arithmetic ops for C.
10336 * valarith.c (unop_result_type): New fn.
10337 (binop_result_type): New fn.
10338 (value_binop): Move result type computation to binop_result_type.
10339 (value_pos, value_neg, value_complement): Move result type
10340 computation to unop_result_type.
10341
81fe8080
DE
10342 PR 2384
10343 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10344 Return basetype, fieldno if found. All callers updated.
10345 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10346 objfile.
10347 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10348 * symfile.h (fill_in_vptr_fieldno): Delete.
10349
41808ebe
DE
103502008-02-02 Doug Evans <dje@google.com>
10351
f8597ac3
DE
10352 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10353
41808ebe
DE
10354 * typeprint.c (*): Whitespace cleanup.
10355
f964a756
MK
103562008-02-02 Mark Kettenis <kettenis@gnu.org>
10357 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10358 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10359
10360 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10361 don't fit into registerson the stack the way GCC does.
10362
b06ead72
JB
103632008-02-01 Joel Brobecker <brobecker@adacore.com>
10364
10365 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10366 hash table for Ada symbols. Just store the linkage name as is,
10367 and leave the demangled_name as NULL.
10368
2cfa0c8d
JB
103692007-02-01 Joel Brobecker <brobecker@adacore.com>
10370
10371 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10372 in the global scope.
10373 (new_symbol): Likewise.
10374
98deb0da 103752008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10376
10377 * breakpoint.c (break_command_1): Return void.
10378 (break_command_really): Return void. Rethrow
10379 exceptions instead of returning.
10380 (gdb_breakpoint): Remove the error_message parameter.
10381 Return void. Rename to set_breakpoint.
10382 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10383 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10384 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10385 event hooks even if exception is thrown. Adjust to
10386 gdb_breakpoint interface changes.
10387
98deb0da 10388
ce0451ad
TJB
103892008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10390
10391 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10392 float in both first and second word in the doubleword, to support
10393 old and new ABIs.
10394
723a2275
VP
103952008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10396
10397 Properly rethrow exception. This fixes errors
10398 about non-existent functions for -break-insert.
680b56ce
AS
10399 * breakpoint.c (break_command_really): Use throw_exception
10400 for rethrowing. If rethrowing, don't print the exception.
723a2275 10401
d64a946d
TJB
104022008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10403
10404 * NEWS: Mention Decimal Floating Point support.
10405
02b156f5
JB
104062008-01-31 Joel Brobecker <brobecker@adacore.com>
10407
10408 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10409 value type to builtin_type_void_func_ptr.
10410
a16b8bcd
UW
104112008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10412
10413 * s390-tdep.c (is_float_singleton, is_float_like,
10414 alignment_of, s390_return_value): Make checks for
10415 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10416
f949c649
TJB
104172008-01-31 Luis Machado <luisgpm@br.ibm.com>
10418 Thiago Jung Bauermann <bauerman@br.ibm.com>
10419
10420 * infcmd.c (default_print_registers_info): Also print hex
10421 raw contents for TYPE_CODE_DECFLOAT registers.
10422 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10423 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10424 (rs6000_register_name): Add support for DFP pseudo-registers.
10425 (rs6000_pseudo_register_type): Likewise.
10426 rs6000_pseudo_register_reggroup_p): Likewise.
10427 (ppc_pseudo_register_read): New function.
10428 (ppc_pseudo_register_write): Likewise.
10429 (rs6000_pseudo_register_read): Likewise.
10430 (rs6000_pseudo_register_write): Likewise.
10431 (e500_pseudo_register_read): Move checks to
10432 rs6000_pseudo_register_read.
10433 (e500_pseudo_register_write): Move checks to
10434 rs6000_pseudo_register_write.
10435 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10436 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10437 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10438 num_pseudo_regs to account for DFP pseudo regs.
10439
5a9e69ba
TJB
104402008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10441
10442 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10443 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10444 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10445 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10446 e500_pseudo_register_read, e500_pseudo_register_write): Use
10447 IS_SPE_PSEUDOREG macro.
10448 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10449 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10450 Remove initialization of tdep->ppc_ev31_regnum.
10451
4e885b20
JB
104522008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10453
10454 * printcmd.c (print_formatted): Handle references as for unformatted
10455 prints.
10456
80f064a2
JB
104572008-01-30 Joel Brobecker <brobecker@adacore.com>
10458
10459 * eval.c (evaluate_subexp_standard): Add handling of user
10460 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10461
9b3442ee
PM
104622008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10463
10464 * eval.c (evaluate_subexp_standard): Support
10465 BINOP_INTDIV opcode.
10466
d118ef87
PH
104672008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10468
10469 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10470 BINOP_MAX cases.
10471 For BINOP_EXP, use length and signedness of left operand only for
10472 result, as for shifts.
10473 For integral operands to BINOP_EXP, use new integer_pow and
10474 uinteger_pow functions so as to get full range of results.
10475 (integer_pow): New function.
10476 (uinteger_pow): New function.
10477
d56d46f5
VP
104782008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10479
10480 Use vector for varobj_list_children interface.
680b56ce
AS
10481 * gdb/varobj.c (varobj_list_children): Return vector
10482 of varobjs.
10483 * gdb/varobj.h (varobj_list_children): Adjust
10484 prototype.
10485 (varobj_p): Declare. Declare vector thereof.
10486 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10487 for varobj_list_children change.
d56d46f5
VP
10488 * Makefile.in (varobj_h): Update dependencies.
10489
1300a2f4
TJB
104902008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10491
10492 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10493 TYPE_CODE_DECFLOAT arguments.
10494 (ppc64_sysv_abi_push_dummy_call) Likewise.
10495 (get_decimal_float_return_value): New function.
10496 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10497 values by calling get_decimal_float_return_value.
10498 (ppc64_sysv_abi_return_value): Likewise.
10499
95ef687d
NR
105002008-01-30 Nick Roberts <nickrob@snap.net.nz>
10501
10502 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10503 for preprocessor macro information. Formatting changes.
10504
2d717e4f
DJ
105052008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10506
10507 * remote.c (struct remote_state): Add cached_wait_status.
10508 (remote_exec_file): New variable.
10509 (PACKET_vAttach, PACKET_vRun): New constants.
10510 (extended_remote_restart): Do not query for status.
10511 (struct start_remote_args): New.
10512 (remote_start_remote): Take it as a second argument. Check
10513 whether the target is running. Issue an error for non-running
10514 non-extended targets. Cache the wait status. Set inferior_ptid
10515 here.
10516 (remote_open_1): Prompt to disconnect non-running targets. Make
10517 sure the target is marked running. Do not set inferior_ptid here.
10518 Update call to remote_start_remote. Do not call remote_check_symbols
10519 if the target is not running.
10520 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10521 argument. Handle a non-running target.
10522 (remote_detach): Use it.
10523 (extended_remote_detach): New.
10524 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10525 (extended_remote_attach_1, extended_remote_attach)
10526 (extended_async_remote_attach): New.
10527 (remote_vcont_resume): Remove unused variable.
10528 (remote_wait, remote_async_wait): Use any cached wait status.
10529 (putpkt_binary, getpkt): Clear any cached wait status.
10530 (extended_remoute_mourn_1): New.
10531 (extended_remote_mourn): Use it.
10532 (extended_async_remote_mourn, extended_remote_run): New.
10533 (extended_remote_create_inferior_1): New.
10534 (extended_remote_create_inferior): Use it.
10535 (extended_remote_async_create_inferior): Likewise.
10536 (remote_xfer_partial): Skip for non-executing targets.
10537 (init_extended_remote_ops): Set to_detach and to_attach.
10538 (init_extended_async_remote_ops): Likewise. Use
10539 extended_async_remote_mourn.
10540 (_initialize_remote): Register vAttach, vRun, and
10541 set remote exec-file.
10542 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10543
e85a822c
DJ
105442008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10545
10546 * Makefile.in (symfile.o): Update.
10547 * NEWS: Mention exec tracing support.
10548 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10549 exec events.
10550 * infcmd.c (kill_if_already_running, detach_command)
10551 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10552 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10553 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10554 targets. Apply the sysroot path to the loaded executable. Use
10555 no_shared_libraries.
10556 * linux-nat.c (linux_child_follow_fork): Print fork following
10557 messages if verbose.
10558 (kill_wait_callback): Kill again before waiting a second time.
10559 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10560 no_shared_libraries.
10561
9db13498
JB
105622008-01-29 Joel Brobecker <brobecker@adacore.com>
10563
10564 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10565
b4d5ed91
JB
105662008-01-29 Joel Brobecker <brobecker@adacore.com>
10567
10568 * nto-tdep.h: Remove #include "defs.h".
10569 * nto-tdep.c: Add #include "defs.h".
10570 * Makefile.in (nto_tdep_h): Update dependencies.
10571 (nto-tdep.o): Likewise.
10572
107313f7 105732008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10574
10575 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10576 and use it.
10577 (proceed, start_remote): Update call to wait_for_inferior.
10578 * inferior.h (wait_for_inferior): Update declaration.
10579 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10580 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10581 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10582 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10583
3f4178d6
DJ
105842008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10585
680b56ce 10586 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10587 returned value from gdb_value_ind.
10588 (c_describe_child): Likewise.
10589 (cplus_describe_child): Fixed a typo.
10590
5eeba8d4
JB
105912008-01-29 Jim Blandy <jimb@red-bean.com>
10592
10593 * MAINTAINERS: Update my info.
10594
a5606eee
VP
105952008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10596
10597 Use multiple locations for hardware watchpoints.
10598 This eliminates the need to traverse value chain, doing
10599 various checks, in three different places.
10600
680b56ce
AS
10601 * breakpoint.h (struct bp_location): New fields
10602 lengths and watchpoint_type.
10603 (struct breakpoint): Remove the val_chain field.
10604 * breakpoint.c (is_hardware_watchpoint): New.
10605 (free_valchain): Remove.
10606 (update_watchpoint): New.
10607 (insert_bp_location): For hardware watchpoint, just
10608 directly insert it.
10609 (insert_breakpoints): Call update_watchpoint_locations
10610 on all watchpoints. If we have failed to insert
10611 any location of a hardware watchpoint, remove all inserted
10612 locations.
10613 (remove_breakpoint): For hardware watchpoints, directly
10614 remove location.
10615 (watchpoints_triggered): Iterate over locations.
10616 (bpstat_stop_status): Use only first location of
10617 a resource watchpoint.
10618 (delete_breakpoint): Don't call free_valchain.
10619 (print_one_breakpoint): Don't print all
10620 locations for watchpoints.
10621 (breakpoint_re_set_one): Use update_watchpoint for
10622 watchpoints.
a5606eee 10623
0b3de036
VP
106242008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10625
10626 Don't reset watchpoint block on solib load.
10627
680b56ce
AS
10628 * breakpoint.c (insert_bp_location): For watchpoints,
10629 recompute condition.
10630 (breakpoint_re_set_one): Instead of recomputing value
10631 and condition for watchpoints, just reset value and
10632 let insert_breakpoints/insert_bp_location recompute it.
10633 Don't do anything about disabled watchpoint.
0b3de036 10634
c3940723
PM
106352008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10636
10637 * valarith.c (value_binop): Handle unsigned integer
10638 division by zero.
10639
83845630
KB
106402008-01-28 Kevin Buettner <kevinb@redhat.com>
10641
10642 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10643 instruction pattern that appears frequently in position
10644 independent code. Fix bug in code which looks for "fmov" and
10645 backtracks if no "fmov" is found.
10646
9ce5d3bb
DE
106472008-01-28 Doug Evans <dje@google.com>
10648
10649 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10650 Reformat comments to 80 columns.
10651 Move local var def closer to only use.
9ce5d3bb 10652
c78d192c
DJ
106532008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10654
10655 * fork-child.c (SHELL_FILE): Remove #ifndef.
10656 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10657
e11481da
PM
106582008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10659
10660 * i386-tdep.c (i386_skip_noop): New function.
10661 (i386_analyze_prologue): Call i386_skip_noop function.
10662
244e85c8
MS
106632008-01-24 Michael Snyder <msnyder@specifix.com>
10664
10665 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10666 * win32-nat.c (win32_xfer_partial): Ditto.
10667 * target.c (default_xfer_partial): Minor whitespace adjustment.
10668
dd6be234
PA
106692008-01-24 Pedro Alves <pedro@codesourcery.com>
10670
10671 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10672 strip bit 1 even if pc doesn't point to thumb code.
10673
9fa2223d
DJ
106742008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10675
10676 * remote.c (remote_wait): Handle SIGINT between packets.
10677 (remote_async_wait): Likewise.
10678
93815fbf
VP
106792008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10680 Chris Demetriou <cgd@google.com>
10681
680b56ce
AS
10682 * thread.c (add_thread_silent): Renamed
10683 from add_thread.
10684 (print_thread_events): New variable definition.
10685 (show_print_thread_events): New function.
10686 (_initialize_thread): Add "set print thread-events" and
10687 "show print thread-events" commands.
10688 (add_thread): Announce new thread.
10689 * gdbthread.h (add_thread_silent): Declare.
10690 (print_thread_events): New variable declaration.
10691 * inf-ttrace.c (inf_ttrace_wait): Don't
10692 inform about new thread, as add_thread is always
10693 called too, and will take care of that.
10694 * infrun.c (handle_inferior_event): Likewise.
10695 * procfs.c (procfs_wait): Likewise.
10696 * remote.c (remote_currthread): Likewise.
10697 * sol-thread.c (sol_thread_wait): Likewise.
10698 * win32-nat.c (get_win32_debug_event): Likewise.
10699 * linux-thread-db.c (attach_thread): Likewise.
10700 Remove the verbose parameter.
10701 (check_event): Make detach_thread be verbose
10702 only if print_thread_events is set.
10703 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10704 about new thread. This is called only from
10705 linux-thread-db.c:attach_thread, which will take care.
10706 Remove the verbose parameter.
10707 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10708
b4d7c9a6
NR
107092008-01-23 Nick Roberts <nickrob@snap.net.nz>
10710
10711 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10712
60c46647
VP
107132008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10714
10715 * breakpoint.c (break_command_really): New parameter
10716 ignore_count.
10717 (break_command_1): Pass 0 as
10718 ignore_count to break_command_really.
10719 (gdb_breakpoint): Pass ignore_count to
10720 break_command_really.
10721
e84605cd
KB
107222008-01-21 Kevin Buettner <kevinb@redhat.com>
10723
10724 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10725 sigcontext struct via pointer.
10726 (struct sigframe comment): Update to show new field `psc'.
10727
9d9cd7ac
VP
107282008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10729
10730 * infrun.c (handle_inferior_event): If
10731 we failed to remove breakpoints, error,
10732 don't try to increment PC by hand.
10733
af5ca30d
NH
107342008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10735
10736 Add NetBSD/hppa target and host support.
10737
10738 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10739 (hppabsd_gregset): Move to ...
10740 (hppabsd_regset_from_core_section): Rename
10741 hppaobsd_regset_from_core_section and move to ...
10742 (hppabsd_find_global_pointer): Update comment.
10743 (hppabsd_init_abi): Make global. Do not register
10744 hppabsd_regset_from_core_section.
10745 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10746 move to ...
10747 (_initialize_hppabsd_tdep): Move to ...
10748 * hppaobsd-tdep.c: ... here. New file.
10749 * hppnbsd-tdep.c: New file.
10750 * hppnbsd-nat.c: New file.
680b56ce 10751 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10752 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10753 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10754 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10755 * configure.host (hppa*-*-netbsd*): New entry.
10756 * configure.tgt (hppa*-*-netbsd*): New entry.
10757 (hppa*-*-openbsd*): Update.
10758 * NEWS (New native configuration): Mention NetBSD/hppa.
10759 (New targets): Mention NetBSD/hppa.
10760
32c9a795
MD
107612008-01-18 Markus Deuling <deuling@de.ibm.com>
10762
10763 * gdbarch.sh (function_list): Add new property bits_big_endian to
10764 gdbarch structure.
10765 * gdbarch.{c,h}: Regenerate.
10766
10767 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10768 gdbarch_bits_big_endian (comment).
10769 (unpack_field_as_long, modify_field): Likewise.
10770 * value.h: Likewise (comment).
10771 * valops.c (value_slice): Likewise.
10772 * valarith.c (value_subscript, value_bit_index): Likewise.
10773 * gdbtypes.h (field): Likewise (comment).
10774 * eval.c (evaluate_subexp_standard): Likewise.
10775 * dwarf2read.c (dwarf2_add_field): Likewise.
10776 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10777 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10778
32c9a795
MD
10779 * defs.h (BITS_BIG_ENDIAN): Remove.
10780
1e5e79d0
MD
107812008-01-18 Markus Deuling <deuling@de.ibm.com>
10782
10783 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10784 function calls.
10785 * m2-exp.y (yylex): Likewise.
10786 * objc-exp.y (yylex): Likewise.
10787
10788 * defs.h (DEPRECATED_STREQN): Remove.
10789
fabda5a7
L
107902008-01-17 H.J. Lu <hjl.tools@gmail.com>
10791
10792 * MAINTAINERS: Update my email address.
10793
92726479
JB
107942008-01-17 Jim Blandy <jimb@codesourcery.com>
10795
10796 * README: Mention gdbserver/README.
10797
ef80d18e
PM
107982008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10799
10800 * valarith.c (value_binop): Handle BINOP_INTDIV
10801 for unsigned and signed integers.
10802
1de90795
UW
108032008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10804
10805 * s390-tdep.c (s390_gdbarch_init): Set default long double
10806 type to 128-bit IEEE quad.
10807
c70bd6f3
JB
108082008-01-17 Joel Brobecker <brobecker@adacore.com>
10809
10810 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10811
ba759613
MK
108122008-01-16 Mark Kettenis <kettenis@gnu.org>
10813
77d49ac6
MK
10814 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10815
ba759613
MK
10816 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10817 * value.c: All callers changed.
10818
7ecb6532
MD
108192008-01-16 Markus Deuling <deuling@de.ibm.com>
10820
10821 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10822 DEPRECATED_STREQ by its expression.
10823 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10824 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10825 (scan_xcoff_symtab): Likewise.
10826 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10827 * f-lang.c (find_common_for_function): Likewise.
10828 * objc-exp.y (parse_number): Likewise.
10829
10830 * defs.h (DEPRECATED_STREQ): Remove.
10831
d15cf01c
MD
108322008-01-16 Markus Deuling <deuling@de.ibm.com>
10833
10834 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10835 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10836 get_frame_arch to get at the current_architecture. Update AM33_MODE
10837 call.
10838 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10839 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10840 architecture.
10841 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10842
f8028488
MD
108432008-01-16 Markus Deuling <deuling@de.ibm.com>
10844
680b56ce 10845 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10846 parameter.
10847 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10848
10849 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10850 current_gdbarch by gdbarch. Update caller.
10851
10852 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10853 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10854 the current architecture. Update calls of
10855 amd64_native_gregset_supplies_p.
10856 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10857 (amd64bsd_store_inferior_registers): Likewise.
10858
e101270f
MD
108592008-01-16 Markus Deuling <deuling@de.ibm.com>
10860
10861 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10862 Replace current_gdbarch by gdbarch. Update caller.
10863
063e58ba
MD
108642008-01-16 Markus Deuling <deuling@de.ibm.com>
10865
10866 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10867 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10868 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10869 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10870 (stabsect_build_psymtabs): Fix indentation.
10871
662fb31b
MS
108722008-01-15 Michael Snyder <msnyder@specifix.com>
10873
10874 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10875
c1766e7d
PM
108762008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10877
10878 * win32-nat.c (win32_create_inferior): Restore code calling
10879 CloseHandle on ProcessInformation structure.
10880
5ed10e6e
NH
108812008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10882
10883 * configure.ac: Check for void * as 3 argument of ptrace.
10884 * configure: regenerate.
10885
be8626e0
MD
108862008-01-11 Markus Deuling <deuling@de.ibm.com>
10887
10888 * alpha-tdep.c (alpha_heuristic_proc_start)
10889 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10890 current_gdbarch by gdbarch.
10891
10892 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10893 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10894 call.
10895
10896 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10897 get_frame_arch to get at the current architecture by frame_info. Update
10898 alpha_sigtramp_register_address call.
10899
10900 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10901 current_gdbarch by gdbarch. Update caller.
10902 (convert_to_extended, convert_from_extended): Add endianess parameter
10903 for comparison. Update caller.
10904 (arm_extract_return_value, arm_store_return_value): Use
10905 get_regcache_arch to get at the current architecture.
10906
10907 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10908 current_gdbarch by gdbarch. Update caller.
10909 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10910 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10911
10912 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10913 gdbarch as parameter. Update caller.
be8626e0
MD
10914 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10915 current_gdbarch by gdbarch. Update caller.
10916
680b56ce 10917 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10918 update caller. Replace current_gdbarch by gdbarch.
10919
10920 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10921 the current architecture. Replace current_gdbarch by gdbarch.
10922 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10923 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10924 expression. Add gdbarch as parameter and replace current_gdbarch with
10925 it. Update caller.
10926 (M6811_TDEP): Remove.
10927 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10928 architecture.
680b56ce 10929 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
10930 current_gdbarch by gdbarch. Update caller.
10931
10932 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10933 update caller.
10934 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10935 by gdbarch.
10936
10937 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10938 caller. Relace current_gdbarch by gdbarch.
10939 (altivec_register_p, spe_register_p): Likewise.
10940 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10941 parameter.
10942 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10943 altivec_register_p and spe_register_p.
10944
680b56ce 10945 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
10946 caller. Replace current_gdbarch by gdbarch.
10947 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 10948 architecture.
be8626e0
MD
10949
10950 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10951 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10952 current_gdbarch by gdbarch. Update caller.
10953 (sparc_frame_cache): Use get_frame_arch to get at the current
10954 architecture.
10955 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10956 sparc_analyze_prologue.
10957
10958 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10959 parameter.
10960
ed49a04f
MD
109612008-01-11 Markus Deuling <deuling@de.ibm.com>
10962
10963 * exec.c: #include "arch-utils.h"
10964 (print_section_info): Use gdbarch_from_bfd to get at the
10965 current architecture. Replace current_gdbarch. Fix indention. Replace
10966 deprecated_print_address_numeric by paddress.
10967 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10968
680b56ce 10969 * valprint.c (val_print_string): Replace
ed49a04f
MD
10970 deprecated_print_address_numeric.
10971 * tracepoint.c (trace_mention, scope_info): Likewise.
10972 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10973 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10974 (maintenance_check_symtabs): Likewise.
10975 * symfile.c (list_overlays_command): Likewise.
10976 * stack.c (frame_info, print_block_frame_labels): Likewise.
10977 * printcmd.c (print_address, print_address_demangle)
10978 (address_info): Likewise.
10979 * corefile.c (memory_error): Likewise.
10980 * infcmd.c (jump_command): Likewise.
10981 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10982 (mention, delete_breakpoint): Likewise.
10983 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10984 * dwarf2read.c (dump_die): Likewise.
10985 * ada-valprint.c (ada_val_print_1): Likewise.
10986 * f-valprint.c (f_val_print): Likewise.
680b56ce 10987 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
10988 * m32r-com.c (m32r_load_section, m32r_load)
10989 (m32r_upload_command): Likewise.
10990
10991 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10992
6093d2eb
MD
109932008-01-11 Markus Deuling <deuling@de.ibm.com>
10994
10995 * gdbarch.sh (skip_prologue): Add gdbarch
10996 as parameter.
10997 * gdbarch.{c,h}: Regenerate.
10998
10999 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
11000 * amd64-tdep.c (amd64_skip_prologue): Likewise.
11001 * avr-tdep.c (avr_skip_prologue): Likewise.
11002 * cris-tdep.c (cris_skip_prologue): Likewise.
11003 * frv-tdep.c (frv_skip_prologue): Likewise.
11004 * h8300-tdep.c (h8300_skip_prologue): Likewise.
11005 * hppa-tdep.c (hppa_skip_prologue): Likewise.
11006 * i386-tdep.c (i386_skip_prologue): Likewise.
11007 * ia64-tdep.c (ia64_skip_prologue): Likewise.
11008 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
11009 * m32r-tdep.c (m32r_skip_prologue): Likewise.
11010 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
11011 * m68k-tdep.c (m68k_skip_prologue): Likewise.
11012 * m88k-tdep.c (m88k_skip_prologue): Likewise.
11013 * mep-tdep.c (mep_skip_prologue): Likewise.
11014 * mips-tdep.c (mips_skip_prologue): Likewise.
11015 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
11016 * mt-tdep.c (mt_skip_prologue): Likewise.
11017 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
11018 * score-tdep.c (score_skip_prologue): Likewise.
11019 * sh64-tdep.c (sh64_skip_prologue): Likewise.
11020 * sh-tdep.c (sh_skip_prologue): Likewise.
11021 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
11022 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
11023 * spu-tdep.c (spu_skip_prologue): Likewise.
11024 * v850-tdep.c (v850_skip_prologue): Likewise.
11025 * vax-tdep.c (vax_skip_prologue): Likewise.
11026 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
11027 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
11028
11029 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
11030 current_gdbarch by gdbarch.
11031 * m32c-tdep.c (m32c_skip_prologue): Likewise.
11032 * s390-tdep.c (s390_skip_prologue): Likewise.
11033
72f5cf0e
DE
110342008-01-10 Doug Evans <dje@google.com>
11035
11036 * defs.h (struct continuation_arg): Fix typo in comment.
11037 * target.c (target_translate_tls_address): Fix comment spelling error.
11038
689e4e2d
TJB
110392008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
11040
11041 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
11042 (DOUBLEST_SCAN_FORMAT): Likewise.
11043 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
11044 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
11045 * c-exp.y (parse_number): Likewise.
11046 * jv-exp.y (parse_number): Likewise.
11047 * objc-exp.y (parse_number): Likewise.
11048 * p-exp.y (parse_number): Likewise.
11049
ab0d6e0d
JB
110502008-01-09 Joel Brobecker <brobecker@adacore.com>
11051
11052 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
11053 (check_typedef): Likewise.
11054
0aea4bf3
LM
110552008-01-09 Luis Machado <luisgpm@br.ibm.com>
11056
11057 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
11058 seen_double_big_d, treat the new H, D, and DD modifiers as length
11059 modifiers.
11060
137033e9
JB
110612008-01-08 Joel Brobecker <brobecker@adacore.com>
11062
11063 * dwarf2read.c (read_enumeration_type): Add comment.
11064
dda297ec
TJB
110652008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
11066
11067 * config.in: Regenerate.
11068
a93c0eb6
JB
110692008-01-08 Joel Brobecker <brobecker@adacore.com>
11070
11071 * ada-lang.c (ada_convert_actual): Renames convert_actual.
11072 Make non-static.
11073 (ada_convert_actuals): Delete.
11074 * ada-lang.h (ada_convert_actual): Add declaration.
11075 (ada_convert_actuals): Remove declaration.
11076 * infcall.c: #include "ada-lang.h".
11077 (value_arg_coerce): Add new parameter sp. Update function
11078 documetnation. Add handling of Ada function call parameters.
11079 * Makefile.in (infcall.o): Update dependencies.
11080
a84a8a0d
JB
110812008-01-08 Paul Hilfinger <hilfinger@adacore.com>
11082
11083 * ada-lang.c (ensure_lval): Fix value lval kind.
11084 (convert_actual): Add handling for arguments passed by reference.
11085
d7f98cce
DE
110862008-01-08 Doug Evans <dje@google.com>
11087
11088 * dbxread.c (read_dbx_symtab): Fix indentation.
11089
4ef30785
TJB
110902008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
11091
11092 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
11093 (valarith.o): Depend on dfp.h.
11094 (valops.o): Likewise.
11095 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
11096 (set_decnumber_context): New function.
11097 (decimal_check_errors): Likewise.
11098 (decimal_from_number): Likewise.
11099 (decimal_to_number): Likewise.
11100 (decimal_from_string): Use set_decnumber_context and
11101 decimal_check_errors.
11102 (decimal_from_integral): New function.
11103 (decimal_from_floating): Likewise.
11104 (decimal_to_double): Likewise.
11105 (promote_decimal): Likewise.
11106 (decimal_binop): Likewise.
11107 (decimal_is_zero): Likewise.
11108 (decimal_compare): Likewise.
11109 (decimal_convert): Likewise.
11110 * dfp.h (decimal_from_integral): New prototype.
11111 (decimal_from_floating): Likewise.
11112 (decimal_to_double): Likewise.
11113 (decimal_binop): Likewise.
11114 (decimal_is_zero): Likewise.
11115 (decimal_compare): Likewise.
11116 (decimal_convert): Likewise.
11117 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
11118 call to value_from_decfloat.
11119 * valarith.c: Include dfp.h.
11120 (value_args_as_decimal): New function.
11121 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
11122 (value_logical_not): Likewise.
11123 (value_equal): Likewise.
11124 (value_less): Likewise.
11125 (value_pos): Likewise.
11126 (value_neg): Formatting fix.
11127 * valops.c: Include dfp.h.
11128 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
11129 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
11130 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
11131 (value_from_decfloat): Remove expect_type argument.
11132 * value.h (value_from_decfloat): Update prototype.
11133
a7c02bc8
VP
111342008-01-07 Vladimir Prus <vladimir@codesourcery.com>
11135
11136 Ignore change in name of dynamic linker during
11137 execution on Solaris. This also unbreaks pending breakpoints.
11138
11139 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
11140 * solib-svr4.c (svr4_same): New.
11141 (_initialize_svr4_solib): Register svr4_same.
11142 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 11143
610dd7f9
CF
111442008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
11145
11146 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
11147 when using MS-DOS paths.
11148
7a404eba
PA
111492008-01-05 Pedro Alves <pedro@codesourcery.com>
11150
11151 * NEWS: Mention --pid and --core command line behaviour changes.
11152
a4d9b460
PA
111532008-01-05 Pedro Alves <pedro@codesourcery.com>
11154
11155 * main.c (captured_main): Remove 'count' varible and the
11156 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
11157 --pid options were issued simultaneously. If an explicit pid
11158 option was passed, don't fallback to core file. Detect extra
11159 arguments better in the presence of explicit pid or core
11160 arguments.
11161
0c281816
JB
111622008-01-05 Joel Brobecker <brobecker@adacore.com>
11163
11164 * ada-lang.c (ada_which_variant_applies): Correctly compute
11165 the value of the discriminant when the variant record is packed.
11166
babe1480
JB
111672008-01-04 Joel Brobecker <brobecker@adacore.com>
11168
11169 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
11170 that are used to differentiate homonyms.
11171
727e3d2e
JB
111722008-01-04 Jerome Guitton <guitton@adacore.com>
11173
11174 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
11175 when the type is an anonymous pointer type.
11176 (ada_check_typedef): Avoid a seg fault when the type is null.
11177 * ada-typeprint.c (print_array_type): Add support for pointer
11178 to packed arrays.
11179
bb28a9dc
JB
111802008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
11181
680b56ce 11182 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 11183
6799def4
JB
111842008-01-04 Joel Brobecker <brobecker@adacore.com>
11185
11186 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
11187 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
11188
d3353bbd
JB
111892008-01-04 Joel Brobecker <brobecker@adacore.com>
11190
11191 * ada-exp.y (chop_separator): New function.
11192 (write_selectors): Rewrite to re-use chop_separator.
11193 (ada_nget_field_index, get_symbol_field_type): New functions.
11194 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
11195 expressions.
11196
82cf6c60
TJB
111972008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
11198
11199 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
11200 of SYMBOL_VALUE when working with function symbols.
11201
b3dbf008
JB
112022008-01-03 Joel Brobecker <brobecker@adacore.com>
11203
11204 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
11205 expressions. These expressions do not need to be rewriten.
11206
02eb380e
JB
112072008-01-03 Joel Brobecker <brobecker@adacore.com>
11208
11209 * dwarf2read.c (read_enumeration_type): Flag type as stub if
11210 the given die is a declaration.
11211
abb68b3e
JB
112122008-01-03 Joel Brobecker <brobecker@adacore.com>
11213
11214 * ada-lang.c (ada_array_bound_from_type): Make non-static.
11215 Handle properly the case when the index type is an enumerated type.
11216 Do not return the subtype of the bounds type, just return the
11217 bounds type directly - this is not needed and is more consistent
11218 with what we do for arrays when no XA parallel type exists.
11219
f192137b
JB
112202008-01-03 Joel Brobecker <brobecker@adacore.com>
11221
11222 * ada-lang.c (static_unwrap_type): Add forward declaration.
11223 (template_to_static_fixed_type): Fields of dynamic types sometimes
11224 also need to be unwrapped. Take this into account.
11225 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11226 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11227 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 11228 the original type, not the base type.
f192137b 11229
1ed6ede0
JB
112302008-01-03 Jerome Guitton <guitton@adacore.com>
11231
11232 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 11233 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
11234 Update calls to ada_to_fixed_type.
11235 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11236 for the tag.
11237 (ada_to_fixed_type): Add check_tag parameter; do not look for
11238 tag if null. When looking for a tag, use a fixed record type.
11239 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11240 * ada-valprint.c (printable_val_type, ada_value_print): Update
11241 calls to ada_to_fixed_type.
11242
542a88d0
LM
112432008-01-03 Luis Machado <luisgpm@br.ibm.com>
11244
680b56ce 11245 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
11246 floatformat_to_doublest instead of floatformat_to_double and use
11247 DOUBLEST variables.
11248 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11249 instead of floatformat_from_double and use DOUBLEST variables.
11250
dc2bbab2
NH
112512008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11252
11253 * MAINTAINERS (Write After Approval): Add self.
11254
8b60591b
JB
112552008-01-03 Joel Brobecker <brobecker@adacore.com>
11256
11257 * symfile.c (set_initial_language): Make non-static.
11258 * symfile.h (set_initial_language): Add declaration.
11259 * language.c: #include "symfile.h".
11260 (set_language): Call set_initial_language if the frame language
11261 could not be determined.
11262
ceef53c1
JB
112632008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11264
11265 * eval.c (evaluate_subexp_for_address): Provide frame address to
11266 locate_var_value only if it will be needed.
11267
ef29ce1a
JK
112682008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11269
11270 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11271
0a07e705
JB
112722008-01-02 Joel Brobecker <brobecker@adacore.com>
11273
11274 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11275 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11276 This is needed to make sure that any other treatment applied
11277 to the resulting value does not fail for spurious reason,
11278 such as trying to take the address of this value.
11279
f58b38bf
JB
112802008-01-02 Joel Brobecker <brobecker@adacore.com>
11281
11282 * ada-lang.c (ada_value_equal): Dereference reference types when
11283 comparing arrays.
680b56ce 11284
9b254dd1
DJ
112852008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11286
11287 Updated copyright notices for most files.
11288
33605d39
CF
112892008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11290
11291 * win32-nat.c (psapi_module_handle): Remove static.
11292 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11293 return first module found if base_address is zero. Don't initialize
11294 psapi function pointers here. Convert to cygwin paths when
11295 appropriate.
11296 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11297 executable name. Use get_module_name when that fails or when
11298 !__CYGWIN__.
11299 (_initialize_psapi): New function. Initialize psapi stuff before it is
11300 needed or issue a warning if it is not found. Move psapi_module_handle
11301 here.
11302
29480c32
JB
113032008-01-01 Joel Brobecker <brobecker@adacore.com>
11304
11305 * ada-lang.c (ada_remove_trailing_digits): New function.
11306 (ada_remove_po_subprogram_suffix): New function.
11307 (ada_decode): Improve. Move the description of the algorithm
11308 directly inside the code, instead of in the function global
11309 description.
11310
969a1360
JB
113112008-01-01 Joel Brobecker <brobecker@adacore.com>
11312
11313 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11314 and always print the dereferenced value.
11315
b7789565
JB
113162008-01-01 Joel Brobecker <brobecker@adacore.com>
11317
11318 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11319 of the case where the first argument is a reference.
11320 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11321
73fb9985
JB
113222008-01-01 Joel Brobecker <brobecker@adacore.com>
11323
11324 Implement support for Ada interface types.
11325
11326 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11327 (ada_is_ignored_field): Ignore fields that are a dispatch table
11328 of a tagged type.
11329
636265b6
JB
113302008-01-01 Joel Brobecker <brobecker@adacore.com>
11331
11332 * top.c (print_gdb_version): Update copyright year.
11333
9d200a2e 113342008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11335
9d200a2e
JB
11336 * ChangeLog-2007: New ChangeLog rotation.
11337 * ChangeLog: Reset for 2008.
11338 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11339 ChangeLog-2007.
b7589f7d 11340
9d200a2e 11341For older changes see ChangeLog-2007.
c906108c
SS
11342\f
11343Local Variables:
11344mode: change-log
11345left-margin: 8
11346fill-column: 74
11347version-control: never
57da7796 11348coding: utf-8
c906108c 11349End:
This page took 1.72007 seconds and 4 git commands to generate.